Proposal to upgrade NNS Subscription Utility - fe5iu-uiaaa-aaaal-ajxea-cai

Since, to my knowledge, this is one of the first times someone has asked the NNS to upgrade a 3rd party Motoko canister, I’ll leave this up for comments and discussion for a couple of days before making the proposal. ping @lara (I have a particular question about the arguments…I thinking that maybe I need to provide the did file to didc even though it is just null?

Upgrade NNS Subscription Utility canister to commit 181d27c8c0ff6a8a184dacf42d133371304399cb

This is a proposal to upgrade the NNS Subscription utility located at fe5iu-uiaaa-aaaal-ajxea-cai to the sha256 wasm hash of b5dedd5d3cdaa9eea8289db101c3c904c5107633b6b1297329a02a84e28acaa5

ChangeLog:

v0_2_0 - 2024-09-24 Code Fix

Fixes

  • Updated to ICRC79.mo v0_2_2 - See change long at icrc79.mo/CHANGELOG.md at main · PanIndustrial-Org/icrc79.mo · GitHub
    • Fix in query processing to ensure deterministic ordering for pagination and look up with a fall back for deleted records.
    • Fixes for bugs caused by deduping transaction code that would error on retries of previously failed transactions(ie. subscribing without an approval and then trying again after making an approval)
    • Updates - Adde some fields to the product object for convenience
  • Rerun blockchain from Genesis to fix misspelled item. Obviously not something we want to do regularly, but since we have less than 80 blocks, this is the time to do it.
  • Add ICRC3_supported_block_types

You can view the updated code at Comparing v0.0.1...v0.2.0 · icdevsorg/nns-sub-utility · GitHub

Verify Wasm:

git clone git@github.com:icdevsorg/nns-sub-utility.git
cd nns-sub-utility
git checkout tags/v0.2.0
dfx build subsprod --check
shasum -a 256 .dfx/local/canisters/subsprod/subsprod.wasm.gz

The canister will be upgraded with null arguments.

didc encode "(null)"
4449444c00017f

with the sha25 hash of

d72053a237c6261523f090ad50dc6f7d196be06fc6b627fc7aa4ea385ab20cb6

Proposal Parameters:

{
  "skipStoppingBeforeInstalling": false,
  "canisterId": "fe5iu-uiaaa-aaaal-ajxea-cai",
  "installMode": 3,
  "wasmModuleHash": "591cd55bfc72c9cd09ef9aa6168feb0b81036a0f5cc086745c71c2466449d627",
  "argHash": "d72053a237c6261523f090ad50dc6f7d196be06fc6b627fc7aa4ea385ab20cb6"
}
6 Likes

Obviously, with the announcement over at Regarding NNS controlling application canisters I’m not going to blow 10 ICP on submitting a request that will be rejected. I’ve responded on that thread.

I’ll come up with a temporary solution in the short term and get a new version out that is usable.

1 Like