UNPKG

@agoric/zoe

Version:

Zoe: the Smart Contract Framework for Offer Enforcement

28 lines 936 B
/** * This contract mints non-fungible tokens and creates a selling contract * instance to sell the tokens in exchange for some sort of money. * * startInstance() returns a creatorFacet which is a * ticketMaker with a `.sellTokens()` method. `.sellTokens()` takes a * specification of what is being sold, such as: * { * customValueProperties: { ...arbitrary }, * count: 3n, * moneyIssuer: moolaIssuer, * sellItemsInstallationHandle, * pricePerItem: AmountMath.make(moolaBrand, 20n), * } * The payouts are returned as an offerResult in the `outcome`, and an API that * allows selling the tickets that were produced. You can reuse the ticket maker * to mint more tickets (e.g. for a separate show.) * * @param {ZCF<{ * tokenName: string, * }>} zcf */ export function start(zcf: ZCF<{ tokenName: string; }>): { creatorFacet: MintAndSellNFTCreatorFacet; }; //# sourceMappingURL=mintAndSellNFT.d.ts.map