@ledgerhq/live-common 21.20.0 → 21.21.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/__tests__/families/bitcoin/wallet-btc/utils.test.js +4 -0
- package/lib/__tests__/families/bitcoin/wallet-btc/utils.test.js.map +1 -1
- package/lib/__tests__/families/bitcoin/wallet-btc/xpub.syncing.integration.test.js +12 -0
- package/lib/__tests__/families/bitcoin/wallet-btc/xpub.syncing.integration.test.js.map +1 -1
- package/lib/__tests__/test-helpers/setup.js +1 -0
- package/lib/__tests__/test-helpers/setup.js.map +1 -1
- package/lib/account/pending.d.ts +1 -1
- package/lib/api/Ledger.d.ts.map +1 -1
- package/lib/api/Ledger.js +12 -2
- package/lib/api/Ledger.js.map +1 -1
- package/lib/api/explorerConfig/index.d.ts.map +1 -1
- package/lib/api/explorerConfig/index.js +5 -1
- package/lib/api/explorerConfig/index.js.map +1 -1
- package/lib/data/icons/react/cro.d.ts +8 -0
- package/lib/data/icons/react/cro.d.ts.map +1 -0
- package/lib/data/icons/react/cro.js +33 -0
- package/lib/data/icons/react/cro.js.map +1 -0
- package/lib/data/icons/react/index.d.ts +2 -0
- package/lib/data/icons/react/index.d.ts.map +1 -1
- package/lib/data/icons/react/index.js +12 -8
- package/lib/data/icons/react/index.js.map +1 -1
- package/lib/data/icons/react/sol.d.ts +8 -0
- package/lib/data/icons/react/sol.d.ts.map +1 -0
- package/lib/data/icons/react/sol.js +30 -0
- package/lib/data/icons/react/sol.js.map +1 -0
- package/lib/data/icons/reactNative/cro.d.ts +8 -0
- package/lib/data/icons/reactNative/cro.d.ts.map +1 -0
- package/lib/data/icons/reactNative/cro.js +34 -0
- package/lib/data/icons/reactNative/cro.js.map +1 -0
- package/lib/data/icons/reactNative/index.d.ts +2 -0
- package/lib/data/icons/reactNative/index.d.ts.map +1 -1
- package/lib/data/icons/reactNative/index.js +12 -8
- package/lib/data/icons/reactNative/index.js.map +1 -1
- package/lib/data/icons/reactNative/sol.d.ts +8 -0
- package/lib/data/icons/reactNative/sol.d.ts.map +1 -0
- package/lib/data/icons/reactNative/sol.js +31 -0
- package/lib/data/icons/reactNative/sol.js.map +1 -0
- package/lib/derivation.d.ts +7 -0
- package/lib/derivation.d.ts.map +1 -1
- package/lib/derivation.js +16 -1
- package/lib/derivation.js.map +1 -1
- package/lib/errors.d.ts +1 -0
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -0
- package/lib/errors.js.map +1 -1
- package/lib/families/bitcoin/exchange.d.ts +1 -1
- package/lib/families/bitcoin/getAccountNetworkInfo.d.ts.map +1 -1
- package/lib/families/bitcoin/getAccountNetworkInfo.js +3 -2
- package/lib/families/bitcoin/getAccountNetworkInfo.js.map +1 -1
- package/lib/families/bitcoin/js-signOperation.d.ts.map +1 -1
- package/lib/families/bitcoin/js-signOperation.js +7 -2
- package/lib/families/bitcoin/js-signOperation.js.map +1 -1
- package/lib/families/bitcoin/js-synchronisation.d.ts +2 -2
- package/lib/families/bitcoin/specs.d.ts +1 -0
- package/lib/families/bitcoin/specs.d.ts.map +1 -1
- package/lib/families/bitcoin/specs.js +14 -1
- package/lib/families/bitcoin/specs.js.map +1 -1
- package/lib/families/bitcoin/wallet-btc/crypto/base.d.ts +1 -1
- package/lib/families/bitcoin/wallet-btc/crypto/base.d.ts.map +1 -1
- package/lib/families/bitcoin/wallet-btc/crypto/base.js.map +1 -1
- package/lib/families/bitcoin/wallet-btc/crypto/bitcoincash.d.ts.map +1 -1
- package/lib/families/bitcoin/wallet-btc/crypto/bitcoincash.js +8 -1
- package/lib/families/bitcoin/wallet-btc/crypto/bitcoincash.js.map +1 -1
- package/lib/families/bitcoin/wallet-btc/crypto/decred.d.ts +16 -0
- package/lib/families/bitcoin/wallet-btc/crypto/decred.d.ts.map +1 -0
- package/lib/families/bitcoin/wallet-btc/crypto/decred.js +248 -0
- package/lib/families/bitcoin/wallet-btc/crypto/decred.js.map +1 -0
- package/lib/families/bitcoin/wallet-btc/crypto/factory.d.ts.map +1 -1
- package/lib/families/bitcoin/wallet-btc/crypto/factory.js +5 -0
- package/lib/families/bitcoin/wallet-btc/crypto/factory.js.map +1 -1
- package/lib/families/bitcoin/wallet-btc/crypto/index.d.ts +1 -0
- package/lib/families/bitcoin/wallet-btc/crypto/index.d.ts.map +1 -1
- package/lib/families/bitcoin/wallet-btc/crypto/index.js +3 -1
- package/lib/families/bitcoin/wallet-btc/crypto/index.js.map +1 -1
- package/lib/families/bitcoin/wallet-btc/crypto/litecoin.d.ts.map +1 -1
- package/lib/families/bitcoin/wallet-btc/crypto/litecoin.js +13 -3
- package/lib/families/bitcoin/wallet-btc/crypto/litecoin.js.map +1 -1
- package/lib/families/bitcoin/wallet-btc/crypto/types.d.ts +1 -1
- package/lib/families/bitcoin/wallet-btc/crypto/types.d.ts.map +1 -1
- package/lib/families/bitcoin/wallet-btc/crypto/zec.d.ts.map +1 -1
- package/lib/families/bitcoin/wallet-btc/crypto/zec.js +8 -1
- package/lib/families/bitcoin/wallet-btc/crypto/zec.js.map +1 -1
- package/lib/families/bitcoin/wallet-btc/crypto/zen.d.ts.map +1 -1
- package/lib/families/bitcoin/wallet-btc/crypto/zen.js +8 -1
- package/lib/families/bitcoin/wallet-btc/crypto/zen.js.map +1 -1
- package/lib/families/bitcoin/wallet-btc/utils.d.ts.map +1 -1
- package/lib/families/bitcoin/wallet-btc/utils.js +6 -1
- package/lib/families/bitcoin/wallet-btc/utils.js.map +1 -1
- package/lib/families/bitcoin/wallet-btc/wallet.d.ts +2 -0
- package/lib/families/bitcoin/wallet-btc/wallet.d.ts.map +1 -1
- package/lib/families/bitcoin/wallet-btc/wallet.js +15 -7
- package/lib/families/bitcoin/wallet-btc/wallet.js.map +1 -1
- package/lib/families/crypto_org/js-synchronisation.d.ts +2 -2
- package/lib/families/elrond/js-synchronisation.d.ts +2 -2
- package/lib/families/ethereum/synchronisation.d.ts.map +1 -1
- package/lib/families/ethereum/synchronisation.js +2 -2
- package/lib/families/ethereum/synchronisation.js.map +1 -1
- package/lib/families/polkadot/api/sidecar.js +4 -2
- package/lib/families/polkadot/api/sidecar.js.map +1 -1
- package/lib/families/polkadot/js-synchronisation.d.ts +2 -2
- package/lib/families/solana/api/cached.d.ts +5 -0
- package/lib/families/solana/api/cached.d.ts.map +1 -0
- package/lib/families/solana/api/cached.js +80 -0
- package/lib/families/solana/api/cached.js.map +1 -0
- package/lib/families/solana/api/chain/account/index.d.ts +2 -0
- package/lib/families/solana/api/chain/account/index.d.ts.map +1 -0
- package/lib/families/solana/api/chain/account/index.js +14 -0
- package/lib/families/solana/api/chain/account/index.js.map +1 -0
- package/lib/families/solana/api/chain/account/parser.d.ts +5 -0
- package/lib/families/solana/api/chain/account/parser.d.ts.map +1 -0
- package/lib/families/solana/api/chain/account/parser.js +33 -0
- package/lib/families/solana/api/chain/account/parser.js.map +1 -0
- package/lib/families/solana/api/chain/account/stake.d.ts +237 -0
- package/lib/families/solana/api/chain/account/stake.d.ts.map +1 -0
- package/lib/families/solana/api/chain/account/stake.js +43 -0
- package/lib/families/solana/api/chain/account/stake.js.map +1 -0
- package/lib/families/solana/api/chain/account/token.d.ts +116 -0
- package/lib/families/solana/api/chain/account/token.d.ts.map +1 -0
- package/lib/families/solana/api/chain/account/token.js +42 -0
- package/lib/families/solana/api/chain/account/token.js.map +1 -0
- package/lib/families/solana/api/chain/index.d.ts +22 -0
- package/lib/families/solana/api/chain/index.d.ts.map +1 -0
- package/lib/families/solana/api/chain/index.js +54 -0
- package/lib/families/solana/api/chain/index.js.map +1 -0
- package/lib/families/solana/api/chain/instruction/associated-token-account/index.d.ts +15 -0
- package/lib/families/solana/api/chain/instruction/associated-token-account/index.d.ts.map +1 -0
- package/lib/families/solana/api/chain/instruction/associated-token-account/index.js +21 -0
- package/lib/families/solana/api/chain/instruction/associated-token-account/index.js.map +1 -0
- package/lib/families/solana/api/chain/instruction/associated-token-account/types.d.ts +30 -0
- package/lib/families/solana/api/chain/instruction/associated-token-account/types.d.ts.map +1 -0
- package/lib/families/solana/api/chain/instruction/associated-token-account/types.js +19 -0
- package/lib/families/solana/api/chain/instruction/associated-token-account/types.js.map +1 -0
- package/lib/families/solana/api/chain/instruction/memo/index.d.ts +15 -0
- package/lib/families/solana/api/chain/instruction/memo/index.d.ts.map +1 -0
- package/lib/families/solana/api/chain/instruction/memo/index.js +14 -0
- package/lib/families/solana/api/chain/instruction/memo/index.js.map +1 -0
- package/lib/families/solana/api/chain/instruction/memo/types.d.ts +21 -0
- package/lib/families/solana/api/chain/instruction/memo/types.d.ts.map +1 -0
- package/lib/families/solana/api/chain/instruction/memo/types.js +16 -0
- package/lib/families/solana/api/chain/instruction/memo/types.js.map +1 -0
- package/lib/families/solana/api/chain/instruction/stake/index.d.ts +15 -0
- package/lib/families/solana/api/chain/instruction/stake/index.d.ts.map +1 -0
- package/lib/families/solana/api/chain/instruction/stake/index.js +20 -0
- package/lib/families/solana/api/chain/instruction/stake/index.js.map +1 -0
- package/lib/families/solana/api/chain/instruction/stake/types.d.ts +215 -0
- package/lib/families/solana/api/chain/instruction/stake/types.d.ts.map +1 -0
- package/lib/families/solana/api/chain/instruction/stake/types.js +80 -0
- package/lib/families/solana/api/chain/instruction/stake/types.js.map +1 -0
- package/lib/families/solana/api/chain/instruction/token/index.d.ts +15 -0
- package/lib/families/solana/api/chain/instruction/token/index.d.ts.map +1 -0
- package/lib/families/solana/api/chain/instruction/token/index.js +20 -0
- package/lib/families/solana/api/chain/instruction/token/index.js.map +1 -0
- package/lib/families/solana/api/chain/instruction/token/types.d.ts +497 -0
- package/lib/families/solana/api/chain/instruction/token/types.d.ts.map +1 -0
- package/lib/families/solana/api/chain/instruction/token/types.js +205 -0
- package/lib/families/solana/api/chain/instruction/token/types.js.map +1 -0
- package/lib/families/solana/api/chain/program/constants.d.ts +11 -0
- package/lib/families/solana/api/chain/program/constants.d.ts.map +1 -0
- package/lib/families/solana/api/chain/program/constants.js +14 -0
- package/lib/families/solana/api/chain/program/constants.js.map +1 -0
- package/lib/families/solana/api/chain/program/index.d.ts +2 -0
- package/lib/families/solana/api/chain/program/index.d.ts.map +1 -0
- package/lib/families/solana/api/chain/program/index.js +14 -0
- package/lib/families/solana/api/chain/program/index.js.map +1 -0
- package/lib/families/solana/api/chain/program/parser.d.ts +30 -0
- package/lib/families/solana/api/chain/program/parser.d.ts.map +1 -0
- package/lib/families/solana/api/chain/program/parser.js +70 -0
- package/lib/families/solana/api/chain/program/parser.js.map +1 -0
- package/lib/families/solana/api/chain/validators/bignum.d.ts +3 -0
- package/lib/families/solana/api/chain/validators/bignum.d.ts.map +1 -0
- package/lib/families/solana/api/chain/validators/bignum.js +11 -0
- package/lib/families/solana/api/chain/validators/bignum.js.map +1 -0
- package/lib/families/solana/api/chain/validators/index.d.ts +10 -0
- package/lib/families/solana/api/chain/validators/index.d.ts.map +1 -0
- package/lib/families/solana/api/chain/validators/index.js +10 -0
- package/lib/families/solana/api/chain/validators/index.js.map +1 -0
- package/lib/families/solana/api/chain/validators/pubkey.d.ts +3 -0
- package/lib/families/solana/api/chain/validators/pubkey.d.ts.map +1 -0
- package/lib/families/solana/api/chain/validators/pubkey.js +7 -0
- package/lib/families/solana/api/chain/validators/pubkey.js.map +1 -0
- package/lib/families/solana/api/chain/web3.d.ts +29 -0
- package/lib/families/solana/api/chain/web3.d.ts.map +1 -0
- package/lib/families/solana/api/chain/web3.js +287 -0
- package/lib/families/solana/api/chain/web3.js.map +1 -0
- package/lib/families/solana/api/index.d.ts +5 -0
- package/lib/families/solana/api/index.d.ts.map +1 -0
- package/lib/families/solana/api/index.js +21 -0
- package/lib/families/solana/api/index.js.map +1 -0
- package/lib/families/solana/api/logged.d.ts +3 -0
- package/lib/families/solana/api/logged.d.ts.map +1 -0
- package/lib/families/solana/api/logged.js +53 -0
- package/lib/families/solana/api/logged.js.map +1 -0
- package/lib/families/solana/api/queued.d.ts +3 -0
- package/lib/families/solana/api/queued.d.ts.map +1 -0
- package/lib/families/solana/api/queued.js +31 -0
- package/lib/families/solana/api/queued.js.map +1 -0
- package/lib/families/solana/bridge/bridge.d.ts +12 -0
- package/lib/families/solana/bridge/bridge.d.ts.map +1 -0
- package/lib/families/solana/bridge/bridge.js +218 -0
- package/lib/families/solana/bridge/bridge.js.map +1 -0
- package/lib/families/solana/bridge/js.d.ts +6 -0
- package/lib/families/solana/bridge/js.d.ts.map +1 -0
- package/lib/families/solana/bridge/js.js +15 -0
- package/lib/families/solana/bridge/js.js.map +1 -0
- package/lib/families/solana/bridge/mock-data.d.ts +186 -0
- package/lib/families/solana/bridge/mock-data.d.ts.map +1 -0
- package/lib/families/solana/bridge/mock-data.js +23 -0
- package/lib/families/solana/bridge/mock-data.js.map +1 -0
- package/lib/families/solana/bridge/mock.d.ts +6 -0
- package/lib/families/solana/bridge/mock.d.ts.map +1 -0
- package/lib/families/solana/bridge/mock.js +75 -0
- package/lib/families/solana/bridge/mock.js.map +1 -0
- package/lib/families/solana/cli-transaction.d.ts +14 -0
- package/lib/families/solana/cli-transaction.d.ts.map +1 -0
- package/lib/families/solana/cli-transaction.js +137 -0
- package/lib/families/solana/cli-transaction.js.map +1 -0
- package/lib/families/solana/datasets/solana.scanAccounts.1.d.ts +6 -0
- package/lib/families/solana/datasets/solana.scanAccounts.1.d.ts.map +1 -0
- package/lib/families/solana/datasets/solana.scanAccounts.1.js +7 -0
- package/lib/families/solana/datasets/solana.scanAccounts.1.js.map +1 -0
- package/lib/families/solana/deviceTransactionConfig.d.ts +10 -0
- package/lib/families/solana/deviceTransactionConfig.d.ts.map +1 -0
- package/lib/families/solana/deviceTransactionConfig.js +121 -0
- package/lib/families/solana/deviceTransactionConfig.js.map +1 -0
- package/lib/families/solana/errors.d.ts +25 -0
- package/lib/families/solana/errors.d.ts.map +1 -0
- package/lib/families/solana/errors.js +13 -0
- package/lib/families/solana/errors.js.map +1 -0
- package/lib/families/solana/hw-getAddress.d.ts +4 -0
- package/lib/families/solana/hw-getAddress.d.ts.map +1 -0
- package/lib/families/solana/hw-getAddress.js +66 -0
- package/lib/families/solana/hw-getAddress.js.map +1 -0
- package/lib/families/solana/js-broadcast.d.ts +7 -0
- package/lib/families/solana/js-broadcast.d.ts.map +1 -0
- package/lib/families/solana/js-broadcast.js +59 -0
- package/lib/families/solana/js-broadcast.js.map +1 -0
- package/lib/families/solana/js-buildTransaction.d.ts +6 -0
- package/lib/families/solana/js-buildTransaction.d.ts.map +1 -0
- package/lib/families/solana/js-buildTransaction.js +123 -0
- package/lib/families/solana/js-buildTransaction.js.map +1 -0
- package/lib/families/solana/js-createTransaction.d.ts +6 -0
- package/lib/families/solana/js-createTransaction.d.ts.map +1 -0
- package/lib/families/solana/js-createTransaction.js +35 -0
- package/lib/families/solana/js-createTransaction.js.map +1 -0
- package/lib/families/solana/js-estimateMaxSpendable.d.ts +7 -0
- package/lib/families/solana/js-estimateMaxSpendable.d.ts.map +1 -0
- package/lib/families/solana/js-estimateMaxSpendable.js +72 -0
- package/lib/families/solana/js-estimateMaxSpendable.js.map +1 -0
- package/lib/families/solana/js-getTransactionStatus.d.ts +5 -0
- package/lib/families/solana/js-getTransactionStatus.d.ts.map +1 -0
- package/lib/families/solana/js-getTransactionStatus.js +106 -0
- package/lib/families/solana/js-getTransactionStatus.js.map +1 -0
- package/lib/families/solana/js-prepareTransaction.d.ts +6 -0
- package/lib/families/solana/js-prepareTransaction.d.ts.map +1 -0
- package/lib/families/solana/js-prepareTransaction.js +380 -0
- package/lib/families/solana/js-prepareTransaction.js.map +1 -0
- package/lib/families/solana/js-signOperation.d.ts +10 -0
- package/lib/families/solana/js-signOperation.d.ts.map +1 -0
- package/lib/families/solana/js-signOperation.js +193 -0
- package/lib/families/solana/js-signOperation.js.map +1 -0
- package/lib/families/solana/js-synchronization.d.ts +5 -0
- package/lib/families/solana/js-synchronization.d.ts.map +1 -0
- package/lib/families/solana/js-synchronization.js +464 -0
- package/lib/families/solana/js-synchronization.js.map +1 -0
- package/lib/families/solana/logic.d.ts +15 -0
- package/lib/families/solana/logic.d.ts.map +1 -0
- package/lib/families/solana/logic.js +49 -0
- package/lib/families/solana/logic.js.map +1 -0
- package/lib/families/solana/specs.d.ts +7 -0
- package/lib/families/solana/specs.d.ts.map +1 -0
- package/lib/families/solana/specs.js +100 -0
- package/lib/families/solana/specs.js.map +1 -0
- package/lib/families/solana/speculos-deviceActions.d.ts +8 -0
- package/lib/families/solana/speculos-deviceActions.d.ts.map +1 -0
- package/lib/families/solana/speculos-deviceActions.js +60 -0
- package/lib/families/solana/speculos-deviceActions.js.map +1 -0
- package/lib/families/solana/test-dataset.d.ts +5 -0
- package/lib/families/solana/test-dataset.d.ts.map +1 -0
- package/lib/families/solana/test-dataset.js +396 -0
- package/lib/families/solana/test-dataset.js.map +1 -0
- package/lib/families/solana/transaction.d.ts +12 -0
- package/lib/families/solana/transaction.d.ts.map +1 -0
- package/lib/families/solana/transaction.js +109 -0
- package/lib/families/solana/transaction.js.map +1 -0
- package/lib/families/solana/types.d.ts +84 -0
- package/lib/families/solana/types.d.ts.map +1 -0
- package/lib/families/solana/types.js +6 -0
- package/lib/families/solana/types.js.map +1 -0
- package/lib/families/solana/utils.d.ts +10 -0
- package/lib/families/solana/utils.d.ts.map +1 -0
- package/lib/families/solana/utils.js +194 -0
- package/lib/families/solana/utils.js.map +1 -0
- package/lib/families/stellar/js-synchronization.d.ts +2 -2
- package/lib/generated/bridge/js.d.ts +4 -0
- package/lib/generated/bridge/js.d.ts.map +1 -1
- package/lib/generated/bridge/js.js +8 -6
- package/lib/generated/bridge/js.js.map +1 -1
- package/lib/generated/bridge/mock.d.ts +4 -0
- package/lib/generated/bridge/mock.d.ts.map +1 -1
- package/lib/generated/bridge/mock.js +6 -4
- package/lib/generated/bridge/mock.js.map +1 -1
- package/lib/generated/cli-transaction.d.ts +9 -0
- package/lib/generated/cli-transaction.d.ts.map +1 -1
- package/lib/generated/cli-transaction.js +8 -6
- package/lib/generated/cli-transaction.js.map +1 -1
- package/lib/generated/deviceTransactionConfig.d.ts +2 -0
- package/lib/generated/deviceTransactionConfig.d.ts.map +1 -1
- package/lib/generated/deviceTransactionConfig.js +8 -6
- package/lib/generated/deviceTransactionConfig.js.map +1 -1
- package/lib/generated/exchange.d.ts +1 -1
- package/lib/generated/hw-getAddress.d.ts +1 -0
- package/lib/generated/hw-getAddress.d.ts.map +1 -1
- package/lib/generated/hw-getAddress.js +8 -6
- package/lib/generated/hw-getAddress.js.map +1 -1
- package/lib/generated/specs.d.ts +4 -0
- package/lib/generated/specs.d.ts.map +1 -1
- package/lib/generated/specs.js +8 -6
- package/lib/generated/specs.js.map +1 -1
- package/lib/generated/speculos-deviceActions.d.ts +3 -0
- package/lib/generated/speculos-deviceActions.d.ts.map +1 -1
- package/lib/generated/speculos-deviceActions.js +8 -6
- package/lib/generated/speculos-deviceActions.js.map +1 -1
- package/lib/generated/test-dataset.d.ts +1 -0
- package/lib/generated/test-dataset.d.ts.map +1 -1
- package/lib/generated/test-dataset.js +8 -6
- package/lib/generated/test-dataset.js.map +1 -1
- package/lib/generated/transaction.d.ts +5 -0
- package/lib/generated/transaction.d.ts.map +1 -1
- package/lib/generated/transaction.js +8 -6
- package/lib/generated/transaction.js.map +1 -1
- package/lib/generated/types.d.ts +12 -6
- package/lib/generated/types.d.ts.map +1 -1
- package/lib/generated/types.js +5 -3
- package/lib/generated/types.js.map +1 -1
- package/lib/nft/helpers.js +1 -1
- package/lib/nft/helpers.js.map +1 -1
- package/package.json +8 -4
- package/src/__tests__/__snapshots__/all.libcore.ts.snap +113 -0
- package/src/__tests__/families/bitcoin/wallet-btc/utils.test.ts +4 -0
- package/src/__tests__/families/bitcoin/wallet-btc/xpub.syncing.integration.test.ts +12 -0
- package/src/__tests__/test-helpers/setup.ts +1 -0
- package/src/api/Ledger.ts +11 -1
- package/src/api/explorerConfig/index.ts +1 -3
- package/src/data/icons/react/cro.tsx +12 -0
- package/src/data/icons/react/index.tsx +2 -0
- package/src/data/icons/react/sol.tsx +12 -0
- package/src/data/icons/reactNative/cro.tsx +13 -0
- package/src/data/icons/reactNative/index.tsx +2 -0
- package/src/data/icons/reactNative/sol.tsx +13 -0
- package/src/data/icons/svg/CRO.svg +6 -0
- package/src/data/icons/svg/SOL.svg +3 -0
- package/src/derivation.ts +13 -0
- package/src/errors.ts +1 -0
- package/src/families/bitcoin/getAccountNetworkInfo.ts +5 -2
- package/src/families/bitcoin/js-signOperation.ts +4 -7
- package/src/families/bitcoin/specs.ts +16 -0
- package/src/families/bitcoin/wallet-btc/crypto/base.ts +1 -1
- package/src/families/bitcoin/wallet-btc/crypto/bitcoincash.ts +8 -1
- package/src/families/bitcoin/wallet-btc/crypto/decred.ts +251 -0
- package/src/families/bitcoin/wallet-btc/crypto/factory.ts +5 -0
- package/src/families/bitcoin/wallet-btc/crypto/index.ts +1 -0
- package/src/families/bitcoin/wallet-btc/crypto/litecoin.ts +13 -3
- package/src/families/bitcoin/wallet-btc/crypto/types.ts +1 -0
- package/src/families/bitcoin/wallet-btc/crypto/zec.ts +8 -1
- package/src/families/bitcoin/wallet-btc/crypto/zen.ts +8 -1
- package/src/families/bitcoin/wallet-btc/utils.ts +6 -1
- package/src/families/bitcoin/wallet-btc/wallet.ts +18 -5
- package/src/families/ethereum/synchronisation.ts +5 -2
- package/src/families/polkadot/api/sidecar.ts +2 -2
- package/src/families/solana/api/cached.ts +89 -0
- package/src/families/solana/api/chain/account/index.ts +1 -0
- package/src/families/solana/api/chain/account/parser.ts +35 -0
- package/src/families/solana/api/chain/account/stake.ts +50 -0
- package/src/families/solana/api/chain/account/token.ts +63 -0
- package/src/families/solana/api/chain/index.ts +115 -0
- package/src/families/solana/api/chain/instruction/associated-token-account/index.ts +37 -0
- package/src/families/solana/api/chain/instruction/associated-token-account/types.ts +23 -0
- package/src/families/solana/api/chain/instruction/memo/index.ts +24 -0
- package/src/families/solana/api/chain/instruction/memo/types.ts +18 -0
- package/src/families/solana/api/chain/instruction/stake/index.ts +29 -0
- package/src/families/solana/api/chain/instruction/stake/types.ts +95 -0
- package/src/families/solana/api/chain/instruction/token/index.ts +30 -0
- package/src/families/solana/api/chain/instruction/token/types.ts +237 -0
- package/src/families/solana/api/chain/program/constants.ts +10 -0
- package/src/families/solana/api/chain/program/index.ts +1 -0
- package/src/families/solana/api/chain/program/parser.ts +122 -0
- package/src/families/solana/api/chain/validators/bignum.ts +11 -0
- package/src/families/solana/api/chain/validators/index.ts +9 -0
- package/src/families/solana/api/chain/validators/pubkey.ts +8 -0
- package/src/families/solana/api/chain/web3.ts +258 -0
- package/src/families/solana/api/index.ts +4 -0
- package/src/families/solana/api/logged.ts +50 -0
- package/src/families/solana/api/queued.ts +23 -0
- package/src/families/solana/bridge/bridge.ts +169 -0
- package/src/families/solana/bridge/js.ts +28 -0
- package/src/families/solana/bridge/mock-data.ts +22 -0
- package/src/families/solana/bridge/mock.ts +80 -0
- package/src/families/solana/cli-transaction.ts +175 -0
- package/src/families/solana/datasets/solana.scanAccounts.1.ts +9 -0
- package/src/families/solana/deviceTransactionConfig.ts +160 -0
- package/src/families/solana/errors.ts +32 -0
- package/src/families/solana/hw-getAddress.ts +20 -0
- package/src/families/solana/js-broadcast.ts +20 -0
- package/src/families/solana/js-buildTransaction.ts +75 -0
- package/src/families/solana/js-createTransaction.ts +27 -0
- package/src/families/solana/js-estimateMaxSpendable.ts +29 -0
- package/src/families/solana/js-getTransactionStatus.ts +78 -0
- package/src/families/solana/js-prepareTransaction.ts +423 -0
- package/src/families/solana/js-signOperation.ts +230 -0
- package/src/families/solana/js-synchronization.ts +544 -0
- package/src/families/solana/logic.ts +52 -0
- package/src/families/solana/specs.ts +100 -0
- package/src/families/solana/speculos-deviceActions.ts +59 -0
- package/src/families/solana/test-dataset.ts +572 -0
- package/src/families/solana/transaction.ts +146 -0
- package/src/families/solana/types.ts +110 -0
- package/src/families/solana/utils.ts +80 -0
- package/src/generated/bridge/js.ts +3 -0
- package/src/generated/bridge/mock.ts +3 -0
- package/src/generated/cli-transaction.ts +3 -0
- package/src/generated/deviceTransactionConfig.ts +3 -0
- package/src/generated/hw-getAddress.ts +3 -0
- package/src/generated/specs.ts +3 -0
- package/src/generated/speculos-deviceActions.ts +3 -0
- package/src/generated/test-dataset.ts +3 -0
- package/src/generated/transaction.ts +3 -0
- package/src/generated/types.ts +14 -0
- package/src/nft/helpers.ts +1 -1
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
/// <reference types="@solana/web3.js" />
|
|
2
|
+
import { Infer } from "superstruct";
|
|
3
|
+
export declare type TokenAmountUi = Infer<typeof TokenAmountUi>;
|
|
4
|
+
export declare const TokenAmountUi: import("superstruct").Struct<{
|
|
5
|
+
amount: string;
|
|
6
|
+
decimals: number;
|
|
7
|
+
uiAmountString: string;
|
|
8
|
+
}, {
|
|
9
|
+
amount: import("superstruct").Struct<string, null>;
|
|
10
|
+
decimals: import("superstruct").Struct<number, null>;
|
|
11
|
+
uiAmountString: import("superstruct").Struct<string, null>;
|
|
12
|
+
}>;
|
|
13
|
+
export declare type Transfer = Infer<typeof Transfer>;
|
|
14
|
+
export declare const Transfer: import("superstruct").Struct<{
|
|
15
|
+
amount: string | number;
|
|
16
|
+
source: import("@solana/web3.js").PublicKey;
|
|
17
|
+
destination: import("@solana/web3.js").PublicKey;
|
|
18
|
+
signers?: import("@solana/web3.js").PublicKey[] | undefined;
|
|
19
|
+
authority?: import("@solana/web3.js").PublicKey | undefined;
|
|
20
|
+
multisigAuthority?: import("@solana/web3.js").PublicKey | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
source: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
23
|
+
destination: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
24
|
+
amount: import("superstruct").Struct<string | number, null>;
|
|
25
|
+
authority: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
26
|
+
multisigAuthority: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
27
|
+
signers: import("superstruct").Struct<import("@solana/web3.js").PublicKey[] | undefined, import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>>;
|
|
28
|
+
}>;
|
|
29
|
+
export declare type TransferChecked = Infer<typeof TransferChecked>;
|
|
30
|
+
export declare const TransferChecked: import("superstruct").Struct<{
|
|
31
|
+
source: import("@solana/web3.js").PublicKey;
|
|
32
|
+
destination: import("@solana/web3.js").PublicKey;
|
|
33
|
+
mint: import("@solana/web3.js").PublicKey;
|
|
34
|
+
tokenAmount: {
|
|
35
|
+
amount: string;
|
|
36
|
+
decimals: number;
|
|
37
|
+
uiAmountString: string;
|
|
38
|
+
};
|
|
39
|
+
signers?: import("@solana/web3.js").PublicKey[] | undefined;
|
|
40
|
+
authority?: import("@solana/web3.js").PublicKey | undefined;
|
|
41
|
+
multisigAuthority?: import("@solana/web3.js").PublicKey | undefined;
|
|
42
|
+
}, {
|
|
43
|
+
source: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
44
|
+
mint: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
45
|
+
destination: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
46
|
+
authority: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
47
|
+
multisigAuthority: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
48
|
+
signers: import("superstruct").Struct<import("@solana/web3.js").PublicKey[] | undefined, import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>>;
|
|
49
|
+
tokenAmount: import("superstruct").Struct<{
|
|
50
|
+
amount: string;
|
|
51
|
+
decimals: number;
|
|
52
|
+
uiAmountString: string;
|
|
53
|
+
}, {
|
|
54
|
+
amount: import("superstruct").Struct<string, null>;
|
|
55
|
+
decimals: import("superstruct").Struct<number, null>;
|
|
56
|
+
uiAmountString: import("superstruct").Struct<string, null>;
|
|
57
|
+
}>;
|
|
58
|
+
}>;
|
|
59
|
+
export declare type TokenInstructionType = Infer<typeof TokenInstructionType>;
|
|
60
|
+
export declare const TokenInstructionType: import("superstruct").Struct<"transfer" | "freezeAccount" | "closeAccount" | "initializeMint" | "initializeAccount" | "initializeMultisig" | "approve" | "revoke" | "setAuthority" | "mintTo" | "burn" | "thawAccount" | "transfer2" | "approve2" | "mintTo2" | "burn2" | "transferChecked" | "approveChecked" | "mintToChecked" | "burnChecked", {
|
|
61
|
+
transfer: "transfer";
|
|
62
|
+
freezeAccount: "freezeAccount";
|
|
63
|
+
closeAccount: "closeAccount";
|
|
64
|
+
initializeMint: "initializeMint";
|
|
65
|
+
initializeAccount: "initializeAccount";
|
|
66
|
+
initializeMultisig: "initializeMultisig";
|
|
67
|
+
approve: "approve";
|
|
68
|
+
revoke: "revoke";
|
|
69
|
+
setAuthority: "setAuthority";
|
|
70
|
+
mintTo: "mintTo";
|
|
71
|
+
burn: "burn";
|
|
72
|
+
thawAccount: "thawAccount";
|
|
73
|
+
transfer2: "transfer2";
|
|
74
|
+
approve2: "approve2";
|
|
75
|
+
mintTo2: "mintTo2";
|
|
76
|
+
burn2: "burn2";
|
|
77
|
+
transferChecked: "transferChecked";
|
|
78
|
+
approveChecked: "approveChecked";
|
|
79
|
+
mintToChecked: "mintToChecked";
|
|
80
|
+
burnChecked: "burnChecked";
|
|
81
|
+
}>;
|
|
82
|
+
export declare const IX_STRUCTS: {
|
|
83
|
+
initializeMint: import("superstruct").Struct<{
|
|
84
|
+
mint: import("@solana/web3.js").PublicKey;
|
|
85
|
+
decimals: number;
|
|
86
|
+
mintAuthority: import("@solana/web3.js").PublicKey;
|
|
87
|
+
rentSysvar: import("@solana/web3.js").PublicKey;
|
|
88
|
+
freezeAuthority?: import("@solana/web3.js").PublicKey | undefined;
|
|
89
|
+
}, {
|
|
90
|
+
mint: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
91
|
+
decimals: import("superstruct").Struct<number, null>;
|
|
92
|
+
mintAuthority: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
93
|
+
rentSysvar: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
94
|
+
freezeAuthority: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
95
|
+
}>;
|
|
96
|
+
initializeAccount: import("superstruct").Struct<{
|
|
97
|
+
account: import("@solana/web3.js").PublicKey;
|
|
98
|
+
owner: import("@solana/web3.js").PublicKey;
|
|
99
|
+
mint: import("@solana/web3.js").PublicKey;
|
|
100
|
+
rentSysvar: import("@solana/web3.js").PublicKey;
|
|
101
|
+
}, {
|
|
102
|
+
account: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
103
|
+
mint: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
104
|
+
owner: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
105
|
+
rentSysvar: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
106
|
+
}>;
|
|
107
|
+
initializeMultisig: import("superstruct").Struct<{
|
|
108
|
+
multisig: import("@solana/web3.js").PublicKey;
|
|
109
|
+
signers: import("@solana/web3.js").PublicKey[];
|
|
110
|
+
rentSysvar: import("@solana/web3.js").PublicKey;
|
|
111
|
+
m: number;
|
|
112
|
+
}, {
|
|
113
|
+
multisig: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
114
|
+
rentSysvar: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
115
|
+
signers: import("superstruct").Struct<import("@solana/web3.js").PublicKey[], import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>>;
|
|
116
|
+
m: import("superstruct").Struct<number, null>;
|
|
117
|
+
}>;
|
|
118
|
+
transfer: import("superstruct").Struct<{
|
|
119
|
+
amount: string | number;
|
|
120
|
+
source: import("@solana/web3.js").PublicKey;
|
|
121
|
+
destination: import("@solana/web3.js").PublicKey;
|
|
122
|
+
signers?: import("@solana/web3.js").PublicKey[] | undefined;
|
|
123
|
+
authority?: import("@solana/web3.js").PublicKey | undefined;
|
|
124
|
+
multisigAuthority?: import("@solana/web3.js").PublicKey | undefined;
|
|
125
|
+
}, {
|
|
126
|
+
source: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
127
|
+
destination: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
128
|
+
amount: import("superstruct").Struct<string | number, null>;
|
|
129
|
+
authority: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
130
|
+
multisigAuthority: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
131
|
+
signers: import("superstruct").Struct<import("@solana/web3.js").PublicKey[] | undefined, import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>>;
|
|
132
|
+
}>;
|
|
133
|
+
approve: import("superstruct").Struct<{
|
|
134
|
+
amount: string | number;
|
|
135
|
+
delegate: import("@solana/web3.js").PublicKey;
|
|
136
|
+
source: import("@solana/web3.js").PublicKey;
|
|
137
|
+
owner?: import("@solana/web3.js").PublicKey | undefined;
|
|
138
|
+
signers?: import("@solana/web3.js").PublicKey[] | undefined;
|
|
139
|
+
multisigOwner?: import("@solana/web3.js").PublicKey | undefined;
|
|
140
|
+
}, {
|
|
141
|
+
source: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
142
|
+
delegate: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
143
|
+
amount: import("superstruct").Struct<string | number, null>;
|
|
144
|
+
owner: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
145
|
+
multisigOwner: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
146
|
+
signers: import("superstruct").Struct<import("@solana/web3.js").PublicKey[] | undefined, import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>>;
|
|
147
|
+
}>;
|
|
148
|
+
revoke: import("superstruct").Struct<{
|
|
149
|
+
source: import("@solana/web3.js").PublicKey;
|
|
150
|
+
owner?: import("@solana/web3.js").PublicKey | undefined;
|
|
151
|
+
signers?: import("@solana/web3.js").PublicKey[] | undefined;
|
|
152
|
+
multisigOwner?: import("@solana/web3.js").PublicKey | undefined;
|
|
153
|
+
}, {
|
|
154
|
+
source: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
155
|
+
owner: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
156
|
+
multisigOwner: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
157
|
+
signers: import("superstruct").Struct<import("@solana/web3.js").PublicKey[] | undefined, import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>>;
|
|
158
|
+
}>;
|
|
159
|
+
setAuthority: import("superstruct").Struct<{
|
|
160
|
+
authorityType: "mintTokens" | "freezeAccount" | "accountOwner" | "closeAccount";
|
|
161
|
+
newAuthority: import("@solana/web3.js").PublicKey | null;
|
|
162
|
+
account?: import("@solana/web3.js").PublicKey | undefined;
|
|
163
|
+
mint?: import("@solana/web3.js").PublicKey | undefined;
|
|
164
|
+
signers?: import("@solana/web3.js").PublicKey[] | undefined;
|
|
165
|
+
authority?: import("@solana/web3.js").PublicKey | undefined;
|
|
166
|
+
multisigAuthority?: import("@solana/web3.js").PublicKey | undefined;
|
|
167
|
+
}, {
|
|
168
|
+
mint: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
169
|
+
account: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
170
|
+
authorityType: import("superstruct").Struct<"mintTokens" | "freezeAccount" | "accountOwner" | "closeAccount", {
|
|
171
|
+
mintTokens: "mintTokens";
|
|
172
|
+
freezeAccount: "freezeAccount";
|
|
173
|
+
accountOwner: "accountOwner";
|
|
174
|
+
closeAccount: "closeAccount";
|
|
175
|
+
}>;
|
|
176
|
+
newAuthority: import("superstruct").Struct<import("@solana/web3.js").PublicKey | null, null>;
|
|
177
|
+
authority: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
178
|
+
multisigAuthority: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
179
|
+
signers: import("superstruct").Struct<import("@solana/web3.js").PublicKey[] | undefined, import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>>;
|
|
180
|
+
}>;
|
|
181
|
+
mintTo: import("superstruct").Struct<{
|
|
182
|
+
amount: string | number;
|
|
183
|
+
account: import("@solana/web3.js").PublicKey;
|
|
184
|
+
mint: import("@solana/web3.js").PublicKey;
|
|
185
|
+
mintAuthority?: import("@solana/web3.js").PublicKey | undefined;
|
|
186
|
+
signers?: import("@solana/web3.js").PublicKey[] | undefined;
|
|
187
|
+
multisigMintAuthority?: import("@solana/web3.js").PublicKey | undefined;
|
|
188
|
+
}, {
|
|
189
|
+
mint: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
190
|
+
account: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
191
|
+
amount: import("superstruct").Struct<string | number, null>;
|
|
192
|
+
mintAuthority: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
193
|
+
multisigMintAuthority: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
194
|
+
signers: import("superstruct").Struct<import("@solana/web3.js").PublicKey[] | undefined, import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>>;
|
|
195
|
+
}>;
|
|
196
|
+
burn: import("superstruct").Struct<{
|
|
197
|
+
amount: string | number;
|
|
198
|
+
account: import("@solana/web3.js").PublicKey;
|
|
199
|
+
mint: import("@solana/web3.js").PublicKey;
|
|
200
|
+
signers?: import("@solana/web3.js").PublicKey[] | undefined;
|
|
201
|
+
authority?: import("@solana/web3.js").PublicKey | undefined;
|
|
202
|
+
multisigAuthority?: import("@solana/web3.js").PublicKey | undefined;
|
|
203
|
+
}, {
|
|
204
|
+
account: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
205
|
+
mint: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
206
|
+
amount: import("superstruct").Struct<string | number, null>;
|
|
207
|
+
authority: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
208
|
+
multisigAuthority: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
209
|
+
signers: import("superstruct").Struct<import("@solana/web3.js").PublicKey[] | undefined, import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>>;
|
|
210
|
+
}>;
|
|
211
|
+
closeAccount: import("superstruct").Struct<{
|
|
212
|
+
account: import("@solana/web3.js").PublicKey;
|
|
213
|
+
destination: import("@solana/web3.js").PublicKey;
|
|
214
|
+
owner?: import("@solana/web3.js").PublicKey | undefined;
|
|
215
|
+
signers?: import("@solana/web3.js").PublicKey[] | undefined;
|
|
216
|
+
multisigOwner?: import("@solana/web3.js").PublicKey | undefined;
|
|
217
|
+
}, {
|
|
218
|
+
account: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
219
|
+
destination: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
220
|
+
owner: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
221
|
+
multisigOwner: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
222
|
+
signers: import("superstruct").Struct<import("@solana/web3.js").PublicKey[] | undefined, import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>>;
|
|
223
|
+
}>;
|
|
224
|
+
freezeAccount: import("superstruct").Struct<{
|
|
225
|
+
account: import("@solana/web3.js").PublicKey;
|
|
226
|
+
mint: import("@solana/web3.js").PublicKey;
|
|
227
|
+
freezeAuthority?: import("@solana/web3.js").PublicKey | undefined;
|
|
228
|
+
signers?: import("@solana/web3.js").PublicKey[] | undefined;
|
|
229
|
+
multisigFreezeAuthority?: import("@solana/web3.js").PublicKey | undefined;
|
|
230
|
+
}, {
|
|
231
|
+
account: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
232
|
+
mint: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
233
|
+
freezeAuthority: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
234
|
+
multisigFreezeAuthority: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
235
|
+
signers: import("superstruct").Struct<import("@solana/web3.js").PublicKey[] | undefined, import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>>;
|
|
236
|
+
}>;
|
|
237
|
+
thawAccount: import("superstruct").Struct<{
|
|
238
|
+
account: import("@solana/web3.js").PublicKey;
|
|
239
|
+
mint: import("@solana/web3.js").PublicKey;
|
|
240
|
+
freezeAuthority?: import("@solana/web3.js").PublicKey | undefined;
|
|
241
|
+
signers?: import("@solana/web3.js").PublicKey[] | undefined;
|
|
242
|
+
multisigFreezeAuthority?: import("@solana/web3.js").PublicKey | undefined;
|
|
243
|
+
}, {
|
|
244
|
+
account: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
245
|
+
mint: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
246
|
+
freezeAuthority: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
247
|
+
multisigFreezeAuthority: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
248
|
+
signers: import("superstruct").Struct<import("@solana/web3.js").PublicKey[] | undefined, import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>>;
|
|
249
|
+
}>;
|
|
250
|
+
transfer2: import("superstruct").Struct<{
|
|
251
|
+
source: import("@solana/web3.js").PublicKey;
|
|
252
|
+
destination: import("@solana/web3.js").PublicKey;
|
|
253
|
+
mint: import("@solana/web3.js").PublicKey;
|
|
254
|
+
tokenAmount: {
|
|
255
|
+
amount: string;
|
|
256
|
+
decimals: number;
|
|
257
|
+
uiAmountString: string;
|
|
258
|
+
};
|
|
259
|
+
signers?: import("@solana/web3.js").PublicKey[] | undefined;
|
|
260
|
+
authority?: import("@solana/web3.js").PublicKey | undefined;
|
|
261
|
+
multisigAuthority?: import("@solana/web3.js").PublicKey | undefined;
|
|
262
|
+
}, {
|
|
263
|
+
source: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
264
|
+
mint: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
265
|
+
destination: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
266
|
+
authority: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
267
|
+
multisigAuthority: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
268
|
+
signers: import("superstruct").Struct<import("@solana/web3.js").PublicKey[] | undefined, import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>>;
|
|
269
|
+
tokenAmount: import("superstruct").Struct<{
|
|
270
|
+
amount: string;
|
|
271
|
+
decimals: number;
|
|
272
|
+
uiAmountString: string;
|
|
273
|
+
}, {
|
|
274
|
+
amount: import("superstruct").Struct<string, null>;
|
|
275
|
+
decimals: import("superstruct").Struct<number, null>;
|
|
276
|
+
uiAmountString: import("superstruct").Struct<string, null>;
|
|
277
|
+
}>;
|
|
278
|
+
}>;
|
|
279
|
+
approve2: import("superstruct").Struct<{
|
|
280
|
+
delegate: import("@solana/web3.js").PublicKey;
|
|
281
|
+
source: import("@solana/web3.js").PublicKey;
|
|
282
|
+
mint: import("@solana/web3.js").PublicKey;
|
|
283
|
+
tokenAmount: {
|
|
284
|
+
amount: string;
|
|
285
|
+
decimals: number;
|
|
286
|
+
uiAmountString: string;
|
|
287
|
+
};
|
|
288
|
+
owner?: import("@solana/web3.js").PublicKey | undefined;
|
|
289
|
+
signers?: import("@solana/web3.js").PublicKey[] | undefined;
|
|
290
|
+
multisigOwner?: import("@solana/web3.js").PublicKey | undefined;
|
|
291
|
+
}, {
|
|
292
|
+
source: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
293
|
+
mint: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
294
|
+
delegate: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
295
|
+
owner: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
296
|
+
multisigOwner: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
297
|
+
signers: import("superstruct").Struct<import("@solana/web3.js").PublicKey[] | undefined, import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>>;
|
|
298
|
+
tokenAmount: import("superstruct").Struct<{
|
|
299
|
+
amount: string;
|
|
300
|
+
decimals: number;
|
|
301
|
+
uiAmountString: string;
|
|
302
|
+
}, {
|
|
303
|
+
amount: import("superstruct").Struct<string, null>;
|
|
304
|
+
decimals: import("superstruct").Struct<number, null>;
|
|
305
|
+
uiAmountString: import("superstruct").Struct<string, null>;
|
|
306
|
+
}>;
|
|
307
|
+
}>;
|
|
308
|
+
mintTo2: import("superstruct").Struct<{
|
|
309
|
+
account: import("@solana/web3.js").PublicKey;
|
|
310
|
+
mint: import("@solana/web3.js").PublicKey;
|
|
311
|
+
tokenAmount: {
|
|
312
|
+
amount: string;
|
|
313
|
+
decimals: number;
|
|
314
|
+
uiAmountString: string;
|
|
315
|
+
};
|
|
316
|
+
mintAuthority?: import("@solana/web3.js").PublicKey | undefined;
|
|
317
|
+
signers?: import("@solana/web3.js").PublicKey[] | undefined;
|
|
318
|
+
multisigMintAuthority?: import("@solana/web3.js").PublicKey | undefined;
|
|
319
|
+
}, {
|
|
320
|
+
account: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
321
|
+
mint: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
322
|
+
mintAuthority: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
323
|
+
multisigMintAuthority: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
324
|
+
signers: import("superstruct").Struct<import("@solana/web3.js").PublicKey[] | undefined, import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>>;
|
|
325
|
+
tokenAmount: import("superstruct").Struct<{
|
|
326
|
+
amount: string;
|
|
327
|
+
decimals: number;
|
|
328
|
+
uiAmountString: string;
|
|
329
|
+
}, {
|
|
330
|
+
amount: import("superstruct").Struct<string, null>;
|
|
331
|
+
decimals: import("superstruct").Struct<number, null>;
|
|
332
|
+
uiAmountString: import("superstruct").Struct<string, null>;
|
|
333
|
+
}>;
|
|
334
|
+
}>;
|
|
335
|
+
burn2: import("superstruct").Struct<{
|
|
336
|
+
account: import("@solana/web3.js").PublicKey;
|
|
337
|
+
mint: import("@solana/web3.js").PublicKey;
|
|
338
|
+
tokenAmount: {
|
|
339
|
+
amount: string;
|
|
340
|
+
decimals: number;
|
|
341
|
+
uiAmountString: string;
|
|
342
|
+
};
|
|
343
|
+
signers?: import("@solana/web3.js").PublicKey[] | undefined;
|
|
344
|
+
authority?: import("@solana/web3.js").PublicKey | undefined;
|
|
345
|
+
multisigAuthority?: import("@solana/web3.js").PublicKey | undefined;
|
|
346
|
+
}, {
|
|
347
|
+
account: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
348
|
+
mint: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
349
|
+
authority: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
350
|
+
multisigAuthority: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
351
|
+
signers: import("superstruct").Struct<import("@solana/web3.js").PublicKey[] | undefined, import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>>;
|
|
352
|
+
tokenAmount: import("superstruct").Struct<{
|
|
353
|
+
amount: string;
|
|
354
|
+
decimals: number;
|
|
355
|
+
uiAmountString: string;
|
|
356
|
+
}, {
|
|
357
|
+
amount: import("superstruct").Struct<string, null>;
|
|
358
|
+
decimals: import("superstruct").Struct<number, null>;
|
|
359
|
+
uiAmountString: import("superstruct").Struct<string, null>;
|
|
360
|
+
}>;
|
|
361
|
+
}>;
|
|
362
|
+
transferChecked: import("superstruct").Struct<{
|
|
363
|
+
source: import("@solana/web3.js").PublicKey;
|
|
364
|
+
destination: import("@solana/web3.js").PublicKey;
|
|
365
|
+
mint: import("@solana/web3.js").PublicKey;
|
|
366
|
+
tokenAmount: {
|
|
367
|
+
amount: string;
|
|
368
|
+
decimals: number;
|
|
369
|
+
uiAmountString: string;
|
|
370
|
+
};
|
|
371
|
+
signers?: import("@solana/web3.js").PublicKey[] | undefined;
|
|
372
|
+
authority?: import("@solana/web3.js").PublicKey | undefined;
|
|
373
|
+
multisigAuthority?: import("@solana/web3.js").PublicKey | undefined;
|
|
374
|
+
}, {
|
|
375
|
+
source: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
376
|
+
mint: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
377
|
+
destination: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
378
|
+
authority: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
379
|
+
multisigAuthority: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
380
|
+
signers: import("superstruct").Struct<import("@solana/web3.js").PublicKey[] | undefined, import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>>;
|
|
381
|
+
tokenAmount: import("superstruct").Struct<{
|
|
382
|
+
amount: string;
|
|
383
|
+
decimals: number;
|
|
384
|
+
uiAmountString: string;
|
|
385
|
+
}, {
|
|
386
|
+
amount: import("superstruct").Struct<string, null>;
|
|
387
|
+
decimals: import("superstruct").Struct<number, null>;
|
|
388
|
+
uiAmountString: import("superstruct").Struct<string, null>;
|
|
389
|
+
}>;
|
|
390
|
+
}>;
|
|
391
|
+
approveChecked: import("superstruct").Struct<{
|
|
392
|
+
delegate: import("@solana/web3.js").PublicKey;
|
|
393
|
+
source: import("@solana/web3.js").PublicKey;
|
|
394
|
+
mint: import("@solana/web3.js").PublicKey;
|
|
395
|
+
tokenAmount: {
|
|
396
|
+
amount: string;
|
|
397
|
+
decimals: number;
|
|
398
|
+
uiAmountString: string;
|
|
399
|
+
};
|
|
400
|
+
owner?: import("@solana/web3.js").PublicKey | undefined;
|
|
401
|
+
signers?: import("@solana/web3.js").PublicKey[] | undefined;
|
|
402
|
+
multisigOwner?: import("@solana/web3.js").PublicKey | undefined;
|
|
403
|
+
}, {
|
|
404
|
+
source: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
405
|
+
mint: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
406
|
+
delegate: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
407
|
+
owner: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
408
|
+
multisigOwner: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
409
|
+
signers: import("superstruct").Struct<import("@solana/web3.js").PublicKey[] | undefined, import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>>;
|
|
410
|
+
tokenAmount: import("superstruct").Struct<{
|
|
411
|
+
amount: string;
|
|
412
|
+
decimals: number;
|
|
413
|
+
uiAmountString: string;
|
|
414
|
+
}, {
|
|
415
|
+
amount: import("superstruct").Struct<string, null>;
|
|
416
|
+
decimals: import("superstruct").Struct<number, null>;
|
|
417
|
+
uiAmountString: import("superstruct").Struct<string, null>;
|
|
418
|
+
}>;
|
|
419
|
+
}>;
|
|
420
|
+
mintToChecked: import("superstruct").Struct<{
|
|
421
|
+
account: import("@solana/web3.js").PublicKey;
|
|
422
|
+
mint: import("@solana/web3.js").PublicKey;
|
|
423
|
+
tokenAmount: {
|
|
424
|
+
amount: string;
|
|
425
|
+
decimals: number;
|
|
426
|
+
uiAmountString: string;
|
|
427
|
+
};
|
|
428
|
+
mintAuthority?: import("@solana/web3.js").PublicKey | undefined;
|
|
429
|
+
signers?: import("@solana/web3.js").PublicKey[] | undefined;
|
|
430
|
+
multisigMintAuthority?: import("@solana/web3.js").PublicKey | undefined;
|
|
431
|
+
}, {
|
|
432
|
+
account: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
433
|
+
mint: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
434
|
+
mintAuthority: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
435
|
+
multisigMintAuthority: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
436
|
+
signers: import("superstruct").Struct<import("@solana/web3.js").PublicKey[] | undefined, import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>>;
|
|
437
|
+
tokenAmount: import("superstruct").Struct<{
|
|
438
|
+
amount: string;
|
|
439
|
+
decimals: number;
|
|
440
|
+
uiAmountString: string;
|
|
441
|
+
}, {
|
|
442
|
+
amount: import("superstruct").Struct<string, null>;
|
|
443
|
+
decimals: import("superstruct").Struct<number, null>;
|
|
444
|
+
uiAmountString: import("superstruct").Struct<string, null>;
|
|
445
|
+
}>;
|
|
446
|
+
}>;
|
|
447
|
+
burnChecked: import("superstruct").Struct<{
|
|
448
|
+
account: import("@solana/web3.js").PublicKey;
|
|
449
|
+
mint: import("@solana/web3.js").PublicKey;
|
|
450
|
+
tokenAmount: {
|
|
451
|
+
amount: string;
|
|
452
|
+
decimals: number;
|
|
453
|
+
uiAmountString: string;
|
|
454
|
+
};
|
|
455
|
+
signers?: import("@solana/web3.js").PublicKey[] | undefined;
|
|
456
|
+
authority?: import("@solana/web3.js").PublicKey | undefined;
|
|
457
|
+
multisigAuthority?: import("@solana/web3.js").PublicKey | undefined;
|
|
458
|
+
}, {
|
|
459
|
+
account: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
460
|
+
mint: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
461
|
+
authority: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
462
|
+
multisigAuthority: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
463
|
+
signers: import("superstruct").Struct<import("@solana/web3.js").PublicKey[] | undefined, import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>>;
|
|
464
|
+
tokenAmount: import("superstruct").Struct<{
|
|
465
|
+
amount: string;
|
|
466
|
+
decimals: number;
|
|
467
|
+
uiAmountString: string;
|
|
468
|
+
}, {
|
|
469
|
+
amount: import("superstruct").Struct<string, null>;
|
|
470
|
+
decimals: import("superstruct").Struct<number, null>;
|
|
471
|
+
uiAmountString: import("superstruct").Struct<string, null>;
|
|
472
|
+
}>;
|
|
473
|
+
}>;
|
|
474
|
+
};
|
|
475
|
+
export declare const IX_TITLES: {
|
|
476
|
+
initializeMint: string;
|
|
477
|
+
initializeAccount: string;
|
|
478
|
+
initializeMultisig: string;
|
|
479
|
+
transfer: string;
|
|
480
|
+
approve: string;
|
|
481
|
+
revoke: string;
|
|
482
|
+
setAuthority: string;
|
|
483
|
+
mintTo: string;
|
|
484
|
+
burn: string;
|
|
485
|
+
closeAccount: string;
|
|
486
|
+
freezeAccount: string;
|
|
487
|
+
thawAccount: string;
|
|
488
|
+
transfer2: string;
|
|
489
|
+
approve2: string;
|
|
490
|
+
mintTo2: string;
|
|
491
|
+
burn2: string;
|
|
492
|
+
transferChecked: string;
|
|
493
|
+
approveChecked: string;
|
|
494
|
+
mintToChecked: string;
|
|
495
|
+
burnChecked: string;
|
|
496
|
+
};
|
|
497
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/families/solana/api/chain/instruction/token/types.ts"],"names":[],"mappings":";AAEA,OAAO,EAGL,KAAK,EAON,MAAM,aAAa,CAAC;AAGrB,oBAAY,aAAa,GAAG,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACxD,eAAO,MAAM,aAAa;;;;;;;;EAIxB,CAAC;AAwBH,oBAAY,QAAQ,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC9C,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;EAOnB,CAAC;AA6EH,oBAAY,eAAe,GAAG,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAC5D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ1B,CAAC;AA8BH,oBAAY,oBAAoB,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACtE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;EAqB/B,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqBtB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;CAqBrB,CAAC"}
|