package
0.16.4
Repository: https://github.com/irisnet/irishub.git
Documentation: pkg.go.dev

# 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.
ConvertDenomToTokenId return the token id of the given denom.
ConvertDenomToTokenKeyId return the store key suffix of a token.
ConvertIdToTokenKeyId return the store key suffix of a token.
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.
No description provided by the author
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
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
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.
No description provided by the author
No description provided by the author
No description provided by the author
GetConfig returns the config instance for the corresponding network type.
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.
No description provided by the author
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(...)).
No description provided by the author
No description provided by the author
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.
No description provided by the author
maximum decimal between two.
minimum decimal between two.
Return the minimum of the ints.
minimum rational between two.
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.
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.
No description provided by the author
NewCoins constructs a new coin set.
NewContext 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.
No description provided by the author
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.
No description provided by the author
NewKVStoreKey returns a new pointer to a KVStoreKey.
creates a new PaginationParams.
No description provided by the author
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
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
No description provided by the author
No description provided by the author
No description provided by the author
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.
No description provided by the author
ParseCoins will parse out a list of coins separated by commas.
No description provided by the author
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.
intended to be used with require/assert: require.True(RatEq(...)).
test if two rat arrays are equal.
Register the sdk message type.
No description provided by the author
SHA256 wraps sha256.Sum256 with result converted to slice.
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.
nolint - common values.
ZeroUint returns Uint value with zero.

# Constants

AddrLen defines a valid address length.
No description provided by the author
1 iris = 10^18 iris-atto.
No description provided by the author
nolint.
No description provided by the author
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.
SDK error codes.
SDK error codes.
SDK error codes.
SDK error codes.
Base error codes.
SDK error codes.
SDK error codes.
SDK 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.
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
bytes required to represent the above precision ceil(log2(9999999999)).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
1 iris = 10^15 iris-femto.
No description provided by the author
No description provided by the author
No description provided by the author
Gas consumption descriptors.
Gas consumption descriptors.
Gas consumption descriptors.
Gas consumption descriptors.
Gas consumption descriptors.
Gas consumption descriptors.
Gas consumption descriptors.
Gas consumption descriptors.
No description provided by the author
No description provided by the author
No description provided by the author
Trigger: transaction hash, module endBlock and beginBlock.
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
1 iris = 10^6 iris-micro.
No description provided by the author
1 iris = 10^3 iris-milli.
No description provided by the author
No description provided by the author
No description provided by the author
1 iris = 10^9 iris-nano.
No description provided by the author
1 iris = 10^12 iris-pico.
No description provided by the author
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).
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
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
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
source type.
No description provided by the author
No description provided by the author
nolint.
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

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
2 billion.
Can be configured through environment variables.
No description provided by the author
No description provided by the author
Can be configured through environment variables.
common tags.
common tags.
common tags.
common tags.
common tags.
common tags.
common tags.
common tags.
No description provided by the author

# Structs

Coin hold some amount of one currency.
No description provided by the author
No description provided by the author
CommitID contains the tree version number and its merkle root.
No description provided by the author
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.
defines the params for all list queries:.
No description provided by the author
No description provided by the author
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.
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.
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

CacheKVStore cache-wraps a KVStore.
From MultiStore.CacheMultiStore()....
CacheWrap makes the most appropriate cache-wrap.
No description provided by the author
No description provided by the author
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.
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.
No description provided by the author
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.
No description provided by the author
run code after the transactions in a block and return updates to the validator set.
No description provided by the author
No description provided by the author
Gas measured by the SDK.
Handler defines the core of the state transition function of an application.
initialize application state at genesis.
initialize application state at genesis.
An Invariant is a function which tests a particular invariant.
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.
No description provided by the author
ValAddress defines a wrapper around bytes meant to present a validator's operator.