Skip to content

Commit

Permalink
sync deps, remove prettier, link globally
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaurello committed Oct 30, 2024
1 parent 0c1ed3f commit 20cced0
Show file tree
Hide file tree
Showing 10 changed files with 1,104 additions and 921 deletions.
2 changes: 1 addition & 1 deletion examples/mrl-simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"@moonbeam-network/xcm-utils": "workspace:*"
},
"devDependencies": {
"bun": "^1.1.25"
"bun": "^1.1.31"
}
}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
"dotenv": "^16.4.5",
"glob": "^11.0.0",
"lefthook": "^1.7.15",
"prettier": "^3.3.3",
"syncpack": "^13.0.0",
"tsup": "^8.3.0",
"turbo": "^2.1.3",
Expand Down
11 changes: 5 additions & 6 deletions packages/builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"link": "pnpm ln ./",
"link": "pnpm ln --global",
"typecheck": "tsc --noEmit",
"test": "vitest --run",
"test:watch": "vitest",
"test:update": "vitest -u",
"prepack": "prettier --write build/index.d.ts"
"test:update": "vitest -u"
},
"repository": {
"directory": "packages/builder",
Expand Down Expand Up @@ -40,8 +39,8 @@
"@polkadot/types": "^12.4.2",
"@polkadot/util": "^13.1.1",
"@polkadot/util-crypto": "^13.1.1",
"@wormhole-foundation/sdk-connect": "^0.8.2",
"@wormhole-foundation/sdk-evm": "^0.8.2",
"viem": "^2.20.0"
"@wormhole-foundation/sdk-connect": "^0.10.7",
"@wormhole-foundation/sdk-evm": "^0.10.7",
"viem": "^2.21.7"
}
}
5 changes: 2 additions & 3 deletions packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"link": "pnpm ln ./",
"link": "pnpm ln --global",
"typecheck": "tsc --noEmit",
"test": "vitest --run",
"test:watch": "vitest",
"test:update": "vitest -u",
"prepack": "prettier --write build/index.d.ts"
"test:update": "vitest -u"
},
"repository": {
"directory": "packages/config",
Expand Down
13 changes: 6 additions & 7 deletions packages/mrl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"link": "pnpm ln ./",
"typecheck": "tsc --noEmit",
"prepack": "prettier --write build/index.d.ts"
"link": "pnpm ln --global",
"typecheck": "tsc --noEmit"
},
"repository": {
"directory": "packages/mrl",
Expand All @@ -31,16 +30,16 @@
"@moonbeam-network/xcm-config": "workspace:*",
"@moonbeam-network/xcm-sdk": "workspace:*",
"@moonbeam-network/xcm-types": "workspace:*",
"@moonbeam-network/xcm-utils": "workspace:^",
"@moonbeam-network/xcm-utils": "workspace:*",
"big.js": "^6.2.1"
},
"peerDependencies": {
"@polkadot/api": "^12.4.2",
"@polkadot/api-augment": "^12.4.2",
"@polkadot/types": "^12.4.2",
"@polkadot/util": "^13.0.2",
"@wormhole-foundation/sdk-connect": "^0.8.2",
"@wormhole-foundation/sdk-evm": "^0.8.2",
"viem": "^2.20.0"
"@wormhole-foundation/sdk-connect": "^0.10.7",
"@wormhole-foundation/sdk-evm": "^0.10.7",
"viem": "^2.21.7"
}
}
5 changes: 5 additions & 0 deletions packages/mrl/src/getTransferData/getRedeemData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ export async function getRedeemData({ txId, chain }: WormholeRedeemParams) {
const wh = WormholeService.create(chain);

const vaa = await wh.getVaa(txId);
if (!vaa) {
// TODO handle softly when retrieving
throw new Error(`VAA not found for WormholeId ${txId}`);
}

const tokenTransfer = await wh.getTokenTransfer(vaa, txId);

const isXcm = vaa.payloadName === 'TransferWithPayload';
Expand Down
7 changes: 3 additions & 4 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"link": "pnpm ln ./",
"link": "pnpm ln --global",
"typecheck": "tsc --noEmit",
"test:acc": "vitest --run --testTimeout 300000 ./tests/acceptance",
"prepack": "prettier --write build/index.d.ts"
"test:acc": "vitest --run --testTimeout 300000 ./tests/acceptance"
},
"author": "moonbeam-foundation",
"license": "MIT",
Expand Down Expand Up @@ -47,7 +46,7 @@
"@polkadot/api-augment": "^12.4.2",
"@polkadot/types": "^12.4.2",
"@polkadot/util": "^13.1.1",
"viem": "^2.20.0"
"viem": "^2.21.7"
},
"devDependencies": {
"@types/big.js": "^6.2.2"
Expand Down
9 changes: 4 additions & 5 deletions packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"link": "pnpm ln ./",
"link": "pnpm ln --global",
"test": "vitest --run",
"test:watch": "vitest",
"test:update": "vitest -u",
"prepack": "prettier --write build/index.d.ts"
"test:update": "vitest -u"
},
"repository": {
"directory": "packages/types",
Expand All @@ -34,9 +33,9 @@
},
"devDependencies": {
"@types/big.js": "^6.2.2",
"@wormhole-foundation/sdk-connect": "^0.8.2"
"@wormhole-foundation/sdk-connect": "^0.10.7"
},
"peerDependencies": {
"viem": "^2.20.0"
"viem": "^2.21.7"
}
}
7 changes: 3 additions & 4 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"link": "pnpm ln ./",
"link": "pnpm ln --global",
"typecheck": "tsc --noEmit",
"test": "vitest --run",
"test:watch": "vitest",
"test:update": "vitest -u",
"prepack": "prettier --write build/index.d.ts"
"test:update": "vitest -u"
},
"author": "moonbeam-foundation",
"license": "MIT",
Expand Down Expand Up @@ -40,6 +39,6 @@
"@polkadot/api": "^12.4.2",
"@polkadot/apps-config": "^0.143.2",
"@polkadot/util": "^13.1.1",
"@polkadot/util-crypto": "^13.0.2"
"@polkadot/util-crypto": "^13.1.1"
}
}
Loading

0 comments on commit 20cced0

Please sign in to comment.