Skip to main content

Solidity API

Set

IdExhausted

error IdExhausted()

_universe

uint64 _universe

_self

uint64 _self

_counter

uint64 _counter

__Set_init

function __Set_init(address initialOwner, uint64 universe_, uint64 self, string baseUri) internal

onlyHolder

function onlyHolder(uint64 id, address holder) internal view

create

function create(uint64 id, struct ObjectMeta meta, bytes32[] state, address owner) internal

nextId

function nextId() internal returns (uint64)

update

function update(uint64 id, bytes32[] state) public virtual returns (struct ObjectMeta)

upgrade

function upgrade(uint64 id, uint32 krev, uint32 srev) public returns (struct ObjectMeta)

touch

function touch(uint64 id) public returns (struct ObjectMeta)

revAt

function revAt(uint64 id, uint32 rev) public view returns (uint32)

metaAt

function metaAt(uint64 id, uint32 rev) public view returns (struct ObjectMeta meta)

stateAt

function stateAt(uint64 id, uint32 rev) public view returns (bytes32[] state)

ownerOf

function ownerOf(uint64 id) public view returns (address)

_setURI

function _setURI(string uri_) internal

_erc1155Uri

function _erc1155Uri() internal view returns (string)

_pimUri

function _pimUri(uint64 id, uint32 rev) internal view returns (string)