ethtypes

package module
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 12 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 NewAddress added in v0.0.10

func NewAddress(addr common.Address) *Address

func (Address) MarshalJSON added in v0.0.5

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

func (Address) MarshalText added in v0.0.9

func (addr Address) MarshalText() (text []byte, err 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) UnmarshalText added in v0.0.9

func (addr *Address) UnmarshalText(text []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 BigDecimal added in v0.0.10

type BigDecimal decimal.Decimal

func NewBigDecimal added in v0.0.10

func NewBigDecimal(decimal decimal.Decimal) *BigDecimal

func (BigDecimal) GormDBDataType added in v0.0.10

func (bi BigDecimal) GormDBDataType(db *gorm.DB, field *schema.Field) string

func (BigDecimal) GormDataType added in v0.0.10

func (bi BigDecimal) GormDataType() string

func (BigDecimal) MarshalJSON added in v0.0.10

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

func (BigDecimal) MarshalText added in v0.0.10

func (bi BigDecimal) MarshalText() (text []byte, err error)

func (*BigDecimal) Scan added in v0.0.10

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

func (*BigDecimal) Set added in v0.0.10

func (bi *BigDecimal) Set(decimal decimal.Decimal)

func (BigDecimal) String added in v0.0.10

func (bi BigDecimal) String() string

func (*BigDecimal) UnmarshalJSON added in v0.0.10

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

func (*BigDecimal) UnmarshalText added in v0.0.10

func (bi *BigDecimal) UnmarshalText(text []byte) error

func (BigDecimal) Unwrap added in v0.0.10

func (bi BigDecimal) Unwrap() decimal.Decimal

func (BigDecimal) Value added in v0.0.10

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

type BigFloat added in v0.0.6

type BigFloat big.Float

func NewBigFloat added in v0.0.10

func NewBigFloat(b *big.Float) *BigFloat

func (BigFloat) GormDBDataType added in v0.0.8

func (bi BigFloat) GormDBDataType(db *gorm.DB, field *schema.Field) string

func (BigFloat) GormDataType added in v0.0.7

func (bi BigFloat) GormDataType() string

func (BigFloat) MarshalJSON added in v0.0.6

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

func (BigFloat) MarshalText added in v0.0.9

func (bi BigFloat) MarshalText() (text []byte, err error)

func (*BigFloat) Scan added in v0.0.6

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

func (*BigFloat) Set added in v0.0.6

func (bi *BigFloat) Set(i *big.Float)

func (BigFloat) String added in v0.0.6

func (bi BigFloat) String() string

func (*BigFloat) UnmarshalJSON added in v0.0.6

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

func (*BigFloat) UnmarshalText added in v0.0.9

func (bi *BigFloat) UnmarshalText(text []byte) error

func (*BigFloat) Unwrap added in v0.0.6

func (bi *BigFloat) Unwrap() *big.Float

func (BigFloat) Value added in v0.0.6

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

type BigInt

type BigInt big.Int

func NewBigInt added in v0.0.10

func NewBigInt(b *big.Int) *BigInt

func (BigInt) GormDBDataType added in v0.0.8

func (bi BigInt) GormDBDataType(db *gorm.DB, field *schema.Field) string

func (BigInt) GormDataType added in v0.0.7

func (bi BigInt) GormDataType() string

func (BigInt) MarshalJSON added in v0.0.5

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

func (BigInt) MarshalText added in v0.0.9

func (bi BigInt) MarshalText() (text []byte, err 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) UnmarshalText added in v0.0.9

func (bi *BigInt) UnmarshalText(text []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 NewBytes added in v0.0.10

func NewBytes(b []byte) *Bytes

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) MarshalText added in v0.0.9

func (bi Bytes) MarshalText() (text []byte, err 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) UnmarshalText added in v0.0.9

func (bi *Bytes) UnmarshalText(text []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 NewHash added in v0.0.10

func NewHash(b common.Hash) *Hash

func (Hash) MarshalJSON added in v0.0.5

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

func (Hash) MarshalText added in v0.0.9

func (bi Hash) MarshalText() (text []byte, err 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) UnmarshalText added in v0.0.9

func (bi *Hash) UnmarshalText(text []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