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 + var AuthContractAddress = common.AddressParseFromBytes([]byte{ ... }) + var BYTE_FALSE = []byte + var BYTE_TRUE = []byte + var DIDContractAddress = common.AddressParseFromBytes([]byte{ ... }) + var GENERATION_AMOUNT = constants.UNBOUND_GENERATION_AMOUNT + var GasContractAddress = common.AddressParseFromBytes([]byte{ ... }) + var GovernanceContractAddress = common.AddressParseFromBytes([]byte{ ... }) + var ParamContractAddress = common.AddressParseFromBytes([]byte{ ... }) + var TIME_INTERVAL = constants.UNBOUND_TIME_INTERVAL + func AddCommonEvent(native *native.NativeService, contract common.Address, name string, ...) + func CalcUnbindOng(balance uint64, startOffset, endOffset uint32) uint64 + func ConcatKey(contract common.Address, args ...[]byte) []byte + func DecodeAddress(source *common.ZeroCopySource) (common.Address, error) + func DecodeBool(source *common.ZeroCopySource) (bool, error) + func DecodeString(source *common.ZeroCopySource) (string, error) + func DecodeUint32(source *common.ZeroCopySource) (uint32, error) + func DecodeUint64(source *common.ZeroCopySource) (uint64, error) + func DecodeVarBytes(source *common.ZeroCopySource) ([]byte, error) + func DecodeVarUint(source *common.ZeroCopySource) (uint64, error) + func EncodeAddress(sink *common.ZeroCopySink, addr common.Address) (size uint64) + func EncodeVarUint(sink *common.ZeroCopySink, value uint64) (size uint64) + func GenUInt32StorageItem(value uint32) *cstates.StorageItem + func GenUInt64StorageItem(value uint64) *cstates.StorageItem + func GetStorageItem(native *native.NativeService, key []byte) (*cstates.StorageItem, error) + func GetStorageUInt32(native *native.NativeService, key []byte) (uint32, error) + func GetStorageUInt64(native *native.NativeService, key []byte) (uint64, error) + func IsNativeContract(addr common.Address) bool + func LinkedlistDelete(native *native.NativeService, index []byte, item []byte) (bool, error) + func LinkedlistDeleteAll(native *native.NativeService, index []byte) error + func LinkedlistGetHead(native *native.NativeService, index []byte) ([]byte, error) + func LinkedlistGetNumOfItems(native *native.NativeService, index []byte) (int, error) + func LinkedlistInsert(native *native.NativeService, index []byte, item []byte, payload []byte) error + func PutBytes(native *native.NativeService, key []byte, value []byte) + func ValidateOwner(native *native.NativeService, address common.Address) error + type LinkedlistNode struct + func LinkedlistGetItem(native *native.NativeService, index []byte, item []byte) (*LinkedlistNode, error) + func (this *LinkedlistNode) Deserialization(r []byte) error + func (this *LinkedlistNode) GetNext() []byte + func (this *LinkedlistNode) GetPayload() []byte + func (this *LinkedlistNode) GetPrevious() []byte + func (this *LinkedlistNode) Serialization() ([]byte, error)