carbon-js-sdk 0.2.7 → 0.2.9
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.d.ts +2 -4
- package/lib/CarbonSDK.js +4 -5
- package/lib/clients/BlockchainClient.d.ts +0 -1
- package/lib/clients/BlockchainClient.js +0 -1
- package/lib/clients/CarbonQueryClient.d.ts +0 -1
- package/lib/clients/CarbonQueryClient.js +0 -1
- package/lib/clients/ETHClient.d.ts +0 -1
- package/lib/clients/ETHClient.js +0 -1
- package/lib/clients/HydrogenClient.d.ts +0 -1
- package/lib/clients/HydrogenClient.js +1 -3
- package/lib/clients/InsightsQueryClient.d.ts +0 -1
- package/lib/clients/InsightsQueryClient.js +0 -1
- package/lib/clients/N3Client.d.ts +0 -1
- package/lib/clients/N3Client.js +0 -1
- package/lib/clients/NEOClient.d.ts +0 -1
- package/lib/clients/NEOClient.js +54 -55
- package/lib/clients/TokenClient.d.ts +0 -1
- package/lib/clients/TokenClient.js +0 -1
- package/lib/clients/ZILClient.d.ts +0 -1
- package/lib/clients/ZILClient.js +0 -1
- package/lib/clients/index.d.ts +0 -1
- package/lib/clients/index.js +0 -1
- package/lib/codec/adl/genesis.d.ts +0 -1
- package/lib/codec/adl/genesis.js +0 -1
- package/lib/codec/adl/query.d.ts +0 -1
- package/lib/codec/adl/query.js +0 -1
- package/lib/codec/adl/tx.d.ts +0 -1
- package/lib/codec/adl/tx.js +0 -1
- package/lib/codec/bank/event.d.ts +0 -1
- package/lib/codec/bank/event.js +0 -1
- package/lib/codec/bank/genesis.d.ts +0 -1
- package/lib/codec/bank/genesis.js +0 -1
- package/lib/codec/bank/query.d.ts +0 -1
- package/lib/codec/bank/query.js +0 -1
- package/lib/codec/bank/tx.d.ts +0 -1
- package/lib/codec/bank/tx.js +0 -1
- package/lib/codec/book/book.d.ts +0 -1
- package/lib/codec/book/book.js +0 -1
- package/lib/codec/book/event.d.ts +0 -1
- package/lib/codec/book/event.js +0 -1
- package/lib/codec/book/genesis.d.ts +0 -1
- package/lib/codec/book/genesis.js +0 -1
- package/lib/codec/book/query.d.ts +0 -1
- package/lib/codec/book/query.js +0 -1
- package/lib/codec/book/tx.d.ts +0 -1
- package/lib/codec/book/tx.js +0 -1
- package/lib/codec/broker/amm.d.ts +0 -1
- package/lib/codec/broker/amm.js +0 -1
- package/lib/codec/broker/candlestick.d.ts +0 -1
- package/lib/codec/broker/candlestick.js +0 -1
- package/lib/codec/broker/event.d.ts +0 -1
- package/lib/codec/broker/event.js +0 -1
- package/lib/codec/broker/genesis.d.ts +0 -1
- package/lib/codec/broker/genesis.js +0 -1
- package/lib/codec/broker/incoming_liquidations.d.ts +0 -1
- package/lib/codec/broker/incoming_liquidations.js +0 -1
- package/lib/codec/broker/incoming_pool_swap.d.ts +0 -1
- package/lib/codec/broker/incoming_pool_swap.js +0 -1
- package/lib/codec/broker/pagination.d.ts +0 -1
- package/lib/codec/broker/pagination.js +0 -1
- package/lib/codec/broker/query.d.ts +0 -1
- package/lib/codec/broker/query.js +0 -1
- package/lib/codec/broker/tx.d.ts +0 -1
- package/lib/codec/broker/tx.js +0 -1
- package/lib/codec/btcx/denom_cross_chain_info.d.ts +0 -1
- package/lib/codec/btcx/denom_cross_chain_info.js +0 -1
- package/lib/codec/btcx/denom_info.d.ts +0 -1
- package/lib/codec/btcx/denom_info.js +0 -1
- package/lib/codec/btcx/export.d.ts +0 -1
- package/lib/codec/btcx/export.js +0 -1
- package/lib/codec/btcx/genesis.d.ts +0 -1
- package/lib/codec/btcx/genesis.js +0 -1
- package/lib/codec/btcx/query.d.ts +0 -1
- package/lib/codec/btcx/query.js +0 -1
- package/lib/codec/btcx/tx.d.ts +0 -1
- package/lib/codec/btcx/tx.js +0 -1
- package/lib/codec/ccm/ccm.d.ts +0 -1
- package/lib/codec/ccm/ccm.js +0 -1
- package/lib/codec/ccm/export.d.ts +0 -1
- package/lib/codec/ccm/export.js +0 -1
- package/lib/codec/ccm/genesis.d.ts +0 -1
- package/lib/codec/ccm/genesis.js +0 -1
- package/lib/codec/ccm/query.d.ts +0 -1
- package/lib/codec/ccm/query.js +0 -1
- package/lib/codec/ccm/tx.d.ts +0 -1
- package/lib/codec/ccm/tx.js +0 -1
- package/lib/codec/cdp/asset_params.d.ts +24 -1
- package/lib/codec/cdp/asset_params.js +158 -2
- package/lib/codec/cdp/debt_info.d.ts +4 -3
- package/lib/codec/cdp/debt_info.js +51 -23
- package/lib/codec/cdp/event.d.ts +0 -1
- package/lib/codec/cdp/event.js +0 -1
- package/lib/codec/cdp/genesis.d.ts +0 -1
- package/lib/codec/cdp/genesis.js +0 -1
- package/lib/codec/cdp/params.d.ts +7 -5
- package/lib/codec/cdp/params.js +50 -6
- package/lib/codec/cdp/query.d.ts +0 -1
- package/lib/codec/cdp/query.js +0 -1
- package/lib/codec/cdp/rate_strategy_params.d.ts +0 -1
- package/lib/codec/cdp/rate_strategy_params.js +0 -1
- package/lib/codec/cdp/stable_coin_debt_info.d.ts +23 -0
- package/lib/codec/cdp/stable_coin_debt_info.js +157 -0
- package/lib/codec/cdp/tx.d.ts +0 -1
- package/lib/codec/cdp/tx.js +0 -1
- package/lib/codec/cdp/vault.d.ts +0 -1
- package/lib/codec/cdp/vault.js +0 -1
- package/lib/codec/coin/bridge.d.ts +0 -1
- package/lib/codec/coin/bridge.js +0 -1
- package/lib/codec/coin/event.d.ts +0 -1
- package/lib/codec/coin/event.js +0 -1
- package/lib/codec/coin/genesis.d.ts +0 -1
- package/lib/codec/coin/genesis.js +0 -1
- package/lib/codec/coin/proposal.d.ts +0 -1
- package/lib/codec/coin/proposal.js +0 -1
- package/lib/codec/coin/query.d.ts +0 -1
- package/lib/codec/coin/query.js +0 -1
- package/lib/codec/coin/token.d.ts +0 -1
- package/lib/codec/coin/token.js +0 -1
- package/lib/codec/coin/tx.d.ts +0 -1
- package/lib/codec/coin/tx.js +0 -1
- package/lib/codec/cosmos/auth/v1beta1/auth.d.ts +0 -1
- package/lib/codec/cosmos/auth/v1beta1/auth.js +0 -1
- package/lib/codec/cosmos/auth/v1beta1/export.d.ts +0 -1
- package/lib/codec/cosmos/auth/v1beta1/export.js +0 -1
- package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +0 -1
- package/lib/codec/cosmos/auth/v1beta1/genesis.js +0 -1
- package/lib/codec/cosmos/auth/v1beta1/query.d.ts +0 -1
- package/lib/codec/cosmos/auth/v1beta1/query.js +0 -1
- package/lib/codec/cosmos/authz/v1beta1/authz.d.ts +0 -1
- package/lib/codec/cosmos/authz/v1beta1/authz.js +0 -1
- package/lib/codec/cosmos/authz/v1beta1/event.d.ts +0 -1
- package/lib/codec/cosmos/authz/v1beta1/event.js +0 -1
- package/lib/codec/cosmos/authz/v1beta1/genesis.d.ts +0 -1
- package/lib/codec/cosmos/authz/v1beta1/genesis.js +0 -1
- package/lib/codec/cosmos/authz/v1beta1/query.d.ts +0 -1
- package/lib/codec/cosmos/authz/v1beta1/query.js +0 -1
- package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +0 -1
- package/lib/codec/cosmos/authz/v1beta1/tx.js +0 -1
- package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +0 -1
- package/lib/codec/cosmos/bank/v1beta1/authz.js +0 -1
- package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +0 -1
- package/lib/codec/cosmos/bank/v1beta1/bank.js +0 -1
- package/lib/codec/cosmos/bank/v1beta1/export.d.ts +0 -1
- package/lib/codec/cosmos/bank/v1beta1/export.js +0 -1
- package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +0 -1
- package/lib/codec/cosmos/bank/v1beta1/genesis.js +0 -1
- package/lib/codec/cosmos/bank/v1beta1/query.d.ts +0 -1
- package/lib/codec/cosmos/bank/v1beta1/query.js +0 -1
- package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +0 -1
- package/lib/codec/cosmos/bank/v1beta1/tx.js +0 -1
- package/lib/codec/cosmos/base/abci/v1beta1/abci.d.ts +0 -1
- package/lib/codec/cosmos/base/abci/v1beta1/abci.js +0 -1
- package/lib/codec/cosmos/base/kv/v1beta1/kv.d.ts +0 -1
- package/lib/codec/cosmos/base/kv/v1beta1/kv.js +0 -1
- package/lib/codec/cosmos/base/query/v1beta1/pagination.d.ts +0 -1
- package/lib/codec/cosmos/base/query/v1beta1/pagination.js +0 -1
- package/lib/codec/cosmos/base/reflection/v1beta1/reflection.d.ts +0 -1
- package/lib/codec/cosmos/base/reflection/v1beta1/reflection.js +0 -1
- package/lib/codec/cosmos/base/reflection/v2alpha1/reflection.d.ts +0 -1
- package/lib/codec/cosmos/base/reflection/v2alpha1/reflection.js +0 -1
- package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.d.ts +0 -1
- package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.js +0 -1
- package/lib/codec/cosmos/base/store/v1beta1/commit_info.d.ts +0 -1
- package/lib/codec/cosmos/base/store/v1beta1/commit_info.js +0 -1
- package/lib/codec/cosmos/base/store/v1beta1/listening.d.ts +0 -1
- package/lib/codec/cosmos/base/store/v1beta1/listening.js +0 -1
- package/lib/codec/cosmos/base/store/v1beta1/snapshot.d.ts +0 -1
- package/lib/codec/cosmos/base/store/v1beta1/snapshot.js +0 -1
- package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +0 -1
- package/lib/codec/cosmos/base/tendermint/v1beta1/query.js +0 -1
- package/lib/codec/cosmos/base/v1beta1/coin.d.ts +0 -1
- package/lib/codec/cosmos/base/v1beta1/coin.js +0 -1
- package/lib/codec/cosmos/capability/v1beta1/capability.d.ts +0 -1
- package/lib/codec/cosmos/capability/v1beta1/capability.js +0 -1
- package/lib/codec/cosmos/capability/v1beta1/genesis.d.ts +0 -1
- package/lib/codec/cosmos/capability/v1beta1/genesis.js +0 -1
- package/lib/codec/cosmos/crisis/v1beta1/genesis.d.ts +0 -1
- package/lib/codec/cosmos/crisis/v1beta1/genesis.js +0 -1
- package/lib/codec/cosmos/crisis/v1beta1/tx.d.ts +0 -1
- package/lib/codec/cosmos/crisis/v1beta1/tx.js +0 -1
- package/lib/codec/cosmos/crypto/ed25519/keys.d.ts +0 -1
- package/lib/codec/cosmos/crypto/ed25519/keys.js +0 -1
- package/lib/codec/cosmos/crypto/multisig/keys.d.ts +0 -1
- package/lib/codec/cosmos/crypto/multisig/keys.js +0 -1
- package/lib/codec/cosmos/crypto/multisig/v1beta1/multisig.d.ts +0 -1
- package/lib/codec/cosmos/crypto/multisig/v1beta1/multisig.js +0 -1
- package/lib/codec/cosmos/crypto/secp256k1/keys.d.ts +0 -1
- package/lib/codec/cosmos/crypto/secp256k1/keys.js +0 -1
- package/lib/codec/cosmos/crypto/secp256r1/keys.d.ts +0 -1
- package/lib/codec/cosmos/crypto/secp256r1/keys.js +0 -1
- package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +0 -1
- package/lib/codec/cosmos/distribution/v1beta1/distribution.js +0 -1
- package/lib/codec/cosmos/distribution/v1beta1/export.d.ts +0 -1
- package/lib/codec/cosmos/distribution/v1beta1/export.js +0 -1
- package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +0 -1
- package/lib/codec/cosmos/distribution/v1beta1/genesis.js +0 -1
- package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +0 -1
- package/lib/codec/cosmos/distribution/v1beta1/query.js +0 -1
- package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +0 -1
- package/lib/codec/cosmos/distribution/v1beta1/tx.js +0 -1
- package/lib/codec/cosmos/evidence/v1beta1/evidence.d.ts +0 -1
- package/lib/codec/cosmos/evidence/v1beta1/evidence.js +0 -1
- package/lib/codec/cosmos/evidence/v1beta1/genesis.d.ts +0 -1
- package/lib/codec/cosmos/evidence/v1beta1/genesis.js +0 -1
- package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +0 -1
- package/lib/codec/cosmos/evidence/v1beta1/query.js +0 -1
- package/lib/codec/cosmos/evidence/v1beta1/tx.d.ts +0 -1
- package/lib/codec/cosmos/evidence/v1beta1/tx.js +0 -1
- package/lib/codec/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -1
- package/lib/codec/cosmos/feegrant/v1beta1/feegrant.js +0 -1
- package/lib/codec/cosmos/feegrant/v1beta1/genesis.d.ts +0 -1
- package/lib/codec/cosmos/feegrant/v1beta1/genesis.js +0 -1
- package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +0 -1
- package/lib/codec/cosmos/feegrant/v1beta1/query.js +0 -1
- package/lib/codec/cosmos/feegrant/v1beta1/tx.d.ts +0 -1
- package/lib/codec/cosmos/feegrant/v1beta1/tx.js +0 -1
- package/lib/codec/cosmos/genutil/v1beta1/genesis.d.ts +0 -1
- package/lib/codec/cosmos/genutil/v1beta1/genesis.js +0 -1
- package/lib/codec/cosmos/gov/v1beta1/export.d.ts +0 -1
- package/lib/codec/cosmos/gov/v1beta1/export.js +0 -1
- package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +0 -1
- package/lib/codec/cosmos/gov/v1beta1/genesis.js +0 -1
- package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +0 -1
- package/lib/codec/cosmos/gov/v1beta1/gov.js +0 -1
- package/lib/codec/cosmos/gov/v1beta1/query.d.ts +0 -1
- package/lib/codec/cosmos/gov/v1beta1/query.js +0 -1
- package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +0 -1
- package/lib/codec/cosmos/gov/v1beta1/tx.js +0 -1
- package/lib/codec/cosmos/mint/v1beta1/export.d.ts +0 -1
- package/lib/codec/cosmos/mint/v1beta1/export.js +0 -1
- package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +0 -1
- package/lib/codec/cosmos/mint/v1beta1/genesis.js +0 -1
- package/lib/codec/cosmos/mint/v1beta1/mint.d.ts +0 -1
- package/lib/codec/cosmos/mint/v1beta1/mint.js +0 -1
- package/lib/codec/cosmos/mint/v1beta1/query.d.ts +0 -1
- package/lib/codec/cosmos/mint/v1beta1/query.js +0 -1
- package/lib/codec/cosmos/params/v1beta1/export.d.ts +0 -1
- package/lib/codec/cosmos/params/v1beta1/export.js +0 -1
- package/lib/codec/cosmos/params/v1beta1/params.d.ts +0 -1
- package/lib/codec/cosmos/params/v1beta1/params.js +0 -1
- package/lib/codec/cosmos/params/v1beta1/query.d.ts +0 -1
- package/lib/codec/cosmos/params/v1beta1/query.js +0 -1
- package/lib/codec/cosmos/slashing/v1beta1/export.d.ts +0 -1
- package/lib/codec/cosmos/slashing/v1beta1/export.js +0 -1
- package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +0 -1
- package/lib/codec/cosmos/slashing/v1beta1/genesis.js +0 -1
- package/lib/codec/cosmos/slashing/v1beta1/query.d.ts +0 -1
- package/lib/codec/cosmos/slashing/v1beta1/query.js +0 -1
- package/lib/codec/cosmos/slashing/v1beta1/slashing.d.ts +0 -1
- package/lib/codec/cosmos/slashing/v1beta1/slashing.js +0 -1
- package/lib/codec/cosmos/slashing/v1beta1/tx.d.ts +0 -1
- package/lib/codec/cosmos/slashing/v1beta1/tx.js +0 -1
- package/lib/codec/cosmos/staking/v1beta1/authz.d.ts +0 -1
- package/lib/codec/cosmos/staking/v1beta1/authz.js +0 -1
- package/lib/codec/cosmos/staking/v1beta1/export.d.ts +0 -1
- package/lib/codec/cosmos/staking/v1beta1/export.js +0 -1
- package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +0 -1
- package/lib/codec/cosmos/staking/v1beta1/genesis.js +0 -1
- package/lib/codec/cosmos/staking/v1beta1/query.d.ts +0 -1
- package/lib/codec/cosmos/staking/v1beta1/query.js +0 -1
- package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +0 -1
- package/lib/codec/cosmos/staking/v1beta1/staking.js +0 -1
- package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +0 -1
- package/lib/codec/cosmos/staking/v1beta1/tx.js +0 -1
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +0 -1
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.js +0 -1
- package/lib/codec/cosmos/tx/v1beta1/export.d.ts +0 -1
- package/lib/codec/cosmos/tx/v1beta1/export.js +0 -1
- package/lib/codec/cosmos/tx/v1beta1/service.d.ts +0 -1
- package/lib/codec/cosmos/tx/v1beta1/service.js +0 -1
- package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +0 -1
- package/lib/codec/cosmos/tx/v1beta1/tx.js +0 -1
- package/lib/codec/cosmos/upgrade/v1beta1/query.d.ts +0 -1
- package/lib/codec/cosmos/upgrade/v1beta1/query.js +0 -1
- package/lib/codec/cosmos/upgrade/v1beta1/upgrade.d.ts +0 -1
- package/lib/codec/cosmos/upgrade/v1beta1/upgrade.js +0 -1
- package/lib/codec/cosmos/vesting/v1beta1/export.d.ts +0 -1
- package/lib/codec/cosmos/vesting/v1beta1/export.js +0 -1
- package/lib/codec/cosmos/vesting/v1beta1/tx.d.ts +0 -1
- package/lib/codec/cosmos/vesting/v1beta1/tx.js +0 -1
- package/lib/codec/cosmos/vesting/v1beta1/vesting.d.ts +0 -1
- package/lib/codec/cosmos/vesting/v1beta1/vesting.js +0 -1
- package/lib/codec/cosmos-models.d.ts +0 -1
- package/lib/codec/cosmos-models.js +0 -1
- package/lib/codec/crisis/genesis.d.ts +0 -1
- package/lib/codec/crisis/genesis.js +0 -1
- package/lib/codec/crisis/query.d.ts +0 -1
- package/lib/codec/crisis/query.js +0 -1
- package/lib/codec/crisis/tx.d.ts +0 -1
- package/lib/codec/crisis/tx.js +0 -1
- package/lib/codec/fee/event.d.ts +0 -1
- package/lib/codec/fee/event.js +0 -1
- package/lib/codec/fee/fee.d.ts +0 -1
- package/lib/codec/fee/fee.js +0 -1
- package/lib/codec/fee/genesis.d.ts +0 -1
- package/lib/codec/fee/genesis.js +0 -1
- package/lib/codec/fee/proposal.d.ts +0 -1
- package/lib/codec/fee/proposal.js +0 -1
- package/lib/codec/fee/query.d.ts +0 -1
- package/lib/codec/fee/query.js +0 -1
- package/lib/codec/fee/tx.d.ts +0 -1
- package/lib/codec/fee/tx.js +0 -1
- package/lib/codec/google/protobuf/any.d.ts +0 -1
- package/lib/codec/google/protobuf/any.js +0 -1
- package/lib/codec/google/protobuf/duration.d.ts +0 -1
- package/lib/codec/google/protobuf/duration.js +0 -1
- package/lib/codec/google/protobuf/timestamp.d.ts +0 -1
- package/lib/codec/google/protobuf/timestamp.js +0 -1
- package/lib/codec/google/protobuf/wrappers.d.ts +0 -1
- package/lib/codec/google/protobuf/wrappers.js +0 -1
- package/lib/codec/headersync/consensus_peers.d.ts +0 -1
- package/lib/codec/headersync/consensus_peers.js +0 -1
- package/lib/codec/headersync/export.d.ts +0 -1
- package/lib/codec/headersync/export.js +0 -1
- package/lib/codec/headersync/genesis.d.ts +0 -1
- package/lib/codec/headersync/genesis.js +0 -1
- package/lib/codec/headersync/query.d.ts +0 -1
- package/lib/codec/headersync/query.js +0 -1
- package/lib/codec/headersync/tx.d.ts +0 -1
- package/lib/codec/headersync/tx.js +0 -1
- package/lib/codec/ibc/applications/interchain_accounts/controller/export.d.ts +0 -1
- package/lib/codec/ibc/applications/interchain_accounts/controller/export.js +0 -1
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/controller.d.ts +0 -1
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/controller.js +0 -1
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.d.ts +0 -1
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.js +0 -1
- package/lib/codec/ibc/applications/interchain_accounts/host/export.d.ts +0 -1
- package/lib/codec/ibc/applications/interchain_accounts/host/export.js +0 -1
- package/lib/codec/ibc/applications/interchain_accounts/host/v1/host.d.ts +0 -1
- package/lib/codec/ibc/applications/interchain_accounts/host/v1/host.js +0 -1
- package/lib/codec/ibc/applications/interchain_accounts/host/v1/query.d.ts +0 -1
- package/lib/codec/ibc/applications/interchain_accounts/host/v1/query.js +0 -1
- package/lib/codec/ibc/applications/interchain_accounts/v1/account.d.ts +0 -1
- package/lib/codec/ibc/applications/interchain_accounts/v1/account.js +0 -1
- package/lib/codec/ibc/applications/interchain_accounts/v1/export.d.ts +0 -1
- package/lib/codec/ibc/applications/interchain_accounts/v1/export.js +0 -1
- package/lib/codec/ibc/applications/interchain_accounts/v1/genesis.d.ts +0 -1
- package/lib/codec/ibc/applications/interchain_accounts/v1/genesis.js +0 -1
- package/lib/codec/ibc/applications/interchain_accounts/v1/metadata.d.ts +0 -1
- package/lib/codec/ibc/applications/interchain_accounts/v1/metadata.js +0 -1
- package/lib/codec/ibc/applications/interchain_accounts/v1/packet.d.ts +0 -1
- package/lib/codec/ibc/applications/interchain_accounts/v1/packet.js +0 -1
- package/lib/codec/ibc/applications/transfer/v1/export.d.ts +0 -1
- package/lib/codec/ibc/applications/transfer/v1/export.js +0 -1
- package/lib/codec/ibc/applications/transfer/v1/genesis.d.ts +0 -1
- package/lib/codec/ibc/applications/transfer/v1/genesis.js +0 -1
- package/lib/codec/ibc/applications/transfer/v1/query.d.ts +0 -1
- package/lib/codec/ibc/applications/transfer/v1/query.js +0 -1
- package/lib/codec/ibc/applications/transfer/v1/transfer.d.ts +0 -1
- package/lib/codec/ibc/applications/transfer/v1/transfer.js +0 -1
- package/lib/codec/ibc/applications/transfer/v1/tx.d.ts +0 -1
- package/lib/codec/ibc/applications/transfer/v1/tx.js +0 -1
- package/lib/codec/ibc/applications/transfer/v2/export.d.ts +0 -1
- package/lib/codec/ibc/applications/transfer/v2/export.js +0 -1
- package/lib/codec/ibc/applications/transfer/v2/packet.d.ts +0 -1
- package/lib/codec/ibc/applications/transfer/v2/packet.js +0 -1
- package/lib/codec/ibc/core/channel/v1/channel.d.ts +0 -1
- package/lib/codec/ibc/core/channel/v1/channel.js +0 -1
- package/lib/codec/ibc/core/channel/v1/export.d.ts +0 -1
- package/lib/codec/ibc/core/channel/v1/export.js +0 -1
- package/lib/codec/ibc/core/channel/v1/genesis.d.ts +0 -1
- package/lib/codec/ibc/core/channel/v1/genesis.js +0 -1
- package/lib/codec/ibc/core/channel/v1/query.d.ts +0 -1
- package/lib/codec/ibc/core/channel/v1/query.js +0 -1
- package/lib/codec/ibc/core/channel/v1/tx.d.ts +0 -1
- package/lib/codec/ibc/core/channel/v1/tx.js +0 -1
- package/lib/codec/ibc/core/client/v1/client.d.ts +0 -1
- package/lib/codec/ibc/core/client/v1/client.js +0 -1
- package/lib/codec/ibc/core/client/v1/export.d.ts +0 -1
- package/lib/codec/ibc/core/client/v1/export.js +0 -1
- package/lib/codec/ibc/core/client/v1/genesis.d.ts +0 -1
- package/lib/codec/ibc/core/client/v1/genesis.js +0 -1
- package/lib/codec/ibc/core/client/v1/query.d.ts +0 -1
- package/lib/codec/ibc/core/client/v1/query.js +0 -1
- package/lib/codec/ibc/core/client/v1/tx.d.ts +0 -1
- package/lib/codec/ibc/core/client/v1/tx.js +0 -1
- package/lib/codec/ibc/core/commitment/v1/commitment.d.ts +0 -1
- package/lib/codec/ibc/core/commitment/v1/commitment.js +0 -1
- package/lib/codec/ibc/core/commitment/v1/export.d.ts +0 -1
- package/lib/codec/ibc/core/commitment/v1/export.js +0 -1
- package/lib/codec/ibc/core/connection/v1/connection.d.ts +0 -1
- package/lib/codec/ibc/core/connection/v1/connection.js +0 -1
- package/lib/codec/ibc/core/connection/v1/export.d.ts +0 -1
- package/lib/codec/ibc/core/connection/v1/export.js +0 -1
- package/lib/codec/ibc/core/connection/v1/genesis.d.ts +0 -1
- package/lib/codec/ibc/core/connection/v1/genesis.js +0 -1
- package/lib/codec/ibc/core/connection/v1/query.d.ts +0 -1
- package/lib/codec/ibc/core/connection/v1/query.js +0 -1
- package/lib/codec/ibc/core/connection/v1/tx.d.ts +0 -1
- package/lib/codec/ibc/core/connection/v1/tx.js +0 -1
- package/lib/codec/ibc/core/types/v1/genesis.d.ts +0 -1
- package/lib/codec/ibc/core/types/v1/genesis.js +0 -1
- package/lib/codec/ibc/lightclients/localhost/v1/export.d.ts +0 -1
- package/lib/codec/ibc/lightclients/localhost/v1/export.js +0 -1
- package/lib/codec/ibc/lightclients/localhost/v1/localhost.d.ts +0 -1
- package/lib/codec/ibc/lightclients/localhost/v1/localhost.js +0 -1
- package/lib/codec/ibc/lightclients/solomachine/v1/export.d.ts +0 -1
- package/lib/codec/ibc/lightclients/solomachine/v1/export.js +0 -1
- package/lib/codec/ibc/lightclients/solomachine/v1/solomachine.d.ts +0 -1
- package/lib/codec/ibc/lightclients/solomachine/v1/solomachine.js +0 -1
- package/lib/codec/ibc/lightclients/solomachine/v2/solomachine.d.ts +0 -1
- package/lib/codec/ibc/lightclients/solomachine/v2/solomachine.js +0 -1
- package/lib/codec/ibc/lightclients/tendermint/v1/export.d.ts +0 -1
- package/lib/codec/ibc/lightclients/tendermint/v1/export.js +0 -1
- package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.d.ts +0 -1
- package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.js +0 -1
- package/lib/codec/ibc-models.d.ts +0 -1
- package/lib/codec/ibc-models.js +0 -1
- package/lib/codec/index.d.ts +0 -1
- package/lib/codec/index.js +0 -1
- package/lib/codec/inflation/genesis.d.ts +0 -1
- package/lib/codec/inflation/genesis.js +0 -1
- package/lib/codec/inflation/inflation.d.ts +0 -1
- package/lib/codec/inflation/inflation.js +0 -1
- package/lib/codec/inflation/query.d.ts +0 -1
- package/lib/codec/inflation/query.js +0 -1
- package/lib/codec/inflation/tx.d.ts +0 -1
- package/lib/codec/inflation/tx.js +0 -1
- package/lib/codec/insurance/event.d.ts +0 -1
- package/lib/codec/insurance/event.js +0 -1
- package/lib/codec/insurance/fund.d.ts +0 -1
- package/lib/codec/insurance/fund.js +0 -1
- package/lib/codec/insurance/genesis.d.ts +0 -1
- package/lib/codec/insurance/genesis.js +0 -1
- package/lib/codec/insurance/query.d.ts +0 -1
- package/lib/codec/insurance/query.js +0 -1
- package/lib/codec/insurance/tx.d.ts +0 -1
- package/lib/codec/insurance/tx.js +0 -1
- package/lib/codec/leverage/event.d.ts +0 -1
- package/lib/codec/leverage/event.js +0 -1
- package/lib/codec/leverage/genesis.d.ts +0 -1
- package/lib/codec/leverage/genesis.js +0 -1
- package/lib/codec/leverage/leverage.d.ts +0 -1
- package/lib/codec/leverage/leverage.js +0 -1
- package/lib/codec/leverage/query.d.ts +0 -1
- package/lib/codec/leverage/query.js +0 -1
- package/lib/codec/leverage/tx.d.ts +0 -1
- package/lib/codec/leverage/tx.js +0 -1
- package/lib/codec/liquidation/genesis.d.ts +0 -1
- package/lib/codec/liquidation/genesis.js +0 -1
- package/lib/codec/liquidation/liquidation.d.ts +0 -1
- package/lib/codec/liquidation/liquidation.js +0 -1
- package/lib/codec/liquidation/outstanding_position.d.ts +0 -1
- package/lib/codec/liquidation/outstanding_position.js +0 -1
- package/lib/codec/liquidation/query.d.ts +0 -1
- package/lib/codec/liquidation/query.js +0 -1
- package/lib/codec/liquidation/quote_changes.d.ts +0 -1
- package/lib/codec/liquidation/quote_changes.js +0 -1
- package/lib/codec/liquidation/tx.d.ts +0 -1
- package/lib/codec/liquidation/tx.js +0 -1
- package/lib/codec/liquiditypool/event.d.ts +0 -1
- package/lib/codec/liquiditypool/event.js +0 -1
- package/lib/codec/liquiditypool/genesis.d.ts +0 -1
- package/lib/codec/liquiditypool/genesis.js +0 -1
- package/lib/codec/liquiditypool/liquiditypool.d.ts +0 -1
- package/lib/codec/liquiditypool/liquiditypool.js +0 -1
- package/lib/codec/liquiditypool/proposal.d.ts +0 -1
- package/lib/codec/liquiditypool/proposal.js +0 -1
- package/lib/codec/liquiditypool/query.d.ts +0 -1
- package/lib/codec/liquiditypool/query.js +0 -1
- package/lib/codec/liquiditypool/reward.d.ts +0 -1
- package/lib/codec/liquiditypool/reward.js +0 -1
- package/lib/codec/liquiditypool/tx.d.ts +0 -1
- package/lib/codec/liquiditypool/tx.js +0 -1
- package/lib/codec/lockproxy/event.d.ts +0 -1
- package/lib/codec/lockproxy/event.js +0 -1
- package/lib/codec/lockproxy/export.d.ts +0 -1
- package/lib/codec/lockproxy/export.js +0 -1
- package/lib/codec/lockproxy/genesis.d.ts +0 -1
- package/lib/codec/lockproxy/genesis.js +0 -1
- package/lib/codec/lockproxy/lockproxy.d.ts +0 -1
- package/lib/codec/lockproxy/lockproxy.js +0 -1
- package/lib/codec/lockproxy/query.d.ts +0 -1
- package/lib/codec/lockproxy/query.js +0 -1
- package/lib/codec/lockproxy/tx.d.ts +0 -1
- package/lib/codec/lockproxy/tx.js +0 -1
- package/lib/codec/market/event.d.ts +0 -1
- package/lib/codec/market/event.js +0 -1
- package/lib/codec/market/genesis.d.ts +0 -1
- package/lib/codec/market/genesis.js +0 -1
- package/lib/codec/market/legacy.d.ts +0 -1
- package/lib/codec/market/legacy.js +0 -1
- package/lib/codec/market/market.d.ts +0 -1
- package/lib/codec/market/market.js +0 -1
- package/lib/codec/market/proposal.d.ts +0 -1
- package/lib/codec/market/proposal.js +0 -1
- package/lib/codec/market/query.d.ts +0 -1
- package/lib/codec/market/query.js +0 -1
- package/lib/codec/market/tx.d.ts +0 -1
- package/lib/codec/market/tx.js +0 -1
- package/lib/codec/marketstats/genesis.d.ts +0 -1
- package/lib/codec/marketstats/genesis.js +0 -1
- package/lib/codec/marketstats/marketstats.d.ts +0 -1
- package/lib/codec/marketstats/marketstats.js +0 -1
- package/lib/codec/marketstats/params.d.ts +0 -1
- package/lib/codec/marketstats/params.js +0 -1
- package/lib/codec/marketstats/query.d.ts +0 -1
- package/lib/codec/marketstats/query.js +0 -1
- package/lib/codec/marketstats/tx.d.ts +0 -1
- package/lib/codec/marketstats/tx.js +0 -1
- package/lib/codec/misc/block.d.ts +0 -1
- package/lib/codec/misc/block.js +0 -1
- package/lib/codec/misc/message.d.ts +0 -1
- package/lib/codec/misc/message.js +0 -1
- package/lib/codec/misc/message_type.d.ts +0 -1
- package/lib/codec/misc/message_type.js +0 -1
- package/lib/codec/misc/query.d.ts +0 -1
- package/lib/codec/misc/query.js +0 -1
- package/lib/codec/misc/trade.d.ts +0 -1
- package/lib/codec/misc/trade.js +0 -1
- package/lib/codec/misc/transaction.d.ts +0 -1
- package/lib/codec/misc/transaction.js +0 -1
- package/lib/codec/oracle/event.d.ts +0 -1
- package/lib/codec/oracle/event.js +0 -1
- package/lib/codec/oracle/genesis.d.ts +0 -1
- package/lib/codec/oracle/genesis.js +0 -1
- package/lib/codec/oracle/oracle.d.ts +0 -1
- package/lib/codec/oracle/oracle.js +0 -1
- package/lib/codec/oracle/proposal.d.ts +0 -1
- package/lib/codec/oracle/proposal.js +0 -1
- package/lib/codec/oracle/query.d.ts +0 -1
- package/lib/codec/oracle/query.js +0 -1
- package/lib/codec/oracle/slashing.d.ts +0 -1
- package/lib/codec/oracle/slashing.js +0 -1
- package/lib/codec/oracle/tx.d.ts +0 -1
- package/lib/codec/oracle/tx.js +0 -1
- package/lib/codec/order/event.d.ts +0 -1
- package/lib/codec/order/event.js +0 -1
- package/lib/codec/order/genesis.d.ts +0 -1
- package/lib/codec/order/genesis.js +0 -1
- package/lib/codec/order/order.d.ts +0 -1
- package/lib/codec/order/order.js +0 -1
- package/lib/codec/order/query.d.ts +0 -1
- package/lib/codec/order/query.js +0 -1
- package/lib/codec/order/tx.d.ts +0 -1
- package/lib/codec/order/tx.js +0 -1
- package/lib/codec/polynetwork-models.d.ts +0 -1
- package/lib/codec/polynetwork-models.js +0 -1
- package/lib/codec/position/event.d.ts +0 -1
- package/lib/codec/position/event.js +0 -1
- package/lib/codec/position/genesis.d.ts +0 -1
- package/lib/codec/position/genesis.js +0 -1
- package/lib/codec/position/position.d.ts +0 -1
- package/lib/codec/position/position.js +0 -1
- package/lib/codec/position/query.d.ts +0 -1
- package/lib/codec/position/query.js +0 -1
- package/lib/codec/position/tx.d.ts +0 -1
- package/lib/codec/position/tx.js +0 -1
- package/lib/codec/pricing/event.d.ts +0 -1
- package/lib/codec/pricing/event.js +0 -1
- package/lib/codec/pricing/genesis.d.ts +0 -1
- package/lib/codec/pricing/genesis.js +0 -1
- package/lib/codec/pricing/pricing.d.ts +0 -1
- package/lib/codec/pricing/pricing.js +0 -1
- package/lib/codec/pricing/proposal.d.ts +0 -1
- package/lib/codec/pricing/proposal.js +0 -1
- package/lib/codec/pricing/query.d.ts +0 -1
- package/lib/codec/pricing/query.js +0 -1
- package/lib/codec/pricing/tx.d.ts +0 -1
- package/lib/codec/pricing/tx.js +0 -1
- package/lib/codec/profile/event.d.ts +0 -1
- package/lib/codec/profile/event.js +0 -1
- package/lib/codec/profile/genesis.d.ts +0 -1
- package/lib/codec/profile/genesis.js +0 -1
- package/lib/codec/profile/profile.d.ts +0 -1
- package/lib/codec/profile/profile.js +0 -1
- package/lib/codec/profile/query.d.ts +0 -1
- package/lib/codec/profile/query.js +0 -1
- package/lib/codec/profile/tx.d.ts +0 -1
- package/lib/codec/profile/tx.js +0 -1
- package/lib/codec/proofs.d.ts +0 -1
- package/lib/codec/proofs.js +0 -1
- package/lib/codec/query/pagination.d.ts +0 -1
- package/lib/codec/query/pagination.js +0 -1
- package/lib/codec/subaccount/genesis.d.ts +0 -1
- package/lib/codec/subaccount/genesis.js +0 -1
- package/lib/codec/subaccount/query.d.ts +0 -1
- package/lib/codec/subaccount/query.js +0 -1
- package/lib/codec/subaccount/subaccount.d.ts +0 -1
- package/lib/codec/subaccount/subaccount.js +0 -1
- package/lib/codec/subaccount/tx.d.ts +0 -1
- package/lib/codec/subaccount/tx.js +0 -1
- package/lib/codec/tendermint/abci/types.d.ts +0 -1
- package/lib/codec/tendermint/abci/types.js +0 -1
- package/lib/codec/tendermint/crypto/keys.d.ts +0 -1
- package/lib/codec/tendermint/crypto/keys.js +0 -1
- package/lib/codec/tendermint/crypto/proof.d.ts +0 -1
- package/lib/codec/tendermint/crypto/proof.js +0 -1
- package/lib/codec/tendermint/libs/bits/types.d.ts +0 -1
- package/lib/codec/tendermint/libs/bits/types.js +0 -1
- package/lib/codec/tendermint/p2p/types.d.ts +0 -1
- package/lib/codec/tendermint/p2p/types.js +0 -1
- package/lib/codec/tendermint/types/block.d.ts +0 -1
- package/lib/codec/tendermint/types/block.js +0 -1
- package/lib/codec/tendermint/types/evidence.d.ts +0 -1
- package/lib/codec/tendermint/types/evidence.js +0 -1
- package/lib/codec/tendermint/types/params.d.ts +0 -1
- package/lib/codec/tendermint/types/params.js +0 -1
- package/lib/codec/tendermint/types/types.d.ts +0 -1
- package/lib/codec/tendermint/types/types.js +0 -1
- package/lib/codec/tendermint/types/validator.d.ts +0 -1
- package/lib/codec/tendermint/types/validator.js +0 -1
- package/lib/codec/tendermint/version/types.d.ts +0 -1
- package/lib/codec/tendermint/version/types.js +0 -1
- package/lib/constant/address.d.ts +0 -1
- package/lib/constant/address.js +0 -1
- package/lib/constant/generic.d.ts +0 -1
- package/lib/constant/generic.js +0 -1
- package/lib/constant/ibc.d.ts +0 -1
- package/lib/constant/ibc.js +0 -1
- package/lib/constant/index.d.ts +0 -1
- package/lib/constant/index.js +0 -1
- package/lib/constant/network.d.ts +0 -1
- package/lib/constant/network.js +0 -1
- package/lib/constant/node.d.ts +0 -1
- package/lib/constant/node.js +0 -1
- package/lib/constant/token.d.ts +0 -1
- package/lib/constant/token.js +0 -1
- package/lib/constant/walletProvider.d.ts +0 -1
- package/lib/constant/walletProvider.js +0 -1
- package/lib/eth/abis/index.d.ts +0 -1
- package/lib/eth/abis/index.js +0 -1
- package/lib/eth/index.d.ts +0 -1
- package/lib/eth/index.js +0 -1
- package/lib/hydrogen/feeQuote.d.ts +5 -5
- package/lib/hydrogen/feeQuote.js +0 -1
- package/lib/hydrogen/index.d.ts +0 -1
- package/lib/hydrogen/index.js +0 -1
- package/lib/hydrogen/relays.d.ts +0 -1
- package/lib/hydrogen/relays.js +0 -1
- package/lib/hydrogen/stats.d.ts +0 -1
- package/lib/hydrogen/stats.js +0 -1
- package/lib/hydrogen/transfer.d.ts +0 -1
- package/lib/hydrogen/transfer.js +0 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -1
- package/lib/insights/balance.d.ts +0 -1
- package/lib/insights/balance.js +0 -1
- package/lib/insights/block.d.ts +0 -1
- package/lib/insights/block.js +0 -1
- package/lib/insights/chain.d.ts +0 -1
- package/lib/insights/chain.js +0 -1
- package/lib/insights/common.d.ts +0 -1
- package/lib/insights/common.js +0 -1
- package/lib/insights/competition.d.ts +0 -1
- package/lib/insights/competition.js +0 -1
- package/lib/insights/funding.d.ts +0 -1
- package/lib/insights/funding.js +0 -1
- package/lib/insights/index.d.ts +0 -1
- package/lib/insights/index.js +0 -1
- package/lib/insights/market.d.ts +0 -1
- package/lib/insights/market.js +0 -1
- package/lib/insights/node.d.ts +0 -1
- package/lib/insights/node.js +0 -1
- package/lib/insights/pool.d.ts +0 -1
- package/lib/insights/pool.js +0 -1
- package/lib/insights/position.d.ts +0 -1
- package/lib/insights/position.js +0 -1
- package/lib/insights/transaction.d.ts +0 -1
- package/lib/insights/transaction.js +0 -1
- package/lib/insights/user.d.ts +0 -1
- package/lib/insights/user.js +0 -1
- package/lib/modules/admin.d.ts +0 -1
- package/lib/modules/admin.js +0 -1
- package/lib/modules/bank.d.ts +0 -1
- package/lib/modules/bank.js +0 -1
- package/lib/modules/base.d.ts +0 -1
- package/lib/modules/base.js +0 -1
- package/lib/modules/broker.d.ts +0 -1
- package/lib/modules/broker.js +0 -1
- package/lib/modules/cdp.d.ts +0 -1
- package/lib/modules/cdp.js +0 -1
- package/lib/modules/coin.d.ts +0 -1
- package/lib/modules/coin.js +0 -1
- package/lib/modules/fee.d.ts +0 -1
- package/lib/modules/fee.js +0 -1
- package/lib/modules/gov.d.ts +0 -1
- package/lib/modules/gov.js +0 -1
- package/lib/modules/ibc.d.ts +0 -1
- package/lib/modules/ibc.js +0 -1
- package/lib/modules/index.d.ts +0 -1
- package/lib/modules/index.js +0 -1
- package/lib/modules/leverage.d.ts +0 -1
- package/lib/modules/leverage.js +0 -1
- package/lib/modules/liquiditypool.d.ts +0 -1
- package/lib/modules/liquiditypool.js +0 -1
- package/lib/modules/market.d.ts +0 -1
- package/lib/modules/market.js +0 -1
- package/lib/modules/oracle.d.ts +0 -1
- package/lib/modules/oracle.js +0 -1
- package/lib/modules/order.d.ts +0 -1
- package/lib/modules/order.js +0 -1
- package/lib/modules/position.d.ts +0 -1
- package/lib/modules/position.js +0 -1
- package/lib/modules/profile.d.ts +0 -1
- package/lib/modules/profile.js +0 -1
- package/lib/modules/staking.d.ts +0 -1
- package/lib/modules/staking.js +0 -1
- package/lib/modules/subaccount.d.ts +0 -1
- package/lib/modules/subaccount.js +0 -1
- package/lib/modules/xchain.d.ts +0 -1
- package/lib/modules/xchain.js +0 -1
- package/lib/provider/account/EthLedgerAccount/EthLedgerAccount.d.ts +0 -1
- package/lib/provider/account/EthLedgerAccount/EthLedgerAccount.js +0 -1
- package/lib/provider/account/EthLedgerAccount/EthLedgerSigner.d.ts +0 -1
- package/lib/provider/account/EthLedgerAccount/EthLedgerSigner.js +0 -1
- package/lib/provider/account/EthLedgerAccount/index.d.ts +0 -1
- package/lib/provider/account/EthLedgerAccount/index.js +0 -1
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/BIP44.d.ts +0 -1
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/BIP44.js +0 -1
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/ErrorCode.d.ts +0 -1
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/ErrorCode.js +0 -1
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/index.d.ts +0 -1
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/index.js +0 -1
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/main.d.ts +0 -1
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/main.js +0 -1
- package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.d.ts +0 -1
- package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.js +0 -1
- package/lib/provider/account/NeoLedgerAccount/NeonLedger.d.ts +0 -1
- package/lib/provider/account/NeoLedgerAccount/NeonLedger.js +0 -1
- package/lib/provider/account/NeoLedgerAccount/index.d.ts +0 -1
- package/lib/provider/account/NeoLedgerAccount/index.js +0 -1
- package/lib/provider/account/index.d.ts +0 -1
- package/lib/provider/account/index.js +0 -1
- package/lib/provider/amino/AminoTypesMap.d.ts +0 -1
- package/lib/provider/amino/AminoTypesMap.js +0 -1
- package/lib/provider/amino/index.d.ts +0 -1
- package/lib/provider/amino/index.js +0 -1
- package/lib/provider/amino/types/admin.d.ts +0 -1
- package/lib/provider/amino/types/admin.js +0 -1
- package/lib/provider/amino/types/bank.d.ts +0 -1
- package/lib/provider/amino/types/bank.js +0 -1
- package/lib/provider/amino/types/broker.d.ts +0 -1
- package/lib/provider/amino/types/broker.js +0 -1
- package/lib/provider/amino/types/cdp.d.ts +0 -1
- package/lib/provider/amino/types/cdp.js +0 -1
- package/lib/provider/amino/types/coin.d.ts +0 -1
- package/lib/provider/amino/types/coin.js +0 -1
- package/lib/provider/amino/types/gov.d.ts +0 -1
- package/lib/provider/amino/types/gov.js +0 -1
- package/lib/provider/amino/types/ibc.d.ts +0 -1
- package/lib/provider/amino/types/ibc.js +0 -1
- package/lib/provider/amino/types/index.d.ts +0 -1
- package/lib/provider/amino/types/index.js +0 -1
- package/lib/provider/amino/types/leverage.d.ts +0 -1
- package/lib/provider/amino/types/leverage.js +0 -1
- package/lib/provider/amino/types/liquidityPool.d.ts +0 -1
- package/lib/provider/amino/types/liquidityPool.js +0 -1
- package/lib/provider/amino/types/market.d.ts +0 -1
- package/lib/provider/amino/types/market.js +0 -1
- package/lib/provider/amino/types/oracle.d.ts +0 -1
- package/lib/provider/amino/types/oracle.js +0 -1
- package/lib/provider/amino/types/order.d.ts +0 -1
- package/lib/provider/amino/types/order.js +0 -1
- package/lib/provider/amino/types/position.d.ts +0 -1
- package/lib/provider/amino/types/position.js +0 -1
- package/lib/provider/amino/types/profile.d.ts +0 -1
- package/lib/provider/amino/types/profile.js +0 -1
- package/lib/provider/amino/types/staking.d.ts +0 -1
- package/lib/provider/amino/types/staking.js +0 -1
- package/lib/provider/amino/types/subaccount.d.ts +0 -1
- package/lib/provider/amino/types/subaccount.js +0 -1
- package/lib/provider/amino/utils.d.ts +0 -1
- package/lib/provider/amino/utils.js +0 -1
- package/lib/provider/index.d.ts +0 -1
- package/lib/provider/index.js +0 -1
- package/lib/provider/keplr/KeplrAccount.d.ts +0 -1
- package/lib/provider/keplr/KeplrAccount.js +0 -1
- package/lib/provider/keplr/KeplrStore.d.ts +0 -1
- package/lib/provider/keplr/KeplrStore.js +0 -1
- package/lib/provider/keplr/index.d.ts +0 -1
- package/lib/provider/keplr/index.js +0 -1
- package/lib/provider/ledger/index.d.ts +0 -1
- package/lib/provider/ledger/index.js +0 -1
- package/lib/provider/ledger/ledger.d.ts +0 -1
- package/lib/provider/ledger/ledger.js +0 -1
- package/lib/provider/metamask/MetaMask.d.ts +0 -1
- package/lib/provider/metamask/MetaMask.js +0 -1
- package/lib/provider/metamask/index.d.ts +0 -1
- package/lib/provider/metamask/index.js +0 -1
- package/lib/provider/o3/O3Types.d.ts +0 -1
- package/lib/provider/o3/O3Types.js +0 -1
- package/lib/provider/o3/O3Wallet.d.ts +0 -1
- package/lib/provider/o3/O3Wallet.js +5 -7
- package/lib/provider/o3/index.d.ts +0 -1
- package/lib/provider/o3/index.js +0 -1
- package/lib/provider/sdk/SDKProvider.d.ts +0 -1
- package/lib/provider/sdk/SDKProvider.js +0 -1
- package/lib/provider/sdk/index.d.ts +0 -1
- package/lib/provider/sdk/index.js +0 -1
- package/lib/provider/zilpay/Zilpay.d.ts +0 -1
- package/lib/provider/zilpay/Zilpay.js +0 -1
- package/lib/provider/zilpay/index.d.ts +0 -1
- package/lib/provider/zilpay/index.js +0 -1
- package/lib/util/address.d.ts +0 -1
- package/lib/util/address.js +0 -1
- package/lib/util/api.d.ts +0 -1
- package/lib/util/api.js +0 -1
- package/lib/util/blockchain.d.ts +0 -1
- package/lib/util/blockchain.js +0 -1
- package/lib/util/external.d.ts +0 -1
- package/lib/util/external.js +0 -1
- package/lib/util/fetch.d.ts +0 -1
- package/lib/util/fetch.js +0 -1
- package/lib/util/generic.d.ts +0 -1
- package/lib/util/generic.js +0 -1
- package/lib/util/gov.d.ts +0 -1
- package/lib/util/gov.js +0 -1
- package/lib/util/ibc.d.ts +0 -1
- package/lib/util/ibc.js +0 -1
- package/lib/util/index.d.ts +0 -1
- package/lib/util/index.js +0 -1
- package/lib/util/ledger.d.ts +0 -1
- package/lib/util/ledger.js +0 -1
- package/lib/util/network.d.ts +0 -1
- package/lib/util/network.js +0 -1
- package/lib/util/number.d.ts +0 -1
- package/lib/util/number.js +0 -1
- package/lib/util/token.d.ts +0 -1
- package/lib/util/token.js +0 -1
- package/lib/util/transferfees.d.ts +0 -1
- package/lib/util/transferfees.js +0 -1
- package/lib/util/tx.d.ts +0 -1
- package/lib/util/tx.js +0 -1
- package/lib/util/type.d.ts +0 -1
- package/lib/util/type.js +0 -1
- package/lib/wallet/CarbonSigner.d.ts +0 -1
- package/lib/wallet/CarbonSigner.js +0 -1
- package/lib/wallet/CarbonSigningClient.d.ts +0 -1
- package/lib/wallet/CarbonSigningClient.js +0 -1
- package/lib/wallet/CarbonWallet.d.ts +0 -1
- package/lib/wallet/CarbonWallet.js +0 -1
- package/lib/wallet/index.d.ts +0 -1
- package/lib/wallet/index.js +0 -1
- package/lib/websocket/channel.d.ts +0 -1
- package/lib/websocket/channel.js +0 -1
- package/lib/websocket/connector.d.ts +0 -1
- package/lib/websocket/connector.js +0 -1
- package/lib/websocket/index.d.ts +0 -1
- package/lib/websocket/index.js +0 -1
- package/lib/websocket/models.d.ts +0 -1
- package/lib/websocket/models.js +0 -1
- package/lib/websocket/types.d.ts +0 -1
- package/lib/websocket/types.js +0 -1
- package/package.json +9 -11
- package/examples/_sdk.ts +0 -1
- package/examples/_setup.ts +0 -3
- package/examples/add_collateral.ts +0 -24
- package/examples/add_debt.ts +0 -29
- package/examples/add_liquidity.ts +0 -26
- package/examples/address_convert.ts +0 -24
- package/examples/bind_token.ts +0 -21
- package/examples/broadcast_tx.ts +0 -37
- package/examples/cancel_all_orders.ts +0 -30
- package/examples/cancel_order.ts +0 -22
- package/examples/claim_pool_rewards.ts +0 -22
- package/examples/clone_sdk.ts +0 -34
- package/examples/connect_sdk.ts +0 -18
- package/examples/create_deposit.ts +0 -168
- package/examples/create_ibc_transfer.ts +0 -96
- package/examples/create_market.ts +0 -34
- package/examples/create_oracle.ts +0 -29
- package/examples/create_order.ts +0 -65
- package/examples/create_pool.ts +0 -28
- package/examples/create_pool_with_liquidity.ts +0 -30
- package/examples/create_subaccount.ts +0 -22
- package/examples/create_token.ts +0 -29
- package/examples/create_vault_type.ts +0 -25
- package/examples/create_vote.ts +0 -24
- package/examples/create_withdrawal.ts +0 -27
- package/examples/custom_node.ts +0 -19
- package/examples/delegate_tokens.ts +0 -31
- package/examples/deposit_proposal.ts +0 -24
- package/examples/edit_margin.ts +0 -24
- package/examples/edit_order.ts +0 -22
- package/examples/edit_order_bulk.ts +0 -26
- package/examples/get_crosschain_txs.ts +0 -21
- package/examples/initiate_liquidation.ts +0 -27
- package/examples/link_pool.ts +0 -23
- package/examples/mint.ts +0 -31
- package/examples/n3_query_balance.ts +0 -57
- package/examples/query.ts +0 -133
- package/examples/query_balance.ts +0 -23
- package/examples/query_external_balances.ts +0 -40
- package/examples/query_ibc.ts +0 -16
- package/examples/query_insights.ts +0 -83
- package/examples/remove_collateral.ts +0 -24
- package/examples/remove_debt.ts +0 -24
- package/examples/remove_liquidity.ts +0 -25
- package/examples/send_tokens.ts +0 -27
- package/examples/set_commitment_curve.ts +0 -23
- package/examples/set_leverage.ts +0 -24
- package/examples/set_msg_fee.ts +0 -54
- package/examples/set_reward_curve.ts +0 -27
- package/examples/set_rewards_weights.ts +0 -23
- package/examples/set_trading_flag.ts +0 -23
- package/examples/stake_pool_token.ts +0 -28
- package/examples/submit_proposal.ts +0 -62
- package/examples/sync_token.ts +0 -22
- package/examples/unlink_pool.ts +0 -22
- package/examples/unstake_pool_token.ts +0 -25
- package/examples/update_market.ts +0 -44
- package/examples/update_pool.ts +0 -25
- package/examples/update_profile.ts +0 -23
- package/examples/vote_proposal.ts +0 -23
- package/examples/websocket.ts +0 -32
package/examples/edit_margin.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import {BigNumber} from "bignumber.js";
|
|
2
|
-
import * as BIP39 from "bip39";
|
|
3
|
-
import { CarbonSDK } from "./_sdk";
|
|
4
|
-
import "./_setup";
|
|
5
|
-
|
|
6
|
-
(async () => {
|
|
7
|
-
const mnemonics = process.env.MNEMONICS ?? BIP39.generateMnemonic();
|
|
8
|
-
console.log("mnemonics", mnemonics);
|
|
9
|
-
|
|
10
|
-
const sdk = await CarbonSDK.instance({
|
|
11
|
-
network: CarbonSDK.Network.LocalHost,
|
|
12
|
-
config: {
|
|
13
|
-
tmRpcUrl: process.env.TRPC_ENDPOINT,
|
|
14
|
-
},
|
|
15
|
-
});
|
|
16
|
-
const connectedSDK = await sdk.connectWithMnemonic(mnemonics);
|
|
17
|
-
console.log("connected sdk");
|
|
18
|
-
|
|
19
|
-
const result = await connectedSDK.position.editMargin({
|
|
20
|
-
market: "btc_z19",
|
|
21
|
-
margin: new BigNumber(100)
|
|
22
|
-
})
|
|
23
|
-
console.log(result)
|
|
24
|
-
})().catch(console.error).finally(() => process.exit(0));
|
package/examples/edit_order.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { BigNumber } from "bignumber.js";
|
|
2
|
-
import * as BIP39 from "bip39";
|
|
3
|
-
import { CarbonSDK } from "./_sdk";
|
|
4
|
-
import "./_setup";
|
|
5
|
-
|
|
6
|
-
(async () => {
|
|
7
|
-
const mnemonics = process.env.MNEMONICS ?? BIP39.generateMnemonic();
|
|
8
|
-
console.log("mnemonics", mnemonics);
|
|
9
|
-
|
|
10
|
-
const sdk = await CarbonSDK.instance({
|
|
11
|
-
network: CarbonSDK.Network.MainNet,
|
|
12
|
-
});
|
|
13
|
-
const connectedSDK = await sdk.connectWithMnemonic(mnemonics);
|
|
14
|
-
console.log("connected sdk");
|
|
15
|
-
|
|
16
|
-
const moduleCallResult = await connectedSDK.order.edit({
|
|
17
|
-
id: "1",
|
|
18
|
-
price: new BigNumber(100), // raw
|
|
19
|
-
quantity: new BigNumber(100), // raw
|
|
20
|
-
});
|
|
21
|
-
console.log("call from module", moduleCallResult);
|
|
22
|
-
})().catch(console.error).finally(() => process.exit(0));
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { BigNumber } from "bignumber.js";
|
|
2
|
-
import * as BIP39 from "bip39";
|
|
3
|
-
import { CarbonSDK } from "./_sdk";
|
|
4
|
-
import "./_setup";
|
|
5
|
-
|
|
6
|
-
(async () => {
|
|
7
|
-
const mnemonics = process.env.MNEMONICS ?? BIP39.generateMnemonic();
|
|
8
|
-
console.log("mnemonics", mnemonics);
|
|
9
|
-
|
|
10
|
-
const sdk = await CarbonSDK.instance({
|
|
11
|
-
network: CarbonSDK.Network.MainNet,
|
|
12
|
-
});
|
|
13
|
-
const connectedSDK = await sdk.connectWithMnemonic(mnemonics);
|
|
14
|
-
console.log("connected sdk");
|
|
15
|
-
|
|
16
|
-
const moduleCallResult = await connectedSDK.order.editOrders([{
|
|
17
|
-
id: "1",
|
|
18
|
-
price: new BigNumber(100), // raw
|
|
19
|
-
quantity: new BigNumber(100), // raw
|
|
20
|
-
}, {
|
|
21
|
-
id: "2",
|
|
22
|
-
price: new BigNumber(100), // raw
|
|
23
|
-
quantity: new BigNumber(100), // raw
|
|
24
|
-
}]);
|
|
25
|
-
console.log("call from module", moduleCallResult);
|
|
26
|
-
})().catch(console.error).finally(() => process.exit(0));
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { CarbonSDK } from "./_sdk";
|
|
2
|
-
|
|
3
|
-
(async () => {
|
|
4
|
-
const sdk = await CarbonSDK.instance({
|
|
5
|
-
network: CarbonSDK.Network.DevNet,
|
|
6
|
-
});
|
|
7
|
-
|
|
8
|
-
// Hydrogen transfer payload query
|
|
9
|
-
// query 5 crosschain transfers
|
|
10
|
-
const result = await sdk.hydrogen.getTransfers({
|
|
11
|
-
limit: 5,
|
|
12
|
-
})
|
|
13
|
-
console.log("crosschain transfers", result);
|
|
14
|
-
|
|
15
|
-
// query 5 crosschain transfers with nested chain txs
|
|
16
|
-
const detailedResults = await sdk.hydrogen.getDetailedTransfers({
|
|
17
|
-
limit: 5,
|
|
18
|
-
})
|
|
19
|
-
console.log("detailed crosschain transfers", detailedResults);
|
|
20
|
-
|
|
21
|
-
})().catch(console.error).finally(() => process.exit(0));
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as BIP39 from "bip39";
|
|
2
|
-
import { CarbonSDK } from "./_sdk";
|
|
3
|
-
import "./_setup";
|
|
4
|
-
|
|
5
|
-
(async () => {
|
|
6
|
-
const mnemonics = process.env.MNEMONICS ?? BIP39.generateMnemonic();
|
|
7
|
-
console.log("mnemonics", mnemonics);
|
|
8
|
-
|
|
9
|
-
const sdk = await CarbonSDK.instance({
|
|
10
|
-
network: CarbonSDK.Network.LocalHost,
|
|
11
|
-
config: {
|
|
12
|
-
tmRpcUrl: process.env.TRPC_ENDPOINT,
|
|
13
|
-
},
|
|
14
|
-
});
|
|
15
|
-
const connectedSDK = await sdk.connectWithMnemonic(mnemonics);
|
|
16
|
-
console.log("connected sdk");
|
|
17
|
-
|
|
18
|
-
const result = await connectedSDK.broker.initiateLiquidation({
|
|
19
|
-
positions: [
|
|
20
|
-
{
|
|
21
|
-
market: "btc_z29",
|
|
22
|
-
address: "tswth1mw90en8tcqnvdjhp64qmyhuq4qasvhy2s6st4t"
|
|
23
|
-
}
|
|
24
|
-
]
|
|
25
|
-
})
|
|
26
|
-
console.log(result)
|
|
27
|
-
})().catch(console.error).finally(() => process.exit(0));
|
package/examples/link_pool.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as BIP39 from "bip39";
|
|
2
|
-
import { CarbonSDK } from "./_sdk";
|
|
3
|
-
import "./_setup";
|
|
4
|
-
|
|
5
|
-
(async () => {
|
|
6
|
-
const mnemonics = process.env.MNEMONICS ?? BIP39.generateMnemonic();
|
|
7
|
-
console.log("mnemonics", mnemonics);
|
|
8
|
-
|
|
9
|
-
const sdk = await CarbonSDK.instance({
|
|
10
|
-
network: CarbonSDK.Network.LocalHost,
|
|
11
|
-
config: {
|
|
12
|
-
tmRpcUrl: process.env.TRPC_ENDPOINT,
|
|
13
|
-
},
|
|
14
|
-
});
|
|
15
|
-
const connectedSDK = await sdk.connectWithMnemonic(mnemonics);
|
|
16
|
-
console.log("connected sdk");
|
|
17
|
-
|
|
18
|
-
const result = await connectedSDK.admin.linkPool({
|
|
19
|
-
poolId: 1,
|
|
20
|
-
market: "swth_eth",
|
|
21
|
-
})
|
|
22
|
-
console.log(result)
|
|
23
|
-
})().catch(console.error).finally(() => process.exit(0));
|
package/examples/mint.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as BIP39 from "bip39";
|
|
2
|
-
import { CarbonSDK } from "./_sdk";
|
|
3
|
-
import { BigNumber } from "bignumber.js";
|
|
4
|
-
import "./_setup";
|
|
5
|
-
|
|
6
|
-
(async () => {
|
|
7
|
-
const mnemonics = process.env.MNEMONICS ?? BIP39.generateMnemonic();
|
|
8
|
-
console.log("mnemonics", mnemonics);
|
|
9
|
-
|
|
10
|
-
const sdk = await CarbonSDK.instance({
|
|
11
|
-
network: CarbonSDK.Network.LocalHost,
|
|
12
|
-
config: {
|
|
13
|
-
tmRpcUrl: process.env.TRPC_ENDPOINT,
|
|
14
|
-
},
|
|
15
|
-
});
|
|
16
|
-
const connectedSDK = await sdk.connectWithMnemonic(mnemonics);
|
|
17
|
-
console.log("connected sdk");
|
|
18
|
-
|
|
19
|
-
const response = await sdk.query.coin.TokenAll({})
|
|
20
|
-
console.log("tokens: ", response.tokens)
|
|
21
|
-
|
|
22
|
-
const indivToken = response.tokens[0]
|
|
23
|
-
|
|
24
|
-
const result = await connectedSDK.coin.mintToken({
|
|
25
|
-
creator: connectedSDK.wallet.bech32Address,
|
|
26
|
-
denom: indivToken.denom,
|
|
27
|
-
amount: new BigNumber(100000),
|
|
28
|
-
to: connectedSDK.wallet.bech32Address,
|
|
29
|
-
})
|
|
30
|
-
console.log(result)
|
|
31
|
-
})().catch(console.error).finally(() => process.exit(0));
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { CONST } from "@cityofzion/neon-core-next";
|
|
2
|
-
import { rpc } from "@cityofzion/neon-js-next";
|
|
3
|
-
import BigNumber from "bignumber.js";
|
|
4
|
-
import * as BIP39 from "bip39";
|
|
5
|
-
import * as wif from "wif";
|
|
6
|
-
import N3Client from "../lib/clients/N3Client";
|
|
7
|
-
import { N3Address, SWTHAddress } from "../lib/util/address";
|
|
8
|
-
import { BN_ZERO } from "../lib/util/number";
|
|
9
|
-
import { CarbonSDK } from "./_sdk";
|
|
10
|
-
import "./_setup";
|
|
11
|
-
|
|
12
|
-
const neoRpcUrl = "http://seed1t4.neo.org:20332";
|
|
13
|
-
|
|
14
|
-
;
|
|
15
|
-
(async () => {
|
|
16
|
-
const mnemonics = process.env.MNEMONICS ?? BIP39.generateMnemonic();
|
|
17
|
-
console.log("mnemonics", mnemonics);
|
|
18
|
-
|
|
19
|
-
const n3Client = N3Client.instance({
|
|
20
|
-
configProvider: {
|
|
21
|
-
getConfig: () => ({
|
|
22
|
-
n3: {
|
|
23
|
-
rpcURL: neoRpcUrl,
|
|
24
|
-
networkMagic: CONST.MAGIC_NUMBER.TestNet,
|
|
25
|
-
},
|
|
26
|
-
} as any),
|
|
27
|
-
},
|
|
28
|
-
})
|
|
29
|
-
|
|
30
|
-
const bech32Address = SWTHAddress.generateAddress(mnemonics);
|
|
31
|
-
console.log("deposit to ", bech32Address)
|
|
32
|
-
|
|
33
|
-
const privateKeyWif = "";
|
|
34
|
-
const privateKey = wif.decode(privateKeyWif).privateKey.toString("hex");
|
|
35
|
-
const fromAddress = N3Address.privateKeyToAddress(privateKey);
|
|
36
|
-
|
|
37
|
-
console.log("fromAddress", fromAddress);
|
|
38
|
-
|
|
39
|
-
const balances = await new rpc.RPCClient(neoRpcUrl).execute(new rpc.Query({
|
|
40
|
-
method: "getnep17balances",
|
|
41
|
-
"params": [fromAddress],
|
|
42
|
-
}));
|
|
43
|
-
|
|
44
|
-
console.log("balances", balances);
|
|
45
|
-
|
|
46
|
-
const toAddressBytes = SWTHAddress.getAddressBytes(bech32Address, CarbonSDK.Network.DevNet);
|
|
47
|
-
const toAddressHex = Buffer.from(toAddressBytes).toString("hex");
|
|
48
|
-
|
|
49
|
-
const lockProxyScriptHash = "eeebee7ef57cb2106fbad2c51c5b9b4c30f0c0ca"
|
|
50
|
-
const tokenScriptHash = "285b332bc0323bc334987bd4735fb39cc3269e20"
|
|
51
|
-
|
|
52
|
-
const signer = N3Client.signerFromPrivateKey(privateKey);
|
|
53
|
-
const result = await n3Client.lock(lockProxyScriptHash, tokenScriptHash, fromAddress, toAddressHex, new BigNumber(8800), BN_ZERO, signer);
|
|
54
|
-
console.log(result);
|
|
55
|
-
|
|
56
|
-
})().catch(console.error).finally(() => process.exit(0));
|
|
57
|
-
|
package/examples/query.ts
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import Long from "long";
|
|
2
|
-
import { QueryAllTransactionRequest } from "../lib/codec";
|
|
3
|
-
import { CarbonSDK, CarbonTx, GenericUtils } from "./_sdk";
|
|
4
|
-
import "./_setup";
|
|
5
|
-
|
|
6
|
-
(async () => {
|
|
7
|
-
const sdk = await CarbonSDK.instance({
|
|
8
|
-
network: CarbonSDK.Network.LocalHost,
|
|
9
|
-
config: {
|
|
10
|
-
tmRpcUrl: process.env.TRPC_ENDPOINT,
|
|
11
|
-
},
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
// GRPC Queries
|
|
15
|
-
|
|
16
|
-
// query market stats
|
|
17
|
-
const marketStats = await sdk.query.marketstats.MarketStats({});
|
|
18
|
-
console.log("marketStats", marketStats);
|
|
19
|
-
|
|
20
|
-
// query msg type gas costs
|
|
21
|
-
const msgGasCosts = await sdk.query.fee.MsgGasCostAll({});
|
|
22
|
-
console.log("msg gas costs", msgGasCosts);
|
|
23
|
-
|
|
24
|
-
// query txn min gas price
|
|
25
|
-
const minGasPrices = await sdk.query.fee.MinGasPriceAll({});
|
|
26
|
-
console.log("min gas prices", minGasPrices);
|
|
27
|
-
|
|
28
|
-
// query all tokens
|
|
29
|
-
const tokens = await sdk.query.coin.TokenAll({
|
|
30
|
-
pagination: {
|
|
31
|
-
reverse: false,
|
|
32
|
-
limit: new Long(100),
|
|
33
|
-
offset: new Long(0),
|
|
34
|
-
key: new Uint8Array(),
|
|
35
|
-
countTotal: true,
|
|
36
|
-
},
|
|
37
|
-
});
|
|
38
|
-
console.log("tokens", tokens);
|
|
39
|
-
|
|
40
|
-
// query all token mappings
|
|
41
|
-
const mappings = await sdk.query.coin.WrapperMappings({});
|
|
42
|
-
console.log("mappings", mappings);
|
|
43
|
-
|
|
44
|
-
// query all markets
|
|
45
|
-
const markets = await sdk.query.market.MarketAll({});
|
|
46
|
-
console.log("markets", markets);
|
|
47
|
-
|
|
48
|
-
// query all orders;
|
|
49
|
-
const orders = await sdk.query.order.OrderAll({
|
|
50
|
-
address: "",
|
|
51
|
-
market: "",
|
|
52
|
-
orderType: "",
|
|
53
|
-
orderStatus: "",
|
|
54
|
-
});
|
|
55
|
-
console.log("orders", orders);
|
|
56
|
-
|
|
57
|
-
// query all profiles with pagination
|
|
58
|
-
const profiles = await sdk.query.profile.ProfileAll({
|
|
59
|
-
username: "",
|
|
60
|
-
});
|
|
61
|
-
console.log("profiles", profiles);
|
|
62
|
-
|
|
63
|
-
// query 10 latest blocks
|
|
64
|
-
const blocksResponse = await sdk.query.misc.BlockAll({
|
|
65
|
-
pagination: {
|
|
66
|
-
page: new Long(1),
|
|
67
|
-
pageSize: new Long(10),
|
|
68
|
-
},
|
|
69
|
-
});
|
|
70
|
-
console.log("latest block", blocksResponse.blocks[0]);
|
|
71
|
-
|
|
72
|
-
// query 10 latest transactions
|
|
73
|
-
const txnsResponse = await sdk.query.misc.TransactionAll(
|
|
74
|
-
QueryAllTransactionRequest.fromPartial({
|
|
75
|
-
pagination: {
|
|
76
|
-
page: new Long(1),
|
|
77
|
-
pageSize: new Long(10),
|
|
78
|
-
},
|
|
79
|
-
})
|
|
80
|
-
);
|
|
81
|
-
console.log("latest txn", txnsResponse.transactions[0]);
|
|
82
|
-
|
|
83
|
-
// query all transaction MessageTypes
|
|
84
|
-
const messageTypeReponse = await sdk.query.misc.MessageTypeAll({});
|
|
85
|
-
console.log("message types", messageTypeReponse.messageTypes);
|
|
86
|
-
|
|
87
|
-
const firstMessageType = messageTypeReponse.messageTypes[0].messageType;
|
|
88
|
-
|
|
89
|
-
// filter transactions with MessageType
|
|
90
|
-
const filteredTxns = await sdk.query.misc.TransactionAll(
|
|
91
|
-
QueryAllTransactionRequest.fromPartial({
|
|
92
|
-
msgTypeFilters: [firstMessageType],
|
|
93
|
-
pagination: {
|
|
94
|
-
page: new Long(1),
|
|
95
|
-
pageSize: new Long(10),
|
|
96
|
-
},
|
|
97
|
-
})
|
|
98
|
-
);
|
|
99
|
-
console.log("filtered txns by messageType:", firstMessageType, filteredTxns.transactions[0]);
|
|
100
|
-
|
|
101
|
-
// Tendermint Queries
|
|
102
|
-
// Note: sdk.query.chain is an instance of BlockchainClient
|
|
103
|
-
// BlockchainClient is a wrapper of StargateClient
|
|
104
|
-
// StargateClient is a wrapper of Tendermint34Client
|
|
105
|
-
|
|
106
|
-
// query latest block
|
|
107
|
-
const block = await sdk.query.chain.getBlock();
|
|
108
|
-
console.log("block", block);
|
|
109
|
-
console.log("block tx hashes", block.txs.map(GenericUtils.computeTxHash));
|
|
110
|
-
|
|
111
|
-
const txHash = GenericUtils.computeTxHash(block.txs[0])!;
|
|
112
|
-
|
|
113
|
-
// get tx
|
|
114
|
-
const txs = await sdk.query.chain.searchTx({
|
|
115
|
-
tags: [
|
|
116
|
-
{
|
|
117
|
-
key: "tx.hash",
|
|
118
|
-
value: txHash,
|
|
119
|
-
},
|
|
120
|
-
],
|
|
121
|
-
});
|
|
122
|
-
const [tx] = txs;
|
|
123
|
-
console.log("tx", tx);
|
|
124
|
-
console.log("tx hash", tx.hash);
|
|
125
|
-
console.log("tx events", JSON.parse(tx.rawLog));
|
|
126
|
-
|
|
127
|
-
// decode tx
|
|
128
|
-
const decodedTx = CarbonTx.decode(tx.tx);
|
|
129
|
-
console.log("tx decoded", JSON.stringify(decodedTx));
|
|
130
|
-
console.log("tx msgs", decodedTx?.body?.messages);
|
|
131
|
-
})()
|
|
132
|
-
.catch(console.error)
|
|
133
|
-
.finally(() => process.exit(0));
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as BIP39 from "bip39";
|
|
2
|
-
import { CarbonSDK } from "./_sdk";
|
|
3
|
-
import "./_setup";
|
|
4
|
-
|
|
5
|
-
(async () => {
|
|
6
|
-
const mnemonics = process.env.MNEMONICS ?? BIP39.generateMnemonic();
|
|
7
|
-
console.log("mnemonics:", mnemonics);
|
|
8
|
-
|
|
9
|
-
const sdk = await CarbonSDK.instance({
|
|
10
|
-
network: CarbonSDK.Network.LocalHost,
|
|
11
|
-
config: {
|
|
12
|
-
tmRpcUrl: process.env.TRPC_ENDPOINT,
|
|
13
|
-
},
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
const connectedSDK = await sdk.connectWithMnemonic(mnemonics);
|
|
17
|
-
console.log("connected wallet:", connectedSDK.wallet.bech32Address);
|
|
18
|
-
|
|
19
|
-
const balance = await sdk.query.bank.AllBalances({
|
|
20
|
-
address: connectedSDK.wallet.bech32Address,
|
|
21
|
-
});
|
|
22
|
-
console.log("wallet balance:", balance);
|
|
23
|
-
})().catch(console.error).finally(() => process.exit(0));
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as BIP39 from "bip39";
|
|
2
|
-
import { AddressUtils, CarbonSDK } from "./_sdk";
|
|
3
|
-
import "./_setup";
|
|
4
|
-
|
|
5
|
-
(async () => {
|
|
6
|
-
const mnemonics = process.env.MNEMONICS ?? BIP39.generateMnemonic();
|
|
7
|
-
console.log("mnemonics", mnemonics);
|
|
8
|
-
|
|
9
|
-
const sdk = await CarbonSDK.instance({
|
|
10
|
-
network: CarbonSDK.Network.DevNet,
|
|
11
|
-
config: {
|
|
12
|
-
tmRpcUrl: process.env.TRPC_ENDPOINT,
|
|
13
|
-
},
|
|
14
|
-
});
|
|
15
|
-
const connectedSDK = await sdk.connectWithMnemonic(mnemonics);
|
|
16
|
-
console.log("connected sdk");
|
|
17
|
-
|
|
18
|
-
if (!connectedSDK.wallet.mnemonic) {
|
|
19
|
-
throw new Error("No mnemonic found. Please ensure you have provided a valid mnemonic.");
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// query eth external balances
|
|
23
|
-
const ethAddress = AddressUtils.ETHAddress.generateAddress(connectedSDK.wallet.mnemonic);
|
|
24
|
-
const ethDepositAddr = await sdk.eth.getDepositContractAddress(connectedSDK.wallet.bech32Address, ethAddress);
|
|
25
|
-
const ethBalances = await sdk.eth.getExternalBalances(sdk, ethDepositAddr);
|
|
26
|
-
console.log("ethBalances", ethBalances);
|
|
27
|
-
|
|
28
|
-
// query bsc external balances
|
|
29
|
-
// use ETHAddress to generate address because bsc and eth addresses are similar
|
|
30
|
-
const bscAddress = AddressUtils.ETHAddress.generateAddress(connectedSDK.wallet.mnemonic);
|
|
31
|
-
const bscdepositAddr = await sdk.bsc.getDepositContractAddress(connectedSDK.wallet.bech32Address, bscAddress);
|
|
32
|
-
const bscBalances = await sdk.bsc.getExternalBalances(sdk, bscdepositAddr);
|
|
33
|
-
console.log("bscBalances", bscBalances);
|
|
34
|
-
|
|
35
|
-
// query neo external balances
|
|
36
|
-
const neoAddress = AddressUtils.NEOAddress.generateAddress(connectedSDK.wallet.mnemonic);
|
|
37
|
-
const neoBalances = await sdk.neo.getExternalBalances(sdk, neoAddress, sdk.networkConfig.neo.rpcURL);
|
|
38
|
-
console.log("neoBalances", neoBalances);
|
|
39
|
-
})().catch(console.error).finally(() => process.exit(0));
|
|
40
|
-
|
package/examples/query_ibc.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { CarbonSDK } from "./_sdk";
|
|
2
|
-
import "./_setup";
|
|
3
|
-
|
|
4
|
-
(async () => {
|
|
5
|
-
const sdk = await CarbonSDK.instance({
|
|
6
|
-
network: CarbonSDK.Network.MainNet,
|
|
7
|
-
});
|
|
8
|
-
const denomTraces = await sdk.query.ibc.transfer.DenomTraces({})
|
|
9
|
-
console.log("denomTraces", denomTraces);
|
|
10
|
-
const transferParams = await sdk.query.ibc.transfer.Params({})
|
|
11
|
-
console.log("transferParams", transferParams);
|
|
12
|
-
const hostParams = await sdk.query.ibc.host.Params({})
|
|
13
|
-
console.log("hostParams", hostParams);
|
|
14
|
-
const controllerParams = await sdk.query.ibc.controller.Params({})
|
|
15
|
-
console.log("controllerParams", controllerParams);
|
|
16
|
-
})().catch(console.error).finally(() => process.exit(0));
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { PositionViewOptions } from "../lib/insights";
|
|
2
|
-
import { CarbonSDK } from "./_sdk";
|
|
3
|
-
|
|
4
|
-
(async () => {
|
|
5
|
-
const sdk = await CarbonSDK.instance({
|
|
6
|
-
network: CarbonSDK.Network.DevNet,
|
|
7
|
-
config: {
|
|
8
|
-
tmRpcUrl: process.env.TRPC_ENDPOINT,
|
|
9
|
-
},
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
// chain api
|
|
13
|
-
const stakeResponse = await sdk.insights.Stake();
|
|
14
|
-
console.log("stake", stakeResponse);
|
|
15
|
-
|
|
16
|
-
const txResponse = await sdk.insights.Transaction();
|
|
17
|
-
console.log("tx", txResponse);
|
|
18
|
-
|
|
19
|
-
// user api
|
|
20
|
-
const activeAccountsResponse = await sdk.insights.ActiveAccounts();
|
|
21
|
-
console.log("activeAccounts", activeAccountsResponse);
|
|
22
|
-
|
|
23
|
-
const userGrowthResponse = await sdk.insights.UserGrowth();
|
|
24
|
-
console.log("userGrowth", userGrowthResponse);
|
|
25
|
-
|
|
26
|
-
const totalUsersResponse = await sdk.insights.TotalUsers();
|
|
27
|
-
console.log("totalUsers", totalUsersResponse);
|
|
28
|
-
|
|
29
|
-
// pool api
|
|
30
|
-
const poolsResponse = await sdk.insights.Pools();
|
|
31
|
-
console.log("pools", poolsResponse);
|
|
32
|
-
|
|
33
|
-
const poolsVolumeResponse = await sdk.insights.PoolsVolume();
|
|
34
|
-
console.log("poolsVolume", poolsVolumeResponse);
|
|
35
|
-
|
|
36
|
-
const poolsLiquidityResponse = await sdk.insights.PoolsLiquidity();
|
|
37
|
-
console.log("poolsLiquidity", poolsLiquidityResponse);
|
|
38
|
-
|
|
39
|
-
// market api
|
|
40
|
-
const marketsVolumeResponse = await sdk.insights.MarketsVolume();
|
|
41
|
-
console.log("marketsVolume", marketsVolumeResponse);
|
|
42
|
-
|
|
43
|
-
// node api
|
|
44
|
-
const nodeResponse = await sdk.insights.Nodes();
|
|
45
|
-
console.log("nodes", nodeResponse);
|
|
46
|
-
|
|
47
|
-
// balance api
|
|
48
|
-
const balanceSupplyResponse = await sdk.insights.BalanceSupply();
|
|
49
|
-
console.log("balanceSupply", balanceSupplyResponse);
|
|
50
|
-
|
|
51
|
-
// balance api
|
|
52
|
-
const competitionLeaderboard = await sdk.insights.CompetitionLeaderboard({
|
|
53
|
-
from: '1618282336',
|
|
54
|
-
until: '1681354336',
|
|
55
|
-
market: 'eth_z39'
|
|
56
|
-
});
|
|
57
|
-
console.log("competitionLeaderboard", competitionLeaderboard);
|
|
58
|
-
|
|
59
|
-
//Position Views
|
|
60
|
-
const positionViews = await sdk.insights.PositionsView({ view: "risk" as PositionViewOptions },{})
|
|
61
|
-
console.log("PositionsView", positionViews)
|
|
62
|
-
|
|
63
|
-
//Liquidation
|
|
64
|
-
const liquidationAndADL = await sdk.insights.LiquidationAndADL({ limit: 10 })
|
|
65
|
-
console.log("Liquidation and ADL", liquidationAndADL)
|
|
66
|
-
|
|
67
|
-
//Liquidation Engine
|
|
68
|
-
const liquidation = await sdk.insights.LiquidationEngine({ limit: 10})
|
|
69
|
-
console.log("Liquidation", liquidation)
|
|
70
|
-
|
|
71
|
-
//AvgBlocktime
|
|
72
|
-
const avgBlocktime = await sdk.insights.AvgBlockTime({ hours: 24 })
|
|
73
|
-
console.log("Avg Blocktime", avgBlocktime)
|
|
74
|
-
|
|
75
|
-
//Pool History
|
|
76
|
-
const PoolHistory = await sdk.insights.PoolHistory({ poolId: 42 })
|
|
77
|
-
console.log("PoolHistory", PoolHistory)
|
|
78
|
-
|
|
79
|
-
//Funding History
|
|
80
|
-
const fundingHistory = await sdk.insights.FundingHistory({})
|
|
81
|
-
console.log("fundingHistory", fundingHistory)
|
|
82
|
-
|
|
83
|
-
})().catch(console.error).finally(() => process.exit(0));
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as BIP39 from "bip39";
|
|
2
|
-
import { CarbonSDK } from "./_sdk";
|
|
3
|
-
import { BigNumber } from "bignumber.js";
|
|
4
|
-
import "./_setup";
|
|
5
|
-
|
|
6
|
-
(async () => {
|
|
7
|
-
const mnemonics = process.env.MNEMONICS ?? BIP39.generateMnemonic();
|
|
8
|
-
console.log("mnemonics", mnemonics);
|
|
9
|
-
|
|
10
|
-
const sdk = await CarbonSDK.instance({
|
|
11
|
-
network: CarbonSDK.Network.LocalHost,
|
|
12
|
-
config: {
|
|
13
|
-
tmRpcUrl: process.env.TRPC_ENDPOINT,
|
|
14
|
-
},
|
|
15
|
-
});
|
|
16
|
-
const connectedSDK = await sdk.connectWithMnemonic(mnemonics);
|
|
17
|
-
console.log("connected sdk");
|
|
18
|
-
|
|
19
|
-
const result = await connectedSDK.cdp.removeCollateral({
|
|
20
|
-
vaultTypeId: 1,
|
|
21
|
-
amount: new BigNumber(100), // human
|
|
22
|
-
})
|
|
23
|
-
console.log(result)
|
|
24
|
-
})().catch(console.error).finally(() => process.exit(0));
|
package/examples/remove_debt.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as BIP39 from "bip39";
|
|
2
|
-
import { CarbonSDK } from "./_sdk";
|
|
3
|
-
import { BigNumber } from "bignumber.js";
|
|
4
|
-
import "./_setup";
|
|
5
|
-
|
|
6
|
-
(async () => {
|
|
7
|
-
const mnemonics = process.env.MNEMONICS ?? BIP39.generateMnemonic();
|
|
8
|
-
console.log("mnemonics", mnemonics);
|
|
9
|
-
|
|
10
|
-
const sdk = await CarbonSDK.instance({
|
|
11
|
-
network: CarbonSDK.Network.LocalHost,
|
|
12
|
-
config: {
|
|
13
|
-
tmRpcUrl: process.env.TRPC_ENDPOINT,
|
|
14
|
-
},
|
|
15
|
-
});
|
|
16
|
-
const connectedSDK = await sdk.connectWithMnemonic(mnemonics);
|
|
17
|
-
console.log("connected sdk");
|
|
18
|
-
|
|
19
|
-
const result = await connectedSDK.cdp.removeDebt({
|
|
20
|
-
vaultTypeId: 1,
|
|
21
|
-
amount: new BigNumber(100), // human
|
|
22
|
-
})
|
|
23
|
-
console.log(result)
|
|
24
|
-
})().catch(console.error).finally(() => process.exit(0));
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as BIP39 from "bip39";
|
|
2
|
-
import { CarbonSDK } from "./_sdk";
|
|
3
|
-
import { BigNumber } from "bignumber.js";
|
|
4
|
-
import Long from "long";
|
|
5
|
-
import "./_setup";
|
|
6
|
-
|
|
7
|
-
(async () => {
|
|
8
|
-
const mnemonics = process.env.MNEMONICS ?? BIP39.generateMnemonic();
|
|
9
|
-
console.log("mnemonics", mnemonics);
|
|
10
|
-
|
|
11
|
-
const sdk = await CarbonSDK.instance({
|
|
12
|
-
network: CarbonSDK.Network.LocalHost,
|
|
13
|
-
config: {
|
|
14
|
-
tmRpcUrl: process.env.TRPC_ENDPOINT,
|
|
15
|
-
},
|
|
16
|
-
});
|
|
17
|
-
const connectedSDK = await sdk.connectWithMnemonic(mnemonics);
|
|
18
|
-
console.log("connected sdk");
|
|
19
|
-
|
|
20
|
-
const result = await connectedSDK.lp.removeLiquidity({
|
|
21
|
-
poolId: 1,
|
|
22
|
-
shares: new BigNumber(10), // human
|
|
23
|
-
})
|
|
24
|
-
console.log(result)
|
|
25
|
-
})().catch(console.error).finally(() => process.exit(0));
|
package/examples/send_tokens.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as BIP39 from "bip39";
|
|
2
|
-
import { CarbonSDK } from "./_sdk";
|
|
3
|
-
import "./_setup";
|
|
4
|
-
|
|
5
|
-
(async () => {
|
|
6
|
-
const mnemonics = process.env.MNEMONICS ?? BIP39.generateMnemonic();
|
|
7
|
-
console.log("mnemonics", mnemonics);
|
|
8
|
-
|
|
9
|
-
const sdk = await CarbonSDK.instance({
|
|
10
|
-
network: CarbonSDK.Network.LocalHost,
|
|
11
|
-
config: {
|
|
12
|
-
tmRpcUrl: process.env.TRPC_ENDPOINT,
|
|
13
|
-
},
|
|
14
|
-
});
|
|
15
|
-
const connectedSDK = await sdk.connectWithMnemonic(mnemonics);
|
|
16
|
-
console.log("connected sdk");
|
|
17
|
-
|
|
18
|
-
const result = await connectedSDK.bank.sendTokens({
|
|
19
|
-
fromAddress: connectedSDK.wallet.bech32Address,
|
|
20
|
-
toAddress: "tswth1mw90en8tcqnvdjhp64qmyhuq4qasvhy2s6st4t",
|
|
21
|
-
amount: [{
|
|
22
|
-
amount: '1000',
|
|
23
|
-
denom: "swth",
|
|
24
|
-
}],
|
|
25
|
-
})
|
|
26
|
-
console.log(result)
|
|
27
|
-
})().catch(console.error).finally(() => process.exit(0));
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as BIP39 from "bip39";
|
|
2
|
-
import { CarbonSDK } from "./_sdk";
|
|
3
|
-
import "./_setup";
|
|
4
|
-
|
|
5
|
-
(async () => {
|
|
6
|
-
const mnemonics = process.env.MNEMONICS ?? BIP39.generateMnemonic();
|
|
7
|
-
console.log("mnemonics", mnemonics);
|
|
8
|
-
|
|
9
|
-
const sdk = await CarbonSDK.instance({
|
|
10
|
-
network: CarbonSDK.Network.LocalHost,
|
|
11
|
-
config: {
|
|
12
|
-
tmRpcUrl: process.env.TRPC_ENDPOINT,
|
|
13
|
-
},
|
|
14
|
-
});
|
|
15
|
-
const connectedSDK = await sdk.connectWithMnemonic(mnemonics);
|
|
16
|
-
console.log("connected sdk");
|
|
17
|
-
|
|
18
|
-
const result = await connectedSDK.admin.setCommitmentCurve({
|
|
19
|
-
maxDuration: 100,
|
|
20
|
-
maxRewardMultiplier: 100,
|
|
21
|
-
})
|
|
22
|
-
console.log(result)
|
|
23
|
-
})().catch(console.error).finally(() => process.exit(0));
|