# Functions
EmptyGas ...
LoadBlockhead load block info as block.BlockHead from json file.
LoadTxInfo load tx info as tx.Tx from json file.
Marshal marshal go types to value string.
MustMarshal marshal go types to value string, panic on error.
MustUnmarshal unmarshal value string to go types, panic on error.
MustUnmarshalWithExtra unmarshal value string to go types, panic on error.
NewBatchVisitor get visitor with mapper.
NewBatchVisitorRoot get LRU to next step.
NewDatabase returns a SimpleDB with empty data and system contract.
NewDatabaseFromPath returns a SimpleDB with data loaded from json file.
NewLRU make a new lru.
NewMockIMultiValue creates a new mock instance.
NewVisitor get a visitor of a DB, with cache length determined.
NewWatcher ...
NewWriteCache ...
Unmarshal unmarshal value string to go types.
UnmarshalWithExtra unmarshal value string to go types.
# Constants
ApplicationSeparator separator of value.
BasicPrefix prefix of basic types.
const prefixs.
ContractPrefix ...
const enum of Mode.
const enum of Mode.
const prefixs.
GasContractName name of basic token contract.
decimals of gas.
GasFulfillSeconds it takes 2 days to fulfill the gas buffer.
GasLimitKey : how much gas can be generated max per IOST.
GasPledgeKey : i pledge how much coins for others.
GasPledgeTotalKey : how many IOST is pledged.
GasStockKey : how much gas is there when last time refreshed.
GasUpdateTimeKey : when the gas state is refreshed last time, for internal use.
const prefixs.
IOSTRatio ...
const prefixs.
const prefixs.
MapPrefix prefix of map key.
const prefixs.
RAMContractName name of basic token contract.
const .
Separator separator of map key.
StateTable name.
const prefixs.
Token721ContractName name of basic token contract.
TokenContractName name of basic token contract.
TransferableGasKey :.
TransferableGasQuotaKey :.
const .
# Variables
GasImmediateReward immediate reward per IOST.
GasIncreaseRate gas increase per IOST per second.
GasLimit gas limit per IOST.
GasMinPledgeOfUser Each user must pledge a minimum amount of IOST.
GasMinPledgePerAction One must (un)pledge more than 1 IOST.
# Structs
AccountRAMInfo ...
BasicHandler handler of basic type.
ContractHandler ...
DelaytxHandler handler of delay tx.
FreezeItem represents freezed balance, will unfreeze after Ftime.
FreezeItemFixed ...
GasHandler easy to get balance of token.iost.
LRU lru cache.
MapHandler handler of map.
MockIMultiValue is a mock of IMultiValue interface.
MockIMultiValueMockRecorder is the mock recorder for MockIMultiValue.
PledgerInfo ...
RAMHandler easy to get balance of token.iost.
Record of one access.
RollbackHandler rollback delegate.
SimpleDB implements simple database interface.
Token721Handler easy to get balance of token.iost.
TokenHandler easy to get balance of token.iost.
Visitor combine of every handler, to be api of database.
Watcher of db access.
WriteCache ...
# Type aliases
Access enum of type of access.
Mode of this record.
SerializedJSON type of Serialized json.