Solidity API
Grade
AttestationRequestData
A struct representing the arguments of the attestation request.AttestationRequest
A struct representing the full arguments of the attestation request.AttestationsResult
A struct representing an internal attestation result.ChallengeRequestData
A struct representing the arguments of the attestation request.ChallengeRequest
A struct representing the full arguments of the attestation request.CulturaRightsBoundAccountInfo
TransferFailed
VerifierNotWhitelisted
AttestationDoesNotExist
AlreadyRevoked
AlreadyRevokedOffchain
AlreadyTimestamped
InsufficientValue
InvalidAttestation
InvalidAttestations
InvalidExpirationTime
InvalidOffset
InvalidRegistry
InvalidRevocation
InvalidRevocations
InvalidSchema
InvalidVerifier
Irrevocable
NotPayable
WrongSchema
LevelAlreadyExists
DigitalAssetCollectionCantBe0Address
ValueSentLessThanGradeFee
AssetHasToBeVerifiedRights
Contract: ICAS
CAS - Cultura Attestation Service interface.External Functions
getSchemaRegistry
Return Values
| Description |
|---|
| The address of the global schema registry. |
attest
Parameters
| Name | Description |
|---|---|
request | The attestation request containing schema and data |
digitalAssetAddress | The address of the digital asset contract |
digitalAssetId | The token ID of the digital asset |
grade | The grade level to assign (0=S, 1=A, 2=B, 3=C) |
amount | The amount of bond tokens to lock |
Return Values
| Description |
|---|
| UID The UID of the new attestation |
delegatedAttest
Parameters
| Name | Description |
|---|---|
delegatedSignature | The signature of the delegating user |
request | The attestation request data |
digitalAssetAddress | The address of the digital asset collection |
digitalAssetId | The ID of the digital asset |
grade | The grade of the digital asset |
amount | The amount of bond tokens to send |
attester | The address of the attester |
Return Values
| Description |
|---|
| The UID of the new attestation |
verifyAttestation
challengeAttestation
Parameters
| Name | Description |
|---|---|
request | The challenge request containing attestation UID and data |
challengeAmount | The amount of bonded tokens to withdraw in the challenge |
isAttestationValid
Parameters
| Name | Description |
|---|---|
uid | The UID of the attestation to retrieve. |
Return Values
| Description |
|---|
| Whether an attestation exists. |
addWLVerifier
Parameters
| Name | Description |
|---|---|
verifier | The address of the verifier to add |
removeWLVerifier
Parameters
| Name | Description |
|---|---|
verifier | The address of the verifier to remove |
getNonce
Parameters
| Name | Description |
|---|---|
user | The address of the user. |
Return Values
| Description |
|---|
| The nonce for the user. |

