new VerifierModuleClient()
new VerifierModuleClient(publicClient,walletClient,contractAddress):VerifierModuleClient
Parameters
publicClient
walletClient
contractAddress
`0x${string}`
Returns
VerifierModuleClient
Methods
distributeRewards()
distributeRewards(Distributes rewards from the bound account to the verifier moduledigitalAssetAddress,digitalAssetId,boundAccount,period):Promise<`0x${string}`>
Parameters
digitalAssetAddress
`0x${string}`
The address of the digital asset contract
digitalAssetId
bigint
The token ID of the digital asset
boundAccount
`0x${string}`
The address of the CulturaRightsBoundAccount
period
bigint
The payment period to claim from
Returns
Promise<`0x${string}`>
Transaction hash
claimRewards()
claimRewards(Allows a verifier to claim their rewards for a specific verified rightdigitalAssetAddress,digitalAssetId):Promise<`0x${string}`>
Parameters
digitalAssetAddress
`0x${string}`
The address of the digital asset contract
digitalAssetId
bigint
The token ID of the digital asset
Returns
Promise<`0x${string}`>
Transaction hash
calculateClaimableRewards()
calculateClaimableRewards(Calculate the claimable rewards for a verifier for a specific verified rightdigitalAssetAddress,digitalAssetId,verifier):Promise<bigint>
Parameters
digitalAssetAddress
`0x${string}`
The address of the digital asset contract
digitalAssetId
bigint
The token ID of the digital asset
verifier
`0x${string}`
The address of the verifier
Returns
Promise<bigint>
The amount of tokens the verifier can claim
getVerifierBond()
getVerifierBond(Get the amount of tokens a verifier has bonded for a specific verified rightdigitalAssetAddress,digitalAssetId,verifier):Promise<bigint>
Parameters
digitalAssetAddress
`0x${string}`
The address of the digital asset contract
digitalAssetId
bigint
The token ID of the digital asset
verifier
`0x${string}`
The address of the verifier
Returns
Promise<bigint>
The amount of tokens bonded by the verifier
getTotalBondedAmount()
getTotalBondedAmount(Get the total amount of tokens bonded for a specific verified rightdigitalAssetAddress,digitalAssetId):Promise<bigint>
Parameters
digitalAssetAddress
`0x${string}`
The address of the digital asset contract
digitalAssetId
bigint
The token ID of the digital asset
Returns
Promise<bigint>
The total amount of tokens bonded for the verified right
getTotalRewards()
getTotalRewards(Get the total rewards (collected fees) for a specific verified rightdigitalAssetAddress,digitalAssetId):Promise<bigint>
Parameters
digitalAssetAddress
`0x${string}`
The address of the digital asset contract
digitalAssetId
bigint
The token ID of the digital asset
Returns
Promise<bigint>
The total amount of rewards accumulated for the verified right
bondTokens()
bondTokens(Allows a verifier to bond tokens for a specific digital assetdigitalAssetAddress,digitalAssetId,amount):Promise<`0x${string}`>
Parameters
digitalAssetAddress
`0x${string}`
The address of the digital asset contract
digitalAssetId
bigint
The token ID of the digital asset
amount
bigint
The amount of tokens to bond
Returns
Promise<`0x${string}`>
Transaction hash
