@rabbitholegg/questdk-plugin-fabric
v1.0.0-alpha.41
Published
Fabric and the Subscription Token Protocol extends the Non Fungible Token standard with the addition of a temporal dimension, and economic incentives for distribution, adoption, growth, and retention.
Downloads
62
Readme
Fabric Plugin
Overview
Fabric and the Subscription Token Protocol extends the Non Fungible Token standard with the addition of a temporal dimension, and economic incentives for distribution, adoption, growth, and retention.
Documentation: https://docs.withfabric.xyz/stp/overview
Mint Gallery: https://hypersub.withfabric.xyz/
Mint Plugin
The mint plugin targets the mint functions on the SubscriptionTokenV1 contract. There are 4 functions that mints may be routed through.
mint
mintFor
mintWithReferral
mintWithReferralFor
The mintFor
methods are used when the NFT is gifted to another address. Referral methods are used when referral metadata is attached to the transaction. Otherwise these all are very similar.
The only parameter on the mint function is numTokens
which is the same value as transaction.value
when ETH is used for the mint.
On mintFor
there is an extra parameter called account
which is the recipient of the NFT when the gift option is choosen on the frontend. This parameter will map to the recipient
.
Limitations
- only 1 subscription NFT can be minted per transaction, so the
amount
paramenter is ignored.