@ledgerhq/coin-evm 15.0.0 → 15.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/lib/adapters/etherscan.d.ts.map +1 -1
  3. package/lib/adapters/etherscan.js +14 -0
  4. package/lib/adapters/etherscan.js.map +1 -1
  5. package/lib/adapters/ledger.d.ts.map +1 -1
  6. package/lib/adapters/ledger.js +2 -0
  7. package/lib/adapters/ledger.js.map +1 -1
  8. package/lib/api/index.d.ts.map +1 -1
  9. package/lib/api/index.js +0 -1
  10. package/lib/api/index.js.map +1 -1
  11. package/lib/chains.d.ts +1 -0
  12. package/lib/chains.d.ts.map +1 -1
  13. package/lib/chains.js +1 -0
  14. package/lib/chains.js.map +1 -1
  15. package/lib/logic/getBlock.js +21 -4
  16. package/lib/logic/getBlock.js.map +1 -1
  17. package/lib/logic/listOperations.d.ts.map +1 -1
  18. package/lib/logic/listOperations.js +2 -0
  19. package/lib/logic/listOperations.js.map +1 -1
  20. package/lib/network/node/explorerProxy.d.ts.map +1 -1
  21. package/lib/network/node/explorerProxy.js +2 -0
  22. package/lib/network/node/explorerProxy.js.map +1 -1
  23. package/lib/network/node/ledger.d.ts.map +1 -1
  24. package/lib/network/node/ledger.js +1 -0
  25. package/lib/network/node/ledger.js.map +1 -1
  26. package/lib/network/node/rpc.common.d.ts.map +1 -1
  27. package/lib/network/node/rpc.common.js +17 -0
  28. package/lib/network/node/rpc.common.js.map +1 -1
  29. package/lib/network/node/types.d.ts +3 -1
  30. package/lib/network/node/types.d.ts.map +1 -1
  31. package/lib/network/node/types.js.map +1 -1
  32. package/lib-es/adapters/etherscan.d.ts.map +1 -1
  33. package/lib-es/adapters/etherscan.js +14 -0
  34. package/lib-es/adapters/etherscan.js.map +1 -1
  35. package/lib-es/adapters/ledger.d.ts.map +1 -1
  36. package/lib-es/adapters/ledger.js +2 -0
  37. package/lib-es/adapters/ledger.js.map +1 -1
  38. package/lib-es/api/index.d.ts.map +1 -1
  39. package/lib-es/api/index.js +0 -1
  40. package/lib-es/api/index.js.map +1 -1
  41. package/lib-es/chains.d.ts +1 -0
  42. package/lib-es/chains.d.ts.map +1 -1
  43. package/lib-es/chains.js +1 -0
  44. package/lib-es/chains.js.map +1 -1
  45. package/lib-es/logic/getBlock.js +21 -4
  46. package/lib-es/logic/getBlock.js.map +1 -1
  47. package/lib-es/logic/listOperations.d.ts.map +1 -1
  48. package/lib-es/logic/listOperations.js +2 -0
  49. package/lib-es/logic/listOperations.js.map +1 -1
  50. package/lib-es/network/node/explorerProxy.d.ts.map +1 -1
  51. package/lib-es/network/node/explorerProxy.js +2 -0
  52. package/lib-es/network/node/explorerProxy.js.map +1 -1
  53. package/lib-es/network/node/ledger.d.ts.map +1 -1
  54. package/lib-es/network/node/ledger.js +1 -0
  55. package/lib-es/network/node/ledger.js.map +1 -1
  56. package/lib-es/network/node/rpc.common.d.ts.map +1 -1
  57. package/lib-es/network/node/rpc.common.js +17 -0
  58. package/lib-es/network/node/rpc.common.js.map +1 -1
  59. package/lib-es/network/node/types.d.ts +3 -1
  60. package/lib-es/network/node/types.d.ts.map +1 -1
  61. package/lib-es/network/node/types.js.map +1 -1
  62. package/package.json +2 -2
  63. package/src/adapters/etherscan.test.ts +57 -5
  64. package/src/adapters/etherscan.ts +15 -0
  65. package/src/adapters/ledger.test.ts +57 -9
  66. package/src/adapters/ledger.ts +2 -0
  67. package/src/api/index.ts +0 -1
  68. package/src/api/{getBlock.integ.test.ts → tests/getBlock.integ.test.ts} +4 -4
  69. package/src/api/{index.arbitrum.integ.test.ts → tests/index.arbitrum.integ.test.ts} +3 -3
  70. package/src/api/{index.arc.integ.test.ts → tests/index.arc.integ.test.ts} +3 -3
  71. package/src/api/{index.avalanche_c_chain_fuji.integ.test.ts → tests/index.avalanche_c_chain_fuji.integ.test.ts} +3 -3
  72. package/src/api/{index.cronos.integ.test.ts → tests/index.cronos.integ.test.ts} +3 -3
  73. package/src/api/{index.flare.integ.test.ts → tests/index.flare.integ.test.ts} +3 -3
  74. package/src/api/{index.integ.test.ts → tests/index.integ.test.ts} +3 -3
  75. package/src/api/{index.linea.integ.test.ts → tests/index.linea.integ.test.ts} +3 -3
  76. package/src/api/{index.monad_testnet.integ.test.ts → tests/index.monad_testnet.integ.test.ts} +4 -4
  77. package/src/api/{index.optimism.integ.test.ts → tests/index.optimism.integ.test.ts} +3 -3
  78. package/src/api/{index.rsk.integ.test.ts → tests/index.rsk.integ.test.ts} +3 -3
  79. package/src/api/{index.shape.integ.test.ts → tests/index.shape.integ.test.ts} +3 -3
  80. package/src/api/{index.somnia.integ.test.ts → tests/index.somnia.integ.test.ts} +3 -3
  81. package/src/api/{index.test.ts → tests/index.test.ts} +4 -4
  82. package/src/api/{index.zksync.integ.test.ts → tests/index.zksync.integ.test.ts} +2 -2
  83. package/src/chains.ts +1 -0
  84. package/src/logic/getBlock.ts +37 -4
  85. package/src/logic/listOperations.ts +2 -0
  86. package/src/logic/tests/broadcast.test.ts +1 -1
  87. package/src/logic/tests/broadcastSource.test.ts +1 -1
  88. package/src/logic/tests/common.test.ts +1 -1
  89. package/src/logic/tests/craftTransaction.test.ts +1 -1
  90. package/src/logic/tests/estimateFees.test.ts +1 -1
  91. package/src/logic/tests/getBalance.test.ts +1 -1
  92. package/src/logic/tests/getBlock.test.ts +126 -5
  93. package/src/logic/tests/getBlockInfo.test.ts +1 -1
  94. package/src/logic/tests/getNextSequence.test.ts +1 -1
  95. package/src/logic/tests/internalTransactionsFetcher.test.ts +1 -1
  96. package/src/logic/tests/lastBlock.test.ts +1 -1
  97. package/src/logic/tests/listOperations.test.ts +5 -3
  98. package/src/logic/tests/validateIntent.test.ts +37 -1
  99. package/src/logic.test.ts +1 -1
  100. package/src/network/node/explorerProxy.ts +2 -0
  101. package/src/network/node/ledger.ts +1 -0
  102. package/src/network/node/rpc.common.ts +21 -0
  103. package/src/network/node/types.ts +5 -2
  104. package/src/network/{explorer → tests/explorer}/etherscan.test.ts +8 -8
  105. package/src/network/{explorer → tests/explorer}/index.test.ts +7 -7
  106. package/src/network/{explorer → tests/explorer}/ledger.test.ts +11 -11
  107. package/src/network/{explorer → tests/explorer}/types.test.ts +1 -1
  108. package/src/network/{gasTracker → tests/gasTracker}/index.test.ts +3 -3
  109. package/src/network/{gasTracker → tests/gasTracker}/ledger.test.ts +4 -4
  110. package/src/network/{gasTracker → tests/gasTracker}/types.test.ts +1 -1
  111. package/src/network/{node → tests/node}/explorerProxy.test.ts +5 -2
  112. package/src/network/{node → tests/node}/gethCallTracerToTraceBlockItems.test.ts +4 -4
  113. package/src/network/{node → tests/node}/index.memoization.test.ts +3 -3
  114. package/src/network/{node → tests/node}/index.test.ts +3 -3
  115. package/src/network/{node → tests/node}/ledger.test.ts +7 -6
  116. package/src/network/{node → tests/node}/node.fixtures.ts +1 -1
  117. package/src/network/{node → tests/node}/rpc.errors.test.ts +1 -1
  118. package/src/network/{node → tests/node}/rpc.test.ts +15 -6
  119. package/src/network/{node → tests/node}/types.test.ts +1 -1
  120. package/src/network/{node → tests/node}/withNodeSources.test.ts +3 -3
  121. package/src/network/{withRetries.test.ts → tests/withRetries.test.ts} +2 -2
@@ -1,33 +1,33 @@
1
1
  // SPDX-FileCopyrightText: © 2026 LEDGER SAS
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
- import type { EvmConfigInfo, NftStandard } from '../../config'
5
- import type { LedgerExplorerOperation } from '../../types'
4
+ import type { EvmConfigInfo, NftStandard } from '../../../config'
5
+ import type { LedgerExplorerOperation } from '../../../types'
6
6
  import type { AssetInfo } from '@ledgerhq/coin-module-framework/api/types'
7
7
  import type { AxiosRequestConfig } from 'axios'
8
8
  import { AssertionError, fail } from 'assert'
9
9
  import { delay } from '@ledgerhq/coin-module-framework/promises'
10
10
  import axios from 'axios'
11
11
  import eip55 from 'eip55'
12
- import { DEFAULT_LEDGER_EXPLORER_URI } from '../../config'
12
+ import { DEFAULT_LEDGER_EXPLORER_URI } from '../../../config'
13
13
  import {
14
14
  LedgerExplorerUsedIncorrectly,
15
15
  RateLimitError,
16
16
  UnpageableLedgerExplorerBlock,
17
- } from '../../errors'
17
+ } from '../../../errors'
18
18
  import {
19
19
  createMockEvmConfigInfo,
20
20
  mkExternalNode,
21
21
  mkLedgerNode,
22
22
  testLogger,
23
- } from '../../fixtures/context.fixtures'
23
+ } from '../../../fixtures/context.fixtures'
24
24
  import {
25
25
  coinOperation1,
26
26
  coinOperation2,
27
27
  coinOperation3,
28
28
  coinOperation4,
29
- } from '../../fixtures/ledger.fixtures'
30
- import * as LEDGER_API from './ledger'
29
+ } from '../../../fixtures/ledger.fixtures'
30
+ import * as LEDGER_API from '../../explorer/ledger'
31
31
 
32
32
  jest.mock('axios')
33
33
  jest.mock('@ledgerhq/coin-module-framework/promises')
@@ -385,7 +385,7 @@ describe('EVM Family', () => {
385
385
  value: 0n,
386
386
  asset: { type: 'native' },
387
387
  tx: tx1,
388
- details: { sequence: 75 },
388
+ details: { sequence: 75, gasPrice: '81876963401', gasLimit: '62350' },
389
389
  },
390
390
  {
391
391
  id: `${addr}-${txHash}-OUT`,
@@ -395,7 +395,7 @@ describe('EVM Family', () => {
395
395
  value: 10n,
396
396
  asset: { type: 'native' },
397
397
  tx: tx2,
398
- details: { sequence: 75 },
398
+ details: { sequence: 75, gasPrice: '81876963401', gasLimit: '62350' },
399
399
  },
400
400
  {
401
401
  id: `${addr}-${txHash}-IN`,
@@ -405,7 +405,7 @@ describe('EVM Family', () => {
405
405
  value: 100n,
406
406
  asset: { type: 'native' },
407
407
  tx: tx3,
408
- details: { sequence: 75 },
408
+ details: { sequence: 75, gasPrice: '81876963401', gasLimit: '62350' },
409
409
  },
410
410
  {
411
411
  id: `${addr}-${txHash}-IN`,
@@ -415,7 +415,7 @@ describe('EVM Family', () => {
415
415
  value: 100n,
416
416
  asset: { type: 'native' },
417
417
  tx: tx4,
418
- details: { sequence: 75 },
418
+ details: { sequence: 75, gasPrice: '81876963401', gasLimit: '62350' },
419
419
  },
420
420
  ],
421
421
  lastNftOperations: [
@@ -1,7 +1,7 @@
1
1
  // SPDX-FileCopyrightText: © 2026 LEDGER SAS
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
- import { isEtherscanLikeExplorerConfig, isLedgerExplorerConfig } from './types'
4
+ import { isEtherscanLikeExplorerConfig, isLedgerExplorerConfig } from '../../explorer/types'
5
5
 
6
6
  describe('EVM Family', () => {
7
7
  describe('network/explorer/types.ts', () => {
@@ -5,9 +5,9 @@ import {
5
5
  createMockEvmConfigInfo,
6
6
  mkLedgerGasTracker,
7
7
  mkLedgerNode,
8
- } from '../../fixtures/context.fixtures'
9
- import { getGasOptions as ledgerGetGasOptions } from './ledger'
10
- import { getGasTracker } from './index'
8
+ } from '../../../fixtures/context.fixtures'
9
+ import { getGasTracker } from '../../gasTracker/index'
10
+ import { getGasOptions as ledgerGetGasOptions } from '../../gasTracker/ledger'
11
11
 
12
12
  const configWithGasTracker = createMockEvmConfigInfo({
13
13
  chainId: 1,
@@ -1,7 +1,7 @@
1
1
  // SPDX-FileCopyrightText: © 2026 LEDGER SAS
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
- import type { GasOptions } from '../../types'
4
+ import type { GasOptions } from '../../../types'
5
5
  import { AssertionError } from 'assert'
6
6
  import network from '@ledgerhq/live-network/network'
7
7
  import { AxiosHeaders } from 'axios'
@@ -11,14 +11,14 @@ function makeNetworkResponse<T>(data: T) {
11
11
  const headers = new AxiosHeaders()
12
12
  return Promise.resolve({ data, status: 200, statusText: 'OK', headers, config: { headers } })
13
13
  }
14
- import { LedgerGasTrackerUsedIncorrectly, NoGasTrackerFound } from '../../errors'
14
+ import { LedgerGasTrackerUsedIncorrectly, NoGasTrackerFound } from '../../../errors'
15
15
  import {
16
16
  createMockEvmConfigInfo,
17
17
  mkExternalNode,
18
18
  mkLedgerGasTracker,
19
19
  mkLedgerNode,
20
- } from '../../fixtures/context.fixtures'
21
- import { getGasOptions } from './ledger'
20
+ } from '../../../fixtures/context.fixtures'
21
+ import { getGasOptions } from '../../gasTracker/ledger'
22
22
 
23
23
  jest.mock('@ledgerhq/live-network/network')
24
24
  const mockedNetwork = jest.mocked(network)
@@ -1,7 +1,7 @@
1
1
  // SPDX-FileCopyrightText: © 2026 LEDGER SAS
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
- import { isLedgerGasTracker } from './types'
4
+ import { isLedgerGasTracker } from '../../gasTracker/types'
5
5
 
6
6
  describe('EVM Family', () => {
7
7
  describe('network/gasTracker/types.ts', () => {
@@ -7,12 +7,12 @@ import {
7
7
  createMockEvmConfigInfo,
8
8
  mkExternalNode,
9
9
  testLogger,
10
- } from '../../fixtures/context.fixtures'
10
+ } from '../../../fixtures/context.fixtures'
11
11
  import {
12
12
  createExplorerProxyNodeApi,
13
13
  getBlockFromExplorerProxy,
14
14
  getTransactionFromExplorerProxy,
15
- } from './explorerProxy'
15
+ } from '../../node/explorerProxy'
16
16
 
17
17
  jest.mock('axios')
18
18
  const mockAxiosGet = jest.mocked(axios.get)
@@ -115,6 +115,7 @@ describe('createExplorerProxyNodeApi', () => {
115
115
  blockHash: '0xblockhash',
116
116
  nonce: '0x1',
117
117
  gasPrice: '0x3b9aca00',
118
+ gas: '0x11e72',
118
119
  value: '0x0',
119
120
  from: '0xaabbcc0000000000000000000000000000000001',
120
121
  to: '0xaabbcc0000000000000000000000000000000002',
@@ -139,6 +140,8 @@ describe('createExplorerProxyNodeApi', () => {
139
140
  expect(result.hash).toBe(TX_HASH)
140
141
  expect(result.status).toBe(1)
141
142
  expect(result.erc20Transfers).toEqual([])
143
+ expect(result.gasLimit).toBe('73330')
144
+ expect(result.nonce).toBe(1)
142
145
  })
143
146
 
144
147
  it('propagates network errors as a throw (via the null path)', async () => {
@@ -1,10 +1,10 @@
1
1
  // SPDX-FileCopyrightText: © 2026 LEDGER SAS
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
- import type { TraceBlockItem } from './types'
5
- import { isTraceBlockItem } from '../../logic/predicates'
6
- import { gethCallTracerToTraceBlockItems } from './gethCallTracerToTraceBlockItems'
7
- import flareBlock0x36ffc39CallTracerTrace from './resources/flare-0x36ffc39-debug-trace-block-call-tracer.json'
4
+ import type { TraceBlockItem } from '../../node/types'
5
+ import { isTraceBlockItem } from '../../../logic/predicates'
6
+ import { gethCallTracerToTraceBlockItems } from '../../node/gethCallTracerToTraceBlockItems'
7
+ import flareBlock0x36ffc39CallTracerTrace from '../../node/resources/flare-0x36ffc39-debug-trace-block-call-tracer.json'
8
8
 
9
9
  describe('gethCallTracerToTraceBlockItems', () => {
10
10
  const blockNumber = 12345
@@ -1,13 +1,13 @@
1
1
  // SPDX-FileCopyrightText: © 2026 LEDGER SAS
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
- import { CHAIN_ID } from '../../config'
4
+ import { CHAIN_ID } from '../../../config'
5
5
  import {
6
6
  createMockEvmConfigInfo,
7
7
  mkExternalNode,
8
8
  testLogger,
9
- } from '../../fixtures/context.fixtures'
10
- import { getNodeApi } from './index'
9
+ } from '../../../fixtures/context.fixtures'
10
+ import { getNodeApi } from '../../node/index'
11
11
 
12
12
  describe('getNodeApi memoization', () => {
13
13
  it('should return the same NodeApi instance for same chain and retries (memoization)', () => {
@@ -1,14 +1,14 @@
1
1
  // SPDX-FileCopyrightText: © 2026 LEDGER SAS
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
- import { UnknownNode } from '../../errors'
4
+ import { UnknownNode } from '../../../errors'
5
5
  import {
6
6
  createMockEvmConfigInfo,
7
7
  mkExternalNode,
8
8
  mkLedgerNode,
9
9
  testLogger,
10
- } from '../../fixtures/context.fixtures'
11
- import { getNodeApi } from './index'
10
+ } from '../../../fixtures/context.fixtures'
11
+ import { getNodeApi } from '../../node/index'
12
12
 
13
13
  describe('EVM Family', () => {
14
14
  describe('network/node/index.ts', () => {
@@ -5,17 +5,17 @@ import { delay } from '@ledgerhq/coin-module-framework/promises'
5
5
  import axios from 'axios'
6
6
  import BigNumber from 'bignumber.js'
7
7
  import { Transaction } from 'ethers'
8
- import { CHAIN_ID, DEFAULT_LEDGER_EXPLORER_URI } from '../../config'
9
- import { GasEstimationError } from '../../errors'
10
- import { createMockEvmConfigInfo, testLogger } from '../../fixtures/context.fixtures'
11
- import { getGasOptions } from '../gasTracker/ledger'
12
- import { createLedgerNodeApi } from './ledger'
8
+ import { CHAIN_ID, DEFAULT_LEDGER_EXPLORER_URI } from '../../../config'
9
+ import { GasEstimationError } from '../../../errors'
10
+ import { createMockEvmConfigInfo, testLogger } from '../../../fixtures/context.fixtures'
11
+ import { getGasOptions } from '../../gasTracker/ledger'
12
+ import { createLedgerNodeApi } from '../../node/ledger'
13
13
 
14
14
  jest.useFakeTimers({ doNotFake: ['setTimeout'] })
15
15
 
16
16
  jest.mock('axios')
17
17
  jest.mock('@ledgerhq/coin-module-framework/promises')
18
- jest.mock('../gasTracker/ledger', () => ({
18
+ jest.mock('../../gasTracker/ledger', () => ({
19
19
  getGasOptions: jest.fn(),
20
20
  }))
21
21
 
@@ -204,6 +204,7 @@ describe('EVM Family', () => {
204
204
  const response = await api.getTransaction('0xHash')
205
205
  expect(response).toEqual({
206
206
  gasPrice: '83953611012',
207
+ gasLimit: '32000',
207
208
  gasUsed: '21000',
208
209
  value: '70494048649554430',
209
210
  hash: '0x8d5ef4d7673fbfa6a4755cdfdb913742c47c7fdac2d214046387bbcbf10957c9',
@@ -1,7 +1,7 @@
1
1
  // SPDX-FileCopyrightText: © 2026 LEDGER SAS
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
- import type { NodeApi } from './types'
4
+ import type { NodeApi } from '../../node/types'
5
5
 
6
6
  export function mockNodeApi(overrides: Partial<jest.Mocked<NodeApi>> = {}): jest.Mocked<NodeApi> {
7
7
  return {
@@ -5,7 +5,7 @@ import {
5
5
  isRpcMethodNotAvailableOnChainError,
6
6
  isRpcMethodNotImplementedError,
7
7
  isUnsupportedRpcMethodErrorMsg,
8
- } from './rpc.errors'
8
+ } from '../../node/rpc.errors'
9
9
 
10
10
  describe('isRpcMethodNotImplementedError', () => {
11
11
  it.each([
@@ -1,23 +1,23 @@
1
1
  // SPDX-FileCopyrightText: © 2026 LEDGER SAS
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
- import type { EvmConfigInfo } from '../../config'
4
+ import type { EvmConfigInfo } from '../../../config'
5
5
  import type { PerformActionRequest } from 'ethers'
6
6
  import { delay } from '@ledgerhq/coin-module-framework/promises'
7
7
  import BigNumber from 'bignumber.js'
8
8
  import { FeeData, FetchRequest, JsonRpcProvider, Network, Transaction } from 'ethers'
9
- import { CHAIN_ID } from '../../config'
10
- import { GasEstimationError, InsufficientFunds, UnsupportedRpcMethodError } from '../../errors'
9
+ import { CHAIN_ID } from '../../../config'
10
+ import { GasEstimationError, InsufficientFunds, UnsupportedRpcMethodError } from '../../../errors'
11
11
  import {
12
12
  createMockEvmConfigInfo,
13
13
  mkExternalNode,
14
14
  testLogger,
15
- } from '../../fixtures/context.fixtures'
15
+ } from '../../../fixtures/context.fixtures'
16
16
  import {
17
17
  mkBlock,
18
18
  mkTransactionReceipt,
19
19
  mkTransactionResponse,
20
- } from '../../fixtures/ethers.fixtures'
20
+ } from '../../../fixtures/ethers.fixtures'
21
21
  import {
22
22
  createNodeApi,
23
23
  DEFAULT_RETRIES_RPC_METHODS,
@@ -27,7 +27,7 @@ import {
27
27
  SYSTEM_ADDRESS,
28
28
  WETH_DEPOSIT_TOPIC,
29
29
  ERC20_MINT_TOPIC,
30
- } from './rpc.common'
30
+ } from '../../node/rpc.common'
31
31
 
32
32
  const evmConfig = createMockEvmConfigInfo({
33
33
  chainId: 1,
@@ -346,6 +346,7 @@ describe('EVM Family', () => {
346
346
  hash: '0x435b00d28a10febbcfefbdea080134d08ef843df122d5bc9174b09de7fce6a59',
347
347
  nonce: 123,
348
348
  gasPrice: '789',
349
+ gasLimit: '123',
349
350
  gasUsed: '122',
350
351
  value: '456',
351
352
  status: 1,
@@ -1272,6 +1273,8 @@ describe('EVM Family', () => {
1272
1273
  from: '0x6cbcd73cd8e8a42844662f0a0e76d7f79afd933d',
1273
1274
  to: '0xc2907efcce4011c491bbeda8a0fa63ba7aab596c',
1274
1275
  gasPrice: 0n,
1276
+ gasLimit: 21000n,
1277
+ nonce: 5,
1275
1278
  }),
1276
1279
  ],
1277
1280
  })
@@ -1289,6 +1292,8 @@ describe('EVM Family', () => {
1289
1292
  from: '0x6cbcd73cd8e8a42844662f0a0e76d7f79afd933d',
1290
1293
  to: '0xc2907efcce4011c491bbeda8a0fa63ba7aab596c',
1291
1294
  gasPrice: '0',
1295
+ gasLimit: '21000',
1296
+ nonce: 5,
1292
1297
  },
1293
1298
  ],
1294
1299
  transactionHashes: ['0xtx1'],
@@ -1348,6 +1353,8 @@ describe('EVM Family', () => {
1348
1353
  from: '0x993aad80e425c646dab305381ff105169feedf67',
1349
1354
  to: '0x0000000000000000000000000000000000010003',
1350
1355
  type: '0xff',
1356
+ gas: '0x11e1a300',
1357
+ nonce: '0x2a',
1351
1358
  },
1352
1359
  ],
1353
1360
  }
@@ -1366,6 +1373,8 @@ describe('EVM Family', () => {
1366
1373
  from: '0x993aad80e425c646dab305381ff105169feedf67',
1367
1374
  to: '0x0000000000000000000000000000000000010003',
1368
1375
  gasPrice: '0',
1376
+ gasLimit: '300000000',
1377
+ nonce: 42,
1369
1378
  },
1370
1379
  ],
1371
1380
  })
@@ -1,7 +1,7 @@
1
1
  // SPDX-FileCopyrightText: © 2026 LEDGER SAS
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
- import { isExternalNodeConfig, isLedgerNodeConfig } from './types'
4
+ import { isExternalNodeConfig, isLedgerNodeConfig } from '../../node/types'
5
5
 
6
6
  describe('EVM Family', () => {
7
7
  describe('network/node/types.ts', () => {
@@ -7,10 +7,10 @@ import {
7
7
  mkEtherscanExplorer,
8
8
  mkExternalNode,
9
9
  testLogger,
10
- } from '../../fixtures/context.fixtures'
11
- import { nodeSourcesFromList } from '../../nodeSources'
10
+ } from '../../../fixtures/context.fixtures'
11
+ import { nodeSourcesFromList } from '../../../nodeSources'
12
+ import { withNodeSources } from '../../node/withNodeSources'
12
13
  import { mockNodeApi } from './node.fixtures'
13
- import { withNodeSources } from './withNodeSources'
14
14
 
15
15
  jest.mock('axios')
16
16
  const mockAxiosGet = jest.mocked(axios.get)
@@ -2,8 +2,8 @@
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  import { delay } from '@ledgerhq/coin-module-framework/promises'
5
- import { RateLimitError } from '../errors'
6
- import { withRetries } from './withRetries'
5
+ import { RateLimitError } from '../../errors'
6
+ import { withRetries } from '../withRetries'
7
7
 
8
8
  jest.mock('@ledgerhq/coin-module-framework/promises')
9
9
  jest.mocked(delay).mockResolvedValue(undefined)