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

V2 policy examples #183

Merged
merged 41 commits into from
Jan 25, 2024
Merged

V2 policy examples #183

merged 41 commits into from
Jan 25, 2024

Conversation

wooglie
Copy link
Member

@wooglie wooglie commented Jan 16, 2024

This PR adds three example policies, tests, and documentation explaining each

Fixed Issuance Policy

Fixed Issuance Policy is an example module of Marmalade which provides a simple method to program a fractional token. Because there are various ways to program fractional tokens, the contract only provides the simplest feature that is required for fractional tokens, and encourages users to extend upon the
contract.

Onchain Manifest Policy

The onchain-manifest-policy-v1 module is a part of Marmalade that provides onchain manifest storage for marmalade-v2. It implements the kip.token-policy-v2 interface and enables the management of token manifests on the blockchain.

Timed Mint Policy

The Timed Mint Policy is a module of Marmalade that enables the minting of tokens within a specific time window. This policy restricts the minting of tokens to a predefined period and provides control over the minting process.

Soul Bound Policy

Soul Bound Policy is an example module of Marmalade which provides a simple method to bind a token to an account (soul). In this context, a soul-bound token refers to a token that is uniquely associated with a specific account.

This token can be initiated, minted, and burned but not sold or transferred.

The token can be minted only once, even if the token is burned in the future.

alejandroreinel and others added 30 commits September 4, 2023 23:20
chore: added documentation and more tests
@wooglie wooglie changed the title V2 examples V2 policy examples Jan 16, 2024
@wooglie wooglie merged commit f7aa98a into main Jan 25, 2024
3 checks passed
@wooglie wooglie deleted the v2-examples branch January 25, 2024 11:20
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.

3 participants