Interfaces
ICAS
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
struct Grade {
string name;
uint256 fee;
uint256 requiredTokens;
uint256 requiredWLVerifiers;
uint256 requiredCommunityUsers;
}
struct AttestationRequestData {
address recipient;
uint64 expirationTime;
bool revocable;
bytes32 refUID;
bytes data;
}
struct AttestationRequest {
bytes32 schema;
struct AttestationRequestData data;
}
struct AttestationsResult {
uint256 usedValue;
bytes32[] uids;
}
struct ChallengeRequestData {
address recipient;
uint64 expirationTime;
bool revocable;
bytes32 refUID;
bytes data;
uint256 value;
}
struct ChallengeRequest {
bytes32 attestation;
struct ChallengeRequestData data;
}
struct CulturaRightsBoundAccountInfo {
address rightsBoundAccount;
address attester;
address digitalAssetAddress;
uint256 digitalAssetId;
}
error TransferFailed()
error VerifierNotWhitelisted()
error AttestationDoesNotExist()
error AlreadyRevoked()
error AlreadyRevokedOffchain()
error AlreadyTimestamped()
error InsufficientValue()
error InvalidAttestation()
error InvalidAttestations()
error InvalidExpirationTime()
error InvalidOffset()
error InvalidRegistry()
error InvalidRevocation()
error InvalidRevocations()
error InvalidSchema()
error InvalidVerifier()
error Irrevocable()
error NotPayable()
error WrongSchema()
error LevelAlreadyExists()
error DigitalAssetCollectionCantBe0Address()
error ValueSentLessThanGradeFee()
error AssetHasToBeVerifiedRights()
function getSchemaRegistryfunction getSchemaRegistry() external view returns (contract ISchemaRegistry)
| Description |
|---|
| The address of the global schema registry. |
function attestfunction attest(struct AttestationRequest request, address digitalAssetAddress, uint256 digitalAssetId, uint256 grade, uint256 amount) external returns (bytes32)
| 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 |
| Description |
|---|
| UID The UID of the new attestation |
function delegatedAttestfunction delegatedAttest(struct SignatureUtils.SignatureParams delegatedSignature, struct AttestationRequest request, address digitalAssetAddress, uint256 digitalAssetId, uint256 grade, uint256 amount, address attester) external returns (bytes32)
| 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 |
| Description |
|---|
| The UID of the new attestation |
function verifyAttestationfunction verifyAttestation(bytes32 attestationUID, uint256 bondedAmount) external
function challengeAttestationfunction challengeAttestation(struct ChallengeRequest request, uint256 challengeAmount) external
| Name | Description |
|---|---|
request | The challenge request containing attestation UID and data |
challengeAmount | The amount of bonded tokens to withdraw in the challenge |
function isAttestationValidfunction isAttestationValid(bytes32 uid) external view returns (bool)
| Name | Description |
|---|---|
uid | The UID of the attestation to retrieve. |
| Description |
|---|
| Whether an attestation exists. |
function addWLVerifierfunction addWLVerifier(address verifier) external
| Name | Description |
|---|---|
verifier | The address of the verifier to add |
function removeWLVerifierfunction removeWLVerifier(address verifier) external
| Name | Description |
|---|---|
verifier | The address of the verifier to remove |
function getNoncefunction getNonce(address user) external view returns (uint256)
| Name | Description |
|---|---|
user | The address of the user. |
| Description |
|---|
| The nonce for the user. |
Attestedevent Attestedevent Attested(address recipient, address attester, bytes32 uid, bytes32 schemaUID, uint256 grade)
Verifiedevent Verifiedevent Verified(address attester, bytes32 attestationUID)
Challengedevent Challengedevent Challenged(address challenger, bytes32 uid, uint256 bondedAmount)
Revokedevent Revokedevent Revoked(address recipient, address attester, bytes32 uid, bytes32 schemaUID)
Timestampedevent Timestampedevent Timestamped(bytes32 data, uint64 timestamp)
RevokedOffchainevent RevokedOffchainevent RevokedOffchain(address revoker, bytes32 data, uint64 timestamp)
CulturaRightsBoundAccountDeployedevent CulturaRightsBoundAccountDeployedevent CulturaRightsBoundAccountDeployed(struct CulturaRightsBoundAccountInfo rightsBoundAccount)
VerifierWLStateChangedevent VerifierWLStateChangedevent VerifierWLStateChanged(address verifier, bool isWhitelisted)
Was this page helpful?
