RubyScoreVeraxPortal
RubyScoreVeraxPortal is a smart contract that handles the attestation process for RubyScore certificates. It manages fees, signatures based on specific schemas.
bulkStatus
feeStatus
certificates
attestationFees
InvalidCertificateId
ArrayLengthMismatch
InvalidAttestationFee
ZeroAddressCheck
WithdrawFail
FeesSet
constructor
Contract constructor.
Parameters
modules
address[]
List of modules to use for the portal.
router
address
The Router's address.
pause
unpause
checkFee
Check if the provided value meets the attestation fee requirement.
Parameters
schemaId
bytes32
The schemaId for which to check the fee.
_value
uint256
The value sent for the attestation.
setCheckStatuses
Set the fee, signature, and issuance statuses.
Parameters
fee
bool
Fee status.
bulk
bool
addModule
Add a new module to the list of modules.
Parameters
module
address
The address of the new module.
removeModules
Remove all modules from the list of modules.
setFees
Set the fees for specific schemaIds.
Parameters
schemaIds
bytes32[]
The schemaIds to set the fee for.
_attestationFees
uint256[]
The fees required to attest.
setUpCertificates
Set up certificate mappings for schemaIds.
Parameters
schemaIds
bytes32[]
The schemaIds for which to set up certificates.
certificateStatuses
bool[]
The corresponding certificate statuses.
attestRubyscore
Attest a score with a given attestation payload and validation payloads.
Parameters
attestationPayload
struct AttestationPayload
The payload of the attestation.
validationPayload
bytes[]
The validation payload required for the module.
withdraw
Withdraw ETH from the contract.
Parameters
to
address payable
The address to which the ETH will be withdrawn.
amount
uint256
The amount of ETH to withdraw.
_onAttest
Optional method run before a payload is attested
Parameters
attestationPayload
struct AttestationPayload
the attestation payload supposed to be attested
attester
address
the address of the attester
value
uint256
the value sent with the attestation
_onBulkAttest
Optional method run when attesting a batch of payloads
_onReplace
Optional method run when an attestation is replaced
Parameters
attestationId
bytes32
the ID of the attestation being replaced
attestationPayload
struct AttestationPayload
the attestation payload to create attestation and register it
attester
address
the address of the attester
value
uint256
the value sent with the attestation
_onBulkReplace
Last updated