Skip to content
This repository was archived by the owner on Jun 16, 2025. It is now read-only.

Commit a1763da

Browse files
authored
Update Evm TS package (#178)
1 parent 80aebe9 commit a1763da

19 files changed

+102
-70
lines changed

evm/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ ts/lib
1212
ts/src/types
1313
dist
1414
ts-types
15+
*.tsbuildinfo

evm/package.json

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,46 @@
44
"author": "Wormhole Contributors",
55
"license": "Apache-2.0",
66
"main": "./dist/cjs/index.js",
7-
"types":"./dist/cjs/index.d.ts",
7+
"types": "./dist/cjs/index.d.ts",
88
"module": "./dist/esm/index.js",
9+
"files": [
10+
"dist/cjs",
11+
"dist/esm"
12+
],
913
"scripts": {
1014
"build:esm": "tsc -p tsconfig.esm.json",
1115
"build:cjs": "tsc -p tsconfig.cjs.json",
1216
"build": "npm run build:esm && npm run build:cjs",
1317
"generate": "typechain --target=ethers-v5 --out-dir=ts/src/types out/*/*.json",
14-
"clean":"rm -rf dist && rm -rf node_modules"
18+
"clean": "rm -rf dist && rm -rf node_modules && rm -f ./*.tsbuildinfo"
19+
},
20+
"exports": {
21+
".": {
22+
"import": "./dist/esm/index.js",
23+
"require": "./dist/cjs/index.js",
24+
"types": "./dist/cjs/index.d.ts"
25+
},
26+
"./*": {
27+
"import": "./dist/esm/*/index.js",
28+
"require": "./dist/cjs/*/index.js",
29+
"types": "./dist/cjs/*/index.d.ts"
30+
}
1531
},
1632
"dependencies": {
17-
"@wormhole-foundation/sdk-base":"^0.7.0-beta.4",
18-
"@wormhole-foundation/sdk-definitions":"^0.7.0-beta.4",
19-
"@wormhole-foundation/sdk-evm":"^0.7.0-beta.4",
20-
"@wormhole-foundation/example-liquidity-layer-definitions":"0.0.1",
33+
"@wormhole-foundation/sdk-base": "^0.7.0-beta.6",
34+
"@wormhole-foundation/sdk-definitions": "^0.7.0-beta.6",
35+
"@wormhole-foundation/sdk-evm": "^0.7.0-beta.6",
36+
"@wormhole-foundation/example-liquidity-layer-definitions": "0.0.1",
2137
"ethers": "^5.7.2"
2238
},
2339
"devDependencies": {
24-
"envfile": "^6.18.0",
40+
"envfile": "^7.1.0",
2541
"@typechain/ethers-v5": "^10.2.0",
2642
"@types/chai": "^4.3.4",
2743
"@types/mocha": "^10.0.1",
2844
"@types/node": "^18.14.5",
2945
"chai": "^4.3.7",
3046
"dotenv": "^16.3.1",
31-
"ethers": "^5.7.2",
3247
"mocha": "^10.0.0",
3348
"prettier": "^2.8.7",
3449
"prettier-plugin-solidity": "^1.1.3",

evm/ts/tests/helpers/consts.ts renamed to evm/ts/src/testing/consts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FastTransferParameters } from "../../src";
1+
import { FastTransferParameters } from "..";
22

33
export type ValidNetwork = "Avalanche" | "Ethereum" | "Base";
44

evm/ts/tests/helpers/env.ts renamed to evm/ts/src/testing/env.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ts-ignore
12
import { parse as envParse } from "envfile";
23
import * as fs from "fs";
34

File renamed without changes.
File renamed without changes.
File renamed without changes.

evm/ts/tests/helpers/mock/wormhole.ts renamed to evm/ts/src/testing/mock/wormhole.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ethers } from "ethers";
22
import { EvmObserver } from ".";
3-
import { parseEvmEvents, parseEvmEvent } from "../../../src";
3+
import { parseEvmEvents, parseEvmEvent } from "../..";
44
import { GUARDIAN_PRIVATE_KEY, WORMHOLE_GUARDIAN_SET_INDEX } from "../consts";
55
import { Chain, contracts } from "@wormhole-foundation/sdk-base";
66
import { serialize, toUniversal } from "@wormhole-foundation/sdk-definitions";

evm/ts/tests/helpers/utils.ts renamed to evm/ts/src/testing/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { ethers } from "ethers";
2-
import { IERC20 } from "../../src/types";
3-
import { IUSDC__factory } from "../../src/types/factories/IUSDC__factory";
2+
import { IERC20 } from "../types";
3+
import { IUSDC__factory } from "../types/factories/IUSDC__factory";
44
import { WALLET_PRIVATE_KEYS } from "./consts";
5-
import { EvmMatchingEngine } from "../../src";
5+
import { EvmMatchingEngine } from "..";
66
import { Chain } from "@wormhole-foundation/sdk-base";
77
import { toUniversal } from "@wormhole-foundation/sdk-definitions";
88

evm/ts/tests/00__environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
WORMHOLE_GUARDIAN_SET_INDEX,
2020
WORMHOLE_MESSAGE_FEE,
2121
mineWait,
22-
} from "./helpers";
22+
} from "../src/testing";
2323

2424
describe("Environment", () => {
2525
const chainNames: ValidNetwork[] = ["Avalanche", "Ethereum", "Base"];

0 commit comments

Comments
 (0)