Skip to content

Commit 5d3a0d5

Browse files
authored
SDK: Restructure project workspace (#432)
* SDK: Migrate Solana TS code to Solana dir (#433) * bump to stable version of sdk * Move generated IDL to ts directory (#437) * Move generated IDL to ts directory * update github action with new idl path * Update to use the ts exported IDL instead of the json * rebase and regenerate bindings * remove generics from generated idl * add generic stripper to makefile, use ts IDL for binding loader * update bindings to work for both versions (#439) * remove dupe quoter implementation, pass args to createRequestRelayInstruction * Partial CR fixes * Update makefile with suggestions from CR * skip anchor build on test * SDK: Solana TS deduplication (#442) * set peer dep for ntt route * update version * prev commit for tilt to test * restore tiltfile git checkout to main * Add 1.1.0 evm bindings (#457)
1 parent 348570f commit 5d3a0d5

File tree

105 files changed

+13908
-25475
lines changed

Some content is hidden

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

105 files changed

+13908
-25475
lines changed

.github/workflows/solana.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ jobs:
144144
shell: bash
145145
- name: Check idl
146146
run: |
147-
git diff --exit-code idl
147+
git diff --exit-code ts/idl
148148
- name: Run tests
149-
run: anchor test
149+
run: anchor test --skip-build
150150
shell: bash

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ build-evm-prod: clean-evm
1717

1818
.PHONY: gen-evm-bindings
1919
gen-evm-bindings: build-evm-prod
20-
cd sdk && npm ci && cd evm && npm run generate
20+
npm ci && cd sdk/evm && npm run generate
2121

2222
#######################
2323
## TESTS

Tiltfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ load('ext://namespace', 'namespace_create', 'namespace_inject')
22
load('ext://git_resource', 'git_checkout')
33

44
git_checkout('https://github.com/wormhole-foundation/wormhole.git#main', '.wormhole/', unsafe_mode=True)
5-
local(['sed','-i','/{chainId: vaa.ChainIDEthereum, addr: "000000000000000000000000855FA758c77D68a04990E992aA4dcdeF899F654A"},/i {chainId: vaa.ChainIDSolana, addr: "8bf0b547c96edc5c1d512ca25c5c1d1812a180438a0046e511d1fb61561d5cdf"},{chainId: vaa.ChainIDSolana, addr: "0a490691c21334ca173d9ce386e2a86774ce173f351db10d5d0cccc5c4875376"},{chainId: vaa.ChainIDEthereum, addr: "00000000000000000000000042D4BA5e542d9FeD87EA657f0295F1968A61c00A"},{chainId: vaa.ChainIDEthereum, addr: "000000000000000000000000c3ef4965b788cc4b905084d01f2eb7d4b6e93abf"},{chainId: vaa.ChainIDBSC, addr: "000000000000000000000000C5aFE31AE505594B190AC71EA689B58139d1C354"},{chainId: vaa.ChainIDBSC, addr: "0000000000000000000000003f4e941ef5071a1d09c2eb4a24da1fc43f76fcff"},', '.wormhole/node/pkg/accountant/ntt_config.go'])
5+
local(['sed','-i','/{chainId: vaa.ChainIDEthereum, addr: "000000000000000000000000855FA758c77D68a04990E992aA4dcdeF899F654A"},/i {chainId: vaa.ChainIDSolana, addr: "8bf0b547c96edc5c1d512ca25c5c1d1812a180438a0046e511d1fb61561d5cdf"},{chainId: vaa.ChainIDSolana, addr: "0a490691c21334ca173d9ce386e2a86774ce173f351db10d5d0cccc5c4875376"},{chainId: vaa.ChainIDEthereum, addr: "0000000000000000000000006f84742680311cef5ba42bc10a71a4708b4561d1"},{chainId: vaa.ChainIDEthereum, addr: "000000000000000000000000c3ef4965b788cc4b905084d01f2eb7d4b6e93abf"},{chainId: vaa.ChainIDBSC, addr: "0000000000000000000000006f84742680311cef5ba42bc10a71a4708b4561d1"},{chainId: vaa.ChainIDBSC, addr: "0000000000000000000000003f4e941ef5071a1d09c2eb4a24da1fc43f76fcff"},', '.wormhole/node/pkg/accountant/ntt_config.go'])
66

77
load(".wormhole/Tiltfile", "namespace", "k8s_yaml_with_ns")
88

@@ -50,7 +50,8 @@ docker_build(
5050
# CI tests
5151
docker_build(
5252
ref = "ntt-ci",
53-
context = "./sdk",
53+
context = "./",
54+
only=["./sdk", "./package.json", "./package-lock.json", "jest.config.ts", "tsconfig.json", "tsconfig.test.json"],
5455
dockerfile = "./sdk/Dockerfile",
5556
)
5657
k8s_yaml_with_ns("./sdk/ci.yaml")

sdk/jest.config.ts jest.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { JestConfigWithTsJest } from "ts-jest";
33
const jestConfig: JestConfigWithTsJest = {
44
verbose: true,
55
testTimeout: 10000000,
6-
roots: ["./__tests__"],
6+
roots: ["./sdk/__tests__"],
77
testMatch: ["**/*.test.ts"],
88
modulePathIgnorePatterns: ["mocks"],
99
preset: "ts-jest",

0 commit comments

Comments
 (0)