State
State Objects
The x/clock module only manages the following object in state: ClockContract. This object is used to store the address of the contract and its jail status. The jail status is used to determine if the contract should be executed at the end of every block. If the contract is jailed, it will not be executed.
message ClockContract {
string contract_address = 1;
bool is_jailed = 2;
}
Genesis & Params
The x/clock module's GenesisState defines the state necessary for initializing the chain from a previously exported height. It simply contains the gas limit parameter which is used to determine the maximum amount of gas that can be used by a contract. This value can be modified with a governance proposal.
message GenesisState {
Params params = 1 [
(gogoproto.nullable) = false,
(gogoproto.jsontag) = "params,omitempty"
];
}
message Params {
uint64 contract_gas_limit = 1 [
(gogoproto.jsontag) = "contract_gas_limit,omitempty",
(gogoproto.moretags) = "yaml:\"contract_gas_limit\""
];
}
State Transitions
The following state transitions are possible:
- Register a contract creates a new ClockContract object in state.
- Jailing a contract updates the is_jailed field of a ClockContract object in state.
- Unjailing a contract updates the is_jailed field of a ClockContract object in state.
- Unregister a contract deletes a ClockContract object from state.
Synonyms
go-cyber/x/cyberbank/spec/02_state
space-pussy/x/bandwidth/spec/02_state
State Account Bandwidth AccountBandwidth is used for tracking bandwidth of accounts in the network. AccountBandwidth type has the following structure: Last price Value is used to store up-to-date price of bandwidth. Block bandwidth Storing used bandwidth for each block. Used for calculation of load…
space-pussy/x/resources/spec/02_state
State Periodic Vesting Account (auth) A vesting account implementation that vests coins according to a custom vesting schedule. Period (auth) Keys ModuleName, RouterKey, QuerierRoute: `energy`
space-pussy/x/grid/spec/02_state
State Route Route is used for tracking amount of volts and amperes routed to given account. Route type has the following structure: Value Value is used to store up-to-date summarized value of all routes routed to given destination. ------- Keys Route: `0x00 | Source | Destination ->…
go-cyber/x/bandwidth/spec/02_state
State Account Bandwidth AccountBandwidth is used for tracking bandwidth of accounts in the network. AccountBandwidth type has the following structure: Last price Value is used to store up-to-date price of bandwidth. Block bandwidth Storing used bandwidth for each block. Used for calculation of load…
go-cyber/x/liquidity/spec/02_state
State The liquidity module `x/liquidity` keeps track of the Pool and PoolBatch states. The state represents your app at a given moment. Pool Pool stores information about the liquidity pool. Pool type has the following structure. The parameters of the Pool state are: Pool: `0x11 |…
space-pussy/x/cyberbank/spec/02_state
go-cyber/x/resources/spec/02_state
State Periodic Vesting Account (auth) A vesting account implementation that vests coins according to a custom vesting schedule. Period (auth) Keys ModuleName, RouterKey: `energy`
go-cyber/x/grid/spec/02_state
State Route Route is used for tracking amount of volts and amperes routed to given account. Route type has the following structure: Value Value is used to store up-to-date summarized value of all routes routed to given destination. ------- Keys Route: `0x00 | Source | Destination ->…