# Functions
validator which fulfills abci validator interface for use in Tendermint.
AccAddressFromBech32 creates an AccAddress from a Bech32 string.
AccAddressFromHex creates an AccAddress from a hex string.
AddUint64Overflow performs the addition operation on two uint64 integers and returns a boolean on whether or not the result overflows.
appends a message to the head of the given error.
Bech32ifyAccPub returns a Bech32 encoded string containing the Bech32PrefixAccPub prefix for a given account PubKey.
Bech32ifyConsPub returns a Bech32 encoded string containing the Bech32PrefixConsPub prefixfor a given consensus node's PubKey.
Bech32ifyValPub returns a Bech32 encoded string containing the Bech32PrefixValPub prefix for a given validator operator's PubKey.
BondStatusToString for pretty prints of Bond Status.
NOTE: Don't stringer this, we'll put better messages in later.
ConsAddressFromBech32 creates a ConsAddress from a Bech32 string.
ConsAddressFromHex creates a ConsAddress from a hex string.
intended to be used with require/assert: require.True(DecEq(...)).
test if two decimal arrays are equal.
DefaultChainID returns the chain ID from the genesis file if present.
Compare two KVstores, return either the first key/value pair at which they differ and whether or not they are equal, skipping value comparison for a set of provided prefixes.
New empty tags.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
nolint.
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
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Formats a time.Time into a []byte that can be sorted.
GetAccPubKeyBech32 creates a PubKey for an account with a given public key string using the Bech32 Bech32PrefixAccPub prefix.
GetConfig returns the config instance for the SDK.
get ConsAddress from pubkey.
GetConsPubKeyBech32 creates a PubKey for a consensus node with a given public key string using the Bech32 Bech32PrefixConsPub prefix.
GetFromBech32 decodes a bytestring from a Bech32 encoded string.
GetValPubKeyBech32 creates a PubKey for a validator's operator with a given public key string using the Bech32 Bech32PrefixValPub prefix.
InclusiveEndBytes returns the []byte that would end a range query such that the input would be included.
intended to be used with require/assert: require.True(IntEq(...)).
KVGasConfig returns a default gas config for KVStores.
Iterator over all the keys with a certain prefix in ascending order.
Iterator over all the keys with a certain prefix in descending order.
Make a tag from a key and a value.
maximum decimal between two.
minimum decimal between two.
Return the minimum of the ints.
Return the minimum of the Uints.
MustBech32ifyAccPub returns the result of Bech32ifyAccPub panicing on failure.
MustBech32ifyConsPub returns the result of Bech32ifyConsPub panicing on failure.
MustBech32ifyValPub returns the result of Bech32ifyValPub panicing on failure.
MustGetAccPubKeyBech32 returns the result of GetAccPubKeyBech32 panicing on failure.
MustGetConsPubKeyBech32 returns the result of GetConsPubKeyBech32 panicing on failure.
MustGetValPubKeyBech32 returns the result of GetValPubKeyBech32 panicing on failure.
Decimal from string, panic on error.
MustSortJSON is like SortJSON but panic if an error occurs, e.g., if the passed JSON isn't valid.
NewCoin returns a new coin with a denomination and amount.
create a new context.
create a new Dec from integer assuming whole number.
create a new Dec from big integer assuming whole numbers CONTRACT: prec <= Precision.
create a new Dec from big integer assuming whole numbers CONTRACT: prec <= Precision.
create a new Dec from big integer assuming whole numbers CONTRACT: prec <= Precision.
create a new Dec from big integer with decimal place at prec CONTRACT: prec <= Precision.
create a decimal from an input decimal string.
create a new Dec from integer with decimal place at prec CONTRACT: prec <= Precision.
NewError - create an error.
NewGasMeter returns a reference to a new basicGasMeter.
NewInfiniteGasMeter returns a reference to a new infiniteGasMeter.
NewInt constructs Int from int64.
NewInt64Coin returns a new coin with a denomination and amount.
NewIntFromBigInt constructs Int from big.Int.
NewIntFromString constructs Int from string.
NewIntWithDecimal constructs Int with decimal Result value is n*10^dec.
NewKVStoreKey returns a new pointer to a KVStoreKey.
New variadic tags, must be k string, v []byte repeating.
No description provided by the author
Constructs new TransientStoreKey Must return a pointer according to the ocap principle.
NewUint constructs Uint from int64.
NewUintFromBigUint constructs Uint from big.Uint.
NewUintFromString constructs Uint from string.
NewUintWithDecimal constructs Uint with decimal Result value is n*10^dec.
No description provided by the author
OneInt returns Int value with one.
OneUint returns Uint value with one.
ParseCoin parses a cli input for one coin type, returning errors if invalid.
ParseCoins will parse out a list of coins separated by commas.
Parses a []byte encoded using FormatTimeKey back into a time.Time.
PrefixEndBytes returns the []byte that would end a range query for all []byte with a certain prefix Deals with last byte of prefix being FF without overflowing.
Register the sdk message type.
SortedJSON takes any JSON and returns it sorted by keys.
TransientGasConfig returns a default gas config for TransientStores.
Uint64ToBigEndian - marshals uint64 to a bigendian byte slice so it can be sorted.
UintOverflow returns true if a given unsigned integer overflows and false otherwise.
ValAddressFromBech32 creates a ValAddress from a Bech32 string.
ValAddressFromHex creates a ValAddress from a hex string.
nolint - common values.
ZeroInt returns Int value with zero.
ZeroUint returns Uint value with zero.
# Constants
AddrLen defines a valid address length.
Bech32PrefixAccAddr defines the Bech32 prefix of an account's address.
Bech32PrefixAccPub defines the Bech32 prefix of an account's public key.
Bech32PrefixConsAddr defines the Bech32 prefix of a consensus node address.
Bech32PrefixConsPub defines the Bech32 prefix of a consensus node public key.
Bech32PrefixValAddr defines the Bech32 prefix of a validator's operator address.
Bech32PrefixValPub defines the Bech32 prefix of a validator's operator public key.
nolint.
SDK error codes.
SDK error codes.
SDK error codes.
SDK error codes.
SDK error codes.
SDK error codes.
SDK error codes.
SDK error codes.
SDK error codes.
SDK error codes.
Base error codes.
SDK error codes.
SDK error codes.
CodespaceRoot is a codespace for error codes in this file only.
SDK error codes.
SDK error codes.
SDK error codes.
SDK error codes.
SDK error codes.
bytes required to represent the above precision ceil(log2(9999999999)).
Gas consumption descriptors.
Gas consumption descriptors.
Gas consumption descriptors.
Gas consumption descriptors.
Gas consumption descriptors.
Gas consumption descriptors.
Gas consumption descriptors.
Gas consumption descriptors.
number of decimal places.
PruneEverything means all saved states will be deleted, storing only the current state.
PruneNothing means all historic states will be saved, nothing will be deleted.
PruneSyncable means only those states not needed for state syncing will be deleted (keeps last 100 + every 10000th).
Slight modification of the RFC3339Nano but it right pads all zeros and drops the time zone info.
No description provided by the author
No description provided by the author
nolint.
No description provided by the author
nolint.
nolint.
# Variables
common tags.
common tags.
common tags.
common tags.
# Structs
Coin hold some amount of one currency.
CommitID contains the tree version number and its merkle root.
Config is the structure that holds the SDK configuration parameters.
The intent of Context is for it to be an immutable object that can be
cloned and updated cheaply with WithValue() and passed forward to the
next decorator or handler.
NOTE: never use new(Dec) or else we will panic unmarshalling into the nil embedded big.Int.
ErrorGasOverflow defines an error thrown when an action results gas consumption unsigned integer overflow.
ErrorOutOfGas defines an error thrown when an action results in out of gas.
GasConfig defines gas cost for each operation on KVStores.
Int wraps integer with 256 bit range bound Checks overflow, underflow and division by zero Exists in range from -(2^255-1) to 2^255-1.
KVStoreKey is used for accessing substores.
XXX add description.
Result is the union of ResponseDeliverTx and ResponseCheckTx.
msg type for testing.
TransientStoreKey is used for indexing transient stores in a MultiStore.
Int wraps integer with 256 bit range bound Checks overflow, underflow and division by zero Exists in range from 0 to 2^256-1.
# Interfaces
CacheKVStore cache-wraps a KVStore.
From MultiStore.CacheMultiStore()....
CacheWrap makes the most appropriate cache-wrap.
No description provided by the author
Stores of MultiStore must implement CommitStore.
A non-cache MultiStore.
Stores of MultiStore must implement CommitStore.
something that can persist to disk.
delegation bond for a delegated proof of stake system.
properties for the set of all delegations for a particular.
sdk Error type.
GasMeter interface to track gas consumption.
KVStore is a simple interface to get/set data.
ModuleClients helps modules provide a standard interface for exporting client functionality.
Transactions messages must fulfill the Msg.
No description provided by the author
Queryable allows a Store to expose internal state to the abci.Query interface.
event hooks for staking validator object.
No description provided by the author
StoreKey is a key used to index stores in a MultiStore.
Transactions objects must fulfill the Tx.
validator for a delegated proof of stake system.
properties for the set of all validators.
# Type aliases
AccAddress a wrapper around bytes meant to represent an account address.
AnteHandler authenticates transactions, before their internal messages are handled.
run code before the transactions in a block.
status of a validator.
CodespaceType - codespace identifier.
CodeType - ABCI code identifier within codespace.
Coins is a set of Coin, one per currency.
ConsAddress defines a wrapper around bytes meant to present a consensus node.
run code after the transactions in a block and return updates to the validator set.
Gas measured by the SDK.
Handler defines the core of the state transition function of an application.
initialize application state at genesis.
Alias iterator to db's Iterator for convenience.
key-value result for iterator queries.
respond to p2p filtering queries from Tendermint.
PruningStrategy specfies how old states will be deleted over time.
Type for querier functions on keepers to implement to handle custom queries.
kind of store.
Type synonym for convenience.
Type synonym for convenience.
TraceContext contains TraceKVStore context data.
TxDecoder unmarshals transaction bytes.
TxEncoder marshals transaction to bytes.
ValAddress defines a wrapper around bytes meant to present a validator's operator.