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

Update bidder API endpoint to provide_allowance rather than prepay #214

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ckartik
Copy link
Contributor

@ckartik ckartik commented Mar 10, 2024

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

@@ -33,7 +33,7 @@ service Bidder {
//
// 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.

4 participants