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
Changes from 1 commit
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
Prev Previous commit
format
  • Loading branch information
dskloetd committed Jun 21, 2024
commit 94bbee201896912c169627c06cc20cc1cbdec85f
14 changes: 11 additions & 3 deletions rs/proposals/src/canisters/nns_registry/api.rs
Original file line number Diff line number Diff line change
@@ -449,7 +449,10 @@ impl Service {
pub async fn create_subnet(&self, arg0: CreateSubnetPayload) -> CallResult<()> {
ic_cdk::call(self.0, "create_subnet", (arg0,)).await
}
pub async fn deploy_guestos_to_all_subnet_nodes(&self, arg0: DeployGuestosToAllSubnetNodesPayload) -> CallResult<()> {
pub async fn deploy_guestos_to_all_subnet_nodes(
&self,
arg0: DeployGuestosToAllSubnetNodesPayload,
) -> CallResult<()> {
ic_cdk::call(self.0, "deploy_guestos_to_all_subnet_nodes", (arg0,)).await
}
pub async fn deploy_guestos_to_all_unassigned_nodes(
@@ -467,7 +470,9 @@ impl Service {
) -> CallResult<(GetNodeOperatorsAndDcsOfNodeProviderResponse,)> {
ic_cdk::call(self.0, "get_node_operators_and_dcs_of_node_provider", (arg0,)).await
}
pub async fn get_node_providers_monthly_xdr_rewards(&self) -> CallResult<(GetNodeProvidersMonthlyXdrRewardsResponse,)> {
pub async fn get_node_providers_monthly_xdr_rewards(
&self,
) -> CallResult<(GetNodeProvidersMonthlyXdrRewardsResponse,)> {
ic_cdk::call(self.0, "get_node_providers_monthly_xdr_rewards", ()).await
}
pub async fn get_subnet_for_canister(
@@ -512,7 +517,10 @@ impl Service {
pub async fn set_firewall_config(&self, arg0: SetFirewallConfigPayload) -> CallResult<()> {
ic_cdk::call(self.0, "set_firewall_config", (arg0,)).await
}
pub async fn update_api_boundary_nodes_version(&self, arg0: UpdateApiBoundaryNodesVersionPayload) -> CallResult<()> {
pub async fn update_api_boundary_nodes_version(
&self,
arg0: UpdateApiBoundaryNodesVersionPayload,
) -> CallResult<()> {
ic_cdk::call(self.0, "update_api_boundary_nodes_version", (arg0,)).await
}
pub async fn update_elected_hostos_versions(&self, arg0: UpdateElectedHostosVersionsPayload) -> CallResult<()> {
3 changes: 2 additions & 1 deletion scripts/did2rs.sh
Original file line number Diff line number Diff line change
@@ -153,7 +153,8 @@ cd "$GIT_ROOT"
# Replace invalid "{}" in generated Rust code with "EmptyRecord":
/^pub (struct|enum) /,/^}/{s/ *\{\},$/(EmptyRecord),/g};
' |
"$sed" -z 's/candid::define_function!(pub \([^ ]*\) [^;]*;\n#\[derive([^)]*)\]/pub type \1 = candid::Func;\n#[derive(CandidType, Deserialize)]/g'
"$sed" -z 's/candid::define_function!(pub \([^ ]*\) [^;]*;\n#\[derive([^)]*)\]/pub type \1 = candid::Func;\n#[derive(CandidType, Deserialize)]/g' |
rustfmt --edition 2021
} >"${RUST_PATH}"
if test -f "${EDIT_PATH}"; then
(
Loading