-
Notifications
You must be signed in to change notification settings - Fork 103
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
Fund various System Chains sovereign accounts used by the P<>K bridge #238
Comments
Actually sovereign accounts of AHP on AHK and vice-versa are no longer needed/used - checking. Yes, not needed, removed from description. |
Proposed amountsBased on fees distribution documented in paritytech/parity-bridges-common#2871, we will initially fund: Polkadot BH accounts total: 10_100 DOT, which should provide enough coverage for at least 5000 messages each way - in the meantime we'll continue working on an automated mechanism to move user paid fees to these accounts, and not require manual/governance rebalancing. Proposed amounts per accountOn Polkadot BridgeHub
Total: 10_100 DOT On Kusama BridgeHub
Total: 2_030 KSM |
Options for funding:
Afaict, option 1 is not possible from the main relay chain treasury as it can't do cross-chain payouts. Option 3 should work fine but I expect it to take a 1-2 weeks at best, delaying bridge operation. In the interest of time I will go for Option 2 and act as the middleman, if small spender referendum is rejected, I will fallback on option 3. |
I have created following funding referendums: L.E. removed preimages for above referendums, they will fail even if they pass, we are going with Option 3 instead (see below) |
Falling back to whitelisted caller (Option 3) instead of manual middleman transfer (Option 2). Calls to whitelist and run: on Polkadot relay
on Kusama relay
These do |
Checking the calls, there's no need to calculate the sovereign account and transfer to So instead of using the calculated account, you could put Now that I checked, the other sovereign accounts are something that we don't have a Location for. The best way in my mind would be to have a location for them, a converter from location to account id, and then the message would be so much cleaner. I agree that now that we don't have it let's just use those accounts. I'd still change AssetHub's though. |
Regarding the amounts in those calls:
Unless I got something wrong. You should show the public key of the accounts here as well as the SS58 address because it's the public key that shows up in the decoded XCMs. |
Done, see updated comment: #238 (comment) |
just a nit - one more
|
Also, the accounts of the lanes are the same, is that expected? |
There is a digit difference ( |
Executed the calls in chopsticks. Results: Polkadot BridgeHub:
Kusama BridgeHub
Seems correct |
|
Kusama side executed, Kusama BH accounts successfully funded 🎉 |
Polkadot also executed, accounts successfully funded. Closing issue. |
For the Polkadot <> Kusama bridge to operate and support DOT/KSM transfer between Polkadot AssetHub and Kusama AssetHub we need to fund following accounts:
Note: all of these accounts are exclusively chain-owned (governance-owned)
On Polkadot BridgeHub
ExportMessage
:13cKp89SgdtqUngo2WiEijPrQWdHFhzYZLf2TJePKRvExk7o
Generated using:
frame_support::sp_runtime::AccountId32::new( SiblingParachainConvertsVia::::convert_location(&Location { parents: 1, interior: [Parachain(1000)].into() }).unwrap() ).to_ss58check_with_version(0_u16.into())
13E5fui93Uyua5RtDv2LQj4aVBBHo6YREe3n6CBwYdqNqoxj
Generated using:
frame_support::sp_runtime::AccountId32::new( PayRewardFromAccount::<[u8; 32], [u8; 32]>::rewards_account(RewardsAccountParams::new( LaneId([0, 0, 0, 1]), *b"bhks", RewardsAccountOwner::ThisChain )) ) .to_ss58check_with_version(0_u16.into())
13E5fui93Uyua5RtDv2c9kcAbfrVFeeHyJzHe8sn1Ti77Afd
Generated using:
frame_support::sp_runtime::AccountId32::new( PayRewardFromAccount::<[u8; 32], [u8; 32]>::rewards_account(RewardsAccountParams::new( LaneId([0, 0, 0, 1]), *b"bhks", RewardsAccountOwner::BridgedChain )) ) .to_ss58check_with_version(0_u16.into())
On Kusama BridgeHub
ExportMessage
:FBeL7EFTDeHnuViqaUHUXvhhUusN5FawDmHgfvzF97DXFr3
Generated using:
frame_support::sp_runtime::AccountId32::new( SiblingParachainConvertsVia::::convert_location(&Location { parents: 1, interior: [Parachain(1000)].into() }).unwrap() ).to_ss58check_with_version(2_u16.into())
EoQBtnwp4jMtCEpV7C88rKrz6x1qMBh2z74ibGSqtZRnuMM
Generated using:
frame_support::sp_runtime::AccountId32::new( PayRewardFromAccount::<[u8; 32], [u8; 32]>::rewards_account(RewardsAccountParams::new( LaneId([0, 0, 0, 1]), *b"bhpd", RewardsAccountOwner::ThisChain )) ) .to_ss58check_with_version(2_u16.into())
EoQBtnwp4jMtCEpV7CPsssT6bdDHuHZmf3aGXxHJiSA4Dz3
Generated using:
frame_support::sp_runtime::AccountId32::new( PayRewardFromAccount::<[u8; 32], [u8; 32]>::rewards_account(RewardsAccountParams::new( LaneId([0, 0, 0, 1]), *b"bhpd", RewardsAccountOwner::BridgedChain )) ) .to_ss58check_with_version(2_u16.into())
The text was updated successfully, but these errors were encountered: