carbon-js-sdk 0.7.13 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/clients/CarbonQueryClient.d.ts +1 -1
- package/lib/clients/CarbonQueryClient.js +1 -1
- package/lib/clients/InsightsQueryClient.d.ts +1 -1
- package/lib/clients/InsightsQueryClient.js +2 -4
- package/lib/codec/Switcheo/carbon/book/event.d.ts +20 -1
- package/lib/codec/Switcheo/carbon/book/event.js +101 -19
- package/lib/codec/Switcheo/carbon/book/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/book/export.js +3 -1
- package/lib/codec/Switcheo/carbon/book/query.d.ts +12 -6
- package/lib/codec/Switcheo/carbon/book/query.js +18 -6
- package/lib/codec/Switcheo/carbon/broker/amm.d.ts +8 -0
- package/lib/codec/Switcheo/carbon/ccm/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/ccm/export.js +3 -1
- package/lib/codec/Switcheo/carbon/ccm/tx.d.ts +46 -0
- package/lib/codec/Switcheo/carbon/ccm/tx.js +101 -1
- package/lib/codec/Switcheo/carbon/cdp/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/cdp/export.js +3 -1
- package/lib/codec/Switcheo/carbon/cdp/tx.d.ts +46 -1
- package/lib/codec/Switcheo/carbon/cdp/tx.js +101 -1
- package/lib/codec/Switcheo/carbon/evmcontract/genesis.d.ts +10 -4
- package/lib/codec/Switcheo/carbon/evmcontract/genesis.js +54 -4
- package/lib/codec/Switcheo/carbon/evmcontract/query.d.ts +98 -0
- package/lib/codec/Switcheo/carbon/evmcontract/query.js +374 -1
- package/lib/codec/Switcheo/carbon/evmcontract/tx.d.ts +103 -0
- package/lib/codec/Switcheo/carbon/evmcontract/tx.js +425 -1
- package/lib/codec/Switcheo/carbon/liquidation/export.d.ts +1 -2
- package/lib/codec/Switcheo/carbon/liquidation/export.js +1 -5
- package/lib/codec/Switcheo/carbon/liquidation/query.d.ts +0 -25
- package/lib/codec/Switcheo/carbon/liquidation/query.js +1 -88
- package/lib/codec/Switcheo/carbon/liquiditypool/export.d.ts +2 -2
- package/lib/codec/Switcheo/carbon/liquiditypool/export.js +6 -3
- package/lib/codec/Switcheo/carbon/liquiditypool/liquiditypool.d.ts +20 -0
- package/lib/codec/Switcheo/carbon/liquiditypool/liquiditypool.js +191 -1
- package/lib/codec/Switcheo/carbon/liquiditypool/tx.d.ts +46 -0
- package/lib/codec/Switcheo/carbon/liquiditypool/tx.js +101 -1
- package/lib/codec/Switcheo/carbon/market/export.d.ts +2 -2
- package/lib/codec/Switcheo/carbon/market/export.js +6 -2
- package/lib/codec/Switcheo/carbon/market/query.d.ts +31 -0
- package/lib/codec/Switcheo/carbon/market/query.js +226 -1
- package/lib/codec/Switcheo/carbon/market/tx.d.ts +46 -2
- package/lib/codec/Switcheo/carbon/market/tx.js +100 -1
- package/lib/codec/Switcheo/carbon/marketstats/export.d.ts +1 -2
- package/lib/codec/Switcheo/carbon/marketstats/export.js +1 -5
- package/lib/codec/Switcheo/carbon/marketstats/genesis.d.ts +4 -7
- package/lib/codec/Switcheo/carbon/marketstats/genesis.js +4 -21
- package/lib/codec/Switcheo/carbon/marketstats/query.d.ts +0 -26
- package/lib/codec/Switcheo/carbon/marketstats/query.js +1 -88
- package/lib/codec/Switcheo/carbon/oracle/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/oracle/export.js +4 -1
- package/lib/codec/Switcheo/carbon/oracle/tx.d.ts +46 -0
- package/lib/codec/Switcheo/carbon/oracle/tx.js +101 -1
- package/lib/codec/Switcheo/carbon/order/export.d.ts +4 -3
- package/lib/codec/Switcheo/carbon/order/export.js +11 -4
- package/lib/codec/Switcheo/carbon/order/genesis.d.ts +10 -10
- package/lib/codec/Switcheo/carbon/order/genesis.js +16 -16
- package/lib/codec/Switcheo/carbon/order/order.d.ts +14 -14
- package/lib/codec/Switcheo/carbon/order/order.js +11 -11
- package/lib/codec/Switcheo/carbon/order/tx.d.ts +46 -0
- package/lib/codec/Switcheo/carbon/order/tx.js +101 -1
- package/lib/codec/Switcheo/carbon/perpspool/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/perpspool/export.js +3 -1
- package/lib/codec/Switcheo/carbon/perpspool/tx.d.ts +46 -1
- package/lib/codec/Switcheo/carbon/perpspool/tx.js +101 -1
- package/lib/codec/Switcheo/carbon/position/export.d.ts +1 -0
- package/lib/codec/Switcheo/carbon/position/export.js +4 -1
- package/lib/codec/Switcheo/carbon/pricing/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/pricing/export.js +3 -1
- package/lib/codec/Switcheo/carbon/pricing/tx.d.ts +46 -0
- package/lib/codec/Switcheo/carbon/pricing/tx.js +101 -1
- package/lib/codec/Switcheo/carbon/subaccount/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/subaccount/export.js +3 -1
- package/lib/codec/Switcheo/carbon/subaccount/tx.d.ts +46 -0
- package/lib/codec/Switcheo/carbon/subaccount/tx.js +101 -1
- package/lib/codec/carbon-models.d.ts +2 -1
- package/lib/codec/carbon-models.js +3 -2
- package/lib/codec/cosmos/app/v1alpha1/config.d.ts +26 -0
- package/lib/codec/cosmos/app/v1alpha1/config.js +94 -4
- package/lib/codec/cosmos/auth/v1beta1/auth.d.ts +21 -0
- package/lib/codec/cosmos/auth/v1beta1/auth.js +92 -1
- package/lib/codec/cosmos/auth/v1beta1/export.d.ts +3 -2
- package/lib/codec/cosmos/auth/v1beta1/export.js +7 -1
- package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/auth/v1beta1/query.d.ts +54 -2
- package/lib/codec/cosmos/auth/v1beta1/query.js +120 -2
- package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +1 -1
- package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +7 -0
- package/lib/codec/cosmos/bank/v1beta1/authz.js +18 -3
- package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +9 -0
- package/lib/codec/cosmos/bank/v1beta1/export.d.ts +2 -2
- package/lib/codec/cosmos/bank/v1beta1/export.js +9 -1
- package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +9 -3
- package/lib/codec/cosmos/bank/v1beta1/genesis.js +17 -2
- package/lib/codec/cosmos/bank/v1beta1/query.d.ts +125 -5
- package/lib/codec/cosmos/bank/v1beta1/query.js +257 -1
- package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +102 -1
- package/lib/codec/cosmos/bank/v1beta1/tx.js +215 -2
- package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.d.ts +8 -0
- package/lib/codec/cosmos/base/store/v1beta1/commit_info.d.ts +2 -1
- package/lib/codec/cosmos/base/store/v1beta1/commit_info.js +39 -1
- package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +16 -46
- package/lib/codec/cosmos/consensus/v1/export.d.ts +2 -0
- package/lib/codec/cosmos/consensus/v1/export.js +9 -0
- package/lib/codec/cosmos/crisis/v1beta1/tx.d.ts +46 -1
- package/lib/codec/cosmos/crisis/v1beta1/tx.js +103 -1
- package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +20 -1
- package/lib/codec/cosmos/distribution/v1beta1/distribution.js +16 -16
- package/lib/codec/cosmos/distribution/v1beta1/export.d.ts +2 -2
- package/lib/codec/cosmos/distribution/v1beta1/export.js +8 -1
- package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +4 -4
- package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +32 -1
- package/lib/codec/cosmos/distribution/v1beta1/query.js +134 -1
- package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +103 -3
- package/lib/codec/cosmos/distribution/v1beta1/tx.js +212 -1
- package/lib/codec/cosmos/evidence/v1beta1/evidence.d.ts +4 -0
- package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +12 -1
- package/lib/codec/cosmos/evidence/v1beta1/query.js +14 -2
- package/lib/codec/cosmos/evidence/v1beta1/tx.d.ts +2 -0
- package/lib/codec/cosmos/gov/v1/genesis.d.ts +25 -4
- package/lib/codec/cosmos/gov/v1/genesis.js +16 -0
- package/lib/codec/cosmos/gov/v1/gov.d.ts +83 -2
- package/lib/codec/cosmos/gov/v1/gov.js +231 -3
- package/lib/codec/cosmos/gov/v1/query.d.ts +30 -6
- package/lib/codec/cosmos/gov/v1/query.js +16 -0
- package/lib/codec/cosmos/gov/v1/tx.d.ts +74 -2
- package/lib/codec/cosmos/gov/v1/tx.js +131 -3
- package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +30 -5
- package/lib/codec/cosmos/gov/v1beta1/query.d.ts +4 -2
- package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +13 -0
- package/lib/codec/cosmos/group/v1/events.d.ts +17 -1
- package/lib/codec/cosmos/group/v1/events.js +81 -1
- package/lib/codec/cosmos/group/v1/query.d.ts +5 -5
- package/lib/codec/cosmos/group/v1/tx.d.ts +25 -13
- package/lib/codec/cosmos/group/v1/tx.js +60 -34
- package/lib/codec/cosmos/group/v1/types.d.ts +26 -6
- package/lib/codec/cosmos/group/v1/types.js +27 -1
- package/lib/codec/cosmos/mint/v1beta1/export.d.ts +1 -0
- package/lib/codec/cosmos/mint/v1beta1/export.js +4 -1
- package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/mint/v1beta1/mint.d.ts +1 -1
- package/lib/codec/cosmos/nft/v1beta1/event.d.ts +10 -0
- package/lib/codec/cosmos/nft/v1beta1/genesis.d.ts +1 -0
- package/lib/codec/cosmos/nft/v1beta1/query.d.ts +20 -0
- package/lib/codec/cosmos/slashing/v1beta1/export.d.ts +1 -1
- package/lib/codec/cosmos/slashing/v1beta1/export.js +3 -1
- package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/slashing/v1beta1/tx.d.ts +46 -0
- package/lib/codec/cosmos/slashing/v1beta1/tx.js +101 -1
- package/lib/codec/cosmos/staking/v1beta1/export.d.ts +2 -2
- package/lib/codec/cosmos/staking/v1beta1/export.js +8 -2
- package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/staking/v1beta1/query.d.ts +36 -5
- package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +40 -1
- package/lib/codec/cosmos/staking/v1beta1/staking.js +212 -2
- package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +45 -1
- package/lib/codec/cosmos/staking/v1beta1/tx.js +100 -1
- package/lib/codec/cosmos/tx/v1beta1/export.d.ts +1 -1
- package/lib/codec/cosmos/tx/v1beta1/export.js +9 -1
- package/lib/codec/cosmos/tx/v1beta1/service.d.ts +164 -2
- package/lib/codec/cosmos/tx/v1beta1/service.js +407 -3
- package/lib/codec/cosmos/upgrade/v1beta1/tx.d.ts +3 -3
- package/lib/codec/cosmos/upgrade/v1beta1/upgrade.d.ts +6 -4
- package/lib/codec/ethermint/evm/v1/export.d.ts +2 -1
- package/lib/codec/ethermint/evm/v1/export.js +8 -1
- package/lib/codec/ethermint/evm/v1/tx.d.ts +37 -1
- package/lib/codec/ethermint/evm/v1/tx.js +100 -1
- package/lib/codec/ethermint/feemarket/v1/export.d.ts +2 -0
- package/lib/codec/ethermint/feemarket/v1/export.js +7 -1
- package/lib/codec/ethermint/feemarket/v1/feemarket.d.ts +10 -0
- package/lib/codec/ethermint/feemarket/v1/feemarket.js +28 -1
- package/lib/codec/ibc/applications/interchain_accounts/controller/export.d.ts +2 -1
- package/lib/codec/ibc/applications/interchain_accounts/controller/export.js +8 -1
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.d.ts +26 -0
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.js +113 -1
- package/lib/codec/ibc/applications/interchain_accounts/v1/export.d.ts +0 -1
- package/lib/codec/ibc/applications/interchain_accounts/v1/export.js +1 -6
- package/lib/codec/ibc/applications/transfer/v1/export.d.ts +2 -1
- package/lib/codec/ibc/applications/transfer/v1/export.js +8 -1
- package/lib/codec/ibc/applications/transfer/v1/genesis.d.ts +6 -0
- package/lib/codec/ibc/applications/transfer/v1/genesis.js +18 -2
- package/lib/codec/ibc/applications/transfer/v1/query.d.ts +56 -1
- package/lib/codec/ibc/applications/transfer/v1/query.js +210 -1
- package/lib/codec/ibc/applications/transfer/v1/tx.d.ts +8 -4
- package/lib/codec/ibc/applications/transfer/v1/tx.js +35 -6
- package/lib/codec/ibc/applications/transfer/v2/packet.d.ts +2 -0
- package/lib/codec/ibc/applications/transfer/v2/packet.js +14 -1
- package/lib/codec/ibc/core/channel/v1/channel.d.ts +20 -0
- package/lib/codec/ibc/core/channel/v1/channel.js +78 -1
- package/lib/codec/ibc/core/channel/v1/export.d.ts +1 -1
- package/lib/codec/ibc/core/channel/v1/export.js +3 -2
- package/lib/codec/ibc/core/channel/v1/tx.d.ts +16 -12
- package/lib/codec/ibc/core/channel/v1/tx.js +62 -25
- package/lib/codec/ibc/core/client/v1/client.d.ts +5 -1
- package/lib/codec/ibc/core/client/v1/export.d.ts +1 -1
- package/lib/codec/ibc/core/client/v1/export.js +3 -1
- package/lib/codec/ibc/core/client/v1/query.d.ts +38 -1
- package/lib/codec/ibc/core/client/v1/query.js +137 -1
- package/lib/codec/ibc/core/client/v1/tx.d.ts +19 -6
- package/lib/codec/ibc/core/client/v1/tx.js +13 -11
- package/lib/codec/ibc/core/commitment/v1/commitment.d.ts +1 -1
- package/lib/codec/ibc/core/commitment/v1/commitment.js +1 -1
- package/lib/codec/ibc/core/connection/v1/export.d.ts +1 -1
- package/lib/codec/ibc/core/connection/v1/export.js +3 -1
- package/lib/codec/ibc/core/connection/v1/query.d.ts +26 -1
- package/lib/codec/ibc/core/connection/v1/query.js +87 -1
- package/lib/codec/ibc/core/connection/v1/tx.d.ts +7 -2
- package/lib/codec/ibc/core/connection/v1/tx.js +38 -2
- package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.d.ts +12 -5
- package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.js +1 -1
- package/lib/codec/ibc-models.d.ts +3 -2
- package/lib/codec/ibc-models.js +4 -3
- package/lib/codec/index.d.ts +99 -20
- package/lib/codec/index.js +3371 -890
- package/lib/codec/tendermint/abci/types.d.ts +131 -84
- package/lib/codec/tendermint/abci/types.js +706 -350
- package/lib/codec/tendermint/types/params.d.ts +1 -8
- package/lib/codec/tendermint/types/params.js +13 -33
- package/lib/constant/signless.d.ts +2 -0
- package/lib/constant/signless.js +5 -0
- package/lib/insights/common.d.ts +1 -1
- package/lib/insights/common.js +1 -1
- package/lib/insights/funding.d.ts +13 -2
- package/lib/modules/evm.js +1 -1
- package/lib/modules/signless.d.ts +24 -0
- package/lib/modules/signless.js +108 -0
- package/lib/provider/amino/types/evm.js +1 -1
- package/lib/provider/amino/types/signless.d.ts +12 -0
- package/lib/provider/amino/types/signless.js +189 -0
- package/lib/util/signless.d.ts +11 -0
- package/lib/util/signless.js +92 -0
- package/lib/util/tx.d.ts +89 -7
- package/lib/wallet/CarbonWallet.js +6 -2
- package/package.json +1 -1
- package/lib/codec/adl/genesis.d.ts +0 -18
- package/lib/codec/adl/genesis.js +0 -46
- package/lib/codec/adl/query.d.ts +0 -12
- package/lib/codec/adl/query.js +0 -20
- package/lib/codec/adl/tx.d.ts +0 -12
- package/lib/codec/adl/tx.js +0 -20
- package/lib/codec/admin/export.d.ts +0 -2
- package/lib/codec/admin/export.js +0 -13
- package/lib/codec/admin/genesis.d.ts +0 -18
- package/lib/codec/admin/genesis.js +0 -46
- package/lib/codec/admin/query.d.ts +0 -62
- package/lib/codec/admin/query.js +0 -186
- package/lib/codec/admin/tx.d.ts +0 -62
- package/lib/codec/admin/tx.js +0 -198
- package/lib/codec/bank/event.d.ts +0 -65
- package/lib/codec/bank/event.js +0 -332
- package/lib/codec/bank/export.d.ts +0 -2
- package/lib/codec/bank/export.js +0 -14
- package/lib/codec/bank/genesis.d.ts +0 -18
- package/lib/codec/bank/genesis.js +0 -46
- package/lib/codec/bank/query.d.ts +0 -77
- package/lib/codec/bank/query.js +0 -459
- package/lib/codec/book/book.d.ts +0 -45
- package/lib/codec/book/book.js +0 -252
- package/lib/codec/book/event.d.ts +0 -22
- package/lib/codec/book/event.js +0 -113
- package/lib/codec/book/export.d.ts +0 -4
- package/lib/codec/book/export.js +0 -23
- package/lib/codec/book/genesis.d.ts +0 -25
- package/lib/codec/book/genesis.js +0 -79
- package/lib/codec/book/legacy.d.ts +0 -22
- package/lib/codec/book/legacy.js +0 -120
- package/lib/codec/book/query.d.ts +0 -94
- package/lib/codec/book/query.js +0 -383
- package/lib/codec/book/tx.d.ts +0 -12
- package/lib/codec/book/tx.js +0 -20
- package/lib/codec/broker/amm.d.ts +0 -22
- package/lib/codec/broker/amm.js +0 -151
- package/lib/codec/broker/candlestick.d.ts +0 -27
- package/lib/codec/broker/candlestick.js +0 -211
- package/lib/codec/broker/event.d.ts +0 -40
- package/lib/codec/broker/event.js +0 -397
- package/lib/codec/broker/export.d.ts +0 -7
- package/lib/codec/broker/export.js +0 -27
- package/lib/codec/broker/genesis.d.ts +0 -24
- package/lib/codec/broker/genesis.js +0 -64
- package/lib/codec/broker/incoming_liquidations.d.ts +0 -18
- package/lib/codec/broker/incoming_liquidations.js +0 -93
- package/lib/codec/broker/pagination.d.ts +0 -19
- package/lib/codec/broker/pagination.js +0 -78
- package/lib/codec/broker/query.d.ts +0 -107
- package/lib/codec/broker/query.js +0 -597
- package/lib/codec/broker/tx.d.ts +0 -53
- package/lib/codec/broker/tx.js +0 -176
- package/lib/codec/btcx/denom_cross_chain_info.d.ts +0 -21
- package/lib/codec/btcx/denom_cross_chain_info.js +0 -98
- package/lib/codec/btcx/denom_info.d.ts +0 -24
- package/lib/codec/btcx/denom_info.js +0 -140
- package/lib/codec/btcx/export.d.ts +0 -4
- package/lib/codec/btcx/export.js +0 -19
- package/lib/codec/btcx/genesis.d.ts +0 -18
- package/lib/codec/btcx/genesis.js +0 -46
- package/lib/codec/btcx/query.d.ts +0 -68
- package/lib/codec/btcx/query.js +0 -275
- package/lib/codec/btcx/tx.d.ts +0 -92
- package/lib/codec/btcx/tx.js +0 -436
- package/lib/codec/ccm/ccm.d.ts +0 -19
- package/lib/codec/ccm/ccm.js +0 -60
- package/lib/codec/ccm/export.d.ts +0 -4
- package/lib/codec/ccm/export.js +0 -20
- package/lib/codec/ccm/genesis.d.ts +0 -83
- package/lib/codec/ccm/genesis.js +0 -438
- package/lib/codec/ccm/query.d.ts +0 -45
- package/lib/codec/ccm/query.js +0 -197
- package/lib/codec/ccm/tx.d.ts +0 -97
- package/lib/codec/ccm/tx.js +0 -462
- package/lib/codec/cdp/asset_params.d.ts +0 -57
- package/lib/codec/cdp/asset_params.js +0 -411
- package/lib/codec/cdp/cdp_liquidations.d.ts +0 -32
- package/lib/codec/cdp/cdp_liquidations.js +0 -288
- package/lib/codec/cdp/debt_info.d.ts +0 -23
- package/lib/codec/cdp/debt_info.js +0 -158
- package/lib/codec/cdp/e_mode_category.d.ts +0 -23
- package/lib/codec/cdp/e_mode_category.js +0 -135
- package/lib/codec/cdp/event.d.ts +0 -439
- package/lib/codec/cdp/event.js +0 -2831
- package/lib/codec/cdp/export.d.ts +0 -13
- package/lib/codec/cdp/export.js +0 -210
- package/lib/codec/cdp/genesis.d.ts +0 -134
- package/lib/codec/cdp/genesis.js +0 -825
- package/lib/codec/cdp/params.d.ts +0 -70
- package/lib/codec/cdp/params.js +0 -220
- package/lib/codec/cdp/query.d.ts +0 -623
- package/lib/codec/cdp/query.js +0 -3012
- package/lib/codec/cdp/rate_strategy_params.d.ts +0 -26
- package/lib/codec/cdp/rate_strategy_params.js +0 -180
- package/lib/codec/cdp/reward_scheme.d.ts +0 -71
- package/lib/codec/cdp/reward_scheme.js +0 -550
- package/lib/codec/cdp/stablecoin_debt_info.d.ts +0 -22
- package/lib/codec/cdp/stablecoin_debt_info.js +0 -144
- package/lib/codec/cdp/stablecoin_interest_info.d.ts +0 -19
- package/lib/codec/cdp/stablecoin_interest_info.js +0 -99
- package/lib/codec/cdp/tx.d.ts +0 -1004
- package/lib/codec/cdp/tx.js +0 -5107
- package/lib/codec/coin/bridge.d.ts +0 -24
- package/lib/codec/coin/bridge.js +0 -151
- package/lib/codec/coin/event.d.ts +0 -143
- package/lib/codec/coin/event.js +0 -775
- package/lib/codec/coin/export.d.ts +0 -8
- package/lib/codec/coin/export.js +0 -107
- package/lib/codec/coin/genesis.d.ts +0 -42
- package/lib/codec/coin/genesis.js +0 -207
- package/lib/codec/coin/group.d.ts +0 -50
- package/lib/codec/coin/group.js +0 -230
- package/lib/codec/coin/proposal.d.ts +0 -21
- package/lib/codec/coin/proposal.js +0 -91
- package/lib/codec/coin/query.d.ts +0 -310
- package/lib/codec/coin/query.js +0 -1439
- package/lib/codec/coin/token.d.ts +0 -103
- package/lib/codec/coin/token.js +0 -681
- package/lib/codec/coin/tx.d.ts +0 -586
- package/lib/codec/coin/tx.js +0 -3131
- package/lib/codec/erc20/erc20.d.ts +0 -41
- package/lib/codec/erc20/erc20.js +0 -144
- package/lib/codec/erc20/events.d.ts +0 -76
- package/lib/codec/erc20/events.js +0 -330
- package/lib/codec/erc20/export.d.ts +0 -5
- package/lib/codec/erc20/export.js +0 -37
- package/lib/codec/erc20/genesis.d.ts +0 -40
- package/lib/codec/erc20/genesis.js +0 -139
- package/lib/codec/erc20/query.d.ts +0 -117
- package/lib/codec/erc20/query.js +0 -333
- package/lib/codec/erc20/tx.d.ts +0 -232
- package/lib/codec/erc20/tx.js +0 -765
- package/lib/codec/evmbank/export.d.ts +0 -2
- package/lib/codec/evmbank/export.js +0 -8
- package/lib/codec/evmbank/genesis.d.ts +0 -32
- package/lib/codec/evmbank/genesis.js +0 -152
- package/lib/codec/evmbank/query.d.ts +0 -40
- package/lib/codec/evmbank/query.js +0 -116
- package/lib/codec/evmcontract/genesis.d.ts +0 -18
- package/lib/codec/evmcontract/genesis.js +0 -46
- package/lib/codec/evmcontract/query.d.ts +0 -12
- package/lib/codec/evmcontract/query.js +0 -20
- package/lib/codec/evmcontract/tx.d.ts +0 -12
- package/lib/codec/evmcontract/tx.js +0 -20
- package/lib/codec/evmmerge/address.d.ts +0 -19
- package/lib/codec/evmmerge/address.js +0 -75
- package/lib/codec/evmmerge/event.d.ts +0 -20
- package/lib/codec/evmmerge/event.js +0 -90
- package/lib/codec/evmmerge/export.d.ts +0 -6
- package/lib/codec/evmmerge/export.js +0 -20
- package/lib/codec/evmmerge/genesis.d.ts +0 -48
- package/lib/codec/evmmerge/genesis.js +0 -216
- package/lib/codec/evmmerge/offchain.d.ts +0 -22
- package/lib/codec/evmmerge/offchain.js +0 -105
- package/lib/codec/evmmerge/query.d.ts +0 -75
- package/lib/codec/evmmerge/query.js +0 -254
- package/lib/codec/evmmerge/tx.d.ts +0 -45
- package/lib/codec/evmmerge/tx.js +0 -128
- package/lib/codec/fee/event.d.ts +0 -20
- package/lib/codec/fee/event.js +0 -83
- package/lib/codec/fee/export.d.ts +0 -5
- package/lib/codec/fee/export.js +0 -32
- package/lib/codec/fee/fee.d.ts +0 -42
- package/lib/codec/fee/fee.js +0 -183
- package/lib/codec/fee/genesis.d.ts +0 -23
- package/lib/codec/fee/genesis.js +0 -79
- package/lib/codec/fee/proposal.d.ts +0 -57
- package/lib/codec/fee/proposal.js +0 -311
- package/lib/codec/fee/query.d.ts +0 -114
- package/lib/codec/fee/query.js +0 -470
- package/lib/codec/fee/tx.d.ts +0 -108
- package/lib/codec/fee/tx.js +0 -415
- package/lib/codec/headersync/consensus_peers.d.ts +0 -70
- package/lib/codec/headersync/consensus_peers.js +0 -383
- package/lib/codec/headersync/export.d.ts +0 -4
- package/lib/codec/headersync/export.js +0 -24
- package/lib/codec/headersync/genesis.d.ts +0 -79
- package/lib/codec/headersync/genesis.js +0 -419
- package/lib/codec/headersync/query.d.ts +0 -64
- package/lib/codec/headersync/query.js +0 -231
- package/lib/codec/headersync/tx.d.ts +0 -64
- package/lib/codec/headersync/tx.js +0 -215
- package/lib/codec/inflation/export.d.ts +0 -2
- package/lib/codec/inflation/export.js +0 -8
- package/lib/codec/inflation/genesis.d.ts +0 -25
- package/lib/codec/inflation/genesis.js +0 -79
- package/lib/codec/inflation/inflation.d.ts +0 -22
- package/lib/codec/inflation/inflation.js +0 -110
- package/lib/codec/inflation/query.d.ts +0 -41
- package/lib/codec/inflation/query.js +0 -109
- package/lib/codec/inflation/tx.d.ts +0 -12
- package/lib/codec/inflation/tx.js +0 -20
- package/lib/codec/insurance/event.d.ts +0 -24
- package/lib/codec/insurance/event.js +0 -46
- package/lib/codec/insurance/export.d.ts +0 -4
- package/lib/codec/insurance/export.js +0 -14
- package/lib/codec/insurance/fund.d.ts +0 -29
- package/lib/codec/insurance/fund.js +0 -148
- package/lib/codec/insurance/genesis.d.ts +0 -18
- package/lib/codec/insurance/genesis.js +0 -46
- package/lib/codec/insurance/query.d.ts +0 -41
- package/lib/codec/insurance/query.js +0 -108
- package/lib/codec/insurance/tx.d.ts +0 -44
- package/lib/codec/insurance/tx.js +0 -144
- package/lib/codec/leverage/event.d.ts +0 -21
- package/lib/codec/leverage/event.js +0 -100
- package/lib/codec/leverage/export.d.ts +0 -4
- package/lib/codec/leverage/export.js +0 -16
- package/lib/codec/leverage/genesis.d.ts +0 -24
- package/lib/codec/leverage/genesis.js +0 -64
- package/lib/codec/leverage/leverage.d.ts +0 -30
- package/lib/codec/leverage/leverage.js +0 -134
- package/lib/codec/leverage/query.d.ts +0 -70
- package/lib/codec/leverage/query.js +0 -234
- package/lib/codec/leverage/tx.d.ts +0 -43
- package/lib/codec/leverage/tx.js +0 -127
- package/lib/codec/liquidation/export.d.ts +0 -5
- package/lib/codec/liquidation/export.js +0 -17
- package/lib/codec/liquidation/genesis.d.ts +0 -37
- package/lib/codec/liquidation/genesis.js +0 -136
- package/lib/codec/liquidation/liquidation.d.ts +0 -17
- package/lib/codec/liquidation/liquidation.js +0 -46
- package/lib/codec/liquidation/outstanding_position.d.ts +0 -33
- package/lib/codec/liquidation/outstanding_position.js +0 -203
- package/lib/codec/liquidation/query.d.ts +0 -77
- package/lib/codec/liquidation/query.js +0 -341
- package/lib/codec/liquidation/quote_changes.d.ts +0 -22
- package/lib/codec/liquidation/quote_changes.js +0 -95
- package/lib/codec/liquidation/tx.d.ts +0 -12
- package/lib/codec/liquidation/tx.js +0 -20
- package/lib/codec/liquiditypool/event.d.ts +0 -143
- package/lib/codec/liquiditypool/event.js +0 -975
- package/lib/codec/liquiditypool/export.d.ts +0 -6
- package/lib/codec/liquiditypool/export.js +0 -125
- package/lib/codec/liquiditypool/genesis.d.ts +0 -33
- package/lib/codec/liquiditypool/genesis.js +0 -243
- package/lib/codec/liquiditypool/liquiditypool.d.ts +0 -138
- package/lib/codec/liquiditypool/liquiditypool.js +0 -943
- package/lib/codec/liquiditypool/proposal.d.ts +0 -117
- package/lib/codec/liquiditypool/proposal.js +0 -697
- package/lib/codec/liquiditypool/query.d.ts +0 -419
- package/lib/codec/liquiditypool/query.js +0 -1985
- package/lib/codec/liquiditypool/reward.d.ts +0 -196
- package/lib/codec/liquiditypool/reward.js +0 -1218
- package/lib/codec/liquiditypool/tx.d.ts +0 -453
- package/lib/codec/liquiditypool/tx.js +0 -2423
- package/lib/codec/lockproxy/event.d.ts +0 -46
- package/lib/codec/lockproxy/event.js +0 -348
- package/lib/codec/lockproxy/export.d.ts +0 -5
- package/lib/codec/lockproxy/export.js +0 -28
- package/lib/codec/lockproxy/genesis.d.ts +0 -68
- package/lib/codec/lockproxy/genesis.js +0 -355
- package/lib/codec/lockproxy/lockproxy.d.ts +0 -22
- package/lib/codec/lockproxy/lockproxy.js +0 -147
- package/lib/codec/lockproxy/query.d.ts +0 -67
- package/lib/codec/lockproxy/query.js +0 -274
- package/lib/codec/lockproxy/tx.d.ts +0 -147
- package/lib/codec/lockproxy/tx.js +0 -808
- package/lib/codec/market/event.d.ts +0 -20
- package/lib/codec/market/event.js +0 -76
- package/lib/codec/market/export.d.ts +0 -6
- package/lib/codec/market/export.js +0 -61
- package/lib/codec/market/fee.d.ts +0 -123
- package/lib/codec/market/fee.js +0 -334
- package/lib/codec/market/genesis.d.ts +0 -31
- package/lib/codec/market/genesis.js +0 -147
- package/lib/codec/market/market.d.ts +0 -131
- package/lib/codec/market/market.js +0 -1245
- package/lib/codec/market/proposal.d.ts +0 -46
- package/lib/codec/market/proposal.js +0 -245
- package/lib/codec/market/query.d.ts +0 -233
- package/lib/codec/market/query.js +0 -938
- package/lib/codec/market/tx.d.ts +0 -250
- package/lib/codec/market/tx.js +0 -1265
- package/lib/codec/marketstats/export.d.ts +0 -3
- package/lib/codec/marketstats/export.js +0 -12
- package/lib/codec/marketstats/genesis.d.ts +0 -21
- package/lib/codec/marketstats/genesis.js +0 -63
- package/lib/codec/marketstats/marketstats.d.ts +0 -31
- package/lib/codec/marketstats/marketstats.js +0 -258
- package/lib/codec/marketstats/params.d.ts +0 -18
- package/lib/codec/marketstats/params.js +0 -46
- package/lib/codec/marketstats/query.d.ts +0 -66
- package/lib/codec/marketstats/query.js +0 -195
- package/lib/codec/marketstats/tx.d.ts +0 -12
- package/lib/codec/marketstats/tx.js +0 -20
- package/lib/codec/misc/block.d.ts +0 -21
- package/lib/codec/misc/block.js +0 -105
- package/lib/codec/misc/export.d.ts +0 -6
- package/lib/codec/misc/export.js +0 -29
- package/lib/codec/misc/message.d.ts +0 -22
- package/lib/codec/misc/message.js +0 -128
- package/lib/codec/misc/message_type.d.ts +0 -18
- package/lib/codec/misc/message_type.js +0 -60
- package/lib/codec/misc/query.d.ts +0 -192
- package/lib/codec/misc/query.js +0 -884
- package/lib/codec/misc/trade.d.ts +0 -28
- package/lib/codec/misc/trade.js +0 -224
- package/lib/codec/misc/transaction.d.ts +0 -45
- package/lib/codec/misc/transaction.js +0 -369
- package/lib/codec/oracle/event.d.ts +0 -37
- package/lib/codec/oracle/event.js +0 -228
- package/lib/codec/oracle/export.d.ts +0 -6
- package/lib/codec/oracle/export.js +0 -58
- package/lib/codec/oracle/genesis.d.ts +0 -28
- package/lib/codec/oracle/genesis.js +0 -141
- package/lib/codec/oracle/oracle.d.ts +0 -94
- package/lib/codec/oracle/oracle.js +0 -650
- package/lib/codec/oracle/proposal.d.ts +0 -21
- package/lib/codec/oracle/proposal.js +0 -91
- package/lib/codec/oracle/query.d.ts +0 -333
- package/lib/codec/oracle/query.js +0 -1545
- package/lib/codec/oracle/slashing.d.ts +0 -33
- package/lib/codec/oracle/slashing.js +0 -191
- package/lib/codec/oracle/tx.d.ts +0 -169
- package/lib/codec/oracle/tx.js +0 -877
- package/lib/codec/order/event.d.ts +0 -23
- package/lib/codec/order/event.js +0 -146
- package/lib/codec/order/export.d.ts +0 -5
- package/lib/codec/order/export.js +0 -39
- package/lib/codec/order/genesis.d.ts +0 -62
- package/lib/codec/order/genesis.js +0 -322
- package/lib/codec/order/order.d.ts +0 -113
- package/lib/codec/order/order.js +0 -875
- package/lib/codec/order/query.d.ts +0 -143
- package/lib/codec/order/query.js +0 -596
- package/lib/codec/order/tx.d.ts +0 -146
- package/lib/codec/order/tx.js +0 -715
- package/lib/codec/perpsliquidity/event.d.ts +0 -115
- package/lib/codec/perpsliquidity/event.js +0 -657
- package/lib/codec/perpsliquidity/genesis.d.ts +0 -36
- package/lib/codec/perpsliquidity/genesis.js +0 -163
- package/lib/codec/perpsliquidity/market.d.ts +0 -84
- package/lib/codec/perpsliquidity/market.js +0 -431
- package/lib/codec/perpsliquidity/params.d.ts +0 -27
- package/lib/codec/perpsliquidity/params.js +0 -129
- package/lib/codec/perpsliquidity/pool.d.ts +0 -119
- package/lib/codec/perpsliquidity/pool.js +0 -774
- package/lib/codec/perpsliquidity/query.d.ts +0 -246
- package/lib/codec/perpsliquidity/query.js +0 -1125
- package/lib/codec/perpsliquidity/tx.d.ts +0 -203
- package/lib/codec/perpsliquidity/tx.js +0 -973
- package/lib/codec/perpspool/event.d.ts +0 -95
- package/lib/codec/perpspool/event.js +0 -561
- package/lib/codec/perpspool/export.d.ts +0 -7
- package/lib/codec/perpspool/export.js +0 -68
- package/lib/codec/perpspool/genesis.d.ts +0 -61
- package/lib/codec/perpspool/genesis.js +0 -343
- package/lib/codec/perpspool/market.d.ts +0 -96
- package/lib/codec/perpspool/market.js +0 -493
- package/lib/codec/perpspool/params.d.ts +0 -30
- package/lib/codec/perpspool/params.js +0 -189
- package/lib/codec/perpspool/pool.d.ts +0 -103
- package/lib/codec/perpspool/pool.js +0 -638
- package/lib/codec/perpspool/query.d.ts +0 -247
- package/lib/codec/perpspool/query.js +0 -1141
- package/lib/codec/perpspool/tx.d.ts +0 -229
- package/lib/codec/perpspool/tx.js +0 -1144
- package/lib/codec/position/event.d.ts +0 -26
- package/lib/codec/position/event.js +0 -180
- package/lib/codec/position/export.d.ts +0 -4
- package/lib/codec/position/export.js +0 -20
- package/lib/codec/position/genesis.d.ts +0 -24
- package/lib/codec/position/genesis.js +0 -64
- package/lib/codec/position/position.d.ts +0 -72
- package/lib/codec/position/position.js +0 -567
- package/lib/codec/position/query.d.ts +0 -92
- package/lib/codec/position/query.js +0 -400
- package/lib/codec/position/tx.d.ts +0 -42
- package/lib/codec/position/tx.js +0 -127
- package/lib/codec/pricing/event.d.ts +0 -74
- package/lib/codec/pricing/event.js +0 -361
- package/lib/codec/pricing/export.d.ts +0 -6
- package/lib/codec/pricing/export.js +0 -45
- package/lib/codec/pricing/genesis.d.ts +0 -26
- package/lib/codec/pricing/genesis.js +0 -95
- package/lib/codec/pricing/legacy.d.ts +0 -22
- package/lib/codec/pricing/legacy.js +0 -93
- package/lib/codec/pricing/pricing.d.ts +0 -60
- package/lib/codec/pricing/pricing.js +0 -456
- package/lib/codec/pricing/proposal.d.ts +0 -31
- package/lib/codec/pricing/proposal.js +0 -148
- package/lib/codec/pricing/query.d.ts +0 -183
- package/lib/codec/pricing/query.js +0 -759
- package/lib/codec/pricing/tx.d.ts +0 -131
- package/lib/codec/pricing/tx.js +0 -529
- package/lib/codec/profile/event.d.ts +0 -20
- package/lib/codec/profile/event.js +0 -78
- package/lib/codec/profile/export.d.ts +0 -4
- package/lib/codec/profile/export.js +0 -17
- package/lib/codec/profile/genesis.d.ts +0 -24
- package/lib/codec/profile/genesis.js +0 -64
- package/lib/codec/profile/profile.d.ts +0 -20
- package/lib/codec/profile/profile.js +0 -83
- package/lib/codec/profile/query.d.ts +0 -92
- package/lib/codec/profile/query.js +0 -360
- package/lib/codec/profile/tx.d.ts +0 -43
- package/lib/codec/profile/tx.js +0 -127
- package/lib/codec/sequence/export.d.ts +0 -3
- package/lib/codec/sequence/export.js +0 -13
- package/lib/codec/sequence/genesis.d.ts +0 -30
- package/lib/codec/sequence/genesis.js +0 -122
- package/lib/codec/sequence/query.d.ts +0 -63
- package/lib/codec/sequence/query.js +0 -208
- package/lib/codec/sequence/tx.d.ts +0 -41
- package/lib/codec/sequence/tx.js +0 -148
- package/lib/codec/subaccount/export.d.ts +0 -4
- package/lib/codec/subaccount/export.js +0 -35
- package/lib/codec/subaccount/genesis.d.ts +0 -24
- package/lib/codec/subaccount/genesis.js +0 -64
- package/lib/codec/subaccount/legacy.d.ts +0 -19
- package/lib/codec/subaccount/legacy.js +0 -72
- package/lib/codec/subaccount/query.d.ts +0 -115
- package/lib/codec/subaccount/query.js +0 -456
- package/lib/codec/subaccount/subaccount.d.ts +0 -31
- package/lib/codec/subaccount/subaccount.js +0 -146
- package/lib/codec/subaccount/tx.d.ts +0 -86
- package/lib/codec/subaccount/tx.js +0 -310
- package/lib/modules/feemarket.d.ts +0 -20
- package/lib/modules/feemarket.js +0 -45
- package/lib/modules/perpsliquidity.d.ts +0 -49
- package/lib/modules/perpsliquidity.js +0 -118
- package/lib/provider/amino/types/perpsliquidity.d.ts +0 -4
- package/lib/provider/amino/types/perpsliquidity.js +0 -73
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
3
|
import { Params, DenomTrace } from "./transfer";
|
|
4
|
+
import { Coin } from "../../../../cosmos/base/v1beta1/coin";
|
|
4
5
|
export declare const protobufPackage = "ibc.applications.transfer.v1";
|
|
5
6
|
/** GenesisState defines the ibc-transfer genesis state */
|
|
6
7
|
export interface GenesisState {
|
|
7
8
|
portId: string;
|
|
8
9
|
denomTraces: DenomTrace[];
|
|
9
10
|
params?: Params;
|
|
11
|
+
/**
|
|
12
|
+
* total_escrowed contains the total amount of tokens escrowed
|
|
13
|
+
* by the transfer module
|
|
14
|
+
*/
|
|
15
|
+
totalEscrowed: Coin[];
|
|
10
16
|
}
|
|
11
17
|
export declare const GenesisState: {
|
|
12
18
|
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -8,6 +8,7 @@ exports.GenesisState = exports.protobufPackage = void 0;
|
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
10
|
const transfer_1 = require("./transfer");
|
|
11
|
+
const coin_1 = require("../../../../cosmos/base/v1beta1/coin");
|
|
11
12
|
exports.protobufPackage = "ibc.applications.transfer.v1";
|
|
12
13
|
const baseGenesisState = { portId: "" };
|
|
13
14
|
exports.GenesisState = {
|
|
@@ -21,6 +22,9 @@ exports.GenesisState = {
|
|
|
21
22
|
if (message.params !== undefined) {
|
|
22
23
|
transfer_1.Params.encode(message.params, writer.uint32(26).fork()).ldelim();
|
|
23
24
|
}
|
|
25
|
+
for (const v of message.totalEscrowed) {
|
|
26
|
+
coin_1.Coin.encode(v, writer.uint32(34).fork()).ldelim();
|
|
27
|
+
}
|
|
24
28
|
return writer;
|
|
25
29
|
},
|
|
26
30
|
decode(input, length) {
|
|
@@ -28,6 +32,7 @@ exports.GenesisState = {
|
|
|
28
32
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
29
33
|
const message = Object.assign({}, baseGenesisState);
|
|
30
34
|
message.denomTraces = [];
|
|
35
|
+
message.totalEscrowed = [];
|
|
31
36
|
while (reader.pos < end) {
|
|
32
37
|
const tag = reader.uint32();
|
|
33
38
|
switch (tag >>> 3) {
|
|
@@ -40,6 +45,9 @@ exports.GenesisState = {
|
|
|
40
45
|
case 3:
|
|
41
46
|
message.params = transfer_1.Params.decode(reader, reader.uint32());
|
|
42
47
|
break;
|
|
48
|
+
case 4:
|
|
49
|
+
message.totalEscrowed.push(coin_1.Coin.decode(reader, reader.uint32()));
|
|
50
|
+
break;
|
|
43
51
|
default:
|
|
44
52
|
reader.skipType(tag & 7);
|
|
45
53
|
break;
|
|
@@ -48,7 +56,7 @@ exports.GenesisState = {
|
|
|
48
56
|
return message;
|
|
49
57
|
},
|
|
50
58
|
fromJSON(object) {
|
|
51
|
-
var _a;
|
|
59
|
+
var _a, _b;
|
|
52
60
|
const message = Object.assign({}, baseGenesisState);
|
|
53
61
|
message.portId =
|
|
54
62
|
object.portId !== undefined && object.portId !== null
|
|
@@ -59,6 +67,7 @@ exports.GenesisState = {
|
|
|
59
67
|
object.params !== undefined && object.params !== null
|
|
60
68
|
? transfer_1.Params.fromJSON(object.params)
|
|
61
69
|
: undefined;
|
|
70
|
+
message.totalEscrowed = ((_b = object.totalEscrowed) !== null && _b !== void 0 ? _b : []).map((e) => coin_1.Coin.fromJSON(e));
|
|
62
71
|
return message;
|
|
63
72
|
},
|
|
64
73
|
toJSON(message) {
|
|
@@ -72,10 +81,16 @@ exports.GenesisState = {
|
|
|
72
81
|
}
|
|
73
82
|
message.params !== undefined &&
|
|
74
83
|
(obj.params = message.params ? transfer_1.Params.toJSON(message.params) : undefined);
|
|
84
|
+
if (message.totalEscrowed) {
|
|
85
|
+
obj.totalEscrowed = message.totalEscrowed.map((e) => e ? coin_1.Coin.toJSON(e) : undefined);
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
obj.totalEscrowed = [];
|
|
89
|
+
}
|
|
75
90
|
return obj;
|
|
76
91
|
},
|
|
77
92
|
fromPartial(object) {
|
|
78
|
-
var _a, _b;
|
|
93
|
+
var _a, _b, _c;
|
|
79
94
|
const message = Object.assign({}, baseGenesisState);
|
|
80
95
|
message.portId = (_a = object.portId) !== null && _a !== void 0 ? _a : "";
|
|
81
96
|
message.denomTraces = ((_b = object.denomTraces) !== null && _b !== void 0 ? _b : []).map((e) => transfer_1.DenomTrace.fromPartial(e));
|
|
@@ -83,6 +98,7 @@ exports.GenesisState = {
|
|
|
83
98
|
object.params !== undefined && object.params !== null
|
|
84
99
|
? transfer_1.Params.fromPartial(object.params)
|
|
85
100
|
: undefined;
|
|
101
|
+
message.totalEscrowed = ((_c = object.totalEscrowed) !== null && _c !== void 0 ? _c : []).map((e) => coin_1.Coin.fromPartial(e));
|
|
86
102
|
return message;
|
|
87
103
|
},
|
|
88
104
|
};
|
|
@@ -2,13 +2,14 @@ import Long from "long";
|
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
3
|
import { DenomTrace, Params } from "./transfer";
|
|
4
4
|
import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination";
|
|
5
|
+
import { Coin } from "../../../../cosmos/base/v1beta1/coin";
|
|
5
6
|
export declare const protobufPackage = "ibc.applications.transfer.v1";
|
|
6
7
|
/**
|
|
7
8
|
* QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC
|
|
8
9
|
* method
|
|
9
10
|
*/
|
|
10
11
|
export interface QueryDenomTraceRequest {
|
|
11
|
-
/** hash (in hex format) of the denomination trace information. */
|
|
12
|
+
/** hash (in hex format) or denom (full denom with ibc prefix) of the denomination trace information. */
|
|
12
13
|
hash: string;
|
|
13
14
|
}
|
|
14
15
|
/**
|
|
@@ -61,6 +62,26 @@ export interface QueryDenomHashResponse {
|
|
|
61
62
|
/** hash (in hex format) of the denomination trace information. */
|
|
62
63
|
hash: string;
|
|
63
64
|
}
|
|
65
|
+
/** QueryEscrowAddressRequest is the request type for the EscrowAddress RPC method. */
|
|
66
|
+
export interface QueryEscrowAddressRequest {
|
|
67
|
+
/** unique port identifier */
|
|
68
|
+
portId: string;
|
|
69
|
+
/** unique channel identifier */
|
|
70
|
+
channelId: string;
|
|
71
|
+
}
|
|
72
|
+
/** QueryEscrowAddressResponse is the response type of the EscrowAddress RPC method. */
|
|
73
|
+
export interface QueryEscrowAddressResponse {
|
|
74
|
+
/** the escrow account address */
|
|
75
|
+
escrowAddress: string;
|
|
76
|
+
}
|
|
77
|
+
/** QueryTotalEscrowForDenomRequest is the request type for TotalEscrowForDenom RPC method. */
|
|
78
|
+
export interface QueryTotalEscrowForDenomRequest {
|
|
79
|
+
denom: string;
|
|
80
|
+
}
|
|
81
|
+
/** QueryTotalEscrowForDenomResponse is the response type for TotalEscrowForDenom RPC method. */
|
|
82
|
+
export interface QueryTotalEscrowForDenomResponse {
|
|
83
|
+
amount?: Coin;
|
|
84
|
+
}
|
|
64
85
|
export declare const QueryDenomTraceRequest: {
|
|
65
86
|
encode(message: QueryDenomTraceRequest, writer?: _m0.Writer): _m0.Writer;
|
|
66
87
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryDenomTraceRequest;
|
|
@@ -117,6 +138,34 @@ export declare const QueryDenomHashResponse: {
|
|
|
117
138
|
toJSON(message: QueryDenomHashResponse): unknown;
|
|
118
139
|
fromPartial(object: DeepPartial<QueryDenomHashResponse>): QueryDenomHashResponse;
|
|
119
140
|
};
|
|
141
|
+
export declare const QueryEscrowAddressRequest: {
|
|
142
|
+
encode(message: QueryEscrowAddressRequest, writer?: _m0.Writer): _m0.Writer;
|
|
143
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryEscrowAddressRequest;
|
|
144
|
+
fromJSON(object: any): QueryEscrowAddressRequest;
|
|
145
|
+
toJSON(message: QueryEscrowAddressRequest): unknown;
|
|
146
|
+
fromPartial(object: DeepPartial<QueryEscrowAddressRequest>): QueryEscrowAddressRequest;
|
|
147
|
+
};
|
|
148
|
+
export declare const QueryEscrowAddressResponse: {
|
|
149
|
+
encode(message: QueryEscrowAddressResponse, writer?: _m0.Writer): _m0.Writer;
|
|
150
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryEscrowAddressResponse;
|
|
151
|
+
fromJSON(object: any): QueryEscrowAddressResponse;
|
|
152
|
+
toJSON(message: QueryEscrowAddressResponse): unknown;
|
|
153
|
+
fromPartial(object: DeepPartial<QueryEscrowAddressResponse>): QueryEscrowAddressResponse;
|
|
154
|
+
};
|
|
155
|
+
export declare const QueryTotalEscrowForDenomRequest: {
|
|
156
|
+
encode(message: QueryTotalEscrowForDenomRequest, writer?: _m0.Writer): _m0.Writer;
|
|
157
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryTotalEscrowForDenomRequest;
|
|
158
|
+
fromJSON(object: any): QueryTotalEscrowForDenomRequest;
|
|
159
|
+
toJSON(message: QueryTotalEscrowForDenomRequest): unknown;
|
|
160
|
+
fromPartial(object: DeepPartial<QueryTotalEscrowForDenomRequest>): QueryTotalEscrowForDenomRequest;
|
|
161
|
+
};
|
|
162
|
+
export declare const QueryTotalEscrowForDenomResponse: {
|
|
163
|
+
encode(message: QueryTotalEscrowForDenomResponse, writer?: _m0.Writer): _m0.Writer;
|
|
164
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryTotalEscrowForDenomResponse;
|
|
165
|
+
fromJSON(object: any): QueryTotalEscrowForDenomResponse;
|
|
166
|
+
toJSON(message: QueryTotalEscrowForDenomResponse): unknown;
|
|
167
|
+
fromPartial(object: DeepPartial<QueryTotalEscrowForDenomResponse>): QueryTotalEscrowForDenomResponse;
|
|
168
|
+
};
|
|
120
169
|
/** Query provides defines the gRPC querier service. */
|
|
121
170
|
export interface Query {
|
|
122
171
|
/** DenomTrace queries a denomination trace information. */
|
|
@@ -127,6 +176,10 @@ export interface Query {
|
|
|
127
176
|
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
128
177
|
/** DenomHash queries a denomination hash information. */
|
|
129
178
|
DenomHash(request: QueryDenomHashRequest): Promise<QueryDenomHashResponse>;
|
|
179
|
+
/** EscrowAddress returns the escrow address for a particular port and channel id. */
|
|
180
|
+
EscrowAddress(request: QueryEscrowAddressRequest): Promise<QueryEscrowAddressResponse>;
|
|
181
|
+
/** TotalEscrowForDenom returns the total amount of tokens in escrow based on the denom. */
|
|
182
|
+
TotalEscrowForDenom(request: QueryTotalEscrowForDenomRequest): Promise<QueryTotalEscrowForDenomResponse>;
|
|
130
183
|
}
|
|
131
184
|
export declare class QueryClientImpl implements Query {
|
|
132
185
|
private readonly rpc;
|
|
@@ -135,6 +188,8 @@ export declare class QueryClientImpl implements Query {
|
|
|
135
188
|
DenomTraces(request: QueryDenomTracesRequest): Promise<QueryDenomTracesResponse>;
|
|
136
189
|
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
137
190
|
DenomHash(request: QueryDenomHashRequest): Promise<QueryDenomHashResponse>;
|
|
191
|
+
EscrowAddress(request: QueryEscrowAddressRequest): Promise<QueryEscrowAddressResponse>;
|
|
192
|
+
TotalEscrowForDenom(request: QueryTotalEscrowForDenomRequest): Promise<QueryTotalEscrowForDenomResponse>;
|
|
138
193
|
}
|
|
139
194
|
interface Rpc {
|
|
140
195
|
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
@@ -3,12 +3,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.QueryClientImpl = exports.QueryDenomHashResponse = exports.QueryDenomHashRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryDenomTracesResponse = exports.QueryDenomTracesRequest = exports.QueryDenomTraceResponse = exports.QueryDenomTraceRequest = exports.protobufPackage = void 0;
|
|
6
|
+
exports.QueryClientImpl = exports.QueryTotalEscrowForDenomResponse = exports.QueryTotalEscrowForDenomRequest = exports.QueryEscrowAddressResponse = exports.QueryEscrowAddressRequest = exports.QueryDenomHashResponse = exports.QueryDenomHashRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryDenomTracesResponse = exports.QueryDenomTracesRequest = exports.QueryDenomTraceResponse = exports.QueryDenomTraceRequest = exports.protobufPackage = void 0;
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
10
|
const transfer_1 = require("./transfer");
|
|
11
11
|
const pagination_1 = require("../../../../cosmos/base/query/v1beta1/pagination");
|
|
12
|
+
const coin_1 = require("../../../../cosmos/base/v1beta1/coin");
|
|
12
13
|
exports.protobufPackage = "ibc.applications.transfer.v1";
|
|
13
14
|
const baseQueryDenomTraceRequest = { hash: "" };
|
|
14
15
|
exports.QueryDenomTraceRequest = {
|
|
@@ -392,6 +393,202 @@ exports.QueryDenomHashResponse = {
|
|
|
392
393
|
return message;
|
|
393
394
|
},
|
|
394
395
|
};
|
|
396
|
+
const baseQueryEscrowAddressRequest = { portId: "", channelId: "" };
|
|
397
|
+
exports.QueryEscrowAddressRequest = {
|
|
398
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
399
|
+
if (message.portId !== "") {
|
|
400
|
+
writer.uint32(10).string(message.portId);
|
|
401
|
+
}
|
|
402
|
+
if (message.channelId !== "") {
|
|
403
|
+
writer.uint32(18).string(message.channelId);
|
|
404
|
+
}
|
|
405
|
+
return writer;
|
|
406
|
+
},
|
|
407
|
+
decode(input, length) {
|
|
408
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
409
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
410
|
+
const message = Object.assign({}, baseQueryEscrowAddressRequest);
|
|
411
|
+
while (reader.pos < end) {
|
|
412
|
+
const tag = reader.uint32();
|
|
413
|
+
switch (tag >>> 3) {
|
|
414
|
+
case 1:
|
|
415
|
+
message.portId = reader.string();
|
|
416
|
+
break;
|
|
417
|
+
case 2:
|
|
418
|
+
message.channelId = reader.string();
|
|
419
|
+
break;
|
|
420
|
+
default:
|
|
421
|
+
reader.skipType(tag & 7);
|
|
422
|
+
break;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
return message;
|
|
426
|
+
},
|
|
427
|
+
fromJSON(object) {
|
|
428
|
+
const message = Object.assign({}, baseQueryEscrowAddressRequest);
|
|
429
|
+
message.portId =
|
|
430
|
+
object.portId !== undefined && object.portId !== null
|
|
431
|
+
? String(object.portId)
|
|
432
|
+
: "";
|
|
433
|
+
message.channelId =
|
|
434
|
+
object.channelId !== undefined && object.channelId !== null
|
|
435
|
+
? String(object.channelId)
|
|
436
|
+
: "";
|
|
437
|
+
return message;
|
|
438
|
+
},
|
|
439
|
+
toJSON(message) {
|
|
440
|
+
const obj = {};
|
|
441
|
+
message.portId !== undefined && (obj.portId = message.portId);
|
|
442
|
+
message.channelId !== undefined && (obj.channelId = message.channelId);
|
|
443
|
+
return obj;
|
|
444
|
+
},
|
|
445
|
+
fromPartial(object) {
|
|
446
|
+
var _a, _b;
|
|
447
|
+
const message = Object.assign({}, baseQueryEscrowAddressRequest);
|
|
448
|
+
message.portId = (_a = object.portId) !== null && _a !== void 0 ? _a : "";
|
|
449
|
+
message.channelId = (_b = object.channelId) !== null && _b !== void 0 ? _b : "";
|
|
450
|
+
return message;
|
|
451
|
+
},
|
|
452
|
+
};
|
|
453
|
+
const baseQueryEscrowAddressResponse = { escrowAddress: "" };
|
|
454
|
+
exports.QueryEscrowAddressResponse = {
|
|
455
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
456
|
+
if (message.escrowAddress !== "") {
|
|
457
|
+
writer.uint32(10).string(message.escrowAddress);
|
|
458
|
+
}
|
|
459
|
+
return writer;
|
|
460
|
+
},
|
|
461
|
+
decode(input, length) {
|
|
462
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
463
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
464
|
+
const message = Object.assign({}, baseQueryEscrowAddressResponse);
|
|
465
|
+
while (reader.pos < end) {
|
|
466
|
+
const tag = reader.uint32();
|
|
467
|
+
switch (tag >>> 3) {
|
|
468
|
+
case 1:
|
|
469
|
+
message.escrowAddress = reader.string();
|
|
470
|
+
break;
|
|
471
|
+
default:
|
|
472
|
+
reader.skipType(tag & 7);
|
|
473
|
+
break;
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
return message;
|
|
477
|
+
},
|
|
478
|
+
fromJSON(object) {
|
|
479
|
+
const message = Object.assign({}, baseQueryEscrowAddressResponse);
|
|
480
|
+
message.escrowAddress =
|
|
481
|
+
object.escrowAddress !== undefined && object.escrowAddress !== null
|
|
482
|
+
? String(object.escrowAddress)
|
|
483
|
+
: "";
|
|
484
|
+
return message;
|
|
485
|
+
},
|
|
486
|
+
toJSON(message) {
|
|
487
|
+
const obj = {};
|
|
488
|
+
message.escrowAddress !== undefined &&
|
|
489
|
+
(obj.escrowAddress = message.escrowAddress);
|
|
490
|
+
return obj;
|
|
491
|
+
},
|
|
492
|
+
fromPartial(object) {
|
|
493
|
+
var _a;
|
|
494
|
+
const message = Object.assign({}, baseQueryEscrowAddressResponse);
|
|
495
|
+
message.escrowAddress = (_a = object.escrowAddress) !== null && _a !== void 0 ? _a : "";
|
|
496
|
+
return message;
|
|
497
|
+
},
|
|
498
|
+
};
|
|
499
|
+
const baseQueryTotalEscrowForDenomRequest = { denom: "" };
|
|
500
|
+
exports.QueryTotalEscrowForDenomRequest = {
|
|
501
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
502
|
+
if (message.denom !== "") {
|
|
503
|
+
writer.uint32(10).string(message.denom);
|
|
504
|
+
}
|
|
505
|
+
return writer;
|
|
506
|
+
},
|
|
507
|
+
decode(input, length) {
|
|
508
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
509
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
510
|
+
const message = Object.assign({}, baseQueryTotalEscrowForDenomRequest);
|
|
511
|
+
while (reader.pos < end) {
|
|
512
|
+
const tag = reader.uint32();
|
|
513
|
+
switch (tag >>> 3) {
|
|
514
|
+
case 1:
|
|
515
|
+
message.denom = reader.string();
|
|
516
|
+
break;
|
|
517
|
+
default:
|
|
518
|
+
reader.skipType(tag & 7);
|
|
519
|
+
break;
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
return message;
|
|
523
|
+
},
|
|
524
|
+
fromJSON(object) {
|
|
525
|
+
const message = Object.assign({}, baseQueryTotalEscrowForDenomRequest);
|
|
526
|
+
message.denom =
|
|
527
|
+
object.denom !== undefined && object.denom !== null
|
|
528
|
+
? String(object.denom)
|
|
529
|
+
: "";
|
|
530
|
+
return message;
|
|
531
|
+
},
|
|
532
|
+
toJSON(message) {
|
|
533
|
+
const obj = {};
|
|
534
|
+
message.denom !== undefined && (obj.denom = message.denom);
|
|
535
|
+
return obj;
|
|
536
|
+
},
|
|
537
|
+
fromPartial(object) {
|
|
538
|
+
var _a;
|
|
539
|
+
const message = Object.assign({}, baseQueryTotalEscrowForDenomRequest);
|
|
540
|
+
message.denom = (_a = object.denom) !== null && _a !== void 0 ? _a : "";
|
|
541
|
+
return message;
|
|
542
|
+
},
|
|
543
|
+
};
|
|
544
|
+
const baseQueryTotalEscrowForDenomResponse = {};
|
|
545
|
+
exports.QueryTotalEscrowForDenomResponse = {
|
|
546
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
547
|
+
if (message.amount !== undefined) {
|
|
548
|
+
coin_1.Coin.encode(message.amount, writer.uint32(10).fork()).ldelim();
|
|
549
|
+
}
|
|
550
|
+
return writer;
|
|
551
|
+
},
|
|
552
|
+
decode(input, length) {
|
|
553
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
554
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
555
|
+
const message = Object.assign({}, baseQueryTotalEscrowForDenomResponse);
|
|
556
|
+
while (reader.pos < end) {
|
|
557
|
+
const tag = reader.uint32();
|
|
558
|
+
switch (tag >>> 3) {
|
|
559
|
+
case 1:
|
|
560
|
+
message.amount = coin_1.Coin.decode(reader, reader.uint32());
|
|
561
|
+
break;
|
|
562
|
+
default:
|
|
563
|
+
reader.skipType(tag & 7);
|
|
564
|
+
break;
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
return message;
|
|
568
|
+
},
|
|
569
|
+
fromJSON(object) {
|
|
570
|
+
const message = Object.assign({}, baseQueryTotalEscrowForDenomResponse);
|
|
571
|
+
message.amount =
|
|
572
|
+
object.amount !== undefined && object.amount !== null
|
|
573
|
+
? coin_1.Coin.fromJSON(object.amount)
|
|
574
|
+
: undefined;
|
|
575
|
+
return message;
|
|
576
|
+
},
|
|
577
|
+
toJSON(message) {
|
|
578
|
+
const obj = {};
|
|
579
|
+
message.amount !== undefined &&
|
|
580
|
+
(obj.amount = message.amount ? coin_1.Coin.toJSON(message.amount) : undefined);
|
|
581
|
+
return obj;
|
|
582
|
+
},
|
|
583
|
+
fromPartial(object) {
|
|
584
|
+
const message = Object.assign({}, baseQueryTotalEscrowForDenomResponse);
|
|
585
|
+
message.amount =
|
|
586
|
+
object.amount !== undefined && object.amount !== null
|
|
587
|
+
? coin_1.Coin.fromPartial(object.amount)
|
|
588
|
+
: undefined;
|
|
589
|
+
return message;
|
|
590
|
+
},
|
|
591
|
+
};
|
|
395
592
|
class QueryClientImpl {
|
|
396
593
|
constructor(rpc) {
|
|
397
594
|
this.rpc = rpc;
|
|
@@ -399,6 +596,8 @@ class QueryClientImpl {
|
|
|
399
596
|
this.DenomTraces = this.DenomTraces.bind(this);
|
|
400
597
|
this.Params = this.Params.bind(this);
|
|
401
598
|
this.DenomHash = this.DenomHash.bind(this);
|
|
599
|
+
this.EscrowAddress = this.EscrowAddress.bind(this);
|
|
600
|
+
this.TotalEscrowForDenom = this.TotalEscrowForDenom.bind(this);
|
|
402
601
|
}
|
|
403
602
|
DenomTrace(request) {
|
|
404
603
|
const data = exports.QueryDenomTraceRequest.encode(request).finish();
|
|
@@ -420,6 +619,16 @@ class QueryClientImpl {
|
|
|
420
619
|
const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "DenomHash", data);
|
|
421
620
|
return promise.then((data) => exports.QueryDenomHashResponse.decode(new minimal_1.default.Reader(data)));
|
|
422
621
|
}
|
|
622
|
+
EscrowAddress(request) {
|
|
623
|
+
const data = exports.QueryEscrowAddressRequest.encode(request).finish();
|
|
624
|
+
const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "EscrowAddress", data);
|
|
625
|
+
return promise.then((data) => exports.QueryEscrowAddressResponse.decode(new minimal_1.default.Reader(data)));
|
|
626
|
+
}
|
|
627
|
+
TotalEscrowForDenom(request) {
|
|
628
|
+
const data = exports.QueryTotalEscrowForDenomRequest.encode(request).finish();
|
|
629
|
+
const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "TotalEscrowForDenom", data);
|
|
630
|
+
return promise.then((data) => exports.QueryTotalEscrowForDenomResponse.decode(new minimal_1.default.Reader(data)));
|
|
631
|
+
}
|
|
423
632
|
}
|
|
424
633
|
exports.QueryClientImpl = QueryClientImpl;
|
|
425
634
|
if (minimal_1.default.util.Long !== long_1.default) {
|
|
@@ -29,9 +29,13 @@ export interface MsgTransfer {
|
|
|
29
29
|
* The timeout is disabled when set to 0.
|
|
30
30
|
*/
|
|
31
31
|
timeoutTimestamp: Long;
|
|
32
|
+
/** optional memo */
|
|
33
|
+
memo: string;
|
|
32
34
|
}
|
|
33
35
|
/** MsgTransferResponse defines the Msg/Transfer response type. */
|
|
34
36
|
export interface MsgTransferResponse {
|
|
37
|
+
/** sequence number of the transfer packet sent */
|
|
38
|
+
sequence: Long;
|
|
35
39
|
}
|
|
36
40
|
export declare const MsgTransfer: {
|
|
37
41
|
encode(message: MsgTransfer, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -41,11 +45,11 @@ export declare const MsgTransfer: {
|
|
|
41
45
|
fromPartial(object: DeepPartial<MsgTransfer>): MsgTransfer;
|
|
42
46
|
};
|
|
43
47
|
export declare const MsgTransferResponse: {
|
|
44
|
-
encode(
|
|
48
|
+
encode(message: MsgTransferResponse, writer?: _m0.Writer): _m0.Writer;
|
|
45
49
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgTransferResponse;
|
|
46
|
-
fromJSON(
|
|
47
|
-
toJSON(
|
|
48
|
-
fromPartial(
|
|
50
|
+
fromJSON(object: any): MsgTransferResponse;
|
|
51
|
+
toJSON(message: MsgTransferResponse): unknown;
|
|
52
|
+
fromPartial(object: DeepPartial<MsgTransferResponse>): MsgTransferResponse;
|
|
49
53
|
};
|
|
50
54
|
/** Msg defines the ibc/transfer Msg service. */
|
|
51
55
|
export interface Msg {
|
|
@@ -16,6 +16,7 @@ const baseMsgTransfer = {
|
|
|
16
16
|
sender: "",
|
|
17
17
|
receiver: "",
|
|
18
18
|
timeoutTimestamp: long_1.default.UZERO,
|
|
19
|
+
memo: "",
|
|
19
20
|
};
|
|
20
21
|
exports.MsgTransfer = {
|
|
21
22
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -40,6 +41,9 @@ exports.MsgTransfer = {
|
|
|
40
41
|
if (!message.timeoutTimestamp.isZero()) {
|
|
41
42
|
writer.uint32(56).uint64(message.timeoutTimestamp);
|
|
42
43
|
}
|
|
44
|
+
if (message.memo !== "") {
|
|
45
|
+
writer.uint32(66).string(message.memo);
|
|
46
|
+
}
|
|
43
47
|
return writer;
|
|
44
48
|
},
|
|
45
49
|
decode(input, length) {
|
|
@@ -70,6 +74,9 @@ exports.MsgTransfer = {
|
|
|
70
74
|
case 7:
|
|
71
75
|
message.timeoutTimestamp = reader.uint64();
|
|
72
76
|
break;
|
|
77
|
+
case 8:
|
|
78
|
+
message.memo = reader.string();
|
|
79
|
+
break;
|
|
73
80
|
default:
|
|
74
81
|
reader.skipType(tag & 7);
|
|
75
82
|
break;
|
|
@@ -107,6 +114,10 @@ exports.MsgTransfer = {
|
|
|
107
114
|
object.timeoutTimestamp !== undefined && object.timeoutTimestamp !== null
|
|
108
115
|
? long_1.default.fromString(object.timeoutTimestamp)
|
|
109
116
|
: long_1.default.UZERO;
|
|
117
|
+
message.memo =
|
|
118
|
+
object.memo !== undefined && object.memo !== null
|
|
119
|
+
? String(object.memo)
|
|
120
|
+
: "";
|
|
110
121
|
return message;
|
|
111
122
|
},
|
|
112
123
|
toJSON(message) {
|
|
@@ -124,10 +135,11 @@ exports.MsgTransfer = {
|
|
|
124
135
|
: undefined);
|
|
125
136
|
message.timeoutTimestamp !== undefined &&
|
|
126
137
|
(obj.timeoutTimestamp = (message.timeoutTimestamp || long_1.default.UZERO).toString());
|
|
138
|
+
message.memo !== undefined && (obj.memo = message.memo);
|
|
127
139
|
return obj;
|
|
128
140
|
},
|
|
129
141
|
fromPartial(object) {
|
|
130
|
-
var _a, _b, _c, _d;
|
|
142
|
+
var _a, _b, _c, _d, _e;
|
|
131
143
|
const message = Object.assign({}, baseMsgTransfer);
|
|
132
144
|
message.sourcePort = (_a = object.sourcePort) !== null && _a !== void 0 ? _a : "";
|
|
133
145
|
message.sourceChannel = (_b = object.sourceChannel) !== null && _b !== void 0 ? _b : "";
|
|
@@ -145,12 +157,16 @@ exports.MsgTransfer = {
|
|
|
145
157
|
object.timeoutTimestamp !== undefined && object.timeoutTimestamp !== null
|
|
146
158
|
? long_1.default.fromValue(object.timeoutTimestamp)
|
|
147
159
|
: long_1.default.UZERO;
|
|
160
|
+
message.memo = (_e = object.memo) !== null && _e !== void 0 ? _e : "";
|
|
148
161
|
return message;
|
|
149
162
|
},
|
|
150
163
|
};
|
|
151
|
-
const baseMsgTransferResponse = {};
|
|
164
|
+
const baseMsgTransferResponse = { sequence: long_1.default.UZERO };
|
|
152
165
|
exports.MsgTransferResponse = {
|
|
153
|
-
encode(
|
|
166
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
167
|
+
if (!message.sequence.isZero()) {
|
|
168
|
+
writer.uint32(8).uint64(message.sequence);
|
|
169
|
+
}
|
|
154
170
|
return writer;
|
|
155
171
|
},
|
|
156
172
|
decode(input, length) {
|
|
@@ -160,6 +176,9 @@ exports.MsgTransferResponse = {
|
|
|
160
176
|
while (reader.pos < end) {
|
|
161
177
|
const tag = reader.uint32();
|
|
162
178
|
switch (tag >>> 3) {
|
|
179
|
+
case 1:
|
|
180
|
+
message.sequence = reader.uint64();
|
|
181
|
+
break;
|
|
163
182
|
default:
|
|
164
183
|
reader.skipType(tag & 7);
|
|
165
184
|
break;
|
|
@@ -167,16 +186,26 @@ exports.MsgTransferResponse = {
|
|
|
167
186
|
}
|
|
168
187
|
return message;
|
|
169
188
|
},
|
|
170
|
-
fromJSON(
|
|
189
|
+
fromJSON(object) {
|
|
171
190
|
const message = Object.assign({}, baseMsgTransferResponse);
|
|
191
|
+
message.sequence =
|
|
192
|
+
object.sequence !== undefined && object.sequence !== null
|
|
193
|
+
? long_1.default.fromString(object.sequence)
|
|
194
|
+
: long_1.default.UZERO;
|
|
172
195
|
return message;
|
|
173
196
|
},
|
|
174
|
-
toJSON(
|
|
197
|
+
toJSON(message) {
|
|
175
198
|
const obj = {};
|
|
199
|
+
message.sequence !== undefined &&
|
|
200
|
+
(obj.sequence = (message.sequence || long_1.default.UZERO).toString());
|
|
176
201
|
return obj;
|
|
177
202
|
},
|
|
178
|
-
fromPartial(
|
|
203
|
+
fromPartial(object) {
|
|
179
204
|
const message = Object.assign({}, baseMsgTransferResponse);
|
|
205
|
+
message.sequence =
|
|
206
|
+
object.sequence !== undefined && object.sequence !== null
|
|
207
|
+
? long_1.default.fromValue(object.sequence)
|
|
208
|
+
: long_1.default.UZERO;
|
|
180
209
|
return message;
|
|
181
210
|
},
|
|
182
211
|
};
|
|
@@ -15,6 +15,8 @@ export interface FungibleTokenPacketData {
|
|
|
15
15
|
sender: string;
|
|
16
16
|
/** the recipient address on the destination chain */
|
|
17
17
|
receiver: string;
|
|
18
|
+
/** optional memo */
|
|
19
|
+
memo: string;
|
|
18
20
|
}
|
|
19
21
|
export declare const FungibleTokenPacketData: {
|
|
20
22
|
encode(message: FungibleTokenPacketData, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -13,6 +13,7 @@ const baseFungibleTokenPacketData = {
|
|
|
13
13
|
amount: "",
|
|
14
14
|
sender: "",
|
|
15
15
|
receiver: "",
|
|
16
|
+
memo: "",
|
|
16
17
|
};
|
|
17
18
|
exports.FungibleTokenPacketData = {
|
|
18
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -28,6 +29,9 @@ exports.FungibleTokenPacketData = {
|
|
|
28
29
|
if (message.receiver !== "") {
|
|
29
30
|
writer.uint32(34).string(message.receiver);
|
|
30
31
|
}
|
|
32
|
+
if (message.memo !== "") {
|
|
33
|
+
writer.uint32(42).string(message.memo);
|
|
34
|
+
}
|
|
31
35
|
return writer;
|
|
32
36
|
},
|
|
33
37
|
decode(input, length) {
|
|
@@ -49,6 +53,9 @@ exports.FungibleTokenPacketData = {
|
|
|
49
53
|
case 4:
|
|
50
54
|
message.receiver = reader.string();
|
|
51
55
|
break;
|
|
56
|
+
case 5:
|
|
57
|
+
message.memo = reader.string();
|
|
58
|
+
break;
|
|
52
59
|
default:
|
|
53
60
|
reader.skipType(tag & 7);
|
|
54
61
|
break;
|
|
@@ -74,6 +81,10 @@ exports.FungibleTokenPacketData = {
|
|
|
74
81
|
object.receiver !== undefined && object.receiver !== null
|
|
75
82
|
? String(object.receiver)
|
|
76
83
|
: "";
|
|
84
|
+
message.memo =
|
|
85
|
+
object.memo !== undefined && object.memo !== null
|
|
86
|
+
? String(object.memo)
|
|
87
|
+
: "";
|
|
77
88
|
return message;
|
|
78
89
|
},
|
|
79
90
|
toJSON(message) {
|
|
@@ -82,15 +93,17 @@ exports.FungibleTokenPacketData = {
|
|
|
82
93
|
message.amount !== undefined && (obj.amount = message.amount);
|
|
83
94
|
message.sender !== undefined && (obj.sender = message.sender);
|
|
84
95
|
message.receiver !== undefined && (obj.receiver = message.receiver);
|
|
96
|
+
message.memo !== undefined && (obj.memo = message.memo);
|
|
85
97
|
return obj;
|
|
86
98
|
},
|
|
87
99
|
fromPartial(object) {
|
|
88
|
-
var _a, _b, _c, _d;
|
|
100
|
+
var _a, _b, _c, _d, _e;
|
|
89
101
|
const message = Object.assign({}, baseFungibleTokenPacketData);
|
|
90
102
|
message.denom = (_a = object.denom) !== null && _a !== void 0 ? _a : "";
|
|
91
103
|
message.amount = (_b = object.amount) !== null && _b !== void 0 ? _b : "";
|
|
92
104
|
message.sender = (_c = object.sender) !== null && _c !== void 0 ? _c : "";
|
|
93
105
|
message.receiver = (_d = object.receiver) !== null && _d !== void 0 ? _d : "";
|
|
106
|
+
message.memo = (_e = object.memo) !== null && _e !== void 0 ? _e : "";
|
|
94
107
|
return message;
|
|
95
108
|
},
|
|
96
109
|
};
|
|
@@ -131,6 +131,19 @@ export interface PacketState {
|
|
|
131
131
|
/** embedded data that represents packet state. */
|
|
132
132
|
data: Uint8Array;
|
|
133
133
|
}
|
|
134
|
+
/**
|
|
135
|
+
* PacketId is an identifer for a unique Packet
|
|
136
|
+
* Source chains refer to packets by source port/channel
|
|
137
|
+
* Destination chains refer to packets by destination port/channel
|
|
138
|
+
*/
|
|
139
|
+
export interface PacketId {
|
|
140
|
+
/** channel port identifier */
|
|
141
|
+
portId: string;
|
|
142
|
+
/** channel unique identifier */
|
|
143
|
+
channelId: string;
|
|
144
|
+
/** packet sequence */
|
|
145
|
+
sequence: Long;
|
|
146
|
+
}
|
|
134
147
|
/**
|
|
135
148
|
* Acknowledgement is the recommended acknowledgement format to be used by
|
|
136
149
|
* app-specific protocols.
|
|
@@ -179,6 +192,13 @@ export declare const PacketState: {
|
|
|
179
192
|
toJSON(message: PacketState): unknown;
|
|
180
193
|
fromPartial(object: DeepPartial<PacketState>): PacketState;
|
|
181
194
|
};
|
|
195
|
+
export declare const PacketId: {
|
|
196
|
+
encode(message: PacketId, writer?: _m0.Writer): _m0.Writer;
|
|
197
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): PacketId;
|
|
198
|
+
fromJSON(object: any): PacketId;
|
|
199
|
+
toJSON(message: PacketId): unknown;
|
|
200
|
+
fromPartial(object: DeepPartial<PacketId>): PacketId;
|
|
201
|
+
};
|
|
182
202
|
export declare const Acknowledgement: {
|
|
183
203
|
encode(message: Acknowledgement, writer?: _m0.Writer): _m0.Writer;
|
|
184
204
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Acknowledgement;
|