-
Notifications
You must be signed in to change notification settings - Fork 12
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
RemoteTreasury pallet #32
Comments
From the design document it was not immediately obvious to me which functionality the remote treasury should provide as extrinsic.
However, only dispatching calls via I attempted to implement this in #34 as I'm currently investigating how to properly test this, but need to clarify that this is the actual anticipated functionality of the pallet. @willemolding @ansermino |
When writing the design doc it was unclear how exactly controlling DOT on the relay chain would function. To compensate for this, the generalized functionality of dispatching a call on another parachain seemed sufficient to support the needs of the treasury. Hence the Now that XCMP is coming together, I think it's worth rethinking this. What you've implemented in #34 seems sensible, although I do have one gripe. If possible, it would be nice not to constrain the pallet to interact only with DOT and only on the relay chain. I think this would simply require these vars to be passed into the config: PINT/pallets/remote-treasury/src/lib.rs Lines 145 to 158 in 6c8b1c6
|
I also think that it is important to implement this in a more general way. The orml-xtokens-pallet seems to provide this already. |
@ansermino I've added support for general transfers in #34. |
Closing, no longer required. |
Implementation details
Similar to LocalTreasury with extra functionality to control assets on other chains via XCMP. The RemoteTreasury will be responsible for DOT, which will be controlled through XCMP on the relay chain.
Acceptance Criteria
The completed pallet should have the following functionality:
execute
The text was updated successfully, but these errors were encountered: