@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
|
@@ -3,592 +3,23 @@ import { PublicKey } from "@solana/web3.js";
|
|
|
3
3
|
|
|
4
4
|
export const getMockedMethods = () => [
|
|
5
5
|
// generated
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
blockTime: 1637780906,
|
|
26
|
-
confirmationStatus: "finalized",
|
|
27
|
-
err: null,
|
|
28
|
-
memo: null,
|
|
29
|
-
signature:
|
|
30
|
-
"25KWBvKtVgKR3yoRmozTY6wmiW8atwrnzAnTXdsms8jqg5aR8GnCDxdJzWXtzMZPvbsE6SUuBkGFXudy2mrcTYna",
|
|
31
|
-
slot: 108520722,
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
method: "getParsedConfirmedTransactions",
|
|
37
|
-
params: [
|
|
38
|
-
[
|
|
39
|
-
"A29zPnK1jPr2tGziTnaAvSnadYR2kLCv9sPywj9FJsaEFjtpwmUonspN3WJgz4u6XWmjtVpoFsDrygEnvW51cgk",
|
|
40
|
-
"25KWBvKtVgKR3yoRmozTY6wmiW8atwrnzAnTXdsms8jqg5aR8GnCDxdJzWXtzMZPvbsE6SUuBkGFXudy2mrcTYna",
|
|
41
|
-
],
|
|
42
|
-
],
|
|
43
|
-
answer: [
|
|
44
|
-
{
|
|
45
|
-
blockTime: 1637781134,
|
|
46
|
-
meta: {
|
|
47
|
-
err: null,
|
|
48
|
-
fee: 5000,
|
|
49
|
-
innerInstructions: [
|
|
50
|
-
{
|
|
51
|
-
index: 1,
|
|
52
|
-
instructions: [
|
|
53
|
-
{
|
|
54
|
-
parsed: {
|
|
55
|
-
info: {
|
|
56
|
-
account: "8RtwWeqdFz4EFuZU3MAadfYMWSdRMamjFrfq6BXkHuNN",
|
|
57
|
-
space: 165,
|
|
58
|
-
},
|
|
59
|
-
type: "allocate",
|
|
60
|
-
},
|
|
61
|
-
program: "system",
|
|
62
|
-
programId: new PublicKey(Buffer.from("00", "hex")),
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
parsed: {
|
|
66
|
-
info: {
|
|
67
|
-
account: "8RtwWeqdFz4EFuZU3MAadfYMWSdRMamjFrfq6BXkHuNN",
|
|
68
|
-
owner: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
|
|
69
|
-
},
|
|
70
|
-
type: "assign",
|
|
71
|
-
},
|
|
72
|
-
program: "system",
|
|
73
|
-
programId: new PublicKey(Buffer.from("00", "hex")),
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
parsed: {
|
|
77
|
-
info: {
|
|
78
|
-
account: "8RtwWeqdFz4EFuZU3MAadfYMWSdRMamjFrfq6BXkHuNN",
|
|
79
|
-
mint: "So11111111111111111111111111111111111111112",
|
|
80
|
-
owner: "AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh",
|
|
81
|
-
rentSysvar: "SysvarRent111111111111111111111111111111111",
|
|
82
|
-
},
|
|
83
|
-
type: "initializeAccount",
|
|
84
|
-
},
|
|
85
|
-
program: "spl-token",
|
|
86
|
-
programId: new PublicKey(
|
|
87
|
-
Buffer.from(
|
|
88
|
-
"06ddf6e1d765a193d9cbe146ceeb79ac1cb485ed5f5b37913a8cf5857eff00a9",
|
|
89
|
-
"hex"
|
|
90
|
-
)
|
|
91
|
-
),
|
|
92
|
-
},
|
|
93
|
-
],
|
|
94
|
-
},
|
|
95
|
-
],
|
|
96
|
-
logMessages: [
|
|
97
|
-
"Program 11111111111111111111111111111111 invoke [1]",
|
|
98
|
-
"Program 11111111111111111111111111111111 success",
|
|
99
|
-
"Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL invoke [1]",
|
|
100
|
-
"Program log: Allocate space for the associated token account",
|
|
101
|
-
"Program 11111111111111111111111111111111 invoke [2]",
|
|
102
|
-
"Program 11111111111111111111111111111111 success",
|
|
103
|
-
"Program log: Assign the associated token account to the SPL Token program",
|
|
104
|
-
"Program 11111111111111111111111111111111 invoke [2]",
|
|
105
|
-
"Program 11111111111111111111111111111111 success",
|
|
106
|
-
"Program log: Initialize the associated token account",
|
|
107
|
-
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]",
|
|
108
|
-
"Program log: Instruction: InitializeAccount",
|
|
109
|
-
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 3683 of 183452 compute units",
|
|
110
|
-
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success",
|
|
111
|
-
"Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL consumed 20880 of 200000 compute units",
|
|
112
|
-
"Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL success",
|
|
113
|
-
],
|
|
114
|
-
postBalances: [
|
|
115
|
-
83389840, 10000000, 151314748907, 1, 1089991680, 1009200, 898174080,
|
|
116
|
-
],
|
|
117
|
-
postTokenBalances: [
|
|
118
|
-
{
|
|
119
|
-
accountIndex: 1,
|
|
120
|
-
mint: "So11111111111111111111111111111111111111112",
|
|
121
|
-
uiTokenAmount: {
|
|
122
|
-
amount: "7960720",
|
|
123
|
-
decimals: 9,
|
|
124
|
-
uiAmount: 0.00796072,
|
|
125
|
-
uiAmountString: "0.00796072",
|
|
126
|
-
},
|
|
127
|
-
},
|
|
128
|
-
],
|
|
129
|
-
preBalances: [
|
|
130
|
-
93394840, 0, 151314748907, 1, 1089991680, 1009200, 898174080,
|
|
131
|
-
],
|
|
132
|
-
preTokenBalances: [],
|
|
133
|
-
rewards: [],
|
|
134
|
-
status: { Ok: null },
|
|
135
|
-
},
|
|
136
|
-
slot: 108521109,
|
|
137
|
-
transaction: {
|
|
138
|
-
message: {
|
|
139
|
-
accountKeys: [
|
|
140
|
-
{
|
|
141
|
-
pubkey: new PublicKey(
|
|
142
|
-
Buffer.from(
|
|
143
|
-
"8bc4d3e507c0550e3d02ffb5f6daf0772240af8a09e32d236615b4a227243702",
|
|
144
|
-
"hex"
|
|
145
|
-
)
|
|
146
|
-
),
|
|
147
|
-
signer: true,
|
|
148
|
-
writable: true,
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
pubkey: new PublicKey(
|
|
152
|
-
Buffer.from(
|
|
153
|
-
"6e6279fa638560ce9c178033f5b88eacfb5fba6d46ec5902769f1b09eaabc017",
|
|
154
|
-
"hex"
|
|
155
|
-
)
|
|
156
|
-
),
|
|
157
|
-
signer: false,
|
|
158
|
-
writable: true,
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
pubkey: new PublicKey(
|
|
162
|
-
Buffer.from(
|
|
163
|
-
"069b8857feab8184fb687f634618c035dac439dc1aeb3b5598a0f00000000001",
|
|
164
|
-
"hex"
|
|
165
|
-
)
|
|
166
|
-
),
|
|
167
|
-
signer: false,
|
|
168
|
-
writable: false,
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
pubkey: new PublicKey(Buffer.from("00", "hex")),
|
|
172
|
-
signer: false,
|
|
173
|
-
writable: false,
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
pubkey: new PublicKey(
|
|
177
|
-
Buffer.from(
|
|
178
|
-
"06ddf6e1d765a193d9cbe146ceeb79ac1cb485ed5f5b37913a8cf5857eff00a9",
|
|
179
|
-
"hex"
|
|
180
|
-
)
|
|
181
|
-
),
|
|
182
|
-
signer: false,
|
|
183
|
-
writable: false,
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
pubkey: new PublicKey(
|
|
187
|
-
Buffer.from(
|
|
188
|
-
"06a7d517192c5c51218cc94c3d4af17f58daee089ba1fd44e3dbd98a00000000",
|
|
189
|
-
"hex"
|
|
190
|
-
)
|
|
191
|
-
),
|
|
192
|
-
signer: false,
|
|
193
|
-
writable: false,
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
pubkey: new PublicKey(
|
|
197
|
-
Buffer.from(
|
|
198
|
-
"8c97258f4e2489f1bb3d1029148e0d830b5a1399daff1084048e7bd8dbe9f859",
|
|
199
|
-
"hex"
|
|
200
|
-
)
|
|
201
|
-
),
|
|
202
|
-
signer: false,
|
|
203
|
-
writable: false,
|
|
204
|
-
},
|
|
205
|
-
],
|
|
206
|
-
instructions: [
|
|
207
|
-
{
|
|
208
|
-
parsed: {
|
|
209
|
-
info: {
|
|
210
|
-
destination: "8RtwWeqdFz4EFuZU3MAadfYMWSdRMamjFrfq6BXkHuNN",
|
|
211
|
-
lamports: 10000000,
|
|
212
|
-
source: "AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh",
|
|
213
|
-
},
|
|
214
|
-
type: "transfer",
|
|
215
|
-
},
|
|
216
|
-
program: "system",
|
|
217
|
-
programId: new PublicKey(Buffer.from("00", "hex")),
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
parsed: {
|
|
221
|
-
info: {
|
|
222
|
-
account: "8RtwWeqdFz4EFuZU3MAadfYMWSdRMamjFrfq6BXkHuNN",
|
|
223
|
-
mint: "So11111111111111111111111111111111111111112",
|
|
224
|
-
rentSysvar: "SysvarRent111111111111111111111111111111111",
|
|
225
|
-
source: "AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh",
|
|
226
|
-
systemProgram: "11111111111111111111111111111111",
|
|
227
|
-
tokenProgram: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
|
|
228
|
-
wallet: "AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh",
|
|
229
|
-
},
|
|
230
|
-
type: "create",
|
|
231
|
-
},
|
|
232
|
-
program: "spl-associated-token-account",
|
|
233
|
-
programId: new PublicKey(
|
|
234
|
-
Buffer.from(
|
|
235
|
-
"8c97258f4e2489f1bb3d1029148e0d830b5a1399daff1084048e7bd8dbe9f859",
|
|
236
|
-
"hex"
|
|
237
|
-
)
|
|
238
|
-
),
|
|
239
|
-
},
|
|
240
|
-
],
|
|
241
|
-
recentBlockhash: "9tPbgLaETEenufCt5SzXMuWijgFJj549W9j5cJLbaogn",
|
|
242
|
-
},
|
|
243
|
-
signatures: [
|
|
244
|
-
"A29zPnK1jPr2tGziTnaAvSnadYR2kLCv9sPywj9FJsaEFjtpwmUonspN3WJgz4u6XWmjtVpoFsDrygEnvW51cgk",
|
|
245
|
-
],
|
|
246
|
-
},
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
blockTime: 1637780906,
|
|
250
|
-
meta: {
|
|
251
|
-
err: null,
|
|
252
|
-
fee: 5000,
|
|
253
|
-
innerInstructions: [],
|
|
254
|
-
logMessages: [
|
|
255
|
-
"Program 11111111111111111111111111111111 invoke [1]",
|
|
256
|
-
"Program 11111111111111111111111111111111 success",
|
|
257
|
-
],
|
|
258
|
-
postBalances: [0, 93394840, 1],
|
|
259
|
-
postTokenBalances: [],
|
|
260
|
-
preBalances: [93399840, 0, 1],
|
|
261
|
-
preTokenBalances: [],
|
|
262
|
-
rewards: [],
|
|
263
|
-
status: { Ok: null },
|
|
264
|
-
},
|
|
265
|
-
slot: 108520722,
|
|
266
|
-
transaction: {
|
|
267
|
-
message: {
|
|
268
|
-
accountKeys: [
|
|
269
|
-
{
|
|
270
|
-
pubkey: new PublicKey(
|
|
271
|
-
Buffer.from(
|
|
272
|
-
"5c1c77c3d1e8edad4cfb2b2f7e4497d0d83f19e176713876a1d01eeb30a9bf3f",
|
|
273
|
-
"hex"
|
|
274
|
-
)
|
|
275
|
-
),
|
|
276
|
-
signer: true,
|
|
277
|
-
writable: true,
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
pubkey: new PublicKey(
|
|
281
|
-
Buffer.from(
|
|
282
|
-
"8bc4d3e507c0550e3d02ffb5f6daf0772240af8a09e32d236615b4a227243702",
|
|
283
|
-
"hex"
|
|
284
|
-
)
|
|
285
|
-
),
|
|
286
|
-
signer: false,
|
|
287
|
-
writable: true,
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
pubkey: new PublicKey(Buffer.from("00", "hex")),
|
|
291
|
-
signer: false,
|
|
292
|
-
writable: false,
|
|
293
|
-
},
|
|
294
|
-
],
|
|
295
|
-
instructions: [
|
|
296
|
-
{
|
|
297
|
-
parsed: {
|
|
298
|
-
info: {
|
|
299
|
-
destination: "AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh",
|
|
300
|
-
lamports: 93394840,
|
|
301
|
-
source: "7CZgkK494jMdoY8xpXY3ViLjpDGMbNikCzMtAT5cAjKk",
|
|
302
|
-
},
|
|
303
|
-
type: "transfer",
|
|
304
|
-
},
|
|
305
|
-
program: "system",
|
|
306
|
-
programId: new PublicKey(Buffer.from("00", "hex")),
|
|
307
|
-
},
|
|
308
|
-
],
|
|
309
|
-
recentBlockhash: "4NSL4VrfWd2eUccMD95dLQsdy5UGz8yhokpfH1et1R2c",
|
|
310
|
-
},
|
|
311
|
-
signatures: [
|
|
312
|
-
"25KWBvKtVgKR3yoRmozTY6wmiW8atwrnzAnTXdsms8jqg5aR8GnCDxdJzWXtzMZPvbsE6SUuBkGFXudy2mrcTYna",
|
|
313
|
-
],
|
|
314
|
-
},
|
|
315
|
-
},
|
|
316
|
-
],
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
method: "getBalanceAndContext",
|
|
320
|
-
params: ["6rEgdtB3sgjKJnRE172YEr9z6qUyr4nFW28vJokuD36A"],
|
|
321
|
-
answer: { context: { slot: 109865129 }, value: 0 },
|
|
322
|
-
},
|
|
323
|
-
{
|
|
324
|
-
method: "getSignaturesForAddress",
|
|
325
|
-
params: ["6rEgdtB3sgjKJnRE172YEr9z6qUyr4nFW28vJokuD36A", { limit: 100 }],
|
|
326
|
-
answer: [],
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
method: "getSignaturesForAddress",
|
|
330
|
-
params: [
|
|
331
|
-
"AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh",
|
|
332
|
-
{
|
|
333
|
-
until:
|
|
334
|
-
"25KWBvKtVgKR3yoRmozTY6wmiW8atwrnzAnTXdsms8jqg5aR8GnCDxdJzWXtzMZPvbsE6SUuBkGFXudy2mrcTYna",
|
|
335
|
-
limit: 100,
|
|
336
|
-
},
|
|
337
|
-
],
|
|
338
|
-
answer: [
|
|
339
|
-
{
|
|
340
|
-
blockTime: 1637781134,
|
|
341
|
-
confirmationStatus: "finalized",
|
|
342
|
-
err: null,
|
|
343
|
-
memo: null,
|
|
344
|
-
signature:
|
|
345
|
-
"A29zPnK1jPr2tGziTnaAvSnadYR2kLCv9sPywj9FJsaEFjtpwmUonspN3WJgz4u6XWmjtVpoFsDrygEnvW51cgk",
|
|
346
|
-
slot: 108521109,
|
|
347
|
-
},
|
|
348
|
-
],
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
method: "getParsedConfirmedTransactions",
|
|
352
|
-
params: [
|
|
353
|
-
[
|
|
354
|
-
"A29zPnK1jPr2tGziTnaAvSnadYR2kLCv9sPywj9FJsaEFjtpwmUonspN3WJgz4u6XWmjtVpoFsDrygEnvW51cgk",
|
|
355
|
-
],
|
|
356
|
-
],
|
|
357
|
-
answer: [
|
|
358
|
-
{
|
|
359
|
-
blockTime: 1637781134,
|
|
360
|
-
meta: {
|
|
361
|
-
err: null,
|
|
362
|
-
fee: 5000,
|
|
363
|
-
innerInstructions: [
|
|
364
|
-
{
|
|
365
|
-
index: 1,
|
|
366
|
-
instructions: [
|
|
367
|
-
{
|
|
368
|
-
parsed: {
|
|
369
|
-
info: {
|
|
370
|
-
account: "8RtwWeqdFz4EFuZU3MAadfYMWSdRMamjFrfq6BXkHuNN",
|
|
371
|
-
space: 165,
|
|
372
|
-
},
|
|
373
|
-
type: "allocate",
|
|
374
|
-
},
|
|
375
|
-
program: "system",
|
|
376
|
-
programId: new PublicKey(Buffer.from("00", "hex")),
|
|
377
|
-
},
|
|
378
|
-
{
|
|
379
|
-
parsed: {
|
|
380
|
-
info: {
|
|
381
|
-
account: "8RtwWeqdFz4EFuZU3MAadfYMWSdRMamjFrfq6BXkHuNN",
|
|
382
|
-
owner: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
|
|
383
|
-
},
|
|
384
|
-
type: "assign",
|
|
385
|
-
},
|
|
386
|
-
program: "system",
|
|
387
|
-
programId: new PublicKey(Buffer.from("00", "hex")),
|
|
388
|
-
},
|
|
389
|
-
{
|
|
390
|
-
parsed: {
|
|
391
|
-
info: {
|
|
392
|
-
account: "8RtwWeqdFz4EFuZU3MAadfYMWSdRMamjFrfq6BXkHuNN",
|
|
393
|
-
mint: "So11111111111111111111111111111111111111112",
|
|
394
|
-
owner: "AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh",
|
|
395
|
-
rentSysvar: "SysvarRent111111111111111111111111111111111",
|
|
396
|
-
},
|
|
397
|
-
type: "initializeAccount",
|
|
398
|
-
},
|
|
399
|
-
program: "spl-token",
|
|
400
|
-
programId: new PublicKey(
|
|
401
|
-
Buffer.from(
|
|
402
|
-
"06ddf6e1d765a193d9cbe146ceeb79ac1cb485ed5f5b37913a8cf5857eff00a9",
|
|
403
|
-
"hex"
|
|
404
|
-
)
|
|
405
|
-
),
|
|
406
|
-
},
|
|
407
|
-
],
|
|
408
|
-
},
|
|
409
|
-
],
|
|
410
|
-
logMessages: [
|
|
411
|
-
"Program 11111111111111111111111111111111 invoke [1]",
|
|
412
|
-
"Program 11111111111111111111111111111111 success",
|
|
413
|
-
"Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL invoke [1]",
|
|
414
|
-
"Program log: Allocate space for the associated token account",
|
|
415
|
-
"Program 11111111111111111111111111111111 invoke [2]",
|
|
416
|
-
"Program 11111111111111111111111111111111 success",
|
|
417
|
-
"Program log: Assign the associated token account to the SPL Token program",
|
|
418
|
-
"Program 11111111111111111111111111111111 invoke [2]",
|
|
419
|
-
"Program 11111111111111111111111111111111 success",
|
|
420
|
-
"Program log: Initialize the associated token account",
|
|
421
|
-
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]",
|
|
422
|
-
"Program log: Instruction: InitializeAccount",
|
|
423
|
-
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 3683 of 183452 compute units",
|
|
424
|
-
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success",
|
|
425
|
-
"Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL consumed 20880 of 200000 compute units",
|
|
426
|
-
"Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL success",
|
|
427
|
-
],
|
|
428
|
-
postBalances: [
|
|
429
|
-
83389840, 10000000, 151314748907, 1, 1089991680, 1009200, 898174080,
|
|
430
|
-
],
|
|
431
|
-
postTokenBalances: [
|
|
432
|
-
{
|
|
433
|
-
accountIndex: 1,
|
|
434
|
-
mint: "So11111111111111111111111111111111111111112",
|
|
435
|
-
uiTokenAmount: {
|
|
436
|
-
amount: "7960720",
|
|
437
|
-
decimals: 9,
|
|
438
|
-
uiAmount: 0.00796072,
|
|
439
|
-
uiAmountString: "0.00796072",
|
|
440
|
-
},
|
|
441
|
-
},
|
|
442
|
-
],
|
|
443
|
-
preBalances: [
|
|
444
|
-
93394840, 0, 151314748907, 1, 1089991680, 1009200, 898174080,
|
|
445
|
-
],
|
|
446
|
-
preTokenBalances: [],
|
|
447
|
-
rewards: [],
|
|
448
|
-
status: { Ok: null },
|
|
449
|
-
},
|
|
450
|
-
slot: 108521109,
|
|
451
|
-
transaction: {
|
|
452
|
-
message: {
|
|
453
|
-
accountKeys: [
|
|
454
|
-
{
|
|
455
|
-
pubkey: new PublicKey(
|
|
456
|
-
Buffer.from(
|
|
457
|
-
"8bc4d3e507c0550e3d02ffb5f6daf0772240af8a09e32d236615b4a227243702",
|
|
458
|
-
"hex"
|
|
459
|
-
)
|
|
460
|
-
),
|
|
461
|
-
signer: true,
|
|
462
|
-
writable: true,
|
|
463
|
-
},
|
|
464
|
-
{
|
|
465
|
-
pubkey: new PublicKey(
|
|
466
|
-
Buffer.from(
|
|
467
|
-
"6e6279fa638560ce9c178033f5b88eacfb5fba6d46ec5902769f1b09eaabc017",
|
|
468
|
-
"hex"
|
|
469
|
-
)
|
|
470
|
-
),
|
|
471
|
-
signer: false,
|
|
472
|
-
writable: true,
|
|
473
|
-
},
|
|
474
|
-
{
|
|
475
|
-
pubkey: new PublicKey(
|
|
476
|
-
Buffer.from(
|
|
477
|
-
"069b8857feab8184fb687f634618c035dac439dc1aeb3b5598a0f00000000001",
|
|
478
|
-
"hex"
|
|
479
|
-
)
|
|
480
|
-
),
|
|
481
|
-
signer: false,
|
|
482
|
-
writable: false,
|
|
483
|
-
},
|
|
484
|
-
{
|
|
485
|
-
pubkey: new PublicKey(Buffer.from("00", "hex")),
|
|
486
|
-
signer: false,
|
|
487
|
-
writable: false,
|
|
488
|
-
},
|
|
489
|
-
{
|
|
490
|
-
pubkey: new PublicKey(
|
|
491
|
-
Buffer.from(
|
|
492
|
-
"06ddf6e1d765a193d9cbe146ceeb79ac1cb485ed5f5b37913a8cf5857eff00a9",
|
|
493
|
-
"hex"
|
|
494
|
-
)
|
|
495
|
-
),
|
|
496
|
-
signer: false,
|
|
497
|
-
writable: false,
|
|
498
|
-
},
|
|
499
|
-
{
|
|
500
|
-
pubkey: new PublicKey(
|
|
501
|
-
Buffer.from(
|
|
502
|
-
"06a7d517192c5c51218cc94c3d4af17f58daee089ba1fd44e3dbd98a00000000",
|
|
503
|
-
"hex"
|
|
504
|
-
)
|
|
505
|
-
),
|
|
506
|
-
signer: false,
|
|
507
|
-
writable: false,
|
|
508
|
-
},
|
|
509
|
-
{
|
|
510
|
-
pubkey: new PublicKey(
|
|
511
|
-
Buffer.from(
|
|
512
|
-
"8c97258f4e2489f1bb3d1029148e0d830b5a1399daff1084048e7bd8dbe9f859",
|
|
513
|
-
"hex"
|
|
514
|
-
)
|
|
515
|
-
),
|
|
516
|
-
signer: false,
|
|
517
|
-
writable: false,
|
|
518
|
-
},
|
|
519
|
-
],
|
|
520
|
-
instructions: [
|
|
521
|
-
{
|
|
522
|
-
parsed: {
|
|
523
|
-
info: {
|
|
524
|
-
destination: "8RtwWeqdFz4EFuZU3MAadfYMWSdRMamjFrfq6BXkHuNN",
|
|
525
|
-
lamports: 10000000,
|
|
526
|
-
source: "AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh",
|
|
527
|
-
},
|
|
528
|
-
type: "transfer",
|
|
529
|
-
},
|
|
530
|
-
program: "system",
|
|
531
|
-
programId: new PublicKey(Buffer.from("00", "hex")),
|
|
532
|
-
},
|
|
533
|
-
{
|
|
534
|
-
parsed: {
|
|
535
|
-
info: {
|
|
536
|
-
account: "8RtwWeqdFz4EFuZU3MAadfYMWSdRMamjFrfq6BXkHuNN",
|
|
537
|
-
mint: "So11111111111111111111111111111111111111112",
|
|
538
|
-
rentSysvar: "SysvarRent111111111111111111111111111111111",
|
|
539
|
-
source: "AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh",
|
|
540
|
-
systemProgram: "11111111111111111111111111111111",
|
|
541
|
-
tokenProgram: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
|
|
542
|
-
wallet: "AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh",
|
|
543
|
-
},
|
|
544
|
-
type: "create",
|
|
545
|
-
},
|
|
546
|
-
program: "spl-associated-token-account",
|
|
547
|
-
programId: new PublicKey(
|
|
548
|
-
Buffer.from(
|
|
549
|
-
"8c97258f4e2489f1bb3d1029148e0d830b5a1399daff1084048e7bd8dbe9f859",
|
|
550
|
-
"hex"
|
|
551
|
-
)
|
|
552
|
-
),
|
|
553
|
-
},
|
|
554
|
-
],
|
|
555
|
-
recentBlockhash: "9tPbgLaETEenufCt5SzXMuWijgFJj549W9j5cJLbaogn",
|
|
556
|
-
},
|
|
557
|
-
signatures: [
|
|
558
|
-
"A29zPnK1jPr2tGziTnaAvSnadYR2kLCv9sPywj9FJsaEFjtpwmUonspN3WJgz4u6XWmjtVpoFsDrygEnvW51cgk",
|
|
559
|
-
],
|
|
560
|
-
},
|
|
561
|
-
},
|
|
562
|
-
],
|
|
563
|
-
},
|
|
564
|
-
{
|
|
565
|
-
method: "getRecentBlockhash",
|
|
566
|
-
params: [],
|
|
567
|
-
answer: {
|
|
568
|
-
blockhash: "CfCUxX9U6hibcKxHV9Sy1CyG3Z2uTTitxAbina1ZXygF",
|
|
569
|
-
feeCalculator: { lamportsPerSignature: 5000 },
|
|
570
|
-
},
|
|
571
|
-
},
|
|
572
|
-
{
|
|
573
|
-
method: "getBalance",
|
|
574
|
-
params: ["ARRKL4FT4LMwpkhUw4xNbfiHqR7UdePtzGLvkszgydqZ"],
|
|
575
|
-
answer: 1000000,
|
|
576
|
-
},
|
|
577
|
-
{
|
|
578
|
-
method: "getBalance",
|
|
579
|
-
params: ["7b6Q3ap8qRzfyvDw1Qce3fUV8C7WgFNzJQwYNTJm3KQo"],
|
|
580
|
-
answer: 0,
|
|
581
|
-
},
|
|
582
|
-
{
|
|
583
|
-
method: "getBalance",
|
|
584
|
-
params: ["6D8GtWkKJgToM5UoiByHqjQCCC9Dq1Hh7iNmU4jKSs14"],
|
|
585
|
-
answer: 0,
|
|
586
|
-
},
|
|
587
|
-
|
|
588
|
-
// manual
|
|
589
|
-
{
|
|
590
|
-
method: "getTxFeeCalculator",
|
|
591
|
-
params: [],
|
|
592
|
-
answer: { lamportsPerSignature: 5000 },
|
|
593
|
-
},
|
|
6
|
+
{"method":"getBalanceAndContext","params":["AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh"],"answer":{"context":{"slot":126304968},"value":83389840}},
|
|
7
|
+
{"method":"getStakeAccountsByStakeAuth","params":["AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh"],"answer":[]},
|
|
8
|
+
{"method":"getStakeAccountsByWithdrawAuth","params":["AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh"],"answer":[]},
|
|
9
|
+
{"method":"getEpochInfo","params":[],"answer":{"absoluteSlot":126304982,"blockHeight":114328655,"epoch":292,"slotIndex":160982,"slotsInEpoch":432000,"transactionCount":64939645162}},
|
|
10
|
+
{"method":"getSignaturesForAddress","params":["AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh",{"limit":100}],"answer":[{"blockTime":1637781134,"confirmationStatus":"finalized","err":null,"memo":null,"signature":"A29zPnK1jPr2tGziTnaAvSnadYR2kLCv9sPywj9FJsaEFjtpwmUonspN3WJgz4u6XWmjtVpoFsDrygEnvW51cgk","slot":108521109},{"blockTime":1637780906,"confirmationStatus":"finalized","err":null,"memo":null,"signature":"25KWBvKtVgKR3yoRmozTY6wmiW8atwrnzAnTXdsms8jqg5aR8GnCDxdJzWXtzMZPvbsE6SUuBkGFXudy2mrcTYna","slot":108520722}]},
|
|
11
|
+
{"method":"getParsedConfirmedTransactions","params":[["A29zPnK1jPr2tGziTnaAvSnadYR2kLCv9sPywj9FJsaEFjtpwmUonspN3WJgz4u6XWmjtVpoFsDrygEnvW51cgk","25KWBvKtVgKR3yoRmozTY6wmiW8atwrnzAnTXdsms8jqg5aR8GnCDxdJzWXtzMZPvbsE6SUuBkGFXudy2mrcTYna"]],"answer":[{"blockTime":1637781134,"meta":{"err":null,"fee":5000,"innerInstructions":[{"index":1,"instructions":[{"parsed":{"info":{"account":"8RtwWeqdFz4EFuZU3MAadfYMWSdRMamjFrfq6BXkHuNN","space":165},"type":"allocate"},"program":"system","programId":new PublicKey(Buffer.from("00", 'hex'))},{"parsed":{"info":{"account":"8RtwWeqdFz4EFuZU3MAadfYMWSdRMamjFrfq6BXkHuNN","owner":"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"},"type":"assign"},"program":"system","programId":new PublicKey(Buffer.from("00", 'hex'))},{"parsed":{"info":{"account":"8RtwWeqdFz4EFuZU3MAadfYMWSdRMamjFrfq6BXkHuNN","mint":"So11111111111111111111111111111111111111112","owner":"AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh","rentSysvar":"SysvarRent111111111111111111111111111111111"},"type":"initializeAccount"},"program":"spl-token","programId":new PublicKey(Buffer.from("06ddf6e1d765a193d9cbe146ceeb79ac1cb485ed5f5b37913a8cf5857eff00a9", 'hex'))}]}],"logMessages":["Program 11111111111111111111111111111111 invoke [1]","Program 11111111111111111111111111111111 success","Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL invoke [1]","Program log: Allocate space for the associated token account","Program 11111111111111111111111111111111 invoke [2]","Program 11111111111111111111111111111111 success","Program log: Assign the associated token account to the SPL Token program","Program 11111111111111111111111111111111 invoke [2]","Program 11111111111111111111111111111111 success","Program log: Initialize the associated token account","Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]","Program log: Instruction: InitializeAccount","Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 3683 of 183452 compute units","Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success","Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL consumed 20880 of 200000 compute units","Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL success"],"postBalances":[83389840,10000000,151314748907,1,1089991680,1009200,898174080],"postTokenBalances":[{"accountIndex":1,"mint":"So11111111111111111111111111111111111111112","uiTokenAmount":{"amount":"7960720","decimals":9,"uiAmount":0.00796072,"uiAmountString":"0.00796072"}}],"preBalances":[93394840,0,151314748907,1,1089991680,1009200,898174080],"preTokenBalances":[],"rewards":[],"status":{"Ok":null}},"slot":108521109,"transaction":{"message":{"accountKeys":[{"pubkey":new PublicKey(Buffer.from("8bc4d3e507c0550e3d02ffb5f6daf0772240af8a09e32d236615b4a227243702", 'hex')),"signer":true,"writable":true},{"pubkey":new PublicKey(Buffer.from("6e6279fa638560ce9c178033f5b88eacfb5fba6d46ec5902769f1b09eaabc017", 'hex')),"signer":false,"writable":true},{"pubkey":new PublicKey(Buffer.from("069b8857feab8184fb687f634618c035dac439dc1aeb3b5598a0f00000000001", 'hex')),"signer":false,"writable":false},{"pubkey":new PublicKey(Buffer.from("00", 'hex')),"signer":false,"writable":false},{"pubkey":new PublicKey(Buffer.from("06ddf6e1d765a193d9cbe146ceeb79ac1cb485ed5f5b37913a8cf5857eff00a9", 'hex')),"signer":false,"writable":false},{"pubkey":new PublicKey(Buffer.from("06a7d517192c5c51218cc94c3d4af17f58daee089ba1fd44e3dbd98a00000000", 'hex')),"signer":false,"writable":false},{"pubkey":new PublicKey(Buffer.from("8c97258f4e2489f1bb3d1029148e0d830b5a1399daff1084048e7bd8dbe9f859", 'hex')),"signer":false,"writable":false}],"instructions":[{"parsed":{"info":{"destination":"8RtwWeqdFz4EFuZU3MAadfYMWSdRMamjFrfq6BXkHuNN","lamports":10000000,"source":"AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh"},"type":"transfer"},"program":"system","programId":new PublicKey(Buffer.from("00", 'hex'))},{"parsed":{"info":{"account":"8RtwWeqdFz4EFuZU3MAadfYMWSdRMamjFrfq6BXkHuNN","mint":"So11111111111111111111111111111111111111112","rentSysvar":"SysvarRent111111111111111111111111111111111","source":"AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh","systemProgram":"11111111111111111111111111111111","tokenProgram":"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA","wallet":"AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh"},"type":"create"},"program":"spl-associated-token-account","programId":new PublicKey(Buffer.from("8c97258f4e2489f1bb3d1029148e0d830b5a1399daff1084048e7bd8dbe9f859", 'hex'))}],"recentBlockhash":"9tPbgLaETEenufCt5SzXMuWijgFJj549W9j5cJLbaogn"},"signatures":["A29zPnK1jPr2tGziTnaAvSnadYR2kLCv9sPywj9FJsaEFjtpwmUonspN3WJgz4u6XWmjtVpoFsDrygEnvW51cgk"]}},{"blockTime":1637780906,"meta":{"err":null,"fee":5000,"innerInstructions":[],"logMessages":["Program 11111111111111111111111111111111 invoke [1]","Program 11111111111111111111111111111111 success"],"postBalances":[0,93394840,1],"postTokenBalances":[],"preBalances":[93399840,0,1],"preTokenBalances":[],"rewards":[],"status":{"Ok":null}},"slot":108520722,"transaction":{"message":{"accountKeys":[{"pubkey":new PublicKey(Buffer.from("5c1c77c3d1e8edad4cfb2b2f7e4497d0d83f19e176713876a1d01eeb30a9bf3f", 'hex')),"signer":true,"writable":true},{"pubkey":new PublicKey(Buffer.from("8bc4d3e507c0550e3d02ffb5f6daf0772240af8a09e32d236615b4a227243702", 'hex')),"signer":false,"writable":true},{"pubkey":new PublicKey(Buffer.from("00", 'hex')),"signer":false,"writable":false}],"instructions":[{"parsed":{"info":{"destination":"AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh","lamports":93394840,"source":"7CZgkK494jMdoY8xpXY3ViLjpDGMbNikCzMtAT5cAjKk"},"type":"transfer"},"program":"system","programId":new PublicKey(Buffer.from("00", 'hex'))}],"recentBlockhash":"4NSL4VrfWd2eUccMD95dLQsdy5UGz8yhokpfH1et1R2c"},"signatures":["25KWBvKtVgKR3yoRmozTY6wmiW8atwrnzAnTXdsms8jqg5aR8GnCDxdJzWXtzMZPvbsE6SUuBkGFXudy2mrcTYna"]}}]},
|
|
12
|
+
{"method":"getBalanceAndContext","params":["6rEgdtB3sgjKJnRE172YEr9z6qUyr4nFW28vJokuD36A"],"answer":{"context":{"slot":126304996},"value":0}},
|
|
13
|
+
{"method":"getStakeAccountsByStakeAuth","params":["6rEgdtB3sgjKJnRE172YEr9z6qUyr4nFW28vJokuD36A"],"answer":[]},
|
|
14
|
+
{"method":"getStakeAccountsByWithdrawAuth","params":["6rEgdtB3sgjKJnRE172YEr9z6qUyr4nFW28vJokuD36A"],"answer":[]},
|
|
15
|
+
{"method":"getSignaturesForAddress","params":["6rEgdtB3sgjKJnRE172YEr9z6qUyr4nFW28vJokuD36A",{"limit":100}],"answer":[]},
|
|
16
|
+
{"method":"getSignaturesForAddress","params":["AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh",{"until":"25KWBvKtVgKR3yoRmozTY6wmiW8atwrnzAnTXdsms8jqg5aR8GnCDxdJzWXtzMZPvbsE6SUuBkGFXudy2mrcTYna","limit":100}],"answer":[{"blockTime":1637781134,"confirmationStatus":"finalized","err":null,"memo":null,"signature":"A29zPnK1jPr2tGziTnaAvSnadYR2kLCv9sPywj9FJsaEFjtpwmUonspN3WJgz4u6XWmjtVpoFsDrygEnvW51cgk","slot":108521109}]},
|
|
17
|
+
{"method":"getParsedConfirmedTransactions","params":[["A29zPnK1jPr2tGziTnaAvSnadYR2kLCv9sPywj9FJsaEFjtpwmUonspN3WJgz4u6XWmjtVpoFsDrygEnvW51cgk"]],"answer":[{"blockTime":1637781134,"meta":{"err":null,"fee":5000,"innerInstructions":[{"index":1,"instructions":[{"parsed":{"info":{"account":"8RtwWeqdFz4EFuZU3MAadfYMWSdRMamjFrfq6BXkHuNN","space":165},"type":"allocate"},"program":"system","programId":new PublicKey(Buffer.from("00", 'hex'))},{"parsed":{"info":{"account":"8RtwWeqdFz4EFuZU3MAadfYMWSdRMamjFrfq6BXkHuNN","owner":"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"},"type":"assign"},"program":"system","programId":new PublicKey(Buffer.from("00", 'hex'))},{"parsed":{"info":{"account":"8RtwWeqdFz4EFuZU3MAadfYMWSdRMamjFrfq6BXkHuNN","mint":"So11111111111111111111111111111111111111112","owner":"AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh","rentSysvar":"SysvarRent111111111111111111111111111111111"},"type":"initializeAccount"},"program":"spl-token","programId":new PublicKey(Buffer.from("06ddf6e1d765a193d9cbe146ceeb79ac1cb485ed5f5b37913a8cf5857eff00a9", 'hex'))}]}],"logMessages":["Program 11111111111111111111111111111111 invoke [1]","Program 11111111111111111111111111111111 success","Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL invoke [1]","Program log: Allocate space for the associated token account","Program 11111111111111111111111111111111 invoke [2]","Program 11111111111111111111111111111111 success","Program log: Assign the associated token account to the SPL Token program","Program 11111111111111111111111111111111 invoke [2]","Program 11111111111111111111111111111111 success","Program log: Initialize the associated token account","Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]","Program log: Instruction: InitializeAccount","Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 3683 of 183452 compute units","Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success","Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL consumed 20880 of 200000 compute units","Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL success"],"postBalances":[83389840,10000000,151314748907,1,1089991680,1009200,898174080],"postTokenBalances":[{"accountIndex":1,"mint":"So11111111111111111111111111111111111111112","uiTokenAmount":{"amount":"7960720","decimals":9,"uiAmount":0.00796072,"uiAmountString":"0.00796072"}}],"preBalances":[93394840,0,151314748907,1,1089991680,1009200,898174080],"preTokenBalances":[],"rewards":[],"status":{"Ok":null}},"slot":108521109,"transaction":{"message":{"accountKeys":[{"pubkey":new PublicKey(Buffer.from("8bc4d3e507c0550e3d02ffb5f6daf0772240af8a09e32d236615b4a227243702", 'hex')),"signer":true,"writable":true},{"pubkey":new PublicKey(Buffer.from("6e6279fa638560ce9c178033f5b88eacfb5fba6d46ec5902769f1b09eaabc017", 'hex')),"signer":false,"writable":true},{"pubkey":new PublicKey(Buffer.from("069b8857feab8184fb687f634618c035dac439dc1aeb3b5598a0f00000000001", 'hex')),"signer":false,"writable":false},{"pubkey":new PublicKey(Buffer.from("00", 'hex')),"signer":false,"writable":false},{"pubkey":new PublicKey(Buffer.from("06ddf6e1d765a193d9cbe146ceeb79ac1cb485ed5f5b37913a8cf5857eff00a9", 'hex')),"signer":false,"writable":false},{"pubkey":new PublicKey(Buffer.from("06a7d517192c5c51218cc94c3d4af17f58daee089ba1fd44e3dbd98a00000000", 'hex')),"signer":false,"writable":false},{"pubkey":new PublicKey(Buffer.from("8c97258f4e2489f1bb3d1029148e0d830b5a1399daff1084048e7bd8dbe9f859", 'hex')),"signer":false,"writable":false}],"instructions":[{"parsed":{"info":{"destination":"8RtwWeqdFz4EFuZU3MAadfYMWSdRMamjFrfq6BXkHuNN","lamports":10000000,"source":"AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh"},"type":"transfer"},"program":"system","programId":new PublicKey(Buffer.from("00", 'hex'))},{"parsed":{"info":{"account":"8RtwWeqdFz4EFuZU3MAadfYMWSdRMamjFrfq6BXkHuNN","mint":"So11111111111111111111111111111111111111112","rentSysvar":"SysvarRent111111111111111111111111111111111","source":"AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh","systemProgram":"11111111111111111111111111111111","tokenProgram":"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA","wallet":"AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh"},"type":"create"},"program":"spl-associated-token-account","programId":new PublicKey(Buffer.from("8c97258f4e2489f1bb3d1029148e0d830b5a1399daff1084048e7bd8dbe9f859", 'hex'))}],"recentBlockhash":"9tPbgLaETEenufCt5SzXMuWijgFJj549W9j5cJLbaogn"},"signatures":["A29zPnK1jPr2tGziTnaAvSnadYR2kLCv9sPywj9FJsaEFjtpwmUonspN3WJgz4u6XWmjtVpoFsDrygEnvW51cgk"]}}]},
|
|
18
|
+
{"method":"getTxFeeCalculator","params":[],"answer":{"lamportsPerSignature":5000}},
|
|
19
|
+
{"method":"getBalance","params":["ARRKL4FT4LMwpkhUw4xNbfiHqR7UdePtzGLvkszgydqZ"],"answer":1000000},
|
|
20
|
+
{"method":"getBalance","params":["7b6Q3ap8qRzfyvDw1Qce3fUV8C7WgFNzJQwYNTJm3KQo"],"answer":0},
|
|
21
|
+
{"method":"getBalance","params":["6D8GtWkKJgToM5UoiByHqjQCCC9Dq1Hh7iNmU4jKSs14"],"answer":0},
|
|
22
|
+
{"method":"getMinimumBalanceForRentExemption","params":[200],"answer":2282880},
|
|
23
|
+
{"method":"getAccountInfo","params":["9QU2QSxhb24FUX3Tu2FpczXjpK3VYrvRudywSZaM29mF"],"answer":{"data":{"parsed":{"info":{"authorizedVoters":[{"authorizedVoter":"EvnRmnMrd69kFdbLMxWkTn1icZ7DCceRhvmb2SJXqDo4","epoch":292}],"authorizedWithdrawer":"EvnRmnMrd69kFdbLMxWkTn1icZ7DCceRhvmb2SJXqDo4","commission":7,"epochCredits":[{"credits":"78811573","epoch":229,"previousCredits":"78431315"},{"credits":"79192750","epoch":230,"previousCredits":"78811573"},{"credits":"79568204","epoch":231,"previousCredits":"79192750"},{"credits":"79971932","epoch":232,"previousCredits":"79568204"},{"credits":"80385503","epoch":233,"previousCredits":"79971932"},{"credits":"80802228","epoch":234,"previousCredits":"80385503"},{"credits":"81218975","epoch":235,"previousCredits":"80802228"},{"credits":"81635216","epoch":236,"previousCredits":"81218975"},{"credits":"82042143","epoch":237,"previousCredits":"81635216"},{"credits":"82452807","epoch":238,"previousCredits":"82042143"},{"credits":"82862312","epoch":239,"previousCredits":"82452807"},{"credits":"83257955","epoch":240,"previousCredits":"82862312"},{"credits":"83658257","epoch":241,"previousCredits":"83257955"},{"credits":"84043555","epoch":242,"previousCredits":"83658257"},{"credits":"84430030","epoch":243,"previousCredits":"84043555"},{"credits":"84826592","epoch":244,"previousCredits":"84430030"},{"credits":"85206845","epoch":245,"previousCredits":"84826592"},{"credits":"85584036","epoch":246,"previousCredits":"85206845"},{"credits":"85969381","epoch":247,"previousCredits":"85584036"},{"credits":"86337460","epoch":248,"previousCredits":"85969381"},{"credits":"86726082","epoch":249,"previousCredits":"86337460"},{"credits":"87095806","epoch":250,"previousCredits":"86726082"},{"credits":"87466570","epoch":251,"previousCredits":"87095806"},{"credits":"87843044","epoch":252,"previousCredits":"87466570"},{"credits":"88204705","epoch":253,"previousCredits":"87843044"},{"credits":"88556614","epoch":254,"previousCredits":"88204705"},{"credits":"88926147","epoch":255,"previousCredits":"88556614"},{"credits":"89293908","epoch":256,"previousCredits":"88926147"},{"credits":"89643798","epoch":257,"previousCredits":"89293908"},{"credits":"90019527","epoch":258,"previousCredits":"89643798"},{"credits":"90405484","epoch":259,"previousCredits":"90019527"},{"credits":"90779860","epoch":260,"previousCredits":"90405484"},{"credits":"91169419","epoch":261,"previousCredits":"90779860"},{"credits":"91566757","epoch":262,"previousCredits":"91169419"},{"credits":"91931723","epoch":263,"previousCredits":"91566757"},{"credits":"92312039","epoch":264,"previousCredits":"91931723"},{"credits":"92675982","epoch":265,"previousCredits":"92312039"},{"credits":"93003571","epoch":266,"previousCredits":"92675982"},{"credits":"93348277","epoch":267,"previousCredits":"93003571"},{"credits":"93719518","epoch":268,"previousCredits":"93348277"},{"credits":"94087375","epoch":269,"previousCredits":"93719518"},{"credits":"94426808","epoch":270,"previousCredits":"94087375"},{"credits":"94664196","epoch":271,"previousCredits":"94426808"},{"credits":"95046380","epoch":272,"previousCredits":"94664196"},{"credits":"95425125","epoch":273,"previousCredits":"95046380"},{"credits":"95808239","epoch":274,"previousCredits":"95425125"},{"credits":"96179315","epoch":275,"previousCredits":"95808239"},{"credits":"96560176","epoch":276,"previousCredits":"96179315"},{"credits":"96927342","epoch":277,"previousCredits":"96560176"},{"credits":"97293583","epoch":278,"previousCredits":"96927342"},{"credits":"97663356","epoch":279,"previousCredits":"97293583"},{"credits":"98027621","epoch":280,"previousCredits":"97663356"},{"credits":"98381819","epoch":281,"previousCredits":"98027621"},{"credits":"98728105","epoch":282,"previousCredits":"98381819"},{"credits":"99072452","epoch":283,"previousCredits":"98728105"},{"credits":"99420965","epoch":284,"previousCredits":"99072452"},{"credits":"99765853","epoch":285,"previousCredits":"99420965"},{"credits":"100119574","epoch":286,"previousCredits":"99765853"},{"credits":"100458879","epoch":287,"previousCredits":"100119574"},{"credits":"100821985","epoch":288,"previousCredits":"100458879"},{"credits":"101173449","epoch":289,"previousCredits":"100821985"},{"credits":"101565565","epoch":290,"previousCredits":"101173449"},{"credits":"101955002","epoch":291,"previousCredits":"101565565"},{"credits":"102102222","epoch":292,"previousCredits":"101955002"}],"lastTimestamp":{"slot":126305019,"timestamp":1648044550},"nodePubkey":"EvnRmnMrd69kFdbLMxWkTn1icZ7DCceRhvmb2SJXqDo4","priorVoters":[],"rootSlot":126304978,"votes":[{"confirmationCount":31,"slot":126304979},{"confirmationCount":30,"slot":126304980},{"confirmationCount":29,"slot":126304981},{"confirmationCount":28,"slot":126304982},{"confirmationCount":27,"slot":126304983},{"confirmationCount":26,"slot":126304994},{"confirmationCount":25,"slot":126304995},{"confirmationCount":24,"slot":126304996},{"confirmationCount":23,"slot":126304997},{"confirmationCount":22,"slot":126304998},{"confirmationCount":21,"slot":126304999},{"confirmationCount":20,"slot":126305000},{"confirmationCount":19,"slot":126305001},{"confirmationCount":18,"slot":126305002},{"confirmationCount":17,"slot":126305003},{"confirmationCount":16,"slot":126305004},{"confirmationCount":15,"slot":126305005},{"confirmationCount":14,"slot":126305006},{"confirmationCount":13,"slot":126305007},{"confirmationCount":12,"slot":126305008},{"confirmationCount":11,"slot":126305009},{"confirmationCount":10,"slot":126305010},{"confirmationCount":9,"slot":126305011},{"confirmationCount":8,"slot":126305012},{"confirmationCount":7,"slot":126305013},{"confirmationCount":6,"slot":126305014},{"confirmationCount":5,"slot":126305015},{"confirmationCount":4,"slot":126305016},{"confirmationCount":3,"slot":126305017},{"confirmationCount":2,"slot":126305018},{"confirmationCount":1,"slot":126305019}]},"type":"vote"},"program":"vote","space":3731},"executable":false,"lamports":4340563811517,"owner":new PublicKey(Buffer.from("0761481d357474bb7c4d7624ebd3bdb3d8355e73d11043fc0da3538000000000", 'hex')),"rentEpoch":292}},
|
|
24
|
+
{"method":"getAccountInfo","params":["AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh"],"answer":{"data":{"type":"Buffer","data":[]},"executable":false,"lamports":83389840,"owner":new PublicKey(Buffer.from("00", 'hex')),"rentEpoch":291}},
|
|
594
25
|
];
|
|
@@ -50,6 +50,7 @@ function removeUndefineds(input: any) {
|
|
|
50
50
|
|
|
51
51
|
// Bridge with this api will log all api calls to a file.
|
|
52
52
|
// The calls data can be copied to mock-data.ts from the file.
|
|
53
|
+
// Uncomment fs module in logged.ts
|
|
53
54
|
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
|
|
54
55
|
function createMockDataForAPI() {
|
|
55
56
|
const apiGetter = makeLRUCache(
|