@ledgerhq/live-common 34.48.0-nightly.9 → 34.48.1
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 +0 -1
- package/lib/__tests__/test-helpers/environment.js.map +1 -1
- package/lib/apps/inlineAppInstall.d.ts +3 -1
- 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 +2 -1
- 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 +4 -2
- package/lib/apps/runner.d.ts.map +1 -1
- package/lib/apps/runner.js +4 -3
- package/lib/apps/runner.js.map +1 -1
- package/lib/bridge/generic-alpaca/accountBridge.d.ts +1 -2
- 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 +6 -10
- package/lib/bridge/generic-alpaca/alpaca/index.js.map +1 -1
- package/lib/bridge/generic-alpaca/alpaca/index.unit.test.js +9 -37
- package/lib/bridge/generic-alpaca/alpaca/index.unit.test.js.map +1 -1
- package/lib/bridge/generic-alpaca/createTransaction.d.ts +1 -1
- package/lib/bridge/generic-alpaca/createTransaction.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/createTransaction.js +0 -8
- package/lib/bridge/generic-alpaca/createTransaction.js.map +1 -1
- package/lib/bridge/generic-alpaca/currencyBridge.d.ts +1 -2
- package/lib/bridge/generic-alpaca/currencyBridge.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/currencyBridge.js +2 -3
- package/lib/bridge/generic-alpaca/currencyBridge.js.map +1 -1
- package/lib/bridge/generic-alpaca/getAccountShape.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/getAccountShape.js +4 -4
- package/lib/bridge/generic-alpaca/getAccountShape.js.map +1 -1
- package/lib/bridge/generic-alpaca/signer/index.d.ts +10 -2
- 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 +3 -2
- 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 +0 -11
- package/lib/bridge/generic-alpaca/signer/types.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/utils.d.ts +0 -2
- package/lib/bridge/generic-alpaca/utils.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/utils.js +1 -15
- package/lib/bridge/generic-alpaca/utils.js.map +1 -1
- package/lib/bridge/generic-alpaca/utils.test.js +0 -21
- 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 +28 -30
- package/lib/config/sharedConfig.js.map +1 -1
- package/lib/e2e/enum/Account.d.ts +0 -2
- package/lib/e2e/enum/Account.d.ts.map +1 -1
- package/lib/e2e/enum/Account.js +0 -2
- package/lib/e2e/enum/Account.js.map +1 -1
- package/lib/e2e/enum/AppInfos.d.ts +0 -1
- package/lib/e2e/enum/AppInfos.d.ts.map +1 -1
- package/lib/e2e/enum/AppInfos.js +0 -1
- package/lib/e2e/enum/AppInfos.js.map +1 -1
- package/lib/e2e/enum/Currency.d.ts +0 -1
- package/lib/e2e/enum/Currency.d.ts.map +1 -1
- package/lib/e2e/enum/Currency.js +0 -1
- package/lib/e2e/enum/Currency.js.map +1 -1
- package/lib/e2e/enum/DeviceLabels.d.ts +1 -2
- package/lib/e2e/enum/DeviceLabels.d.ts.map +1 -1
- package/lib/e2e/enum/DeviceLabels.js +0 -1
- package/lib/e2e/enum/DeviceLabels.js.map +1 -1
- package/lib/e2e/enum/Network.d.ts +1 -2
- package/lib/e2e/enum/Network.d.ts.map +1 -1
- package/lib/e2e/enum/Network.js +0 -1
- package/lib/e2e/enum/Network.js.map +1 -1
- package/lib/e2e/index.d.ts +4 -1
- package/lib/e2e/index.d.ts.map +1 -1
- package/lib/e2e/speculos.d.ts.map +1 -1
- package/lib/e2e/speculos.js +0 -13
- 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/swap/transactionStrategies.d.ts +11 -38
- package/lib/exchange/swap/transactionStrategies.d.ts.map +1 -1
- package/lib/exchange/swap/transactionStrategies.js +47 -93
- 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 +5 -3
- 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/xrp/setup.d.ts +2 -2
- package/lib/featureFlags/defaultFeatures.d.ts.map +1 -1
- package/lib/featureFlags/defaultFeatures.js +2 -4
- 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 +0 -1
- package/lib/generated/bridge/js.d.ts.map +1 -1
- package/lib/generated/bridge/js.js +22 -24
- 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 +2 -13
- package/lib/generated/cli-transaction.d.ts.map +1 -1
- package/lib/generated/cli-transaction.js +26 -28
- package/lib/generated/cli-transaction.js.map +1 -1
- package/lib/generated/deviceTransactionConfig.d.ts +0 -2
- package/lib/generated/deviceTransactionConfig.d.ts.map +1 -1
- package/lib/generated/deviceTransactionConfig.js +22 -24
- package/lib/generated/deviceTransactionConfig.js.map +1 -1
- package/lib/generated/hw-getAddress.d.ts +0 -1
- package/lib/generated/hw-getAddress.d.ts.map +1 -1
- package/lib/generated/hw-getAddress.js +26 -28
- 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 +3 -11
- package/lib/generated/transaction.d.ts.map +1 -1
- package/lib/generated/transaction.js +26 -28
- package/lib/generated/transaction.js.map +1 -1
- package/lib/generated/types.d.ts +4 -5
- 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 +0 -2
- package/lib/hw/getDeviceNameMaxLength.js.map +1 -1
- package/lib/hw/getDeviceNameMaxLength.test.js +0 -12
- package/lib/hw/getDeviceNameMaxLength.test.js.map +1 -1
- package/lib/modularDrawer/data/state-manager/api.d.ts.map +1 -1
- package/lib/modularDrawer/data/state-manager/api.js +2 -3
- package/lib/modularDrawer/data/state-manager/api.js.map +1 -1
- package/lib/modularDrawer/data/state-manager/types.d.ts +0 -1
- package/lib/modularDrawer/data/state-manager/types.d.ts.map +1 -1
- package/lib/modularDrawer/hooks/useAssetsData.d.ts +1 -3
- package/lib/modularDrawer/hooks/useAssetsData.d.ts.map +1 -1
- package/lib/modularDrawer/hooks/useAssetsData.js +3 -6
- package/lib/modularDrawer/hooks/useAssetsData.js.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 +6 -13
- package/lib/wallet-api/ACRE/server.d.ts.map +1 -1
- package/lib/wallet-api/ACRE/server.js +1 -142
- package/lib/wallet-api/ACRE/server.js.map +1 -1
- package/lib/wallet-api/Exchange/server.d.ts.map +1 -1
- package/lib/wallet-api/Exchange/server.js +13 -16
- package/lib/wallet-api/Exchange/server.js.map +1 -1
- package/lib-es/__tests__/test-helpers/environment.js +0 -1
- package/lib-es/__tests__/test-helpers/environment.js.map +1 -1
- package/lib-es/apps/inlineAppInstall.d.ts +3 -1
- 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 +2 -1
- 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 +4 -2
- package/lib-es/apps/runner.d.ts.map +1 -1
- package/lib-es/apps/runner.js +4 -3
- package/lib-es/apps/runner.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/accountBridge.d.ts +1 -2
- 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 +6 -10
- package/lib-es/bridge/generic-alpaca/alpaca/index.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/alpaca/index.unit.test.js +9 -37
- package/lib-es/bridge/generic-alpaca/alpaca/index.unit.test.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/createTransaction.d.ts +1 -1
- package/lib-es/bridge/generic-alpaca/createTransaction.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/createTransaction.js +0 -8
- package/lib-es/bridge/generic-alpaca/createTransaction.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/currencyBridge.d.ts +1 -2
- package/lib-es/bridge/generic-alpaca/currencyBridge.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/currencyBridge.js +2 -3
- package/lib-es/bridge/generic-alpaca/currencyBridge.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/getAccountShape.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/getAccountShape.js +4 -4
- package/lib-es/bridge/generic-alpaca/getAccountShape.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/signer/index.d.ts +10 -2
- 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 +3 -2
- 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 +0 -11
- package/lib-es/bridge/generic-alpaca/signer/types.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/utils.d.ts +0 -2
- package/lib-es/bridge/generic-alpaca/utils.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/utils.js +0 -13
- package/lib-es/bridge/generic-alpaca/utils.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/utils.test.js +1 -22
- 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 +0 -2
- package/lib-es/config/sharedConfig.js.map +1 -1
- package/lib-es/e2e/enum/Account.d.ts +0 -2
- package/lib-es/e2e/enum/Account.d.ts.map +1 -1
- package/lib-es/e2e/enum/Account.js +0 -2
- package/lib-es/e2e/enum/Account.js.map +1 -1
- package/lib-es/e2e/enum/AppInfos.d.ts +0 -1
- package/lib-es/e2e/enum/AppInfos.d.ts.map +1 -1
- package/lib-es/e2e/enum/AppInfos.js +0 -1
- package/lib-es/e2e/enum/AppInfos.js.map +1 -1
- package/lib-es/e2e/enum/Currency.d.ts +0 -1
- package/lib-es/e2e/enum/Currency.d.ts.map +1 -1
- package/lib-es/e2e/enum/Currency.js +0 -1
- package/lib-es/e2e/enum/Currency.js.map +1 -1
- package/lib-es/e2e/enum/DeviceLabels.d.ts +1 -2
- package/lib-es/e2e/enum/DeviceLabels.d.ts.map +1 -1
- package/lib-es/e2e/enum/DeviceLabels.js +0 -1
- package/lib-es/e2e/enum/DeviceLabels.js.map +1 -1
- package/lib-es/e2e/enum/Network.d.ts +1 -2
- package/lib-es/e2e/enum/Network.d.ts.map +1 -1
- package/lib-es/e2e/enum/Network.js +0 -1
- package/lib-es/e2e/enum/Network.js.map +1 -1
- package/lib-es/e2e/index.d.ts +4 -1
- package/lib-es/e2e/index.d.ts.map +1 -1
- package/lib-es/e2e/speculos.d.ts.map +1 -1
- package/lib-es/e2e/speculos.js +0 -13
- 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/swap/transactionStrategies.d.ts +11 -38
- package/lib-es/exchange/swap/transactionStrategies.d.ts.map +1 -1
- package/lib-es/exchange/swap/transactionStrategies.js +44 -87
- 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 +5 -3
- 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/xrp/setup.d.ts +2 -2
- package/lib-es/featureFlags/defaultFeatures.d.ts.map +1 -1
- package/lib-es/featureFlags/defaultFeatures.js +2 -4
- 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 +0 -1
- package/lib-es/generated/bridge/js.d.ts.map +1 -1
- package/lib-es/generated/bridge/js.js +0 -2
- 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 +2 -13
- package/lib-es/generated/cli-transaction.d.ts.map +1 -1
- package/lib-es/generated/cli-transaction.js +0 -2
- package/lib-es/generated/cli-transaction.js.map +1 -1
- package/lib-es/generated/deviceTransactionConfig.d.ts +0 -2
- package/lib-es/generated/deviceTransactionConfig.d.ts.map +1 -1
- package/lib-es/generated/deviceTransactionConfig.js +0 -2
- package/lib-es/generated/deviceTransactionConfig.js.map +1 -1
- package/lib-es/generated/hw-getAddress.d.ts +0 -1
- package/lib-es/generated/hw-getAddress.d.ts.map +1 -1
- package/lib-es/generated/hw-getAddress.js +0 -2
- 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 +3 -11
- package/lib-es/generated/transaction.d.ts.map +1 -1
- package/lib-es/generated/transaction.js +0 -2
- package/lib-es/generated/transaction.js.map +1 -1
- package/lib-es/generated/types.d.ts +4 -5
- 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 +0 -2
- package/lib-es/hw/getDeviceNameMaxLength.js.map +1 -1
- package/lib-es/hw/getDeviceNameMaxLength.test.js +0 -12
- package/lib-es/hw/getDeviceNameMaxLength.test.js.map +1 -1
- package/lib-es/modularDrawer/data/state-manager/api.d.ts.map +1 -1
- package/lib-es/modularDrawer/data/state-manager/api.js +2 -3
- package/lib-es/modularDrawer/data/state-manager/api.js.map +1 -1
- package/lib-es/modularDrawer/data/state-manager/types.d.ts +0 -1
- package/lib-es/modularDrawer/data/state-manager/types.d.ts.map +1 -1
- package/lib-es/modularDrawer/hooks/useAssetsData.d.ts +1 -3
- package/lib-es/modularDrawer/hooks/useAssetsData.d.ts.map +1 -1
- package/lib-es/modularDrawer/hooks/useAssetsData.js +3 -6
- package/lib-es/modularDrawer/hooks/useAssetsData.js.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 +6 -13
- package/lib-es/wallet-api/ACRE/server.d.ts.map +1 -1
- package/lib-es/wallet-api/ACRE/server.js +2 -140
- package/lib-es/wallet-api/ACRE/server.js.map +1 -1
- package/lib-es/wallet-api/Exchange/server.d.ts.map +1 -1
- package/lib-es/wallet-api/Exchange/server.js +13 -16
- package/lib-es/wallet-api/Exchange/server.js.map +1 -1
- package/package.json +55 -58
- package/src/__tests__/test-helpers/environment.ts +0 -1
- package/src/apps/inlineAppInstall.ts +4 -1
- package/src/apps/react.ts +3 -1
- package/src/apps/runner.ts +8 -1
- package/src/bridge/generic-alpaca/accountBridge.ts +3 -8
- package/src/bridge/generic-alpaca/alpaca/index.ts +18 -13
- package/src/bridge/generic-alpaca/alpaca/index.unit.test.ts +10 -38
- package/src/bridge/generic-alpaca/createTransaction.ts +1 -9
- package/src/bridge/generic-alpaca/currencyBridge.ts +2 -8
- package/src/bridge/generic-alpaca/getAccountShape.ts +5 -4
- package/src/bridge/generic-alpaca/signer/index.ts +15 -5
- package/src/bridge/generic-alpaca/signer/signTransaction.ts +3 -4
- package/src/bridge/generic-alpaca/signer/types.ts +0 -14
- package/src/bridge/generic-alpaca/utils.test.ts +1 -29
- package/src/bridge/generic-alpaca/utils.ts +0 -15
- package/src/config/sharedConfig.ts +0 -2
- package/src/e2e/enum/Account.ts +0 -14
- package/src/e2e/enum/AppInfos.ts +0 -2
- package/src/e2e/enum/Currency.ts +0 -2
- package/src/e2e/enum/DeviceLabels.ts +0 -1
- package/src/e2e/enum/Network.ts +0 -1
- package/src/e2e/speculos.ts +0 -13
- package/src/exchange/swap/transactionStrategies.ts +73 -121
- package/src/families/canton/config.ts +6 -3
- package/src/families/canton/setup.ts +5 -6
- package/src/families/evm/config.ts +2 -2
- package/src/families/hedera/__snapshots__/bridge.integration.test.ts.snap +2 -2
- package/src/featureFlags/defaultFeatures.ts +2 -4
- package/src/generated/bridge/js.ts +0 -2
- package/src/generated/cli-transaction.ts +0 -2
- package/src/generated/deviceTransactionConfig.ts +0 -2
- package/src/generated/hw-getAddress.ts +0 -2
- package/src/generated/transaction.ts +0 -2
- package/src/generated/types.ts +0 -10
- package/src/hw/actions/app.ts +1 -0
- package/src/hw/getDeviceNameMaxLength.test.ts +0 -16
- package/src/hw/getDeviceNameMaxLength.ts +0 -2
- package/src/modularDrawer/data/state-manager/api.ts +2 -4
- package/src/modularDrawer/data/state-manager/types.ts +0 -1
- package/src/modularDrawer/hooks/useAssetsData.ts +9 -24
- package/src/notifications/ServiceStatusProvider/index.tsx +12 -37
- package/src/wallet-api/ACRE/server.ts +14 -202
- package/src/wallet-api/Exchange/server.ts +14 -17
- package/lib/bridge/generic-alpaca/signer/Eth.d.ts +0 -8
- package/lib/bridge/generic-alpaca/signer/Eth.d.ts.map +0 -1
- package/lib/bridge/generic-alpaca/signer/Eth.js +0 -51
- package/lib/bridge/generic-alpaca/signer/Eth.js.map +0 -1
- package/lib/bridge/generic-alpaca/tests/getAccountShape.test.d.ts +0 -2
- package/lib/bridge/generic-alpaca/tests/getAccountShape.test.d.ts.map +0 -1
- package/lib/bridge/generic-alpaca/tests/getAccountShape.test.js +0 -144
- package/lib/bridge/generic-alpaca/tests/getAccountShape.test.js.map +0 -1
- package/lib/e2e/families/kaspa.d.ts +0 -4
- package/lib/e2e/families/kaspa.d.ts.map +0 -1
- package/lib/e2e/families/kaspa.js +0 -23
- package/lib/e2e/families/kaspa.js.map +0 -1
- package/lib/families/kaspa/bridge.integration.test.d.ts +0 -2
- package/lib/families/kaspa/bridge.integration.test.d.ts.map +0 -1
- package/lib/families/kaspa/bridge.integration.test.js +0 -7
- package/lib/families/kaspa/bridge.integration.test.js.map +0 -1
- package/lib/families/kaspa/config.d.ts +0 -3
- package/lib/families/kaspa/config.d.ts.map +0 -1
- package/lib/families/kaspa/config.js +0 -14
- package/lib/families/kaspa/config.js.map +0 -1
- package/lib/families/kaspa/react.d.ts +0 -4
- package/lib/families/kaspa/react.d.ts.map +0 -1
- package/lib/families/kaspa/react.js +0 -18
- package/lib/families/kaspa/react.js.map +0 -1
- package/lib/families/kaspa/setup.d.ts +0 -18
- package/lib/families/kaspa/setup.d.ts.map +0 -1
- package/lib/families/kaspa/setup.js +0 -24
- package/lib/families/kaspa/setup.js.map +0 -1
- package/lib/families/kaspa/types.d.ts +0 -2
- package/lib/families/kaspa/types.d.ts.map +0 -1
- package/lib/families/kaspa/types.js +0 -18
- package/lib/families/kaspa/types.js.map +0 -1
- package/lib/modularDrawer/hooks/useSearch.d.ts +0 -16
- package/lib/modularDrawer/hooks/useSearch.d.ts.map +0 -1
- package/lib/modularDrawer/hooks/useSearch.js +0 -24
- package/lib/modularDrawer/hooks/useSearch.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/wallet-api/ACRE/server.test.d.ts +0 -2
- package/lib/wallet-api/ACRE/server.test.d.ts.map +0 -1
- package/lib/wallet-api/ACRE/server.test.js +0 -393
- package/lib/wallet-api/ACRE/server.test.js.map +0 -1
- package/lib-es/bridge/generic-alpaca/signer/Eth.d.ts +0 -8
- package/lib-es/bridge/generic-alpaca/signer/Eth.d.ts.map +0 -1
- package/lib-es/bridge/generic-alpaca/signer/Eth.js +0 -47
- package/lib-es/bridge/generic-alpaca/signer/Eth.js.map +0 -1
- package/lib-es/bridge/generic-alpaca/tests/getAccountShape.test.d.ts +0 -2
- package/lib-es/bridge/generic-alpaca/tests/getAccountShape.test.d.ts.map +0 -1
- package/lib-es/bridge/generic-alpaca/tests/getAccountShape.test.js +0 -139
- package/lib-es/bridge/generic-alpaca/tests/getAccountShape.test.js.map +0 -1
- package/lib-es/e2e/families/kaspa.d.ts +0 -4
- package/lib-es/e2e/families/kaspa.d.ts.map +0 -1
- package/lib-es/e2e/families/kaspa.js +0 -15
- package/lib-es/e2e/families/kaspa.js.map +0 -1
- package/lib-es/families/kaspa/bridge.integration.test.d.ts +0 -2
- package/lib-es/families/kaspa/bridge.integration.test.d.ts.map +0 -1
- package/lib-es/families/kaspa/bridge.integration.test.js +0 -5
- package/lib-es/families/kaspa/bridge.integration.test.js.map +0 -1
- package/lib-es/families/kaspa/config.d.ts +0 -3
- package/lib-es/families/kaspa/config.d.ts.map +0 -1
- package/lib-es/families/kaspa/config.js +0 -11
- package/lib-es/families/kaspa/config.js.map +0 -1
- package/lib-es/families/kaspa/react.d.ts +0 -4
- package/lib-es/families/kaspa/react.d.ts.map +0 -1
- package/lib-es/families/kaspa/react.js +0 -14
- package/lib-es/families/kaspa/react.js.map +0 -1
- package/lib-es/families/kaspa/setup.d.ts +0 -18
- package/lib-es/families/kaspa/setup.d.ts.map +0 -1
- package/lib-es/families/kaspa/setup.js +0 -16
- package/lib-es/families/kaspa/setup.js.map +0 -1
- package/lib-es/families/kaspa/types.d.ts +0 -2
- package/lib-es/families/kaspa/types.d.ts.map +0 -1
- package/lib-es/families/kaspa/types.js +0 -2
- package/lib-es/families/kaspa/types.js.map +0 -1
- package/lib-es/modularDrawer/hooks/useSearch.d.ts +0 -16
- package/lib-es/modularDrawer/hooks/useSearch.d.ts.map +0 -1
- package/lib-es/modularDrawer/hooks/useSearch.js +0 -20
- package/lib-es/modularDrawer/hooks/useSearch.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/lib-es/wallet-api/ACRE/server.test.d.ts +0 -2
- package/lib-es/wallet-api/ACRE/server.test.d.ts.map +0 -1
- package/lib-es/wallet-api/ACRE/server.test.js +0 -388
- package/lib-es/wallet-api/ACRE/server.test.js.map +0 -1
- package/src/bridge/generic-alpaca/signer/Eth.ts +0 -70
- package/src/bridge/generic-alpaca/tests/getAccountShape.test.ts +0 -173
- package/src/e2e/families/kaspa.ts +0 -17
- package/src/families/kaspa/__snapshots__/bridge.integration.test.ts.snap +0 -66
- package/src/families/kaspa/bridge.integration.test.ts +0 -5
- package/src/families/kaspa/config.ts +0 -12
- package/src/families/kaspa/react.ts +0 -19
- package/src/families/kaspa/setup.ts +0 -27
- package/src/families/kaspa/types.ts +0 -1
- package/src/modularDrawer/hooks/useSearch.ts +0 -52
- package/src/notifications/ServiceStatusProvider/index.test.ts +0 -102
- package/src/notifications/ServiceStatusProvider/ledger-components.ts +0 -12
- package/src/wallet-api/ACRE/server.test.ts +0 -470
@@ -1,7 +1,16 @@
|
|
1
1
|
import { BigNumber } from "bignumber.js";
|
2
2
|
|
3
|
-
import {
|
4
|
-
|
3
|
+
import {
|
4
|
+
CosmosTransaction,
|
5
|
+
ElrondTransaction,
|
6
|
+
RippleTransaction,
|
7
|
+
SolanaTransaction,
|
8
|
+
StellarTransaction,
|
9
|
+
TonTransaction,
|
10
|
+
Transaction,
|
11
|
+
TransactionCommon,
|
12
|
+
} from "@ledgerhq/wallet-api-client";
|
13
|
+
|
5
14
|
export type { SwapLiveError } from "@ledgerhq/wallet-api-exchange-module";
|
6
15
|
|
7
16
|
export function defaultTransaction({
|
@@ -9,81 +18,35 @@ export function defaultTransaction({
|
|
9
18
|
amount,
|
10
19
|
recipient,
|
11
20
|
customFeeConfig,
|
12
|
-
}: TransactionWithCustomFee):
|
13
|
-
|
14
|
-
// This function provides base properties that are then extended by family-specific functions
|
15
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
|
16
|
-
return {
|
21
|
+
}: TransactionWithCustomFee): Transaction {
|
22
|
+
return <Transaction>{
|
17
23
|
family,
|
18
24
|
amount,
|
19
25
|
recipient,
|
20
26
|
...customFeeConfig,
|
21
|
-
} as Partial<Transaction>;
|
22
|
-
}
|
23
|
-
|
24
|
-
export function cardanoTransaction({
|
25
|
-
amount,
|
26
|
-
recipient,
|
27
|
-
customFeeConfig,
|
28
|
-
}: TransactionWithCustomFee): Partial<Extract<Transaction, { family: "cardano" }>> {
|
29
|
-
return {
|
30
|
-
family: "cardano",
|
31
|
-
amount,
|
32
|
-
recipient,
|
33
|
-
mode: "send",
|
34
|
-
...customFeeConfig,
|
35
27
|
};
|
36
28
|
}
|
37
29
|
|
38
|
-
export function
|
39
|
-
|
40
|
-
recipient,
|
41
|
-
customFeeConfig,
|
42
|
-
}: TransactionWithCustomFee): Extract<Transaction, { family: "near" }> {
|
43
|
-
return {
|
44
|
-
family: "near",
|
45
|
-
amount,
|
46
|
-
recipient,
|
47
|
-
mode: "send",
|
48
|
-
...customFeeConfig,
|
49
|
-
};
|
50
|
-
}
|
51
|
-
|
52
|
-
export function tezosTransaction({
|
53
|
-
amount,
|
54
|
-
recipient,
|
55
|
-
customFeeConfig,
|
56
|
-
}: TransactionWithCustomFee): Partial<Extract<Transaction, { family: "tezos" }>> {
|
57
|
-
return {
|
58
|
-
family: "tezos",
|
59
|
-
amount,
|
60
|
-
recipient,
|
61
|
-
mode: "send",
|
62
|
-
...customFeeConfig,
|
63
|
-
};
|
64
|
-
}
|
65
|
-
|
66
|
-
export function tronTransaction({
|
30
|
+
export function modeSendTransaction({
|
31
|
+
family,
|
67
32
|
amount,
|
68
33
|
recipient,
|
69
34
|
customFeeConfig,
|
70
|
-
}: TransactionWithCustomFee):
|
35
|
+
}: TransactionWithCustomFee): Transaction {
|
71
36
|
return {
|
72
|
-
family
|
73
|
-
amount,
|
74
|
-
recipient,
|
37
|
+
...defaultTransaction({ family, amount, recipient, customFeeConfig }),
|
75
38
|
mode: "send",
|
76
|
-
...customFeeConfig,
|
77
39
|
};
|
78
40
|
}
|
79
41
|
|
80
42
|
export function stellarTransaction({
|
43
|
+
family,
|
81
44
|
amount,
|
82
45
|
recipient,
|
83
46
|
customFeeConfig,
|
84
47
|
payinExtraId,
|
85
48
|
customErrorType,
|
86
|
-
}: TransactionWithCustomFee):
|
49
|
+
}: TransactionWithCustomFee): StellarTransaction {
|
87
50
|
if (!payinExtraId)
|
88
51
|
throw {
|
89
52
|
error: new Error("Missing payinExtraId"),
|
@@ -92,11 +55,8 @@ export function stellarTransaction({
|
|
92
55
|
};
|
93
56
|
|
94
57
|
return {
|
58
|
+
...defaultTransaction({ family, amount, recipient, customFeeConfig }),
|
95
59
|
family: "stellar",
|
96
|
-
mode: "send",
|
97
|
-
amount,
|
98
|
-
recipient,
|
99
|
-
...customFeeConfig,
|
100
60
|
memoValue: payinExtraId,
|
101
61
|
memoType: "MEMO_TEXT",
|
102
62
|
};
|
@@ -108,7 +68,7 @@ export function rippleTransaction({
|
|
108
68
|
customFeeConfig,
|
109
69
|
payinExtraId,
|
110
70
|
customErrorType,
|
111
|
-
}: TransactionWithCustomFee):
|
71
|
+
}: TransactionWithCustomFee): RippleTransaction {
|
112
72
|
if (!payinExtraId)
|
113
73
|
throw {
|
114
74
|
error: new Error("Missing payinExtraId"),
|
@@ -116,40 +76,38 @@ export function rippleTransaction({
|
|
116
76
|
customErrorType,
|
117
77
|
};
|
118
78
|
|
119
|
-
|
120
|
-
family: "
|
79
|
+
const transaction: RippleTransaction = {
|
80
|
+
family: "ripple",
|
121
81
|
amount,
|
122
82
|
recipient,
|
123
83
|
...customFeeConfig,
|
124
84
|
tag: new BigNumber(payinExtraId).toNumber(),
|
125
85
|
};
|
86
|
+
return transaction;
|
126
87
|
}
|
127
88
|
|
128
|
-
|
89
|
+
// Function to remove gasLimit from customFeeConfig for Ethereum or Bitcoin
|
90
|
+
export function withoutGasLimitTransaction({
|
91
|
+
family,
|
129
92
|
amount,
|
130
93
|
recipient,
|
131
94
|
customFeeConfig,
|
132
95
|
extraTransactionParameters,
|
133
|
-
}: TransactionWithCustomFee):
|
96
|
+
}: TransactionWithCustomFee): Transaction {
|
134
97
|
if (customFeeConfig?.gasLimit) {
|
135
98
|
delete customFeeConfig.gasLimit;
|
136
99
|
}
|
137
100
|
|
138
101
|
if (extraTransactionParameters) {
|
139
|
-
return {
|
140
|
-
family
|
102
|
+
return <Transaction>{
|
103
|
+
family,
|
141
104
|
amount,
|
142
105
|
recipient,
|
143
106
|
...customFeeConfig,
|
144
107
|
data: Buffer.from(extraTransactionParameters, "hex"),
|
145
108
|
};
|
146
109
|
}
|
147
|
-
return {
|
148
|
-
family: "evm" as const,
|
149
|
-
amount,
|
150
|
-
recipient,
|
151
|
-
...customFeeConfig,
|
152
|
-
};
|
110
|
+
return defaultTransaction({ family, amount, recipient, customFeeConfig });
|
153
111
|
}
|
154
112
|
|
155
113
|
export function bitcoinTransaction({
|
@@ -157,33 +115,33 @@ export function bitcoinTransaction({
|
|
157
115
|
recipient,
|
158
116
|
customFeeConfig,
|
159
117
|
extraTransactionParameters,
|
160
|
-
}: TransactionWithCustomFee):
|
161
|
-
const baseTransaction = {
|
162
|
-
family: "bitcoin" as const,
|
163
|
-
amount,
|
164
|
-
recipient,
|
165
|
-
...customFeeConfig,
|
166
|
-
};
|
167
|
-
|
118
|
+
}: TransactionWithCustomFee): Transaction {
|
168
119
|
if (extraTransactionParameters) {
|
169
120
|
return {
|
170
|
-
|
121
|
+
family: "bitcoin",
|
122
|
+
amount,
|
123
|
+
recipient,
|
124
|
+
...customFeeConfig,
|
171
125
|
opReturnData: Buffer.from(extraTransactionParameters, "utf-8"),
|
172
126
|
};
|
173
127
|
}
|
174
|
-
|
175
|
-
|
128
|
+
return {
|
129
|
+
family: "bitcoin",
|
130
|
+
amount,
|
131
|
+
recipient,
|
132
|
+
...customFeeConfig,
|
133
|
+
};
|
176
134
|
}
|
177
135
|
|
178
136
|
export function solanaTransaction({
|
137
|
+
family,
|
179
138
|
amount,
|
180
139
|
recipient,
|
181
|
-
customFeeConfig
|
182
|
-
}: TransactionWithCustomFee):
|
140
|
+
customFeeConfig,
|
141
|
+
}: TransactionWithCustomFee): SolanaTransaction {
|
183
142
|
return {
|
143
|
+
...defaultTransaction({ family, amount, recipient, customFeeConfig }),
|
184
144
|
family: "solana",
|
185
|
-
amount,
|
186
|
-
recipient,
|
187
145
|
model: { kind: "transfer", uiState: {} },
|
188
146
|
};
|
189
147
|
}
|
@@ -192,44 +150,43 @@ export function elrondTransaction({
|
|
192
150
|
amount,
|
193
151
|
recipient,
|
194
152
|
customFeeConfig,
|
195
|
-
}: TransactionWithCustomFee):
|
196
|
-
|
197
|
-
family: "
|
153
|
+
}: TransactionWithCustomFee): ElrondTransaction {
|
154
|
+
const transaction: ElrondTransaction = {
|
155
|
+
family: "elrond",
|
198
156
|
amount,
|
199
157
|
recipient,
|
200
158
|
mode: "send",
|
201
|
-
|
202
|
-
gasLimit:
|
159
|
+
...customFeeConfig,
|
160
|
+
gasLimit: 0, // FIXME: Placeholder, adjust as needed
|
203
161
|
};
|
162
|
+
return transaction;
|
204
163
|
}
|
205
164
|
|
206
165
|
function tonTransaction({
|
166
|
+
family,
|
207
167
|
amount,
|
208
168
|
recipient,
|
209
|
-
customFeeConfig
|
210
|
-
}: TransactionWithCustomFee):
|
169
|
+
customFeeConfig,
|
170
|
+
}: TransactionWithCustomFee): TonTransaction {
|
211
171
|
return {
|
172
|
+
...defaultTransaction({ family, amount, recipient, customFeeConfig }),
|
212
173
|
family: "ton",
|
213
|
-
amount,
|
214
|
-
recipient,
|
215
174
|
comment: { isEncrypted: false, text: "" },
|
216
175
|
fees: new BigNumber(0), // Set default value as completeExchange call prepareTransaction, which set again fees.
|
217
176
|
};
|
218
177
|
}
|
219
178
|
|
220
179
|
export function cosmosTransaction({
|
180
|
+
family,
|
221
181
|
amount,
|
222
182
|
recipient,
|
223
183
|
customFeeConfig,
|
224
184
|
payinExtraId,
|
225
|
-
}: TransactionWithCustomFee):
|
226
|
-
return {
|
185
|
+
}: TransactionWithCustomFee): CosmosTransaction {
|
186
|
+
return <CosmosTransaction>{
|
187
|
+
...defaultTransaction({ family, amount, recipient, customFeeConfig }),
|
227
188
|
family: "cosmos",
|
228
|
-
amount,
|
229
|
-
recipient,
|
230
189
|
mode: "send",
|
231
|
-
networkInfo: null,
|
232
|
-
...customFeeConfig,
|
233
190
|
memo: payinExtraId ?? undefined,
|
234
191
|
};
|
235
192
|
}
|
@@ -241,13 +198,10 @@ export type TransactionWithCustomFee = TransactionCommon & {
|
|
241
198
|
payinExtraId?: string;
|
242
199
|
customErrorType?: "swap";
|
243
200
|
extraTransactionParameters?: string;
|
244
|
-
family: string;
|
245
201
|
};
|
246
202
|
|
247
203
|
// Define a specific type for the strategy functions, assuming they might need parameters
|
248
|
-
export type TransactionStrategyFunction = (
|
249
|
-
params: TransactionWithCustomFee,
|
250
|
-
) => Partial<Transaction>;
|
204
|
+
export type TransactionStrategyFunction = (params: TransactionWithCustomFee) => Transaction;
|
251
205
|
|
252
206
|
export const transactionStrategy: {
|
253
207
|
[K in Transaction["family"]]: TransactionStrategyFunction;
|
@@ -255,28 +209,26 @@ export const transactionStrategy: {
|
|
255
209
|
algorand: defaultTransaction,
|
256
210
|
aptos: defaultTransaction,
|
257
211
|
bitcoin: bitcoinTransaction,
|
258
|
-
|
259
|
-
cardano: cardanoTransaction,
|
260
|
-
casper: defaultTransaction,
|
212
|
+
cardano: modeSendTransaction,
|
261
213
|
celo: defaultTransaction,
|
262
214
|
cosmos: cosmosTransaction,
|
263
|
-
|
215
|
+
crypto_org: defaultTransaction,
|
216
|
+
elrond: elrondTransaction,
|
217
|
+
ethereum: withoutGasLimitTransaction,
|
264
218
|
filecoin: defaultTransaction,
|
265
219
|
hedera: defaultTransaction,
|
266
|
-
|
267
|
-
|
268
|
-
mina: defaultTransaction,
|
269
|
-
multiversx: elrondTransaction,
|
270
|
-
near: nearTransaction,
|
220
|
+
near: modeSendTransaction,
|
221
|
+
neo: defaultTransaction,
|
271
222
|
polkadot: defaultTransaction,
|
223
|
+
ripple: rippleTransaction,
|
272
224
|
solana: solanaTransaction,
|
273
225
|
stacks: defaultTransaction,
|
274
226
|
stellar: stellarTransaction,
|
275
|
-
|
276
|
-
tezos: tezosTransaction,
|
227
|
+
tezos: modeSendTransaction,
|
277
228
|
ton: tonTransaction,
|
278
|
-
tron:
|
229
|
+
tron: modeSendTransaction,
|
279
230
|
vechain: defaultTransaction,
|
280
|
-
|
281
|
-
|
231
|
+
casper: defaultTransaction,
|
232
|
+
sui: defaultTransaction,
|
233
|
+
internet_computer: defaultTransaction,
|
282
234
|
};
|
@@ -7,8 +7,10 @@ export const cantonConfig: Record<string, ConfigInfo> = {
|
|
7
7
|
status: {
|
8
8
|
type: "active",
|
9
9
|
},
|
10
|
-
|
11
|
-
|
10
|
+
// TBC
|
11
|
+
nodeUrl: "https://wallet-validator-canton.ledger.com",
|
12
|
+
nodeId: "figment",
|
13
|
+
// TBC
|
12
14
|
gatewayUrl: "https://canton-gateway.api.live.ledger.com",
|
13
15
|
minReserve: 0,
|
14
16
|
useGateway: true,
|
@@ -27,7 +29,8 @@ export const cantonConfig: Record<string, ConfigInfo> = {
|
|
27
29
|
minReserve: 0,
|
28
30
|
useGateway: true,
|
29
31
|
networkType: "devnet",
|
30
|
-
nativeInstrumentId:
|
32
|
+
nativeInstrumentId:
|
33
|
+
"6e9fc50fb94e56751b49f09ba2dc84da53a9d7cff08115ebb4f6b7a12d0c990c:Splice.Amulet:Amulet",
|
31
34
|
},
|
32
35
|
},
|
33
36
|
config_currency_canton_network_localnet: {
|
@@ -14,17 +14,16 @@ import { CreateSigner, createResolver, executeWithSigner } from "../../bridge/se
|
|
14
14
|
import cantonBridgeMock from "./bridge/mock";
|
15
15
|
import { Resolver } from "../../hw/getAddress/types";
|
16
16
|
import { getCurrencyConfiguration } from "../../config";
|
17
|
-
import {
|
17
|
+
import { getCryptoCurrencyById } from "../../currencies";
|
18
18
|
|
19
19
|
const createSigner: CreateSigner<CantonSigner> = (transport: Transport) => {
|
20
20
|
return new LegacySignerCanton(transport);
|
21
21
|
};
|
22
22
|
|
23
|
-
const getCurrencyConfig = (
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
return getCurrencyConfiguration<CantonCoinConfig>(currency);
|
23
|
+
const getCurrencyConfig = () => {
|
24
|
+
// Use devnet for development/testing
|
25
|
+
const currencyId = getEnv("MOCK") ? "canton_network_devnet" : "canton_network_devnet";
|
26
|
+
return getCurrencyConfiguration<CantonCoinConfig>(getCryptoCurrencyById(currencyId));
|
28
27
|
};
|
29
28
|
|
30
29
|
const bridge: Bridge<Transaction, Account, TransactionStatus> = getEnv("MOCK")
|
@@ -674,8 +674,8 @@ const evmConfig: CurrencyLiveConfigDefinition = {
|
|
674
674
|
uri: "https://zkevm-rpc.com",
|
675
675
|
},
|
676
676
|
explorer: {
|
677
|
-
type: "
|
678
|
-
uri: "https://
|
677
|
+
type: "blockscout",
|
678
|
+
uri: "https://explorer-ui.cardona.zkevm-rpc.com/api",
|
679
679
|
},
|
680
680
|
showNfts: false,
|
681
681
|
},
|
@@ -141,12 +141,12 @@ exports[`hedera currency bridge scanAccounts hedera seed 1 1`] = `
|
|
141
141
|
"used": true,
|
142
142
|
},
|
143
143
|
{
|
144
|
-
"balance": "
|
144
|
+
"balance": "340000000",
|
145
145
|
"id": "js:2:hedera:0.0.8313485:hederaBip44+hedera%2Fhts%2Ftune~!underscore!~fm~!underscore!~0.0.127877",
|
146
146
|
"operationsCount": 0,
|
147
147
|
"parentId": "js:2:hedera:0.0.8313485:hederaBip44",
|
148
148
|
"pendingOperations": [],
|
149
|
-
"spendableBalance": "
|
149
|
+
"spendableBalance": "340000000",
|
150
150
|
"swapHistory": [],
|
151
151
|
"tokenId": "hedera/hts/tune_fm_0.0.127877",
|
152
152
|
"type": "TokenAccountRaw",
|
@@ -103,6 +103,7 @@ export const CURRENCY_DEFAULT_FEATURES = {
|
|
103
103
|
*/
|
104
104
|
export const DEFAULT_FEATURES: Features = {
|
105
105
|
...CURRENCY_DEFAULT_FEATURES,
|
106
|
+
brazeLearn: DEFAULT_FEATURE,
|
106
107
|
portfolioExchangeBanner: DEFAULT_FEATURE,
|
107
108
|
postOnboardingAssetsTransfer: DEFAULT_FEATURE,
|
108
109
|
counterValue: DEFAULT_FEATURE,
|
@@ -521,6 +522,7 @@ export const DEFAULT_FEATURES: Features = {
|
|
521
522
|
llmMarketQuickActions: DEFAULT_FEATURE,
|
522
523
|
spamFilteringTx: DEFAULT_FEATURE,
|
523
524
|
lldSpamFilteringTx: DEFAULT_FEATURE,
|
525
|
+
llmSpamFilteringTx: DEFAULT_FEATURE,
|
524
526
|
llmMemoTag: DEFAULT_FEATURE,
|
525
527
|
lldMemoTag: DEFAULT_FEATURE,
|
526
528
|
ldmkTransport: {
|
@@ -620,8 +622,6 @@ export const DEFAULT_FEATURES: Features = {
|
|
620
622
|
receive_flow: true,
|
621
623
|
send_flow: true,
|
622
624
|
enableModularization: false,
|
623
|
-
searchDebounceTime: 500,
|
624
|
-
backendEnvironment: "PROD",
|
625
625
|
},
|
626
626
|
},
|
627
627
|
llmModularDrawer: {
|
@@ -634,8 +634,6 @@ export const DEFAULT_FEATURES: Features = {
|
|
634
634
|
receive_flow: true,
|
635
635
|
send_flow: true,
|
636
636
|
enableModularization: false,
|
637
|
-
searchDebounceTime: 500,
|
638
|
-
backendEnvironment: "PROD",
|
639
637
|
},
|
640
638
|
},
|
641
639
|
llNftSupport: DEFAULT_FEATURE,
|
@@ -11,7 +11,6 @@ import { bridge as hedera } from "../../families/hedera/setup";
|
|
11
11
|
import { bridge as filecoin } from "../../families/filecoin/setup";
|
12
12
|
import { bridge as internet_computer } from "../../families/internet_computer/setup";
|
13
13
|
import { bridge as icon } from "../../families/icon/setup";
|
14
|
-
import { bridge as kaspa } from "../../families/kaspa/setup";
|
15
14
|
import { bridge as multiversx } from "../../families/multiversx/setup";
|
16
15
|
import { bridge as near } from "../../families/near/setup";
|
17
16
|
import { bridge as polkadot } from "../../families/polkadot/setup";
|
@@ -38,7 +37,6 @@ export default {
|
|
38
37
|
filecoin,
|
39
38
|
internet_computer,
|
40
39
|
icon,
|
41
|
-
kaspa,
|
42
40
|
multiversx,
|
43
41
|
near,
|
44
42
|
polkadot,
|
@@ -11,7 +11,6 @@ import { cliTools as hedera } from "../families/hedera/setup";
|
|
11
11
|
import { cliTools as filecoin } from "../families/filecoin/setup";
|
12
12
|
import { cliTools as internet_computer } from "../families/internet_computer/setup";
|
13
13
|
import { cliTools as icon } from "../families/icon/setup";
|
14
|
-
import { cliTools as kaspa } from "../families/kaspa/setup";
|
15
14
|
import { cliTools as multiversx } from "../families/multiversx/setup";
|
16
15
|
import { cliTools as near } from "../families/near/setup";
|
17
16
|
import { cliTools as polkadot } from "../families/polkadot/setup";
|
@@ -40,7 +39,6 @@ export default {
|
|
40
39
|
filecoin,
|
41
40
|
internet_computer,
|
42
41
|
icon,
|
43
|
-
kaspa,
|
44
42
|
multiversx,
|
45
43
|
near,
|
46
44
|
polkadot,
|
@@ -11,7 +11,6 @@ import hedera from "@ledgerhq/coin-hedera/deviceTransactionConfig";
|
|
11
11
|
import filecoin from "@ledgerhq/coin-filecoin/deviceTransactionConfig";
|
12
12
|
import internet_computer from "@ledgerhq/coin-internet_computer/deviceTransactionConfig";
|
13
13
|
import icon from "@ledgerhq/coin-icon/deviceTransactionConfig";
|
14
|
-
import kaspa from "@ledgerhq/coin-kaspa/deviceTransactionConfig";
|
15
14
|
import multiversx from "@ledgerhq/coin-multiversx/deviceTransactionConfig";
|
16
15
|
import near from "@ledgerhq/coin-near/deviceTransactionConfig";
|
17
16
|
import polkadot from "@ledgerhq/coin-polkadot/deviceTransactionConfig";
|
@@ -38,7 +37,6 @@ export default {
|
|
38
37
|
filecoin,
|
39
38
|
internet_computer,
|
40
39
|
icon,
|
41
|
-
kaspa,
|
42
40
|
multiversx,
|
43
41
|
near,
|
44
42
|
polkadot,
|
@@ -11,7 +11,6 @@ import { resolver as hedera } from "../families/hedera/setup";
|
|
11
11
|
import { resolver as filecoin } from "../families/filecoin/setup";
|
12
12
|
import { resolver as internet_computer } from "../families/internet_computer/setup";
|
13
13
|
import { resolver as icon } from "../families/icon/setup";
|
14
|
-
import { resolver as kaspa } from "../families/kaspa/setup";
|
15
14
|
import { resolver as multiversx } from "../families/multiversx/setup";
|
16
15
|
import { resolver as near } from "../families/near/setup";
|
17
16
|
import { resolver as polkadot } from "../families/polkadot/setup";
|
@@ -40,7 +39,6 @@ export default {
|
|
40
39
|
filecoin,
|
41
40
|
internet_computer,
|
42
41
|
icon,
|
43
|
-
kaspa,
|
44
42
|
multiversx,
|
45
43
|
near,
|
46
44
|
polkadot,
|
@@ -11,7 +11,6 @@ import hedera from "@ledgerhq/coin-hedera/transaction";
|
|
11
11
|
import filecoin from "@ledgerhq/coin-filecoin/transaction";
|
12
12
|
import internet_computer from "@ledgerhq/coin-internet_computer/transaction";
|
13
13
|
import icon from "@ledgerhq/coin-icon/transaction";
|
14
|
-
import kaspa from "@ledgerhq/coin-kaspa/transaction";
|
15
14
|
import multiversx from "@ledgerhq/coin-multiversx/transaction";
|
16
15
|
import near from "@ledgerhq/coin-near/transaction";
|
17
16
|
import polkadot from "@ledgerhq/coin-polkadot/transaction";
|
@@ -40,7 +39,6 @@ export default {
|
|
40
39
|
filecoin,
|
41
40
|
internet_computer,
|
42
41
|
icon,
|
43
|
-
kaspa,
|
44
42
|
multiversx,
|
45
43
|
near,
|
46
44
|
polkadot,
|
package/src/generated/types.ts
CHANGED
@@ -76,12 +76,6 @@ import type {
|
|
76
76
|
TransactionStatus as internet_computerTransactionStatus,
|
77
77
|
TransactionStatusRaw as internet_computerTransactionStatusRaw,
|
78
78
|
} from "@ledgerhq/coin-internet_computer/types/index";
|
79
|
-
import type {
|
80
|
-
Transaction as kaspaTransaction,
|
81
|
-
TransactionRaw as kaspaTransactionRaw,
|
82
|
-
TransactionStatus as kaspaTransactionStatus,
|
83
|
-
TransactionStatusRaw as kaspaTransactionStatusRaw,
|
84
|
-
} from "@ledgerhq/coin-kaspa/types/index";
|
85
79
|
import type {
|
86
80
|
Transaction as minaTransaction,
|
87
81
|
TransactionRaw as minaTransactionRaw,
|
@@ -175,7 +169,6 @@ export type Transaction =
|
|
175
169
|
| hederaTransaction
|
176
170
|
| iconTransaction
|
177
171
|
| internet_computerTransaction
|
178
|
-
| kaspaTransaction
|
179
172
|
| minaTransaction
|
180
173
|
| multiversxTransaction
|
181
174
|
| nearTransaction
|
@@ -204,7 +197,6 @@ export type TransactionRaw =
|
|
204
197
|
| hederaTransactionRaw
|
205
198
|
| iconTransactionRaw
|
206
199
|
| internet_computerTransactionRaw
|
207
|
-
| kaspaTransactionRaw
|
208
200
|
| minaTransactionRaw
|
209
201
|
| multiversxTransactionRaw
|
210
202
|
| nearTransactionRaw
|
@@ -233,7 +225,6 @@ export type TransactionStatus =
|
|
233
225
|
| hederaTransactionStatus
|
234
226
|
| iconTransactionStatus
|
235
227
|
| internet_computerTransactionStatus
|
236
|
-
| kaspaTransactionStatus
|
237
228
|
| minaTransactionStatus
|
238
229
|
| multiversxTransactionStatus
|
239
230
|
| nearTransactionStatus
|
@@ -262,7 +253,6 @@ export type TransactionStatusRaw =
|
|
262
253
|
| hederaTransactionStatusRaw
|
263
254
|
| iconTransactionStatusRaw
|
264
255
|
| internet_computerTransactionStatusRaw
|
265
|
-
| kaspaTransactionStatusRaw
|
266
256
|
| minaTransactionStatusRaw
|
267
257
|
| multiversxTransactionStatusRaw
|
268
258
|
| nearTransactionStatusRaw
|
package/src/hw/actions/app.ts
CHANGED
@@ -62,22 +62,6 @@ describe("getDeviceNameMaxLength", () => {
|
|
62
62
|
}),
|
63
63
|
).toBe(20);
|
64
64
|
});
|
65
|
-
test("Europa of any version should max at 20", async () => {
|
66
|
-
expect(
|
67
|
-
getDeviceNameMaxLength({
|
68
|
-
deviceModelId: DeviceModelId.europa,
|
69
|
-
version: "0.0.1",
|
70
|
-
}),
|
71
|
-
).toBe(20);
|
72
|
-
});
|
73
|
-
test("Apex of any version should max at 20", async () => {
|
74
|
-
expect(
|
75
|
-
getDeviceNameMaxLength({
|
76
|
-
deviceModelId: DeviceModelId.apex,
|
77
|
-
version: "0.0.1",
|
78
|
-
}),
|
79
|
-
).toBe(20);
|
80
|
-
});
|
81
65
|
test("Other models should just return 17 as a fallback", async () => {
|
82
66
|
expect(
|
83
67
|
getDeviceNameMaxLength({
|
@@ -30,7 +30,7 @@ function transformAssetsResponse(
|
|
30
30
|
export const assetsDataApi = createApi({
|
31
31
|
reducerPath: "assetsDataApi",
|
32
32
|
baseQuery: fetchBaseQuery({
|
33
|
-
baseUrl: ""
|
33
|
+
baseUrl: __DEV__ ? getEnv("DADA_API_STAGING") : getEnv("DADA_API_PROD"),
|
34
34
|
}),
|
35
35
|
tagTypes: [AssetsDataTags.Assets],
|
36
36
|
endpoints: build => ({
|
@@ -49,10 +49,8 @@ export const assetsDataApi = createApi({
|
|
49
49
|
additionalData: [AssetsAdditionalData.Apy, AssetsAdditionalData.MarketTrend],
|
50
50
|
};
|
51
51
|
|
52
|
-
const baseUrl = queryArg.isStaging ? getEnv("DADA_API_STAGING") : getEnv("DADA_API_PROD");
|
53
|
-
|
54
52
|
return {
|
55
|
-
url:
|
53
|
+
url: "assets",
|
56
54
|
params,
|
57
55
|
};
|
58
56
|
},
|