Skip to content

Commit 3a4dc45

Browse files
authored
[UMA-2464][DESKTOP] Update taquito to the latest beta to support tezos seoul (#2515)
* chore: updated taquito for desktop * update taquito to latest version * fix test * fix test * fix test * fix test * temporarly removed componets test * fix issue * fix test * remove check on mobile app * fix * fix
1 parent 3739fa6 commit 3a4dc45

38 files changed

+955
-603
lines changed

.github/workflows/test.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ jobs:
2626
cache: "pnpm"
2727

2828
- run: pnpm install
29-
29+
30+
- run: pnpm run build
31+
3032
- run: pnpm run test -- --runInBand
3133

3234
- name: Post Jest Coverage Comment

apps/desktop-e2e/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"dependencies": {
2828
"@cucumber/cucumber": "^11.1.1",
2929
"@playwright/test": "^1.49.1",
30-
"@taquito/signer": "^21.0.2",
30+
"@taquito/signer": "^23.0.0-beta.0",
3131
"@umami/core": "workspace:^",
3232
"@umami/state": "workspace:^",
3333
"@umami/test-utils": "workspace:^",

apps/desktop/jest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export default {
55
rootDir: "./",
66
testTimeout: 20000,
77
bail: false,
8+
setupFiles: ["<rootDir>/src/setupTestsGlobal.ts"],
89
setupFilesAfterEnv: ["<rootDir>/src/setupTests.tsx"],
910
transformIgnorePatterns: ["node_modules/(?!(redux-persist-transform-encrypt)/)"],
1011
};

apps/desktop/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@
5959
"@reduxjs/toolkit": "^2.5.0",
6060
"@tanstack/react-query": "^5.62.11",
6161
"@tanstack/react-query-devtools": "^5.62.11",
62-
"@taquito/ledger-signer": "^21.0.2",
63-
"@taquito/michel-codec": "^21.0.2",
64-
"@taquito/rpc": "^21.0.2",
65-
"@taquito/signer": "^21.0.2",
66-
"@taquito/taquito": "21.0.2",
62+
"@taquito/ledger-signer": "^23.0.0-beta.0",
63+
"@taquito/michel-codec": "^23.0.0-beta.0",
64+
"@taquito/rpc": "^23.0.0-beta.0",
65+
"@taquito/signer": "^23.0.0-beta.0",
66+
"@taquito/taquito": "^23.0.0-beta.0",
6767
"@testing-library/dom": "^10.4.0",
6868
"@testing-library/jest-dom": "6.6.3",
6969
"@testing-library/react": "16.1.0",

apps/desktop/src/components/Onboarding/restoreSecretKey/RestoreSecretKey.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ describe("<RestoreSecretKey />", () => {
128128
await act(() => user.click(screen.getByTestId("restore-continue-button")));
129129

130130
expect(mockToast).toHaveBeenCalledWith({
131-
description:
132-
"Invalid private key with unsupported prefix expecting one of the following 'edesk', 'edsk', 'spsk', 'spesk', 'p2sk' or 'p2esk'..",
131+
description: "Invalid secret key: checksum doesn't match",
133132
status: "error",
134133
isClosable: true,
135134
});

apps/desktop/src/setupTests.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
// learn more: https://github.com/testing-library/jest-dom
55
import "@testing-library/jest-dom";
66

7-
import { webcrypto } from "crypto";
8-
import { TextDecoder, TextEncoder } from "util";
9-
107
import { mockToast } from "@umami/state";
118
import { mockLocalStorage } from "@umami/test-utils";
129
import { setupJestCanvasMock } from "jest-canvas-mock";
@@ -44,9 +41,6 @@ const mockIntersectionObserver = class MockIntersectionObserver {
4441
jest.mock("./env", () => ({ IS_DEV: false }));
4542

4643
Object.defineProperties(global, {
47-
crypto: { value: webcrypto, writable: true },
48-
TextDecoder: { value: TextDecoder, writable: true },
49-
TextEncoder: { value: TextEncoder, writable: true },
5044
scrollTo: { value: jest.fn(), writable: true },
5145
fetch: { value: jest.fn(), writable: true },
5246
});
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Global setup that runs before any imports
2+
import { webcrypto } from "crypto";
3+
import { TextDecoder, TextEncoder } from "util";
4+
5+
// Set up TextEncoder/TextDecoder globally before any modules are imported
6+
Object.defineProperties(global, {
7+
crypto: { value: webcrypto, writable: true },
8+
TextDecoder: { value: TextDecoder, writable: true },
9+
TextEncoder: { value: TextEncoder, writable: true },
10+
});

apps/embed-iframe/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"@chakra-ui/theme-tools": "^2.2.6",
2828
"@emotion/react": "^11.14.0",
2929
"@emotion/styled": "^11.14.0",
30-
"@taquito/signer": "^21.0.2",
31-
"@taquito/taquito": "21.0.2",
30+
"@taquito/signer": "^23.0.0-beta.0",
31+
"@taquito/taquito": "^23.0.0-beta.0",
3232
"@testing-library/dom": "^10.4.0",
3333
"@testing-library/jest-dom": "6.6.3",
3434
"@testing-library/react": "16.1.0",

apps/mobile/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@tamagui/babel-plugin": "1.123.0",
3333
"@tamagui/config": "1.123.0",
3434
"@tamagui/lucide-icons": "^1.123.14",
35-
"@taquito/utils": "^21.0.2",
35+
"@taquito/utils": "^23.0.0-beta.0",
3636
"@umami/core": "workspace:^",
3737
"@umami/crypto": "workspace:^",
3838
"@umami/data-polling": "workspace:^",

apps/web/jest.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import config from "@umami/jest-config";
22

33
export default {
44
...config,
5-
setupFilesAfterEnv: ["<rootDir>/src/setupTests.ts"],
5+
setupFiles: ["<rootDir>/src/setupTests.ts"],
6+
setupFilesAfterEnv: ["<rootDir>/src/setupTestsAfterEnv.ts"],
67
rootDir: "./",
78
bail: false, // TODO: remove
89
transformIgnorePatterns: ["node_modules/(?!(redux-persist-transform-encrypt)/)"],

0 commit comments

Comments
 (0)