Solidity API
Contract: VerifierModule
registerVerifierBond
Parameters
| Name | Description |
|---|---|
digitalAssetAddress | The address of the digital asset contract |
digitalAssetId | The token ID of the digital asset |
verifier | The address of the verifier |
bondedAmount | The amount of tokens bonded by the verifier |
receiveFees
Parameters
| Name | Description |
|---|---|
digitalAssetAddress | The address of the DigitalAsset contract |
digitalAssetId | The token ID of the DigitalAsset |
amount | The amount of tokens that should have been sent to this contract |
sender | The address that sent the tokens |
claimRewards
Parameters
| Name | Description |
|---|---|
digitalAssetAddress | The address of the DigitalAsset contract |
digitalAssetId | The token ID of the DigitalAsset |
distributeRewards
Parameters
| Name | Description |
|---|---|
digitalAssetAddress | The address of the DigitalAsset contract |
digitalAssetId | The token ID of the DigitalAsset |
boundAccount | The address of the CulturaRightsBoundAccount |
period | The payment period to claim from |
getVerifierBond
Parameters
| Name | Description |
|---|---|
digitalAssetAddress | The address of the DigitalAsset contract |
digitalAssetId | The token ID of the DigitalAsset |
verifier | The address of the verifier |
Return Values
| Description |
|---|
| The amount of tokens bonded by the verifier |
getTotalBondedAmount
Parameters
| Name | Description |
|---|---|
digitalAssetAddress | The address of the DigitalAsset contract |
digitalAssetId | The token ID of the DigitalAsset |
Return Values
| Description |
|---|
| The total amount of tokens bonded for the VR |
Public Functions
constructor
Parameters
| Name | Description |
|---|---|
_paymentToken | The address of the ERC20 token used for payments |
_casAddress | The address of the Cultura Attestation Service |
calculateClaimableRewards
Parameters
| Name | Description |
|---|---|
digitalAssetAddress | The address of the DigitalAsset contract |
digitalAssetId | The token ID of the DigitalAsset |
verifier | The address of the verifier |
Return Values
| Description |
|---|
| The amount of tokens the verifier can claim |

