@rabbitholegg/questdk-plugin-fabric
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-alpha.11 • Public • Published

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.
Sample Transactions

Readme

Keywords

none

Package Sidebar

Install

npm i @rabbitholegg/questdk-plugin-fabric

Weekly Downloads

426

Version

1.0.0-alpha.11

License

ISC

Unpacked Size

2.56 MB

Total Files

73

Last publish

Collaborators

  • quazia
  • jamierabbithole
  • rhjim