chainlink: github.com/smartcontractkit/chainlink/core/assets Index | Files

package assets

import "github.com/smartcontractkit/chainlink/core/assets"

Index

Package Files

currencies.go

Variables

var ErrNoQuotesForCurrency = errors.New("cannot unmarshal json.Number into currency")

type Eth Uses

type Eth big.Int

Eth contains a field to represent the smallest units of ETH

func NewEth Uses

func NewEth(w int64) *Eth

NewEth returns a new struct to represent ETH from it's smallest unit

func (*Eth) Cmp Uses

func (e *Eth) Cmp(y *Eth) int

Cmp delegates to *big.Int.Cmp

func (*Eth) IsZero Uses

func (e *Eth) IsZero() bool

IsZero returns true when the value is 0 and false otherwise

func (Eth) MarshalJSON Uses

func (e Eth) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (*Eth) MarshalText Uses

func (e *Eth) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface.

func (*Eth) SetInt64 Uses

func (e *Eth) SetInt64(w int64) *Eth

SetInt64 delegates to *big.Int.SetInt64

func (*Eth) SetString Uses

func (e *Eth) SetString(s string, base int) (*Eth, bool)

SetString delegates to *big.Int.SetString

func (*Eth) String Uses

func (e *Eth) String() string

func (*Eth) Symbol Uses

func (*Eth) Symbol() string

Symbol returns ETH

func (*Eth) ToInt Uses

func (e *Eth) ToInt() *big.Int

ToInt returns the Eth value as a *big.Int.

func (*Eth) UnmarshalJSON Uses

func (e *Eth) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface.

func (*Eth) UnmarshalText Uses

func (e *Eth) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface.

type Link big.Int

Link contains a field to represent the smallest units of LINK

func NewLink(w int64) *Link

NewLink returns a new struct to represent LINK from it's smallest unit

func (*Link) Add Uses

func (l *Link) Add(x, y *Link) *Link

Add defers to big.Int Add

func (*Link) Cmp Uses

func (l *Link) Cmp(y *Link) int

Cmp defers to big.Int Cmp

func (*Link) IsZero Uses

func (l *Link) IsZero() bool

IsZero returns true when the value is 0 and false otherwise

func (Link) MarshalJSON Uses

func (l Link) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (*Link) MarshalText Uses

func (l *Link) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface.

func (*Link) Scan Uses

func (l *Link) Scan(value interface{}) error

Scan reads the database value and returns an instance.

func (*Link) Set Uses

func (l *Link) Set(x *Link) *Link

Set delegates to *big.Int.Set

func (*Link) SetInt64 Uses

func (l *Link) SetInt64(w int64) *Link

SetInt64 delegates to *big.Int.SetInt64

func (*Link) SetString Uses

func (l *Link) SetString(s string, base int) (*Link, bool)

SetString delegates to *big.Int.SetString

func (*Link) String Uses

func (l *Link) String() string

String returns Link formatted as a string.

func (*Link) Symbol Uses

func (*Link) Symbol() string

Symbol returns LINK

func (*Link) Text Uses

func (l *Link) Text(base int) string

Text defers to big.Int Text

func (*Link) ToHash Uses

func (l *Link) ToHash() common.Hash

ToHash returns a 32 byte representation of this value

func (*Link) ToInt Uses

func (l *Link) ToInt() *big.Int

ToInt returns the Link value as a *big.Int.

func (*Link) UnmarshalJSON Uses

func (l *Link) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface.

func (*Link) UnmarshalText Uses

func (l *Link) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface.

func (Link) Value Uses

func (l Link) Value() (driver.Value, error)

Value returns the Link value for serialization to database.

Package assets imports 7 packages (graph). Updated 2020-01-08. Refresh now. Tools for package owners.

The go get command cannot install this package because of the following issues: