Versions in this module Expand all Collapse all v0 v0.7.2 Apr 16, 2020 v0.7.1 Apr 9, 2020 Changes in this version + const ALLOWANCE_NAME + const APPROVE_FLAG + const APPROVE_NAME + const BALANCEOF_NAME + const DECIMALS_NAME + const INIT_NAME + const NAME_NAME + const SYMBOL_NAME + const TOTALSUPPLY_NAME + const TOTAL_SUPPLY_NAME + const TRANSFERFROM_NAME + const TRANSFER_FLAG + const TRANSFER_NAME + const UNBOUND_TIME_OFFSET + func AddNotifications(native *native.NativeService, contract common.Address, state *State) + func GasAllowance(native *native.NativeService) ([]byte, error) + func GasApprove(native *native.NativeService) ([]byte, error) + func GasBalanceOf(native *native.NativeService) ([]byte, error) + func GasDecimals(native *native.NativeService) ([]byte, error) + func GasInit(native *native.NativeService) ([]byte, error) + func GasName(native *native.NativeService) ([]byte, error) + func GasSymbol(native *native.NativeService) ([]byte, error) + func GasTotalSupply(native *native.NativeService) ([]byte, error) + func GasTransfer(native *native.NativeService) ([]byte, error) + func GasTransferFrom(native *native.NativeService) ([]byte, error) + func GenApproveKey(contract, from, to common.Address) []byte + func GenBalanceKey(contract, addr common.Address) []byte + func GenTotalSupplyKey(contract common.Address) []byte + func GetBalanceValue(native *native.NativeService, flag byte) ([]byte, error) + func GetToUInt64StorageItem(toBalance, value uint64) *cstates.StorageItem + func InitGas() + func RegisterGasContract(native *native.NativeService) + func Transfer(native *native.NativeService, contract common.Address, state *State) (uint64, uint64, error) + func TransferedFrom(native *native.NativeService, currentContract common.Address, ...) (uint64, uint64, error) + type State struct + From common.Address + To common.Address + Value uint64 + func (this *State) Deserialization(source *common.ZeroCopySource) error + func (this *State) Serialization(sink *common.ZeroCopySink) + type TransferFrom struct + From common.Address + Sender common.Address + To common.Address + Value uint64 + func (this *TransferFrom) Deserialization(source *common.ZeroCopySource) error + func (this *TransferFrom) Serialization(sink *common.ZeroCopySink) + type Transfers struct + States []State + func (this *Transfers) Deserialization(source *common.ZeroCopySource) error + func (this *Transfers) Serialization(sink *common.ZeroCopySink)