@ledgerhq/live-common 34.48.0-nightly.2 → 34.48.0-nightly.4
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/createTransaction.d.ts +1 -1
- package/lib/bridge/generic-alpaca/createTransaction.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/createTransaction.js +8 -0
- 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/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/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/utils.d.ts +2 -0
- 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/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/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/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/index.d.ts +0 -4
- package/lib/e2e/index.d.ts.map +1 -1
- package/lib/e2e/speculos.d.ts.map +1 -1
- package/lib/e2e/speculos.js +12 -0
- package/lib/e2e/speculos.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/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/xrp/setup.d.ts +2 -2
- package/lib/featureFlags/defaultFeatures.d.ts.map +1 -1
- package/lib/featureFlags/defaultFeatures.js +4 -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/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/useAssetsData.d.ts +2 -1
- package/lib/modularDrawer/hooks/useAssetsData.d.ts.map +1 -1
- package/lib/modularDrawer/hooks/useAssetsData.js +2 -1
- package/lib/modularDrawer/hooks/useAssetsData.js.map +1 -1
- 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/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 +8 -0
- 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/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/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/utils.d.ts +2 -0
- 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/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/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/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/index.d.ts +0 -4
- 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 +12 -0
- package/lib-es/e2e/speculos.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/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/xrp/setup.d.ts +2 -2
- package/lib-es/featureFlags/defaultFeatures.d.ts.map +1 -1
- package/lib-es/featureFlags/defaultFeatures.js +4 -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/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/useAssetsData.d.ts +2 -1
- package/lib-es/modularDrawer/hooks/useAssetsData.d.ts.map +1 -1
- package/lib-es/modularDrawer/hooks/useAssetsData.js +2 -1
- package/lib-es/modularDrawer/hooks/useAssetsData.js.map +1 -1
- 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 +47 -44
- 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 +13 -18
- package/src/bridge/generic-alpaca/alpaca/index.unit.test.ts +38 -10
- package/src/bridge/generic-alpaca/createTransaction.ts +9 -1
- package/src/bridge/generic-alpaca/currencyBridge.ts +8 -2
- package/src/bridge/generic-alpaca/getAccountShape.ts +4 -5
- 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/utils.test.ts +29 -1
- package/src/bridge/generic-alpaca/utils.ts +15 -0
- package/src/config/sharedConfig.ts +2 -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/Network.ts +1 -0
- package/src/e2e/families/kaspa.ts +17 -0
- package/src/e2e/speculos.ts +12 -0
- package/src/exchange/swap/transactionStrategies.ts +121 -73
- 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/featureFlags/defaultFeatures.ts +4 -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/state-manager/api.ts +4 -2
- package/src/modularDrawer/data/state-manager/types.ts +1 -0
- package/src/modularDrawer/hooks/useAssetsData.ts +3 -0
- package/src/wallet-api/Exchange/server.ts +17 -14
@@ -1,16 +1,7 @@
|
|
1
1
|
import { BigNumber } from "bignumber.js";
|
2
2
|
|
3
|
-
import {
|
4
|
-
|
5
|
-
ElrondTransaction,
|
6
|
-
RippleTransaction,
|
7
|
-
SolanaTransaction,
|
8
|
-
StellarTransaction,
|
9
|
-
TonTransaction,
|
10
|
-
Transaction,
|
11
|
-
TransactionCommon,
|
12
|
-
} from "@ledgerhq/wallet-api-client";
|
13
|
-
|
3
|
+
import { Transaction } from "../../generated/types";
|
4
|
+
import { TransactionCommon } from "@ledgerhq/types-live";
|
14
5
|
export type { SwapLiveError } from "@ledgerhq/wallet-api-exchange-module";
|
15
6
|
|
16
7
|
export function defaultTransaction({
|
@@ -18,35 +9,81 @@ export function defaultTransaction({
|
|
18
9
|
amount,
|
19
10
|
recipient,
|
20
11
|
customFeeConfig,
|
21
|
-
}: TransactionWithCustomFee): Transaction {
|
22
|
-
|
12
|
+
}: TransactionWithCustomFee): Partial<Transaction> {
|
13
|
+
// Type assertion needed because each Transaction family has different required properties
|
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 {
|
23
17
|
family,
|
24
18
|
amount,
|
25
19
|
recipient,
|
26
20
|
...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,
|
27
35
|
};
|
28
36
|
}
|
29
37
|
|
30
|
-
export function
|
31
|
-
family,
|
38
|
+
export function nearTransaction({
|
32
39
|
amount,
|
33
40
|
recipient,
|
34
41
|
customFeeConfig,
|
35
|
-
}: TransactionWithCustomFee): Transaction {
|
42
|
+
}: TransactionWithCustomFee): Extract<Transaction, { family: "near" }> {
|
36
43
|
return {
|
37
|
-
|
44
|
+
family: "near",
|
45
|
+
amount,
|
46
|
+
recipient,
|
38
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({
|
67
|
+
amount,
|
68
|
+
recipient,
|
69
|
+
customFeeConfig,
|
70
|
+
}: TransactionWithCustomFee): Partial<Extract<Transaction, { family: "tron" }>> {
|
71
|
+
return {
|
72
|
+
family: "tron",
|
73
|
+
amount,
|
74
|
+
recipient,
|
75
|
+
mode: "send",
|
76
|
+
...customFeeConfig,
|
39
77
|
};
|
40
78
|
}
|
41
79
|
|
42
80
|
export function stellarTransaction({
|
43
|
-
family,
|
44
81
|
amount,
|
45
82
|
recipient,
|
46
83
|
customFeeConfig,
|
47
84
|
payinExtraId,
|
48
85
|
customErrorType,
|
49
|
-
}: TransactionWithCustomFee):
|
86
|
+
}: TransactionWithCustomFee): Extract<Transaction, { family: "stellar" }> {
|
50
87
|
if (!payinExtraId)
|
51
88
|
throw {
|
52
89
|
error: new Error("Missing payinExtraId"),
|
@@ -55,8 +92,11 @@ export function stellarTransaction({
|
|
55
92
|
};
|
56
93
|
|
57
94
|
return {
|
58
|
-
...defaultTransaction({ family, amount, recipient, customFeeConfig }),
|
59
95
|
family: "stellar",
|
96
|
+
mode: "send",
|
97
|
+
amount,
|
98
|
+
recipient,
|
99
|
+
...customFeeConfig,
|
60
100
|
memoValue: payinExtraId,
|
61
101
|
memoType: "MEMO_TEXT",
|
62
102
|
};
|
@@ -68,7 +108,7 @@ export function rippleTransaction({
|
|
68
108
|
customFeeConfig,
|
69
109
|
payinExtraId,
|
70
110
|
customErrorType,
|
71
|
-
}: TransactionWithCustomFee):
|
111
|
+
}: TransactionWithCustomFee): Partial<Extract<Transaction, { family: "xrp" }>> {
|
72
112
|
if (!payinExtraId)
|
73
113
|
throw {
|
74
114
|
error: new Error("Missing payinExtraId"),
|
@@ -76,38 +116,40 @@ export function rippleTransaction({
|
|
76
116
|
customErrorType,
|
77
117
|
};
|
78
118
|
|
79
|
-
|
80
|
-
family: "
|
119
|
+
return {
|
120
|
+
family: "xrp",
|
81
121
|
amount,
|
82
122
|
recipient,
|
83
123
|
...customFeeConfig,
|
84
124
|
tag: new BigNumber(payinExtraId).toNumber(),
|
85
125
|
};
|
86
|
-
return transaction;
|
87
126
|
}
|
88
127
|
|
89
|
-
|
90
|
-
export function withoutGasLimitTransaction({
|
91
|
-
family,
|
128
|
+
export function evmTransaction({
|
92
129
|
amount,
|
93
130
|
recipient,
|
94
131
|
customFeeConfig,
|
95
132
|
extraTransactionParameters,
|
96
|
-
}: TransactionWithCustomFee): Transaction {
|
133
|
+
}: TransactionWithCustomFee): Partial<Extract<Transaction, { family: "evm" }>> {
|
97
134
|
if (customFeeConfig?.gasLimit) {
|
98
135
|
delete customFeeConfig.gasLimit;
|
99
136
|
}
|
100
137
|
|
101
138
|
if (extraTransactionParameters) {
|
102
|
-
return
|
103
|
-
family,
|
139
|
+
return {
|
140
|
+
family: "evm" as const,
|
104
141
|
amount,
|
105
142
|
recipient,
|
106
143
|
...customFeeConfig,
|
107
144
|
data: Buffer.from(extraTransactionParameters, "hex"),
|
108
145
|
};
|
109
146
|
}
|
110
|
-
return
|
147
|
+
return {
|
148
|
+
family: "evm" as const,
|
149
|
+
amount,
|
150
|
+
recipient,
|
151
|
+
...customFeeConfig,
|
152
|
+
};
|
111
153
|
}
|
112
154
|
|
113
155
|
export function bitcoinTransaction({
|
@@ -115,33 +157,33 @@ export function bitcoinTransaction({
|
|
115
157
|
recipient,
|
116
158
|
customFeeConfig,
|
117
159
|
extraTransactionParameters,
|
118
|
-
}: TransactionWithCustomFee): Transaction {
|
160
|
+
}: TransactionWithCustomFee): Partial<Extract<Transaction, { family: "bitcoin" }>> {
|
161
|
+
const baseTransaction = {
|
162
|
+
family: "bitcoin" as const,
|
163
|
+
amount,
|
164
|
+
recipient,
|
165
|
+
...customFeeConfig,
|
166
|
+
};
|
167
|
+
|
119
168
|
if (extraTransactionParameters) {
|
120
169
|
return {
|
121
|
-
|
122
|
-
amount,
|
123
|
-
recipient,
|
124
|
-
...customFeeConfig,
|
170
|
+
...baseTransaction,
|
125
171
|
opReturnData: Buffer.from(extraTransactionParameters, "utf-8"),
|
126
172
|
};
|
127
173
|
}
|
128
|
-
|
129
|
-
|
130
|
-
amount,
|
131
|
-
recipient,
|
132
|
-
...customFeeConfig,
|
133
|
-
};
|
174
|
+
|
175
|
+
return baseTransaction;
|
134
176
|
}
|
135
177
|
|
136
178
|
export function solanaTransaction({
|
137
|
-
family,
|
138
179
|
amount,
|
139
180
|
recipient,
|
140
|
-
customFeeConfig,
|
141
|
-
}: TransactionWithCustomFee):
|
181
|
+
customFeeConfig: _customFeeConfig,
|
182
|
+
}: TransactionWithCustomFee): Extract<Transaction, { family: "solana" }> {
|
142
183
|
return {
|
143
|
-
...defaultTransaction({ family, amount, recipient, customFeeConfig }),
|
144
184
|
family: "solana",
|
185
|
+
amount,
|
186
|
+
recipient,
|
145
187
|
model: { kind: "transfer", uiState: {} },
|
146
188
|
};
|
147
189
|
}
|
@@ -150,43 +192,44 @@ export function elrondTransaction({
|
|
150
192
|
amount,
|
151
193
|
recipient,
|
152
194
|
customFeeConfig,
|
153
|
-
}: TransactionWithCustomFee):
|
154
|
-
|
155
|
-
family: "
|
195
|
+
}: TransactionWithCustomFee): Extract<Transaction, { family: "multiversx" }> {
|
196
|
+
return {
|
197
|
+
family: "multiversx",
|
156
198
|
amount,
|
157
199
|
recipient,
|
158
200
|
mode: "send",
|
159
|
-
|
160
|
-
gasLimit:
|
201
|
+
fees: customFeeConfig.fees || null,
|
202
|
+
gasLimit: customFeeConfig.gasLimit ? Number(customFeeConfig.gasLimit) : 0,
|
161
203
|
};
|
162
|
-
return transaction;
|
163
204
|
}
|
164
205
|
|
165
206
|
function tonTransaction({
|
166
|
-
family,
|
167
207
|
amount,
|
168
208
|
recipient,
|
169
|
-
customFeeConfig,
|
170
|
-
}: TransactionWithCustomFee):
|
209
|
+
customFeeConfig: _customFeeConfig,
|
210
|
+
}: TransactionWithCustomFee): Extract<Transaction, { family: "ton" }> {
|
171
211
|
return {
|
172
|
-
...defaultTransaction({ family, amount, recipient, customFeeConfig }),
|
173
212
|
family: "ton",
|
213
|
+
amount,
|
214
|
+
recipient,
|
174
215
|
comment: { isEncrypted: false, text: "" },
|
175
216
|
fees: new BigNumber(0), // Set default value as completeExchange call prepareTransaction, which set again fees.
|
176
217
|
};
|
177
218
|
}
|
178
219
|
|
179
220
|
export function cosmosTransaction({
|
180
|
-
family,
|
181
221
|
amount,
|
182
222
|
recipient,
|
183
223
|
customFeeConfig,
|
184
224
|
payinExtraId,
|
185
|
-
}: TransactionWithCustomFee):
|
186
|
-
return
|
187
|
-
...defaultTransaction({ family, amount, recipient, customFeeConfig }),
|
225
|
+
}: TransactionWithCustomFee): Partial<Extract<Transaction, { family: "cosmos" }>> {
|
226
|
+
return {
|
188
227
|
family: "cosmos",
|
228
|
+
amount,
|
229
|
+
recipient,
|
189
230
|
mode: "send",
|
231
|
+
networkInfo: null,
|
232
|
+
...customFeeConfig,
|
190
233
|
memo: payinExtraId ?? undefined,
|
191
234
|
};
|
192
235
|
}
|
@@ -198,10 +241,13 @@ export type TransactionWithCustomFee = TransactionCommon & {
|
|
198
241
|
payinExtraId?: string;
|
199
242
|
customErrorType?: "swap";
|
200
243
|
extraTransactionParameters?: string;
|
244
|
+
family: string;
|
201
245
|
};
|
202
246
|
|
203
247
|
// Define a specific type for the strategy functions, assuming they might need parameters
|
204
|
-
export type TransactionStrategyFunction = (
|
248
|
+
export type TransactionStrategyFunction = (
|
249
|
+
params: TransactionWithCustomFee,
|
250
|
+
) => Partial<Transaction>;
|
205
251
|
|
206
252
|
export const transactionStrategy: {
|
207
253
|
[K in Transaction["family"]]: TransactionStrategyFunction;
|
@@ -209,26 +255,28 @@ export const transactionStrategy: {
|
|
209
255
|
algorand: defaultTransaction,
|
210
256
|
aptos: defaultTransaction,
|
211
257
|
bitcoin: bitcoinTransaction,
|
212
|
-
|
258
|
+
canton: defaultTransaction,
|
259
|
+
cardano: cardanoTransaction,
|
260
|
+
casper: defaultTransaction,
|
213
261
|
celo: defaultTransaction,
|
214
262
|
cosmos: cosmosTransaction,
|
215
|
-
|
216
|
-
elrond: elrondTransaction,
|
217
|
-
ethereum: withoutGasLimitTransaction,
|
263
|
+
evm: evmTransaction,
|
218
264
|
filecoin: defaultTransaction,
|
219
265
|
hedera: defaultTransaction,
|
220
|
-
|
221
|
-
|
266
|
+
icon: defaultTransaction,
|
267
|
+
internet_computer: defaultTransaction,
|
268
|
+
mina: defaultTransaction,
|
269
|
+
multiversx: elrondTransaction,
|
270
|
+
near: nearTransaction,
|
222
271
|
polkadot: defaultTransaction,
|
223
|
-
ripple: rippleTransaction,
|
224
272
|
solana: solanaTransaction,
|
225
273
|
stacks: defaultTransaction,
|
226
274
|
stellar: stellarTransaction,
|
227
|
-
|
275
|
+
sui: defaultTransaction,
|
276
|
+
tezos: tezosTransaction,
|
228
277
|
ton: tonTransaction,
|
229
|
-
tron:
|
278
|
+
tron: tronTransaction,
|
230
279
|
vechain: defaultTransaction,
|
231
|
-
|
232
|
-
|
233
|
-
internet_computer: defaultTransaction,
|
280
|
+
kaspa: defaultTransaction,
|
281
|
+
xrp: rippleTransaction,
|
234
282
|
};
|
@@ -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: "etherscan",
|
678
|
+
uri: "https://proxyetherscan.api.live.ledger.com/v2/api/1101",
|
679
679
|
},
|
680
680
|
showNfts: false,
|
681
681
|
},
|
@@ -0,0 +1,66 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`kaspa currency bridge scanAccounts kaspa seed 1 1`] = `
|
4
|
+
[
|
5
|
+
{
|
6
|
+
"balance": "13370000",
|
7
|
+
"currencyId": "kaspa",
|
8
|
+
"derivationMode": "",
|
9
|
+
"freshAddress": "kaspa:qz49rpg0q6ywewxkwl76757ya79v6j556hcmrcy7mk9d36ewgp80cdrwlct2h",
|
10
|
+
"freshAddressPath": "44'/111111'/0'/0/1",
|
11
|
+
"id": "js:2:kaspa:41049d8002c08041d975ab58491c09cf8ced7b388a114ab2f5df73f2534d4d74d17ab8913b3cb3056bad63141cb63fb92e44401b691dee069dbdb2119861c18cc01b204340fcc305ab72e752cd347f4b6271ffe21da098d4f2a4749826857dda7a5576:",
|
12
|
+
"index": 0,
|
13
|
+
"operationsCount": 1,
|
14
|
+
"pendingOperations": [],
|
15
|
+
"seedIdentifier": "41049d8002c08041d975ab58491c09cf8ced7b388a114ab2f5df73f2534d4d74d17ab8913b3cb3056bad63141cb63fb92e44401b691dee069dbdb2119861c18cc01b204340fcc305ab72e752cd347f4b6271ffe21da098d4f2a4749826857dda7a5576",
|
16
|
+
"spendableBalance": "13370000",
|
17
|
+
"swapHistory": [],
|
18
|
+
"syncHash": undefined,
|
19
|
+
"used": true,
|
20
|
+
"xpub": "41049d8002c08041d975ab58491c09cf8ced7b388a114ab2f5df73f2534d4d74d17ab8913b3cb3056bad63141cb63fb92e44401b691dee069dbdb2119861c18cc01b204340fcc305ab72e752cd347f4b6271ffe21da098d4f2a4749826857dda7a5576",
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"balance": "0",
|
24
|
+
"currencyId": "kaspa",
|
25
|
+
"derivationMode": "",
|
26
|
+
"freshAddress": "kaspa:qpncmme6ues25uk9umkqju4rtwtt33ud9lcrp7qn8jwv62m53m26jpjhar48j",
|
27
|
+
"freshAddressPath": "44'/111111'/1'/0/0",
|
28
|
+
"id": "js:2:kaspa:4104751b5ebd4a9d2a0a25d5c37cab4814a95335b8945cfcaa6a4138de418f581bb1d0d02f22081b3cda223a51e18a63ebdffd64803e0988b68a91802738a5a9f901206d4a2b989a82b5fb160f0151ea5d046451a291a0748f3038ecdc63d637cce00b:",
|
29
|
+
"index": 1,
|
30
|
+
"operationsCount": 0,
|
31
|
+
"pendingOperations": [],
|
32
|
+
"seedIdentifier": "41049d8002c08041d975ab58491c09cf8ced7b388a114ab2f5df73f2534d4d74d17ab8913b3cb3056bad63141cb63fb92e44401b691dee069dbdb2119861c18cc01b204340fcc305ab72e752cd347f4b6271ffe21da098d4f2a4749826857dda7a5576",
|
33
|
+
"spendableBalance": "0",
|
34
|
+
"swapHistory": [],
|
35
|
+
"syncHash": undefined,
|
36
|
+
"used": false,
|
37
|
+
"xpub": "4104751b5ebd4a9d2a0a25d5c37cab4814a95335b8945cfcaa6a4138de418f581bb1d0d02f22081b3cda223a51e18a63ebdffd64803e0988b68a91802738a5a9f901206d4a2b989a82b5fb160f0151ea5d046451a291a0748f3038ecdc63d637cce00b",
|
38
|
+
},
|
39
|
+
]
|
40
|
+
`;
|
41
|
+
|
42
|
+
exports[`kaspa currency bridge scanAccounts kaspa seed 1 2`] = `
|
43
|
+
[
|
44
|
+
[
|
45
|
+
{
|
46
|
+
"accountId": "js:2:kaspa:41049d8002c08041d975ab58491c09cf8ced7b388a114ab2f5df73f2534d4d74d17ab8913b3cb3056bad63141cb63fb92e44401b691dee069dbdb2119861c18cc01b204340fcc305ab72e752cd347f4b6271ffe21da098d4f2a4749826857dda7a5576:",
|
47
|
+
"blockHash": "12166d40313b71447d4dd837f2e91e749407b0a1c8844e9e9d010390a67d6b52",
|
48
|
+
"blockHeight": 194187672,
|
49
|
+
"extra": {},
|
50
|
+
"fee": "2069",
|
51
|
+
"hash": "ed6dc5422558c3480e6a7809bf166e6ba1f2931ef39f24fe9b3bcf48253e4752",
|
52
|
+
"id": "ed6dc5422558c3480e6a7809bf166e6ba1f2931ef39f24fe9b3bcf48253e4752",
|
53
|
+
"recipients": [
|
54
|
+
"kaspa:qzavrhr9eg0k7pgr8mysfej34alfy8uj6vc9r84kgqfkqd8rtgxm5t0jvah73",
|
55
|
+
"kaspa:qqt874j85r5ga5av0q6tthj2tu89dfpchjmvjuvx5tyn2vpjjrhk7tcpsx2vu",
|
56
|
+
],
|
57
|
+
"senders": [
|
58
|
+
"kaspa:qqt874j85r5ga5av0q6tthj2tu89dfpchjmvjuvx5tyn2vpjjrhk7tcpsx2vu",
|
59
|
+
],
|
60
|
+
"type": "IN",
|
61
|
+
"value": "13370000",
|
62
|
+
},
|
63
|
+
],
|
64
|
+
[],
|
65
|
+
]
|
66
|
+
`;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import type { Account, FeeStrategy } from "@ledgerhq/types-live";
|
2
|
+
import type { Transaction } from "@ledgerhq/coin-kaspa/types/index";
|
3
|
+
import { BigNumber } from "bignumber.js";
|
4
|
+
|
5
|
+
export const useFeesStrategy = (a: Account, t: Transaction): FeeStrategy[] => {
|
6
|
+
const allSameEstimatedSeconds: boolean = t.networkInfo.every(
|
7
|
+
ni => ni.estimatedSeconds === t.networkInfo[0].estimatedSeconds,
|
8
|
+
);
|
9
|
+
|
10
|
+
return t.networkInfo.map(ni => ({
|
11
|
+
label: ni.label,
|
12
|
+
amount: ni.amount,
|
13
|
+
disabled: (ni.label === "slow" || ni.label === "medium") && allSameEstimatedSeconds,
|
14
|
+
extra: {
|
15
|
+
estimatedMs: BigNumber(ni.estimatedSeconds * 1000),
|
16
|
+
},
|
17
|
+
unit: a.currency.units[a.currency.units.length - 1], // Should be sat
|
18
|
+
}));
|
19
|
+
};
|
@@ -0,0 +1,27 @@
|
|
1
|
+
// Goal of this file is to inject all necessary device/signer dependency to coin-modules
|
2
|
+
|
3
|
+
import kaspaResolver from "@ledgerhq/coin-kaspa/hw-getAddress";
|
4
|
+
import Kaspa from "@ledgerhq/hw-app-kaspa";
|
5
|
+
import Transport from "@ledgerhq/hw-transport";
|
6
|
+
import { createResolver, CreateSigner, executeWithSigner } from "../../bridge/setup";
|
7
|
+
import type { Resolver } from "../../hw/getAddress/types";
|
8
|
+
import { KaspaSigner } from "@ledgerhq/coin-kaspa/types/signer";
|
9
|
+
import { KaspaAccount, Transaction, TransactionStatus } from "@ledgerhq/coin-kaspa/types/bridge";
|
10
|
+
import { createBridges } from "@ledgerhq/coin-kaspa/bridge";
|
11
|
+
import type { Bridge } from "@ledgerhq/types-live";
|
12
|
+
import makeCliTools from "@ledgerhq/coin-kaspa/test/cli";
|
13
|
+
|
14
|
+
const createSigner: CreateSigner<KaspaSigner> = (transport: Transport) => {
|
15
|
+
return new Kaspa(transport);
|
16
|
+
};
|
17
|
+
|
18
|
+
// const kaspaCoin = getCryptoCurrencyById("kaspa");
|
19
|
+
const resolver: Resolver = createResolver(createSigner, kaspaResolver);
|
20
|
+
// const getCurrencyConfig = (): KaspaCoinConfig => getCurrencyConfiguration(kaspaCoin);
|
21
|
+
|
22
|
+
const bridge: Bridge<Transaction, KaspaAccount, TransactionStatus> = createBridges(
|
23
|
+
executeWithSigner(createSigner),
|
24
|
+
);
|
25
|
+
const cliTools = makeCliTools;
|
26
|
+
|
27
|
+
export { bridge, cliTools, resolver };
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "@ledgerhq/coin-kaspa/types/index";
|
@@ -103,7 +103,6 @@ export const CURRENCY_DEFAULT_FEATURES = {
|
|
103
103
|
*/
|
104
104
|
export const DEFAULT_FEATURES: Features = {
|
105
105
|
...CURRENCY_DEFAULT_FEATURES,
|
106
|
-
brazeLearn: DEFAULT_FEATURE,
|
107
106
|
portfolioExchangeBanner: DEFAULT_FEATURE,
|
108
107
|
postOnboardingAssetsTransfer: DEFAULT_FEATURE,
|
109
108
|
counterValue: DEFAULT_FEATURE,
|
@@ -522,7 +521,6 @@ export const DEFAULT_FEATURES: Features = {
|
|
522
521
|
llmMarketQuickActions: DEFAULT_FEATURE,
|
523
522
|
spamFilteringTx: DEFAULT_FEATURE,
|
524
523
|
lldSpamFilteringTx: DEFAULT_FEATURE,
|
525
|
-
llmSpamFilteringTx: DEFAULT_FEATURE,
|
526
524
|
llmMemoTag: DEFAULT_FEATURE,
|
527
525
|
lldMemoTag: DEFAULT_FEATURE,
|
528
526
|
ldmkTransport: {
|
@@ -622,6 +620,8 @@ export const DEFAULT_FEATURES: Features = {
|
|
622
620
|
receive_flow: true,
|
623
621
|
send_flow: true,
|
624
622
|
enableModularization: false,
|
623
|
+
searchDebounceTime: 500,
|
624
|
+
backendEnvironment: "PROD",
|
625
625
|
},
|
626
626
|
},
|
627
627
|
llmModularDrawer: {
|
@@ -634,6 +634,8 @@ 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",
|
637
639
|
},
|
638
640
|
},
|
639
641
|
llNftSupport: DEFAULT_FEATURE,
|
@@ -11,6 +11,7 @@ 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";
|
14
15
|
import { bridge as multiversx } from "../../families/multiversx/setup";
|
15
16
|
import { bridge as near } from "../../families/near/setup";
|
16
17
|
import { bridge as polkadot } from "../../families/polkadot/setup";
|
@@ -37,6 +38,7 @@ export default {
|
|
37
38
|
filecoin,
|
38
39
|
internet_computer,
|
39
40
|
icon,
|
41
|
+
kaspa,
|
40
42
|
multiversx,
|
41
43
|
near,
|
42
44
|
polkadot,
|
@@ -11,6 +11,7 @@ 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";
|
14
15
|
import { cliTools as multiversx } from "../families/multiversx/setup";
|
15
16
|
import { cliTools as near } from "../families/near/setup";
|
16
17
|
import { cliTools as polkadot } from "../families/polkadot/setup";
|
@@ -39,6 +40,7 @@ export default {
|
|
39
40
|
filecoin,
|
40
41
|
internet_computer,
|
41
42
|
icon,
|
43
|
+
kaspa,
|
42
44
|
multiversx,
|
43
45
|
near,
|
44
46
|
polkadot,
|
@@ -11,6 +11,7 @@ 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";
|
14
15
|
import multiversx from "@ledgerhq/coin-multiversx/deviceTransactionConfig";
|
15
16
|
import near from "@ledgerhq/coin-near/deviceTransactionConfig";
|
16
17
|
import polkadot from "@ledgerhq/coin-polkadot/deviceTransactionConfig";
|
@@ -37,6 +38,7 @@ export default {
|
|
37
38
|
filecoin,
|
38
39
|
internet_computer,
|
39
40
|
icon,
|
41
|
+
kaspa,
|
40
42
|
multiversx,
|
41
43
|
near,
|
42
44
|
polkadot,
|
@@ -11,6 +11,7 @@ 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";
|
14
15
|
import { resolver as multiversx } from "../families/multiversx/setup";
|
15
16
|
import { resolver as near } from "../families/near/setup";
|
16
17
|
import { resolver as polkadot } from "../families/polkadot/setup";
|
@@ -39,6 +40,7 @@ export default {
|
|
39
40
|
filecoin,
|
40
41
|
internet_computer,
|
41
42
|
icon,
|
43
|
+
kaspa,
|
42
44
|
multiversx,
|
43
45
|
near,
|
44
46
|
polkadot,
|
@@ -11,6 +11,7 @@ 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";
|
14
15
|
import multiversx from "@ledgerhq/coin-multiversx/transaction";
|
15
16
|
import near from "@ledgerhq/coin-near/transaction";
|
16
17
|
import polkadot from "@ledgerhq/coin-polkadot/transaction";
|
@@ -39,6 +40,7 @@ export default {
|
|
39
40
|
filecoin,
|
40
41
|
internet_computer,
|
41
42
|
icon,
|
43
|
+
kaspa,
|
42
44
|
multiversx,
|
43
45
|
near,
|
44
46
|
polkadot,
|
package/src/generated/types.ts
CHANGED
@@ -76,6 +76,12 @@ 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";
|
79
85
|
import type {
|
80
86
|
Transaction as minaTransaction,
|
81
87
|
TransactionRaw as minaTransactionRaw,
|
@@ -169,6 +175,7 @@ export type Transaction =
|
|
169
175
|
| hederaTransaction
|
170
176
|
| iconTransaction
|
171
177
|
| internet_computerTransaction
|
178
|
+
| kaspaTransaction
|
172
179
|
| minaTransaction
|
173
180
|
| multiversxTransaction
|
174
181
|
| nearTransaction
|
@@ -197,6 +204,7 @@ export type TransactionRaw =
|
|
197
204
|
| hederaTransactionRaw
|
198
205
|
| iconTransactionRaw
|
199
206
|
| internet_computerTransactionRaw
|
207
|
+
| kaspaTransactionRaw
|
200
208
|
| minaTransactionRaw
|
201
209
|
| multiversxTransactionRaw
|
202
210
|
| nearTransactionRaw
|
@@ -225,6 +233,7 @@ export type TransactionStatus =
|
|
225
233
|
| hederaTransactionStatus
|
226
234
|
| iconTransactionStatus
|
227
235
|
| internet_computerTransactionStatus
|
236
|
+
| kaspaTransactionStatus
|
228
237
|
| minaTransactionStatus
|
229
238
|
| multiversxTransactionStatus
|
230
239
|
| nearTransactionStatus
|
@@ -253,6 +262,7 @@ export type TransactionStatusRaw =
|
|
253
262
|
| hederaTransactionStatusRaw
|
254
263
|
| iconTransactionStatusRaw
|
255
264
|
| internet_computerTransactionStatusRaw
|
265
|
+
| kaspaTransactionStatusRaw
|
256
266
|
| minaTransactionStatusRaw
|
257
267
|
| multiversxTransactionStatusRaw
|
258
268
|
| nearTransactionStatusRaw
|