# Packages
No description provided by the author
package partialord allows one to define partial orderings, and derive a total ordering.
No description provided by the author
# Functions
This function lets you run the function f, but if theres an error or panic drop the state machine change and log the error.
Binary search inputs between [lowerbound, upperbound] to a monotonic increasing function f.
BinarySearchBigDec takes as input: * an input range [lowerbound, upperbound] * an increasing function f * a target output x * max number of iterations (for gas control / handling does-not-converge cases)
It binary searches on the input range, until it finds an input y s.t.
CanCreateModuleAccountAtAddr tells us if we can safely make a module account at a given address.
TODO: Get this into the SDK https://github.com/cosmos/cosmos-sdk/issues/12538.
CreateModuleAccount creates a module account at the provided address.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Get returns a value at key by mutating the result parameter.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IsAckError checks an IBC acknowledgement to see if it's an error.
MakeNew makes a new instance of generic T.
MinCoins returns the minimum of each denom between both coins.
MustExtractDenomFromPacketOnRecv takes a packet with a valid ICS20 token data in the Data field and returns the denom as represented in the local chain.
MustGet gets key from store by mutating result Panics on any error.
MustGetDec gets dec value from store at key.
MustSet runs store.Set(key, proto.Marshal(value)) but panics on any error.
MustSetDec sets dec value to store at key.
No description provided by the author
No description provided by the author
Parses a string encoded using FormatTimeString back into a time.Time.
No description provided by the author
PrintPanicRecoveryError error logs the recoveryError, along with the stacktrace, if it can be parsed.
ReverseSlice reverses the input slice in place.
SortSlice sorts a slice of type T elements that implement constraints.Ordered.
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
# Structs
ErrTolerance is used to define a compare function, which checks if two ints are within a certain error tolerance of one another, and (optionally) that they are rounding in the correct direction.
No description provided by the author