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

feat(frontend): include nICP token #5050

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

AntonioVentilii
Copy link
Collaborator

@AntonioVentilii AntonioVentilii commented Mar 6, 2025

Motivation

The commits in this branch were already reviewed and are used for the patch released with v1.2.1

Reviews:

# Motivation

We want to include the nICP token.

```
Ledger Canister: buwm7-7yaaa-aaaar-qagva-cai
Index Canister: btxkl-saaaa-aaaar-qagvq-cai
```

(see https://docs.waterneuron.fi/more/canisters)
# Motivation

This PR prepares the release of version v1.2.1. It is a patch to include
`nICP` token.
@AntonioVentilii AntonioVentilii marked this pull request as ready for review March 6, 2025 12:08
@AntonioVentilii AntonioVentilii requested a review from a team as a code owner March 6, 2025 12:08

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This PR adds support for the new nICP token to the frontend environment.

  • Introduces a new constant (nICP_IC_DATA) that wraps the nICP token configuration.
  • Updates the ICRC_TOKENS array to include the nICP token alongside existing tokens.

Reviewed Changes

File Description
src/frontend/src/env/networks/networks.icrc.env.ts Added nICP_IC_DATA declaration and updated token list to include nICP

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (2)

src/frontend/src/env/networks/networks.icrc.env.ts:430

  • Verify that the hardcoded position '17' is appropriate for the new nICP token configuration and does not conflict with other token setups.
position: 17

src/frontend/src/env/networks/networks.icrc.env.ts:504

  • Ensure that the addition of the nICP token is verified through adequate tests in the token integration test suite.
...(nonNullish(nICP_IC_DATA) ? [nICP_IC_DATA] : [])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant