types

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	common.Address
}

func NewAddress

func NewAddress(h common.Address) Address

func (*Address) Scan

func (s *Address) Scan(value interface{}) error

Scan implements the sql.Scanner interface. This method will be called by the database/sql package when scanning a column value into Address.

func (*Address) ToAddress

func (s *Address) ToAddress() common.Address

ToAddress returns the internal Ethereum address.

func (*Address) Value

func (s *Address) Value() (driver.Value, error)

Value implements the driver.Valuer interface. This method will be called by the database/sql package when storing an Address value in a database column.

type Addresses

type Addresses []common.Address

func (*Addresses) Scan

func (s *Addresses) Scan(value interface{}) error

Scan implements the sql.Scanner interface. This method will be called by the database/sql package when scanning a column value into the Addresses.

func (*Addresses) StringArray

func (s *Addresses) StringArray() []string

func (*Addresses) StringArrayClickhouse

func (s *Addresses) StringArrayClickhouse() string

func (*Addresses) Value

func (s *Addresses) Value() (driver.Value, error)

Value implements the driver.Valuer interface. This method will be called by the database/sql package when storing a Standards value in a column.

type BigFloat

type BigFloat struct {
	*big.Float
}

func NewBigFloat

func NewBigFloat(bi *big.Float) *BigFloat

func (*BigFloat) Scan

func (bi *BigFloat) Scan(value interface{}) error

Scan implements the sql.Scanner interface. This method will be called by the database/sql package when scanning a column value into BigFloat.

func (*BigFloat) Value

func (bi *BigFloat) Value() (driver.Value, error)

Value implements the driver.Valuer interface. This method will be called by the database/sql package when storing a BigFloat value in a column.

type BigInt

type BigInt struct {
	*big.Int
}

func NewBigInt

func NewBigInt(bi *big.Int) BigInt

func (*BigInt) Scan

func (bi *BigInt) Scan(value interface{}) error

Scan implements the sql.Scanner interface. This method will be called by the database/sql package when scanning a column value into BigInt.

func (*BigInt) ToBig

func (bi *BigInt) ToBig() *big.Int

func (*BigInt) ToNetwork

func (bi *BigInt) ToNetwork() utils.Network

func (*BigInt) ToNetworkID

func (bi *BigInt) ToNetworkID() utils.NetworkID

func (*BigInt) Value

func (bi *BigInt) Value() (driver.Value, error)

Value implements the driver.Valuer interface. This method will be called by the database/sql package when storing a BigInt value in a column.

type Bytecode

type Bytecode []byte

func (*Bytecode) Scan

func (s *Bytecode) Scan(value interface{}) error

Scan implements the sql.Scanner interface. This method will be called by the database/sql package when scanning a column value into the Standards.

func (*Bytecode) ToHex

func (s *Bytecode) ToHex() string

func (*Bytecode) ToHexPtr

func (s *Bytecode) ToHexPtr() *string

func (*Bytecode) Value

func (s *Bytecode) Value() (driver.Value, error)

Value implements the driver.Valuer interface. This method will be called by the database/sql package when storing a Standards value in a column.

type Hash

type Hash struct {
	common.Hash
}

func NewHash

func NewHash(h common.Hash) Hash

func (*Hash) Scan

func (s *Hash) Scan(value interface{}) error

Scan implements the sql.Scanner interface. This method will be called by the database/sql package when scanning a column value into the Standards.

func (*Hash) Value

func (s *Hash) Value() (driver.Value, error)

Value implements the driver.Valuer interface. This method will be called by the database/sql package when storing a Standards value in a column.

type JSON

type JSON struct {
	json.RawMessage
}

func NewJSON

func NewJSON(msg json.RawMessage) JSON

func (*JSON) Scan

func (s *JSON) Scan(value interface{}) error

Scan implements the sql.Scanner interface. This method will be called by the database/sql package when scanning a column value into the Standards.

func (*JSON) ToBytes

func (s *JSON) ToBytes() []byte

func (*JSON) ToString

func (s *JSON) ToString() string

func (*JSON) Value

func (s *JSON) Value() (driver.Value, error)

Value implements the driver.Valuer interface. This method will be called by the database/sql package when storing a Standards value in a column.

type SafetyState

type SafetyState utils.SafetyStateType

func NewSafetyState

func NewSafetyState(h utils.SafetyStateType) SafetyState

func (*SafetyState) Scan

func (s *SafetyState) Scan(value interface{}) error

Scan implements the sql.Scanner interface. This method will be called by the database/sql package when scanning a database column's value into SafetyState.

func (*SafetyState) ToType

func (s *SafetyState) ToType() utils.SafetyStateType

func (*SafetyState) Value

func (s *SafetyState) Value() (driver.Value, error)

Value implements the driver.Valuer interface. This method will be called by the database/sql package when storing a SafetyState value in a database column.

type Standards

type Standards []standards.Standard

func (*Standards) Scan

func (s *Standards) Scan(value interface{}) error

Scan implements the sql.Scanner interface. This method will be called by the database/sql package when scanning a column value into the Standards.

func (*Standards) StringArray

func (s *Standards) StringArray() []string

func (*Standards) StringArrayClickhouse

func (s *Standards) StringArrayClickhouse() string

func (*Standards) Value

func (s *Standards) Value() (driver.Value, error)

Value implements the driver.Valuer interface. This method will be called by the database/sql package when storing a Standards value in a column.

type States

type States []machine.State

func (*States) Scan

func (s *States) Scan(value interface{}) error

Scan implements the sql.Scanner interface. This method will be called by the database/sql package when scanning a column value into the Standards.

func (*States) StringArray

func (s *States) StringArray() []string

func (*States) StringArrayClickhouse

func (s *States) StringArrayClickhouse() string

func (*States) Value

func (s *States) Value() (driver.Value, error)

Value implements the driver.Valuer interface. This method will be called by the database/sql package when storing a Standards value in a column.

Jump to

Keyboard shortcuts

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