Amount

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: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlonzoAmount added in v1.0.3

type AlonzoAmount struct {
	Coin  int64
	Value MultiAsset.MultiAsset[int64]
	// contains filtered or unexported fields
}

func (AlonzoAmount) Clone added in v1.0.3

func (am AlonzoAmount) Clone() AlonzoAmount

func (AlonzoAmount) ToShelley added in v1.0.3

func (amtAl AlonzoAmount) ToShelley() Amount

type Amount

type Amount struct {
	Coin  int64
	Value MultiAsset.MultiAsset[int64]
	// contains filtered or unexported fields
}

func (Amount) Add

func (am Amount) Add(other Amount) Amount

func (Amount) Clone

func (am Amount) Clone() Amount

func (Amount) Equal

func (am Amount) Equal(other Amount) bool

func (Amount) Greater

func (am Amount) Greater(other Amount) bool

func (Amount) Less

func (am Amount) Less(other Amount) bool

func (Amount) RemoveZeroAssets

func (am Amount) RemoveZeroAssets() Amount

func (Amount) Sub

func (am Amount) Sub(other Amount) Amount

func (Amount) ToAlonzo added in v1.0.3

func (amt Amount) ToAlonzo() AlonzoAmount

Jump to

Keyboard shortcuts

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