# Packages
No description provided by the author
# Functions
GenerateAddPlaysToSetScript adds multiple plays to a set.
GenerateAddPlayToSetScript adds a play to a set so that moments can be minted from the combo.
No description provided by the author
GenerateAdminMarkMomentUnlockableScript creates a script that marks a moment as unlockable.
GenerateAdminUnlockAllMomentsScript creates a script that unlocks all moments.
GenerateBatchLockMomentScript creates a script that locks multiple moments.
GenerateBatchMintMomentScript mints multiple moments of the same play-set combination.
GenerateBatchMintMomentWithSubeditionScript mints multiple moments with Subedition of the same play-set-subedition combination.
GenerateBatchTransferMomentfromShardedCollectionScript creates a script that transfers a moment.
GenerateBatchTransferMomentScript creates a script that transfers multiple moments.
GenerateBatchUnlockMomentScript creates a script that unlocks multiple moments.
No description provided by the author
GenerateBuySaleScript creates a cadence transaction that makes a purchase of an existing sale.
GenerateBuySaleScript creates a cadence transaction that makes a purchase of an existing sale.
GenerateCancelSaleV3Script creates a cadence transaction that ends a sale by clearing its price.
GenerateChangeOwnerReceiverScript creates a cadence transaction that changes the sellers receiver capability.
GenerateChangeOwnerReceiverScript creates a cadence transaction that changes the sellers receiver capability.
GenerateChangePercentageScript creates a cadence transaction that changes the cut percentage of an existing sale.
GenerateChangePriceScript creates a cadence transaction that changes the price on an existing sale.
GenerateChangePriceScript creates a cadence transaction that changes the price on an existing sale.
GenerateChangeSeriesScript uses the admin to update the current series.
GenerateCreateAndStartSaleScript creates a cadence transaction that creates a Sale collection and stores in in the callers account, and also puts an NFT up for sale in it.
GenerateCreateAndStartSaleScript creates a cadence transaction that creates a Sale collection and stores in in the callers account, and also puts an NFT up for sale in it.
No description provided by the author
GenerateCreateNewSubeditionAdminResourceScript creates new Subedition admin resource for minting with Subeditions.
No description provided by the author
GenerateCreateSaleScript creates a cadence transaction that creates a Sale collection and stores in in the callers account published.
GenerateCreateSaleScript creates a cadence transaction that creates a Sale collection and stores in in the callers account published.
For testing purposes only.
GenerateCreateSubeditionScript creates new Subedition struct.
No description provided by the author
GenerateDestroyMomentsScript creates a script that destroyes select moments from a user's collection.
GenerateDestroyMomentsV2Script creates a script that destroys select moments from a user's collection using the Top Shot contract destroyMoments function.
No description provided by the author
GenerateFulfillPackScript creates a script that fulfulls a pack.
No description provided by the author
GenerateGetAllSubeditionScript creates a script that returns all subeditions.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GenerateGetIsEditionRetiredScript creates a script that indicates if an edition is retired.
GenerateGetIsSetLockedScript creates a script that indicates if a set is locked.
GenerateGetLockedNFTsLengthScript creates a script that returns the number of locked NFTs in the contract.
GenerateGetMomentIsLockedScript creates a script that checks if a moment is locked.
GenerateGetMomentLockExpiryScript creates a script that returns the expiry timestamp of a moment.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GenerateGetNextSetIDScript creates a script that returns next set ID that will be used.
GenerateGetNextSubeditionIDScript creates a script that returns next subedition ID that will be used.
GenerateGetNFTMetadataScript creates a script that returns the metadata for an NFT.
GenerateGetNFTSubeditionScript creates a script that returns the subedition for an NFT.
GenerateGetNumMomentsInEditionScript creates a script that returns the number of moments that have been minted in an edition.
No description provided by the author
No description provided by the author
No description provided by the author
GenerateGetPlaysInSetScript creates a script that returns an array of plays in a set.
GenerateGetSaleLenScript creates a script that retrieves an NFT collection reference and returns its length.
GenerateGetSaleLenScript creates a script that retrieves an NFT collection reference and returns its length.
GenerateGetSalePercentageScript creates a script that retrieves a sale collection from storage and returns the cut percentage.
GenerateGetSalePercentageScript creates a script that retrieves a sale collection from storage and returns the cut percentage.
GenerateGetSalePriceScript creates a script that retrieves a sale collection and returns the price of the specified moment.
GenerateGetSalePriceScript creates a script that retrieves a sale collection and returns the price of the specified moment.
GenerateGetSaleSetIDScript creates a script that checks a sale for a certain ID and returns its set ID.
GenerateGetSaleSetIDScript creates a script that checks a sale for a certain ID and returns its set ID.
No description provided by the author
GenerateGetSetIDsByNameScript creates a script that returns setIDs that share a name.
No description provided by the author
GenerateGetSetNameScript creates a script that returns the name of a set.
GenerateGetSetSeriesScript creates a script that returns the metadata of a play.
GenerateGetSubeditionByIDScript creates a script that returns subedition struct by ID.
No description provided by the author
GenerateGetTopShotMetadataScript creates a script that returns the metadata for an NFT.
GenerateInvalidChangePlaysScript tries to modify the playDatas dictionary which should be invalid.
GenerateIsIDInCollectionScript creates a script that checks a collection for a certain ID.
GenerateLockFakeNFTScript creates a script that tries to lock a NonFungibleToken.NFT.
GenerateLockSetScript locks a set.
GenerateMintMomentScript generates a script to mint a new moment from a play-set combination.
GenerateMintMomentWithSubeditionScript generates a script to mint a new moment with Subedition from a play-set-subedition combination.
GenerateMintPlayScript creates a new play data struct and initializes it with metadata.
GenerateMintSetScript creates a new Set struct and initializes its metadata.
GenerateMintTokensAndBuyScript creates a script that uses the admin resource from the admin accountto mint new tokens and use them to purchase a topshot moment from a market collection.
GenerateMintTokensAndBuyScript creates a script that uses the admin resource from the admin accountto mint new tokens and use them to purchase a topshot moment from a market collection.
No description provided by the author
No description provided by the author
No description provided by the author
GenerateRetireAllPlaysScript retires all plays from a set.
GenerateRetirePlayScript retires a play from a set.
No description provided by the author
GenerateSetNFTsubedtitionScript creates new Subedition entity in map with NFTid as key.
GenerateSetPlaysOwnedByAddressScript generates a script that returns true if each of the SetPlays corresponding to the passed Set and Play IDs are owned by the passed flow.Address.
GenerateSetupAccountScript creates a script that sets up an account to use topshot.
GenerateSetupShardedCollectionScript creates a script that sets up an account to use topshot.
No description provided by the author
GenerateStartSaleScript creates a cadence transaction that starts a sale by depositing an NFT into the Sale Collection with an associated price.
GenerateStartSaleScript creates a cadence transaction that starts a sale by setting the price for the NFT.
GenerateTopShotLockingAdminGrantAdminScript creates a script that stores a new admin.
GenerateTopShotLockingAdminSetLockedNFTsExpiryScript creates a script that sets the lock expiry timestamp of nfts.
GenerateTopShotLockingLockMomentScript creates a script that locks a moment.
GenerateTopShotLockingUnlockMomentScript creates a script that unlocks a moment.
GenerateTransferAdminScript generates a script to create and admin capability and transfer it to another account's admin receiver.
GenerateTransferMomentfromShardedCollectionScript creates a script that transfers a moment.
GenerateTransferMomentScript creates a script that transfers a moment.
GenerateTransferMomentScript creates a script that transfers a moment and cancels its sale if it is for sale.
No description provided by the author
GenerateMintPlayScript creates a new play data struct and initializes it with metadata.
No description provided by the author
GenerateWithdrawFromSaleScript creates a cadence transaction that starts a sale by depositing an NFT into the Sale Collection with an associated price.
# Structs
No description provided by the author