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: icrc21_canister_call_consent_message for ledger-icp #709

Merged
merged 10 commits into from
Sep 3, 2024

Conversation

peterpeterparker
Copy link
Member

Motivation

Add support for icrc21_canister_call_consent_message to @dfinity/ledger-icp.

Changes

  • Expose and implement new function icrc21ConsentMessage.
  • Add a new parameter for the request.
  • Map the potential error.

Signed-off-by: David Dal Busco <david.dalbusco@dfinity.org>
Copy link
Contributor

github-actions bot commented Sep 3, 2024

size-limit report 📦

Path Size
@dfinity/ckbtc 7.98 KB (0%)
@dfinity/cketh 3.45 KB (0%)
@dfinity/cmc 1.29 KB (0%)
@dfinity/ledger-icrc 3.89 KB (0%)
@dfinity/ledger-icp 15.43 KB (+1.36% 🔺)
@dfinity/nns 36.48 KB (0%)
@dfinity/nns-proto 140.98 KB (0%)
@dfinity/sns 15.92 KB (0%)
@dfinity/utils 4.5 KB (0%)
@dfinity/ic-management 2.92 KB (0%)

peterpeterparker and others added 3 commits September 3, 2024 08:05
Signed-off-by: David Dal Busco <david.dalbusco@dfinity.org>
Copy link
Contributor

@lmuntaner lmuntaner left a comment

Choose a reason for hiding this comment

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

One small comment, but already approving, thanks!

packages/ledger-icp/src/ledger.canister.ts Outdated Show resolved Hide resolved
peterpeterparker and others added 5 commits September 3, 2024 09:36
Signed-off-by: David Dal Busco <david.dalbusco@dfinity.org>
Signed-off-by: David Dal Busco <david.dalbusco@dfinity.org>
@peterpeterparker peterpeterparker merged commit e51ed1d into main Sep 3, 2024
11 checks passed
@peterpeterparker peterpeterparker deleted the feat/icrc21-consent-message branch September 3, 2024 11:32
peterpeterparker added a commit that referenced this pull request Sep 4, 2024
# Motivation

Add support for `icrc21_canister_call_consent_message` to
`@dfinity/ledger-icrc`.

# Notes

It annoys me a bit that the close basically duplicates the code of ICP
(provided in PR #709) but, not sure it is worth the effort at this point
to create a util or even lib for that particular topic. We might do so
if more canisters starts implementing consent message but, happy to hear
any thoughts about it.

# Changes

- Expose and implement new function `consentMessage`.
- Add a new parameter for the request.
- Map the potential error.

---------

Signed-off-by: David Dal Busco <david.dalbusco@dfinity.org>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
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.

2 participants