diff --git a/.changeset/config.json b/.changeset/config.json index e59115b6..9a7be117 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -2,7 +2,7 @@ "$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json", "changelog": [ "@changesets/changelog-github", - { "repo": "PureStake/xcm-sdk" } + { "repo": "moonbeam-foundation/xcm-sdk" } ], "commit": false, "fixed": [], diff --git a/.github/pull-request-template.md b/.github/pull-request-template.md index 29a0fc90..deb59ab4 100644 --- a/.github/pull-request-template.md +++ b/.github/pull-request-template.md @@ -4,7 +4,7 @@ Please explain the changes this PR addresses here. ### Checklist -- [ ] If this requires a documentation change, I have created a PR in [moonbeam-docs](https://github.com/PureStake/moonbeam-docs) repository. +- [ ] If this requires a documentation change, I have created a PR in [moonbeam-docs](https://github.com/moonbeam-foundation/moonbeam-docs) repository. - [ ] If this requires it, I have updated the Readme - [ ] If necessary, I have updated the examples - [ ] I have verified if I need to create/update unit tests diff --git a/.github/workflows/xcm-wss-endpoints-monitor.yml b/.github/workflows/xcm-wss-endpoints-monitor.yml new file mode 100644 index 00000000..7ce1b628 --- /dev/null +++ b/.github/workflows/xcm-wss-endpoints-monitor.yml @@ -0,0 +1,33 @@ +name: XCM WS endpoints monitor + +on: + workflow_dispatch: + schedule: + # Runs every 30 minutes + - cron: '*/30 * * * *' + +jobs: + run_script: + runs-on: ubuntu-latest + + steps: + - name: 🤘 checkout + uses: actions/checkout@v3 + + - name: ⚙️ Setup Node.js environment + uses: actions/setup-node@v3.0.0 + with: + node-version: 18.x + cache: 'npm' + + - name: Update npm + run: npm i -g npm@9 + + - name: ⬇️ install + run: npm ci --ignore-scripts + + - name: 🛠️ Build + run: npm run build + + - name: 💻 Run script + run: npx bun ./scripts/check-websockets.ts --slack-wh=${{ secrets.SLACK_WEBHOOK_URL }} diff --git a/examples/sdk-simple/package.json b/examples/sdk-simple/package.json index fb388506..9786b325 100644 --- a/examples/sdk-simple/package.json +++ b/examples/sdk-simple/package.json @@ -12,9 +12,9 @@ "author": "", "license": "MIT", "dependencies": { - "@moonbeam-network/xcm-config": "1.3.18", - "@moonbeam-network/xcm-sdk": "1.4.14", - "@moonbeam-network/xcm-utils": "1.0.3" + "@moonbeam-network/xcm-config": "1.3.24", + "@moonbeam-network/xcm-sdk": "1.4.20", + "@moonbeam-network/xcm-utils": "1.0.4" }, "devDependencies": { "bun": "^1.0.21" diff --git a/package-lock.json b/package-lock.json index 932871b3..bf215874 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,6 +20,7 @@ "devDependencies": { "@changesets/changelog-github": "^0.4.8", "@changesets/cli": "^2.27.1", + "@slack/webhook": "^7.0.2", "@types/jest": "^29.5.11", "@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/parser": "^5.62.0", @@ -50,9 +51,9 @@ "version": "1.0.0", "license": "MIT", "dependencies": { - "@moonbeam-network/xcm-config": "1.3.18", - "@moonbeam-network/xcm-sdk": "1.4.14", - "@moonbeam-network/xcm-utils": "1.0.3" + "@moonbeam-network/xcm-config": "1.3.24", + "@moonbeam-network/xcm-sdk": "1.4.20", + "@moonbeam-network/xcm-utils": "1.0.4" }, "devDependencies": { "bun": "^1.0.21" @@ -5052,6 +5053,31 @@ "@sinonjs/commons": "^3.0.0" } }, + "node_modules/@slack/types": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@slack/types/-/types-2.11.0.tgz", + "integrity": "sha512-UlIrDWvuLaDly3QZhCPnwUSI/KYmV1N9LyhuH6EDKCRS1HWZhyTG3Ja46T3D0rYfqdltKYFXbJSSRPwZpwO0cQ==", + "dev": true, + "engines": { + "node": ">= 12.13.0", + "npm": ">= 6.12.0" + } + }, + "node_modules/@slack/webhook": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@slack/webhook/-/webhook-7.0.2.tgz", + "integrity": "sha512-dsrO/ow6a6+xkLm/lZKbUNTsFJlBc679tD+qwlVTztsQkDxPLH6odM7FKALz1IHa+KpLX8HKUIPV13a7y7z29w==", + "dev": true, + "dependencies": { + "@slack/types": "^2.9.0", + "@types/node": ">=18.0.0", + "axios": "^1.6.3" + }, + "engines": { + "node": ">= 18", + "npm": ">= 8.6.0" + } + }, "node_modules/@snowfork/snowbridge-types": { "version": "0.2.7", "resolved": "https://registry.npmjs.org/@snowfork/snowbridge-types/-/snowbridge-types-0.2.7.tgz", @@ -6379,8 +6405,7 @@ "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", - "peer": true + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, "node_modules/available-typed-arrays": { "version": "1.0.5", @@ -6394,6 +6419,31 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/axios": { + "version": "1.6.5", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.5.tgz", + "integrity": "sha512-Ii012v05KEVuUoFWmMW/UQv9aRIc3ZwkWDcM+h5Il8izZCtRVpDUfwpoFf7eOtajT3QiGR4yDUx7lPqHJULgbg==", + "dev": true, + "dependencies": { + "follow-redirects": "^1.15.4", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/axios/node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dev": true, + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/babel-jest": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", @@ -7212,7 +7262,6 @@ "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "peer": true, "dependencies": { "delayed-stream": "~1.0.0" }, @@ -7595,7 +7644,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "peer": true, "engines": { "node": ">=0.4.0" } @@ -8815,6 +8863,26 @@ "integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==", "dev": true }, + "node_modules/follow-redirects": { + "version": "1.15.5", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz", + "integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, "node_modules/for-each": { "version": "0.3.3", "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", @@ -12178,7 +12246,6 @@ "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "peer": true, "engines": { "node": ">= 0.6" } @@ -12187,7 +12254,6 @@ "version": "2.1.35", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "peer": true, "dependencies": { "mime-db": "1.52.0" }, @@ -14264,6 +14330,12 @@ "node": ">= 8" } }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "dev": true + }, "node_modules/pseudomap": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", @@ -16958,11 +17030,11 @@ }, "packages/builder": { "name": "@moonbeam-network/xcm-builder", - "version": "1.0.10", + "version": "1.0.12", "license": "MIT", "dependencies": { - "@moonbeam-network/xcm-types": "1.0.1", - "@moonbeam-network/xcm-utils": "1.0.3", + "@moonbeam-network/xcm-types": "1.0.3", + "@moonbeam-network/xcm-utils": "1.0.4", "big.js": "^6.2.1", "type-fest": "^3.8.0" }, @@ -16986,11 +17058,11 @@ }, "packages/config": { "name": "@moonbeam-network/xcm-config", - "version": "1.3.18", + "version": "1.3.24", "license": "MIT", "dependencies": { - "@moonbeam-network/xcm-builder": "1.0.10", - "@moonbeam-network/xcm-types": "1.0.1" + "@moonbeam-network/xcm-builder": "1.0.12", + "@moonbeam-network/xcm-types": "1.0.3" }, "peerDependencies": { "@polkadot/types": "^10.10.1", @@ -17000,13 +17072,13 @@ }, "packages/sdk": { "name": "@moonbeam-network/xcm-sdk", - "version": "1.4.14", + "version": "1.4.20", "license": "MIT", "dependencies": { - "@moonbeam-network/xcm-builder": "1.0.10", - "@moonbeam-network/xcm-config": "1.3.18", - "@moonbeam-network/xcm-types": "1.0.1", - "@moonbeam-network/xcm-utils": "1.0.3", + "@moonbeam-network/xcm-builder": "1.0.12", + "@moonbeam-network/xcm-config": "1.3.24", + "@moonbeam-network/xcm-types": "1.0.3", + "@moonbeam-network/xcm-utils": "1.0.4", "big.js": "^6.2.1" }, "peerDependencies": { @@ -17020,10 +17092,10 @@ }, "packages/types": { "name": "@moonbeam-network/xcm-types", - "version": "1.0.1", + "version": "1.0.3", "license": "MIT", "dependencies": { - "@moonbeam-network/xcm-utils": "1.x", + "@moonbeam-network/xcm-utils": "1.0.4", "big.js": "^6.2.1", "type-fest": "^3.8.0" } @@ -17040,7 +17112,7 @@ }, "packages/utils": { "name": "@moonbeam-network/xcm-utils", - "version": "1.0.3", + "version": "1.0.4", "license": "MIT", "dependencies": { "big.js": "^6.2.1", diff --git a/package.json b/package.json index c5204929..1d227d74 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,15 @@ { "name": "xcm-sdk", - "author": "PureStake", + "author": "moonbeam-foundation", "license": "MIT", "private": true, "homepage": "https://docs.moonbeam.network/builders/xcm/xcm-sdk/xcm-sdk/", "bugs": { - "url": "https://github.com/PureStake/xcm-sdk/issues" + "url": "https://github.com/moonbeam-foundation/xcm-sdk/issues" }, "repository": { "type": "git", - "url": "git+https://github.com/PureStake/xcm-sdk.git" + "url": "git+https://github.com/moonbeam-foundation/xcm-sdk.git" }, "type": "module", "workspaces": [ @@ -43,6 +43,7 @@ "devDependencies": { "@changesets/changelog-github": "^0.4.8", "@changesets/cli": "^2.27.1", + "@slack/webhook": "^7.0.2", "@types/jest": "^29.5.11", "@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/parser": "^5.62.0", diff --git a/packages/builder/CHANGELOG.md b/packages/builder/CHANGELOG.md index c5d3ec1d..0420d321 100644 --- a/packages/builder/CHANGELOG.md +++ b/packages/builder/CHANGELOG.md @@ -1,84 +1,103 @@ # @moonbeam-network/xcm-builder +## 1.0.12 + +### Patch Changes + +- [#192](https://github.com/moonbeam-foundation/xcm-sdk/pull/192) [`0b3cb1d`](https://github.com/moonbeam-foundation/xcm-sdk/commit/0b3cb1db7897bec9bfd743fe3f8104e480500496) Thanks [@mmaurello](https://github.com/mmaurello)! - Manta - Moonbeam integration and change of repo url + +- Updated dependencies [[`0b3cb1d`](https://github.com/moonbeam-foundation/xcm-sdk/commit/0b3cb1db7897bec9bfd743fe3f8104e480500496)]: + - @moonbeam-network/xcm-types@1.0.3 + - @moonbeam-network/xcm-utils@1.0.4 + +## 1.0.11 + +### Patch Changes + +- [#184](https://github.com/moonbeam-foundation/xcm-sdk/pull/184) [`88b6322`](https://github.com/moonbeam-foundation/xcm-sdk/commit/88b6322327b30baa0fb2bf55f99497e2944c95ef) Thanks [@mmaurello](https://github.com/mmaurello)! - Use unlimited weight in all transactions for the xTokens pallet + +- Updated dependencies [[`88b6322`](https://github.com/moonbeam-foundation/xcm-sdk/commit/88b6322327b30baa0fb2bf55f99497e2944c95ef)]: + - @moonbeam-network/xcm-types@1.0.2 + ## 1.0.10 ### Patch Changes -- [#174](https://github.com/PureStake/xcm-sdk/pull/174) [`dec7174`](https://github.com/PureStake/xcm-sdk/commit/dec71741caeb770e555a11daafcfba2144c74533) Thanks [@mmaurello](https://github.com/mmaurello)! - Pendulum integration with Moonbase +- [#174](https://github.com/moonbeam-foundation/xcm-sdk/pull/174) [`dec7174`](https://github.com/moonbeam-foundation/xcm-sdk/commit/dec71741caeb770e555a11daafcfba2144c74533) Thanks [@mmaurello](https://github.com/mmaurello)! - Pendulum integration with Moonbase ## 1.0.9 ### Patch Changes -- [#166](https://github.com/PureStake/xcm-sdk/pull/166) [`e4989bb`](https://github.com/PureStake/xcm-sdk/commit/e4989bb4eb525dc5d9515e2b08cb0820956d7826) Thanks [@mmaurello](https://github.com/mmaurello)! - Change Astar and Shiden pallet and fix Any keyword error +- [#166](https://github.com/moonbeam-foundation/xcm-sdk/pull/166) [`e4989bb`](https://github.com/moonbeam-foundation/xcm-sdk/commit/e4989bb4eb525dc5d9515e2b08cb0820956d7826) Thanks [@mmaurello](https://github.com/mmaurello)! - Change Astar and Shiden pallet and fix Any keyword error -- [#161](https://github.com/PureStake/xcm-sdk/pull/161) [`df29a0b`](https://github.com/PureStake/xcm-sdk/commit/df29a0b5b92fdbaa18e435b7aecef9e6d9c6087e) Thanks [@duxiaofeng-github](https://github.com/duxiaofeng-github)! - Add AccountId32 support +- [#161](https://github.com/moonbeam-foundation/xcm-sdk/pull/161) [`df29a0b`](https://github.com/moonbeam-foundation/xcm-sdk/commit/df29a0b5b92fdbaa18e435b7aecef9e6d9c6087e) Thanks [@duxiaofeng-github](https://github.com/duxiaofeng-github)! - Add AccountId32 support ## 1.0.8 ### Patch Changes -- [#148](https://github.com/PureStake/xcm-sdk/pull/148) [`3f071c4`](https://github.com/PureStake/xcm-sdk/commit/3f071c42555e9694b090b2281eb9d67b695aa750) Thanks [@mmaurello](https://github.com/mmaurello)! - Picasso integration with Moonbase and dependency updates +- [#148](https://github.com/moonbeam-foundation/xcm-sdk/pull/148) [`3f071c4`](https://github.com/moonbeam-foundation/xcm-sdk/commit/3f071c42555e9694b090b2281eb9d67b695aa750) Thanks [@mmaurello](https://github.com/mmaurello)! - Picasso integration with Moonbase and dependency updates -- Updated dependencies [[`3f071c4`](https://github.com/PureStake/xcm-sdk/commit/3f071c42555e9694b090b2281eb9d67b695aa750), [`cd5da97`](https://github.com/PureStake/xcm-sdk/commit/cd5da97e606e94f0ec0d2faa17ac44297c5ee98e)]: +- Updated dependencies [[`3f071c4`](https://github.com/moonbeam-foundation/xcm-sdk/commit/3f071c42555e9694b090b2281eb9d67b695aa750), [`cd5da97`](https://github.com/moonbeam-foundation/xcm-sdk/commit/cd5da97e606e94f0ec0d2faa17ac44297c5ee98e)]: - @moonbeam-network/xcm-utils@1.0.3 ## 1.0.7 ### Patch Changes -- [#144](https://github.com/PureStake/xcm-sdk/pull/144) [`8c16492`](https://github.com/PureStake/xcm-sdk/commit/8c16492f2cceef0e1ebc8a9ba70452e644efd135) Thanks [@mmaurello](https://github.com/mmaurello)! - FIL integration and EQ fix +- [#144](https://github.com/moonbeam-foundation/xcm-sdk/pull/144) [`8c16492`](https://github.com/moonbeam-foundation/xcm-sdk/commit/8c16492f2cceef0e1ebc8a9ba70452e644efd135) Thanks [@mmaurello](https://github.com/mmaurello)! - FIL integration and EQ fix ## 1.0.6 ### Patch Changes -- [#132](https://github.com/PureStake/xcm-sdk/pull/132) [`69833f3`](https://github.com/PureStake/xcm-sdk/commit/69833f3ab36f6c58f16ec167b22fb6985fbe9582) Thanks [@mmaurello](https://github.com/mmaurello)! - OriginTrail integration with Moonabse +- [#132](https://github.com/moonbeam-foundation/xcm-sdk/pull/132) [`69833f3`](https://github.com/moonbeam-foundation/xcm-sdk/commit/69833f3ab36f6c58f16ec167b22fb6985fbe9582) Thanks [@mmaurello](https://github.com/mmaurello)! - OriginTrail integration with Moonabse ## 1.0.5 ### Patch Changes -- [#112](https://github.com/PureStake/xcm-sdk/pull/112) [`697bdbb`](https://github.com/PureStake/xcm-sdk/commit/697bdbbf10e569499f9e10dff0bb3173de01d458) Thanks [@ekenigs](https://github.com/ekenigs)! - ERC20 Alan and DEV tokens from Moonbase Alpha to Beta +- [#112](https://github.com/moonbeam-foundation/xcm-sdk/pull/112) [`697bdbb`](https://github.com/moonbeam-foundation/xcm-sdk/commit/697bdbbf10e569499f9e10dff0bb3173de01d458) Thanks [@ekenigs](https://github.com/ekenigs)! - ERC20 Alan and DEV tokens from Moonbase Alpha to Beta -- Updated dependencies [[`697bdbb`](https://github.com/PureStake/xcm-sdk/commit/697bdbbf10e569499f9e10dff0bb3173de01d458)]: +- Updated dependencies [[`697bdbb`](https://github.com/moonbeam-foundation/xcm-sdk/commit/697bdbbf10e569499f9e10dff0bb3173de01d458)]: - @moonbeam-network/xcm-utils@1.0.2 ## 1.0.4 ### Patch Changes -- [#108](https://github.com/PureStake/xcm-sdk/pull/108) [`dcee04b`](https://github.com/PureStake/xcm-sdk/commit/dcee04be5df5c90027534a37e40e459ae0a14fa2) Thanks [@mmaurello](https://github.com/mmaurello)! - Change Statemint/Statemine names to Asset Hub +- [#108](https://github.com/moonbeam-foundation/xcm-sdk/pull/108) [`dcee04b`](https://github.com/moonbeam-foundation/xcm-sdk/commit/dcee04be5df5c90027534a37e40e459ae0a14fa2) Thanks [@mmaurello](https://github.com/mmaurello)! - Change Statemint/Statemine names to Asset Hub ## 1.0.3 ### Patch Changes -- [#104](https://github.com/PureStake/xcm-sdk/pull/104) [`f1fc312`](https://github.com/PureStake/xcm-sdk/commit/f1fc312d77e8d579e40e48e24f3c139599bf74ca) Thanks [@mmaurello](https://github.com/mmaurello)! - Turing network integration with Moonbase Alpha +- [#104](https://github.com/moonbeam-foundation/xcm-sdk/pull/104) [`f1fc312`](https://github.com/moonbeam-foundation/xcm-sdk/commit/f1fc312d77e8d579e40e48e24f3c139599bf74ca) Thanks [@mmaurello](https://github.com/mmaurello)! - Turing network integration with Moonbase Alpha ## 1.0.2 ### Patch Changes -- [#98](https://github.com/PureStake/xcm-sdk/pull/98) [`1031601`](https://github.com/PureStake/xcm-sdk/commit/1031601e9706fefd8edf00d9b68d224fd55cf357) Thanks [@ekenigs](https://github.com/ekenigs)! - Changed SDK packages deps to 1.x +- [#98](https://github.com/moonbeam-foundation/xcm-sdk/pull/98) [`1031601`](https://github.com/moonbeam-foundation/xcm-sdk/commit/1031601e9706fefd8edf00d9b68d224fd55cf357) Thanks [@ekenigs](https://github.com/ekenigs)! - Changed SDK packages deps to 1.x -- Updated dependencies [[`1031601`](https://github.com/PureStake/xcm-sdk/commit/1031601e9706fefd8edf00d9b68d224fd55cf357)]: +- Updated dependencies [[`1031601`](https://github.com/moonbeam-foundation/xcm-sdk/commit/1031601e9706fefd8edf00d9b68d224fd55cf357)]: - @moonbeam-network/xcm-types@1.0.1 ## 1.0.1 ### Patch Changes -- [#95](https://github.com/PureStake/xcm-sdk/pull/95) [`533aa3a`](https://github.com/PureStake/xcm-sdk/commit/533aa3a551ca70e06d811967450f09086b0375e6) Thanks [@mmaurello](https://github.com/mmaurello)! - Detect Multilocation version for xTokens.TransferMulticurrencies +- [#95](https://github.com/moonbeam-foundation/xcm-sdk/pull/95) [`533aa3a`](https://github.com/moonbeam-foundation/xcm-sdk/commit/533aa3a551ca70e06d811967450f09086b0375e6) Thanks [@mmaurello](https://github.com/mmaurello)! - Detect Multilocation version for xTokens.TransferMulticurrencies ## 1.0.0 ### Major Changes -- [#87](https://github.com/PureStake/xcm-sdk/pull/87) [`3c8835e`](https://github.com/PureStake/xcm-sdk/commit/3c8835e4afbe6fe0fd33a035e9c82d58e1902a45) Thanks [@ekenigs](https://github.com/ekenigs)! - SDK v1 which is not Moonbeam specific and with a new more user-friendly interface and new features +- [#87](https://github.com/moonbeam-foundation/xcm-sdk/pull/87) [`3c8835e`](https://github.com/moonbeam-foundation/xcm-sdk/commit/3c8835e4afbe6fe0fd33a035e9c82d58e1902a45) Thanks [@ekenigs](https://github.com/ekenigs)! - SDK v1 which is not Moonbeam specific and with a new more user-friendly interface and new features ### Patch Changes -- Updated dependencies [[`3c8835e`](https://github.com/PureStake/xcm-sdk/commit/3c8835e4afbe6fe0fd33a035e9c82d58e1902a45)]: +- Updated dependencies [[`3c8835e`](https://github.com/moonbeam-foundation/xcm-sdk/commit/3c8835e4afbe6fe0fd33a035e9c82d58e1902a45)]: - @moonbeam-network/xcm-types@1.0.0 - @moonbeam-network/xcm-utils@1.0.0 diff --git a/packages/builder/package.json b/packages/builder/package.json index 1ef3c9e2..6be129f8 100644 --- a/packages/builder/package.json +++ b/packages/builder/package.json @@ -1,6 +1,6 @@ { "name": "@moonbeam-network/xcm-builder", - "version": "1.0.10", + "version": "1.0.12", "description": "Moonbeam XCM builder", "scripts": { "build": "tsup", @@ -18,17 +18,17 @@ "repository": { "directory": "packages/builder", "type": "git", - "url": "git+https://github.com/PureStake/xcm-sdk.git" + "url": "git+https://github.com/moonbeam-foundation/xcm-sdk.git" }, "keywords": [ "moonbeam", "moonriver", "xcm" ], - "author": "PureStake", + "author": "moonbeam-foundation", "license": "MIT", "bugs": { - "url": "https://github.com/PureStake/xcm-sdk/issues" + "url": "https://github.com/moonbeam-foundation/xcm-sdk/issues" }, "homepage": "https://docs.moonbeam.network/builders/xcm/xcm-sdk/xcm-sdk/", "files": [ @@ -50,8 +50,8 @@ "types": "./build/index.d.ts", "main": "./build/index.cjs", "dependencies": { - "@moonbeam-network/xcm-types": "1.0.1", - "@moonbeam-network/xcm-utils": "1.0.3", + "@moonbeam-network/xcm-types": "1.0.3", + "@moonbeam-network/xcm-utils": "1.0.4", "big.js": "^6.2.1", "type-fest": "^3.8.0" }, diff --git a/packages/builder/src/extrinsic/pallets/xTokens/__snapshots__/xTokens.test.ts.snap b/packages/builder/src/extrinsic/pallets/xTokens/__snapshots__/xTokens.test.ts.snap index e388f1bd..00588e79 100644 --- a/packages/builder/src/extrinsic/pallets/xTokens/__snapshots__/xTokens.test.ts.snap +++ b/packages/builder/src/extrinsic/pallets/xTokens/__snapshots__/xTokens.test.ts.snap @@ -30,7 +30,7 @@ exports[`xTokens transfer should get correct arguments 1`] = ` "parents": 1, }, }, - 1000000000, + "Unlimited", ] `; @@ -85,7 +85,7 @@ exports[`xTokens transferMultiAsset parachain should get correct arguments 1`] = "parents": 1, }, }, - 1000000000, + "Unlimited", ] `; @@ -188,7 +188,7 @@ exports[`xTokens transferMultiAsset x2 should get correct arguments 1`] = ` "parents": 1, }, }, - 1000000000, + "Unlimited", ] `; diff --git a/packages/builder/src/extrinsic/pallets/xTokens/xTokens.ts b/packages/builder/src/extrinsic/pallets/xTokens/xTokens.ts index 5a55f22a..b05ec066 100644 --- a/packages/builder/src/extrinsic/pallets/xTokens/xTokens.ts +++ b/packages/builder/src/extrinsic/pallets/xTokens/xTokens.ts @@ -12,7 +12,7 @@ const pallet = 'xTokens'; export function xTokens() { return { transfer: (): ExtrinsicConfigBuilder => ({ - build: ({ address, amount, asset, destination, source }) => + build: ({ address, amount, asset, destination }) => new ExtrinsicConfig({ module: pallet, func: 'transfer', @@ -23,7 +23,7 @@ export function xTokens() { asset, amount, getDestination(version, address, destination), - getWeight(source.weight, func), + getWeight(), ]; }, }), @@ -55,7 +55,7 @@ export function xTokens() { }, }, getDestination(version, address, destination), - 'Unlimited', + getWeight(), ]; }, }), @@ -87,13 +87,13 @@ export function xTokens() { }, }, getDestination(version, address, destination), - 'Unlimited', + getWeight(), ]; }, }), }), X2: (): ExtrinsicConfigBuilder => ({ - build: ({ address, amount, asset, destination, source }) => + build: ({ address, amount, asset, destination }) => new ExtrinsicConfig({ module: pallet, func: funcName, @@ -124,7 +124,7 @@ export function xTokens() { }, }, getDestination(version, address, destination), - getWeight(source.weight, func), + getWeight(), ]; }, }), @@ -143,7 +143,7 @@ export function xTokens() { ], 1, getDestination(XcmVersion.v3, address, destination), - 'Unlimited', + getWeight(), ], }), }), diff --git a/packages/builder/src/extrinsic/pallets/xTokens/xTokens.utils.ts b/packages/builder/src/extrinsic/pallets/xTokens/xTokens.utils.ts index 2b44f740..1a6518af 100644 --- a/packages/builder/src/extrinsic/pallets/xTokens/xTokens.utils.ts +++ b/packages/builder/src/extrinsic/pallets/xTokens/xTokens.utils.ts @@ -1,34 +1,13 @@ import { AnyChain } from '@moonbeam-network/xcm-types'; -import { SubmittableExtrinsicFunction } from '@polkadot/api/types'; import { XcmVersion } from '../../ExtrinsicBuilder.interfaces'; import { getExtrinsicAccount } from '../../ExtrinsicBuilder.utils'; import { XTokensWeightLimit } from './xTokens.interfaces'; /** - * Workaround for weight parameter type change in xTokens pallet - * https://github.com/open-web3-stack/open-runtime-module-library/pull/841 + * It is safer to always use unlimited */ -export function getWeight( - weight: number, - func?: SubmittableExtrinsicFunction<'promise'>, -): XTokensWeightLimit { - const type = func?.meta.args.at(-1)?.type; - - if (!type) { - return weight; - } - - if (type.eq('XcmV2WeightLimit')) { - return { - Limited: weight, - }; - } - - if (type.eq('XcmV3WeightLimit')) { - return 'Unlimited'; - } - - return weight; +export function getWeight(): XTokensWeightLimit { + return 'Unlimited'; } export function getDestination( diff --git a/packages/config/CHANGELOG.md b/packages/config/CHANGELOG.md index be0d3e12..c9269a82 100644 --- a/packages/config/CHANGELOG.md +++ b/packages/config/CHANGELOG.md @@ -1,226 +1,270 @@ # @moonbeam-network/xcm-config +## 1.3.24 + +### Patch Changes + +- [#193](https://github.com/moonbeam-foundation/xcm-sdk/pull/193) [`c06ea35`](https://github.com/moonbeam-foundation/xcm-sdk/commit/c06ea353d373b78e85e7e676ae06ac7834e66e69) Thanks [@mmaurello](https://github.com/mmaurello)! - Change polkadot and kusama endpoints + +- [#192](https://github.com/moonbeam-foundation/xcm-sdk/pull/192) [`0b3cb1d`](https://github.com/moonbeam-foundation/xcm-sdk/commit/0b3cb1db7897bec9bfd743fe3f8104e480500496) Thanks [@mmaurello](https://github.com/mmaurello)! - Manta - Moonbeam integration and change of repo url + +- Updated dependencies [[`0b3cb1d`](https://github.com/moonbeam-foundation/xcm-sdk/commit/0b3cb1db7897bec9bfd743fe3f8104e480500496)]: + - @moonbeam-network/xcm-builder@1.0.12 + - @moonbeam-network/xcm-types@1.0.3 + +## 1.3.23 + +### Patch Changes + +- [#188](https://github.com/moonbeam-foundation/xcm-sdk/pull/188) [`1b09924`](https://github.com/moonbeam-foundation/xcm-sdk/commit/1b0992493f5afac24e7cdbfd907303f7d450860c) Thanks [@mmaurello](https://github.com/mmaurello)! - Remove Litentry alphanet and change Parallel endpoint + +## 1.3.22 + +### Patch Changes + +- [#186](https://github.com/moonbeam-foundation/xcm-sdk/pull/186) [`f72cf9b`](https://github.com/moonbeam-foundation/xcm-sdk/commit/f72cf9b55e20c24294971a41ff7b3dc82d588126) Thanks [@albertov19](https://github.com/albertov19)! - Updated Calamari Endpoint + +## 1.3.21 + +### Patch Changes + +- Updated dependencies [[`88b6322`](https://github.com/moonbeam-foundation/xcm-sdk/commit/88b6322327b30baa0fb2bf55f99497e2944c95ef)]: + - @moonbeam-network/xcm-builder@1.0.11 + - @moonbeam-network/xcm-types@1.0.2 + +## 1.3.20 + +### Patch Changes + +- [#182](https://github.com/moonbeam-foundation/xcm-sdk/pull/182) [`6beaf73`](https://github.com/moonbeam-foundation/xcm-sdk/commit/6beaf73e39d339f6221b7346758822f63bbf99e3) Thanks [@mmaurello](https://github.com/mmaurello)! - Remove equilibrium alphanet config + +## 1.3.19 + +### Patch Changes + +- [#180](https://github.com/moonbeam-foundation/xcm-sdk/pull/180) [`b4d988f`](https://github.com/moonbeam-foundation/xcm-sdk/commit/b4d988f5dc9d8c7dfd8067747234609e8701ef52) Thanks [@albertov19](https://github.com/albertov19)! - Updated Parallel WSS Endpoint + ## 1.3.18 ### Patch Changes -- [#176](https://github.com/PureStake/xcm-sdk/pull/176) [`c5dbedc`](https://github.com/PureStake/xcm-sdk/commit/c5dbedc1a1476a00d50e58b06a1c45470d766511) Thanks [@mmaurello](https://github.com/mmaurello)! - Pendulum integration with Moonbeam +- [#176](https://github.com/moonbeam-foundation/xcm-sdk/pull/176) [`c5dbedc`](https://github.com/moonbeam-foundation/xcm-sdk/commit/c5dbedc1a1476a00d50e58b06a1c45470d766511) Thanks [@mmaurello](https://github.com/mmaurello)! - Pendulum integration with Moonbeam ## 1.3.17 ### Patch Changes -- [#174](https://github.com/PureStake/xcm-sdk/pull/174) [`dec7174`](https://github.com/PureStake/xcm-sdk/commit/dec71741caeb770e555a11daafcfba2144c74533) Thanks [@mmaurello](https://github.com/mmaurello)! - Pendulum integration with Moonbase +- [#174](https://github.com/moonbeam-foundation/xcm-sdk/pull/174) [`dec7174`](https://github.com/moonbeam-foundation/xcm-sdk/commit/dec71741caeb770e555a11daafcfba2144c74533) Thanks [@mmaurello](https://github.com/mmaurello)! - Pendulum integration with Moonbase -- Updated dependencies [[`dec7174`](https://github.com/PureStake/xcm-sdk/commit/dec71741caeb770e555a11daafcfba2144c74533)]: +- Updated dependencies [[`dec7174`](https://github.com/moonbeam-foundation/xcm-sdk/commit/dec71741caeb770e555a11daafcfba2144c74533)]: - @moonbeam-network/xcm-builder@1.0.10 ## 1.3.16 ### Patch Changes -- [#172](https://github.com/PureStake/xcm-sdk/pull/172) [`701afd5`](https://github.com/PureStake/xcm-sdk/commit/701afd5ecca0b325e50537b0c142477f07947baa) Thanks [@mmaurello](https://github.com/mmaurello)! - Subsocial integration with Moonbeam +- [#172](https://github.com/moonbeam-foundation/xcm-sdk/pull/172) [`701afd5`](https://github.com/moonbeam-foundation/xcm-sdk/commit/701afd5ecca0b325e50537b0c142477f07947baa) Thanks [@mmaurello](https://github.com/mmaurello)! - Subsocial integration with Moonbeam ## 1.3.15 ### Patch Changes -- [#170](https://github.com/PureStake/xcm-sdk/pull/170) [`ac043e2`](https://github.com/PureStake/xcm-sdk/commit/ac043e220535a049db9fc72533127c9b3619b0d3) Thanks [@mmaurello](https://github.com/mmaurello)! - Acala LDOT integration with Moonbeam +- [#170](https://github.com/moonbeam-foundation/xcm-sdk/pull/170) [`ac043e2`](https://github.com/moonbeam-foundation/xcm-sdk/commit/ac043e220535a049db9fc72533127c9b3619b0d3) Thanks [@mmaurello](https://github.com/mmaurello)! - Acala LDOT integration with Moonbeam ## 1.3.14 ### Patch Changes -- [#168](https://github.com/PureStake/xcm-sdk/pull/168) [`c45489f`](https://github.com/PureStake/xcm-sdk/commit/c45489fed7512d1f71c3032ed9e10ae0467a9867) Thanks [@mmaurello](https://github.com/mmaurello)! - Picasso integration with Moonriver +- [#168](https://github.com/moonbeam-foundation/xcm-sdk/pull/168) [`c45489f`](https://github.com/moonbeam-foundation/xcm-sdk/commit/c45489fed7512d1f71c3032ed9e10ae0467a9867) Thanks [@mmaurello](https://github.com/mmaurello)! - Picasso integration with Moonriver ## 1.3.13 ### Patch Changes -- [#166](https://github.com/PureStake/xcm-sdk/pull/166) [`e4989bb`](https://github.com/PureStake/xcm-sdk/commit/e4989bb4eb525dc5d9515e2b08cb0820956d7826) Thanks [@mmaurello](https://github.com/mmaurello)! - Change Astar and Shiden pallet and fix Any keyword error +- [#166](https://github.com/moonbeam-foundation/xcm-sdk/pull/166) [`e4989bb`](https://github.com/moonbeam-foundation/xcm-sdk/commit/e4989bb4eb525dc5d9515e2b08cb0820956d7826) Thanks [@mmaurello](https://github.com/mmaurello)! - Change Astar and Shiden pallet and fix Any keyword error -- Updated dependencies [[`e4989bb`](https://github.com/PureStake/xcm-sdk/commit/e4989bb4eb525dc5d9515e2b08cb0820956d7826), [`df29a0b`](https://github.com/PureStake/xcm-sdk/commit/df29a0b5b92fdbaa18e435b7aecef9e6d9c6087e)]: +- Updated dependencies [[`e4989bb`](https://github.com/moonbeam-foundation/xcm-sdk/commit/e4989bb4eb525dc5d9515e2b08cb0820956d7826), [`df29a0b`](https://github.com/moonbeam-foundation/xcm-sdk/commit/df29a0b5b92fdbaa18e435b7aecef9e6d9c6087e)]: - @moonbeam-network/xcm-builder@1.0.9 ## 1.3.12 ### Patch Changes -- [#160](https://github.com/PureStake/xcm-sdk/pull/160) [`4035acc`](https://github.com/PureStake/xcm-sdk/commit/4035acc82dd22fa571cb1ea5c2822347d1a85b7c) Thanks [@mmaurello](https://github.com/mmaurello)! - USDC asset hub integration and vDOT paying for fees +- [#160](https://github.com/moonbeam-foundation/xcm-sdk/pull/160) [`4035acc`](https://github.com/moonbeam-foundation/xcm-sdk/commit/4035acc82dd22fa571cb1ea5c2822347d1a85b7c) Thanks [@mmaurello](https://github.com/mmaurello)! - USDC asset hub integration and vDOT paying for fees ## 1.3.11 ### Patch Changes -- [#152](https://github.com/PureStake/xcm-sdk/pull/152) [`5a50724`](https://github.com/PureStake/xcm-sdk/commit/5a5072453e65d0012ce9826fb1b3b10062141dca) Thanks [@mmaurello](https://github.com/mmaurello)! - Zeitgeist integration with Moonbeam +- [#152](https://github.com/moonbeam-foundation/xcm-sdk/pull/152) [`5a50724`](https://github.com/moonbeam-foundation/xcm-sdk/commit/5a5072453e65d0012ce9826fb1b3b10062141dca) Thanks [@mmaurello](https://github.com/mmaurello)! - Zeitgeist integration with Moonbeam ## 1.3.10 ### Patch Changes -- [#157](https://github.com/PureStake/xcm-sdk/pull/157) [`7103bb0`](https://github.com/PureStake/xcm-sdk/commit/7103bb0cacf9e448968cd9aafd0e512b82fa348b) Thanks [@mmaurello](https://github.com/mmaurello)! - Revert decimals change in destination fee +- [#157](https://github.com/moonbeam-foundation/xcm-sdk/pull/157) [`7103bb0`](https://github.com/moonbeam-foundation/xcm-sdk/commit/7103bb0cacf9e448968cd9aafd0e512b82fa348b) Thanks [@mmaurello](https://github.com/mmaurello)! - Revert decimals change in destination fee ## 1.3.9 ### Patch Changes -- [#155](https://github.com/PureStake/xcm-sdk/pull/155) [`a6f48df`](https://github.com/PureStake/xcm-sdk/commit/a6f48df94bd662c120676c8d72a697ef59181220) Thanks [@mmaurello](https://github.com/mmaurello)! - USDT Wormhole integration +- [#155](https://github.com/moonbeam-foundation/xcm-sdk/pull/155) [`a6f48df`](https://github.com/moonbeam-foundation/xcm-sdk/commit/a6f48df94bd662c120676c8d72a697ef59181220) Thanks [@mmaurello](https://github.com/mmaurello)! - USDT Wormhole integration ## 1.3.8 ### Patch Changes -- [#153](https://github.com/PureStake/xcm-sdk/pull/153) [`de87e3e`](https://github.com/PureStake/xcm-sdk/commit/de87e3e4b2817080dcb60495cbcc70a8bef47a69) Thanks [@mmaurello](https://github.com/mmaurello)! - Change how we get decimals from assets in destination and change vDOT transfers paying asset +- [#153](https://github.com/moonbeam-foundation/xcm-sdk/pull/153) [`de87e3e`](https://github.com/moonbeam-foundation/xcm-sdk/commit/de87e3e4b2817080dcb60495cbcc70a8bef47a69) Thanks [@mmaurello](https://github.com/mmaurello)! - Change how we get decimals from assets in destination and change vDOT transfers paying asset ## 1.3.7 ### Patch Changes -- [#149](https://github.com/PureStake/xcm-sdk/pull/149) [`6c208b7`](https://github.com/PureStake/xcm-sdk/commit/6c208b71d25b0fc44bca93ab3ef9cc1e253e57df) Thanks [@mmaurello](https://github.com/mmaurello)! - Change OnFinality endpoints +- [#149](https://github.com/moonbeam-foundation/xcm-sdk/pull/149) [`6c208b7`](https://github.com/moonbeam-foundation/xcm-sdk/commit/6c208b71d25b0fc44bca93ab3ef9cc1e253e57df) Thanks [@mmaurello](https://github.com/mmaurello)! - Change OnFinality endpoints ## 1.3.6 ### Patch Changes -- [#148](https://github.com/PureStake/xcm-sdk/pull/148) [`3f071c4`](https://github.com/PureStake/xcm-sdk/commit/3f071c42555e9694b090b2281eb9d67b695aa750) Thanks [@mmaurello](https://github.com/mmaurello)! - Picasso integration with Moonbase and dependency updates +- [#148](https://github.com/moonbeam-foundation/xcm-sdk/pull/148) [`3f071c4`](https://github.com/moonbeam-foundation/xcm-sdk/commit/3f071c42555e9694b090b2281eb9d67b695aa750) Thanks [@mmaurello](https://github.com/mmaurello)! - Picasso integration with Moonbase and dependency updates -- [#147](https://github.com/PureStake/xcm-sdk/pull/147) [`ea6cd77`](https://github.com/PureStake/xcm-sdk/commit/ea6cd777314667029edcedff8fd3b1401a34e84d) Thanks [@mmaurello](https://github.com/mmaurello)! - Support GLMR transfers in interlay +- [#147](https://github.com/moonbeam-foundation/xcm-sdk/pull/147) [`ea6cd77`](https://github.com/moonbeam-foundation/xcm-sdk/commit/ea6cd777314667029edcedff8fd3b1401a34e84d) Thanks [@mmaurello](https://github.com/mmaurello)! - Support GLMR transfers in interlay -- Updated dependencies [[`3f071c4`](https://github.com/PureStake/xcm-sdk/commit/3f071c42555e9694b090b2281eb9d67b695aa750)]: +- Updated dependencies [[`3f071c4`](https://github.com/moonbeam-foundation/xcm-sdk/commit/3f071c42555e9694b090b2281eb9d67b695aa750)]: - @moonbeam-network/xcm-builder@1.0.8 ## 1.3.5 ### Patch Changes -- [#144](https://github.com/PureStake/xcm-sdk/pull/144) [`8c16492`](https://github.com/PureStake/xcm-sdk/commit/8c16492f2cceef0e1ebc8a9ba70452e644efd135) Thanks [@mmaurello](https://github.com/mmaurello)! - FIL integration and EQ fix +- [#144](https://github.com/moonbeam-foundation/xcm-sdk/pull/144) [`8c16492`](https://github.com/moonbeam-foundation/xcm-sdk/commit/8c16492f2cceef0e1ebc8a9ba70452e644efd135) Thanks [@mmaurello](https://github.com/mmaurello)! - FIL integration and EQ fix -- Updated dependencies [[`8c16492`](https://github.com/PureStake/xcm-sdk/commit/8c16492f2cceef0e1ebc8a9ba70452e644efd135)]: +- Updated dependencies [[`8c16492`](https://github.com/moonbeam-foundation/xcm-sdk/commit/8c16492f2cceef0e1ebc8a9ba70452e644efd135)]: - @moonbeam-network/xcm-builder@1.0.7 ## 1.3.4 ### Patch Changes -- [#141](https://github.com/PureStake/xcm-sdk/pull/141) [`de2a0bb`](https://github.com/PureStake/xcm-sdk/commit/de2a0bba3a3af7fb1c67d23d4ead3915b9513f2f) Thanks [@mmaurello](https://github.com/mmaurello)! - change robonomics wss endpoint +- [#141](https://github.com/moonbeam-foundation/xcm-sdk/pull/141) [`de2a0bb`](https://github.com/moonbeam-foundation/xcm-sdk/commit/de2a0bba3a3af7fb1c67d23d4ead3915b9513f2f) Thanks [@mmaurello](https://github.com/mmaurello)! - change robonomics wss endpoint ## 1.3.3 ### Patch Changes -- [#139](https://github.com/PureStake/xcm-sdk/pull/139) [`cbd30b1`](https://github.com/PureStake/xcm-sdk/commit/cbd30b1d4e37ff877e4e27121491ab086a985df0) Thanks [@mmaurello](https://github.com/mmaurello)! - OriginTrail integration with Moonbeam - remove Nodle Eden integration with Moonbase +- [#139](https://github.com/moonbeam-foundation/xcm-sdk/pull/139) [`cbd30b1`](https://github.com/moonbeam-foundation/xcm-sdk/commit/cbd30b1d4e37ff877e4e27121491ab086a985df0) Thanks [@mmaurello](https://github.com/mmaurello)! - OriginTrail integration with Moonbeam - remove Nodle Eden integration with Moonbase ## 1.3.2 ### Patch Changes -- [#137](https://github.com/PureStake/xcm-sdk/pull/137) [`3fd0cb4`](https://github.com/PureStake/xcm-sdk/commit/3fd0cb4cd23c04fcc8bcd3650d8964022193d6b4) Thanks [@mmaurello](https://github.com/mmaurello)! - Integrate Bifrost LSD assets +- [#137](https://github.com/moonbeam-foundation/xcm-sdk/pull/137) [`3fd0cb4`](https://github.com/moonbeam-foundation/xcm-sdk/commit/3fd0cb4cd23c04fcc8bcd3650d8964022193d6b4) Thanks [@mmaurello](https://github.com/mmaurello)! - Integrate Bifrost LSD assets ## 1.3.1 ### Patch Changes -- [#132](https://github.com/PureStake/xcm-sdk/pull/132) [`69833f3`](https://github.com/PureStake/xcm-sdk/commit/69833f3ab36f6c58f16ec167b22fb6985fbe9582) Thanks [@mmaurello](https://github.com/mmaurello)! - OriginTrail integration with Moonabse +- [#132](https://github.com/moonbeam-foundation/xcm-sdk/pull/132) [`69833f3`](https://github.com/moonbeam-foundation/xcm-sdk/commit/69833f3ab36f6c58f16ec167b22fb6985fbe9582) Thanks [@mmaurello](https://github.com/mmaurello)! - OriginTrail integration with Moonabse -- Updated dependencies [[`69833f3`](https://github.com/PureStake/xcm-sdk/commit/69833f3ab36f6c58f16ec167b22fb6985fbe9582)]: +- Updated dependencies [[`69833f3`](https://github.com/moonbeam-foundation/xcm-sdk/commit/69833f3ab36f6c58f16ec167b22fb6985fbe9582)]: - @moonbeam-network/xcm-builder@1.0.6 ## 1.3.0 ### Minor Changes -- [#131](https://github.com/PureStake/xcm-sdk/pull/131) [`63d81d6`](https://github.com/PureStake/xcm-sdk/commit/63d81d64578deb4b415138bfc7809de79a8c80de) Thanks [@mmaurello](https://github.com/mmaurello)! - Allow viem Wallet Client as signer +- [#131](https://github.com/moonbeam-foundation/xcm-sdk/pull/131) [`63d81d6`](https://github.com/moonbeam-foundation/xcm-sdk/commit/63d81d64578deb4b415138bfc7809de79a8c80de) Thanks [@mmaurello](https://github.com/mmaurello)! - Allow viem Wallet Client as signer ## 1.2.0 ### Minor Changes -- [#124](https://github.com/PureStake/xcm-sdk/pull/124) [`bda7709`](https://github.com/PureStake/xcm-sdk/commit/bda77096dca9ac1f29a852d938acd9962d45ee80) Thanks [@nohaapav](https://github.com/nohaapav)! - Introduce config service to support mutability of static xcm config +- [#124](https://github.com/moonbeam-foundation/xcm-sdk/pull/124) [`bda7709`](https://github.com/moonbeam-foundation/xcm-sdk/commit/bda77096dca9ac1f29a852d938acd9962d45ee80) Thanks [@nohaapav](https://github.com/nohaapav)! - Introduce config service to support mutability of static xcm config ## 1.1.0 ### Minor Changes -- [#127](https://github.com/PureStake/xcm-sdk/pull/127) [`876c5eb`](https://github.com/PureStake/xcm-sdk/commit/876c5eb937b1b0f44943a0fee8c0accb19f3747d) Thanks [@mmaurello](https://github.com/mmaurello)! - Return destination fee balance object for controlling enough balance +- [#127](https://github.com/moonbeam-foundation/xcm-sdk/pull/127) [`876c5eb`](https://github.com/moonbeam-foundation/xcm-sdk/commit/876c5eb937b1b0f44943a0fee8c0accb19f3747d) Thanks [@mmaurello](https://github.com/mmaurello)! - Return destination fee balance object for controlling enough balance ## 1.0.12 ### Patch Changes -- [#125](https://github.com/PureStake/xcm-sdk/pull/125) [`9d7146e`](https://github.com/PureStake/xcm-sdk/commit/9d7146e674688640476e33dac70210589446e727) Thanks [@jak-pan](https://github.com/jak-pan)! - Update HydraDX rpc endpoint in chains.ts +- [#125](https://github.com/moonbeam-foundation/xcm-sdk/pull/125) [`9d7146e`](https://github.com/moonbeam-foundation/xcm-sdk/commit/9d7146e674688640476e33dac70210589446e727) Thanks [@jak-pan](https://github.com/jak-pan)! - Update HydraDX rpc endpoint in chains.ts ## 1.0.11 ### Patch Changes -- [#120](https://github.com/PureStake/xcm-sdk/pull/120) [`220878d`](https://github.com/PureStake/xcm-sdk/commit/220878d74d492f41c998372b7ed9a43d99e1f4da) Thanks [@ekenigs](https://github.com/ekenigs)! - Added DAI for HydraDX - Moonbeam +- [#120](https://github.com/moonbeam-foundation/xcm-sdk/pull/120) [`220878d`](https://github.com/moonbeam-foundation/xcm-sdk/commit/220878d74d492f41c998372b7ed9a43d99e1f4da) Thanks [@ekenigs](https://github.com/ekenigs)! - Added DAI for HydraDX - Moonbeam ## 1.0.10 ### Patch Changes -- [#118](https://github.com/PureStake/xcm-sdk/pull/118) [`911d03d`](https://github.com/PureStake/xcm-sdk/commit/911d03dd3e1e5e3e7abe5ea43f4d0cd7f5a73e83) Thanks [@mmaurello](https://github.com/mmaurello)! - Integrate Wormhole ERC20 tokens +- [#118](https://github.com/moonbeam-foundation/xcm-sdk/pull/118) [`911d03d`](https://github.com/moonbeam-foundation/xcm-sdk/commit/911d03dd3e1e5e3e7abe5ea43f4d0cd7f5a73e83) Thanks [@mmaurello](https://github.com/mmaurello)! - Integrate Wormhole ERC20 tokens ## 1.0.9 ### Patch Changes -- [#116](https://github.com/PureStake/xcm-sdk/pull/116) [`8105b09`](https://github.com/PureStake/xcm-sdk/commit/8105b094737d75f11bf9baa9083d0986d78242c1) Thanks [@mmaurello](https://github.com/mmaurello)! - Nodle integration with moonbeam - change aUSD name +- [#116](https://github.com/moonbeam-foundation/xcm-sdk/pull/116) [`8105b09`](https://github.com/moonbeam-foundation/xcm-sdk/commit/8105b094737d75f11bf9baa9083d0986d78242c1) Thanks [@mmaurello](https://github.com/mmaurello)! - Nodle integration with moonbeam - change aUSD name ## 1.0.8 ### Patch Changes -- [#112](https://github.com/PureStake/xcm-sdk/pull/112) [`697bdbb`](https://github.com/PureStake/xcm-sdk/commit/697bdbbf10e569499f9e10dff0bb3173de01d458) Thanks [@ekenigs](https://github.com/ekenigs)! - ERC20 Alan and DEV tokens from Moonbase Alpha to Beta +- [#112](https://github.com/moonbeam-foundation/xcm-sdk/pull/112) [`697bdbb`](https://github.com/moonbeam-foundation/xcm-sdk/commit/697bdbbf10e569499f9e10dff0bb3173de01d458) Thanks [@ekenigs](https://github.com/ekenigs)! - ERC20 Alan and DEV tokens from Moonbase Alpha to Beta -- Updated dependencies [[`697bdbb`](https://github.com/PureStake/xcm-sdk/commit/697bdbbf10e569499f9e10dff0bb3173de01d458)]: +- Updated dependencies [[`697bdbb`](https://github.com/moonbeam-foundation/xcm-sdk/commit/697bdbbf10e569499f9e10dff0bb3173de01d458)]: - @moonbeam-network/xcm-builder@1.0.5 ## 1.0.7 ### Patch Changes -- [#110](https://github.com/PureStake/xcm-sdk/pull/110) [`307f272`](https://github.com/PureStake/xcm-sdk/commit/307f272bbda95add5f986157795cd9b52c347e32) Thanks [@mmaurello](https://github.com/mmaurello)! - Turing integration with Moonriver +- [#110](https://github.com/moonbeam-foundation/xcm-sdk/pull/110) [`307f272`](https://github.com/moonbeam-foundation/xcm-sdk/commit/307f272bbda95add5f986157795cd9b52c347e32) Thanks [@mmaurello](https://github.com/mmaurello)! - Turing integration with Moonriver ## 1.0.6 ### Patch Changes -- [#108](https://github.com/PureStake/xcm-sdk/pull/108) [`dcee04b`](https://github.com/PureStake/xcm-sdk/commit/dcee04be5df5c90027534a37e40e459ae0a14fa2) Thanks [@mmaurello](https://github.com/mmaurello)! - Change Statemint/Statemine names to Asset Hub +- [#108](https://github.com/moonbeam-foundation/xcm-sdk/pull/108) [`dcee04b`](https://github.com/moonbeam-foundation/xcm-sdk/commit/dcee04be5df5c90027534a37e40e459ae0a14fa2) Thanks [@mmaurello](https://github.com/mmaurello)! - Change Statemint/Statemine names to Asset Hub -- Updated dependencies [[`dcee04b`](https://github.com/PureStake/xcm-sdk/commit/dcee04be5df5c90027534a37e40e459ae0a14fa2)]: +- Updated dependencies [[`dcee04b`](https://github.com/moonbeam-foundation/xcm-sdk/commit/dcee04be5df5c90027534a37e40e459ae0a14fa2)]: - @moonbeam-network/xcm-builder@1.0.4 ## 1.0.5 ### Patch Changes -- [#106](https://github.com/PureStake/xcm-sdk/pull/106) [`2c0251d`](https://github.com/PureStake/xcm-sdk/commit/2c0251d8c24c7025099299e150a1fccebde53d1e) Thanks [@mmaurello](https://github.com/mmaurello)! - Centrifuge integration with Moonebeam +- [#106](https://github.com/moonbeam-foundation/xcm-sdk/pull/106) [`2c0251d`](https://github.com/moonbeam-foundation/xcm-sdk/commit/2c0251d8c24c7025099299e150a1fccebde53d1e) Thanks [@mmaurello](https://github.com/mmaurello)! - Centrifuge integration with Moonebeam ## 1.0.4 ### Patch Changes -- [#104](https://github.com/PureStake/xcm-sdk/pull/104) [`f1fc312`](https://github.com/PureStake/xcm-sdk/commit/f1fc312d77e8d579e40e48e24f3c139599bf74ca) Thanks [@mmaurello](https://github.com/mmaurello)! - Turing network integration with Moonbase Alpha +- [#104](https://github.com/moonbeam-foundation/xcm-sdk/pull/104) [`f1fc312`](https://github.com/moonbeam-foundation/xcm-sdk/commit/f1fc312d77e8d579e40e48e24f3c139599bf74ca) Thanks [@mmaurello](https://github.com/mmaurello)! - Turing network integration with Moonbase Alpha -- Updated dependencies [[`f1fc312`](https://github.com/PureStake/xcm-sdk/commit/f1fc312d77e8d579e40e48e24f3c139599bf74ca)]: +- Updated dependencies [[`f1fc312`](https://github.com/moonbeam-foundation/xcm-sdk/commit/f1fc312d77e8d579e40e48e24f3c139599bf74ca)]: - @moonbeam-network/xcm-builder@1.0.3 ## 1.0.3 ### Patch Changes -- [#101](https://github.com/PureStake/xcm-sdk/pull/101) [`934f976`](https://github.com/PureStake/xcm-sdk/commit/934f976f53a32e3ee10aa011cd3622d70bc3afb3) Thanks [@mmaurello](https://github.com/mmaurello)! - Nodle Eden Integration with Moonbase Alpha +- [#101](https://github.com/moonbeam-foundation/xcm-sdk/pull/101) [`934f976`](https://github.com/moonbeam-foundation/xcm-sdk/commit/934f976f53a32e3ee10aa011cd3622d70bc3afb3) Thanks [@mmaurello](https://github.com/mmaurello)! - Nodle Eden Integration with Moonbase Alpha ## 1.0.2 ### Patch Changes -- [#98](https://github.com/PureStake/xcm-sdk/pull/98) [`1031601`](https://github.com/PureStake/xcm-sdk/commit/1031601e9706fefd8edf00d9b68d224fd55cf357) Thanks [@ekenigs](https://github.com/ekenigs)! - Changed SDK packages deps to 1.x +- [#98](https://github.com/moonbeam-foundation/xcm-sdk/pull/98) [`1031601`](https://github.com/moonbeam-foundation/xcm-sdk/commit/1031601e9706fefd8edf00d9b68d224fd55cf357) Thanks [@ekenigs](https://github.com/ekenigs)! - Changed SDK packages deps to 1.x -- [#100](https://github.com/PureStake/xcm-sdk/pull/100) [`bb54d40`](https://github.com/PureStake/xcm-sdk/commit/bb54d40ba72a9ffd0394cd7b8731fa0b3dbf14f7) Thanks [@mmaurello](https://github.com/mmaurello)! - Subsocial - Moonbase-Alpha integration +- [#100](https://github.com/moonbeam-foundation/xcm-sdk/pull/100) [`bb54d40`](https://github.com/moonbeam-foundation/xcm-sdk/commit/bb54d40ba72a9ffd0394cd7b8731fa0b3dbf14f7) Thanks [@mmaurello](https://github.com/mmaurello)! - Subsocial - Moonbase-Alpha integration -- Updated dependencies [[`1031601`](https://github.com/PureStake/xcm-sdk/commit/1031601e9706fefd8edf00d9b68d224fd55cf357)]: +- Updated dependencies [[`1031601`](https://github.com/moonbeam-foundation/xcm-sdk/commit/1031601e9706fefd8edf00d9b68d224fd55cf357)]: - @moonbeam-network/xcm-builder@1.0.2 - @moonbeam-network/xcm-types@1.0.1 @@ -228,17 +272,17 @@ ### Patch Changes -- [`069b738`](https://github.com/PureStake/xcm-sdk/commit/069b73810c6e1e271edc489ed40bae06d9d62a37) Thanks [@mmaurello](https://github.com/mmaurello)! - Mangata - Moonriver integration +- [`069b738`](https://github.com/moonbeam-foundation/xcm-sdk/commit/069b73810c6e1e271edc489ed40bae06d9d62a37) Thanks [@mmaurello](https://github.com/mmaurello)! - Mangata - Moonriver integration ## 1.0.0 ### Major Changes -- [#87](https://github.com/PureStake/xcm-sdk/pull/87) [`3c8835e`](https://github.com/PureStake/xcm-sdk/commit/3c8835e4afbe6fe0fd33a035e9c82d58e1902a45) Thanks [@ekenigs](https://github.com/ekenigs)! - SDK v1 which is not Moonbeam specific and with a new more user-friendly interface and new features +- [#87](https://github.com/moonbeam-foundation/xcm-sdk/pull/87) [`3c8835e`](https://github.com/moonbeam-foundation/xcm-sdk/commit/3c8835e4afbe6fe0fd33a035e9c82d58e1902a45) Thanks [@ekenigs](https://github.com/ekenigs)! - SDK v1 which is not Moonbeam specific and with a new more user-friendly interface and new features ### Patch Changes -- Updated dependencies [[`3c8835e`](https://github.com/PureStake/xcm-sdk/commit/3c8835e4afbe6fe0fd33a035e9c82d58e1902a45)]: +- Updated dependencies [[`3c8835e`](https://github.com/moonbeam-foundation/xcm-sdk/commit/3c8835e4afbe6fe0fd33a035e9c82d58e1902a45)]: - @moonbeam-network/xcm-builder@1.0.0 - @moonbeam-network/xcm-types@1.0.0 @@ -246,24 +290,24 @@ ### Minor Changes -- [#84](https://github.com/PureStake/xcm-sdk/pull/84) [`731df96`](https://github.com/PureStake/xcm-sdk/commit/731df96b3bed1331e19dfd60025e2d76cbbdd13a) Thanks [@mmaurello](https://github.com/mmaurello)! - HydraDX integration with Moonbeam [HDX token] +- [#84](https://github.com/moonbeam-foundation/xcm-sdk/pull/84) [`731df96`](https://github.com/moonbeam-foundation/xcm-sdk/commit/731df96b3bed1331e19dfd60025e2d76cbbdd13a) Thanks [@mmaurello](https://github.com/mmaurello)! - HydraDX integration with Moonbeam [HDX token] ## 0.4.4 ### Patch Changes -- [#79](https://github.com/PureStake/xcm-sdk/pull/79) [`13708fc`](https://github.com/PureStake/xcm-sdk/commit/13708fc658d0d159a0831edec1da90ff5e89dfb2) Thanks [@ekenigs](https://github.com/ekenigs)! - Fixed xTokens XCM V3 for Bifrost +- [#79](https://github.com/moonbeam-foundation/xcm-sdk/pull/79) [`13708fc`](https://github.com/moonbeam-foundation/xcm-sdk/commit/13708fc658d0d159a0831edec1da90ff5e89dfb2) Thanks [@ekenigs](https://github.com/ekenigs)! - Fixed xTokens XCM V3 for Bifrost ## 0.4.3 ### Patch Changes -- [#77](https://github.com/PureStake/xcm-sdk/pull/77) [`9aa203e`](https://github.com/PureStake/xcm-sdk/commit/9aa203e1fd8866c066cd538dea15c05ca4ebc91c) Thanks [@ekenigs](https://github.com/ekenigs)! - Added EQ, EQD to Moonbeam and GLMR to Equilibrium +- [#77](https://github.com/moonbeam-foundation/xcm-sdk/pull/77) [`9aa203e`](https://github.com/moonbeam-foundation/xcm-sdk/commit/9aa203e1fd8866c066cd538dea15c05ca4ebc91c) Thanks [@ekenigs](https://github.com/ekenigs)! - Added EQ, EQD to Moonbeam and GLMR to Equilibrium ## 0.4.2 ### Patch Changes -- [#74](https://github.com/PureStake/xcm-sdk/pull/74) [`7159d68`](https://github.com/PureStake/xcm-sdk/commit/7159d68cd9a2a8c0c2e2e0f8a8405e6a1a9a8607) Thanks [@ekenigs](https://github.com/ekenigs)! - A new extrinsic fro Equilibrium +- [#74](https://github.com/moonbeam-foundation/xcm-sdk/pull/74) [`7159d68`](https://github.com/moonbeam-foundation/xcm-sdk/commit/7159d68cd9a2a8c0c2e2e0f8a8405e6a1a9a8607) Thanks [@ekenigs](https://github.com/ekenigs)! - A new extrinsic fro Equilibrium -- [#73](https://github.com/PureStake/xcm-sdk/pull/73) [`a3f3d86`](https://github.com/PureStake/xcm-sdk/commit/a3f3d86290475e6353fa74c06c2b7e6c9ba65eb4) Thanks [@ekenigs](https://github.com/ekenigs)! - Khala and Phala v3 fix +- [#73](https://github.com/moonbeam-foundation/xcm-sdk/pull/73) [`a3f3d86`](https://github.com/moonbeam-foundation/xcm-sdk/commit/a3f3d86290475e6353fa74c06c2b7e6c9ba65eb4) Thanks [@ekenigs](https://github.com/ekenigs)! - Khala and Phala v3 fix diff --git a/packages/config/package.json b/packages/config/package.json index 51188dbc..7018f85e 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -1,6 +1,6 @@ { "name": "@moonbeam-network/xcm-config", - "version": "1.3.18", + "version": "1.3.24", "description": "All necessary configuration to transfer assets from Moonbeam, Moonriver, Moonbase to other parachains and back", "scripts": { "build": "tsup", @@ -18,17 +18,17 @@ "repository": { "directory": "packages/config", "type": "git", - "url": "git+https://github.com/PureStake/xcm-sdk.git" + "url": "git+https://github.com/moonbeam-foundation/xcm-sdk.git" }, "keywords": [ "moonbeam", "moonriver", "xcm" ], - "author": "PureStake", + "author": "moonbeam-foundation", "license": "MIT", "bugs": { - "url": "https://github.com/PureStake/xcm-sdk/issues" + "url": "https://github.com/moonbeam-foundation/xcm-sdk/issues" }, "homepage": "https://docs.moonbeam.network/builders/xcm/xcm-sdk/xcm-sdk/", "files": [ @@ -50,8 +50,8 @@ "types": "./build/index.d.ts", "main": "./build/index.cjs", "dependencies": { - "@moonbeam-network/xcm-builder": "1.0.10", - "@moonbeam-network/xcm-types": "1.0.1" + "@moonbeam-network/xcm-builder": "1.0.12", + "@moonbeam-network/xcm-types": "1.0.3" }, "peerDependencies": { "@polkadot/types": "^10.10.1", diff --git a/packages/config/src/ConfigBuilder/ConfigBuilder.test.ts b/packages/config/src/ConfigBuilder/ConfigBuilder.test.ts index 94619cd1..c182b682 100644 --- a/packages/config/src/ConfigBuilder/ConfigBuilder.test.ts +++ b/packages/config/src/ConfigBuilder/ConfigBuilder.test.ts @@ -2,9 +2,9 @@ import { Ecosystem } from '@moonbeam-network/xcm-types'; import { ConfigService } from '../ConfigService'; import { dev } from '../assets'; -import { equilibriumAlphanet, moonbaseAlpha } from '../chains'; -import { equilibriumAlphanetConfig } from '../configs/equilibriumAlphanet'; +import { moonbaseAlpha, pendulumAlphanet } from '../chains'; import { moonbaseAlphaConfig } from '../configs/moonbaseAlpha'; +import { pendulumAlphanetConfig } from '../configs/pendulumAlphanet'; import { ConfigBuilder } from './ConfigBuilder'; describe('configBuilder', () => { @@ -13,7 +13,7 @@ describe('configBuilder', () => { .assets(Ecosystem.AlphanetRelay) .asset(dev) .source(moonbaseAlpha) - .destination(equilibriumAlphanet) + .destination(pendulumAlphanet) .build(); expect(config).toStrictEqual({ @@ -22,12 +22,12 @@ describe('configBuilder', () => { chain: moonbaseAlpha, config: moonbaseAlphaConfig.getAssetDestinationConfig( dev, - equilibriumAlphanet, + pendulumAlphanet, ), }, destination: { - chain: equilibriumAlphanet, - config: equilibriumAlphanetConfig.getAssetDestinationConfig( + chain: pendulumAlphanet, + config: pendulumAlphanetConfig.getAssetDestinationConfig( dev, moonbaseAlpha, ), @@ -41,7 +41,7 @@ describe('configBuilder', () => { .assets(Ecosystem.AlphanetRelay) .asset(dev) .source(moonbaseAlpha) - .destination(equilibriumAlphanet) + .destination(pendulumAlphanet) .build(); expect(config).toStrictEqual({ @@ -50,12 +50,12 @@ describe('configBuilder', () => { chain: moonbaseAlpha, config: moonbaseAlphaConfig.getAssetDestinationConfig( dev, - equilibriumAlphanet, + pendulumAlphanet, ), }, destination: { - chain: equilibriumAlphanet, - config: equilibriumAlphanetConfig.getAssetDestinationConfig( + chain: pendulumAlphanet, + config: pendulumAlphanetConfig.getAssetDestinationConfig( dev, moonbaseAlpha, ), diff --git a/packages/config/src/ConfigService/ConfigService.test.ts b/packages/config/src/ConfigService/ConfigService.test.ts index fc3e88e1..55ca9ecc 100644 --- a/packages/config/src/ConfigService/ConfigService.test.ts +++ b/packages/config/src/ConfigService/ConfigService.test.ts @@ -9,12 +9,7 @@ import { Parachain, } from '@moonbeam-network/xcm-types'; import { assetsList, dev, glmr, tt1, unit } from '../assets'; -import { - equilibriumAlphanet, - hydraDX, - moonbaseAlpha, - moonbeam, -} from '../chains'; +import { hydraDX, moonbaseAlpha, moonbeam, pendulumAlphanet } from '../chains'; import { ConfigService } from './ConfigService'; import { AssetConfig } from '../types/AssetConfig'; @@ -123,7 +118,7 @@ describe('config service', () => { ); expect(chains).toStrictEqual( - expect.arrayContaining([moonbaseAlpha, equilibriumAlphanet]), + expect.arrayContaining([moonbaseAlpha, pendulumAlphanet]), ); }); }); diff --git a/packages/config/src/assets.ts b/packages/config/src/assets.ts index c23b67bc..d71c6471 100644 --- a/packages/config/src/assets.ts +++ b/packages/config/src/assets.ts @@ -150,6 +150,11 @@ export const lit = new Asset({ originSymbol: 'LIT', }); +export const manta = new Asset({ + key: 'manta', + originSymbol: 'MANTA', +}); + export const mgx = new Asset({ key: 'mgx', originSymbol: 'MGX', @@ -345,6 +350,7 @@ export const assetsList: Asset[] = [ ksm, ldot, lit, + manta, mgx, movr, nodl, diff --git a/packages/config/src/chains.ts b/packages/config/src/chains.ts index 3eda27a3..91a80fed 100644 --- a/packages/config/src/chains.ts +++ b/packages/config/src/chains.ts @@ -35,6 +35,7 @@ import { ksm, ldot, lit, + manta, mgx, movr, nodl, @@ -47,7 +48,6 @@ import { ring, rmrk, sdn, - soon, sub, teer, tt1, @@ -255,7 +255,7 @@ export const calamari = new Parachain({ name: 'Calamari', parachainId: 2084, ss58Format: 78, - ws: 'wss://ws.calamari.systems', + ws: 'wss://calamari.systems', }); export const centrifuge = new Parachain({ @@ -403,33 +403,6 @@ export const equilibrium = new Parachain({ ws: 'wss://node.pol.equilibrium.io', }); -export const equilibriumAlphanet = new Parachain({ - assetsData: [ - { - asset: dev, - decimals: 9, - id: 1_735_159_154, - }, - { - asset: eq, - id: 25_969, - }, - { - asset: eqd, - id: 6_648_164, - }, - ], - ecosystem: Ecosystem.AlphanetRelay, - genesisHash: - '0x0ba4508078664cfd04f00bf17892dd1a0764ce61d90857f76c6a2ea61f008247', - isTestChain: true, - key: 'equilibrium-alphanet', - name: 'EquilibriumAlphanet', - parachainId: 2011, - ss58Format: 68, - ws: 'wss://devnet.equilab.io/alphanet/collator/api/wss', -}); - export const hydraDX = new Parachain({ assetsData: [ { @@ -597,7 +570,7 @@ export const kusama = new Parachain({ name: 'Kusama', parachainId: 0, ss58Format: 2, - ws: 'wss://kusama-rpc.polkadot.io', + ws: 'wss://kusama-rpc.dwellir.com', }); export const kusamaAssetHub = new Parachain({ @@ -628,24 +601,6 @@ export const kusamaAssetHub = new Parachain({ ws: 'wss://kusama-asset-hub-rpc.polkadot.io', }); -export const litentryAlphanet = new Parachain({ - assetsData: [ - { - asset: lit, - id: 'SelfReserve', - }, - ], - ecosystem: Ecosystem.AlphanetRelay, - genesisHash: - '0x4decfd421755d9008781d00ce40ea4cf47ec24a3717a34ca995126fc4a78c4f8', - isTestChain: true, - key: 'litentry-alphanet', - name: 'Litentry Alphanet', - parachainId: 2106, - ss58Format: 131, - ws: 'wss://moonbase-parachain-sg-0.litentry.io', -}); - export const litmus = new Parachain({ assetsData: [ { @@ -684,6 +639,27 @@ export const mangataKusama = new Parachain({ ws: 'wss://kusama-archive.mangata.online', }); +export const mantaParachain = new Parachain({ + assetsData: [ + { + asset: manta, + id: { MantaCurrency: 1 }, + }, + { + asset: glmr, + id: { MantaCurrency: 10 }, + }, + ], + ecosystem: Ecosystem.Polkadot, + genesisHash: + '0xf3c7ad88f6a80f366c4be216691411ef0622e8b809b1046ea297ef106058d4eb', + key: 'manta', + name: 'Manta', + parachainId: 2104, + ss58Format: 77, + ws: 'wss://ws.manta.systems', +}); + export const moonbaseAlpha = new EvmParachain({ assetsData: [ { @@ -699,24 +675,16 @@ export const moonbaseAlpha = new EvmParachain({ asset: atom, id: '244316754493307480955066032215622931381', }, - { - asset: auq, - id: '69536036667157951501899290870203586130', - }, + // { + // asset: auq, + // id: '69536036667157951501899290870203586130', + // }, { asset: dev, id: '0x0000000000000000000000000000000000000802', metadataId: 0, min: 0.01, }, - { - asset: eq, - id: '190590555344745888270686124937537713878', - }, - { - asset: eqd, - id: '187224307232923873519830480073807488153', - }, { asset: lit, id: '65216491554813189869575508812319036608', @@ -733,10 +701,6 @@ export const moonbaseAlpha = new EvmParachain({ asset: pica, id: '22417088946346045371238623691600461855', }, - { - asset: soon, - id: '205153165378836428058230526014907639736', - }, { asset: tt1, id: '156305701417244550631956600137082963628', @@ -858,6 +822,10 @@ export const moonbeam = new EvmParachain({ asset: ldot, id: '225719522181998468294117309041779353812', }, + { + asset: manta, + id: '166446646689194205559791995948102903873', + }, { asset: nodl, id: '309163521958167876851250718453738106865', @@ -1135,7 +1103,7 @@ export const parallel = new Parachain({ name: 'Parallel', parachainId: 2012, ss58Format: 172, - ws: 'wss://rpc.parallel.fi', + ws: 'wss://parallel-rpc.dwellir.com', }); export const parallelHeiko = new Parachain({ @@ -1286,7 +1254,7 @@ export const polkadot = new Parachain({ name: 'Polkadot', parachainId: 0, ss58Format: 0, - ws: 'wss://rpc.polkadot.io', + ws: 'wss://polkadot-rpc.dwellir.com', }); export const polkadotAssetHub = new Parachain({ @@ -1455,7 +1423,6 @@ export const chainsList: AnyChain[] = [ darwiniaCrab, darwiniaPangoro, equilibrium, - equilibriumAlphanet, hydraDX, integritee, interlay, @@ -1463,9 +1430,9 @@ export const chainsList: AnyChain[] = [ khala, kintsugi, kusama, - litentryAlphanet, litmus, mangataKusama, + mantaParachain, moonbaseAlpha, moonbaseBeta, moonbeam, diff --git a/packages/config/src/configs/equilibriumAlphanet.ts b/packages/config/src/configs/equilibriumAlphanet.ts deleted file mode 100644 index bc453de0..00000000 --- a/packages/config/src/configs/equilibriumAlphanet.ts +++ /dev/null @@ -1,56 +0,0 @@ -import { - BalanceBuilder, - ExtrinsicBuilder, - FeeBuilder, -} from '@moonbeam-network/xcm-builder'; -import { dev, eq, eqd } from '../assets'; -import { equilibriumAlphanet, moonbaseAlpha } from '../chains'; -import { AssetConfig } from '../types/AssetConfig'; -import { ChainConfig } from '../types/ChainConfig'; - -export const equilibriumAlphanetConfig = new ChainConfig({ - assets: [ - new AssetConfig({ - asset: eq, - balance: BalanceBuilder().substrate().system().accountEquilibrium(), - destination: moonbaseAlpha, - destinationFee: { - amount: FeeBuilder().assetManager().assetTypeUnitsPerSecond(), - asset: eq, - balance: BalanceBuilder().substrate().system().accountEquilibrium(), - }, - extrinsic: ExtrinsicBuilder().eqBalances().transferXcm(), - }), - new AssetConfig({ - asset: eqd, - balance: BalanceBuilder().substrate().system().accountEquilibrium(), - destination: moonbaseAlpha, - destinationFee: { - amount: FeeBuilder().assetManager().assetTypeUnitsPerSecond(), - asset: eq, - balance: BalanceBuilder().substrate().system().accountEquilibrium(), - }, - extrinsic: ExtrinsicBuilder().eqBalances().transferXcm(), - fee: { - asset: eq, - balance: BalanceBuilder().substrate().system().accountEquilibrium(), - }, - }), - new AssetConfig({ - asset: dev, - balance: BalanceBuilder().substrate().system().accountEquilibrium(), - destination: moonbaseAlpha, - destinationFee: { - amount: 0.00005, - asset: dev, - balance: BalanceBuilder().substrate().system().accountEquilibrium(), - }, - extrinsic: ExtrinsicBuilder().eqBalances().transferXcm(), - fee: { - asset: eq, - balance: BalanceBuilder().substrate().system().accountEquilibrium(), - }, - }), - ], - chain: equilibriumAlphanet, -}); diff --git a/packages/config/src/configs/index.ts b/packages/config/src/configs/index.ts index 1a09e5d9..0ece8b1b 100644 --- a/packages/config/src/configs/index.ts +++ b/packages/config/src/configs/index.ts @@ -13,7 +13,6 @@ import { darwiniaConfig } from './darwinia'; import { darwiniaCrabConfig } from './darwiniaCrab'; import { darwiniaPangoroConfig } from './darwiniaPangoro'; import { equilibriumConfig } from './equilibrium'; -import { equilibriumAlphanetConfig } from './equilibriumAlphanet'; import { hydraDxConfig } from './hydraDX'; import { integriteeConfig } from './integritee'; import { interlayConfig } from './interlay'; @@ -22,9 +21,9 @@ import { khalaConfig } from './khala'; import { kintsugiConfig } from './kintsugi'; import { kusamaConfig } from './kusama'; import { kusamaAssetHubConfig } from './kusamaAssetHub'; -import { litentryAlphanetConfig } from './litentryAlphanet'; import { litmusConfig } from './litmus'; import { mangataKusamaConfig } from './mangataKusama'; +import { mantaParachainConfig } from './mantaParachain'; import { moonbaseAlphaConfig } from './moonbaseAlpha'; import { moonbaseBetaConfig } from './moonbaseBeta'; import { moonbeamConfig } from './moonbeam'; @@ -61,7 +60,6 @@ export const chainsConfigList: ChainConfig[] = [ darwiniaConfig, darwiniaCrabConfig, darwiniaPangoroConfig, - equilibriumAlphanetConfig, equilibriumConfig, hydraDxConfig, integriteeConfig, @@ -70,9 +68,9 @@ export const chainsConfigList: ChainConfig[] = [ khalaConfig, kintsugiConfig, kusamaConfig, - litentryAlphanetConfig, litmusConfig, mangataKusamaConfig, + mantaParachainConfig, moonbaseAlphaConfig, moonbaseBetaConfig, moonbeamConfig, diff --git a/packages/config/src/configs/litentryAlphanet.ts b/packages/config/src/configs/litentryAlphanet.ts deleted file mode 100644 index 9d76b5a0..00000000 --- a/packages/config/src/configs/litentryAlphanet.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { - BalanceBuilder, - ExtrinsicBuilder, - FeeBuilder, -} from '@moonbeam-network/xcm-builder'; -import { lit } from '../assets'; -import { litentryAlphanet, moonbaseAlpha } from '../chains'; -import { AssetConfig } from '../types/AssetConfig'; -import { ChainConfig } from '../types/ChainConfig'; - -export const litentryAlphanetConfig = new ChainConfig({ - assets: [ - new AssetConfig({ - asset: lit, - balance: BalanceBuilder().substrate().system().account(), - destination: moonbaseAlpha, - destinationFee: { - amount: FeeBuilder().assetManager().assetTypeUnitsPerSecond(), - asset: lit, - balance: BalanceBuilder().substrate().system().account(), - }, - extrinsic: ExtrinsicBuilder().xTokens().transfer(), - }), - ], - chain: litentryAlphanet, -}); diff --git a/packages/config/src/configs/mantaParachain.ts b/packages/config/src/configs/mantaParachain.ts new file mode 100644 index 00000000..7d84709a --- /dev/null +++ b/packages/config/src/configs/mantaParachain.ts @@ -0,0 +1,43 @@ +import { + AssetMinBuilder, + BalanceBuilder, + ExtrinsicBuilder, + FeeBuilder, +} from '@moonbeam-network/xcm-builder'; +import { glmr, manta } from '../assets'; +import { mantaParachain, moonbeam } from '../chains'; +import { AssetConfig } from '../types/AssetConfig'; +import { ChainConfig } from '../types/ChainConfig'; + +export const mantaParachainConfig = new ChainConfig({ + assets: [ + new AssetConfig({ + asset: manta, + balance: BalanceBuilder().substrate().system().account(), + destination: moonbeam, + destinationFee: { + amount: FeeBuilder().assetManager().assetTypeUnitsPerSecond(), + asset: manta, + balance: BalanceBuilder().substrate().system().account(), + }, + extrinsic: ExtrinsicBuilder().xTokens().transfer(), + }), + new AssetConfig({ + asset: glmr, + balance: BalanceBuilder().substrate().assets().account(), + destination: moonbeam, + destinationFee: { + amount: 0.01, + asset: glmr, + balance: BalanceBuilder().substrate().assets().account(), + }, + extrinsic: ExtrinsicBuilder().xTokens().transfer(), + fee: { + asset: manta, + balance: BalanceBuilder().substrate().system().account(), + }, + min: AssetMinBuilder().assets().asset(), + }), + ], + chain: mantaParachain, +}); diff --git a/packages/config/src/configs/moonbaseAlpha.ts b/packages/config/src/configs/moonbaseAlpha.ts index dea9b312..b362fd1c 100644 --- a/packages/config/src/configs/moonbaseAlpha.ts +++ b/packages/config/src/configs/moonbaseAlpha.ts @@ -4,9 +4,6 @@ import { ampe, atom, dev, - eq, - eqd, - lit, otp, paring, pica, @@ -18,8 +15,6 @@ import { alphanetAssetHub, alphanetRelay, darwiniaPangoro, - equilibriumAlphanet, - litentryAlphanet, moonbaseAlpha, moonbaseBeta, originTrailAlphanet, @@ -32,17 +27,6 @@ import { ChainConfig } from '../types/ChainConfig'; export const moonbaseAlphaConfig = new ChainConfig({ assets: [ - new AssetConfig({ - asset: dev, - balance: BalanceBuilder().substrate().system().account(), - contract: ContractBuilder().Xtokens().transfer(), - destination: equilibriumAlphanet, - destinationFee: { - amount: 4, - asset: dev, - balance: BalanceBuilder().substrate().system().account(), - }, - }), new AssetConfig({ asset: dev, balance: BalanceBuilder().substrate().system().account(), @@ -132,51 +116,6 @@ export const moonbaseAlphaConfig = new ChainConfig({ balance: BalanceBuilder().substrate().system().account(), }, }), - new AssetConfig({ - asset: eq, - balance: BalanceBuilder().substrate().assets().account(), - contract: ContractBuilder().Xtokens().transfer(), - destination: equilibriumAlphanet, - destinationFee: { - amount: 14, - asset: eq, - balance: BalanceBuilder().substrate().assets().account(), - }, - fee: { - asset: dev, - balance: BalanceBuilder().substrate().system().account(), - }, - }), - new AssetConfig({ - asset: eqd, - balance: BalanceBuilder().substrate().assets().account(), - contract: ContractBuilder().Xtokens().transfer(), - destination: equilibriumAlphanet, - destinationFee: { - amount: 4, - asset: eqd, - balance: BalanceBuilder().substrate().assets().account(), - }, - fee: { - asset: dev, - balance: BalanceBuilder().substrate().system().account(), - }, - }), - new AssetConfig({ - asset: lit, - balance: BalanceBuilder().substrate().assets().account(), - contract: ContractBuilder().Xtokens().transfer(), - destination: litentryAlphanet, - destinationFee: { - amount: 0.032, - asset: lit, - balance: BalanceBuilder().substrate().assets().account(), - }, - fee: { - asset: dev, - balance: BalanceBuilder().substrate().system().account(), - }, - }), new AssetConfig({ asset: otp, balance: BalanceBuilder().substrate().assets().account(), diff --git a/packages/config/src/configs/moonbeam.ts b/packages/config/src/configs/moonbeam.ts index 3d9c281e..802a6937 100644 --- a/packages/config/src/configs/moonbeam.ts +++ b/packages/config/src/configs/moonbeam.ts @@ -15,6 +15,7 @@ import { ibtc, intr, ldot, + manta, nodl, otp, para, @@ -42,6 +43,7 @@ import { equilibrium, hydraDX, interlay, + mantaParachain, moonbeam, nodle, originTrail, @@ -124,6 +126,17 @@ export const moonbeamConfig = new ChainConfig({ balance: BalanceBuilder().substrate().system().account(), }, }), + new AssetConfig({ + asset: glmr, + balance: BalanceBuilder().substrate().system().account(), + contract: ContractBuilder().Xtokens().transfer(), + destination: mantaParachain, + destinationFee: { + amount: 0.1, + asset: glmr, + balance: BalanceBuilder().substrate().system().account(), + }, + }), new AssetConfig({ asset: glmr, balance: BalanceBuilder().substrate().system().account(), @@ -322,6 +335,21 @@ export const moonbeamConfig = new ChainConfig({ balance: BalanceBuilder().substrate().system().account(), }, }), + new AssetConfig({ + asset: manta, + balance: BalanceBuilder().substrate().assets().account(), + contract: ContractBuilder().Xtokens().transfer(), + destination: mantaParachain, + destinationFee: { + amount: 0.000001, + asset: manta, + balance: BalanceBuilder().substrate().assets().account(), + }, + fee: { + asset: glmr, + balance: BalanceBuilder().substrate().system().account(), + }, + }), new AssetConfig({ asset: nodl, balance: BalanceBuilder().substrate().assets().account(), diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.md index 1b9134ff..700c61a1 100644 --- a/packages/sdk/CHANGELOG.md +++ b/packages/sdk/CHANGELOG.md @@ -1,21 +1,72 @@ # @moonbeam-network/xcm-sdk +## 1.4.20 + +### Patch Changes + +- [#192](https://github.com/moonbeam-foundation/xcm-sdk/pull/192) [`0b3cb1d`](https://github.com/moonbeam-foundation/xcm-sdk/commit/0b3cb1db7897bec9bfd743fe3f8104e480500496) Thanks [@mmaurello](https://github.com/mmaurello)! - Manta - Moonbeam integration and change of repo url + +- Updated dependencies [[`c06ea35`](https://github.com/moonbeam-foundation/xcm-sdk/commit/c06ea353d373b78e85e7e676ae06ac7834e66e69), [`0b3cb1d`](https://github.com/moonbeam-foundation/xcm-sdk/commit/0b3cb1db7897bec9bfd743fe3f8104e480500496)]: + - @moonbeam-network/xcm-config@1.3.24 + - @moonbeam-network/xcm-builder@1.0.12 + - @moonbeam-network/xcm-types@1.0.3 + - @moonbeam-network/xcm-utils@1.0.4 + +## 1.4.19 + +### Patch Changes + +- Updated dependencies [[`1b09924`](https://github.com/moonbeam-foundation/xcm-sdk/commit/1b0992493f5afac24e7cdbfd907303f7d450860c)]: + - @moonbeam-network/xcm-config@1.3.23 + +## 1.4.18 + +### Patch Changes + +- Updated dependencies [[`f72cf9b`](https://github.com/moonbeam-foundation/xcm-sdk/commit/f72cf9b55e20c24294971a41ff7b3dc82d588126)]: + - @moonbeam-network/xcm-config@1.3.22 + +## 1.4.17 + +### Patch Changes + +- Updated dependencies [[`88b6322`](https://github.com/moonbeam-foundation/xcm-sdk/commit/88b6322327b30baa0fb2bf55f99497e2944c95ef)]: + - @moonbeam-network/xcm-builder@1.0.11 + - @moonbeam-network/xcm-types@1.0.2 + - @moonbeam-network/xcm-config@1.3.21 + +## 1.4.16 + +### Patch Changes + +- [#182](https://github.com/moonbeam-foundation/xcm-sdk/pull/182) [`6beaf73`](https://github.com/moonbeam-foundation/xcm-sdk/commit/6beaf73e39d339f6221b7346758822f63bbf99e3) Thanks [@mmaurello](https://github.com/mmaurello)! - Remove equilibrium alphanet config + +- Updated dependencies [[`6beaf73`](https://github.com/moonbeam-foundation/xcm-sdk/commit/6beaf73e39d339f6221b7346758822f63bbf99e3)]: + - @moonbeam-network/xcm-config@1.3.20 + +## 1.4.15 + +### Patch Changes + +- Updated dependencies [[`b4d988f`](https://github.com/moonbeam-foundation/xcm-sdk/commit/b4d988f5dc9d8c7dfd8067747234609e8701ef52)]: + - @moonbeam-network/xcm-config@1.3.19 + ## 1.4.14 ### Patch Changes -- [#176](https://github.com/PureStake/xcm-sdk/pull/176) [`c5dbedc`](https://github.com/PureStake/xcm-sdk/commit/c5dbedc1a1476a00d50e58b06a1c45470d766511) Thanks [@mmaurello](https://github.com/mmaurello)! - Pendulum integration with Moonbeam +- [#176](https://github.com/moonbeam-foundation/xcm-sdk/pull/176) [`c5dbedc`](https://github.com/moonbeam-foundation/xcm-sdk/commit/c5dbedc1a1476a00d50e58b06a1c45470d766511) Thanks [@mmaurello](https://github.com/mmaurello)! - Pendulum integration with Moonbeam -- Updated dependencies [[`c5dbedc`](https://github.com/PureStake/xcm-sdk/commit/c5dbedc1a1476a00d50e58b06a1c45470d766511)]: +- Updated dependencies [[`c5dbedc`](https://github.com/moonbeam-foundation/xcm-sdk/commit/c5dbedc1a1476a00d50e58b06a1c45470d766511)]: - @moonbeam-network/xcm-config@1.3.18 ## 1.4.13 ### Patch Changes -- [#174](https://github.com/PureStake/xcm-sdk/pull/174) [`dec7174`](https://github.com/PureStake/xcm-sdk/commit/dec71741caeb770e555a11daafcfba2144c74533) Thanks [@mmaurello](https://github.com/mmaurello)! - Pendulum integration with Moonbase +- [#174](https://github.com/moonbeam-foundation/xcm-sdk/pull/174) [`dec7174`](https://github.com/moonbeam-foundation/xcm-sdk/commit/dec71741caeb770e555a11daafcfba2144c74533) Thanks [@mmaurello](https://github.com/mmaurello)! - Pendulum integration with Moonbase -- Updated dependencies [[`dec7174`](https://github.com/PureStake/xcm-sdk/commit/dec71741caeb770e555a11daafcfba2144c74533)]: +- Updated dependencies [[`dec7174`](https://github.com/moonbeam-foundation/xcm-sdk/commit/dec71741caeb770e555a11daafcfba2144c74533)]: - @moonbeam-network/xcm-builder@1.0.10 - @moonbeam-network/xcm-config@1.3.17 @@ -23,36 +74,36 @@ ### Patch Changes -- [#172](https://github.com/PureStake/xcm-sdk/pull/172) [`701afd5`](https://github.com/PureStake/xcm-sdk/commit/701afd5ecca0b325e50537b0c142477f07947baa) Thanks [@mmaurello](https://github.com/mmaurello)! - Subsocial integration with Moonbeam +- [#172](https://github.com/moonbeam-foundation/xcm-sdk/pull/172) [`701afd5`](https://github.com/moonbeam-foundation/xcm-sdk/commit/701afd5ecca0b325e50537b0c142477f07947baa) Thanks [@mmaurello](https://github.com/mmaurello)! - Subsocial integration with Moonbeam -- Updated dependencies [[`701afd5`](https://github.com/PureStake/xcm-sdk/commit/701afd5ecca0b325e50537b0c142477f07947baa)]: +- Updated dependencies [[`701afd5`](https://github.com/moonbeam-foundation/xcm-sdk/commit/701afd5ecca0b325e50537b0c142477f07947baa)]: - @moonbeam-network/xcm-config@1.3.16 ## 1.4.11 ### Patch Changes -- [#170](https://github.com/PureStake/xcm-sdk/pull/170) [`ac043e2`](https://github.com/PureStake/xcm-sdk/commit/ac043e220535a049db9fc72533127c9b3619b0d3) Thanks [@mmaurello](https://github.com/mmaurello)! - Acala LDOT integration with Moonbeam +- [#170](https://github.com/moonbeam-foundation/xcm-sdk/pull/170) [`ac043e2`](https://github.com/moonbeam-foundation/xcm-sdk/commit/ac043e220535a049db9fc72533127c9b3619b0d3) Thanks [@mmaurello](https://github.com/mmaurello)! - Acala LDOT integration with Moonbeam -- Updated dependencies [[`ac043e2`](https://github.com/PureStake/xcm-sdk/commit/ac043e220535a049db9fc72533127c9b3619b0d3)]: +- Updated dependencies [[`ac043e2`](https://github.com/moonbeam-foundation/xcm-sdk/commit/ac043e220535a049db9fc72533127c9b3619b0d3)]: - @moonbeam-network/xcm-config@1.3.15 ## 1.4.10 ### Patch Changes -- [#168](https://github.com/PureStake/xcm-sdk/pull/168) [`c45489f`](https://github.com/PureStake/xcm-sdk/commit/c45489fed7512d1f71c3032ed9e10ae0467a9867) Thanks [@mmaurello](https://github.com/mmaurello)! - Picasso integration with Moonriver +- [#168](https://github.com/moonbeam-foundation/xcm-sdk/pull/168) [`c45489f`](https://github.com/moonbeam-foundation/xcm-sdk/commit/c45489fed7512d1f71c3032ed9e10ae0467a9867) Thanks [@mmaurello](https://github.com/mmaurello)! - Picasso integration with Moonriver -- Updated dependencies [[`c45489f`](https://github.com/PureStake/xcm-sdk/commit/c45489fed7512d1f71c3032ed9e10ae0467a9867)]: +- Updated dependencies [[`c45489f`](https://github.com/moonbeam-foundation/xcm-sdk/commit/c45489fed7512d1f71c3032ed9e10ae0467a9867)]: - @moonbeam-network/xcm-config@1.3.14 ## 1.4.9 ### Patch Changes -- [#166](https://github.com/PureStake/xcm-sdk/pull/166) [`e4989bb`](https://github.com/PureStake/xcm-sdk/commit/e4989bb4eb525dc5d9515e2b08cb0820956d7826) Thanks [@mmaurello](https://github.com/mmaurello)! - Change Astar and Shiden pallet and fix Any keyword error +- [#166](https://github.com/moonbeam-foundation/xcm-sdk/pull/166) [`e4989bb`](https://github.com/moonbeam-foundation/xcm-sdk/commit/e4989bb4eb525dc5d9515e2b08cb0820956d7826) Thanks [@mmaurello](https://github.com/mmaurello)! - Change Astar and Shiden pallet and fix Any keyword error -- Updated dependencies [[`e4989bb`](https://github.com/PureStake/xcm-sdk/commit/e4989bb4eb525dc5d9515e2b08cb0820956d7826), [`df29a0b`](https://github.com/PureStake/xcm-sdk/commit/df29a0b5b92fdbaa18e435b7aecef9e6d9c6087e)]: +- Updated dependencies [[`e4989bb`](https://github.com/moonbeam-foundation/xcm-sdk/commit/e4989bb4eb525dc5d9515e2b08cb0820956d7826), [`df29a0b`](https://github.com/moonbeam-foundation/xcm-sdk/commit/df29a0b5b92fdbaa18e435b7aecef9e6d9c6087e)]: - @moonbeam-network/xcm-builder@1.0.9 - @moonbeam-network/xcm-config@1.3.13 @@ -60,69 +111,69 @@ ### Patch Changes -- [#163](https://github.com/PureStake/xcm-sdk/pull/163) [`790cb28`](https://github.com/PureStake/xcm-sdk/commit/790cb286983e47d947d4911e667d9eb6fdd57f84) Thanks [@Rihyx](https://github.com/Rihyx)! - Update keywords +- [#163](https://github.com/moonbeam-foundation/xcm-sdk/pull/163) [`790cb28`](https://github.com/moonbeam-foundation/xcm-sdk/commit/790cb286983e47d947d4911e667d9eb6fdd57f84) Thanks [@Rihyx](https://github.com/Rihyx)! - Update keywords ## 1.4.7 ### Patch Changes -- [#160](https://github.com/PureStake/xcm-sdk/pull/160) [`4035acc`](https://github.com/PureStake/xcm-sdk/commit/4035acc82dd22fa571cb1ea5c2822347d1a85b7c) Thanks [@mmaurello](https://github.com/mmaurello)! - USDC asset hub integration and vDOT paying for fees +- [#160](https://github.com/moonbeam-foundation/xcm-sdk/pull/160) [`4035acc`](https://github.com/moonbeam-foundation/xcm-sdk/commit/4035acc82dd22fa571cb1ea5c2822347d1a85b7c) Thanks [@mmaurello](https://github.com/mmaurello)! - USDC asset hub integration and vDOT paying for fees -- Updated dependencies [[`4035acc`](https://github.com/PureStake/xcm-sdk/commit/4035acc82dd22fa571cb1ea5c2822347d1a85b7c)]: +- Updated dependencies [[`4035acc`](https://github.com/moonbeam-foundation/xcm-sdk/commit/4035acc82dd22fa571cb1ea5c2822347d1a85b7c)]: - @moonbeam-network/xcm-config@1.3.12 ## 1.4.6 ### Patch Changes -- [#152](https://github.com/PureStake/xcm-sdk/pull/152) [`5a50724`](https://github.com/PureStake/xcm-sdk/commit/5a5072453e65d0012ce9826fb1b3b10062141dca) Thanks [@mmaurello](https://github.com/mmaurello)! - Zeitgeist integration with Moonbeam +- [#152](https://github.com/moonbeam-foundation/xcm-sdk/pull/152) [`5a50724`](https://github.com/moonbeam-foundation/xcm-sdk/commit/5a5072453e65d0012ce9826fb1b3b10062141dca) Thanks [@mmaurello](https://github.com/mmaurello)! - Zeitgeist integration with Moonbeam -- Updated dependencies [[`5a50724`](https://github.com/PureStake/xcm-sdk/commit/5a5072453e65d0012ce9826fb1b3b10062141dca)]: +- Updated dependencies [[`5a50724`](https://github.com/moonbeam-foundation/xcm-sdk/commit/5a5072453e65d0012ce9826fb1b3b10062141dca)]: - @moonbeam-network/xcm-config@1.3.11 ## 1.4.5 ### Patch Changes -- [#157](https://github.com/PureStake/xcm-sdk/pull/157) [`7103bb0`](https://github.com/PureStake/xcm-sdk/commit/7103bb0cacf9e448968cd9aafd0e512b82fa348b) Thanks [@mmaurello](https://github.com/mmaurello)! - Revert decimals change in destination fee +- [#157](https://github.com/moonbeam-foundation/xcm-sdk/pull/157) [`7103bb0`](https://github.com/moonbeam-foundation/xcm-sdk/commit/7103bb0cacf9e448968cd9aafd0e512b82fa348b) Thanks [@mmaurello](https://github.com/mmaurello)! - Revert decimals change in destination fee -- Updated dependencies [[`7103bb0`](https://github.com/PureStake/xcm-sdk/commit/7103bb0cacf9e448968cd9aafd0e512b82fa348b)]: +- Updated dependencies [[`7103bb0`](https://github.com/moonbeam-foundation/xcm-sdk/commit/7103bb0cacf9e448968cd9aafd0e512b82fa348b)]: - @moonbeam-network/xcm-config@1.3.10 ## 1.4.4 ### Patch Changes -- [#155](https://github.com/PureStake/xcm-sdk/pull/155) [`a6f48df`](https://github.com/PureStake/xcm-sdk/commit/a6f48df94bd662c120676c8d72a697ef59181220) Thanks [@mmaurello](https://github.com/mmaurello)! - USDT Wormhole integration +- [#155](https://github.com/moonbeam-foundation/xcm-sdk/pull/155) [`a6f48df`](https://github.com/moonbeam-foundation/xcm-sdk/commit/a6f48df94bd662c120676c8d72a697ef59181220) Thanks [@mmaurello](https://github.com/mmaurello)! - USDT Wormhole integration -- Updated dependencies [[`a6f48df`](https://github.com/PureStake/xcm-sdk/commit/a6f48df94bd662c120676c8d72a697ef59181220)]: +- Updated dependencies [[`a6f48df`](https://github.com/moonbeam-foundation/xcm-sdk/commit/a6f48df94bd662c120676c8d72a697ef59181220)]: - @moonbeam-network/xcm-config@1.3.9 ## 1.4.3 ### Patch Changes -- [#153](https://github.com/PureStake/xcm-sdk/pull/153) [`de87e3e`](https://github.com/PureStake/xcm-sdk/commit/de87e3e4b2817080dcb60495cbcc70a8bef47a69) Thanks [@mmaurello](https://github.com/mmaurello)! - Change how we get decimals from assets in destination and change vDOT transfers paying asset +- [#153](https://github.com/moonbeam-foundation/xcm-sdk/pull/153) [`de87e3e`](https://github.com/moonbeam-foundation/xcm-sdk/commit/de87e3e4b2817080dcb60495cbcc70a8bef47a69) Thanks [@mmaurello](https://github.com/mmaurello)! - Change how we get decimals from assets in destination and change vDOT transfers paying asset -- Updated dependencies [[`de87e3e`](https://github.com/PureStake/xcm-sdk/commit/de87e3e4b2817080dcb60495cbcc70a8bef47a69)]: +- Updated dependencies [[`de87e3e`](https://github.com/moonbeam-foundation/xcm-sdk/commit/de87e3e4b2817080dcb60495cbcc70a8bef47a69)]: - @moonbeam-network/xcm-config@1.3.8 ## 1.4.2 ### Patch Changes -- [#149](https://github.com/PureStake/xcm-sdk/pull/149) [`6c208b7`](https://github.com/PureStake/xcm-sdk/commit/6c208b71d25b0fc44bca93ab3ef9cc1e253e57df) Thanks [@mmaurello](https://github.com/mmaurello)! - Change OnFinality endpoints +- [#149](https://github.com/moonbeam-foundation/xcm-sdk/pull/149) [`6c208b7`](https://github.com/moonbeam-foundation/xcm-sdk/commit/6c208b71d25b0fc44bca93ab3ef9cc1e253e57df) Thanks [@mmaurello](https://github.com/mmaurello)! - Change OnFinality endpoints -- Updated dependencies [[`6c208b7`](https://github.com/PureStake/xcm-sdk/commit/6c208b71d25b0fc44bca93ab3ef9cc1e253e57df)]: +- Updated dependencies [[`6c208b7`](https://github.com/moonbeam-foundation/xcm-sdk/commit/6c208b71d25b0fc44bca93ab3ef9cc1e253e57df)]: - @moonbeam-network/xcm-config@1.3.7 ## 1.4.1 ### Patch Changes -- [#148](https://github.com/PureStake/xcm-sdk/pull/148) [`3f071c4`](https://github.com/PureStake/xcm-sdk/commit/3f071c42555e9694b090b2281eb9d67b695aa750) Thanks [@mmaurello](https://github.com/mmaurello)! - Picasso integration with Moonbase and dependency updates +- [#148](https://github.com/moonbeam-foundation/xcm-sdk/pull/148) [`3f071c4`](https://github.com/moonbeam-foundation/xcm-sdk/commit/3f071c42555e9694b090b2281eb9d67b695aa750) Thanks [@mmaurello](https://github.com/mmaurello)! - Picasso integration with Moonbase and dependency updates -- Updated dependencies [[`3f071c4`](https://github.com/PureStake/xcm-sdk/commit/3f071c42555e9694b090b2281eb9d67b695aa750), [`cd5da97`](https://github.com/PureStake/xcm-sdk/commit/cd5da97e606e94f0ec0d2faa17ac44297c5ee98e), [`ea6cd77`](https://github.com/PureStake/xcm-sdk/commit/ea6cd777314667029edcedff8fd3b1401a34e84d)]: +- Updated dependencies [[`3f071c4`](https://github.com/moonbeam-foundation/xcm-sdk/commit/3f071c42555e9694b090b2281eb9d67b695aa750), [`cd5da97`](https://github.com/moonbeam-foundation/xcm-sdk/commit/cd5da97e606e94f0ec0d2faa17ac44297c5ee98e), [`ea6cd77`](https://github.com/moonbeam-foundation/xcm-sdk/commit/ea6cd777314667029edcedff8fd3b1401a34e84d)]: - @moonbeam-network/xcm-builder@1.0.8 - @moonbeam-network/xcm-config@1.3.6 - @moonbeam-network/xcm-utils@1.0.3 @@ -131,13 +182,13 @@ ### Minor Changes -- [#136](https://github.com/PureStake/xcm-sdk/pull/136) [`02dafc0`](https://github.com/PureStake/xcm-sdk/commit/02dafc0977874c081e41f4685d7da7bedb81b7af) Thanks [@nohaapav](https://github.com/nohaapav)! - Sopport optional EvmSigner, Fix: PolkadotService asset get (not reflecting config service) +- [#136](https://github.com/moonbeam-foundation/xcm-sdk/pull/136) [`02dafc0`](https://github.com/moonbeam-foundation/xcm-sdk/commit/02dafc0977874c081e41f4685d7da7bedb81b7af) Thanks [@nohaapav](https://github.com/nohaapav)! - Sopport optional EvmSigner, Fix: PolkadotService asset get (not reflecting config service) ### Patch Changes -- [#144](https://github.com/PureStake/xcm-sdk/pull/144) [`8c16492`](https://github.com/PureStake/xcm-sdk/commit/8c16492f2cceef0e1ebc8a9ba70452e644efd135) Thanks [@mmaurello](https://github.com/mmaurello)! - FIL integration and EQ fix +- [#144](https://github.com/moonbeam-foundation/xcm-sdk/pull/144) [`8c16492`](https://github.com/moonbeam-foundation/xcm-sdk/commit/8c16492f2cceef0e1ebc8a9ba70452e644efd135) Thanks [@mmaurello](https://github.com/mmaurello)! - FIL integration and EQ fix -- Updated dependencies [[`8c16492`](https://github.com/PureStake/xcm-sdk/commit/8c16492f2cceef0e1ebc8a9ba70452e644efd135)]: +- Updated dependencies [[`8c16492`](https://github.com/moonbeam-foundation/xcm-sdk/commit/8c16492f2cceef0e1ebc8a9ba70452e644efd135)]: - @moonbeam-network/xcm-builder@1.0.7 - @moonbeam-network/xcm-config@1.3.5 @@ -145,36 +196,36 @@ ### Patch Changes -- [#141](https://github.com/PureStake/xcm-sdk/pull/141) [`de2a0bb`](https://github.com/PureStake/xcm-sdk/commit/de2a0bba3a3af7fb1c67d23d4ead3915b9513f2f) Thanks [@mmaurello](https://github.com/mmaurello)! - change robonomics wss endpoint +- [#141](https://github.com/moonbeam-foundation/xcm-sdk/pull/141) [`de2a0bb`](https://github.com/moonbeam-foundation/xcm-sdk/commit/de2a0bba3a3af7fb1c67d23d4ead3915b9513f2f) Thanks [@mmaurello](https://github.com/mmaurello)! - change robonomics wss endpoint -- Updated dependencies [[`de2a0bb`](https://github.com/PureStake/xcm-sdk/commit/de2a0bba3a3af7fb1c67d23d4ead3915b9513f2f)]: +- Updated dependencies [[`de2a0bb`](https://github.com/moonbeam-foundation/xcm-sdk/commit/de2a0bba3a3af7fb1c67d23d4ead3915b9513f2f)]: - @moonbeam-network/xcm-config@1.3.4 ## 1.3.3 ### Patch Changes -- [#139](https://github.com/PureStake/xcm-sdk/pull/139) [`cbd30b1`](https://github.com/PureStake/xcm-sdk/commit/cbd30b1d4e37ff877e4e27121491ab086a985df0) Thanks [@mmaurello](https://github.com/mmaurello)! - OriginTrail integration with Moonbeam - remove Nodle Eden integration with Moonbase +- [#139](https://github.com/moonbeam-foundation/xcm-sdk/pull/139) [`cbd30b1`](https://github.com/moonbeam-foundation/xcm-sdk/commit/cbd30b1d4e37ff877e4e27121491ab086a985df0) Thanks [@mmaurello](https://github.com/mmaurello)! - OriginTrail integration with Moonbeam - remove Nodle Eden integration with Moonbase -- Updated dependencies [[`cbd30b1`](https://github.com/PureStake/xcm-sdk/commit/cbd30b1d4e37ff877e4e27121491ab086a985df0)]: +- Updated dependencies [[`cbd30b1`](https://github.com/moonbeam-foundation/xcm-sdk/commit/cbd30b1d4e37ff877e4e27121491ab086a985df0)]: - @moonbeam-network/xcm-config@1.3.3 ## 1.3.2 ### Patch Changes -- [#137](https://github.com/PureStake/xcm-sdk/pull/137) [`3fd0cb4`](https://github.com/PureStake/xcm-sdk/commit/3fd0cb4cd23c04fcc8bcd3650d8964022193d6b4) Thanks [@mmaurello](https://github.com/mmaurello)! - Integrate Bifrost LSD assets +- [#137](https://github.com/moonbeam-foundation/xcm-sdk/pull/137) [`3fd0cb4`](https://github.com/moonbeam-foundation/xcm-sdk/commit/3fd0cb4cd23c04fcc8bcd3650d8964022193d6b4) Thanks [@mmaurello](https://github.com/mmaurello)! - Integrate Bifrost LSD assets -- Updated dependencies [[`3fd0cb4`](https://github.com/PureStake/xcm-sdk/commit/3fd0cb4cd23c04fcc8bcd3650d8964022193d6b4)]: +- Updated dependencies [[`3fd0cb4`](https://github.com/moonbeam-foundation/xcm-sdk/commit/3fd0cb4cd23c04fcc8bcd3650d8964022193d6b4)]: - @moonbeam-network/xcm-config@1.3.2 ## 1.3.1 ### Patch Changes -- [#132](https://github.com/PureStake/xcm-sdk/pull/132) [`69833f3`](https://github.com/PureStake/xcm-sdk/commit/69833f3ab36f6c58f16ec167b22fb6985fbe9582) Thanks [@mmaurello](https://github.com/mmaurello)! - OriginTrail integration with Moonabse +- [#132](https://github.com/moonbeam-foundation/xcm-sdk/pull/132) [`69833f3`](https://github.com/moonbeam-foundation/xcm-sdk/commit/69833f3ab36f6c58f16ec167b22fb6985fbe9582) Thanks [@mmaurello](https://github.com/mmaurello)! - OriginTrail integration with Moonabse -- Updated dependencies [[`69833f3`](https://github.com/PureStake/xcm-sdk/commit/69833f3ab36f6c58f16ec167b22fb6985fbe9582)]: +- Updated dependencies [[`69833f3`](https://github.com/moonbeam-foundation/xcm-sdk/commit/69833f3ab36f6c58f16ec167b22fb6985fbe9582)]: - @moonbeam-network/xcm-builder@1.0.6 - @moonbeam-network/xcm-config@1.3.1 @@ -182,74 +233,74 @@ ### Minor Changes -- [#131](https://github.com/PureStake/xcm-sdk/pull/131) [`63d81d6`](https://github.com/PureStake/xcm-sdk/commit/63d81d64578deb4b415138bfc7809de79a8c80de) Thanks [@mmaurello](https://github.com/mmaurello)! - Allow viem Wallet Client as signer +- [#131](https://github.com/moonbeam-foundation/xcm-sdk/pull/131) [`63d81d6`](https://github.com/moonbeam-foundation/xcm-sdk/commit/63d81d64578deb4b415138bfc7809de79a8c80de) Thanks [@mmaurello](https://github.com/mmaurello)! - Allow viem Wallet Client as signer ### Patch Changes -- Updated dependencies [[`63d81d6`](https://github.com/PureStake/xcm-sdk/commit/63d81d64578deb4b415138bfc7809de79a8c80de)]: +- Updated dependencies [[`63d81d6`](https://github.com/moonbeam-foundation/xcm-sdk/commit/63d81d64578deb4b415138bfc7809de79a8c80de)]: - @moonbeam-network/xcm-config@1.3.0 ## 1.2.0 ### Minor Changes -- [#124](https://github.com/PureStake/xcm-sdk/pull/124) [`bda7709`](https://github.com/PureStake/xcm-sdk/commit/bda77096dca9ac1f29a852d938acd9962d45ee80) Thanks [@nohaapav](https://github.com/nohaapav)! - Introduce config service to support mutability of static xcm config +- [#124](https://github.com/moonbeam-foundation/xcm-sdk/pull/124) [`bda7709`](https://github.com/moonbeam-foundation/xcm-sdk/commit/bda77096dca9ac1f29a852d938acd9962d45ee80) Thanks [@nohaapav](https://github.com/nohaapav)! - Introduce config service to support mutability of static xcm config ### Patch Changes -- Updated dependencies [[`bda7709`](https://github.com/PureStake/xcm-sdk/commit/bda77096dca9ac1f29a852d938acd9962d45ee80)]: +- Updated dependencies [[`bda7709`](https://github.com/moonbeam-foundation/xcm-sdk/commit/bda77096dca9ac1f29a852d938acd9962d45ee80)]: - @moonbeam-network/xcm-config@1.2.0 ## 1.1.0 ### Minor Changes -- [#127](https://github.com/PureStake/xcm-sdk/pull/127) [`876c5eb`](https://github.com/PureStake/xcm-sdk/commit/876c5eb937b1b0f44943a0fee8c0accb19f3747d) Thanks [@mmaurello](https://github.com/mmaurello)! - Return destination fee balance object for controlling enough balance +- [#127](https://github.com/moonbeam-foundation/xcm-sdk/pull/127) [`876c5eb`](https://github.com/moonbeam-foundation/xcm-sdk/commit/876c5eb937b1b0f44943a0fee8c0accb19f3747d) Thanks [@mmaurello](https://github.com/mmaurello)! - Return destination fee balance object for controlling enough balance ### Patch Changes -- Updated dependencies [[`876c5eb`](https://github.com/PureStake/xcm-sdk/commit/876c5eb937b1b0f44943a0fee8c0accb19f3747d)]: +- Updated dependencies [[`876c5eb`](https://github.com/moonbeam-foundation/xcm-sdk/commit/876c5eb937b1b0f44943a0fee8c0accb19f3747d)]: - @moonbeam-network/xcm-config@1.1.0 ## 1.0.12 ### Patch Changes -- Updated dependencies [[`9d7146e`](https://github.com/PureStake/xcm-sdk/commit/9d7146e674688640476e33dac70210589446e727)]: +- Updated dependencies [[`9d7146e`](https://github.com/moonbeam-foundation/xcm-sdk/commit/9d7146e674688640476e33dac70210589446e727)]: - @moonbeam-network/xcm-config@1.0.12 ## 1.0.11 ### Patch Changes -- Updated dependencies [[`220878d`](https://github.com/PureStake/xcm-sdk/commit/220878d74d492f41c998372b7ed9a43d99e1f4da)]: +- Updated dependencies [[`220878d`](https://github.com/moonbeam-foundation/xcm-sdk/commit/220878d74d492f41c998372b7ed9a43d99e1f4da)]: - @moonbeam-network/xcm-config@1.0.11 ## 1.0.10 ### Patch Changes -- [#118](https://github.com/PureStake/xcm-sdk/pull/118) [`911d03d`](https://github.com/PureStake/xcm-sdk/commit/911d03dd3e1e5e3e7abe5ea43f4d0cd7f5a73e83) Thanks [@mmaurello](https://github.com/mmaurello)! - Integrate Wormhole ERC20 tokens +- [#118](https://github.com/moonbeam-foundation/xcm-sdk/pull/118) [`911d03d`](https://github.com/moonbeam-foundation/xcm-sdk/commit/911d03dd3e1e5e3e7abe5ea43f4d0cd7f5a73e83) Thanks [@mmaurello](https://github.com/mmaurello)! - Integrate Wormhole ERC20 tokens -- Updated dependencies [[`911d03d`](https://github.com/PureStake/xcm-sdk/commit/911d03dd3e1e5e3e7abe5ea43f4d0cd7f5a73e83)]: +- Updated dependencies [[`911d03d`](https://github.com/moonbeam-foundation/xcm-sdk/commit/911d03dd3e1e5e3e7abe5ea43f4d0cd7f5a73e83)]: - @moonbeam-network/xcm-config@1.0.10 ## 1.0.9 ### Patch Changes -- [#116](https://github.com/PureStake/xcm-sdk/pull/116) [`8105b09`](https://github.com/PureStake/xcm-sdk/commit/8105b094737d75f11bf9baa9083d0986d78242c1) Thanks [@mmaurello](https://github.com/mmaurello)! - Nodle integration with moonbeam - change aUSD name +- [#116](https://github.com/moonbeam-foundation/xcm-sdk/pull/116) [`8105b09`](https://github.com/moonbeam-foundation/xcm-sdk/commit/8105b094737d75f11bf9baa9083d0986d78242c1) Thanks [@mmaurello](https://github.com/mmaurello)! - Nodle integration with moonbeam - change aUSD name -- Updated dependencies [[`8105b09`](https://github.com/PureStake/xcm-sdk/commit/8105b094737d75f11bf9baa9083d0986d78242c1)]: +- Updated dependencies [[`8105b09`](https://github.com/moonbeam-foundation/xcm-sdk/commit/8105b094737d75f11bf9baa9083d0986d78242c1)]: - @moonbeam-network/xcm-config@1.0.9 ## 1.0.8 ### Patch Changes -- [#112](https://github.com/PureStake/xcm-sdk/pull/112) [`697bdbb`](https://github.com/PureStake/xcm-sdk/commit/697bdbbf10e569499f9e10dff0bb3173de01d458) Thanks [@ekenigs](https://github.com/ekenigs)! - ERC20 Alan and DEV tokens from Moonbase Alpha to Beta +- [#112](https://github.com/moonbeam-foundation/xcm-sdk/pull/112) [`697bdbb`](https://github.com/moonbeam-foundation/xcm-sdk/commit/697bdbbf10e569499f9e10dff0bb3173de01d458) Thanks [@ekenigs](https://github.com/ekenigs)! - ERC20 Alan and DEV tokens from Moonbase Alpha to Beta -- Updated dependencies [[`697bdbb`](https://github.com/PureStake/xcm-sdk/commit/697bdbbf10e569499f9e10dff0bb3173de01d458)]: +- Updated dependencies [[`697bdbb`](https://github.com/moonbeam-foundation/xcm-sdk/commit/697bdbbf10e569499f9e10dff0bb3173de01d458)]: - @moonbeam-network/xcm-builder@1.0.5 - @moonbeam-network/xcm-config@1.0.8 - @moonbeam-network/xcm-utils@1.0.2 @@ -258,18 +309,18 @@ ### Patch Changes -- [#110](https://github.com/PureStake/xcm-sdk/pull/110) [`307f272`](https://github.com/PureStake/xcm-sdk/commit/307f272bbda95add5f986157795cd9b52c347e32) Thanks [@mmaurello](https://github.com/mmaurello)! - Turing integration with Moonriver +- [#110](https://github.com/moonbeam-foundation/xcm-sdk/pull/110) [`307f272`](https://github.com/moonbeam-foundation/xcm-sdk/commit/307f272bbda95add5f986157795cd9b52c347e32) Thanks [@mmaurello](https://github.com/mmaurello)! - Turing integration with Moonriver -- Updated dependencies [[`307f272`](https://github.com/PureStake/xcm-sdk/commit/307f272bbda95add5f986157795cd9b52c347e32)]: +- Updated dependencies [[`307f272`](https://github.com/moonbeam-foundation/xcm-sdk/commit/307f272bbda95add5f986157795cd9b52c347e32)]: - @moonbeam-network/xcm-config@1.0.7 ## 1.0.6 ### Patch Changes -- [#108](https://github.com/PureStake/xcm-sdk/pull/108) [`dcee04b`](https://github.com/PureStake/xcm-sdk/commit/dcee04be5df5c90027534a37e40e459ae0a14fa2) Thanks [@mmaurello](https://github.com/mmaurello)! - Change Statemint/Statemine names to Asset Hub +- [#108](https://github.com/moonbeam-foundation/xcm-sdk/pull/108) [`dcee04b`](https://github.com/moonbeam-foundation/xcm-sdk/commit/dcee04be5df5c90027534a37e40e459ae0a14fa2) Thanks [@mmaurello](https://github.com/mmaurello)! - Change Statemint/Statemine names to Asset Hub -- Updated dependencies [[`dcee04b`](https://github.com/PureStake/xcm-sdk/commit/dcee04be5df5c90027534a37e40e459ae0a14fa2)]: +- Updated dependencies [[`dcee04b`](https://github.com/moonbeam-foundation/xcm-sdk/commit/dcee04be5df5c90027534a37e40e459ae0a14fa2)]: - @moonbeam-network/xcm-builder@1.0.4 - @moonbeam-network/xcm-config@1.0.6 @@ -277,18 +328,18 @@ ### Patch Changes -- [#106](https://github.com/PureStake/xcm-sdk/pull/106) [`2c0251d`](https://github.com/PureStake/xcm-sdk/commit/2c0251d8c24c7025099299e150a1fccebde53d1e) Thanks [@mmaurello](https://github.com/mmaurello)! - Centrifuge integration with Moonebeam +- [#106](https://github.com/moonbeam-foundation/xcm-sdk/pull/106) [`2c0251d`](https://github.com/moonbeam-foundation/xcm-sdk/commit/2c0251d8c24c7025099299e150a1fccebde53d1e) Thanks [@mmaurello](https://github.com/mmaurello)! - Centrifuge integration with Moonebeam -- Updated dependencies [[`2c0251d`](https://github.com/PureStake/xcm-sdk/commit/2c0251d8c24c7025099299e150a1fccebde53d1e)]: +- Updated dependencies [[`2c0251d`](https://github.com/moonbeam-foundation/xcm-sdk/commit/2c0251d8c24c7025099299e150a1fccebde53d1e)]: - @moonbeam-network/xcm-config@1.0.5 ## 1.0.4 ### Patch Changes -- [#104](https://github.com/PureStake/xcm-sdk/pull/104) [`f1fc312`](https://github.com/PureStake/xcm-sdk/commit/f1fc312d77e8d579e40e48e24f3c139599bf74ca) Thanks [@mmaurello](https://github.com/mmaurello)! - Turing network integration with Moonbase Alpha +- [#104](https://github.com/moonbeam-foundation/xcm-sdk/pull/104) [`f1fc312`](https://github.com/moonbeam-foundation/xcm-sdk/commit/f1fc312d77e8d579e40e48e24f3c139599bf74ca) Thanks [@mmaurello](https://github.com/mmaurello)! - Turing network integration with Moonbase Alpha -- Updated dependencies [[`f1fc312`](https://github.com/PureStake/xcm-sdk/commit/f1fc312d77e8d579e40e48e24f3c139599bf74ca)]: +- Updated dependencies [[`f1fc312`](https://github.com/moonbeam-foundation/xcm-sdk/commit/f1fc312d77e8d579e40e48e24f3c139599bf74ca)]: - @moonbeam-network/xcm-builder@1.0.3 - @moonbeam-network/xcm-config@1.0.4 @@ -296,16 +347,16 @@ ### Patch Changes -- Updated dependencies [[`934f976`](https://github.com/PureStake/xcm-sdk/commit/934f976f53a32e3ee10aa011cd3622d70bc3afb3)]: +- Updated dependencies [[`934f976`](https://github.com/moonbeam-foundation/xcm-sdk/commit/934f976f53a32e3ee10aa011cd3622d70bc3afb3)]: - @moonbeam-network/xcm-config@1.0.3 ## 1.0.2 ### Patch Changes -- [#98](https://github.com/PureStake/xcm-sdk/pull/98) [`1031601`](https://github.com/PureStake/xcm-sdk/commit/1031601e9706fefd8edf00d9b68d224fd55cf357) Thanks [@ekenigs](https://github.com/ekenigs)! - Changed SDK packages deps to 1.x +- [#98](https://github.com/moonbeam-foundation/xcm-sdk/pull/98) [`1031601`](https://github.com/moonbeam-foundation/xcm-sdk/commit/1031601e9706fefd8edf00d9b68d224fd55cf357) Thanks [@ekenigs](https://github.com/ekenigs)! - Changed SDK packages deps to 1.x -- Updated dependencies [[`1031601`](https://github.com/PureStake/xcm-sdk/commit/1031601e9706fefd8edf00d9b68d224fd55cf357), [`bb54d40`](https://github.com/PureStake/xcm-sdk/commit/bb54d40ba72a9ffd0394cd7b8731fa0b3dbf14f7)]: +- Updated dependencies [[`1031601`](https://github.com/moonbeam-foundation/xcm-sdk/commit/1031601e9706fefd8edf00d9b68d224fd55cf357), [`bb54d40`](https://github.com/moonbeam-foundation/xcm-sdk/commit/bb54d40ba72a9ffd0394cd7b8731fa0b3dbf14f7)]: - @moonbeam-network/xcm-builder@1.0.2 - @moonbeam-network/xcm-config@1.0.2 - @moonbeam-network/xcm-types@1.0.1 @@ -314,17 +365,17 @@ ### Patch Changes -- [#93](https://github.com/PureStake/xcm-sdk/pull/93) [`3cd3565`](https://github.com/PureStake/xcm-sdk/commit/3cd356561a2c413942b46a1a943f78e82cd29fcc) Thanks [@mmaurello](https://github.com/mmaurello)! - Fix for bigint transformation of string number +- [#93](https://github.com/moonbeam-foundation/xcm-sdk/pull/93) [`3cd3565`](https://github.com/moonbeam-foundation/xcm-sdk/commit/3cd356561a2c413942b46a1a943f78e82cd29fcc) Thanks [@mmaurello](https://github.com/mmaurello)! - Fix for bigint transformation of string number ## 1.0.0 ### Major Changes -- [#87](https://github.com/PureStake/xcm-sdk/pull/87) [`3c8835e`](https://github.com/PureStake/xcm-sdk/commit/3c8835e4afbe6fe0fd33a035e9c82d58e1902a45) Thanks [@ekenigs](https://github.com/ekenigs)! - SDK v1 which is not Moonbeam specific and with a new more user-friendly interface and new features +- [#87](https://github.com/moonbeam-foundation/xcm-sdk/pull/87) [`3c8835e`](https://github.com/moonbeam-foundation/xcm-sdk/commit/3c8835e4afbe6fe0fd33a035e9c82d58e1902a45) Thanks [@ekenigs](https://github.com/ekenigs)! - SDK v1 which is not Moonbeam specific and with a new more user-friendly interface and new features ### Patch Changes -- Updated dependencies [[`3c8835e`](https://github.com/PureStake/xcm-sdk/commit/3c8835e4afbe6fe0fd33a035e9c82d58e1902a45)]: +- Updated dependencies [[`3c8835e`](https://github.com/moonbeam-foundation/xcm-sdk/commit/3c8835e4afbe6fe0fd33a035e9c82d58e1902a45)]: - @moonbeam-network/xcm-builder@1.0.0 - @moonbeam-network/xcm-config@1.0.0 - @moonbeam-network/xcm-types@1.0.0 @@ -334,8 +385,8 @@ ### Patch Changes -- [#74](https://github.com/PureStake/xcm-sdk/pull/74) [`7159d68`](https://github.com/PureStake/xcm-sdk/commit/7159d68cd9a2a8c0c2e2e0f8a8405e6a1a9a8607) Thanks [@ekenigs](https://github.com/ekenigs)! - A new extrinsic fro Equilibrium +- [#74](https://github.com/moonbeam-foundation/xcm-sdk/pull/74) [`7159d68`](https://github.com/moonbeam-foundation/xcm-sdk/commit/7159d68cd9a2a8c0c2e2e0f8a8405e6a1a9a8607) Thanks [@ekenigs](https://github.com/ekenigs)! - A new extrinsic fro Equilibrium -- Updated dependencies [[`7159d68`](https://github.com/PureStake/xcm-sdk/commit/7159d68cd9a2a8c0c2e2e0f8a8405e6a1a9a8607), [`a3f3d86`](https://github.com/PureStake/xcm-sdk/commit/a3f3d86290475e6353fa74c06c2b7e6c9ba65eb4), [`7159d68`](https://github.com/PureStake/xcm-sdk/commit/7159d68cd9a2a8c0c2e2e0f8a8405e6a1a9a8607)]: +- Updated dependencies [[`7159d68`](https://github.com/moonbeam-foundation/xcm-sdk/commit/7159d68cd9a2a8c0c2e2e0f8a8405e6a1a9a8607), [`a3f3d86`](https://github.com/moonbeam-foundation/xcm-sdk/commit/a3f3d86290475e6353fa74c06c2b7e6c9ba65eb4), [`7159d68`](https://github.com/moonbeam-foundation/xcm-sdk/commit/7159d68cd9a2a8c0c2e2e0f8a8405e6a1a9a8607)]: - @moonbeam-network/xcm-config@0.4.2 - @moonbeam-network/xcm-utils@0.0.7 diff --git a/packages/sdk/README.md b/packages/sdk/README.md index 6f265a7e..eb0fd49e 100644 --- a/packages/sdk/README.md +++ b/packages/sdk/README.md @@ -6,13 +6,13 @@ The XCM SDK offers helper functions, that provide a very simple interface to exe ## v1 (current) -- [readme](https://github.com/PureStake/xcm-sdk/tree/main) +- [readme](https://github.com/moonbeam-foundation/xcm-sdk/tree/main) - [usage](https://docs.moonbeam.network/builders/interoperability/xcm/xcm-sdk/v1/xcm-sdk/) - [reference](https://docs.moonbeam.network/builders/interoperability/xcm/xcm-sdk/v1/reference/) ## v0 (previous) -- [readme](https://github.com/PureStake/xcm-sdk/tree/v0) +- [readme](https://github.com/moonbeam-foundation/xcm-sdk/tree/v0) - [usage](https://docs.moonbeam.network/builders/interoperability/xcm/xcm-sdk/v0/xcm-sdk/) - [reference](https://docs.moonbeam.network/builders/interoperability/xcm/xcm-sdk/v0/reference/) @@ -71,10 +71,10 @@ const hash = await dataViaGetTransferDataMethod.transfer('INSERT_TRANSFER_AMOUNT # Examples -- [sdk](https://github.com/PureStake/xcm-sdk/blob/main/examples/sdk-simple) +- [sdk](https://github.com/moonbeam-foundation/xcm-sdk/blob/main/examples/sdk-simple) ```bash -git clone git@github.com:PureStake/xcm-sdk.git +git clone git@github.com:moonbeam-foundation/xcm-sdk.git cd xcm-sdk npm i cd examples/sdk-simple @@ -87,7 +87,7 @@ npm start # Contributing ```bash -git clone git@github.com:PureStake/xcm-sdk.git +git clone git@github.com:moonbeam-foundation/xcm-sdk.git npm i npm run dev ``` diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 9bf2ba8a..719a8b31 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@moonbeam-network/xcm-sdk", - "version": "1.4.14", + "version": "1.4.20", "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", @@ -12,12 +12,12 @@ "test:acc": "jest --forceExit --testTimeout 300000 ./tests/acceptance", "prepack": "prettier --write build/index.d.ts" }, - "author": "PureStake", + "author": "moonbeam-foundation", "license": "MIT", "repository": { "directory": "packages/sdk", "type": "git", - "url": "git+https://github.com/PureStake/xcm-sdk.git" + "url": "git+https://github.com/moonbeam-foundation/xcm-sdk.git" }, "keywords": [ "moonbeam", @@ -29,7 +29,7 @@ "cross-chain" ], "bugs": { - "url": "https://github.com/PureStake/xcm-sdk/issues" + "url": "https://github.com/moonbeam-foundation/xcm-sdk/issues" }, "homepage": "https://docs.moonbeam.network/builders/xcm/xcm-sdk/xcm-sdk/", "files": [ @@ -51,10 +51,10 @@ "types": "./build/index.d.ts", "main": "./build/index.cjs", "dependencies": { - "@moonbeam-network/xcm-builder": "1.0.10", - "@moonbeam-network/xcm-config": "1.3.18", - "@moonbeam-network/xcm-types": "1.0.1", - "@moonbeam-network/xcm-utils": "1.0.3", + "@moonbeam-network/xcm-builder": "1.0.12", + "@moonbeam-network/xcm-config": "1.3.24", + "@moonbeam-network/xcm-types": "1.0.3", + "@moonbeam-network/xcm-utils": "1.0.4", "big.js": "^6.2.1" }, "peerDependencies": { diff --git a/packages/sdk/src/polkadot/PolkadotService.ts b/packages/sdk/src/polkadot/PolkadotService.ts index f61fef9b..ef634242 100644 --- a/packages/sdk/src/polkadot/PolkadotService.ts +++ b/packages/sdk/src/polkadot/PolkadotService.ts @@ -9,7 +9,6 @@ import { darwiniaPangoro, eq, equilibrium, - equilibriumAlphanet, paring, } from '@moonbeam-network/xcm-config'; import { @@ -74,10 +73,7 @@ export class PolkadotService { // TODO: Remove this once Equilibrium is updated // or find better way if issue appears on other chains - if ( - key === 'token' && - [equilibriumAlphanet.key, equilibrium.key].includes(this.chain.key) - ) { + if (key === 'token' && [equilibrium.key].includes(this.chain.key)) { return eq; } diff --git a/packages/types/CHANGELOG.md b/packages/types/CHANGELOG.md index 0eff6272..071647ff 100644 --- a/packages/types/CHANGELOG.md +++ b/packages/types/CHANGELOG.md @@ -1,18 +1,33 @@ # @moonbeam-network/xcm-types +## 1.0.3 + +### Patch Changes + +- [#192](https://github.com/moonbeam-foundation/xcm-sdk/pull/192) [`0b3cb1d`](https://github.com/moonbeam-foundation/xcm-sdk/commit/0b3cb1db7897bec9bfd743fe3f8104e480500496) Thanks [@mmaurello](https://github.com/mmaurello)! - Manta - Moonbeam integration and change of repo url + +- Updated dependencies [[`0b3cb1d`](https://github.com/moonbeam-foundation/xcm-sdk/commit/0b3cb1db7897bec9bfd743fe3f8104e480500496)]: + - @moonbeam-network/xcm-utils@1.0.4 + +## 1.0.2 + +### Patch Changes + +- [#184](https://github.com/moonbeam-foundation/xcm-sdk/pull/184) [`88b6322`](https://github.com/moonbeam-foundation/xcm-sdk/commit/88b6322327b30baa0fb2bf55f99497e2944c95ef) Thanks [@mmaurello](https://github.com/mmaurello)! - Use unlimited weight in all transactions for the xTokens pallet + ## 1.0.1 ### Patch Changes -- [#98](https://github.com/PureStake/xcm-sdk/pull/98) [`1031601`](https://github.com/PureStake/xcm-sdk/commit/1031601e9706fefd8edf00d9b68d224fd55cf357) Thanks [@ekenigs](https://github.com/ekenigs)! - Changed SDK packages deps to 1.x +- [#98](https://github.com/moonbeam-foundation/xcm-sdk/pull/98) [`1031601`](https://github.com/moonbeam-foundation/xcm-sdk/commit/1031601e9706fefd8edf00d9b68d224fd55cf357) Thanks [@ekenigs](https://github.com/ekenigs)! - Changed SDK packages deps to 1.x ## 1.0.0 ### Major Changes -- [#87](https://github.com/PureStake/xcm-sdk/pull/87) [`3c8835e`](https://github.com/PureStake/xcm-sdk/commit/3c8835e4afbe6fe0fd33a035e9c82d58e1902a45) Thanks [@ekenigs](https://github.com/ekenigs)! - SDK v1 which is not Moonbeam specific and with a new more user-friendly interface and new features +- [#87](https://github.com/moonbeam-foundation/xcm-sdk/pull/87) [`3c8835e`](https://github.com/moonbeam-foundation/xcm-sdk/commit/3c8835e4afbe6fe0fd33a035e9c82d58e1902a45) Thanks [@ekenigs](https://github.com/ekenigs)! - SDK v1 which is not Moonbeam specific and with a new more user-friendly interface and new features ### Patch Changes -- Updated dependencies [[`3c8835e`](https://github.com/PureStake/xcm-sdk/commit/3c8835e4afbe6fe0fd33a035e9c82d58e1902a45)]: +- Updated dependencies [[`3c8835e`](https://github.com/moonbeam-foundation/xcm-sdk/commit/3c8835e4afbe6fe0fd33a035e9c82d58e1902a45)]: - @moonbeam-network/xcm-utils@1.0.0 diff --git a/packages/types/package.json b/packages/types/package.json index 2bb5476e..f918c2ec 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@moonbeam-network/xcm-types", - "version": "1.0.1", + "version": "1.0.3", "description": "Moonbeam XCM Types", "scripts": { "build": "tsup", @@ -17,17 +17,17 @@ "repository": { "directory": "packages/types", "type": "git", - "url": "git+https://github.com/PureStake/xcm-sdk.git" + "url": "git+https://github.com/moonbeam-foundation/xcm-sdk.git" }, "keywords": [ "moonbeam", "moonriver", "xcm" ], - "author": "PureStake", + "author": "moonbeam-foundation", "license": "MIT", "bugs": { - "url": "https://github.com/PureStake/xcm-sdk/issues" + "url": "https://github.com/moonbeam-foundation/xcm-sdk/issues" }, "homepage": "https://docs.moonbeam.network/builders/xcm/xcm-sdk/xcm-sdk/", "files": [ @@ -49,7 +49,7 @@ "types": "./build/index.d.ts", "main": "./build/index.cjs", "dependencies": { - "@moonbeam-network/xcm-utils": "1.x", + "@moonbeam-network/xcm-utils": "1.0.4", "big.js": "^6.2.1", "type-fest": "^3.8.0" } diff --git a/packages/types/src/chain/parachain/Parachain.ts b/packages/types/src/chain/parachain/Parachain.ts index b7f57950..03cb14ae 100644 --- a/packages/types/src/chain/parachain/Parachain.ts +++ b/packages/types/src/chain/parachain/Parachain.ts @@ -23,7 +23,7 @@ export class Parachain extends Chain { readonly ss58Format: number; - readonly weight: number; + readonly weight: number | undefined; readonly ws: string; @@ -46,7 +46,7 @@ export class Parachain extends Chain { this.genesisHash = genesisHash; this.parachainId = parachainId; this.ss58Format = ss58Format; - this.weight = weight ?? 1_000_000_000; + this.weight = weight; this.ws = ws; } diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index 05e19492..764410e7 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -1,33 +1,39 @@ # @moonbeam-network/xcm-utils +## 1.0.4 + +### Patch Changes + +- [#192](https://github.com/moonbeam-foundation/xcm-sdk/pull/192) [`0b3cb1d`](https://github.com/moonbeam-foundation/xcm-sdk/commit/0b3cb1db7897bec9bfd743fe3f8104e480500496) Thanks [@mmaurello](https://github.com/mmaurello)! - Manta - Moonbeam integration and change of repo url + ## 1.0.3 ### Patch Changes -- [#148](https://github.com/PureStake/xcm-sdk/pull/148) [`3f071c4`](https://github.com/PureStake/xcm-sdk/commit/3f071c42555e9694b090b2281eb9d67b695aa750) Thanks [@mmaurello](https://github.com/mmaurello)! - Picasso integration with Moonbase and dependency updates +- [#148](https://github.com/moonbeam-foundation/xcm-sdk/pull/148) [`3f071c4`](https://github.com/moonbeam-foundation/xcm-sdk/commit/3f071c42555e9694b090b2281eb9d67b695aa750) Thanks [@mmaurello](https://github.com/mmaurello)! - Picasso integration with Moonbase and dependency updates -- [#145](https://github.com/PureStake/xcm-sdk/pull/145) [`cd5da97`](https://github.com/PureStake/xcm-sdk/commit/cd5da97e606e94f0ec0d2faa17ac44297c5ee98e) Thanks [@ekenigs](https://github.com/ekenigs)! - Disabled Polkadot.js API init warnings +- [#145](https://github.com/moonbeam-foundation/xcm-sdk/pull/145) [`cd5da97`](https://github.com/moonbeam-foundation/xcm-sdk/commit/cd5da97e606e94f0ec0d2faa17ac44297c5ee98e) Thanks [@ekenigs](https://github.com/ekenigs)! - Disabled Polkadot.js API init warnings ## 1.0.2 ### Patch Changes -- [#112](https://github.com/PureStake/xcm-sdk/pull/112) [`697bdbb`](https://github.com/PureStake/xcm-sdk/commit/697bdbbf10e569499f9e10dff0bb3173de01d458) Thanks [@ekenigs](https://github.com/ekenigs)! - ERC20 Alan and DEV tokens from Moonbase Alpha to Beta +- [#112](https://github.com/moonbeam-foundation/xcm-sdk/pull/112) [`697bdbb`](https://github.com/moonbeam-foundation/xcm-sdk/commit/697bdbbf10e569499f9e10dff0bb3173de01d458) Thanks [@ekenigs](https://github.com/ekenigs)! - ERC20 Alan and DEV tokens from Moonbase Alpha to Beta ## 1.0.1 ### Patch Changes -- [`069b738`](https://github.com/PureStake/xcm-sdk/commit/069b73810c6e1e271edc489ed40bae06d9d62a37) Thanks [@mmaurello](https://github.com/mmaurello)! - Mangata - Moonriver integration +- [`069b738`](https://github.com/moonbeam-foundation/xcm-sdk/commit/069b73810c6e1e271edc489ed40bae06d9d62a37) Thanks [@mmaurello](https://github.com/mmaurello)! - Mangata - Moonriver integration ## 1.0.0 ### Major Changes -- [#87](https://github.com/PureStake/xcm-sdk/pull/87) [`3c8835e`](https://github.com/PureStake/xcm-sdk/commit/3c8835e4afbe6fe0fd33a035e9c82d58e1902a45) Thanks [@ekenigs](https://github.com/ekenigs)! - SDK v1 which is not Moonbeam specific and with a new more user-friendly interface and new features +- [#87](https://github.com/moonbeam-foundation/xcm-sdk/pull/87) [`3c8835e`](https://github.com/moonbeam-foundation/xcm-sdk/commit/3c8835e4afbe6fe0fd33a035e9c82d58e1902a45) Thanks [@ekenigs](https://github.com/ekenigs)! - SDK v1 which is not Moonbeam specific and with a new more user-friendly interface and new features ## 0.0.7 ### Patch Changes -- [#74](https://github.com/PureStake/xcm-sdk/pull/74) [`7159d68`](https://github.com/PureStake/xcm-sdk/commit/7159d68cd9a2a8c0c2e2e0f8a8405e6a1a9a8607) Thanks [@ekenigs](https://github.com/ekenigs)! - Added a convertDecimals function +- [#74](https://github.com/moonbeam-foundation/xcm-sdk/pull/74) [`7159d68`](https://github.com/moonbeam-foundation/xcm-sdk/commit/7159d68cd9a2a8c0c2e2e0f8a8405e6a1a9a8607) Thanks [@ekenigs](https://github.com/ekenigs)! - Added a convertDecimals function diff --git a/packages/utils/package.json b/packages/utils/package.json index 1b93a5f5..ae325961 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@moonbeam-network/xcm-utils", - "version": "1.0.3", + "version": "1.0.4", "description": "Moonbeam XCM utilities", "scripts": { "build": "tsup", @@ -15,12 +15,12 @@ "test:ci": "npm test -- --ci", "prepack": "prettier --write build/index.d.ts" }, - "author": "PureStake", + "author": "moonbeam-foundation", "license": "MIT", "repository": { "directory": "packages/utils", "type": "git", - "url": "git+https://github.com/PureStake/xcm-sdk.git" + "url": "git+https://github.com/moonbeam-foundation/xcm-sdk.git" }, "keywords": [ "moonbeam", @@ -29,7 +29,7 @@ "utils" ], "bugs": { - "url": "https://github.com/PureStake/xcm-sdk/issues" + "url": "https://github.com/moonbeam-foundation/xcm-sdk/issues" }, "homepage": "https://docs.moonbeam.network/builders/xcm/xcm-sdk/xcm-sdk/", "files": [ diff --git a/scripts/check-websockets.ts b/scripts/check-websockets.ts new file mode 100644 index 00000000..9023cbe2 --- /dev/null +++ b/scripts/check-websockets.ts @@ -0,0 +1,100 @@ +/* eslint-disable import/no-extraneous-dependencies */ +/* eslint-disable no-console */ +import { chainsList } from '@moonbeam-network/xcm-config'; +import { IncomingWebhook } from '@slack/webhook'; +import WebSocket from 'ws'; + +function procesArgs() { + const args = process.argv; + const incudeTestChains = args.some((arg) => arg === '--include-test-chains'); + const slackWebhookArg = args.find((arg) => arg.startsWith('--slack-wh=')); + const webhookUrl = slackWebhookArg ? slackWebhookArg.split('=')[1] : ''; + return { incudeTestChains, webhookUrl }; +} + +async function checkWebSocketEndpoints( + endpoints: ChainEndpoint[], +): Promise<{ endpoint: ChainEndpoint; isAlive: boolean }[]> { + async function checkIsWebSocketAlive({ + chainKey, + ws: endpoint, + }: ChainEndpoint): Promise { + return new Promise((resolve) => { + const ws = new WebSocket(endpoint); + + let isAlive = false; + + ws.on('error', (error) => { + console.error( + `WebSocket ${chainKey} connection to ${endpoint} failed. Error: ${error.message}`, + ); + resolve(false); + }); + + ws.on('open', () => { + console.log( + `WebSocket ${chainKey} connection to ${endpoint} successful.`, + ); + isAlive = true; + ws.terminate(); + }); + + ws.on('close', () => { + resolve(isAlive); + }); + }); + } + + return Promise.all( + endpoints.map(async (endpoint) => { + const isAlive = await checkIsWebSocketAlive(endpoint); + + return { endpoint, isAlive }; + }), + ); +} + +const { incudeTestChains, webhookUrl } = procesArgs(); + +const webhook = new IncomingWebhook(webhookUrl); + +interface ChainEndpoint { + chainKey: string; + ws: string; +} + +const filteredChainList = incudeTestChains + ? chainsList + : chainsList.filter((chain) => !chain.isTestChain); + +const websocketEndpoints = filteredChainList.map(({ key, ws }) => ({ + chainKey: key, + ws, +})); + +if (incudeTestChains) { + console.log('Checking the endpoints of all chains, including test chains...'); +} + +checkWebSocketEndpoints(websocketEndpoints).then(async (results) => { + let output = ''; + + results.forEach(({ isAlive, endpoint: { chainKey, ws } }) => { + if (!isAlive) { + output += `\n${chainKey}: \`${ws}\`,`; + } + }); + + if (output) { + const text = `The following websocket endpoints from the XCM integrations in the dapp are not working, please review them: ${output}`; + + console.log(text); + if (webhookUrl) { + await webhook.send({ + text, + }); + } else { + console.warn('Slack webhook not detected, notification not sent'); + } + } +});