Documentation
¶
Index ¶
- Variables
- func EncodeArrayAdvance(Value []SimpleStruct) []byte
- func EncodeBasicTypesAdvance(Bool bool, Int *big.Int, Int8 int8, Int256 *big.Int, Uint *big.Int, ...) []byte
- func EncodeEmptyAdvance() []byte
- func EncodeInspectMessage() []byte
- func EncodeMultiFieldAdvance(IntValue int64, BoolValue bool, StringValue string) []byte
- func EncodeReportMessage() []byte
- func EncodeSimpleAdvance(Value int64) []byte
- func EncodeStructAdvance(Value NestedStruct) []byte
- func Roll(contract iContract)
- type ArrayAdvance
- type BasicTypesAdvance
- type EmptyAdvance
- type InspectMessage
- type Middleware
- type MultiFieldAdvance
- type NestedStruct
- type ReportMessage
- type SimpleAdvance
- type SimpleStruct
- type StructAdvance
Constants ¶
This section is empty.
Variables ¶
var ArrayAdvanceID eggtypes.ID
4-byte function selector of ArrayAdvance
var BasicTypesAdvanceID eggtypes.ID
4-byte function selector of basicTypesAdvance
var EmptyAdvanceID eggtypes.ID
4-byte function selector of emptyAdvance
var InspectMessageID eggtypes.ID
4-byte function selector of inspectMessage
var MultiFieldAdvanceID eggtypes.ID
4-byte function selector of multiFieldAdvance
var ReportMessageID eggtypes.ID
4-byte function selector of reportMessage
var SimpleAdvanceID eggtypes.ID
4-byte function selector of simpleAdvance
var StructAdvanceID eggtypes.ID
4-byte function selector of structAdvance
Functions ¶
func EncodeArrayAdvance ¶
func EncodeArrayAdvance( Value []SimpleStruct, ) []byte
Encode ArrayAdvance into binary data.
func EncodeBasicTypesAdvance ¶
func EncodeBasicTypesAdvance( Bool bool, Int *big.Int, Int8 int8, Int256 *big.Int, Uint *big.Int, Uint8 uint8, Uint256 *big.Int, Address common.Address, String string, Bytes []byte, ) []byte
Encode basicTypesAdvance into binary data.
func EncodeInspectMessage ¶
func EncodeInspectMessage() []byte
Encode inspectMessage into binary data.
func EncodeMultiFieldAdvance ¶
Encode multiFieldAdvance into binary data.
func EncodeSimpleAdvance ¶
Encode simpleAdvance into binary data.
func EncodeStructAdvance ¶
func EncodeStructAdvance( Value NestedStruct, ) []byte
Encode structAdvance into binary data.
Types ¶
type ArrayAdvance ¶
type ArrayAdvance struct {
Value []SimpleStruct
}
Advance with array value
func (ArrayAdvance) Encode ¶
func (v ArrayAdvance) Encode() []byte
Encode ArrayAdvance into binary data.
type BasicTypesAdvance ¶
type BasicTypesAdvance struct { Bool bool Int *big.Int Int8 int8 Int256 *big.Int Uint *big.Int Uint8 uint8 Uint256 *big.Int Address common.Address String string Bytes []byte }
Advance with basic types
func (BasicTypesAdvance) Encode ¶
func (v BasicTypesAdvance) Encode() []byte
Encode basicTypesAdvance into binary data.
type EmptyAdvance ¶
type EmptyAdvance struct { }
Empty advance message With multi-line string documentation
func (EmptyAdvance) Encode ¶
func (v EmptyAdvance) Encode() []byte
Encode emptyAdvance into binary data.
type InspectMessage ¶
type InspectMessage struct { }
Empty inspect message
func (InspectMessage) Encode ¶
func (v InspectMessage) Encode() []byte
Encode inspectMessage into binary data.
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
Middleware that implements the EggRoll Middleware interface. The middleware requires a high-level contract to work.
type MultiFieldAdvance ¶
Advance with multiple fields
func (MultiFieldAdvance) Encode ¶
func (v MultiFieldAdvance) Encode() []byte
Encode multiFieldAdvance into binary data.
type ReportMessage ¶
type ReportMessage struct { }
Empty report message
func (ReportMessage) Encode ¶
func (v ReportMessage) Encode() []byte
Encode reportMessage into binary data.
type SimpleAdvance ¶
type SimpleAdvance struct { // Integer value of 64 bits Value int64 }
Advance with a single field
func (SimpleAdvance) Encode ¶
func (v SimpleAdvance) Encode() []byte
Encode simpleAdvance into binary data.
type StructAdvance ¶
type StructAdvance struct {
Value NestedStruct
}
Advance with struct value
func (StructAdvance) Encode ¶
func (v StructAdvance) Encode() []byte
Encode structAdvance into binary data.