MultiAsset

package
v0.0.0-...-fe388b3 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiAsset

type MultiAsset[V int64 | uint64] map[Policy.PolicyId]Asset.Asset[V]

func (MultiAsset[V]) Add

func (ma MultiAsset[V]) Add(other MultiAsset[V]) MultiAsset[V]

func (MultiAsset[V]) Clone

func (ma MultiAsset[V]) Clone() MultiAsset[V]

func (MultiAsset[V]) Equal

func (ma MultiAsset[V]) Equal(other MultiAsset[V]) bool

func (MultiAsset[V]) Filter

func (ma MultiAsset[V]) Filter(f func(policy Policy.PolicyId, asset Asset.Asset[V]) bool) MultiAsset[V]

func (MultiAsset[V]) GetByPolicyAndId

func (ma MultiAsset[V]) GetByPolicyAndId(pol Policy.PolicyId, asset_name AssetName.AssetName) V

func (MultiAsset[V]) Greater

func (ma MultiAsset[V]) Greater(other MultiAsset[V]) bool

func (MultiAsset[V]) Less

func (ma MultiAsset[V]) Less(other MultiAsset[V]) bool

func (MultiAsset[V]) RemoveZeroAssets

func (ma MultiAsset[V]) RemoveZeroAssets() MultiAsset[V]

func (MultiAsset[V]) Sub

func (ma MultiAsset[V]) Sub(other MultiAsset[V]) MultiAsset[V]

Jump to

Keyboard shortcuts

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