Skip to main content

BaseStorage

BaseStorage

Addresses

ChainAddress

Functions

_authorizeWrite

function _authorizeWrite() internal virtual returns (bool)

getBuffer

function getBuffer(bytes32 key) public view returns (bytes)

setBuffer

function setBuffer(bytes32 key, bytes value) public

readBuffers

function readBuffers(bytes32[] keys) public view returns (bytes[])

get

function get(bytes32 key) public view returns (uint256)

set

function set(bytes32 key, uint256 value) public

setAll

function setAll(bytes32[] keys, uint256[] values) public

read

function read(bytes32[] keys) public view returns (uint256[])

erase

function erase(bytes32 key) public

eraseAll

function eraseAll(bytes32[] keys) public

arraySet

function arraySet(bytes32 key, uint256 index, uint256 value) public

arrayGet

function arrayGet(bytes32 key, uint256 index) public view returns (uint256)

arrayRead

function arrayRead(bytes32 key) public view returns (uint256[])

arrayReadRange

function arrayReadRange(bytes32 key, uint256 start, uint256 length) public view returns (uint256[])

arrayPush

function arrayPush(bytes32 key, uint256 value) public

arrayPop

function arrayPop(bytes32 key) public

arrayErase

function arrayErase(bytes32 key) public

enumsetAdd

function enumsetAdd(bytes32 key, uint256 value) public

enumsetRemove

function enumsetRemove(bytes32 key, uint256 value) public

enumsetContains

function enumsetContains(bytes32 key, uint256 value) public view returns (bool)

enumsetRead

function enumsetRead(bytes32 key) public view returns (uint256[])

enumsetLength

function enumsetLength(bytes32 key) public view returns (uint256)

Modifiers

onlyAuthorized

modifier onlyAuthorized()

UnauthorizedWrite

error UnauthorizedWrite(address sender)