@ledgerhq/coin-sui 0.17.0 → 0.18.0-nightly.20251108023448

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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @ledgerhq/coin-sui
2
2
 
3
+ ## 0.18.0-nightly.20251108023448
4
+
5
+ ### Minor Changes
6
+
7
+ - [#12402](https://github.com/LedgerHQ/ledger-live/pull/12402) [`544721d`](https://github.com/LedgerHQ/ledger-live/commit/544721d198454526ef83516619d59c881ba34eb9) Thanks [@qperrot](https://github.com/qperrot)! - Fix transactionSequenceNumber type
8
+
9
+ ### Patch Changes
10
+
11
+ - [#12631](https://github.com/LedgerHQ/ledger-live/pull/12631) [`03da858`](https://github.com/LedgerHQ/ledger-live/commit/03da8580f7d22b156c47bec95b9b2b2bdc1d15da) Thanks [@semeano](https://github.com/semeano)! - Remove mock of deprecated function
12
+
13
+ - Updated dependencies [[`74a340b`](https://github.com/LedgerHQ/ledger-live/commit/74a340b258589c9c37476103029eb036b930616c), [`a6bc24e`](https://github.com/LedgerHQ/ledger-live/commit/a6bc24ee988b98bf82f807ac5ce731ba79813901), [`b69c97d`](https://github.com/LedgerHQ/ledger-live/commit/b69c97d979ba97154c9abfda6abfc2a36becee4f), [`544721d`](https://github.com/LedgerHQ/ledger-live/commit/544721d198454526ef83516619d59c881ba34eb9), [`1c6f5f5`](https://github.com/LedgerHQ/ledger-live/commit/1c6f5f5843349b1955f7ca466f98cbe4ffcdaddf), [`d5d838a`](https://github.com/LedgerHQ/ledger-live/commit/d5d838a23e00edd53293843781c559c41db4e854), [`9f61dcf`](https://github.com/LedgerHQ/ledger-live/commit/9f61dcf6163fd66657e5be732c28bea623a40515), [`c0b5b9f`](https://github.com/LedgerHQ/ledger-live/commit/c0b5b9f4cdcb2ea3e15419cbf3d1a14f725c3e6a), [`70049be`](https://github.com/LedgerHQ/ledger-live/commit/70049bed0cd0a8c7a9e4947a63af82061dad46c0), [`5b41dd5`](https://github.com/LedgerHQ/ledger-live/commit/5b41dd56e024a5d03ba0e49084113c04887395db), [`c70f6a8`](https://github.com/LedgerHQ/ledger-live/commit/c70f6a8370056b6fd8f236205471359d6f9b846f)]:
14
+ - @ledgerhq/types-live@6.89.0-nightly.20251108023448
15
+ - @ledgerhq/cryptoassets@13.33.0-nightly.20251108023448
16
+ - @ledgerhq/coin-framework@6.9.0-nightly.20251108023448
17
+
3
18
  ## 0.17.0
4
19
 
5
20
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/coin-sui",
3
- "version": "0.17.0",
3
+ "version": "0.18.0-nightly.20251108023448",
4
4
  "description": "Ledger Sui Coin integration",
5
5
  "keywords": [
6
6
  "Ledger",
@@ -120,8 +120,8 @@
120
120
  "bignumber.js": "^9.1.2",
121
121
  "lodash": "4.17.21",
122
122
  "rxjs": "^7.8.1",
123
- "@ledgerhq/coin-framework": "^6.8.0",
124
- "@ledgerhq/cryptoassets": "^13.32.0",
123
+ "@ledgerhq/coin-framework": "^6.9.0-nightly.20251108023448",
124
+ "@ledgerhq/cryptoassets": "^13.33.0-nightly.20251108023448",
125
125
  "@ledgerhq/errors": "^6.27.0",
126
126
  "@ledgerhq/hw-app-sui": "^1.4.0",
127
127
  "@ledgerhq/live-env": "^2.20.0",
@@ -129,7 +129,7 @@
129
129
  "@ledgerhq/live-promise": "^0.1.1",
130
130
  "@ledgerhq/logs": "^6.13.0",
131
131
  "@ledgerhq/types-cryptoassets": "^7.30.0",
132
- "@ledgerhq/types-live": "^6.88.0"
132
+ "@ledgerhq/types-live": "^6.89.0-nightly.20251108023448"
133
133
  },
134
134
  "devDependencies": {
135
135
  "@faker-js/faker": "^8.4.1",
package/src/api/index.ts CHANGED
@@ -31,7 +31,7 @@ export function createApi(config: SuiConfig): AlpacaApi {
31
31
  _transaction: string,
32
32
  _sender: string,
33
33
  _publicKey: string,
34
- _sequence: number,
34
+ _sequence: bigint,
35
35
  ): Promise<CraftedTransaction> => {
36
36
  throw new Error("craftRawTransaction is not supported");
37
37
  },
@@ -13,7 +13,7 @@ import { setCryptoAssetsStore } from "@ledgerhq/coin-framework/crypto-assets/ind
13
13
  import type { CryptoAssetsStore } from "@ledgerhq/types-live";
14
14
  import type { TokenCurrency } from "@ledgerhq/types-cryptoassets";
15
15
 
16
- // Mock findTokenById and listTokensForCryptoCurrency
16
+ // Mock findTokenById
17
17
  jest.mock("@ledgerhq/cryptoassets/tokens", () => ({
18
18
  findTokenById: async (coinType: string) => ({
19
19
  id: coinType,
@@ -25,7 +25,6 @@ jest.mock("@ledgerhq/cryptoassets/tokens", () => ({
25
25
  parentCurrency: { id: "sui" },
26
26
  contract: "0x123",
27
27
  }),
28
- listTokensForCryptoCurrency: () => [{ id: "0x123::sui::TEST" }],
29
28
  }));
30
29
 
31
30
  jest.mock("../network", () => {
@@ -42,8 +41,10 @@ jest.mock("../network", () => {
42
41
 
43
42
  const mockedFindTokenByAddressInCurrency = jest.fn();
44
43
  setCryptoAssetsStore({
45
- findTokenByAddressInCurrency: (address: string, currencyId: string) =>
44
+ findTokenByAddressInCurrency: async (address: string, currencyId: string) =>
46
45
  mockedFindTokenByAddressInCurrency(address, currencyId),
46
+ findTokenById: async () => undefined,
47
+ getTokensSyncHash: async () => "0",
47
48
  } as unknown as CryptoAssetsStore);
48
49
 
49
50
  describe("getAccountShape", () => {