@ledgerhq/live-common 27.0.0-next.2 → 27.0.1-next.0
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/xpub.syncing.integration.test.js +2 -2
- package/lib/__tests__/test-helpers/environment.d.ts +2 -0
- package/lib/__tests__/test-helpers/environment.d.ts.map +1 -0
- package/lib/__tests__/test-helpers/environment.js +107 -0
- package/lib/__tests__/test-helpers/environment.js.map +1 -0
- package/lib/__tests__/test-helpers/setup.d.ts +1 -1
- package/lib/__tests__/test-helpers/setup.d.ts.map +1 -1
- package/lib/__tests__/test-helpers/setup.js +1 -101
- package/lib/__tests__/test-helpers/setup.js.map +1 -1
- package/lib/account/importAccounts.d.ts +35 -2
- package/lib/account/importAccounts.d.ts.map +1 -1
- package/lib/account/importAccounts.integration.test.d.ts +2 -0
- package/lib/account/importAccounts.integration.test.d.ts.map +1 -0
- package/lib/account/importAccounts.integration.test.js +219 -0
- package/lib/account/importAccounts.integration.test.js.map +1 -0
- package/lib/account/importAccounts.js +130 -12
- package/lib/account/importAccounts.js.map +1 -1
- package/lib/account/importAccounts.test.d.ts +2 -0
- package/lib/account/importAccounts.test.d.ts.map +1 -0
- package/lib/{__tests__/accounts/importAccounts.js → account/importAccounts.test.js} +44 -64
- package/lib/account/importAccounts.test.js.map +1 -0
- package/lib/account/serialization.d.ts.map +1 -1
- package/lib/account/serialization.js +83 -40
- package/lib/account/serialization.js.map +1 -1
- package/lib/bot/bot-test-context.d.ts +3 -0
- package/lib/bot/bot-test-context.d.ts.map +1 -0
- package/lib/bot/bot-test-context.js +26 -0
- package/lib/bot/bot-test-context.js.map +1 -0
- package/lib/bot/bot-test-context.test.d.ts +2 -0
- package/lib/bot/bot-test-context.test.d.ts.map +1 -0
- package/lib/bot/bot-test-context.test.js +41 -0
- package/lib/bot/bot-test-context.test.js.map +1 -0
- package/lib/bot/cli.d.ts +2 -0
- package/lib/bot/cli.d.ts.map +1 -0
- package/lib/bot/cli.js +14 -0
- package/lib/bot/cli.js.map +1 -0
- package/lib/bot/engine.d.ts +5 -5
- package/lib/bot/engine.d.ts.map +1 -1
- package/lib/bot/engine.js +161 -112
- package/lib/bot/engine.js.map +1 -1
- package/lib/bot/formatters.d.ts +2 -2
- package/lib/bot/formatters.d.ts.map +1 -1
- package/lib/bot/formatters.js +41 -15
- package/lib/bot/formatters.js.map +1 -1
- package/lib/bot/index.d.ts +1 -1
- package/lib/bot/index.d.ts.map +1 -1
- package/lib/bot/index.js +90 -15
- package/lib/bot/index.js.map +1 -1
- package/lib/bot/specs.d.ts +2 -1
- package/lib/bot/specs.d.ts.map +1 -1
- package/lib/bot/specs.js +13 -9
- package/lib/bot/specs.js.map +1 -1
- package/lib/bot/types.d.ts +5 -2
- package/lib/bot/types.d.ts.map +1 -1
- package/lib/countervalues/logic.integration.test.js +65 -0
- package/lib/countervalues/logic.integration.test.js.map +1 -1
- package/lib/countervalues/modules/weth.d.ts.map +1 -1
- package/lib/countervalues/modules/weth.js +5 -10
- package/lib/countervalues/modules/weth.js.map +1 -1
- package/lib/currencies/sortByMarketcap.d.ts +0 -2
- package/lib/currencies/sortByMarketcap.d.ts.map +1 -1
- package/lib/currencies/sortByMarketcap.js +3 -17
- package/lib/currencies/sortByMarketcap.js.map +1 -1
- package/lib/currencies/sortByMarketcap.test.js +0 -5
- package/lib/currencies/sortByMarketcap.test.js.map +1 -1
- package/lib/env.js +1 -1
- package/lib/families/algorand/specs.d.ts.map +1 -1
- package/lib/families/algorand/specs.js +18 -10
- package/lib/families/algorand/specs.js.map +1 -1
- package/lib/families/algorand/speculos-deviceActions.d.ts +1 -4
- package/lib/families/algorand/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/algorand/speculos-deviceActions.js +25 -8
- package/lib/families/algorand/speculos-deviceActions.js.map +1 -1
- package/lib/families/bitcoin/bridge/mock.d.ts.map +1 -1
- package/lib/families/bitcoin/bridge/mock.js +6 -1
- package/lib/families/bitcoin/bridge/mock.js.map +1 -1
- package/lib/families/bitcoin/datasets/bitcoin_cash.d.ts.map +1 -1
- package/lib/families/bitcoin/datasets/bitcoin_cash.js +1 -1
- package/lib/families/bitcoin/datasets/bitcoin_cash.js.map +1 -1
- package/lib/families/bitcoin/datasets/dash.d.ts.map +1 -1
- package/lib/families/bitcoin/datasets/dash.js +1 -1
- package/lib/families/bitcoin/datasets/dash.js.map +1 -1
- package/lib/families/bitcoin/datasets/decred.d.ts.map +1 -1
- package/lib/families/bitcoin/datasets/decred.js +1 -1
- package/lib/families/bitcoin/datasets/decred.js.map +1 -1
- package/lib/families/bitcoin/datasets/digibyte.d.ts.map +1 -1
- package/lib/families/bitcoin/datasets/digibyte.js +8 -2
- package/lib/families/bitcoin/datasets/digibyte.js.map +1 -1
- package/lib/families/bitcoin/datasets/dogecoin.d.ts.map +1 -1
- package/lib/families/bitcoin/datasets/dogecoin.js +1 -1
- package/lib/families/bitcoin/datasets/dogecoin.js.map +1 -1
- package/lib/families/bitcoin/datasets/komodo.js +1 -1
- package/lib/families/bitcoin/datasets/komodo.js.map +1 -1
- package/lib/families/bitcoin/datasets/litecoin.d.ts.map +1 -1
- package/lib/families/bitcoin/datasets/litecoin.js +8 -2
- package/lib/families/bitcoin/datasets/litecoin.js.map +1 -1
- package/lib/families/bitcoin/datasets/peercoin.js +1 -1
- package/lib/families/bitcoin/datasets/peercoin.js.map +1 -1
- package/lib/families/bitcoin/datasets/pivx.js +1 -1
- package/lib/families/bitcoin/datasets/pivx.js.map +1 -1
- package/lib/families/bitcoin/datasets/qtum.js +1 -1
- package/lib/families/bitcoin/datasets/qtum.js.map +1 -1
- package/lib/families/bitcoin/datasets/stakenet.d.ts.map +1 -1
- package/lib/families/bitcoin/datasets/stakenet.js +1 -1
- package/lib/families/bitcoin/datasets/stakenet.js.map +1 -1
- package/lib/families/bitcoin/datasets/vertcoin.d.ts.map +1 -1
- package/lib/families/bitcoin/datasets/vertcoin.js +1 -1
- package/lib/families/bitcoin/datasets/vertcoin.js.map +1 -1
- package/lib/families/bitcoin/datasets/viacoin.d.ts.map +1 -1
- package/lib/families/bitcoin/datasets/viacoin.js +1 -1
- package/lib/families/bitcoin/datasets/viacoin.js.map +1 -1
- package/lib/families/bitcoin/datasets/zcash.d.ts.map +1 -1
- package/lib/families/bitcoin/datasets/zcash.js +1 -1
- package/lib/families/bitcoin/datasets/zcash.js.map +1 -1
- package/lib/families/bitcoin/datasets/zencash.d.ts.map +1 -1
- package/lib/families/bitcoin/datasets/zencash.js +1 -1
- package/lib/families/bitcoin/datasets/zencash.js.map +1 -1
- package/lib/families/bitcoin/platformAdapter.test.d.ts +2 -0
- package/lib/families/bitcoin/platformAdapter.test.d.ts.map +1 -0
- package/lib/families/bitcoin/platformAdapter.test.js +48 -0
- package/lib/families/bitcoin/platformAdapter.test.js.map +1 -0
- package/lib/families/bitcoin/specs.d.ts.map +1 -1
- package/lib/families/bitcoin/specs.js +62 -24
- package/lib/families/bitcoin/specs.js.map +1 -1
- package/lib/families/bitcoin/speculos-deviceActions.d.ts +1 -4
- package/lib/families/bitcoin/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/bitcoin/speculos-deviceActions.js +2 -4
- package/lib/families/bitcoin/speculos-deviceActions.js.map +1 -1
- package/lib/families/cardano/js-estimateMaxSpendable.js +1 -1
- package/lib/families/cardano/js-estimateMaxSpendable.js.map +1 -1
- package/lib/families/cardano/specs.d.ts.map +1 -1
- package/lib/families/cardano/specs.js +19 -8
- package/lib/families/cardano/specs.js.map +1 -1
- package/lib/families/cardano/speculos-deviceActions.d.ts +1 -4
- package/lib/families/cardano/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/cardano/speculos-deviceActions.js +2 -2
- package/lib/families/cardano/speculos-deviceActions.js.map +1 -1
- package/lib/families/celo/specs.d.ts.map +1 -1
- package/lib/families/celo/specs.js +2 -0
- package/lib/families/celo/specs.js.map +1 -1
- package/lib/families/celo/speculos-deviceActions.d.ts +1 -4
- package/lib/families/celo/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/celo/speculos-deviceActions.js +2 -4
- package/lib/families/celo/speculos-deviceActions.js.map +1 -1
- package/lib/families/cosmos/specs.d.ts.map +1 -1
- package/lib/families/cosmos/specs.js +41 -25
- package/lib/families/cosmos/specs.js.map +1 -1
- package/lib/families/cosmos/speculos-deviceActions.d.ts +1 -4
- package/lib/families/cosmos/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/cosmos/speculos-deviceActions.js +2 -4
- package/lib/families/cosmos/speculos-deviceActions.js.map +1 -1
- package/lib/families/crypto_org/specs.d.ts.map +1 -1
- package/lib/families/crypto_org/specs.js +3 -0
- package/lib/families/crypto_org/specs.js.map +1 -1
- package/lib/families/crypto_org/speculos-deviceActions.d.ts +1 -4
- package/lib/families/crypto_org/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/crypto_org/speculos-deviceActions.js +2 -2
- package/lib/families/crypto_org/speculos-deviceActions.js.map +1 -1
- package/lib/families/elrond/specs.d.ts.map +1 -1
- package/lib/families/elrond/specs.js +15 -2
- package/lib/families/elrond/specs.js.map +1 -1
- package/lib/families/elrond/speculos-deviceActions.d.ts +1 -4
- package/lib/families/elrond/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/elrond/speculos-deviceActions.js +2 -4
- package/lib/families/elrond/speculos-deviceActions.js.map +1 -1
- package/lib/families/ethereum/platformAdapter.test.d.ts +2 -0
- package/lib/families/ethereum/platformAdapter.test.d.ts.map +1 -0
- package/lib/families/ethereum/platformAdapter.test.js +88 -0
- package/lib/families/ethereum/platformAdapter.test.js.map +1 -0
- package/lib/families/ethereum/specs.d.ts.map +1 -1
- package/lib/families/ethereum/specs.js +36 -12
- package/lib/families/ethereum/specs.js.map +1 -1
- package/lib/families/ethereum/speculos-deviceActions.d.ts +1 -4
- package/lib/families/ethereum/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/ethereum/speculos-deviceActions.js +2 -4
- package/lib/families/ethereum/speculos-deviceActions.js.map +1 -1
- package/lib/families/filecoin/specs.d.ts.map +1 -1
- package/lib/families/filecoin/specs.js +2 -0
- package/lib/families/filecoin/specs.js.map +1 -1
- package/lib/families/filecoin/speculos-deviceActions.d.ts +1 -4
- package/lib/families/filecoin/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/filecoin/speculos-deviceActions.js +2 -2
- package/lib/families/filecoin/speculos-deviceActions.js.map +1 -1
- package/lib/families/hedera/specs.d.ts.map +1 -1
- package/lib/families/hedera/specs.js +11 -3
- package/lib/families/hedera/specs.js.map +1 -1
- package/lib/families/hedera/speculos-deviceActions.d.ts +1 -4
- package/lib/families/hedera/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/hedera/speculos-deviceActions.js +4 -4
- package/lib/families/hedera/speculos-deviceActions.js.map +1 -1
- package/lib/families/osmosis/specs.d.ts.map +1 -1
- package/lib/families/osmosis/specs.js +13 -5
- package/lib/families/osmosis/specs.js.map +1 -1
- package/lib/families/osmosis/speculos-deviceActions.d.ts +1 -4
- package/lib/families/osmosis/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/osmosis/speculos-deviceActions.js +2 -4
- package/lib/families/osmosis/speculos-deviceActions.js.map +1 -1
- package/lib/families/polkadot/platformAdapter.test.d.ts +2 -0
- package/lib/families/polkadot/platformAdapter.test.d.ts.map +1 -0
- package/lib/families/polkadot/platformAdapter.test.js +51 -0
- package/lib/families/polkadot/platformAdapter.test.js.map +1 -0
- package/lib/families/polkadot/specs.d.ts.map +1 -1
- package/lib/families/polkadot/specs.js +12 -1
- package/lib/families/polkadot/specs.js.map +1 -1
- package/lib/families/polkadot/speculos-deviceActions.d.ts +1 -4
- package/lib/families/polkadot/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/polkadot/speculos-deviceActions.js +2 -4
- package/lib/families/polkadot/speculos-deviceActions.js.map +1 -1
- package/lib/families/ripple/platformAdapter.test.d.ts +2 -0
- package/lib/families/ripple/platformAdapter.test.d.ts.map +1 -0
- package/lib/families/ripple/platformAdapter.test.js +51 -0
- package/lib/families/ripple/platformAdapter.test.js.map +1 -0
- package/lib/families/ripple/specs.d.ts.map +1 -1
- package/lib/families/ripple/specs.js +9 -4
- package/lib/families/ripple/specs.js.map +1 -1
- package/lib/families/ripple/speculos-deviceActions.d.ts +1 -4
- package/lib/families/ripple/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/ripple/speculos-deviceActions.js +2 -4
- package/lib/families/ripple/speculos-deviceActions.js.map +1 -1
- package/lib/families/solana/specs.d.ts.map +1 -1
- package/lib/families/solana/specs.js +29 -11
- package/lib/families/solana/specs.js.map +1 -1
- package/lib/families/solana/speculos-deviceActions.d.ts +0 -5
- package/lib/families/solana/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/solana/speculos-deviceActions.js +0 -4
- package/lib/families/solana/speculos-deviceActions.js.map +1 -1
- package/lib/families/stellar/api/horizon.d.ts.map +1 -1
- package/lib/families/stellar/api/horizon.js +15 -10
- package/lib/families/stellar/api/horizon.js.map +1 -1
- package/lib/families/stellar/specs.d.ts.map +1 -1
- package/lib/families/stellar/specs.js +30 -12
- package/lib/families/stellar/specs.js.map +1 -1
- package/lib/families/stellar/speculos-deviceActions.d.ts +1 -4
- package/lib/families/stellar/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/stellar/speculos-deviceActions.js +2 -4
- package/lib/families/stellar/speculos-deviceActions.js.map +1 -1
- package/lib/families/tezos/bakers.whitelist-default.d.ts.map +1 -1
- package/lib/families/tezos/bakers.whitelist-default.js +1 -1
- package/lib/families/tezos/bakers.whitelist-default.js.map +1 -1
- package/lib/families/tezos/specs.d.ts.map +1 -1
- package/lib/families/tezos/specs.js +2 -0
- package/lib/families/tezos/specs.js.map +1 -1
- package/lib/families/tezos/speculos-deviceActions.d.ts +1 -4
- package/lib/families/tezos/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/tezos/speculos-deviceActions.js +2 -2
- package/lib/families/tezos/speculos-deviceActions.js.map +1 -1
- package/lib/families/tron/specs.d.ts.map +1 -1
- package/lib/families/tron/specs.js +49 -17
- package/lib/families/tron/specs.js.map +1 -1
- package/lib/families/tron/speculos-deviceActions.d.ts +1 -4
- package/lib/families/tron/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/tron/speculos-deviceActions.js +2 -4
- package/lib/families/tron/speculos-deviceActions.js.map +1 -1
- package/lib/hw/getGenuineCheckFromDeviceId.d.ts +22 -0
- package/lib/hw/getGenuineCheckFromDeviceId.d.ts.map +1 -0
- package/lib/hw/getGenuineCheckFromDeviceId.js +49 -0
- package/lib/hw/getGenuineCheckFromDeviceId.js.map +1 -0
- package/lib/hw/getGenuineCheckFromDeviceId.test.d.ts +2 -0
- package/lib/hw/getGenuineCheckFromDeviceId.test.d.ts.map +1 -0
- package/lib/hw/getGenuineCheckFromDeviceId.test.js +84 -0
- package/lib/hw/getGenuineCheckFromDeviceId.test.js.map +1 -0
- package/lib/hw/getLatestAvailableFirmwareFromDeviceId.d.ts +17 -0
- package/lib/hw/getLatestAvailableFirmwareFromDeviceId.d.ts.map +1 -0
- package/lib/hw/getLatestAvailableFirmwareFromDeviceId.js +27 -0
- package/lib/hw/getLatestAvailableFirmwareFromDeviceId.js.map +1 -0
- package/lib/hw/hooks/useGenuineCheck.d.ts +34 -0
- package/lib/hw/hooks/useGenuineCheck.d.ts.map +1 -0
- package/lib/hw/hooks/useGenuineCheck.js +115 -0
- package/lib/hw/hooks/useGenuineCheck.js.map +1 -0
- package/lib/hw/hooks/useGenuineCheck.test.d.ts +2 -0
- package/lib/hw/hooks/useGenuineCheck.test.d.ts.map +1 -0
- package/lib/hw/hooks/useGenuineCheck.test.js +316 -0
- package/lib/hw/hooks/useGenuineCheck.test.js.map +1 -0
- package/lib/hw/hooks/useGetLatestAvailableFirmware.d.ts +29 -0
- package/lib/hw/hooks/useGetLatestAvailableFirmware.d.ts.map +1 -0
- package/lib/hw/hooks/useGetLatestAvailableFirmware.js +72 -0
- package/lib/hw/hooks/useGetLatestAvailableFirmware.js.map +1 -0
- package/lib/hw/hooks/useGetLatestAvailableFirmware.test.d.ts +2 -0
- package/lib/hw/hooks/useGetLatestAvailableFirmware.test.d.ts.map +1 -0
- package/lib/hw/hooks/useGetLatestAvailableFirmware.test.js +155 -0
- package/lib/hw/hooks/useGetLatestAvailableFirmware.test.js.map +1 -0
- package/lib/load/speculos.d.ts +1 -0
- package/lib/load/speculos.d.ts.map +1 -1
- package/lib/load/speculos.js +2 -1
- package/lib/load/speculos.js.map +1 -1
- package/lib/mock/fixtures/cryptoCurrencies.d.ts +5 -0
- package/lib/mock/fixtures/cryptoCurrencies.d.ts.map +1 -0
- package/lib/mock/fixtures/cryptoCurrencies.js +91 -0
- package/lib/mock/fixtures/cryptoCurrencies.js.map +1 -0
- package/lib/platform/converters.test.js +44 -218
- package/lib/platform/converters.test.js.map +1 -1
- package/lib/platform/logic.d.ts +44 -0
- package/lib/platform/logic.d.ts.map +1 -1
- package/lib/platform/logic.js +147 -1
- package/lib/platform/logic.js.map +1 -1
- package/lib/platform/logic.test.d.ts +2 -0
- package/lib/platform/logic.test.d.ts.map +1 -0
- package/lib/platform/logic.test.js +903 -0
- package/lib/platform/logic.test.js.map +1 -0
- package/lib/platform/react.d.ts +6 -0
- package/lib/platform/react.d.ts.map +1 -1
- package/lib/platform/react.js +6 -0
- package/lib/platform/react.js.map +1 -1
- package/lib/platform/tracking.d.ts +1 -1
- package/lib/platform/tracking.d.ts.map +1 -1
- package/lib/platform/tracking.test.js +14 -41
- package/lib/platform/tracking.test.js.map +1 -1
- package/lib/reconciliation.d.ts.map +1 -1
- package/lib/reconciliation.js +28 -10
- package/lib/reconciliation.js.map +1 -1
- package/package.json +19 -20
- package/src/__tests__/families/bitcoin/wallet-btc/xpub.syncing.integration.test.ts +2 -2
- package/src/__tests__/test-helpers/environment.ts +91 -0
- package/src/__tests__/test-helpers/setup.ts +2 -91
- package/src/account/importAccounts.integration.test.ts +193 -0
- package/src/{__tests__/accounts/importAccounts.ts → account/importAccounts.test.ts} +39 -59
- package/src/account/importAccounts.ts +103 -12
- package/src/account/serialization.ts +103 -64
- package/src/bot/bot-test-context.test.ts +37 -0
- package/src/bot/bot-test-context.ts +24 -0
- package/src/bot/cli.ts +18 -0
- package/src/bot/engine.ts +109 -73
- package/src/bot/formatters.ts +40 -14
- package/src/bot/index.ts +124 -18
- package/src/bot/specs.ts +10 -5
- package/src/bot/types.ts +7 -3
- package/src/countervalues/logic.integration.test.ts +50 -0
- package/src/countervalues/modules/weth.ts +9 -12
- package/src/currencies/__snapshots__/sortByMarketcap.test.ts.snap +59 -1
- package/src/currencies/sortByMarketcap.test.ts +1 -12
- package/src/currencies/sortByMarketcap.ts +2 -22
- package/src/env.ts +1 -1
- package/src/families/algorand/__snapshots__/bridge.integration.test.ts.snap +733 -8
- package/src/families/algorand/specs.ts +26 -16
- package/src/families/algorand/speculos-deviceActions.ts +31 -10
- package/src/families/bitcoin/__snapshots__/bridge.integration.test.ts.snap +43309 -7957
- package/src/families/bitcoin/bridge/mock.ts +7 -1
- package/src/families/bitcoin/datasets/bitcoin_cash.ts +73 -13
- package/src/families/bitcoin/datasets/dash.ts +29 -17
- package/src/families/bitcoin/datasets/decred.ts +42 -12
- package/src/families/bitcoin/datasets/digibyte.ts +9 -3
- package/src/families/bitcoin/datasets/dogecoin.ts +29 -17
- package/src/families/bitcoin/datasets/komodo.ts +22 -22
- package/src/families/bitcoin/datasets/litecoin.ts +9 -3
- package/src/families/bitcoin/datasets/peercoin.ts +17 -17
- package/src/families/bitcoin/datasets/pivx.ts +17 -17
- package/src/families/bitcoin/datasets/qtum.ts +40 -40
- package/src/families/bitcoin/datasets/stakenet.ts +56 -26
- package/src/families/bitcoin/datasets/vertcoin.ts +43 -55
- package/src/families/bitcoin/datasets/viacoin.ts +35 -23
- package/src/families/bitcoin/datasets/zcash.ts +78 -12
- package/src/families/bitcoin/datasets/zencash.ts +56 -10
- package/src/families/bitcoin/platformAdapter.test.ts +58 -0
- package/src/families/bitcoin/specs.ts +81 -41
- package/src/families/bitcoin/speculos-deviceActions.ts +68 -69
- package/src/families/cardano/js-estimateMaxSpendable.ts +1 -1
- package/src/families/cardano/specs.ts +28 -11
- package/src/families/cardano/speculos-deviceActions.ts +65 -66
- package/src/families/celo/specs.ts +2 -0
- package/src/families/celo/speculos-deviceActions.ts +42 -43
- package/src/families/cosmos/__snapshots__/bridge.integration.test.ts.snap +246 -5
- package/src/families/cosmos/specs.ts +44 -28
- package/src/families/cosmos/speculos-deviceActions.ts +82 -83
- package/src/families/crypto_org/specs.ts +3 -0
- package/src/families/crypto_org/speculos-deviceActions.ts +58 -59
- package/src/families/elrond/specs.ts +21 -4
- package/src/families/elrond/speculos-deviceActions.ts +41 -42
- package/src/families/ethereum/__snapshots__/bridge.integration.test.ts.snap +90 -90
- package/src/families/ethereum/platformAdapter.test.ts +112 -0
- package/src/families/ethereum/specs.ts +47 -23
- package/src/families/ethereum/speculos-deviceActions.ts +93 -95
- package/src/families/filecoin/specs.ts +2 -1
- package/src/families/filecoin/speculos-deviceActions.ts +61 -62
- package/src/families/hedera/__snapshots__/bridge.integration.test.ts.snap +57 -2
- package/src/families/hedera/specs.ts +13 -5
- package/src/families/hedera/speculos-deviceActions.ts +59 -60
- package/src/families/osmosis/specs.ts +15 -7
- package/src/families/osmosis/speculos-deviceActions.ts +82 -83
- package/src/families/polkadot/platformAdapter.test.ts +61 -0
- package/src/families/polkadot/specs.ts +20 -2
- package/src/families/polkadot/speculos-deviceActions.ts +83 -82
- package/src/families/ripple/platformAdapter.test.ts +54 -0
- package/src/families/ripple/specs.ts +14 -7
- package/src/families/ripple/speculos-deviceActions.ts +72 -73
- package/src/families/solana/specs.ts +33 -14
- package/src/families/solana/speculos-deviceActions.ts +0 -5
- package/src/families/stellar/api/horizon.ts +10 -6
- package/src/families/stellar/specs.ts +37 -19
- package/src/families/stellar/speculos-deviceActions.ts +85 -87
- package/src/families/tezos/bakers.whitelist-default.ts +0 -1
- package/src/families/tezos/specs.ts +2 -0
- package/src/families/tezos/speculos-deviceActions.ts +76 -77
- package/src/families/tron/specs.ts +67 -30
- package/src/families/tron/speculos-deviceActions.ts +81 -84
- package/src/hw/getGenuineCheckFromDeviceId.test.ts +98 -0
- package/src/hw/getGenuineCheckFromDeviceId.ts +61 -0
- package/src/hw/getLatestAvailableFirmwareFromDeviceId.ts +37 -0
- package/src/hw/hooks/useGenuineCheck.test.ts +232 -0
- package/src/hw/hooks/useGenuineCheck.ts +138 -0
- package/src/hw/hooks/useGetLatestAvailableFirmware.test.ts +111 -0
- package/src/hw/hooks/useGetLatestAvailableFirmware.ts +90 -0
- package/src/load/speculos.ts +2 -0
- package/src/mock/fixtures/cryptoCurrencies.ts +88 -0
- package/src/platform/converters.test.ts +49 -282
- package/src/platform/logic.test.ts +756 -0
- package/src/platform/logic.ts +285 -0
- package/src/platform/react.ts +6 -0
- package/src/platform/tracking.test.ts +6 -7
- package/src/platform/tracking.ts +1 -1
- package/src/reconciliation.ts +66 -43
- package/lib/__tests__/accounts/importAccounts.d.ts +0 -2
- package/lib/__tests__/accounts/importAccounts.d.ts.map +0 -1
- package/lib/__tests__/accounts/importAccounts.js.map +0 -1
- package/lib/bot/test.bot.d.ts +0 -2
- package/lib/bot/test.bot.d.ts.map +0 -1
- package/lib/bot/test.bot.js +0 -62
- package/lib/bot/test.bot.js.map +0 -1
- package/lib/generated/speculos-deviceActions.d.ts +0 -56
- package/lib/generated/speculos-deviceActions.d.ts.map +0 -1
- package/lib/generated/speculos-deviceActions.js +0 -42
- package/lib/generated/speculos-deviceActions.js.map +0 -1
- package/src/bot/test.bot.ts +0 -21
- package/src/generated/speculos-deviceActions.ts +0 -37
|
@@ -261,7 +261,7 @@ describe("xpub integration sync", function () {
|
|
|
261
261
|
balance: 200000000,
|
|
262
262
|
network: coininfo_1["default"].bitcoin.main.toBitcoinJS(),
|
|
263
263
|
coin: "kmd",
|
|
264
|
-
explorerVersion: "
|
|
264
|
+
explorerVersion: "v3"
|
|
265
265
|
},
|
|
266
266
|
{
|
|
267
267
|
xpub: "ToEA6kVVodfRW2DuuMjPPMsLLukY4EsScxdHYJkTtdopPD5Z5t9gpB2zEwpschy7rFzTqxQCXQFUBnxT5MAnfkNT4dkWqtHPE2L7bG7GC24XnLy",
|
|
@@ -270,7 +270,7 @@ describe("xpub integration sync", function () {
|
|
|
270
270
|
balance: 400000000,
|
|
271
271
|
network: coininfo_1["default"].bitcoin.main.toBitcoinJS(),
|
|
272
272
|
coin: "pivx",
|
|
273
|
-
explorerVersion: "
|
|
273
|
+
explorerVersion: "v3"
|
|
274
274
|
},
|
|
275
275
|
{
|
|
276
276
|
xpub: "XSTpb6G8xAzX1fqbWuzTSrcwqtvtEcnVinz7EtjJ6rBxmKmJ4XWSrTbNhvabfe4FXWc7cyUUxwgzsJDFeubQEx1dZPvMncd7LycUhXSShHikr8AN",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../../src/__tests__/test-helpers/environment.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
exports.__esModule = true;
|
|
28
|
+
var winston_1 = __importDefault(require("winston"));
|
|
29
|
+
var logs_1 = require("@ledgerhq/logs");
|
|
30
|
+
var currencies_1 = require("../../currencies");
|
|
31
|
+
var version_1 = require("../../platform/version");
|
|
32
|
+
var env_1 = require("../../env");
|
|
33
|
+
(0, version_1.setPlatformVersion)("1.1.0");
|
|
34
|
+
(0, currencies_1.setSupportedCurrencies)([
|
|
35
|
+
"bitcoin",
|
|
36
|
+
"ethereum",
|
|
37
|
+
"bsc",
|
|
38
|
+
"polygon",
|
|
39
|
+
"elrond",
|
|
40
|
+
"ripple",
|
|
41
|
+
"bitcoin_cash",
|
|
42
|
+
"litecoin",
|
|
43
|
+
"dash",
|
|
44
|
+
"ethereum_classic",
|
|
45
|
+
"tezos",
|
|
46
|
+
"qtum",
|
|
47
|
+
"zcash",
|
|
48
|
+
"bitcoin_gold",
|
|
49
|
+
"stratis",
|
|
50
|
+
"dogecoin",
|
|
51
|
+
"digibyte",
|
|
52
|
+
"komodo",
|
|
53
|
+
"pivx",
|
|
54
|
+
"zencash",
|
|
55
|
+
"vertcoin",
|
|
56
|
+
"peercoin",
|
|
57
|
+
"viacoin",
|
|
58
|
+
"stakenet",
|
|
59
|
+
"stealthcoin",
|
|
60
|
+
"decred",
|
|
61
|
+
"tron",
|
|
62
|
+
"stellar",
|
|
63
|
+
"cosmos",
|
|
64
|
+
"algorand",
|
|
65
|
+
"polkadot",
|
|
66
|
+
"bitcoin_testnet",
|
|
67
|
+
"ethereum_ropsten",
|
|
68
|
+
"ethereum_goerli",
|
|
69
|
+
"cosmos_testnet",
|
|
70
|
+
"crypto_org_croeseid",
|
|
71
|
+
"crypto_org",
|
|
72
|
+
"filecoin",
|
|
73
|
+
"solana",
|
|
74
|
+
"celo",
|
|
75
|
+
"hedera",
|
|
76
|
+
"cardano",
|
|
77
|
+
"cardano_testnet",
|
|
78
|
+
"osmosis",
|
|
79
|
+
"filecoin",
|
|
80
|
+
]);
|
|
81
|
+
for (var k in process.env)
|
|
82
|
+
(0, env_1.setEnvUnsafe)(k, process.env[k]);
|
|
83
|
+
var _a = process.env, VERBOSE = _a.VERBOSE, VERBOSE_FILE = _a.VERBOSE_FILE;
|
|
84
|
+
var logger = winston_1["default"].createLogger({
|
|
85
|
+
level: "debug",
|
|
86
|
+
transports: []
|
|
87
|
+
});
|
|
88
|
+
var format = winston_1["default"].format;
|
|
89
|
+
var combine = format.combine, timestamp = format.timestamp, json = format.json;
|
|
90
|
+
var winstonFormat = combine(timestamp(), json());
|
|
91
|
+
if (VERBOSE_FILE) {
|
|
92
|
+
logger.add(new winston_1["default"].transports.File({
|
|
93
|
+
format: winstonFormat,
|
|
94
|
+
filename: VERBOSE_FILE,
|
|
95
|
+
level: "debug"
|
|
96
|
+
}));
|
|
97
|
+
}
|
|
98
|
+
logger.add(new winston_1["default"].transports.Console({
|
|
99
|
+
format: winstonFormat,
|
|
100
|
+
silent: !VERBOSE
|
|
101
|
+
}));
|
|
102
|
+
// eslint-disable-next-line no-unused-vars
|
|
103
|
+
(0, logs_1.listen)(function (_a) {
|
|
104
|
+
var type = _a.type, message = _a.message, rest = __rest(_a, ["type", "message"]);
|
|
105
|
+
logger.log("debug", __assign({ message: type + (message ? ": " + message : "") }, rest));
|
|
106
|
+
});
|
|
107
|
+
//# sourceMappingURL=environment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"environment.js","sourceRoot":"","sources":["../../../src/__tests__/test-helpers/environment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;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E,CAAC,CAAC;AAEnD,IAAI,YAAY,EAAE;IAChB,MAAM,CAAC,GAAG,CACR,IAAI,oBAAO,CAAC,UAAU,CAAC,IAAI,CAAC;QAC1B,MAAM,EAAE,aAAa;QACrB,QAAQ,EAAE,YAAY;QACtB,KAAK,EAAE,OAAO;KACf,CAAC,CACH,CAAC;CACH;AAED,MAAM,CAAC,GAAG,CACR,IAAI,oBAAO,CAAC,UAAU,CAAC,OAAO,CAAC;IAC7B,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,CAAC,OAAO;CACjB,CAAC,CACH,CAAC;AACF,0CAA0C;AAC1C,IAAA,aAAM,EAAC,UAAC,EAA0B;IAAxB,IAAA,IAAI,UAAA,EAAE,OAAO,aAAA,EAAK,IAAI,cAAxB,mBAA0B,CAAF;IAC9B,MAAM,CAAC,GAAG,CAAC,OAAO,aAChB,OAAO,EAAE,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,IAE5C,IAAI,EACP,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import "./environment";
|
|
2
2
|
//# sourceMappingURL=setup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../../src/__tests__/test-helpers/setup.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../../src/__tests__/test-helpers/setup.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC"}
|
|
@@ -1,36 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
-
var t = {};
|
|
15
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
-
t[p] = s[p];
|
|
17
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
-
t[p[i]] = s[p[i]];
|
|
21
|
-
}
|
|
22
|
-
return t;
|
|
23
|
-
};
|
|
24
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
4
|
};
|
|
27
5
|
exports.__esModule = true;
|
|
28
|
-
|
|
29
|
-
var logs_1 = require("@ledgerhq/logs");
|
|
6
|
+
require("./environment");
|
|
30
7
|
var bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
31
|
-
var currencies_1 = require("../../currencies");
|
|
32
|
-
var version_1 = require("../../platform/version");
|
|
33
|
-
var env_1 = require("../../env");
|
|
34
8
|
jest.setTimeout(360000);
|
|
35
9
|
expect.extend({
|
|
36
10
|
toBeBigNumber: function (value) {
|
|
@@ -41,78 +15,4 @@ expect.extend({
|
|
|
41
15
|
return { message: message, pass: pass };
|
|
42
16
|
}
|
|
43
17
|
});
|
|
44
|
-
(0, version_1.setPlatformVersion)("1.1.0");
|
|
45
|
-
(0, currencies_1.setSupportedCurrencies)([
|
|
46
|
-
"bitcoin",
|
|
47
|
-
"ethereum",
|
|
48
|
-
"bsc",
|
|
49
|
-
"polygon",
|
|
50
|
-
"elrond",
|
|
51
|
-
"ripple",
|
|
52
|
-
"bitcoin_cash",
|
|
53
|
-
"litecoin",
|
|
54
|
-
"dash",
|
|
55
|
-
"ethereum_classic",
|
|
56
|
-
"tezos",
|
|
57
|
-
"qtum",
|
|
58
|
-
"zcash",
|
|
59
|
-
"bitcoin_gold",
|
|
60
|
-
"stratis",
|
|
61
|
-
"dogecoin",
|
|
62
|
-
"digibyte",
|
|
63
|
-
"komodo",
|
|
64
|
-
"pivx",
|
|
65
|
-
"zencash",
|
|
66
|
-
"vertcoin",
|
|
67
|
-
"peercoin",
|
|
68
|
-
"viacoin",
|
|
69
|
-
"stakenet",
|
|
70
|
-
"stealthcoin",
|
|
71
|
-
"decred",
|
|
72
|
-
"tron",
|
|
73
|
-
"stellar",
|
|
74
|
-
"cosmos",
|
|
75
|
-
"algorand",
|
|
76
|
-
"polkadot",
|
|
77
|
-
"bitcoin_testnet",
|
|
78
|
-
"ethereum_ropsten",
|
|
79
|
-
"ethereum_goerli",
|
|
80
|
-
"cosmos_testnet",
|
|
81
|
-
"crypto_org_croeseid",
|
|
82
|
-
"crypto_org",
|
|
83
|
-
"filecoin",
|
|
84
|
-
"solana",
|
|
85
|
-
"celo",
|
|
86
|
-
"hedera",
|
|
87
|
-
"cardano",
|
|
88
|
-
"cardano_testnet",
|
|
89
|
-
"osmosis",
|
|
90
|
-
"filecoin",
|
|
91
|
-
]);
|
|
92
|
-
for (var k in process.env)
|
|
93
|
-
(0, env_1.setEnvUnsafe)(k, process.env[k]);
|
|
94
|
-
var _a = process.env, VERBOSE = _a.VERBOSE, VERBOSE_FILE = _a.VERBOSE_FILE;
|
|
95
|
-
var logger = winston_1["default"].createLogger({
|
|
96
|
-
level: "debug",
|
|
97
|
-
transports: []
|
|
98
|
-
});
|
|
99
|
-
var format = winston_1["default"].format;
|
|
100
|
-
var combine = format.combine, timestamp = format.timestamp, json = format.json;
|
|
101
|
-
var winstonFormat = combine(timestamp(), json());
|
|
102
|
-
if (VERBOSE_FILE) {
|
|
103
|
-
logger.add(new winston_1["default"].transports.File({
|
|
104
|
-
format: winstonFormat,
|
|
105
|
-
filename: VERBOSE_FILE,
|
|
106
|
-
level: "debug"
|
|
107
|
-
}));
|
|
108
|
-
}
|
|
109
|
-
logger.add(new winston_1["default"].transports.Console({
|
|
110
|
-
format: winstonFormat,
|
|
111
|
-
silent: !VERBOSE
|
|
112
|
-
}));
|
|
113
|
-
// eslint-disable-next-line no-unused-vars
|
|
114
|
-
(0, logs_1.listen)(function (_a) {
|
|
115
|
-
var type = _a.type, message = _a.message, rest = __rest(_a, ["type", "message"]);
|
|
116
|
-
logger.log("debug", __assign({ message: type + (message ? ": " + message : "") }, rest));
|
|
117
|
-
});
|
|
118
18
|
//# sourceMappingURL=setup.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../../../src/__tests__/test-helpers/setup.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../../../src/__tests__/test-helpers/setup.ts"],"names":[],"mappings":";;;;;AAAA,yBAAuB;AAEvB,8DAAqC;AAErC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;AAExB,MAAM,CAAC,MAAM,CAAC;IACZ,aAAa,YAAC,KAAK;QACjB,IAAM,IAAI,GAAG,yBAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAC1C,IAAM,OAAO,GAAG,IAAI;YAClB,CAAC,CAAC,cAAM,OAAA,UAAG,KAAK,oBAAiB,EAAzB,CAAyB;YACjC,CAAC,CAAC,cAAM,OAAA,UAAG,KAAK,wBAAqB,EAA7B,CAA6B,CAAC;QAExC,OAAO,EAAE,OAAO,SAAA,EAAE,IAAI,MAAA,EAAE,CAAC;IAC3B,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Result } from "../cross";
|
|
2
2
|
import type { Account } from "@ledgerhq/types-live";
|
|
3
|
+
import { BridgeCacheSystem } from "../bridge/cache";
|
|
3
4
|
declare const itemModeDisplaySort: {
|
|
4
5
|
create: number;
|
|
5
6
|
update: number;
|
|
@@ -17,9 +18,41 @@ export declare const importAccountsMakeItems: ({ result, accounts, items, }: {
|
|
|
17
18
|
accounts: Account[];
|
|
18
19
|
items?: ImportItem[] | undefined;
|
|
19
20
|
}) => ImportItem[];
|
|
20
|
-
|
|
21
|
+
/**
|
|
22
|
+
* SyncNewAccountsOutput
|
|
23
|
+
* - synchronized: a map of account id to account. the account id are kept as originally set in the items[].account before a possible "remap" of the ids after a sync happened
|
|
24
|
+
* - failed: a map of account id to errors for all possible fails that happened.
|
|
25
|
+
*/
|
|
26
|
+
export declare type SyncNewAccountsOutput = {
|
|
27
|
+
synchronized: Record<string, Account>;
|
|
28
|
+
failed: Record<string, Error>;
|
|
29
|
+
};
|
|
30
|
+
export declare type SyncNewAccountsInput = {
|
|
21
31
|
items: ImportItem[];
|
|
22
32
|
selectedAccounts: string[];
|
|
23
|
-
}
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @param items: result of importAccountsMakeItems
|
|
37
|
+
* @param selectedAccounts: user's selected accounts
|
|
38
|
+
* @param bridgeCache: the bridge cache created on user land to prepare currency for a sync
|
|
39
|
+
* @param blacklistedTokenIds: the list of blacklisted token ids to ignore sync with
|
|
40
|
+
* @returns SyncNewAccountsOutput
|
|
41
|
+
*/
|
|
42
|
+
export declare const syncNewAccountsToImport: ({ items, selectedAccounts }: SyncNewAccountsInput, bridgeCache: BridgeCacheSystem, blacklistedTokenIds?: string[] | undefined) => Promise<SyncNewAccountsOutput>;
|
|
43
|
+
export declare type ImportAccountsReduceInput = {
|
|
44
|
+
items: ImportItem[];
|
|
45
|
+
selectedAccounts: string[];
|
|
46
|
+
syncResult: SyncNewAccountsOutput;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @param existingAccounts
|
|
51
|
+
* @param items: value resulting of importAccountsMakeItems
|
|
52
|
+
* @params selectedAccounts: array of all account ids selected by user for import
|
|
53
|
+
* @param syncedNewAccounts: accounts resulting of syncNewAccountsToImport(). all accounts that would be missing from that list would be ignored to be imported (fresh sync is needed to make sure the accounts are "ready")
|
|
54
|
+
* @returns all accounts
|
|
55
|
+
*/
|
|
56
|
+
export declare const importAccountsReduce: (existingAccounts: Account[], { items, selectedAccounts, syncResult }: ImportAccountsReduceInput) => Account[];
|
|
24
57
|
export {};
|
|
25
58
|
//# sourceMappingURL=importAccounts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"importAccounts.d.ts","sourceRoot":"","sources":["../../src/account/importAccounts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAKvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,QAAA,MAAM,mBAAmB;;;;;CAKxB,CAAC;AACF,oBAAY,cAAc,GAAG,MAAM,OAAO,mBAAmB,CAAC;AAC9D,oBAAY,UAAU,GAAG;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,cAAc,CAAC;CACtB,CAAC;AACF,eAAO,MAAM,uBAAuB;YAK1B,MAAM;cACJ,OAAO,EAAE;;MAEjB,UAAU,EA6EO,CAAC;
|
|
1
|
+
{"version":3,"file":"importAccounts.d.ts","sourceRoot":"","sources":["../../src/account/importAccounts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAKvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAOpD,QAAA,MAAM,mBAAmB;;;;;CAKxB,CAAC;AACF,oBAAY,cAAc,GAAG,MAAM,OAAO,mBAAmB,CAAC;AAC9D,oBAAY,UAAU,GAAG;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,cAAc,CAAC;CACtB,CAAC;AACF,eAAO,MAAM,uBAAuB;YAK1B,MAAM;cACJ,OAAO,EAAE;;MAEjB,UAAU,EA6EO,CAAC;AAEtB;;;;GAIG;AACH,oBAAY,qBAAqB,GAAG;IAClC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;CAC/B,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IACjC,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAC5B,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,gCACL,oBAAoB,eACpC,iBAAiB,iDAE7B,QAAQ,qBAAqB,CA6B/B,CAAC;AAEF,oBAAY,yBAAyB,GAAG;IACtC,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,UAAU,EAAE,qBAAqB,CAAC;CACnC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,qBACb,OAAO,EAAE,2CACc,yBAAyB,KACjE,OAAO,EAyCT,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"importAccounts.integration.test.d.ts","sourceRoot":"","sources":["../../src/account/importAccounts.integration.test.ts"],"names":[],"mappings":"AAAA,OAAO,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (_) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
exports.__esModule = true;
|
|
39
|
+
require("../__tests__/test-helpers/setup");
|
|
40
|
+
var cache_1 = require("../bridge/cache");
|
|
41
|
+
var cross_1 = require("../cross");
|
|
42
|
+
var _1 = require(".");
|
|
43
|
+
jest.setTimeout(200000);
|
|
44
|
+
test("importAccounts with a set of real data", function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
45
|
+
var accounts, localCache, bridgeCache, result, accountsState, items, selectedAccounts, syncResult, reduced;
|
|
46
|
+
return __generator(this, function (_a) {
|
|
47
|
+
switch (_a.label) {
|
|
48
|
+
case 0:
|
|
49
|
+
accounts = [
|
|
50
|
+
{
|
|
51
|
+
id: "js:2:algorand:32PI2C5HLHMVUF5KMNURLGCTYVIOVJJ2NLHLZ2PIMK567MKMS4RXBSVWQI:",
|
|
52
|
+
seedIdentifier: "32PI2C5HLHMVUF5KMNURLGCTYVIOVJJ2NLHLZ2PIMK567MKMS4RXBSVWQI",
|
|
53
|
+
name: "Algorand legacy 32PI2C5H...RXBSVWQI",
|
|
54
|
+
starred: true,
|
|
55
|
+
used: true,
|
|
56
|
+
derivationMode: "",
|
|
57
|
+
index: 0,
|
|
58
|
+
freshAddress: "32PI2C5HLHMVUF5KMNURLGCTYVIOVJJ2NLHLZ2PIMK567MKMS4RXBSVWQI",
|
|
59
|
+
freshAddressPath: "44'/283'/0'/0/0",
|
|
60
|
+
freshAddresses: [],
|
|
61
|
+
blockHeight: 23066613,
|
|
62
|
+
creationDate: "2022-02-04T13:12:58.000Z",
|
|
63
|
+
operationsCount: 184,
|
|
64
|
+
operations: [],
|
|
65
|
+
pendingOperations: [],
|
|
66
|
+
currencyId: "algorand",
|
|
67
|
+
unitMagnitude: 6,
|
|
68
|
+
lastSyncDate: "2022-08-26T09:24:27.076Z",
|
|
69
|
+
balance: "2100190",
|
|
70
|
+
spendableBalance: "190",
|
|
71
|
+
xpub: "32PI2C5HLHMVUF5KMNURLGCTYVIOVJJ2NLHLZ2PIMK567MKMS4RXBSVWQI",
|
|
72
|
+
subAccounts: [],
|
|
73
|
+
algorandResources: { rewards: "190", nbAssets: 20 },
|
|
74
|
+
swapHistory: []
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: "js:2:tron:TRbtdwHowocq8ThZbRnTHgK4JG5sx3fFCK:",
|
|
78
|
+
seedIdentifier: "TRbtdwHowocq8ThZbRnTHgK4JG5sx3fFCK",
|
|
79
|
+
name: "Tron legacy TRbtdwHo...5sx3fFCK",
|
|
80
|
+
starred: true,
|
|
81
|
+
used: true,
|
|
82
|
+
derivationMode: "",
|
|
83
|
+
index: 0,
|
|
84
|
+
freshAddress: "TRbtdwHowocq8ThZbRnTHgK4JG5sx3fFCK",
|
|
85
|
+
freshAddressPath: "44'/195'/0'/0/0",
|
|
86
|
+
freshAddresses: [],
|
|
87
|
+
blockHeight: 43642499,
|
|
88
|
+
creationDate: "2022-07-19T15:32:12.000Z",
|
|
89
|
+
operationsCount: 41,
|
|
90
|
+
operations: [],
|
|
91
|
+
pendingOperations: [],
|
|
92
|
+
currencyId: "tron",
|
|
93
|
+
unitMagnitude: 6,
|
|
94
|
+
lastSyncDate: "2022-08-26T09:24:59.492Z",
|
|
95
|
+
balance: "0",
|
|
96
|
+
spendableBalance: "0",
|
|
97
|
+
xpub: "TRbtdwHowocq8ThZbRnTHgK4JG5sx3fFCK",
|
|
98
|
+
subAccounts: [],
|
|
99
|
+
tronResources: {
|
|
100
|
+
frozen: {},
|
|
101
|
+
delegatedFrozen: {},
|
|
102
|
+
votes: [],
|
|
103
|
+
tronPower: 0,
|
|
104
|
+
energy: "0",
|
|
105
|
+
bandwidth: {
|
|
106
|
+
freeUsed: "0",
|
|
107
|
+
freeLimit: "1500",
|
|
108
|
+
gainedUsed: "0",
|
|
109
|
+
gainedLimit: "0"
|
|
110
|
+
},
|
|
111
|
+
unwithdrawnReward: "2730",
|
|
112
|
+
lastVotedDate: "2022-07-22T14:39:51.000Z",
|
|
113
|
+
cacheTransactionInfoById: {}
|
|
114
|
+
},
|
|
115
|
+
swapHistory: []
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
id: "js:2:polkadot:15jLBbe9LD6VSUYFkV5Fmo5LhZU5cns9E6g8qcDv5KrKM1eP:polkadotbip44",
|
|
119
|
+
seedIdentifier: "15jLBbe9LD6VSUYFkV5Fmo5LhZU5cns9E6g8qcDv5KrKM1eP",
|
|
120
|
+
name: "Polkadot polkadotbip44 15jLBbe9...5KrKM1eP",
|
|
121
|
+
starred: true,
|
|
122
|
+
used: true,
|
|
123
|
+
derivationMode: "polkadotbip44",
|
|
124
|
+
index: 0,
|
|
125
|
+
freshAddress: "15jLBbe9LD6VSUYFkV5Fmo5LhZU5cns9E6g8qcDv5KrKM1eP",
|
|
126
|
+
freshAddressPath: "44'/354'/0'/0'/0'",
|
|
127
|
+
freshAddresses: [],
|
|
128
|
+
blockHeight: 11771108,
|
|
129
|
+
creationDate: "2022-02-24T14:39:00.007Z",
|
|
130
|
+
operationsCount: 65,
|
|
131
|
+
operations: [],
|
|
132
|
+
pendingOperations: [],
|
|
133
|
+
currencyId: "polkadot",
|
|
134
|
+
unitMagnitude: 10,
|
|
135
|
+
lastSyncDate: "2022-08-26T09:25:00.713Z",
|
|
136
|
+
balance: "15512511464",
|
|
137
|
+
spendableBalance: "15512511464",
|
|
138
|
+
xpub: "15jLBbe9LD6VSUYFkV5Fmo5LhZU5cns9E6g8qcDv5KrKM1eP",
|
|
139
|
+
polkadotResources: {
|
|
140
|
+
controller: null,
|
|
141
|
+
stash: null,
|
|
142
|
+
nonce: 63,
|
|
143
|
+
lockedBalance: "0",
|
|
144
|
+
unlockedBalance: "0",
|
|
145
|
+
unlockingBalance: "0",
|
|
146
|
+
unlockings: [],
|
|
147
|
+
nominations: []
|
|
148
|
+
},
|
|
149
|
+
swapHistory: []
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
id: "js:2:bsc:0xa22CA840265d3C5CB1846e419B14c6a6CdD06FAB:",
|
|
153
|
+
seedIdentifier: "0xa22CA840265d3C5CB1846e419B14c6a6CdD06FAB",
|
|
154
|
+
name: "Binance Smart Chain legacy 0xa22CA8...CdD06FAB",
|
|
155
|
+
starred: true,
|
|
156
|
+
used: true,
|
|
157
|
+
derivationMode: "",
|
|
158
|
+
index: 0,
|
|
159
|
+
freshAddress: "0xa22CA840265d3C5CB1846e419B14c6a6CdD06FAB",
|
|
160
|
+
freshAddressPath: "44'/60'/0'/0/0",
|
|
161
|
+
freshAddresses: [],
|
|
162
|
+
blockHeight: 20775454,
|
|
163
|
+
syncHash: "[]_655",
|
|
164
|
+
creationDate: "2022-02-04T13:11:32.001Z",
|
|
165
|
+
operationsCount: 21,
|
|
166
|
+
operations: [],
|
|
167
|
+
pendingOperations: [],
|
|
168
|
+
currencyId: "bsc",
|
|
169
|
+
unitMagnitude: 18,
|
|
170
|
+
lastSyncDate: "2022-08-26T09:25:01.109Z",
|
|
171
|
+
balance: "3128019430408477",
|
|
172
|
+
spendableBalance: "3128019430408477",
|
|
173
|
+
xpub: "0xa22CA840265d3C5CB1846e419B14c6a6CdD06FAB",
|
|
174
|
+
subAccounts: [],
|
|
175
|
+
swapHistory: []
|
|
176
|
+
},
|
|
177
|
+
].map(_1.fromAccountRaw);
|
|
178
|
+
localCache = {};
|
|
179
|
+
bridgeCache = (0, cache_1.makeBridgeCacheSystem)({
|
|
180
|
+
saveData: function (c, d) {
|
|
181
|
+
localCache[c.id] = d;
|
|
182
|
+
return Promise.resolve();
|
|
183
|
+
},
|
|
184
|
+
getData: function (c) {
|
|
185
|
+
return Promise.resolve(localCache[c.id]);
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
result = {
|
|
189
|
+
accounts: accounts.map(cross_1.accountToAccountData),
|
|
190
|
+
settings: { currenciesSettings: {}, pairExchanges: {} },
|
|
191
|
+
meta: { exporterName: "Test", exporterVersion: "0" }
|
|
192
|
+
};
|
|
193
|
+
accountsState = [];
|
|
194
|
+
items = (0, _1.importAccountsMakeItems)({
|
|
195
|
+
result: result,
|
|
196
|
+
accounts: accountsState
|
|
197
|
+
});
|
|
198
|
+
selectedAccounts = accounts.map(function (a) { return a.id; });
|
|
199
|
+
return [4 /*yield*/, (0, _1.syncNewAccountsToImport)({ items: items, selectedAccounts: selectedAccounts }, bridgeCache)];
|
|
200
|
+
case 1:
|
|
201
|
+
syncResult = _a.sent();
|
|
202
|
+
reduced = (0, _1.importAccountsReduce)(accountsState, {
|
|
203
|
+
items: items,
|
|
204
|
+
selectedAccounts: selectedAccounts,
|
|
205
|
+
syncResult: syncResult
|
|
206
|
+
});
|
|
207
|
+
expect(reduced.length).toEqual(4);
|
|
208
|
+
expect(reduced[0].algorandResources).toBeDefined();
|
|
209
|
+
expect(reduced[1].tronResources).toBeDefined();
|
|
210
|
+
expect(reduced[2].polkadotResources).toBeDefined();
|
|
211
|
+
expect(reduced[0].operations.length).toBeGreaterThan(1);
|
|
212
|
+
expect(reduced[1].operations.length).toBeGreaterThan(1);
|
|
213
|
+
expect(reduced[2].operations.length).toBeGreaterThan(1);
|
|
214
|
+
expect(reduced[3].operations.length).toBeGreaterThan(1);
|
|
215
|
+
return [2 /*return*/];
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
}); });
|
|
219
|
+
//# sourceMappingURL=importAccounts.integration.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"importAccounts.integration.test.js","sourceRoot":"","sources":["../../src/account/importAccounts.integration.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAyC;AACzC,yCAAwD;AACxD,kCAAgD;AAChD,sBAKW;AAGX,IAAI,CA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