@silvana-one/nft
Index
Classes
- AdminData
- ApproveEvent
- Auction
- AuctionBidEvent
- AuctionPacked
- AuctionState
- BB_BidEvent
- BB_CancelBidEvent
- BB_CancelOfferEvent
- BB_ChangeAdminEvent
- BB_NewCollectionEvent
- BB_OfferEvent
- BB_SaleEvent
- BB_UpgradeVerificationKeyEvent
- Bid
- BidEvent
- BulletinBoard
- CollectionData
- ColorPlugin
- DepositEvent
- LimitMintingEvent
- Metadata
- MetadataMap
- MetadataTree
- MetadataValue
- MintEvent
- MintParams
- MintParamsOption
- MintRequest
- MulDivResult
- NFT
- NFTAddress
- NFTAdmin
- NFTData
- NFTDataPacked
- NFTImmutableState
- NFTSharesData
- NFTSharesDataPacked
- NFTStandardApproval
- NFTStandardOwner
- NFTStandardUpdate
- NFTState
- NFTStateStruct
- NFTTransactionContext
- NFTUpdateProof
- OwnershipChangeEvent
- PauseEvent
- PauseNFTEvent
- SellEvent
- Text
- TransferEvent
- TransferExtendedParams
- TransferParams
- UInt64Option
- UpdateEvent
- UpgradeVerificationKeyData
- UpgradeVerificationKeyEvent
- WithdrawEvent
Functions
Interfaces
- BulletinBoardDeployProps
- CollectionDeployProps
- NFTAdminDeployProps
- NFTAdvancedAdminDeployProps
- NFTApprovalDeployProps
- NFTOwnerDeployProps
- NFTSharesAdminDeployProps
- NFTSharesOwnerDeployProps
- NFTUpdateDeployProps
- NonFungibleTokenAuctionContractDeployProps
- NonFungibleTokenBidContractDeployProps
- NonFungibleTokenOfferContractDeployProps
- OwnableContract
Type Aliases
- DefineApprovalFactory
- DefineCollectionFactory
- DefineNFTSharesFactory
- DefineOwnerFactory
- DefineUpdateFactory
- MetadataFieldType
- NFTAdminBase
- NFTAdminContractConstructor
- NFTApprovalBase
- NFTApprovalContractConstructor
- NFTCollectionBase
- NFTCollectionContractConstructor
- NFTOwnerBase
- NFTOwnerContractConstructor
- NFTUpdateBase
- NFTUpdateContractConstructor
- NonFungibleTokenContracts
- PausableContract
- SupportedNetworkId
Variables
Type Aliases
DefineApprovalFactory
Type declaration
Parameters
params: { collectionContract: () => NFTCollectionContractConstructor }
collectionContract: () => NFTCollectionContractConstructor
Returns NFTApprovalContractConstructor
DefineCollectionFactory
Type declaration
Parameters
params: { adminContract: () => NFTAdminContractConstructor; approvalContract: () => NFTApprovalContractConstructor; ownerContract: () => NFTOwnerContractConstructor; updateContract: () => NFTUpdateContractConstructor }
adminContract: () => NFTAdminContractConstructor
approvalContract: () => NFTApprovalContractConstructor
ownerContract: () => NFTOwnerContractConstructor
updateContract: () => NFTUpdateContractConstructor
Returns NFTCollectionContractConstructor
DefineNFTSharesFactory
Type declaration
Parameters
params: { auctionContract: () => ReturnType<typeof AuctionFactory> }
auctionContract: () => ReturnType<typeof AuctionFactory>
Returns ReturnType<typeof NFTSharesFactory>
DefineOwnerFactory
Type declaration
Parameters
params: { collectionContract: () => NFTCollectionContractConstructor }
collectionContract: () => NFTCollectionContractConstructor
Returns NFTOwnerContractConstructor
DefineUpdateFactory
Type declaration
Parameters
params: { collectionContract: () => NFTCollectionContractConstructor }
collectionContract: () => NFTCollectionContractConstructor
Returns NFTUpdateContractConstructor
MetadataFieldType
NFTAdminBase
The NFTAdminBase
interface defines the administrative functionalities required for managing an NFT collection on the Mina Protocol.
It extends the SmartContract
class and specifies methods that enforce permissions and validations for various NFT operations.
NFTAdminContractConstructor
Defines a constructor for contracts implementing NFTAdminBase
, accepting an address
public key and returning an instance of NFTAdminBase
.
Type declaration
Parameters
address: PublicKey
The contract's address.
Returns NFTAdminBase
NFTApprovalBase
The NFTApprovalBase
interface defines the administrative functionalities required for managing an NFT transfer approval on the Mina Protocol.
NFTApprovalContractConstructor
Defines a constructor for contracts implementing NFTApprovalBase
, accepting an address
public key and returning an instance of NFTApprovalBase
.
Type declaration
Parameters
address: PublicKey
The public key of the contract's owner.
Returns NFTApprovalBase
NFTCollectionBase
The NFTCollectionBase
interface defines the functionalities required for managing an NFT collection on the Mina Protocol.
It extends the SmartContract
class and specifies methods that enforce permissions and validations for various NFT operations.
NFTCollectionContractConstructor
Defines a constructor for contracts implementing NFTCollectionBase
, accepting an address
public key and returning an instance of NFTCollectionBase
.
Type declaration
Parameters
address: PublicKey
The contract's address.
Returns NFTCollectionBase
NFTOwnerBase
The NFTOwnerBase
interface defines the administrative functionalities required for managing an NFT collection on the Mina Protocol.
It extends the SmartContract
class and specifies methods that enforce permissions and validations for various NFT operations.
NFTOwnerContractConstructor
Defines a constructor for contracts implementing NFTOwnerBase
, accepting an address
public key and returning an instance of NFTOwnerBase
.
Type declaration
Parameters
address: PublicKey
The public key of the contract's owner.
Returns NFTOwnerBase
NFTUpdateBase
The NFTUpdateBase
interface defines the update functionalities required for managing an NFT update
NFTUpdateContractConstructor
Defines a constructor for contracts implementing NFTUpdateBase
, accepting an address
public key and returning an instance of NFTUpdateBase
.
Type declaration
Parameters
address: PublicKey
The public key of the contract's owner.
Returns NFTUpdateBase
NonFungibleTokenContracts
Type declaration
Admin: NFTAdminContractConstructor
Approval: NFTApprovalContractConstructor
Collection: ReturnType<typeof CollectionFactory>
Owner: NFTOwnerContractConstructor
Update: NFTUpdateContractConstructor
PausableContract
The PausableContract interface provides a mechanism to dynamically enable or disable
certain functionalities within smart contracts. It extends the SmartContract
class
and introduces methods that allow a contract to be paused and resumed, which is crucial
for managing emergencies, upgrades, or maintenance periods.
By implementing the PausableContract interface, contracts gain greater control over their operational states, enhancing security and flexibility in response to various scenarios.
SupportedNetworkId
Type representing the supported network IDs for the Mina Protocol.
Currently supports:
"devnet"
: The Mina local blockchain and devnet"mainnet"
: The Mina mainnet
Variables
Admin
AdvancedAdmin
AdvancedApproval
AdvancedCollection
constAdvancedOffer
AdvancedOwner
Approval
Collection
constCollectionErrors
Type declaration
adminContractAddressNotSet: string
cannotMint: string
cannotMintMasterNFT: string
cannotUpgradeVerificationKey: string
collectionNotPaused: string
collectionPaused: string
invalidOracleAddress: string
invalidRoyaltyFee: string
noPermissionToChangeBaseUri: string
noPermissionToChangeCreator: string
noPermissionToChangeName: string
noPermissionToChangeRoyalty: string
noPermissionToChangeTransferFee: string
noPermissionToPause: string
noPermissionToResume: string
noPermissionToSetAdmin: string
onlyOwnerCanUpgradeVerificationKey: string
transferApprovalRequired: string
transferNotAllowed: string
upgradeContractAddressNotSet: string
wrongMasterNFTaddress: string
constMAX_ROYALTY_FEE
constMetadataFieldTypeValues
Mapping of metadata field types to their code values and associated types.
Type declaration
readonlyaddress: { code: [object Object]; inputType: any; storedType: typeof MinaAddress }
readonlycode: [object Object]
readonlyinputType: any
readonlystoredType: typeof MinaAddress
readonlyfield: { code: [object Object]; inputType: any; storedType: any }
readonlycode: [object Object]
readonlyinputType: any
readonlystoredType: any
readonlyimage: { code: [object Object]; inputType: string; storedType: typeof Text }
readonlycode: [object Object]
readonlyinputType: string
readonlystoredType: typeof Text
readonlymap: { code: [object Object]; inputType: typeof Metadata; storedType: typeof Metadata }
readonlynumber: { code: [object Object]; inputType: any; storedType: any }
readonlycode: [object Object]
readonlyinputType: any
readonlystoredType: any
readonlystring: { code: [object Object]; inputType: string; storedType: any }
readonlycode: [object Object]
readonlyinputType: string
readonlystoredType: any
readonlytext: { code: [object Object]; inputType: string; storedType: typeof Text }
readonlycode: [object Object]
readonlyinputType: string
readonlystoredType: typeof Text
readonlytree: { code: [object Object]; inputType: typeof MetadataTree; storedType: typeof MetadataTree }
readonlycode: [object Object]
readonlyinputType: typeof MetadataTree
readonlystoredType: typeof MetadataTree
readonlyurl: { code: [object Object]; inputType: string; storedType: typeof Text }
readonlycode: [object Object]
readonlyinputType: string
readonlystoredType: typeof Text
constNFTAdvancedAdmin
constNFTGameProgram
Defines the NFTProgram ZkProgram with methods for updating NFT metadata.
constNFTProgram
Defines the NFTProgram ZkProgram with methods for updating NFT metadata.
constOffer
Owner
constTEXT_TREE_HEIGHT
The default height of the Merkle tree used to represent the text data.
Update
constnftVerificationKeys
An object containing the verification keys for the NFT Collection and NFT contracts on different networks.
The possible types for metadata fields.