Documentation ¶
Index ¶
- func BufAndLengthToBytes(sizeInt *big.Int, contents *value.Buffer) ([]byte, error)
- func ByteArrayToBytes(val value.Value) ([]byte, error)
- func BytesToByteStack(val []byte) *value.TupleValue
- func ListToStackValue(vals []value.Value) *value.TupleValue
- func NewAddressFromInt(val value.IntValue) common.Address
- func NewIntFromAddress(address common.Address) value.IntValue
- func StackValueToList(val value.Value) ([]value.Value, error)
- func TestVectorJSON(inbox []InboxMessage, logs []value.Value, sends [][]byte) ([]byte, error)
- type ChainTime
- type InboxMessage
- type JSONValue
- type TestVector
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BufAndLengthToBytes ¶ added in v0.8.0
func BytesToByteStack ¶
func BytesToByteStack(val []byte) *value.TupleValue
func ListToStackValue ¶
func ListToStackValue(vals []value.Value) *value.TupleValue
func TestVectorJSON ¶
Types ¶
type ChainTime ¶
type ChainTime struct { BlockNum *common.TimeBlocks Timestamp *big.Int }
func NewRandomChainTime ¶
func NewRandomChainTime() ChainTime
type InboxMessage ¶
type InboxMessage struct { Kind Type Sender common.Address InboxSeqNum *big.Int GasPrice *big.Int Data []byte ChainTime ChainTime }
func LoadTestVector ¶
func NewInboxMessageFromData ¶ added in v0.8.0
func NewInboxMessageFromData(data []byte) (InboxMessage, error)
func NewInboxMessageFromValue ¶
func NewInboxMessageFromValue(val value.Value) (InboxMessage, error)
func NewRandomInboxMessage ¶
func NewRandomInboxMessage() InboxMessage
func (InboxMessage) AsValue ¶
func (im InboxMessage) AsValue() value.Value
func (InboxMessage) CommitmentHash ¶
func (im InboxMessage) CommitmentHash() common.Hash
func (InboxMessage) Equals ¶
func (im InboxMessage) Equals(o InboxMessage) bool
func (InboxMessage) String ¶
func (im InboxMessage) String() string
func (InboxMessage) ToBytes ¶ added in v0.8.0
func (im InboxMessage) ToBytes() []byte
type TestVector ¶
Click to show internal directories.
Click to hide internal directories.