# Packages
No description provided by the author
# Functions
validator which fulfills abci validator interface for use in Tendermint.
create an AccAddress from a bech32 string.
create an AccAddress from a hex string.
Bech32ifyAccPub takes AccountPubKey and returns the bech32 encoded string.
Bech32ifyValPub returns the bech32 encoded string for a validator pubkey.
BondStatusToString for pretty prints of Bond Status.
NOTE: Don't stringer this, we'll put better messages in later.
New empty tags.
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
create a Pubkey from a string.
decode a bytestring from a bech32-encoded string.
decode a validator public key into a PubKey.
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.
Return the minimum of the ints.
minimum rational between two.
Return the minimum of the Uints.
MustBech32ifyAccPub panics on bech32-encoding failure.
MustBech32ifyValPub panics on bech32-encoding failure.
create an Pubkey from a string, panics on error.
create an Pubkey from a string, panics on error.
MustSortJSON is like SortJSON but panic if an error occurs, e.g., if the passed JSON isn't valid.
NewCodespacer generates a new Codespacer with the starting codespace.
No description provided by the author
create a new context.
NewError - create an error.
No description provided by the author
No description provided by the author
NewInt constructs Int from int64.
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.
No description provided by the author
New - create a new Rat from integers.
NewRatFromBigInt constructs Rat from big.Int.
create a rational from decimal string or integer string precision is the number of values after the decimal point which should be read.
NewRatFromInt constructs Rat from Int.
New variadic tags, must be k string, v []byte repeating.
No description provided by the author
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.
OneInt returns Int value with one.
No description provided by the author
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.
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.
intended to be used with require/assert: require.True(RatEq(...)).
test if two rat arrays are the equal.
Register the sdk message type.
SortedJSON takes any JSON and returns it sorted by keys.
get the abci code from the local code and codespace.
create a ValAddress from a bech32 string.
create a ValAddress from a hex string.
ZeroInt returns Int value with zero.
nolint - common values.
ZeroUint returns Uint value with zero.
# Constants
ABCI error codes.
expected address length.
Bech32 prefixes.
Bech32 prefixes.
Bech32 prefixes.
Bech32 prefixes.
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.
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.
Maximum reservable codespace (2^16 - 1).
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).
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
Codespacer is a simple struct to track reserved codespaces.
Coin hold some amount of one currency.
CommitID contains the tree version number and its merkle root.
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.
Error thrown when out of gas.
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.
Getter struct for prefixed stores.
NOTE: never use new(Rat) or else we will panic unmarshalling into the nil embedded big.Rat.
Result is the union of ResponseDeliverTx and ResponseCheckTx.
msg type for testing.
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.
Wrapper for StoreKeys to get KVStores.
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.
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
ABCICodeType - combined codetype / codespace.
AccAddress a wrapper around bytes meant to represent an account address When marshaled to a string or json, it uses bech32.
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 - code identifier within codespace.
Coins is a set of Coin, one per currency.
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.
kind of store.
Type synonym for convenience.
Type synonym for convenience.
TraceContext contains TraceKVStore context data.
TxDecoder unmarshals transaction bytes.
AccAddress a wrapper around bytes meant to represent a validator address (from over ABCI).