Documentation ¶
Index ¶
- func CreateContractHash(sender common.Address, nonce uint64, codeHash common.Hash) common.Hash
- func DecodeLog(l *types.Log, r *io.BinReader)
- func EncodeLog(l *types.Log, w *io.BinWriter)
- type Contract
- type MPTRoot
- type NativeContract
- type StorageItem
- type StorageItemWithKey
- type StorageKey
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateContractHash ¶
Types ¶
type Contract ¶
type Contract struct { Address common.Address `json:"address"` CodeHash common.Hash `json:"codeHash"` Code []byte `json:"code,omitempty"` }
func (*Contract) DecodeBinary ¶
func (*Contract) EncodeBinary ¶
type MPTRoot ¶
type MPTRoot struct { Version byte `json:"version"` Index uint32 `json:"index"` Root common.Hash `json:"roothash"` Witness transaction.Witness `json:"witnesses"` }
MPTRoot represents storage state root together with sign info.
func (*MPTRoot) DecodeBinary ¶
DecodeBinary implements io.Serializable.
func (*MPTRoot) DecodeBinaryUnsigned ¶
DecodeBinaryUnsigned decodes hashable part of state root.
func (*MPTRoot) EncodeBinary ¶
EncodeBinary implements io.Serializable.
func (*MPTRoot) EncodeBinaryUnsigned ¶
EncodeBinaryUnsigned encodes hashable part of state root..
type NativeContract ¶
type NativeContract struct { Name string `json:"name"` Contract UpdateHistory []uint32 `json:"updatehistory,omitempty"` Abi abi.ABI `json:"abi"` ContractCalls map[string]reflect.Value }
NativeContract holds information about native contract.
func (*NativeContract) MarshalJSON ¶
func (n *NativeContract) MarshalJSON() ([]byte, error)
type StorageItem ¶
type StorageItem []byte
StorageItem is the value to be stored with read-only flag.
type StorageItemWithKey ¶
type StorageItemWithKey struct { Key []byte Item StorageItem }
StorageItemWithKey is a storage item with corresponding key.
type StorageKey ¶
func (*StorageKey) DecodeBinary ¶
func (sk *StorageKey) DecodeBinary(br *io.BinReader)
func (*StorageKey) EncodeBinary ¶
func (sk *StorageKey) EncodeBinary(bw *io.BinWriter)
Click to show internal directories.
Click to hide internal directories.