package
24.1.0-testnet
Repository: https://github.com/stride-labs/stride.git
Documentation: pkg.go.dev

# Functions

AccAddressFromBech32 creates an AccAddress from a Bech32 string.
This function lets you run the function f, but if theres an error or panic drop the state machine change and log the error.
CanCreateModuleAccountAtAddr tells us if we can safely make a module account at a given address.
check string array inclusion.
Convert any bech32 to stride address.
CreateModuleAccount creates a module account at the provided address.
No description provided by the author
GetFromBech32 decodes a bytestring from a Bech32 encoded string.
Compute coin amount for specific period using linear vesting calculation algorithm.
Returns the native denom from an stDenom by removing the st prefix.
No description provided by the author
No description provided by the author
isIBCToken checks if the token came from the IBC module Each IBC token starts with an ibc/ denom, the check is rather simple.
Frustratingly, this has to return the error descriptor, not an actual error itself because the SDK errors here are not actually errors.
Returns a log header string with a dash padding on either side Ex: ------------------------------ string ------------------------------.
Returns a log string with a chain Id and icacallback as a prefix, and status of the callback Ex: | COSMOSHUB-4 | DELEGATE ICACALLBACK | ICA SUCCESS, Packet: ...
Returns a log string with a chain Id and icacallback as a prefix Ex: | COSMOSHUB-4 | DELEGATE ICACALLBACK | string.
Returns a log string with a chain Id and icqcallback as a prefix Ex: | COSMOSHUB-4 | WITHDRAWALHOSTBALANCE ICQCALLBACK | string.
Logs a module's migration info.
Returns a log string with a chainId and tab as the prefix Ex: | COSMOSHUB-4 | string.
============================== AIRDROP UTILS ================================ max64 returns the maximum of its inputs.
No description provided by the author
Min64 returns the minimum of its inputs.
PrintPanicRecoveryError error logs the recoveryError, along with the stacktrace, if it can be parsed.
Returns the stDenom from a native denom by appending a st prefix.
No description provided by the author
No description provided by the author
No description provided by the author
VerifyAddressFormat verifies that the provided bytes form a valid address according to the default address rules or a custom address verifier set by GetConfig().SetAddressVerifier().
Verifies a tx hash is valid.

# Variables

No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

AccAddress a wrapper around bytes meant to represent an account address.