Skip to main content

Solidity API

Contract: VerifierModule

registerVerifierBond

Parameters

Dev: Register a verifier’s bond for a specific verified rights

receiveFees

Parameters

Dev: Receive rewards for a specific VR (called by CulturaRightsBoundAccount)

claimRewards

Parameters

Dev: Allow an verifier to claim their rewards for a specific VR

distributeRewards

Parameters

Dev: Allows any verifier to trigger the distribution of rewards from the bound account

getVerifierBond

Parameters

Return Values

Dev: Get the amount of tokens an verifier has bonded for a specific VR

getTotalBondedAmount

Parameters

Return Values

Dev: Get the total amount of tokens bonded for a specific VR

Public Functions

constructor

Parameters

Dev: Initialize the contract with payment token address and CAS address

calculateClaimableRewards

Parameters

Return Values

Dev: Calculate the claimable rewards for an verifier for a specific VR

Events

VerifierRegistered

RewardsReceived

RewardsClaimed

RewardsDistributed

Custom Errors

ZeroAddress

OnlyCASCanRegisterVerifiers

NoVerifiersRegisteredForVR

TokenTransferFailed

NoRewardsToClaim

NotAnVerifierForVR

NoRewardsToDistribute