-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move multisig args into custom executor data model
Signed-off-by: Shanin Roman <[email protected]>
- Loading branch information
Showing
7 changed files
with
40 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
client/tests/integration/smartcontracts/executor_custom_data_model/src/multisig.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
//! Arguments to register and manage multisig account | ||
use alloc::{collections::btree_set::BTreeSet, vec::Vec}; | ||
|
||
use iroha_data_model::{account::NewAccount, prelude::*}; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
/// Arguments to multisig account register trigger | ||
#[derive(Serialize, Deserialize)] | ||
pub struct MultisigRegisterArgs { | ||
// Account id of multisig account should be manually checked to not have corresponding private key (or having master key is ok) | ||
pub account: NewAccount, | ||
// List of accounts responsible for handling multisig account | ||
pub signatories: BTreeSet<AccountId>, | ||
} | ||
|
||
/// Arguments to multisig account manager trigger | ||
#[derive(Serialize, Deserialize)] | ||
pub enum MultisigArgs { | ||
/// Accept instructions proposal and initialize votes with the proposer's one | ||
Instructions(Vec<InstructionBox>), | ||
/// Accept vote for certain instructions | ||
Vote(HashOf<Vec<InstructionBox>>), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters