You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like that the app-lib/stf part is touched as little as possible when we add our encointer stuff. This refactoring is the step related to the bigger refactoring in #35. Example for the trusted call below:
// in encointer/stfenumEncointerTrustedCall{
...
ceremonies_register_participant(...)}implEncointerTrustedCall{pubfn account(&self) -> AccountId{matchself{
...ceremonies_register_participant(...) => account,}}}implExecuteCallforEncointerTrustedCall{
pub fn execute(&self) -> AccountId{
match self {
...
ceremonies_register_participant(...) => // do stuff...}}pubfn get_storage_hashes_to_update(&self) -> AccountId{
match self {
...
ceremonies_register_participant(...) => // do stuff...}}}
The cool thing about this, is that for every encointer specific behaviour in stf, we only add exactly one line into the app-libs/stf crate, which makes upstream merges much easier.
The text was updated successfully, but these errors were encountered:
I would like that the app-lib/stf part is touched as little as possible when we add our encointer stuff. This refactoring is the step related to the bigger refactoring in #35. Example for the trusted call below:
The cool thing about this, is that for every encointer specific behaviour in stf, we only add exactly one line into the app-libs/stf crate, which makes upstream merges much easier.
The text was updated successfully, but these errors were encountered: