@ledgerhq/live-common 27.1.0-next.3 → 27.1.0-next.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__/currencies.js +1 -1
- package/lib/__tests__/currencies.js.map +1 -1
- package/lib/__tests__/test-helpers/environment.js +5 -0
- package/lib/__tests__/test-helpers/environment.js.map +1 -1
- package/lib/apps/logic.d.ts.map +1 -1
- package/lib/apps/logic.js +5 -1
- package/lib/apps/logic.js.map +1 -1
- package/lib/apps/mock.d.ts.map +1 -1
- package/lib/apps/mock.js +5 -1
- package/lib/apps/mock.js.map +1 -1
- package/lib/data/icons/react/flr.d.ts +8 -0
- package/lib/data/icons/react/flr.d.ts.map +1 -0
- package/lib/data/icons/react/flr.js +35 -0
- package/lib/data/icons/react/flr.js.map +1 -0
- package/lib/data/icons/react/ftm.d.ts +8 -0
- package/lib/data/icons/react/ftm.d.ts.map +1 -0
- package/lib/data/icons/react/ftm.js +35 -0
- package/lib/data/icons/react/ftm.js.map +1 -0
- package/lib/data/icons/react/glmr.d.ts +8 -0
- package/lib/data/icons/react/glmr.d.ts.map +1 -0
- package/lib/data/icons/react/glmr.js +49 -0
- package/lib/data/icons/react/glmr.js.map +1 -0
- package/lib/data/icons/react/index.d.ts +4 -0
- package/lib/data/icons/react/index.d.ts.map +1 -1
- package/lib/data/icons/react/index.js +15 -7
- package/lib/data/icons/react/index.js.map +1 -1
- package/lib/data/icons/react/sgb.d.ts +8 -0
- package/lib/data/icons/react/sgb.d.ts.map +1 -0
- package/lib/data/icons/react/sgb.js +41 -0
- package/lib/data/icons/react/sgb.js.map +1 -0
- package/lib/data/icons/reactNative/flr.d.ts +8 -0
- package/lib/data/icons/reactNative/flr.d.ts.map +1 -0
- package/lib/data/icons/reactNative/flr.js +36 -0
- package/lib/data/icons/reactNative/flr.js.map +1 -0
- package/lib/data/icons/reactNative/ftm.d.ts +8 -0
- package/lib/data/icons/reactNative/ftm.d.ts.map +1 -0
- package/lib/data/icons/reactNative/ftm.js +36 -0
- package/lib/data/icons/reactNative/ftm.js.map +1 -0
- package/lib/data/icons/reactNative/glmr.d.ts +8 -0
- package/lib/data/icons/reactNative/glmr.d.ts.map +1 -0
- package/lib/data/icons/reactNative/glmr.js +50 -0
- package/lib/data/icons/reactNative/glmr.js.map +1 -0
- package/lib/data/icons/reactNative/index.d.ts +4 -0
- package/lib/data/icons/reactNative/index.d.ts.map +1 -1
- package/lib/data/icons/reactNative/index.js +15 -7
- package/lib/data/icons/reactNative/index.js.map +1 -1
- package/lib/data/icons/reactNative/sgb.d.ts +8 -0
- package/lib/data/icons/reactNative/sgb.d.ts.map +1 -0
- package/lib/data/icons/reactNative/sgb.js +42 -0
- package/lib/data/icons/reactNative/sgb.js.map +1 -0
- package/lib/families/bitcoin/satstack.js +1 -1
- package/lib/families/bitcoin/satstack.js.map +1 -1
- package/lib/families/ethereum/modules/compound.js +1 -1
- package/lib/families/ethereum/modules/compound.js.map +1 -1
- package/lib/families/evm/__tests__/adapters.unit.test.d.ts +2 -0
- package/lib/families/evm/__tests__/adapters.unit.test.d.ts.map +1 -0
- package/lib/families/evm/__tests__/adapters.unit.test.js +130 -0
- package/lib/families/evm/__tests__/adapters.unit.test.js.map +1 -0
- package/lib/families/evm/__tests__/broadcast.unit.test.d.ts +2 -0
- package/lib/families/evm/__tests__/broadcast.unit.test.d.ts.map +1 -0
- package/lib/families/evm/__tests__/broadcast.unit.test.js +151 -0
- package/lib/families/evm/__tests__/broadcast.unit.test.js.map +1 -0
- package/lib/families/evm/__tests__/buildOptimisticOperation.unit.test.d.ts +2 -0
- package/lib/families/evm/__tests__/buildOptimisticOperation.unit.test.d.ts.map +1 -0
- package/lib/families/evm/__tests__/buildOptimisticOperation.unit.test.js +56 -0
- package/lib/families/evm/__tests__/buildOptimisticOperation.unit.test.js.map +1 -0
- package/lib/families/evm/__tests__/deviceTransactionConfig.unit.test.d.ts +2 -0
- package/lib/families/evm/__tests__/deviceTransactionConfig.unit.test.d.ts.map +1 -0
- package/lib/families/evm/__tests__/deviceTransactionConfig.unit.test.js +95 -0
- package/lib/families/evm/__tests__/deviceTransactionConfig.unit.test.js.map +1 -0
- package/lib/families/evm/__tests__/estimateMaxSpendable.unit.test.d.ts +2 -0
- package/lib/families/evm/__tests__/estimateMaxSpendable.unit.test.d.ts.map +1 -0
- package/lib/families/evm/__tests__/estimateMaxSpendable.unit.test.js +120 -0
- package/lib/families/evm/__tests__/estimateMaxSpendable.unit.test.js.map +1 -0
- package/lib/families/evm/__tests__/getTransactionStatus.unit.test.d.ts +2 -0
- package/lib/families/evm/__tests__/getTransactionStatus.unit.test.d.ts.map +1 -0
- package/lib/families/evm/__tests__/getTransactionStatus.unit.test.js +386 -0
- package/lib/families/evm/__tests__/getTransactionStatus.unit.test.js.map +1 -0
- package/lib/families/evm/__tests__/hw-getAddress.unit.test.d.ts +2 -0
- package/lib/families/evm/__tests__/hw-getAddress.unit.test.d.ts.map +1 -0
- package/lib/families/evm/__tests__/hw-getAddress.unit.test.js +78 -0
- package/lib/families/evm/__tests__/hw-getAddress.unit.test.js.map +1 -0
- package/lib/families/evm/__tests__/logic.unit.test.d.ts +2 -0
- package/lib/families/evm/__tests__/logic.unit.test.d.ts.map +1 -0
- package/lib/families/evm/__tests__/logic.unit.test.js +86 -0
- package/lib/families/evm/__tests__/logic.unit.test.js.map +1 -0
- package/lib/families/evm/__tests__/prepareTransaction.unit.test.d.ts +2 -0
- package/lib/families/evm/__tests__/prepareTransaction.unit.test.d.ts.map +1 -0
- package/lib/families/evm/__tests__/prepareTransaction.unit.test.js +181 -0
- package/lib/families/evm/__tests__/prepareTransaction.unit.test.js.map +1 -0
- package/lib/families/evm/__tests__/rpc.unit.test.d.ts +2 -0
- package/lib/families/evm/__tests__/rpc.unit.test.d.ts.map +1 -0
- package/lib/families/evm/__tests__/rpc.unit.test.js +135 -0
- package/lib/families/evm/__tests__/rpc.unit.test.js.map +1 -0
- package/lib/families/evm/__tests__/signOperation.unit.test.d.ts +2 -0
- package/lib/families/evm/__tests__/signOperation.unit.test.d.ts.map +1 -0
- package/lib/families/evm/__tests__/signOperation.unit.test.js +168 -0
- package/lib/families/evm/__tests__/signOperation.unit.test.js.map +1 -0
- package/lib/families/evm/__tests__/synchronization.unit.test.d.ts +2 -0
- package/lib/families/evm/__tests__/synchronization.unit.test.d.ts.map +1 -0
- package/lib/families/evm/__tests__/synchronization.unit.test.js +274 -0
- package/lib/families/evm/__tests__/synchronization.unit.test.js.map +1 -0
- package/lib/families/evm/__tests__/transaction.unit.test.d.ts +2 -0
- package/lib/families/evm/__tests__/transaction.unit.test.d.ts.map +1 -0
- package/lib/families/evm/__tests__/transaction.unit.test.js +218 -0
- package/lib/families/evm/__tests__/transaction.unit.test.js.map +1 -0
- package/lib/families/evm/adapters.d.ts +12 -0
- package/lib/families/evm/adapters.d.ts.map +1 -0
- package/lib/families/evm/adapters.js +86 -0
- package/lib/families/evm/adapters.js.map +1 -0
- package/lib/families/evm/api/etherscan.d.ts +11 -0
- package/lib/families/evm/api/etherscan.d.ts.map +1 -0
- package/lib/families/evm/api/etherscan.js +85 -0
- package/lib/families/evm/api/etherscan.js.map +1 -0
- package/lib/families/evm/api/rpc.android.d.ts +6 -0
- package/lib/families/evm/api/rpc.android.d.ts.map +1 -0
- package/lib/families/evm/api/rpc.android.js +35 -0
- package/lib/families/evm/api/rpc.android.js.map +1 -0
- package/lib/families/evm/api/rpc.common.d.ts +73 -0
- package/lib/families/evm/api/rpc.common.d.ts.map +1 -0
- package/lib/families/evm/api/rpc.common.js +241 -0
- package/lib/families/evm/api/rpc.common.js.map +1 -0
- package/lib/families/evm/api/rpc.d.ts +3 -0
- package/lib/families/evm/api/rpc.d.ts.map +1 -0
- package/lib/families/evm/api/rpc.ios.d.ts +6 -0
- package/lib/families/evm/api/rpc.ios.d.ts.map +1 -0
- package/lib/families/evm/api/rpc.ios.js +35 -0
- package/lib/families/evm/api/rpc.ios.js.map +1 -0
- package/lib/families/evm/api/rpc.js +32 -0
- package/lib/families/evm/api/rpc.js.map +1 -0
- package/lib/families/evm/bridge/js.d.ts +8 -0
- package/lib/families/evm/bridge/js.d.ts.map +1 -0
- package/lib/families/evm/bridge/js.js +86 -0
- package/lib/families/evm/bridge/js.js.map +1 -0
- package/lib/families/evm/bridge.integration.test.d.ts +2 -0
- package/lib/families/evm/bridge.integration.test.d.ts.map +1 -0
- package/lib/families/evm/bridge.integration.test.js +52 -0
- package/lib/families/evm/bridge.integration.test.js.map +1 -0
- package/lib/families/evm/broadcast.d.ts +8 -0
- package/lib/families/evm/broadcast.d.ts.map +1 -0
- package/lib/families/evm/broadcast.js +72 -0
- package/lib/families/evm/broadcast.js.map +1 -0
- package/lib/families/evm/buildOptimisticOperation.d.ts +8 -0
- package/lib/families/evm/buildOptimisticOperation.d.ts.map +1 -0
- package/lib/families/evm/buildOptimisticOperation.js +37 -0
- package/lib/families/evm/buildOptimisticOperation.js.map +1 -0
- package/lib/families/evm/createTransaction.d.ts +9 -0
- package/lib/families/evm/createTransaction.d.ts.map +1 -0
- package/lib/families/evm/createTransaction.js +31 -0
- package/lib/families/evm/createTransaction.js.map +1 -0
- package/lib/families/evm/datasets/ethereum.scanAccounts.1.d.ts +7 -0
- package/lib/families/evm/datasets/ethereum.scanAccounts.1.d.ts.map +1 -0
- package/lib/families/evm/datasets/ethereum.scanAccounts.1.js +8 -0
- package/lib/families/evm/datasets/ethereum.scanAccounts.1.js.map +1 -0
- package/lib/families/evm/datasets/ethereum1.d.ts +3 -0
- package/lib/families/evm/datasets/ethereum1.d.ts.map +1 -0
- package/lib/families/evm/datasets/ethereum1.js +22 -0
- package/lib/families/evm/datasets/ethereum1.js.map +1 -0
- package/lib/families/evm/datasets/ethereum2.d.ts +3 -0
- package/lib/families/evm/datasets/ethereum2.d.ts.map +1 -0
- package/lib/families/evm/datasets/ethereum2.js +22 -0
- package/lib/families/evm/datasets/ethereum2.js.map +1 -0
- package/lib/families/evm/datasets/ethereum_classic.d.ts +5 -0
- package/lib/families/evm/datasets/ethereum_classic.d.ts.map +1 -0
- package/lib/families/evm/datasets/ethereum_classic.js +12 -0
- package/lib/families/evm/datasets/ethereum_classic.js.map +1 -0
- package/lib/families/evm/deviceTransactionConfig.d.ts +11 -0
- package/lib/families/evm/deviceTransactionConfig.d.ts.map +1 -0
- package/lib/families/evm/deviceTransactionConfig.js +31 -0
- package/lib/families/evm/deviceTransactionConfig.js.map +1 -0
- package/lib/families/evm/estimateMaxSpendable.d.ts +4 -0
- package/lib/families/evm/estimateMaxSpendable.d.ts.map +1 -0
- package/lib/families/evm/estimateMaxSpendable.js +75 -0
- package/lib/families/evm/estimateMaxSpendable.js.map +1 -0
- package/lib/families/evm/getTransactionStatus.d.ts +23 -0
- package/lib/families/evm/getTransactionStatus.d.ts.map +1 -0
- package/lib/families/evm/getTransactionStatus.js +143 -0
- package/lib/families/evm/getTransactionStatus.js.map +1 -0
- package/lib/families/evm/hw-getAddress.d.ts +7 -0
- package/lib/families/evm/hw-getAddress.d.ts.map +1 -0
- package/lib/families/evm/hw-getAddress.js +69 -0
- package/lib/families/evm/hw-getAddress.js.map +1 -0
- package/lib/families/evm/logic.d.ts +15 -0
- package/lib/families/evm/logic.d.ts.map +1 -0
- package/lib/families/evm/logic.js +35 -0
- package/lib/families/evm/logic.js.map +1 -0
- package/lib/families/evm/prepareTransaction.d.ts +4 -0
- package/lib/families/evm/prepareTransaction.d.ts.map +1 -0
- package/lib/families/evm/prepareTransaction.js +126 -0
- package/lib/families/evm/prepareTransaction.js.map +1 -0
- package/lib/families/evm/signOperation.d.ts +13 -0
- package/lib/families/evm/signOperation.d.ts.map +1 -0
- package/lib/families/evm/signOperation.js +122 -0
- package/lib/families/evm/signOperation.js.map +1 -0
- package/lib/families/evm/specs.d.ts +11 -0
- package/lib/families/evm/specs.d.ts.map +1 -0
- package/lib/families/evm/specs.js +128 -0
- package/lib/families/evm/specs.js.map +1 -0
- package/lib/families/evm/speculos-deviceActions.d.ts +8 -0
- package/lib/families/evm/speculos-deviceActions.d.ts.map +1 -0
- package/lib/families/evm/speculos-deviceActions.js +99 -0
- package/lib/families/evm/speculos-deviceActions.js.map +1 -0
- package/lib/families/evm/synchronization.d.ts +20 -0
- package/lib/families/evm/synchronization.d.ts.map +1 -0
- package/lib/families/evm/synchronization.js +209 -0
- package/lib/families/evm/synchronization.js.map +1 -0
- package/lib/families/evm/testUtils.d.ts +4 -0
- package/lib/families/evm/testUtils.d.ts.map +1 -0
- package/lib/families/evm/testUtils.js +69 -0
- package/lib/families/evm/testUtils.js.map +1 -0
- package/lib/families/evm/transaction.d.ts +30 -0
- package/lib/families/evm/transaction.d.ts.map +1 -0
- package/lib/families/evm/transaction.js +142 -0
- package/lib/families/evm/transaction.js.map +1 -0
- package/lib/families/evm/types.d.ts +69 -0
- package/lib/families/evm/types.d.ts.map +1 -0
- package/lib/families/evm/types.js +3 -0
- package/lib/families/evm/types.js.map +1 -0
- package/lib/families/hedera/api/mirror.js +1 -1
- package/lib/families/hedera/api/mirror.js.map +1 -1
- package/lib/families/solana/api/chain/instruction/stake/types.d.ts +2 -2
- package/lib/families/solana/api/chain/instruction/token/types.d.ts +2 -2
- package/lib/featureFlags/defaultFeatures.d.ts.map +1 -1
- package/lib/featureFlags/defaultFeatures.js +36 -0
- package/lib/featureFlags/defaultFeatures.js.map +1 -1
- package/lib/generated/bridge/js.d.ts +4 -0
- package/lib/generated/bridge/js.d.ts.map +1 -1
- package/lib/generated/bridge/js.js +22 -20
- package/lib/generated/bridge/js.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 +20 -18
- 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 +22 -20
- package/lib/generated/hw-getAddress.js.map +1 -1
- package/lib/generated/specs.d.ts +7 -0
- package/lib/generated/specs.d.ts.map +1 -1
- package/lib/generated/specs.js +20 -18
- package/lib/generated/specs.js.map +1 -1
- package/lib/generated/transaction.d.ts +9 -0
- package/lib/generated/transaction.d.ts.map +1 -1
- package/lib/generated/transaction.js +22 -20
- package/lib/generated/transaction.js.map +1 -1
- package/lib/generated/types.d.ts +8 -4
- package/lib/generated/types.d.ts.map +1 -1
- package/lib/mock/account.d.ts.map +1 -1
- package/lib/mock/account.js +5 -1
- package/lib/mock/account.js.map +1 -1
- package/lib/network.d.ts +1 -1
- package/lib/network.d.ts.map +1 -1
- package/lib/network.js.map +1 -1
- package/lib/platform/providers/RemoteLiveAppProvider/api/index.d.ts +1 -1
- package/lib/platform/providers/RemoteLiveAppProvider/api/index.d.ts.map +1 -1
- package/lib/platform/providers/RemoteLiveAppProvider/api/index.js.map +1 -1
- package/package.json +4 -1
- package/src/__tests__/currencies.ts +1 -1
- package/src/__tests__/test-helpers/environment.ts +5 -0
- package/src/apps/logic.ts +5 -1
- package/src/apps/mock.ts +5 -1
- package/src/currencies/__snapshots__/sortByMarketcap.test.ts.snap +5 -1
- package/src/data/icons/react/flr.tsx +14 -0
- package/src/data/icons/react/ftm.tsx +14 -0
- package/src/data/icons/react/glmr.tsx +14 -0
- package/src/data/icons/react/index.tsx +4 -0
- package/src/data/icons/react/sgb.tsx +14 -0
- package/src/data/icons/reactNative/flr.tsx +15 -0
- package/src/data/icons/reactNative/ftm.tsx +15 -0
- package/src/data/icons/reactNative/glmr.tsx +15 -0
- package/src/data/icons/reactNative/index.tsx +4 -0
- package/src/data/icons/reactNative/sgb.tsx +15 -0
- package/src/data/icons/svg/FLR.svg +4 -0
- package/src/data/icons/svg/FTM.svg +3 -0
- package/src/data/icons/svg/GLMR.svg +18 -0
- package/src/data/icons/svg/SGB.svg +28 -0
- package/src/families/bitcoin/satstack.ts +1 -1
- package/src/families/ethereum/modules/compound.ts +1 -1
- package/src/families/evm/__snapshots__/bridge.integration.test.ts.snap +3263 -0
- package/src/families/evm/__tests__/adapters.unit.test.ts +156 -0
- package/src/families/evm/__tests__/broadcast.unit.test.ts +86 -0
- package/src/families/evm/__tests__/buildOptimisticOperation.unit.test.ts +58 -0
- package/src/families/evm/__tests__/deviceTransactionConfig.unit.test.ts +53 -0
- package/src/families/evm/__tests__/estimateMaxSpendable.unit.test.ts +61 -0
- package/src/families/evm/__tests__/getTransactionStatus.unit.test.ts +314 -0
- package/src/families/evm/__tests__/hw-getAddress.unit.test.ts +24 -0
- package/src/families/evm/__tests__/logic.unit.test.ts +103 -0
- package/src/families/evm/__tests__/prepareTransaction.unit.test.ts +102 -0
- package/src/families/evm/__tests__/rpc.unit.test.ts +56 -0
- package/src/families/evm/__tests__/signOperation.unit.test.ts +108 -0
- package/src/families/evm/__tests__/synchronization.unit.test.ts +201 -0
- package/src/families/evm/__tests__/transaction.unit.test.ts +165 -0
- package/src/families/evm/adapters.ts +102 -0
- package/src/families/evm/api/etherscan.ts +51 -0
- package/src/families/evm/api/rpc.android.ts +5 -0
- package/src/families/evm/api/rpc.common.ts +168 -0
- package/src/families/evm/api/rpc.ios.ts +5 -0
- package/src/families/evm/api/rpc.ts +2 -0
- package/src/families/evm/bridge/js.ts +46 -0
- package/src/families/evm/bridge.integration.test.ts +51 -0
- package/src/families/evm/broadcast.ts +28 -0
- package/src/families/evm/buildOptimisticOperation.ts +38 -0
- package/src/families/evm/createTransaction.ts +24 -0
- package/src/families/evm/datasets/ethereum.scanAccounts.1.ts +48 -0
- package/src/families/evm/datasets/ethereum1.ts +20 -0
- package/src/families/evm/datasets/ethereum2.ts +20 -0
- package/src/families/evm/datasets/ethereum_classic.ts +68 -0
- package/src/families/evm/deviceTransactionConfig.ts +47 -0
- package/src/families/evm/estimateMaxSpendable.ts +18 -0
- package/src/families/evm/getTransactionStatus.ts +164 -0
- package/src/families/evm/hw-getAddress.ts +24 -0
- package/src/families/evm/logic.ts +34 -0
- package/src/families/evm/prepareTransaction.ts +77 -0
- package/src/families/evm/signOperation.ts +108 -0
- package/src/families/evm/specs.ts +141 -0
- package/src/families/evm/speculos-deviceActions.ts +106 -0
- package/src/families/evm/synchronization.ts +137 -0
- package/src/families/evm/testUtils.ts +74 -0
- package/src/families/evm/transaction.ts +135 -0
- package/src/families/evm/types.ts +84 -0
- package/src/families/hedera/api/mirror.ts +1 -1
- package/src/featureFlags/defaultFeatures.ts +36 -0
- package/src/generated/bridge/js.ts +2 -0
- package/src/generated/deviceTransactionConfig.ts +2 -0
- package/src/generated/hw-getAddress.ts +2 -0
- package/src/generated/specs.ts +2 -0
- package/src/generated/transaction.ts +2 -0
- package/src/generated/types.ts +8 -0
- package/src/mock/account.ts +4 -1
- package/src/network.ts +1 -1
- package/src/platform/providers/RemoteLiveAppProvider/api/index.ts +3 -1
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
var bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
7
|
+
var cryptoassets_1 = require("@ledgerhq/cryptoassets");
|
|
8
|
+
var buildOptimisticOperation_1 = __importDefault(require("../buildOptimisticOperation"));
|
|
9
|
+
var operation_1 = require("../../../operation");
|
|
10
|
+
var logic_1 = require("../logic");
|
|
11
|
+
var testUtils_1 = require("../testUtils");
|
|
12
|
+
var currency = (0, cryptoassets_1.findCryptoCurrencyById)("ethereum");
|
|
13
|
+
var account = (0, testUtils_1.makeAccount)("0x813eC5fACF289bD41365A8F1C9038A1228E95201", // minus.eth
|
|
14
|
+
currency);
|
|
15
|
+
var transaction = {
|
|
16
|
+
amount: new bignumber_js_1["default"](100),
|
|
17
|
+
useAllAmount: false,
|
|
18
|
+
subAccountId: "id",
|
|
19
|
+
recipient: "0xe2ca7390e76c5A992749bB622087310d2e63ca29",
|
|
20
|
+
feesStrategy: "custom",
|
|
21
|
+
family: "evm",
|
|
22
|
+
mode: "send",
|
|
23
|
+
nonce: 0,
|
|
24
|
+
gasLimit: new bignumber_js_1["default"](21000),
|
|
25
|
+
chainId: 1,
|
|
26
|
+
maxFeePerGas: new bignumber_js_1["default"](100),
|
|
27
|
+
maxPriorityFeePerGas: new bignumber_js_1["default"](100),
|
|
28
|
+
type: 2
|
|
29
|
+
};
|
|
30
|
+
var estimatedFees = (0, logic_1.getEstimatedFees)(transaction);
|
|
31
|
+
describe("EVM Family", function () {
|
|
32
|
+
describe("buildOptimisticOperation.ts", function () {
|
|
33
|
+
describe("buildOptimisticOperation", function () {
|
|
34
|
+
it("should create a an optimistic transaction waiting for the broadcast to be completed", function () {
|
|
35
|
+
var optimistic = (0, buildOptimisticOperation_1["default"])(account, transaction);
|
|
36
|
+
var type = "OUT";
|
|
37
|
+
expect(optimistic).toEqual({
|
|
38
|
+
id: (0, operation_1.encodeOperationId)(account.id, "", type),
|
|
39
|
+
hash: "",
|
|
40
|
+
type: type,
|
|
41
|
+
value: transaction.amount.plus(estimatedFees),
|
|
42
|
+
fee: estimatedFees,
|
|
43
|
+
blockHash: null,
|
|
44
|
+
blockHeight: null,
|
|
45
|
+
senders: [account.freshAddress],
|
|
46
|
+
recipients: [transaction.recipient],
|
|
47
|
+
accountId: account.id,
|
|
48
|
+
transactionSequenceNumber: 0,
|
|
49
|
+
date: expect.any(Date),
|
|
50
|
+
extra: {}
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
//# sourceMappingURL=buildOptimisticOperation.unit.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildOptimisticOperation.unit.test.js","sourceRoot":"","sources":["../../../../src/families/evm/__tests__/buildOptimisticOperation.unit.test.ts"],"names":[],"mappings":";;;;;AAAA,8DAAqC;AAGrC,uDAAgE;AAChE,yFAAmE;AAEnE,gDAAuD;AACvD,kCAA4C;AAC5C,0CAA2C;AAE3C,IAAM,QAAQ,GAAmB,IAAA,qCAAsB,EAAC,UAAU,CAAE,CAAC;AACrE,IAAM,OAAO,GAAY,IAAA,uBAAW,EAClC,4CAA4C,EAAE,YAAY;AAC1D,QAAQ,CACT,CAAC;AACF,IAAM,WAAW,GAAmB;IAClC,MAAM,EAAE,IAAI,yBAAS,CAAC,GAAG,CAAC;IAC1B,YAAY,EAAE,KAAK;IACnB,YAAY,EAAE,IAAI;IAClB,SAAS,EAAE,4CAA4C;IACvD,YAAY,EAAE,QAAQ;IACtB,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,CAAC;IACR,QAAQ,EAAE,IAAI,yBAAS,CAAC,KAAK,CAAC;IAC9B,OAAO,EAAE,CAAC;IACV,YAAY,EAAE,IAAI,yBAAS,CAAC,GAAG,CAAC;IAChC,oBAAoB,EAAE,IAAI,yBAAS,CAAC,GAAG,CAAC;IACxC,IAAI,EAAE,CAAC;CACR,CAAC;AACF,IAAM,aAAa,GAAG,IAAA,wBAAgB,EAAC,WAAW,CAAC,CAAC;AAEpD,QAAQ,CAAC,YAAY,EAAE;IACrB,QAAQ,CAAC,6BAA6B,EAAE;QACtC,QAAQ,CAAC,0BAA0B,EAAE;YACnC,EAAE,CAAC,qFAAqF,EAAE;gBACxF,IAAM,UAAU,GAAG,IAAA,qCAAwB,EAAC,OAAO,EAAE,WAAW,CAAC,CAAC;gBAClE,IAAM,IAAI,GAAG,KAAK,CAAC;gBAEnB,MAAM,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC;oBACzB,EAAE,EAAE,IAAA,6BAAiB,EAAC,OAAO,CAAC,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC;oBAC3C,IAAI,EAAE,EAAE;oBACR,IAAI,MAAA;oBACJ,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC;oBAC7C,GAAG,EAAE,aAAa;oBAClB,SAAS,EAAE,IAAI;oBACf,WAAW,EAAE,IAAI;oBACjB,OAAO,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC;oBAC/B,UAAU,EAAE,CAAC,WAAW,CAAC,SAAS,CAAC;oBACnC,SAAS,EAAE,OAAO,CAAC,EAAE;oBACrB,yBAAyB,EAAE,CAAC;oBAC5B,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC;oBACtB,KAAK,EAAE,EAAE;iBACV,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deviceTransactionConfig.unit.test.d.ts","sourceRoot":"","sources":["../../../../src/families/evm/__tests__/deviceTransactionConfig.unit.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (_) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
+
};
|
|
41
|
+
exports.__esModule = true;
|
|
42
|
+
var bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
43
|
+
var cryptoassets_1 = require("@ledgerhq/cryptoassets");
|
|
44
|
+
var deviceTransactionConfig_1 = __importDefault(require("../deviceTransactionConfig"));
|
|
45
|
+
var getTransactionStatus_1 = __importDefault(require("../getTransactionStatus"));
|
|
46
|
+
var testUtils_1 = require("../testUtils");
|
|
47
|
+
var currency = (0, cryptoassets_1.findCryptoCurrencyById)("ethereum");
|
|
48
|
+
var account = (0, testUtils_1.makeAccount)("0xkvn", currency);
|
|
49
|
+
var transaction = {
|
|
50
|
+
amount: new bignumber_js_1["default"](100),
|
|
51
|
+
useAllAmount: false,
|
|
52
|
+
subAccountId: "id",
|
|
53
|
+
recipient: "0x997e135e96114c0E84FFc58754552368E4abf329",
|
|
54
|
+
feesStrategy: "custom",
|
|
55
|
+
family: "evm",
|
|
56
|
+
mode: "send",
|
|
57
|
+
nonce: 0,
|
|
58
|
+
gasLimit: new bignumber_js_1["default"](21000),
|
|
59
|
+
chainId: 1,
|
|
60
|
+
maxFeePerGas: new bignumber_js_1["default"](100),
|
|
61
|
+
maxPriorityFeePerGas: new bignumber_js_1["default"](100),
|
|
62
|
+
type: 2
|
|
63
|
+
};
|
|
64
|
+
describe("EVM Family", function () {
|
|
65
|
+
describe("deviceTransactionConfig.ts", function () {
|
|
66
|
+
describe("getDeviceTransactionConfig", function () {
|
|
67
|
+
it("should return the right fields and infos for a transaction mode 'send'", function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
68
|
+
var status;
|
|
69
|
+
return __generator(this, function (_a) {
|
|
70
|
+
switch (_a.label) {
|
|
71
|
+
case 0: return [4 /*yield*/, (0, getTransactionStatus_1["default"])(account, transaction)];
|
|
72
|
+
case 1:
|
|
73
|
+
status = _a.sent();
|
|
74
|
+
expect((0, deviceTransactionConfig_1["default"])({
|
|
75
|
+
account: account,
|
|
76
|
+
transaction: transaction,
|
|
77
|
+
status: status
|
|
78
|
+
})).toEqual([
|
|
79
|
+
{ type: "amount", label: "Amount" },
|
|
80
|
+
{ type: "address", label: "Address", address: transaction.recipient },
|
|
81
|
+
{
|
|
82
|
+
type: "text",
|
|
83
|
+
label: "Network",
|
|
84
|
+
value: currency.name.replace("Lite", "").trim()
|
|
85
|
+
},
|
|
86
|
+
{ type: "fees", label: "Max fees" },
|
|
87
|
+
]);
|
|
88
|
+
return [2 /*return*/];
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
}); });
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
//# sourceMappingURL=deviceTransactionConfig.unit.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deviceTransactionConfig.unit.test.js","sourceRoot":"","sources":["../../../../src/families/evm/__tests__/deviceTransactionConfig.unit.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8DAAqC;AAGrC,uDAAgE;AAChE,uFAAoE;AACpE,iFAA2D;AAE3D,0CAA2C;AAE3C,IAAM,QAAQ,GAAmB,IAAA,qCAAsB,EAAC,UAAU,CAAE,CAAC;AACrE,IAAM,OAAO,GAAY,IAAA,uBAAW,EAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;AACxD,IAAM,WAAW,GAAmB;IAClC,MAAM,EAAE,IAAI,yBAAS,CAAC,GAAG,CAAC;IAC1B,YAAY,EAAE,KAAK;IACnB,YAAY,EAAE,IAAI;IAClB,SAAS,EAAE,4CAA4C;IACvD,YAAY,EAAE,QAAQ;IACtB,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,CAAC;IACR,QAAQ,EAAE,IAAI,yBAAS,CAAC,KAAK,CAAC;IAC9B,OAAO,EAAE,CAAC;IACV,YAAY,EAAE,IAAI,yBAAS,CAAC,GAAG,CAAC;IAChC,oBAAoB,EAAE,IAAI,yBAAS,CAAC,GAAG,CAAC;IACxC,IAAI,EAAE,CAAC;CACR,CAAC;AAEF,QAAQ,CAAC,YAAY,EAAE;IACrB,QAAQ,CAAC,4BAA4B,EAAE;QACrC,QAAQ,CAAC,4BAA4B,EAAE;YACrC,EAAE,CAAC,wEAAwE,EAAE;;;;gCAC5D,qBAAM,IAAA,iCAAoB,EAAC,OAAO,EAAE,WAAW,CAAC,EAAA;;4BAAzD,MAAM,GAAG,SAAgD;4BAE/D,MAAM,CACJ,IAAA,oCAA0B,EAAC;gCACzB,OAAO,SAAA;gCACP,WAAW,aAAA;gCACX,MAAM,QAAA;6BACP,CAAC,CACH,CAAC,OAAO,CAAC;gCACR,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;gCACnC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,CAAC,SAAS,EAAE;gCACrE;oCACE,IAAI,EAAE,MAAM;oCACZ,KAAK,EAAE,SAAS;oCAChB,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE;iCAChD;gCACD,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE;6BACpC,CAAC,CAAC;;;;iBACJ,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"estimateMaxSpendable.unit.test.d.ts","sourceRoot":"","sources":["../../../../src/families/evm/__tests__/estimateMaxSpendable.unit.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
+
function step(op) {
|
|
27
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
+
while (_) try {
|
|
29
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
+
switch (op[0]) {
|
|
32
|
+
case 0: case 1: t = op; break;
|
|
33
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
+
default:
|
|
37
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
+
if (t[2]) _.ops.pop();
|
|
42
|
+
_.trys.pop(); continue;
|
|
43
|
+
}
|
|
44
|
+
op = body.call(thisArg, _);
|
|
45
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
50
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
51
|
+
};
|
|
52
|
+
exports.__esModule = true;
|
|
53
|
+
var bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
54
|
+
var cryptoassets_1 = require("@ledgerhq/cryptoassets");
|
|
55
|
+
var estimateMaxSpendable_1 = require("../estimateMaxSpendable");
|
|
56
|
+
var logic_1 = require("../logic");
|
|
57
|
+
var testUtils_1 = require("../testUtils");
|
|
58
|
+
var account = __assign(__assign({}, (0, testUtils_1.makeAccount)("0xkvn", (0, cryptoassets_1.findCryptoCurrencyById)("ethereum"))), { balance: new bignumber_js_1["default"](42069000000) });
|
|
59
|
+
var eip1559Tx = {
|
|
60
|
+
amount: new bignumber_js_1["default"](100),
|
|
61
|
+
useAllAmount: false,
|
|
62
|
+
recipient: "0xkvn",
|
|
63
|
+
family: "evm",
|
|
64
|
+
mode: "send",
|
|
65
|
+
nonce: 0,
|
|
66
|
+
gasLimit: new bignumber_js_1["default"](21000),
|
|
67
|
+
chainId: 1,
|
|
68
|
+
maxFeePerGas: new bignumber_js_1["default"](10000),
|
|
69
|
+
maxPriorityFeePerGas: new bignumber_js_1["default"](10000),
|
|
70
|
+
type: 2
|
|
71
|
+
};
|
|
72
|
+
var legacyTx = {
|
|
73
|
+
amount: new bignumber_js_1["default"](100),
|
|
74
|
+
useAllAmount: false,
|
|
75
|
+
recipient: "0xkvn",
|
|
76
|
+
family: "evm",
|
|
77
|
+
mode: "send",
|
|
78
|
+
nonce: 0,
|
|
79
|
+
gasLimit: new bignumber_js_1["default"](21000),
|
|
80
|
+
chainId: 1,
|
|
81
|
+
gasPrice: new bignumber_js_1["default"](10000),
|
|
82
|
+
type: 0
|
|
83
|
+
};
|
|
84
|
+
describe("EVM Family", function () {
|
|
85
|
+
describe("estimateMaxSpendable.ts", function () {
|
|
86
|
+
it("should get a max spendable of the account balance minus the EIP1559 tx", function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
87
|
+
var amount, estimatedFees;
|
|
88
|
+
return __generator(this, function (_a) {
|
|
89
|
+
switch (_a.label) {
|
|
90
|
+
case 0: return [4 /*yield*/, (0, estimateMaxSpendable_1.estimateMaxSpendable)({
|
|
91
|
+
account: account,
|
|
92
|
+
transaction: eip1559Tx
|
|
93
|
+
})];
|
|
94
|
+
case 1:
|
|
95
|
+
amount = _a.sent();
|
|
96
|
+
estimatedFees = (0, logic_1.getEstimatedFees)(eip1559Tx);
|
|
97
|
+
expect(amount).toEqual(account.balance.minus(estimatedFees));
|
|
98
|
+
return [2 /*return*/];
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
}); });
|
|
102
|
+
it("should get a max spendable of the account balance minus the legacy tx", function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
103
|
+
var amount, estimatedFees;
|
|
104
|
+
return __generator(this, function (_a) {
|
|
105
|
+
switch (_a.label) {
|
|
106
|
+
case 0: return [4 /*yield*/, (0, estimateMaxSpendable_1.estimateMaxSpendable)({
|
|
107
|
+
account: account,
|
|
108
|
+
transaction: legacyTx
|
|
109
|
+
})];
|
|
110
|
+
case 1:
|
|
111
|
+
amount = _a.sent();
|
|
112
|
+
estimatedFees = (0, logic_1.getEstimatedFees)(legacyTx);
|
|
113
|
+
expect(amount).toEqual(account.balance.minus(estimatedFees));
|
|
114
|
+
return [2 /*return*/];
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
}); });
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
//# sourceMappingURL=estimateMaxSpendable.unit.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"estimateMaxSpendable.unit.test.js","sourceRoot":"","sources":["../../../../src/families/evm/__tests__/estimateMaxSpendable.unit.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8DAAqC;AAErC,uDAAgE;AAEhE,gEAA+D;AAC/D,kCAA4C;AAC5C,0CAA2C;AAE3C,IAAM,OAAO,yBACR,IAAA,uBAAW,EAAC,OAAO,EAAE,IAAA,qCAAsB,EAAC,UAAU,CAAE,CAAC,KAC5D,OAAO,EAAE,IAAI,yBAAS,CAAC,WAAW,CAAC,GACpC,CAAC;AACF,IAAM,SAAS,GAA0B;IACvC,MAAM,EAAE,IAAI,yBAAS,CAAC,GAAG,CAAC;IAC1B,YAAY,EAAE,KAAK;IACnB,SAAS,EAAE,OAAO;IAClB,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,CAAC;IACR,QAAQ,EAAE,IAAI,yBAAS,CAAC,KAAK,CAAC;IAC9B,OAAO,EAAE,CAAC;IACV,YAAY,EAAE,IAAI,yBAAS,CAAC,KAAK,CAAC;IAClC,oBAAoB,EAAE,IAAI,yBAAS,CAAC,KAAK,CAAC;IAC1C,IAAI,EAAE,CAAC;CACR,CAAC;AACF,IAAM,QAAQ,GAAyB;IACrC,MAAM,EAAE,IAAI,yBAAS,CAAC,GAAG,CAAC;IAC1B,YAAY,EAAE,KAAK;IACnB,SAAS,EAAE,OAAO;IAClB,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,CAAC;IACR,QAAQ,EAAE,IAAI,yBAAS,CAAC,KAAK,CAAC;IAC9B,OAAO,EAAE,CAAC;IACV,QAAQ,EAAE,IAAI,yBAAS,CAAC,KAAK,CAAC;IAC9B,IAAI,EAAE,CAAC;CACR,CAAC;AAEF,QAAQ,CAAC,YAAY,EAAE;IACrB,QAAQ,CAAC,yBAAyB,EAAE;QAClC,EAAE,CAAC,wEAAwE,EAAE;;;;4BAC5D,qBAAM,IAAA,2CAAoB,EAAC;4BACxC,OAAO,SAAA;4BACP,WAAW,EAAE,SAAS;yBACvB,CAAC,EAAA;;wBAHI,MAAM,GAAG,SAGb;wBACI,aAAa,GAAG,IAAA,wBAAgB,EAAC,SAAS,CAAC,CAAC;wBAElD,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;;;;aAC9D,CAAC,CAAC;QAEH,EAAE,CAAC,uEAAuE,EAAE;;;;4BAC3D,qBAAM,IAAA,2CAAoB,EAAC;4BACxC,OAAO,SAAA;4BACP,WAAW,EAAE,QAAQ;yBACtB,CAAC,EAAA;;wBAHI,MAAM,GAAG,SAGb;wBACI,aAAa,GAAG,IAAA,wBAAgB,EAAC,QAAQ,CAAC,CAAC;wBAEjD,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;;;;aAC9D,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getTransactionStatus.unit.test.d.ts","sourceRoot":"","sources":["../../../../src/families/evm/__tests__/getTransactionStatus.unit.test.ts"],"names":[],"mappings":""}
|