Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Mangata runtime 3001 #75

Merged
merged 2 commits into from
Aug 5, 2023
Merged

Conversation

imstar15
Copy link
Member

@imstar15 imstar15 commented Aug 5, 2023

  1. Modify feePerSecond in config/mangata-dev.js
  2. Remove providedId in scheduleXcmpTask interface in src/mangata/mangata.js
  3. Update the version of Mangata-node to v0.30.1. The updated code for OAK-blockchain hasn't generated a release yet. I will update it later.

Log:

Start to schedule an auto-compound call via XCM ...
encodedMangataProxyCall:  0x050000d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d01000d080800000064000000
mangataProxyCallFees:  {
  weight: { refTime: '2,905,398,711', proofSize: '3,716' },
  class: 'Normal',
  partialFee: '27.0780 MGRL'
}

1. Create the call for scheduleXcmpTask 
? Select an action to perform Execute immediately
xcmpCall:  0x3c020004000000000000000003010100f9200300000300007484a6c5000000000000000000000000bc050000d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d01000d08080000006400000003b7dd2cad113a03b7c6d1e2113a

2. Query automationTime fee details 
automationFeeDetails:  { executionFee: '9335556000', xcmpFee: '3316024436' }

3. Sign and send scheduleXcmpTask call ...
status.type Ready
status.type InBlock
status.type Finalized
TaskId: 177-2-3

4. Keep Listening XCM events on mangata-dev until 2023-08-05 12:00:00(1691208000) to verify that the task(taskId: 177-2-3) will be successfully executed ...
        proxy:ProxyExecuted:: (phase={"applyExtrinsic":0})
                        Result<Null, SpRuntimeDispatchError>: {"err":{"module":{"index":14,"error":"0x09000000"}}}
        proxy:ProxyExecuted:: (phase={"applyExtrinsic":0})
                        Result<Null, SpRuntimeDispatchError>: {"err":{"module":{"index":14,"error":"0x09000000"}}}
Task has been executed!

@imstar15 imstar15 requested review from v9n and chrisli30 August 5, 2023 03:55
@@ -14,7 +14,7 @@
| :--- | :----: |
| Polkadot | [v0.9.38](https://github.com/paritytech/polkadot/releases/tag/v0.9.38) |
| OAK-blockchain | [v1.9.0](https://github.com/OAK-Foundation/OAK-blockchain/releases/tag/v1.9.0) |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line needs to change too because you are testing with 2.0.0.

Please refer to, https://github.com/OAK-Foundation/xcm-demo/pull/74/files

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@chrisli30 chrisli30 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks right in general 🆗

@imstar15 imstar15 merged commit 3d527bb into master Aug 5, 2023
1 check passed
@imstar15 imstar15 deleted the update-mangata-runtime-3001 branch August 5, 2023 04:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants