-
Notifications
You must be signed in to change notification settings - Fork 359
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
Bridge upgrade on Rococo/Wococo #3734
Comments
Sadly the JSON as presented really helps close to 0.
So working from that is an impossible task. |
Let me know how we can make it possible then. From what I've understood marking types that come from If that helps we also have networks with these pallets already deployed, namely: |
Networks are the best - from there can actually categorize the types into the relevant pallets. (It is the only way this can be managed properly - JSON is great for quick-and dirty, but not for maintaining) |
Here is a minimal JSON I came up with after testing with
{
"LaneId": "[u8; 4]",
"MessageNonce": "u64",
"OutboundMessageFee": "Balance",
"UnrewardedRelayersState": {
"unrewarded_relayer_entries": "MessageNonce",
"messages_in_oldest_entry": "MessageNonce",
"total_messages": "MessageNonce"
},
"MessagesDeliveryProofOf": {
"bridged_header_hash": "BlockHash",
"storage_proof": "Vec<StorageProofItem>",
"lane": "LaneId"
},
"StorageProofItem": "Vec<u8>",
"InboundRelayer": "AccountId",
"MessagesProofOf": {
"bridged_header_hash": "BridgedBlockHash",
"storage_proof": "Vec<StorageProofItem>",
"lane": "LaneId",
"nonces_start": "MessageNonce",
"nonces_end": "MessageNonce"
},
"OutboundPayload": {
"spec_version": "u32",
"weight": "Weight",
"origin": "CallOrigin",
"dispatch_fee_payment": "DispatchFeePayment",
"call": "Vec<u8>"
},
"DispatchFeePayment": {
"_enum": {
"AtSourceChain": "()",
"AtTargetChain": "()"
}
},
"CallOrigin": {
"_enum": {
"SourceRoot": "()",
"TargetAccount": "(AccountId, MultiSigner, MultiSignature)",
"SourceAccount": "AccountId"
}
},
"OperatingMode": {
"_enum": {
"Normal": "()",
"RejectingOutboundMessages": "()",
"Halted": "()"
}
},
"Parameter": "()",
"InboundLaneData": {
"relayers": "Vec<UnrewardedRelayer>",
"last_confirmed_nonce": "MessageNonce"
},
"UnrewardedRelayer": {
"relayer": "RelayerId",
"messages": "DeliveredMessages"
},
"DeliveredMessages": {
"begin": "MessageNonce",
"end": "MessageNonce",
"dispatch_results": "BitVec"
},
"OutboundLaneData": {
"latest_generated_nonce": "MessageNonce",
"latest_received_nonce": "MessageNonce",
"oldest_unpruned_nonce": "MessageNonce"
},
"MessageData": {
"payload": "Vec<u8>",
"fee": "Balance"
},
"MessageKey": {
"lane_id": "LaneId",
"nonce:": "MessageNonce"
}
} |
Thank you. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query. |
We're planning to deploy Bridge messaging to Rococo/Wococo soonish (PR has been merged).
After the runtime upgrade I suspect there will be a bunch of missing types. You can find all the custom types we currently expect to be needed for Rococo here.
This issue is just a heads up to avoid the API breaking before the upgrade. The types that will be needed are the ones from
pallet-bridge-messages
(I think it may end up adding almost all of the types from the linked JSON file).The text was updated successfully, but these errors were encountered: