Documentation ¶
Index ¶
- func MarshalAddress(input []byte) string
- func MarshalBigInt(input *big.Int) string
- func MarshalByteArray(input []byte) string
- func MarshalInt64(input int64) string
- func MarshalNullableAddress(input []byte) string
- func MarshalNullableByteArray(input []byte) string
- func MarshalNullableUint32(input uint32) string
- func MarshalUint32(input uint32) string
- func MarshalUint64(input uint64) string
- func PreUnmarshalHexString(input string) string
- func RLPAddress(buf io.Writer, input types.Address)
- func RLPBytes(buf io.Writer, input []byte)
- func RLPList(buf io.Writer, items []byte)
- func RLPNil(buf io.Writer)
- func RLPUint64(buf io.Writer, input uint64)
- func StrToAddress(name string, input string) (types.Address, error)
- func StrToBigInt(name string, input string) (*big.Int, error)
- func StrToByteArray(name string, input string) ([]byte, error)
- func StrToHash(name string, input string) (types.Hash, error)
- func StrToRoot(name string, input string) (types.Root, error)
- func StrToTime(name string, input string) (time.Time, error)
- func StrToUint32(name string, input string) (uint32, error)
- func StrToUint64(name string, input string) (uint64, error)
- type Subscription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalAddress ¶ added in v0.2.3
MarshalAddress marshals an address as per the Ethereum standard.
func MarshalBigInt ¶
MarshalBigInt marshals a big.Int as per the Ethereum standard.
func MarshalByteArray ¶
MarshalByteArray marshals a byte array as per the Ethereum standard.
func MarshalInt64 ¶ added in v0.8.1
MarshalInt64 marshals an int64 as per the Ethereum standard.
func MarshalNullableAddress ¶ added in v0.2.3
MarshalNullableAddress marshals an address as per the Ethereum standard.
func MarshalNullableByteArray ¶
MarshalNullableByteArray marshals a byte array as per the Ethereum standard.
func MarshalNullableUint32 ¶ added in v0.2.0
MarshalNullableUint32 marshals a uint32 as per the Ethereum standard, with 0 as null.
func MarshalUint32 ¶
MarshalUint32 marshals a uint32 as per the Ethereum standard.
func MarshalUint64 ¶
MarshalUint64 marshals a uint64 as per the Ethereum standard.
func PreUnmarshalHexString ¶
PreUnmarshalHexString tidies up an input hex string, removing any leading '0x' and ensuring that the input has an even number of hex digits.
func RLPAddress ¶ added in v0.5.0
RLPAddress appends the RLP encoding of an address to the buffer.
func StrToAddress ¶ added in v0.4.0
StrToAddress turns a string in to an address.
func StrToBigInt ¶ added in v0.4.0
StrToBigInt turns a string in to a big.Int.
func StrToByteArray ¶ added in v0.4.0
StrToByteArray turns a string in to a byte array.
func StrToUint32 ¶ added in v0.4.0
StrToUint32 turns a string in to a uint32.
Types ¶
type Subscription ¶ added in v0.6.0
type Subscription struct {
ID []byte
}
Subscription contains a subscription.