{"modulePath":"github.com/GoPlugin/pluginV2","version":"v0.5.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package assets\n\n## Variables\n\n```go\nvar ErrNoQuotesForCurrency = errors.New(\"cannot unmarshal json.Number into currency\")\n```\n\n## Types\n\n```go\ntype Eth big.Int\n```\nEth contains a field to represent the smallest units of ETH\n\n```go\nfunc NewEth(w int64) *Eth\n```\nNewEth returns a new struct to represent ETH from it's smallest unit (wei)\n\n```go\nfunc NewEthValue(w int64) Eth\n```\nNewEthValue returns a new struct to represent ETH from it's smallest unit (wei)\n\n```go\nfunc NewEthValueS(s string) (Eth, error)\n```\nNewEthValueS returns a new struct to represent ETH from a string value of Eth (not wei) the underlying value is still wei\n\n```go\nfunc (e *Eth) Cmp(y *Eth) int\n```\nCmp delegates to \\*big.Int.Cmp\n\n```go\nfunc (e *Eth) IsZero() bool\n```\nIsZero returns true when the value is 0 and false otherwise\n\n```go\nfunc (e Eth) MarshalJSON() ([]byte, error)\n```\nMarshalJSON implements the json.Marshaler interface.\n\n```go\nfunc (e *Eth) MarshalText() ([]byte, error)\n```\nMarshalText implements the encoding.TextMarshaler interface.\n\n```go\nfunc (e *Eth) Scan(value interface{}) error\n```\nScan reads the database value and returns an instance.\n\n```go\nfunc (e *Eth) SetInt64(w int64) *Eth\n```\nSetInt64 delegates to \\*big.Int.SetInt64\n\n```go\nfunc (e *Eth) SetString(s string, base int) (*Eth, bool)\n```\nSetString delegates to \\*big.Int.SetString\n\n```go\nfunc (e *Eth) String() string\n```\n\n```go\nfunc (*Eth) Symbol() string\n```\nSymbol returns ETH\n\n```go\nfunc (e *Eth) ToInt() *big.Int\n```\nToInt returns the Eth value as a \\*big.Int.\n\n```go\nfunc (e *Eth) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON implements the json.Unmarshaler interface.\n\n```go\nfunc (e *Eth) UnmarshalText(text []byte) error\n```\nUnmarshalText implements the encoding.TextUnmarshaler interface.\n\n```go\nfunc (e Eth) Value() (driver.Value, error)\n```\nValue returns the Eth value for serialization to database.\n\n```go\ntype Link big.Int\n```\nLink contains a field to represent the smallest units of LINK\n\n```go\nfunc NewLinkFromJuels(w int64) *Link\n```\nNewLinkFromJuels returns a new struct to represent LINK from it's smallest unit\n\n```go\nfunc (l *Link) Add(x, y *Link) *Link\n```\nAdd defers to big.Int Add\n\n```go\nfunc (l *Link) Cmp(y *Link) int\n```\nCmp defers to big.Int Cmp\n\n```go\nfunc (l *Link) IsZero() bool\n```\nIsZero returns true when the value is 0 and false otherwise\n\n```go\nfunc (l *Link) Link() string\n```\nLink returns Link formatted as a string, in LINK units\n\n```go\nfunc (l Link) MarshalJSON() ([]byte, error)\n```\nMarshalJSON implements the json.Marshaler interface.\n\n```go\nfunc (l *Link) MarshalText() ([]byte, error)\n```\nMarshalText implements the encoding.TextMarshaler interface.\n\n```go\nfunc (l *Link) Scan(value interface{}) error\n```\nScan reads the database value and returns an instance.\n\n```go\nfunc (l *Link) Set(x *Link) *Link\n```\nSet delegates to \\*big.Int.Set\n\n```go\nfunc (l *Link) SetInt64(w int64) *Link\n```\nSetInt64 delegates to \\*big.Int.SetInt64\n\n```go\nfunc (l *Link) SetString(s string, base int) (*Link, bool)\n```\nSetString delegates to \\*big.Int.SetString\n\n```go\nfunc (l *Link) String() string\n```\nString returns Link formatted as a string.\n\n```go\nfunc (*Link) Symbol() string\n```\nSymbol returns LINK\n\n```go\nfunc (l *Link) Text(base int) string\n```\nText defers to big.Int Text\n\n```go\nfunc (l *Link) ToHash() common.Hash\n```\nToHash returns a 32 byte representation of this value\n\n```go\nfunc (l *Link) ToInt() *big.Int\n```\nToInt returns the Link value as a \\*big.Int.\n\n```go\nfunc (l *Link) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON implements the json.Unmarshaler interface.\n\n```go\nfunc (l *Link) UnmarshalText(text []byte) error\n```\nUnmarshalText implements the encoding.TextUnmarshaler interface.\n\n```go\nfunc (l Link) Value() (driver.Value, error)\n```\nValue returns the Link value for serialization to database.\n\n```go\ntype Wei utils.Big\n```\nWei extends utils.Big to implement encoding.TextMarshaler and encoding.TextUnmarshaler with support for unit suffixes, as well as additional functions\n\n```go\nfunc Ether[T constraints.Signed](n T) *Wei\n```\n\n```go\nfunc GWei[T constraints.Signed](n T) *Wei\n```\n\n```go\nfunc MaxWei(w, x *Wei) *Wei\n```\n\n```go\nfunc NewWei(i *big.Int) *Wei\n```\nNewWei constructs a Wei from \\*big.Int.\n\n```go\nfunc NewWeiI[T constraints.Signed](i T) *Wei\n```\n\n```go\nfunc UEther[T constraints.Signed](n T) *Wei\n```\nUEther converts units of micro-ether (terawei) into wei\n\n```go\nfunc WeiMax(x, y *Wei) *Wei\n```\n\n```go\nfunc WeiMin(x, y *Wei) *Wei\n```\n\n```go\nfunc (w *Wei) Add(y *Wei) *Wei\n```\n\n```go\nfunc (w *Wei) AddPercentage(percentage uint16) *Wei\n```\n\n```go\nfunc (w *Wei) Cmp(y *Wei) int\n```\n\n```go\nfunc (w *Wei) Equal(y *Wei) bool\n```\n\n```go\nfunc (w *Wei) Int64() int64\n```\n\n```go\nfunc (w *Wei) IsNegative() bool\n```\n\n```go\nfunc (w *Wei) IsZero() bool\n```\n\n```go\nfunc (w *Wei) MarshalText() ([]byte, error)\n```\n\n```go\nfunc (w *Wei) Mul(y *big.Int) *Wei\n```\n\n```go\nfunc (w *Wei) Scan(value interface{}) error\n```\nScan reads the database value and returns an instance.\n\n```go\nfunc (w *Wei) String() string\n```\n\n```go\nfunc (w *Wei) Sub(y *Wei) *Wei\n```\n\n```go\nfunc (w *Wei) Text(suffix string) string\n```\n\n```go\nfunc (w *Wei) ToInt() *big.Int\n```\n\n```go\nfunc (w *Wei) UnmarshalText(b []byte) error\n```\n\n```go\nfunc (w Wei) Value() (driver.Value, error)\n```\nValue returns this instance serialized for database storage.\n\n","path":"github.com/GoPlugin/pluginV2/core/assets","name":"assets","synopsis":"","isRedistributable":true}
