ethtypes

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 9 Imported by: 0

README

ethtypes

brings eth native types into gorm supported types, etc.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToString added in v0.0.2

func ToString(data interface{}) string

Types

type Address

type Address common.Address

func (Address) MarshalJSON added in v0.0.5

func (addr Address) MarshalJSON() ([]byte, error)

func (*Address) Scan

func (addr *Address) Scan(ctx context.Context, field *schema.Field, dst reflect.Value, dbValue interface{}) (err error)

func (Address) String

func (addr Address) String() string

func (*Address) UnmarshalJSON added in v0.0.5

func (addr *Address) UnmarshalJSON(data []byte) error

func (Address) Unwrap

func (addr Address) Unwrap() common.Address

func (Address) Value

func (addr Address) Value(ctx context.Context, field *schema.Field, dst reflect.Value, fieldValue interface{}) (interface{}, error)

type AddressArray added in v0.0.2

type AddressArray []Address

func (AddressArray) String added in v0.0.2

func (arr AddressArray) String() string

type BigInt

type BigInt big.Int

func (BigInt) MarshalJSON added in v0.0.5

func (bi BigInt) MarshalJSON() ([]byte, error)

func (*BigInt) Scan

func (bi *BigInt) Scan(ctx context.Context, field *schema.Field, dst reflect.Value, dbValue interface{}) (err error)

func (*BigInt) Set added in v0.0.5

func (bi *BigInt) Set(i *big.Int)

func (BigInt) String

func (bi BigInt) String() string

func (*BigInt) UnmarshalJSON added in v0.0.5

func (bi *BigInt) UnmarshalJSON(data []byte) error

func (*BigInt) Unwrap

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

func (BigInt) Value

func (bi BigInt) Value(ctx context.Context, field *schema.Field, dst reflect.Value, fieldValue interface{}) (interface{}, error)

type Bytes added in v0.0.2

type Bytes []byte

func (Bytes) Hex added in v0.0.2

func (b Bytes) Hex() string

func (Bytes) MarshalJSON added in v0.0.5

func (b Bytes) MarshalJSON() ([]byte, error)

func (*Bytes) Scan added in v0.0.2

func (b *Bytes) Scan(ctx context.Context, field *schema.Field, dst reflect.Value, dbValue interface{}) (err error)

func (*Bytes) Set added in v0.0.5

func (b *Bytes) Set(data []byte)

func (Bytes) String added in v0.0.2

func (b Bytes) String() string

func (*Bytes) UnmarshalJSON added in v0.0.5

func (b *Bytes) UnmarshalJSON(data []byte) error

func (Bytes) Unwrap added in v0.0.2

func (b Bytes) Unwrap() []byte

func (Bytes) Value added in v0.0.2

func (b Bytes) Value(ctx context.Context, field *schema.Field, dst reflect.Value, fieldValue interface{}) (interface{}, error)

type Hash

type Hash common.Hash

func (Hash) MarshalJSON added in v0.0.5

func (hash Hash) MarshalJSON() ([]byte, error)

func (*Hash) Scan

func (hash *Hash) Scan(ctx context.Context, field *schema.Field, dst reflect.Value, dbValue interface{}) (err error)

func (Hash) String

func (hash Hash) String() string

func (*Hash) UnmarshalJSON added in v0.0.5

func (hash *Hash) UnmarshalJSON(data []byte) error

func (Hash) Unwrap

func (hash Hash) Unwrap() common.Hash

func (Hash) Value

func (hash Hash) Value(ctx context.Context, field *schema.Field, dst reflect.Value, fieldValue interface{}) (interface{}, error)

Directories

Path Synopsis
contracts

Jump to

Keyboard shortcuts

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