carbon-js-sdk 0.0.2 → 0.1.2
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/README.md +1 -1
- package/examples/add_collateral.ts +1 -1
- package/examples/add_debt.ts +1 -1
- package/examples/add_liquidity.ts +1 -1
- package/examples/broadcast_tx.ts +1 -1
- package/examples/cancel_all_orders.ts +1 -1
- package/examples/cancel_order.ts +1 -1
- package/examples/change_num_quotes.ts +1 -1
- package/examples/change_swap_fee.ts +1 -1
- package/examples/claim_pool_rewards.ts +1 -1
- package/examples/connect_sdk.ts +1 -1
- package/examples/create_market.ts +1 -1
- package/examples/create_oracle.ts +1 -1
- package/examples/create_order.ts +1 -1
- package/examples/create_pool.ts +1 -1
- package/examples/create_pool_with_liquidity.ts +1 -1
- package/examples/create_subaccount.ts +1 -1
- package/examples/create_token.ts +8 -11
- package/examples/create_vault_type.ts +1 -1
- package/examples/create_vote.ts +1 -1
- package/examples/create_withdrawal.ts +1 -1
- package/examples/custom_node.ts +1 -1
- package/examples/delegate_tokens.ts +1 -1
- package/examples/deposit_proposal.ts +1 -1
- package/examples/edit_margin.ts +1 -1
- package/examples/edit_order.ts +1 -1
- package/examples/initiate_liquidation.ts +1 -1
- package/examples/link_pool.ts +1 -1
- package/examples/mint.ts +1 -1
- package/examples/query.ts +62 -57
- package/examples/query_balance.ts +1 -1
- package/examples/query_external_balances.ts +40 -0
- package/examples/remove_collateral.ts +1 -1
- package/examples/remove_debt.ts +1 -1
- package/examples/remove_liquidity.ts +1 -1
- package/examples/send_tokens.ts +5 -8
- package/examples/set_commitment_curve.ts +1 -1
- package/examples/set_leverage.ts +1 -1
- package/examples/set_msg_fee.ts +1 -1
- package/examples/set_reward_curve.ts +1 -1
- package/examples/set_rewards_weights.ts +1 -1
- package/examples/set_trading_flag.ts +1 -1
- package/examples/stake_pool_token.ts +1 -1
- package/examples/submit_proposal.ts +1 -1
- package/examples/sync_token.ts +1 -1
- package/examples/unlink_pool.ts +1 -1
- package/examples/unstake_pool_token.ts +1 -1
- package/examples/update_market.ts +1 -1
- package/examples/update_profile.ts +1 -1
- package/examples/vote_proposal.ts +1 -1
- package/lib/CarbonSDK.d.ts.map +1 -1
- package/lib/CarbonSDK.js +5 -3
- package/lib/CarbonSDK.js.map +1 -1
- package/lib/clients/ETHClient.d.ts +10 -3
- package/lib/clients/ETHClient.d.ts.map +1 -1
- package/lib/clients/ETHClient.js +46 -40
- package/lib/clients/ETHClient.js.map +1 -1
- package/lib/clients/InsightsQueryClient.d.ts +3 -3
- package/lib/clients/InsightsQueryClient.d.ts.map +1 -1
- package/lib/clients/InsightsQueryClient.js +2 -2
- package/lib/clients/InsightsQueryClient.js.map +1 -1
- package/lib/clients/NEOClient.d.ts +1 -1
- package/lib/clients/NEOClient.d.ts.map +1 -1
- package/lib/clients/NEOClient.js +2 -2
- package/lib/clients/NEOClient.js.map +1 -1
- package/lib/clients/TokenClient.d.ts +8 -1
- package/lib/clients/TokenClient.d.ts.map +1 -1
- package/lib/clients/TokenClient.js +87 -9
- package/lib/clients/TokenClient.js.map +1 -1
- package/lib/clients/ZILClient.d.ts +1 -1
- package/lib/clients/ZILClient.d.ts.map +1 -1
- package/lib/clients/ZILClient.js +4 -5
- package/lib/clients/ZILClient.js.map +1 -1
- package/lib/codec/adl/genesis.d.ts +2 -2
- package/lib/codec/adl/genesis.d.ts.map +1 -1
- package/lib/codec/adl/genesis.js.map +1 -1
- package/lib/codec/bank/event.d.ts +2 -2
- package/lib/codec/bank/event.d.ts.map +1 -1
- package/lib/codec/bank/event.js +12 -25
- package/lib/codec/bank/event.js.map +1 -1
- package/lib/codec/book/book.d.ts +2 -2
- package/lib/codec/book/book.d.ts.map +1 -1
- package/lib/codec/book/book.js +32 -87
- package/lib/codec/book/book.js.map +1 -1
- package/lib/codec/book/event.d.ts +2 -2
- package/lib/codec/book/event.d.ts.map +1 -1
- package/lib/codec/book/event.js +20 -30
- package/lib/codec/book/event.js.map +1 -1
- package/lib/codec/book/genesis.d.ts +2 -2
- package/lib/codec/book/genesis.d.ts.map +1 -1
- package/lib/codec/book/genesis.js +6 -24
- package/lib/codec/book/genesis.js.map +1 -1
- package/lib/codec/book/query.d.ts +4 -3
- package/lib/codec/book/query.d.ts.map +1 -1
- package/lib/codec/book/query.js +32 -54
- package/lib/codec/book/query.js.map +1 -1
- package/lib/codec/broker/amm.d.ts +2 -2
- package/lib/codec/broker/amm.d.ts.map +1 -1
- package/lib/codec/broker/amm.js +20 -35
- package/lib/codec/broker/amm.js.map +1 -1
- package/lib/codec/broker/candlestick.d.ts +2 -2
- package/lib/codec/broker/candlestick.d.ts.map +1 -1
- package/lib/codec/broker/candlestick.js +38 -60
- package/lib/codec/broker/candlestick.js.map +1 -1
- package/lib/codec/broker/event.d.ts +2 -2
- package/lib/codec/broker/event.d.ts.map +1 -1
- package/lib/codec/broker/event.js +76 -114
- package/lib/codec/broker/event.js.map +1 -1
- package/lib/codec/broker/genesis.d.ts +2 -2
- package/lib/codec/broker/genesis.d.ts.map +1 -1
- package/lib/codec/broker/genesis.js +4 -12
- package/lib/codec/broker/genesis.js.map +1 -1
- package/lib/codec/broker/incoming_liquidations.d.ts +2 -2
- package/lib/codec/broker/incoming_liquidations.d.ts.map +1 -1
- package/lib/codec/broker/incoming_liquidations.js +4 -12
- package/lib/codec/broker/incoming_liquidations.js.map +1 -1
- package/lib/codec/broker/incoming_pool_swap.d.ts +2 -2
- package/lib/codec/broker/incoming_pool_swap.d.ts.map +1 -1
- package/lib/codec/broker/incoming_pool_swap.js +30 -46
- package/lib/codec/broker/incoming_pool_swap.js.map +1 -1
- package/lib/codec/broker/pagination.d.ts +20 -0
- package/lib/codec/broker/pagination.d.ts.map +1 -0
- package/lib/codec/broker/pagination.js +79 -0
- package/lib/codec/broker/pagination.js.map +1 -0
- package/lib/codec/broker/query.d.ts +37 -35
- package/lib/codec/broker/query.d.ts.map +1 -1
- package/lib/codec/broker/query.js +328 -305
- package/lib/codec/broker/query.js.map +1 -1
- package/lib/codec/broker/trade.d.ts +28 -0
- package/lib/codec/broker/trade.d.ts.map +1 -0
- package/lib/codec/broker/trade.js +208 -0
- package/lib/codec/broker/trade.js.map +1 -0
- package/lib/codec/broker/tx.d.ts +2 -2
- package/lib/codec/broker/tx.d.ts.map +1 -1
- package/lib/codec/broker/tx.js +16 -31
- package/lib/codec/broker/tx.js.map +1 -1
- package/lib/codec/cdp/event.d.ts +2 -2
- package/lib/codec/cdp/event.d.ts.map +1 -1
- package/lib/codec/cdp/event.js +36 -55
- package/lib/codec/cdp/event.js.map +1 -1
- package/lib/codec/cdp/genesis.d.ts +2 -2
- package/lib/codec/cdp/genesis.d.ts.map +1 -1
- package/lib/codec/cdp/genesis.js +6 -24
- package/lib/codec/cdp/genesis.js.map +1 -1
- package/lib/codec/cdp/query.d.ts +8 -5
- package/lib/codec/cdp/query.d.ts.map +1 -1
- package/lib/codec/cdp/query.js +87 -137
- package/lib/codec/cdp/query.js.map +1 -1
- package/lib/codec/cdp/tx.d.ts +2 -2
- package/lib/codec/cdp/tx.d.ts.map +1 -1
- package/lib/codec/cdp/tx.js +81 -122
- package/lib/codec/cdp/tx.js.map +1 -1
- package/lib/codec/cdp/vault.d.ts +2 -2
- package/lib/codec/cdp/vault.d.ts.map +1 -1
- package/lib/codec/cdp/vault.js +49 -74
- package/lib/codec/cdp/vault.js.map +1 -1
- package/lib/codec/coin/bridge.d.ts +2 -2
- package/lib/codec/coin/bridge.d.ts.map +1 -1
- package/lib/codec/coin/bridge.js +32 -48
- package/lib/codec/coin/bridge.js.map +1 -1
- package/lib/codec/coin/event.d.ts +2 -2
- package/lib/codec/coin/event.d.ts.map +1 -1
- package/lib/codec/coin/event.js +44 -66
- package/lib/codec/coin/event.js.map +1 -1
- package/lib/codec/coin/extevents.d.ts +2 -2
- package/lib/codec/coin/extevents.d.ts.map +1 -1
- package/lib/codec/coin/extevents.js +54 -85
- package/lib/codec/coin/extevents.js.map +1 -1
- package/lib/codec/coin/genesis.d.ts +2 -2
- package/lib/codec/coin/genesis.d.ts.map +1 -1
- package/lib/codec/coin/genesis.js +25 -75
- package/lib/codec/coin/genesis.js.map +1 -1
- package/lib/codec/coin/proposal.d.ts +2 -2
- package/lib/codec/coin/proposal.d.ts.map +1 -1
- package/lib/codec/coin/proposal.js +16 -24
- package/lib/codec/coin/proposal.js.map +1 -1
- package/lib/codec/coin/query.d.ts +13 -4
- package/lib/codec/coin/query.d.ts.map +1 -1
- package/lib/codec/coin/query.js +207 -309
- package/lib/codec/coin/query.js.map +1 -1
- package/lib/codec/coin/token.d.ts +2 -2
- package/lib/codec/coin/token.d.ts.map +1 -1
- package/lib/codec/coin/token.js +142 -223
- package/lib/codec/coin/token.js.map +1 -1
- package/lib/codec/coin/tx.d.ts +2 -2
- package/lib/codec/coin/tx.d.ts.map +1 -1
- package/lib/codec/coin/tx.js +204 -314
- package/lib/codec/coin/tx.js.map +1 -1
- package/lib/codec/confio/proofs.d.ts.map +1 -1
- package/lib/codec/confio/proofs.js +131 -32
- package/lib/codec/confio/proofs.js.map +1 -1
- package/lib/codec/cosmos/auth/v1beta1/auth.d.ts +2 -2
- package/lib/codec/cosmos/auth/v1beta1/auth.d.ts.map +1 -1
- package/lib/codec/cosmos/auth/v1beta1/auth.js +92 -141
- package/lib/codec/cosmos/auth/v1beta1/auth.js.map +1 -1
- package/lib/codec/cosmos/auth/v1beta1/export.d.ts +1 -1
- package/lib/codec/cosmos/auth/v1beta1/export.d.ts.map +1 -1
- package/lib/codec/cosmos/auth/v1beta1/export.js +3 -1
- package/lib/codec/cosmos/auth/v1beta1/export.js.map +1 -1
- package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +2 -2
- package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts.map +1 -1
- package/lib/codec/cosmos/auth/v1beta1/genesis.js +12 -24
- package/lib/codec/cosmos/auth/v1beta1/genesis.js.map +1 -1
- package/lib/codec/cosmos/auth/v1beta1/query.d.ts +32 -2
- package/lib/codec/cosmos/auth/v1beta1/query.d.ts.map +1 -1
- package/lib/codec/cosmos/auth/v1beta1/query.js +145 -31
- package/lib/codec/cosmos/auth/v1beta1/query.js.map +1 -1
- package/lib/codec/cosmos/authz/v1beta1/authz.d.ts +40 -0
- package/lib/codec/cosmos/authz/v1beta1/authz.d.ts.map +1 -0
- package/lib/codec/cosmos/authz/v1beta1/authz.js +148 -0
- package/lib/codec/cosmos/authz/v1beta1/authz.js.map +1 -0
- package/lib/codec/cosmos/authz/v1beta1/event.d.ts +41 -0
- package/lib/codec/cosmos/authz/v1beta1/event.d.ts.map +1 -0
- package/lib/codec/cosmos/authz/v1beta1/event.js +153 -0
- package/lib/codec/cosmos/authz/v1beta1/event.js.map +1 -0
- package/lib/codec/cosmos/authz/v1beta1/genesis.d.ts +35 -0
- package/lib/codec/cosmos/authz/v1beta1/genesis.d.ts.map +1 -0
- package/lib/codec/cosmos/authz/v1beta1/genesis.js +178 -0
- package/lib/codec/cosmos/authz/v1beta1/genesis.js.map +1 -0
- package/lib/codec/cosmos/authz/v1beta1/query.d.ts +54 -0
- package/lib/codec/cosmos/authz/v1beta1/query.d.ts.map +1 -0
- package/lib/codec/cosmos/authz/v1beta1/query.js +187 -0
- package/lib/codec/cosmos/authz/v1beta1/query.js.map +1 -0
- package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +126 -0
- package/lib/codec/cosmos/authz/v1beta1/tx.d.ts.map +1 -0
- package/lib/codec/cosmos/authz/v1beta1/tx.js +387 -0
- package/lib/codec/cosmos/authz/v1beta1/tx.js.map +1 -0
- package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +24 -0
- package/lib/codec/cosmos/bank/v1beta1/authz.d.ts.map +1 -0
- package/lib/codec/cosmos/bank/v1beta1/authz.js +65 -0
- package/lib/codec/cosmos/bank/v1beta1/authz.js.map +1 -0
- package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +12 -2
- package/lib/codec/cosmos/bank/v1beta1/bank.d.ts.map +1 -1
- package/lib/codec/cosmos/bank/v1beta1/bank.js +99 -142
- package/lib/codec/cosmos/bank/v1beta1/bank.js.map +1 -1
- package/lib/codec/cosmos/bank/v1beta1/export.d.ts +1 -0
- package/lib/codec/cosmos/bank/v1beta1/export.d.ts.map +1 -1
- package/lib/codec/cosmos/bank/v1beta1/export.js +3 -1
- package/lib/codec/cosmos/bank/v1beta1/export.js.map +1 -1
- package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +6 -3
- package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts.map +1 -1
- package/lib/codec/cosmos/bank/v1beta1/genesis.js +24 -67
- package/lib/codec/cosmos/bank/v1beta1/genesis.js.map +1 -1
- package/lib/codec/cosmos/bank/v1beta1/query.d.ts +10 -6
- package/lib/codec/cosmos/bank/v1beta1/query.d.ts.map +1 -1
- package/lib/codec/cosmos/bank/v1beta1/query.js +136 -166
- package/lib/codec/cosmos/bank/v1beta1/query.js.map +1 -1
- package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +2 -2
- package/lib/codec/cosmos/bank/v1beta1/tx.d.ts.map +1 -1
- package/lib/codec/cosmos/bank/v1beta1/tx.js +18 -49
- package/lib/codec/cosmos/bank/v1beta1/tx.js.map +1 -1
- package/lib/codec/cosmos/base/abci/v1beta1/abci.d.ts +2 -2
- package/lib/codec/cosmos/base/abci/v1beta1/abci.d.ts.map +1 -1
- package/lib/codec/cosmos/base/abci/v1beta1/abci.js +188 -326
- package/lib/codec/cosmos/base/abci/v1beta1/abci.js.map +1 -1
- package/lib/codec/cosmos/base/kv/v1beta1/kv.d.ts +2 -2
- package/lib/codec/cosmos/base/kv/v1beta1/kv.d.ts.map +1 -1
- package/lib/codec/cosmos/base/kv/v1beta1/kv.js +12 -20
- package/lib/codec/cosmos/base/kv/v1beta1/kv.js.map +1 -1
- package/lib/codec/cosmos/base/query/v1beta1/pagination.d.ts +4 -2
- package/lib/codec/cosmos/base/query/v1beta1/pagination.d.ts.map +1 -1
- package/lib/codec/cosmos/base/query/v1beta1/pagination.js +50 -51
- package/lib/codec/cosmos/base/query/v1beta1/pagination.js.map +1 -1
- package/lib/codec/cosmos/base/reflection/v1beta1/reflection.d.ts +2 -2
- package/lib/codec/cosmos/base/reflection/v1beta1/reflection.d.ts.map +1 -1
- package/lib/codec/cosmos/base/reflection/v1beta1/reflection.js +12 -32
- package/lib/codec/cosmos/base/reflection/v1beta1/reflection.js.map +1 -1
- package/lib/codec/cosmos/base/reflection/v2alpha1/reflection.d.ts +414 -0
- package/lib/codec/cosmos/base/reflection/v2alpha1/reflection.d.ts.map +1 -0
- package/lib/codec/cosmos/base/reflection/v2alpha1/reflection.js +1439 -0
- package/lib/codec/cosmos/base/reflection/v2alpha1/reflection.js.map +1 -0
- package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.d.ts +2 -2
- package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.d.ts.map +1 -1
- package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.js +32 -52
- package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.js.map +1 -1
- package/lib/codec/cosmos/base/store/v1beta1/commit_info.d.ts +2 -2
- package/lib/codec/cosmos/base/store/v1beta1/commit_info.d.ts.map +1 -1
- package/lib/codec/cosmos/base/store/v1beta1/commit_info.js +36 -58
- package/lib/codec/cosmos/base/store/v1beta1/commit_info.js.map +1 -1
- package/lib/codec/cosmos/base/store/v1beta1/listening.d.ts +29 -0
- package/lib/codec/cosmos/base/store/v1beta1/listening.d.ts.map +1 -0
- package/lib/codec/cosmos/base/store/v1beta1/listening.js +130 -0
- package/lib/codec/cosmos/base/store/v1beta1/listening.js.map +1 -0
- package/lib/codec/cosmos/base/store/v1beta1/snapshot.d.ts +2 -2
- package/lib/codec/cosmos/base/store/v1beta1/snapshot.d.ts.map +1 -1
- package/lib/codec/cosmos/base/store/v1beta1/snapshot.js +40 -56
- package/lib/codec/cosmos/base/store/v1beta1/snapshot.js.map +1 -1
- package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +3 -2
- package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts.map +1 -1
- package/lib/codec/cosmos/base/tendermint/v1beta1/query.js +206 -313
- package/lib/codec/cosmos/base/tendermint/v1beta1/query.js.map +1 -1
- package/lib/codec/cosmos/base/v1beta1/coin.d.ts +2 -2
- package/lib/codec/cosmos/base/v1beta1/coin.d.ts.map +1 -1
- package/lib/codec/cosmos/base/v1beta1/coin.js +20 -36
- package/lib/codec/cosmos/base/v1beta1/coin.js.map +1 -1
- package/lib/codec/cosmos/capability/v1beta1/capability.d.ts +2 -2
- package/lib/codec/cosmos/capability/v1beta1/capability.d.ts.map +1 -1
- package/lib/codec/cosmos/capability/v1beta1/capability.js +20 -36
- package/lib/codec/cosmos/capability/v1beta1/capability.js.map +1 -1
- package/lib/codec/cosmos/capability/v1beta1/genesis.d.ts +2 -2
- package/lib/codec/cosmos/capability/v1beta1/genesis.d.ts.map +1 -1
- package/lib/codec/cosmos/capability/v1beta1/genesis.js +28 -48
- package/lib/codec/cosmos/capability/v1beta1/genesis.js.map +1 -1
- package/lib/codec/cosmos/crisis/v1beta1/genesis.d.ts +2 -2
- package/lib/codec/cosmos/crisis/v1beta1/genesis.d.ts.map +1 -1
- package/lib/codec/cosmos/crisis/v1beta1/genesis.js +8 -12
- package/lib/codec/cosmos/crisis/v1beta1/genesis.js.map +1 -1
- package/lib/codec/cosmos/crisis/v1beta1/tx.d.ts +2 -2
- package/lib/codec/cosmos/crisis/v1beta1/tx.d.ts.map +1 -1
- package/lib/codec/cosmos/crisis/v1beta1/tx.js +13 -19
- package/lib/codec/cosmos/crisis/v1beta1/tx.js.map +1 -1
- package/lib/codec/cosmos/crypto/ed25519/keys.d.ts +11 -8
- package/lib/codec/cosmos/crypto/ed25519/keys.d.ts.map +1 -1
- package/lib/codec/cosmos/crypto/ed25519/keys.js +8 -8
- package/lib/codec/cosmos/crypto/ed25519/keys.js.map +1 -1
- package/lib/codec/cosmos/crypto/multisig/keys.d.ts +2 -2
- package/lib/codec/cosmos/crypto/multisig/keys.d.ts.map +1 -1
- package/lib/codec/cosmos/crypto/multisig/keys.js +8 -19
- package/lib/codec/cosmos/crypto/multisig/keys.js.map +1 -1
- package/lib/codec/cosmos/crypto/multisig/v1beta1/multisig.d.ts +2 -2
- package/lib/codec/cosmos/crypto/multisig/v1beta1/multisig.d.ts.map +1 -1
- package/lib/codec/cosmos/crypto/multisig/v1beta1/multisig.js +12 -23
- package/lib/codec/cosmos/crypto/multisig/v1beta1/multisig.js.map +1 -1
- package/lib/codec/cosmos/crypto/secp256k1/keys.d.ts +2 -2
- package/lib/codec/cosmos/crypto/secp256k1/keys.d.ts.map +1 -1
- package/lib/codec/cosmos/crypto/secp256k1/keys.js +8 -8
- package/lib/codec/cosmos/crypto/secp256k1/keys.js.map +1 -1
- package/lib/codec/cosmos/crypto/secp256r1/keys.d.ts +36 -0
- package/lib/codec/cosmos/crypto/secp256r1/keys.d.ts.map +1 -0
- package/lib/codec/cosmos/crypto/secp256r1/keys.js +139 -0
- package/lib/codec/cosmos/crypto/secp256r1/keys.js.map +1 -0
- package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +2 -2
- package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts.map +1 -1
- package/lib/codec/cosmos/distribution/v1beta1/distribution.js +139 -275
- package/lib/codec/cosmos/distribution/v1beta1/distribution.js.map +1 -1
- package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +2 -2
- package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts.map +1 -1
- package/lib/codec/cosmos/distribution/v1beta1/genesis.js +143 -307
- package/lib/codec/cosmos/distribution/v1beta1/genesis.js.map +1 -1
- package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +2 -2
- package/lib/codec/cosmos/distribution/v1beta1/query.d.ts.map +1 -1
- package/lib/codec/cosmos/distribution/v1beta1/query.js +118 -231
- package/lib/codec/cosmos/distribution/v1beta1/query.js.map +1 -1
- package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +2 -2
- package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts.map +1 -1
- package/lib/codec/cosmos/distribution/v1beta1/tx.js +29 -55
- package/lib/codec/cosmos/distribution/v1beta1/tx.js.map +1 -1
- package/lib/codec/cosmos/evidence/v1beta1/evidence.d.ts +2 -2
- package/lib/codec/cosmos/evidence/v1beta1/evidence.d.ts.map +1 -1
- package/lib/codec/cosmos/evidence/v1beta1/evidence.js +24 -37
- package/lib/codec/cosmos/evidence/v1beta1/evidence.js.map +1 -1
- package/lib/codec/cosmos/evidence/v1beta1/genesis.d.ts +2 -2
- package/lib/codec/cosmos/evidence/v1beta1/genesis.d.ts.map +1 -1
- package/lib/codec/cosmos/evidence/v1beta1/genesis.js +4 -12
- package/lib/codec/cosmos/evidence/v1beta1/genesis.js.map +1 -1
- package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +2 -2
- package/lib/codec/cosmos/evidence/v1beta1/query.d.ts.map +1 -1
- package/lib/codec/cosmos/evidence/v1beta1/query.js +32 -52
- package/lib/codec/cosmos/evidence/v1beta1/query.js.map +1 -1
- package/lib/codec/cosmos/evidence/v1beta1/tx.d.ts +2 -2
- package/lib/codec/cosmos/evidence/v1beta1/tx.d.ts.map +1 -1
- package/lib/codec/cosmos/evidence/v1beta1/tx.js +16 -22
- package/lib/codec/cosmos/evidence/v1beta1/tx.js.map +1 -1
- package/lib/codec/cosmos/feegrant/v1beta1/feegrant.d.ts +96 -0
- package/lib/codec/cosmos/feegrant/v1beta1/feegrant.d.ts.map +1 -0
- package/lib/codec/cosmos/feegrant/v1beta1/feegrant.js +360 -0
- package/lib/codec/cosmos/feegrant/v1beta1/feegrant.js.map +1 -0
- package/lib/codec/cosmos/feegrant/v1beta1/genesis.d.ts +21 -0
- package/lib/codec/cosmos/feegrant/v1beta1/genesis.d.ts.map +1 -0
- package/lib/codec/cosmos/feegrant/v1beta1/genesis.js +65 -0
- package/lib/codec/cosmos/feegrant/v1beta1/genesis.js.map +1 -0
- package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +80 -0
- package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts.map +1 -0
- package/lib/codec/cosmos/feegrant/v1beta1/query.js +272 -0
- package/lib/codec/cosmos/feegrant/v1beta1/query.js.map +1 -0
- package/lib/codec/cosmos/feegrant/v1beta1/tx.d.ts +85 -0
- package/lib/codec/cosmos/feegrant/v1beta1/tx.d.ts.map +1 -0
- package/lib/codec/cosmos/feegrant/v1beta1/tx.js +230 -0
- package/lib/codec/cosmos/feegrant/v1beta1/tx.js.map +1 -0
- package/lib/codec/cosmos/genutil/v1beta1/genesis.d.ts +2 -2
- package/lib/codec/cosmos/genutil/v1beta1/genesis.d.ts.map +1 -1
- package/lib/codec/cosmos/genutil/v1beta1/genesis.js +4 -12
- package/lib/codec/cosmos/genutil/v1beta1/genesis.js.map +1 -1
- package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +2 -2
- package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts.map +1 -1
- package/lib/codec/cosmos/gov/v1beta1/genesis.js +42 -86
- package/lib/codec/cosmos/gov/v1beta1/genesis.js.map +1 -1
- package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +22 -2
- package/lib/codec/cosmos/gov/v1beta1/gov.d.ts.map +1 -1
- package/lib/codec/cosmos/gov/v1beta1/gov.js +210 -227
- package/lib/codec/cosmos/gov/v1beta1/gov.js.map +1 -1
- package/lib/codec/cosmos/gov/v1beta1/query.d.ts +2 -2
- package/lib/codec/cosmos/gov/v1beta1/query.d.ts.map +1 -1
- package/lib/codec/cosmos/gov/v1beta1/query.js +188 -300
- package/lib/codec/cosmos/gov/v1beta1/query.js.map +1 -1
- package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +29 -3
- package/lib/codec/cosmos/gov/v1beta1/tx.d.ts.map +1 -1
- package/lib/codec/cosmos/gov/v1beta1/tx.js +173 -100
- package/lib/codec/cosmos/gov/v1beta1/tx.js.map +1 -1
- package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +2 -2
- package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts.map +1 -1
- package/lib/codec/cosmos/mint/v1beta1/genesis.js +16 -24
- package/lib/codec/cosmos/mint/v1beta1/genesis.js.map +1 -1
- package/lib/codec/cosmos/mint/v1beta1/mint.d.ts +2 -2
- package/lib/codec/cosmos/mint/v1beta1/mint.d.ts.map +1 -1
- package/lib/codec/cosmos/mint/v1beta1/mint.js +37 -56
- package/lib/codec/cosmos/mint/v1beta1/mint.js.map +1 -1
- package/lib/codec/cosmos/mint/v1beta1/query.d.ts +2 -2
- package/lib/codec/cosmos/mint/v1beta1/query.d.ts.map +1 -1
- package/lib/codec/cosmos/mint/v1beta1/query.js +16 -21
- package/lib/codec/cosmos/mint/v1beta1/query.js.map +1 -1
- package/lib/codec/cosmos/params/v1beta1/params.d.ts +2 -2
- package/lib/codec/cosmos/params/v1beta1/params.d.ts.map +1 -1
- package/lib/codec/cosmos/params/v1beta1/params.js +22 -43
- package/lib/codec/cosmos/params/v1beta1/params.js.map +1 -1
- package/lib/codec/cosmos/params/v1beta1/query.d.ts +2 -2
- package/lib/codec/cosmos/params/v1beta1/query.d.ts.map +1 -1
- package/lib/codec/cosmos/params/v1beta1/query.js +14 -24
- package/lib/codec/cosmos/params/v1beta1/query.js.map +1 -1
- package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts.map +1 -1
- package/lib/codec/cosmos/slashing/v1beta1/genesis.js +48 -93
- package/lib/codec/cosmos/slashing/v1beta1/genesis.js.map +1 -1
- package/lib/codec/cosmos/slashing/v1beta1/query.d.ts +2 -2
- package/lib/codec/cosmos/slashing/v1beta1/query.d.ts.map +1 -1
- package/lib/codec/cosmos/slashing/v1beta1/query.js +40 -66
- package/lib/codec/cosmos/slashing/v1beta1/query.js.map +1 -1
- package/lib/codec/cosmos/slashing/v1beta1/slashing.d.ts +15 -8
- package/lib/codec/cosmos/slashing/v1beta1/slashing.d.ts.map +1 -1
- package/lib/codec/cosmos/slashing/v1beta1/slashing.js +73 -99
- package/lib/codec/cosmos/slashing/v1beta1/slashing.js.map +1 -1
- package/lib/codec/cosmos/slashing/v1beta1/tx.d.ts +2 -2
- package/lib/codec/cosmos/slashing/v1beta1/tx.d.ts.map +1 -1
- package/lib/codec/cosmos/slashing/v1beta1/tx.js +4 -6
- package/lib/codec/cosmos/slashing/v1beta1/tx.js.map +1 -1
- package/lib/codec/cosmos/staking/v1beta1/authz.d.ts +59 -0
- package/lib/codec/cosmos/staking/v1beta1/authz.d.ts.map +1 -0
- package/lib/codec/cosmos/staking/v1beta1/authz.js +215 -0
- package/lib/codec/cosmos/staking/v1beta1/authz.js.map +1 -0
- package/lib/codec/cosmos/staking/v1beta1/export.d.ts +1 -0
- package/lib/codec/cosmos/staking/v1beta1/export.d.ts.map +1 -1
- package/lib/codec/cosmos/staking/v1beta1/export.js +8 -2
- package/lib/codec/cosmos/staking/v1beta1/export.js.map +1 -1
- package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +2 -2
- package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts.map +1 -1
- package/lib/codec/cosmos/staking/v1beta1/genesis.js +41 -106
- package/lib/codec/cosmos/staking/v1beta1/genesis.js.map +1 -1
- package/lib/codec/cosmos/staking/v1beta1/query.d.ts +2 -2
- package/lib/codec/cosmos/staking/v1beta1/query.d.ts.map +1 -1
- package/lib/codec/cosmos/staking/v1beta1/query.js +270 -458
- package/lib/codec/cosmos/staking/v1beta1/query.js.map +1 -1
- package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +2 -2
- package/lib/codec/cosmos/staking/v1beta1/staking.d.ts.map +1 -1
- package/lib/codec/cosmos/staking/v1beta1/staking.js +308 -520
- package/lib/codec/cosmos/staking/v1beta1/staking.js.map +1 -1
- package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +2 -2
- package/lib/codec/cosmos/staking/v1beta1/tx.d.ts.map +1 -1
- package/lib/codec/cosmos/staking/v1beta1/tx.js +128 -198
- package/lib/codec/cosmos/staking/v1beta1/tx.js.map +1 -1
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +2 -2
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts.map +1 -1
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.js +64 -106
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.js.map +1 -1
- package/lib/codec/cosmos/tx/v1beta1/service.d.ts +10 -3
- package/lib/codec/cosmos/tx/v1beta1/service.d.ts.map +1 -1
- package/lib/codec/cosmos/tx/v1beta1/service.js +106 -156
- package/lib/codec/cosmos/tx/v1beta1/service.js.map +1 -1
- package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +7 -3
- package/lib/codec/cosmos/tx/v1beta1/tx.d.ts.map +1 -1
- package/lib/codec/cosmos/tx/v1beta1/tx.js +163 -296
- package/lib/codec/cosmos/tx/v1beta1/tx.js.map +1 -1
- package/lib/codec/cosmos/upgrade/v1beta1/query.d.ts +49 -5
- package/lib/codec/cosmos/upgrade/v1beta1/query.d.ts.map +1 -1
- package/lib/codec/cosmos/upgrade/v1beta1/query.js +172 -62
- package/lib/codec/cosmos/upgrade/v1beta1/query.js.map +1 -1
- package/lib/codec/cosmos/upgrade/v1beta1/upgrade.d.ts +26 -9
- package/lib/codec/cosmos/upgrade/v1beta1/upgrade.d.ts.map +1 -1
- package/lib/codec/cosmos/upgrade/v1beta1/upgrade.js +116 -81
- package/lib/codec/cosmos/upgrade/v1beta1/upgrade.js.map +1 -1
- package/lib/codec/cosmos/vesting/v1beta1/export.d.ts +1 -1
- package/lib/codec/cosmos/vesting/v1beta1/export.d.ts.map +1 -1
- package/lib/codec/cosmos/vesting/v1beta1/export.js +2 -1
- package/lib/codec/cosmos/vesting/v1beta1/export.js.map +1 -1
- package/lib/codec/cosmos/vesting/v1beta1/tx.d.ts +2 -2
- package/lib/codec/cosmos/vesting/v1beta1/tx.d.ts.map +1 -1
- package/lib/codec/cosmos/vesting/v1beta1/tx.js +25 -44
- package/lib/codec/cosmos/vesting/v1beta1/tx.js.map +1 -1
- package/lib/codec/cosmos/vesting/v1beta1/vesting.d.ts +17 -2
- package/lib/codec/cosmos/vesting/v1beta1/vesting.d.ts.map +1 -1
- package/lib/codec/cosmos/vesting/v1beta1/vesting.js +136 -164
- package/lib/codec/cosmos/vesting/v1beta1/vesting.js.map +1 -1
- package/lib/codec/fee/fee.d.ts +2 -2
- package/lib/codec/fee/fee.d.ts.map +1 -1
- package/lib/codec/fee/fee.js +6 -12
- package/lib/codec/fee/fee.js.map +1 -1
- package/lib/codec/fee/genesis.d.ts +2 -2
- package/lib/codec/fee/genesis.d.ts.map +1 -1
- package/lib/codec/fee/genesis.js +4 -12
- package/lib/codec/fee/genesis.js.map +1 -1
- package/lib/codec/fee/proposal.d.ts +2 -2
- package/lib/codec/fee/proposal.d.ts.map +1 -1
- package/lib/codec/fee/proposal.js +16 -24
- package/lib/codec/fee/proposal.js.map +1 -1
- package/lib/codec/fee/query.d.ts +5 -4
- package/lib/codec/fee/query.d.ts.map +1 -1
- package/lib/codec/fee/query.js +37 -59
- package/lib/codec/fee/query.js.map +1 -1
- package/lib/codec/fee/tx.d.ts +2 -2
- package/lib/codec/fee/tx.d.ts.map +1 -1
- package/lib/codec/fee/tx.js +12 -18
- package/lib/codec/fee/tx.js.map +1 -1
- package/lib/codec/google/protobuf/any.d.ts +2 -2
- package/lib/codec/google/protobuf/any.d.ts.map +1 -1
- package/lib/codec/google/protobuf/any.js +8 -10
- package/lib/codec/google/protobuf/any.js.map +1 -1
- package/lib/codec/google/protobuf/duration.d.ts +2 -2
- package/lib/codec/google/protobuf/duration.d.ts.map +1 -1
- package/lib/codec/google/protobuf/duration.js +12 -18
- package/lib/codec/google/protobuf/duration.js.map +1 -1
- package/lib/codec/google/protobuf/timestamp.d.ts +2 -2
- package/lib/codec/google/protobuf/timestamp.d.ts.map +1 -1
- package/lib/codec/google/protobuf/timestamp.js +12 -18
- package/lib/codec/google/protobuf/timestamp.js.map +1 -1
- package/lib/codec/google/protobuf/wrappers.d.ts +2 -2
- package/lib/codec/google/protobuf/wrappers.d.ts.map +1 -1
- package/lib/codec/google/protobuf/wrappers.js +44 -64
- package/lib/codec/google/protobuf/wrappers.js.map +1 -1
- package/lib/codec/ibc/applications/transfer/v1/genesis.d.ts.map +1 -1
- package/lib/codec/ibc/applications/transfer/v1/genesis.js +6 -2
- package/lib/codec/ibc/applications/transfer/v1/genesis.js.map +1 -1
- package/lib/codec/ibc/applications/transfer/v1/query.d.ts.map +1 -1
- package/lib/codec/ibc/applications/transfer/v1/query.js +6 -2
- package/lib/codec/ibc/applications/transfer/v1/query.js.map +1 -1
- package/lib/codec/ibc/applications/transfer/v1/transfer.d.ts.map +1 -1
- package/lib/codec/ibc/applications/transfer/v1/transfer.js +42 -10
- package/lib/codec/ibc/applications/transfer/v1/transfer.js.map +1 -1
- package/lib/codec/ibc/applications/transfer/v1/tx.d.ts.map +1 -1
- package/lib/codec/ibc/applications/transfer/v1/tx.js +24 -5
- package/lib/codec/ibc/applications/transfer/v1/tx.js.map +1 -1
- package/lib/codec/ibc/core/channel/v1/channel.d.ts.map +1 -1
- package/lib/codec/ibc/core/channel/v1/channel.js +124 -28
- package/lib/codec/ibc/core/channel/v1/channel.js.map +1 -1
- package/lib/codec/ibc/core/channel/v1/genesis.d.ts.map +1 -1
- package/lib/codec/ibc/core/channel/v1/genesis.js +18 -9
- package/lib/codec/ibc/core/channel/v1/genesis.js.map +1 -1
- package/lib/codec/ibc/core/channel/v1/query.d.ts.map +1 -1
- package/lib/codec/ibc/core/channel/v1/query.js +205 -53
- package/lib/codec/ibc/core/channel/v1/query.js.map +1 -1
- package/lib/codec/ibc/core/channel/v1/tx.d.ts.map +1 -1
- package/lib/codec/ibc/core/channel/v1/tx.js +212 -44
- package/lib/codec/ibc/core/channel/v1/tx.js.map +1 -1
- package/lib/codec/ibc/core/client/v1/client.d.ts.map +1 -1
- package/lib/codec/ibc/core/client/v1/client.js +30 -8
- package/lib/codec/ibc/core/client/v1/client.js.map +1 -1
- package/lib/codec/ibc/core/client/v1/genesis.d.ts.map +1 -1
- package/lib/codec/ibc/core/client/v1/genesis.js +27 -9
- package/lib/codec/ibc/core/client/v1/genesis.js.map +1 -1
- package/lib/codec/ibc/core/client/v1/query.d.ts.map +1 -1
- package/lib/codec/ibc/core/client/v1/query.js +36 -11
- package/lib/codec/ibc/core/client/v1/query.js.map +1 -1
- package/lib/codec/ibc/core/client/v1/tx.d.ts.map +1 -1
- package/lib/codec/ibc/core/client/v1/tx.js +56 -14
- package/lib/codec/ibc/core/client/v1/tx.js.map +1 -1
- package/lib/codec/ibc/core/commitment/v1/commitment.d.ts.map +1 -1
- package/lib/codec/ibc/core/commitment/v1/commitment.js +12 -4
- package/lib/codec/ibc/core/commitment/v1/commitment.js.map +1 -1
- package/lib/codec/ibc/core/connection/v1/connection.d.ts.map +1 -1
- package/lib/codec/ibc/core/connection/v1/connection.js +54 -14
- package/lib/codec/ibc/core/connection/v1/connection.js.map +1 -1
- package/lib/codec/ibc/core/connection/v1/genesis.js +1 -1
- package/lib/codec/ibc/core/connection/v1/genesis.js.map +1 -1
- package/lib/codec/ibc/core/connection/v1/query.d.ts.map +1 -1
- package/lib/codec/ibc/core/connection/v1/query.js +54 -17
- package/lib/codec/ibc/core/connection/v1/query.js.map +1 -1
- package/lib/codec/ibc/core/connection/v1/tx.d.ts.map +1 -1
- package/lib/codec/ibc/core/connection/v1/tx.js +105 -22
- package/lib/codec/ibc/core/connection/v1/tx.js.map +1 -1
- package/lib/codec/ibc/lightclients/localhost/v1/localhost.d.ts.map +1 -1
- package/lib/codec/ibc/lightclients/localhost/v1/localhost.js +6 -2
- package/lib/codec/ibc/lightclients/localhost/v1/localhost.js.map +1 -1
- package/lib/codec/ibc/lightclients/solomachine/v1/solomachine.d.ts.map +1 -1
- package/lib/codec/ibc/lightclients/solomachine/v1/solomachine.js +140 -39
- package/lib/codec/ibc/lightclients/solomachine/v1/solomachine.js.map +1 -1
- package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.d.ts.map +1 -1
- package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.js +42 -12
- package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.js.map +1 -1
- package/lib/codec/index.d.ts +28 -53
- package/lib/codec/index.d.ts.map +1 -1
- package/lib/codec/index.js +295 -369
- package/lib/codec/index.js.map +1 -1
- package/lib/codec/inflation/genesis.d.ts +2 -2
- package/lib/codec/inflation/genesis.d.ts.map +1 -1
- package/lib/codec/inflation/genesis.js +12 -19
- package/lib/codec/inflation/genesis.js.map +1 -1
- package/lib/codec/inflation/inflation.d.ts +2 -2
- package/lib/codec/inflation/inflation.d.ts.map +1 -1
- package/lib/codec/inflation/inflation.js +20 -30
- package/lib/codec/inflation/inflation.js.map +1 -1
- package/lib/codec/inflation/query.d.ts +3 -6
- package/lib/codec/inflation/query.d.ts.map +1 -1
- package/lib/codec/inflation/query.js +8 -12
- package/lib/codec/inflation/query.js.map +1 -1
- package/lib/codec/insurance/event.d.ts +2 -2
- package/lib/codec/insurance/event.d.ts.map +1 -1
- package/lib/codec/insurance/event.js.map +1 -1
- package/lib/codec/insurance/fund.d.ts +2 -2
- package/lib/codec/insurance/fund.d.ts.map +1 -1
- package/lib/codec/insurance/fund.js +12 -16
- package/lib/codec/insurance/fund.js.map +1 -1
- package/lib/codec/insurance/genesis.d.ts +2 -2
- package/lib/codec/insurance/genesis.d.ts.map +1 -1
- package/lib/codec/insurance/genesis.js +6 -28
- package/lib/codec/insurance/genesis.js.map +1 -1
- package/lib/codec/insurance/query.d.ts +29 -0
- package/lib/codec/insurance/query.d.ts.map +1 -1
- package/lib/codec/insurance/query.js +89 -1
- package/lib/codec/insurance/query.js.map +1 -1
- package/lib/codec/leverage/event.d.ts +2 -2
- package/lib/codec/leverage/event.d.ts.map +1 -1
- package/lib/codec/leverage/event.js +16 -24
- package/lib/codec/leverage/event.js.map +1 -1
- package/lib/codec/leverage/genesis.d.ts +4 -4
- package/lib/codec/leverage/genesis.d.ts.map +1 -1
- package/lib/codec/leverage/genesis.js +11 -21
- package/lib/codec/leverage/genesis.js.map +1 -1
- package/lib/codec/leverage/leverage.d.ts +10 -10
- package/lib/codec/leverage/leverage.d.ts.map +1 -1
- package/lib/codec/leverage/leverage.js +34 -74
- package/lib/codec/leverage/leverage.js.map +1 -1
- package/lib/codec/leverage/query.d.ts +3 -3
- package/lib/codec/leverage/query.d.ts.map +1 -1
- package/lib/codec/leverage/query.js +30 -50
- package/lib/codec/leverage/query.js.map +1 -1
- package/lib/codec/leverage/tx.d.ts +2 -2
- package/lib/codec/leverage/tx.d.ts.map +1 -1
- package/lib/codec/leverage/tx.js +12 -18
- package/lib/codec/leverage/tx.js.map +1 -1
- package/lib/codec/liquidation/genesis.d.ts +2 -2
- package/lib/codec/liquidation/genesis.d.ts.map +1 -1
- package/lib/codec/liquidation/genesis.js +22 -36
- package/lib/codec/liquidation/genesis.js.map +1 -1
- package/lib/codec/liquidation/history.d.ts +2 -2
- package/lib/codec/liquidation/history.d.ts.map +1 -1
- package/lib/codec/liquidation/history.js +44 -66
- package/lib/codec/liquidation/history.js.map +1 -1
- package/lib/codec/liquidation/outstanding_position.d.ts +2 -2
- package/lib/codec/liquidation/outstanding_position.d.ts.map +1 -1
- package/lib/codec/liquidation/outstanding_position.js +25 -46
- package/lib/codec/liquidation/outstanding_position.js.map +1 -1
- package/lib/codec/liquidation/query.d.ts +5 -5
- package/lib/codec/liquidation/query.d.ts.map +1 -1
- package/lib/codec/liquidation/query.js +68 -106
- package/lib/codec/liquidation/query.js.map +1 -1
- package/lib/codec/liquiditypool/event.d.ts +2 -2
- package/lib/codec/liquiditypool/event.d.ts.map +1 -1
- package/lib/codec/liquiditypool/event.js +84 -129
- package/lib/codec/liquiditypool/event.js.map +1 -1
- package/lib/codec/liquiditypool/genesis.d.ts +10 -11
- package/lib/codec/liquiditypool/genesis.d.ts.map +1 -1
- package/lib/codec/liquiditypool/genesis.js +93 -183
- package/lib/codec/liquiditypool/genesis.js.map +1 -1
- package/lib/codec/liquiditypool/liquiditypool.d.ts +2 -2
- package/lib/codec/liquiditypool/liquiditypool.d.ts.map +1 -1
- package/lib/codec/liquiditypool/liquiditypool.js +116 -194
- package/lib/codec/liquiditypool/liquiditypool.js.map +1 -1
- package/lib/codec/liquiditypool/proposal.d.ts +11 -23
- package/lib/codec/liquiditypool/proposal.d.ts.map +1 -1
- package/lib/codec/liquiditypool/proposal.js +105 -237
- package/lib/codec/liquiditypool/proposal.js.map +1 -1
- package/lib/codec/liquiditypool/query.d.ts +20 -21
- package/lib/codec/liquiditypool/query.d.ts.map +1 -1
- package/lib/codec/liquiditypool/query.js +266 -468
- package/lib/codec/liquiditypool/query.js.map +1 -1
- package/lib/codec/liquiditypool/reward.d.ts +120 -119
- package/lib/codec/liquiditypool/reward.d.ts.map +1 -1
- package/lib/codec/liquiditypool/reward.js +566 -705
- package/lib/codec/liquiditypool/reward.js.map +1 -1
- package/lib/codec/liquiditypool/tx.d.ts +31 -73
- package/lib/codec/liquiditypool/tx.d.ts.map +1 -1
- package/lib/codec/liquiditypool/tx.js +372 -770
- package/lib/codec/liquiditypool/tx.js.map +1 -1
- package/lib/codec/market/event.d.ts +2 -2
- package/lib/codec/market/event.d.ts.map +1 -1
- package/lib/codec/market/event.js +12 -18
- package/lib/codec/market/event.js.map +1 -1
- package/lib/codec/market/genesis.d.ts +2 -2
- package/lib/codec/market/genesis.d.ts.map +1 -1
- package/lib/codec/market/genesis.js +4 -12
- package/lib/codec/market/genesis.js.map +1 -1
- package/lib/codec/market/market.d.ts +2 -2
- package/lib/codec/market/market.d.ts.map +1 -1
- package/lib/codec/market/market.js +226 -330
- package/lib/codec/market/market.js.map +1 -1
- package/lib/codec/market/proposal.d.ts +2 -2
- package/lib/codec/market/proposal.d.ts.map +1 -1
- package/lib/codec/market/proposal.js +32 -48
- package/lib/codec/market/proposal.js.map +1 -1
- package/lib/codec/market/query.d.ts +5 -4
- package/lib/codec/market/query.d.ts.map +1 -1
- package/lib/codec/market/query.js +37 -59
- package/lib/codec/market/query.js.map +1 -1
- package/lib/codec/market/tx.d.ts +2 -2
- package/lib/codec/market/tx.d.ts.map +1 -1
- package/lib/codec/market/tx.js +28 -42
- package/lib/codec/market/tx.js.map +1 -1
- package/lib/codec/misc/message.d.ts +3 -2
- package/lib/codec/misc/message.d.ts.map +1 -1
- package/lib/codec/misc/message.js +55 -25
- package/lib/codec/misc/message.js.map +1 -1
- package/lib/codec/misc/message_type.d.ts +2 -2
- package/lib/codec/misc/message_type.d.ts.map +1 -1
- package/lib/codec/misc/message_type.js +4 -6
- package/lib/codec/misc/message_type.js.map +1 -1
- package/lib/codec/misc/query.d.ts +4 -4
- package/lib/codec/misc/query.d.ts.map +1 -1
- package/lib/codec/misc/query.js +21 -45
- package/lib/codec/misc/query.js.map +1 -1
- package/lib/codec/misc/transaction.d.ts +2 -2
- package/lib/codec/misc/transaction.d.ts.map +1 -1
- package/lib/codec/misc/transaction.js +48 -79
- package/lib/codec/misc/transaction.js.map +1 -1
- package/lib/codec/oracle/event.d.ts +2 -2
- package/lib/codec/oracle/event.d.ts.map +1 -1
- package/lib/codec/oracle/event.js +40 -60
- package/lib/codec/oracle/event.js.map +1 -1
- package/lib/codec/oracle/genesis.d.ts +2 -2
- package/lib/codec/oracle/genesis.d.ts.map +1 -1
- package/lib/codec/oracle/genesis.js +8 -36
- package/lib/codec/oracle/genesis.js.map +1 -1
- package/lib/codec/oracle/oracle.d.ts +2 -2
- package/lib/codec/oracle/oracle.d.ts.map +1 -1
- package/lib/codec/oracle/oracle.js +100 -152
- package/lib/codec/oracle/oracle.js.map +1 -1
- package/lib/codec/oracle/proposal.d.ts +2 -2
- package/lib/codec/oracle/proposal.d.ts.map +1 -1
- package/lib/codec/oracle/proposal.js +16 -24
- package/lib/codec/oracle/proposal.js.map +1 -1
- package/lib/codec/oracle/query.d.ts +77 -69
- package/lib/codec/oracle/query.d.ts.map +1 -1
- package/lib/codec/oracle/query.js +210 -212
- package/lib/codec/oracle/query.js.map +1 -1
- package/lib/codec/oracle/tx.d.ts +2 -2
- package/lib/codec/oracle/tx.d.ts.map +1 -1
- package/lib/codec/oracle/tx.js +84 -130
- package/lib/codec/oracle/tx.js.map +1 -1
- package/lib/codec/order/event.d.ts +2 -2
- package/lib/codec/order/event.d.ts.map +1 -1
- package/lib/codec/order/event.js +26 -38
- package/lib/codec/order/event.js.map +1 -1
- package/lib/codec/order/genesis.d.ts +2 -2
- package/lib/codec/order/genesis.d.ts.map +1 -1
- package/lib/codec/order/genesis.js +46 -107
- package/lib/codec/order/genesis.js.map +1 -1
- package/lib/codec/order/order.d.ts +37 -2
- package/lib/codec/order/order.d.ts.map +1 -1
- package/lib/codec/order/order.js +528 -236
- package/lib/codec/order/order.js.map +1 -1
- package/lib/codec/order/query.d.ts +13 -8
- package/lib/codec/order/query.d.ts.map +1 -1
- package/lib/codec/order/query.js +90 -89
- package/lib/codec/order/query.js.map +1 -1
- package/lib/codec/order/tx.d.ts +2 -2
- package/lib/codec/order/tx.d.ts.map +1 -1
- package/lib/codec/order/tx.js +88 -138
- package/lib/codec/order/tx.js.map +1 -1
- package/lib/codec/position/event.d.ts +2 -2
- package/lib/codec/position/event.d.ts.map +1 -1
- package/lib/codec/position/event.js +56 -82
- package/lib/codec/position/event.js.map +1 -1
- package/lib/codec/position/genesis.d.ts +2 -2
- package/lib/codec/position/genesis.d.ts.map +1 -1
- package/lib/codec/position/genesis.js +4 -12
- package/lib/codec/position/genesis.js.map +1 -1
- package/lib/codec/position/position.d.ts +25 -2
- package/lib/codec/position/position.d.ts.map +1 -1
- package/lib/codec/position/position.js +291 -69
- package/lib/codec/position/position.js.map +1 -1
- package/lib/codec/position/query.d.ts +8 -8
- package/lib/codec/position/query.d.ts.map +1 -1
- package/lib/codec/position/query.js +87 -122
- package/lib/codec/position/query.js.map +1 -1
- package/lib/codec/position/tx.d.ts +2 -2
- package/lib/codec/position/tx.d.ts.map +1 -1
- package/lib/codec/position/tx.js +12 -18
- package/lib/codec/position/tx.js.map +1 -1
- package/lib/codec/pricing/event.d.ts +3 -3
- package/lib/codec/pricing/event.d.ts.map +1 -1
- package/lib/codec/pricing/event.js +14 -18
- package/lib/codec/pricing/event.js.map +1 -1
- package/lib/codec/pricing/genesis.d.ts +2 -2
- package/lib/codec/pricing/genesis.d.ts.map +1 -1
- package/lib/codec/pricing/genesis.js +4 -12
- package/lib/codec/pricing/genesis.js.map +1 -1
- package/lib/codec/pricing/pricing.d.ts +2 -2
- package/lib/codec/pricing/pricing.d.ts.map +1 -1
- package/lib/codec/pricing/pricing.js +46 -69
- package/lib/codec/pricing/pricing.js.map +1 -1
- package/lib/codec/pricing/proposal.d.ts +2 -2
- package/lib/codec/pricing/proposal.d.ts.map +1 -1
- package/lib/codec/pricing/proposal.js +24 -37
- package/lib/codec/pricing/proposal.js.map +1 -1
- package/lib/codec/pricing/query.d.ts +22 -20
- package/lib/codec/pricing/query.d.ts.map +1 -1
- package/lib/codec/pricing/query.js +63 -92
- package/lib/codec/pricing/query.js.map +1 -1
- package/lib/codec/profile/event.d.ts +2 -2
- package/lib/codec/profile/event.d.ts.map +1 -1
- package/lib/codec/profile/event.js +12 -18
- package/lib/codec/profile/event.js.map +1 -1
- package/lib/codec/profile/genesis.d.ts +2 -2
- package/lib/codec/profile/genesis.d.ts.map +1 -1
- package/lib/codec/profile/genesis.js +4 -12
- package/lib/codec/profile/genesis.js.map +1 -1
- package/lib/codec/profile/profile.d.ts +2 -2
- package/lib/codec/profile/profile.d.ts.map +1 -1
- package/lib/codec/profile/profile.js +12 -18
- package/lib/codec/profile/profile.js.map +1 -1
- package/lib/codec/profile/query.d.ts +5 -4
- package/lib/codec/profile/query.d.ts.map +1 -1
- package/lib/codec/profile/query.js +42 -66
- package/lib/codec/profile/query.js.map +1 -1
- package/lib/codec/profile/tx.d.ts +2 -2
- package/lib/codec/profile/tx.d.ts.map +1 -1
- package/lib/codec/profile/tx.js +12 -18
- package/lib/codec/profile/tx.js.map +1 -1
- package/lib/codec/query/pagination.d.ts +30 -0
- package/lib/codec/query/pagination.d.ts.map +1 -0
- package/lib/codec/query/pagination.js +127 -0
- package/lib/codec/query/pagination.js.map +1 -0
- package/lib/codec/staking/event.d.ts +4 -4
- package/lib/codec/staking/event.d.ts.map +1 -1
- package/lib/codec/staking/event.js +62 -79
- package/lib/codec/staking/event.js.map +1 -1
- package/lib/codec/subaccount/genesis.d.ts +2 -2
- package/lib/codec/subaccount/genesis.d.ts.map +1 -1
- package/lib/codec/subaccount/genesis.js +4 -12
- package/lib/codec/subaccount/genesis.js.map +1 -1
- package/lib/codec/subaccount/query.d.ts +11 -8
- package/lib/codec/subaccount/query.d.ts.map +1 -1
- package/lib/codec/subaccount/query.js +84 -114
- package/lib/codec/subaccount/query.js.map +1 -1
- package/lib/codec/subaccount/subaccount.d.ts +2 -2
- package/lib/codec/subaccount/subaccount.d.ts.map +1 -1
- package/lib/codec/subaccount/subaccount.js +20 -30
- package/lib/codec/subaccount/subaccount.js.map +1 -1
- package/lib/codec/subaccount/tx.d.ts +2 -2
- package/lib/codec/subaccount/tx.d.ts.map +1 -1
- package/lib/codec/subaccount/tx.js +25 -37
- package/lib/codec/subaccount/tx.js.map +1 -1
- package/lib/codec/tendermint/abci/types.d.ts +2 -2
- package/lib/codec/tendermint/abci/types.d.ts.map +1 -1
- package/lib/codec/tendermint/abci/types.js +871 -1373
- package/lib/codec/tendermint/abci/types.js.map +1 -1
- package/lib/codec/tendermint/crypto/keys.d.ts +2 -2
- package/lib/codec/tendermint/crypto/keys.d.ts.map +1 -1
- package/lib/codec/tendermint/crypto/keys.js +8 -6
- package/lib/codec/tendermint/crypto/keys.js.map +1 -1
- package/lib/codec/tendermint/crypto/proof.d.ts +2 -2
- package/lib/codec/tendermint/crypto/proof.d.ts.map +1 -1
- package/lib/codec/tendermint/crypto/proof.js +62 -101
- package/lib/codec/tendermint/crypto/proof.js.map +1 -1
- package/lib/codec/tendermint/p2p/types.d.ts +2 -2
- package/lib/codec/tendermint/p2p/types.d.ts.map +1 -1
- package/lib/codec/tendermint/p2p/types.js +80 -126
- package/lib/codec/tendermint/p2p/types.js.map +1 -1
- package/lib/codec/tendermint/types/block.d.ts +2 -2
- package/lib/codec/tendermint/types/block.d.ts.map +1 -1
- package/lib/codec/tendermint/types/block.js +32 -48
- package/lib/codec/tendermint/types/block.js.map +1 -1
- package/lib/codec/tendermint/types/evidence.d.ts +2 -2
- package/lib/codec/tendermint/types/evidence.d.ts.map +1 -1
- package/lib/codec/tendermint/types/evidence.js +93 -158
- package/lib/codec/tendermint/types/evidence.js.map +1 -1
- package/lib/codec/tendermint/types/params.d.ts +2 -2
- package/lib/codec/tendermint/types/params.d.ts.map +1 -1
- package/lib/codec/tendermint/types/params.js +108 -170
- package/lib/codec/tendermint/types/params.js.map +1 -1
- package/lib/codec/tendermint/types/types.d.ts +2 -2
- package/lib/codec/tendermint/types/types.d.ts.map +1 -1
- package/lib/codec/tendermint/types/types.js +305 -436
- package/lib/codec/tendermint/types/types.js.map +1 -1
- package/lib/codec/tendermint/types/validator.d.ts +2 -2
- package/lib/codec/tendermint/types/validator.d.ts.map +1 -1
- package/lib/codec/tendermint/types/validator.js +64 -104
- package/lib/codec/tendermint/types/validator.js.map +1 -1
- package/lib/codec/tendermint/version/types.d.ts +2 -2
- package/lib/codec/tendermint/version/types.d.ts.map +1 -1
- package/lib/codec/tendermint/version/types.js +28 -42
- package/lib/codec/tendermint/version/types.js.map +1 -1
- package/lib/constant/index.d.ts +1 -0
- package/lib/constant/index.d.ts.map +1 -1
- package/lib/constant/index.js +1 -0
- package/lib/constant/index.js.map +1 -1
- package/lib/constant/network.d.ts +2 -5
- package/lib/constant/network.d.ts.map +1 -1
- package/lib/constant/network.js +28 -40
- package/lib/constant/network.js.map +1 -1
- package/lib/constant/node.d.ts +6 -0
- package/lib/constant/node.d.ts.map +1 -0
- package/lib/constant/node.js +37 -0
- package/lib/constant/node.js.map +1 -0
- package/lib/constant/token.d.ts.map +1 -1
- package/lib/constant/token.js +40 -1
- package/lib/constant/token.js.map +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +8 -1
- package/lib/index.js.map +1 -1
- package/lib/insights/balance.d.ts +1 -1
- package/lib/insights/balance.d.ts.map +1 -1
- package/lib/insights/block.d.ts +1 -1
- package/lib/insights/block.d.ts.map +1 -1
- package/lib/insights/node.d.ts +17 -2
- package/lib/insights/node.d.ts.map +1 -1
- package/lib/insights/pool.d.ts +1 -1
- package/lib/insights/pool.d.ts.map +1 -1
- package/lib/insights/transaction.d.ts +1 -1
- package/lib/insights/transaction.d.ts.map +1 -1
- package/lib/insights/user.d.ts +5 -3
- package/lib/insights/user.d.ts.map +1 -1
- package/lib/modules/admin.d.ts +64 -15
- package/lib/modules/admin.d.ts.map +1 -1
- package/lib/modules/admin.js +137 -43
- package/lib/modules/admin.js.map +1 -1
- package/lib/modules/bank.js +1 -1
- package/lib/modules/bank.js.map +1 -1
- package/lib/modules/fee.d.ts.map +1 -1
- package/lib/modules/fee.js +2 -1
- package/lib/modules/fee.js.map +1 -1
- package/lib/modules/gov.d.ts +3 -3
- package/lib/modules/gov.d.ts.map +1 -1
- package/lib/modules/gov.js +10 -12
- package/lib/modules/gov.js.map +1 -1
- package/lib/modules/liquiditypool.d.ts +7 -4
- package/lib/modules/liquiditypool.d.ts.map +1 -1
- package/lib/modules/liquiditypool.js +26 -100
- package/lib/modules/liquiditypool.js.map +1 -1
- package/lib/modules/market.js +1 -1
- package/lib/modules/market.js.map +1 -1
- package/lib/modules/order.js +4 -4
- package/lib/modules/order.js.map +1 -1
- package/lib/modules/staking.d.ts.map +1 -1
- package/lib/modules/staking.js +1 -2
- package/lib/modules/staking.js.map +1 -1
- package/lib/modules/subaccount.d.ts +4 -0
- package/lib/modules/subaccount.d.ts.map +1 -1
- package/lib/modules/subaccount.js +13 -0
- package/lib/modules/subaccount.js.map +1 -1
- package/lib/provider/account/index.d.ts +1 -1
- package/lib/provider/account/index.d.ts.map +1 -1
- package/lib/provider/account/index.js +4 -1
- package/lib/provider/account/index.js.map +1 -1
- package/lib/provider/amino/AminoTypesMap.d.ts +4 -0
- package/lib/provider/amino/AminoTypesMap.d.ts.map +1 -0
- package/lib/provider/amino/AminoTypesMap.js +9 -0
- package/lib/provider/amino/AminoTypesMap.js.map +1 -0
- package/lib/provider/amino/index.d.ts +2 -0
- package/lib/provider/amino/index.d.ts.map +1 -0
- package/lib/provider/amino/index.js +9 -0
- package/lib/provider/amino/index.js.map +1 -0
- package/lib/provider/amino/types/admin.d.ts +5 -0
- package/lib/provider/amino/types/admin.d.ts.map +1 -0
- package/lib/provider/amino/types/admin.js +177 -0
- package/lib/provider/amino/types/admin.js.map +1 -0
- package/lib/provider/amino/types/bank.d.ts +5 -0
- package/lib/provider/amino/types/bank.d.ts.map +1 -0
- package/lib/provider/amino/types/bank.js +16 -0
- package/lib/provider/amino/types/bank.js.map +1 -0
- package/lib/provider/amino/types/broker.d.ts +5 -0
- package/lib/provider/amino/types/broker.d.ts.map +1 -0
- package/lib/provider/amino/types/broker.js +16 -0
- package/lib/provider/amino/types/broker.js.map +1 -0
- package/lib/provider/amino/types/cdp.d.ts +5 -0
- package/lib/provider/amino/types/cdp.d.ts.map +1 -0
- package/lib/provider/amino/types/cdp.js +46 -0
- package/lib/provider/amino/types/cdp.js.map +1 -0
- package/lib/provider/amino/types/coin.d.ts +5 -0
- package/lib/provider/amino/types/coin.d.ts.map +1 -0
- package/lib/provider/amino/types/coin.js +25 -0
- package/lib/provider/amino/types/coin.js.map +1 -0
- package/lib/provider/amino/types/gov.d.ts +5 -0
- package/lib/provider/amino/types/gov.d.ts.map +1 -0
- package/lib/provider/amino/types/gov.js +377 -0
- package/lib/provider/amino/types/gov.js.map +1 -0
- package/lib/provider/amino/types/index.d.ts +16 -0
- package/lib/provider/amino/types/index.d.ts.map +1 -0
- package/lib/provider/amino/types/index.js +37 -0
- package/lib/provider/amino/types/index.js.map +1 -0
- package/lib/provider/amino/types/leverage.d.ts +5 -0
- package/lib/provider/amino/types/leverage.d.ts.map +1 -0
- package/lib/provider/amino/types/leverage.js +18 -0
- package/lib/provider/amino/types/leverage.js.map +1 -0
- package/lib/provider/amino/types/liquidityPool.d.ts +5 -0
- package/lib/provider/amino/types/liquidityPool.d.ts.map +1 -0
- package/lib/provider/amino/types/liquidityPool.js +95 -0
- package/lib/provider/amino/types/liquidityPool.js.map +1 -0
- package/lib/provider/amino/types/market.d.ts +5 -0
- package/lib/provider/amino/types/market.d.ts.map +1 -0
- package/lib/provider/amino/types/market.js +28 -0
- package/lib/provider/amino/types/market.js.map +1 -0
- package/lib/provider/amino/types/oracle.d.ts +5 -0
- package/lib/provider/amino/types/oracle.d.ts.map +1 -0
- package/lib/provider/amino/types/oracle.js +18 -0
- package/lib/provider/amino/types/oracle.js.map +1 -0
- package/lib/provider/amino/types/order.d.ts +5 -0
- package/lib/provider/amino/types/order.d.ts.map +1 -0
- package/lib/provider/amino/types/order.js +69 -0
- package/lib/provider/amino/types/order.js.map +1 -0
- package/lib/provider/amino/types/position.d.ts +5 -0
- package/lib/provider/amino/types/position.d.ts.map +1 -0
- package/lib/provider/amino/types/position.js +18 -0
- package/lib/provider/amino/types/position.js.map +1 -0
- package/lib/provider/amino/types/profile.d.ts +5 -0
- package/lib/provider/amino/types/profile.d.ts.map +1 -0
- package/lib/provider/amino/types/profile.js +32 -0
- package/lib/provider/amino/types/profile.js.map +1 -0
- package/lib/provider/amino/types/staking.d.ts +5 -0
- package/lib/provider/amino/types/staking.d.ts.map +1 -0
- package/lib/provider/amino/types/staking.js +34 -0
- package/lib/provider/amino/types/staking.js.map +1 -0
- package/lib/provider/amino/types/subaccount.d.ts +5 -0
- package/lib/provider/amino/types/subaccount.d.ts.map +1 -0
- package/lib/provider/amino/types/subaccount.js +28 -0
- package/lib/provider/amino/types/subaccount.js.map +1 -0
- package/lib/provider/amino/utils.d.ts +42 -0
- package/lib/provider/amino/utils.d.ts.map +1 -0
- package/lib/provider/amino/utils.js +187 -0
- package/lib/provider/amino/utils.js.map +1 -0
- package/lib/provider/index.d.ts +6 -4
- package/lib/provider/index.d.ts.map +1 -1
- package/lib/provider/index.js +9 -4
- package/lib/provider/index.js.map +1 -1
- package/lib/provider/keplr/KeplrAccount.js +1 -1
- package/lib/provider/keplr/KeplrAccount.js.map +1 -1
- package/lib/provider/metamask/MetaMask.d.ts.map +1 -1
- package/lib/provider/metamask/MetaMask.js +4 -9
- package/lib/provider/metamask/MetaMask.js.map +1 -1
- package/lib/provider/zilpay/Zilpay.d.ts +34 -0
- package/lib/provider/zilpay/Zilpay.d.ts.map +1 -0
- package/lib/provider/zilpay/Zilpay.js +83 -0
- package/lib/provider/zilpay/Zilpay.js.map +1 -0
- package/lib/provider/zilpay/index.d.ts +2 -0
- package/lib/provider/zilpay/index.d.ts.map +1 -0
- package/lib/provider/zilpay/index.js +14 -0
- package/lib/provider/zilpay/index.js.map +1 -0
- package/lib/util/address.d.ts.map +1 -1
- package/lib/util/address.js +4 -9
- package/lib/util/address.js.map +1 -1
- package/lib/util/api.js +5 -5
- package/lib/util/api.js.map +1 -1
- package/lib/util/blockchain.d.ts.map +1 -1
- package/lib/util/blockchain.js +5 -1
- package/lib/util/blockchain.js.map +1 -1
- package/lib/util/gov.d.ts +25 -0
- package/lib/util/gov.d.ts.map +1 -0
- package/lib/util/gov.js +59 -0
- package/lib/util/gov.js.map +1 -0
- package/lib/util/index.d.ts +2 -0
- package/lib/util/index.d.ts.map +1 -1
- package/lib/util/index.js +3 -1
- package/lib/util/index.js.map +1 -1
- package/lib/util/transferfees.d.ts +5 -0
- package/lib/util/transferfees.d.ts.map +1 -1
- package/lib/util/transferfees.js +7 -0
- package/lib/util/transferfees.js.map +1 -1
- package/lib/util/tx.d.ts +14 -78
- package/lib/util/tx.d.ts.map +1 -1
- package/lib/util/tx.js +1 -53
- package/lib/util/tx.js.map +1 -1
- package/lib/util/type.d.ts +11 -0
- package/lib/util/type.d.ts.map +1 -1
- package/lib/util/type.js +46 -0
- package/lib/util/type.js.map +1 -1
- package/lib/wallet/CarbonSigner.d.ts +24 -11
- package/lib/wallet/CarbonSigner.d.ts.map +1 -1
- package/lib/wallet/CarbonSigner.js +56 -23
- package/lib/wallet/CarbonSigner.js.map +1 -1
- package/lib/wallet/CarbonWallet.d.ts +4 -8
- package/lib/wallet/CarbonWallet.d.ts.map +1 -1
- package/lib/wallet/CarbonWallet.js +28 -66
- package/lib/wallet/CarbonWallet.js.map +1 -1
- package/lib/websocket/models.d.ts +5 -4
- package/lib/websocket/models.d.ts.map +1 -1
- package/package.json +7 -8
|
@@ -3,11 +3,12 @@ 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.MsgClientImpl = exports.
|
|
6
|
+
exports.MsgClientImpl = exports.MsgUpdatePoolResponse = exports.UpdatePoolParams = exports.MsgUpdatePool = exports.MsgSetCommitmentCurveResponse = exports.SetCommitmentCurveParams = exports.MsgSetCommitmentCurve = exports.MsgSetRewardCurveResponse = exports.SetRewardCurveParams = exports.MsgSetRewardCurve = exports.MsgClaimPoolRewardsResponse = exports.MsgClaimPoolRewards = exports.MsgUnstakePoolTokenResponse = exports.MsgUnstakePoolToken = exports.MsgStakePoolTokenResponse = exports.MsgStakePoolToken = exports.MsgSetRewardsWeightsResponse = exports.SetRewardsWeightsParams = exports.MsgSetRewardsWeights = exports.MsgUnlinkPoolResponse = exports.UnlinkPoolParams = exports.MsgUnlinkPool = exports.MsgLinkPoolResponse = exports.LinkPoolParams = exports.MsgLinkPool = exports.MsgRemoveLiquidityResponse = exports.MsgRemoveLiquidity = exports.MsgAddLiquidityResponse = exports.MsgAddLiquidity = exports.MsgCreatePoolWithLiquidityResponse = exports.MsgCreatePoolWithLiquidity = exports.MsgCreatePoolResponse = exports.MsgCreatePool = 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 timestamp_1 = require("../google/protobuf/timestamp");
|
|
11
|
+
const reward_1 = require("../liquiditypool/reward");
|
|
11
12
|
exports.protobufPackage = "Switcheo.carbon.liquiditypool";
|
|
12
13
|
const baseMsgCreatePool = {
|
|
13
14
|
creator: "",
|
|
@@ -80,48 +81,34 @@ exports.MsgCreatePool = {
|
|
|
80
81
|
},
|
|
81
82
|
fromJSON(object) {
|
|
82
83
|
const message = Object.assign({}, baseMsgCreatePool);
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
message.tokenBWeight = "";
|
|
112
|
-
}
|
|
113
|
-
if (object.swapFee !== undefined && object.swapFee !== null) {
|
|
114
|
-
message.swapFee = String(object.swapFee);
|
|
115
|
-
}
|
|
116
|
-
else {
|
|
117
|
-
message.swapFee = "";
|
|
118
|
-
}
|
|
119
|
-
if (object.numQuotes !== undefined && object.numQuotes !== null) {
|
|
120
|
-
message.numQuotes = long_1.default.fromString(object.numQuotes);
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
message.numQuotes = long_1.default.ZERO;
|
|
124
|
-
}
|
|
84
|
+
message.creator =
|
|
85
|
+
object.creator !== undefined && object.creator !== null
|
|
86
|
+
? String(object.creator)
|
|
87
|
+
: "";
|
|
88
|
+
message.tokenADenom =
|
|
89
|
+
object.tokenADenom !== undefined && object.tokenADenom !== null
|
|
90
|
+
? String(object.tokenADenom)
|
|
91
|
+
: "";
|
|
92
|
+
message.tokenBDenom =
|
|
93
|
+
object.tokenBDenom !== undefined && object.tokenBDenom !== null
|
|
94
|
+
? String(object.tokenBDenom)
|
|
95
|
+
: "";
|
|
96
|
+
message.tokenAWeight =
|
|
97
|
+
object.tokenAWeight !== undefined && object.tokenAWeight !== null
|
|
98
|
+
? String(object.tokenAWeight)
|
|
99
|
+
: "";
|
|
100
|
+
message.tokenBWeight =
|
|
101
|
+
object.tokenBWeight !== undefined && object.tokenBWeight !== null
|
|
102
|
+
? String(object.tokenBWeight)
|
|
103
|
+
: "";
|
|
104
|
+
message.swapFee =
|
|
105
|
+
object.swapFee !== undefined && object.swapFee !== null
|
|
106
|
+
? String(object.swapFee)
|
|
107
|
+
: "";
|
|
108
|
+
message.numQuotes =
|
|
109
|
+
object.numQuotes !== undefined && object.numQuotes !== null
|
|
110
|
+
? long_1.default.fromString(object.numQuotes)
|
|
111
|
+
: long_1.default.ZERO;
|
|
125
112
|
return message;
|
|
126
113
|
},
|
|
127
114
|
toJSON(message) {
|
|
@@ -149,12 +136,10 @@ exports.MsgCreatePool = {
|
|
|
149
136
|
message.tokenAWeight = (_d = object.tokenAWeight) !== null && _d !== void 0 ? _d : "";
|
|
150
137
|
message.tokenBWeight = (_e = object.tokenBWeight) !== null && _e !== void 0 ? _e : "";
|
|
151
138
|
message.swapFee = (_f = object.swapFee) !== null && _f !== void 0 ? _f : "";
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
message.numQuotes = long_1.default.ZERO;
|
|
157
|
-
}
|
|
139
|
+
message.numQuotes =
|
|
140
|
+
object.numQuotes !== undefined && object.numQuotes !== null
|
|
141
|
+
? long_1.default.fromValue(object.numQuotes)
|
|
142
|
+
: long_1.default.ZERO;
|
|
158
143
|
return message;
|
|
159
144
|
},
|
|
160
145
|
};
|
|
@@ -185,12 +170,10 @@ exports.MsgCreatePoolResponse = {
|
|
|
185
170
|
},
|
|
186
171
|
fromJSON(object) {
|
|
187
172
|
const message = Object.assign({}, baseMsgCreatePoolResponse);
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
message.poolId = long_1.default.UZERO;
|
|
193
|
-
}
|
|
173
|
+
message.poolId =
|
|
174
|
+
object.poolId !== undefined && object.poolId !== null
|
|
175
|
+
? long_1.default.fromString(object.poolId)
|
|
176
|
+
: long_1.default.UZERO;
|
|
194
177
|
return message;
|
|
195
178
|
},
|
|
196
179
|
toJSON(message) {
|
|
@@ -201,12 +184,10 @@ exports.MsgCreatePoolResponse = {
|
|
|
201
184
|
},
|
|
202
185
|
fromPartial(object) {
|
|
203
186
|
const message = Object.assign({}, baseMsgCreatePoolResponse);
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
message.poolId = long_1.default.UZERO;
|
|
209
|
-
}
|
|
187
|
+
message.poolId =
|
|
188
|
+
object.poolId !== undefined && object.poolId !== null
|
|
189
|
+
? long_1.default.fromValue(object.poolId)
|
|
190
|
+
: long_1.default.UZERO;
|
|
210
191
|
return message;
|
|
211
192
|
},
|
|
212
193
|
};
|
|
@@ -295,60 +276,42 @@ exports.MsgCreatePoolWithLiquidity = {
|
|
|
295
276
|
},
|
|
296
277
|
fromJSON(object) {
|
|
297
278
|
const message = Object.assign({}, baseMsgCreatePoolWithLiquidity);
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
if (object.amountB !== undefined && object.amountB !== null) {
|
|
335
|
-
message.amountB = String(object.amountB);
|
|
336
|
-
}
|
|
337
|
-
else {
|
|
338
|
-
message.amountB = "";
|
|
339
|
-
}
|
|
340
|
-
if (object.swapFee !== undefined && object.swapFee !== null) {
|
|
341
|
-
message.swapFee = String(object.swapFee);
|
|
342
|
-
}
|
|
343
|
-
else {
|
|
344
|
-
message.swapFee = "";
|
|
345
|
-
}
|
|
346
|
-
if (object.numQuotes !== undefined && object.numQuotes !== null) {
|
|
347
|
-
message.numQuotes = long_1.default.fromString(object.numQuotes);
|
|
348
|
-
}
|
|
349
|
-
else {
|
|
350
|
-
message.numQuotes = long_1.default.ZERO;
|
|
351
|
-
}
|
|
279
|
+
message.creator =
|
|
280
|
+
object.creator !== undefined && object.creator !== null
|
|
281
|
+
? String(object.creator)
|
|
282
|
+
: "";
|
|
283
|
+
message.tokenADenom =
|
|
284
|
+
object.tokenADenom !== undefined && object.tokenADenom !== null
|
|
285
|
+
? String(object.tokenADenom)
|
|
286
|
+
: "";
|
|
287
|
+
message.tokenBDenom =
|
|
288
|
+
object.tokenBDenom !== undefined && object.tokenBDenom !== null
|
|
289
|
+
? String(object.tokenBDenom)
|
|
290
|
+
: "";
|
|
291
|
+
message.tokenAWeight =
|
|
292
|
+
object.tokenAWeight !== undefined && object.tokenAWeight !== null
|
|
293
|
+
? String(object.tokenAWeight)
|
|
294
|
+
: "";
|
|
295
|
+
message.tokenBWeight =
|
|
296
|
+
object.tokenBWeight !== undefined && object.tokenBWeight !== null
|
|
297
|
+
? String(object.tokenBWeight)
|
|
298
|
+
: "";
|
|
299
|
+
message.amountA =
|
|
300
|
+
object.amountA !== undefined && object.amountA !== null
|
|
301
|
+
? String(object.amountA)
|
|
302
|
+
: "";
|
|
303
|
+
message.amountB =
|
|
304
|
+
object.amountB !== undefined && object.amountB !== null
|
|
305
|
+
? String(object.amountB)
|
|
306
|
+
: "";
|
|
307
|
+
message.swapFee =
|
|
308
|
+
object.swapFee !== undefined && object.swapFee !== null
|
|
309
|
+
? String(object.swapFee)
|
|
310
|
+
: "";
|
|
311
|
+
message.numQuotes =
|
|
312
|
+
object.numQuotes !== undefined && object.numQuotes !== null
|
|
313
|
+
? long_1.default.fromString(object.numQuotes)
|
|
314
|
+
: long_1.default.ZERO;
|
|
352
315
|
return message;
|
|
353
316
|
},
|
|
354
317
|
toJSON(message) {
|
|
@@ -380,12 +343,10 @@ exports.MsgCreatePoolWithLiquidity = {
|
|
|
380
343
|
message.amountA = (_f = object.amountA) !== null && _f !== void 0 ? _f : "";
|
|
381
344
|
message.amountB = (_g = object.amountB) !== null && _g !== void 0 ? _g : "";
|
|
382
345
|
message.swapFee = (_h = object.swapFee) !== null && _h !== void 0 ? _h : "";
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
message.numQuotes = long_1.default.ZERO;
|
|
388
|
-
}
|
|
346
|
+
message.numQuotes =
|
|
347
|
+
object.numQuotes !== undefined && object.numQuotes !== null
|
|
348
|
+
? long_1.default.fromValue(object.numQuotes)
|
|
349
|
+
: long_1.default.ZERO;
|
|
389
350
|
return message;
|
|
390
351
|
},
|
|
391
352
|
};
|
|
@@ -478,36 +439,26 @@ exports.MsgAddLiquidity = {
|
|
|
478
439
|
},
|
|
479
440
|
fromJSON(object) {
|
|
480
441
|
const message = Object.assign({}, baseMsgAddLiquidity);
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
}
|
|
502
|
-
else {
|
|
503
|
-
message.amountB = "";
|
|
504
|
-
}
|
|
505
|
-
if (object.minShares !== undefined && object.minShares !== null) {
|
|
506
|
-
message.minShares = String(object.minShares);
|
|
507
|
-
}
|
|
508
|
-
else {
|
|
509
|
-
message.minShares = "";
|
|
510
|
-
}
|
|
442
|
+
message.creator =
|
|
443
|
+
object.creator !== undefined && object.creator !== null
|
|
444
|
+
? String(object.creator)
|
|
445
|
+
: "";
|
|
446
|
+
message.poolId =
|
|
447
|
+
object.poolId !== undefined && object.poolId !== null
|
|
448
|
+
? long_1.default.fromString(object.poolId)
|
|
449
|
+
: long_1.default.UZERO;
|
|
450
|
+
message.amountA =
|
|
451
|
+
object.amountA !== undefined && object.amountA !== null
|
|
452
|
+
? String(object.amountA)
|
|
453
|
+
: "";
|
|
454
|
+
message.amountB =
|
|
455
|
+
object.amountB !== undefined && object.amountB !== null
|
|
456
|
+
? String(object.amountB)
|
|
457
|
+
: "";
|
|
458
|
+
message.minShares =
|
|
459
|
+
object.minShares !== undefined && object.minShares !== null
|
|
460
|
+
? String(object.minShares)
|
|
461
|
+
: "";
|
|
511
462
|
return message;
|
|
512
463
|
},
|
|
513
464
|
toJSON(message) {
|
|
@@ -524,12 +475,10 @@ exports.MsgAddLiquidity = {
|
|
|
524
475
|
var _a, _b, _c, _d;
|
|
525
476
|
const message = Object.assign({}, baseMsgAddLiquidity);
|
|
526
477
|
message.creator = (_a = object.creator) !== null && _a !== void 0 ? _a : "";
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
message.poolId = long_1.default.UZERO;
|
|
532
|
-
}
|
|
478
|
+
message.poolId =
|
|
479
|
+
object.poolId !== undefined && object.poolId !== null
|
|
480
|
+
? long_1.default.fromValue(object.poolId)
|
|
481
|
+
: long_1.default.UZERO;
|
|
533
482
|
message.amountA = (_b = object.amountA) !== null && _b !== void 0 ? _b : "";
|
|
534
483
|
message.amountB = (_c = object.amountB) !== null && _c !== void 0 ? _c : "";
|
|
535
484
|
message.minShares = (_d = object.minShares) !== null && _d !== void 0 ? _d : "";
|
|
@@ -611,24 +560,18 @@ exports.MsgRemoveLiquidity = {
|
|
|
611
560
|
},
|
|
612
561
|
fromJSON(object) {
|
|
613
562
|
const message = Object.assign({}, baseMsgRemoveLiquidity);
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
if (object.shares !== undefined && object.shares !== null) {
|
|
627
|
-
message.shares = String(object.shares);
|
|
628
|
-
}
|
|
629
|
-
else {
|
|
630
|
-
message.shares = "";
|
|
631
|
-
}
|
|
563
|
+
message.creator =
|
|
564
|
+
object.creator !== undefined && object.creator !== null
|
|
565
|
+
? String(object.creator)
|
|
566
|
+
: "";
|
|
567
|
+
message.poolId =
|
|
568
|
+
object.poolId !== undefined && object.poolId !== null
|
|
569
|
+
? long_1.default.fromString(object.poolId)
|
|
570
|
+
: long_1.default.UZERO;
|
|
571
|
+
message.shares =
|
|
572
|
+
object.shares !== undefined && object.shares !== null
|
|
573
|
+
? String(object.shares)
|
|
574
|
+
: "";
|
|
632
575
|
return message;
|
|
633
576
|
},
|
|
634
577
|
toJSON(message) {
|
|
@@ -643,12 +586,10 @@ exports.MsgRemoveLiquidity = {
|
|
|
643
586
|
var _a, _b;
|
|
644
587
|
const message = Object.assign({}, baseMsgRemoveLiquidity);
|
|
645
588
|
message.creator = (_a = object.creator) !== null && _a !== void 0 ? _a : "";
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
message.poolId = long_1.default.UZERO;
|
|
651
|
-
}
|
|
589
|
+
message.poolId =
|
|
590
|
+
object.poolId !== undefined && object.poolId !== null
|
|
591
|
+
? long_1.default.fromValue(object.poolId)
|
|
592
|
+
: long_1.default.UZERO;
|
|
652
593
|
message.shares = (_b = object.shares) !== null && _b !== void 0 ? _b : "";
|
|
653
594
|
return message;
|
|
654
595
|
},
|
|
@@ -718,18 +659,14 @@ exports.MsgLinkPool = {
|
|
|
718
659
|
},
|
|
719
660
|
fromJSON(object) {
|
|
720
661
|
const message = Object.assign({}, baseMsgLinkPool);
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
}
|
|
730
|
-
else {
|
|
731
|
-
message.linkPoolParams = undefined;
|
|
732
|
-
}
|
|
662
|
+
message.creator =
|
|
663
|
+
object.creator !== undefined && object.creator !== null
|
|
664
|
+
? String(object.creator)
|
|
665
|
+
: "";
|
|
666
|
+
message.linkPoolParams =
|
|
667
|
+
object.linkPoolParams !== undefined && object.linkPoolParams !== null
|
|
668
|
+
? exports.LinkPoolParams.fromJSON(object.linkPoolParams)
|
|
669
|
+
: undefined;
|
|
733
670
|
return message;
|
|
734
671
|
},
|
|
735
672
|
toJSON(message) {
|
|
@@ -745,12 +682,10 @@ exports.MsgLinkPool = {
|
|
|
745
682
|
var _a;
|
|
746
683
|
const message = Object.assign({}, baseMsgLinkPool);
|
|
747
684
|
message.creator = (_a = object.creator) !== null && _a !== void 0 ? _a : "";
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
message.linkPoolParams = undefined;
|
|
753
|
-
}
|
|
685
|
+
message.linkPoolParams =
|
|
686
|
+
object.linkPoolParams !== undefined && object.linkPoolParams !== null
|
|
687
|
+
? exports.LinkPoolParams.fromPartial(object.linkPoolParams)
|
|
688
|
+
: undefined;
|
|
754
689
|
return message;
|
|
755
690
|
},
|
|
756
691
|
};
|
|
@@ -787,18 +722,14 @@ exports.LinkPoolParams = {
|
|
|
787
722
|
},
|
|
788
723
|
fromJSON(object) {
|
|
789
724
|
const message = Object.assign({}, baseLinkPoolParams);
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
}
|
|
799
|
-
else {
|
|
800
|
-
message.market = "";
|
|
801
|
-
}
|
|
725
|
+
message.poolId =
|
|
726
|
+
object.poolId !== undefined && object.poolId !== null
|
|
727
|
+
? long_1.default.fromString(object.poolId)
|
|
728
|
+
: long_1.default.UZERO;
|
|
729
|
+
message.market =
|
|
730
|
+
object.market !== undefined && object.market !== null
|
|
731
|
+
? String(object.market)
|
|
732
|
+
: "";
|
|
802
733
|
return message;
|
|
803
734
|
},
|
|
804
735
|
toJSON(message) {
|
|
@@ -811,12 +742,10 @@ exports.LinkPoolParams = {
|
|
|
811
742
|
fromPartial(object) {
|
|
812
743
|
var _a;
|
|
813
744
|
const message = Object.assign({}, baseLinkPoolParams);
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
message.poolId = long_1.default.UZERO;
|
|
819
|
-
}
|
|
745
|
+
message.poolId =
|
|
746
|
+
object.poolId !== undefined && object.poolId !== null
|
|
747
|
+
? long_1.default.fromValue(object.poolId)
|
|
748
|
+
: long_1.default.UZERO;
|
|
820
749
|
message.market = (_a = object.market) !== null && _a !== void 0 ? _a : "";
|
|
821
750
|
return message;
|
|
822
751
|
},
|
|
@@ -886,19 +815,14 @@ exports.MsgUnlinkPool = {
|
|
|
886
815
|
},
|
|
887
816
|
fromJSON(object) {
|
|
888
817
|
const message = Object.assign({}, baseMsgUnlinkPool);
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
message.unlinkPoolParams = exports.UnlinkPoolParams.fromJSON(object.unlinkPoolParams);
|
|
898
|
-
}
|
|
899
|
-
else {
|
|
900
|
-
message.unlinkPoolParams = undefined;
|
|
901
|
-
}
|
|
818
|
+
message.creator =
|
|
819
|
+
object.creator !== undefined && object.creator !== null
|
|
820
|
+
? String(object.creator)
|
|
821
|
+
: "";
|
|
822
|
+
message.unlinkPoolParams =
|
|
823
|
+
object.unlinkPoolParams !== undefined && object.unlinkPoolParams !== null
|
|
824
|
+
? exports.UnlinkPoolParams.fromJSON(object.unlinkPoolParams)
|
|
825
|
+
: undefined;
|
|
902
826
|
return message;
|
|
903
827
|
},
|
|
904
828
|
toJSON(message) {
|
|
@@ -914,13 +838,10 @@ exports.MsgUnlinkPool = {
|
|
|
914
838
|
var _a;
|
|
915
839
|
const message = Object.assign({}, baseMsgUnlinkPool);
|
|
916
840
|
message.creator = (_a = object.creator) !== null && _a !== void 0 ? _a : "";
|
|
917
|
-
|
|
918
|
-
object.unlinkPoolParams !== null
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
else {
|
|
922
|
-
message.unlinkPoolParams = undefined;
|
|
923
|
-
}
|
|
841
|
+
message.unlinkPoolParams =
|
|
842
|
+
object.unlinkPoolParams !== undefined && object.unlinkPoolParams !== null
|
|
843
|
+
? exports.UnlinkPoolParams.fromPartial(object.unlinkPoolParams)
|
|
844
|
+
: undefined;
|
|
924
845
|
return message;
|
|
925
846
|
},
|
|
926
847
|
};
|
|
@@ -951,12 +872,10 @@ exports.UnlinkPoolParams = {
|
|
|
951
872
|
},
|
|
952
873
|
fromJSON(object) {
|
|
953
874
|
const message = Object.assign({}, baseUnlinkPoolParams);
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
message.poolId = long_1.default.UZERO;
|
|
959
|
-
}
|
|
875
|
+
message.poolId =
|
|
876
|
+
object.poolId !== undefined && object.poolId !== null
|
|
877
|
+
? long_1.default.fromString(object.poolId)
|
|
878
|
+
: long_1.default.UZERO;
|
|
960
879
|
return message;
|
|
961
880
|
},
|
|
962
881
|
toJSON(message) {
|
|
@@ -967,12 +886,10 @@ exports.UnlinkPoolParams = {
|
|
|
967
886
|
},
|
|
968
887
|
fromPartial(object) {
|
|
969
888
|
const message = Object.assign({}, baseUnlinkPoolParams);
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
message.poolId = long_1.default.UZERO;
|
|
975
|
-
}
|
|
889
|
+
message.poolId =
|
|
890
|
+
object.poolId !== undefined && object.poolId !== null
|
|
891
|
+
? long_1.default.fromValue(object.poolId)
|
|
892
|
+
: long_1.default.UZERO;
|
|
976
893
|
return message;
|
|
977
894
|
},
|
|
978
895
|
};
|
|
@@ -1041,19 +958,15 @@ exports.MsgSetRewardsWeights = {
|
|
|
1041
958
|
},
|
|
1042
959
|
fromJSON(object) {
|
|
1043
960
|
const message = Object.assign({}, baseMsgSetRewardsWeights);
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
}
|
|
1054
|
-
else {
|
|
1055
|
-
message.setRewardsWeightsParams = undefined;
|
|
1056
|
-
}
|
|
961
|
+
message.creator =
|
|
962
|
+
object.creator !== undefined && object.creator !== null
|
|
963
|
+
? String(object.creator)
|
|
964
|
+
: "";
|
|
965
|
+
message.setRewardsWeightsParams =
|
|
966
|
+
object.setRewardsWeightsParams !== undefined &&
|
|
967
|
+
object.setRewardsWeightsParams !== null
|
|
968
|
+
? exports.SetRewardsWeightsParams.fromJSON(object.setRewardsWeightsParams)
|
|
969
|
+
: undefined;
|
|
1057
970
|
return message;
|
|
1058
971
|
},
|
|
1059
972
|
toJSON(message) {
|
|
@@ -1069,13 +982,11 @@ exports.MsgSetRewardsWeights = {
|
|
|
1069
982
|
var _a;
|
|
1070
983
|
const message = Object.assign({}, baseMsgSetRewardsWeights);
|
|
1071
984
|
message.creator = (_a = object.creator) !== null && _a !== void 0 ? _a : "";
|
|
1072
|
-
|
|
1073
|
-
object.setRewardsWeightsParams !==
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
message.setRewardsWeightsParams = undefined;
|
|
1078
|
-
}
|
|
985
|
+
message.setRewardsWeightsParams =
|
|
986
|
+
object.setRewardsWeightsParams !== undefined &&
|
|
987
|
+
object.setRewardsWeightsParams !== null
|
|
988
|
+
? exports.SetRewardsWeightsParams.fromPartial(object.setRewardsWeightsParams)
|
|
989
|
+
: undefined;
|
|
1079
990
|
return message;
|
|
1080
991
|
},
|
|
1081
992
|
};
|
|
@@ -1083,7 +994,7 @@ const baseSetRewardsWeightsParams = {};
|
|
|
1083
994
|
exports.SetRewardsWeightsParams = {
|
|
1084
995
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1085
996
|
for (const v of message.weights) {
|
|
1086
|
-
|
|
997
|
+
reward_1.RewardWeight.encode(v, writer.uint32(10).fork()).ldelim();
|
|
1087
998
|
}
|
|
1088
999
|
return writer;
|
|
1089
1000
|
},
|
|
@@ -1096,7 +1007,7 @@ exports.SetRewardsWeightsParams = {
|
|
|
1096
1007
|
const tag = reader.uint32();
|
|
1097
1008
|
switch (tag >>> 3) {
|
|
1098
1009
|
case 1:
|
|
1099
|
-
message.weights.push(
|
|
1010
|
+
message.weights.push(reward_1.RewardWeight.decode(reader, reader.uint32()));
|
|
1100
1011
|
break;
|
|
1101
1012
|
default:
|
|
1102
1013
|
reader.skipType(tag & 7);
|
|
@@ -1106,100 +1017,25 @@ exports.SetRewardsWeightsParams = {
|
|
|
1106
1017
|
return message;
|
|
1107
1018
|
},
|
|
1108
1019
|
fromJSON(object) {
|
|
1020
|
+
var _a;
|
|
1109
1021
|
const message = Object.assign({}, baseSetRewardsWeightsParams);
|
|
1110
|
-
message.weights = [];
|
|
1111
|
-
if (object.weights !== undefined && object.weights !== null) {
|
|
1112
|
-
for (const e of object.weights) {
|
|
1113
|
-
message.weights.push(exports.RewardsWeightSetter.fromJSON(e));
|
|
1114
|
-
}
|
|
1115
|
-
}
|
|
1022
|
+
message.weights = ((_a = object.weights) !== null && _a !== void 0 ? _a : []).map((e) => reward_1.RewardWeight.fromJSON(e));
|
|
1116
1023
|
return message;
|
|
1117
1024
|
},
|
|
1118
1025
|
toJSON(message) {
|
|
1119
1026
|
const obj = {};
|
|
1120
1027
|
if (message.weights) {
|
|
1121
|
-
obj.weights = message.weights.map((e) => e ?
|
|
1028
|
+
obj.weights = message.weights.map((e) => e ? reward_1.RewardWeight.toJSON(e) : undefined);
|
|
1122
1029
|
}
|
|
1123
1030
|
else {
|
|
1124
1031
|
obj.weights = [];
|
|
1125
1032
|
}
|
|
1126
1033
|
return obj;
|
|
1127
1034
|
},
|
|
1128
|
-
fromPartial(object) {
|
|
1129
|
-
const message = Object.assign({}, baseSetRewardsWeightsParams);
|
|
1130
|
-
message.weights = [];
|
|
1131
|
-
if (object.weights !== undefined && object.weights !== null) {
|
|
1132
|
-
for (const e of object.weights) {
|
|
1133
|
-
message.weights.push(exports.RewardsWeightSetter.fromPartial(e));
|
|
1134
|
-
}
|
|
1135
|
-
}
|
|
1136
|
-
return message;
|
|
1137
|
-
},
|
|
1138
|
-
};
|
|
1139
|
-
const baseRewardsWeightSetter = { poolId: long_1.default.UZERO, weight: "" };
|
|
1140
|
-
exports.RewardsWeightSetter = {
|
|
1141
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1142
|
-
if (!message.poolId.isZero()) {
|
|
1143
|
-
writer.uint32(8).uint64(message.poolId);
|
|
1144
|
-
}
|
|
1145
|
-
if (message.weight !== "") {
|
|
1146
|
-
writer.uint32(18).string(message.weight);
|
|
1147
|
-
}
|
|
1148
|
-
return writer;
|
|
1149
|
-
},
|
|
1150
|
-
decode(input, length) {
|
|
1151
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1152
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1153
|
-
const message = Object.assign({}, baseRewardsWeightSetter);
|
|
1154
|
-
while (reader.pos < end) {
|
|
1155
|
-
const tag = reader.uint32();
|
|
1156
|
-
switch (tag >>> 3) {
|
|
1157
|
-
case 1:
|
|
1158
|
-
message.poolId = reader.uint64();
|
|
1159
|
-
break;
|
|
1160
|
-
case 2:
|
|
1161
|
-
message.weight = reader.string();
|
|
1162
|
-
break;
|
|
1163
|
-
default:
|
|
1164
|
-
reader.skipType(tag & 7);
|
|
1165
|
-
break;
|
|
1166
|
-
}
|
|
1167
|
-
}
|
|
1168
|
-
return message;
|
|
1169
|
-
},
|
|
1170
|
-
fromJSON(object) {
|
|
1171
|
-
const message = Object.assign({}, baseRewardsWeightSetter);
|
|
1172
|
-
if (object.poolId !== undefined && object.poolId !== null) {
|
|
1173
|
-
message.poolId = long_1.default.fromString(object.poolId);
|
|
1174
|
-
}
|
|
1175
|
-
else {
|
|
1176
|
-
message.poolId = long_1.default.UZERO;
|
|
1177
|
-
}
|
|
1178
|
-
if (object.weight !== undefined && object.weight !== null) {
|
|
1179
|
-
message.weight = String(object.weight);
|
|
1180
|
-
}
|
|
1181
|
-
else {
|
|
1182
|
-
message.weight = "";
|
|
1183
|
-
}
|
|
1184
|
-
return message;
|
|
1185
|
-
},
|
|
1186
|
-
toJSON(message) {
|
|
1187
|
-
const obj = {};
|
|
1188
|
-
message.poolId !== undefined &&
|
|
1189
|
-
(obj.poolId = (message.poolId || long_1.default.UZERO).toString());
|
|
1190
|
-
message.weight !== undefined && (obj.weight = message.weight);
|
|
1191
|
-
return obj;
|
|
1192
|
-
},
|
|
1193
1035
|
fromPartial(object) {
|
|
1194
1036
|
var _a;
|
|
1195
|
-
const message = Object.assign({},
|
|
1196
|
-
|
|
1197
|
-
message.poolId = object.poolId;
|
|
1198
|
-
}
|
|
1199
|
-
else {
|
|
1200
|
-
message.poolId = long_1.default.UZERO;
|
|
1201
|
-
}
|
|
1202
|
-
message.weight = (_a = object.weight) !== null && _a !== void 0 ? _a : "";
|
|
1037
|
+
const message = Object.assign({}, baseSetRewardsWeightsParams);
|
|
1038
|
+
message.weights = ((_a = object.weights) !== null && _a !== void 0 ? _a : []).map((e) => reward_1.RewardWeight.fromPartial(e));
|
|
1203
1039
|
return message;
|
|
1204
1040
|
},
|
|
1205
1041
|
};
|
|
@@ -1285,30 +1121,22 @@ exports.MsgStakePoolToken = {
|
|
|
1285
1121
|
},
|
|
1286
1122
|
fromJSON(object) {
|
|
1287
1123
|
const message = Object.assign({}, baseMsgStakePoolToken);
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
message.amount = "";
|
|
1305
|
-
}
|
|
1306
|
-
if (object.duration !== undefined && object.duration !== null) {
|
|
1307
|
-
message.duration = long_1.default.fromString(object.duration);
|
|
1308
|
-
}
|
|
1309
|
-
else {
|
|
1310
|
-
message.duration = long_1.default.UZERO;
|
|
1311
|
-
}
|
|
1124
|
+
message.creator =
|
|
1125
|
+
object.creator !== undefined && object.creator !== null
|
|
1126
|
+
? String(object.creator)
|
|
1127
|
+
: "";
|
|
1128
|
+
message.denom =
|
|
1129
|
+
object.denom !== undefined && object.denom !== null
|
|
1130
|
+
? String(object.denom)
|
|
1131
|
+
: "";
|
|
1132
|
+
message.amount =
|
|
1133
|
+
object.amount !== undefined && object.amount !== null
|
|
1134
|
+
? String(object.amount)
|
|
1135
|
+
: "";
|
|
1136
|
+
message.duration =
|
|
1137
|
+
object.duration !== undefined && object.duration !== null
|
|
1138
|
+
? long_1.default.fromString(object.duration)
|
|
1139
|
+
: long_1.default.UZERO;
|
|
1312
1140
|
return message;
|
|
1313
1141
|
},
|
|
1314
1142
|
toJSON(message) {
|
|
@@ -1326,12 +1154,10 @@ exports.MsgStakePoolToken = {
|
|
|
1326
1154
|
message.creator = (_a = object.creator) !== null && _a !== void 0 ? _a : "";
|
|
1327
1155
|
message.denom = (_b = object.denom) !== null && _b !== void 0 ? _b : "";
|
|
1328
1156
|
message.amount = (_c = object.amount) !== null && _c !== void 0 ? _c : "";
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
message.duration = long_1.default.UZERO;
|
|
1334
|
-
}
|
|
1157
|
+
message.duration =
|
|
1158
|
+
object.duration !== undefined && object.duration !== null
|
|
1159
|
+
? long_1.default.fromValue(object.duration)
|
|
1160
|
+
: long_1.default.UZERO;
|
|
1335
1161
|
return message;
|
|
1336
1162
|
},
|
|
1337
1163
|
};
|
|
@@ -1406,24 +1232,18 @@ exports.MsgUnstakePoolToken = {
|
|
|
1406
1232
|
},
|
|
1407
1233
|
fromJSON(object) {
|
|
1408
1234
|
const message = Object.assign({}, baseMsgUnstakePoolToken);
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
if (object.amount !== undefined && object.amount !== null) {
|
|
1422
|
-
message.amount = String(object.amount);
|
|
1423
|
-
}
|
|
1424
|
-
else {
|
|
1425
|
-
message.amount = "";
|
|
1426
|
-
}
|
|
1235
|
+
message.creator =
|
|
1236
|
+
object.creator !== undefined && object.creator !== null
|
|
1237
|
+
? String(object.creator)
|
|
1238
|
+
: "";
|
|
1239
|
+
message.denom =
|
|
1240
|
+
object.denom !== undefined && object.denom !== null
|
|
1241
|
+
? String(object.denom)
|
|
1242
|
+
: "";
|
|
1243
|
+
message.amount =
|
|
1244
|
+
object.amount !== undefined && object.amount !== null
|
|
1245
|
+
? String(object.amount)
|
|
1246
|
+
: "";
|
|
1427
1247
|
return message;
|
|
1428
1248
|
},
|
|
1429
1249
|
toJSON(message) {
|
|
@@ -1507,18 +1327,14 @@ exports.MsgClaimPoolRewards = {
|
|
|
1507
1327
|
},
|
|
1508
1328
|
fromJSON(object) {
|
|
1509
1329
|
const message = Object.assign({}, baseMsgClaimPoolRewards);
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
}
|
|
1519
|
-
else {
|
|
1520
|
-
message.poolId = long_1.default.UZERO;
|
|
1521
|
-
}
|
|
1330
|
+
message.creator =
|
|
1331
|
+
object.creator !== undefined && object.creator !== null
|
|
1332
|
+
? String(object.creator)
|
|
1333
|
+
: "";
|
|
1334
|
+
message.poolId =
|
|
1335
|
+
object.poolId !== undefined && object.poolId !== null
|
|
1336
|
+
? long_1.default.fromString(object.poolId)
|
|
1337
|
+
: long_1.default.UZERO;
|
|
1522
1338
|
return message;
|
|
1523
1339
|
},
|
|
1524
1340
|
toJSON(message) {
|
|
@@ -1532,12 +1348,10 @@ exports.MsgClaimPoolRewards = {
|
|
|
1532
1348
|
var _a;
|
|
1533
1349
|
const message = Object.assign({}, baseMsgClaimPoolRewards);
|
|
1534
1350
|
message.creator = (_a = object.creator) !== null && _a !== void 0 ? _a : "";
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
message.poolId = long_1.default.UZERO;
|
|
1540
|
-
}
|
|
1351
|
+
message.poolId =
|
|
1352
|
+
object.poolId !== undefined && object.poolId !== null
|
|
1353
|
+
? long_1.default.fromValue(object.poolId)
|
|
1354
|
+
: long_1.default.UZERO;
|
|
1541
1355
|
return message;
|
|
1542
1356
|
},
|
|
1543
1357
|
};
|
|
@@ -1606,19 +1420,15 @@ exports.MsgSetRewardCurve = {
|
|
|
1606
1420
|
},
|
|
1607
1421
|
fromJSON(object) {
|
|
1608
1422
|
const message = Object.assign({}, baseMsgSetRewardCurve);
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
}
|
|
1619
|
-
else {
|
|
1620
|
-
message.setRewardCurveParams = undefined;
|
|
1621
|
-
}
|
|
1423
|
+
message.creator =
|
|
1424
|
+
object.creator !== undefined && object.creator !== null
|
|
1425
|
+
? String(object.creator)
|
|
1426
|
+
: "";
|
|
1427
|
+
message.setRewardCurveParams =
|
|
1428
|
+
object.setRewardCurveParams !== undefined &&
|
|
1429
|
+
object.setRewardCurveParams !== null
|
|
1430
|
+
? exports.SetRewardCurveParams.fromJSON(object.setRewardCurveParams)
|
|
1431
|
+
: undefined;
|
|
1622
1432
|
return message;
|
|
1623
1433
|
},
|
|
1624
1434
|
toJSON(message) {
|
|
@@ -1634,13 +1444,11 @@ exports.MsgSetRewardCurve = {
|
|
|
1634
1444
|
var _a;
|
|
1635
1445
|
const message = Object.assign({}, baseMsgSetRewardCurve);
|
|
1636
1446
|
message.creator = (_a = object.creator) !== null && _a !== void 0 ? _a : "";
|
|
1637
|
-
|
|
1638
|
-
object.setRewardCurveParams !==
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
message.setRewardCurveParams = undefined;
|
|
1643
|
-
}
|
|
1447
|
+
message.setRewardCurveParams =
|
|
1448
|
+
object.setRewardCurveParams !== undefined &&
|
|
1449
|
+
object.setRewardCurveParams !== null
|
|
1450
|
+
? exports.SetRewardCurveParams.fromPartial(object.setRewardCurveParams)
|
|
1451
|
+
: undefined;
|
|
1644
1452
|
return message;
|
|
1645
1453
|
},
|
|
1646
1454
|
};
|
|
@@ -1707,45 +1515,32 @@ exports.SetRewardCurveParams = {
|
|
|
1707
1515
|
},
|
|
1708
1516
|
fromJSON(object) {
|
|
1709
1517
|
const message = Object.assign({}, baseSetRewardCurveParams);
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
object.
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
}
|
|
1737
|
-
if (object.reductions !== undefined && object.reductions !== null) {
|
|
1738
|
-
message.reductions = Number(object.reductions);
|
|
1739
|
-
}
|
|
1740
|
-
else {
|
|
1741
|
-
message.reductions = 0;
|
|
1742
|
-
}
|
|
1743
|
-
if (object.finalRewardBps !== undefined && object.finalRewardBps !== null) {
|
|
1744
|
-
message.finalRewardBps = Number(object.finalRewardBps);
|
|
1745
|
-
}
|
|
1746
|
-
else {
|
|
1747
|
-
message.finalRewardBps = 0;
|
|
1748
|
-
}
|
|
1518
|
+
message.startTime =
|
|
1519
|
+
object.startTime !== undefined && object.startTime !== null
|
|
1520
|
+
? fromJsonTimestamp(object.startTime)
|
|
1521
|
+
: undefined;
|
|
1522
|
+
message.initialRewardBps =
|
|
1523
|
+
object.initialRewardBps !== undefined && object.initialRewardBps !== null
|
|
1524
|
+
? Number(object.initialRewardBps)
|
|
1525
|
+
: 0;
|
|
1526
|
+
message.reductionMultiplierBps =
|
|
1527
|
+
object.reductionMultiplierBps !== undefined &&
|
|
1528
|
+
object.reductionMultiplierBps !== null
|
|
1529
|
+
? Number(object.reductionMultiplierBps)
|
|
1530
|
+
: 0;
|
|
1531
|
+
message.reductionIntervalSeconds =
|
|
1532
|
+
object.reductionIntervalSeconds !== undefined &&
|
|
1533
|
+
object.reductionIntervalSeconds !== null
|
|
1534
|
+
? long_1.default.fromString(object.reductionIntervalSeconds)
|
|
1535
|
+
: long_1.default.UZERO;
|
|
1536
|
+
message.reductions =
|
|
1537
|
+
object.reductions !== undefined && object.reductions !== null
|
|
1538
|
+
? Number(object.reductions)
|
|
1539
|
+
: 0;
|
|
1540
|
+
message.finalRewardBps =
|
|
1541
|
+
object.finalRewardBps !== undefined && object.finalRewardBps !== null
|
|
1542
|
+
? Number(object.finalRewardBps)
|
|
1543
|
+
: 0;
|
|
1749
1544
|
return message;
|
|
1750
1545
|
},
|
|
1751
1546
|
toJSON(message) {
|
|
@@ -1769,14 +1564,11 @@ exports.SetRewardCurveParams = {
|
|
|
1769
1564
|
message.startTime = (_a = object.startTime) !== null && _a !== void 0 ? _a : undefined;
|
|
1770
1565
|
message.initialRewardBps = (_b = object.initialRewardBps) !== null && _b !== void 0 ? _b : 0;
|
|
1771
1566
|
message.reductionMultiplierBps = (_c = object.reductionMultiplierBps) !== null && _c !== void 0 ? _c : 0;
|
|
1772
|
-
|
|
1773
|
-
object.reductionIntervalSeconds !==
|
|
1774
|
-
|
|
1775
|
-
object.reductionIntervalSeconds
|
|
1776
|
-
|
|
1777
|
-
else {
|
|
1778
|
-
message.reductionIntervalSeconds = long_1.default.UZERO;
|
|
1779
|
-
}
|
|
1567
|
+
message.reductionIntervalSeconds =
|
|
1568
|
+
object.reductionIntervalSeconds !== undefined &&
|
|
1569
|
+
object.reductionIntervalSeconds !== null
|
|
1570
|
+
? long_1.default.fromValue(object.reductionIntervalSeconds)
|
|
1571
|
+
: long_1.default.UZERO;
|
|
1780
1572
|
message.reductions = (_d = object.reductions) !== null && _d !== void 0 ? _d : 0;
|
|
1781
1573
|
message.finalRewardBps = (_e = object.finalRewardBps) !== null && _e !== void 0 ? _e : 0;
|
|
1782
1574
|
return message;
|
|
@@ -1814,176 +1606,6 @@ exports.MsgSetRewardCurveResponse = {
|
|
|
1814
1606
|
return message;
|
|
1815
1607
|
},
|
|
1816
1608
|
};
|
|
1817
|
-
const baseMsgChangeSwapFee = { creator: "" };
|
|
1818
|
-
exports.MsgChangeSwapFee = {
|
|
1819
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1820
|
-
if (message.creator !== "") {
|
|
1821
|
-
writer.uint32(10).string(message.creator);
|
|
1822
|
-
}
|
|
1823
|
-
if (message.changeSwapFeeParams !== undefined) {
|
|
1824
|
-
exports.ChangeSwapFeeParams.encode(message.changeSwapFeeParams, writer.uint32(18).fork()).ldelim();
|
|
1825
|
-
}
|
|
1826
|
-
return writer;
|
|
1827
|
-
},
|
|
1828
|
-
decode(input, length) {
|
|
1829
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1830
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1831
|
-
const message = Object.assign({}, baseMsgChangeSwapFee);
|
|
1832
|
-
while (reader.pos < end) {
|
|
1833
|
-
const tag = reader.uint32();
|
|
1834
|
-
switch (tag >>> 3) {
|
|
1835
|
-
case 1:
|
|
1836
|
-
message.creator = reader.string();
|
|
1837
|
-
break;
|
|
1838
|
-
case 2:
|
|
1839
|
-
message.changeSwapFeeParams = exports.ChangeSwapFeeParams.decode(reader, reader.uint32());
|
|
1840
|
-
break;
|
|
1841
|
-
default:
|
|
1842
|
-
reader.skipType(tag & 7);
|
|
1843
|
-
break;
|
|
1844
|
-
}
|
|
1845
|
-
}
|
|
1846
|
-
return message;
|
|
1847
|
-
},
|
|
1848
|
-
fromJSON(object) {
|
|
1849
|
-
const message = Object.assign({}, baseMsgChangeSwapFee);
|
|
1850
|
-
if (object.creator !== undefined && object.creator !== null) {
|
|
1851
|
-
message.creator = String(object.creator);
|
|
1852
|
-
}
|
|
1853
|
-
else {
|
|
1854
|
-
message.creator = "";
|
|
1855
|
-
}
|
|
1856
|
-
if (object.changeSwapFeeParams !== undefined &&
|
|
1857
|
-
object.changeSwapFeeParams !== null) {
|
|
1858
|
-
message.changeSwapFeeParams = exports.ChangeSwapFeeParams.fromJSON(object.changeSwapFeeParams);
|
|
1859
|
-
}
|
|
1860
|
-
else {
|
|
1861
|
-
message.changeSwapFeeParams = undefined;
|
|
1862
|
-
}
|
|
1863
|
-
return message;
|
|
1864
|
-
},
|
|
1865
|
-
toJSON(message) {
|
|
1866
|
-
const obj = {};
|
|
1867
|
-
message.creator !== undefined && (obj.creator = message.creator);
|
|
1868
|
-
message.changeSwapFeeParams !== undefined &&
|
|
1869
|
-
(obj.changeSwapFeeParams = message.changeSwapFeeParams
|
|
1870
|
-
? exports.ChangeSwapFeeParams.toJSON(message.changeSwapFeeParams)
|
|
1871
|
-
: undefined);
|
|
1872
|
-
return obj;
|
|
1873
|
-
},
|
|
1874
|
-
fromPartial(object) {
|
|
1875
|
-
var _a;
|
|
1876
|
-
const message = Object.assign({}, baseMsgChangeSwapFee);
|
|
1877
|
-
message.creator = (_a = object.creator) !== null && _a !== void 0 ? _a : "";
|
|
1878
|
-
if (object.changeSwapFeeParams !== undefined &&
|
|
1879
|
-
object.changeSwapFeeParams !== null) {
|
|
1880
|
-
message.changeSwapFeeParams = exports.ChangeSwapFeeParams.fromPartial(object.changeSwapFeeParams);
|
|
1881
|
-
}
|
|
1882
|
-
else {
|
|
1883
|
-
message.changeSwapFeeParams = undefined;
|
|
1884
|
-
}
|
|
1885
|
-
return message;
|
|
1886
|
-
},
|
|
1887
|
-
};
|
|
1888
|
-
const baseChangeSwapFeeParams = { poolId: long_1.default.UZERO, swapFee: "" };
|
|
1889
|
-
exports.ChangeSwapFeeParams = {
|
|
1890
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1891
|
-
if (!message.poolId.isZero()) {
|
|
1892
|
-
writer.uint32(8).uint64(message.poolId);
|
|
1893
|
-
}
|
|
1894
|
-
if (message.swapFee !== "") {
|
|
1895
|
-
writer.uint32(18).string(message.swapFee);
|
|
1896
|
-
}
|
|
1897
|
-
return writer;
|
|
1898
|
-
},
|
|
1899
|
-
decode(input, length) {
|
|
1900
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1901
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1902
|
-
const message = Object.assign({}, baseChangeSwapFeeParams);
|
|
1903
|
-
while (reader.pos < end) {
|
|
1904
|
-
const tag = reader.uint32();
|
|
1905
|
-
switch (tag >>> 3) {
|
|
1906
|
-
case 1:
|
|
1907
|
-
message.poolId = reader.uint64();
|
|
1908
|
-
break;
|
|
1909
|
-
case 2:
|
|
1910
|
-
message.swapFee = reader.string();
|
|
1911
|
-
break;
|
|
1912
|
-
default:
|
|
1913
|
-
reader.skipType(tag & 7);
|
|
1914
|
-
break;
|
|
1915
|
-
}
|
|
1916
|
-
}
|
|
1917
|
-
return message;
|
|
1918
|
-
},
|
|
1919
|
-
fromJSON(object) {
|
|
1920
|
-
const message = Object.assign({}, baseChangeSwapFeeParams);
|
|
1921
|
-
if (object.poolId !== undefined && object.poolId !== null) {
|
|
1922
|
-
message.poolId = long_1.default.fromString(object.poolId);
|
|
1923
|
-
}
|
|
1924
|
-
else {
|
|
1925
|
-
message.poolId = long_1.default.UZERO;
|
|
1926
|
-
}
|
|
1927
|
-
if (object.swapFee !== undefined && object.swapFee !== null) {
|
|
1928
|
-
message.swapFee = String(object.swapFee);
|
|
1929
|
-
}
|
|
1930
|
-
else {
|
|
1931
|
-
message.swapFee = "";
|
|
1932
|
-
}
|
|
1933
|
-
return message;
|
|
1934
|
-
},
|
|
1935
|
-
toJSON(message) {
|
|
1936
|
-
const obj = {};
|
|
1937
|
-
message.poolId !== undefined &&
|
|
1938
|
-
(obj.poolId = (message.poolId || long_1.default.UZERO).toString());
|
|
1939
|
-
message.swapFee !== undefined && (obj.swapFee = message.swapFee);
|
|
1940
|
-
return obj;
|
|
1941
|
-
},
|
|
1942
|
-
fromPartial(object) {
|
|
1943
|
-
var _a;
|
|
1944
|
-
const message = Object.assign({}, baseChangeSwapFeeParams);
|
|
1945
|
-
if (object.poolId !== undefined && object.poolId !== null) {
|
|
1946
|
-
message.poolId = object.poolId;
|
|
1947
|
-
}
|
|
1948
|
-
else {
|
|
1949
|
-
message.poolId = long_1.default.UZERO;
|
|
1950
|
-
}
|
|
1951
|
-
message.swapFee = (_a = object.swapFee) !== null && _a !== void 0 ? _a : "";
|
|
1952
|
-
return message;
|
|
1953
|
-
},
|
|
1954
|
-
};
|
|
1955
|
-
const baseMsgChangeSwapFeeResponse = {};
|
|
1956
|
-
exports.MsgChangeSwapFeeResponse = {
|
|
1957
|
-
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
1958
|
-
return writer;
|
|
1959
|
-
},
|
|
1960
|
-
decode(input, length) {
|
|
1961
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1962
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1963
|
-
const message = Object.assign({}, baseMsgChangeSwapFeeResponse);
|
|
1964
|
-
while (reader.pos < end) {
|
|
1965
|
-
const tag = reader.uint32();
|
|
1966
|
-
switch (tag >>> 3) {
|
|
1967
|
-
default:
|
|
1968
|
-
reader.skipType(tag & 7);
|
|
1969
|
-
break;
|
|
1970
|
-
}
|
|
1971
|
-
}
|
|
1972
|
-
return message;
|
|
1973
|
-
},
|
|
1974
|
-
fromJSON(_) {
|
|
1975
|
-
const message = Object.assign({}, baseMsgChangeSwapFeeResponse);
|
|
1976
|
-
return message;
|
|
1977
|
-
},
|
|
1978
|
-
toJSON(_) {
|
|
1979
|
-
const obj = {};
|
|
1980
|
-
return obj;
|
|
1981
|
-
},
|
|
1982
|
-
fromPartial(_) {
|
|
1983
|
-
const message = Object.assign({}, baseMsgChangeSwapFeeResponse);
|
|
1984
|
-
return message;
|
|
1985
|
-
},
|
|
1986
|
-
};
|
|
1987
1609
|
const baseMsgSetCommitmentCurve = { creator: "" };
|
|
1988
1610
|
exports.MsgSetCommitmentCurve = {
|
|
1989
1611
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -2017,19 +1639,15 @@ exports.MsgSetCommitmentCurve = {
|
|
|
2017
1639
|
},
|
|
2018
1640
|
fromJSON(object) {
|
|
2019
1641
|
const message = Object.assign({}, baseMsgSetCommitmentCurve);
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
}
|
|
2030
|
-
else {
|
|
2031
|
-
message.setCommitmentCurveParams = undefined;
|
|
2032
|
-
}
|
|
1642
|
+
message.creator =
|
|
1643
|
+
object.creator !== undefined && object.creator !== null
|
|
1644
|
+
? String(object.creator)
|
|
1645
|
+
: "";
|
|
1646
|
+
message.setCommitmentCurveParams =
|
|
1647
|
+
object.setCommitmentCurveParams !== undefined &&
|
|
1648
|
+
object.setCommitmentCurveParams !== null
|
|
1649
|
+
? exports.SetCommitmentCurveParams.fromJSON(object.setCommitmentCurveParams)
|
|
1650
|
+
: undefined;
|
|
2033
1651
|
return message;
|
|
2034
1652
|
},
|
|
2035
1653
|
toJSON(message) {
|
|
@@ -2045,13 +1663,11 @@ exports.MsgSetCommitmentCurve = {
|
|
|
2045
1663
|
var _a;
|
|
2046
1664
|
const message = Object.assign({}, baseMsgSetCommitmentCurve);
|
|
2047
1665
|
message.creator = (_a = object.creator) !== null && _a !== void 0 ? _a : "";
|
|
2048
|
-
|
|
2049
|
-
object.setCommitmentCurveParams !==
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
message.setCommitmentCurveParams = undefined;
|
|
2054
|
-
}
|
|
1666
|
+
message.setCommitmentCurveParams =
|
|
1667
|
+
object.setCommitmentCurveParams !== undefined &&
|
|
1668
|
+
object.setCommitmentCurveParams !== null
|
|
1669
|
+
? exports.SetCommitmentCurveParams.fromPartial(object.setCommitmentCurveParams)
|
|
1670
|
+
: undefined;
|
|
2055
1671
|
return message;
|
|
2056
1672
|
},
|
|
2057
1673
|
};
|
|
@@ -2091,19 +1707,15 @@ exports.SetCommitmentCurveParams = {
|
|
|
2091
1707
|
},
|
|
2092
1708
|
fromJSON(object) {
|
|
2093
1709
|
const message = Object.assign({}, baseSetCommitmentCurveParams);
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
}
|
|
2104
|
-
else {
|
|
2105
|
-
message.maxRewardMultiplier = 0;
|
|
2106
|
-
}
|
|
1710
|
+
message.maxDuration =
|
|
1711
|
+
object.maxDuration !== undefined && object.maxDuration !== null
|
|
1712
|
+
? long_1.default.fromString(object.maxDuration)
|
|
1713
|
+
: long_1.default.UZERO;
|
|
1714
|
+
message.maxRewardMultiplier =
|
|
1715
|
+
object.maxRewardMultiplier !== undefined &&
|
|
1716
|
+
object.maxRewardMultiplier !== null
|
|
1717
|
+
? Number(object.maxRewardMultiplier)
|
|
1718
|
+
: 0;
|
|
2107
1719
|
return message;
|
|
2108
1720
|
},
|
|
2109
1721
|
toJSON(message) {
|
|
@@ -2117,12 +1729,10 @@ exports.SetCommitmentCurveParams = {
|
|
|
2117
1729
|
fromPartial(object) {
|
|
2118
1730
|
var _a;
|
|
2119
1731
|
const message = Object.assign({}, baseSetCommitmentCurveParams);
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
message.maxDuration = long_1.default.UZERO;
|
|
2125
|
-
}
|
|
1732
|
+
message.maxDuration =
|
|
1733
|
+
object.maxDuration !== undefined && object.maxDuration !== null
|
|
1734
|
+
? long_1.default.fromValue(object.maxDuration)
|
|
1735
|
+
: long_1.default.UZERO;
|
|
2126
1736
|
message.maxRewardMultiplier = (_a = object.maxRewardMultiplier) !== null && _a !== void 0 ? _a : 0;
|
|
2127
1737
|
return message;
|
|
2128
1738
|
},
|
|
@@ -2159,21 +1769,21 @@ exports.MsgSetCommitmentCurveResponse = {
|
|
|
2159
1769
|
return message;
|
|
2160
1770
|
},
|
|
2161
1771
|
};
|
|
2162
|
-
const
|
|
2163
|
-
exports.
|
|
1772
|
+
const baseMsgUpdatePool = { creator: "" };
|
|
1773
|
+
exports.MsgUpdatePool = {
|
|
2164
1774
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2165
1775
|
if (message.creator !== "") {
|
|
2166
1776
|
writer.uint32(10).string(message.creator);
|
|
2167
1777
|
}
|
|
2168
|
-
if (message.
|
|
2169
|
-
exports.
|
|
1778
|
+
if (message.updatePoolParams !== undefined) {
|
|
1779
|
+
exports.UpdatePoolParams.encode(message.updatePoolParams, writer.uint32(18).fork()).ldelim();
|
|
2170
1780
|
}
|
|
2171
1781
|
return writer;
|
|
2172
1782
|
},
|
|
2173
1783
|
decode(input, length) {
|
|
2174
1784
|
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2175
1785
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2176
|
-
const message = Object.assign({},
|
|
1786
|
+
const message = Object.assign({}, baseMsgUpdatePool);
|
|
2177
1787
|
while (reader.pos < end) {
|
|
2178
1788
|
const tag = reader.uint32();
|
|
2179
1789
|
switch (tag >>> 3) {
|
|
@@ -2181,7 +1791,7 @@ exports.MsgChangeNumQuotes = {
|
|
|
2181
1791
|
message.creator = reader.string();
|
|
2182
1792
|
break;
|
|
2183
1793
|
case 2:
|
|
2184
|
-
message.
|
|
1794
|
+
message.updatePoolParams = exports.UpdatePoolParams.decode(reader, reader.uint32());
|
|
2185
1795
|
break;
|
|
2186
1796
|
default:
|
|
2187
1797
|
reader.skipType(tag & 7);
|
|
@@ -2191,63 +1801,59 @@ exports.MsgChangeNumQuotes = {
|
|
|
2191
1801
|
return message;
|
|
2192
1802
|
},
|
|
2193
1803
|
fromJSON(object) {
|
|
2194
|
-
const message = Object.assign({},
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
message.changeNumQuotesParams = exports.ChangeNumQuotesParams.fromJSON(object.changeNumQuotesParams);
|
|
2204
|
-
}
|
|
2205
|
-
else {
|
|
2206
|
-
message.changeNumQuotesParams = undefined;
|
|
2207
|
-
}
|
|
1804
|
+
const message = Object.assign({}, baseMsgUpdatePool);
|
|
1805
|
+
message.creator =
|
|
1806
|
+
object.creator !== undefined && object.creator !== null
|
|
1807
|
+
? String(object.creator)
|
|
1808
|
+
: "";
|
|
1809
|
+
message.updatePoolParams =
|
|
1810
|
+
object.updatePoolParams !== undefined && object.updatePoolParams !== null
|
|
1811
|
+
? exports.UpdatePoolParams.fromJSON(object.updatePoolParams)
|
|
1812
|
+
: undefined;
|
|
2208
1813
|
return message;
|
|
2209
1814
|
},
|
|
2210
1815
|
toJSON(message) {
|
|
2211
1816
|
const obj = {};
|
|
2212
1817
|
message.creator !== undefined && (obj.creator = message.creator);
|
|
2213
|
-
message.
|
|
2214
|
-
(obj.
|
|
2215
|
-
? exports.
|
|
1818
|
+
message.updatePoolParams !== undefined &&
|
|
1819
|
+
(obj.updatePoolParams = message.updatePoolParams
|
|
1820
|
+
? exports.UpdatePoolParams.toJSON(message.updatePoolParams)
|
|
2216
1821
|
: undefined);
|
|
2217
1822
|
return obj;
|
|
2218
1823
|
},
|
|
2219
1824
|
fromPartial(object) {
|
|
2220
1825
|
var _a;
|
|
2221
|
-
const message = Object.assign({},
|
|
1826
|
+
const message = Object.assign({}, baseMsgUpdatePool);
|
|
2222
1827
|
message.creator = (_a = object.creator) !== null && _a !== void 0 ? _a : "";
|
|
2223
|
-
|
|
2224
|
-
object.
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
else {
|
|
2228
|
-
message.changeNumQuotesParams = undefined;
|
|
2229
|
-
}
|
|
1828
|
+
message.updatePoolParams =
|
|
1829
|
+
object.updatePoolParams !== undefined && object.updatePoolParams !== null
|
|
1830
|
+
? exports.UpdatePoolParams.fromPartial(object.updatePoolParams)
|
|
1831
|
+
: undefined;
|
|
2230
1832
|
return message;
|
|
2231
1833
|
},
|
|
2232
1834
|
};
|
|
2233
|
-
const
|
|
1835
|
+
const baseUpdatePoolParams = {
|
|
2234
1836
|
poolId: long_1.default.UZERO,
|
|
1837
|
+
swapFee: "",
|
|
2235
1838
|
numQuotes: long_1.default.ZERO,
|
|
2236
1839
|
};
|
|
2237
|
-
exports.
|
|
1840
|
+
exports.UpdatePoolParams = {
|
|
2238
1841
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2239
1842
|
if (!message.poolId.isZero()) {
|
|
2240
1843
|
writer.uint32(8).uint64(message.poolId);
|
|
2241
1844
|
}
|
|
1845
|
+
if (message.swapFee !== "") {
|
|
1846
|
+
writer.uint32(18).string(message.swapFee);
|
|
1847
|
+
}
|
|
2242
1848
|
if (!message.numQuotes.isZero()) {
|
|
2243
|
-
writer.uint32(
|
|
1849
|
+
writer.uint32(24).int64(message.numQuotes);
|
|
2244
1850
|
}
|
|
2245
1851
|
return writer;
|
|
2246
1852
|
},
|
|
2247
1853
|
decode(input, length) {
|
|
2248
1854
|
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2249
1855
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2250
|
-
const message = Object.assign({},
|
|
1856
|
+
const message = Object.assign({}, baseUpdatePoolParams);
|
|
2251
1857
|
while (reader.pos < end) {
|
|
2252
1858
|
const tag = reader.uint32();
|
|
2253
1859
|
switch (tag >>> 3) {
|
|
@@ -2255,6 +1861,9 @@ exports.ChangeNumQuotesParams = {
|
|
|
2255
1861
|
message.poolId = reader.uint64();
|
|
2256
1862
|
break;
|
|
2257
1863
|
case 2:
|
|
1864
|
+
message.swapFee = reader.string();
|
|
1865
|
+
break;
|
|
1866
|
+
case 3:
|
|
2258
1867
|
message.numQuotes = reader.int64();
|
|
2259
1868
|
break;
|
|
2260
1869
|
default:
|
|
@@ -2265,55 +1874,54 @@ exports.ChangeNumQuotesParams = {
|
|
|
2265
1874
|
return message;
|
|
2266
1875
|
},
|
|
2267
1876
|
fromJSON(object) {
|
|
2268
|
-
const message = Object.assign({},
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
1877
|
+
const message = Object.assign({}, baseUpdatePoolParams);
|
|
1878
|
+
message.poolId =
|
|
1879
|
+
object.poolId !== undefined && object.poolId !== null
|
|
1880
|
+
? long_1.default.fromString(object.poolId)
|
|
1881
|
+
: long_1.default.UZERO;
|
|
1882
|
+
message.swapFee =
|
|
1883
|
+
object.swapFee !== undefined && object.swapFee !== null
|
|
1884
|
+
? String(object.swapFee)
|
|
1885
|
+
: "";
|
|
1886
|
+
message.numQuotes =
|
|
1887
|
+
object.numQuotes !== undefined && object.numQuotes !== null
|
|
1888
|
+
? long_1.default.fromString(object.numQuotes)
|
|
1889
|
+
: long_1.default.ZERO;
|
|
2281
1890
|
return message;
|
|
2282
1891
|
},
|
|
2283
1892
|
toJSON(message) {
|
|
2284
1893
|
const obj = {};
|
|
2285
1894
|
message.poolId !== undefined &&
|
|
2286
1895
|
(obj.poolId = (message.poolId || long_1.default.UZERO).toString());
|
|
1896
|
+
message.swapFee !== undefined && (obj.swapFee = message.swapFee);
|
|
2287
1897
|
message.numQuotes !== undefined &&
|
|
2288
1898
|
(obj.numQuotes = (message.numQuotes || long_1.default.ZERO).toString());
|
|
2289
1899
|
return obj;
|
|
2290
1900
|
},
|
|
2291
1901
|
fromPartial(object) {
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
message.numQuotes = long_1.default.ZERO;
|
|
2304
|
-
}
|
|
1902
|
+
var _a;
|
|
1903
|
+
const message = Object.assign({}, baseUpdatePoolParams);
|
|
1904
|
+
message.poolId =
|
|
1905
|
+
object.poolId !== undefined && object.poolId !== null
|
|
1906
|
+
? long_1.default.fromValue(object.poolId)
|
|
1907
|
+
: long_1.default.UZERO;
|
|
1908
|
+
message.swapFee = (_a = object.swapFee) !== null && _a !== void 0 ? _a : "";
|
|
1909
|
+
message.numQuotes =
|
|
1910
|
+
object.numQuotes !== undefined && object.numQuotes !== null
|
|
1911
|
+
? long_1.default.fromValue(object.numQuotes)
|
|
1912
|
+
: long_1.default.ZERO;
|
|
2305
1913
|
return message;
|
|
2306
1914
|
},
|
|
2307
1915
|
};
|
|
2308
|
-
const
|
|
2309
|
-
exports.
|
|
1916
|
+
const baseMsgUpdatePoolResponse = {};
|
|
1917
|
+
exports.MsgUpdatePoolResponse = {
|
|
2310
1918
|
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
2311
1919
|
return writer;
|
|
2312
1920
|
},
|
|
2313
1921
|
decode(input, length) {
|
|
2314
1922
|
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2315
1923
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2316
|
-
const message = Object.assign({},
|
|
1924
|
+
const message = Object.assign({}, baseMsgUpdatePoolResponse);
|
|
2317
1925
|
while (reader.pos < end) {
|
|
2318
1926
|
const tag = reader.uint32();
|
|
2319
1927
|
switch (tag >>> 3) {
|
|
@@ -2325,7 +1933,7 @@ exports.MsgChangeNumQuotesResponse = {
|
|
|
2325
1933
|
return message;
|
|
2326
1934
|
},
|
|
2327
1935
|
fromJSON(_) {
|
|
2328
|
-
const message = Object.assign({},
|
|
1936
|
+
const message = Object.assign({}, baseMsgUpdatePoolResponse);
|
|
2329
1937
|
return message;
|
|
2330
1938
|
},
|
|
2331
1939
|
toJSON(_) {
|
|
@@ -2333,7 +1941,7 @@ exports.MsgChangeNumQuotesResponse = {
|
|
|
2333
1941
|
return obj;
|
|
2334
1942
|
},
|
|
2335
1943
|
fromPartial(_) {
|
|
2336
|
-
const message = Object.assign({},
|
|
1944
|
+
const message = Object.assign({}, baseMsgUpdatePoolResponse);
|
|
2337
1945
|
return message;
|
|
2338
1946
|
},
|
|
2339
1947
|
};
|
|
@@ -2352,9 +1960,8 @@ class MsgClientImpl {
|
|
|
2352
1960
|
this.HandleUnstakePoolToken = this.HandleUnstakePoolToken.bind(this);
|
|
2353
1961
|
this.HandleClaimPoolRewards = this.HandleClaimPoolRewards.bind(this);
|
|
2354
1962
|
this.HandleSetRewardCurve = this.HandleSetRewardCurve.bind(this);
|
|
2355
|
-
this.HandleChangeSwapFee = this.HandleChangeSwapFee.bind(this);
|
|
2356
1963
|
this.HandleSetCommitmentCurve = this.HandleSetCommitmentCurve.bind(this);
|
|
2357
|
-
this.
|
|
1964
|
+
this.HandleUpdatePool = this.HandleUpdatePool.bind(this);
|
|
2358
1965
|
}
|
|
2359
1966
|
HandleCreatePool(request) {
|
|
2360
1967
|
const data = exports.MsgCreatePool.encode(request).finish();
|
|
@@ -2411,20 +2018,15 @@ class MsgClientImpl {
|
|
|
2411
2018
|
const promise = this.rpc.request("Switcheo.carbon.liquiditypool.Msg", "HandleSetRewardCurve", data);
|
|
2412
2019
|
return promise.then((data) => exports.MsgSetRewardCurveResponse.decode(new minimal_1.default.Reader(data)));
|
|
2413
2020
|
}
|
|
2414
|
-
HandleChangeSwapFee(request) {
|
|
2415
|
-
const data = exports.MsgChangeSwapFee.encode(request).finish();
|
|
2416
|
-
const promise = this.rpc.request("Switcheo.carbon.liquiditypool.Msg", "HandleChangeSwapFee", data);
|
|
2417
|
-
return promise.then((data) => exports.MsgChangeSwapFeeResponse.decode(new minimal_1.default.Reader(data)));
|
|
2418
|
-
}
|
|
2419
2021
|
HandleSetCommitmentCurve(request) {
|
|
2420
2022
|
const data = exports.MsgSetCommitmentCurve.encode(request).finish();
|
|
2421
2023
|
const promise = this.rpc.request("Switcheo.carbon.liquiditypool.Msg", "HandleSetCommitmentCurve", data);
|
|
2422
2024
|
return promise.then((data) => exports.MsgSetCommitmentCurveResponse.decode(new minimal_1.default.Reader(data)));
|
|
2423
2025
|
}
|
|
2424
|
-
|
|
2425
|
-
const data = exports.
|
|
2426
|
-
const promise = this.rpc.request("Switcheo.carbon.liquiditypool.Msg", "
|
|
2427
|
-
return promise.then((data) => exports.
|
|
2026
|
+
HandleUpdatePool(request) {
|
|
2027
|
+
const data = exports.MsgUpdatePool.encode(request).finish();
|
|
2028
|
+
const promise = this.rpc.request("Switcheo.carbon.liquiditypool.Msg", "HandleUpdatePool", data);
|
|
2029
|
+
return promise.then((data) => exports.MsgUpdatePoolResponse.decode(new minimal_1.default.Reader(data)));
|
|
2428
2030
|
}
|
|
2429
2031
|
}
|
|
2430
2032
|
exports.MsgClientImpl = MsgClientImpl;
|