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

Commit d5819b3

Browse files
authored
SDK: Package restucture (#130)
1 parent e7a9873 commit d5819b3

Some content is hidden

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

56 files changed

+7372
-15558
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
.idea
33
.private
44
.vscode
5+
node_modules
6+
*.tgz
File renamed without changes.

evm/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ forge-test: dependencies
2323
.PHONY: build
2424
build: dependencies
2525
forge build --skip test
26-
npm run build-types
26+
npm run generate
2727

2828
.PHONY: dependencies
2929
dependencies: node_modules
3030

3131
.PHONY: clean
3232
clean:
3333
forge clean
34-
rm -rf node_modules anvil.log ts/src/types
34+
rm -rf anvil.log ts/src/types
3535

3636
node_modules:
37-
npm ci
37+
cd .. && npm ci

evm/package.json

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
11
{
2-
"name": "example-liquidity-layer-evm",
3-
"version": "0.1.0",
2+
"name": "@wormhole-foundation/example-liquidity-layer-evm",
3+
"version": "0.0.1",
44
"author": "Wormhole Contributors",
55
"license": "Apache-2.0",
6+
"main": "./dist/cjs/index.js",
7+
"types":"./dist/cjs/index.d.ts",
8+
"module": "./dist/esm/index.js",
9+
"scripts": {
10+
"build:esm": "tsc -p tsconfig.esm.json",
11+
"build:cjs": "tsc -p tsconfig.cjs.json",
12+
"build": "npm run build:esm && npm run build:cjs",
13+
"generate": "typechain --target=ethers-v5 --out-dir=ts/src/types out/*/*.json"
14+
},
15+
"dependencies": {
16+
"@certusone/wormhole-sdk": "^0.10.10",
17+
"ethers": "^5.7.2"
18+
},
619
"devDependencies": {
7-
"@certusone/wormhole-sdk": "^0.10.9",
20+
"envfile": "^6.18.0",
21+
"@certusone/wormhole-sdk": "^0.10.10",
822
"@typechain/ethers-v5": "^10.2.0",
923
"@types/chai": "^4.3.4",
1024
"@types/mocha": "^10.0.1",
@@ -16,15 +30,6 @@
1630
"prettier": "^2.8.7",
1731
"prettier-plugin-solidity": "^1.1.3",
1832
"ts-mocha": "^10.0.0",
19-
"typechain": "^8.1.1",
20-
"typescript": "^4.9.5"
21-
},
22-
"scripts": {
23-
"build-types": "typechain --target=ethers-v5 --out-dir=ts/src/types out/*/*.json"
24-
},
25-
"dependencies": {
26-
"@improbable-eng/grpc-web-node-http-transport": "^0.15.0",
27-
"envfile": "^6.18.0",
28-
"yargs": "^17.7.2"
33+
"typechain": "^8.1.1"
2934
}
30-
}
35+
}

0 commit comments

Comments
 (0)