@ledgerhq/live-common 21.36.3 → 22.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -3
- package/lib/__tests__/families/bitcoin/wallet-btc/xpub.pickingStrategies.integration.test.js +5 -5
- package/lib/__tests__/families/bitcoin/wallet-btc/xpub.pickingStrategies.integration.test.js.map +1 -1
- package/lib/__tests__/test-helpers/bridge.d.ts.map +1 -1
- package/lib/__tests__/test-helpers/bridge.js +11 -9
- package/lib/__tests__/test-helpers/bridge.js.map +1 -1
- package/lib/__tests__/test-helpers/libcore-setup.d.ts.map +1 -1
- package/lib/__tests__/test-helpers/libcore-setup.js +0 -6
- package/lib/__tests__/test-helpers/libcore-setup.js.map +1 -1
- package/lib/__tests__/test-helpers/libcore-setup.native.d.ts +0 -1
- package/lib/__tests__/test-helpers/libcore-setup.native.d.ts.map +1 -1
- package/lib/__tests__/test-helpers/libcore-setup.native.js +0 -1
- package/lib/__tests__/test-helpers/libcore-setup.native.js.map +1 -1
- package/lib/__tests__/test-helpers/setup.js +2 -1
- package/lib/__tests__/test-helpers/setup.js.map +1 -1
- package/lib/account/formatters.d.ts.map +1 -1
- package/lib/account/formatters.js +22 -7
- package/lib/account/formatters.js.map +1 -1
- package/lib/account/pending.d.ts +2 -1
- package/lib/account/pending.d.ts.map +1 -1
- package/lib/account/serialization.d.ts +6 -4
- package/lib/account/serialization.d.ts.map +1 -1
- package/lib/account/serialization.js +22 -7
- package/lib/account/serialization.js.map +1 -1
- package/lib/account/support.d.ts +0 -2
- package/lib/account/support.d.ts.map +1 -1
- package/lib/account/support.js +1 -22
- package/lib/account/support.js.map +1 -1
- package/lib/api/Ethereum.d.ts +6 -2
- package/lib/api/Ethereum.d.ts.map +1 -1
- package/lib/api/Ethereum.js +19 -3
- package/lib/api/Ethereum.js.map +1 -1
- package/lib/api/Ledger.d.ts.map +1 -1
- package/lib/api/Ledger.js +0 -9
- package/lib/api/Ledger.js.map +1 -1
- package/lib/api/explorerConfig/index.d.ts.map +1 -1
- package/lib/api/explorerConfig/index.js +7 -0
- package/lib/api/explorerConfig/index.js.map +1 -1
- package/lib/appSupportsQuitApp.d.ts +1 -0
- package/lib/appSupportsQuitApp.d.ts.map +1 -1
- package/lib/appSupportsQuitApp.js +1 -0
- package/lib/appSupportsQuitApp.js.map +1 -1
- package/lib/apps/support.d.ts.map +1 -1
- package/lib/apps/support.js +2 -1
- package/lib/apps/support.js.map +1 -1
- package/lib/bot/index.d.ts.map +1 -1
- package/lib/bot/index.js +16 -23
- package/lib/bot/index.js.map +1 -1
- package/lib/bridge/impl.d.ts.map +1 -1
- package/lib/bridge/impl.js +3 -13
- package/lib/bridge/impl.js.map +1 -1
- package/lib/bridge/jsHelpers.d.ts +2 -2
- package/lib/bridge/jsHelpers.d.ts.map +1 -1
- package/lib/bridge/jsHelpers.js.map +1 -1
- package/lib/cross.d.ts.map +1 -1
- package/lib/cross.js +6 -7
- package/lib/cross.js.map +1 -1
- package/lib/derivation.d.ts +0 -39
- package/lib/derivation.d.ts.map +1 -1
- package/lib/derivation.js +5 -86
- package/lib/derivation.js.map +1 -1
- package/lib/env.d.ts +15 -25
- package/lib/env.d.ts.map +1 -1
- package/lib/env.js +12 -23
- package/lib/env.js.map +1 -1
- package/lib/env.react.d.ts +1 -1
- package/lib/env.react.d.ts.map +1 -1
- package/lib/families/algorand/types.d.ts +0 -78
- package/lib/families/algorand/types.d.ts.map +1 -1
- package/lib/families/algorand/types.js +1 -154
- package/lib/families/algorand/types.js.map +1 -1
- package/lib/families/bitcoin/account.d.ts.map +1 -1
- package/lib/families/bitcoin/account.js +0 -1
- package/lib/families/bitcoin/account.js.map +1 -1
- package/lib/families/bitcoin/bridge.test.d.ts +2 -0
- package/lib/families/bitcoin/bridge.test.d.ts.map +1 -0
- package/lib/families/bitcoin/bridge.test.js +11 -0
- package/lib/families/bitcoin/bridge.test.js.map +1 -0
- package/lib/families/bitcoin/js-signOperation.d.ts.map +1 -1
- package/lib/families/bitcoin/js-signOperation.js.map +1 -1
- package/lib/families/bitcoin/js-synchronisation.d.ts.map +1 -1
- package/lib/families/bitcoin/js-synchronisation.js +6 -7
- package/lib/families/bitcoin/js-synchronisation.js.map +1 -1
- package/lib/families/bitcoin/logic.d.ts +2 -5
- package/lib/families/bitcoin/logic.d.ts.map +1 -1
- package/lib/families/bitcoin/logic.js +4 -123
- package/lib/families/bitcoin/logic.js.map +1 -1
- package/lib/families/bitcoin/networks.js +1 -1
- package/lib/families/bitcoin/networks.js.map +1 -1
- package/lib/families/bitcoin/serialization.d.ts +2 -2
- package/lib/families/bitcoin/serialization.d.ts.map +1 -1
- package/lib/families/bitcoin/serialization.js +2 -4
- package/lib/families/bitcoin/serialization.js.map +1 -1
- package/lib/families/bitcoin/specs.d.ts.map +1 -1
- package/lib/families/bitcoin/specs.js +8 -7
- package/lib/families/bitcoin/specs.js.map +1 -1
- package/lib/families/bitcoin/transaction.d.ts +1 -26
- package/lib/families/bitcoin/transaction.d.ts.map +1 -1
- package/lib/families/bitcoin/transaction.js +1 -239
- package/lib/families/bitcoin/transaction.js.map +1 -1
- package/lib/families/bitcoin/types.d.ts +0 -82
- package/lib/families/bitcoin/types.d.ts.map +1 -1
- package/lib/families/bitcoin/types.js +1 -118
- package/lib/families/bitcoin/types.js.map +1 -1
- package/lib/families/bitcoin/wallet-btc/explorer/index.d.ts.map +1 -1
- package/lib/families/bitcoin/wallet-btc/explorer/index.js +12 -5
- package/lib/families/bitcoin/wallet-btc/explorer/index.js.map +1 -1
- package/lib/families/bitcoin/wallet-btc/storage/index.d.ts +1 -1
- package/lib/families/bitcoin/wallet-btc/storage/index.d.ts.map +1 -1
- package/lib/families/bitcoin/wallet-btc/storage/index.js +6 -7
- package/lib/families/bitcoin/wallet-btc/storage/index.js.map +1 -1
- package/lib/families/bitcoin/wallet-btc/storage/types.d.ts +2 -2
- package/lib/families/bitcoin/wallet-btc/storage/types.d.ts.map +1 -1
- package/lib/families/bitcoin/wallet-btc/utils.js +1 -1
- package/lib/families/bitcoin/wallet-btc/utils.js.map +1 -1
- package/lib/families/celo/js-getTransactionStatus.d.ts.map +1 -1
- package/lib/families/celo/js-getTransactionStatus.js +2 -0
- package/lib/families/celo/js-getTransactionStatus.js.map +1 -1
- package/lib/families/celo/types.d.ts +0 -5
- package/lib/families/celo/types.d.ts.map +1 -1
- package/lib/families/celo/types.js +0 -3
- package/lib/families/celo/types.js.map +1 -1
- package/lib/families/cosmos/api/Cosmos.js +1 -1
- package/lib/families/cosmos/api/Cosmos.js.map +1 -1
- package/lib/families/cosmos/bridge.test.d.ts +2 -0
- package/lib/families/cosmos/bridge.test.d.ts.map +1 -0
- package/lib/families/cosmos/bridge.test.js +11 -0
- package/lib/families/cosmos/bridge.test.js.map +1 -0
- package/lib/families/cosmos/js-signOperation.d.ts.map +1 -1
- package/lib/families/cosmos/js-signOperation.js.map +1 -1
- package/lib/families/cosmos/js-synchronisation.d.ts.map +1 -1
- package/lib/families/cosmos/js-synchronisation.js +2 -1
- package/lib/families/cosmos/js-synchronisation.js.map +1 -1
- package/lib/families/cosmos/logic.d.ts +0 -9
- package/lib/families/cosmos/logic.d.ts.map +1 -1
- package/lib/families/cosmos/logic.js +5 -20
- package/lib/families/cosmos/logic.js.map +1 -1
- package/lib/families/cosmos/types.d.ts +0 -190
- package/lib/families/cosmos/types.d.ts.map +1 -1
- package/lib/families/cosmos/types.js +0 -370
- package/lib/families/cosmos/types.js.map +1 -1
- package/lib/families/crypto_org/js-buildTransaction.js +1 -1
- package/lib/families/crypto_org/js-buildTransaction.js.map +1 -1
- package/lib/families/crypto_org/js-signOperation.d.ts.map +1 -1
- package/lib/families/crypto_org/js-signOperation.js +3 -4
- package/lib/families/crypto_org/js-signOperation.js.map +1 -1
- package/lib/families/crypto_org/types.d.ts +0 -5
- package/lib/families/crypto_org/types.d.ts.map +1 -1
- package/lib/families/crypto_org/types.js +0 -3
- package/lib/families/crypto_org/types.js.map +1 -1
- package/lib/families/elrond/types.d.ts +1 -6
- package/lib/families/elrond/types.d.ts.map +1 -1
- package/lib/families/elrond/types.js +0 -3
- package/lib/families/elrond/types.js.map +1 -1
- package/lib/families/ethereum/bridge/js.d.ts.map +1 -1
- package/lib/families/ethereum/bridge/js.js +6 -1
- package/lib/families/ethereum/bridge/js.js.map +1 -1
- package/lib/families/ethereum/bridge.test.d.ts +2 -0
- package/lib/families/ethereum/bridge.test.d.ts.map +1 -0
- package/lib/families/ethereum/bridge.test.js +11 -0
- package/lib/families/ethereum/bridge.test.js.map +1 -0
- package/lib/families/ethereum/modules/erc1155.js +9 -9
- package/lib/families/ethereum/modules/erc1155.js.map +1 -1
- package/lib/families/ethereum/modules/erc721.d.ts.map +1 -1
- package/lib/families/ethereum/modules/erc721.js +12 -16
- package/lib/families/ethereum/modules/erc721.js.map +1 -1
- package/lib/families/ethereum/nft.unit.test.d.ts +2 -0
- package/lib/families/ethereum/nft.unit.test.d.ts.map +1 -0
- package/lib/families/ethereum/{nft.merging.unit.test.js → nft.unit.test.js} +61 -6
- package/lib/families/ethereum/nft.unit.test.js.map +1 -0
- package/lib/families/ethereum/nftResolvers.d.ts +19 -0
- package/lib/families/ethereum/nftResolvers.d.ts.map +1 -0
- package/lib/families/ethereum/nftResolvers.js +121 -0
- package/lib/families/ethereum/nftResolvers.js.map +1 -0
- package/lib/families/ethereum/synchronisation.js +2 -2
- package/lib/families/ethereum/synchronisation.js.map +1 -1
- package/lib/families/ethereum/types.d.ts +0 -5
- package/lib/families/ethereum/types.d.ts.map +1 -1
- package/lib/families/ethereum/types.js +0 -3
- package/lib/families/ethereum/types.js.map +1 -1
- package/lib/families/filecoin/types.d.ts +0 -5
- package/lib/families/filecoin/types.d.ts.map +1 -1
- package/lib/families/filecoin/types.js +0 -3
- package/lib/families/filecoin/types.js.map +1 -1
- package/lib/families/neo/types.d.ts +0 -5
- package/lib/families/neo/types.d.ts.map +1 -1
- package/lib/families/neo/types.js +0 -3
- package/lib/families/neo/types.js.map +1 -1
- package/lib/families/polkadot/bridge.test.d.ts +2 -0
- package/lib/families/polkadot/bridge.test.d.ts.map +1 -0
- package/lib/families/polkadot/bridge.test.js +145 -0
- package/lib/families/polkadot/bridge.test.js.map +1 -0
- package/lib/families/polkadot/types.d.ts +0 -5
- package/lib/families/polkadot/types.d.ts.map +1 -1
- package/lib/families/polkadot/types.js +0 -3
- package/lib/families/polkadot/types.js.map +1 -1
- package/lib/families/ripple/bridge.test.d.ts +2 -0
- package/lib/families/ripple/bridge.test.d.ts.map +1 -0
- package/lib/{libcore/buildAccount/buildSubAccounts.js → families/ripple/bridge.test.js} +17 -20
- package/lib/families/ripple/bridge.test.js.map +1 -0
- package/lib/families/ripple/types.d.ts +0 -59
- package/lib/families/ripple/types.d.ts.map +1 -1
- package/lib/families/ripple/types.js +0 -87
- package/lib/families/ripple/types.js.map +1 -1
- package/lib/families/solana/api/cached.d.ts.map +1 -1
- package/lib/families/solana/api/cached.js +10 -0
- package/lib/families/solana/api/cached.js.map +1 -1
- package/lib/families/solana/api/chain/account/index.d.ts +1 -1
- package/lib/families/solana/api/chain/account/index.d.ts.map +1 -1
- package/lib/families/solana/api/chain/account/index.js +2 -1
- package/lib/families/solana/api/chain/account/index.js.map +1 -1
- package/lib/families/solana/api/chain/account/parser.d.ts +5 -0
- package/lib/families/solana/api/chain/account/parser.d.ts.map +1 -1
- package/lib/families/solana/api/chain/account/parser.js +24 -1
- package/lib/families/solana/api/chain/account/parser.js.map +1 -1
- package/lib/families/solana/api/chain/account/stake.d.ts +5 -5
- package/lib/families/solana/api/chain/account/token.d.ts +5 -5
- package/lib/families/solana/api/chain/account/vote.d.ts +252 -0
- package/lib/families/solana/api/chain/account/vote.d.ts.map +1 -0
- package/lib/families/solana/api/chain/account/vote.js +44 -0
- package/lib/families/solana/api/chain/account/vote.js.map +1 -0
- package/lib/families/solana/api/chain/index.d.ts +7 -0
- package/lib/families/solana/api/chain/index.d.ts.map +1 -1
- package/lib/families/solana/api/chain/index.js +35 -0
- package/lib/families/solana/api/chain/index.js.map +1 -1
- package/lib/families/solana/api/chain/instruction/stake/types.d.ts +7 -7
- package/lib/families/solana/api/chain/instruction/system/index.d.ts +15 -0
- package/lib/families/solana/api/chain/instruction/system/index.d.ts.map +1 -0
- package/lib/families/solana/api/chain/instruction/system/index.js +20 -0
- package/lib/families/solana/api/chain/instruction/system/index.js.map +1 -0
- package/lib/families/solana/api/chain/instruction/system/types.d.ts +298 -0
- package/lib/families/solana/api/chain/instruction/system/types.d.ts.map +1 -0
- package/lib/families/solana/api/chain/instruction/system/types.js +117 -0
- package/lib/families/solana/api/chain/instruction/system/types.js.map +1 -0
- package/lib/families/solana/api/chain/program/parser.d.ts +5 -0
- package/lib/families/solana/api/chain/program/parser.d.ts.map +1 -1
- package/lib/families/solana/api/chain/program/parser.js +7 -0
- package/lib/families/solana/api/chain/program/parser.js.map +1 -1
- package/lib/families/solana/api/chain/web3.d.ts +20 -1
- package/lib/families/solana/api/chain/web3.d.ts.map +1 -1
- package/lib/families/solana/api/chain/web3.js +122 -1
- package/lib/families/solana/api/chain/web3.js.map +1 -1
- package/lib/families/solana/api/logged.d.ts.map +1 -1
- package/lib/families/solana/api/logged.js +5 -0
- package/lib/families/solana/api/logged.js.map +1 -1
- package/lib/families/solana/bridge/bridge.d.ts.map +1 -1
- package/lib/families/solana/bridge/bridge.js +16 -7
- package/lib/families/solana/bridge/bridge.js.map +1 -1
- package/lib/families/solana/bridge/mock-data.d.ts +116 -11
- package/lib/families/solana/bridge/mock-data.d.ts.map +1 -1
- package/lib/families/solana/bridge/mock-data.js +19 -493
- package/lib/families/solana/bridge/mock-data.js.map +1 -1
- package/lib/families/solana/bridge/mock.d.ts.map +1 -1
- package/lib/families/solana/bridge/mock.js +1 -0
- package/lib/families/solana/bridge/mock.js.map +1 -1
- package/lib/families/solana/bridge.test.d.ts +2 -0
- package/lib/families/solana/bridge.test.d.ts.map +1 -0
- package/lib/families/solana/bridge.test.js +11 -0
- package/lib/families/solana/bridge.test.js.map +1 -0
- package/lib/families/solana/cli-transaction.d.ts +5 -1
- package/lib/families/solana/cli-transaction.d.ts.map +1 -1
- package/lib/families/solana/cli-transaction.js +72 -4
- package/lib/families/solana/cli-transaction.js.map +1 -1
- package/lib/families/solana/deviceTransactionConfig.d.ts +3 -3
- package/lib/families/solana/deviceTransactionConfig.d.ts.map +1 -1
- package/lib/families/solana/deviceTransactionConfig.js +128 -20
- package/lib/families/solana/deviceTransactionConfig.js.map +1 -1
- package/lib/families/solana/errors.d.ts +30 -0
- package/lib/families/solana/errors.d.ts.map +1 -1
- package/lib/families/solana/errors.js +11 -1
- package/lib/families/solana/errors.js.map +1 -1
- package/lib/families/solana/js-buildTransaction.d.ts.map +1 -1
- package/lib/families/solana/js-buildTransaction.js +13 -7
- package/lib/families/solana/js-buildTransaction.js.map +1 -1
- package/lib/families/solana/js-estimateMaxSpendable.d.ts.map +1 -1
- package/lib/families/solana/js-estimateMaxSpendable.js +26 -17
- package/lib/families/solana/js-estimateMaxSpendable.js.map +1 -1
- package/lib/families/solana/js-getTransactionStatus.d.ts +1 -1
- package/lib/families/solana/js-getTransactionStatus.d.ts.map +1 -1
- package/lib/families/solana/js-getTransactionStatus.js +36 -79
- package/lib/families/solana/js-getTransactionStatus.js.map +1 -1
- package/lib/families/solana/js-preload-data.d.ts +7 -0
- package/lib/families/solana/js-preload-data.d.ts.map +1 -0
- package/lib/families/solana/js-preload-data.js +45 -0
- package/lib/families/solana/js-preload-data.js.map +1 -0
- package/lib/families/solana/js-preload.d.ts +6 -0
- package/lib/families/solana/js-preload.d.ts.map +1 -0
- package/lib/{libcore/buildBigNumber.js → families/solana/js-preload.js} +60 -28
- package/lib/families/solana/js-preload.js.map +1 -0
- package/lib/families/solana/js-prepareTransaction.d.ts.map +1 -1
- package/lib/families/solana/js-prepareTransaction.js +453 -142
- package/lib/families/solana/js-prepareTransaction.js.map +1 -1
- package/lib/families/solana/js-signOperation.d.ts.map +1 -1
- package/lib/families/solana/js-signOperation.js +90 -68
- package/lib/families/solana/js-signOperation.js.map +1 -1
- package/lib/families/solana/js-synchronization.d.ts.map +1 -1
- package/lib/families/solana/js-synchronization.js +159 -57
- package/lib/families/solana/js-synchronization.js.map +1 -1
- package/lib/families/solana/logic.d.ts +16 -0
- package/lib/families/solana/logic.d.ts.map +1 -1
- package/lib/families/solana/logic.js +59 -1
- package/lib/families/solana/logic.js.map +1 -1
- package/lib/families/solana/react.d.ts +7 -0
- package/lib/families/solana/react.d.ts.map +1 -0
- package/lib/families/solana/react.js +56 -0
- package/lib/families/solana/react.js.map +1 -0
- package/lib/families/solana/serialization.d.ts +4 -0
- package/lib/families/solana/serialization.d.ts.map +1 -0
- package/lib/families/solana/serialization.js +16 -0
- package/lib/families/solana/serialization.js.map +1 -0
- package/lib/families/solana/specs.d.ts.map +1 -1
- package/lib/families/solana/specs.js +320 -0
- package/lib/families/solana/specs.js.map +1 -1
- package/lib/families/solana/speculos-deviceActions.d.ts +5 -0
- package/lib/families/solana/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/solana/speculos-deviceActions.js +189 -14
- package/lib/families/solana/speculos-deviceActions.js.map +1 -1
- package/lib/families/solana/test-dataset.d.ts +18 -0
- package/lib/families/solana/test-dataset.d.ts.map +1 -1
- package/lib/families/solana/test-dataset.js +694 -202
- package/lib/families/solana/test-dataset.js.map +1 -1
- package/lib/families/solana/test-specifics.d.ts +9 -0
- package/lib/families/solana/test-specifics.d.ts.map +1 -0
- package/lib/families/solana/test-specifics.js +238 -0
- package/lib/families/solana/test-specifics.js.map +1 -0
- package/lib/families/solana/transaction.d.ts.map +1 -1
- package/lib/families/solana/transaction.js +69 -13
- package/lib/families/solana/transaction.js.map +1 -1
- package/lib/families/solana/types.d.ts +129 -21
- package/lib/families/solana/types.d.ts.map +1 -1
- package/lib/families/solana/types.js +0 -3
- package/lib/families/solana/types.js.map +1 -1
- package/lib/families/solana/utils.d.ts +6 -0
- package/lib/families/solana/utils.d.ts.map +1 -1
- package/lib/families/solana/utils.js +76 -4
- package/lib/families/solana/utils.js.map +1 -1
- package/lib/families/solana/validator-app/index.d.ts +22 -0
- package/lib/families/solana/validator-app/index.d.ts.map +1 -0
- package/lib/families/{algorand/libcore-getFeesForTransaction.js → solana/validator-app/index.js} +45 -28
- package/lib/families/solana/validator-app/index.js.map +1 -0
- package/lib/families/stellar/api/horizon.d.ts +2 -1
- package/lib/families/stellar/api/horizon.d.ts.map +1 -1
- package/lib/families/stellar/api/horizon.js.map +1 -1
- package/lib/families/stellar/bridge.test.d.ts +2 -0
- package/lib/families/stellar/bridge.test.d.ts.map +1 -0
- package/lib/families/stellar/bridge.test.js +11 -0
- package/lib/families/stellar/bridge.test.js.map +1 -0
- package/lib/families/stellar/test-dataset.d.ts.map +1 -1
- package/lib/families/stellar/test-dataset.js +2 -4
- package/lib/families/stellar/test-dataset.js.map +1 -1
- package/lib/families/stellar/types.d.ts +0 -5
- package/lib/families/stellar/types.d.ts.map +1 -1
- package/lib/families/stellar/types.js +1 -3
- package/lib/families/stellar/types.js.map +1 -1
- package/lib/families/tezos/bridge/js.d.ts.map +1 -1
- package/lib/families/tezos/bridge/js.js +16 -3
- package/lib/families/tezos/bridge/js.js.map +1 -1
- package/lib/families/tezos/bridge.test.d.ts +2 -0
- package/lib/families/tezos/bridge.test.d.ts.map +1 -0
- package/lib/families/tezos/{test-specifics.js → bridge.test.js} +36 -33
- package/lib/families/tezos/bridge.test.js.map +1 -0
- package/lib/families/tezos/types.d.ts +0 -86
- package/lib/families/tezos/types.d.ts.map +1 -1
- package/lib/families/tezos/types.js +0 -138
- package/lib/families/tezos/types.js.map +1 -1
- package/lib/families/tron/types.d.ts +0 -6
- package/lib/families/tron/types.d.ts.map +1 -1
- package/lib/families/tron/types.js +0 -4
- package/lib/families/tron/types.js.map +1 -1
- package/lib/generated/cli-transaction.d.ts +5 -1
- package/lib/generated/cli-transaction.d.ts.map +1 -1
- package/lib/generated/customAddressValidation.d.ts +1 -10
- package/lib/generated/customAddressValidation.d.ts.map +1 -1
- package/lib/generated/customAddressValidation.js +1 -9
- package/lib/generated/customAddressValidation.js.map +1 -1
- package/lib/generated/speculos-deviceActions.d.ts +1 -0
- package/lib/generated/speculos-deviceActions.d.ts.map +1 -1
- package/lib/generated/types.d.ts +0 -92
- package/lib/generated/types.d.ts.map +1 -1
- package/lib/generated/types.js +0 -34
- package/lib/generated/types.js.map +1 -1
- package/lib/mock/account.d.ts.map +1 -1
- package/lib/mock/account.js +7 -1
- package/lib/mock/account.js.map +1 -1
- package/lib/nft/NftMetadataProvider/index.d.ts +9 -8
- package/lib/nft/NftMetadataProvider/index.d.ts.map +1 -1
- package/lib/nft/NftMetadataProvider/index.js +135 -69
- package/lib/nft/NftMetadataProvider/index.js.map +1 -1
- package/lib/nft/NftMetadataProvider/types.d.ts +13 -7
- package/lib/nft/NftMetadataProvider/types.d.ts.map +1 -1
- package/lib/nft/helpers.d.ts +24 -8
- package/lib/nft/helpers.d.ts.map +1 -1
- package/lib/nft/helpers.js +125 -40
- package/lib/nft/helpers.js.map +1 -1
- package/lib/nft/nftId.d.ts +7 -2
- package/lib/nft/nftId.d.ts.map +1 -1
- package/lib/nft/nftId.js +5 -4
- package/lib/nft/nftId.js.map +1 -1
- package/lib/nft/support.d.ts +2 -1
- package/lib/nft/support.d.ts.map +1 -1
- package/lib/nft/support.js +39 -1
- package/lib/nft/support.js.map +1 -1
- package/lib/reconciliation.d.ts.map +1 -1
- package/lib/reconciliation.js +8 -5
- package/lib/reconciliation.js.map +1 -1
- package/lib/types/account.d.ts +7 -3
- package/lib/types/account.d.ts.map +1 -1
- package/lib/types/bridge.d.ts +16 -1
- package/lib/types/bridge.d.ts.map +1 -1
- package/lib/types/nft.d.ts +28 -6
- package/lib/types/nft.d.ts.map +1 -1
- package/lib/walletconnect/index.d.ts.map +1 -1
- package/lib/walletconnect/index.js +7 -6
- package/lib/walletconnect/index.js.map +1 -1
- package/package.json +3 -4
- package/src/.DS_Store +0 -0
- package/src/{data/flags → __tests__}/.DS_Store +0 -0
- package/src/__tests__/families/bitcoin/wallet-btc/xpub.pickingStrategies.integration.test.ts +5 -5
- package/src/__tests__/test-helpers/bridge.ts +11 -7
- package/src/__tests__/test-helpers/libcore-setup.native.ts +0 -1
- package/src/__tests__/test-helpers/libcore-setup.ts +1 -7
- package/src/__tests__/test-helpers/setup.ts +2 -1
- package/src/account/formatters.ts +6 -8
- package/src/account/serialization.ts +46 -6
- package/src/account/support.ts +2 -19
- package/src/api/Ethereum.ts +36 -6
- package/src/api/Ledger.ts +1 -12
- package/src/api/explorerConfig/index.ts +8 -0
- package/src/appSupportsQuitApp.ts +1 -0
- package/src/apps/support.ts +1 -0
- package/src/bot/index.ts +1 -6
- package/src/bridge/impl.ts +5 -17
- package/src/bridge/jsHelpers.ts +6 -3
- package/src/cross.ts +2 -4
- package/src/currencies/__snapshots__/sortByMarketcap.test.ts.snap +6290 -0
- package/src/derivation.ts +1 -85
- package/src/env.ts +12 -23
- package/src/families/algorand/types.ts +2 -255
- package/src/{__tests__/__snapshots__/all.libcore.ts.snap → families/bitcoin/__snapshots__/bridge.test.ts.snap} +7085 -14082
- package/src/families/bitcoin/account.ts +0 -1
- package/src/families/bitcoin/bridge.test.ts +6 -0
- package/src/families/bitcoin/js-signOperation.ts +0 -5
- package/src/families/bitcoin/js-synchronisation.ts +5 -6
- package/src/families/bitcoin/logic.ts +2 -77
- package/src/families/bitcoin/networks.ts +1 -1
- package/src/families/bitcoin/serialization.ts +0 -4
- package/src/families/bitcoin/specs.ts +14 -7
- package/src/families/bitcoin/transaction.ts +0 -191
- package/src/families/bitcoin/types.ts +0 -225
- package/src/families/bitcoin/wallet-btc/explorer/index.ts +23 -23
- package/src/families/bitcoin/wallet-btc/storage/index.ts +6 -9
- package/src/families/bitcoin/wallet-btc/storage/types.ts +2 -2
- package/src/families/bitcoin/wallet-btc/utils.ts +1 -1
- package/src/families/celo/js-getTransactionStatus.ts +3 -1
- package/src/families/celo/types.ts +0 -6
- package/src/families/cosmos/__snapshots__/bridge.test.ts.snap +1156 -0
- package/src/families/cosmos/api/Cosmos.ts +1 -1
- package/src/families/cosmos/bridge.test.ts +6 -0
- package/src/families/cosmos/js-signOperation.ts +8 -0
- package/src/families/cosmos/js-synchronisation.ts +3 -1
- package/src/families/cosmos/logic.ts +4 -37
- package/src/families/cosmos/types.ts +1 -619
- package/src/families/crypto_org/js-buildTransaction.ts +1 -1
- package/src/families/crypto_org/js-signOperation.ts +2 -3
- package/src/families/crypto_org/types.ts +1 -5
- package/src/families/elrond/types.ts +2 -6
- package/src/families/ethereum/__snapshots__/bridge.test.ts.snap +3263 -0
- package/src/families/ethereum/bridge/js.ts +5 -0
- package/src/families/ethereum/bridge.test.ts +6 -0
- package/src/families/ethereum/modules/erc1155.ts +9 -9
- package/src/families/ethereum/modules/erc721.ts +11 -11
- package/src/families/ethereum/nft.unit.test.ts +147 -0
- package/src/families/ethereum/nftResolvers.ts +79 -0
- package/src/families/ethereum/synchronisation.ts +7 -2
- package/src/families/ethereum/types.ts +1 -6
- package/src/families/filecoin/types.ts +0 -6
- package/src/families/neo/types.ts +1 -5
- package/src/families/polkadot/bridge.test.ts +81 -0
- package/src/families/polkadot/types.ts +1 -5
- package/src/families/ripple/bridge.test.ts +12 -0
- package/src/families/ripple/types.ts +0 -143
- package/src/families/solana/__snapshots__/bridge.test.ts.snap +116 -0
- package/src/families/solana/api/cached.ts +40 -0
- package/src/families/solana/api/chain/account/index.ts +5 -1
- package/src/families/solana/api/chain/account/parser.ts +28 -0
- package/src/families/solana/api/chain/account/vote.ts +63 -0
- package/src/families/solana/api/chain/index.ts +63 -0
- package/src/families/solana/api/chain/instruction/system/index.ts +30 -0
- package/src/families/solana/api/chain/instruction/system/types.ts +141 -0
- package/src/families/solana/api/chain/program/parser.ts +18 -0
- package/src/families/solana/api/chain/web3.ts +173 -1
- package/src/families/solana/api/logged.ts +5 -0
- package/src/families/solana/bridge/bridge.ts +27 -4
- package/src/families/solana/bridge/mock-data.ts +19 -588
- package/src/families/solana/bridge/mock.ts +1 -0
- package/src/families/solana/bridge.test.ts +6 -0
- package/src/families/solana/cli-transaction.ts +87 -3
- package/src/families/solana/deviceTransactionConfig.ts +180 -24
- package/src/families/solana/errors.ts +40 -0
- package/src/families/solana/js-buildTransaction.ts +19 -8
- package/src/families/solana/js-estimateMaxSpendable.ts +20 -7
- package/src/families/solana/js-getTransactionStatus.ts +34 -93
- package/src/families/solana/js-preload-data.ts +53 -0
- package/src/families/solana/js-preload.ts +66 -0
- package/src/families/solana/js-prepareTransaction.ts +471 -148
- package/src/families/solana/js-signOperation.ts +177 -74
- package/src/families/solana/js-synchronization.ts +195 -54
- package/src/families/solana/logic.ts +80 -0
- package/src/families/solana/react.ts +81 -0
- package/src/families/solana/serialization.ts +17 -0
- package/src/families/solana/specs.ts +411 -1
- package/src/families/solana/speculos-deviceActions.ts +192 -15
- package/src/families/solana/test-dataset.ts +707 -327
- package/src/families/solana/test-specifics.ts +171 -0
- package/src/families/solana/transaction.ts +93 -16
- package/src/families/solana/types.ts +158 -27
- package/src/families/solana/utils.ts +52 -1
- package/src/families/solana/validator-app/index.ts +106 -0
- package/src/families/stellar/__snapshots__/bridge.test.ts.snap +2570 -0
- package/src/families/stellar/api/horizon.ts +2 -1
- package/src/families/stellar/bridge.test.ts +6 -0
- package/src/families/stellar/test-dataset.ts +2 -4
- package/src/families/stellar/types.ts +0 -5
- package/src/families/tezos/bridge/js.ts +16 -1
- package/src/families/tezos/bridge.test.ts +24 -0
- package/src/families/tezos/types.ts +0 -224
- package/src/families/tron/types.ts +1 -6
- package/src/generated/customAddressValidation.ts +0 -6
- package/src/generated/types.ts +0 -202
- package/src/mock/account.ts +7 -1
- package/src/nft/NftMetadataProvider/index.tsx +163 -75
- package/src/nft/NftMetadataProvider/types.ts +31 -8
- package/src/nft/helpers.ts +169 -35
- package/src/nft/nftId.ts +13 -4
- package/src/nft/support.ts +14 -1
- package/src/reconciliation.ts +10 -5
- package/src/types/account.ts +7 -3
- package/src/types/bridge.ts +20 -0
- package/src/types/nft.ts +32 -9
- package/src/walletconnect/index.ts +3 -1
- package/lib/__tests__/all.libcore.d.ts +0 -2
- package/lib/__tests__/all.libcore.d.ts.map +0 -1
- package/lib/__tests__/all.libcore.js +0 -203
- package/lib/__tests__/all.libcore.js.map +0 -1
- package/lib/__tests__/test-helpers/implement-react-native-libcore/index.d.ts +0 -2
- package/lib/__tests__/test-helpers/implement-react-native-libcore/index.d.ts.map +0 -1
- package/lib/__tests__/test-helpers/implement-react-native-libcore/index.js +0 -12
- package/lib/__tests__/test-helpers/implement-react-native-libcore/index.js.map +0 -1
- package/lib/__tests__/test-helpers/implement-react-native-libcore/specific.android.d.ts +0 -2
- package/lib/__tests__/test-helpers/implement-react-native-libcore/specific.android.d.ts.map +0 -1
- package/lib/__tests__/test-helpers/implement-react-native-libcore/specific.android.js +0 -10
- package/lib/__tests__/test-helpers/implement-react-native-libcore/specific.android.js.map +0 -1
- package/lib/__tests__/test-helpers/implement-react-native-libcore/specific.ios.d.ts +0 -2
- package/lib/__tests__/test-helpers/implement-react-native-libcore/specific.ios.d.ts.map +0 -1
- package/lib/__tests__/test-helpers/implement-react-native-libcore/specific.ios.js +0 -10
- package/lib/__tests__/test-helpers/implement-react-native-libcore/specific.ios.js.map +0 -1
- package/lib/bridge/shared.d.ts +0 -6
- package/lib/bridge/shared.d.ts.map +0 -1
- package/lib/bridge/shared.js +0 -78
- package/lib/bridge/shared.js.map +0 -1
- package/lib/families/algorand/bridge/libcore.d.ts +0 -17
- package/lib/families/algorand/bridge/libcore.d.ts.map +0 -1
- package/lib/families/algorand/bridge/libcore.js +0 -404
- package/lib/families/algorand/bridge/libcore.js.map +0 -1
- package/lib/families/algorand/buildASAOperation.d.ts +0 -8
- package/lib/families/algorand/buildASAOperation.d.ts.map +0 -1
- package/lib/families/algorand/buildASAOperation.js +0 -140
- package/lib/families/algorand/buildASAOperation.js.map +0 -1
- package/lib/families/algorand/libcore-broadcast.d.ts +0 -3
- package/lib/families/algorand/libcore-broadcast.d.ts.map +0 -1
- package/lib/families/algorand/libcore-broadcast.js +0 -63
- package/lib/families/algorand/libcore-broadcast.js.map +0 -1
- package/lib/families/algorand/libcore-buildOperation.d.ts +0 -7
- package/lib/families/algorand/libcore-buildOperation.d.ts.map +0 -1
- package/lib/families/algorand/libcore-buildOperation.js +0 -131
- package/lib/families/algorand/libcore-buildOperation.js.map +0 -1
- package/lib/families/algorand/libcore-buildSubAccounts.d.ts +0 -11
- package/lib/families/algorand/libcore-buildSubAccounts.d.ts.map +0 -1
- package/lib/families/algorand/libcore-buildSubAccounts.js +0 -221
- package/lib/families/algorand/libcore-buildSubAccounts.js.map +0 -1
- package/lib/families/algorand/libcore-buildTransaction.d.ts +0 -13
- package/lib/families/algorand/libcore-buildTransaction.d.ts.map +0 -1
- package/lib/families/algorand/libcore-buildTransaction.js +0 -144
- package/lib/families/algorand/libcore-buildTransaction.js.map +0 -1
- package/lib/families/algorand/libcore-getFeesForTransaction.d.ts +0 -17
- package/lib/families/algorand/libcore-getFeesForTransaction.d.ts.map +0 -1
- package/lib/families/algorand/libcore-getFeesForTransaction.js.map +0 -1
- package/lib/families/algorand/libcore-postBuildAccount.d.ts +0 -8
- package/lib/families/algorand/libcore-postBuildAccount.d.ts.map +0 -1
- package/lib/families/algorand/libcore-postBuildAccount.js +0 -99
- package/lib/families/algorand/libcore-postBuildAccount.js.map +0 -1
- package/lib/families/algorand/libcore-signOperation.d.ts +0 -4
- package/lib/families/algorand/libcore-signOperation.d.ts.map +0 -1
- package/lib/families/algorand/libcore-signOperation.js +0 -146
- package/lib/families/algorand/libcore-signOperation.js.map +0 -1
- package/lib/families/bitcoin/bridge/libcore.d.ts +0 -8
- package/lib/families/bitcoin/bridge/libcore.d.ts.map +0 -1
- package/lib/families/bitcoin/bridge/libcore.js +0 -333
- package/lib/families/bitcoin/bridge/libcore.js.map +0 -1
- package/lib/families/bitcoin/customAddressValidation.d.ts +0 -8
- package/lib/families/bitcoin/customAddressValidation.d.ts.map +0 -1
- package/lib/families/bitcoin/customAddressValidation.js +0 -67
- package/lib/families/bitcoin/customAddressValidation.js.map +0 -1
- package/lib/families/bitcoin/libcore-broadcast.d.ts +0 -3
- package/lib/families/bitcoin/libcore-broadcast.d.ts.map +0 -1
- package/lib/families/bitcoin/libcore-broadcast.js +0 -61
- package/lib/families/bitcoin/libcore-broadcast.js.map +0 -1
- package/lib/families/bitcoin/libcore-buildOperation.d.ts +0 -9
- package/lib/families/bitcoin/libcore-buildOperation.d.ts.map +0 -1
- package/lib/families/bitcoin/libcore-buildOperation.js +0 -74
- package/lib/families/bitcoin/libcore-buildOperation.js.map +0 -1
- package/lib/families/bitcoin/libcore-buildTransaction.d.ts +0 -14
- package/lib/families/bitcoin/libcore-buildTransaction.d.ts.map +0 -1
- package/lib/families/bitcoin/libcore-buildTransaction.js +0 -199
- package/lib/families/bitcoin/libcore-buildTransaction.js.map +0 -1
- package/lib/families/bitcoin/libcore-getAccountNetworkInfo.d.ts +0 -12
- package/lib/families/bitcoin/libcore-getAccountNetworkInfo.d.ts.map +0 -1
- package/lib/families/bitcoin/libcore-getAccountNetworkInfo.js +0 -87
- package/lib/families/bitcoin/libcore-getAccountNetworkInfo.js.map +0 -1
- package/lib/families/bitcoin/libcore-getAccountNetworkInfo.test.d.ts +0 -2
- package/lib/families/bitcoin/libcore-getAccountNetworkInfo.test.d.ts.map +0 -1
- package/lib/families/bitcoin/libcore-getAccountNetworkInfo.test.js +0 -71
- package/lib/families/bitcoin/libcore-getAccountNetworkInfo.test.js.map +0 -1
- package/lib/families/bitcoin/libcore-getFeesForTransaction.d.ts +0 -10
- package/lib/families/bitcoin/libcore-getFeesForTransaction.d.ts.map +0 -1
- package/lib/families/bitcoin/libcore-getFeesForTransaction.js +0 -110
- package/lib/families/bitcoin/libcore-getFeesForTransaction.js.map +0 -1
- package/lib/families/bitcoin/libcore-postBuildAccount.d.ts +0 -8
- package/lib/families/bitcoin/libcore-postBuildAccount.d.ts.map +0 -1
- package/lib/families/bitcoin/libcore-postBuildAccount.js +0 -108
- package/lib/families/bitcoin/libcore-postBuildAccount.js.map +0 -1
- package/lib/families/bitcoin/libcore-signOperation.d.ts +0 -4
- package/lib/families/bitcoin/libcore-signOperation.d.ts.map +0 -1
- package/lib/families/bitcoin/libcore-signOperation.js +0 -328
- package/lib/families/bitcoin/libcore-signOperation.js.map +0 -1
- package/lib/families/cosmos/bridge/libcore.d.ts +0 -8
- package/lib/families/cosmos/bridge/libcore.d.ts.map +0 -1
- package/lib/families/cosmos/bridge/libcore.js +0 -216
- package/lib/families/cosmos/bridge/libcore.js.map +0 -1
- package/lib/families/cosmos/libcore-broadcast.d.ts +0 -3
- package/lib/families/cosmos/libcore-broadcast.d.ts.map +0 -1
- package/lib/families/cosmos/libcore-broadcast.js +0 -66
- package/lib/families/cosmos/libcore-broadcast.js.map +0 -1
- package/lib/families/cosmos/libcore-buildOperation.d.ts +0 -8
- package/lib/families/cosmos/libcore-buildOperation.d.ts.map +0 -1
- package/lib/families/cosmos/libcore-buildOperation.js +0 -217
- package/lib/families/cosmos/libcore-buildOperation.js.map +0 -1
- package/lib/families/cosmos/libcore-buildTransaction.d.ts +0 -14
- package/lib/families/cosmos/libcore-buildTransaction.d.ts.map +0 -1
- package/lib/families/cosmos/libcore-buildTransaction.js +0 -275
- package/lib/families/cosmos/libcore-buildTransaction.js.map +0 -1
- package/lib/families/cosmos/libcore-getFeesForTransaction.d.ts +0 -18
- package/lib/families/cosmos/libcore-getFeesForTransaction.d.ts.map +0 -1
- package/lib/families/cosmos/libcore-getFeesForTransaction.js +0 -84
- package/lib/families/cosmos/libcore-getFeesForTransaction.js.map +0 -1
- package/lib/families/cosmos/libcore-getTransactionStatus.d.ts +0 -5
- package/lib/families/cosmos/libcore-getTransactionStatus.d.ts.map +0 -1
- package/lib/families/cosmos/libcore-getTransactionStatus.js +0 -272
- package/lib/families/cosmos/libcore-getTransactionStatus.js.map +0 -1
- package/lib/families/cosmos/libcore-mergeOperations.d.ts +0 -4
- package/lib/families/cosmos/libcore-mergeOperations.d.ts.map +0 -1
- package/lib/families/cosmos/libcore-mergeOperations.js +0 -49
- package/lib/families/cosmos/libcore-mergeOperations.js.map +0 -1
- package/lib/families/cosmos/libcore-postBuildAccount.d.ts +0 -8
- package/lib/families/cosmos/libcore-postBuildAccount.d.ts.map +0 -1
- package/lib/families/cosmos/libcore-postBuildAccount.js +0 -313
- package/lib/families/cosmos/libcore-postBuildAccount.js.map +0 -1
- package/lib/families/cosmos/libcore-signOperation.d.ts +0 -4
- package/lib/families/cosmos/libcore-signOperation.d.ts.map +0 -1
- package/lib/families/cosmos/libcore-signOperation.js +0 -142
- package/lib/families/cosmos/libcore-signOperation.js.map +0 -1
- package/lib/families/cosmos/message.d.ts +0 -5
- package/lib/families/cosmos/message.d.ts.map +0 -1
- package/lib/families/cosmos/message.js +0 -233
- package/lib/families/cosmos/message.js.map +0 -1
- package/lib/families/cosmos/test-specifics.d.ts +0 -3
- package/lib/families/cosmos/test-specifics.d.ts.map +0 -1
- package/lib/families/cosmos/test-specifics.js +0 -307
- package/lib/families/cosmos/test-specifics.js.map +0 -1
- package/lib/families/ethereum/nft.merging.unit.test.d.ts +0 -2
- package/lib/families/ethereum/nft.merging.unit.test.d.ts.map +0 -1
- package/lib/families/ethereum/nft.merging.unit.test.js.map +0 -1
- package/lib/families/filecoin/customAddressValidation.d.ts +0 -8
- package/lib/families/filecoin/customAddressValidation.d.ts.map +0 -1
- package/lib/families/filecoin/customAddressValidation.js +0 -50
- package/lib/families/filecoin/customAddressValidation.js.map +0 -1
- package/lib/families/polkadot/test-specifics.d.ts +0 -3
- package/lib/families/polkadot/test-specifics.d.ts.map +0 -1
- package/lib/families/polkadot/test-specifics.js +0 -91
- package/lib/families/polkadot/test-specifics.js.map +0 -1
- package/lib/families/tezos/bridge/libcore.d.ts +0 -14
- package/lib/families/tezos/bridge/libcore.d.ts.map +0 -1
- package/lib/families/tezos/bridge/libcore.js +0 -336
- package/lib/families/tezos/bridge/libcore.js.map +0 -1
- package/lib/families/tezos/libcore-broadcast.d.ts +0 -3
- package/lib/families/tezos/libcore-broadcast.d.ts.map +0 -1
- package/lib/families/tezos/libcore-broadcast.js +0 -61
- package/lib/families/tezos/libcore-broadcast.js.map +0 -1
- package/lib/families/tezos/libcore-buildOperation.d.ts +0 -7
- package/lib/families/tezos/libcore-buildOperation.d.ts.map +0 -1
- package/lib/families/tezos/libcore-buildOperation.js +0 -93
- package/lib/families/tezos/libcore-buildOperation.js.map +0 -1
- package/lib/families/tezos/libcore-buildSubAccounts.d.ts +0 -11
- package/lib/families/tezos/libcore-buildSubAccounts.d.ts.map +0 -1
- package/lib/families/tezos/libcore-buildSubAccounts.js +0 -214
- package/lib/families/tezos/libcore-buildSubAccounts.js.map +0 -1
- package/lib/families/tezos/libcore-buildTransaction.d.ts +0 -14
- package/lib/families/tezos/libcore-buildTransaction.d.ts.map +0 -1
- package/lib/families/tezos/libcore-buildTransaction.js +0 -225
- package/lib/families/tezos/libcore-buildTransaction.js.map +0 -1
- package/lib/families/tezos/libcore-getAccountNetworkInfo.d.ts +0 -11
- package/lib/families/tezos/libcore-getAccountNetworkInfo.d.ts.map +0 -1
- package/lib/families/tezos/libcore-getAccountNetworkInfo.js +0 -66
- package/lib/families/tezos/libcore-getAccountNetworkInfo.js.map +0 -1
- package/lib/families/tezos/libcore-getFeesForTransaction.d.ts +0 -18
- package/lib/families/tezos/libcore-getFeesForTransaction.d.ts.map +0 -1
- package/lib/families/tezos/libcore-getFeesForTransaction.js +0 -73
- package/lib/families/tezos/libcore-getFeesForTransaction.js.map +0 -1
- package/lib/families/tezos/libcore-signOperation.d.ts +0 -4
- package/lib/families/tezos/libcore-signOperation.d.ts.map +0 -1
- package/lib/families/tezos/libcore-signOperation.js +0 -187
- package/lib/families/tezos/libcore-signOperation.js.map +0 -1
- package/lib/families/tezos/test-specifics.d.ts +0 -3
- package/lib/families/tezos/test-specifics.d.ts.map +0 -1
- package/lib/families/tezos/test-specifics.js.map +0 -1
- package/lib/families/tron/test-specifics.d.ts +0 -3
- package/lib/families/tron/test-specifics.d.ts.map +0 -1
- package/lib/families/tron/test-specifics.js +0 -205
- package/lib/families/tron/test-specifics.js.map +0 -1
- package/lib/generated/bridge/libcore.d.ts +0 -20
- package/lib/generated/bridge/libcore.d.ts.map +0 -1
- package/lib/generated/bridge/libcore.js +0 -16
- package/lib/generated/bridge/libcore.js.map +0 -1
- package/lib/generated/libcore-buildOperation.d.ts +0 -12
- package/lib/generated/libcore-buildOperation.d.ts.map +0 -1
- package/lib/generated/libcore-buildOperation.js +0 -16
- package/lib/generated/libcore-buildOperation.js.map +0 -1
- package/lib/generated/libcore-buildSubAccounts.d.ts +0 -8
- package/lib/generated/libcore-buildSubAccounts.d.ts.map +0 -1
- package/lib/generated/libcore-buildSubAccounts.js +0 -12
- package/lib/generated/libcore-buildSubAccounts.js.map +0 -1
- package/lib/generated/libcore-getAccountNetworkInfo.d.ts +0 -8
- package/lib/generated/libcore-getAccountNetworkInfo.d.ts.map +0 -1
- package/lib/generated/libcore-getAccountNetworkInfo.js +0 -12
- package/lib/generated/libcore-getAccountNetworkInfo.js.map +0 -1
- package/lib/generated/libcore-getFeesForTransaction.d.ts +0 -12
- package/lib/generated/libcore-getFeesForTransaction.d.ts.map +0 -1
- package/lib/generated/libcore-getFeesForTransaction.js +0 -16
- package/lib/generated/libcore-getFeesForTransaction.js.map +0 -1
- package/lib/generated/libcore-mergeOperations.d.ts +0 -5
- package/lib/generated/libcore-mergeOperations.d.ts.map +0 -1
- package/lib/generated/libcore-mergeOperations.js +0 -10
- package/lib/generated/libcore-mergeOperations.js.map +0 -1
- package/lib/generated/libcore-postBuildAccount.d.ts +0 -16
- package/lib/generated/libcore-postBuildAccount.d.ts.map +0 -1
- package/lib/generated/libcore-postBuildAccount.js +0 -14
- package/lib/generated/libcore-postBuildAccount.js.map +0 -1
- package/lib/generated/libcore-postSyncPatch.d.ts +0 -3
- package/lib/generated/libcore-postSyncPatch.d.ts.map +0 -1
- package/lib/generated/libcore-postSyncPatch.js +0 -4
- package/lib/generated/libcore-postSyncPatch.js.map +0 -1
- package/lib/generated/test-specifics.d.ts +0 -8
- package/lib/generated/test-specifics.d.ts.map +0 -1
- package/lib/generated/test-specifics.js +0 -16
- package/lib/generated/test-specifics.js.map +0 -1
- package/lib/libcore/access.d.ts +0 -11
- package/lib/libcore/access.d.ts.map +0 -1
- package/lib/libcore/access.js +0 -229
- package/lib/libcore/access.js.map +0 -1
- package/lib/libcore/broadcast.d.ts +0 -14
- package/lib/libcore/broadcast.d.ts.map +0 -1
- package/lib/libcore/broadcast.js +0 -68
- package/lib/libcore/broadcast.js.map +0 -1
- package/lib/libcore/buildAccount/buildOperation.d.ts +0 -15
- package/lib/libcore/buildAccount/buildOperation.d.ts.map +0 -1
- package/lib/libcore/buildAccount/buildOperation.js +0 -162
- package/lib/libcore/buildAccount/buildOperation.js.map +0 -1
- package/lib/libcore/buildAccount/buildSubAccounts.d.ts +0 -12
- package/lib/libcore/buildAccount/buildSubAccounts.d.ts.map +0 -1
- package/lib/libcore/buildAccount/buildSubAccounts.js.map +0 -1
- package/lib/libcore/buildAccount/index.d.ts +0 -15
- package/lib/libcore/buildAccount/index.d.ts.map +0 -1
- package/lib/libcore/buildAccount/index.js +0 -339
- package/lib/libcore/buildAccount/index.js.map +0 -1
- package/lib/libcore/buildBigNumber.d.ts +0 -7
- package/lib/libcore/buildBigNumber.d.ts.map +0 -1
- package/lib/libcore/buildBigNumber.js.map +0 -1
- package/lib/libcore/createAccountFromDevice.d.ts +0 -23
- package/lib/libcore/createAccountFromDevice.d.ts.map +0 -1
- package/lib/libcore/createAccountFromDevice.js +0 -143
- package/lib/libcore/createAccountFromDevice.js.map +0 -1
- package/lib/libcore/errors.d.ts +0 -6
- package/lib/libcore/errors.d.ts.map +0 -1
- package/lib/libcore/errors.js +0 -27
- package/lib/libcore/errors.js.map +0 -1
- package/lib/libcore/getAccountBalanceHistory.d.ts +0 -5
- package/lib/libcore/getAccountBalanceHistory.d.ts.map +0 -1
- package/lib/libcore/getAccountBalanceHistory.js +0 -87
- package/lib/libcore/getAccountBalanceHistory.js.map +0 -1
- package/lib/libcore/getAccountNetworkInfo.d.ts +0 -6
- package/lib/libcore/getAccountNetworkInfo.d.ts.map +0 -1
- package/lib/libcore/getAccountNetworkInfo.js +0 -91
- package/lib/libcore/getAccountNetworkInfo.js.map +0 -1
- package/lib/libcore/getCoreAccount.d.ts +0 -8
- package/lib/libcore/getCoreAccount.d.ts.map +0 -1
- package/lib/libcore/getCoreAccount.js +0 -78
- package/lib/libcore/getCoreAccount.js.map +0 -1
- package/lib/libcore/getFeesForTransaction.d.ts +0 -17
- package/lib/libcore/getFeesForTransaction.d.ts.map +0 -1
- package/lib/libcore/getFeesForTransaction.js +0 -87
- package/lib/libcore/getFeesForTransaction.js.map +0 -1
- package/lib/libcore/getOrCreateAccount.d.ts +0 -11
- package/lib/libcore/getOrCreateAccount.d.ts.map +0 -1
- package/lib/libcore/getOrCreateAccount.js +0 -142
- package/lib/libcore/getOrCreateAccount.js.map +0 -1
- package/lib/libcore/getOrCreateWallet.d.ts +0 -12
- package/lib/libcore/getOrCreateWallet.d.ts.map +0 -1
- package/lib/libcore/getOrCreateWallet.js +0 -138
- package/lib/libcore/getOrCreateWallet.js.map +0 -1
- package/lib/libcore/isValidRecipient.d.ts +0 -8
- package/lib/libcore/isValidRecipient.d.ts.map +0 -1
- package/lib/libcore/isValidRecipient.js +0 -78
- package/lib/libcore/isValidRecipient.js.map +0 -1
- package/lib/libcore/nativeSegwitAppsVersionsMap.d.ts +0 -6
- package/lib/libcore/nativeSegwitAppsVersionsMap.d.ts.map +0 -1
- package/lib/libcore/nativeSegwitAppsVersionsMap.js +0 -7
- package/lib/libcore/nativeSegwitAppsVersionsMap.js.map +0 -1
- package/lib/libcore/platforms/nodejs.d.ts +0 -7
- package/lib/libcore/platforms/nodejs.d.ts.map +0 -1
- package/lib/libcore/platforms/nodejs.js +0 -613
- package/lib/libcore/platforms/nodejs.js.map +0 -1
- package/lib/libcore/platforms/react-native.d.ts +0 -5
- package/lib/libcore/platforms/react-native.d.ts.map +0 -1
- package/lib/libcore/platforms/react-native.js +0 -286
- package/lib/libcore/platforms/react-native.js.map +0 -1
- package/lib/libcore/scanAccounts.d.ts +0 -12
- package/lib/libcore/scanAccounts.d.ts.map +0 -1
- package/lib/libcore/scanAccounts.js +0 -285
- package/lib/libcore/scanAccounts.js.map +0 -1
- package/lib/libcore/signOperation.d.ts +0 -38
- package/lib/libcore/signOperation.d.ts.map +0 -1
- package/lib/libcore/signOperation.js +0 -149
- package/lib/libcore/signOperation.js.map +0 -1
- package/lib/libcore/syncAccount.d.ts +0 -18
- package/lib/libcore/syncAccount.d.ts.map +0 -1
- package/lib/libcore/syncAccount.js +0 -165
- package/lib/libcore/syncAccount.js.map +0 -1
- package/lib/libcore/types/index.d.ts +0 -185
- package/lib/libcore/types/index.d.ts.map +0 -1
- package/lib/libcore/types/index.js +0 -359
- package/lib/libcore/types/index.js.map +0 -1
- package/src/__tests__/all.libcore.ts +0 -90
- package/src/__tests__/test-helpers/implement-react-native-libcore/index.ts +0 -6
- package/src/__tests__/test-helpers/implement-react-native-libcore/specific.android.ts +0 -4
- package/src/__tests__/test-helpers/implement-react-native-libcore/specific.ios.ts +0 -4
- package/src/bridge/shared.ts +0 -38
- package/src/families/algorand/bridge/libcore.ts +0 -345
- package/src/families/algorand/buildASAOperation.ts +0 -66
- package/src/families/algorand/libcore-broadcast.ts +0 -18
- package/src/families/algorand/libcore-buildOperation.ts +0 -69
- package/src/families/algorand/libcore-buildSubAccounts.ts +0 -132
- package/src/families/algorand/libcore-buildTransaction.ts +0 -115
- package/src/families/algorand/libcore-getFeesForTransaction.ts +0 -25
- package/src/families/algorand/libcore-postBuildAccount.ts +0 -42
- package/src/families/algorand/libcore-signOperation.ts +0 -104
- package/src/families/bitcoin/bridge/libcore.ts +0 -297
- package/src/families/bitcoin/customAddressValidation.ts +0 -30
- package/src/families/bitcoin/libcore-broadcast.ts +0 -15
- package/src/families/bitcoin/libcore-buildOperation.ts +0 -38
- package/src/families/bitcoin/libcore-buildTransaction.ts +0 -118
- package/src/families/bitcoin/libcore-getAccountNetworkInfo.test.ts +0 -27
- package/src/families/bitcoin/libcore-getAccountNetworkInfo.ts +0 -50
- package/src/families/bitcoin/libcore-getFeesForTransaction.ts +0 -67
- package/src/families/bitcoin/libcore-postBuildAccount.ts +0 -70
- package/src/families/bitcoin/libcore-signOperation.ts +0 -227
- package/src/families/cosmos/bridge/libcore.ts +0 -177
- package/src/families/cosmos/libcore-broadcast.ts +0 -24
- package/src/families/cosmos/libcore-buildOperation.ts +0 -121
- package/src/families/cosmos/libcore-buildTransaction.ts +0 -212
- package/src/families/cosmos/libcore-getFeesForTransaction.ts +0 -27
- package/src/families/cosmos/libcore-getTransactionStatus.ts +0 -299
- package/src/families/cosmos/libcore-mergeOperations.ts +0 -43
- package/src/families/cosmos/libcore-postBuildAccount.ts +0 -177
- package/src/families/cosmos/libcore-signOperation.ts +0 -96
- package/src/families/cosmos/message.ts +0 -155
- package/src/families/cosmos/test-specifics.ts +0 -225
- package/src/families/ethereum/nft.merging.unit.test.ts +0 -78
- package/src/families/filecoin/customAddressValidation.ts +0 -19
- package/src/families/polkadot/test-specifics.ts +0 -70
- package/src/families/tezos/bridge/libcore.ts +0 -312
- package/src/families/tezos/libcore-broadcast.ts +0 -16
- package/src/families/tezos/libcore-buildOperation.ts +0 -52
- package/src/families/tezos/libcore-buildSubAccounts.ts +0 -137
- package/src/families/tezos/libcore-buildTransaction.ts +0 -154
- package/src/families/tezos/libcore-getAccountNetworkInfo.ts +0 -25
- package/src/families/tezos/libcore-getFeesForTransaction.ts +0 -27
- package/src/families/tezos/libcore-signOperation.ts +0 -122
- package/src/families/tezos/test-specifics.ts +0 -19
- package/src/families/tron/test-specifics.ts +0 -137
- package/src/generated/bridge/libcore.ts +0 -15
- package/src/generated/libcore-buildOperation.ts +0 -15
- package/src/generated/libcore-buildSubAccounts.ts +0 -9
- package/src/generated/libcore-getAccountNetworkInfo.ts +0 -9
- package/src/generated/libcore-getFeesForTransaction.ts +0 -15
- package/src/generated/libcore-mergeOperations.ts +0 -6
- package/src/generated/libcore-postBuildAccount.ts +0 -12
- package/src/generated/libcore-postSyncPatch.ts +0 -3
- package/src/generated/test-specifics.ts +0 -15
- package/src/libcore/access.ts +0 -135
- package/src/libcore/broadcast.ts +0 -34
- package/src/libcore/buildAccount/buildOperation.ts +0 -96
- package/src/libcore/buildAccount/buildSubAccounts.ts +0 -24
- package/src/libcore/buildAccount/index.ts +0 -259
- package/src/libcore/buildBigNumber.ts +0 -28
- package/src/libcore/createAccountFromDevice.ts +0 -108
- package/src/libcore/errors.ts +0 -20
- package/src/libcore/getAccountBalanceHistory.ts +0 -56
- package/src/libcore/getAccountNetworkInfo.ts +0 -46
- package/src/libcore/getCoreAccount.ts +0 -37
- package/src/libcore/getFeesForTransaction.ts +0 -46
- package/src/libcore/getOrCreateAccount.ts +0 -93
- package/src/libcore/getOrCreateWallet.ts +0 -91
- package/src/libcore/isValidRecipient.ts +0 -36
- package/src/libcore/nativeSegwitAppsVersionsMap.ts +0 -4
- package/src/libcore/platforms/nodejs.ts +0 -627
- package/src/libcore/platforms/react-native.ts +0 -242
- package/src/libcore/scanAccounts.ts +0 -280
- package/src/libcore/signOperation.ts +0 -141
- package/src/libcore/syncAccount.ts +0 -152
- package/src/libcore/types/index.ts +0 -645
|
@@ -4,28 +4,7 @@ import type {
|
|
|
4
4
|
TransactionCommonRaw,
|
|
5
5
|
} from "../../types/transaction";
|
|
6
6
|
import type { Operation, OperationRaw } from "../../types/operation";
|
|
7
|
-
|
|
8
|
-
export type CoreStatics = {
|
|
9
|
-
CosmosLikeOperation: CoreCosmosLikeOperation;
|
|
10
|
-
CosmosLikeAddress: CoreCosmosLikeAddress;
|
|
11
|
-
CosmosLikeTransactionBuilder: CoreCosmosLikeTransactionBuilder;
|
|
12
|
-
CosmosLikeTransaction: CoreCosmosLikeTransaction;
|
|
13
|
-
CosmosLikeMessage: CoreCosmosLikeMessage;
|
|
14
|
-
CosmosLikeMsgWithdrawDelegationReward: CosmosMsgWithdrawDelegationReward;
|
|
15
|
-
CosmosLikeAmount: CoreCosmosLikeAmount;
|
|
16
|
-
CosmosLikeMsgSend: CosmosMsgSend;
|
|
17
|
-
CosmosLikeMsgDelegate: CosmosMsgDelegate;
|
|
18
|
-
CosmosLikeMsgUndelegate: CosmosMsgUndelegate;
|
|
19
|
-
CosmosLikeMsgBeginRedelegate: CosmosMsgRedelegate;
|
|
20
|
-
CosmosGasLimitRequest: CoreCosmosGasLimitRequest;
|
|
21
|
-
};
|
|
22
|
-
export type CoreAccountSpecifics = {
|
|
23
|
-
asCosmosLikeAccount(): Promise<CoreCosmosLikeAccount>;
|
|
24
|
-
};
|
|
25
|
-
export type CoreOperationSpecifics = {
|
|
26
|
-
asCosmosLikeOperation(): Promise<CoreCosmosLikeOperation>;
|
|
27
|
-
};
|
|
28
|
-
export type CoreCurrencySpecifics = Record<string, never>;
|
|
7
|
+
|
|
29
8
|
export type CosmosDelegationStatus =
|
|
30
9
|
| "bonded" // in the active set that generates rewards
|
|
31
10
|
| "unbonding" // doesn't generate rewards. means the validator has been removed from the active set, but has its voting power "frozen" in case they misbehaved (just like a delegator undelegating). This last 21 days
|
|
@@ -137,19 +116,6 @@ export type CosmosExtraTxInfo = {
|
|
|
137
116
|
validator?: CosmosDelegationInfo;
|
|
138
117
|
};
|
|
139
118
|
|
|
140
|
-
export type CosmosDelegateTxInfo = {
|
|
141
|
-
validators: CosmosDelegationInfo[];
|
|
142
|
-
};
|
|
143
|
-
export type CosmosUndelegateTxInfo = {
|
|
144
|
-
validators: CosmosDelegationInfo[];
|
|
145
|
-
};
|
|
146
|
-
export type CosmosRedelegateTxInfo = {
|
|
147
|
-
validators: CosmosDelegationInfo[];
|
|
148
|
-
cosmosSourceValidator: string | null | undefined;
|
|
149
|
-
};
|
|
150
|
-
export type CosmosClaimRewardsTxInfo = {
|
|
151
|
-
validator: CosmosDelegationInfo;
|
|
152
|
-
};
|
|
153
119
|
export type CosmosDelegationInfo = {
|
|
154
120
|
address: string;
|
|
155
121
|
amount: BigNumber;
|
|
@@ -158,210 +124,7 @@ export type CosmosDelegationInfoRaw = {
|
|
|
158
124
|
address: string;
|
|
159
125
|
amount: string;
|
|
160
126
|
};
|
|
161
|
-
export type CosmosMessage = CoreCosmosLikeMessage;
|
|
162
|
-
|
|
163
|
-
declare class CosmosMsgSend {
|
|
164
|
-
init(
|
|
165
|
-
fromAddress: string,
|
|
166
|
-
toAddress: string,
|
|
167
|
-
amount: CoreCosmosLikeAmount[]
|
|
168
|
-
): Promise<CosmosMsgSend>;
|
|
169
|
-
fromAddress: string;
|
|
170
|
-
toAddress: string;
|
|
171
|
-
amount: Array<CoreCosmosLikeAmount>;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
declare class CosmosMsgDelegate {
|
|
175
|
-
init(
|
|
176
|
-
delegatorAddress: string,
|
|
177
|
-
validatorAddress: string,
|
|
178
|
-
amount: CoreCosmosLikeAmount
|
|
179
|
-
): Promise<CosmosMsgDelegate>;
|
|
180
|
-
getValidatorAddress(): Promise<string>;
|
|
181
|
-
getAmount(): Promise<CosmosAmount>;
|
|
182
|
-
delegatorAddress: string;
|
|
183
|
-
validatorAddress: string;
|
|
184
|
-
amount: CoreCosmosLikeAmount;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
export type CosmosMsgUndelegate = CosmosMsgDelegate;
|
|
188
|
-
type CosmosAmount = {
|
|
189
|
-
getAmount(): Promise<string>;
|
|
190
|
-
amount: string;
|
|
191
|
-
denom: string;
|
|
192
|
-
};
|
|
193
|
-
|
|
194
|
-
declare class CoreCosmosGasLimitRequest {
|
|
195
|
-
init(
|
|
196
|
-
memo: string,
|
|
197
|
-
messages: CoreCosmosLikeMessage[],
|
|
198
|
-
amplifier: string
|
|
199
|
-
): Promise<CoreCosmosGasLimitRequest>;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
declare class CosmosMsgRedelegate {
|
|
203
|
-
init(
|
|
204
|
-
delegatorAddress: string,
|
|
205
|
-
validatorSourceAddress: string,
|
|
206
|
-
validatorDestinationAddress: string,
|
|
207
|
-
amount: CoreCosmosLikeAmount
|
|
208
|
-
): Promise<CosmosMsgRedelegate>;
|
|
209
|
-
getValidatorDestinationAddress(): Promise<string>;
|
|
210
|
-
getValidatorSourceAddress(): Promise<string>;
|
|
211
|
-
getAmount(): Promise<CosmosAmount>;
|
|
212
|
-
delegatorAddress: string;
|
|
213
|
-
validatorSourceAddress: string;
|
|
214
|
-
validatorDestinationAddress: string;
|
|
215
|
-
amount: CoreCosmosLikeAmount;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
declare class CoreCosmosLikeAmount {
|
|
219
|
-
init(amount: string, denom: string): Promise<CoreCosmosLikeAmount>;
|
|
220
|
-
getAmount(): Promise<string>;
|
|
221
|
-
amount: string;
|
|
222
|
-
denom: string;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
declare class CosmosMsgWithdrawDelegationReward {
|
|
226
|
-
init(
|
|
227
|
-
delegatorAddress: string,
|
|
228
|
-
validatorAddress: string
|
|
229
|
-
): Promise<CosmosMsgWithdrawDelegationReward>;
|
|
230
|
-
getValidatorAddress(): Promise<string>;
|
|
231
|
-
delegatorAddress: string;
|
|
232
|
-
validatorAddress: string;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
type CosmosLikeEntry = {
|
|
236
|
-
// Block height of the begin redelegate request
|
|
237
|
-
getCreationHeight(): Promise<CoreBigInt>;
|
|
238
|
-
// Timestamp of the redelegation completion
|
|
239
|
-
getCompletionTime(): Date;
|
|
240
|
-
// Balance requested to redelegate
|
|
241
|
-
getInitialBalance(): Promise<CoreBigInt>;
|
|
242
|
-
// Current amount being redelegated (i.e. less than initialBalance if slashed)
|
|
243
|
-
getBalance(): Promise<CoreBigInt>;
|
|
244
|
-
};
|
|
245
|
-
export type CosmosLikeRedelegation = {
|
|
246
|
-
getDelegatorAddress(): string;
|
|
247
|
-
getSrcValidatorAddress(): string;
|
|
248
|
-
getDstValidatorAddress(): string;
|
|
249
|
-
getEntries(): CosmosLikeEntry[];
|
|
250
|
-
};
|
|
251
|
-
export type CosmosLikeUnbonding = {
|
|
252
|
-
getDelegatorAddress(): string;
|
|
253
|
-
getValidatorAddress(): string;
|
|
254
|
-
getEntries(): CosmosLikeEntry[];
|
|
255
|
-
};
|
|
256
|
-
export type CosmosLikeDelegation = {
|
|
257
|
-
getDelegatorAddress(): string;
|
|
258
|
-
getValidatorAddress(): string;
|
|
259
|
-
getDelegatedAmount(): CoreAmount;
|
|
260
|
-
};
|
|
261
|
-
|
|
262
|
-
declare class CoreCosmosLikeAddress {
|
|
263
|
-
toBech32(): Promise<string>;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
declare class CoreCosmosLikeOperation {
|
|
267
|
-
getTransaction(): Promise<CoreCosmosLikeTransaction>;
|
|
268
|
-
getMessage(): Promise<CoreCosmosLikeMessage>;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
declare class CoreCosmosLikeMsgType {}
|
|
272
127
|
|
|
273
|
-
declare class CoreCosmosLikeMessage {
|
|
274
|
-
getIndex(): Promise<string>;
|
|
275
|
-
getMessageType(): Promise<CoreCosmosLikeMsgType>;
|
|
276
|
-
getRawMessageType(): Promise<string>;
|
|
277
|
-
wrapMsgSend(message: CosmosMsgSend): Promise<CoreCosmosLikeMessage>;
|
|
278
|
-
wrapMsgDelegate(message: CosmosMsgDelegate): Promise<CoreCosmosLikeMessage>;
|
|
279
|
-
wrapMsgUndelegate(
|
|
280
|
-
message: CosmosMsgUndelegate
|
|
281
|
-
): Promise<CoreCosmosLikeMessage>;
|
|
282
|
-
wrapMsgBeginRedelegate(
|
|
283
|
-
message: CosmosMsgRedelegate
|
|
284
|
-
): Promise<CoreCosmosLikeMessage>;
|
|
285
|
-
wrapMsgWithdrawDelegationReward(
|
|
286
|
-
message: CosmosMsgWithdrawDelegationReward
|
|
287
|
-
): Promise<CoreCosmosLikeMessage>;
|
|
288
|
-
unwrapMsgDelegate(msg: CosmosMessage): Promise<CosmosMsgDelegate>;
|
|
289
|
-
unwrapMsgBeginRedelegate(msg: CosmosMessage): Promise<CosmosMsgRedelegate>;
|
|
290
|
-
unwrapMsgUndelegate(msg: CosmosMessage): Promise<CosmosMsgUndelegate>;
|
|
291
|
-
unwrapMsgWithdrawDelegationReward(
|
|
292
|
-
msg: CosmosMessage
|
|
293
|
-
): Promise<CosmosMsgWithdrawDelegationReward>;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
declare class CoreCosmosLikeTransactionBuilder {
|
|
297
|
-
setMemo(memo: string): Promise<CoreCosmosLikeTransactionBuilder>;
|
|
298
|
-
setSequence(sequence: string): Promise<CoreCosmosLikeTransactionBuilder>;
|
|
299
|
-
setAccountNumber(
|
|
300
|
-
accountNumber: string
|
|
301
|
-
): Promise<CoreCosmosLikeTransactionBuilder>;
|
|
302
|
-
addMessage(
|
|
303
|
-
message: CoreCosmosLikeMessage
|
|
304
|
-
): Promise<CoreCosmosLikeTransactionBuilder>;
|
|
305
|
-
setFee(fees: CoreAmount): Promise<CoreCosmosLikeTransactionBuilder>;
|
|
306
|
-
setGas(gas: CoreAmount): Promise<CoreCosmosLikeTransactionBuilder>;
|
|
307
|
-
build(): Promise<CoreCosmosLikeTransaction>;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
declare class CoreCosmosLikeTransaction {
|
|
311
|
-
toRawTransaction(): string;
|
|
312
|
-
toSignatureBase(): Promise<string>;
|
|
313
|
-
getHash(): Promise<string>;
|
|
314
|
-
getMemo(): Promise<string>;
|
|
315
|
-
getFee(): Promise<CoreAmount>;
|
|
316
|
-
getGas(): Promise<CoreAmount>;
|
|
317
|
-
serializeForSignature(): Promise<string>;
|
|
318
|
-
serializeForBroadcast(type: "block" | "async" | "sync"): Promise<string>;
|
|
319
|
-
setSignature(arg0: string, arg1: string): Promise<void>;
|
|
320
|
-
setDERSignature(arg0: string): Promise<void>;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
declare class CosmosLikeReward {
|
|
324
|
-
getDelegatorAddress(): string;
|
|
325
|
-
getValidatorAddress(): string;
|
|
326
|
-
getRewardAmount(): CoreAmount;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
export type CosmosLikeValidator = {
|
|
330
|
-
activeStatus: string;
|
|
331
|
-
getActiveStatus(): Promise<string>;
|
|
332
|
-
};
|
|
333
|
-
export type CosmosBroadcastResponse = {
|
|
334
|
-
code: number;
|
|
335
|
-
raw_log: string;
|
|
336
|
-
txhash: string;
|
|
337
|
-
};
|
|
338
|
-
|
|
339
|
-
declare class CoreCosmosLikeAccount {
|
|
340
|
-
buildTransaction(): Promise<CoreCosmosLikeTransactionBuilder>;
|
|
341
|
-
broadcastRawTransaction(signed: string): Promise<string>;
|
|
342
|
-
broadcastTransaction(signed: string): Promise<string>;
|
|
343
|
-
getEstimatedGasLimit(
|
|
344
|
-
transaction: CoreCosmosLikeTransaction
|
|
345
|
-
): Promise<CoreBigInt>;
|
|
346
|
-
estimateGas(request: CoreCosmosGasLimitRequest): Promise<CoreBigInt>;
|
|
347
|
-
getBaseReserve(): Promise<CoreAmount>;
|
|
348
|
-
isAddressActivated(address: string): Promise<boolean>;
|
|
349
|
-
getSequence(): Promise<string>;
|
|
350
|
-
getAccountNumber(): Promise<string>;
|
|
351
|
-
getPendingRewards(): Promise<CosmosLikeReward[]>;
|
|
352
|
-
getRedelegations(): Promise<CosmosLikeRedelegation[]>;
|
|
353
|
-
getUnbondings(): Promise<CosmosLikeUnbonding[]>;
|
|
354
|
-
getDelegations(): Promise<CosmosLikeDelegation[]>;
|
|
355
|
-
getValidatorInfo(validatorAddress: string): Promise<CosmosLikeValidator>;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
export type {
|
|
359
|
-
CoreCosmosLikeAccount,
|
|
360
|
-
CoreCosmosLikeAddress,
|
|
361
|
-
CoreCosmosLikeOperation,
|
|
362
|
-
CoreCosmosLikeTransaction,
|
|
363
|
-
CoreCosmosLikeTransactionBuilder,
|
|
364
|
-
};
|
|
365
128
|
export type Transaction = TransactionCommon & {
|
|
366
129
|
family: "cosmos";
|
|
367
130
|
mode: CosmosOperationMode;
|
|
@@ -429,384 +192,3 @@ export type CosmosMappedValidator = {
|
|
|
429
192
|
export type CosmosSearchFilter = (
|
|
430
193
|
query: string
|
|
431
194
|
) => (delegation: CosmosMappedDelegation | CosmosMappedValidator) => boolean;
|
|
432
|
-
export const reflect = (
|
|
433
|
-
declare: (arg0: string, arg1: Spec) => void
|
|
434
|
-
): {
|
|
435
|
-
OperationMethods: {
|
|
436
|
-
asCosmosLikeOperation: {
|
|
437
|
-
returns: "CosmosLikeOperation";
|
|
438
|
-
};
|
|
439
|
-
};
|
|
440
|
-
AccountMethods: {
|
|
441
|
-
asCosmosLikeAccount: {
|
|
442
|
-
returns: "CosmosLikeAccount";
|
|
443
|
-
};
|
|
444
|
-
};
|
|
445
|
-
} => {
|
|
446
|
-
declare("CosmosLikeTransactionBuilder", {
|
|
447
|
-
methods: {
|
|
448
|
-
addMessage: {
|
|
449
|
-
params: ["CosmosLikeMessage"],
|
|
450
|
-
},
|
|
451
|
-
build: {
|
|
452
|
-
returns: "CosmosLikeTransaction",
|
|
453
|
-
},
|
|
454
|
-
setMemo: {},
|
|
455
|
-
setSequence: {},
|
|
456
|
-
setAccountNumber: {},
|
|
457
|
-
setFee: {
|
|
458
|
-
params: ["Amount"],
|
|
459
|
-
},
|
|
460
|
-
setGas: {
|
|
461
|
-
params: ["Amount"],
|
|
462
|
-
},
|
|
463
|
-
},
|
|
464
|
-
});
|
|
465
|
-
declare("CosmosGasLimitRequest", {
|
|
466
|
-
njsUsesPlainObject: true,
|
|
467
|
-
statics: {
|
|
468
|
-
init: {
|
|
469
|
-
params: [null, ["CosmosLikeMessage"], null],
|
|
470
|
-
returns: "CosmosGasLimitRequest",
|
|
471
|
-
njsInstanciateClass: [
|
|
472
|
-
{
|
|
473
|
-
memo: 0,
|
|
474
|
-
messages: 1,
|
|
475
|
-
amplifier: 2,
|
|
476
|
-
},
|
|
477
|
-
],
|
|
478
|
-
},
|
|
479
|
-
},
|
|
480
|
-
});
|
|
481
|
-
declare("CosmosLikeAccount", {
|
|
482
|
-
methods: {
|
|
483
|
-
estimateGas: {
|
|
484
|
-
params: ["CosmosGasLimitRequest"],
|
|
485
|
-
returns: "BigInt",
|
|
486
|
-
},
|
|
487
|
-
buildTransaction: {
|
|
488
|
-
returns: "CosmosLikeTransactionBuilder",
|
|
489
|
-
},
|
|
490
|
-
broadcastRawTransaction: {},
|
|
491
|
-
broadcastTransaction: {},
|
|
492
|
-
getEstimatedGasLimit: {
|
|
493
|
-
params: ["CosmosLikeTransaction"],
|
|
494
|
-
},
|
|
495
|
-
getSequence: {},
|
|
496
|
-
getAccountNumber: {},
|
|
497
|
-
getPendingRewards: {
|
|
498
|
-
returns: ["CosmosLikeReward"],
|
|
499
|
-
},
|
|
500
|
-
getRedelegations: {
|
|
501
|
-
returns: ["CosmosLikeRedelegation"],
|
|
502
|
-
},
|
|
503
|
-
getUnbondings: {
|
|
504
|
-
returns: ["CosmosLikeUnbonding"],
|
|
505
|
-
},
|
|
506
|
-
getDelegations: {
|
|
507
|
-
returns: ["CosmosLikeDelegation"],
|
|
508
|
-
},
|
|
509
|
-
getValidatorInfo: {
|
|
510
|
-
returns: "CosmosLikeValidator",
|
|
511
|
-
},
|
|
512
|
-
},
|
|
513
|
-
});
|
|
514
|
-
declare("CosmosLikeValidator", {
|
|
515
|
-
njsUsesPlainObject: true,
|
|
516
|
-
methods: {
|
|
517
|
-
getActiveStatus: {
|
|
518
|
-
njsField: "activeStatus",
|
|
519
|
-
},
|
|
520
|
-
},
|
|
521
|
-
});
|
|
522
|
-
declare("CosmosLikeReward", {
|
|
523
|
-
methods: {
|
|
524
|
-
getDelegatorAddress: {},
|
|
525
|
-
getValidatorAddress: {},
|
|
526
|
-
getRewardAmount: {
|
|
527
|
-
returns: "Amount",
|
|
528
|
-
},
|
|
529
|
-
},
|
|
530
|
-
});
|
|
531
|
-
declare("CosmosLikeUnbonding", {
|
|
532
|
-
methods: {
|
|
533
|
-
getDelegatorAddress: {},
|
|
534
|
-
getValidatorAddress: {},
|
|
535
|
-
getEntries: {
|
|
536
|
-
returns: ["CosmosLikeUnbondingEntry"],
|
|
537
|
-
},
|
|
538
|
-
},
|
|
539
|
-
});
|
|
540
|
-
declare("CosmosLikeTransaction", {
|
|
541
|
-
methods: {
|
|
542
|
-
getHash: {},
|
|
543
|
-
getMemo: {},
|
|
544
|
-
setDERSignature: {
|
|
545
|
-
params: ["hex"],
|
|
546
|
-
},
|
|
547
|
-
getFee: {
|
|
548
|
-
returns: "Amount",
|
|
549
|
-
},
|
|
550
|
-
getGas: {
|
|
551
|
-
returns: "Amount",
|
|
552
|
-
},
|
|
553
|
-
serializeForSignature: {},
|
|
554
|
-
serializeForBroadcast: {},
|
|
555
|
-
},
|
|
556
|
-
});
|
|
557
|
-
declare("CosmosLikeOperation", {
|
|
558
|
-
methods: {
|
|
559
|
-
getTransaction: {
|
|
560
|
-
returns: "CosmosLikeTransaction",
|
|
561
|
-
},
|
|
562
|
-
getMessage: {
|
|
563
|
-
returns: "CosmosLikeMessage",
|
|
564
|
-
},
|
|
565
|
-
},
|
|
566
|
-
});
|
|
567
|
-
declare("CosmosLikeRedelegationEntry", {
|
|
568
|
-
methods: {
|
|
569
|
-
getInitialBalance: {
|
|
570
|
-
returns: "BigInt",
|
|
571
|
-
},
|
|
572
|
-
getCompletionTime: {},
|
|
573
|
-
},
|
|
574
|
-
});
|
|
575
|
-
declare("CosmosLikeUnbondingEntry", {
|
|
576
|
-
methods: {
|
|
577
|
-
getInitialBalance: {
|
|
578
|
-
returns: "BigInt",
|
|
579
|
-
},
|
|
580
|
-
getCompletionTime: {},
|
|
581
|
-
},
|
|
582
|
-
});
|
|
583
|
-
declare("CosmosLikeRedelegation", {
|
|
584
|
-
methods: {
|
|
585
|
-
getDelegatorAddress: {
|
|
586
|
-
returns: "string",
|
|
587
|
-
},
|
|
588
|
-
getSrcValidatorAddress: {
|
|
589
|
-
returns: "string",
|
|
590
|
-
},
|
|
591
|
-
getDstValidatorAddress: {
|
|
592
|
-
returns: "string",
|
|
593
|
-
},
|
|
594
|
-
getEntries: {
|
|
595
|
-
returns: ["CosmosLikeRedelegationEntry"],
|
|
596
|
-
},
|
|
597
|
-
},
|
|
598
|
-
});
|
|
599
|
-
declare("CosmosLikeDelegation", {
|
|
600
|
-
methods: {
|
|
601
|
-
getDelegatorAddress: {},
|
|
602
|
-
getValidatorAddress: {},
|
|
603
|
-
getDelegatedAmount: {
|
|
604
|
-
returns: "Amount",
|
|
605
|
-
},
|
|
606
|
-
},
|
|
607
|
-
});
|
|
608
|
-
declare("CosmosLikeMessage", {
|
|
609
|
-
statics: {
|
|
610
|
-
wrapMsgSend: {
|
|
611
|
-
params: ["CosmosLikeMsgSend"],
|
|
612
|
-
returns: "CosmosLikeMessage",
|
|
613
|
-
njsBuggyMethodIsNotStatic: true,
|
|
614
|
-
},
|
|
615
|
-
wrapMsgDelegate: {
|
|
616
|
-
params: ["CosmosLikeMsgDelegate"],
|
|
617
|
-
returns: "CosmosLikeMessage",
|
|
618
|
-
njsBuggyMethodIsNotStatic: true,
|
|
619
|
-
},
|
|
620
|
-
wrapMsgUndelegate: {
|
|
621
|
-
params: ["CosmosLikeMsgUndelegate"],
|
|
622
|
-
returns: "CosmosLikeMessage",
|
|
623
|
-
njsBuggyMethodIsNotStatic: true,
|
|
624
|
-
},
|
|
625
|
-
wrapMsgBeginRedelegate: {
|
|
626
|
-
params: ["CosmosLikeMsgBeginRedelegate"],
|
|
627
|
-
returns: "CosmosLikeMessage",
|
|
628
|
-
njsBuggyMethodIsNotStatic: true,
|
|
629
|
-
},
|
|
630
|
-
wrapMsgWithdrawDelegationReward: {
|
|
631
|
-
params: ["CosmosLikeMsgWithdrawDelegationReward"],
|
|
632
|
-
returns: "CosmosLikeMessage",
|
|
633
|
-
njsBuggyMethodIsNotStatic: true,
|
|
634
|
-
},
|
|
635
|
-
unwrapMsgDelegate: {
|
|
636
|
-
params: ["CosmosLikeMessage"],
|
|
637
|
-
returns: "CosmosLikeMsgDelegate",
|
|
638
|
-
njsBuggyMethodIsNotStatic: true,
|
|
639
|
-
},
|
|
640
|
-
unwrapMsgBeginRedelegate: {
|
|
641
|
-
params: ["CosmosLikeMessage"],
|
|
642
|
-
returns: "CosmosLikeMsgBeginRedelegate",
|
|
643
|
-
njsBuggyMethodIsNotStatic: true,
|
|
644
|
-
},
|
|
645
|
-
unwrapMsgUndelegate: {
|
|
646
|
-
params: ["CosmosLikeMessage"],
|
|
647
|
-
returns: "CosmosLikeMsgUndelegate",
|
|
648
|
-
njsBuggyMethodIsNotStatic: true,
|
|
649
|
-
},
|
|
650
|
-
unwrapMsgWithdrawDelegationReward: {
|
|
651
|
-
params: ["CosmosLikeMessage"],
|
|
652
|
-
returns: "CosmosLikeMsgWithdrawDelegationReward",
|
|
653
|
-
njsBuggyMethodIsNotStatic: true,
|
|
654
|
-
},
|
|
655
|
-
},
|
|
656
|
-
methods: {
|
|
657
|
-
getMessageType: {},
|
|
658
|
-
getRawMessageType: {},
|
|
659
|
-
getIndex: {},
|
|
660
|
-
},
|
|
661
|
-
});
|
|
662
|
-
declare("CosmosLikeAmount", {
|
|
663
|
-
njsUsesPlainObject: true,
|
|
664
|
-
statics: {
|
|
665
|
-
init: {
|
|
666
|
-
params: [null, null],
|
|
667
|
-
returns: "CosmosLikeAmount",
|
|
668
|
-
njsInstanciateClass: [
|
|
669
|
-
{
|
|
670
|
-
amount: 0,
|
|
671
|
-
denom: 1,
|
|
672
|
-
},
|
|
673
|
-
],
|
|
674
|
-
},
|
|
675
|
-
},
|
|
676
|
-
methods: {
|
|
677
|
-
getAmount: {
|
|
678
|
-
njsField: "amount",
|
|
679
|
-
},
|
|
680
|
-
},
|
|
681
|
-
});
|
|
682
|
-
declare("CosmosLikeMsgSend", {
|
|
683
|
-
njsUsesPlainObject: true,
|
|
684
|
-
statics: {
|
|
685
|
-
init: {
|
|
686
|
-
params: [null, null, ["CosmosLikeAmount"]],
|
|
687
|
-
returns: "CosmosLikeMsgSend",
|
|
688
|
-
njsInstanciateClass: [
|
|
689
|
-
{
|
|
690
|
-
fromAddress: 0,
|
|
691
|
-
toAddress: 1,
|
|
692
|
-
amount: 2,
|
|
693
|
-
},
|
|
694
|
-
],
|
|
695
|
-
},
|
|
696
|
-
},
|
|
697
|
-
});
|
|
698
|
-
declare("CosmosLikeMsgDelegate", {
|
|
699
|
-
njsUsesPlainObject: true,
|
|
700
|
-
statics: {
|
|
701
|
-
init: {
|
|
702
|
-
params: [null, null, "CosmosLikeAmount"],
|
|
703
|
-
returns: "CosmosLikeMsgDelegate",
|
|
704
|
-
njsInstanciateClass: [
|
|
705
|
-
{
|
|
706
|
-
delegatorAddress: 0,
|
|
707
|
-
validatorAddress: 1,
|
|
708
|
-
amount: 2,
|
|
709
|
-
},
|
|
710
|
-
],
|
|
711
|
-
},
|
|
712
|
-
},
|
|
713
|
-
methods: {
|
|
714
|
-
getValidatorAddress: {
|
|
715
|
-
njsField: "validatorAddress",
|
|
716
|
-
},
|
|
717
|
-
getAmount: {
|
|
718
|
-
njsField: "amount",
|
|
719
|
-
returns: "CosmosLikeAmount",
|
|
720
|
-
},
|
|
721
|
-
},
|
|
722
|
-
});
|
|
723
|
-
declare("CosmosLikeMsgBeginRedelegate", {
|
|
724
|
-
njsUsesPlainObject: true,
|
|
725
|
-
statics: {
|
|
726
|
-
init: {
|
|
727
|
-
params: [null, null, null, "CosmosLikeAmount"],
|
|
728
|
-
returns: "CosmosLikeMsgBeginRedelegate",
|
|
729
|
-
njsInstanciateClass: [
|
|
730
|
-
{
|
|
731
|
-
delegatorAddress: 0,
|
|
732
|
-
validatorSourceAddress: 1,
|
|
733
|
-
validatorDestinationAddress: 2,
|
|
734
|
-
amount: 3,
|
|
735
|
-
},
|
|
736
|
-
],
|
|
737
|
-
},
|
|
738
|
-
},
|
|
739
|
-
methods: {
|
|
740
|
-
getValidatorDestinationAddress: {
|
|
741
|
-
njsField: "validatorDestinationAddress",
|
|
742
|
-
},
|
|
743
|
-
getValidatorSourceAddress: {
|
|
744
|
-
njsField: "validatorSourceAddress",
|
|
745
|
-
},
|
|
746
|
-
getAmount: {
|
|
747
|
-
njsField: "amount",
|
|
748
|
-
returns: "CosmosLikeAmount",
|
|
749
|
-
},
|
|
750
|
-
},
|
|
751
|
-
});
|
|
752
|
-
declare("CosmosLikeMsgUndelegate", {
|
|
753
|
-
njsUsesPlainObject: true,
|
|
754
|
-
statics: {
|
|
755
|
-
init: {
|
|
756
|
-
params: [null, null, "CosmosLikeAmount"],
|
|
757
|
-
returns: "CosmosLikeMsgUndelegate",
|
|
758
|
-
njsInstanciateClass: [
|
|
759
|
-
{
|
|
760
|
-
delegatorAddress: 0,
|
|
761
|
-
validatorAddress: 1,
|
|
762
|
-
amount: 2,
|
|
763
|
-
},
|
|
764
|
-
],
|
|
765
|
-
},
|
|
766
|
-
},
|
|
767
|
-
methods: {
|
|
768
|
-
getValidatorAddress: {
|
|
769
|
-
njsField: "validatorAddress",
|
|
770
|
-
},
|
|
771
|
-
getAmount: {
|
|
772
|
-
njsField: "amount",
|
|
773
|
-
returns: "CosmosLikeAmount",
|
|
774
|
-
},
|
|
775
|
-
},
|
|
776
|
-
});
|
|
777
|
-
declare("CosmosLikeMsgWithdrawDelegationReward", {
|
|
778
|
-
njsUsesPlainObject: true,
|
|
779
|
-
statics: {
|
|
780
|
-
init: {
|
|
781
|
-
params: [null, null],
|
|
782
|
-
returns: "CosmosLikeMsgWithdrawDelegationReward",
|
|
783
|
-
njsInstanciateClass: [
|
|
784
|
-
{
|
|
785
|
-
delegatorAddress: 0,
|
|
786
|
-
validatorAddress: 1,
|
|
787
|
-
},
|
|
788
|
-
],
|
|
789
|
-
},
|
|
790
|
-
},
|
|
791
|
-
methods: {
|
|
792
|
-
getDelegatorAddress: {
|
|
793
|
-
njsField: "delegatorAddress",
|
|
794
|
-
},
|
|
795
|
-
getValidatorAddress: {
|
|
796
|
-
njsField: "validatorAddress",
|
|
797
|
-
},
|
|
798
|
-
},
|
|
799
|
-
});
|
|
800
|
-
return {
|
|
801
|
-
OperationMethods: {
|
|
802
|
-
asCosmosLikeOperation: {
|
|
803
|
-
returns: "CosmosLikeOperation",
|
|
804
|
-
},
|
|
805
|
-
},
|
|
806
|
-
AccountMethods: {
|
|
807
|
-
asCosmosLikeAccount: {
|
|
808
|
-
returns: "CosmosLikeAccount",
|
|
809
|
-
},
|
|
810
|
-
},
|
|
811
|
-
};
|
|
812
|
-
};
|
|
@@ -32,7 +32,7 @@ export const buildTransaction = async (
|
|
|
32
32
|
publicKey: string
|
|
33
33
|
) => {
|
|
34
34
|
const croSdk = getCroSdk(a.currency.id);
|
|
35
|
-
const address = a.
|
|
35
|
+
const address = a.freshAddress;
|
|
36
36
|
const { accountNumber, sequence } = await getAccountParams(
|
|
37
37
|
address,
|
|
38
38
|
a.currency.id
|
|
@@ -117,10 +117,9 @@ const signOperation = ({
|
|
|
117
117
|
|
|
118
118
|
// Get the public key
|
|
119
119
|
const hwApp = new CryptoOrgApp(transport);
|
|
120
|
-
const address = account.freshAddresses[0];
|
|
121
120
|
const cointype = isTestNet(account.currency.id) ? "tcro" : "cro";
|
|
122
121
|
const { publicKey } = await hwApp.getAddress(
|
|
123
|
-
|
|
122
|
+
account.freshAddressPath,
|
|
124
123
|
cointype,
|
|
125
124
|
false
|
|
126
125
|
);
|
|
@@ -131,7 +130,7 @@ const signOperation = ({
|
|
|
131
130
|
);
|
|
132
131
|
// Sign by device
|
|
133
132
|
const { signature } = await hwApp.sign(
|
|
134
|
-
|
|
133
|
+
account.freshAddressPath,
|
|
135
134
|
unsigned.toSignDocument(0).toUint8Array()
|
|
136
135
|
);
|
|
137
136
|
|
|
@@ -3,10 +3,7 @@ import type {
|
|
|
3
3
|
TransactionCommon,
|
|
4
4
|
TransactionCommonRaw,
|
|
5
5
|
} from "../../types/transaction";
|
|
6
|
-
|
|
7
|
-
export type CoreAccountSpecifics = Record<any, any>;
|
|
8
|
-
export type CoreOperationSpecifics = Record<any, any>;
|
|
9
|
-
export type CoreCurrencySpecifics = Record<any, any>;
|
|
6
|
+
|
|
10
7
|
export type CryptoOrgResources = {
|
|
11
8
|
bondedBalance: BigNumber;
|
|
12
9
|
redelegatingBalance: BigNumber;
|
|
@@ -38,4 +35,3 @@ export type NetworkInfo = {
|
|
|
38
35
|
export type NetworkInfoRaw = {
|
|
39
36
|
family: "crypto_org";
|
|
40
37
|
};
|
|
41
|
-
export const reflect = (_declare: any) => {};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import type { BigNumber } from "bignumber.js";
|
|
2
|
-
import { RangeRaw } from "../../range";
|
|
2
|
+
import { Range, RangeRaw } from "../../range";
|
|
3
3
|
import type {
|
|
4
4
|
TransactionCommon,
|
|
5
5
|
TransactionCommonRaw,
|
|
6
6
|
} from "../../types/transaction";
|
|
7
|
-
|
|
8
|
-
export type CoreAccountSpecifics = Record<string, never>;
|
|
9
|
-
export type CoreOperationSpecifics = Record<string, never>;
|
|
10
|
-
export type CoreCurrencySpecifics = Record<string, never>;
|
|
7
|
+
|
|
11
8
|
export type ElrondResources = {
|
|
12
9
|
nonce: number;
|
|
13
10
|
};
|
|
@@ -74,4 +71,3 @@ export type NetworkInfoRaw = {
|
|
|
74
71
|
export type ElrondPreloadData = {
|
|
75
72
|
validators: Record<string, any>;
|
|
76
73
|
};
|
|
77
|
-
export const reflect = (_declare: any) => {};
|