CollectionRegistry

This contract manages the registration and unregistration of collections in the Colle system.

collections

mapping(address => bool) collections

registerCollection

function registerCollection(address _collection) public

Registers a new collection.

Only accessible by Colle role.

Parameters

Name
Type
Description

_collection

address

The address of the collection to register.

unregisterCollection

function unregisterCollection(address _collection) public

Unregisters an existing collection.

Only accessible by Colle role.

Parameters

Name
Type
Description

_collection

address

The address of the collection to unregister.

isERC721Registered

Checks if a collection is registered.

Parameters

Name
Type
Description

_collection

address

The address of the collection to check.

Return Values

Name
Type
Description

[0]

bool

true if the collection is registered, false otherwise.

getCollection

Returns the collection interface for a registered collection.

Reverts if the collection is not registered.

Parameters

Name
Type
Description

_collection

address

The address of the collection.

Return Values

Name
Type
Description

[0]

contract IColleCollection

The interface of the registered collection.

Last updated