Add drafts for arc 20 / arc 22#134
Merged
Merged
Conversation
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: JR <121876847+snarkworld@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: JR <121876847+snarkworld@users.noreply.github.com>
…-ARC-22 Clean up "update status for arc 20 / arc 22"
Contributor
There was a problem hiding this comment.
Pull request overview
Adds initial draft specifications and Leo interface libraries for ARC-20 (fungible token standard) and ARC-22 (compliance-oriented fungible token standard with freeze-list + compliance records), plus some repository ignore-file updates.
Changes:
- Add ARC-20 draft README and
IARC20Leo interface package. - Add ARC-22 draft README and
IARC22Leo library/interface package (Merkle proof helpers + interfaces). - Extend root
.gitignoreto ignore common Node artifacts.
Reviewed changes
Copilot reviewed 8 out of 9 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
.gitignore |
Ignores Node artifacts repo-wide. |
arc-0020/README.md |
Introduces the ARC-20 draft specification text. |
arc-0020/IARC20/src/lib.leo |
Adds the IARC20 interface definition. |
arc-0020/IARC20/program.json |
Adds Leo package metadata for IARC20. |
arc-0020/IARC20/.gitignore |
Adds Leo build output ignores for IARC20. |
arc-0022/README.md |
Introduces the ARC-22 draft specification text (compliance + freeze-list). |
arc-0022/IARC22/src/lib.leo |
Adds Merkle helper functions + IARC22/IARC22Freezelist interfaces. |
arc-0022/IARC22/program.json |
Adds Leo package metadata for IARC22. |
arc-0022/IARC22/.gitignore |
Adds Leo build output ignores for IARC22. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+65
to
+68
| fn verify_inclusion(addr: address, merkle_proof: MerkleProof) -> field { | ||
| assert_eq(addr as field, merkle_proof.siblings[0u32]); | ||
| let (root, depth): (field, u32) = calculate_root_depth_siblings(merkle_proof); | ||
| return root; |
| private input_record: Token, | ||
| private sender_merkle_proofs: [MerkleProof; 2u32], | ||
| ) -> (ComplianceRecord, Token, Final); | ||
| fn transfer_public_to_private(recipient: address, public amount: u128) -> ( |
Comment on lines
+185
to
+186
| fn join(input_1: Token, input_2: Token) -> Token; | ||
| fn split(input: Token, amount: u128) -> (Token, Token); |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: JR <121876847+snarkworld@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: JR <121876847+snarkworld@users.noreply.github.com>
vicsn
approved these changes
Jun 5, 2026
| return root1; | ||
| } | ||
|
|
||
| interface IARC22Freezelist { |
Collaborator
There was a problem hiding this comment.
Weak preference to not include this interface, as this may not be as interesting to the DeFi apps dynamically using the underlying tokens - just for the compliance officer who is a fixed set of entities currently anyway.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ARC 20 + ARC 22 drafts