Skip to content

Commit 20cced0

Browse files
committed
sync deps, remove prettier, link globally
1 parent 0c1ed3f commit 20cced0

File tree

10 files changed

+1104
-921
lines changed

10 files changed

+1104
-921
lines changed

examples/mrl-simple/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
"@moonbeam-network/xcm-utils": "workspace:*"
1414
},
1515
"devDependencies": {
16-
"bun": "^1.1.25"
16+
"bun": "^1.1.31"
1717
}
1818
}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
"dotenv": "^16.4.5",
5858
"glob": "^11.0.0",
5959
"lefthook": "^1.7.15",
60-
"prettier": "^3.3.3",
6160
"syncpack": "^13.0.0",
6261
"tsup": "^8.3.0",
6362
"turbo": "^2.1.3",

packages/builder/package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55
"scripts": {
66
"build": "tsup",
77
"dev": "tsup --watch",
8-
"link": "pnpm ln ./",
8+
"link": "pnpm ln --global",
99
"typecheck": "tsc --noEmit",
1010
"test": "vitest --run",
1111
"test:watch": "vitest",
12-
"test:update": "vitest -u",
13-
"prepack": "prettier --write build/index.d.ts"
12+
"test:update": "vitest -u"
1413
},
1514
"repository": {
1615
"directory": "packages/builder",
@@ -40,8 +39,8 @@
4039
"@polkadot/types": "^12.4.2",
4140
"@polkadot/util": "^13.1.1",
4241
"@polkadot/util-crypto": "^13.1.1",
43-
"@wormhole-foundation/sdk-connect": "^0.8.2",
44-
"@wormhole-foundation/sdk-evm": "^0.8.2",
45-
"viem": "^2.20.0"
42+
"@wormhole-foundation/sdk-connect": "^0.10.7",
43+
"@wormhole-foundation/sdk-evm": "^0.10.7",
44+
"viem": "^2.21.7"
4645
}
4746
}

packages/config/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55
"scripts": {
66
"build": "tsup",
77
"dev": "tsup --watch",
8-
"link": "pnpm ln ./",
8+
"link": "pnpm ln --global",
99
"typecheck": "tsc --noEmit",
1010
"test": "vitest --run",
1111
"test:watch": "vitest",
12-
"test:update": "vitest -u",
13-
"prepack": "prettier --write build/index.d.ts"
12+
"test:update": "vitest -u"
1413
},
1514
"repository": {
1615
"directory": "packages/config",

packages/mrl/package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
"scripts": {
66
"build": "tsup",
77
"dev": "tsup --watch",
8-
"link": "pnpm ln ./",
9-
"typecheck": "tsc --noEmit",
10-
"prepack": "prettier --write build/index.d.ts"
8+
"link": "pnpm ln --global",
9+
"typecheck": "tsc --noEmit"
1110
},
1211
"repository": {
1312
"directory": "packages/mrl",
@@ -31,16 +30,16 @@
3130
"@moonbeam-network/xcm-config": "workspace:*",
3231
"@moonbeam-network/xcm-sdk": "workspace:*",
3332
"@moonbeam-network/xcm-types": "workspace:*",
34-
"@moonbeam-network/xcm-utils": "workspace:^",
33+
"@moonbeam-network/xcm-utils": "workspace:*",
3534
"big.js": "^6.2.1"
3635
},
3736
"peerDependencies": {
3837
"@polkadot/api": "^12.4.2",
3938
"@polkadot/api-augment": "^12.4.2",
4039
"@polkadot/types": "^12.4.2",
4140
"@polkadot/util": "^13.0.2",
42-
"@wormhole-foundation/sdk-connect": "^0.8.2",
43-
"@wormhole-foundation/sdk-evm": "^0.8.2",
44-
"viem": "^2.20.0"
41+
"@wormhole-foundation/sdk-connect": "^0.10.7",
42+
"@wormhole-foundation/sdk-evm": "^0.10.7",
43+
"viem": "^2.21.7"
4544
}
4645
}

packages/mrl/src/getTransferData/getRedeemData.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ export async function getRedeemData({ txId, chain }: WormholeRedeemParams) {
1313
const wh = WormholeService.create(chain);
1414

1515
const vaa = await wh.getVaa(txId);
16+
if (!vaa) {
17+
// TODO handle softly when retrieving
18+
throw new Error(`VAA not found for WormholeId ${txId}`);
19+
}
20+
1621
const tokenTransfer = await wh.getTokenTransfer(vaa, txId);
1722

1823
const isXcm = vaa.payloadName === 'TransferWithPayload';

packages/sdk/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
"scripts": {
66
"build": "tsup",
77
"dev": "tsup --watch",
8-
"link": "pnpm ln ./",
8+
"link": "pnpm ln --global",
99
"typecheck": "tsc --noEmit",
10-
"test:acc": "vitest --run --testTimeout 300000 ./tests/acceptance",
11-
"prepack": "prettier --write build/index.d.ts"
10+
"test:acc": "vitest --run --testTimeout 300000 ./tests/acceptance"
1211
},
1312
"author": "moonbeam-foundation",
1413
"license": "MIT",
@@ -47,7 +46,7 @@
4746
"@polkadot/api-augment": "^12.4.2",
4847
"@polkadot/types": "^12.4.2",
4948
"@polkadot/util": "^13.1.1",
50-
"viem": "^2.20.0"
49+
"viem": "^2.21.7"
5150
},
5251
"devDependencies": {
5352
"@types/big.js": "^6.2.2"

packages/types/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
"scripts": {
66
"build": "tsup",
77
"dev": "tsup --watch",
8-
"link": "pnpm ln ./",
8+
"link": "pnpm ln --global",
99
"test": "vitest --run",
1010
"test:watch": "vitest",
11-
"test:update": "vitest -u",
12-
"prepack": "prettier --write build/index.d.ts"
11+
"test:update": "vitest -u"
1312
},
1413
"repository": {
1514
"directory": "packages/types",
@@ -34,9 +33,9 @@
3433
},
3534
"devDependencies": {
3635
"@types/big.js": "^6.2.2",
37-
"@wormhole-foundation/sdk-connect": "^0.8.2"
36+
"@wormhole-foundation/sdk-connect": "^0.10.7"
3837
},
3938
"peerDependencies": {
40-
"viem": "^2.20.0"
39+
"viem": "^2.21.7"
4140
}
4241
}

packages/utils/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55
"scripts": {
66
"build": "tsup",
77
"dev": "tsup --watch",
8-
"link": "pnpm ln ./",
8+
"link": "pnpm ln --global",
99
"typecheck": "tsc --noEmit",
1010
"test": "vitest --run",
1111
"test:watch": "vitest",
12-
"test:update": "vitest -u",
13-
"prepack": "prettier --write build/index.d.ts"
12+
"test:update": "vitest -u"
1413
},
1514
"author": "moonbeam-foundation",
1615
"license": "MIT",
@@ -40,6 +39,6 @@
4039
"@polkadot/api": "^12.4.2",
4140
"@polkadot/apps-config": "^0.143.2",
4241
"@polkadot/util": "^13.1.1",
43-
"@polkadot/util-crypto": "^13.0.2"
42+
"@polkadot/util-crypto": "^13.1.1"
4443
}
4544
}

0 commit comments

Comments
 (0)