Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add SetBucketFlowRateLimit #233

Merged
merged 2 commits into from
Mar 21, 2024
Merged

feat: add SetBucketFlowRateLimit #233

merged 2 commits into from
Mar 21, 2024

Conversation

yutianwu
Copy link
Contributor

Description

This pr will add new messages and queries introduced:

  • MsgSetBucketFlowRateLimit
  • QueryPaymentAccountBucketFlowRateLimit

Rationale

Add new messages and queries

Example

n/a

Changes

Notable changes:

  • add new messages and queries

//
// - ret2: Return error if update flow rate limit failed, otherwise return nil.
func (c *Client) SetBucketFlowRateLimit(ctx context.Context, bucketName string,
paymentAddr, bucketOwner sdk.AccAddress, flowRateLimit sdkmath.Int, opt types.UpdatePaymentOption,
Copy link
Collaborator

Choose a reason for hiding this comment

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

UpdatePaymentOption -> SetBucketFlowRateLimitOption

@@ -56,6 +57,8 @@ type IBucketClient interface {
CancelMigrateBucket(ctx context.Context, bucketName string, opts types.CancelMigrateBucketOptions) (string, error)
GetBucketMigrationProgress(ctx context.Context, bucketName string, destSP uint32) (types.MigrationProgress, error)
ListBucketsByPaymentAccount(ctx context.Context, paymentAccount string, opts types.ListBucketsByPaymentAccountOptions) (types.ListBucketsByPaymentAccountResult, error)
SetBucketFlowRateLimit(ctx context.Context, bucketName string, paymentAddr, bucketOwner sdk.AccAddress, flowRateLimit sdkmath.Int, opt types.UpdatePaymentOption) (string, error)
Copy link
Collaborator

Choose a reason for hiding this comment

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

UpdatePaymentOption -> SetBucketFlowRateLimitOption

@yutianwu yutianwu merged commit a21d3b5 into master Mar 21, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants