Documentation ¶
Index ¶
- Constants
- Variables
- func CalcQuotaUsed(quotaTotal, quotaAddition, quotaLeft, quotaRefund uint64, err error) uint64
- func DataGasCost(data []byte) (uint64, error)
- func IntrinsicGasCost(data []byte, isCreate bool) (uint64, error)
- func IsSnapshotGid(gid types.Gid) bool
- func IsViteToken(tokenId types.TokenTypeId) bool
- func MakeSendBlock(block *ledger.AccountBlock, toAddress types.Address, blockType byte, ...) *ledger.AccountBlock
- func UseQuota(quotaLeft, cost uint64) (uint64, error)
- func UseQuotaForData(data []byte, quotaLeft uint64) (uint64, error)
Constants ¶
Variables ¶
View Source
var ( ErrInvalidMethodParam = errors.New("invalid method param") ErrInsufficientBalance = errors.New("insufficient balance for transfer") ErrContractAddressCreationFail = errors.New("contract address creation fail") ErrAddressCollision = errors.New("contract address collision") ErrIdCollision = errors.New("id collision") ErrExecutionReverted = errors.New("execution reverted") ErrGasUintOverflow = errors.New("gas uint64 overflow") ErrReturnDataOutOfBounds = errors.New("evm: return data out of bounds") ErrCalcPoWTwice = errors.New("calc PoW twice referring to one snapshot block") ErrAbiMethodNotFound = errors.New("abi: method not found") )
Functions ¶
func CalcQuotaUsed ¶
func IsViteToken ¶
func IsViteToken(tokenId types.TokenTypeId) bool
func MakeSendBlock ¶
func MakeSendBlock(block *ledger.AccountBlock, toAddress types.Address, blockType byte, amount *big.Int, tokenId types.TokenTypeId, height uint64, data []byte) *ledger.AccountBlock
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.