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
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
fee | bool | Fee status. |
bulk | bool |
addModule
Add a new module to the list of modules.
Parameters
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
schemaIds | bytes32[] | The schemaIds to set the fee for. |
_attestationFees | uint256[] | The fees required to attest. |
setUpCertificates
Set up certificate mappings for schemaIds.
Parameters
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
attestationPayload | struct AttestationPayload | The payload of the attestation. |
validationPayload | bytes[] | The validation payload required for the module. |
withdraw
Withdraw ETH from the contract.
Parameters
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
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