Versions in this module Expand all Collapse all v0 v0.6.1 Jan 21, 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 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 InitOnt() + func OntAllowance(native *native.NativeService) ([]byte, error) + func OntApprove(native *native.NativeService) ([]byte, error) + func OntBalanceOf(native *native.NativeService) ([]byte, error) + func OntDecimals(native *native.NativeService) ([]byte, error) + func OntInit(native *native.NativeService) ([]byte, error) + func OntName(native *native.NativeService) ([]byte, error) + func OntSymbol(native *native.NativeService) ([]byte, error) + func OntTotalSupply(native *native.NativeService) ([]byte, error) + func OntTransfer(native *native.NativeService) ([]byte, error) + func OntTransferFrom(native *native.NativeService) ([]byte, error) + func RegisterOntContract(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) Deserialize(r io.Reader) error + func (this *State) Serialization(sink *common.ZeroCopySink) + func (this *State) Serialize(w io.Writer) error + 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) Deserialize(r io.Reader) error + func (this *TransferFrom) Serialization(sink *common.ZeroCopySink) + func (this *TransferFrom) Serialize(w io.Writer) error + type Transfers struct + States []State + func (this *Transfers) Deserialization(source *common.ZeroCopySource) error + func (this *Transfers) Deserialize(r io.Reader) error + func (this *Transfers) Serialization(sink *common.ZeroCopySink) + func (this *Transfers) Serialize(w io.Writer) error