Value

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 7 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlonzoValue added in v1.0.3

type AlonzoValue struct {
	Am        Amount.AlonzoAmount
	Coin      int64
	HasAssets bool
}

func (AlonzoValue) Clone added in v1.0.3

func (alVal AlonzoValue) Clone() AlonzoValue

func (*AlonzoValue) MarshalCBOR added in v1.0.3

func (alVal *AlonzoValue) MarshalCBOR() ([]byte, error)

func (AlonzoValue) ToValue added in v1.0.3

func (alVal AlonzoValue) ToValue() Value

func (*AlonzoValue) UnmarshalCBOR added in v1.0.3

func (val *AlonzoValue) UnmarshalCBOR(value []byte) error

type Value

type Value struct {
	Am        Amount.Amount
	Coin      int64
	HasAssets bool
}

func PureLovelaceValue

func PureLovelaceValue(coin int64) Value

func SimpleValue

func SimpleValue(coin int64, assets MultiAsset.MultiAsset[int64]) Value

func (Value) Add

func (val Value) Add(other Value) Value

func (*Value) AddAssets

func (val *Value) AddAssets(other MultiAsset.MultiAsset[int64])

func (*Value) AddLovelace

func (val *Value) AddLovelace(amount int64)

func (Value) Clone

func (val Value) Clone() Value

func (Value) Equal

func (val Value) Equal(other Value) bool

func (Value) GetAssets

func (val Value) GetAssets() MultiAsset.MultiAsset[int64]

func (Value) GetCoin

func (val Value) GetCoin() int64

func (Value) Greater

func (val Value) Greater(other Value) bool

func (Value) GreaterOrEqual

func (val Value) GreaterOrEqual(other Value) bool

func (Value) Less

func (val Value) Less(other Value) bool

func (Value) LessOrEqual

func (val Value) LessOrEqual(other Value) bool

func (*Value) MarshalCBOR

func (val *Value) MarshalCBOR() ([]byte, error)

func (Value) RemoveZeroAssets

func (val Value) RemoveZeroAssets() Value

func (*Value) SetLovelace

func (val *Value) SetLovelace(amount int64)

func (*Value) SetMultiAsset

func (val *Value) SetMultiAsset(amount MultiAsset.MultiAsset[int64])

func (Value) String

func (val Value) String() string

func (Value) Sub

func (val Value) Sub(other Value) Value

func (*Value) SubLovelace

func (val *Value) SubLovelace(amount int64)

func (Value) ToAlonzoValue added in v1.0.3

func (val Value) ToAlonzoValue() AlonzoValue

func (*Value) UnmarshalCBOR

func (val *Value) UnmarshalCBOR(value []byte) error

Jump to

Keyboard shortcuts

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