Skip to content
This repository was archived by the owner on Jun 20, 2024. It is now read-only.

Conversation

@ckartik
Copy link
Contributor

@ckartik ckartik commented Mar 10, 2024

  • This ensures consistent naming around the concept of allowance, avoiding User confusion.

// PrepayAllowance is called by the bidder node to add prepaid allowance in the bidder registry.
rpc PrepayAllowance(PrepayRequest) returns (PrepayResponse) {
option (google.api.http) = {post: "/v1/bidder/prepay/{amount}"};
option (google.api.http) = {post: "/v1/bidder/provide_allowance/{amount}"};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont really like this name. Plus the RPC function is still called PrepayAllowance. Not sure where this 'provide' came from.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prepay_allowance seems like a reasonable name

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we want to move away from the term prepay.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This API actually moves funds from the account. So I think provide allowance would actually be misguiding. Prepay seems to be better.

@kant777
Copy link
Contributor

kant777 commented Mar 25, 2024

@ckartik Lets go with prepay allowance and please take this to completion

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants