ethtypes

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: MIT Imports: 8 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) 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) 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) Scan

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

func (BigInt) String

func (bi BigInt) String() string

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) 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) String added in v0.0.2

func (b Bytes) String() string

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) 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) 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