@ledgerhq/live-common 31.0.0 → 31.1.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/countervalues/api/api.d.ts.map +1 -1
- package/lib/countervalues/api/api.js +12 -18
- package/lib/countervalues/api/api.js.map +1 -1
- package/lib/countervalues/helpers.d.ts +2 -0
- package/lib/countervalues/helpers.d.ts.map +1 -1
- package/lib/countervalues/helpers.js +19 -5
- package/lib/countervalues/helpers.js.map +1 -1
- package/lib/countervalues/logic.d.ts.map +1 -1
- package/lib/countervalues/logic.integration.test.js.map +1 -1
- package/lib/countervalues/logic.js +1 -0
- package/lib/countervalues/logic.js.map +1 -1
- package/lib/countervalues/react.d.ts.map +1 -1
- package/lib/countervalues/react.js +9 -7
- package/lib/countervalues/react.js.map +1 -1
- package/lib/countervalues/react.test.d.ts +2 -0
- package/lib/countervalues/react.test.d.ts.map +1 -0
- package/lib/countervalues/react.test.js +107 -0
- package/lib/countervalues/react.test.js.map +1 -0
- package/lib/data/icons/react/euroc.d.ts +8 -0
- package/lib/data/icons/react/euroc.d.ts.map +1 -0
- package/lib/data/icons/react/euroc.js +36 -0
- package/lib/data/icons/react/euroc.js.map +1 -0
- package/lib/data/icons/react/index.d.ts +1 -0
- package/lib/data/icons/react/index.d.ts.map +1 -1
- package/lib/data/icons/react/index.js +9 -7
- package/lib/data/icons/react/index.js.map +1 -1
- package/lib/data/icons/reactNative/euroc.d.ts +8 -0
- package/lib/data/icons/reactNative/euroc.d.ts.map +1 -0
- package/lib/data/icons/reactNative/euroc.js +37 -0
- package/lib/data/icons/reactNative/euroc.js.map +1 -0
- package/lib/data/icons/reactNative/index.d.ts +1 -0
- package/lib/data/icons/reactNative/index.d.ts.map +1 -1
- package/lib/data/icons/reactNative/index.js +9 -7
- package/lib/data/icons/reactNative/index.js.map +1 -1
- package/lib/deviceSDK/actions/toggleOnboardingEarlyCheck.d.ts +32 -0
- package/lib/deviceSDK/actions/toggleOnboardingEarlyCheck.d.ts.map +1 -0
- package/lib/deviceSDK/actions/toggleOnboardingEarlyCheck.js +39 -0
- package/lib/deviceSDK/actions/toggleOnboardingEarlyCheck.js.map +1 -0
- package/lib/deviceSDK/commands/toggleOnboardingEarlyCheck.d.ts +27 -0
- package/lib/deviceSDK/commands/toggleOnboardingEarlyCheck.d.ts.map +1 -0
- package/lib/deviceSDK/commands/toggleOnboardingEarlyCheck.js +37 -0
- package/lib/deviceSDK/commands/toggleOnboardingEarlyCheck.js.map +1 -0
- package/lib/deviceSDK/commands/toggleOnboardingEarlyCheck.test.d.ts +2 -0
- package/lib/deviceSDK/commands/toggleOnboardingEarlyCheck.test.d.ts.map +1 -0
- package/lib/deviceSDK/commands/toggleOnboardingEarlyCheck.test.js +81 -0
- package/lib/deviceSDK/commands/toggleOnboardingEarlyCheck.test.js.map +1 -0
- package/lib/deviceSDK/hooks/useToggleOnboardingEarlyChecks.d.ts +33 -0
- package/lib/deviceSDK/hooks/useToggleOnboardingEarlyChecks.d.ts.map +1 -0
- package/lib/deviceSDK/hooks/useToggleOnboardingEarlyChecks.js +53 -0
- package/lib/deviceSDK/hooks/useToggleOnboardingEarlyChecks.js.map +1 -0
- package/lib/deviceSDK/hooks/useToggleOnboardingEarlyChecks.test.d.ts +2 -0
- package/lib/deviceSDK/hooks/useToggleOnboardingEarlyChecks.test.d.ts.map +1 -0
- package/lib/deviceSDK/hooks/useToggleOnboardingEarlyChecks.test.js +93 -0
- package/lib/deviceSDK/hooks/useToggleOnboardingEarlyChecks.test.js.map +1 -0
- package/lib/deviceSDK/tasks/core.js.map +1 -1
- package/lib/deviceSDK/tasks/toggleOnboardingEarlyCheck.d.ts +30 -0
- package/lib/deviceSDK/tasks/toggleOnboardingEarlyCheck.d.ts.map +1 -0
- package/lib/deviceSDK/tasks/toggleOnboardingEarlyCheck.js +64 -0
- package/lib/deviceSDK/tasks/toggleOnboardingEarlyCheck.js.map +1 -0
- package/lib/deviceSDK/tasks/toggleOnboardingEarlyCheck.test.d.ts +2 -0
- package/lib/deviceSDK/tasks/toggleOnboardingEarlyCheck.test.d.ts.map +1 -0
- package/lib/deviceSDK/tasks/toggleOnboardingEarlyCheck.test.js +100 -0
- package/lib/deviceSDK/tasks/toggleOnboardingEarlyCheck.test.js.map +1 -0
- package/lib/families/bitcoin/descriptor.d.ts.map +1 -1
- package/lib/families/bitcoin/descriptor.js.map +1 -1
- package/lib/families/bitcoin/satstack.d.ts +1 -0
- package/lib/families/bitcoin/satstack.d.ts.map +1 -1
- package/lib/families/bitcoin/satstack.js.map +1 -1
- package/lib/families/bitcoin/walletApiAdapter.js +4 -4
- package/lib/families/bitcoin/walletApiAdapter.js.map +1 -1
- package/lib/families/bitcoin/walletApiAdapter.test.js +9 -2
- package/lib/families/bitcoin/walletApiAdapter.test.js.map +1 -1
- package/lib/families/cosmos/api/Cosmos.d.ts +2 -0
- package/lib/families/cosmos/api/Cosmos.d.ts.map +1 -1
- package/lib/families/cosmos/api/Cosmos.js +34 -10
- package/lib/families/cosmos/api/Cosmos.js.map +1 -1
- package/lib/families/cosmos/helpers.d.ts +2 -8
- package/lib/families/cosmos/helpers.d.ts.map +1 -1
- package/lib/families/cosmos/helpers.js.map +1 -1
- package/lib/families/cosmos/helpers.unit.test.js +8 -8
- package/lib/families/cosmos/js-synchronisation.d.ts.map +1 -1
- package/lib/families/cosmos/js-synchronisation.js +40 -22
- package/lib/families/cosmos/js-synchronisation.js.map +1 -1
- package/lib/families/cosmos/js-synchronisation.unit.test.d.ts +2 -0
- package/lib/families/cosmos/js-synchronisation.unit.test.d.ts.map +1 -0
- package/lib/families/cosmos/js-synchronisation.unit.test.js +309 -0
- package/lib/families/cosmos/js-synchronisation.unit.test.js.map +1 -0
- package/lib/families/cosmos/react.d.ts +1 -1
- package/lib/families/cosmos/react.d.ts.map +1 -1
- package/lib/families/cosmos/react.js +7 -3
- package/lib/families/cosmos/react.js.map +1 -1
- package/lib/families/cosmos/types.d.ts +9 -8
- package/lib/families/cosmos/types.d.ts.map +1 -1
- package/lib/families/ethereum/walletApiAdapter.d.ts +3 -1
- package/lib/families/ethereum/walletApiAdapter.d.ts.map +1 -1
- package/lib/families/ethereum/walletApiAdapter.js +24 -6
- package/lib/families/ethereum/walletApiAdapter.js.map +1 -1
- package/lib/families/ethereum/walletApiAdapter.test.js +10 -3
- package/lib/families/ethereum/walletApiAdapter.test.js.map +1 -1
- package/lib/families/near/api/archive-node-sdk.d.ts.map +1 -1
- package/lib/families/near/api/archive-node-sdk.js +1 -2
- package/lib/families/near/api/archive-node-sdk.js.map +1 -1
- package/lib/families/polkadot/walletApiAdapter.js +3 -3
- package/lib/families/polkadot/walletApiAdapter.js.map +1 -1
- package/lib/families/polkadot/walletApiAdapter.test.js +10 -3
- package/lib/families/polkadot/walletApiAdapter.test.js.map +1 -1
- package/lib/families/ripple/walletApiAdapter.d.ts.map +1 -1
- package/lib/families/ripple/walletApiAdapter.js +2 -5
- package/lib/families/ripple/walletApiAdapter.js.map +1 -1
- package/lib/families/ripple/walletApiAdapter.test.js +10 -3
- package/lib/families/ripple/walletApiAdapter.test.js.map +1 -1
- package/lib/families/solana/api/chain/account/stake.d.ts +0 -1
- package/lib/families/solana/api/chain/account/stake.d.ts.map +1 -1
- package/lib/families/solana/api/chain/account/token.d.ts +0 -1
- package/lib/families/solana/api/chain/account/token.d.ts.map +1 -1
- package/lib/families/solana/api/chain/account/vote.d.ts +0 -1
- package/lib/families/solana/api/chain/account/vote.d.ts.map +1 -1
- package/lib/families/solana/api/chain/index.d.ts +2 -2
- package/lib/families/solana/api/chain/index.d.ts.map +1 -1
- package/lib/families/solana/api/chain/index.js +5 -1
- package/lib/families/solana/api/chain/index.js.map +1 -1
- package/lib/families/solana/api/chain/instruction/associated-token-account/types.d.ts +0 -1
- package/lib/families/solana/api/chain/instruction/associated-token-account/types.d.ts.map +1 -1
- package/lib/families/solana/api/chain/instruction/stake/types.d.ts +0 -1
- package/lib/families/solana/api/chain/instruction/stake/types.d.ts.map +1 -1
- package/lib/families/solana/api/chain/instruction/system/types.d.ts +0 -1
- package/lib/families/solana/api/chain/instruction/system/types.d.ts.map +1 -1
- package/lib/families/solana/api/chain/instruction/token/types.d.ts +0 -1
- package/lib/families/solana/api/chain/instruction/token/types.d.ts.map +1 -1
- package/lib/families/solana/js-buildTransaction.d.ts +1 -1
- package/lib/families/solana/js-buildTransaction.d.ts.map +1 -1
- package/lib/families/solana/js-buildTransaction.js +4 -3
- package/lib/families/solana/js-buildTransaction.js.map +1 -1
- package/lib/families/solana/js-signOperation.js +2 -2
- package/lib/families/solana/js-signOperation.js.map +1 -1
- package/lib/families/solana/tx-fees.js +4 -4
- package/lib/families/solana/tx-fees.js.map +1 -1
- package/lib/generated/walletApiAdapter.d.ts +1 -1
- package/lib/hw/actions/implementations.d.ts.map +1 -1
- package/lib/hw/actions/implementations.js +16 -2
- package/lib/hw/actions/implementations.js.map +1 -1
- package/lib/hw/extractOnboardingState.d.ts +2 -1
- package/lib/hw/extractOnboardingState.d.ts.map +1 -1
- package/lib/hw/extractOnboardingState.js +3 -1
- package/lib/hw/extractOnboardingState.js.map +1 -1
- package/lib/hw/extractOnboardingState.test.js +10 -0
- package/lib/hw/extractOnboardingState.test.js.map +1 -1
- package/lib/hw/staxRemoveImage.d.ts.map +1 -1
- package/lib/hw/staxRemoveImage.js +4 -0
- package/lib/hw/staxRemoveImage.js.map +1 -1
- package/lib/hw/staxRemoveImage.test.js +5 -0
- package/lib/hw/staxRemoveImage.test.js.map +1 -1
- package/lib/mock/fixtures/cryptoCurrencies.d.ts.map +1 -1
- package/lib/mock/fixtures/cryptoCurrencies.js +0 -1
- package/lib/mock/fixtures/cryptoCurrencies.js.map +1 -1
- package/lib/platform/logic.d.ts +2 -2
- package/lib/platform/logic.d.ts.map +1 -1
- package/lib/platform/logic.js +2 -1
- package/lib/platform/logic.js.map +1 -1
- package/lib/wallet-api/converters.d.ts.map +1 -1
- package/lib/wallet-api/converters.js +7 -3
- package/lib/wallet-api/converters.js.map +1 -1
- package/lib/wallet-api/converters.test.d.ts.map +1 -1
- package/lib/wallet-api/converters.test.js +3 -2
- package/lib/wallet-api/converters.test.js.map +1 -1
- package/lib/wallet-api/helpers.d.ts.map +1 -1
- package/lib/wallet-api/helpers.js +1 -1
- package/lib/wallet-api/helpers.js.map +1 -1
- package/lib/wallet-api/logic.d.ts +1 -1
- package/lib/wallet-api/logic.d.ts.map +1 -1
- package/lib/wallet-api/logic.js +12 -3
- package/lib/wallet-api/logic.js.map +1 -1
- package/lib/wallet-api/react.js +1 -1
- package/lib/wallet-api/react.js.map +1 -1
- package/lib/wallet-api/types.d.ts +11 -3
- package/lib/wallet-api/types.d.ts.map +1 -1
- package/lib-es/countervalues/api/api.d.ts.map +1 -1
- package/lib-es/countervalues/api/api.js +13 -19
- package/lib-es/countervalues/api/api.js.map +1 -1
- package/lib-es/countervalues/helpers.d.ts +2 -0
- package/lib-es/countervalues/helpers.d.ts.map +1 -1
- package/lib-es/countervalues/helpers.js +16 -4
- package/lib-es/countervalues/helpers.js.map +1 -1
- package/lib-es/countervalues/logic.d.ts.map +1 -1
- package/lib-es/countervalues/logic.integration.test.js.map +1 -1
- package/lib-es/countervalues/logic.js +1 -0
- package/lib-es/countervalues/logic.js.map +1 -1
- package/lib-es/countervalues/react.d.ts.map +1 -1
- package/lib-es/countervalues/react.js +10 -8
- package/lib-es/countervalues/react.js.map +1 -1
- package/lib-es/countervalues/react.test.d.ts +2 -0
- package/lib-es/countervalues/react.test.d.ts.map +1 -0
- package/lib-es/countervalues/react.test.js +105 -0
- package/lib-es/countervalues/react.test.js.map +1 -0
- package/lib-es/data/icons/react/euroc.d.ts +8 -0
- package/lib-es/data/icons/react/euroc.d.ts.map +1 -0
- package/lib-es/data/icons/react/euroc.js +11 -0
- package/lib-es/data/icons/react/euroc.js.map +1 -0
- package/lib-es/data/icons/react/index.d.ts +1 -0
- package/lib-es/data/icons/react/index.d.ts.map +1 -1
- package/lib-es/data/icons/react/index.js +1 -0
- package/lib-es/data/icons/react/index.js.map +1 -1
- package/lib-es/data/icons/reactNative/euroc.d.ts +8 -0
- package/lib-es/data/icons/reactNative/euroc.d.ts.map +1 -0
- package/lib-es/data/icons/reactNative/euroc.js +12 -0
- package/lib-es/data/icons/reactNative/euroc.js.map +1 -0
- package/lib-es/data/icons/reactNative/index.d.ts +1 -0
- package/lib-es/data/icons/reactNative/index.d.ts.map +1 -1
- package/lib-es/data/icons/reactNative/index.js +1 -0
- package/lib-es/data/icons/reactNative/index.js.map +1 -1
- package/lib-es/deviceSDK/actions/toggleOnboardingEarlyCheck.d.ts +32 -0
- package/lib-es/deviceSDK/actions/toggleOnboardingEarlyCheck.d.ts.map +1 -0
- package/lib-es/deviceSDK/actions/toggleOnboardingEarlyCheck.js +35 -0
- package/lib-es/deviceSDK/actions/toggleOnboardingEarlyCheck.js.map +1 -0
- package/lib-es/deviceSDK/commands/toggleOnboardingEarlyCheck.d.ts +27 -0
- package/lib-es/deviceSDK/commands/toggleOnboardingEarlyCheck.d.ts.map +1 -0
- package/lib-es/deviceSDK/commands/toggleOnboardingEarlyCheck.js +33 -0
- package/lib-es/deviceSDK/commands/toggleOnboardingEarlyCheck.js.map +1 -0
- package/lib-es/deviceSDK/commands/toggleOnboardingEarlyCheck.test.d.ts +2 -0
- package/lib-es/deviceSDK/commands/toggleOnboardingEarlyCheck.test.d.ts.map +1 -0
- package/lib-es/deviceSDK/commands/toggleOnboardingEarlyCheck.test.js +79 -0
- package/lib-es/deviceSDK/commands/toggleOnboardingEarlyCheck.test.js.map +1 -0
- package/lib-es/deviceSDK/hooks/useToggleOnboardingEarlyChecks.d.ts +33 -0
- package/lib-es/deviceSDK/hooks/useToggleOnboardingEarlyChecks.d.ts.map +1 -0
- package/lib-es/deviceSDK/hooks/useToggleOnboardingEarlyChecks.js +49 -0
- package/lib-es/deviceSDK/hooks/useToggleOnboardingEarlyChecks.js.map +1 -0
- package/lib-es/deviceSDK/hooks/useToggleOnboardingEarlyChecks.test.d.ts +2 -0
- package/lib-es/deviceSDK/hooks/useToggleOnboardingEarlyChecks.test.d.ts.map +1 -0
- package/lib-es/deviceSDK/hooks/useToggleOnboardingEarlyChecks.test.js +91 -0
- package/lib-es/deviceSDK/hooks/useToggleOnboardingEarlyChecks.test.js.map +1 -0
- package/lib-es/deviceSDK/tasks/core.js.map +1 -1
- package/lib-es/deviceSDK/tasks/toggleOnboardingEarlyCheck.d.ts +30 -0
- package/lib-es/deviceSDK/tasks/toggleOnboardingEarlyCheck.d.ts.map +1 -0
- package/lib-es/deviceSDK/tasks/toggleOnboardingEarlyCheck.js +60 -0
- package/lib-es/deviceSDK/tasks/toggleOnboardingEarlyCheck.js.map +1 -0
- package/lib-es/deviceSDK/tasks/toggleOnboardingEarlyCheck.test.d.ts +2 -0
- package/lib-es/deviceSDK/tasks/toggleOnboardingEarlyCheck.test.d.ts.map +1 -0
- package/lib-es/deviceSDK/tasks/toggleOnboardingEarlyCheck.test.js +98 -0
- package/lib-es/deviceSDK/tasks/toggleOnboardingEarlyCheck.test.js.map +1 -0
- package/lib-es/families/bitcoin/descriptor.d.ts.map +1 -1
- package/lib-es/families/bitcoin/descriptor.js.map +1 -1
- package/lib-es/families/bitcoin/satstack.d.ts +1 -0
- package/lib-es/families/bitcoin/satstack.d.ts.map +1 -1
- package/lib-es/families/bitcoin/satstack.js.map +1 -1
- package/lib-es/families/bitcoin/walletApiAdapter.js +4 -4
- package/lib-es/families/bitcoin/walletApiAdapter.js.map +1 -1
- package/lib-es/families/bitcoin/walletApiAdapter.test.js +9 -2
- package/lib-es/families/bitcoin/walletApiAdapter.test.js.map +1 -1
- package/lib-es/families/cosmos/api/Cosmos.d.ts +2 -0
- package/lib-es/families/cosmos/api/Cosmos.d.ts.map +1 -1
- package/lib-es/families/cosmos/api/Cosmos.js +34 -10
- package/lib-es/families/cosmos/api/Cosmos.js.map +1 -1
- package/lib-es/families/cosmos/helpers.d.ts +2 -8
- package/lib-es/families/cosmos/helpers.d.ts.map +1 -1
- package/lib-es/families/cosmos/helpers.js.map +1 -1
- package/lib-es/families/cosmos/helpers.unit.test.js +8 -8
- package/lib-es/families/cosmos/js-synchronisation.d.ts.map +1 -1
- package/lib-es/families/cosmos/js-synchronisation.js +40 -22
- package/lib-es/families/cosmos/js-synchronisation.js.map +1 -1
- package/lib-es/families/cosmos/js-synchronisation.unit.test.d.ts +2 -0
- package/lib-es/families/cosmos/js-synchronisation.unit.test.d.ts.map +1 -0
- package/lib-es/families/cosmos/js-synchronisation.unit.test.js +281 -0
- package/lib-es/families/cosmos/js-synchronisation.unit.test.js.map +1 -0
- package/lib-es/families/cosmos/react.d.ts +1 -1
- package/lib-es/families/cosmos/react.d.ts.map +1 -1
- package/lib-es/families/cosmos/react.js +7 -3
- package/lib-es/families/cosmos/react.js.map +1 -1
- package/lib-es/families/cosmos/types.d.ts +9 -8
- package/lib-es/families/cosmos/types.d.ts.map +1 -1
- package/lib-es/families/ethereum/walletApiAdapter.d.ts +3 -1
- package/lib-es/families/ethereum/walletApiAdapter.d.ts.map +1 -1
- package/lib-es/families/ethereum/walletApiAdapter.js +24 -6
- package/lib-es/families/ethereum/walletApiAdapter.js.map +1 -1
- package/lib-es/families/ethereum/walletApiAdapter.test.js +10 -3
- package/lib-es/families/ethereum/walletApiAdapter.test.js.map +1 -1
- package/lib-es/families/near/api/archive-node-sdk.d.ts.map +1 -1
- package/lib-es/families/near/api/archive-node-sdk.js +1 -2
- package/lib-es/families/near/api/archive-node-sdk.js.map +1 -1
- package/lib-es/families/polkadot/walletApiAdapter.js +3 -3
- package/lib-es/families/polkadot/walletApiAdapter.js.map +1 -1
- package/lib-es/families/polkadot/walletApiAdapter.test.js +10 -3
- package/lib-es/families/polkadot/walletApiAdapter.test.js.map +1 -1
- package/lib-es/families/ripple/walletApiAdapter.d.ts.map +1 -1
- package/lib-es/families/ripple/walletApiAdapter.js +2 -5
- package/lib-es/families/ripple/walletApiAdapter.js.map +1 -1
- package/lib-es/families/ripple/walletApiAdapter.test.js +10 -3
- package/lib-es/families/ripple/walletApiAdapter.test.js.map +1 -1
- package/lib-es/families/solana/api/chain/account/stake.d.ts +0 -1
- package/lib-es/families/solana/api/chain/account/stake.d.ts.map +1 -1
- package/lib-es/families/solana/api/chain/account/token.d.ts +0 -1
- package/lib-es/families/solana/api/chain/account/token.d.ts.map +1 -1
- package/lib-es/families/solana/api/chain/account/vote.d.ts +0 -1
- package/lib-es/families/solana/api/chain/account/vote.d.ts.map +1 -1
- package/lib-es/families/solana/api/chain/index.d.ts +2 -2
- package/lib-es/families/solana/api/chain/index.d.ts.map +1 -1
- package/lib-es/families/solana/api/chain/index.js +5 -1
- package/lib-es/families/solana/api/chain/index.js.map +1 -1
- package/lib-es/families/solana/api/chain/instruction/associated-token-account/types.d.ts +0 -1
- package/lib-es/families/solana/api/chain/instruction/associated-token-account/types.d.ts.map +1 -1
- package/lib-es/families/solana/api/chain/instruction/stake/types.d.ts +0 -1
- package/lib-es/families/solana/api/chain/instruction/stake/types.d.ts.map +1 -1
- package/lib-es/families/solana/api/chain/instruction/system/types.d.ts +0 -1
- package/lib-es/families/solana/api/chain/instruction/system/types.d.ts.map +1 -1
- package/lib-es/families/solana/api/chain/instruction/token/types.d.ts +0 -1
- package/lib-es/families/solana/api/chain/instruction/token/types.d.ts.map +1 -1
- package/lib-es/families/solana/js-buildTransaction.d.ts +1 -1
- package/lib-es/families/solana/js-buildTransaction.d.ts.map +1 -1
- package/lib-es/families/solana/js-buildTransaction.js +5 -4
- package/lib-es/families/solana/js-buildTransaction.js.map +1 -1
- package/lib-es/families/solana/js-signOperation.js +2 -2
- package/lib-es/families/solana/js-signOperation.js.map +1 -1
- package/lib-es/families/solana/tx-fees.js +4 -4
- package/lib-es/families/solana/tx-fees.js.map +1 -1
- package/lib-es/generated/walletApiAdapter.d.ts +1 -1
- package/lib-es/hw/actions/implementations.d.ts.map +1 -1
- package/lib-es/hw/actions/implementations.js +18 -4
- package/lib-es/hw/actions/implementations.js.map +1 -1
- package/lib-es/hw/extractOnboardingState.d.ts +2 -1
- package/lib-es/hw/extractOnboardingState.d.ts.map +1 -1
- package/lib-es/hw/extractOnboardingState.js +3 -1
- package/lib-es/hw/extractOnboardingState.js.map +1 -1
- package/lib-es/hw/extractOnboardingState.test.js +10 -0
- package/lib-es/hw/extractOnboardingState.test.js.map +1 -1
- package/lib-es/hw/staxRemoveImage.d.ts.map +1 -1
- package/lib-es/hw/staxRemoveImage.js +4 -0
- package/lib-es/hw/staxRemoveImage.js.map +1 -1
- package/lib-es/hw/staxRemoveImage.test.js +5 -0
- package/lib-es/hw/staxRemoveImage.test.js.map +1 -1
- package/lib-es/mock/fixtures/cryptoCurrencies.d.ts.map +1 -1
- package/lib-es/mock/fixtures/cryptoCurrencies.js +0 -1
- package/lib-es/mock/fixtures/cryptoCurrencies.js.map +1 -1
- package/lib-es/platform/logic.d.ts +2 -2
- package/lib-es/platform/logic.d.ts.map +1 -1
- package/lib-es/platform/logic.js +2 -1
- package/lib-es/platform/logic.js.map +1 -1
- package/lib-es/wallet-api/converters.d.ts.map +1 -1
- package/lib-es/wallet-api/converters.js +7 -3
- package/lib-es/wallet-api/converters.js.map +1 -1
- package/lib-es/wallet-api/converters.test.d.ts.map +1 -1
- package/lib-es/wallet-api/converters.test.js +3 -2
- package/lib-es/wallet-api/converters.test.js.map +1 -1
- package/lib-es/wallet-api/helpers.d.ts.map +1 -1
- package/lib-es/wallet-api/helpers.js +1 -1
- package/lib-es/wallet-api/helpers.js.map +1 -1
- package/lib-es/wallet-api/logic.d.ts +1 -1
- package/lib-es/wallet-api/logic.d.ts.map +1 -1
- package/lib-es/wallet-api/logic.js +12 -3
- package/lib-es/wallet-api/logic.js.map +1 -1
- package/lib-es/wallet-api/react.js +1 -1
- package/lib-es/wallet-api/react.js.map +1 -1
- package/lib-es/wallet-api/types.d.ts +11 -3
- package/lib-es/wallet-api/types.d.ts.map +1 -1
- package/package.json +14 -14
- package/src/countervalues/api/api.ts +25 -23
- package/src/countervalues/helpers.ts +21 -3
- package/src/countervalues/logic.integration.test.ts +1 -0
- package/src/countervalues/logic.ts +1 -0
- package/src/countervalues/react.test.ts +120 -0
- package/src/countervalues/react.tsx +10 -13
- package/src/currencies/__snapshots__/sortByMarketcap.test.ts.snap +44 -4
- package/src/data/icons/react/euroc.tsx +12 -0
- package/src/data/icons/react/index.tsx +1 -0
- package/src/data/icons/reactNative/euroc.tsx +13 -0
- package/src/data/icons/reactNative/index.tsx +1 -0
- package/src/data/icons/svg/EUROC.svg +5 -0
- package/src/deviceSDK/actions/toggleOnboardingEarlyCheck.ts +86 -0
- package/src/deviceSDK/commands/toggleOnboardingEarlyCheck.test.ts +85 -0
- package/src/deviceSDK/commands/toggleOnboardingEarlyCheck.ts +42 -0
- package/src/deviceSDK/hooks/useToggleOnboardingEarlyChecks.test.ts +125 -0
- package/src/deviceSDK/hooks/useToggleOnboardingEarlyChecks.ts +71 -0
- package/src/deviceSDK/tasks/core.ts +1 -1
- package/src/deviceSDK/tasks/toggleOnboardingEarlyCheck.test.ts +111 -0
- package/src/deviceSDK/tasks/toggleOnboardingEarlyCheck.ts +92 -0
- package/src/families/bitcoin/descriptor.ts +5 -2
- package/src/families/bitcoin/satstack.ts +1 -0
- package/src/families/bitcoin/walletApiAdapter.test.ts +11 -2
- package/src/families/bitcoin/walletApiAdapter.ts +4 -4
- package/src/families/cosmos/__snapshots__/bridge.integration.test.ts.snap +664 -19
- package/src/families/cosmos/api/Cosmos.ts +34 -6
- package/src/families/cosmos/helpers.ts +2 -5
- package/src/families/cosmos/helpers.unit.test.ts +8 -8
- package/src/families/cosmos/js-synchronisation.ts +74 -27
- package/src/families/cosmos/js-synchronisation.unit.test.ts +339 -0
- package/src/families/cosmos/react.ts +8 -6
- package/src/families/cosmos/types.ts +6 -4
- package/src/families/ethereum/walletApiAdapter.test.ts +12 -3
- package/src/families/ethereum/walletApiAdapter.ts +44 -13
- package/src/families/near/api/archive-node-sdk.ts +2 -3
- package/src/families/polkadot/walletApiAdapter.test.ts +13 -4
- package/src/families/polkadot/walletApiAdapter.ts +3 -3
- package/src/families/ripple/walletApiAdapter.test.ts +12 -3
- package/src/families/ripple/walletApiAdapter.ts +2 -10
- package/src/families/solana/api/chain/index.ts +8 -4
- package/src/families/solana/js-buildTransaction.ts +6 -4
- package/src/families/solana/js-signOperation.ts +2 -2
- package/src/families/solana/tx-fees.ts +6 -6
- package/src/hw/actions/implementations.ts +20 -0
- package/src/hw/extractOnboardingState.test.ts +15 -0
- package/src/hw/extractOnboardingState.ts +3 -1
- package/src/hw/staxRemoveImage.test.ts +10 -0
- package/src/hw/staxRemoveImage.ts +4 -0
- package/src/mock/fixtures/cryptoCurrencies.ts +0 -1
- package/src/platform/logic.ts +5 -3
- package/src/wallet-api/converters.test.ts +5 -2
- package/src/wallet-api/converters.ts +8 -3
- package/src/wallet-api/helpers.ts +2 -1
- package/src/wallet-api/logic.ts +15 -4
- package/src/wallet-api/react.ts +1 -1
- package/src/wallet-api/types.ts +19 -3
- package/lib/countervalues/api/api.legacy.d.ts +0 -4
- package/lib/countervalues/api/api.legacy.d.ts.map +0 -1
- package/lib/countervalues/api/api.legacy.js +0 -96
- package/lib/countervalues/api/api.legacy.js.map +0 -1
- package/lib-es/countervalues/api/api.legacy.d.ts +0 -4
- package/lib-es/countervalues/api/api.legacy.d.ts.map +0 -1
- package/lib-es/countervalues/api/api.legacy.js +0 -91
- package/lib-es/countervalues/api/api.legacy.js.map +0 -1
- package/src/countervalues/api/api.legacy.ts +0 -91
|
@@ -906,6 +906,7 @@ Array [
|
|
|
906
906
|
"ethereum/erc20/oxycoin",
|
|
907
907
|
"ethereum/erc20/carboneum",
|
|
908
908
|
"ethereum/erc20/tokenbox",
|
|
909
|
+
"ethereum/erc20/ben",
|
|
909
910
|
"ethereum/erc20/kanadecoin",
|
|
910
911
|
"ethereum/erc20/fire_lotto",
|
|
911
912
|
"ethereum/erc20/blitzpredict",
|
|
@@ -1095,7 +1096,6 @@ Array [
|
|
|
1095
1096
|
"ethereum/erc20/rntb_token",
|
|
1096
1097
|
"ethereum/erc20/xovbank",
|
|
1097
1098
|
"ethereum/erc20/call",
|
|
1098
|
-
"ethereum/erc20/arbitrum",
|
|
1099
1099
|
"ethereum/erc20/iogtoken",
|
|
1100
1100
|
"ethereum/erc20/rocket_bunny",
|
|
1101
1101
|
"ethereum/erc20/crystaltoken",
|
|
@@ -1123,7 +1123,7 @@ Array [
|
|
|
1123
1123
|
"ethereum/erc20/bankroll_vault",
|
|
1124
1124
|
"ethereum/erc20/flit_token",
|
|
1125
1125
|
"ethereum/erc20/synth_ibtc",
|
|
1126
|
-
"ethereum/erc20/
|
|
1126
|
+
"ethereum/erc20/volt_inu",
|
|
1127
1127
|
"ethereum/erc20/cointorox",
|
|
1128
1128
|
"ethereum/erc20/brat",
|
|
1129
1129
|
"ethereum/erc20/bitcoin_one",
|
|
@@ -1276,6 +1276,7 @@ Array [
|
|
|
1276
1276
|
"ethereum/erc20/bitcoffeen",
|
|
1277
1277
|
"ethereum/erc20/amaten",
|
|
1278
1278
|
"ethereum/erc20/curtoken",
|
|
1279
|
+
"ethereum/erc20/compound_dai",
|
|
1279
1280
|
"ethereum/erc20/rae_token",
|
|
1280
1281
|
"ethereum/erc20/livepeer",
|
|
1281
1282
|
"ethereum/erc20/cpay",
|
|
@@ -1595,6 +1596,7 @@ Array [
|
|
|
1595
1596
|
"ethereum/erc20/alrightcoin",
|
|
1596
1597
|
"ethereum/erc20/alta_finance",
|
|
1597
1598
|
"ethereum/erc20/alts_token",
|
|
1599
|
+
"ethereum/erc20/altsignals",
|
|
1598
1600
|
"ethereum/erc20/aludra_network",
|
|
1599
1601
|
"ethereum/erc20/aluna",
|
|
1600
1602
|
"ethereum/erc20/alvado",
|
|
@@ -1675,6 +1677,7 @@ Array [
|
|
|
1675
1677
|
"ethereum/erc20/ares_protocol",
|
|
1676
1678
|
"ethereum/erc20/argo_token",
|
|
1677
1679
|
"ethereum/erc20/arianee",
|
|
1680
|
+
"ethereum/erc20/ariva",
|
|
1678
1681
|
"ethereum/erc20/arke",
|
|
1679
1682
|
"ethereum/erc20/arma_coin",
|
|
1680
1683
|
"ethereum/erc20/armor",
|
|
@@ -1888,6 +1891,7 @@ Array [
|
|
|
1888
1891
|
"ethereum/erc20/bhpcash",
|
|
1889
1892
|
"ethereum/erc20/biconomy_token",
|
|
1890
1893
|
"ethereum/erc20/bidao",
|
|
1894
|
+
"ethereum/erc20/bidao_smart_chain",
|
|
1891
1895
|
"ethereum/erc20/bifi",
|
|
1892
1896
|
"ethereum/erc20/big_eyes",
|
|
1893
1897
|
"ethereum/erc20/bigcash",
|
|
@@ -1991,6 +1995,7 @@ Array [
|
|
|
1991
1995
|
"ethereum/erc20/blocknotex",
|
|
1992
1996
|
"ethereum/erc20/blockoptiopns_token",
|
|
1993
1997
|
"ethereum/erc20/blockport_token",
|
|
1998
|
+
"ethereum/erc20/blockremit",
|
|
1994
1999
|
"ethereum/erc20/blockrx",
|
|
1995
2000
|
"ethereum/erc20/blocks",
|
|
1996
2001
|
"ethereum/erc20/blockstar_token",
|
|
@@ -2328,6 +2333,8 @@ Array [
|
|
|
2328
2333
|
"ethereum/erc20/compound_maker",
|
|
2329
2334
|
"ethereum/erc20/compound_sushi_token",
|
|
2330
2335
|
"ethereum/erc20/compound_uniswap",
|
|
2336
|
+
"ethereum/erc20/compound_usd_coin",
|
|
2337
|
+
"ethereum/erc20/compound_usdt",
|
|
2331
2338
|
"ethereum/erc20/compound_wrapped_btc",
|
|
2332
2339
|
"ethereum/erc20/compound_yearn_finance",
|
|
2333
2340
|
"ethereum/erc20/conceal_-_wrapped_ccx",
|
|
@@ -2704,6 +2711,7 @@ Array [
|
|
|
2704
2711
|
"ethereum/erc20/digital_reserve_currency",
|
|
2705
2712
|
"ethereum/erc20/digital_standard_unit",
|
|
2706
2713
|
"ethereum/erc20/digital_wallet_coin",
|
|
2714
|
+
"ethereum/erc20/digitoads",
|
|
2707
2715
|
"ethereum/erc20/digiwill",
|
|
2708
2716
|
"ethereum/erc20/diligence",
|
|
2709
2717
|
"ethereum/erc20/dimensions_strike_token",
|
|
@@ -3026,6 +3034,7 @@ Array [
|
|
|
3026
3034
|
"ethereum/erc20/eztoken",
|
|
3027
3035
|
"ethereum/erc20/fabric_token",
|
|
3028
3036
|
"ethereum/erc20/fairum_community",
|
|
3037
|
+
"ethereum/erc20/faith_tribe",
|
|
3029
3038
|
"ethereum/erc20/faithcoin",
|
|
3030
3039
|
"ethereum/erc20/falcon_9",
|
|
3031
3040
|
"ethereum/erc20/falconswap_token",
|
|
@@ -3087,6 +3096,8 @@ Array [
|
|
|
3087
3096
|
"ethereum/erc20/firdaos",
|
|
3088
3097
|
"ethereum/erc20/fire_protocol",
|
|
3089
3098
|
"ethereum/erc20/fireants",
|
|
3099
|
+
"ethereum/erc20/first_digital_usd",
|
|
3100
|
+
"ethereum/erc20/first_republic_bank_of_crypto",
|
|
3090
3101
|
"ethereum/erc20/firulais",
|
|
3091
3102
|
"ethereum/erc20/fiscocoin",
|
|
3092
3103
|
"ethereum/erc20/fiscusfyi",
|
|
@@ -3140,6 +3151,7 @@ Array [
|
|
|
3140
3151
|
"ethereum/erc20/fractal_protocol_token",
|
|
3141
3152
|
"ethereum/erc20/franklin",
|
|
3142
3153
|
"ethereum/erc20/frax",
|
|
3154
|
+
"ethereum/erc20/frax_ether",
|
|
3143
3155
|
"ethereum/erc20/frax_price_index_share",
|
|
3144
3156
|
"ethereum/erc20/frax_share",
|
|
3145
3157
|
"ethereum/erc20/fred_energy_erc-20",
|
|
@@ -3476,6 +3488,7 @@ Array [
|
|
|
3476
3488
|
"ethereum/erc20/hype-finance",
|
|
3477
3489
|
"ethereum/erc20/hypeburn_finance",
|
|
3478
3490
|
"ethereum/erc20/hyper_credit_network",
|
|
3491
|
+
"ethereum/erc20/hypercycle_token",
|
|
3479
3492
|
"ethereum/erc20/hyperhash",
|
|
3480
3493
|
"ethereum/erc20/hyperion_token",
|
|
3481
3494
|
"ethereum/erc20/hypersign_identity_token",
|
|
@@ -3840,6 +3853,7 @@ Array [
|
|
|
3840
3853
|
"ethereum/erc20/loveearth_coin",
|
|
3841
3854
|
"ethereum/erc20/low_float_gem",
|
|
3842
3855
|
"ethereum/erc20/low_orbit_crypto_cannon",
|
|
3856
|
+
"ethereum/erc20/loyal",
|
|
3843
3857
|
"ethereum/erc20/lqty",
|
|
3844
3858
|
"ethereum/erc20/luatoken",
|
|
3845
3859
|
"ethereum/erc20/luckstartoken",
|
|
@@ -3972,6 +3986,7 @@ Array [
|
|
|
3972
3986
|
"ethereum/erc20/metis_token",
|
|
3973
3987
|
"ethereum/erc20/metric_exchange",
|
|
3974
3988
|
"ethereum/erc20/meverse",
|
|
3989
|
+
"ethereum/erc20/mevfree",
|
|
3975
3990
|
"ethereum/erc20/mfi_erc20",
|
|
3976
3991
|
"ethereum/erc20/mia_neko",
|
|
3977
3992
|
"ethereum/erc20/miami",
|
|
@@ -4290,6 +4305,7 @@ Array [
|
|
|
4290
4305
|
"ethereum/erc20/orientum_plus",
|
|
4291
4306
|
"ethereum/erc20/origami_network",
|
|
4292
4307
|
"ethereum/erc20/origin_dollar",
|
|
4308
|
+
"ethereum/erc20/origin_ether",
|
|
4293
4309
|
"ethereum/erc20/orion_protocol",
|
|
4294
4310
|
"ethereum/erc20/orium",
|
|
4295
4311
|
"ethereum/erc20/ormecash",
|
|
@@ -4514,6 +4530,7 @@ Array [
|
|
|
4514
4530
|
"ethereum/erc20/prediqt",
|
|
4515
4531
|
"ethereum/erc20/predix_network",
|
|
4516
4532
|
"ethereum/erc20/premia",
|
|
4533
|
+
"ethereum/erc20/president_ron_desantis",
|
|
4517
4534
|
"ethereum/erc20/presto_token",
|
|
4518
4535
|
"ethereum/erc20/previse",
|
|
4519
4536
|
"ethereum/erc20/pria",
|
|
@@ -4546,6 +4563,7 @@ Array [
|
|
|
4546
4563
|
"ethereum/erc20/prtn_project",
|
|
4547
4564
|
"ethereum/erc20/pstake_finance",
|
|
4548
4565
|
"ethereum/erc20/psyche",
|
|
4566
|
+
"ethereum/erc20/psyop",
|
|
4549
4567
|
"ethereum/erc20/pteria",
|
|
4550
4568
|
"ethereum/erc20/ptokens_ltc",
|
|
4551
4569
|
"ethereum/erc20/pub_finance",
|
|
@@ -4606,6 +4624,7 @@ Array [
|
|
|
4606
4624
|
"ethereum/erc20/r34p",
|
|
4607
4625
|
"ethereum/erc20/r3fi_finance",
|
|
4608
4626
|
"ethereum/erc20/r64x_com",
|
|
4627
|
+
"ethereum/erc20/rabbitx",
|
|
4609
4628
|
"ethereum/erc20/rac",
|
|
4610
4629
|
"ethereum/erc20/racing_pigeon_coin",
|
|
4611
4630
|
"ethereum/erc20/radar",
|
|
@@ -4643,6 +4662,7 @@ Array [
|
|
|
4643
4662
|
"ethereum/erc20/read_this_contract",
|
|
4644
4663
|
"ethereum/erc20/realio_network",
|
|
4645
4664
|
"ethereum/erc20/realisto",
|
|
4665
|
+
"ethereum/erc20/realitytoken",
|
|
4646
4666
|
"ethereum/erc20/realland_token",
|
|
4647
4667
|
"ethereum/erc20/realm",
|
|
4648
4668
|
"ethereum/erc20/reapchain",
|
|
@@ -4675,6 +4695,7 @@ Array [
|
|
|
4675
4695
|
"ethereum/erc20/rendgb",
|
|
4676
4696
|
"ethereum/erc20/rendoge",
|
|
4677
4697
|
"ethereum/erc20/renfil",
|
|
4698
|
+
"ethereum/erc20/renq_finance",
|
|
4678
4699
|
"ethereum/erc20/rentible",
|
|
4679
4700
|
"ethereum/erc20/renzec",
|
|
4680
4701
|
"ethereum/erc20/reputation",
|
|
@@ -4963,6 +4984,7 @@ Array [
|
|
|
4963
4984
|
"ethereum/erc20/smpl_foundation",
|
|
4964
4985
|
"ethereum/erc20/smscodes",
|
|
4965
4986
|
"ethereum/erc20/smtytoken",
|
|
4987
|
+
"ethereum/erc20/smudge_lord",
|
|
4966
4988
|
"ethereum/erc20/snglsdao_governance_token",
|
|
4967
4989
|
"ethereum/erc20/snip",
|
|
4968
4990
|
"ethereum/erc20/snoop_doge",
|
|
@@ -5308,6 +5330,7 @@ Array [
|
|
|
5308
5330
|
"ethereum/erc20/the_fewocious_collection",
|
|
5309
5331
|
"ethereum/erc20/the_lovechain",
|
|
5310
5332
|
"ethereum/erc20/the_metaonez",
|
|
5333
|
+
"ethereum/erc20/the_nemesis",
|
|
5311
5334
|
"ethereum/erc20/the_nifty_onez",
|
|
5312
5335
|
"ethereum/erc20/the_pak_collection",
|
|
5313
5336
|
"ethereum/erc20/the_people’s_coin",
|
|
@@ -5456,6 +5479,7 @@ Array [
|
|
|
5456
5479
|
"ethereum/erc20/tune",
|
|
5457
5480
|
"ethereum/erc20/tunetrade_token",
|
|
5458
5481
|
"ethereum/erc20/tunnel",
|
|
5482
|
+
"ethereum/erc20/turbopepe",
|
|
5459
5483
|
"ethereum/erc20/turex",
|
|
5460
5484
|
"ethereum/erc20/tvt",
|
|
5461
5485
|
"ethereum/erc20/twinkle",
|
|
@@ -5675,8 +5699,9 @@ Array [
|
|
|
5675
5699
|
"ethereum/erc20/vodra",
|
|
5676
5700
|
"ethereum/erc20/voice_token",
|
|
5677
5701
|
"ethereum/erc20/voloro_labs_ds_token",
|
|
5678
|
-
"ethereum/erc20/volt_inu",
|
|
5679
5702
|
"ethereum/erc20/volt_inu_",
|
|
5703
|
+
"ethereum/erc20/volt_inu__",
|
|
5704
|
+
"ethereum/erc20/voltage",
|
|
5680
5705
|
"ethereum/erc20/voltium",
|
|
5681
5706
|
"ethereum/erc20/volts_finance",
|
|
5682
5707
|
"ethereum/erc20/vormacoin",
|
|
@@ -5816,6 +5841,7 @@ Array [
|
|
|
5816
5841
|
"ethereum/erc20/wrapped_moon_cats",
|
|
5817
5842
|
"ethereum/erc20/wrapped_ncg",
|
|
5818
5843
|
"ethereum/erc20/wrapped_nxm",
|
|
5844
|
+
"ethereum/erc20/wrapped_oeth",
|
|
5819
5845
|
"ethereum/erc20/wrapped_omi_token",
|
|
5820
5846
|
"ethereum/erc20/wrapped_origin_axie",
|
|
5821
5847
|
"ethereum/erc20/wrapped_ousd",
|
|
@@ -6179,6 +6205,7 @@ Array [
|
|
|
6179
6205
|
"polygon/erc20/betprotocoltoken",
|
|
6180
6206
|
"polygon/erc20/binance-usd",
|
|
6181
6207
|
"polygon/erc20/bit2me",
|
|
6208
|
+
"polygon/erc20/bitcone",
|
|
6182
6209
|
"polygon/erc20/bitfinex_leo_token",
|
|
6183
6210
|
"polygon/erc20/blackpool_token_(pos)",
|
|
6184
6211
|
"polygon/erc20/blockv",
|
|
@@ -6377,6 +6404,7 @@ Array [
|
|
|
6377
6404
|
"polygon/erc20/kyberdmm_lp_weth_aur_jul22",
|
|
6378
6405
|
"polygon/erc20/launchpool_token",
|
|
6379
6406
|
"polygon/erc20/lcx",
|
|
6407
|
+
"polygon/erc20/lido_dao_token_(pos)",
|
|
6380
6408
|
"polygon/erc20/liquid_staking_matic_(pos)",
|
|
6381
6409
|
"polygon/erc20/litentry",
|
|
6382
6410
|
"polygon/erc20/livepeer_token",
|
|
@@ -6476,6 +6504,7 @@ Array [
|
|
|
6476
6504
|
"polygon/erc20/quickswap",
|
|
6477
6505
|
"polygon/erc20/quidd",
|
|
6478
6506
|
"polygon/erc20/rarible",
|
|
6507
|
+
"polygon/erc20/realitytoken",
|
|
6479
6508
|
"polygon/erc20/renbtc",
|
|
6480
6509
|
"polygon/erc20/render_token",
|
|
6481
6510
|
"polygon/erc20/rendoge",
|
|
@@ -6634,6 +6663,7 @@ Array [
|
|
|
6634
6663
|
"bsc/bep20/acts_token",
|
|
6635
6664
|
"bsc/bep20/adex_network",
|
|
6636
6665
|
"bsc/bep20/ae_cash",
|
|
6666
|
+
"bsc/bep20/aeterna",
|
|
6637
6667
|
"bsc/bep20/aioz_network",
|
|
6638
6668
|
"bsc/bep20/alchemy",
|
|
6639
6669
|
"bsc/bep20/aleph.im_v2",
|
|
@@ -6870,6 +6900,7 @@ Array [
|
|
|
6870
6900
|
"bsc/bep20/dogedash",
|
|
6871
6901
|
"bsc/bep20/dogelon_mars",
|
|
6872
6902
|
"bsc/bep20/doggy",
|
|
6903
|
+
"bsc/bep20/dollarsqueeze",
|
|
6873
6904
|
"bsc/bep20/dopple_token",
|
|
6874
6905
|
"bsc/bep20/dor_token",
|
|
6875
6906
|
"bsc/bep20/dos_network_token_bep20",
|
|
@@ -6895,6 +6926,7 @@ Array [
|
|
|
6895
6926
|
"bsc/bep20/empire_token",
|
|
6896
6927
|
"bsc/bep20/empiricus_token",
|
|
6897
6928
|
"bsc/bep20/energyfi_token",
|
|
6929
|
+
"bsc/bep20/epaisa",
|
|
6898
6930
|
"bsc/bep20/epichain",
|
|
6899
6931
|
"bsc/bep20/eron",
|
|
6900
6932
|
"bsc/bep20/ertha_token",
|
|
@@ -6942,6 +6974,7 @@ Array [
|
|
|
6942
6974
|
"bsc/bep20/gamer",
|
|
6943
6975
|
"bsc/bep20/games_for_a_living",
|
|
6944
6976
|
"bsc/bep20/gamezone.io",
|
|
6977
|
+
"bsc/bep20/gamiworld.io",
|
|
6945
6978
|
"bsc/bep20/gamyfi",
|
|
6946
6979
|
"bsc/bep20/gemlink",
|
|
6947
6980
|
"bsc/bep20/genta",
|
|
@@ -7004,6 +7037,7 @@ Array [
|
|
|
7004
7037
|
"bsc/bep20/jasmycoin",
|
|
7005
7038
|
"bsc/bep20/jedstar",
|
|
7006
7039
|
"bsc/bep20/jefe",
|
|
7040
|
+
"bsc/bep20/jencoin",
|
|
7007
7041
|
"bsc/bep20/jimizz",
|
|
7008
7042
|
"bsc/bep20/jointer",
|
|
7009
7043
|
"bsc/bep20/juggernaut_defi",
|
|
@@ -7030,12 +7064,14 @@ Array [
|
|
|
7030
7064
|
"bsc/bep20/lamden",
|
|
7031
7065
|
"bsc/bep20/legion_token",
|
|
7032
7066
|
"bsc/bep20/lenda",
|
|
7067
|
+
"bsc/bep20/leo",
|
|
7033
7068
|
"bsc/bep20/lien_on_xdai_from_xdai",
|
|
7034
7069
|
"bsc/bep20/life_crypto",
|
|
7035
7070
|
"bsc/bep20/linear_token",
|
|
7036
7071
|
"bsc/bep20/liquid_staking_bnb",
|
|
7037
7072
|
"bsc/bep20/litentry",
|
|
7038
7073
|
"bsc/bep20/littlemoose",
|
|
7074
|
+
"bsc/bep20/logo",
|
|
7039
7075
|
"bsc/bep20/lois",
|
|
7040
7076
|
"bsc/bep20/loopnetwork",
|
|
7041
7077
|
"bsc/bep20/loosechangetoken",
|
|
@@ -7057,6 +7093,7 @@ Array [
|
|
|
7057
7093
|
"bsc/bep20/mafacoin",
|
|
7058
7094
|
"bsc/bep20/magiccraft",
|
|
7059
7095
|
"bsc/bep20/marketmove",
|
|
7096
|
+
"bsc/bep20/maru",
|
|
7060
7097
|
"bsc/bep20/mask_network",
|
|
7061
7098
|
"bsc/bep20/math_token",
|
|
7062
7099
|
"bsc/bep20/matic_token",
|
|
@@ -7069,6 +7106,7 @@ Array [
|
|
|
7069
7106
|
"bsc/bep20/meta_fps",
|
|
7070
7107
|
"bsc/bep20/metafluence",
|
|
7071
7108
|
"bsc/bep20/metagame_arena",
|
|
7109
|
+
"bsc/bep20/metagreenuniverse",
|
|
7072
7110
|
"bsc/bep20/metahero",
|
|
7073
7111
|
"bsc/bep20/metaloop_tech",
|
|
7074
7112
|
"bsc/bep20/metamate",
|
|
@@ -7085,6 +7123,7 @@ Array [
|
|
|
7085
7123
|
"bsc/bep20/moeda_loyalty_points",
|
|
7086
7124
|
"bsc/bep20/moeda_seeds",
|
|
7087
7125
|
"bsc/bep20/moneu_token",
|
|
7126
|
+
"bsc/bep20/monkey_token",
|
|
7088
7127
|
"bsc/bep20/monsta_infinite_token",
|
|
7089
7128
|
"bsc/bep20/moomonster_token",
|
|
7090
7129
|
"bsc/bep20/moonbeam",
|
|
@@ -7277,6 +7316,7 @@ Array [
|
|
|
7277
7316
|
"bsc/bep20/swipe",
|
|
7278
7317
|
"bsc/bep20/switcheo_token",
|
|
7279
7318
|
"bsc/bep20/swych",
|
|
7319
|
+
"bsc/bep20/symbiosis",
|
|
7280
7320
|
"bsc/bep20/synapse",
|
|
7281
7321
|
"bsc/bep20/t.i.m.e._dividend",
|
|
7282
7322
|
"bsc/bep20/taco",
|
|
@@ -7362,7 +7402,6 @@ Array [
|
|
|
7362
7402
|
"bsc/bep20/visametafi",
|
|
7363
7403
|
"bsc/bep20/vita_inu",
|
|
7364
7404
|
"bsc/bep20/vitalik_bigdick_inu",
|
|
7365
|
-
"bsc/bep20/volt_inu",
|
|
7366
7405
|
"bsc/bep20/volt_inu_",
|
|
7367
7406
|
"bsc/bep20/vswap.fi",
|
|
7368
7407
|
"bsc/bep20/waifu",
|
|
@@ -7386,6 +7425,7 @@ Array [
|
|
|
7386
7425
|
"bsc/bep20/wootrade_network",
|
|
7387
7426
|
"bsc/bep20/world_of_defish",
|
|
7388
7427
|
"bsc/bep20/wrapped_banano",
|
|
7428
|
+
"bsc/bep20/wrapped_binance_beacon_eth",
|
|
7389
7429
|
"bsc/bep20/wrapped_bitcoinz",
|
|
7390
7430
|
"bsc/bep20/wrapped_blackcoin",
|
|
7391
7431
|
"bsc/bep20/wrapped_bnb",
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
interface Props {
|
|
6
|
+
size: number;
|
|
7
|
+
color?: string;
|
|
8
|
+
};
|
|
9
|
+
function euroc({size, color = "currentColor"}: Props) {
|
|
10
|
+
return <svg width={size} height={size} viewBox="0 0 24 24"><path d="M0 12C0 5.373 5.373 0 12 0s12 5.373 12 12-5.373 12-12 12S0 18.627 0 12Z" fill={color} /><path fill={color} d="m7.741 12.55-.434.587a.306.306 0 0 0 .273.444h1.423c.45 1.86 1.746 3.129 3.481 3.102 1.233 0 2.162-.613 2.782-1.833a.306.306 0 0 0-.149-.417l-.679-.303a.305.305 0 0 0-.398.143c-.32.65-.852 1.064-1.555 1.064-.637 0-1.148-.312-1.539-.941a3.452 3.452 0 0 1-.367-.815h1.822a.307.307 0 0 0 .274-.168l.435-.587a.306.306 0 0 0-.274-.444h-2.462a6.919 6.919 0 0 1-.002-.775h2.029a.309.309 0 0 0 .274-.168l.435-.587a.306.306 0 0 0-.274-.444h-2.259c.331-1.077 1.02-1.783 1.908-1.769.677 0 1.202.371 1.538.977a.303.303 0 0 0 .388.125l.682-.301a.306.306 0 0 0 .147-.426c-.63-1.137-1.548-1.709-2.755-1.709-1.101 0-1.982.438-2.652 1.307-.392.512-.664 1.112-.826 1.796h-.991a.309.309 0 0 0-.274.168l-.434.587a.306.306 0 0 0 .274.444h1.262a8.079 8.079 0 0 0-.005.775h-.823a.307.307 0 0 0-.273.168Z" /><path fill={color} d="M4.104 11.494c.247-3.945 3.422-7.13 7.367-7.389a7.875 7.875 0 0 1 5.472 1.724c.144.115.35.11.488-.013l.581-.518a.379.379 0 0 0-.01-.574 9.397 9.397 0 0 0-6.408-2.152c-4.83.204-8.76 4.089-9.017 8.916a9.39 9.39 0 0 0 1.513 5.653.378.378 0 0 0 .568.073l.581-.518a.376.376 0 0 0 .068-.481 7.871 7.871 0 0 1-1.203-4.719ZM19.91 6.859a.378.378 0 0 0-.568-.073l-.581.518a.376.376 0 0 0-.069.481 7.87 7.87 0 0 1 1.204 4.719c-.247 3.945-3.423 7.13-7.367 7.389a7.875 7.875 0 0 1-5.472-1.723.377.377 0 0 0-.488.012l-.581.518a.379.379 0 0 0 .009.574 9.397 9.397 0 0 0 6.409 2.152c4.83-.204 8.76-4.09 9.016-8.917a9.398 9.398 0 0 0-1.513-5.652Z" /></svg>;
|
|
11
|
+
}
|
|
12
|
+
export default euroc;
|
|
@@ -166,6 +166,7 @@ export { default as eth } from "./eth";
|
|
|
166
166
|
export { default as ethos } from "./ethos";
|
|
167
167
|
export { default as etn } from "./etn";
|
|
168
168
|
export { default as etp } from "./etp";
|
|
169
|
+
export { default as euroc } from "./euroc";
|
|
169
170
|
export { default as evmos } from "./evmos";
|
|
170
171
|
export { default as evx } from "./evx";
|
|
171
172
|
export { default as ewt } from "./ewt";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import Svg, { Path } from "react-native-svg";
|
|
6
|
+
interface Props {
|
|
7
|
+
size: number;
|
|
8
|
+
color: string;
|
|
9
|
+
};
|
|
10
|
+
function euroc({ size, color }: Props) {
|
|
11
|
+
return <Svg width={size} height={size} viewBox="0 0 24 24"><Path d="M0 12C0 5.373 5.373 0 12 0s12 5.373 12 12-5.373 12-12 12S0 18.627 0 12Z" fill={color} /><Path fill={color} d="m7.741 12.55-.434.587a.306.306 0 0 0 .273.444h1.423c.45 1.86 1.746 3.129 3.481 3.102 1.233 0 2.162-.613 2.782-1.833a.306.306 0 0 0-.149-.417l-.679-.303a.305.305 0 0 0-.398.143c-.32.65-.852 1.064-1.555 1.064-.637 0-1.148-.312-1.539-.941a3.452 3.452 0 0 1-.367-.815h1.822a.307.307 0 0 0 .274-.168l.435-.587a.306.306 0 0 0-.274-.444h-2.462a6.919 6.919 0 0 1-.002-.775h2.029a.309.309 0 0 0 .274-.168l.435-.587a.306.306 0 0 0-.274-.444h-2.259c.331-1.077 1.02-1.783 1.908-1.769.677 0 1.202.371 1.538.977a.303.303 0 0 0 .388.125l.682-.301a.306.306 0 0 0 .147-.426c-.63-1.137-1.548-1.709-2.755-1.709-1.101 0-1.982.438-2.652 1.307-.392.512-.664 1.112-.826 1.796h-.991a.309.309 0 0 0-.274.168l-.434.587a.306.306 0 0 0 .274.444h1.262a8.079 8.079 0 0 0-.005.775h-.823a.307.307 0 0 0-.273.168Z" /><Path fill={color} d="M4.104 11.494c.247-3.945 3.422-7.13 7.367-7.389a7.875 7.875 0 0 1 5.472 1.724c.144.115.35.11.488-.013l.581-.518a.379.379 0 0 0-.01-.574 9.397 9.397 0 0 0-6.408-2.152c-4.83.204-8.76 4.089-9.017 8.916a9.39 9.39 0 0 0 1.513 5.653.378.378 0 0 0 .568.073l.581-.518a.376.376 0 0 0 .068-.481 7.871 7.871 0 0 1-1.203-4.719ZM19.91 6.859a.378.378 0 0 0-.568-.073l-.581.518a.376.376 0 0 0-.069.481 7.87 7.87 0 0 1 1.204 4.719c-.247 3.945-3.423 7.13-7.367 7.389a7.875 7.875 0 0 1-5.472-1.723.377.377 0 0 0-.488.012l-.581.518a.379.379 0 0 0 .009.574 9.397 9.397 0 0 0 6.409 2.152c4.83-.204 8.76-4.09 9.016-8.917a9.398 9.398 0 0 0-1.513-5.652Z" /></Svg>;
|
|
12
|
+
}
|
|
13
|
+
export default euroc;
|
|
@@ -166,6 +166,7 @@ export { default as eth } from "./eth";
|
|
|
166
166
|
export { default as ethos } from "./ethos";
|
|
167
167
|
export { default as etn } from "./etn";
|
|
168
168
|
export { default as etp } from "./etp";
|
|
169
|
+
export { default as euroc } from "./euroc";
|
|
169
170
|
export { default as evmos } from "./evmos";
|
|
170
171
|
export { default as evx } from "./evx";
|
|
171
172
|
export { default as ewt } from "./ewt";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24">
|
|
2
|
+
<path d="M0 12C0 5.373 5.373 0 12 0s12 5.373 12 12-5.373 12-12 12S0 18.627 0 12Z" fill="#2775C9"/>
|
|
3
|
+
<path fill="#fff" d="m7.741 12.55-.434.587a.306.306 0 0 0 .273.444h1.423c.45 1.86 1.746 3.129 3.481 3.102 1.233 0 2.162-.613 2.782-1.833a.306.306 0 0 0-.149-.417l-.679-.303a.305.305 0 0 0-.398.143c-.32.65-.852 1.064-1.555 1.064-.637 0-1.148-.312-1.539-.941a3.452 3.452 0 0 1-.367-.815h1.822a.307.307 0 0 0 .274-.168l.435-.587a.306.306 0 0 0-.274-.444h-2.462a6.919 6.919 0 0 1-.002-.775h2.029a.309.309 0 0 0 .274-.168l.435-.587a.306.306 0 0 0-.274-.444h-2.259c.331-1.077 1.02-1.783 1.908-1.769.677 0 1.202.371 1.538.977a.303.303 0 0 0 .388.125l.682-.301a.306.306 0 0 0 .147-.426c-.63-1.137-1.548-1.709-2.755-1.709-1.101 0-1.982.438-2.652 1.307-.392.512-.664 1.112-.826 1.796h-.991a.309.309 0 0 0-.274.168l-.434.587a.306.306 0 0 0 .274.444h1.262a8.079 8.079 0 0 0-.005.775h-.823a.307.307 0 0 0-.273.168Z"/>
|
|
4
|
+
<path fill="#fff" d="M4.104 11.494c.247-3.945 3.422-7.13 7.367-7.389a7.875 7.875 0 0 1 5.472 1.724c.144.115.35.11.488-.013l.581-.518a.379.379 0 0 0-.01-.574 9.397 9.397 0 0 0-6.408-2.152c-4.83.204-8.76 4.089-9.017 8.916a9.39 9.39 0 0 0 1.513 5.653.378.378 0 0 0 .568.073l.581-.518a.376.376 0 0 0 .068-.481 7.871 7.871 0 0 1-1.203-4.719ZM19.91 6.859a.378.378 0 0 0-.568-.073l-.581.518a.376.376 0 0 0-.069.481 7.87 7.87 0 0 1 1.204 4.719c-.247 3.945-3.423 7.13-7.367 7.389a7.875 7.875 0 0 1-5.472-1.723.377.377 0 0 0-.488.012l-.581.518a.379.379 0 0 0 .009.574 9.397 9.397 0 0 0 6.409 2.152c4.83-.204 8.76-4.09 9.016-8.917a9.398 9.398 0 0 0-1.513-5.652Z"/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { DeviceId } from "@ledgerhq/types-live";
|
|
2
|
+
import {
|
|
3
|
+
FullActionState,
|
|
4
|
+
initialSharedActionState,
|
|
5
|
+
sharedReducer,
|
|
6
|
+
} from "./core";
|
|
7
|
+
import {
|
|
8
|
+
ToggleOnboardingEarlyCheckTaskError,
|
|
9
|
+
ToggleOnboardingEarlyCheckTaskEvent,
|
|
10
|
+
toggleOnboardingEarlyCheckTask,
|
|
11
|
+
} from "../tasks/toggleOnboardingEarlyCheck";
|
|
12
|
+
import { Observable } from "rxjs";
|
|
13
|
+
import { scan } from "rxjs/operators";
|
|
14
|
+
|
|
15
|
+
export type ToggleOnboardingEarlyCheckActionArgs = {
|
|
16
|
+
deviceId: DeviceId;
|
|
17
|
+
toggleType: "enter" | "exit";
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
// Union of all the tasks specific errors
|
|
21
|
+
export type ToggleOnboardingEarlyCheckActionErrorName =
|
|
22
|
+
ToggleOnboardingEarlyCheckTaskError;
|
|
23
|
+
|
|
24
|
+
export type ToggleOnboardingEarlyCheckActionState = FullActionState<{
|
|
25
|
+
toggleStatus: "none" | "success" | "failure";
|
|
26
|
+
error: {
|
|
27
|
+
type: "ToggleOnboardingEarlyCheckError";
|
|
28
|
+
name: ToggleOnboardingEarlyCheckActionErrorName;
|
|
29
|
+
} | null;
|
|
30
|
+
}>;
|
|
31
|
+
|
|
32
|
+
export const initialState: ToggleOnboardingEarlyCheckActionState = {
|
|
33
|
+
toggleStatus: "none",
|
|
34
|
+
...initialSharedActionState,
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* During the onboarding, makes the device enter or exit the early security check steps
|
|
39
|
+
*
|
|
40
|
+
* This action only puts (or moves out) the device to the state/step of the early security check.
|
|
41
|
+
* It does not starts any "security checks".
|
|
42
|
+
*
|
|
43
|
+
* If the device is not in the WELCOME or WELCOME_STEP2 onboarding state, this action will emit
|
|
44
|
+
* a "DeviceInInvalidState" event.
|
|
45
|
+
*
|
|
46
|
+
* @param deviceId The id of the targeted device that can be
|
|
47
|
+
* @param toggleType either "enter" or "exit"
|
|
48
|
+
* @returns An observable that emits updates on the of the onboarding early check toggling state
|
|
49
|
+
*/
|
|
50
|
+
export function toggleOnboardingEarlyCheckAction({
|
|
51
|
+
deviceId,
|
|
52
|
+
toggleType,
|
|
53
|
+
}: ToggleOnboardingEarlyCheckActionArgs): Observable<ToggleOnboardingEarlyCheckActionState> {
|
|
54
|
+
return toggleOnboardingEarlyCheckTask({ deviceId, toggleType }).pipe(
|
|
55
|
+
scan<
|
|
56
|
+
ToggleOnboardingEarlyCheckTaskEvent,
|
|
57
|
+
ToggleOnboardingEarlyCheckActionState
|
|
58
|
+
>((currentState, event) => {
|
|
59
|
+
switch (event.type) {
|
|
60
|
+
case "taskError":
|
|
61
|
+
return {
|
|
62
|
+
...initialState,
|
|
63
|
+
error: {
|
|
64
|
+
type: "ToggleOnboardingEarlyCheckError",
|
|
65
|
+
name: event.error,
|
|
66
|
+
},
|
|
67
|
+
toggleStatus: "failure",
|
|
68
|
+
};
|
|
69
|
+
case "success":
|
|
70
|
+
return {
|
|
71
|
+
...currentState,
|
|
72
|
+
error: null,
|
|
73
|
+
toggleStatus: "success",
|
|
74
|
+
};
|
|
75
|
+
case "error":
|
|
76
|
+
return {
|
|
77
|
+
...currentState,
|
|
78
|
+
...sharedReducer({
|
|
79
|
+
event,
|
|
80
|
+
}),
|
|
81
|
+
toggleStatus: "failure",
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
}, initialState)
|
|
85
|
+
);
|
|
86
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { MockTransport } from "@ledgerhq/hw-transport-mocker";
|
|
2
|
+
import {
|
|
3
|
+
ToggleTypeP2,
|
|
4
|
+
toggleOnboardingEarlyCheckCmd,
|
|
5
|
+
} from "./toggleOnboardingEarlyCheck";
|
|
6
|
+
import { StatusCodes, TransportStatusError } from "@ledgerhq/errors";
|
|
7
|
+
|
|
8
|
+
describe("@deviceSDK/commands/toggleOnboardingEarlyCheckCmd", () => {
|
|
9
|
+
describe("When the device is neither in the WELCOME and WELCOME_STEP2 onboarding state, and it returns 0x6982", () => {
|
|
10
|
+
it("should throw an error", (done) => {
|
|
11
|
+
const transport = new MockTransport(Buffer.from([0x69, 0x82]));
|
|
12
|
+
|
|
13
|
+
toggleOnboardingEarlyCheckCmd({
|
|
14
|
+
transport,
|
|
15
|
+
p2: ToggleTypeP2.EnterChecking,
|
|
16
|
+
}).subscribe({
|
|
17
|
+
next: (_) => {
|
|
18
|
+
done("An error should have been thrown");
|
|
19
|
+
},
|
|
20
|
+
error: (error: unknown) => {
|
|
21
|
+
try {
|
|
22
|
+
if (error instanceof TransportStatusError) {
|
|
23
|
+
// @ts-expect-error TransportStatusError not typed correctly
|
|
24
|
+
expect(error.statusCode).toBe(
|
|
25
|
+
StatusCodes.SECURITY_STATUS_NOT_SATISFIED
|
|
26
|
+
);
|
|
27
|
+
done();
|
|
28
|
+
} else {
|
|
29
|
+
done("An incorrect error has been received");
|
|
30
|
+
}
|
|
31
|
+
} catch (expectError) {
|
|
32
|
+
done(expectError);
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
describe("When the sent APDU is not respected the expected format, and it returns 0x6700", () => {
|
|
40
|
+
it("should throw an error", (done) => {
|
|
41
|
+
const transport = new MockTransport(Buffer.from([0x67, 0x00]));
|
|
42
|
+
|
|
43
|
+
toggleOnboardingEarlyCheckCmd({
|
|
44
|
+
transport,
|
|
45
|
+
p2: ToggleTypeP2.EnterChecking,
|
|
46
|
+
}).subscribe({
|
|
47
|
+
next: (_) => {
|
|
48
|
+
done("An error should have been thrown");
|
|
49
|
+
},
|
|
50
|
+
error: (error: unknown) => {
|
|
51
|
+
try {
|
|
52
|
+
if (error instanceof TransportStatusError) {
|
|
53
|
+
// @ts-expect-error TransportStatusError not typed correctly
|
|
54
|
+
expect(error.statusCode).toBe(StatusCodes.INCORRECT_LENGTH);
|
|
55
|
+
done();
|
|
56
|
+
} else {
|
|
57
|
+
done("An incorrect error has been received");
|
|
58
|
+
}
|
|
59
|
+
} catch (expectError) {
|
|
60
|
+
done(expectError);
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
describe("When the device is in the expected onboarding state", () => {
|
|
68
|
+
it("should be able to enter or exit the onboarding early checks step successfully", (done) => {
|
|
69
|
+
const transport = new MockTransport(Buffer.from([0x90, 0x00]));
|
|
70
|
+
|
|
71
|
+
// enter and exit have the same behavior
|
|
72
|
+
toggleOnboardingEarlyCheckCmd({
|
|
73
|
+
transport,
|
|
74
|
+
p2: ToggleTypeP2.EnterChecking,
|
|
75
|
+
}).subscribe({
|
|
76
|
+
next: (_) => {
|
|
77
|
+
done();
|
|
78
|
+
},
|
|
79
|
+
error: (error: unknown) => {
|
|
80
|
+
done(`No error should have been thrown: ${error}`);
|
|
81
|
+
},
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import Transport from "@ledgerhq/hw-transport";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
|
|
4
|
+
export enum ToggleTypeP2 {
|
|
5
|
+
EnterChecking = 0x00,
|
|
6
|
+
ExitChecking = 0x01,
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export type ToggleOnboardingEarlyCheckCmdEvent = { type: "success" };
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* During the onboarding, makes the device enter or exit the early security check steps
|
|
13
|
+
*
|
|
14
|
+
* This command only puts (or moves out) the device to the state/step of the early security check.
|
|
15
|
+
* It does not starts any "security checks".
|
|
16
|
+
*
|
|
17
|
+
* This new “checking” APDU is only supported in WELCOME and WELCOME_STEP2 onboarding state.
|
|
18
|
+
* This command will throw an error if the device is not in one of those 2 onboarding state.
|
|
19
|
+
*
|
|
20
|
+
* @param transport a Transport instance
|
|
21
|
+
* @param p2 the APDU p2 value limited to ToggleTypeP2 enum values representing enter or exit
|
|
22
|
+
* @returns An observable that emits a success event. Otherwise throws an error.
|
|
23
|
+
*/
|
|
24
|
+
export function toggleOnboardingEarlyCheckCmd({
|
|
25
|
+
transport,
|
|
26
|
+
p2,
|
|
27
|
+
}: {
|
|
28
|
+
transport: Transport;
|
|
29
|
+
p2: ToggleTypeP2;
|
|
30
|
+
}): Observable<ToggleOnboardingEarlyCheckCmdEvent> {
|
|
31
|
+
return new Observable((subscriber) => {
|
|
32
|
+
transport
|
|
33
|
+
.send(0xe0, 0x03, 0x00, p2)
|
|
34
|
+
.then(() => {
|
|
35
|
+
subscriber.next({ type: "success" });
|
|
36
|
+
subscriber.complete();
|
|
37
|
+
})
|
|
38
|
+
.catch((error) => {
|
|
39
|
+
subscriber.error(error);
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
}
|