Documentation ¶
Index ¶
- type AlonzoValue
- type Value
- func (val Value) Add(other Value) Value
- func (val *Value) AddAssets(other MultiAsset.MultiAsset[int64])
- func (val *Value) AddLovelace(amount int64)
- func (val Value) Clone() Value
- func (val Value) Equal(other Value) bool
- func (val Value) GetAssets() MultiAsset.MultiAsset[int64]
- func (val Value) GetCoin() int64
- func (val Value) Greater(other Value) bool
- func (val Value) GreaterOrEqual(other Value) bool
- func (val Value) Less(other Value) bool
- func (val Value) LessOrEqual(other Value) bool
- func (val *Value) MarshalCBOR() ([]byte, error)
- func (val Value) RemoveZeroAssets() Value
- func (val *Value) SetLovelace(amount int64)
- func (val *Value) SetMultiAsset(amount MultiAsset.MultiAsset[int64])
- func (val Value) String() string
- func (val Value) Sub(other Value) Value
- func (val *Value) SubLovelace(amount int64)
- func (val Value) ToAlonzoValue() AlonzoValue
- func (val *Value) UnmarshalCBOR(value []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlonzoValue ¶
type AlonzoValue struct { Am Amount.AlonzoAmount Coin int64 HasAssets bool }
func (AlonzoValue) Clone ¶
func (alVal AlonzoValue) Clone() AlonzoValue
func (*AlonzoValue) MarshalCBOR ¶
func (alVal *AlonzoValue) MarshalCBOR() ([]byte, error)
func (AlonzoValue) ToValue ¶
func (alVal AlonzoValue) ToValue() Value
func (*AlonzoValue) UnmarshalCBOR ¶
func (val *AlonzoValue) UnmarshalCBOR(value []byte) error
type Value ¶
func PureLovelaceValue ¶
func SimpleValue ¶
func SimpleValue(coin int64, assets MultiAsset.MultiAsset[int64]) Value
func (*Value) AddAssets ¶
func (val *Value) AddAssets(other MultiAsset.MultiAsset[int64])
func (*Value) AddLovelace ¶
func (Value) GetAssets ¶
func (val Value) GetAssets() MultiAsset.MultiAsset[int64]
func (Value) GreaterOrEqual ¶
func (Value) LessOrEqual ¶
func (*Value) MarshalCBOR ¶
func (Value) RemoveZeroAssets ¶
func (*Value) SetLovelace ¶
func (*Value) SetMultiAsset ¶
func (val *Value) SetMultiAsset(amount MultiAsset.MultiAsset[int64])
func (*Value) SubLovelace ¶
func (Value) ToAlonzoValue ¶
func (val Value) ToAlonzoValue() AlonzoValue
func (*Value) UnmarshalCBOR ¶
Click to show internal directories.
Click to hide internal directories.