@ledgerhq/live-common 34.48.0 → 34.49.0-nightly.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__/test-helpers/environment.js +1 -0
- package/lib/__tests__/test-helpers/environment.js.map +1 -1
- package/lib/apps/inlineAppInstall.d.ts +1 -3
- package/lib/apps/inlineAppInstall.d.ts.map +1 -1
- package/lib/apps/inlineAppInstall.js +2 -2
- package/lib/apps/inlineAppInstall.js.map +1 -1
- package/lib/apps/react.d.ts +1 -2
- package/lib/apps/react.d.ts.map +1 -1
- package/lib/apps/react.js +2 -2
- package/lib/apps/react.js.map +1 -1
- package/lib/apps/runner.d.ts +2 -4
- package/lib/apps/runner.d.ts.map +1 -1
- package/lib/apps/runner.js +3 -4
- package/lib/apps/runner.js.map +1 -1
- package/lib/bridge/generic-alpaca/accountBridge.d.ts +2 -1
- package/lib/bridge/generic-alpaca/accountBridge.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/accountBridge.js +2 -2
- package/lib/bridge/generic-alpaca/accountBridge.js.map +1 -1
- package/lib/bridge/generic-alpaca/alpaca/index.d.ts +1 -1
- package/lib/bridge/generic-alpaca/alpaca/index.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/alpaca/index.js +10 -6
- package/lib/bridge/generic-alpaca/alpaca/index.js.map +1 -1
- package/lib/bridge/generic-alpaca/alpaca/index.unit.test.js +37 -9
- package/lib/bridge/generic-alpaca/alpaca/index.unit.test.js.map +1 -1
- package/lib/bridge/generic-alpaca/broadcast.js +2 -2
- package/lib/bridge/generic-alpaca/broadcast.js.map +1 -1
- package/lib/bridge/generic-alpaca/createTransaction.d.ts +3 -23
- package/lib/bridge/generic-alpaca/createTransaction.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/createTransaction.js +11 -7
- package/lib/bridge/generic-alpaca/createTransaction.js.map +1 -1
- package/lib/bridge/generic-alpaca/currencyBridge.d.ts +2 -1
- package/lib/bridge/generic-alpaca/currencyBridge.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/currencyBridge.js +3 -2
- package/lib/bridge/generic-alpaca/currencyBridge.js.map +1 -1
- package/lib/bridge/generic-alpaca/estimateMaxSpendable.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/estimateMaxSpendable.js +4 -2
- package/lib/bridge/generic-alpaca/estimateMaxSpendable.js.map +1 -1
- package/lib/bridge/generic-alpaca/getAccountShape.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/getAccountShape.js +5 -5
- package/lib/bridge/generic-alpaca/getAccountShape.js.map +1 -1
- package/lib/bridge/generic-alpaca/getTransactionStatus.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/getTransactionStatus.js +2 -1
- package/lib/bridge/generic-alpaca/getTransactionStatus.js.map +1 -1
- package/lib/bridge/generic-alpaca/prepareTransaction.d.ts +5 -13
- package/lib/bridge/generic-alpaca/prepareTransaction.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/prepareTransaction.js +2 -2
- package/lib/bridge/generic-alpaca/prepareTransaction.js.map +1 -1
- package/lib/bridge/generic-alpaca/signOperation.d.ts +3 -2
- package/lib/bridge/generic-alpaca/signOperation.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/signOperation.js +19 -15
- package/lib/bridge/generic-alpaca/signOperation.js.map +1 -1
- package/lib/bridge/generic-alpaca/signer/Eth.d.ts +8 -0
- package/lib/bridge/generic-alpaca/signer/Eth.d.ts.map +1 -0
- package/lib/bridge/generic-alpaca/signer/Eth.js +51 -0
- package/lib/bridge/generic-alpaca/signer/Eth.js.map +1 -0
- package/lib/bridge/generic-alpaca/signer/index.d.ts +2 -10
- package/lib/bridge/generic-alpaca/signer/index.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/signer/index.js +2 -2
- package/lib/bridge/generic-alpaca/signer/index.js.map +1 -1
- package/lib/bridge/generic-alpaca/signer/signTransaction.d.ts +2 -3
- package/lib/bridge/generic-alpaca/signer/signTransaction.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/signer/signTransaction.js.map +1 -1
- package/lib/bridge/generic-alpaca/signer/types.d.ts +11 -0
- package/lib/bridge/generic-alpaca/signer/types.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/tests/getAccountShape.test.d.ts +2 -0
- package/lib/bridge/generic-alpaca/tests/getAccountShape.test.d.ts.map +1 -0
- package/lib/bridge/generic-alpaca/tests/getAccountShape.test.js +144 -0
- package/lib/bridge/generic-alpaca/tests/getAccountShape.test.js.map +1 -0
- package/lib/bridge/generic-alpaca/tests/prepareTransaction.test.js +2 -0
- package/lib/bridge/generic-alpaca/tests/prepareTransaction.test.js.map +1 -1
- package/lib/bridge/generic-alpaca/tests/signOperation.test.js +5 -4
- package/lib/bridge/generic-alpaca/tests/signOperation.test.js.map +1 -1
- package/lib/bridge/generic-alpaca/types.d.ts +25 -0
- package/lib/bridge/generic-alpaca/types.d.ts.map +1 -0
- package/lib/bridge/generic-alpaca/types.js +3 -0
- package/lib/bridge/generic-alpaca/types.js.map +1 -0
- package/lib/bridge/generic-alpaca/utils.d.ts +4 -8
- package/lib/bridge/generic-alpaca/utils.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/utils.js +15 -1
- package/lib/bridge/generic-alpaca/utils.js.map +1 -1
- package/lib/bridge/generic-alpaca/utils.test.js +21 -0
- package/lib/bridge/generic-alpaca/utils.test.js.map +1 -1
- package/lib/config/sharedConfig.d.ts.map +1 -1
- package/lib/config/sharedConfig.js +30 -28
- package/lib/config/sharedConfig.js.map +1 -1
- package/lib/e2e/data/deviceLabelsData.d.ts +27 -0
- package/lib/e2e/data/deviceLabelsData.d.ts.map +1 -0
- package/lib/e2e/data/deviceLabelsData.js +78 -0
- package/lib/e2e/data/deviceLabelsData.js.map +1 -0
- package/lib/e2e/enum/Account.d.ts +2 -0
- package/lib/e2e/enum/Account.d.ts.map +1 -1
- package/lib/e2e/enum/Account.js +2 -0
- package/lib/e2e/enum/Account.js.map +1 -1
- package/lib/e2e/enum/AppInfos.d.ts +1 -0
- package/lib/e2e/enum/AppInfos.d.ts.map +1 -1
- package/lib/e2e/enum/AppInfos.js +1 -0
- package/lib/e2e/enum/AppInfos.js.map +1 -1
- package/lib/e2e/enum/Currency.d.ts +1 -0
- package/lib/e2e/enum/Currency.d.ts.map +1 -1
- package/lib/e2e/enum/Currency.js +1 -0
- package/lib/e2e/enum/Currency.js.map +1 -1
- package/lib/e2e/enum/DeviceLabels.d.ts +51 -44
- package/lib/e2e/enum/DeviceLabels.d.ts.map +1 -1
- package/lib/e2e/enum/DeviceLabels.js +51 -44
- package/lib/e2e/enum/DeviceLabels.js.map +1 -1
- package/lib/e2e/enum/Network.d.ts +2 -1
- package/lib/e2e/enum/Network.d.ts.map +1 -1
- package/lib/e2e/enum/Network.js +1 -0
- package/lib/e2e/enum/Network.js.map +1 -1
- package/lib/e2e/families/cardano.d.ts.map +1 -1
- package/lib/e2e/families/cardano.js +1 -0
- package/lib/e2e/families/cardano.js.map +1 -1
- package/lib/e2e/families/celo.d.ts +1 -1
- package/lib/e2e/families/celo.d.ts.map +1 -1
- package/lib/e2e/families/celo.js +3 -5
- package/lib/e2e/families/celo.js.map +1 -1
- package/lib/e2e/families/cosmos.d.ts.map +1 -1
- package/lib/e2e/families/cosmos.js +1 -2
- package/lib/e2e/families/cosmos.js.map +1 -1
- package/lib/e2e/families/evm.d.ts.map +1 -1
- package/lib/e2e/families/evm.js +4 -1
- package/lib/e2e/families/evm.js.map +1 -1
- package/lib/e2e/families/kaspa.d.ts +4 -0
- package/lib/e2e/families/kaspa.d.ts.map +1 -0
- package/lib/e2e/families/kaspa.js +23 -0
- package/lib/e2e/families/kaspa.js.map +1 -0
- package/lib/e2e/families/multiversX.d.ts +2 -1
- package/lib/e2e/families/multiversX.d.ts.map +1 -1
- package/lib/e2e/families/multiversX.js +2 -4
- package/lib/e2e/families/multiversX.js.map +1 -1
- package/lib/e2e/families/near.d.ts.map +1 -1
- package/lib/e2e/families/near.js +1 -2
- package/lib/e2e/families/near.js.map +1 -1
- package/lib/e2e/families/osmosis.d.ts.map +1 -1
- package/lib/e2e/families/osmosis.js +1 -3
- package/lib/e2e/families/osmosis.js.map +1 -1
- package/lib/e2e/families/solana.d.ts +2 -1
- package/lib/e2e/families/solana.d.ts.map +1 -1
- package/lib/e2e/families/solana.js +6 -4
- package/lib/e2e/families/solana.js.map +1 -1
- package/lib/e2e/families/tezos.d.ts +2 -1
- package/lib/e2e/families/tezos.d.ts.map +1 -1
- package/lib/e2e/families/tezos.js +7 -5
- package/lib/e2e/families/tezos.js.map +1 -1
- package/lib/e2e/index.d.ts +5 -7
- package/lib/e2e/index.d.ts.map +1 -1
- package/lib/e2e/speculos.d.ts +2 -1
- package/lib/e2e/speculos.d.ts.map +1 -1
- package/lib/e2e/speculos.js +48 -28
- package/lib/e2e/speculos.js.map +1 -1
- package/lib/env.react.d.ts +1 -1
- package/lib/env.react.d.ts.map +1 -1
- package/lib/exchange/providers/swap.d.ts.map +1 -1
- package/lib/exchange/providers/swap.js +15 -0
- package/lib/exchange/providers/swap.js.map +1 -1
- package/lib/exchange/swap/transactionStrategies.d.ts +38 -11
- package/lib/exchange/swap/transactionStrategies.d.ts.map +1 -1
- package/lib/exchange/swap/transactionStrategies.js +93 -47
- package/lib/exchange/swap/transactionStrategies.js.map +1 -1
- package/lib/families/canton/config.d.ts.map +1 -1
- package/lib/families/canton/config.js +3 -5
- package/lib/families/canton/config.js.map +1 -1
- package/lib/families/canton/setup.d.ts.map +1 -1
- package/lib/families/canton/setup.js +5 -5
- package/lib/families/canton/setup.js.map +1 -1
- package/lib/families/evm/config.js +2 -2
- package/lib/families/evm/config.js.map +1 -1
- package/lib/families/kaspa/bridge.integration.test.d.ts +2 -0
- package/lib/families/kaspa/bridge.integration.test.d.ts.map +1 -0
- package/lib/families/kaspa/bridge.integration.test.js +7 -0
- package/lib/families/kaspa/bridge.integration.test.js.map +1 -0
- package/lib/families/kaspa/config.d.ts +3 -0
- package/lib/families/kaspa/config.d.ts.map +1 -0
- package/lib/families/kaspa/config.js +14 -0
- package/lib/families/kaspa/config.js.map +1 -0
- package/lib/families/kaspa/react.d.ts +4 -0
- package/lib/families/kaspa/react.d.ts.map +1 -0
- package/lib/families/kaspa/react.js +18 -0
- package/lib/families/kaspa/react.js.map +1 -0
- package/lib/families/kaspa/setup.d.ts +18 -0
- package/lib/families/kaspa/setup.d.ts.map +1 -0
- package/lib/families/kaspa/setup.js +24 -0
- package/lib/families/kaspa/setup.js.map +1 -0
- package/lib/families/kaspa/types.d.ts +2 -0
- package/lib/families/kaspa/types.d.ts.map +1 -0
- package/lib/families/kaspa/types.js +18 -0
- package/lib/families/kaspa/types.js.map +1 -0
- package/lib/families/solana/bridge/mock-data.d.ts.map +1 -1
- package/lib/families/solana/bridge/mock-data.js +7 -0
- package/lib/families/solana/bridge/mock-data.js.map +1 -1
- package/lib/families/xrp/setup.d.ts +2 -2
- package/lib/featureFlags/defaultFeatures.d.ts +1 -0
- package/lib/featureFlags/defaultFeatures.d.ts.map +1 -1
- package/lib/featureFlags/defaultFeatures.js +6 -2
- package/lib/featureFlags/defaultFeatures.js.map +1 -1
- package/lib/featureFlags/useFeature.d.ts +1 -1
- package/lib/featureFlags/useFeature.d.ts.map +1 -1
- package/lib/generated/bridge/js.d.ts +1 -0
- package/lib/generated/bridge/js.d.ts.map +1 -1
- package/lib/generated/bridge/js.js +24 -22
- package/lib/generated/bridge/js.js.map +1 -1
- package/lib/generated/bridge/mock.d.ts +1 -1
- package/lib/generated/cli-transaction.d.ts +13 -2
- package/lib/generated/cli-transaction.d.ts.map +1 -1
- package/lib/generated/cli-transaction.js +28 -26
- package/lib/generated/cli-transaction.js.map +1 -1
- package/lib/generated/deviceTransactionConfig.d.ts +2 -0
- package/lib/generated/deviceTransactionConfig.d.ts.map +1 -1
- package/lib/generated/deviceTransactionConfig.js +24 -22
- package/lib/generated/deviceTransactionConfig.js.map +1 -1
- package/lib/generated/hw-getAddress.d.ts +1 -0
- package/lib/generated/hw-getAddress.d.ts.map +1 -1
- package/lib/generated/hw-getAddress.js +28 -26
- package/lib/generated/hw-getAddress.js.map +1 -1
- package/lib/generated/platformAdapter.d.ts +1 -1
- package/lib/generated/specs.d.ts +1 -1
- package/lib/generated/transaction.d.ts +11 -3
- package/lib/generated/transaction.d.ts.map +1 -1
- package/lib/generated/transaction.js +28 -26
- package/lib/generated/transaction.js.map +1 -1
- package/lib/generated/types.d.ts +5 -4
- package/lib/generated/types.d.ts.map +1 -1
- package/lib/generated/walletApiAdapter.d.ts +1 -1
- package/lib/hw/actions/app.d.ts.map +1 -1
- package/lib/hw/actions/app.js.map +1 -1
- package/lib/hw/getDeviceNameMaxLength.d.ts.map +1 -1
- package/lib/hw/getDeviceNameMaxLength.js +2 -0
- package/lib/hw/getDeviceNameMaxLength.js.map +1 -1
- package/lib/hw/getDeviceNameMaxLength.test.js +12 -0
- package/lib/hw/getDeviceNameMaxLength.test.js.map +1 -1
- package/lib/modularDrawer/data/entities/interestRateSelectors.d.ts +1 -13
- package/lib/modularDrawer/data/entities/interestRateSelectors.d.ts.map +1 -1
- package/lib/modularDrawer/data/entities/interestRateSelectors.js +2 -17
- package/lib/modularDrawer/data/entities/interestRateSelectors.js.map +1 -1
- package/lib/modularDrawer/data/entities/marketSelectors.d.ts +4 -0
- package/lib/modularDrawer/data/entities/marketSelectors.d.ts.map +1 -0
- package/lib/modularDrawer/data/entities/marketSelectors.js +6 -0
- package/lib/modularDrawer/data/entities/marketSelectors.js.map +1 -0
- package/lib/modularDrawer/data/entities/selectorUtils.d.ts +18 -0
- package/lib/modularDrawer/data/entities/selectorUtils.d.ts.map +1 -0
- package/lib/modularDrawer/data/entities/selectorUtils.js +29 -0
- package/lib/modularDrawer/data/entities/selectorUtils.js.map +1 -0
- package/lib/modularDrawer/data/state-manager/api.d.ts.map +1 -1
- package/lib/modularDrawer/data/state-manager/api.js +3 -2
- package/lib/modularDrawer/data/state-manager/api.js.map +1 -1
- package/lib/modularDrawer/data/state-manager/types.d.ts +1 -0
- package/lib/modularDrawer/data/state-manager/types.d.ts.map +1 -1
- package/lib/modularDrawer/hooks/modules/useLeftMarketTrendModule.d.ts +50 -0
- package/lib/modularDrawer/hooks/modules/useLeftMarketTrendModule.d.ts.map +1 -0
- package/lib/modularDrawer/hooks/modules/useLeftMarketTrendModule.js +49 -0
- package/lib/modularDrawer/hooks/modules/useLeftMarketTrendModule.js.map +1 -0
- package/lib/modularDrawer/hooks/modules/useRightMarketTrendModule.d.ts +56 -0
- package/lib/modularDrawer/hooks/modules/useRightMarketTrendModule.d.ts.map +1 -0
- package/lib/modularDrawer/hooks/modules/useRightMarketTrendModule.js +59 -0
- package/lib/modularDrawer/hooks/modules/useRightMarketTrendModule.js.map +1 -0
- package/lib/modularDrawer/hooks/useAssetsData.d.ts +3 -1
- package/lib/modularDrawer/hooks/useAssetsData.d.ts.map +1 -1
- package/lib/modularDrawer/hooks/useAssetsData.js +6 -3
- package/lib/modularDrawer/hooks/useAssetsData.js.map +1 -1
- package/lib/modularDrawer/hooks/useMarketByCurrencies.d.ts +3 -0
- package/lib/modularDrawer/hooks/useMarketByCurrencies.d.ts.map +1 -0
- package/lib/modularDrawer/hooks/useMarketByCurrencies.js +26 -0
- package/lib/modularDrawer/hooks/useMarketByCurrencies.js.map +1 -0
- package/lib/modularDrawer/hooks/useSearch.d.ts +16 -0
- package/lib/modularDrawer/hooks/useSearch.d.ts.map +1 -0
- package/lib/modularDrawer/hooks/useSearch.js +24 -0
- package/lib/modularDrawer/hooks/useSearch.js.map +1 -0
- package/lib/modularDrawer/modules/createAssetConfiguration.d.ts.map +1 -1
- package/lib/modularDrawer/modules/createAssetConfiguration.js +8 -0
- package/lib/modularDrawer/modules/createAssetConfiguration.js.map +1 -1
- package/lib/modularDrawer/utils/type.d.ts +7 -0
- package/lib/modularDrawer/utils/type.d.ts.map +1 -1
- package/lib/notifications/ServiceStatusProvider/index.d.ts +1 -16
- package/lib/notifications/ServiceStatusProvider/index.d.ts.map +1 -1
- package/lib/notifications/ServiceStatusProvider/index.js +7 -31
- package/lib/notifications/ServiceStatusProvider/index.js.map +1 -1
- package/lib/wallet-api/ACRE/server.d.ts +13 -6
- package/lib/wallet-api/ACRE/server.d.ts.map +1 -1
- package/lib/wallet-api/ACRE/server.js +142 -1
- package/lib/wallet-api/ACRE/server.js.map +1 -1
- package/lib/wallet-api/ACRE/server.test.d.ts +2 -0
- package/lib/wallet-api/ACRE/server.test.d.ts.map +1 -0
- package/lib/wallet-api/ACRE/server.test.js +393 -0
- package/lib/wallet-api/ACRE/server.test.js.map +1 -0
- package/lib/wallet-api/Exchange/server.d.ts.map +1 -1
- package/lib/wallet-api/Exchange/server.js +16 -13
- package/lib/wallet-api/Exchange/server.js.map +1 -1
- package/lib-es/__tests__/test-helpers/environment.js +1 -0
- package/lib-es/__tests__/test-helpers/environment.js.map +1 -1
- package/lib-es/apps/inlineAppInstall.d.ts +1 -3
- package/lib-es/apps/inlineAppInstall.d.ts.map +1 -1
- package/lib-es/apps/inlineAppInstall.js +2 -2
- package/lib-es/apps/inlineAppInstall.js.map +1 -1
- package/lib-es/apps/react.d.ts +1 -2
- package/lib-es/apps/react.d.ts.map +1 -1
- package/lib-es/apps/react.js +2 -2
- package/lib-es/apps/react.js.map +1 -1
- package/lib-es/apps/runner.d.ts +2 -4
- package/lib-es/apps/runner.d.ts.map +1 -1
- package/lib-es/apps/runner.js +3 -4
- package/lib-es/apps/runner.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/accountBridge.d.ts +2 -1
- package/lib-es/bridge/generic-alpaca/accountBridge.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/accountBridge.js +2 -2
- package/lib-es/bridge/generic-alpaca/accountBridge.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/alpaca/index.d.ts +1 -1
- package/lib-es/bridge/generic-alpaca/alpaca/index.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/alpaca/index.js +10 -6
- package/lib-es/bridge/generic-alpaca/alpaca/index.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/alpaca/index.unit.test.js +37 -9
- package/lib-es/bridge/generic-alpaca/alpaca/index.unit.test.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/broadcast.js +2 -2
- package/lib-es/bridge/generic-alpaca/broadcast.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/createTransaction.d.ts +3 -23
- package/lib-es/bridge/generic-alpaca/createTransaction.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/createTransaction.js +10 -6
- package/lib-es/bridge/generic-alpaca/createTransaction.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/currencyBridge.d.ts +2 -1
- package/lib-es/bridge/generic-alpaca/currencyBridge.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/currencyBridge.js +3 -2
- package/lib-es/bridge/generic-alpaca/currencyBridge.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/estimateMaxSpendable.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/estimateMaxSpendable.js +4 -2
- package/lib-es/bridge/generic-alpaca/estimateMaxSpendable.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/getAccountShape.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/getAccountShape.js +5 -5
- package/lib-es/bridge/generic-alpaca/getAccountShape.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/getTransactionStatus.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/getTransactionStatus.js +2 -1
- package/lib-es/bridge/generic-alpaca/getTransactionStatus.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/prepareTransaction.d.ts +5 -13
- package/lib-es/bridge/generic-alpaca/prepareTransaction.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/prepareTransaction.js +2 -2
- package/lib-es/bridge/generic-alpaca/prepareTransaction.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/signOperation.d.ts +3 -2
- package/lib-es/bridge/generic-alpaca/signOperation.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/signOperation.js +19 -15
- package/lib-es/bridge/generic-alpaca/signOperation.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/signer/Eth.d.ts +8 -0
- package/lib-es/bridge/generic-alpaca/signer/Eth.d.ts.map +1 -0
- package/lib-es/bridge/generic-alpaca/signer/Eth.js +47 -0
- package/lib-es/bridge/generic-alpaca/signer/Eth.js.map +1 -0
- package/lib-es/bridge/generic-alpaca/signer/index.d.ts +2 -10
- package/lib-es/bridge/generic-alpaca/signer/index.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/signer/index.js +2 -2
- package/lib-es/bridge/generic-alpaca/signer/index.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/signer/signTransaction.d.ts +2 -3
- package/lib-es/bridge/generic-alpaca/signer/signTransaction.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/signer/signTransaction.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/signer/types.d.ts +11 -0
- package/lib-es/bridge/generic-alpaca/signer/types.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/tests/getAccountShape.test.d.ts +2 -0
- package/lib-es/bridge/generic-alpaca/tests/getAccountShape.test.d.ts.map +1 -0
- package/lib-es/bridge/generic-alpaca/tests/getAccountShape.test.js +139 -0
- package/lib-es/bridge/generic-alpaca/tests/getAccountShape.test.js.map +1 -0
- package/lib-es/bridge/generic-alpaca/tests/prepareTransaction.test.js +2 -0
- package/lib-es/bridge/generic-alpaca/tests/prepareTransaction.test.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/tests/signOperation.test.js +5 -4
- package/lib-es/bridge/generic-alpaca/tests/signOperation.test.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/types.d.ts +25 -0
- package/lib-es/bridge/generic-alpaca/types.d.ts.map +1 -0
- package/lib-es/bridge/generic-alpaca/types.js +2 -0
- package/lib-es/bridge/generic-alpaca/types.js.map +1 -0
- package/lib-es/bridge/generic-alpaca/utils.d.ts +4 -8
- package/lib-es/bridge/generic-alpaca/utils.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/utils.js +13 -0
- package/lib-es/bridge/generic-alpaca/utils.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/utils.test.js +22 -1
- package/lib-es/bridge/generic-alpaca/utils.test.js.map +1 -1
- package/lib-es/config/sharedConfig.d.ts.map +1 -1
- package/lib-es/config/sharedConfig.js +2 -0
- package/lib-es/config/sharedConfig.js.map +1 -1
- package/lib-es/e2e/data/deviceLabelsData.d.ts +27 -0
- package/lib-es/e2e/data/deviceLabelsData.d.ts.map +1 -0
- package/lib-es/e2e/data/deviceLabelsData.js +75 -0
- package/lib-es/e2e/data/deviceLabelsData.js.map +1 -0
- package/lib-es/e2e/enum/Account.d.ts +2 -0
- package/lib-es/e2e/enum/Account.d.ts.map +1 -1
- package/lib-es/e2e/enum/Account.js +2 -0
- package/lib-es/e2e/enum/Account.js.map +1 -1
- package/lib-es/e2e/enum/AppInfos.d.ts +1 -0
- package/lib-es/e2e/enum/AppInfos.d.ts.map +1 -1
- package/lib-es/e2e/enum/AppInfos.js +1 -0
- package/lib-es/e2e/enum/AppInfos.js.map +1 -1
- package/lib-es/e2e/enum/Currency.d.ts +1 -0
- package/lib-es/e2e/enum/Currency.d.ts.map +1 -1
- package/lib-es/e2e/enum/Currency.js +1 -0
- package/lib-es/e2e/enum/Currency.js.map +1 -1
- package/lib-es/e2e/enum/DeviceLabels.d.ts +51 -44
- package/lib-es/e2e/enum/DeviceLabels.d.ts.map +1 -1
- package/lib-es/e2e/enum/DeviceLabels.js +51 -44
- package/lib-es/e2e/enum/DeviceLabels.js.map +1 -1
- package/lib-es/e2e/enum/Network.d.ts +2 -1
- package/lib-es/e2e/enum/Network.d.ts.map +1 -1
- package/lib-es/e2e/enum/Network.js +1 -0
- package/lib-es/e2e/enum/Network.js.map +1 -1
- package/lib-es/e2e/families/cardano.d.ts.map +1 -1
- package/lib-es/e2e/families/cardano.js +1 -0
- package/lib-es/e2e/families/cardano.js.map +1 -1
- package/lib-es/e2e/families/celo.d.ts +1 -1
- package/lib-es/e2e/families/celo.d.ts.map +1 -1
- package/lib-es/e2e/families/celo.js +4 -6
- package/lib-es/e2e/families/celo.js.map +1 -1
- package/lib-es/e2e/families/cosmos.d.ts.map +1 -1
- package/lib-es/e2e/families/cosmos.js +2 -3
- package/lib-es/e2e/families/cosmos.js.map +1 -1
- package/lib-es/e2e/families/evm.d.ts.map +1 -1
- package/lib-es/e2e/families/evm.js +5 -2
- package/lib-es/e2e/families/evm.js.map +1 -1
- package/lib-es/e2e/families/kaspa.d.ts +4 -0
- package/lib-es/e2e/families/kaspa.d.ts.map +1 -0
- package/lib-es/e2e/families/kaspa.js +15 -0
- package/lib-es/e2e/families/kaspa.js.map +1 -0
- package/lib-es/e2e/families/multiversX.d.ts +2 -1
- package/lib-es/e2e/families/multiversX.d.ts.map +1 -1
- package/lib-es/e2e/families/multiversX.js +3 -5
- package/lib-es/e2e/families/multiversX.js.map +1 -1
- package/lib-es/e2e/families/near.d.ts.map +1 -1
- package/lib-es/e2e/families/near.js +2 -3
- package/lib-es/e2e/families/near.js.map +1 -1
- package/lib-es/e2e/families/osmosis.d.ts.map +1 -1
- package/lib-es/e2e/families/osmosis.js +2 -4
- package/lib-es/e2e/families/osmosis.js.map +1 -1
- package/lib-es/e2e/families/solana.d.ts +2 -1
- package/lib-es/e2e/families/solana.d.ts.map +1 -1
- package/lib-es/e2e/families/solana.js +7 -5
- package/lib-es/e2e/families/solana.js.map +1 -1
- package/lib-es/e2e/families/tezos.d.ts +2 -1
- package/lib-es/e2e/families/tezos.d.ts.map +1 -1
- package/lib-es/e2e/families/tezos.js +8 -6
- package/lib-es/e2e/families/tezos.js.map +1 -1
- package/lib-es/e2e/index.d.ts +5 -7
- package/lib-es/e2e/index.d.ts.map +1 -1
- package/lib-es/e2e/speculos.d.ts +2 -1
- package/lib-es/e2e/speculos.d.ts.map +1 -1
- package/lib-es/e2e/speculos.js +46 -27
- package/lib-es/e2e/speculos.js.map +1 -1
- package/lib-es/env.react.d.ts +1 -1
- package/lib-es/env.react.d.ts.map +1 -1
- package/lib-es/exchange/providers/swap.d.ts.map +1 -1
- package/lib-es/exchange/providers/swap.js +15 -0
- package/lib-es/exchange/providers/swap.js.map +1 -1
- package/lib-es/exchange/swap/transactionStrategies.d.ts +38 -11
- package/lib-es/exchange/swap/transactionStrategies.d.ts.map +1 -1
- package/lib-es/exchange/swap/transactionStrategies.js +87 -44
- package/lib-es/exchange/swap/transactionStrategies.js.map +1 -1
- package/lib-es/families/canton/config.d.ts.map +1 -1
- package/lib-es/families/canton/config.js +3 -5
- package/lib-es/families/canton/config.js.map +1 -1
- package/lib-es/families/canton/setup.d.ts.map +1 -1
- package/lib-es/families/canton/setup.js +5 -5
- package/lib-es/families/canton/setup.js.map +1 -1
- package/lib-es/families/evm/config.js +2 -2
- package/lib-es/families/evm/config.js.map +1 -1
- package/lib-es/families/kaspa/bridge.integration.test.d.ts +2 -0
- package/lib-es/families/kaspa/bridge.integration.test.d.ts.map +1 -0
- package/lib-es/families/kaspa/bridge.integration.test.js +5 -0
- package/lib-es/families/kaspa/bridge.integration.test.js.map +1 -0
- package/lib-es/families/kaspa/config.d.ts +3 -0
- package/lib-es/families/kaspa/config.d.ts.map +1 -0
- package/lib-es/families/kaspa/config.js +11 -0
- package/lib-es/families/kaspa/config.js.map +1 -0
- package/lib-es/families/kaspa/react.d.ts +4 -0
- package/lib-es/families/kaspa/react.d.ts.map +1 -0
- package/lib-es/families/kaspa/react.js +14 -0
- package/lib-es/families/kaspa/react.js.map +1 -0
- package/lib-es/families/kaspa/setup.d.ts +18 -0
- package/lib-es/families/kaspa/setup.d.ts.map +1 -0
- package/lib-es/families/kaspa/setup.js +16 -0
- package/lib-es/families/kaspa/setup.js.map +1 -0
- package/lib-es/families/kaspa/types.d.ts +2 -0
- package/lib-es/families/kaspa/types.d.ts.map +1 -0
- package/lib-es/families/kaspa/types.js +2 -0
- package/lib-es/families/kaspa/types.js.map +1 -0
- package/lib-es/families/solana/bridge/mock-data.d.ts.map +1 -1
- package/lib-es/families/solana/bridge/mock-data.js +7 -0
- package/lib-es/families/solana/bridge/mock-data.js.map +1 -1
- package/lib-es/families/xrp/setup.d.ts +2 -2
- package/lib-es/featureFlags/defaultFeatures.d.ts +1 -0
- package/lib-es/featureFlags/defaultFeatures.d.ts.map +1 -1
- package/lib-es/featureFlags/defaultFeatures.js +6 -2
- package/lib-es/featureFlags/defaultFeatures.js.map +1 -1
- package/lib-es/featureFlags/useFeature.d.ts +1 -1
- package/lib-es/featureFlags/useFeature.d.ts.map +1 -1
- package/lib-es/generated/bridge/js.d.ts +1 -0
- package/lib-es/generated/bridge/js.d.ts.map +1 -1
- package/lib-es/generated/bridge/js.js +2 -0
- package/lib-es/generated/bridge/js.js.map +1 -1
- package/lib-es/generated/bridge/mock.d.ts +1 -1
- package/lib-es/generated/cli-transaction.d.ts +13 -2
- package/lib-es/generated/cli-transaction.d.ts.map +1 -1
- package/lib-es/generated/cli-transaction.js +2 -0
- package/lib-es/generated/cli-transaction.js.map +1 -1
- package/lib-es/generated/deviceTransactionConfig.d.ts +2 -0
- package/lib-es/generated/deviceTransactionConfig.d.ts.map +1 -1
- package/lib-es/generated/deviceTransactionConfig.js +2 -0
- package/lib-es/generated/deviceTransactionConfig.js.map +1 -1
- package/lib-es/generated/hw-getAddress.d.ts +1 -0
- package/lib-es/generated/hw-getAddress.d.ts.map +1 -1
- package/lib-es/generated/hw-getAddress.js +2 -0
- package/lib-es/generated/hw-getAddress.js.map +1 -1
- package/lib-es/generated/platformAdapter.d.ts +1 -1
- package/lib-es/generated/specs.d.ts +1 -1
- package/lib-es/generated/transaction.d.ts +11 -3
- package/lib-es/generated/transaction.d.ts.map +1 -1
- package/lib-es/generated/transaction.js +2 -0
- package/lib-es/generated/transaction.js.map +1 -1
- package/lib-es/generated/types.d.ts +5 -4
- package/lib-es/generated/types.d.ts.map +1 -1
- package/lib-es/generated/walletApiAdapter.d.ts +1 -1
- package/lib-es/hw/actions/app.d.ts.map +1 -1
- package/lib-es/hw/actions/app.js.map +1 -1
- package/lib-es/hw/getDeviceNameMaxLength.d.ts.map +1 -1
- package/lib-es/hw/getDeviceNameMaxLength.js +2 -0
- package/lib-es/hw/getDeviceNameMaxLength.js.map +1 -1
- package/lib-es/hw/getDeviceNameMaxLength.test.js +12 -0
- package/lib-es/hw/getDeviceNameMaxLength.test.js.map +1 -1
- package/lib-es/modularDrawer/data/entities/interestRateSelectors.d.ts +1 -13
- package/lib-es/modularDrawer/data/entities/interestRateSelectors.d.ts.map +1 -1
- package/lib-es/modularDrawer/data/entities/interestRateSelectors.js +2 -17
- package/lib-es/modularDrawer/data/entities/interestRateSelectors.js.map +1 -1
- package/lib-es/modularDrawer/data/entities/marketSelectors.d.ts +4 -0
- package/lib-es/modularDrawer/data/entities/marketSelectors.d.ts.map +1 -0
- package/lib-es/modularDrawer/data/entities/marketSelectors.js +3 -0
- package/lib-es/modularDrawer/data/entities/marketSelectors.js.map +1 -0
- package/lib-es/modularDrawer/data/entities/selectorUtils.d.ts +18 -0
- package/lib-es/modularDrawer/data/entities/selectorUtils.d.ts.map +1 -0
- package/lib-es/modularDrawer/data/entities/selectorUtils.js +25 -0
- package/lib-es/modularDrawer/data/entities/selectorUtils.js.map +1 -0
- package/lib-es/modularDrawer/data/state-manager/api.d.ts.map +1 -1
- package/lib-es/modularDrawer/data/state-manager/api.js +3 -2
- package/lib-es/modularDrawer/data/state-manager/api.js.map +1 -1
- package/lib-es/modularDrawer/data/state-manager/types.d.ts +1 -0
- package/lib-es/modularDrawer/data/state-manager/types.d.ts.map +1 -1
- package/lib-es/modularDrawer/hooks/modules/useLeftMarketTrendModule.d.ts +50 -0
- package/lib-es/modularDrawer/hooks/modules/useLeftMarketTrendModule.d.ts.map +1 -0
- package/lib-es/modularDrawer/hooks/modules/useLeftMarketTrendModule.js +22 -0
- package/lib-es/modularDrawer/hooks/modules/useLeftMarketTrendModule.js.map +1 -0
- package/lib-es/modularDrawer/hooks/modules/useRightMarketTrendModule.d.ts +56 -0
- package/lib-es/modularDrawer/hooks/modules/useRightMarketTrendModule.d.ts.map +1 -0
- package/lib-es/modularDrawer/hooks/modules/useRightMarketTrendModule.js +32 -0
- package/lib-es/modularDrawer/hooks/modules/useRightMarketTrendModule.js.map +1 -0
- package/lib-es/modularDrawer/hooks/useAssetsData.d.ts +3 -1
- package/lib-es/modularDrawer/hooks/useAssetsData.d.ts.map +1 -1
- package/lib-es/modularDrawer/hooks/useAssetsData.js +6 -3
- package/lib-es/modularDrawer/hooks/useAssetsData.js.map +1 -1
- package/lib-es/modularDrawer/hooks/useMarketByCurrencies.d.ts +3 -0
- package/lib-es/modularDrawer/hooks/useMarketByCurrencies.d.ts.map +1 -0
- package/lib-es/modularDrawer/hooks/useMarketByCurrencies.js +22 -0
- package/lib-es/modularDrawer/hooks/useMarketByCurrencies.js.map +1 -0
- package/lib-es/modularDrawer/hooks/useSearch.d.ts +16 -0
- package/lib-es/modularDrawer/hooks/useSearch.d.ts.map +1 -0
- package/lib-es/modularDrawer/hooks/useSearch.js +20 -0
- package/lib-es/modularDrawer/hooks/useSearch.js.map +1 -0
- package/lib-es/modularDrawer/modules/createAssetConfiguration.d.ts.map +1 -1
- package/lib-es/modularDrawer/modules/createAssetConfiguration.js +8 -0
- package/lib-es/modularDrawer/modules/createAssetConfiguration.js.map +1 -1
- package/lib-es/modularDrawer/utils/type.d.ts +7 -0
- package/lib-es/modularDrawer/utils/type.d.ts.map +1 -1
- package/lib-es/notifications/ServiceStatusProvider/index.d.ts +1 -16
- package/lib-es/notifications/ServiceStatusProvider/index.d.ts.map +1 -1
- package/lib-es/notifications/ServiceStatusProvider/index.js +7 -31
- package/lib-es/notifications/ServiceStatusProvider/index.js.map +1 -1
- package/lib-es/wallet-api/ACRE/server.d.ts +13 -6
- package/lib-es/wallet-api/ACRE/server.d.ts.map +1 -1
- package/lib-es/wallet-api/ACRE/server.js +140 -2
- package/lib-es/wallet-api/ACRE/server.js.map +1 -1
- package/lib-es/wallet-api/ACRE/server.test.d.ts +2 -0
- package/lib-es/wallet-api/ACRE/server.test.d.ts.map +1 -0
- package/lib-es/wallet-api/ACRE/server.test.js +388 -0
- package/lib-es/wallet-api/ACRE/server.test.js.map +1 -0
- package/lib-es/wallet-api/Exchange/server.d.ts.map +1 -1
- package/lib-es/wallet-api/Exchange/server.js +16 -13
- package/lib-es/wallet-api/Exchange/server.js.map +1 -1
- package/package.json +71 -68
- package/src/__tests__/test-helpers/environment.ts +1 -0
- package/src/apps/inlineAppInstall.ts +1 -4
- package/src/apps/react.ts +1 -3
- package/src/apps/runner.ts +1 -8
- package/src/bridge/generic-alpaca/accountBridge.ts +8 -3
- package/src/bridge/generic-alpaca/alpaca/index.ts +15 -17
- package/src/bridge/generic-alpaca/alpaca/index.unit.test.ts +38 -10
- package/src/bridge/generic-alpaca/broadcast.ts +2 -2
- package/src/bridge/generic-alpaca/createTransaction.ts +13 -24
- package/src/bridge/generic-alpaca/currencyBridge.ts +8 -2
- package/src/bridge/generic-alpaca/estimateMaxSpendable.ts +5 -7
- package/src/bridge/generic-alpaca/getAccountShape.ts +7 -7
- package/src/bridge/generic-alpaca/getTransactionStatus.ts +5 -14
- package/src/bridge/generic-alpaca/prepareTransaction.ts +10 -17
- package/src/bridge/generic-alpaca/signOperation.ts +25 -31
- package/src/bridge/generic-alpaca/signer/Eth.ts +70 -0
- package/src/bridge/generic-alpaca/signer/index.ts +5 -15
- package/src/bridge/generic-alpaca/signer/signTransaction.ts +4 -3
- package/src/bridge/generic-alpaca/signer/types.ts +14 -0
- package/src/bridge/generic-alpaca/tests/getAccountShape.test.ts +173 -0
- package/src/bridge/generic-alpaca/tests/prepareTransaction.test.ts +3 -2
- package/src/bridge/generic-alpaca/tests/signOperation.test.ts +6 -5
- package/src/bridge/generic-alpaca/types.ts +23 -0
- package/src/bridge/generic-alpaca/utils.test.ts +29 -1
- package/src/bridge/generic-alpaca/utils.ts +17 -8
- package/src/config/sharedConfig.ts +2 -0
- package/src/e2e/data/deviceLabelsData.ts +100 -0
- package/src/e2e/enum/Account.ts +14 -0
- package/src/e2e/enum/AppInfos.ts +2 -0
- package/src/e2e/enum/Currency.ts +2 -0
- package/src/e2e/enum/DeviceLabels.ts +51 -44
- package/src/e2e/enum/Network.ts +1 -0
- package/src/e2e/families/cardano.ts +1 -0
- package/src/e2e/families/celo.ts +4 -6
- package/src/e2e/families/cosmos.ts +7 -3
- package/src/e2e/families/evm.ts +12 -2
- package/src/e2e/families/kaspa.ts +17 -0
- package/src/e2e/families/multiversX.ts +4 -5
- package/src/e2e/families/near.ts +8 -3
- package/src/e2e/families/osmosis.ts +2 -4
- package/src/e2e/families/solana.ts +15 -5
- package/src/e2e/families/tezos.ts +10 -6
- package/src/e2e/speculos.ts +67 -28
- package/src/exchange/providers/swap.ts +21 -0
- package/src/exchange/swap/transactionStrategies.ts +121 -73
- package/src/families/canton/config.ts +3 -6
- package/src/families/canton/setup.ts +6 -5
- package/src/families/evm/config.ts +2 -2
- package/src/families/kaspa/__snapshots__/bridge.integration.test.ts.snap +66 -0
- package/src/families/kaspa/bridge.integration.test.ts +5 -0
- package/src/families/kaspa/config.ts +12 -0
- package/src/families/kaspa/react.ts +19 -0
- package/src/families/kaspa/setup.ts +27 -0
- package/src/families/kaspa/types.ts +1 -0
- package/src/families/solana/bridge/mock-data.ts +7 -0
- package/src/featureFlags/defaultFeatures.ts +6 -2
- package/src/generated/bridge/js.ts +2 -0
- package/src/generated/cli-transaction.ts +2 -0
- package/src/generated/deviceTransactionConfig.ts +2 -0
- package/src/generated/hw-getAddress.ts +2 -0
- package/src/generated/transaction.ts +2 -0
- package/src/generated/types.ts +10 -0
- package/src/hw/actions/app.ts +0 -1
- package/src/hw/getDeviceNameMaxLength.test.ts +16 -0
- package/src/hw/getDeviceNameMaxLength.ts +2 -0
- package/src/modularDrawer/data/entities/interestRateSelectors.ts +2 -34
- package/src/modularDrawer/data/entities/marketSelectors.ts +8 -0
- package/src/modularDrawer/data/entities/selectorUtils.ts +42 -0
- package/src/modularDrawer/data/state-manager/api.ts +4 -2
- package/src/modularDrawer/data/state-manager/types.ts +1 -0
- package/src/modularDrawer/hooks/modules/useLeftMarketTrendModule.tsx +36 -0
- package/src/modularDrawer/hooks/modules/useRightMarketTrendModule.tsx +57 -0
- package/src/modularDrawer/hooks/useAssetsData.ts +24 -9
- package/src/modularDrawer/hooks/useMarketByCurrencies.ts +29 -0
- package/src/modularDrawer/hooks/useSearch.ts +52 -0
- package/src/modularDrawer/modules/createAssetConfiguration.ts +10 -0
- package/src/modularDrawer/utils/type.ts +2 -0
- package/src/notifications/ServiceStatusProvider/index.tsx +12 -37
- package/src/wallet-api/ACRE/server.test.ts +470 -0
- package/src/wallet-api/ACRE/server.ts +202 -14
- package/src/wallet-api/Exchange/server.ts +17 -14
- package/lib/exchange/providers/swap.integration.test.d.ts +0 -2
- package/lib/exchange/providers/swap.integration.test.d.ts.map +0 -1
- package/lib/exchange/providers/swap.integration.test.js +0 -201
- package/lib/exchange/providers/swap.integration.test.js.map +0 -1
- package/lib/notifications/ServiceStatusProvider/index.test.d.ts +0 -2
- package/lib/notifications/ServiceStatusProvider/index.test.d.ts.map +0 -1
- package/lib/notifications/ServiceStatusProvider/index.test.js +0 -88
- package/lib/notifications/ServiceStatusProvider/index.test.js.map +0 -1
- package/lib/notifications/ServiceStatusProvider/ledger-components.d.ts +0 -2
- package/lib/notifications/ServiceStatusProvider/ledger-components.d.ts.map +0 -1
- package/lib/notifications/ServiceStatusProvider/ledger-components.js +0 -16
- package/lib/notifications/ServiceStatusProvider/ledger-components.js.map +0 -1
- package/lib-es/exchange/providers/swap.integration.test.d.ts +0 -2
- package/lib-es/exchange/providers/swap.integration.test.d.ts.map +0 -1
- package/lib-es/exchange/providers/swap.integration.test.js +0 -199
- package/lib-es/exchange/providers/swap.integration.test.js.map +0 -1
- package/lib-es/notifications/ServiceStatusProvider/index.test.d.ts +0 -2
- package/lib-es/notifications/ServiceStatusProvider/index.test.d.ts.map +0 -1
- package/lib-es/notifications/ServiceStatusProvider/index.test.js +0 -86
- package/lib-es/notifications/ServiceStatusProvider/index.test.js.map +0 -1
- package/lib-es/notifications/ServiceStatusProvider/ledger-components.d.ts +0 -2
- package/lib-es/notifications/ServiceStatusProvider/ledger-components.d.ts.map +0 -1
- package/lib-es/notifications/ServiceStatusProvider/ledger-components.js +0 -13
- package/lib-es/notifications/ServiceStatusProvider/ledger-components.js.map +0 -1
- package/src/exchange/providers/swap.integration.test.ts +0 -261
- package/src/notifications/ServiceStatusProvider/index.test.ts +0 -102
- package/src/notifications/ServiceStatusProvider/ledger-components.ts +0 -12
@@ -8,7 +8,8 @@ import {
|
|
8
8
|
isTokenAccount,
|
9
9
|
} from "@ledgerhq/coin-framework/account/index";
|
10
10
|
import { Account, AccountLike, AnyMessage, Operation, SignedOperation } from "@ledgerhq/types-live";
|
11
|
-
import { findTokenById } from "@ledgerhq/cryptoassets";
|
11
|
+
import { findTokenById, findTokenByAddressInCurrency } from "@ledgerhq/cryptoassets";
|
12
|
+
import { getCryptoCurrencyById } from "@ledgerhq/cryptoassets/currencies";
|
12
13
|
import {
|
13
14
|
MessageSignParams,
|
14
15
|
MessageSignResult,
|
@@ -18,17 +19,21 @@ import {
|
|
18
19
|
TransactionSignAndBroadcastResult,
|
19
20
|
TransactionSignParams,
|
20
21
|
TransactionSignResult,
|
22
|
+
RegisterYieldBearingEthereumAddressParams,
|
23
|
+
RegisterYieldBearingEthereumAddressResult,
|
21
24
|
} from "@ledgerhq/wallet-api-acre-module";
|
22
|
-
import {
|
25
|
+
import { Transaction } from "../../generated/types";
|
23
26
|
import { AppManifest } from "../types";
|
27
|
+
import { TrackingAPI } from "./tracking";
|
24
28
|
import {
|
25
29
|
getAccountIdFromWalletAccountId,
|
26
30
|
getWalletAPITransactionSignFlowInfos,
|
27
31
|
} from "../converters";
|
28
32
|
import { getAccountBridge } from "../../bridge";
|
29
|
-
import { Transaction } from "../../generated/types";
|
30
33
|
import { UserRefusedOnDevice } from "@ledgerhq/errors";
|
31
34
|
import { getEnv } from "@ledgerhq/live-env";
|
35
|
+
import BigNumber from "bignumber.js";
|
36
|
+
import { CryptoCurrency, TokenCurrency } from "@ledgerhq/types-cryptoassets";
|
32
37
|
|
33
38
|
type Handlers = {
|
34
39
|
"custom.acre.messageSign": RPCHandler<MessageSignResult, MessageSignParams>;
|
@@ -37,9 +42,13 @@ type Handlers = {
|
|
37
42
|
TransactionSignAndBroadcastResult,
|
38
43
|
TransactionSignAndBroadcastParams
|
39
44
|
>;
|
45
|
+
"custom.acre.registerYieldBearingEthereumAddress": RPCHandler<
|
46
|
+
RegisterYieldBearingEthereumAddressResult,
|
47
|
+
RegisterYieldBearingEthereumAddressParams
|
48
|
+
>;
|
40
49
|
};
|
41
50
|
|
42
|
-
type ACREUiHooks = {
|
51
|
+
export type ACREUiHooks = {
|
43
52
|
"custom.acre.messageSign": (params: {
|
44
53
|
account: AccountLike;
|
45
54
|
message: AnyMessage;
|
@@ -66,8 +75,117 @@ type ACREUiHooks = {
|
|
66
75
|
mainAccount: Account,
|
67
76
|
optimisticOperation: Operation,
|
68
77
|
) => void;
|
78
|
+
"custom.acre.registerAccount": (params: {
|
79
|
+
parentAccount: Account;
|
80
|
+
accountName: string;
|
81
|
+
existingAccounts: Account[];
|
82
|
+
onSuccess: () => void;
|
83
|
+
onError: (error: Error) => void;
|
84
|
+
}) => void;
|
69
85
|
};
|
70
86
|
|
87
|
+
// Helper function to validate Ethereum address format
|
88
|
+
function isValidEthereumAddress(address: string): boolean {
|
89
|
+
return /^0x[a-fA-F0-9]{40}$/.test(address);
|
90
|
+
}
|
91
|
+
|
92
|
+
// Helper function to validate all inputs before account creation
|
93
|
+
function validateInputs(params: RegisterYieldBearingEthereumAddressParams): {
|
94
|
+
ethereumAddress: string;
|
95
|
+
tokenContractAddress?: string;
|
96
|
+
tokenTicker?: string;
|
97
|
+
meta?: Record<string, unknown>;
|
98
|
+
} {
|
99
|
+
const { ethereumAddress, tokenContractAddress, tokenTicker, meta } = params;
|
100
|
+
|
101
|
+
// Validate Ethereum address format
|
102
|
+
if (!ethereumAddress) {
|
103
|
+
throw new Error("Ethereum address is required");
|
104
|
+
}
|
105
|
+
if (!isValidEthereumAddress(ethereumAddress)) {
|
106
|
+
throw new Error("Invalid Ethereum address format");
|
107
|
+
}
|
108
|
+
|
109
|
+
// Validate that at least one token identifier is provided
|
110
|
+
if (!tokenContractAddress && !tokenTicker) {
|
111
|
+
throw new Error("Either tokenContractAddress or tokenTicker must be provided");
|
112
|
+
}
|
113
|
+
|
114
|
+
return { ethereumAddress, tokenContractAddress, tokenTicker, meta };
|
115
|
+
}
|
116
|
+
|
117
|
+
// Helper function to find acreToken by address or token id
|
118
|
+
function findAcreToken(
|
119
|
+
tokenContractAddress?: string,
|
120
|
+
tokenTicker?: string,
|
121
|
+
): { token: TokenCurrency; contractAddress: string } {
|
122
|
+
let foundToken: TokenCurrency | undefined;
|
123
|
+
// Try to find token by contract address first (if provided)
|
124
|
+
if (tokenContractAddress) {
|
125
|
+
foundToken = findTokenByAddressInCurrency(tokenContractAddress, "ethereum");
|
126
|
+
} else if (tokenTicker) {
|
127
|
+
foundToken = findTokenById(tokenTicker.toLowerCase());
|
128
|
+
}
|
129
|
+
if (!foundToken) {
|
130
|
+
throw new Error(
|
131
|
+
`Token not found. Tried contract address: ${tokenContractAddress || "not provided"}, ticker: ${tokenTicker || "not provided"}`,
|
132
|
+
);
|
133
|
+
}
|
134
|
+
return { token: foundToken, contractAddress: foundToken.contractAddress };
|
135
|
+
}
|
136
|
+
|
137
|
+
// Helper function to generate unique account names with suffixes
|
138
|
+
// This is clearly a hack as we do not have account name on Account type, we leverage on how many accounts have acreBTC as token sub account to define the name
|
139
|
+
// This is made to help user to identify different ACRE account but not resilient to token account being wiped, emptied
|
140
|
+
// (empty subAccount would not been included in the list therefore parent account not considered as an acre account anymore).
|
141
|
+
function generateUniqueAccountName(
|
142
|
+
existingAccounts: Account[],
|
143
|
+
baseName: string,
|
144
|
+
tokenAddress: string,
|
145
|
+
): string {
|
146
|
+
const existingAccountWithAcreToken = existingAccounts.flatMap(
|
147
|
+
account =>
|
148
|
+
account.subAccounts?.filter(
|
149
|
+
subAccount => subAccount.token.contractAddress.toLowerCase() === tokenAddress.toLowerCase(),
|
150
|
+
) || [],
|
151
|
+
);
|
152
|
+
return existingAccountWithAcreToken.length > 0
|
153
|
+
? `${baseName} ${existingAccountWithAcreToken.length}`
|
154
|
+
: baseName;
|
155
|
+
}
|
156
|
+
|
157
|
+
// Helper function to create parent Ethereum account
|
158
|
+
function createParentAccount(ethereumAddress: string, ethereumCurrency: CryptoCurrency): Account {
|
159
|
+
return {
|
160
|
+
type: "Account" as const,
|
161
|
+
id: `js:2:ethereum:${ethereumAddress}:`,
|
162
|
+
seedIdentifier: `04${ethereumAddress.slice(2)}`,
|
163
|
+
derivationMode: "" as any,
|
164
|
+
index: 0,
|
165
|
+
freshAddress: ethereumAddress,
|
166
|
+
freshAddressPath: "44'/60'/0'/0/0",
|
167
|
+
used: false,
|
168
|
+
blockHeight: 0,
|
169
|
+
creationDate: new Date(),
|
170
|
+
balance: new BigNumber(0),
|
171
|
+
spendableBalance: new BigNumber(0),
|
172
|
+
operationsCount: 0,
|
173
|
+
operations: [],
|
174
|
+
pendingOperations: [],
|
175
|
+
currency: ethereumCurrency,
|
176
|
+
lastSyncDate: new Date(),
|
177
|
+
swapHistory: [],
|
178
|
+
balanceHistoryCache: {
|
179
|
+
HOUR: { latestDate: Date.now(), balances: [] },
|
180
|
+
DAY: { latestDate: Date.now(), balances: [] },
|
181
|
+
WEEK: { latestDate: Date.now(), balances: [] },
|
182
|
+
},
|
183
|
+
syncHash: "0x00000000", // Use proper hash format
|
184
|
+
subAccounts: [], // Add empty subAccounts array
|
185
|
+
nfts: [],
|
186
|
+
};
|
187
|
+
}
|
188
|
+
|
71
189
|
export const handlers = ({
|
72
190
|
accounts,
|
73
191
|
tracking,
|
@@ -76,6 +194,7 @@ export const handlers = ({
|
|
76
194
|
"custom.acre.messageSign": uiMessageSign,
|
77
195
|
"custom.acre.transactionSign": uiTransactionSign,
|
78
196
|
"custom.acre.transactionBroadcast": uiTransactionBroadcast,
|
197
|
+
"custom.acre.registerAccount": uiRegisterAccount,
|
79
198
|
},
|
80
199
|
}: {
|
81
200
|
accounts: AccountLike[];
|
@@ -92,20 +211,16 @@ export const handlers = ({
|
|
92
211
|
const transaction = deserializeTransaction(rawTransaction);
|
93
212
|
|
94
213
|
tracking.signTransactionRequested(manifest);
|
95
|
-
|
96
214
|
if (!transaction) {
|
97
215
|
tracking.signTransactionFail(manifest);
|
98
216
|
return Promise.reject(new Error("Transaction required"));
|
99
217
|
}
|
100
|
-
|
101
218
|
const accountId = getAccountIdFromWalletAccountId(walletAccountId);
|
102
219
|
if (!accountId) {
|
103
220
|
tracking.signTransactionFail(manifest);
|
104
221
|
return Promise.reject(new Error(`accountId ${walletAccountId} unknown`));
|
105
222
|
}
|
106
|
-
|
107
223
|
const account = accounts.find(account => account.id === accountId);
|
108
|
-
|
109
224
|
if (!account) {
|
110
225
|
tracking.signTransactionFail(manifest);
|
111
226
|
return Promise.reject(new Error("Account required"));
|
@@ -120,7 +235,6 @@ export const handlers = ({
|
|
120
235
|
const mainAccount = getMainAccount(account, parentAccount);
|
121
236
|
const currency = tokenCurrency ? findTokenById(tokenCurrency) : null;
|
122
237
|
const signerAccount = currency ? makeEmptyTokenAccount(mainAccount, currency) : account;
|
123
|
-
|
124
238
|
const { canEditFees, liveTx, hasFeesProvided } = getWalletAPITransactionSignFlowInfos({
|
125
239
|
walletApiTransaction: transaction,
|
126
240
|
account,
|
@@ -162,7 +276,6 @@ export const handlers = ({
|
|
162
276
|
});
|
163
277
|
});
|
164
278
|
}
|
165
|
-
|
166
279
|
return {
|
167
280
|
"custom.acre.messageSign": customWrapper<MessageSignParams, MessageSignResult>(async params => {
|
168
281
|
if (!params) {
|
@@ -275,7 +388,6 @@ export const handlers = ({
|
|
275
388
|
const broadcastAccount = getMainAccount(signerAccount, parentAccount);
|
276
389
|
|
277
390
|
let optimisticOperation: Operation = signedOperation.operation;
|
278
|
-
|
279
391
|
if (!getEnv("DISABLE_TRANSACTION_BROADCAST")) {
|
280
392
|
try {
|
281
393
|
optimisticOperation = await bridge.broadcast({
|
@@ -288,17 +400,93 @@ export const handlers = ({
|
|
288
400
|
throw error;
|
289
401
|
}
|
290
402
|
}
|
291
|
-
|
292
403
|
uiTransactionBroadcast &&
|
293
404
|
uiTransactionBroadcast(account, parentAccount, mainAccount, optimisticOperation);
|
294
|
-
|
295
405
|
return {
|
296
406
|
transactionHash: optimisticOperation.hash,
|
297
407
|
};
|
298
408
|
}),
|
409
|
+
"custom.acre.registerYieldBearingEthereumAddress": customWrapper<
|
410
|
+
RegisterYieldBearingEthereumAddressParams,
|
411
|
+
RegisterYieldBearingEthereumAddressResult
|
412
|
+
>(async params => {
|
413
|
+
if (!params) {
|
414
|
+
return Promise.reject(new Error("Parameters required"));
|
415
|
+
}
|
416
|
+
const validatedInputs = validateInputs(params);
|
417
|
+
const ethereumCurrency = getCryptoCurrencyById("ethereum");
|
418
|
+
const { token: existingToken, contractAddress: finalTokenContractAddress } = findAcreToken(
|
419
|
+
validatedInputs.tokenContractAddress,
|
420
|
+
validatedInputs.tokenTicker,
|
421
|
+
);
|
422
|
+
const existingBearingAccount = accounts.find(
|
423
|
+
account =>
|
424
|
+
"freshAddress" in account &&
|
425
|
+
(account as any).freshAddress === validatedInputs.ethereumAddress,
|
426
|
+
);
|
427
|
+
const baseName = "Yield-bearing BTC on ACRE";
|
428
|
+
// Account already added, skip registration.
|
429
|
+
if (existingBearingAccount) {
|
430
|
+
return {
|
431
|
+
success: true,
|
432
|
+
accountName: baseName,
|
433
|
+
parentAccountId: existingBearingAccount.id,
|
434
|
+
tokenAccountId: existingBearingAccount.id,
|
435
|
+
ethereumAddress: validatedInputs.ethereumAddress,
|
436
|
+
tokenContractAddress: finalTokenContractAddress,
|
437
|
+
meta: validatedInputs.meta,
|
438
|
+
};
|
439
|
+
}
|
440
|
+
|
441
|
+
if (uiRegisterAccount) {
|
442
|
+
// Create account & manage the case where an ACRE account has been already registered on another Ethereum address
|
443
|
+
// Filter to have only root accounts
|
444
|
+
const existingParentAccounts = accounts.filter(
|
445
|
+
(acc): acc is Account => acc.type === "Account",
|
446
|
+
);
|
447
|
+
const accountName = generateUniqueAccountName(
|
448
|
+
existingParentAccounts,
|
449
|
+
baseName,
|
450
|
+
finalTokenContractAddress,
|
451
|
+
);
|
452
|
+
const parentAccount = createParentAccount(
|
453
|
+
validatedInputs.ethereumAddress,
|
454
|
+
ethereumCurrency,
|
455
|
+
);
|
456
|
+
const tokenAccount = makeEmptyTokenAccount(parentAccount, existingToken);
|
457
|
+
// Add token account as sub-account of parent account
|
458
|
+
const parentAccountWithSubAccount = {
|
459
|
+
...parentAccount,
|
460
|
+
subAccounts: [tokenAccount],
|
461
|
+
};
|
462
|
+
|
463
|
+
return new Promise((resolve, reject) => {
|
464
|
+
uiRegisterAccount({
|
465
|
+
parentAccount: parentAccountWithSubAccount,
|
466
|
+
accountName,
|
467
|
+
existingAccounts: existingParentAccounts,
|
468
|
+
onSuccess: () => {
|
469
|
+
resolve({
|
470
|
+
success: true,
|
471
|
+
accountName,
|
472
|
+
parentAccountId: parentAccountWithSubAccount.id,
|
473
|
+
tokenAccountId: tokenAccount.id,
|
474
|
+
ethereumAddress: validatedInputs.ethereumAddress,
|
475
|
+
tokenContractAddress: finalTokenContractAddress,
|
476
|
+
meta: validatedInputs.meta,
|
477
|
+
});
|
478
|
+
},
|
479
|
+
onError: error => {
|
480
|
+
reject(error);
|
481
|
+
},
|
482
|
+
});
|
483
|
+
});
|
484
|
+
} else {
|
485
|
+
throw new Error("No account registration UI hook available");
|
486
|
+
}
|
487
|
+
}),
|
299
488
|
} as const satisfies Handlers;
|
300
489
|
};
|
301
|
-
|
302
490
|
function fromRelativePath(basePath: string, derivationPath?: string) {
|
303
491
|
if (!derivationPath) {
|
304
492
|
return basePath;
|
@@ -53,7 +53,6 @@ import { getSwapStepFromError } from "../../exchange/error";
|
|
53
53
|
import { postSwapCancelled } from "../../exchange/swap";
|
54
54
|
import { DeviceModelId } from "@ledgerhq/types-devices";
|
55
55
|
import { setBroadcastTransaction } from "../../exchange/swap/setBroadcastTransaction";
|
56
|
-
import { FAMILIES_MAPPING_LL_TO_WAPI } from "../constants";
|
57
56
|
|
58
57
|
export { ExchangeType };
|
59
58
|
|
@@ -486,14 +485,11 @@ export const handlers = ({
|
|
486
485
|
});
|
487
486
|
|
488
487
|
const mainFromAccount = getMainAccount(fromAccount, fromParentAccount);
|
489
|
-
const mainFromAccountFamily =
|
490
|
-
FAMILIES_MAPPING_LL_TO_WAPI[mainFromAccount.currency.family] ||
|
491
|
-
mainFromAccount.currency.family;
|
492
488
|
|
493
|
-
if (transaction.family !==
|
489
|
+
if (transaction.family !== mainFromAccount.currency.family) {
|
494
490
|
return Promise.reject(
|
495
491
|
new Error(
|
496
|
-
`Account and transaction must be from the same family. Account family: ${
|
492
|
+
`Account and transaction must be from the same family. Account family: ${mainFromAccount.currency.family}, Transaction family: ${transaction.family}`,
|
497
493
|
),
|
498
494
|
);
|
499
495
|
}
|
@@ -804,27 +800,34 @@ async function getStrategy(
|
|
804
800
|
delete customFeeConfig.utxoStrategy;
|
805
801
|
}
|
806
802
|
|
807
|
-
|
808
|
-
const familyKey = FAMILIES_MAPPING_LL_TO_WAPI[family] || family;
|
809
|
-
const strategy = transactionStrategy?.[familyKey];
|
803
|
+
const strategy = transactionStrategy?.[family];
|
810
804
|
|
811
805
|
if (!strategy) {
|
812
|
-
throw new Error(`No transaction strategy found for family: ${
|
806
|
+
throw new Error(`No transaction strategy found for family: ${family}`);
|
807
|
+
}
|
808
|
+
|
809
|
+
// Convert customFeeConfig values to BigNumber
|
810
|
+
const convertedCustomFeeConfig: { [key: string]: BigNumber } = {};
|
811
|
+
if (customFeeConfig) {
|
812
|
+
for (const [key, value] of Object.entries(customFeeConfig)) {
|
813
|
+
convertedCustomFeeConfig[key] = new BigNumber(value?.toString() || 0);
|
814
|
+
}
|
813
815
|
}
|
814
816
|
|
815
817
|
try {
|
816
818
|
return await strategy({
|
817
|
-
family
|
818
|
-
amount,
|
819
|
+
family,
|
820
|
+
amount: new BigNumber(amount),
|
819
821
|
recipient,
|
820
|
-
customFeeConfig:
|
822
|
+
customFeeConfig: convertedCustomFeeConfig,
|
821
823
|
payinExtraId,
|
822
824
|
extraTransactionParameters,
|
823
825
|
customErrorType,
|
824
826
|
});
|
825
827
|
} catch (error) {
|
828
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
826
829
|
throw new Error(
|
827
|
-
`Failed to execute transaction strategy for family: ${
|
830
|
+
`Failed to execute transaction strategy for family: ${family}. Reason: ${errorMessage}`,
|
828
831
|
);
|
829
832
|
}
|
830
833
|
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"swap.integration.test.d.ts","sourceRoot":"","sources":["../../../src/exchange/providers/swap.integration.test.ts"],"names":[],"mappings":""}
|
@@ -1,201 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const swap_1 = require("./swap");
|
4
|
-
describe("fetchAndMergeProviderData", () => {
|
5
|
-
it("returns all data in expected format", async () => {
|
6
|
-
// When
|
7
|
-
const providers = await (0, swap_1.fetchAndMergeProviderData)({
|
8
|
-
ledgerSignatureEnv: "prod",
|
9
|
-
partnerSignatureEnv: "prod",
|
10
|
-
});
|
11
|
-
// Then
|
12
|
-
expect(providers).toEqual({
|
13
|
-
changelly: {
|
14
|
-
displayName: "Changelly",
|
15
|
-
useInExchangeApp: true,
|
16
|
-
mainUrl: "https://changelly.com/",
|
17
|
-
name: "Changelly",
|
18
|
-
needsKYC: false,
|
19
|
-
usefulUrls: [
|
20
|
-
"https://changelly.com/terms-of-use",
|
21
|
-
"https://changelly.com/aml-kyc",
|
22
|
-
"https://support.changelly.com/en/support/tickets/new",
|
23
|
-
],
|
24
|
-
publicKey: {
|
25
|
-
curve: "secp256k1",
|
26
|
-
data: Buffer.from("0480d7c0d3a9183597395f58dda05999328da6f18fabd5cda0aff8e8e3fc633436a2dbf48ecb23d40df7c3c7d3e774b77b4b5df0e9f7e08cf1cdf2dba788eb085b", "hex"),
|
27
|
-
},
|
28
|
-
signature: Buffer.from("3045022100e73339e5071b5d232e8cacecbd7c118c919122a43f8abb8b2062d4bfcd58274e022050b11605d8b7e199f791266146227c43fd11d7645b1d881f705a2f8841d21de5", "hex"),
|
29
|
-
supportUrl: "https://support.changelly.com/en/support/home",
|
30
|
-
termsOfUseUrl: "https://changelly.com/terms-of-use",
|
31
|
-
type: "CEX",
|
32
|
-
version: 1,
|
33
|
-
},
|
34
|
-
changelly_v2: {
|
35
|
-
displayName: "Changelly",
|
36
|
-
name: "Changelly",
|
37
|
-
useInExchangeApp: true,
|
38
|
-
publicKey: {
|
39
|
-
curve: "secp256k1",
|
40
|
-
data: Buffer.from("0480d7c0d3a9183597395f58dda05999328da6f18fabd5cda0aff8e8e3fc633436a2dbf48ecb23d40df7c3c7d3e774b77b4b5df0e9f7e08cf1cdf2dba788eb085b", "hex"),
|
41
|
-
},
|
42
|
-
signature: Buffer.from("3045022100c2db00da651cfcc84702f75ab5f131a3f037592080ea750a6f665a8cb36797c802200e594938cdf2c836b34717f57487002a0588f2088f64f00a6c4d320fd37db6fa", "hex"),
|
43
|
-
needsKYC: false,
|
44
|
-
type: "CEX",
|
45
|
-
usefulUrls: [
|
46
|
-
"https://changelly.com/terms-of-use",
|
47
|
-
"https://changelly.com/aml-kyc",
|
48
|
-
"https://support.changelly.com/en/support/tickets/new",
|
49
|
-
],
|
50
|
-
termsOfUseUrl: "https://changelly.com/terms-of-use",
|
51
|
-
supportUrl: "https://support.changelly.com/en/support/home",
|
52
|
-
mainUrl: "https://changelly.com/",
|
53
|
-
version: 2,
|
54
|
-
},
|
55
|
-
changenow: {
|
56
|
-
name: "ChangeNOW",
|
57
|
-
publicKey: {
|
58
|
-
curve: "secp256k1",
|
59
|
-
data: Buffer.from("04f5cbcda3cf0fdb2f150de0bed95b5c0f9ef1db1c8ca5b615d33093f9c8e290eeb7985c2ca2ef765bcf63bf9ade5a5d432d6e7d959e748053b6228e4faf439fc2", "hex"),
|
60
|
-
},
|
61
|
-
signature: Buffer.from("3045022100a321d8023cfe4262ef46dfc581350588cfc737d4052fbeb239c7bf92cf8263140220644871cad6c1dbadf853ecafb7d2b80d6c24cd2c473f1e51ebd3bdbe86d4afde", "hex"),
|
62
|
-
version: 1,
|
63
|
-
},
|
64
|
-
cic: {
|
65
|
-
displayName: "CIC",
|
66
|
-
mainUrl: "https://criptointercambio.com/",
|
67
|
-
useInExchangeApp: true,
|
68
|
-
name: "CIC",
|
69
|
-
needsKYC: false,
|
70
|
-
publicKey: {
|
71
|
-
curve: "secp256k1",
|
72
|
-
data: Buffer.from("0444a71652995d15ef0d4d6fe8de21a0c8ad48bdbfea7f789319973669785ca96abca9fd0c504c3074d9b654f0e3a76dde642a03efe4ccdee3af3ca4ba4afa202d", "hex"),
|
73
|
-
},
|
74
|
-
signature: Buffer.from("3044022078a73433ab6289027b7a169a260f180d16346f7ab55b06a22109f68a756d691d0220190edd6e1214c3309dc1b0afe90d217b728377491561383f2ee543e2c90188eb", "hex"),
|
75
|
-
supportUrl: "https://criptointercambio.com/en/about",
|
76
|
-
termsOfUseUrl: "https://criptointercambio.com/terms-of-use",
|
77
|
-
type: "CEX",
|
78
|
-
version: 1,
|
79
|
-
},
|
80
|
-
exodus: {
|
81
|
-
displayName: "Exodus",
|
82
|
-
useInExchangeApp: true,
|
83
|
-
mainUrl: "https://www.exodus.com/",
|
84
|
-
name: "Exodus",
|
85
|
-
needsKYC: false,
|
86
|
-
publicKey: {
|
87
|
-
curve: "secp256k1",
|
88
|
-
data: Buffer.from("048abacf1b1027b7c5f96d77826eada263e21d2ba8a2a037a84e0679e05d997a91ff34df181f88bdaf3521c26fb70eb028622f3afd66d0c282d5bb61da38ad76c1", "hex"),
|
89
|
-
},
|
90
|
-
signature: Buffer.from("304402206803fd43c5e0af3bf6e4b6a049c3a10f4d44f4b7b6e2bb4cb2cfd3958cfc3192022063ad397ad75769396bdb776bc4e7a8ca9af09c7b583fa9f0b7690bb7d1cbed50", "hex"),
|
91
|
-
supportUrl: "mailto:support@xopay.com",
|
92
|
-
termsOfUseUrl: "https://www.exodus.com/terms/",
|
93
|
-
type: "CEX",
|
94
|
-
version: 2,
|
95
|
-
},
|
96
|
-
ftx: {
|
97
|
-
name: "FTX",
|
98
|
-
publicKey: {
|
99
|
-
curve: "secp256k1",
|
100
|
-
data: Buffer.from("04c89f3e48cde252f6cd6fcccc47c2f6ca6cf05f9f921703d31b7a7dddbf0bd6a690744662fe599f8761612021ba1fc0e8a5a4b7d5910c625b6dd09aa40762e5cd", "hex"),
|
101
|
-
},
|
102
|
-
signature: Buffer.from("3044022029c0fb80d6e524f811f30cc04a349fa7f8896ce1ba84010da55f7be5eb9d528802202727985361cab969ad9b4f56570f3f6120c1d77d04ba10e5d99366d8eecee8e2", "hex"),
|
103
|
-
version: 1,
|
104
|
-
},
|
105
|
-
lifi: {
|
106
|
-
type: "CEX",
|
107
|
-
displayName: "LI.FI",
|
108
|
-
name: "LI.FI",
|
109
|
-
useInExchangeApp: true,
|
110
|
-
termsOfUseUrl: "https://li.fi/legal/terms-and-conditions/",
|
111
|
-
supportUrl: "https://discord.gg/jumperexchange",
|
112
|
-
mainUrl: "https://li.fi/",
|
113
|
-
needsKYC: false,
|
114
|
-
version: 2,
|
115
|
-
publicKey: {
|
116
|
-
curve: "secp256k1",
|
117
|
-
data: Buffer.from("04e5f4fa0f28dec3b1f52934f29bd91ab862b003a531d67ba3864e3ba4303be8e815a619ee6f78e8079acf46f0d0d8fc664be2f343d1c9a20c4d2420f51a56ccea", "hex"),
|
118
|
-
},
|
119
|
-
signature: Buffer.from("3044022041344dba7353fe94a4d24a20285b5afaa8fa9a022a62e1042d059b0f1d37cbc302200a3ed5d661df0c44d78c439939c4c49868936c7357da3807a19104bcfb323d24", "hex"),
|
120
|
-
},
|
121
|
-
moonpay: {
|
122
|
-
displayName: "MoonPay",
|
123
|
-
useInExchangeApp: true,
|
124
|
-
mainUrl: "https://www.moonpay.com/",
|
125
|
-
name: "MoonPay",
|
126
|
-
needsKYC: true,
|
127
|
-
publicKey: {
|
128
|
-
curve: "secp256k1",
|
129
|
-
data: Buffer.from("044989cad389020fadfb9d7a85d29338a450beec571347d2989fb57b99ecddbc8907cf8c229deee30fb8ac139e978cab8f6efad76bde2a9c6d6710ceda1fe0a4d8", "hex"),
|
130
|
-
},
|
131
|
-
signature: Buffer.from("3045022100a63e1ca73525e2e05fc9e95b906793f252fef7df14f1cd830640a1266f8e11e202205714c92b6829108dd7cc60f4e13917cdc7b4bc5048d83d4db65b19c61e7b8a41", "hex"),
|
132
|
-
supportUrl: "https://support.moonpay.com/",
|
133
|
-
termsOfUseUrl: "https://www.moonpay.com/legal/terms_of_use_row",
|
134
|
-
type: "CEX",
|
135
|
-
version: 2,
|
136
|
-
},
|
137
|
-
oneinch: {
|
138
|
-
displayName: "1inch",
|
139
|
-
useInExchangeApp: false,
|
140
|
-
mainUrl: "https://1inch.io/",
|
141
|
-
needsKYC: false,
|
142
|
-
supportUrl: "https://help.1inch.io/en/",
|
143
|
-
termsOfUseUrl: "https://1inch.io/assets/1inch_network_terms_of_use.pdf",
|
144
|
-
type: "DEX",
|
145
|
-
},
|
146
|
-
paraswap: {
|
147
|
-
displayName: "Paraswap",
|
148
|
-
mainUrl: "https://www.paraswap.io/",
|
149
|
-
useInExchangeApp: false,
|
150
|
-
needsKYC: false,
|
151
|
-
supportUrl: "https://help.paraswap.io/en/",
|
152
|
-
termsOfUseUrl: "https://files.paraswap.io/tos_v4.pdf",
|
153
|
-
type: "DEX",
|
154
|
-
},
|
155
|
-
thorswap: {
|
156
|
-
displayName: "THORChain",
|
157
|
-
mainUrl: "https://www.thorswap.finance/",
|
158
|
-
name: "THORSwap",
|
159
|
-
useInExchangeApp: true,
|
160
|
-
needsKYC: false,
|
161
|
-
publicKey: {
|
162
|
-
curve: "secp256r1",
|
163
|
-
data: Buffer.from("0480a453a91e728c5f622d966b90d15de6fdb6c267bb8147dd0e0d4e1c730d631594e724aaf2b2f526600f3713ce6bc2adbfdbaafd2121bfee64fce93fd59a9050", "hex"),
|
164
|
-
},
|
165
|
-
signature: Buffer.from("304402207a9676f6971575cad70e4ef4d937ebdba82c51e6a0ab5343c11fefa18dff326d0220643f0718da68ead3fd9900eb90bca782d533d1698c8ea1435ae232ddf2e94229", "hex"),
|
166
|
-
supportUrl: "https://ledgerhelp.swapkit.dev/",
|
167
|
-
termsOfUseUrl: "https://docs.thorswap.finance/thorswap/resources/terms-of-service",
|
168
|
-
type: "DEX",
|
169
|
-
version: 2,
|
170
|
-
},
|
171
|
-
uniswap: {
|
172
|
-
displayName: "Uniswap",
|
173
|
-
useInExchangeApp: false,
|
174
|
-
mainUrl: "https://uniswap.org/",
|
175
|
-
needsKYC: false,
|
176
|
-
supportUrl: "https://support.uniswap.org/hc/en-us/requests/new",
|
177
|
-
termsOfUseUrl: "https://support.uniswap.org/hc/en-us/articles/30935100859661-Uniswap-Labs-Terms-of-Service",
|
178
|
-
type: "DEX",
|
179
|
-
},
|
180
|
-
wyre: {
|
181
|
-
name: "Wyre",
|
182
|
-
publicKey: {
|
183
|
-
curve: "secp256k1",
|
184
|
-
data: Buffer.from("04ad01a6241929a5ec331046868fbacb424696fd7c8a4d824fee61268374e9f4f87ffc5301f0e0a84cea69ffed46e14c771f9ca1eea345f6531994291c816e8ae6", "hex"),
|
185
|
-
},
|
186
|
-
signature: Buffer.from("304402207b49e46d458a55daee9bc8ed96e1b404c2d99dbbc3d3c3c15430026eb7e01a05022011ab86db08a4c956874a83f23d918319a073fdd9df23a1c7eed8a0a22c98b1e3", "hex"),
|
187
|
-
version: 1,
|
188
|
-
},
|
189
|
-
velora: {
|
190
|
-
type: "DEX",
|
191
|
-
useInExchangeApp: false,
|
192
|
-
displayName: "Velora",
|
193
|
-
termsOfUseUrl: "https://files.paraswap.io/tos_v4.pdf",
|
194
|
-
supportUrl: "https://help.paraswap.io/en/",
|
195
|
-
mainUrl: "https://www.velora.xyz/",
|
196
|
-
needsKYC: false,
|
197
|
-
},
|
198
|
-
});
|
199
|
-
});
|
200
|
-
});
|
201
|
-
//# sourceMappingURL=swap.integration.test.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"swap.integration.test.js","sourceRoot":"","sources":["../../../src/exchange/providers/swap.integration.test.ts"],"names":[],"mappings":"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"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../../../src/notifications/ServiceStatusProvider/index.test.ts"],"names":[],"mappings":""}
|