types

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Array

type Array struct {
	// contains filtered or unexported fields
}

func NewArray

func NewArray(value []StackItem) *Array

func (*Array) Equals

func (a *Array) Equals(other StackItem) bool

func (*Array) GetArray

func (a *Array) GetArray() []StackItem

func (*Array) GetBigInteger

func (a *Array) GetBigInteger() *big.Int

func (*Array) GetBoolean

func (a *Array) GetBoolean() bool

func (*Array) GetByteArray

func (a *Array) GetByteArray() []byte

func (*Array) GetInterface

func (a *Array) GetInterface()

type Boolean

type Boolean struct {
	// contains filtered or unexported fields
}

func NewBoolean

func NewBoolean(value bool) *Boolean

func (*Boolean) Equals

func (b *Boolean) Equals(other StackItem) bool

func (*Boolean) GetArray

func (b *Boolean) GetArray() []StackItem

func (*Boolean) GetBigInteger

func (b *Boolean) GetBigInteger() *big.Int

func (*Boolean) GetBoolean

func (b *Boolean) GetBoolean() bool

func (*Boolean) GetByteArray

func (b *Boolean) GetByteArray() []byte

func (*Boolean) GetInterface

func (b *Boolean) GetInterface()

type ByteArray

type ByteArray struct {
	// contains filtered or unexported fields
}

func NewByteArray

func NewByteArray(value []byte) *ByteArray

func (*ByteArray) Equals

func (ba *ByteArray) Equals(other StackItem) bool

func (*ByteArray) GetArray

func (ba *ByteArray) GetArray() []StackItem

func (*ByteArray) GetBigInteger

func (ba *ByteArray) GetBigInteger() *big.Int

func (*ByteArray) GetBoolean

func (ba *ByteArray) GetBoolean() bool

func (*ByteArray) GetByteArray

func (ba *ByteArray) GetByteArray() []byte

func (*ByteArray) GetInterface

func (ba *ByteArray) GetInterface()

type GeneralInterface

type GeneralInterface struct {
	// contains filtered or unexported fields
}

func NewGeneralInterface

func NewGeneralInterface(value interfaces.IGeneralInterface) *GeneralInterface

func (*GeneralInterface) Equals

func (ii *GeneralInterface) Equals() bool

func (*GeneralInterface) GetArray

func (ii *GeneralInterface) GetArray() []StackItem

func (*GeneralInterface) GetBigInteger

func (ii *GeneralInterface) GetBigInteger() big.Int

func (*GeneralInterface) GetBoolean

func (ii *GeneralInterface) GetBoolean() bool

func (*GeneralInterface) GetByteArray

func (ii *GeneralInterface) GetByteArray() []byte

func (*GeneralInterface) GetInterface

func (ii *GeneralInterface) GetInterface()

type Integer

type Integer struct {
	// contains filtered or unexported fields
}

func NewInteger

func NewInteger(value *big.Int) *Integer

func (*Integer) Equals

func (i *Integer) Equals(other StackItem) bool

func (*Integer) GetArray

func (i *Integer) GetArray() []StackItem

func (*Integer) GetBigInteger

func (i *Integer) GetBigInteger() *big.Int

func (*Integer) GetBoolean

func (i *Integer) GetBoolean() bool

func (*Integer) GetByteArray

func (i *Integer) GetByteArray() []byte

func (*Integer) GetInterface

func (i *Integer) GetInterface()

type StackItem

type StackItem interface {
	Equals(other StackItem) bool
	GetBigInteger() *big.Int
	GetBoolean() bool
	GetByteArray() []byte
	GetInterface()
	GetArray() []StackItem
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL