Skip to content

Commit

Permalink
Add stokenet network definition
Browse files Browse the repository at this point in the history
  • Loading branch information
iamyulong committed Oct 17, 2023
1 parent e031975 commit 66ca3d0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions radix-engine-common/src/network/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ impl NetworkDefinition {
}
}

pub fn stokenet() -> NetworkDefinition {
NetworkDefinition {
id: 2,
logical_name: String::from("stokenet"),
hrp_suffix: String::from("tdx_2_"),
}
}

pub fn mainnet() -> NetworkDefinition {
NetworkDefinition {
id: 1,
Expand All @@ -86,6 +94,7 @@ impl FromStr for NetworkDefinition {
"kisharnet" => Ok(NetworkDefinition::kisharnet()),
"ansharnet" => Ok(NetworkDefinition::ansharnet()),
"zabanet" => Ok(NetworkDefinition::zabanet()),
"stokenet" => Ok(NetworkDefinition::stokenet()),
"mainnet" => Ok(NetworkDefinition::mainnet()),
_ => Err(ParseNetworkError::InvalidNetworkString),
}
Expand Down

0 comments on commit 66ca3d0

Please sign in to comment.