Skip to content

Commit

Permalink
feat: add get startup nodes related
Browse files Browse the repository at this point in the history
  • Loading branch information
raindust committed Nov 8, 2023
1 parent 8ea7a14 commit d607096
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions codecs/runtime-codec/src/actor_txns/pre_args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ pub struct Arg {
pub enum Type {
Cml,
TappstoreOwner,
StartupNodesOwner,
CurrentHeight,
TopupLogs,
BasicString,
Expand Down Expand Up @@ -116,6 +117,13 @@ impl Arg {
}
}

pub fn startup_nodes_owner() -> Self {
Arg {
ty: Type::StartupNodesOwner,
filter: Filter::Uncountable,
}
}

pub fn basic_string(s: String) -> Self {
Arg {
ty: Type::BasicString,
Expand Down
9 changes: 9 additions & 0 deletions system-actors/src/layer1/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,15 @@ pub struct TappstoreOwnerRequest(pub AsyncQuery);
#[derive(Debug, Clone, Serialize, Deserialize, TypeId)]
pub struct TappstoreOwnerResponse(pub Account);

#[doc(hidden)]
#[derive(Debug, Clone, Serialize, Deserialize, TypeId, Priced)]
#[price(100)]
pub struct StartupNodesOwnerRequest(pub AsyncQuery);

#[doc(hidden)]
#[derive(Debug, Clone, Serialize, Deserialize, TypeId)]
pub struct StartupNodesOwnerResponse(pub Account);

#[doc(hidden)]
#[derive(Debug, Clone, Serialize, Deserialize, TypeId, Priced)]
#[price(100)]
Expand Down

0 comments on commit d607096

Please sign in to comment.