Documentation
¶
Index ¶
- type EmptyError
- type Flat
- func (s *Flat) Clone() Stack
- func (s *Flat) CloneImpl() *Flat
- func (s *Flat) Count() int64
- func (s *Flat) Equal(yin Stack) (bool, string)
- func (s *Flat) FullyExpandedValue() value.Value
- func (s *Flat) FullyExpandedValueImpl() value.Value
- func (s *Flat) IsEmpty() bool
- func (s *Flat) Pop() (lastItem value.Value, err error)
- func (s *Flat) PopCodePoint() (val value.CodePointValue, err error)
- func (s *Flat) PopHashOnly() (val value.HashOnlyValue, err error)
- func (s *Flat) PopInt() (val value.IntValue, err error)
- func (s *Flat) PopTuple() (value.TupleValue, error)
- func (s *Flat) ProofValue(stackInfo []byte) value.Value
- func (s *Flat) Push(val value.Value)
- func (s *Flat) PushCodePoint(v value.CodePointValue)
- func (s *Flat) PushHashOnly(b value.HashOnlyValue)
- func (s *Flat) PushInt(v value.IntValue)
- func (s *Flat) PushTuple(v value.TupleValue)
- func (s *Flat) Size() int64
- func (s *Flat) SolidityProofValue(stackInfo []byte) (value.HashOnlyValue, []value.Value)
- func (s *Flat) StateValue() value.Value
- func (m *Flat) String() string
- type Stack
- type Tuple
- func (m *Tuple) Clone() Stack
- func (m *Tuple) Count() int64
- func (m *Tuple) Equal(yin Stack) (bool, string)
- func (m *Tuple) FullyExpandedValue() value.Value
- func (m *Tuple) IsEmpty() bool
- func (m *Tuple) Pop() (value.Value, error)
- func (m *Tuple) PopCodePoint() (value.CodePointValue, error)
- func (m *Tuple) PopInt() (value.IntValue, error)
- func (m *Tuple) PopTuple() (value.TupleValue, error)
- func (m *Tuple) ProofValue(stackInfo []byte) value.Value
- func (m *Tuple) Push(v value.Value)
- func (m *Tuple) PushCodePoint(v value.CodePointValue)
- func (m *Tuple) PushInt(v value.IntValue)
- func (m *Tuple) PushTuple(v value.TupleValue)
- func (m *Tuple) Size() int64
- func (m *Tuple) SolidityProofValue(stackInfo []byte) (value.HashOnlyValue, []value.Value)
- func (m *Tuple) StateValue() value.Value
- func (m *Tuple) String() string
- type TypeError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmptyError ¶
type EmptyError struct{}
func (EmptyError) Error ¶
func (e EmptyError) Error() string
type Flat ¶
type Flat struct {
// contains filtered or unexported fields
}
func FlatFromTupleChain ¶
func NewEmptyFlat ¶
func NewEmptyFlat() *Flat
func (*Flat) FullyExpandedValue ¶
func (*Flat) FullyExpandedValueImpl ¶
func (*Flat) PopCodePoint ¶
func (s *Flat) PopCodePoint() (val value.CodePointValue, err error)
func (*Flat) PopHashOnly ¶
func (s *Flat) PopHashOnly() (val value.HashOnlyValue, err error)
func (*Flat) PushCodePoint ¶
func (s *Flat) PushCodePoint(v value.CodePointValue)
func (*Flat) PushHashOnly ¶
func (s *Flat) PushHashOnly(b value.HashOnlyValue)
func (*Flat) PushTuple ¶
func (s *Flat) PushTuple(v value.TupleValue)
func (*Flat) SolidityProofValue ¶
func (*Flat) StateValue ¶
type Stack ¶
type Stack interface {
Clone() Stack
Push(value.Value)
PushInt(value.IntValue)
PushTuple(value.TupleValue)
PushCodePoint(value.CodePointValue)
Pop() (value.Value, error)
PopInt() (value.IntValue, error)
PopTuple() (value.TupleValue, error)
PopCodePoint() (value.CodePointValue, error)
Equal(Stack) (bool, string) // current usage is for testing only. Revisit return value if other usage identified
IsEmpty() bool
Size() int64
Count() int64
StateValue() value.Value
ProofValue([]byte) value.Value
SolidityProofValue([]byte) (value.HashOnlyValue, []value.Value)
FullyExpandedValue() value.Value
}
type Tuple ¶
type Tuple struct {
// contains filtered or unexported fields
}
func (*Tuple) FullyExpandedValue ¶
func (*Tuple) PopCodePoint ¶
func (m *Tuple) PopCodePoint() (value.CodePointValue, error)
func (*Tuple) PushCodePoint ¶
func (m *Tuple) PushCodePoint(v value.CodePointValue)
func (*Tuple) PushTuple ¶
func (m *Tuple) PushTuple(v value.TupleValue)
func (*Tuple) SolidityProofValue ¶
func (*Tuple) StateValue ¶
Click to show internal directories.
Click to hide internal directories.