Config

Marble Configs

...

Table Breakdown

Table Name: tokenconfigs

Table Scoping: self

Field Name

Field Type

Description

standard

name

Standard Name Identifier

version

string

Contract SemVer Version

admin

name

Contract Admin

last_serial

uint64_t

Global Serial Counter

Initialize Config

Every Marble contract has a config table created by the init() action.

Required Authority: self

Action Parameters

  • string initial_version: The version of the Marble Standard that is deployed.

  • name initial_admin: The name of the account that will be the initial contract admin.

Examples

Cleos
Marble CLI
Cleos
cleos push action {account} init '[ {params} ]' -p {account}
Marble CLI
marble init ...

Set New Version

Set a new contract version number by calling the setversion() action.

Required Authority: admin

Action Parameters

  • string new_version: The new version number in SemVer format.

Examples

Cleos
Marble CLi
Cleos
cleos push action {account} setversion '[ {params} ]' -p {account}
Marble CLi
marble modify version ...

Set New Admin

Set a new contract admin by calling the setadmin() action.

Required Authority: admin

Action Parameters

  • name new_admin: The name of the account that will be the new admin.

  • string memo: An optional memo field.

Examples

Cleos
Marble CLI
Cleos
cleos push action {account} setversion '[ {params} ]' -p {account}
Marble CLI
marble modify admin ...

‚Äč