Skip to content

Commit

Permalink
Merge branch 'main' into update-minor-patch-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Rihyx authored Oct 23, 2024
2 parents 35b3abb + abe4807 commit 1b450e1
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 12 deletions.
4 changes: 2 additions & 2 deletions examples/sdk-simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"author": "",
"license": "MIT",
"dependencies": {
"@moonbeam-network/xcm-config": "2.7.1",
"@moonbeam-network/xcm-sdk": "2.7.1",
"@moonbeam-network/xcm-config": "2.7.2",
"@moonbeam-network/xcm-sdk": "2.7.2",
"@moonbeam-network/xcm-utils": "2.2.0"
},
"devDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions packages/config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @moonbeam-network/xcm-config

## 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
2 changes: 1 addition & 1 deletion 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.2",
"description": "All necessary configuration to transfer assets from Moonbeam, Moonriver, Moonbase to other parachains and back",
"scripts": {
"build": "tsup",
Expand Down
20 changes: 18 additions & 2 deletions packages/config/src/configs/moonbeam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,22 @@ export const moonbeamConfig = new ChainConfig({
contract: ContractBuilder().Xtokens().transfer(),
destination: polkadot,
destinationFee: {
amount: 0.052,
amount: 0.01,
asset: dot,
balance: BalanceBuilder().substrate().assets().account(),
},
fee: {
asset: glmr,
balance: BalanceBuilder().substrate().system().account(),
},
}),
new AssetConfig({
asset: dot,
balance: BalanceBuilder().substrate().assets().account(),
contract: ContractBuilder().Xtokens().transfer(),
destination: polkadotAssetHub,
destinationFee: {
amount: 0.01,
asset: dot,
balance: BalanceBuilder().substrate().assets().account(),
},
Expand Down Expand Up @@ -445,7 +460,8 @@ export const moonbeamConfig = new ChainConfig({
amount: 0.2,
asset: usdt,
balance: BalanceBuilder().substrate().assets().account(),
destinationBalance: BalanceBuilder().substrate().system().account(),
// TODO uncomment when we apply dot as payment asset
// destinationBalance: BalanceBuilder().substrate().system().account(),
},
fee: {
asset: glmr,
Expand Down
18 changes: 18 additions & 0 deletions packages/config/src/configs/polkadotAssetHub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,24 @@ const xcmDeliveryFeeAmount = 0.036;

export const polkadotAssetHubConfig = new ChainConfig({
assets: [
new AssetConfig({
asset: dot,
balance: BalanceBuilder().substrate().system().account(),
destination: moonbeam,
destinationFee: {
amount: FeeBuilder().xcmPaymentApi().xcmPaymentFee({
isAssetReserveChain: false,
}),
asset: dot,
balance: BalanceBuilder().substrate().system().account(),
},
extrinsic: ExtrinsicBuilder().polkadotXcm().trasferAssets().here(),
fee: {
asset: dot,
balance: BalanceBuilder().substrate().system().account(),
xcmDeliveryFeeAmount,
},
}),
new AssetConfig({
asset: usdt,
balance: BalanceBuilder().substrate().assets().account(),
Expand Down
7 changes: 7 additions & 0 deletions packages/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @moonbeam-network/xcm-sdk

## 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.2",
"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 @@ -52,7 +52,7 @@
"main": "./build/index.cjs",
"dependencies": {
"@moonbeam-network/xcm-builder": "2.5.2",
"@moonbeam-network/xcm-config": "2.7.1",
"@moonbeam-network/xcm-config": "2.7.2",
"@moonbeam-network/xcm-types": "2.5.0",
"@moonbeam-network/xcm-utils": "2.2.0",
"big.js": "^6.2.1"
Expand Down

0 comments on commit 1b450e1

Please sign in to comment.