pub enum CoinSelectionStrategyCIP2 {
    LargestFirst,
    RandomImprove,
    LargestFirstMultiAsset,
    RandomImproveMultiAsset,
}

Variants

LargestFirst

Performs CIP2’s Largest First ada-only selection. Will error if outputs contain non-ADA assets.

RandomImprove

Performs CIP2’s Random Improve ada-only selection. Will error if outputs contain non-ADA assets.

LargestFirstMultiAsset

Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.

RandomImproveMultiAsset

Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.