Versions in this module Expand all Collapse all v1 v1.0.2 Dec 8, 2020 v1.0.0 Sep 28, 2020 v0 v0.0.0 Oct 19, 2020 Changes in this version + const AddrLen + const AppVersionEvent + const Bech32MainPrefix + const Bech32PrefixAccAddr + const Bech32PrefixAccPub + const Bech32PrefixConsAddr + const Bech32PrefixConsPub + const Bech32PrefixValAddr + const Bech32PrefixValPub + const BondStatusBonded + const BondStatusUnbonded + const BondStatusUnbonding + const Bonded + const CodeGasOverflow + const CodeInsufficientCoins + const CodeInsufficientFee + const CodeInsufficientFunds + const CodeInternal + const CodeInvalidAddress + const CodeInvalidCoins + const CodeInvalidPubKey + const CodeInvalidSequence + const CodeMemoTooLarge + const CodeNoSignatures + const CodeOK + const CodeOutOfGas + const CodeTooManySignatures + const CodeTxDecode + const CodeUnauthorized + const CodeUnknownAddress + const CodeUnknownRequest + const CodespaceRoot + const CodespaceUndefined + const CoinType + const DecimalPrecisionBits + const DefaultBondDenom + const FullFundraiserPath + const HashLength + const MainStore + const NativeTokenFraction + const NativeTokenName + const Precision + const PrefixAccount + const PrefixAddress + const PrefixConsensus + const PrefixOperator + const PrefixPublic + const PrefixValidator + const SortableTimeFormat + const StoreTypeDB + const StoreTypeIAVL + const StoreTypeMulti + const StoreTypeTransient + const Unbonded + const Unbonding + const ValidatorUpdateDelay + var AttributeKeyAction = "action" + var AttributeKeyAmount = "amount" + var AttributeKeyModule = "module" + var AttributeKeySender = "sender" + var CurrentVersionKey = []byte("current_version") + var DBBackend = "" + var ErrEmptyDecimalStr = errors.New("decimal string cannot be empty") + var ErrInvalidDecimalLength = errors.New("invalid decimal length") + var ErrInvalidDecimalStr = errors.New("invalid decimal string") + var EventTypeMessage = "message" + var IsAlphaNumeric = regexp.MustCompile(`^[a-zA-Z0-9]+$`).MatchString + var LastFailedVersionKey = []byte("last_failed_version") + var PowerReduction = NewInt(NativeTokenFraction) + var UpgradeConfigKey = []byte("upgrade_config") + func AppendMsgToErr(msg string, err string) string + func Bech32ifyPubKey(pkt Bech32PubKeyType, pubkey crypto.PubKey) (string, error) + func CodeToDefaultMsg(code CodeType) string + func CopyBytes(bz []byte) (ret []byte) + func DecEq(t *testing.T, exp, got Dec) (*testing.T, bool, string, string, string) + func DecsEqual(d1s, d2s []Dec) bool + func DiffKVStores(a KVStore, b KVStore, prefixesToSkip [][]byte) (kvA cmn.KVPair, kvB cmn.KVPair, count int64, equal bool) + func FormatInvariant(module, name, msg string) string + func FormatTimeBytes(t time.Time) []byte + func FromHex(s string) []byte + func GetFromBech32(bech32str, prefix string) ([]byte, error) + func GetPubKeyFromBech32(pkt Bech32PubKeyType, pubkeyStr string) (crypto.PubKey, error) + func InclusiveEndBytes(inclusiveBytes []byte) (exclusiveBytes []byte) + func IntEq(t *testing.T, exp, got Int) (*testing.T, bool, string, string, string) + func JSONEqual(a, b []byte) bool + func MustBech32ifyPubKey(pkt Bech32PubKeyType, pubkey crypto.PubKey) string + func MustGetPubKeyFromBech32(pkt Bech32PubKeyType, pubkeyStr string) crypto.PubKey + func MustSortJSON(toSortJSON []byte) []byte + func NewKVStoreKeys(names ...string) map[string]*KVStoreKey + func NewLevelDB(name, dir string) (db dbm.DB, err error) + func NewTransientStoreKeys(names ...string) map[string]*TransientStoreKey + func ParseTimeBytes(bz []byte) (time.Time, error) + func PrefixEndBytes(prefix []byte) []byte + func RegisterCodec(cdc *codec.Codec) + func RegisterDenom(denom string, unit Dec) error + func SortJSON(toSortJSON []byte) ([]byte, error) + func TokensToConsensusPower(tokens Int) int64 + func Uint64ToBigEndian(i uint64) []byte + func UintOverflow(i *big.Int) error + func ValidateDenom(denom string) error + func VerifyAddressFormat(bz []byte) error + type ABCIMessageLog struct + Events StringEvents + Log string + MsgIndex uint16 + Success bool + func NewABCIMessageLog(i uint16, success bool, log string, events Events) ABCIMessageLog + type ABCIMessageLogs []ABCIMessageLog + func ParseABCILogs(logs string) (res ABCIMessageLogs, err error) + func (logs ABCIMessageLogs) String() (str string) + type AccAddress []byte + func AccAddressFromBech32(address string) (addr AccAddress, err error) + func AccAddressFromHex(address string) (addr AccAddress, err error) + func BigToAddress(b *big.Int) AccAddress + func BytesToAddress(b []byte) AccAddress + func HexToAddress(s string) AccAddress + func (a *AccAddress) Unmarshal(data []byte) error + func (a *AccAddress) UnmarshalJSON(data []byte) error + func (a *AccAddress) UnmarshalYAML(data []byte) error + func (a AccAddress) Address() AccAddress + func (a AccAddress) Bytes() []byte + func (a AccAddress) Empty() bool + func (a AccAddress) Equals(a2 Address) bool + func (a AccAddress) Format(s fmt.State, verb rune) + func (a AccAddress) Hash() Hash + func (a AccAddress) Marshal() ([]byte, error) + func (a AccAddress) MarshalJSON() ([]byte, error) + func (a AccAddress) MarshalYAML() (interface{}, error) + func (a AccAddress) String() string + type Address interface + Bytes func() []byte + Empty func() bool + Equals func(Address) bool + Format func(s fmt.State, verb rune) + Marshal func() ([]byte, error) + MarshalJSON func() ([]byte, error) + String func() string + type AnteDecorator interface + AnteHandle func(ctx Context, tx Tx, simulate bool, next AnteHandler) (newCtx Context, err error) + type AnteHandler func(ctx Context, tx Tx, simulate bool) (newCtx Context, err error) + func ChainAnteDecorators(chain ...AnteDecorator) AnteHandler + type Attribute struct + Key string + Value string + func NewAttribute(k, v string) Attribute + func (a Attribute) String() string + func (a Attribute) ToKVPair() cmn.KVPair + type Bech32PubKeyType string + const Bech32PubKeyTypeAccPub + const Bech32PubKeyTypeConsPub + const Bech32PubKeyTypeValPub + type BeginBlocker func(ctx Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock + type BondStatus byte + func (b BondStatus) Equal(b2 BondStatus) bool + func (b BondStatus) String() string + type CacheKVStore = types.CacheKVStore + type CacheMultiStore = types.CacheMultiStore + type CacheWrap = types.CacheWrap + type CacheWrapper = types.CacheWrapper + type Code []byte + func (c *Code) UnmarshalJSON(data []byte) error + func (c Code) MarshalJSON() ([]byte, error) + func (c Code) String() string + type CodeType uint32 + func (code CodeType) IsOK() bool + type CodespaceType string + type Coin struct + Amount Int + Denom string + func ConvertCoin(coin Coin, denom string) (Coin, error) + func NewCoin(denom string, amount Int) Coin + func NewInt64Coin(denom string, amount int64) Coin + func ParseCoin(coinStr string) (coin Coin, err error) + func (coin Coin) Add(coinB Coin) Coin + func (coin Coin) IsEqual(other Coin) bool + func (coin Coin) IsGTE(other Coin) bool + func (coin Coin) IsLT(other Coin) bool + func (coin Coin) IsNegative() bool + func (coin Coin) IsPositive() bool + func (coin Coin) IsValid() bool + func (coin Coin) IsZero() bool + func (coin Coin) String() string + func (coin Coin) Sub(coinB Coin) Coin + type Coins []Coin + func NewCoins(coins ...Coin) Coins + func ParseCoins(coinsStr string) (Coins, error) + func (coins Coins) Add(coinsB Coins) Coins + func (coins Coins) AmountOf(denom string) Int + func (coins Coins) DenomsSubsetOf(coinsB Coins) bool + func (coins Coins) Empty() bool + func (coins Coins) IsAllGT(coinsB Coins) bool + func (coins Coins) IsAllGTE(coinsB Coins) bool + func (coins Coins) IsAllLT(coinsB Coins) bool + func (coins Coins) IsAllLTE(coinsB Coins) bool + func (coins Coins) IsAllPositive() bool + func (coins Coins) IsAnyGT(coinsB Coins) bool + func (coins Coins) IsAnyGTE(coinsB Coins) bool + func (coins Coins) IsAnyNegative() bool + func (coins Coins) IsEqual(coinsB Coins) bool + func (coins Coins) IsValid() bool + func (coins Coins) IsZero() bool + func (coins Coins) Len() int + func (coins Coins) Less(i, j int) bool + func (coins Coins) MarshalJSON() ([]byte, error) + func (coins Coins) SafeSub(coinsB Coins) (Coins, bool) + func (coins Coins) Sort() Coins + func (coins Coins) String() string + func (coins Coins) Sub(coinsB Coins) Coins + func (coins Coins) Swap(i, j int) + type CommitID = types.CommitID + type CommitKVStore = types.CommitKVStore + type CommitMultiStore = types.CommitMultiStore + type CommitStore = types.CommitStore + type Committer = types.Committer + type Config struct + func GetConfig() *Config + func (config *Config) GetAddressVerifier() func([]byte) error + func (config *Config) GetBech32AccountAddrPrefix() string + func (config *Config) GetBech32AccountPubPrefix() string + func (config *Config) GetBech32ConsensusAddrPrefix() string + func (config *Config) GetBech32ConsensusPubPrefix() string + func (config *Config) GetBech32ValidatorAddrPrefix() string + func (config *Config) GetBech32ValidatorPubPrefix() string + func (config *Config) GetCoinType() uint32 + func (config *Config) GetFullFundraiserPath() string + func (config *Config) GetTxEncoder() TxEncoder + func (config *Config) Seal() *Config + func (config *Config) SetAddressVerifier(addressVerifier func([]byte) error) + func (config *Config) SetBech32PrefixForAccount(addressPrefix, pubKeyPrefix string) + func (config *Config) SetBech32PrefixForConsensusNode(addressPrefix, pubKeyPrefix string) + func (config *Config) SetBech32PrefixForValidator(addressPrefix, pubKeyPrefix string) + func (config *Config) SetCoinType(coinType uint32) + func (config *Config) SetFullFundraiserPath(fullFundraiserPath string) + func (config *Config) SetTxEncoder(encoder TxEncoder) + type ConsAddress []byte + func ConsAddressFromBech32(address string) (addr ConsAddress, err error) + func ConsAddressFromHex(address string) (addr ConsAddress, err error) + func GetConsAddress(pubkey crypto.PubKey) ConsAddress + func (ca *ConsAddress) Unmarshal(data []byte) error + func (ca *ConsAddress) UnmarshalJSON(data []byte) error + func (ca *ConsAddress) UnmarshalYAML(data []byte) error + func (ca ConsAddress) Bytes() []byte + func (ca ConsAddress) Empty() bool + func (ca ConsAddress) Equals(ca2 Address) bool + func (ca ConsAddress) Format(s fmt.State, verb rune) + func (ca ConsAddress) Marshal() ([]byte, error) + func (ca ConsAddress) MarshalJSON() ([]byte, error) + func (ca ConsAddress) MarshalYAML() (interface{}, error) + func (ca ConsAddress) String() string + type Context struct + Simulate bool + func NewContext(ms MultiStore, header abci.Header, isCheckTx bool, logger log.Logger) Context + func (c Context) BlockGasMeter() GasMeter + func (c Context) BlockHeader() abci.Header + func (c Context) BlockHeight() int64 + func (c Context) BlockTime() time.Time + func (c Context) CacheContext() (cc Context, writeCache func()) + func (c Context) ChainID() string + func (c Context) ConsensusParams() *abci.ConsensusParams + func (c Context) Context() context.Context + func (c Context) EventManager() *EventManager + func (c Context) GasMeter() GasMeter + func (c Context) IsCheckTx() bool + func (c Context) IsReCheckTx() bool + func (c Context) IsZero() bool + func (c Context) KVStore(key StoreKey) KVStore + func (c Context) Logger() log.Logger + func (c Context) MinGasPrices() DecCoins + func (c Context) MultiStore() MultiStore + func (c Context) TransientStore(key StoreKey) KVStore + func (c Context) TxBytes() []byte + func (c Context) Value(key interface{}) interface{} + func (c Context) VoteInfos() []abci.VoteInfo + func (c Context) WithBlockGasMeter(meter GasMeter) Context + func (c Context) WithBlockHeader(header abci.Header) Context + func (c Context) WithBlockHeight(height int64) Context + func (c Context) WithBlockTime(newTime time.Time) Context + func (c Context) WithChainID(chainID string) Context + func (c Context) WithConsensusParams(params *abci.ConsensusParams) Context + func (c Context) WithContext(ctx context.Context) Context + func (c Context) WithEventManager(em *EventManager) Context + func (c Context) WithGasMeter(meter GasMeter) Context + func (c Context) WithIsCheckTx(isCheckTx bool) Context + func (c Context) WithIsReCheckTx(isRecheckTx bool) Context + func (c Context) WithLogger(logger log.Logger) Context + func (c Context) WithMinGasPrices(gasPrices DecCoins) Context + func (c Context) WithMultiStore(ms MultiStore) Context + func (c Context) WithProposer(addr ConsAddress) Context + func (c Context) WithTxBytes(txBytes []byte) Context + func (c Context) WithValue(key, value interface{}) Context + func (c Context) WithVoteInfos(voteInfo []abci.VoteInfo) Context + type Dec struct + func GetDenomUnit(denom string) (Dec, bool) + func MaxDec(d1, d2 Dec) Dec + func MinDec(d1, d2 Dec) Dec + func MustNewDecFromStr(s string) Dec + func NewDec(i int64) Dec + func NewDecFromBigInt(i *big.Int) Dec + func NewDecFromBigIntWithPrec(i *big.Int, prec int64) Dec + func NewDecFromInt(i Int) Dec + func NewDecFromIntWithPrec(i Int, prec int64) Dec + func NewDecFromStr(str string) (d Dec, err error) + func NewDecWithPrec(i, prec int64) Dec + func OneDec() Dec + func SmallestDec() Dec + func ZeroDec() Dec + func (d *Dec) UnmarshalAmino(text string) (err error) + func (d *Dec) UnmarshalJSON(bz []byte) error + func (d Dec) Abs() Dec + func (d Dec) Add(d2 Dec) Dec + func (d Dec) Ceil() Dec + func (d Dec) Equal(d2 Dec) bool + func (d Dec) Format(s fmt.State, verb rune) + func (d Dec) GT(d2 Dec) bool + func (d Dec) GTE(d2 Dec) bool + func (d Dec) IsInteger() bool + func (d Dec) IsNegative() bool + func (d Dec) IsNil() bool + func (d Dec) IsPositive() bool + func (d Dec) IsZero() bool + func (d Dec) LT(d2 Dec) bool + func (d Dec) LTE(d2 Dec) bool + func (d Dec) MarshalAmino() (string, error) + func (d Dec) MarshalJSON() ([]byte, error) + func (d Dec) MarshalYAML() (interface{}, error) + func (d Dec) Mul(d2 Dec) Dec + func (d Dec) MulInt(i Int) Dec + func (d Dec) MulInt64(i int64) Dec + func (d Dec) MulTruncate(d2 Dec) Dec + func (d Dec) Neg() Dec + func (d Dec) Quo(d2 Dec) Dec + func (d Dec) QuoInt(i Int) Dec + func (d Dec) QuoInt64(i int64) Dec + func (d Dec) QuoRoundUp(d2 Dec) Dec + func (d Dec) QuoTruncate(d2 Dec) Dec + func (d Dec) RoundInt() Int + func (d Dec) RoundInt64() int64 + func (d Dec) String() string + func (d Dec) Sub(d2 Dec) Dec + func (d Dec) TruncateDec() Dec + func (d Dec) TruncateInt() Int + func (d Dec) TruncateInt64() int64 + type DecCoin struct + Amount Dec + Denom string + func NewDecCoin(denom string, amount Int) DecCoin + func NewDecCoinFromCoin(coin Coin) DecCoin + func NewDecCoinFromDec(denom string, amount Dec) DecCoin + func NewInt64DecCoin(denom string, amount int64) DecCoin + func ParseDecCoin(coinStr string) (coin DecCoin, err error) + func (coin DecCoin) Add(coinB DecCoin) DecCoin + func (coin DecCoin) IsEqual(other DecCoin) bool + func (coin DecCoin) IsGTE(other DecCoin) bool + func (coin DecCoin) IsLT(other DecCoin) bool + func (coin DecCoin) IsNegative() bool + func (coin DecCoin) IsPositive() bool + func (coin DecCoin) IsZero() bool + func (coin DecCoin) String() string + func (coin DecCoin) Sub(coinB DecCoin) DecCoin + func (coin DecCoin) TruncateDecimal() (Coin, DecCoin) + type DecCoins []DecCoin + func NewDecCoins(coins Coins) DecCoins + func ParseDecCoins(coinsStr string) (DecCoins, error) + func (coins DecCoins) Add(coinsB DecCoins) DecCoins + func (coins DecCoins) AmountOf(denom string) Dec + func (coins DecCoins) Empty() bool + func (coins DecCoins) Intersect(coinsB DecCoins) DecCoins + func (coins DecCoins) IsAllPositive() bool + func (coins DecCoins) IsAnyNegative() bool + func (coins DecCoins) IsEqual(coinsB DecCoins) bool + func (coins DecCoins) IsValid() bool + func (coins DecCoins) IsZero() bool + func (coins DecCoins) Len() int + func (coins DecCoins) Less(i, j int) bool + func (coins DecCoins) MulDec(d Dec) DecCoins + func (coins DecCoins) MulDecTruncate(d Dec) DecCoins + func (coins DecCoins) QuoDec(d Dec) DecCoins + func (coins DecCoins) QuoDecTruncate(d Dec) DecCoins + func (coins DecCoins) SafeSub(coinsB DecCoins) (DecCoins, bool) + func (coins DecCoins) Sort() DecCoins + func (coins DecCoins) String() string + func (coins DecCoins) Sub(coinsB DecCoins) DecCoins + func (coins DecCoins) Swap(i, j int) + func (coins DecCoins) TruncateDecimal() (truncatedCoins Coins, changeCoins DecCoins) + type DeliverTx func(txBytes []byte) abci.ResponseDeliverTx + type EndBlocker func(ctx Context, req abci.RequestEndBlock) abci.ResponseEndBlock + type Error interface + ABCILog func() string + Code func() CodeType + Codespace func() CodespaceType + QueryResult func() abci.ResponseQuery + Result func() Result + TraceSDK func(format string, args ...interface{}) Error + WithDefaultCodespace func(CodespaceType) Error + func ErrGasOverflow(msg string) Error + func ErrInsufficientCoins(msg string) Error + func ErrInsufficientFee(msg string) Error + func ErrInsufficientFunds(msg string) Error + func ErrInternal(msg string) Error + func ErrInvalidAddress(msg string) Error + func ErrInvalidCoins(msg string) Error + func ErrInvalidPubKey(msg string) Error + func ErrInvalidSequence(msg string) Error + func ErrMemoTooLarge(msg string) Error + func ErrNoSignatures(msg string) Error + func ErrOutOfGas(msg string) Error + func ErrTooManySignatures(msg string) Error + func ErrTxDecode(msg string) Error + func ErrUnauthorized(msg string) Error + func ErrUnknownAddress(msg string) Error + func ErrUnknownRequest(msg string) Error + func NewError(codespace CodespaceType, code CodeType, format string, args ...interface{}) Error + type ErrorGasOverflow = types.ErrorGasOverflow + type ErrorOutOfGas = types.ErrorOutOfGas + type Event abci.Event + func NewEvent(ty string, attrs ...Attribute) Event + func (e Event) AppendAttributes(attrs ...Attribute) Event + type EventManager struct + func NewEventManager() *EventManager + func (em *EventManager) Clear() + func (em *EventManager) EmitEvent(event Event) + func (em *EventManager) EmitEvents(events Events) + func (em *EventManager) Events() Events + func (em EventManager) ABCIEvents() []abci.Event + type Events []Event + func EmptyEvents() Events + func (e Events) AppendEvent(event Event) Events + func (e Events) AppendEvents(events Events) Events + func (e Events) ToABCIEvents() []abci.Event + type FeeRefundHandler func(ctx Context, tx Tx, result Result) (Coin, error) + type Gas = types.Gas + type GasConfig = types.GasConfig + type GasInfo struct + GasUsed uint64 + GasWanted uint64 + type GasMeter = types.GasMeter + func NewGasMeter(limit Gas) GasMeter + func NewInfiniteGasMeter() GasMeter + type GenesisState map[string]json.RawMessage + type Handler func(ctx Context, msg Msg) (*Result, error) + type Hash [HashLength]byte + func BigToHash(b *big.Int) Hash + func BytesToHash(b []byte) Hash + func HexToHash(s string) Hash + func (Hash) ImplementsGraphQLType(name string) bool + func (h *Hash) Scan(src interface{}) error + func (h *Hash) SetBytes(b []byte) + func (h *Hash) Unmarshal(data []byte) error + func (h *Hash) UnmarshalGraphQL(input interface{}) error + func (h *Hash) UnmarshalJSON(input []byte) error + func (h *Hash) UnmarshalText(input []byte) error + func (h Hash) Big() *big.Int + func (h Hash) Bytes() []byte + func (h Hash) Format(s fmt.State, c rune) + func (h Hash) Generate(rand *rand.Rand, size int) reflect.Value + func (h Hash) Hex() string + func (h Hash) Marshal() ([]byte, error) + func (h Hash) MarshalJSON() ([]byte, error) + func (h Hash) MarshalText() ([]byte, error) + func (h Hash) String() string + func (h Hash) TerminalString() string + func (h Hash) Value() (driver.Value, error) + type HexBytes []byte + func (bz *HexBytes) Unmarshal(data []byte) error + func (bz *HexBytes) UnmarshalJSON(data []byte) error + func (bz HexBytes) Bytes() []byte + func (bz HexBytes) Format(s fmt.State, verb rune) + func (bz HexBytes) Marshal() ([]byte, error) + func (bz HexBytes) MarshalJSON() ([]byte, error) + func (bz HexBytes) String() string + type InitChainer func(ctx Context, req abci.RequestInitChain) abci.ResponseInitChain + type InitChainer1 func(ctx Context, deliverTx DeliverTx, req abci.RequestInitChain) abci.ResponseInitChain + type Int struct + func MaxInt(i, i2 Int) Int + func MinInt(i1, i2 Int) Int + func NewInt(n int64) Int + func NewIntFromBigInt(i *big.Int) Int + func NewIntFromString(s string) (res Int, ok bool) + func NewIntWithDecimal(n int64, dec int) Int + func OneInt() Int + func TokensFromConsensusPower(power int64) Int + func ZeroInt() Int + func (i *Int) UnmarshalAmino(text string) error + func (i *Int) UnmarshalJSON(bz []byte) error + func (i Int) Add(i2 Int) (res Int) + func (i Int) AddRaw(i2 int64) Int + func (i Int) BigInt() *big.Int + func (i Int) Equal(i2 Int) bool + func (i Int) GT(i2 Int) bool + func (i Int) GTE(i2 Int) bool + func (i Int) Int64() int64 + func (i Int) IsInt64() bool + func (i Int) IsNegative() bool + func (i Int) IsPositive() bool + func (i Int) IsZero() bool + func (i Int) LT(i2 Int) bool + func (i Int) LTE(i2 Int) bool + func (i Int) MarshalAmino() (string, error) + func (i Int) MarshalJSON() ([]byte, error) + func (i Int) MarshalYAML() (interface{}, error) + func (i Int) Mod(i2 Int) Int + func (i Int) ModRaw(i2 int64) Int + func (i Int) Mul(i2 Int) (res Int) + func (i Int) MulRaw(i2 int64) Int + func (i Int) Neg() (res Int) + func (i Int) Quo(i2 Int) (res Int) + func (i Int) QuoRaw(i2 int64) Int + func (i Int) Sign() int + func (i Int) String() string + func (i Int) Sub(i2 Int) (res Int) + func (i Int) SubRaw(i2 int64) Int + func (i Int) ToDec() Dec + type Invariant func(ctx Context) (string, bool) + type InvariantRegistry interface + RegisterRoute func(moduleName, route string, invar Invariant) + type Invariants []Invariant + type Iterator = types.Iterator + func KVStorePrefixIterator(kvs KVStore, prefix []byte) Iterator + func KVStoreReversePrefixIterator(kvs KVStore, prefix []byte) Iterator + type KVPair = types.KVPair + type KVStore = types.KVStore + type KVStoreKey = types.KVStoreKey + func NewKVStoreKey(name string) *KVStoreKey + type Msg interface + GetSignBytes func() []byte + GetSigners func() []AccAddress + Route func() string + Type func() string + ValidateBasic func() error + type MultiStore = types.MultiStore + type PeerFilter func(info string) abci.ResponseQuery + type PostEndBlockHandler func(res *abci.ResponseEndBlock) + type ProtocolDefinition struct + Height uint64 + Software string + Threshold Dec + Version uint64 + func NewProtocolDefinition(version uint64, software string, height uint64, threshold Dec) ProtocolDefinition + type ProtocolKeeper struct + func NewProtocolKeeper(key StoreKey) ProtocolKeeper + func (pk ProtocolKeeper) ClearUpgradeConfig(ctx Context) + func (pk ProtocolKeeper) GetCurrentVersion(ctx Context) uint64 + func (pk ProtocolKeeper) GetCurrentVersionByStore(store KVStore) uint64 + func (pk ProtocolKeeper) GetLastFailedVersion(ctx Context) uint64 + func (pk ProtocolKeeper) GetUpgradeConfig(ctx Context) (upgradeConfig UpgradeConfig, found bool) + func (pk ProtocolKeeper) GetUpgradeConfigByStore(store KVStore) (upgradeConfig UpgradeConfig, found bool) + func (pk ProtocolKeeper) IsValidVersion(ctx Context, version uint64) bool + func (pk ProtocolKeeper) SetCurrentVersion(ctx Context, currentVersion uint64) + func (pk ProtocolKeeper) SetLastFailedVersion(ctx Context, lastFailedVersion uint64) + func (pk ProtocolKeeper) SetUpgradeConfig(ctx Context, upgradeConfig UpgradeConfig) + type PruningOptions = types.PruningOptions + type Querier = func(ctx Context, path []string, req abci.RequestQuery) ([]byte, error) + type QueryRouter interface + AddRoute func(r string, h Querier) QueryRouter + Route func(path string) Querier + type Queryable = types.Queryable + type Request = Context + type Result struct + Code uint32 + Codespace string + Data []byte + Events Events + GasUsed uint64 + GasWanted uint64 + Log string + func (res Result) IsOK() bool + type Router interface + AddRoute func(r string, h Handler) Router + Route func(ctx Context, path string) Handler + type SearchTxsResult struct + Count int + Limit int + PageNumber int + PageTotal int + TotalCount int + Txs []TxResponse + func NewSearchTxsResult(totalCount, count, page, limit int, txs []TxResponse) SearchTxsResult + type Storage map[Hash]Hash + func (s Storage) Copy() Storage + func (s Storage) String() (str string) + type Store = types.Store + type StoreDecoderRegistry map[string]func(cdc *codec.Codec, kvA, kvB cmn.KVPair) string + type StoreKey = types.StoreKey + type StoreType = types.StoreType + type StringEvent struct + Attributes []Attribute + Type string + func StringifyEvent(e abci.Event) StringEvent + type StringEvents []StringEvent + func StringifyEvents(events []abci.Event) StringEvents + func (se StringEvents) Flatten() StringEvents + func (se StringEvents) String() string + type Terminator struct + func (t Terminator) AnteHandle(ctx Context, _ Tx, _ bool, _ AnteHandler) (Context, error) + type TestMsg struct + func NewTestMsg(addrs ...AccAddress) *TestMsg + func (msg *TestMsg) GetSignBytes() []byte + func (msg *TestMsg) GetSigners() []AccAddress + func (msg *TestMsg) Route() string + func (msg *TestMsg) Type() string + func (msg *TestMsg) ValidateBasic() error + type TraceContext = types.TraceContext + type TransientStoreKey = types.TransientStoreKey + func NewTransientStoreKey(name string) *TransientStoreKey + type Tx interface + GetMsgs func() []Msg + ValidateBasic func() error + type TxDecoder func(txBytes []byte) (Tx, error) + type TxEncoder func(tx Tx) ([]byte, error) + type TxResponse struct + Code uint32 + Codespace string + Data string + Events StringEvents + GasUsed int64 + GasWanted int64 + Height int64 + Info string + Logs ABCIMessageLogs + RawLog string + Timestamp string + Tx Tx + TxHash string + func NewResponseFormatBroadcastTx(res *ctypes.ResultBroadcastTx) TxResponse + func NewResponseFormatBroadcastTxCommit(res *ctypes.ResultBroadcastTxCommit) TxResponse + func NewResponseResultTx(res *ctypes.ResultTx, tx Tx, timestamp string) TxResponse + func (r TxResponse) Empty() bool + func (r TxResponse) String() string + type Uint struct + func MaxUint(u1, u2 Uint) Uint + func MinUint(u1, u2 Uint) Uint + func NewUint(n uint64) Uint + func NewUintFromBigInt(i *big.Int) Uint + func NewUintFromString(s string) Uint + func OneUint() Uint + func ParseUint(s string) (Uint, error) + func ZeroUint() Uint + func (u *Uint) UnmarshalAmino(text string) error + func (u *Uint) UnmarshalJSON(bz []byte) error + func (u Uint) Add(u2 Uint) Uint + func (u Uint) AddUint64(u2 uint64) Uint + func (u Uint) Equal(u2 Uint) bool + func (u Uint) GT(u2 Uint) bool + func (u Uint) GTE(u2 Uint) bool + func (u Uint) IsZero() bool + func (u Uint) LT(u2 Uint) bool + func (u Uint) LTE(u2 Uint) bool + func (u Uint) MarshalAmino() (string, error) + func (u Uint) MarshalJSON() ([]byte, error) + func (u Uint) Mul(u2 Uint) (res Uint) + func (u Uint) MulUint64(u2 uint64) (res Uint) + func (u Uint) Quo(u2 Uint) (res Uint) + func (u Uint) QuoUint64(u2 uint64) Uint + func (u Uint) String() string + func (u Uint) Sub(u2 Uint) Uint + func (u Uint) SubUint64(u2 uint64) Uint + func (u Uint) Uint64() uint64 + type UnprefixedHash Hash + func (h *UnprefixedHash) UnmarshalText(input []byte) error + func (h UnprefixedHash) MarshalText() ([]byte, error) + type UpgradeConfig struct + ProposalID uint64 + Protocol ProtocolDefinition + func DefaultUpgradeConfig(protocolID uint64, software string) UpgradeConfig + func NewUpgradeConfig(proposalID uint64, protocol ProtocolDefinition) UpgradeConfig + func (uc UpgradeConfig) String() string + type ValAddress []byte + func ValAddressFromBech32(address string) (addr ValAddress, err error) + func ValAddressFromHex(address string) (addr ValAddress, err error) + func (va *ValAddress) Unmarshal(data []byte) error + func (va *ValAddress) UnmarshalJSON(data []byte) error + func (va *ValAddress) UnmarshalYAML(data []byte) error + func (va ValAddress) Bytes() []byte + func (va ValAddress) Empty() bool + func (va ValAddress) Equals(va2 Address) bool + func (va ValAddress) Format(s fmt.State, verb rune) + func (va ValAddress) Marshal() ([]byte, error) + func (va ValAddress) MarshalJSON() ([]byte, error) + func (va ValAddress) MarshalYAML() (interface{}, error) + func (va ValAddress) String() string