Skip to main content

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

Custom errors for better reverts

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

Returns the address of the global schema registry.

Return Values

attest

Creates an attestation for a digital asset with specified grade and bonded amount

Parameters

Return Values

delegatedAttest

Allows users to attest to a specific schema on behalf of another user

Parameters

Return Values

verifyAttestation

Verifies an attestation

challengeAttestation

Challenges an existing attestation by withdrawing bonded tokens

Parameters

isAttestationValid

Checks whether an attestation exists.

Parameters

Return Values

addWLVerifier

Adds a whitelisted verifier to the contract

Parameters

removeWLVerifier

Removes a whitelisted verifier from the contract

Parameters

getNonce

Returns the nonce for a given user.

Parameters

Return Values

Events

Attested

Emitted when an attestation has been made.

Verified

Challenged

Emitted when an attestation has been challenged.

Revoked

Emitted when an attestation has been revoked.

Timestamped

Emitted when a data has been timestamped.

RevokedOffchain

Emitted when a data has been revoked.

CulturaRightsBoundAccountDeployed

Emitted when a CulturaRightsBoundAccount has been deployed.

VerifierWLStateChanged

Emitted when a user is promoted or demoted from Verifier Whitelist.