carbon-js-sdk 0.2.7 → 0.2.9-dev.1
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 +42 -43
- 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 +1 -2
- package/lib/codec/book/genesis.js +1 -2
- package/lib/codec/book/query.d.ts +1 -2
- package/lib/codec/book/query.js +1 -2
- 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 +1 -2
- package/lib/codec/broker/genesis.js +1 -2
- 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 +3 -4
- package/lib/codec/broker/query.js +3 -4
- 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 +1 -2
- package/lib/codec/btcx/denom_cross_chain_info.js +1 -2
- 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 +1 -2
- package/lib/codec/btcx/query.js +1 -2
- 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 +1 -2
- package/lib/codec/ccm/genesis.js +1 -2
- 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 +226 -23
- package/lib/codec/cdp/event.js +1414 -81
- package/lib/codec/cdp/genesis.d.ts +57 -5
- package/lib/codec/cdp/genesis.js +417 -23
- package/lib/codec/cdp/params.d.ts +7 -5
- package/lib/codec/cdp/params.js +50 -6
- package/lib/codec/cdp/query.d.ts +191 -96
- package/lib/codec/cdp/query.js +676 -239
- 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/stablecoin_debt_info.d.ts +23 -0
- package/lib/codec/cdp/stablecoin_debt_info.js +157 -0
- package/lib/codec/cdp/tx.d.ts +466 -97
- package/lib/codec/cdp/tx.js +1961 -182
- 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 +1 -2
- package/lib/codec/coin/event.js +1 -2
- package/lib/codec/coin/genesis.d.ts +2 -3
- package/lib/codec/coin/genesis.js +2 -3
- package/lib/codec/coin/proposal.d.ts +1 -2
- package/lib/codec/coin/proposal.js +1 -2
- package/lib/codec/coin/query.d.ts +2 -6
- package/lib/codec/coin/query.js +2 -9
- package/lib/codec/coin/token.d.ts +11 -1
- package/lib/codec/coin/token.js +65 -2
- package/lib/codec/coin/tx.d.ts +1 -2
- package/lib/codec/coin/tx.js +1 -2
- 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 +1 -2
- package/lib/codec/cosmos/auth/v1beta1/genesis.js +1 -2
- package/lib/codec/cosmos/auth/v1beta1/query.d.ts +2 -3
- package/lib/codec/cosmos/auth/v1beta1/query.js +2 -3
- 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 +2 -3
- package/lib/codec/cosmos/authz/v1beta1/query.js +2 -3
- package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +1 -2
- package/lib/codec/cosmos/authz/v1beta1/tx.js +1 -2
- package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +1 -2
- package/lib/codec/cosmos/bank/v1beta1/authz.js +1 -2
- package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +1 -2
- package/lib/codec/cosmos/bank/v1beta1/bank.js +1 -2
- 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 +2 -3
- package/lib/codec/cosmos/bank/v1beta1/genesis.js +2 -3
- package/lib/codec/cosmos/bank/v1beta1/query.d.ts +3 -4
- package/lib/codec/cosmos/bank/v1beta1/query.js +3 -4
- package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +2 -3
- package/lib/codec/cosmos/bank/v1beta1/tx.js +2 -3
- 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 +1 -2
- package/lib/codec/cosmos/base/tendermint/v1beta1/query.js +1 -2
- 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 +1 -2
- package/lib/codec/cosmos/capability/v1beta1/genesis.js +1 -2
- package/lib/codec/cosmos/crisis/v1beta1/genesis.d.ts +1 -2
- package/lib/codec/cosmos/crisis/v1beta1/genesis.js +1 -2
- 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 +1 -2
- package/lib/codec/cosmos/distribution/v1beta1/distribution.js +1 -2
- 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 +2 -3
- package/lib/codec/cosmos/distribution/v1beta1/genesis.js +2 -3
- package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +3 -4
- package/lib/codec/cosmos/distribution/v1beta1/query.js +3 -4
- package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +1 -2
- package/lib/codec/cosmos/distribution/v1beta1/tx.js +1 -2
- 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 +1 -2
- package/lib/codec/cosmos/evidence/v1beta1/query.js +1 -2
- 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 +1 -2
- package/lib/codec/cosmos/feegrant/v1beta1/feegrant.js +1 -2
- package/lib/codec/cosmos/feegrant/v1beta1/genesis.d.ts +1 -2
- package/lib/codec/cosmos/feegrant/v1beta1/genesis.js +1 -2
- package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +2 -3
- package/lib/codec/cosmos/feegrant/v1beta1/query.js +2 -3
- 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 +1 -2
- package/lib/codec/cosmos/gov/v1beta1/genesis.js +1 -2
- package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +1 -2
- package/lib/codec/cosmos/gov/v1beta1/gov.js +1 -2
- package/lib/codec/cosmos/gov/v1beta1/query.d.ts +2 -3
- package/lib/codec/cosmos/gov/v1beta1/query.js +2 -3
- package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +2 -3
- package/lib/codec/cosmos/gov/v1beta1/tx.js +2 -3
- 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 +1 -2
- package/lib/codec/cosmos/mint/v1beta1/genesis.js +1 -2
- 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 +1 -2
- package/lib/codec/cosmos/mint/v1beta1/query.js +1 -2
- 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 +1 -2
- package/lib/codec/cosmos/params/v1beta1/query.js +1 -2
- 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 +1 -2
- package/lib/codec/cosmos/slashing/v1beta1/genesis.js +1 -2
- package/lib/codec/cosmos/slashing/v1beta1/query.d.ts +2 -3
- package/lib/codec/cosmos/slashing/v1beta1/query.js +2 -3
- 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 +1 -2
- package/lib/codec/cosmos/staking/v1beta1/authz.js +1 -2
- 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 +1 -2
- package/lib/codec/cosmos/staking/v1beta1/genesis.js +1 -2
- package/lib/codec/cosmos/staking/v1beta1/query.d.ts +2 -3
- package/lib/codec/cosmos/staking/v1beta1/query.js +2 -3
- package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +1 -2
- package/lib/codec/cosmos/staking/v1beta1/staking.js +1 -2
- package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +2 -3
- package/lib/codec/cosmos/staking/v1beta1/tx.js +2 -3
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +1 -2
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.js +1 -2
- 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 +3 -4
- package/lib/codec/cosmos/tx/v1beta1/service.js +3 -4
- package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +3 -4
- package/lib/codec/cosmos/tx/v1beta1/tx.js +3 -4
- package/lib/codec/cosmos/upgrade/v1beta1/query.d.ts +1 -2
- package/lib/codec/cosmos/upgrade/v1beta1/query.js +1 -2
- 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 +1 -2
- package/lib/codec/cosmos/vesting/v1beta1/tx.js +1 -2
- package/lib/codec/cosmos/vesting/v1beta1/vesting.d.ts +2 -3
- package/lib/codec/cosmos/vesting/v1beta1/vesting.js +2 -3
- 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 +1 -2
- package/lib/codec/fee/genesis.js +1 -2
- package/lib/codec/fee/proposal.d.ts +1 -2
- package/lib/codec/fee/proposal.js +1 -2
- package/lib/codec/fee/query.d.ts +1 -2
- package/lib/codec/fee/query.js +1 -2
- package/lib/codec/fee/tx.d.ts +1 -2
- package/lib/codec/fee/tx.js +1 -2
- 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 +1 -2
- package/lib/codec/headersync/genesis.js +1 -2
- package/lib/codec/headersync/query.d.ts +1 -2
- package/lib/codec/headersync/query.js +1 -2
- 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 +53 -23
- package/lib/codec/index.js +502 -385
- package/lib/codec/inflation/genesis.d.ts +1 -2
- package/lib/codec/inflation/genesis.js +1 -2
- package/lib/codec/inflation/inflation.d.ts +0 -1
- package/lib/codec/inflation/inflation.js +0 -1
- package/lib/codec/inflation/query.d.ts +1 -2
- package/lib/codec/inflation/query.js +1 -2
- 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 +1 -2
- package/lib/codec/insurance/genesis.js +1 -2
- 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 +1 -2
- package/lib/codec/leverage/genesis.js +1 -2
- package/lib/codec/leverage/leverage.d.ts +0 -1
- package/lib/codec/leverage/leverage.js +0 -1
- package/lib/codec/leverage/query.d.ts +1 -2
- package/lib/codec/leverage/query.js +1 -2
- package/lib/codec/leverage/tx.d.ts +0 -1
- package/lib/codec/leverage/tx.js +0 -1
- package/lib/codec/liquidation/genesis.d.ts +1 -2
- package/lib/codec/liquidation/genesis.js +1 -2
- 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 +1 -2
- package/lib/codec/liquidation/query.js +1 -2
- package/lib/codec/liquidation/quote_changes.d.ts +1 -2
- package/lib/codec/liquidation/quote_changes.js +1 -2
- package/lib/codec/liquidation/tx.d.ts +0 -1
- package/lib/codec/liquidation/tx.js +0 -1
- package/lib/codec/liquiditypool/event.d.ts +2 -3
- package/lib/codec/liquiditypool/event.js +2 -3
- package/lib/codec/liquiditypool/genesis.d.ts +2 -3
- package/lib/codec/liquiditypool/genesis.js +2 -3
- package/lib/codec/liquiditypool/liquiditypool.d.ts +0 -1
- package/lib/codec/liquiditypool/liquiditypool.js +0 -1
- package/lib/codec/liquiditypool/proposal.d.ts +1 -2
- package/lib/codec/liquiditypool/proposal.js +1 -2
- package/lib/codec/liquiditypool/query.d.ts +2 -3
- package/lib/codec/liquiditypool/query.js +2 -3
- package/lib/codec/liquiditypool/reward.d.ts +0 -1
- package/lib/codec/liquiditypool/reward.js +0 -1
- package/lib/codec/liquiditypool/tx.d.ts +1 -2
- package/lib/codec/liquiditypool/tx.js +1 -2
- 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 +1 -2
- package/lib/codec/lockproxy/genesis.js +1 -2
- package/lib/codec/lockproxy/lockproxy.d.ts +0 -1
- package/lib/codec/lockproxy/lockproxy.js +0 -1
- package/lib/codec/lockproxy/query.d.ts +1 -2
- package/lib/codec/lockproxy/query.js +1 -2
- package/lib/codec/lockproxy/tx.d.ts +0 -1
- package/lib/codec/lockproxy/tx.js +0 -1
- package/lib/codec/market/event.d.ts +1 -2
- package/lib/codec/market/event.js +1 -2
- package/lib/codec/market/genesis.d.ts +2 -2
- package/lib/codec/market/genesis.js +20 -3
- 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 +1 -2
- package/lib/codec/market/proposal.js +1 -2
- package/lib/codec/market/query.d.ts +1 -2
- package/lib/codec/market/query.js +1 -2
- package/lib/codec/market/tx.d.ts +1 -2
- package/lib/codec/market/tx.js +1 -2
- package/lib/codec/marketstats/genesis.d.ts +1 -2
- package/lib/codec/marketstats/genesis.js +1 -2
- 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 +2 -3
- package/lib/codec/marketstats/query.js +2 -3
- 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 +1 -2
- package/lib/codec/misc/message.js +1 -2
- 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 +3 -4
- package/lib/codec/misc/query.js +3 -4
- package/lib/codec/misc/trade.d.ts +1 -1
- package/lib/codec/misc/trade.js +17 -1
- package/lib/codec/misc/transaction.d.ts +1 -2
- package/lib/codec/misc/transaction.js +1 -2
- package/lib/codec/oracle/event.d.ts +1 -2
- package/lib/codec/oracle/event.js +1 -2
- package/lib/codec/oracle/genesis.d.ts +1 -2
- package/lib/codec/oracle/genesis.js +1 -2
- package/lib/codec/oracle/oracle.d.ts +0 -1
- package/lib/codec/oracle/oracle.js +0 -1
- package/lib/codec/oracle/proposal.d.ts +1 -2
- package/lib/codec/oracle/proposal.js +1 -2
- package/lib/codec/oracle/query.d.ts +2 -3
- package/lib/codec/oracle/query.js +2 -3
- 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 +1 -2
- package/lib/codec/order/event.js +1 -2
- package/lib/codec/order/genesis.d.ts +1 -2
- package/lib/codec/order/genesis.js +1 -2
- package/lib/codec/order/order.d.ts +0 -1
- package/lib/codec/order/order.js +0 -1
- package/lib/codec/order/query.d.ts +1 -2
- package/lib/codec/order/query.js +1 -2
- 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 +1 -2
- package/lib/codec/position/event.js +1 -2
- package/lib/codec/position/genesis.d.ts +1 -2
- package/lib/codec/position/genesis.js +1 -2
- package/lib/codec/position/position.d.ts +0 -1
- package/lib/codec/position/position.js +0 -1
- package/lib/codec/position/query.d.ts +1 -2
- package/lib/codec/position/query.js +1 -2
- package/lib/codec/position/tx.d.ts +0 -1
- package/lib/codec/position/tx.js +0 -1
- package/lib/codec/pricing/event.d.ts +11 -2
- package/lib/codec/pricing/event.js +52 -3
- package/lib/codec/pricing/genesis.d.ts +2 -2
- package/lib/codec/pricing/genesis.js +20 -6
- package/lib/codec/pricing/pricing.d.ts +13 -1
- package/lib/codec/pricing/pricing.js +83 -2
- package/lib/codec/pricing/proposal.d.ts +0 -1
- package/lib/codec/pricing/proposal.js +0 -1
- package/lib/codec/pricing/query.d.ts +1 -2
- package/lib/codec/pricing/query.js +1 -2
- package/lib/codec/pricing/tx.d.ts +0 -1
- package/lib/codec/pricing/tx.js +0 -1
- package/lib/codec/profile/event.d.ts +1 -2
- package/lib/codec/profile/event.js +1 -2
- package/lib/codec/profile/genesis.d.ts +1 -2
- package/lib/codec/profile/genesis.js +1 -2
- package/lib/codec/profile/profile.d.ts +0 -1
- package/lib/codec/profile/profile.js +0 -1
- package/lib/codec/profile/query.d.ts +1 -2
- package/lib/codec/profile/query.js +1 -2
- 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 +1 -2
- package/lib/codec/subaccount/genesis.js +1 -2
- package/lib/codec/subaccount/query.d.ts +1 -2
- package/lib/codec/subaccount/query.js +1 -2
- 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 +4 -5
- package/lib/codec/tendermint/abci/types.js +4 -5
- 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 +2 -3
- package/lib/codec/tendermint/types/block.js +2 -3
- package/lib/codec/tendermint/types/evidence.d.ts +2 -3
- package/lib/codec/tendermint/types/evidence.js +2 -3
- 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 +3 -4
- package/lib/codec/tendermint/types/types.js +3 -4
- package/lib/codec/tendermint/types/validator.d.ts +1 -2
- package/lib/codec/tendermint/types/validator.js +1 -2
- 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 +53 -2
- package/lib/modules/admin.js +174 -43
- 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 +55 -13
- package/lib/modules/cdp.js +134 -21
- 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 +48 -8
- 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 +72 -33
- 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 +42 -15
- 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 +26 -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 +63 -1
- package/lib/websocket/models.js +0 -1
- package/lib/websocket/types.d.ts +38 -4
- package/lib/websocket/types.js +16 -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/lib/CarbonSDK.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { Network, Network as _Network, NetworkConfig } from "./constant";
|
|
3
|
-
import { OfflineDirectSigner, OfflineSigner } from "@cosmjs/proto-signing";
|
|
4
3
|
import { Tendermint34Client } from "@cosmjs/tendermint-rpc";
|
|
5
4
|
import { CarbonQueryClient, ETHClient, HydrogenClient, InsightsQueryClient, NEOClient, TokenClient, ZILClient } from "./clients";
|
|
6
5
|
import N3Client from "./clients/N3Client";
|
|
@@ -70,7 +69,7 @@ declare class CarbonSDK {
|
|
|
70
69
|
static instanceWithWallet(wallet: CarbonWallet, sdkOpts?: CarbonSDKInitOpts): Promise<ConnectedCarbonSDK>;
|
|
71
70
|
static instanceWithPrivateKey(privateKey: string | Buffer, sdkOpts?: CarbonSDKInitOpts, walletOpts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
|
|
72
71
|
static instanceWithMnemonic(mnemonic: string, sdkOpts?: CarbonSDKInitOpts, walletOpts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
|
|
73
|
-
static instanceWithSigner(signer: CarbonSigner, publicKeyBase64: string, sdkOpts?: CarbonSDKInitOpts, walletOpts?: CarbonWalletGenericOpts
|
|
72
|
+
static instanceWithSigner(signer: CarbonSigner, publicKeyBase64: string, sdkOpts?: CarbonSDKInitOpts, walletOpts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
|
|
74
73
|
static instanceWithLedger(ledger: CosmosLedger, sdkOpts?: CarbonSDKInitOpts, walletOpts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
|
|
75
74
|
static instanceWithKeplr(keplr: Keplr, sdkOpts?: CarbonSDKInitOpts, walletOpts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
|
|
76
75
|
static instanceViewOnly(bech32Address: string, sdkOpts?: CarbonSDKInitOpts, walletOpts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
|
|
@@ -81,7 +80,7 @@ declare class CarbonSDK {
|
|
|
81
80
|
disconnect(): CarbonSDK;
|
|
82
81
|
connectWithPrivateKey(privateKey: string | Buffer, opts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
|
|
83
82
|
connectWithMnemonic(mnemonic: string, opts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
|
|
84
|
-
connectWithSigner(signer: CarbonSigner, publicKeyBase64: string, opts?: CarbonWalletGenericOpts
|
|
83
|
+
connectWithSigner(signer: CarbonSigner, publicKeyBase64: string, opts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
|
|
85
84
|
connectWithLedger(ledger: CosmosLedger, opts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
|
|
86
85
|
connectWithKeplr(keplr: Keplr, opts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
|
|
87
86
|
connectViewOnly(bech32Address: string, opts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
|
|
@@ -101,4 +100,3 @@ declare namespace CarbonSDK {
|
|
|
101
100
|
export import Network = _Network;
|
|
102
101
|
}
|
|
103
102
|
export default CarbonSDK;
|
|
104
|
-
//# sourceMappingURL=CarbonSDK.d.ts.map
|
package/lib/CarbonSDK.js
CHANGED
|
@@ -124,10 +124,10 @@ class CarbonSDK {
|
|
|
124
124
|
return sdk.connectWithMnemonic(mnemonic, walletOpts);
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
|
-
static instanceWithSigner(signer, publicKeyBase64, sdkOpts = DEFAULT_SDK_INIT_OPTS, walletOpts
|
|
127
|
+
static instanceWithSigner(signer, publicKeyBase64, sdkOpts = DEFAULT_SDK_INIT_OPTS, walletOpts) {
|
|
128
128
|
return __awaiter(this, void 0, void 0, function* () {
|
|
129
129
|
const sdk = yield CarbonSDK.instance(sdkOpts);
|
|
130
|
-
return sdk.connectWithSigner(signer, publicKeyBase64, walletOpts
|
|
130
|
+
return sdk.connectWithSigner(signer, publicKeyBase64, walletOpts);
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
static instanceWithLedger(ledger, sdkOpts = DEFAULT_SDK_INIT_OPTS, walletOpts) {
|
|
@@ -202,9 +202,9 @@ class CarbonSDK {
|
|
|
202
202
|
return this.connect(wallet);
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
|
-
connectWithSigner(signer, publicKeyBase64, opts
|
|
205
|
+
connectWithSigner(signer, publicKeyBase64, opts) {
|
|
206
206
|
return __awaiter(this, void 0, void 0, function* () {
|
|
207
|
-
const wallet = wallet_1.CarbonWallet.withSigner(signer, publicKeyBase64, Object.assign(Object.assign({}, opts), { network: this.network, config: this.configOverride
|
|
207
|
+
const wallet = wallet_1.CarbonWallet.withSigner(signer, publicKeyBase64, Object.assign(Object.assign({}, opts), { network: this.network, config: this.configOverride }));
|
|
208
208
|
return this.connect(wallet);
|
|
209
209
|
});
|
|
210
210
|
}
|
|
@@ -269,4 +269,3 @@ exports.ConnectedCarbonSDK = ConnectedCarbonSDK;
|
|
|
269
269
|
CarbonSDK.Network = constant_1.Network;
|
|
270
270
|
})(CarbonSDK || (CarbonSDK = {}));
|
|
271
271
|
exports.default = CarbonSDK;
|
|
272
|
-
//# sourceMappingURL=CarbonSDK.js.map
|
package/lib/clients/ETHClient.js
CHANGED
|
@@ -105,8 +105,7 @@ class HydrogenClient {
|
|
|
105
105
|
}
|
|
106
106
|
getFeeQuote(req) {
|
|
107
107
|
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
-
|
|
109
|
-
// this.checkState();
|
|
108
|
+
this.checkState();
|
|
110
109
|
const request = this.apiManager.path('fee_quote', {}, Object.assign({}, req));
|
|
111
110
|
const response = yield request.get();
|
|
112
111
|
const result = response.data;
|
|
@@ -115,4 +114,3 @@ class HydrogenClient {
|
|
|
115
114
|
}
|
|
116
115
|
}
|
|
117
116
|
exports.default = HydrogenClient;
|
|
118
|
-
//# sourceMappingURL=HydrogenClient.js.map
|
|
@@ -34,4 +34,3 @@ declare class InsightsQueryClient {
|
|
|
34
34
|
FundingHistory(query: Insights.QueryGetFundingRateRequest): Promise<Insights.InsightsQueryResponse<Insights.QueryGetFundingRateResponse>>;
|
|
35
35
|
}
|
|
36
36
|
export default InsightsQueryClient;
|
|
37
|
-
//# sourceMappingURL=InsightsQueryClient.d.ts.map
|
package/lib/clients/N3Client.js
CHANGED
package/lib/clients/NEOClient.js
CHANGED
|
@@ -37,8 +37,8 @@ const util_1 = require("../util");
|
|
|
37
37
|
const address_1 = require("../util/address");
|
|
38
38
|
const blockchain_1 = require("../util/blockchain");
|
|
39
39
|
const generic_1 = require("../util/generic");
|
|
40
|
-
const
|
|
41
|
-
const neon_js_1 =
|
|
40
|
+
const Neon = __importStar(require("@cityofzion/neon-core"));
|
|
41
|
+
const neon_js_1 = require("@cityofzion/neon-js");
|
|
42
42
|
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
43
43
|
const ethers_1 = require("ethers");
|
|
44
44
|
const lodash_1 = require("lodash");
|
|
@@ -57,16 +57,16 @@ class NEOClient {
|
|
|
57
57
|
if (!hex || typeof (hex) !== "string")
|
|
58
58
|
return "0";
|
|
59
59
|
const res = hex.length % 2 !== 0 ? `0${hex}` : hex;
|
|
60
|
-
return new bignumber_js_1.default(res ?
|
|
60
|
+
return new bignumber_js_1.default(res ? Neon.u.reverseHex(res) : "00", 16).shiftedBy(-exp).toString();
|
|
61
61
|
}
|
|
62
62
|
getExternalBalances(sdk, address, url, whitelistDenoms) {
|
|
63
63
|
return __awaiter(this, void 0, void 0, function* () {
|
|
64
64
|
const tokenQueryResults = yield sdk.token.getAllTokens();
|
|
65
|
-
const account = new
|
|
65
|
+
const account = new Neon.wallet.Account(address);
|
|
66
66
|
const tokens = tokenQueryResults.filter(token => (0, blockchain_1.blockchainForChainId)(token.chainId.toNumber()) == this.blockchain &&
|
|
67
67
|
token.tokenAddress.length == 40 &&
|
|
68
68
|
token.bridgeAddress.length == 40);
|
|
69
|
-
const client = new
|
|
69
|
+
const client = new Neon.rpc.RPCClient(url, "2.5.2"); // TODO: should we change the RPC version??
|
|
70
70
|
// NOTE: fetching of tokens is chunked in sets of 15 as we may hit
|
|
71
71
|
// the gas limit on the RPC node and error out otherwise
|
|
72
72
|
const promises = (0, lodash_1.chunk)(tokens, 75).map((partition) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -75,8 +75,8 @@ class NEOClient {
|
|
|
75
75
|
for (const token of partition) {
|
|
76
76
|
if (whitelistDenoms && !whitelistDenoms.includes(token.denom))
|
|
77
77
|
continue;
|
|
78
|
-
const sb = new
|
|
79
|
-
sb.emitAppCall(
|
|
78
|
+
const sb = new Neon.sc.ScriptBuilder();
|
|
79
|
+
sb.emitAppCall(Neon.u.reverseHex(token.tokenAddress), "balanceOf", [Neon.u.reverseHex(account.scriptHash)]);
|
|
80
80
|
try {
|
|
81
81
|
const response = yield client.invokeScript(sb.str);
|
|
82
82
|
acc[token.denom.toUpperCase()] = ((_a = response.stack[0]) === null || _a === void 0 ? void 0 : _a.type) === "Integer" // Happens on polychain devnet
|
|
@@ -102,13 +102,13 @@ class NEOClient {
|
|
|
102
102
|
}
|
|
103
103
|
lockDeposit(token, feeAmountInput, swthAddress, neoPrivateKey) {
|
|
104
104
|
return __awaiter(this, void 0, void 0, function* () {
|
|
105
|
-
const account =
|
|
105
|
+
const account = new Neon.wallet.Account(neoPrivateKey);
|
|
106
106
|
const networkConfig = this.getNetworkConfig();
|
|
107
|
-
const scriptHash =
|
|
107
|
+
const scriptHash = Neon.u.reverseHex(token.bridgeAddress);
|
|
108
108
|
const fromAssetHash = token.tokenAddress;
|
|
109
|
-
const fromAddress =
|
|
109
|
+
const fromAddress = Neon.u.reverseHex(account.scriptHash);
|
|
110
110
|
const targetProxyHash = this.getTargetProxyHash(token);
|
|
111
|
-
const toAssetHash =
|
|
111
|
+
const toAssetHash = Neon.u.str2hexstring(token.id);
|
|
112
112
|
const addressBytes = address_1.SWTHAddress.getAddressBytes(swthAddress, networkConfig.network);
|
|
113
113
|
const toAddress = (0, generic_1.stripHexPrefix)(ethers_1.ethers.utils.hexlify(addressBytes));
|
|
114
114
|
const amount = ethers_1.ethers.BigNumber.from(token.externalBalance);
|
|
@@ -118,7 +118,7 @@ class NEOClient {
|
|
|
118
118
|
if (amount.lt(feeAmount)) {
|
|
119
119
|
return false;
|
|
120
120
|
}
|
|
121
|
-
const sb =
|
|
121
|
+
const sb = new Neon.sc.ScriptBuilder();
|
|
122
122
|
sb.emitAppCall(scriptHash, "lock", [
|
|
123
123
|
fromAssetHash,
|
|
124
124
|
fromAddress,
|
|
@@ -134,7 +134,7 @@ class NEOClient {
|
|
|
134
134
|
const apiProvider = networkConfig.network === CarbonSDK_1.default.Network.MainNet
|
|
135
135
|
? new neon_js_1.api.neonDB.instance("https://api.switcheo.network")
|
|
136
136
|
: new neon_js_1.api.neoCli.instance(rpcUrl);
|
|
137
|
-
return neon_js_1.
|
|
137
|
+
return neon_js_1.api.doInvoke({
|
|
138
138
|
api: apiProvider,
|
|
139
139
|
url: rpcUrl,
|
|
140
140
|
account,
|
|
@@ -152,26 +152,26 @@ class NEOClient {
|
|
|
152
152
|
}
|
|
153
153
|
const publicKeyOutput = yield o3Wallet.getPublicKeyOutput();
|
|
154
154
|
const networkConfig = this.getNetworkConfig();
|
|
155
|
-
const scriptHash =
|
|
156
|
-
const fromAssetHash =
|
|
155
|
+
const scriptHash = Neon.u.reverseHex(token.bridgeAddress);
|
|
156
|
+
const fromAssetHash = Neon.u.reverseHex(token.tokenAddress);
|
|
157
157
|
const fromAddress = util_1.AddressUtils.NEOAddress.publicKeyToAddress(publicKeyOutput.publicKey);
|
|
158
158
|
const targetProxyHash = this.getTargetProxyHash(token);
|
|
159
|
-
const toAssetHash =
|
|
159
|
+
const toAssetHash = Neon.u.str2hexstring(token.id);
|
|
160
160
|
const toAddress = (0, generic_1.stripHexPrefix)(ethers_1.ethers.utils.hexlify(address));
|
|
161
161
|
const nonce = Math.floor(Math.random() * 1000000);
|
|
162
162
|
if (amount.lt(feeAmount)) {
|
|
163
163
|
throw new Error("Invalid amount");
|
|
164
164
|
}
|
|
165
165
|
const data = [
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
166
|
+
Neon.sc.ContractParam.hash160(fromAssetHash),
|
|
167
|
+
Neon.sc.ContractParam.hash160(fromAddress),
|
|
168
|
+
Neon.sc.ContractParam.byteArray(targetProxyHash, "hex"),
|
|
169
|
+
Neon.sc.ContractParam.byteArray(toAssetHash, "hex"),
|
|
170
|
+
Neon.sc.ContractParam.byteArray(toAddress, "hex"),
|
|
171
|
+
Neon.sc.ContractParam.integer(amount.toNumber()),
|
|
172
|
+
Neon.sc.ContractParam.integer(feeAmount.toNumber()),
|
|
173
|
+
Neon.sc.ContractParam.byteArray(networkConfig.feeAddress, "hex"),
|
|
174
|
+
Neon.sc.ContractParam.integer(nonce),
|
|
175
175
|
];
|
|
176
176
|
const tx = yield o3Wallet.getDAPI().invoke({
|
|
177
177
|
scriptHash,
|
|
@@ -186,20 +186,20 @@ class NEOClient {
|
|
|
186
186
|
var _a;
|
|
187
187
|
return __awaiter(this, void 0, void 0, function* () {
|
|
188
188
|
const { feeAmount, address, amount, token, ledger, signCompleteCallback, } = params;
|
|
189
|
-
const compressedPublicKey =
|
|
189
|
+
const compressedPublicKey = Neon.wallet.getPublicKeyEncoded(ledger.publicKey);
|
|
190
190
|
const networkConfig = this.getNetworkConfig();
|
|
191
|
-
const scriptHash =
|
|
191
|
+
const scriptHash = Neon.u.reverseHex(token.bridgeAddress);
|
|
192
192
|
const fromAssetHash = token.tokenAddress;
|
|
193
193
|
const fromAddress = ledger.scriptHash;
|
|
194
194
|
const targetProxyHash = this.getTargetProxyHash(token);
|
|
195
|
-
const toAssetHash =
|
|
195
|
+
const toAssetHash = Neon.u.str2hexstring(token.id);
|
|
196
196
|
const toAddress = (0, generic_1.stripHexPrefix)(ethers_1.ethers.utils.hexlify(address));
|
|
197
197
|
const feeAddress = networkConfig.feeAddress;
|
|
198
198
|
const nonce = Math.floor(Math.random() * 1000000);
|
|
199
199
|
if (amount.lt(feeAmount)) {
|
|
200
200
|
throw new Error("Invalid amount");
|
|
201
201
|
}
|
|
202
|
-
const sb =
|
|
202
|
+
const sb = new Neon.sc.ScriptBuilder();
|
|
203
203
|
const data = [
|
|
204
204
|
fromAssetHash,
|
|
205
205
|
fromAddress,
|
|
@@ -217,12 +217,12 @@ class NEOClient {
|
|
|
217
217
|
? new neon_js_1.api.neonDB.instance("https://api.switcheo.network")
|
|
218
218
|
: new neon_js_1.api.neoCli.instance(rpcUrl);
|
|
219
219
|
let invokeTxConfig = {
|
|
220
|
-
account: Object.assign(Object.assign({},
|
|
220
|
+
account: Object.assign(Object.assign({}, new Neon.wallet.Account("")), {
|
|
221
221
|
// overwrite the address and public key to values provided by the ledger.
|
|
222
222
|
address: ledger.displayAddress, publicKey: compressedPublicKey }),
|
|
223
223
|
signingFunction: (tx, publicKey) => __awaiter(this, void 0, void 0, function* () {
|
|
224
224
|
const signature = yield ledger.sign(tx);
|
|
225
|
-
const witness =
|
|
225
|
+
const witness = Neon.tx.Witness.fromSignature(signature, publicKey);
|
|
226
226
|
return witness.serialize();
|
|
227
227
|
}),
|
|
228
228
|
api: apiProvider,
|
|
@@ -250,25 +250,25 @@ class NEOClient {
|
|
|
250
250
|
var _a, _b, _c, _d, _e;
|
|
251
251
|
return __awaiter(this, void 0, void 0, function* () {
|
|
252
252
|
const url = this.getProviderUrl();
|
|
253
|
-
const sb =
|
|
253
|
+
const sb = new Neon.sc.ScriptBuilder();
|
|
254
254
|
sb.emitAppCall(scriptHash, "symbol", []);
|
|
255
255
|
sb.emitAppCall(scriptHash, "name", []);
|
|
256
256
|
sb.emitAppCall(scriptHash, "decimals", []);
|
|
257
|
-
const response = yield
|
|
257
|
+
const response = yield Neon.rpc.Query.invokeScript(sb.str).execute(url);
|
|
258
258
|
if (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.state) !== "HALT")
|
|
259
259
|
throw new Error("retrieve failed");
|
|
260
|
-
const symbol =
|
|
261
|
-
const name =
|
|
260
|
+
const symbol = Neon.u.hexstring2str((_b = response.result.stack) === null || _b === void 0 ? void 0 : _b[0].value);
|
|
261
|
+
const name = Neon.u.hexstring2str((_c = response.result.stack) === null || _c === void 0 ? void 0 : _c[1].value);
|
|
262
262
|
const decimals = parseInt((_e = (_d = response.result.stack) === null || _d === void 0 ? void 0 : _d[2].value) !== null && _e !== void 0 ? _e : "0", 10);
|
|
263
263
|
return { address: scriptHash, decimals, name, symbol };
|
|
264
264
|
});
|
|
265
265
|
}
|
|
266
266
|
wrapNeoToNneo(neoAmount, neoPrivateKey) {
|
|
267
267
|
return __awaiter(this, void 0, void 0, function* () {
|
|
268
|
-
const account =
|
|
268
|
+
const account = new Neon.wallet.Account(neoPrivateKey);
|
|
269
269
|
const rpcUrl = yield this.getProviderUrl();
|
|
270
270
|
const wrapperContractScriptHash = this.getConfig().wrapperScriptHash;
|
|
271
|
-
const wrapperContractAddress =
|
|
271
|
+
const wrapperContractAddress = Neon.wallet.getAddressFromScriptHash(wrapperContractScriptHash);
|
|
272
272
|
// Build config
|
|
273
273
|
const intent = neon_js_1.api.makeIntent({ NEO: neoAmount.toNumber() }, wrapperContractAddress);
|
|
274
274
|
const props = {
|
|
@@ -276,7 +276,7 @@ class NEOClient {
|
|
|
276
276
|
operation: "mintTokens",
|
|
277
277
|
args: []
|
|
278
278
|
};
|
|
279
|
-
const script =
|
|
279
|
+
const script = Neon.sc.createScript(props);
|
|
280
280
|
const networkConfig = this.getNetworkConfig();
|
|
281
281
|
const apiProvider = networkConfig.network === CarbonSDK_1.default.Network.MainNet
|
|
282
282
|
? new neon_js_1.api.neonDB.instance("https://api.switcheo.network")
|
|
@@ -289,19 +289,19 @@ class NEOClient {
|
|
|
289
289
|
script: script
|
|
290
290
|
};
|
|
291
291
|
// Neon API
|
|
292
|
-
const response = yield neon_js_1.
|
|
292
|
+
const response = yield neon_js_1.api.doInvoke(config);
|
|
293
293
|
return response;
|
|
294
294
|
});
|
|
295
295
|
}
|
|
296
296
|
formatWithdrawalAddress(address) {
|
|
297
297
|
return __awaiter(this, void 0, void 0, function* () {
|
|
298
|
-
const isValidAddress =
|
|
298
|
+
const isValidAddress = Neon.wallet.isAddress(address);
|
|
299
299
|
if (!isValidAddress) {
|
|
300
300
|
throw new Error("invalid address");
|
|
301
301
|
}
|
|
302
|
-
const scriptHash =
|
|
302
|
+
const scriptHash = Neon.wallet.getScriptHashFromAddress(address);
|
|
303
303
|
// return the little endian version of the address
|
|
304
|
-
return
|
|
304
|
+
return Neon.u.reverseHex(scriptHash);
|
|
305
305
|
});
|
|
306
306
|
}
|
|
307
307
|
/**
|
|
@@ -333,4 +333,3 @@ NEOClient.BLOCKCHAIN_KEY = {
|
|
|
333
333
|
[blockchain_1.Blockchain.Neo]: "Neo",
|
|
334
334
|
};
|
|
335
335
|
exports.default = NEOClient;
|
|
336
|
-
//# sourceMappingURL=NEOClient.js.map
|
package/lib/clients/ZILClient.js
CHANGED
package/lib/clients/index.d.ts
CHANGED
|
@@ -6,4 +6,3 @@ export { default as ZILClient } from "./ZILClient";
|
|
|
6
6
|
export { default as TokenClient } from "./TokenClient";
|
|
7
7
|
export { default as InsightsQueryClient } from "./InsightsQueryClient";
|
|
8
8
|
export { default as HydrogenClient } from "./HydrogenClient";
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
package/lib/clients/index.js
CHANGED
|
@@ -20,4 +20,3 @@ var InsightsQueryClient_1 = require("./InsightsQueryClient");
|
|
|
20
20
|
Object.defineProperty(exports, "InsightsQueryClient", { enumerable: true, get: function () { return __importDefault(InsightsQueryClient_1).default; } });
|
|
21
21
|
var HydrogenClient_1 = require("./HydrogenClient");
|
|
22
22
|
Object.defineProperty(exports, "HydrogenClient", { enumerable: true, get: function () { return __importDefault(HydrogenClient_1).default; } });
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
package/lib/codec/adl/genesis.js
CHANGED
package/lib/codec/adl/query.d.ts
CHANGED
package/lib/codec/adl/query.js
CHANGED
package/lib/codec/adl/tx.d.ts
CHANGED
package/lib/codec/adl/tx.js
CHANGED
package/lib/codec/bank/event.js
CHANGED
package/lib/codec/bank/query.js
CHANGED
package/lib/codec/bank/tx.d.ts
CHANGED
package/lib/codec/bank/tx.js
CHANGED
package/lib/codec/book/book.d.ts
CHANGED
package/lib/codec/book/book.js
CHANGED
package/lib/codec/book/event.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { OrderBook, StopBook } from "
|
|
3
|
+
import { OrderBook, StopBook } from "./book";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.book";
|
|
5
5
|
/** GenesisState defines the book module's genesis state. */
|
|
6
6
|
export interface GenesisState {
|
|
@@ -23,4 +23,3 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? st
|
|
|
23
23
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
24
24
|
} : Partial<T>;
|
|
25
25
|
export {};
|
|
26
|
-
//# sourceMappingURL=genesis.d.ts.map
|
|
@@ -7,7 +7,7 @@ exports.GenesisState = exports.protobufPackage = void 0;
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const book_1 = require("
|
|
10
|
+
const book_1 = require("./book");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.book";
|
|
12
12
|
const baseGenesisState = {};
|
|
13
13
|
exports.GenesisState = {
|
|
@@ -77,4 +77,3 @@ if (minimal_1.default.util.Long !== long_1.default) {
|
|
|
77
77
|
minimal_1.default.util.Long = long_1.default;
|
|
78
78
|
minimal_1.default.configure();
|
|
79
79
|
}
|
|
80
|
-
//# sourceMappingURL=genesis.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { OrderBook } from "
|
|
3
|
+
import { OrderBook } from "./book";
|
|
4
4
|
import { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination";
|
|
5
5
|
export declare const protobufPackage = "Switcheo.carbon.book";
|
|
6
6
|
/** this line is used by starport scaffolding # 3 */
|
|
@@ -66,4 +66,3 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? st
|
|
|
66
66
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
67
67
|
} : Partial<T>;
|
|
68
68
|
export {};
|
|
69
|
-
//# sourceMappingURL=query.d.ts.map
|
package/lib/codec/book/query.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.QueryClientImpl = exports.QueryAllBookResponse = exports.QueryAllBookReq
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const book_1 = require("
|
|
10
|
+
const book_1 = require("./book");
|
|
11
11
|
const pagination_1 = require("../cosmos/base/query/v1beta1/pagination");
|
|
12
12
|
exports.protobufPackage = "Switcheo.carbon.book";
|
|
13
13
|
const baseQueryGetBookRequest = { market: "" };
|
|
@@ -242,4 +242,3 @@ if (minimal_1.default.util.Long !== long_1.default) {
|
|
|
242
242
|
minimal_1.default.util.Long = long_1.default;
|
|
243
243
|
minimal_1.default.configure();
|
|
244
244
|
}
|
|
245
|
-
//# sourceMappingURL=query.js.map
|
package/lib/codec/book/tx.d.ts
CHANGED
package/lib/codec/book/tx.js
CHANGED
package/lib/codec/broker/amm.js
CHANGED