NNS Updates, 2024-08-30

Cycles Minting Canister

Proposal 132224

# Upgrade the Cycles-minting Canister to Commit cf23743

__Proposer__: daniel.wong at dfinity.org\
__Source Code__: [cf237434877b39d0a94fb5ef84b13ea576a225ac][new-commit]

[new-commit]: https://github.com/dfinity/ic/tree/cf237434877b39d0a94fb5ef84b13ea576a225ac


## Features, Fixes, and Optimizations

* Support more log visibility options.
* Initialize `average_icp_xdr_conversion_rate`
* Add support for wasm_memory_threshold.


## New Commits

```
$ git log --format="%C(auto) %h %s" 3b3ffedc6aa481fd9b92eefaf46beded9e51a344..cf237434877b39d0a94fb5ef84b13ea576a225ac --  ./rs/nns/cmc
 1fbaf34459 chore(cmc): Use the CYCLES_LEDGER_CANISTER_ID constant in ic_nns_constants (#1234)
 f040350513 feat: [EXC-1675] migrate replica to no-op LogVisibilityV2 (#768)
 ca24b5d66d chore: sort dependencies in Cargo.toml files (#828)
 94f580d004 feat(cmc): Initialize `average_icp_xdr_conversion_rate` (#803)
 4bebd6f6a8 chore: [EXC-1665] Add Wasm memory threshold field to canister settings (#475)
```


## Upgrade Arguments

```candid
()
```


## Current Version

- Current Git Hash: 3b3ffedc6aa481fd9b92eefaf46beded9e51a344
- Current Wasm Hash: f24df747ad451a9d45fe2e98aa60b82578203fb73fc24316cd33ce98307e9f0c


## WASM Verification

See ["Building the code"][prereqs] for prerequisites.

[prereqs]: https://github.com/dfinity/ic?tab=readme-ov-file#building-the-code

```
# 1. Get a copy of the code.
git clone git@github.com:dfinity/ic.git
cd ic
# Or, if you already have a copy of the ic repo,
git fetch
git checkout cf237434877b39d0a94fb5ef84b13ea576a225ac

# 2. Build canisters.
./gitlab-ci/container/build-ic.sh -c

# 3. Fingerprint the result.
sha256sum ./artifacts/canisters/cycles-minting-canister.wasm.gz
```

This should match `wasm_module` field of this proposal.


## Upgrade Arguments Verification

[`didc`][latest-didc] is required.

[latest-didc]: https://github.com/dfinity/candid/releases/latest

```
didc encode '()' | xxd -r -p | sha256sum

```

This should match the `arg_hash` field of this proposal.

Governance Canister

Proposal 132226

# Upgrade the Governance Canister to Commit cf23743

__Proposer__: daniel.wong at dfinity.org\
__Source Code__: [cf237434877b39d0a94fb5ef84b13ea576a225ac][new-commit]

[new-commit]: https://github.com/dfinity/ic/tree/cf237434877b39d0a94fb5ef84b13ea576a225ac


## Features, Fixes, and Optimizations

* Backfill some Neurons Fund data.
* Ban Obsolete proposal types. Specifically,
  * Expunge from the API:
    * SetDefaultFollowees
    * SetSnsTokenSwapOpenTimeWindow
    * OpenSnsTokenSwap
  * Disallow:
    * UpdateAllowedPrincipals
* Deprecated `*_pb` methods now fail randomly.


## New Commits

```
$ git log --format="%C(auto) %h %s" a0207146be211cdff83321c99e9e70baa62733c7..cf237434877b39d0a94fb5ef84b13ea576a225ac --  ./rs/nns/governance ./rs/sns/init
 cf23743487 chore(nns): NeuronsFundAuditInfo migration (#1208)
 1dbafa1b38 chore(nns): Disallow deprecated proposal types at the API layer (#1157)
 d4c3bb26c2 chore: upgrade crates and use workspace version (#1207)
 a820ff4ff9 chore(nns): Remove obsolete proposal type `UpdateAllowedPrincipals` from NNS Governance (#1144)
 57293157de chore(sns): Remove migration code for setting SNS memory limits (#1159)
 b59c0950be chore(nns): Introduce random panics in deprecated _pb methods (#1094)
 a3129e0d7c test(nns): Stop generating .did files. (#1114)
 5b7ebe284f refactor(nns): Put TimeWarp in API crate to remove dependency (#1122)
```


## Current Version

- Current Git Hash: a0207146be211cdff83321c99e9e70baa62733c7
- Current Wasm Hash: bd000bc6cad9ce1b253894c1173c55dc7dfddfb36d8cf47aabc6630cd0ca59da


## WASM Verification

See ["Building the code"][prereqs] for prerequisites.

[prereqs]: https://github.com/dfinity/ic?tab=readme-ov-file#building-the-code

```
# 1. Get a copy of the code.
git clone git@github.com:dfinity/ic.git
cd ic
# Or, if you already have a copy of the ic repo,
git fetch
git checkout cf237434877b39d0a94fb5ef84b13ea576a225ac

# 2. Build canisters.
./gitlab-ci/container/build-ic.sh -c

# 3. Fingerprint the result.
sha256sum ./artifacts/canisters/governance-canister.wasm.gz
```

This should match `wasm_module` field of this proposal.

Genesis Token Canister

Proposal 132227

# Upgrade the Genesis-token Canister to Commit cf23743

__Proposer__: daniel.wong at dfinity.org\
__Source Code__: [cf237434877b39d0a94fb5ef84b13ea576a225ac][new-commit]

[new-commit]: https://github.com/dfinity/ic/tree/cf237434877b39d0a94fb5ef84b13ea576a225ac


## Features, Fixes, and Optimizations

None. This is just to avoid a large amount of unreleased changes piling up.


## New Commits

```
$ git log --format="%C(auto) %h %s" ad5629caa17ac8a4545bc2e3cf0ecc990c9f681e..cf237434877b39d0a94fb5ef84b13ea576a225ac --  ./rs/nns/gtc
 a3129e0d7c test(nns): Stop generating .did files. (#1114)
 c6e64a7e3e chore(crypto): CRP-2567 Rename ic_crypto_ecdsa_secp256k1 crate (#999)
 12e89bb818 refactor: Migrate more type dependencies to use ic_nns_governance_api (#628)
 b4be567dc0 chore: Bump rust version to 1.80 (#642)
 5cfaea5eaa chore: upgrade external crates and use workspace version
 c4563f8781 chore(crypto): CRP-1667 replace outdated libsecp256k1 dependency
 576bb8d173 chore: add buildifier sort comment to Bazel files
```


## Current Version

- Current Git Hash: ad5629caa17ac8a4545bc2e3cf0ecc990c9f681e
- Current Wasm Hash: a403f573c4426065b1a9b7b5b1a7f95c04534c6d79a06be71f1d04212b40e9de


## WASM Verification

See ["Building the code"][prereqs] for prerequisites.

[prereqs]: https://github.com/dfinity/ic?tab=readme-ov-file#building-the-code

```
# 1. Get a copy of the code.
git clone git@github.com:dfinity/ic.git
cd ic
# Or, if you already have a copy of the ic repo,
git fetch
git checkout cf237434877b39d0a94fb5ef84b13ea576a225ac

# 2. Build canisters.
./gitlab-ci/container/build-ic.sh -c

# 3. Fingerprint the result.
sha256sum ./artifacts/canisters/genesis-token-canister.wasm.gz
```

This should match `wasm_module` field of this proposal.
2 Likes