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

Specify the versions of OAK-blockchain, polkadot-sdk and Moonbase #114

Merged
merged 1 commit into from
May 13, 2024

Conversation

imstar15
Copy link
Member

@imstar15 imstar15 commented May 9, 2024

We need to pass the scheduleAs parameter to schedule task in OAK-blockchain v2.0.0.
the scheduleAs parameter is optional in OAK-blockchain v2.1.4. The xcm-demo matches the new version.

Test

npm run moonbase-local

1. Transfer TUR to the derivative account on turing-local: 
status.type Ready
status.type InBlock
status.type Finalized

2. One-time proxy setup on moonbase-local

a) Add a proxy for Alice If there is none setup on moonbase-local

oakChainData.paraId:  2114
Add a proxy of moonbase-local (paraId:1000) and proxyType: Any on Turing ...
 Proxy address: 0xfde409e557153fceffd60db438375b2247df3418

status.type Ready
status.type InBlock
status.type Finalized

b) Topping up the proxy account on moonbase-local with DEV ...

status.type Ready
status.type InBlock
status.type Finalized

User Alice turing-local address: 6AwtFW6sYcQ8RcuAJeXdDKuFtUVXj4xW57ghjYQ5xyciT1yd, moonbase-local address: 0xf24FF3a9CF04c71Dbc94D0b566f7A27B94566cac

3. Execute an XCM from moonbase-local to turing-local ...

a). Create a payload to store in Turing’s task ...

b). Send extrinsic from moonbase-local to turing-local to schedule task. Listen to TaskScheduled event on turing-local chain ...
Listen XCMP task events
Send extrinsic from moonbase-local to schedule task. extrinsic: 0x21060301010009210103010100092101042c527f000000000000000000000000e1023c010004000000000000000003010100a10f03010100092103010200a10f040300141354778000000000000000000000c9012601f24ff3a9cf04c71dbc94d0b566f7a27b94566cac01581501000000000000000000000000000000000000000000000000000000000000a72f549a1a12b9b49f30a7f3aeb1f4e96389c5d8000000000000000000000000000000000000000000000000000000000000000010d09de08a0003404ac76c5a15010003401462a85a860300010003f737a4434a3801000107f75f0f32014a38010000
status.type Ready
        automationTime:TaskScheduled:: (phase={"applyExtrinsic":0})
                        AccountId32: 6AubHEyP5NhszkySgTAznkkQpiBjnBRkh2EidUQFv8k7kaPK
                        Bytes: 0x31372d302d31
                        Option<AccountId32>: 
Found the event and retrieved TaskId, 17-0-1

Keep Listening automationTime.TaskExecuted until 2024-05-09 21:41:11(1715262071) to verify that the task(taskId: 17-0-1) will be successfully triggered ...
status.type InBlock
status.type Finalized
        automationTime:TaskExecuted:: (phase=Initialization)
                        AccountId32: 6AubHEyP5NhszkySgTAznkkQpiBjnBRkh2EidUQFv8k7kaPK
                        Bytes: 0x31372d302d31
XcmpMessageSent event:  {
  phase: 'Initialization',
  event: {
    method: 'XcmpMessageSent',
    section: 'xcmpQueue',
    index: '0x2804',
    data: {
      messageHash: '0x03c026ccf147d5277559da361e7d6ddc28709f002fcf240cfa35ee816ca0a51a'
    }
  },
  topics: []
}
messageHash:  0x03c026ccf147d5277559da361e7d6ddc28709f002fcf240cfa35ee816ca0a51a

4. Listen xcmpQueue.Success event with messageHash(0x03c026ccf147d5277559da361e7d6ddc28709f002fcf240cfa35ee816ca0a51a) and find ethereum.Executed event on Parachain...
        xcmpQueue:Success:: (phase={"applyExtrinsic":1})
                        Option<[u8;32]>: 0x03c026ccf147d5277559da361e7d6ddc28709f002fcf240cfa35ee816ca0a51a
                        {"refTime":"Compact<u64>","proofSize":"Compact<u64>"}: {"refTime":813047000,"proofSize":28373}
ethereum.Executed event:  {"from":"0xf24ff3a9cf04c71dbc94d0b566f7a27b94566cac","to":"0xa72f549a1a12b9b49f30a7f3aeb1f4e96389c5d8","transactionHash":"0xe8d1b7bf8ae46af6b1a31f10d50f2e39f0cab13905c0361770c2a64b50f606a8","exitReason":{"Succeed":"Stopped"},"extraData":""}
Reached the end of main() ...

@imstar15 imstar15 requested a review from chrisli30 May 9, 2024 14:28
@imstar15 imstar15 force-pushed the charles-specify_version branch from ec26327 to dd98180 Compare May 9, 2024 14:40
@imstar15 imstar15 changed the title Specify the versions of OAK-blockchain and Moonbase Specify the versions of OAK-blockchain, polkadot-sdk and Moonbase May 9, 2024
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.

What was the code changes here to fix #113 ?

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.

The xcm-demo code was updated but instructions in README.md weren’t. This PR is to update the README.md to make sure release versions match the code.

@chrisli30 chrisli30 merged commit 81bffce into master May 13, 2024
2 checks passed
@chrisli30 chrisli30 deleted the charles-specify_version branch May 13, 2024 01:05
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