Skip to content

Commit d6a6a94

Browse files
LIVE-19996 Update EVM createBridge function signature
1 parent 2d86f74 commit d6a6a94

File tree

59 files changed

+670
-188
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+670
-188
lines changed

.changeset/modern-needles-cough.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
"@ledgerhq/coin-tester-evm": minor
3+
"@ledgerhq/types-live": minor
4+
"@ledgerhq/coin-bitcoin": minor
5+
"@ledgerhq/coin-evm": minor
6+
"ledger-live-desktop": minor
7+
"live-mobile": minor
8+
"@ledgerhq/live-common": minor
9+
"@ledgerhq/live-countervalues": minor
10+
"@ledgerhq/coin-framework": minor
11+
"@ledgerhq/live-config": minor
12+
"@ledgerhq/live-wallet": minor
13+
"@ledgerhq/live-cli": minor
14+
---
15+
16+
Update EVM createBridge function signature for CAL lazy loading

apps/cli/src/live-common-setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import SpeculosHttpTransport, {
1818
SpeculosHttpTransportOpts,
1919
} from "@ledgerhq/hw-transport-node-speculos-http";
2020
import * as legacy from "@ledgerhq/cryptoassets/tokens";
21-
import { CryptoAssetsStore } from "@ledgerhq/coin-framework/crypto-assets/type";
21+
import type { CryptoAssetsStore } from "@ledgerhq/types-live";
2222
import { setCryptoAssetsStore } from "@ledgerhq/coin-framework/crypto-assets/index";
2323

2424
let idCounter = 0;

apps/ledger-live-desktop/src/newArch/hooks/useStake.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { AccountRaw, TokenAccount } from "@ledgerhq/types-live";
88

99
import { fromAccountRaw } from "@ledgerhq/coin-framework/serialization/account";
1010
import { CryptoCurrency } from "@ledgerhq/types-cryptoassets";
11-
import { CryptoAssetsStore } from "@ledgerhq/coin-framework/crypto-assets/type";
11+
import type { CryptoAssetsStore } from "@ledgerhq/types-live";
1212
import { setCryptoAssetsStore } from "@ledgerhq/coin-framework/crypto-assets/index";
1313

1414
const raw: AccountRaw = {

apps/ledger-live-mobile/src/newArch/hooks/useStake/useStake.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { AccountRaw, TokenAccount } from "@ledgerhq/types-live";
1010
import { fromAccountRaw } from "@ledgerhq/coin-framework/serialization/account";
1111
import { CryptoCurrency } from "@ledgerhq/types-cryptoassets";
1212
import { setCryptoAssetsStore } from "@ledgerhq/coin-framework/crypto-assets/index";
13-
import { CryptoAssetsStore } from "@ledgerhq/coin-framework/crypto-assets/type";
13+
import type { CryptoAssetsStore } from "@ledgerhq/types-live";
1414

1515
const raw: AccountRaw = {
1616
id: "js:2:ethereum:0x01:",

libs/coin-framework/src/account/accountId.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
import tokenData from "./__fixtures__/binance-peg_dai_token.json";
88
import { TokenCurrency } from "@ledgerhq/types-cryptoassets";
99
import * as cryptoAssets from "../crypto-assets";
10-
import { CryptoAssetsStore } from "../crypto-assets/type";
10+
import type { CryptoAssetsStore } from "@ledgerhq/types-live";
1111

1212
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
1313
const TOKEN = tokenData as TokenCurrency;

libs/coin-framework/src/crypto-assets/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CryptoAssetsStore } from "./type";
1+
import type { CryptoAssetsStore } from "@ledgerhq/types-live";
22

33
let cryptoAssetsStore: CryptoAssetsStore | undefined = undefined;
44

libs/coin-modules/coin-bitcoin/src/descriptor.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { fromAccountRaw } from "@ledgerhq/coin-framework/serialization/index";
55
import { inferDescriptorFromDeviceInfo, inferDescriptorFromAccount } from "./descriptor";
66
import bitcoinDatasets from "./datasets/bitcoin";
77
import { assignFromAccountRaw } from "./serialization";
8+
import type { CryptoAssetsStore } from "@ledgerhq/types-live";
89
import { setCryptoAssetsStore } from "@ledgerhq/coin-framework/crypto-assets/index";
9-
import { CryptoAssetsStore } from "@ledgerhq/coin-framework/crypto-assets/type";
1010

1111
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
1212
setCryptoAssetsStore({} as CryptoAssetsStore);

libs/coin-modules/coin-evm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"lint:fix": "pnpm lint --fix",
5656
"typecheck": "tsc --noEmit",
5757
"test": "jest",
58-
"test:debug": "node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand",
58+
"test:debug": "node --inspect-wait ./node_modules/jest/bin/jest.js --runInBand",
5959
"test-integ": "jest --config=jest.integ.config.js",
6060
"unimported": "unimported"
6161
},
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"type": "TokenCurrency",
3+
"id": "cardano/native/8654e8b350e298c80d2451beb5ed80fc9eee9f38ce6b039fb8706bc34c4f4253544552",
4+
"contractAddress": "8654e8b350e298c80d2451beb5ed80fc9eee9f38ce6b039fb8706bc34c4f4253544552",
5+
"parentCurrency": {
6+
"type": "CryptoCurrency",
7+
"id": "cardano",
8+
"coinType": 1815,
9+
"name": "Cardano",
10+
"managerAppName": "Cardano ADA",
11+
"ticker": "ADA",
12+
"scheme": "cardano",
13+
"color": "#0A1D2C",
14+
"family": "cardano",
15+
"blockAvgTime": 20,
16+
"units": [
17+
{
18+
"name": "ada",
19+
"code": "ADA",
20+
"magnitude": 6
21+
},
22+
{
23+
"name": "Lovelace",
24+
"code": "Lovelace",
25+
"magnitude": 0
26+
}
27+
],
28+
"explorerViews": [
29+
{
30+
"tx": "https://cardanoscan.io/transaction/$hash",
31+
"address": "https://cardanoscan.io/address/$address",
32+
"stakePool": "https://cardanoscan.io/pool/$poolId"
33+
}
34+
],
35+
"keywords": [
36+
"ada",
37+
"cardano"
38+
]
39+
},
40+
"tokenType": "native",
41+
"name": "LOBSTER",
42+
"ticker": "$LOBSTER",
43+
"delisted": false,
44+
"disableCountervalue": false,
45+
"units": [
46+
{
47+
"name": "LOBSTER",
48+
"code": "$LOBSTER",
49+
"magnitude": 0
50+
}
51+
]
52+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"accountId": "js:2:ethereum:0x6cbcd73cd8e8a42844662f0a0e76d7f79afd933d:+ethereum%2Ferc20%2Fusd~!underscore!~~!underscore!~coin",
3+
"blockHash": "0x58ee7556044cd139e569c87c173a6dedbfbeb9ada6693ee6090fd510acee9c21",
4+
"blockHeight": 16240731,
5+
"contract": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
6+
"date": "2022-12-22T14:06:23.000Z",
7+
"extra": {},
8+
"fee": "1595338583295225",
9+
"hash": "0x02b972f304dc24c9bc362e6435c4ad654241f9af916689a4790145c9bcbdf4cf",
10+
"id": "js:2:ethereum:0x6cbcd73cd8e8a42844662f0a0e76d7f79afd933d:+js%3A2%3Aethereum%3A0x6cbcd73cd8e8a42844662f0a0e76d7f79afd933d%3A%2Bethereum%252Ferc20%252Fusd~!underscore!~~!underscore!~coin~!dash!~0x02b972f304dc24c9bc362e6435c4ad654241f9af916689a4790145c9bcbdf4cf~!dash!~OUT~!dash!~i0-0x02b972f304dc24c9bc362e6435c4ad654241f9af916689a4790145c9bcbdf4cf-IN-i0",
11+
"recipients": [
12+
"0xC2907EFccE4011C491BbedA8A0fA63BA7aab596C"
13+
],
14+
"senders": [
15+
"0x6cBCD73CD8e8a42844662f0A0e76D7F79Afd933d"
16+
],
17+
"transactionSequenceNumber": 53,
18+
"type": "OUT",
19+
"value": "2000000"
20+
}

0 commit comments

Comments
 (0)