NNS Dapp Features — Import tokens by URL (135055)

Happy Friday ICPeople! Proposal 135055 just went live, please consider voting. :ballot_box:

Upgrade frontend NNS Dapp canister to commit 137b99d32fcd6530a4479f3159c48d46a8ddfbb3

This week’s proposal includes a feature to allow users to import custom ICRC-1 tokens by a URL. Including the index canister is optional. The structure of the URL is the following:

If you know both the ledger and the index canister IDs:

https://nns.ic0.app/tokens/?import-ledger-id=m7h5t-euaaa-aaaaa-qabia-cai&import-index-id=myg3h-jmaaa-aaaaa-qabiq-cai

If you only know the ledger canister ID:

https://nns.ic0.app/tokens/?import-ledger-id=m7h5t-euaaa-aaaaa-qabia-cai

Once you click on the link, you will be prompted to sign in.

After signing in, the NNS dapp performs the usual token verification. Please make sure you import tokens from trusted sources. You can verify the ledger canister ID yourself, and confirm the token import.

Change Log

Added

  • Import tokens by URL.

Changed

  • Proceed with rollout of re-enabling of certification of certain calls from 30% to 100%.
  • Change the Page Banner icon in the staking page.

Fixed

  • Reporting: Add Excel string format preservation for neuron ids.

Wasm Verification

To build the wasm module yourself and verify its hash, run the following commands from the root of the nns-dapp repo:

git fetch  # to ensure you have the latest changes.
git checkout "137b99d32fcd6530a4479f3159c48d46a8ddfbb3"
git merge-base --is-ancestor HEAD origin/main && echo "OK" || echo "Commit is not on main branch!"
./scripts/docker-build
sha256sum nns-dapp.wasm.gz

You may also want to verify the canister arguments. In the proposal they are binary, which is not very readable. Docker provides both binary and text formats and you can verify that the text format corresponds to the binary arg_hex field in the proposal.

cat nns-dapp-arg-mainnet.did
didc encode "$(cat nns-dapp-arg-mainnet.did)" | xxd -r -p | sha256sum
3 Likes