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

Q2 Ledger App - New Transaction: ICRC2 #252

Open
lmuntaner opened this issue Nov 22, 2024 · 1 comment
Open

Q2 Ledger App - New Transaction: ICRC2 #252

lmuntaner opened this issue Nov 22, 2024 · 1 comment

Comments

@lmuntaner
Copy link

lmuntaner commented Nov 22, 2024

Support the method to allow another account to withdraw tokens from a user's account defined in ICRC-2.

icrc-2.json.txt

Script to create the test vectors.

Example output:

      "1 | Allow another account to withdraw tokens",
      "2 | Canister Id [1/1] : ppmzm-3aaaa-aaaaa : aacpq-cai",
      "3 | From account [1/9] : 2dfd6-ab : jpf-eihu",
      "4 | From account [2/9] : 7-pwv6m- : qnlbt-os",
      "5 | From account [3/9] : zmg-kb26 : q-rvqms-",
      "6 | From account [4/9] : onmuh-mw : iq3-uqe-",
      "7 | From account [5/9] : v3ucwji. : a36e143c",
      "8 | From account [6/9] : 86e7e471 : e7c71950",
      "9 | From account [7/9] : 6487cf7a : 6cf40da7",
      "10 | From account [8/9] : 6361aeaf : ee5133e1",
      "11 | From account [9/9] : d9acea3d",
      "12 | Allowed Spender [1/9] : krpzt-bu : ecq-u3um",
      "13 | Allowed Spender [2/9] : g-7kb7r- : j5jpx-tw",
      "14 | Allowed Spender [3/9] : qwa-3ykc : 4-y3cnk-",
      "15 | Allowed Spender [4/9] : 7kwvw-5b : q6z-mae-",
      "16 | Allowed Spender [5/9] : bhrgfsi. : d7e85165",
      "17 | Allowed Spender [6/9] : 2cd032ba : 5ed76b17",
      "18 | Allowed Spender [7/9] : f626aa47 : 829f06e5",
      "19 | Allowed Spender [8/9] : 235a0d58 : 0e96d372",
      "20 | Allowed Spender [9/9] : 7729ea24",
      "21 | Amount (Tokens) : 13.314",
      "22 | Expected Current Allowance (Tokens) : 1",
      "23 | Maximum fee (Tokens) : 0.0002",
      "24 | Memo : 11223312"

When the transaction is an ICP transaction (canister is the Ledger ICP), it shows "ICP" instead of "Tokens". This is part of the test vectors.

🔗 zboto Link

@lmuntaner
Copy link
Author

Priority Q2 2025

@lmuntaner lmuntaner changed the title Ledger App - New Transaction: ICRC2 Q2 Ledger App - New Transaction: ICRC2 Dec 18, 2024
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

No branches or pull requests

1 participant