RubyScoreVeraxPortal

RubyScoreVeraxPortal is a smart contract that handles the attestation process for RubyScore certificates. It manages fees, signatures based on specific schemas.

bulkStatus

bool bulkStatus

feeStatus

bool feeStatus

certificates

mapping(bytes32 => bool) certificates

attestationFees

mapping(bytes32 => uint256) attestationFees

InvalidCertificateId

error InvalidCertificateId()

ArrayLengthMismatch

error ArrayLengthMismatch()

InvalidAttestationFee

error InvalidAttestationFee()

ZeroAddressCheck

error ZeroAddressCheck()

WithdrawFail

error WithdrawFail()

FeesSet

event FeesSet(bytes32[] schemaIds, uint256[] attestationFees)

constructor

constructor(address[] modules, address router) public

Contract constructor.

Parameters

pause

function pause() public

unpause

function unpause() public

checkFee

function checkFee(bytes32 schemaId, uint256 _value) public view

Check if the provided value meets the attestation fee requirement.

Parameters

setCheckStatuses

function setCheckStatuses(bool fee, bool bulk) external

Set the fee, signature, and issuance statuses.

Parameters

addModule

function addModule(address module) external

Add a new module to the list of modules.

Parameters

removeModules

function removeModules() external

Remove all modules from the list of modules.

setFees

function setFees(bytes32[] schemaIds, uint256[] _attestationFees) public

Set the fees for specific schemaIds.

Parameters

setUpCertificates

function setUpCertificates(bytes32[] schemaIds, bool[] certificateStatuses) public

Set up certificate mappings for schemaIds.

Parameters

attestRubyscore

function attestRubyscore(struct AttestationPayload attestationPayload, bytes[] validationPayload) external payable

Attest a score with a given attestation payload and validation payloads.

Parameters

withdraw

function withdraw(address payable to, uint256 amount) external

Withdraw ETH from the contract.

Parameters

_onAttest

function _onAttest(struct AttestationPayload attestationPayload, address attester, uint256 value) internal

Optional method run before a payload is attested

Parameters

_onBulkAttest

function _onBulkAttest(struct AttestationPayload[] attestationsPayloads, bytes[][] validationPayloads) internal

Optional method run when attesting a batch of payloads

_onReplace

function _onReplace(bytes32 attestationId, struct AttestationPayload attestationPayload, address attester, uint256 value) internal

Optional method run when an attestation is replaced

Parameters

_onBulkReplace

function _onBulkReplace(bytes32[] attestationIds, struct AttestationPayload[] attestationsPayloads, bytes[][] validationPayloads) internal

Last updated