NonTransferableBalance

Git Source

State Variables

_tableId

ResourceId constant _tableId = ResourceId.wrap(0x746200000000000000000000000000004e6f6e5472616e7366657261626c6542);

_fieldLayout

FieldLayout constant _fieldLayout = FieldLayout.wrap(0x0020010020000000000000000000000000000000000000000000000000000000);

_keySchema

Schema constant _keySchema = Schema.wrap(0x002001005f000000000000000000000000000000000000000000000000000000);

_valueSchema

Schema constant _valueSchema = Schema.wrap(0x002001001f000000000000000000000000000000000000000000000000000000);

Functions

getKeyNames

Get the table's key field names.

function getKeyNames() internal pure returns (string[] memory keyNames);

Returns

NameTypeDescription
keyNamesstring[]An array of strings with the names of key fields.

getFieldNames

Get the table's value field names.

function getFieldNames() internal pure returns (string[] memory fieldNames);

Returns

NameTypeDescription
fieldNamesstring[]An array of strings with the names of value fields.

register

Register the table with its config.

function register() internal;

_register

Register the table with its config.

function _register() internal;

getValue

Get value.

function getValue(bytes32 id) internal view returns (uint256 value);

_getValue

Get value.

function _getValue(bytes32 id) internal view returns (uint256 value);

get

Get value.

function get(bytes32 id) internal view returns (uint256 value);

_get

Get value.

function _get(bytes32 id) internal view returns (uint256 value);

setValue

Set value.

function setValue(bytes32 id, uint256 value) internal;

_setValue

Set value.

function _setValue(bytes32 id, uint256 value) internal;

set

Set value.

function set(bytes32 id, uint256 value) internal;

_set

Set value.

function _set(bytes32 id, uint256 value) internal;

deleteRecord

Delete all data for given keys.

function deleteRecord(bytes32 id) internal;

_deleteRecord

Delete all data for given keys.

function _deleteRecord(bytes32 id) internal;

encodeStatic

Tightly pack static (fixed length) data using this table's schema.

function encodeStatic(uint256 value) internal pure returns (bytes memory);

Returns

NameTypeDescription
<none>bytesThe static data, encoded into a sequence of bytes.

encode

Encode all of a record's fields.

function encode(uint256 value) internal pure returns (bytes memory, EncodedLengths, bytes memory);

Returns

NameTypeDescription
<none>bytesThe static (fixed length) data, encoded into a sequence of bytes.
<none>EncodedLengthsThe lengths of the dynamic fields (packed into a single bytes32 value).
<none>bytesThe dynamic (variable length) data, encoded into a sequence of bytes.

encodeKeyTuple

Encode keys as a bytes32 array using this table's field layout.

function encodeKeyTuple(bytes32 id) internal pure returns (bytes32[] memory);