Skip to content

feat: KYC-compliant coin example#25

Merged
chariskms merged 9 commits intomainfrom
ck/permissioned-token-example
Mar 13, 2026
Merged

feat: KYC-compliant coin example#25
chariskms merged 9 commits intomainfrom
ck/permissioned-token-example

Conversation

@chariskms
Copy link
Collaborator

@chariskms chariskms commented Mar 9, 2026

Adds a simple PAS example showing a KYC registry, a custom coin, and treasury logic enforcing KYC checks for minting and transfers with clawback support.

@chariskms chariskms force-pushed the ck/permissioned-token-example branch from 97bd36a to 4b1049c Compare March 11, 2026 16:22
mut request: Request<ClawbackFunds<Balance<MY_COIN>>>,
ctx: &mut TxContext,
) {
approve_clawback(&mut request);
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: Let's avoid direct function imports and make it so that we can see the module, e.g.

kyc_registry::approve_clawback

I think it becomes clearer to the reader

Copy link
Collaborator

@manolisliolios manolisliolios left a comment

Choose a reason for hiding this comment

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

Looks like a great base example.

I'd consider adding some documentation to accompany this demo, what's your thinking there? (we should also ask Jessie)

@chariskms
Copy link
Collaborator Author

Looks like a great base example.

I'd consider adding some documentation to accompany this demo, what's your thinking there? (we should also ask Jessie)

I would like to align it with the Quickstart page and add references there for each code snippet that point to the corresponding example.
I am also preparing an unlock example, as we discussed.

@chariskms chariskms force-pushed the ck/permissioned-token-example branch from 5eeaf68 to 6638c90 Compare March 13, 2026 10:35
@chariskms chariskms merged commit 6b7c645 into main Mar 13, 2026
3 checks passed
@chariskms chariskms deleted the ck/permissioned-token-example branch March 13, 2026 12:35
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