Skip to content

Commit

Permalink
merge with main
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaurello committed Oct 29, 2024
2 parents 4385bbe + c71fb7e commit d80ca96
Show file tree
Hide file tree
Showing 14 changed files with 181 additions and 22 deletions.
2 changes: 1 addition & 1 deletion examples/sdk-simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"@moonbeam-network/xcm-utils": "workspace:*"
},
"devDependencies": {
"bun": "^1.1.25"
"bun": "^1.1.31"
}
}
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"test:ci": "turbo run test:ci",
"test:acc": "turbo run test:acc",
"test:acc:u": "turbo run test:acc -- -u",
"sync-deps": "syncpack fix-mismatches",
"sync-deps": "npx syncpack fix-mismatches",
"clean": "rm -rf packages/**/build packages/**/.turbo .turbo/",
"changeset": "changeset",
"changeset:version": "changeset version && pnpm install --lockfile-only",
Expand All @@ -40,29 +40,29 @@
"@polkadot/api-augment": "^12.4.2",
"@polkadot/apps-config": "^0.143.2",
"@polkadot/types": "^12.4.2",
"@polkadot/util": "^13.0.2",
"@polkadot/util-crypto": "^13.0.2",
"@polkadot/util": "^13.1.1",
"@polkadot/util-crypto": "^13.1.1",
"@wormhole-foundation/sdk-connect": "^0.10.7",
"@wormhole-foundation/sdk-evm": "^0.10.7",
"@wormhole-foundation/sdk-evm-tokenbridge": "^0.10.7"
},
"devDependencies": {
"@biomejs/biome": "^1.9.1",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.8",
"@changesets/cli": "^2.27.9",
"@slack/webhook": "^7.0.3",
"@types/big.js": "^6.2.2",
"bun": "^1.1.27",
"bun": "^1.1.31",
"cspell": "^8.14.2",
"dotenv": "^16.4.5",
"glob": "^11.0.0",
"lefthook": "^1.7.15",
"prettier": "^3.3.3",
"syncpack": "^13.0.0",
"tsup": "^8.2.4",
"turbo": "^2.1.2",
"typescript": "^5.6.2",
"tsup": "^8.3.0",
"turbo": "^2.1.3",
"typescript": "^5.6.3",
"viem": "^2.21.7",
"vitest": "^2.1.1"
"vitest": "^2.1.3"
}
}
20 changes: 20 additions & 0 deletions packages/builder/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# @moonbeam-network/xcm-builder

## 2.5.4

### Patch Changes

- [#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

- Updated dependencies [[`a724e92`](https://github.com/moonbeam-foundation/xcm-sdk/commit/a724e92f4f7488ced6c4050cea2ad0e98731a5c2)]:
- @moonbeam-network/xcm-types@2.5.2
- @moonbeam-network/xcm-utils@2.2.2

## 2.5.3

### Patch Changes

- [#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

- Updated dependencies [[`10755b4`](https://github.com/moonbeam-foundation/xcm-sdk/commit/10755b4164ab7de94578732b4f92d70f8478c1ed)]:
- @moonbeam-network/xcm-types@2.5.1
- @moonbeam-network/xcm-utils@2.2.1

## 2.5.2

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/builder/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@moonbeam-network/xcm-builder",
"version": "2.5.2",
"version": "2.5.4",
"description": "Moonbeam XCM builder",
"scripts": {
"build": "tsup",
Expand Down Expand Up @@ -37,8 +37,8 @@
"@polkadot/api": "^12.4.2",
"@polkadot/api-augment": "^12.4.2",
"@polkadot/types": "^12.4.2",
"@polkadot/util": "^13.0.2",
"@polkadot/util-crypto": "^13.0.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"
Expand Down
26 changes: 26 additions & 0 deletions packages/config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# @moonbeam-network/xcm-config

## 2.7.4

### Patch Changes

- [#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

- Updated dependencies [[`a724e92`](https://github.com/moonbeam-foundation/xcm-sdk/commit/a724e92f4f7488ced6c4050cea2ad0e98731a5c2)]:
- @moonbeam-network/xcm-builder@2.5.4
- @moonbeam-network/xcm-types@2.5.2

## 2.7.3

### Patch Changes

- [#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

- Updated dependencies [[`10755b4`](https://github.com/moonbeam-foundation/xcm-sdk/commit/10755b4164ab7de94578732b4f92d70f8478c1ed)]:
- @moonbeam-network/xcm-builder@2.5.3
- @moonbeam-network/xcm-types@2.5.1

## 2.7.2

### Patch Changes

- [#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

## 2.7.1

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@moonbeam-network/xcm-config",
"version": "2.7.1",
"version": "2.7.4",
"description": "All necessary configuration to transfer assets from Moonbeam, Moonriver, Moonbase to other parachains and back",
"scripts": {
"build": "tsup",
Expand Down Expand Up @@ -35,7 +35,7 @@
},
"peerDependencies": {
"@polkadot/types": "^12.4.2",
"@polkadot/util": "^13.0.2",
"@polkadot/util-crypto": "^13.0.2"
"@polkadot/util": "^13.1.1",
"@polkadot/util-crypto": "^13.1.1"
}
}
28 changes: 27 additions & 1 deletion packages/config/src/xcm-configs/moonbeam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,30 @@ export const moonbeamRoutes = new ChainRoutes({
chain: polkadot,
balance: BalanceBuilder().substrate().system().account(),
fee: {
amount: 0.052,
amount: 0.01,
asset: dot,
},
},
contract: ContractBuilder().Xtokens().transfer(),
},
{
source: {
asset: dot,
balance: BalanceBuilder().substrate().assets().account(),
fee: {
asset: glmr,
balance: BalanceBuilder().substrate().system().account(),
},
destinationFee: {
balance: BalanceBuilder().substrate().assets().account(),
},
},
destination: {
asset: dot,
chain: polkadotAssetHub,
balance: BalanceBuilder().substrate().system().account(),
fee: {
amount: 0.01,
asset: dot,
},
},
Expand Down Expand Up @@ -672,6 +695,9 @@ export const moonbeamRoutes = new ChainRoutes({
amount: 0.2,
asset: usdt,
balance: BalanceBuilder().substrate().assets().account(),
// TODO change when DOT pays for fees
// asset: dot,
// balance: BalanceBuilder().substrate().system().account(),
},
},
contract: ContractBuilder().Xtokens().transferMultiCurrencies(),
Expand Down
26 changes: 26 additions & 0 deletions packages/config/src/xcm-configs/polkadotAssetHub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,32 @@ const extra = 0.036;
export const polkadotAssetHubRoutes = new ChainRoutes({
chain: polkadotAssetHub,
routes: [
{
source: {
asset: dot,
balance: BalanceBuilder().substrate().system().account(),
fee: {
asset: dot,
balance: BalanceBuilder().substrate().system().account(),
extra,
},
destinationFee: {
balance: BalanceBuilder().substrate().assets().account(),
},
},
destination: {
asset: dot,
chain: moonbeam,
balance: BalanceBuilder().substrate().assets().account(),
fee: {
amount: FeeBuilder()
.xcmPaymentApi()
.xcmPaymentFee({ isAssetReserveChain: false }),
asset: dot,
},
},
extrinsic: ExtrinsicBuilder().polkadotXcm().transferAssets().here(),
},
{
source: {
asset: usdt,
Expand Down
31 changes: 31 additions & 0 deletions packages/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# @moonbeam-network/xcm-sdk

## 2.7.4

### Patch Changes

- [#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

- Updated dependencies [[`a724e92`](https://github.com/moonbeam-foundation/xcm-sdk/commit/a724e92f4f7488ced6c4050cea2ad0e98731a5c2)]:
- @moonbeam-network/xcm-builder@2.5.4
- @moonbeam-network/xcm-config@2.7.4
- @moonbeam-network/xcm-types@2.5.2
- @moonbeam-network/xcm-utils@2.2.2

## 2.7.3

### Patch Changes

- [#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

- Updated dependencies [[`10755b4`](https://github.com/moonbeam-foundation/xcm-sdk/commit/10755b4164ab7de94578732b4f92d70f8478c1ed)]:
- @moonbeam-network/xcm-builder@2.5.3
- @moonbeam-network/xcm-config@2.7.3
- @moonbeam-network/xcm-types@2.5.1
- @moonbeam-network/xcm-utils@2.2.1

## 2.7.2

### Patch Changes

- Updated dependencies [[`56e9b57`](https://github.com/moonbeam-foundation/xcm-sdk/commit/56e9b572b6a3070a3f871617c4bcc36abd2a3cdd)]:
- @moonbeam-network/xcm-config@2.7.2

## 2.7.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@moonbeam-network/xcm-sdk",
"version": "2.7.1",
"version": "2.7.4",
"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",
"scripts": {
"build": "tsup",
Expand Down Expand Up @@ -45,7 +45,7 @@
"@polkadot/api": "^12.4.2",
"@polkadot/api-augment": "^12.4.2",
"@polkadot/types": "^12.4.2",
"@polkadot/util": "^13.0.2",
"@polkadot/util": "^13.1.1",
"viem": "^2.20.0"
},
"devDependencies": {
Expand Down
18 changes: 18 additions & 0 deletions packages/types/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# @moonbeam-network/xcm-types

## 2.5.2

### Patch Changes

- [#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

- Updated dependencies [[`a724e92`](https://github.com/moonbeam-foundation/xcm-sdk/commit/a724e92f4f7488ced6c4050cea2ad0e98731a5c2)]:
- @moonbeam-network/xcm-utils@2.2.2

## 2.5.1

### Patch Changes

- [#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

- Updated dependencies [[`10755b4`](https://github.com/moonbeam-foundation/xcm-sdk/commit/10755b4164ab7de94578732b4f92d70f8478c1ed)]:
- @moonbeam-network/xcm-utils@2.2.1

## 2.5.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@moonbeam-network/xcm-types",
"version": "2.5.0",
"version": "2.5.2",
"description": "Moonbeam XCM Types",
"scripts": {
"build": "tsup",
Expand Down
12 changes: 12 additions & 0 deletions packages/utils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @moonbeam-network/xcm-utils

## 2.2.2

### Patch Changes

- [#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

## 2.2.1

### Patch Changes

- [#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

## 2.2.0

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@moonbeam-network/xcm-utils",
"version": "2.2.0",
"version": "2.2.2",
"description": "Moonbeam XCM utilities",
"scripts": {
"build": "tsup",
Expand Down Expand Up @@ -38,7 +38,7 @@
"peerDependencies": {
"@polkadot/api": "^12.4.2",
"@polkadot/apps-config": "^0.143.2",
"@polkadot/util": "^13.0.2",
"@polkadot/util": "^13.1.1",
"@polkadot/util-crypto": "^13.0.2"
}
}

0 comments on commit d80ca96

Please sign in to comment.