Skip to content

Commit d80ca96

Browse files
committed
merge with main
2 parents 4385bbe + c71fb7e commit d80ca96

File tree

14 files changed

+181
-22
lines changed

14 files changed

+181
-22
lines changed

examples/sdk-simple/package.json

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

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"test:ci": "turbo run test:ci",
3030
"test:acc": "turbo run test:acc",
3131
"test:acc:u": "turbo run test:acc -- -u",
32-
"sync-deps": "syncpack fix-mismatches",
32+
"sync-deps": "npx syncpack fix-mismatches",
3333
"clean": "rm -rf packages/**/build packages/**/.turbo .turbo/",
3434
"changeset": "changeset",
3535
"changeset:version": "changeset version && pnpm install --lockfile-only",
@@ -40,29 +40,29 @@
4040
"@polkadot/api-augment": "^12.4.2",
4141
"@polkadot/apps-config": "^0.143.2",
4242
"@polkadot/types": "^12.4.2",
43-
"@polkadot/util": "^13.0.2",
44-
"@polkadot/util-crypto": "^13.0.2",
43+
"@polkadot/util": "^13.1.1",
44+
"@polkadot/util-crypto": "^13.1.1",
4545
"@wormhole-foundation/sdk-connect": "^0.10.7",
4646
"@wormhole-foundation/sdk-evm": "^0.10.7",
4747
"@wormhole-foundation/sdk-evm-tokenbridge": "^0.10.7"
4848
},
4949
"devDependencies": {
5050
"@biomejs/biome": "^1.9.1",
5151
"@changesets/changelog-github": "^0.5.0",
52-
"@changesets/cli": "^2.27.8",
52+
"@changesets/cli": "^2.27.9",
5353
"@slack/webhook": "^7.0.3",
5454
"@types/big.js": "^6.2.2",
55-
"bun": "^1.1.27",
55+
"bun": "^1.1.31",
5656
"cspell": "^8.14.2",
5757
"dotenv": "^16.4.5",
5858
"glob": "^11.0.0",
5959
"lefthook": "^1.7.15",
6060
"prettier": "^3.3.3",
6161
"syncpack": "^13.0.0",
62-
"tsup": "^8.2.4",
63-
"turbo": "^2.1.2",
64-
"typescript": "^5.6.2",
62+
"tsup": "^8.3.0",
63+
"turbo": "^2.1.3",
64+
"typescript": "^5.6.3",
6565
"viem": "^2.21.7",
66-
"vitest": "^2.1.1"
66+
"vitest": "^2.1.3"
6767
}
6868
}

packages/builder/CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
# @moonbeam-network/xcm-builder
22

3+
## 2.5.4
4+
5+
### Patch Changes
6+
7+
- [#379](https://github.com/moonbeam-foundation/xcm-sdk/pull/379) [`a724e92`](https://github.com/moonbeam-foundation/xcm-sdk/commit/a724e92f4f7488ced6c4050cea2ad0e98731a5c2) Thanks [@Rihyx](https://github.com/Rihyx)! - fix vulnerability
8+
9+
- Updated dependencies [[`a724e92`](https://github.com/moonbeam-foundation/xcm-sdk/commit/a724e92f4f7488ced6c4050cea2ad0e98731a5c2)]:
10+
- @moonbeam-network/xcm-types@2.5.2
11+
- @moonbeam-network/xcm-utils@2.2.2
12+
13+
## 2.5.3
14+
15+
### Patch Changes
16+
17+
- [#373](https://github.com/moonbeam-foundation/xcm-sdk/pull/373) [`10755b4`](https://github.com/moonbeam-foundation/xcm-sdk/commit/10755b4164ab7de94578732b4f92d70f8478c1ed) Thanks [@Rihyx](https://github.com/Rihyx)! - update minor and patch dependencies
18+
19+
- Updated dependencies [[`10755b4`](https://github.com/moonbeam-foundation/xcm-sdk/commit/10755b4164ab7de94578732b4f92d70f8478c1ed)]:
20+
- @moonbeam-network/xcm-types@2.5.1
21+
- @moonbeam-network/xcm-utils@2.2.1
22+
323
## 2.5.2
424

525
### Patch Changes

packages/builder/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@moonbeam-network/xcm-builder",
3-
"version": "2.5.2",
3+
"version": "2.5.4",
44
"description": "Moonbeam XCM builder",
55
"scripts": {
66
"build": "tsup",
@@ -37,8 +37,8 @@
3737
"@polkadot/api": "^12.4.2",
3838
"@polkadot/api-augment": "^12.4.2",
3939
"@polkadot/types": "^12.4.2",
40-
"@polkadot/util": "^13.0.2",
41-
"@polkadot/util-crypto": "^13.0.2",
40+
"@polkadot/util": "^13.1.1",
41+
"@polkadot/util-crypto": "^13.1.1",
4242
"@wormhole-foundation/sdk-connect": "^0.8.2",
4343
"@wormhole-foundation/sdk-evm": "^0.8.2",
4444
"viem": "^2.20.0"

packages/config/CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
# @moonbeam-network/xcm-config
22

3+
## 2.7.4
4+
5+
### Patch Changes
6+
7+
- [#379](https://github.com/moonbeam-foundation/xcm-sdk/pull/379) [`a724e92`](https://github.com/moonbeam-foundation/xcm-sdk/commit/a724e92f4f7488ced6c4050cea2ad0e98731a5c2) Thanks [@Rihyx](https://github.com/Rihyx)! - fix vulnerability
8+
9+
- Updated dependencies [[`a724e92`](https://github.com/moonbeam-foundation/xcm-sdk/commit/a724e92f4f7488ced6c4050cea2ad0e98731a5c2)]:
10+
- @moonbeam-network/xcm-builder@2.5.4
11+
- @moonbeam-network/xcm-types@2.5.2
12+
13+
## 2.7.3
14+
15+
### Patch Changes
16+
17+
- [#373](https://github.com/moonbeam-foundation/xcm-sdk/pull/373) [`10755b4`](https://github.com/moonbeam-foundation/xcm-sdk/commit/10755b4164ab7de94578732b4f92d70f8478c1ed) Thanks [@Rihyx](https://github.com/Rihyx)! - update minor and patch dependencies
18+
19+
- Updated dependencies [[`10755b4`](https://github.com/moonbeam-foundation/xcm-sdk/commit/10755b4164ab7de94578732b4f92d70f8478c1ed)]:
20+
- @moonbeam-network/xcm-builder@2.5.3
21+
- @moonbeam-network/xcm-types@2.5.1
22+
23+
## 2.7.2
24+
25+
### Patch Changes
26+
27+
- [#376](https://github.com/moonbeam-foundation/xcm-sdk/pull/376) [`56e9b57`](https://github.com/moonbeam-foundation/xcm-sdk/commit/56e9b572b6a3070a3f871617c4bcc36abd2a3cdd) Thanks [@mmaurello](https://github.com/mmaurello)! - Enable DOT transfers between Polkadot Asset Hub and Moonbeam
28+
329
## 2.7.1
430

531
### Patch Changes

packages/config/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@moonbeam-network/xcm-config",
3-
"version": "2.7.1",
3+
"version": "2.7.4",
44
"description": "All necessary configuration to transfer assets from Moonbeam, Moonriver, Moonbase to other parachains and back",
55
"scripts": {
66
"build": "tsup",
@@ -35,7 +35,7 @@
3535
},
3636
"peerDependencies": {
3737
"@polkadot/types": "^12.4.2",
38-
"@polkadot/util": "^13.0.2",
39-
"@polkadot/util-crypto": "^13.0.2"
38+
"@polkadot/util": "^13.1.1",
39+
"@polkadot/util-crypto": "^13.1.1"
4040
}
4141
}

packages/config/src/xcm-configs/moonbeam.ts

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,30 @@ export const moonbeamRoutes = new ChainRoutes({
370370
chain: polkadot,
371371
balance: BalanceBuilder().substrate().system().account(),
372372
fee: {
373-
amount: 0.052,
373+
amount: 0.01,
374+
asset: dot,
375+
},
376+
},
377+
contract: ContractBuilder().Xtokens().transfer(),
378+
},
379+
{
380+
source: {
381+
asset: dot,
382+
balance: BalanceBuilder().substrate().assets().account(),
383+
fee: {
384+
asset: glmr,
385+
balance: BalanceBuilder().substrate().system().account(),
386+
},
387+
destinationFee: {
388+
balance: BalanceBuilder().substrate().assets().account(),
389+
},
390+
},
391+
destination: {
392+
asset: dot,
393+
chain: polkadotAssetHub,
394+
balance: BalanceBuilder().substrate().system().account(),
395+
fee: {
396+
amount: 0.01,
374397
asset: dot,
375398
},
376399
},
@@ -672,6 +695,9 @@ export const moonbeamRoutes = new ChainRoutes({
672695
amount: 0.2,
673696
asset: usdt,
674697
balance: BalanceBuilder().substrate().assets().account(),
698+
// TODO change when DOT pays for fees
699+
// asset: dot,
700+
// balance: BalanceBuilder().substrate().system().account(),
675701
},
676702
},
677703
contract: ContractBuilder().Xtokens().transferMultiCurrencies(),

packages/config/src/xcm-configs/polkadotAssetHub.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,32 @@ const extra = 0.036;
1313
export const polkadotAssetHubRoutes = new ChainRoutes({
1414
chain: polkadotAssetHub,
1515
routes: [
16+
{
17+
source: {
18+
asset: dot,
19+
balance: BalanceBuilder().substrate().system().account(),
20+
fee: {
21+
asset: dot,
22+
balance: BalanceBuilder().substrate().system().account(),
23+
extra,
24+
},
25+
destinationFee: {
26+
balance: BalanceBuilder().substrate().assets().account(),
27+
},
28+
},
29+
destination: {
30+
asset: dot,
31+
chain: moonbeam,
32+
balance: BalanceBuilder().substrate().assets().account(),
33+
fee: {
34+
amount: FeeBuilder()
35+
.xcmPaymentApi()
36+
.xcmPaymentFee({ isAssetReserveChain: false }),
37+
asset: dot,
38+
},
39+
},
40+
extrinsic: ExtrinsicBuilder().polkadotXcm().transferAssets().here(),
41+
},
1642
{
1743
source: {
1844
asset: usdt,

packages/sdk/CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
11
# @moonbeam-network/xcm-sdk
22

3+
## 2.7.4
4+
5+
### Patch Changes
6+
7+
- [#379](https://github.com/moonbeam-foundation/xcm-sdk/pull/379) [`a724e92`](https://github.com/moonbeam-foundation/xcm-sdk/commit/a724e92f4f7488ced6c4050cea2ad0e98731a5c2) Thanks [@Rihyx](https://github.com/Rihyx)! - fix vulnerability
8+
9+
- Updated dependencies [[`a724e92`](https://github.com/moonbeam-foundation/xcm-sdk/commit/a724e92f4f7488ced6c4050cea2ad0e98731a5c2)]:
10+
- @moonbeam-network/xcm-builder@2.5.4
11+
- @moonbeam-network/xcm-config@2.7.4
12+
- @moonbeam-network/xcm-types@2.5.2
13+
- @moonbeam-network/xcm-utils@2.2.2
14+
15+
## 2.7.3
16+
17+
### Patch Changes
18+
19+
- [#373](https://github.com/moonbeam-foundation/xcm-sdk/pull/373) [`10755b4`](https://github.com/moonbeam-foundation/xcm-sdk/commit/10755b4164ab7de94578732b4f92d70f8478c1ed) Thanks [@Rihyx](https://github.com/Rihyx)! - update minor and patch dependencies
20+
21+
- Updated dependencies [[`10755b4`](https://github.com/moonbeam-foundation/xcm-sdk/commit/10755b4164ab7de94578732b4f92d70f8478c1ed)]:
22+
- @moonbeam-network/xcm-builder@2.5.3
23+
- @moonbeam-network/xcm-config@2.7.3
24+
- @moonbeam-network/xcm-types@2.5.1
25+
- @moonbeam-network/xcm-utils@2.2.1
26+
27+
## 2.7.2
28+
29+
### Patch Changes
30+
31+
- Updated dependencies [[`56e9b57`](https://github.com/moonbeam-foundation/xcm-sdk/commit/56e9b572b6a3070a3f871617c4bcc36abd2a3cdd)]:
32+
- @moonbeam-network/xcm-config@2.7.2
33+
334
## 2.7.1
435

536
### Patch Changes

packages/sdk/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@moonbeam-network/xcm-sdk",
3-
"version": "2.7.1",
3+
"version": "2.7.4",
44
"description": "The Moonbeam XCM SDK enables developers to easily deposit and withdraw assets to Moonbeam/Moonriver from the relay chain and other parachains in the Polkadot/Kusama ecosystem",
55
"scripts": {
66
"build": "tsup",
@@ -45,7 +45,7 @@
4545
"@polkadot/api": "^12.4.2",
4646
"@polkadot/api-augment": "^12.4.2",
4747
"@polkadot/types": "^12.4.2",
48-
"@polkadot/util": "^13.0.2",
48+
"@polkadot/util": "^13.1.1",
4949
"viem": "^2.20.0"
5050
},
5151
"devDependencies": {

0 commit comments

Comments
 (0)