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

Commit 40b3281

Browse files
authored
Create Solver workspace (#156)
1 parent fca6912 commit 40b3281

Some content is hidden

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

64 files changed

+402
-3654
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
.PHONY: clean
33
clean:
44
rm -rf node_modules
5+
npm run clean
56
cd solana && $(MAKE) clean
67

78
.PHONY: clean-install

evm/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@
1010
"build:esm": "tsc -p tsconfig.esm.json",
1111
"build:cjs": "tsc -p tsconfig.cjs.json",
1212
"build": "npm run build:esm && npm run build:cjs",
13-
"generate": "typechain --target=ethers-v5 --out-dir=ts/src/types out/*/*.json"
13+
"generate": "typechain --target=ethers-v5 --out-dir=ts/src/types out/*/*.json",
14+
"clean":"rm -rf dist && rm -rf node_modules"
1415
},
1516
"dependencies": {
16-
"@wormhole-foundation/sdk":"^0.7.0-beta.3",
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",
1720
"@wormhole-foundation/example-liquidity-layer-definitions":"0.0.1",
1821
"ethers": "^5.7.2"
1922
},

evm/ts/scripts/set_fast_transfer_parameters.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { getConfig } from "./helpers";
22
import { ITokenRouter__factory } from "../src/types/factories/ITokenRouter__factory";
33
import { ITokenRouter, FastTransferParametersStruct } from "../src/types/ITokenRouter";
44
import { ethers } from "ethers";
5-
import { Chain, toChainId, toNative, toUniversal, toChain } from "@wormhole-foundation/sdk";
5+
import { toChain, toChainId } from "@wormhole-foundation/sdk-base";
6+
import { toUniversal } from "@wormhole-foundation/sdk-definitions";
67

78
export function getArgs() {
89
const argv = require("yargs")

evm/ts/scripts/setup_matching_engine.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { getConfig, ZERO_BYTES32 } from "./helpers";
22
import { IMatchingEngine__factory, IMatchingEngine } from "../src/types/";
33
import { RouterEndpointStruct } from "../src/types/IMatchingEngine";
44
import { ethers } from "ethers";
5-
import { ChainId, toChain, toChainId, toNative, toUniversal } from "@wormhole-foundation/sdk";
5+
import { ChainId, toChain, toChainId } from "@wormhole-foundation/sdk-base";
6+
import { toUniversal } from "@wormhole-foundation/sdk-definitions";
67

78
export function getArgs() {
89
const argv = require("yargs")

evm/ts/scripts/setup_token_router.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import { ITokenRouter__factory } from "../src/types/factories/ITokenRouter__fact
33
import { ITokenRouter } from "../src/types/ITokenRouter";
44
import { EndpointStruct } from "../src/types/ITokenRouter";
55
import { ethers } from "ethers";
6-
import { toChain, toChainId, toNative, toUniversal } from "@wormhole-foundation/sdk";
6+
import { toChain, toChainId } from "@wormhole-foundation/sdk-base";
7+
import { toUniversal } from "@wormhole-foundation/sdk-definitions";
8+
import "@wormhole-foundation/sdk-evm";
79

810
export function getArgs() {
911
const argv = require("yargs")

evm/ts/src/MatchingEngine/evm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ChainId } from "@wormhole-foundation/sdk";
1+
import { ChainId } from "@wormhole-foundation/sdk-base";
22
import { ethers } from "ethers";
33
import { RouterEndpoint, LiveAuctionData, MatchingEngine, RedeemParameters } from ".";
44
import { LiquidityLayerTransactionResult } from "..";

evm/ts/src/TokenRouter/evm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ChainId } from "@wormhole-foundation/sdk";
1+
import { ChainId } from "@wormhole-foundation/sdk-base";
22
import { ethers } from "ethers";
33
import { Endpoint, OrderResponse, TokenRouter, FastTransferParameters } from ".";
44
import { LiquidityLayerTransactionResult } from "..";

evm/ts/src/TokenRouter/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { VAA } from "@wormhole-foundation/sdk";
21
import { LiquidityLayerTransactionResult, PreparedInstruction } from "..";
32
import { ethers } from "ethers";
43
export * from "./evm";

evm/ts/src/consts.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

evm/ts/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { ethers } from "ethers";
22

33
export * from "./MatchingEngine";
44
export * from "./TokenRouter";
5-
export * from "./consts";
65
export * from "./error";
76
export * from "./messages";
87
export * from "./utils";

0 commit comments

Comments
 (0)