# Functions
AddBalance add balance of certain token to current account.
BlockGasCost calculate base quota cost of a block.
CalcQuotaUsed calculate stake quota and total quota used by a block.
CheckFork check whether current snapshot block height is over certain hard fork.
No description provided by the author
DataQuotaCost calculate quota cost by request block data.
DealWithErr panics if err is not nil.
FirstToLower change first character for string to lower case.
GetCodeFromCreateContractData decode code and constructor params from create contract request block data.
GetContractCode get contract in certain snapshot block.
GetContractTypeFromCreateContractData decode contract type from create contract request block data.
GetCreateContractData generate create contract request block data.
GetGidFromCreateContractData decode gid from create contract request block data.
GetQuotaMultiplierFromCreateContractData decode quota multiplier from create contract request block data.
GetSnapshotCountFromCreateContractData decode snapshot block count(response latency) from create contract request block data.
GetSnapshotWithSeedCountCountFromCreateContractData decode snapshot block with seed count(random degree) from create contract request block data.
GetValue get current contract storage value by key.
IsDelegateGid checks whether gid is global delegate consensus group id.
IsExistContractType check contract type validation.
IsPoW check whether a block calculated pow.
IsSnapshotGid checks whether gid is snapshot consensus group id.
IsViteToken checks whether tokenId is vite token.
MakeRequestBlock returns a request block.
MultipleCost multiply quota.
NewContractAddress generate contract address in create contract request block.
NewVMConsensusReader generate VMConsensusReader instance.
PackContractCode generate contract code on chain.
PrintMap is used to print storage map under debug mode.
QuotaTableByHeight returns different quota table by hard fork version.
RequestQuotaCost calculate quota cost by a request block.
SetValue update current contract storage value by key.
SubBalance sub balance of certain token to current account.
UseQuota check out of quota and return quota left.
UseQuotaWithFlag check out of quota and return quota left.
# Constants
CommonQuotaMultiplier defines base quota multiplier for all accounts.
QuotaAccumulationBlockCount defines max quota accumulation count.
# Variables
AttovPerVite defines decimals of vite.
CreateContractDataLengthMin defines create contract request block data prefix length before seed fork.
CreateContractDataLengthMinRand defines create contract request block data prefix length after seed fork.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SolidityPPContractType defines contract type of solidity++ byte code.
# Structs
intPool is a pool of big integers that can be reused for all big.Int operations.
QuotaTable is used to query quota used by op code and transactions.
VMConsensusReader implements consensus reader interfaces.
# Interfaces
ConsensusReader defines interfaces of consensus reader in vm module used by sbp reward calculation.
GlobalStatus contains confirm snapshot block and seed of contract response block.