carbon-js-sdk 0.4.26-beta.1 → 0.4.26-beta.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/lib/CarbonSDK.js +7 -2
- package/lib/clients/CarbonQueryClient.js +2 -2
- package/lib/clients/ETHClient.js +15 -15
- package/lib/clients/HydrogenClient.js +1 -1
- package/lib/clients/NEOClient.js +12 -8
- package/lib/clients/TokenClient.js +3 -3
- package/lib/clients/ZILClient.js +17 -17
- package/lib/codec/adl/genesis.d.ts +3 -3
- package/lib/codec/alliance/alliance.d.ts +5 -5
- package/lib/codec/alliance/delegations.d.ts +8 -8
- package/lib/codec/alliance/events.d.ts +6 -6
- package/lib/codec/alliance/genesis.d.ts +7 -7
- package/lib/codec/alliance/gov.d.ts +5 -5
- package/lib/codec/alliance/params.d.ts +4 -4
- package/lib/codec/alliance/query.d.ts +24 -24
- package/lib/codec/alliance/tx.d.ts +10 -10
- package/lib/codec/bank/event.d.ts +5 -5
- package/lib/codec/bank/genesis.d.ts +3 -3
- package/lib/codec/bank/query.d.ts +6 -6
- package/lib/codec/book/book.d.ts +5 -5
- package/lib/codec/book/event.d.ts +3 -3
- package/lib/codec/book/genesis.d.ts +3 -3
- package/lib/codec/book/query.d.ts +8 -8
- package/lib/codec/broker/amm.d.ts +5 -5
- package/lib/codec/broker/candlestick.d.ts +3 -3
- package/lib/codec/broker/event.d.ts +3 -3
- package/lib/codec/broker/genesis.d.ts +3 -3
- package/lib/codec/broker/incoming_liquidations.d.ts +3 -3
- package/lib/codec/broker/pagination.d.ts +3 -3
- package/lib/codec/broker/query.d.ts +8 -8
- package/lib/codec/broker/tx.d.ts +5 -5
- package/lib/codec/btcx/denom_cross_chain_info.d.ts +3 -3
- package/lib/codec/btcx/denom_info.d.ts +3 -3
- package/lib/codec/btcx/genesis.d.ts +3 -3
- package/lib/codec/btcx/query.d.ts +6 -6
- package/lib/codec/btcx/tx.d.ts +8 -8
- package/lib/codec/ccm/ccm.d.ts +3 -3
- package/lib/codec/ccm/genesis.d.ts +7 -7
- package/lib/codec/ccm/query.d.ts +4 -4
- package/lib/codec/ccm/tx.d.ts +8 -8
- package/lib/codec/cdp/asset_params.d.ts +5 -5
- package/lib/codec/cdp/debt_info.d.ts +3 -3
- package/lib/codec/cdp/e_mode_category.d.ts +3 -3
- package/lib/codec/cdp/event.d.ts +36 -36
- package/lib/codec/cdp/genesis.d.ts +10 -10
- package/lib/codec/cdp/params.d.ts +3 -3
- package/lib/codec/cdp/query.d.ts +49 -49
- package/lib/codec/cdp/rate_strategy_params.d.ts +3 -3
- package/lib/codec/cdp/reward_scheme.d.ts +6 -6
- package/lib/codec/cdp/stablecoin_debt_info.d.ts +3 -3
- package/lib/codec/cdp/stablecoin_interest_info.d.ts +3 -3
- package/lib/codec/cdp/tx.d.ts +85 -85
- package/lib/codec/coin/bridge.d.ts +3 -3
- package/lib/codec/coin/event.d.ts +14 -14
- package/lib/codec/coin/genesis.d.ts +4 -4
- package/lib/codec/coin/group.d.ts +5 -5
- package/lib/codec/coin/proposal.d.ts +3 -3
- package/lib/codec/coin/query.d.ts +26 -26
- package/lib/codec/coin/token.d.ts +9 -9
- package/lib/codec/coin/tx.d.ts +48 -48
- package/lib/codec/cosmos/app/module/v1alpha1/module.d.ts +3 -3
- package/lib/codec/cosmos/app/v1alpha1/config.d.ts +4 -4
- package/lib/codec/cosmos/app/v1alpha1/module.d.ts +5 -5
- package/lib/codec/cosmos/app/v1alpha1/query.d.ts +4 -4
- package/lib/codec/cosmos/auth/v1beta1/auth.d.ts +5 -5
- package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/auth/v1beta1/query.d.ts +20 -20
- package/lib/codec/cosmos/authz/v1beta1/authz.d.ts +6 -6
- package/lib/codec/cosmos/authz/v1beta1/event.d.ts +4 -4
- package/lib/codec/cosmos/authz/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/authz/v1beta1/query.d.ts +8 -8
- package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +8 -8
- package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +3 -3
- package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +9 -9
- package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +4 -4
- package/lib/codec/cosmos/bank/v1beta1/query.d.ts +21 -21
- package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +6 -6
- package/lib/codec/cosmos/base/abci/v1beta1/abci.d.ts +12 -12
- package/lib/codec/cosmos/base/kv/v1beta1/kv.d.ts +4 -4
- package/lib/codec/cosmos/base/node/v1beta1/query.d.ts +4 -4
- package/lib/codec/cosmos/base/query/v1beta1/pagination.d.ts +4 -4
- package/lib/codec/cosmos/base/reflection/v1beta1/reflection.d.ts +6 -6
- package/lib/codec/cosmos/base/reflection/v2alpha1/reflection.d.ts +28 -28
- package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.d.ts +11 -11
- package/lib/codec/cosmos/base/store/v1beta1/commit_info.d.ts +5 -5
- package/lib/codec/cosmos/base/store/v1beta1/listening.d.ts +5 -5
- package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +21 -21
- package/lib/codec/cosmos/base/tendermint/v1beta1/types.d.ts +4 -4
- package/lib/codec/cosmos/base/v1beta1/coin.d.ts +6 -6
- package/lib/codec/cosmos/capability/v1beta1/capability.d.ts +5 -5
- package/lib/codec/cosmos/capability/v1beta1/genesis.d.ts +4 -4
- package/lib/codec/cosmos/crisis/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/crisis/v1beta1/tx.d.ts +4 -4
- package/lib/codec/cosmos/crypto/ed25519/keys.d.ts +4 -4
- package/lib/codec/cosmos/crypto/hd/v1/hd.d.ts +3 -3
- package/lib/codec/cosmos/crypto/keyring/v1/record.d.ts +7 -7
- package/lib/codec/cosmos/crypto/multisig/keys.d.ts +3 -3
- package/lib/codec/cosmos/crypto/multisig/v1beta1/multisig.d.ts +4 -4
- package/lib/codec/cosmos/crypto/secp256k1/keys.d.ts +4 -4
- package/lib/codec/cosmos/crypto/secp256r1/keys.d.ts +4 -4
- package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +14 -14
- package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +10 -10
- package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +22 -22
- package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +10 -10
- package/lib/codec/cosmos/evidence/v1beta1/evidence.d.ts +3 -3
- package/lib/codec/cosmos/evidence/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +6 -6
- package/lib/codec/cosmos/evidence/v1beta1/tx.d.ts +4 -4
- package/lib/codec/cosmos/feegrant/v1beta1/feegrant.d.ts +6 -6
- package/lib/codec/cosmos/feegrant/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +8 -8
- package/lib/codec/cosmos/feegrant/v1beta1/tx.d.ts +6 -6
- package/lib/codec/cosmos/genutil/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/gov/v1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/gov/v1/gov.d.ts +10 -10
- package/lib/codec/cosmos/gov/v1/query.d.ts +18 -18
- package/lib/codec/cosmos/gov/v1/query.js +2 -2
- package/lib/codec/cosmos/gov/v1/tx.d.ts +12 -12
- package/lib/codec/cosmos/gov/v1/tx.js +2 -2
- package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +11 -11
- package/lib/codec/cosmos/gov/v1beta1/query.d.ts +18 -18
- package/lib/codec/cosmos/gov/v1beta1/query.js +2 -2
- package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +10 -10
- package/lib/codec/cosmos/gov/v1beta1/tx.js +2 -2
- package/lib/codec/cosmos/group/v1/events.d.ts +11 -11
- package/lib/codec/cosmos/group/v1/events.js +2 -2
- package/lib/codec/cosmos/group/v1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/group/v1/query.d.ts +30 -30
- package/lib/codec/cosmos/group/v1/tx.d.ts +30 -30
- package/lib/codec/cosmos/group/v1/tx.js +4 -4
- package/lib/codec/cosmos/group/v1/types.d.ts +13 -13
- package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/mint/v1beta1/mint.d.ts +4 -4
- package/lib/codec/cosmos/mint/v1beta1/query.d.ts +8 -8
- package/lib/codec/cosmos/nft/v1beta1/event.d.ts +5 -5
- package/lib/codec/cosmos/nft/v1beta1/genesis.d.ts +4 -4
- package/lib/codec/cosmos/nft/v1beta1/nft.d.ts +4 -4
- package/lib/codec/cosmos/nft/v1beta1/query.d.ts +16 -16
- package/lib/codec/cosmos/nft/v1beta1/tx.d.ts +4 -4
- package/lib/codec/cosmos/orm/module/v1alpha1/module.d.ts +3 -3
- package/lib/codec/cosmos/orm/v1/orm.d.ts +6 -6
- package/lib/codec/cosmos/orm/v1alpha1/schema.d.ts +4 -4
- package/lib/codec/cosmos/params/v1beta1/params.d.ts +4 -4
- package/lib/codec/cosmos/params/v1beta1/query.d.ts +7 -7
- package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +6 -6
- package/lib/codec/cosmos/slashing/v1beta1/query.d.ts +8 -8
- package/lib/codec/cosmos/slashing/v1beta1/slashing.d.ts +4 -4
- package/lib/codec/cosmos/slashing/v1beta1/tx.d.ts +4 -4
- package/lib/codec/cosmos/staking/v1beta1/authz.d.ts +4 -4
- package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +4 -4
- package/lib/codec/cosmos/staking/v1beta1/query.d.ts +30 -30
- package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +22 -22
- package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +14 -14
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +7 -7
- package/lib/codec/cosmos/tx/v1beta1/service.d.ts +12 -12
- package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +15 -15
- package/lib/codec/cosmos/tx/v1beta1/tx.js +4 -4
- package/lib/codec/cosmos/upgrade/v1beta1/query.d.ts +12 -12
- package/lib/codec/cosmos/upgrade/v1beta1/tx.d.ts +6 -6
- package/lib/codec/cosmos/upgrade/v1beta1/upgrade.d.ts +6 -6
- package/lib/codec/cosmos/vesting/v1beta1/tx.d.ts +8 -8
- package/lib/codec/cosmos/vesting/v1beta1/vesting.d.ts +8 -8
- package/lib/codec/cosmos-models.js +5 -1
- package/lib/codec/erc20/erc20.d.ts +3 -3
- package/lib/codec/erc20/events.d.ts +6 -6
- package/lib/codec/erc20/genesis.d.ts +4 -4
- package/lib/codec/erc20/query.d.ts +8 -8
- package/lib/codec/erc20/tx.d.ts +16 -16
- package/lib/codec/ethermint/crypto/v1/ethsecp256k1/keys.d.ts +4 -4
- package/lib/codec/ethermint/evm/v1/events.d.ts +6 -6
- package/lib/codec/ethermint/evm/v1/evm.d.ts +10 -10
- package/lib/codec/ethermint/evm/v1/genesis.d.ts +4 -4
- package/lib/codec/ethermint/evm/v1/query.d.ts +26 -26
- package/lib/codec/ethermint/evm/v1/tx.d.ts +10 -10
- package/lib/codec/ethermint/feemarket/v1/events.d.ts +4 -4
- package/lib/codec/ethermint/feemarket/v1/feemarket.d.ts +3 -3
- package/lib/codec/ethermint/feemarket/v1/genesis.d.ts +3 -3
- package/lib/codec/ethermint/feemarket/v1/query.d.ts +8 -8
- package/lib/codec/ethermint/feemarket/v1/tx.d.ts +4 -4
- package/lib/codec/ethermint/types/v1/account.d.ts +3 -3
- package/lib/codec/ethermint/types/v1/dynamic_fee.d.ts +3 -3
- package/lib/codec/ethermint/types/v1/indexer.d.ts +3 -3
- package/lib/codec/ethermint/types/v1/web3.d.ts +3 -3
- package/lib/codec/ethermint-models.js +5 -1
- package/lib/codec/evmbank/genesis.d.ts +4 -4
- package/lib/codec/evmbank/query.d.ts +4 -4
- package/lib/codec/evmmerge/event.d.ts +3 -3
- package/lib/codec/evmmerge/genesis.d.ts +5 -5
- package/lib/codec/evmmerge/offchain.d.ts +3 -3
- package/lib/codec/evmmerge/query.d.ts +4 -4
- package/lib/codec/evmmerge/tx.d.ts +4 -4
- package/lib/codec/fee/event.d.ts +3 -3
- package/lib/codec/fee/fee.d.ts +5 -5
- package/lib/codec/fee/genesis.d.ts +3 -3
- package/lib/codec/fee/proposal.d.ts +6 -6
- package/lib/codec/fee/query.d.ts +10 -10
- package/lib/codec/fee/tx.d.ts +10 -10
- package/lib/codec/google/protobuf/any.d.ts +3 -3
- package/lib/codec/google/protobuf/duration.d.ts +3 -3
- package/lib/codec/google/protobuf/timestamp.d.ts +3 -3
- package/lib/codec/google/protobuf/wrappers.d.ts +11 -11
- package/lib/codec/headersync/consensus_peers.d.ts +7 -7
- package/lib/codec/headersync/genesis.d.ts +7 -7
- package/lib/codec/headersync/query.d.ts +6 -6
- package/lib/codec/headersync/tx.d.ts +6 -6
- package/lib/codec/ibc/applications/fee/v1/ack.d.ts +3 -3
- package/lib/codec/ibc/applications/fee/v1/fee.d.ts +6 -6
- package/lib/codec/ibc/applications/fee/v1/genesis.d.ts +7 -7
- package/lib/codec/ibc/applications/fee/v1/metadata.d.ts +3 -3
- package/lib/codec/ibc/applications/fee/v1/query.d.ts +22 -22
- package/lib/codec/ibc/applications/fee/v1/tx.d.ts +10 -10
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/controller.d.ts +3 -3
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.d.ts +6 -6
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.d.ts +6 -6
- package/lib/codec/ibc/applications/interchain_accounts/genesis/v1/genesis.d.ts +7 -7
- package/lib/codec/ibc/applications/interchain_accounts/host/v1/host.d.ts +3 -3
- package/lib/codec/ibc/applications/interchain_accounts/host/v1/query.d.ts +4 -4
- package/lib/codec/ibc/applications/interchain_accounts/v1/account.d.ts +3 -3
- package/lib/codec/ibc/applications/interchain_accounts/v1/metadata.d.ts +3 -3
- package/lib/codec/ibc/applications/interchain_accounts/v1/packet.d.ts +4 -4
- package/lib/codec/ibc/applications/transfer/v1/genesis.d.ts +3 -3
- package/lib/codec/ibc/applications/transfer/v1/query.d.ts +12 -12
- package/lib/codec/ibc/applications/transfer/v1/transfer.d.ts +4 -4
- package/lib/codec/ibc/applications/transfer/v1/tx.d.ts +4 -4
- package/lib/codec/ibc/applications/transfer/v2/packet.d.ts +3 -3
- package/lib/codec/ibc/core/channel/v1/channel.d.ts +9 -9
- package/lib/codec/ibc/core/channel/v1/genesis.d.ts +4 -4
- package/lib/codec/ibc/core/channel/v1/query.d.ts +28 -28
- package/lib/codec/ibc/core/channel/v1/tx.d.ts +22 -22
- package/lib/codec/ibc/core/client/v1/client.d.ts +9 -9
- package/lib/codec/ibc/core/client/v1/genesis.d.ts +5 -5
- package/lib/codec/ibc/core/client/v1/query.d.ts +20 -20
- package/lib/codec/ibc/core/client/v1/tx.d.ts +10 -10
- package/lib/codec/ibc/core/commitment/v1/commitment.d.ts +6 -6
- package/lib/codec/ibc/core/connection/v1/connection.d.ts +9 -9
- package/lib/codec/ibc/core/connection/v1/genesis.d.ts +3 -3
- package/lib/codec/ibc/core/connection/v1/query.d.ts +14 -14
- package/lib/codec/ibc/core/connection/v1/tx.d.ts +10 -10
- package/lib/codec/ibc/core/types/v1/genesis.d.ts +3 -3
- package/lib/codec/ibc/lightclients/localhost/v1/localhost.d.ts +3 -3
- package/lib/codec/ibc/lightclients/solomachine/v1/solomachine.d.ts +18 -18
- package/lib/codec/ibc/lightclients/solomachine/v2/solomachine.d.ts +18 -18
- package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.d.ts +7 -7
- package/lib/codec/ibc-models.js +5 -1
- package/lib/codec/index.js +5 -1
- package/lib/codec/inflation/genesis.d.ts +3 -3
- package/lib/codec/inflation/inflation.d.ts +3 -3
- package/lib/codec/inflation/query.d.ts +4 -4
- package/lib/codec/insurance/event.d.ts +3 -3
- package/lib/codec/insurance/fund.d.ts +4 -4
- package/lib/codec/insurance/genesis.d.ts +3 -3
- package/lib/codec/insurance/query.d.ts +4 -4
- package/lib/codec/leverage/event.d.ts +3 -3
- package/lib/codec/leverage/genesis.d.ts +3 -3
- package/lib/codec/leverage/leverage.d.ts +4 -4
- package/lib/codec/leverage/query.d.ts +6 -6
- package/lib/codec/leverage/tx.d.ts +4 -4
- package/lib/codec/liquidation/genesis.d.ts +4 -4
- package/lib/codec/liquidation/liquidation.d.ts +3 -3
- package/lib/codec/liquidation/outstanding_position.d.ts +4 -4
- package/lib/codec/liquidation/query.d.ts +6 -6
- package/lib/codec/liquidation/quote_changes.d.ts +3 -3
- package/lib/codec/liquiditypool/event.d.ts +8 -8
- package/lib/codec/liquiditypool/genesis.d.ts +3 -3
- package/lib/codec/liquiditypool/liquiditypool.d.ts +12 -12
- package/lib/codec/liquiditypool/proposal.d.ts +11 -11
- package/lib/codec/liquiditypool/query.d.ts +35 -35
- package/lib/codec/liquiditypool/reward.d.ts +18 -18
- package/lib/codec/liquiditypool/tx.d.ts +39 -39
- package/lib/codec/lockproxy/event.d.ts +4 -4
- package/lib/codec/lockproxy/genesis.d.ts +6 -6
- package/lib/codec/lockproxy/lockproxy.d.ts +3 -3
- package/lib/codec/lockproxy/query.d.ts +6 -6
- package/lib/codec/lockproxy/tx.d.ts +12 -12
- package/lib/codec/market/event.d.ts +3 -3
- package/lib/codec/market/fee.d.ts +7 -7
- package/lib/codec/market/genesis.d.ts +3 -3
- package/lib/codec/market/market.d.ts +7 -7
- package/lib/codec/market/proposal.d.ts +5 -5
- package/lib/codec/market/query.d.ts +16 -16
- package/lib/codec/market/tx.d.ts +18 -18
- package/lib/codec/marketstats/genesis.d.ts +3 -3
- package/lib/codec/marketstats/marketstats.d.ts +3 -3
- package/lib/codec/marketstats/params.d.ts +3 -3
- package/lib/codec/marketstats/query.d.ts +6 -6
- package/lib/codec/misc/block.d.ts +3 -3
- package/lib/codec/misc/message.d.ts +3 -3
- package/lib/codec/misc/message_type.d.ts +3 -3
- package/lib/codec/misc/query.d.ts +16 -16
- package/lib/codec/misc/trade.d.ts +3 -3
- package/lib/codec/misc/transaction.d.ts +4 -4
- package/lib/codec/oracle/event.d.ts +4 -4
- package/lib/codec/oracle/genesis.d.ts +3 -3
- package/lib/codec/oracle/oracle.d.ts +7 -7
- package/lib/codec/oracle/proposal.d.ts +3 -3
- package/lib/codec/oracle/query.d.ts +22 -22
- package/lib/codec/oracle/slashing.d.ts +4 -4
- package/lib/codec/oracle/tx.d.ts +14 -14
- package/lib/codec/order/event.d.ts +3 -3
- package/lib/codec/order/genesis.d.ts +6 -6
- package/lib/codec/order/order.d.ts +9 -9
- package/lib/codec/order/query.d.ts +12 -12
- package/lib/codec/order/tx.d.ts +12 -12
- package/lib/codec/perpsliquidity/event.d.ts +10 -10
- package/lib/codec/perpsliquidity/genesis.d.ts +4 -4
- package/lib/codec/perpsliquidity/params.d.ts +3 -3
- package/lib/codec/perpsliquidity/pool.d.ts +10 -10
- package/lib/codec/perpsliquidity/query.d.ts +16 -16
- package/lib/codec/perpsliquidity/tx.d.ts +16 -16
- package/lib/codec/polynetwork-models.js +5 -1
- package/lib/codec/position/event.d.ts +3 -3
- package/lib/codec/position/genesis.d.ts +3 -3
- package/lib/codec/position/position.d.ts +6 -6
- package/lib/codec/position/query.d.ts +8 -8
- package/lib/codec/position/tx.d.ts +4 -4
- package/lib/codec/pricing/event.d.ts +8 -8
- package/lib/codec/pricing/genesis.d.ts +3 -3
- package/lib/codec/pricing/legacy.d.ts +3 -3
- package/lib/codec/pricing/pricing.d.ts +5 -5
- package/lib/codec/pricing/proposal.d.ts +4 -4
- package/lib/codec/pricing/query.d.ts +16 -16
- package/lib/codec/pricing/tx.d.ts +12 -12
- package/lib/codec/profile/event.d.ts +3 -3
- package/lib/codec/profile/genesis.d.ts +3 -3
- package/lib/codec/profile/profile.d.ts +3 -3
- package/lib/codec/profile/query.d.ts +6 -6
- package/lib/codec/profile/tx.d.ts +4 -4
- package/lib/codec/proofs.d.ts +15 -15
- package/lib/codec/sequence/genesis.d.ts +4 -4
- package/lib/codec/sequence/query.d.ts +6 -6
- package/lib/codec/sequence/tx.d.ts +4 -4
- package/lib/codec/subaccount/genesis.d.ts +3 -3
- package/lib/codec/subaccount/query.d.ts +10 -10
- package/lib/codec/subaccount/subaccount.d.ts +4 -4
- package/lib/codec/subaccount/tx.d.ts +8 -8
- package/lib/codec/tendermint/abci/types.d.ts +46 -46
- package/lib/codec/tendermint/crypto/keys.d.ts +3 -3
- package/lib/codec/tendermint/crypto/proof.d.ts +7 -7
- package/lib/codec/tendermint/libs/bits/types.d.ts +3 -3
- package/lib/codec/tendermint/p2p/types.d.ts +6 -6
- package/lib/codec/tendermint/types/block.d.ts +3 -3
- package/lib/codec/tendermint/types/evidence.d.ts +6 -6
- package/lib/codec/tendermint/types/params.d.ts +8 -8
- package/lib/codec/tendermint/types/types.d.ts +15 -15
- package/lib/codec/tendermint/types/validator.d.ts +5 -5
- package/lib/codec/tendermint/version/types.d.ts +4 -4
- package/lib/constant/address.d.ts +1 -1
- package/lib/constant/generic.js +1 -1
- package/lib/constant/ibc.d.ts +3 -3
- package/lib/constant/ibc.js +5 -1
- package/lib/constant/index.js +5 -1
- package/lib/constant/node.d.ts +1 -1
- package/lib/eth/index.js +5 -1
- package/lib/hydrogen/index.js +5 -1
- package/lib/hydrogen/transfer.d.ts +2 -2
- package/lib/index.js +5 -1
- package/lib/insights/common.d.ts +1 -1
- package/lib/insights/index.js +5 -1
- package/lib/insights/position.d.ts +1 -1
- package/lib/modules/cdp.js +43 -43
- package/lib/modules/cosmwasm.js +1 -1
- package/lib/modules/evm.d.ts +1 -1
- package/lib/modules/evm.js +5 -5
- package/lib/modules/gov.js +12 -12
- package/lib/modules/index.js +5 -1
- package/lib/modules/liquiditypool.js +1 -1
- package/lib/provider/account/EthLedgerAccount/EthLedgerAccount.js +1 -1
- package/lib/provider/account/EthLedgerAccount/index.js +5 -1
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/ErrorCode.js +1 -1
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/index.js +5 -1
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/main.js +8 -8
- package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.d.ts +1 -1
- package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.js +8 -4
- package/lib/provider/account/NeoLedgerAccount/NeonLedger.js +1 -1
- package/lib/provider/account/NeoLedgerAccount/index.js +5 -1
- package/lib/provider/account/index.js +5 -1
- package/lib/provider/amino/types/admin.js +32 -28
- package/lib/provider/amino/types/bank.js +6 -2
- package/lib/provider/amino/types/broker.js +6 -2
- package/lib/provider/amino/types/cdp.js +30 -26
- package/lib/provider/amino/types/coin.js +9 -5
- package/lib/provider/amino/types/evm.js +7 -3
- package/lib/provider/amino/types/evmmerge.js +6 -2
- package/lib/provider/amino/types/feemarket.js +6 -2
- package/lib/provider/amino/types/gov.js +10 -6
- package/lib/provider/amino/types/ibc.js +6 -2
- package/lib/provider/amino/types/leverage.js +6 -2
- package/lib/provider/amino/types/liquidityPool.js +12 -8
- package/lib/provider/amino/types/market.js +11 -7
- package/lib/provider/amino/types/oracle.js +7 -3
- package/lib/provider/amino/types/order.js +9 -5
- package/lib/provider/amino/types/perpsliquidity.js +11 -7
- package/lib/provider/amino/types/position.js +6 -2
- package/lib/provider/amino/types/profile.js +6 -2
- package/lib/provider/amino/types/staking.js +9 -5
- package/lib/provider/amino/types/subaccount.js +8 -4
- package/lib/provider/amino/utils.d.ts +2 -2
- package/lib/provider/amino/utils.js +11 -11
- package/lib/provider/keplr/KeplrAccount.js +2 -2
- package/lib/provider/ledger/ledger.js +8 -5
- package/lib/provider/metamask/MetaMask.d.ts +1 -1
- package/lib/provider/metamask/MetaMask.js +22 -18
- package/lib/provider/o3/O3Types.d.ts +1 -1
- package/lib/provider/o3/O3Wallet.js +15 -11
- package/lib/provider/o3/index.js +5 -1
- package/lib/provider/zilpay/Zilpay.js +4 -4
- package/lib/provider/zilpay/index.js +5 -1
- package/lib/util/address.d.ts +5 -5
- package/lib/util/address.js +19 -15
- package/lib/util/api.d.ts +3 -3
- package/lib/util/api.js +4 -4
- package/lib/util/blockchain.d.ts +7 -7
- package/lib/util/blockchain.js +4 -4
- package/lib/util/eip712.js +3 -3
- package/lib/util/fetch.js +1 -1
- package/lib/util/generic.d.ts +3 -2
- package/lib/util/generic.js +3 -3
- package/lib/util/gov.d.ts +1 -1
- package/lib/util/index.js +5 -1
- package/lib/util/legacyEIP712.d.ts +2 -2
- package/lib/util/legacyEIP712.js +2 -2
- package/lib/util/number.d.ts +4 -4
- package/lib/util/number.js +5 -5
- package/lib/util/tx.d.ts +3 -3
- package/lib/util/tx.js +5 -1
- package/lib/util/type.d.ts +1 -1
- package/lib/wallet/CarbonSigner.d.ts +5 -5
- package/lib/wallet/CarbonSigner.js +6 -6
- package/lib/wallet/CarbonSigningClient.js +15 -15
- package/lib/wallet/CarbonWallet.d.ts +1 -1
- package/lib/wallet/CarbonWallet.js +9 -9
- package/lib/wallet/index.js +5 -1
- package/lib/websocket/connector.js +8 -4
- package/lib/websocket/index.js +5 -1
- package/lib/websocket/types.d.ts +1 -1
- package/package.json +6 -6
package/lib/CarbonSDK.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -140,7 +144,8 @@ class CarbonSDK {
|
|
|
140
144
|
const network = (_a = opts.network) !== null && _a !== void 0 ? _a : constant_1.DEFAULT_NETWORK;
|
|
141
145
|
const configOverride = (_b = opts.config) !== null && _b !== void 0 ? _b : {};
|
|
142
146
|
const networkConfig = util_1.GenericUtils.overrideConfig(constant_1.NetworkConfigs[network], configOverride);
|
|
143
|
-
|
|
147
|
+
console.log("xx opts", opts.tmClient);
|
|
148
|
+
const tmClient = (_c = opts.tmClient) !== null && _c !== void 0 ? _c : util_1.GenericUtils.modifyTmClient(yield tendermint_rpc_1.Tendermint34Client.create(new tendermint_rpc_1.HttpBatchClient(networkConfig.tmRpcUrl)));
|
|
144
149
|
const defaultTimeoutBlocks = opts.defaultTimeoutBlocks;
|
|
145
150
|
const chainId = (_d = (yield tmClient.status())) === null || _d === void 0 ? void 0 : _d.nodeInfo.network;
|
|
146
151
|
const sdk = new CarbonSDK({ network, config: configOverride, tmClient, defaultTimeoutBlocks, chainId });
|
|
@@ -53,7 +53,7 @@ class CarbonQueryClient {
|
|
|
53
53
|
constructor(tmClient) {
|
|
54
54
|
this.tmClient = tmClient;
|
|
55
55
|
this.baseClient = new stargate_1.QueryClient(this.tmClient);
|
|
56
|
-
const rpcClient = stargate_1.createProtobufRpcClient(this.baseClient);
|
|
56
|
+
const rpcClient = (0, stargate_1.createProtobufRpcClient)(this.baseClient);
|
|
57
57
|
this.chain = BlockchainClient_1.default.connectWithTm(this.tmClient);
|
|
58
58
|
this.adl = new query_1.QueryClientImpl(rpcClient);
|
|
59
59
|
this.book = new query_2.QueryClientImpl(rpcClient);
|
|
@@ -105,7 +105,7 @@ class CarbonQueryClient {
|
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
107
|
getProtobufRpcClient() {
|
|
108
|
-
return stargate_1.createProtobufRpcClient(this.baseClient);
|
|
108
|
+
return (0, stargate_1.createProtobufRpcClient)(this.baseClient);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
exports.default = CarbonQueryClient;
|
package/lib/clients/ETHClient.js
CHANGED
|
@@ -44,15 +44,15 @@ class ETHClient {
|
|
|
44
44
|
?
|
|
45
45
|
this.tokenClient.getBlockchainV2(token.denom) == ETHClient.BLOCKCHAINV2_MAPPING[this.blockchain]
|
|
46
46
|
:
|
|
47
|
-
blockchain_1.blockchainForChainId(token.chainId.toNumber(), api.network) == this.blockchain;
|
|
47
|
+
(0, blockchain_1.blockchainForChainId)(token.chainId.toNumber(), api.network) == this.blockchain;
|
|
48
48
|
return isCorrectBlockchain &&
|
|
49
49
|
token.tokenAddress.length == 40 &&
|
|
50
|
-
token.bridgeAddress.toLowerCase() == generic_1.stripHexPrefix(lockProxyAddress) &&
|
|
50
|
+
token.bridgeAddress.toLowerCase() == (0, generic_1.stripHexPrefix)(lockProxyAddress) &&
|
|
51
51
|
(!whitelistDenoms || whitelistDenoms.includes(token.denom)) &&
|
|
52
|
-
this.verifyChecksum(generic_1.appendHexPrefix(token.tokenAddress));
|
|
52
|
+
this.verifyChecksum((0, generic_1.appendHexPrefix)(token.tokenAddress));
|
|
53
53
|
});
|
|
54
54
|
const assetIds = tokens.map((token) => {
|
|
55
|
-
return this.verifyChecksum(generic_1.appendHexPrefix(token.tokenAddress));
|
|
55
|
+
return this.verifyChecksum((0, generic_1.appendHexPrefix)(token.tokenAddress));
|
|
56
56
|
});
|
|
57
57
|
const provider = this.getProvider();
|
|
58
58
|
const contractAddress = this.getBalanceReaderAddress();
|
|
@@ -99,14 +99,14 @@ class ETHClient {
|
|
|
99
99
|
}
|
|
100
100
|
const carbonNetwork = networkConfig.network;
|
|
101
101
|
const fromTokenId = fromToken.id;
|
|
102
|
-
const fromTokenAddress = generic_1.appendHexPrefix(fromToken.tokenAddress);
|
|
102
|
+
const fromTokenAddress = (0, generic_1.appendHexPrefix)(fromToken.tokenAddress);
|
|
103
103
|
const toTokenDenom = toToken.denom;
|
|
104
104
|
const recoveryAddressHex = ethers_1.ethers.utils.hexlify(util_1.AddressUtils.SWTHAddress.getAddressBytes(recoveryAddress, carbonNetwork));
|
|
105
105
|
const fromAssetHash = ethers_1.ethers.utils.hexlify(ethers_1.ethers.utils.toUtf8Bytes(fromTokenId));
|
|
106
106
|
const toAssetHash = ethers_1.ethers.utils.hexlify(ethers_1.ethers.utils.toUtf8Bytes(toTokenDenom));
|
|
107
107
|
const nonce = yield this.getTxNonce(fromAddress, params.nonce, rpcProvider);
|
|
108
108
|
const contract = new ethers_1.ethers.Contract(this.getBridgeEntranceAddr(), eth_1.ABIs.bridgeEntrance, rpcProvider);
|
|
109
|
-
const feeAddress = generic_1.appendHexPrefix(networkConfig.feeAddress);
|
|
109
|
+
const feeAddress = (0, generic_1.appendHexPrefix)(networkConfig.feeAddress);
|
|
110
110
|
const tokenCreator = fromToken.creator;
|
|
111
111
|
const targetAddressBytes = util_1.AddressUtils.SWTHAddress.getAddressBytes(tokenCreator, carbonNetwork);
|
|
112
112
|
const targetProxyHash = ethers_1.ethers.utils.hexlify(targetAddressBytes);
|
|
@@ -135,9 +135,9 @@ class ETHClient {
|
|
|
135
135
|
throw new Error("Minimum gas required: 150,000");
|
|
136
136
|
}
|
|
137
137
|
const networkConfig = this.getNetworkConfig();
|
|
138
|
-
const assetId = generic_1.appendHexPrefix(token.tokenAddress);
|
|
139
|
-
const targetProxyHash = generic_1.appendHexPrefix(this.getTargetProxyHash(token));
|
|
140
|
-
const feeAddress = generic_1.appendHexPrefix(networkConfig.feeAddress);
|
|
138
|
+
const assetId = (0, generic_1.appendHexPrefix)(token.tokenAddress);
|
|
139
|
+
const targetProxyHash = (0, generic_1.appendHexPrefix)(this.getTargetProxyHash(token));
|
|
140
|
+
const feeAddress = (0, generic_1.appendHexPrefix)(networkConfig.feeAddress);
|
|
141
141
|
const toAssetHash = ethers_1.ethers.utils.hexlify(ethers_1.ethers.utils.toUtf8Bytes(token.id));
|
|
142
142
|
const swthAddress = ethers_1.ethers.utils.hexlify(address);
|
|
143
143
|
const contractAddress = this.getLockProxyAddress();
|
|
@@ -188,16 +188,16 @@ class ETHClient {
|
|
|
188
188
|
return "insufficient balance";
|
|
189
189
|
}
|
|
190
190
|
const networkConfig = this.getNetworkConfig();
|
|
191
|
-
const assetId = generic_1.appendHexPrefix(tokenWithExternalBalances.tokenAddress);
|
|
192
|
-
const targetProxyHash = generic_1.appendHexPrefix(this.getTargetProxyHash(tokenWithExternalBalances));
|
|
193
|
-
const feeAddress = generic_1.appendHexPrefix(networkConfig.feeAddress);
|
|
191
|
+
const assetId = (0, generic_1.appendHexPrefix)(tokenWithExternalBalances.tokenAddress);
|
|
192
|
+
const targetProxyHash = (0, generic_1.appendHexPrefix)(this.getTargetProxyHash(tokenWithExternalBalances));
|
|
193
|
+
const feeAddress = (0, generic_1.appendHexPrefix)(networkConfig.feeAddress);
|
|
194
194
|
const toAssetHash = ethers_1.ethers.utils.hexlify(ethers_1.ethers.utils.toUtf8Bytes(tokenWithExternalBalances.id));
|
|
195
195
|
const nonce = Math.floor(Math.random() * 1000000000); // random nonce to prevent replay attacks
|
|
196
196
|
const message = ethers_1.ethers.utils.solidityKeccak256(["string", "address", "bytes", "bytes", "bytes", "uint256", "uint256", "uint256"], ["sendTokens", assetId, targetProxyHash, toAssetHash, feeAddress, amount, feeAmount, nonce]);
|
|
197
197
|
// logger("sendDeposit message", message)
|
|
198
198
|
let signatureResult;
|
|
199
199
|
const { address, signature } = yield getSignatureCallback(message);
|
|
200
|
-
const signatureBytes = ethers_1.ethers.utils.arrayify(generic_1.appendHexPrefix(signature));
|
|
200
|
+
const signatureBytes = ethers_1.ethers.utils.arrayify((0, generic_1.appendHexPrefix)(signature));
|
|
201
201
|
const rsv = ethers_1.ethers.utils.splitSignature(signatureBytes);
|
|
202
202
|
// logger("sign result", address, signature)
|
|
203
203
|
signatureResult = {
|
|
@@ -236,7 +236,7 @@ class ETHClient {
|
|
|
236
236
|
if (!feeInfo.deposit_fee) {
|
|
237
237
|
throw new Error("unsupported token");
|
|
238
238
|
}
|
|
239
|
-
if (blockchain_1.blockchainForChainId(token.chainId.toNumber(), this.configProvider.getConfig().network) !== this.blockchain) {
|
|
239
|
+
if ((0, blockchain_1.blockchainForChainId)(token.chainId.toNumber(), this.configProvider.getConfig().network) !== this.blockchain) {
|
|
240
240
|
throw new Error("unsupported token");
|
|
241
241
|
}
|
|
242
242
|
let feeAmount = ethers_1.ethers.BigNumber.from(feeInfo.deposit_fee);
|
|
@@ -302,7 +302,7 @@ class ETHClient {
|
|
|
302
302
|
getTargetProxyHash(token) {
|
|
303
303
|
const networkConfig = this.getNetworkConfig();
|
|
304
304
|
const addressBytes = address_1.SWTHAddress.getAddressBytes(token.creator, networkConfig.network);
|
|
305
|
-
const addressHex = generic_1.stripHexPrefix(ethers_1.ethers.utils.hexlify(addressBytes));
|
|
305
|
+
const addressHex = (0, generic_1.stripHexPrefix)(ethers_1.ethers.utils.hexlify(addressBytes));
|
|
306
306
|
return addressHex;
|
|
307
307
|
}
|
|
308
308
|
getProvider() {
|
|
@@ -29,7 +29,7 @@ exports.HydrogenEndpoints = {
|
|
|
29
29
|
const formatDateField = (value) => {
|
|
30
30
|
if (typeof value !== "string")
|
|
31
31
|
return null;
|
|
32
|
-
return dayjs_1.default(value);
|
|
32
|
+
return (0, dayjs_1.default)(value);
|
|
33
33
|
};
|
|
34
34
|
// temporary function to parse okt/okc blockchain
|
|
35
35
|
// to remove when automatic deposit/withdraw feature is deployed
|
package/lib/clients/NEOClient.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -69,13 +73,13 @@ class NEOClient {
|
|
|
69
73
|
?
|
|
70
74
|
!!sdk.token.getBlockchainV2(token.denom) && (blockchain_1.BLOCKCHAIN_V2_TO_V1_MAPPING[sdk.token.getBlockchainV2(token.denom)] == this.blockchain)
|
|
71
75
|
:
|
|
72
|
-
blockchain_1.blockchainForChainId(token.chainId.toNumber(), sdk.network) == this.blockchain;
|
|
76
|
+
(0, blockchain_1.blockchainForChainId)(token.chainId.toNumber(), sdk.network) == this.blockchain;
|
|
73
77
|
return (isCorrectBlockchain || token.denom === "swth") && token.tokenAddress.length == 40 && token.bridgeAddress.length == 40;
|
|
74
78
|
});
|
|
75
79
|
const client = new Neon.rpc.RPCClient(url, "2.5.2"); // TODO: should we change the RPC version??
|
|
76
80
|
// NOTE: fetching of tokens is chunked in sets of 15 as we may hit
|
|
77
81
|
// the gas limit on the RPC node and error out otherwise
|
|
78
|
-
const promises = lodash_1.chunk(tokens, 75).map((partition) => __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
const promises = (0, lodash_1.chunk)(tokens, 75).map((partition) => __awaiter(this, void 0, void 0, function* () {
|
|
79
83
|
var _a, _b, _c;
|
|
80
84
|
let acc = {};
|
|
81
85
|
for (const token of partition) {
|
|
@@ -117,8 +121,8 @@ class NEOClient {
|
|
|
117
121
|
const targetProxyHash = this.getTargetProxyHash(token);
|
|
118
122
|
const toAssetHash = Neon.u.str2hexstring(token.id);
|
|
119
123
|
const addressBytes = address_1.SWTHAddress.getAddressBytes(swthAddress, networkConfig.network);
|
|
120
|
-
const toAddress = generic_1.stripHexPrefix(ethers_1.ethers.utils.hexlify(addressBytes));
|
|
121
|
-
const zeroAddressHex = generic_1.stripHexPrefix(ethers_1.ethers.utils.hexlify(constant_1.ZeroAddress));
|
|
124
|
+
const toAddress = (0, generic_1.stripHexPrefix)(ethers_1.ethers.utils.hexlify(addressBytes));
|
|
125
|
+
const zeroAddressHex = (0, generic_1.stripHexPrefix)(ethers_1.ethers.utils.hexlify(constant_1.ZeroAddress));
|
|
122
126
|
const amount = ethers_1.ethers.BigNumber.from(token.externalBalance);
|
|
123
127
|
const feeAmount = ethers_1.ethers.BigNumber.from(feeAmountInput !== null && feeAmountInput !== void 0 ? feeAmountInput : "100000000");
|
|
124
128
|
const feeAddress = feeAmount.isZero() ? zeroAddressHex : networkConfig.feeAddress;
|
|
@@ -165,7 +169,7 @@ class NEOClient {
|
|
|
165
169
|
const fromAddress = util_1.AddressUtils.NEOAddress.publicKeyToAddress(publicKeyOutput.publicKey);
|
|
166
170
|
const targetProxyHash = this.getTargetProxyHash(token);
|
|
167
171
|
const toAssetHash = Neon.u.str2hexstring(token.id);
|
|
168
|
-
const toAddress = generic_1.stripHexPrefix(ethers_1.ethers.utils.hexlify(address));
|
|
172
|
+
const toAddress = (0, generic_1.stripHexPrefix)(ethers_1.ethers.utils.hexlify(address));
|
|
169
173
|
const nonce = Math.floor(Math.random() * 1000000);
|
|
170
174
|
if (amount.lt(feeAmount)) {
|
|
171
175
|
throw new Error("Invalid amount");
|
|
@@ -201,7 +205,7 @@ class NEOClient {
|
|
|
201
205
|
const fromAddress = ledger.scriptHash;
|
|
202
206
|
const targetProxyHash = this.getTargetProxyHash(token);
|
|
203
207
|
const toAssetHash = Neon.u.str2hexstring(token.id);
|
|
204
|
-
const toAddress = generic_1.stripHexPrefix(ethers_1.ethers.utils.hexlify(address));
|
|
208
|
+
const toAddress = (0, generic_1.stripHexPrefix)(ethers_1.ethers.utils.hexlify(address));
|
|
205
209
|
const feeAddress = networkConfig.feeAddress;
|
|
206
210
|
const nonce = Math.floor(Math.random() * 1000000);
|
|
207
211
|
if (amount.lt(feeAmount)) {
|
|
@@ -321,7 +325,7 @@ class NEOClient {
|
|
|
321
325
|
getTargetProxyHash(token) {
|
|
322
326
|
const networkConfig = this.getNetworkConfig();
|
|
323
327
|
const addressBytes = address_1.SWTHAddress.getAddressBytes(token.creator, networkConfig.network);
|
|
324
|
-
const addressHex = generic_1.stripHexPrefix(ethers_1.ethers.utils.hexlify(addressBytes));
|
|
328
|
+
const addressHex = (0, generic_1.stripHexPrefix)(ethers_1.ethers.utils.hexlify(addressBytes));
|
|
325
329
|
return addressHex;
|
|
326
330
|
}
|
|
327
331
|
getNetworkConfig() {
|
|
@@ -570,7 +570,7 @@ class TokenClient {
|
|
|
570
570
|
if (!token)
|
|
571
571
|
return undefined;
|
|
572
572
|
const bridge = this.getBridgeFromToken(token);
|
|
573
|
-
if (!bridge || !blockchain_1.isIbcBridge(bridge))
|
|
573
|
+
if (!bridge || !(0, blockchain_1.isIbcBridge)(bridge))
|
|
574
574
|
return undefined;
|
|
575
575
|
return bridge.chain_id_name;
|
|
576
576
|
}
|
|
@@ -579,7 +579,7 @@ class TokenClient {
|
|
|
579
579
|
// get swth on osmosis
|
|
580
580
|
const osmoTmClient = yield tendermint_rpc_1.Tendermint34Client.connect(network_1.publicRpcNodes.Osmosis);
|
|
581
581
|
const osmoClient = new stargate_1.QueryClient(osmoTmClient);
|
|
582
|
-
const osmosRpcClient = stargate_1.createProtobufRpcClient(osmoClient);
|
|
582
|
+
const osmosRpcClient = (0, stargate_1.createProtobufRpcClient)(osmoClient);
|
|
583
583
|
const osmoIbcClient = new query_1.QueryClientImpl(osmosRpcClient);
|
|
584
584
|
const osmoDenomTraces = yield osmoIbcClient.DenomTraces({
|
|
585
585
|
pagination: pagination_1.PageRequest.fromPartial({
|
|
@@ -672,7 +672,7 @@ class TokenClient {
|
|
|
672
672
|
processTokenPrices(tokenPrices) {
|
|
673
673
|
return tokenPrices.reduce((prevPrices, price) => {
|
|
674
674
|
const newPrev = prevPrices;
|
|
675
|
-
newPrev[price.denom] = number_1.bnOrZero(price.twap).shiftedBy(-constant_1.decTypeDecimals);
|
|
675
|
+
newPrev[price.denom] = (0, number_1.bnOrZero)(price.twap).shiftedBy(-constant_1.decTypeDecimals);
|
|
676
676
|
return newPrev;
|
|
677
677
|
}, {});
|
|
678
678
|
}
|
package/lib/clients/ZILClient.js
CHANGED
|
@@ -77,12 +77,12 @@ class ZILClient {
|
|
|
77
77
|
?
|
|
78
78
|
!!sdk.token.getBlockchainV2(token.denom) && (blockchain_1.BLOCKCHAIN_V2_TO_V1_MAPPING[sdk.token.getBlockchainV2(token.denom)] == this.blockchain)
|
|
79
79
|
:
|
|
80
|
-
blockchain_1.blockchainForChainId(token.chainId.toNumber(), sdk.network) == this.blockchain;
|
|
80
|
+
(0, blockchain_1.blockchainForChainId)(token.chainId.toNumber(), sdk.network) == this.blockchain;
|
|
81
81
|
return isCorrectBlockchain && token.tokenAddress.length == 40 && (!whitelistDenoms || whitelistDenoms.includes(token.denom));
|
|
82
82
|
});
|
|
83
83
|
const requests = tokens.map((token) => token.tokenAddress === zeroAddress
|
|
84
|
-
? exports.balanceBatchRequest(address.replace(/^0x/i, ""))
|
|
85
|
-
: exports.tokenBalanceBatchRequest(token.tokenAddress, address));
|
|
84
|
+
? (0, exports.balanceBatchRequest)(address.replace(/^0x/i, ""))
|
|
85
|
+
: (0, exports.tokenBalanceBatchRequest)(token.tokenAddress, address));
|
|
86
86
|
const response = yield fetch(this.getProviderUrl(), {
|
|
87
87
|
method: "post",
|
|
88
88
|
headers: { "content-type": "application/json" },
|
|
@@ -107,7 +107,7 @@ class ZILClient {
|
|
|
107
107
|
// if (!isValidAddress) {
|
|
108
108
|
// throw new Error("invalid address")
|
|
109
109
|
// }
|
|
110
|
-
return zilliqa_1.fromBech32Address(bech32Address).toLowerCase().substr(2);
|
|
110
|
+
return (0, zilliqa_1.fromBech32Address)(bech32Address).toLowerCase().substr(2);
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
113
|
// see examplesV2/zil_client.ts on how to confirm the transactions
|
|
@@ -153,7 +153,7 @@ class ZILClient {
|
|
|
153
153
|
zilliqa = new zilliqa_1.Zilliqa(this.getProviderUrl());
|
|
154
154
|
}
|
|
155
155
|
const deployedContract = (this.walletProvider || zilliqa).contracts.at(contractAddress);
|
|
156
|
-
const balanceAndNonceResp = yield zilliqa.blockchain.getBalance(generic_1.stripHexPrefix(zilAddress));
|
|
156
|
+
const balanceAndNonceResp = yield zilliqa.blockchain.getBalance((0, generic_1.stripHexPrefix)(zilAddress));
|
|
157
157
|
if (balanceAndNonceResp.error !== undefined) {
|
|
158
158
|
throw new Error(balanceAndNonceResp.error.message);
|
|
159
159
|
}
|
|
@@ -171,7 +171,7 @@ class ZILClient {
|
|
|
171
171
|
vname: "spender",
|
|
172
172
|
type: "ByStr20",
|
|
173
173
|
// TODO: Check if bridgeAddress corresponds to carbon token lock_proxy_hash
|
|
174
|
-
value: spenderAddress !== null && spenderAddress !== void 0 ? spenderAddress : generic_1.appendHexPrefix(token.bridgeAddress),
|
|
174
|
+
value: spenderAddress !== null && spenderAddress !== void 0 ? spenderAddress : (0, generic_1.appendHexPrefix)(token.bridgeAddress),
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
177
|
vname: "amount",
|
|
@@ -189,7 +189,7 @@ class ZILClient {
|
|
|
189
189
|
}
|
|
190
190
|
checkAllowanceZRC2(token, owner, spender) {
|
|
191
191
|
return __awaiter(this, void 0, void 0, function* () {
|
|
192
|
-
const contractAddress = generic_1.appendHexPrefix(token.tokenAddress);
|
|
192
|
+
const contractAddress = (0, generic_1.appendHexPrefix)(token.tokenAddress);
|
|
193
193
|
const zilliqa = new zilliqa_1.Zilliqa(this.getProviderUrl());
|
|
194
194
|
const resp = yield zilliqa.blockchain.getSmartContractSubState(contractAddress, "allowances", [owner, spender]);
|
|
195
195
|
if (resp.error !== undefined) {
|
|
@@ -211,13 +211,13 @@ class ZILClient {
|
|
|
211
211
|
}
|
|
212
212
|
const carbonNetwork = networkConfig.network;
|
|
213
213
|
const fromTokenId = fromToken.id;
|
|
214
|
-
const fromTokenAddr = generic_1.appendHexPrefix(fromToken.tokenAddress);
|
|
214
|
+
const fromTokenAddr = (0, generic_1.appendHexPrefix)(fromToken.tokenAddress);
|
|
215
215
|
const toTokenDenom = toToken.denom;
|
|
216
|
-
const targetProxyHash = generic_1.appendHexPrefix(this.getTargetProxyHash(fromToken));
|
|
216
|
+
const targetProxyHash = (0, generic_1.appendHexPrefix)(this.getTargetProxyHash(fromToken));
|
|
217
217
|
const recoveryAddressHex = ethers_1.ethers.utils.hexlify(index_1.AddressUtils.SWTHAddress.getAddressBytes(recoveryAddress, carbonNetwork));
|
|
218
218
|
const fromAssetHash = ethers_1.ethers.utils.hexlify(ethers_1.ethers.utils.toUtf8Bytes(fromTokenId));
|
|
219
219
|
const toAssetHash = ethers_1.ethers.utils.hexlify(ethers_1.ethers.utils.toUtf8Bytes(toTokenDenom));
|
|
220
|
-
const feeAddress = generic_1.appendHexPrefix(networkConfig.feeAddress);
|
|
220
|
+
const feeAddress = (0, generic_1.appendHexPrefix)(networkConfig.feeAddress);
|
|
221
221
|
const contractAddress = this.getBridgeEntranceAddr();
|
|
222
222
|
let zilliqa;
|
|
223
223
|
if (typeof signer === "string") {
|
|
@@ -232,7 +232,7 @@ class ZILClient {
|
|
|
232
232
|
zilliqa = new zilliqa_1.Zilliqa(this.getProviderUrl());
|
|
233
233
|
}
|
|
234
234
|
const deployedContract = (this.walletProvider || zilliqa).contracts.at(contractAddress);
|
|
235
|
-
const balanceAndNonceResp = yield zilliqa.blockchain.getBalance(generic_1.stripHexPrefix(fromAddress));
|
|
235
|
+
const balanceAndNonceResp = yield zilliqa.blockchain.getBalance((0, generic_1.stripHexPrefix)(fromAddress));
|
|
236
236
|
if (balanceAndNonceResp.error !== undefined) {
|
|
237
237
|
throw new Error(balanceAndNonceResp.error.message);
|
|
238
238
|
}
|
|
@@ -309,13 +309,13 @@ class ZILClient {
|
|
|
309
309
|
return __awaiter(this, void 0, void 0, function* () {
|
|
310
310
|
const { address, amount, token, gasPrice, gasLimit, zilAddress, signer } = params;
|
|
311
311
|
const networkConfig = this.getNetworkConfig();
|
|
312
|
-
const assetId = generic_1.appendHexPrefix(token.tokenAddress);
|
|
313
|
-
const targetProxyHash = generic_1.appendHexPrefix(this.getTargetProxyHash(token));
|
|
314
|
-
const feeAddress = generic_1.appendHexPrefix(networkConfig.feeAddress);
|
|
312
|
+
const assetId = (0, generic_1.appendHexPrefix)(token.tokenAddress);
|
|
313
|
+
const targetProxyHash = (0, generic_1.appendHexPrefix)(this.getTargetProxyHash(token));
|
|
314
|
+
const feeAddress = (0, generic_1.appendHexPrefix)(networkConfig.feeAddress);
|
|
315
315
|
const toAssetHash = ethers_1.ethers.utils.hexlify(ethers_1.ethers.utils.toUtf8Bytes(token.id));
|
|
316
316
|
const swthAddress = ethers_1.ethers.utils.hexlify(address);
|
|
317
317
|
// TODO: Check if bridgeAddress corresponds to carbon token lock_proxy_hash
|
|
318
|
-
const contractAddress = generic_1.appendHexPrefix(token.bridgeAddress);
|
|
318
|
+
const contractAddress = (0, generic_1.appendHexPrefix)(token.bridgeAddress);
|
|
319
319
|
let zilliqa;
|
|
320
320
|
if (typeof signer === "string") {
|
|
321
321
|
zilliqa = new zilliqa_1.Zilliqa(this.getProviderUrl());
|
|
@@ -329,7 +329,7 @@ class ZILClient {
|
|
|
329
329
|
zilliqa = new zilliqa_1.Zilliqa(this.getProviderUrl());
|
|
330
330
|
}
|
|
331
331
|
const deployedContract = (this.walletProvider || zilliqa).contracts.at(contractAddress);
|
|
332
|
-
const balanceAndNonceResp = yield zilliqa.blockchain.getBalance(generic_1.stripHexPrefix(zilAddress));
|
|
332
|
+
const balanceAndNonceResp = yield zilliqa.blockchain.getBalance((0, generic_1.stripHexPrefix)(zilAddress));
|
|
333
333
|
if (balanceAndNonceResp.error !== undefined) {
|
|
334
334
|
throw new Error(balanceAndNonceResp.error.message);
|
|
335
335
|
}
|
|
@@ -414,7 +414,7 @@ class ZILClient {
|
|
|
414
414
|
getTargetProxyHash(token) {
|
|
415
415
|
const networkConfig = this.getNetworkConfig();
|
|
416
416
|
const addressBytes = address_1.SWTHAddress.getAddressBytes(token.creator, networkConfig.network);
|
|
417
|
-
const addressHex = generic_1.stripHexPrefix(ethers_1.ethers.utils.hexlify(addressBytes));
|
|
417
|
+
const addressHex = (0, generic_1.stripHexPrefix)(ethers_1.ethers.utils.hexlify(addressBytes));
|
|
418
418
|
return addressHex;
|
|
419
419
|
}
|
|
420
420
|
getNetworkConfig() {
|
|
@@ -6,13 +6,13 @@ export interface GenesisState {
|
|
|
6
6
|
}
|
|
7
7
|
export declare const GenesisState: {
|
|
8
8
|
encode(_: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
|
9
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
9
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
|
|
10
10
|
fromJSON(_: any): GenesisState;
|
|
11
11
|
toJSON(_: GenesisState): unknown;
|
|
12
12
|
fromPartial(_: DeepPartial<GenesisState>): GenesisState;
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
export
|
|
14
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
15
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
16
16
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
17
17
|
} : Partial<T>;
|
|
18
18
|
export {};
|
|
@@ -39,27 +39,27 @@ export interface RewardWeightChangeSnapshot {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RewardWeightRange: {
|
|
41
41
|
encode(message: RewardWeightRange, writer?: _m0.Writer): _m0.Writer;
|
|
42
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
42
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): RewardWeightRange;
|
|
43
43
|
fromJSON(object: any): RewardWeightRange;
|
|
44
44
|
toJSON(message: RewardWeightRange): unknown;
|
|
45
45
|
fromPartial(object: DeepPartial<RewardWeightRange>): RewardWeightRange;
|
|
46
46
|
};
|
|
47
47
|
export declare const AllianceAsset: {
|
|
48
48
|
encode(message: AllianceAsset, writer?: _m0.Writer): _m0.Writer;
|
|
49
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
49
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AllianceAsset;
|
|
50
50
|
fromJSON(object: any): AllianceAsset;
|
|
51
51
|
toJSON(message: AllianceAsset): unknown;
|
|
52
52
|
fromPartial(object: DeepPartial<AllianceAsset>): AllianceAsset;
|
|
53
53
|
};
|
|
54
54
|
export declare const RewardWeightChangeSnapshot: {
|
|
55
55
|
encode(message: RewardWeightChangeSnapshot, writer?: _m0.Writer): _m0.Writer;
|
|
56
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
56
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): RewardWeightChangeSnapshot;
|
|
57
57
|
fromJSON(object: any): RewardWeightChangeSnapshot;
|
|
58
58
|
toJSON(message: RewardWeightChangeSnapshot): unknown;
|
|
59
59
|
fromPartial(object: DeepPartial<RewardWeightChangeSnapshot>): RewardWeightChangeSnapshot;
|
|
60
60
|
};
|
|
61
|
-
|
|
62
|
-
export
|
|
61
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
62
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
63
63
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
64
64
|
} : Partial<T>;
|
|
65
65
|
export {};
|
|
@@ -39,48 +39,48 @@ export interface AllianceValidatorInfo {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const Delegation: {
|
|
41
41
|
encode(message: Delegation, writer?: _m0.Writer): _m0.Writer;
|
|
42
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
42
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Delegation;
|
|
43
43
|
fromJSON(object: any): Delegation;
|
|
44
44
|
toJSON(message: Delegation): unknown;
|
|
45
45
|
fromPartial(object: DeepPartial<Delegation>): Delegation;
|
|
46
46
|
};
|
|
47
47
|
export declare const Redelegation: {
|
|
48
48
|
encode(message: Redelegation, writer?: _m0.Writer): _m0.Writer;
|
|
49
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
49
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Redelegation;
|
|
50
50
|
fromJSON(object: any): Redelegation;
|
|
51
51
|
toJSON(message: Redelegation): unknown;
|
|
52
52
|
fromPartial(object: DeepPartial<Redelegation>): Redelegation;
|
|
53
53
|
};
|
|
54
54
|
export declare const QueuedRedelegation: {
|
|
55
55
|
encode(message: QueuedRedelegation, writer?: _m0.Writer): _m0.Writer;
|
|
56
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
56
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueuedRedelegation;
|
|
57
57
|
fromJSON(object: any): QueuedRedelegation;
|
|
58
58
|
toJSON(message: QueuedRedelegation): unknown;
|
|
59
59
|
fromPartial(object: DeepPartial<QueuedRedelegation>): QueuedRedelegation;
|
|
60
60
|
};
|
|
61
61
|
export declare const Undelegation: {
|
|
62
62
|
encode(message: Undelegation, writer?: _m0.Writer): _m0.Writer;
|
|
63
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
63
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Undelegation;
|
|
64
64
|
fromJSON(object: any): Undelegation;
|
|
65
65
|
toJSON(message: Undelegation): unknown;
|
|
66
66
|
fromPartial(object: DeepPartial<Undelegation>): Undelegation;
|
|
67
67
|
};
|
|
68
68
|
export declare const QueuedUndelegation: {
|
|
69
69
|
encode(message: QueuedUndelegation, writer?: _m0.Writer): _m0.Writer;
|
|
70
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
70
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueuedUndelegation;
|
|
71
71
|
fromJSON(object: any): QueuedUndelegation;
|
|
72
72
|
toJSON(message: QueuedUndelegation): unknown;
|
|
73
73
|
fromPartial(object: DeepPartial<QueuedUndelegation>): QueuedUndelegation;
|
|
74
74
|
};
|
|
75
75
|
export declare const AllianceValidatorInfo: {
|
|
76
76
|
encode(message: AllianceValidatorInfo, writer?: _m0.Writer): _m0.Writer;
|
|
77
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
77
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AllianceValidatorInfo;
|
|
78
78
|
fromJSON(object: any): AllianceValidatorInfo;
|
|
79
79
|
toJSON(message: AllianceValidatorInfo): unknown;
|
|
80
80
|
fromPartial(object: DeepPartial<AllianceValidatorInfo>): AllianceValidatorInfo;
|
|
81
81
|
};
|
|
82
|
-
|
|
83
|
-
export
|
|
82
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
83
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
84
84
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
85
85
|
} : Partial<T>;
|
|
86
86
|
export {};
|
|
@@ -28,34 +28,34 @@ export interface ClaimAllianceRewardsEvent {
|
|
|
28
28
|
}
|
|
29
29
|
export declare const DelegateAllianceEvent: {
|
|
30
30
|
encode(message: DelegateAllianceEvent, writer?: _m0.Writer): _m0.Writer;
|
|
31
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
31
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DelegateAllianceEvent;
|
|
32
32
|
fromJSON(object: any): DelegateAllianceEvent;
|
|
33
33
|
toJSON(message: DelegateAllianceEvent): unknown;
|
|
34
34
|
fromPartial(object: DeepPartial<DelegateAllianceEvent>): DelegateAllianceEvent;
|
|
35
35
|
};
|
|
36
36
|
export declare const UndelegateAllianceEvent: {
|
|
37
37
|
encode(message: UndelegateAllianceEvent, writer?: _m0.Writer): _m0.Writer;
|
|
38
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
38
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UndelegateAllianceEvent;
|
|
39
39
|
fromJSON(object: any): UndelegateAllianceEvent;
|
|
40
40
|
toJSON(message: UndelegateAllianceEvent): unknown;
|
|
41
41
|
fromPartial(object: DeepPartial<UndelegateAllianceEvent>): UndelegateAllianceEvent;
|
|
42
42
|
};
|
|
43
43
|
export declare const RedelegateAllianceEvent: {
|
|
44
44
|
encode(message: RedelegateAllianceEvent, writer?: _m0.Writer): _m0.Writer;
|
|
45
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
45
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): RedelegateAllianceEvent;
|
|
46
46
|
fromJSON(object: any): RedelegateAllianceEvent;
|
|
47
47
|
toJSON(message: RedelegateAllianceEvent): unknown;
|
|
48
48
|
fromPartial(object: DeepPartial<RedelegateAllianceEvent>): RedelegateAllianceEvent;
|
|
49
49
|
};
|
|
50
50
|
export declare const ClaimAllianceRewardsEvent: {
|
|
51
51
|
encode(message: ClaimAllianceRewardsEvent, writer?: _m0.Writer): _m0.Writer;
|
|
52
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
52
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ClaimAllianceRewardsEvent;
|
|
53
53
|
fromJSON(object: any): ClaimAllianceRewardsEvent;
|
|
54
54
|
toJSON(message: ClaimAllianceRewardsEvent): unknown;
|
|
55
55
|
fromPartial(object: DeepPartial<ClaimAllianceRewardsEvent>): ClaimAllianceRewardsEvent;
|
|
56
56
|
};
|
|
57
|
-
|
|
58
|
-
export
|
|
57
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
58
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
59
59
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
60
60
|
} : Partial<T>;
|
|
61
61
|
export {};
|
|
@@ -34,41 +34,41 @@ export interface GenesisState {
|
|
|
34
34
|
}
|
|
35
35
|
export declare const ValidatorInfoState: {
|
|
36
36
|
encode(message: ValidatorInfoState, writer?: _m0.Writer): _m0.Writer;
|
|
37
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
37
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorInfoState;
|
|
38
38
|
fromJSON(object: any): ValidatorInfoState;
|
|
39
39
|
toJSON(message: ValidatorInfoState): unknown;
|
|
40
40
|
fromPartial(object: DeepPartial<ValidatorInfoState>): ValidatorInfoState;
|
|
41
41
|
};
|
|
42
42
|
export declare const RedelegationState: {
|
|
43
43
|
encode(message: RedelegationState, writer?: _m0.Writer): _m0.Writer;
|
|
44
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
44
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): RedelegationState;
|
|
45
45
|
fromJSON(object: any): RedelegationState;
|
|
46
46
|
toJSON(message: RedelegationState): unknown;
|
|
47
47
|
fromPartial(object: DeepPartial<RedelegationState>): RedelegationState;
|
|
48
48
|
};
|
|
49
49
|
export declare const UndelegationState: {
|
|
50
50
|
encode(message: UndelegationState, writer?: _m0.Writer): _m0.Writer;
|
|
51
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
51
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UndelegationState;
|
|
52
52
|
fromJSON(object: any): UndelegationState;
|
|
53
53
|
toJSON(message: UndelegationState): unknown;
|
|
54
54
|
fromPartial(object: DeepPartial<UndelegationState>): UndelegationState;
|
|
55
55
|
};
|
|
56
56
|
export declare const RewardWeightChangeSnapshotState: {
|
|
57
57
|
encode(message: RewardWeightChangeSnapshotState, writer?: _m0.Writer): _m0.Writer;
|
|
58
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
58
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): RewardWeightChangeSnapshotState;
|
|
59
59
|
fromJSON(object: any): RewardWeightChangeSnapshotState;
|
|
60
60
|
toJSON(message: RewardWeightChangeSnapshotState): unknown;
|
|
61
61
|
fromPartial(object: DeepPartial<RewardWeightChangeSnapshotState>): RewardWeightChangeSnapshotState;
|
|
62
62
|
};
|
|
63
63
|
export declare const GenesisState: {
|
|
64
64
|
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
|
65
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
65
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
|
|
66
66
|
fromJSON(object: any): GenesisState;
|
|
67
67
|
toJSON(message: GenesisState): unknown;
|
|
68
68
|
fromPartial(object: DeepPartial<GenesisState>): GenesisState;
|
|
69
69
|
};
|
|
70
|
-
|
|
71
|
-
export
|
|
70
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
71
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
72
72
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
73
73
|
} : Partial<T>;
|
|
74
74
|
export {};
|
|
@@ -52,27 +52,27 @@ export interface MsgDeleteAllianceProposal {
|
|
|
52
52
|
}
|
|
53
53
|
export declare const MsgCreateAllianceProposal: {
|
|
54
54
|
encode(message: MsgCreateAllianceProposal, writer?: _m0.Writer): _m0.Writer;
|
|
55
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
55
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateAllianceProposal;
|
|
56
56
|
fromJSON(object: any): MsgCreateAllianceProposal;
|
|
57
57
|
toJSON(message: MsgCreateAllianceProposal): unknown;
|
|
58
58
|
fromPartial(object: DeepPartial<MsgCreateAllianceProposal>): MsgCreateAllianceProposal;
|
|
59
59
|
};
|
|
60
60
|
export declare const MsgUpdateAllianceProposal: {
|
|
61
61
|
encode(message: MsgUpdateAllianceProposal, writer?: _m0.Writer): _m0.Writer;
|
|
62
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
62
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateAllianceProposal;
|
|
63
63
|
fromJSON(object: any): MsgUpdateAllianceProposal;
|
|
64
64
|
toJSON(message: MsgUpdateAllianceProposal): unknown;
|
|
65
65
|
fromPartial(object: DeepPartial<MsgUpdateAllianceProposal>): MsgUpdateAllianceProposal;
|
|
66
66
|
};
|
|
67
67
|
export declare const MsgDeleteAllianceProposal: {
|
|
68
68
|
encode(message: MsgDeleteAllianceProposal, writer?: _m0.Writer): _m0.Writer;
|
|
69
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
69
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgDeleteAllianceProposal;
|
|
70
70
|
fromJSON(object: any): MsgDeleteAllianceProposal;
|
|
71
71
|
toJSON(message: MsgDeleteAllianceProposal): unknown;
|
|
72
72
|
fromPartial(object: DeepPartial<MsgDeleteAllianceProposal>): MsgDeleteAllianceProposal;
|
|
73
73
|
};
|
|
74
|
-
|
|
75
|
-
export
|
|
74
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
75
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
76
76
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
77
77
|
} : Partial<T>;
|
|
78
78
|
export {};
|
|
@@ -15,20 +15,20 @@ export interface RewardHistory {
|
|
|
15
15
|
}
|
|
16
16
|
export declare const Params: {
|
|
17
17
|
encode(message: Params, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Params;
|
|
19
19
|
fromJSON(object: any): Params;
|
|
20
20
|
toJSON(message: Params): unknown;
|
|
21
21
|
fromPartial(object: DeepPartial<Params>): Params;
|
|
22
22
|
};
|
|
23
23
|
export declare const RewardHistory: {
|
|
24
24
|
encode(message: RewardHistory, writer?: _m0.Writer): _m0.Writer;
|
|
25
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
25
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): RewardHistory;
|
|
26
26
|
fromJSON(object: any): RewardHistory;
|
|
27
27
|
toJSON(message: RewardHistory): unknown;
|
|
28
28
|
fromPartial(object: DeepPartial<RewardHistory>): RewardHistory;
|
|
29
29
|
};
|
|
30
|
-
|
|
31
|
-
export
|
|
30
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
31
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
32
32
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
33
33
|
} : Partial<T>;
|
|
34
34
|
export {};
|