Documentation ¶
Index ¶
- func IsAllGTE(coins sdk.DecCoins, coinsB sdk.DecCoins) bool
- type Addresses
- func (addresses Addresses) AppendIfMissing(address sdk.AccAddress) (Addresses, bool)
- func (addresses Addresses) Contains(address sdk.Address) bool
- func (addresses Addresses) Empty() bool
- func (addresses Addresses) IndexOf(address sdk.Address) int
- func (addresses Addresses) RemoveIfExisting(address sdk.Address) (Addresses, bool)
- type Strings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Addresses ¶
type Addresses []sdk.AccAddress
Addresses is an alias for a list of sdk.AccAddress that enables custom operations
func (Addresses) AppendIfMissing ¶
func (addresses Addresses) AppendIfMissing(address sdk.AccAddress) (Addresses, bool)
AppendIfMissing returns a new Addresses instance containing the given address if it wasn't already present
func (Addresses) Empty ¶ added in v1.2.0
Empty returns true if this slice does not contain any address
type Strings ¶ added in v1.2.0
type Strings []string
Strings represents a slice of strings.
func (Strings) AppendIfMissing ¶ added in v1.2.0
AppendIfMissing returns a new slice containing the given element. If the element was already present, it won't be appended and false will be returned. If it wasn't present, the element will be appended to the list and true will be returned.
Click to show internal directories.
Click to hide internal directories.