Documentation ¶
Overview ¶
Package types defines types used by the specops package, which is intended to be dot-imported so requires a minimal footprint of exported symbols.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BytecodeHolder ¶
A BytecodeHolder is a concatenation of Bytecoders.
type Bytecoder ¶
A Bytecoder returns raw EVM bytecode. If the returned bytecode is the concatenation of multiple Bytecoder outputs, the type MUST also implement BytecodeHolder.
func BytecoderFromStackPusher ¶
func BytecoderFromStackPusher(s StackPusher) Bytecoder
BytecoderFromStackPusher returns a Bytecoder that calls s.ToPush() and prepends the appropriate PUSH<N> opcode to the returned bytecode.
type OpCode ¶
An OpCode converts a standard geth OpCode into a Bytecoder that returns itself.
type StackPusher ¶
type StackPusher interface {
ToPush() []byte
}
A StackPusher returns [1,32] bytes to be pushed to the stack.