-
Notifications
You must be signed in to change notification settings - Fork 1
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
Support PNA and multi hops transfer #2
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hydration would be a higher priority than moonbeam initially.
typegen-moonbeam.json
Outdated
"transfer_assets", | ||
"reserve_transfer_assets", | ||
"limited_reserve_transfer_assets", | ||
"transfer_assets_using_type_and_then" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we only need this one I think. The others cannot accept XCM so cannot trigger a direct transfer to ethereum.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,80 @@ | |||
import {sts, Result, Option, Bytes, BitSequence} from './support' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not think we need any runtimes before 3100.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's auto-generated, and some types are reused in multiple versions.
Yeah, understood. Just did not find a demo transfer message from Hydration which I can use to test. @alistair-singh , have we tested the multi-hops transfer for Hydration? Btw: The process logic for Moonbeam should most probably apply to Hydration. |
b3bf31c
to
3e40c37
Compare
Details
Index the transfer for PNA asset
Index the transfer from/to 3rd Parachain with multiple-hops, add three new fields:
forwardedBlockNumber
is the block that forwards the transfer on AHbridgedBlockNumber
is the block that bridges the transfer on BHdestinationBlockNumber
is the block on the destination chain,ToPolkadot
direction, the 3rd Parachain.ToEthereum
direction, Ethereum.