-
Notifications
You must be signed in to change notification settings - Fork 17
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
V2 policy examples #183
Conversation
This file contains 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
…coin" This reverts commit 9c5f7be.
chore: added documentation and more tests
ggobugi27
requested changes
Jan 17, 2024
examples/policies/fixed-issuance-policy/fixed-issuance-policy-v1.pact
Outdated
Show resolved
Hide resolved
jermaine150
reviewed
Jan 24, 2024
jermaine150
approved these changes
Jan 25, 2024
ggobugi27
approved these changes
Jan 25, 2024
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.
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 formarmalade-v2
. It implements thekip.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.