Skip to content
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

Kloet/didc m #5086

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
672 changes: 49 additions & 623 deletions rs/proposals/src/canisters/nns_governance/api.rs

Large diffs are not rendered by default.

31 changes: 8 additions & 23 deletions rs/proposals/src/canisters/nns_registry/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,29 +216,22 @@ pub struct NodeOperatorRecord {
pub node_provider_principal_id: serde_bytes::ByteBuf,
pub dc_id: String,
}
#[derive(Serialize, CandidType, Deserialize)]
pub enum GetNodeOperatorsAndDcsOfNodeProviderResponse {
Ok(Vec<(DataCenterRecord, NodeOperatorRecord)>),
Err(String),
}
pub type GetNodeOperatorsAndDcsOfNodeProviderResponse =
std::result::Result<Vec<(DataCenterRecord, NodeOperatorRecord)>, String>;
#[derive(Serialize, CandidType, Deserialize)]
pub struct NodeProvidersMonthlyXdrRewards {
pub rewards: Vec<(String, u64)>,
}
#[derive(Serialize, CandidType, Deserialize)]
pub enum GetNodeProvidersMonthlyXdrRewardsResponse {
Ok(NodeProvidersMonthlyXdrRewards),
Err(String),
}
pub type GetNodeProvidersMonthlyXdrRewardsResponse = std::result::Result<NodeProvidersMonthlyXdrRewards, String>;
#[derive(Serialize, CandidType, Deserialize)]
pub struct GetSubnetForCanisterRequest {
pub principal: Option<Principal>,
}
#[derive(Serialize, CandidType, Deserialize)]
pub enum GetSubnetForCanisterResponse {
Ok { subnet_id: Option<Principal> },
Err(String),
pub struct GetSubnetForCanisterResponseOk {
pub subnet_id: Option<Principal>,
}
pub type GetSubnetForCanisterResponse = std::result::Result<GetSubnetForCanisterResponseOk, String>;
#[derive(Serialize, CandidType, Deserialize)]
pub struct PrepareCanisterMigrationPayload {
pub canister_id_ranges: Vec<CanisterIdRange>,
Expand Down Expand Up @@ -329,21 +322,13 @@ pub struct UpdateNodeDomainDirectlyPayload {
pub node_id: Principal,
pub domain: Option<String>,
}
#[derive(Serialize, CandidType, Deserialize)]
pub enum UpdateNodeDomainDirectlyResponse {
Ok,
Err(String),
}
pub type UpdateNodeDomainDirectlyResponse = std::result::Result<(), String>;
#[derive(Serialize, CandidType, Deserialize)]
pub struct UpdateNodeIPv4ConfigDirectlyPayload {
pub ipv4_config: Option<IPv4Config>,
pub node_id: Principal,
}
#[derive(Serialize, CandidType, Deserialize)]
pub enum UpdateNodeIpv4ConfigDirectlyResponse {
Ok,
Err(String),
}
pub type UpdateNodeIpv4ConfigDirectlyResponse = std::result::Result<(), String>;
#[derive(Serialize, CandidType, Deserialize)]
pub struct UpdateNodeOperatorConfigPayload {
pub node_operator_id: Option<Principal>,
Expand Down
Loading
Loading