RedactedMinaNFT
Hierarchy
- BaseMinaNFT
- RedactedMinaNFT
Index
Constructors
Properties
Methods
Constructors
constructor
Parameters
nft: BaseMinaNFT
Returns RedactedMinaNFT
Properties
metadata
nft
staticbadgeVerificationKey
staticbadgeVerifierVerificationKey
staticcache
staticescrowVerificationKey
staticnamesVerificationKey
staticredactedMapVerificationKey
statictransferVerificationKey
staticupdateVerificationKey
staticupdaterVerificationKey
staticverificationKey
staticverifierVerificationKey
Methods
publiccopyMetadata
copy public attribute
Parameters
key: string
key of the attribute
Returns void
publicgetMetadata
Gets public attribute
Parameters
key: string
key of the attribute
Returns undefined | PrivateMetadata
value of the attribute
publicgetMetadataRootAndMap
Calculates a root and MerkleMap of the publicAttributes
Returns { map: MetadataMap; root: Metadata }
Root and MerkleMap of the publicAttributes
map: MetadataMap
root: Metadata
publicprepareProofData
Returns Promise<string[]>
proof
publicproof
Parameters
verbose: boolean = false
Returns Promise<RedactedMinaNFTMapStateProof>
proof
publicstaticcompile
Compiles MinaNFT contract
Parameters
rollup: boolean = false
Returns Promise<VerificationKey>
verification key
publicstaticcompileBadge
Compiles MinaNFTVerifierBadge contract
Returns Promise<VerificationKey>
verification key
publicstaticcompileEscrow
Compiles Escrow contract
Returns Promise<VerificationKey>
verification key
publicstaticcompileRedactedMap
Compiles RedactedMinaNFTMapCalculation contract
Returns Promise<VerificationKey>
verification key
publicstaticcompileVerifier
Compiles MinaNFTVerifier contract
Returns Promise<VerificationKey>
verification key
publicstaticdeploy
Parameters
deployer: PrivateKey
privateKey: PrivateKey
optionalnonce: number
Returns Promise<undefined | PendingTransaction>
publicstaticsetCache
Sets a cache for prover keys
Parameters
cache: Cache
Returns void
publicstaticsetCacheFolder
Sets a cache folder for prover keys
Parameters
folder: string = "./cache"
folder for prover keys default is "./cache"
Returns void
publicstaticstringFromField
Converts a Field to a string
Parameters
field: Field
Field to convert
Returns string
string
publicstaticstringFromFields
Converts a Field[] to a string
Parameters
fields: Field[]
Fields to convert
Returns string
string
publicstaticstringToField
Converts a string to a Field
Parameters
item: string
string to convert
Returns Field
string as a Field
publicstaticstringToFields
Converts a string to a Fields
Parameters
item: string
string to convert
Returns Field[]
string as a Field[]
publicstaticurlFromStorage
Converts a Storage to a storage url string
Parameters
storage: Storage
Storage to convert
Returns string
string
publicstaticurlFromStorageString
Converts a string "i:..." or "a:..." to a storage url string
Parameters
storageStr: string
string to convert
Returns string
string
Base class for MinaNFT