Amount

package
v0.0.0-...-ec97d81 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlonzoAmount

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

func (AlonzoAmount) Clone

func (am AlonzoAmount) Clone() AlonzoAmount

func (AlonzoAmount) ToShelley

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

func (amt Amount) ToAlonzo() AlonzoAmount

Jump to

Keyboard shortcuts

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