ComposableFi / composable-cosmos

The home of IBC
28 stars 95 forks source link

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

Closed RustNinja closed 2 months ago

RustNinja commented 3 months ago
  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
  5. 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