Skip to content
Closed
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
16 changes: 8 additions & 8 deletions .github/workflows/update-proposals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ jobs:
- uses: actions/checkout@v4
- name: Install didc
run: scripts/install-didc
- name: Find newer IC release, if any
- name: Find newer IC commit, if any
id: update
run: |
current_release="$(jq -r .defaults.build.config.IC_COMMIT_FOR_PROPOSALS config.json)"
echo "Current IC release: $current_release"
latest_release=$(curl -sSL https://api.github.com/repos/dfinity/ic/releases/latest | jq .tag_name -r)
echo "Latest IC release: $latest_release"
current_commit="$(jq -r .defaults.build.config.IC_COMMIT_FOR_PROPOSALS config.json)"
echo "Current IC commit: $current_commit"
latest_commit=$(curl -sSL https://api.github.com/repos/dfinity/ic/commits/master | jq .sha -r)
echo "Latest IC commit: $latest_commit"
{
if [ "$current_release" == "$latest_release" ]
if [ "$current_commit" == "$latest_commit" ]
then
echo "updated=0"
else
echo "updated=1"
echo "release=$latest_release"
echo "commit=$latest_commit"
fi
} >> "$GITHUB_OUTPUT"
- name: Install sponge
Expand All @@ -46,7 +46,7 @@ jobs:
if: ${{ steps.update.outputs.updated == '1' }}
run: |
# Update candid files
scripts/update_ic_commit --crate proposals --ic_commit "${{ steps.update.outputs.release }}"
scripts/update_ic_commit --crate proposals --ic_commit "${{ steps.update.outputs.commit }}"
# Show changes
echo "Git status:"
git status
Expand Down
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
"POCKETIC_VERSION": "3.0.1",
"CARGO_SORT_VERSION": "1.0.9",
"SNSDEMO_RELEASE": "release-2025-07-09",
"IC_COMMIT_FOR_PROPOSALS": "release-2025-07-31_03-32-base",
"IC_COMMIT_FOR_PROPOSALS": "1db8f933fdadc81a90e7db2389b081e21263a9b6",
"IC_COMMIT_FOR_SNS_AGGREGATOR": "release-2025-07-11_03-31-base"
},
"packtool": ""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Candid for canister `nns_governance` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2025-07-31_03-32-base/rs/nns/governance/canister/governance.did>
//! Candid for canister `nns_governance` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/1db8f933fdadc81a90e7db2389b081e21263a9b6/rs/nns/governance/canister/governance.did>
type AccountIdentifier = record {
hash : blob;
};
Expand Down
24 changes: 9 additions & 15 deletions declarations/used_by_proposals/nns_registry/nns_registry.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Candid for canister `nns_registry` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2025-07-31_03-32-base/rs/registry/canister/canister/registry.did>
//! Candid for canister `nns_registry` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/1db8f933fdadc81a90e7db2389b081e21263a9b6/rs/registry/canister/canister/registry.did>
// A brief note about the history of this file: This file used to be
// automatically generated, but now, it is hand-crafted, because the
// auto-generator has some some pretty degenerate behaviors. The worst of those
Expand Down Expand Up @@ -163,21 +163,8 @@ type VetKdCurve = variant { bls12_381_g2 };

type EcdsaCurve = variant { secp256k1 };

type EcdsaInitialConfig = record {
quadruples_to_create_in_advance : nat32;
max_queue_size : opt nat32;
keys : vec EcdsaKeyRequest;
signature_request_timeout_ns : opt nat64;
idkg_key_rotation_period_ms : opt nat64;
};

type EcdsaKeyId = record { name : text; curve : EcdsaCurve };

type EcdsaKeyRequest = record {
key_id : EcdsaKeyId;
subnet_id : opt principal;
};

type FirewallRule = record {
ipv4_prefixes : vec text;
direction : opt int32;
Expand Down Expand Up @@ -329,10 +316,17 @@ type ReviseElectedGuestosVersionsPayload = record {
release_package_urls : vec text;
replica_versions_to_unelect : vec text;
replica_version_to_elect : opt text;
guest_launch_measurement_sha256_hex : opt text;
guest_launch_measurements : opt GuestLaunchMeasurements;
release_package_sha256_hex : opt text;
};

type GuestLaunchMeasurements = record {
guest_launch_measurements : vec record {
metadata : opt record { kernel_cmdline : text };
measurement : blob;
};
};

type SetFirewallConfigPayload = record {
ipv4_prefixes : vec text;
firewall_config : text;
Expand Down
2 changes: 1 addition & 1 deletion declarations/used_by_proposals/sns_wasm/sns_wasm.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Candid for canister `sns_wasm` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2025-07-31_03-32-base/rs/nns/sns-wasm/canister/sns-wasm.did>
//! Candid for canister `sns_wasm` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/1db8f933fdadc81a90e7db2389b081e21263a9b6/rs/nns/sns-wasm/canister/sns-wasm.did>
type AddWasmRequest = record {
hash : blob;
wasm : opt SnsWasm;
Expand Down
2 changes: 1 addition & 1 deletion rs/proposals/src/canisters/nns_governance/api.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Rust code created from candid by: `scripts/did2rs.sh --canister nns_governance --out api.rs --header did2rs.header --traits Serialize`
//! Candid for canister `nns_governance` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2025-07-31_03-32-base/rs/nns/governance/canister/governance.did>
//! Candid for canister `nns_governance` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/1db8f933fdadc81a90e7db2389b081e21263a9b6/rs/nns/governance/canister/governance.did>
#![allow(clippy::all)]
#![allow(missing_docs)]
#![allow(clippy::missing_docs_in_private_items)]
Expand Down
17 changes: 15 additions & 2 deletions rs/proposals/src/canisters/nns_registry/api.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Rust code created from candid by: `scripts/did2rs.sh --canister nns_registry --out api.rs --header did2rs.header --traits Serialize`
//! Candid for canister `nns_registry` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2025-07-31_03-32-base/rs/registry/canister/canister/registry.did>
//! Candid for canister `nns_registry` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/1db8f933fdadc81a90e7db2389b081e21263a9b6/rs/registry/canister/canister/registry.did>
#![allow(clippy::all)]
#![allow(missing_docs)]
#![allow(clippy::missing_docs_in_private_items)]
Expand Down Expand Up @@ -367,11 +367,24 @@ pub struct RerouteCanisterRangesPayload {
pub destination_subnet: Principal,
}
#[derive(Serialize, CandidType, Deserialize)]
pub struct GuestLaunchMeasurementsGuestLaunchMeasurementsItemMetadataInner {
pub kernel_cmdline: String,
}
#[derive(Serialize, CandidType, Deserialize)]
pub struct GuestLaunchMeasurementsGuestLaunchMeasurementsItem {
pub metadata: Option<GuestLaunchMeasurementsGuestLaunchMeasurementsItemMetadataInner>,
pub measurement: serde_bytes::ByteBuf,
}
#[derive(Serialize, CandidType, Deserialize)]
pub struct GuestLaunchMeasurements {
pub guest_launch_measurements: Vec<GuestLaunchMeasurementsGuestLaunchMeasurementsItem>,
}
#[derive(Serialize, CandidType, Deserialize)]
pub struct ReviseElectedGuestosVersionsPayload {
pub release_package_urls: Vec<String>,
pub replica_versions_to_unelect: Vec<String>,
pub replica_version_to_elect: Option<String>,
pub guest_launch_measurement_sha256_hex: Option<String>,
pub guest_launch_measurements: Option<GuestLaunchMeasurements>,
pub release_package_sha256_hex: Option<String>,
}
#[derive(Serialize, CandidType, Deserialize)]
Expand Down
2 changes: 1 addition & 1 deletion rs/proposals/src/canisters/sns_wasm/api.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Rust code created from candid by: `scripts/did2rs.sh --canister sns_wasm --out api.rs --header did2rs.header --traits Serialize`
//! Candid for canister `sns_wasm` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2025-07-31_03-32-base/rs/nns/sns-wasm/canister/sns-wasm.did>
//! Candid for canister `sns_wasm` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/1db8f933fdadc81a90e7db2389b081e21263a9b6/rs/nns/sns-wasm/canister/sns-wasm.did>
#![allow(clippy::all)]
#![allow(missing_docs)]
#![allow(clippy::missing_docs_in_private_items)]
Expand Down
Loading