Skip to content

Commit

Permalink
Merge branch 'main' into mjm/usdcwh-zeitgeist
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaurello authored Jan 24, 2024
2 parents 96345cb + fc7505e commit c8794e2
Show file tree
Hide file tree
Showing 25 changed files with 356 additions and 301 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/xcm-wss-endpoints-monitor.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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 }}
4 changes: 2 additions & 2 deletions examples/sdk-simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"author": "",
"license": "MIT",
"dependencies": {
"@moonbeam-network/xcm-config": "1.3.18",
"@moonbeam-network/xcm-sdk": "1.4.14",
"@moonbeam-network/xcm-config": "1.3.23",
"@moonbeam-network/xcm-sdk": "1.4.19",
"@moonbeam-network/xcm-utils": "1.0.3"
},
"devDependencies": {
Expand Down
108 changes: 90 additions & 18 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"devDependencies": {
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.2",
"@slack/webhook": "^7.0.2",
"@types/jest": "^29.5.3",
"@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.59.8",
Expand Down
9 changes: 9 additions & 0 deletions packages/builder/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @moonbeam-network/xcm-builder

## 1.0.11

### Patch Changes

- [#184](https://github.com/PureStake/xcm-sdk/pull/184) [`88b6322`](https://github.com/PureStake/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/PureStake/xcm-sdk/commit/88b6322327b30baa0fb2bf55f99497e2944c95ef)]:
- @moonbeam-network/xcm-types@1.0.2

## 1.0.10

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/builder/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@moonbeam-network/xcm-builder",
"version": "1.0.10",
"version": "1.0.11",
"description": "Moonbeam XCM builder",
"scripts": {
"build": "tsup",
Expand Down Expand Up @@ -50,7 +50,7 @@
"types": "./build/index.d.ts",
"main": "./build/index.cjs",
"dependencies": {
"@moonbeam-network/xcm-types": "1.0.1",
"@moonbeam-network/xcm-types": "1.0.2",
"@moonbeam-network/xcm-utils": "1.0.3",
"big.js": "^6.2.1",
"type-fest": "^3.8.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ exports[`xTokens transfer should get correct arguments 1`] = `
"parents": 1,
},
},
1000000000,
"Unlimited",
]
`;

Expand Down Expand Up @@ -85,7 +85,7 @@ exports[`xTokens transferMultiAsset parachain should get correct arguments 1`] =
"parents": 1,
},
},
1000000000,
"Unlimited",
]
`;

Expand Down Expand Up @@ -188,7 +188,7 @@ exports[`xTokens transferMultiAsset x2 should get correct arguments 1`] = `
"parents": 1,
},
},
1000000000,
"Unlimited",
]
`;

Expand Down
14 changes: 7 additions & 7 deletions packages/builder/src/extrinsic/pallets/xTokens/xTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -23,7 +23,7 @@ export function xTokens() {
asset,
amount,
getDestination(version, address, destination),
getWeight(source.weight, func),
getWeight(),
];
},
}),
Expand Down Expand Up @@ -55,7 +55,7 @@ export function xTokens() {
},
},
getDestination(version, address, destination),
'Unlimited',
getWeight(),
];
},
}),
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -124,7 +124,7 @@ export function xTokens() {
},
},
getDestination(version, address, destination),
getWeight(source.weight, func),
getWeight(),
];
},
}),
Expand All @@ -143,7 +143,7 @@ export function xTokens() {
],
1,
getDestination(XcmVersion.v3, address, destination),
'Unlimited',
getWeight(),
],
}),
}),
Expand Down
Loading

0 comments on commit c8794e2

Please sign in to comment.