Module contract::ndpc_utils
source ·
[−]Structs
Functions
Calculates the amount of motes that need to be transfered to producer, and droplinked account
Returns the contractPackage hash
Gets a approved_id
and returns the ApprovedNFT related to that, gets the ApprovedNFT from the approved
dict
Simply returns the ratioVerifier of the contract
A shortcut function, which returns the fee that was set in the contract state during installation process
Gets holder_id
and returns the NFTHolder object that has the holder_id in the holders_dict
A shortcut function which returns the holder_ids which a account owns, as a Option
A shortcut function which returns the holders_cnt as a u64
A shortcut function to get a dictionary by its name, and return its URef value
Gets token_id
and returns the NFTMetadata object related to it
A getter function, which gets the ratio verifier account from the contract state, and return it as a PublicKey
Gets request_id
, and returns the PublisRequest related to it, gets the publishRequest from the request_objects
dict
Verify a signature of a message, which is signed by the given publicKey