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

introduce query rpc to get the fee config by channel and denom name #522

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

RustNinja
Copy link
Collaborator

  1. add config to channel
    picad tx ibctransferparamsmodule add-allowed-ibc-token --from mykey --fees=30ppica channel-1 10 99999999999ppica
  2. add denom to channel
    picad tx ibctransferparamsmodule add-allowed-ibc-token --from mykey --fees=30ppica channel-1 10 99999999999ssss 10low 100medium 10000high
  3. query config by denom and channel
    picad query ibctransferparamsmodule FeeConfigByChannelAndDenom channel-1 ppica
  4. response:
min_fee:
  amount: "99999999999"
  denom: ppica
percentage: "10"
tx_priority_fee:
- priority: low
  priority_fee:
    amount: "10"
    denom: ppica
- priority: med
  priority_fee:
    amount: "100"
    denom: ppica
- priority: high
  priority_fee:
    amount: "10000"
    denom: ppica
  1. response if denom does not allowed for this channel or channel does not exists.
    fee configuration not found for channel channel-1 and denom sss: invalid request

@RustNinja RustNinja merged commit 51c6ee1 into testnet Jun 21, 2024
8 of 13 checks passed
@RustNinja RustNinja deleted the rustninja/ibc-fee-query-config branch June 21, 2024 22:49
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.

2 participants