Skip to main content

Solidity API

Contract: IVerifierModule

External Functions

registerVerifierBond

function registerVerifierBondfunction registerVerifierBond(address digitalAssetAddress, uint256 digitalAssetId, address verifier, uint256 bondedAmount) external

Parameters

NameDescription
digitalAssetAddressThe address of the digital asset contract
digitalAssetIdThe token ID of the digital asset
verifierThe address of the verifier
bondedAmountThe amount of tokens bonded by the verifier
Dev: Register a verifier’s bond for a specific verified rights

receiveFees

function receiveFeesfunction receiveFees(address digitalAssetAddress, uint256 digitalAssetId, uint256 amount, address sender) external

Parameters

NameDescription
digitalAssetAddressThe address of the digital asset contract
digitalAssetIdThe token ID of the digital asset
amountThe amount of tokens that should have been sent to this contract
senderThe address that sent the tokens
Dev: Receive rewards for a specific verified rights (called by CulturaRightsBoundAccount)

calculateClaimableRewards

function calculateClaimableRewardsfunction calculateClaimableRewards(address digitalAssetAddress, uint256 digitalAssetId, address verifier) external view returns (uint256 claimableAmount)

Parameters

NameDescription
digitalAssetAddressThe address of the digital asset contract
digitalAssetIdThe token ID of the digital asset
verifierThe address of the verifier

Return Values

Description
The amount of tokens the verifier can claim
Dev: Calculate the claimable rewards for a verifier for a specific verified rights

claimRewards

function claimRewardsfunction claimRewards(address digitalAssetAddress, uint256 digitalAssetId) external

Parameters

NameDescription
digitalAssetAddressThe address of the digital asset contract
digitalAssetIdThe token ID of the digital asset
Dev: Allow a verifier to claim their rewards for a specific verified rights

distributeRewards

function distributeRewardsfunction distributeRewards(address digitalAssetAddress, uint256 digitalAssetId, address boundAccount, uint256 period) external

Parameters

NameDescription
digitalAssetAddressThe address of the digital asset contract
digitalAssetIdThe token ID of the digital asset
boundAccountThe address of the CulturaRightsBoundAccount
periodThe payment period to claim from
Dev: Allows any verifier to trigger the distribution of rewards from the bound account

getVerifierBond

function getVerifierBondfunction getVerifierBond(address digitalAssetAddress, uint256 digitalAssetId, address verifier) external view returns (uint256)

Parameters

NameDescription
digitalAssetAddressThe address of the digital asset contract
digitalAssetIdThe token ID of the digital asset
verifierThe address of the verifier

Return Values

Description
The amount of tokens bonded by the verifier
Dev: Get the amount of tokens a verifier has bonded for a specific verified rights

getTotalBondedAmount

function getTotalBondedAmountfunction getTotalBondedAmount(address digitalAssetAddress, uint256 digitalAssetId) external view returns (uint256)

Parameters

NameDescription
digitalAssetAddressThe address of the digital asset contract
digitalAssetIdThe token ID of the digital asset

Return Values

Description
The total amount of tokens bonded for the verified rights
Dev: Get the total amount of tokens bonded for a specific verified rights