Versions in this module Expand all Collapse all v1 v1.0.1 Mar 10, 2023 Changes in this version + const AddrLen + const DecimalPrecisionBits + const Precision + const SortableTimeFormat + var AttributeKeyAction = "action" + var AttributeKeyAmount = "amount" + var AttributeKeyModule = "module" + var AttributeKeySender = "sender" + var ErrEmptyDecimalStr = errors.New("decimal string cannot be empty") + var ErrIntOverflowAbci = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowCoin = fmt.Errorf("proto: integer overflow") + var ErrInvalidDecimalLength = errors.New("invalid decimal length") + var ErrInvalidDecimalStr = errors.New("invalid decimal string") + var ErrInvalidLengthAbci = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthCoin = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupAbci = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupCoin = fmt.Errorf("proto: unexpected end of group") + var EventTypeCreateContext = "create_context" + var EventTypeMessage = "message" + var EventTypeResponseService = "respond_service" + var MaxSortableDec = OneDec().Quo(SmallestDec()) + var PubKeyFromBytes = cryptoAmino.PubKeyFromBytes + var TxValue EventValue = "Tx" + var TypeKey EventKey = "tm.event" + func AccAddressFromBech32(address string) (AccAddress, Error) + func Bech32ifyPubKey(pkt Bech32PubKeyType, pubkey cryptotypes.PubKey) (string, error) + func BigEndianToUint64(bz []byte) uint64 + func CatchPanic(fn func(errMsg string)) + func Cond(key EventKey) *condition + 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 FormatTimeBytes(t time.Time) []byte + func GetFromBech32(bech32str, prefix string) ([]byte, error) + func GetPubKeyFromBech32(pkt Bech32PubKeyType, pubkeyStr string) (cryptotypes.PubKey, error) + func HexStringFrom(bz []byte) string + func IntEq(t *testing.T, exp, got Int) (*testing.T, bool, string, string, string) + func MarkEventsToIndex(events []abci.Event, indexSet map[string]struct{}) []abci.Event + func MustSortJSON(toSortJSON []byte) []byte + func NewCond(typ, attrKey string) *condition + func ParseTimeBytes(bz []byte) (time.Time, error) + func SortJSON(toSortJSON []byte) ([]byte, error) + func SortableDecBytes(dec Dec) []byte + func Uint64ToBigEndian(i uint64) []byte + func ValAddressFromBech32(address string) (ValAddress, Error) + func ValidSortableDec(dec Dec) bool + func ValidateDenom(denom string) error + type ABCIClient = tmclient.ABCIClient + type ABCIMessageLog struct + Events StringEvents + Log string + MsgIndex uint32 + func NewABCIMessageLog(i uint32, log string, events Events) ABCIMessageLog + func (*ABCIMessageLog) Descriptor() ([]byte, []int) + func (*ABCIMessageLog) ProtoMessage() + func (m *ABCIMessageLog) GetEvents() StringEvents + func (m *ABCIMessageLog) GetLog() string + func (m *ABCIMessageLog) GetMsgIndex() uint32 + func (m *ABCIMessageLog) Marshal() (dAtA []byte, err error) + func (m *ABCIMessageLog) MarshalTo(dAtA []byte) (int, error) + func (m *ABCIMessageLog) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ABCIMessageLog) Reset() + func (m *ABCIMessageLog) Size() (n int) + func (m *ABCIMessageLog) Unmarshal(dAtA []byte) error + func (m *ABCIMessageLog) XXX_DiscardUnknown() + func (m *ABCIMessageLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ABCIMessageLog) XXX_Merge(src proto.Message) + func (m *ABCIMessageLog) XXX_Size() int + func (m *ABCIMessageLog) XXX_Unmarshal(b []byte) error + func (this *ABCIMessageLog) String() string + type ABCIMessageLogs []ABCIMessageLog + func ParseABCILogs(logs string) (res ABCIMessageLogs, err error) + func (logs ABCIMessageLogs) String() (str string) + type ABCIResponses struct + BeginBlock ResultBeginBlock + DeliverTx []TxResult + EndBlock ResultEndBlock + type AccAddress []byte + func MustAccAddressFromBech32(address string) AccAddress + func (aa *AccAddress) Unmarshal(data []byte) error + func (aa *AccAddress) UnmarshalJSON(data []byte) error + func (aa AccAddress) Bytes() []byte + func (aa AccAddress) Empty() bool + func (aa AccAddress) Equals(aa2 AccAddress) bool + func (aa AccAddress) Marshal() ([]byte, error) + func (aa AccAddress) MarshalJSON() ([]byte, error) + func (aa AccAddress) String() string + type AccountQuery interface + QueryAccount func(address string) (BaseAccount, Error) + QueryAddress func(name, password string) (AccAddress, Error) + type AddrPrefixCfg struct + func GetAddrPrefixCfg() *AddrPrefixCfg + func (config *AddrPrefixCfg) GetBech32AccountAddrPrefix() string + func (config *AddrPrefixCfg) GetBech32AccountPubPrefix() string + func (config *AddrPrefixCfg) GetBech32ConsensusAddrPrefix() string + func (config *AddrPrefixCfg) GetBech32ConsensusPubPrefix() string + func (config *AddrPrefixCfg) GetBech32ValidatorAddrPrefix() string + func (config *AddrPrefixCfg) GetBech32ValidatorPubPrefix() string + type Attribute struct + Key string + Value string + func NewAttribute(k, v string) Attribute + func (*Attribute) Descriptor() ([]byte, []int) + func (*Attribute) ProtoMessage() + func (a Attribute) String() string + func (a Attribute) ToKVPair() abci.EventAttribute + func (m *Attribute) GetKey() string + func (m *Attribute) GetValue() string + func (m *Attribute) Marshal() (dAtA []byte, err error) + func (m *Attribute) MarshalTo(dAtA []byte) (int, error) + func (m *Attribute) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Attribute) Reset() + func (m *Attribute) Size() (n int) + func (m *Attribute) Unmarshal(dAtA []byte) error + func (m *Attribute) XXX_DiscardUnknown() + func (m *Attribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Attribute) XXX_Merge(src proto.Message) + func (m *Attribute) XXX_Size() int + func (m *Attribute) XXX_Unmarshal(b []byte) error + type Attributes []Attribute + func (a Attributes) GetValue(key string) string + func (a Attributes) GetValues(key string) (values []string) + func (a Attributes) String() string + type BaseAccount struct + AccountNumber uint64 + Address string + Coins Coins + PubKey string + Sequence uint64 + type BaseClient interface + type BaseTx struct + Fee DecCoins + From string + Gas uint64 + Memo string + Mode BroadcastMode + Password string + Simulate bool + type Bech32PubKeyType string + const Bech32PubKeyTypeAccPub + const Bech32PubKeyTypeConsPub + const Bech32PubKeyTypeValPub + type Block struct + Evidence tmtypes.EvidenceData + LastCommit *tmtypes.Commit + func ParseBlock(cdc *codec.LegacyAmino, block *tmtypes.Block) Block + type BlockDetail struct + Block Block + BlockID tmtypes.BlockID + BlockResult BlockResult + type BlockResult struct + Height int64 + Results ABCIResponses + func ParseBlockResult(res *ctypes.ResultBlockResults) BlockResult + type BroadcastMode string + const Async + const Commit + const Sync + type ClientConfig struct + Algo string + Cached bool + ChainID string + Fee DecCoins + GRPCAddr string + Gas uint64 + GasAdjustment float64 + KeyDAO store.KeyDAO + Level string + MaxTxBytes uint64 + Mode BroadcastMode + NodeURI string + Timeout uint + func NewClientConfig(uri, grpcAddr, chainID string, options ...Option) (ClientConfig, error) + type Code uint32 + const ErrJsonMarshal + const ErrJsonUnmarshal + const InsufficientFee + const InsufficientFunds + const Internal + const InvalidAddress + const InvalidCoins + const InvalidPubkey + const InvalidRequest + const InvalidSequence + const MemoTooLarge + const MempoolIsFull + const NoSignatures + const OK + const OutOfGas + const RootCodespace + const TooManySignatures + const TxDecode + const TxInMempoolCache + const TxTooLarge + const Unauthorized + const UnknownAddress + const UnknownRequest + type CodeV017 uint32 + type Coin struct + Amount Int + Denom string + func NewCoin(denom string, amount Int) Coin + func NewInt64Coin(denom string, amount int64) Coin + func ParseCoin(coinStr string) (coin Coin, err error) + func (*Coin) Descriptor() ([]byte, []int) + func (*Coin) ProtoMessage() + 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 + func (m *Coin) GetDenom() string + func (m *Coin) Marshal() (dAtA []byte, err error) + func (m *Coin) MarshalTo(dAtA []byte) (int, error) + func (m *Coin) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Coin) Reset() + func (m *Coin) Size() (n int) + func (m *Coin) Unmarshal(dAtA []byte) error + func (m *Coin) XXX_DiscardUnknown() + func (m *Coin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Coin) XXX_Merge(src proto.Message) + func (m *Coin) XXX_Size() int + func (m *Coin) XXX_Unmarshal(b []byte) error + func (this *Coin) Equal(that interface{}) bool + type CoinType struct + Desc string + MainUnit Unit + MinUnit Unit + Name string + func (ct CoinType) ConvertToMainCoin(coin Coin) (DecCoin, error) + func (ct CoinType) ConvertToMinCoin(coin DecCoin) (newCoin Coin, err error) + type Coins []Coin + func NewCoins(coins ...Coin) Coins + func ParseCoins(coinsStr string) (Coins, error) + func (coins Coins) Add(coinsB ...Coin) Coins + func (coins Coins) AmountOf(denom string) Int + func (coins Coins) DenomsSubsetOf(coinsB Coins) bool + func (coins Coins) Empty() bool + func (coins Coins) GetDenomByIndex(i int) string + 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 ConsAddress []byte + func ConsAddressFromHex(address string) (addr ConsAddress, err error) + func (ca ConsAddress) Bytes() []byte + func (ca ConsAddress) String() string + type ConsPubKey []byte + func (cp ConsPubKey) Bytes() []byte + func (cp ConsPubKey) String() string + type Data struct + Txs []StdTx + type Dec struct + 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) (Dec, error) + func NewDecWithPrec(i, prec int64) Dec + func OneDec() Dec + func SmallestDec() Dec + func ZeroDec() Dec + func (d *Dec) MarshalTo(data []byte) (n int, err error) + func (d *Dec) Size() int + func (d *Dec) Unmarshal(data []byte) error + func (d *Dec) UnmarshalAmino(bz []byte) error + func (d *Dec) UnmarshalJSON(bz []byte) error + func (d Dec) Abs() Dec + func (d Dec) Add(d2 Dec) Dec + func (d Dec) ApproxRoot(root uint64) (guess Dec, err error) + func (d Dec) ApproxSqrt() (Dec, error) + func (d Dec) BigInt() *big.Int + 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) Marshal() ([]byte, error) + func (d Dec) MarshalAmino() ([]byte, 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) Power(power uint64) 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 (*DecCoin) Descriptor() ([]byte, []int) + func (*DecCoin) ProtoMessage() + 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) IsValid() bool + func (coin DecCoin) IsZero() bool + func (coin DecCoin) String() string + func (coin DecCoin) Sub(coinB DecCoin) DecCoin + func (coin DecCoin) TruncateDecimal() (Coin, DecCoin) + func (m *DecCoin) GetDenom() string + func (m *DecCoin) Marshal() (dAtA []byte, err error) + func (m *DecCoin) MarshalTo(dAtA []byte) (int, error) + func (m *DecCoin) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *DecCoin) Reset() + func (m *DecCoin) Size() (n int) + func (m *DecCoin) Unmarshal(dAtA []byte) error + func (m *DecCoin) XXX_DiscardUnknown() + func (m *DecCoin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *DecCoin) XXX_Merge(src proto.Message) + func (m *DecCoin) XXX_Size() int + func (m *DecCoin) XXX_Unmarshal(b []byte) error + func (this *DecCoin) Equal(that interface{}) bool + type DecCoins []DecCoin + func NewDecCoins(decCoins ...DecCoin) DecCoins + func NewDecCoinsFromCoins(coins ...Coin) DecCoins + func ParseDecCoins(coinsStr string) (DecCoins, error) + func (coins DecCoins) Add(coinsB ...DecCoin) DecCoins + func (coins DecCoins) AmountOf(denom string) Dec + func (coins DecCoins) Empty() bool + func (coins DecCoins) GetDenomByIndex(i int) string + 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 DecProto struct + Dec Dec + func (*DecProto) Descriptor() ([]byte, []int) + func (*DecProto) ProtoMessage() + func (dp DecProto) String() string + func (m *DecProto) Marshal() (dAtA []byte, err error) + func (m *DecProto) MarshalTo(dAtA []byte) (int, error) + func (m *DecProto) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *DecProto) Reset() + func (m *DecProto) Size() (n int) + func (m *DecProto) Unmarshal(dAtA []byte) error + func (m *DecProto) XXX_DiscardUnknown() + func (m *DecProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *DecProto) XXX_Merge(src proto.Message) + func (m *DecProto) XXX_Size() int + func (m *DecProto) XXX_Unmarshal(b []byte) error + type EncodingConfig struct + Amino *codec.LegacyAmino + InterfaceRegistry types.InterfaceRegistry + Marshaler codec.Marshaler + TxConfig TxConfig + type Error interface + Code func() uint32 + Codespace func() string + Error func() string + func GetError(codespace string, code uint32, log ...string) Error + func ValidateAccAddress(address string) Error + func Wrap(err error) Error + func WrapWithMessage(err error, format string, args ...interface{}) Error + func Wrapf(format string, args ...interface{}) Error + type Event abci.Event + func NewEvent(ty string, attrs ...Attribute) Event + func (e Event) AppendAttributes(attrs ...Attribute) Event + type EventData interface + type EventDataNewBlock struct + Block Block + ResultBeginBlock ResultBeginBlock + ResultEndBlock ResultEndBlock + type EventDataNewBlockHeader struct + Header Header + ResultBeginBlock ResultBeginBlock + ResultEndBlock ResultEndBlock + type EventDataTx struct + Hash string + Height int64 + Index uint32 + Result TxResult + Tx Tx + func (tx EventDataTx) MarshalJson() []byte + type EventDataValidatorSetUpdates struct + ValidatorUpdates []Validator + type EventHandler func(data EventData) + type EventKey string + type EventManager struct + func NewEventManager() *EventManager + func (em *EventManager) EmitEvent(event Event) + func (em *EventManager) EmitEvents(events Events) + func (em *EventManager) Events() Events + func (em EventManager) ABCIEvents() []abci.Event + type EventNewBlockHandler func(EventDataNewBlock) + type EventNewBlockHeaderHandler func(EventDataNewBlockHeader) + type EventQueryBuilder struct + func NewEventQueryBuilder() *EventQueryBuilder + func (eqb *EventQueryBuilder) AddCondition(c *condition) *EventQueryBuilder + func (eqb *EventQueryBuilder) Build() string + type EventTxHandler func(EventDataTx) + type EventValidatorSetUpdatesHandler func(EventDataValidatorSetUpdates) + type EventValue string + 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 Factory struct + func NewFactory() *Factory + func (f *Factory) AccountNumber() uint64 + func (f *Factory) Address() string + func (f *Factory) BuildAndSign(name string, msgs []Msg) ([]byte, error) + func (f *Factory) BuildUnsignedTx(msgs []Msg) (TxBuilder, error) + func (f *Factory) ChainID() string + func (f *Factory) Fees() Coins + func (f *Factory) Gas() uint64 + func (f *Factory) KeyManager() KeyManager + func (f *Factory) Memo() string + func (f *Factory) Mode() BroadcastMode + func (f *Factory) Password() string + func (f *Factory) Sequence() uint64 + func (f *Factory) Sign(name string, txBuilder TxBuilder) error + func (f *Factory) Simulate() bool + func (f *Factory) WithAccountNumber(accnum uint64) *Factory + func (f *Factory) WithAddress(address string) *Factory + func (f *Factory) WithChainID(chainID string) *Factory + func (f *Factory) WithFee(fee Coins) *Factory + func (f *Factory) WithGas(gas uint64) *Factory + func (f *Factory) WithKeyManager(keyManager KeyManager) *Factory + func (f *Factory) WithMemo(memo string) *Factory + func (f *Factory) WithMode(mode BroadcastMode) *Factory + func (f *Factory) WithPassword(password string) *Factory + func (f *Factory) WithSequence(sequence uint64) *Factory + func (f *Factory) WithSignModeHandler(signModeHandler SignModeHandler) *Factory + func (f *Factory) WithSimulate(simulate bool) *Factory + func (f *Factory) WithTxConfig(txConfig TxConfig) *Factory + type Fee interface + GetAmount func() Coins + GetGas func() uint64 + type FeeTx interface + FeePayer func() AccAddress + GetFee func() Coins + GetGas func() uint64 + type GRPCClient interface + GenConn func() (*grpc.ClientConn, error) + type GasInfo struct + GasUsed uint64 + GasWanted uint64 + func (*GasInfo) Descriptor() ([]byte, []int) + func (*GasInfo) ProtoMessage() + func (gi GasInfo) String() string + func (m *GasInfo) GetGasUsed() uint64 + func (m *GasInfo) GetGasWanted() uint64 + func (m *GasInfo) Marshal() (dAtA []byte, err error) + func (m *GasInfo) MarshalTo(dAtA []byte) (int, error) + func (m *GasInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *GasInfo) Reset() + func (m *GasInfo) Size() (n int) + func (m *GasInfo) Unmarshal(dAtA []byte) error + func (m *GasInfo) XXX_DiscardUnknown() + func (m *GasInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GasInfo) XXX_Merge(src proto.Message) + func (m *GasInfo) XXX_Size() int + func (m *GasInfo) XXX_Unmarshal(b []byte) error + type Header = tmtypes.Header + type HexBytes = tmbytes.HexBytes + func HexBytesFrom(hexStr string) (HexBytes, error) + func MustHexBytesFrom(hexStr string) HexBytes + 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 NewIntFromUint64(n uint64) Int + func NewIntWithDecimal(n int64, dec int) Int + func OneInt() Int + func ZeroInt() Int + func (i *Int) MarshalTo(data []byte) (n int, err error) + func (i *Int) Size() int + func (i *Int) Unmarshal(data []byte) error + func (i *Int) UnmarshalAmino(bz []byte) 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) IsNil() bool + func (i Int) IsPositive() bool + func (i Int) IsUint64() bool + func (i Int) IsZero() bool + func (i Int) LT(i2 Int) bool + func (i Int) LTE(i2 Int) bool + func (i Int) Marshal() ([]byte, error) + func (i Int) MarshalAmino() ([]byte, 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 + func (i Int) Uint64() uint64 + type IntProto struct + Int Int + func (*IntProto) Descriptor() ([]byte, []int) + func (*IntProto) ProtoMessage() + func (ip IntProto) String() string + func (m *IntProto) Marshal() (dAtA []byte, err error) + func (m *IntProto) MarshalTo(dAtA []byte) (int, error) + func (m *IntProto) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *IntProto) Reset() + func (m *IntProto) Size() (n int) + func (m *IntProto) Unmarshal(dAtA []byte) error + func (m *IntProto) XXX_DiscardUnknown() + func (m *IntProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *IntProto) XXX_Merge(src proto.Message) + func (m *IntProto) XXX_Size() int + func (m *IntProto) XXX_Unmarshal(b []byte) error + type KeyManager interface + Delete func(name, password string) error + Export func(name, password string) (privKeyArmor string, err error) + Find func(name, password string) (cryptotypes.PubKey, AccAddress, error) + Import func(name, password string, privKeyArmor string) (address string, err error) + Insert func(name, password string) (string, string, error) + Recover func(name, password, mnemonic string) (string, error) + Sign func(name, password string, data []byte) ([]byte, cryptotypes.PubKey, error) + type Logger interface + Logger func() log.Logger + SetLogger func(log.Logger) + type MerkleProof struct + Proof *crypto.ProofOps + type Module interface + Name func() string + RegisterInterfaceTypes func(registry cdctypes.InterfaceRegistry) + type Msg interface + GetSignBytes func() []byte + GetSigners func() []AccAddress + Route func() string + Type func() string + ValidateBasic func() error + type MsgData struct + Data []byte + MsgType string + func (*MsgData) Descriptor() ([]byte, []int) + func (*MsgData) ProtoMessage() + func (m *MsgData) GetData() []byte + func (m *MsgData) GetMsgType() string + func (m *MsgData) Marshal() (dAtA []byte, err error) + func (m *MsgData) MarshalTo(dAtA []byte) (int, error) + func (m *MsgData) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgData) Reset() + func (m *MsgData) Size() (n int) + func (m *MsgData) Unmarshal(dAtA []byte) error + func (m *MsgData) XXX_DiscardUnknown() + func (m *MsgData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgData) XXX_Merge(src proto.Message) + func (m *MsgData) XXX_Size() int + func (m *MsgData) XXX_Unmarshal(b []byte) error + func (this *MsgData) String() string + type Msgs []Msg + func (m Msgs) Len() int + func (m Msgs) Sub(begin, end int) SplitAble + type NetworkClient = tmclient.NetworkClient + type Option func(cfg *ClientConfig) error + func AlgoOption(algo string) Option + func CachedOption(enabled bool) Option + func FeeOption(fee DecCoins) Option + func GasAdjustmentOption(gasAdjustment float64) Option + func GasOption(gas uint64) Option + func KeyDAOOption(dao store.KeyDAO) Option + func LevelOption(level string) Option + func MaxTxBytesOption(maxTxBytes uint64) Option + func ModeOption(mode BroadcastMode) Option + func TimeoutOption(timeout uint) Option + type Pair = kv.Pair + type ParamQuery interface + QueryParams func(module string, res Response) Error + type ProofValue struct + Path []string + Proof []byte + Value []byte + type PubKey struct + Type string + Value string + type Queries interface + type Response interface + Convert func() interface{} + type Result struct + Data []byte + Events []types1.Event + Log string + func (*Result) Descriptor() ([]byte, []int) + func (*Result) ProtoMessage() + func (m *Result) Marshal() (dAtA []byte, err error) + func (m *Result) MarshalTo(dAtA []byte) (int, error) + func (m *Result) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Result) Reset() + func (m *Result) Size() (n int) + func (m *Result) Unmarshal(dAtA []byte) error + func (m *Result) XXX_DiscardUnknown() + func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Result) XXX_Merge(src proto.Message) + func (m *Result) XXX_Size() int + func (m *Result) XXX_Unmarshal(b []byte) error + func (r Result) GetEvents() Events + func (r Result) String() string + type ResultBeginBlock struct + Events StringEvents + type ResultEndBlock struct + Events StringEvents + ValidatorUpdates []ValidatorUpdate + type ResultQueryTx struct + Hash string + Height int64 + Result TxResult + Timestamp string + Tx Tx + type ResultSearchTxs struct + Total int + Txs []ResultQueryTx + type ResultTx struct + Events StringEvents + GasUsed int64 + GasWanted int64 + Hash string + Height int64 + type SearchTxsResult struct + Count uint64 + Limit uint64 + PageNumber uint64 + PageTotal uint64 + TotalCount uint64 + Txs []*TxResponse + func NewSearchTxsResult(totalCount, count, page, limit uint64, txs []*TxResponse) *SearchTxsResult + func (*SearchTxsResult) Descriptor() ([]byte, []int) + func (*SearchTxsResult) ProtoMessage() + func (m *SearchTxsResult) GetCount() uint64 + func (m *SearchTxsResult) GetLimit() uint64 + func (m *SearchTxsResult) GetPageNumber() uint64 + func (m *SearchTxsResult) GetPageTotal() uint64 + func (m *SearchTxsResult) GetTotalCount() uint64 + func (m *SearchTxsResult) GetTxs() []*TxResponse + func (m *SearchTxsResult) Marshal() (dAtA []byte, err error) + func (m *SearchTxsResult) MarshalTo(dAtA []byte) (int, error) + func (m *SearchTxsResult) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *SearchTxsResult) Reset() + func (m *SearchTxsResult) Size() (n int) + func (m *SearchTxsResult) Unmarshal(dAtA []byte) error + func (m *SearchTxsResult) XXX_DiscardUnknown() + func (m *SearchTxsResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *SearchTxsResult) XXX_Merge(src proto.Message) + func (m *SearchTxsResult) XXX_Size() int + func (m *SearchTxsResult) XXX_Unmarshal(b []byte) error + func (s SearchTxsResult) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error + func (this *SearchTxsResult) String() string + type SigTx interface + type SigVerifiableTx interface + GetPubKeys func() []cryptotypes.PubKey + GetSignaturesV2 func() ([]signing.SignatureV2, error) + GetSigners func() []AccAddress + type SignClient = tmclient.SignClient + type SignModeHandler interface + DefaultMode func() signing.SignMode + GetSignBytes func(mode signing.SignMode, data SignerData, tx Tx) ([]byte, error) + Modes func() []signing.SignMode + type SignModeHandlerMap struct + func NewSignModeHandlerMap(defaultMode signing.SignMode, handlers []SignModeHandler) SignModeHandlerMap + func (h SignModeHandlerMap) DefaultMode() signing.SignMode + func (h SignModeHandlerMap) GetSignBytes(mode signing.SignMode, data SignerData, tx Tx) ([]byte, error) + func (h SignModeHandlerMap) Modes() []signing.SignMode + type Signature interface + GetPubKey func() cryptotypes.PubKey + GetSignature func() []byte + type SignerData struct + AccountNumber uint64 + ChainID string + Sequence uint64 + type SimulationResponse struct + Result *Result + func (*SimulationResponse) Descriptor() ([]byte, []int) + func (*SimulationResponse) ProtoMessage() + func (m *SimulationResponse) GetResult() *Result + func (m *SimulationResponse) Marshal() (dAtA []byte, err error) + func (m *SimulationResponse) MarshalTo(dAtA []byte) (int, error) + func (m *SimulationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *SimulationResponse) Reset() + func (m *SimulationResponse) Size() (n int) + func (m *SimulationResponse) Unmarshal(dAtA []byte) error + func (m *SimulationResponse) XXX_DiscardUnknown() + func (m *SimulationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *SimulationResponse) XXX_Merge(src proto.Message) + func (m *SimulationResponse) XXX_Size() int + func (m *SimulationResponse) XXX_Unmarshal(b []byte) error + type SplitAble interface + Len func() int + Sub func(begin, end int) SplitAble + type StatusClient = tmclient.StatusClient + type StdFee struct + Amount Coins + Gas uint64 + func NewStdFee(gas uint64, amount ...Coin) StdFee + func (fee StdFee) Bytes() []byte + type StdSignDoc struct + AccountNumber uint64 + ChainID string + Fee json.RawMessage + Memo string + Msgs []json.RawMessage + Sequence uint64 + type StdSignMsg struct + AccountNumber uint64 + ChainID string + Fee StdFee + Memo string + Msgs []Msg + Sequence uint64 + func (msg StdSignMsg) Bytes(cdc codec.Marshaler) []byte + type StdSignature struct + PubKey []byte + Signature []byte + type StdTx struct + Fee StdFee + Memo string + Msgs []Msg + Signatures []StdSignature + func NewStdTx(msgs []Msg, fee StdFee, sigs []StdSignature, memo string) StdTx + func (tx StdTx) GetMemo() string + func (tx StdTx) GetMsgs() []Msg + func (tx StdTx) GetSignBytes() []string + func (tx StdTx) GetSignatures() []StdSignature + func (tx StdTx) GetSigners() []AccAddress + func (tx StdTx) ValidateBasic() error + type StoreQuery interface + Query func(path string, data interface{}) ([]byte, error) + QueryStore func(key HexBytes, storeName string, height int64, prove bool) (abci.ResponseQuery, error) + QueryWithResponse func(path string, data interface{}, result Response) error + type StringEvent struct + Attributes []Attribute + Type string + func StringifyEvent(e abci.Event) StringEvent + func (*StringEvent) Descriptor() ([]byte, []int) + func (*StringEvent) ProtoMessage() + func (m *StringEvent) GetAttributes() []Attribute + func (m *StringEvent) GetType() string + func (m *StringEvent) Marshal() (dAtA []byte, err error) + func (m *StringEvent) MarshalTo(dAtA []byte) (int, error) + func (m *StringEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *StringEvent) Reset() + func (m *StringEvent) Size() (n int) + func (m *StringEvent) Unmarshal(dAtA []byte) error + func (m *StringEvent) XXX_DiscardUnknown() + func (m *StringEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *StringEvent) XXX_Merge(src proto.Message) + func (m *StringEvent) XXX_Size() int + func (m *StringEvent) XXX_Unmarshal(b []byte) error + func (this *StringEvent) String() string + type StringEvents []StringEvent + func StringifyEvents(events []abci.Event) StringEvents + func (se StringEvents) Flatten() StringEvents + func (se StringEvents) GetValue(typ, key string) (string, error) + func (se StringEvents) String() string + type Subscription struct + Ctx context.Context + ID string + Query string + type TmClient interface + type TmPubKey = crypto.PubKey + type TmQuery interface + QueryBlock func(height int64) (BlockDetail, error) + QueryTx func(hash string) (ResultQueryTx, error) + QueryTxs func(builder *EventQueryBuilder, page, size int) (ResultSearchTxs, error) + type Token struct + InitialSupply uint64 + MaxSupply uint64 + MinUnit string + Mintable bool + Name string + Owner string + Scale uint32 + Symbol string + func (t Token) GetCoinType() CoinType + type TokenConvert interface + ToMainCoin func(coin ...Coin) (DecCoins, Error) + ToMinCoin func(coin ...DecCoin) (Coins, Error) + type TokenManager interface + QueryToken func(denom string) (Token, error) + SaveTokens func(tokens ...Token) + type Tokens []Token + type Tx interface + GetMsgs func() []Msg + ValidateBasic func() error + type TxBuilder interface + GetTx func() Tx + SetFeeAmount func(amount Coins) + SetGasLimit func(limit uint64) + SetMemo func(memo string) + SetMsgs func(msgs ...Msg) error + SetSignatures func(signatures ...signingtypes.SignatureV2) error + SetTimeoutHeight func(height uint64) + type TxConfig interface + NewTxBuilder func() TxBuilder + SignModeHandler func() SignModeHandler + WrapTxBuilder func(Tx) (TxBuilder, error) + type TxDecoder func(txBytes []byte) (Tx, error) + type TxEncoder func(tx Tx) ([]byte, error) + type TxEncodingConfig interface + MarshalSignatureJSON func([]signingtypes.SignatureV2) ([]byte, error) + TxDecoder func() TxDecoder + TxEncoder func() TxEncoder + TxJSONDecoder func() TxDecoder + TxJSONEncoder func() TxEncoder + UnmarshalSignatureJSON func([]byte) ([]signingtypes.SignatureV2, error) + type TxManager interface + BuildAndSend func(msg []Msg, baseTx BaseTx) (ResultTx, Error) + BuildAndSendWithAccount func(addr string, accountNumber, sequence uint64, msg []Msg, baseTx BaseTx) (ResultTx, Error) + SendBatch func(msgs Msgs, baseTx BaseTx) ([]ResultTx, Error) + type TxMsgData struct + Data []*MsgData + func (*TxMsgData) Descriptor() ([]byte, []int) + func (*TxMsgData) ProtoMessage() + func (m *TxMsgData) GetData() []*MsgData + func (m *TxMsgData) Marshal() (dAtA []byte, err error) + func (m *TxMsgData) MarshalTo(dAtA []byte) (int, error) + func (m *TxMsgData) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *TxMsgData) Reset() + func (m *TxMsgData) Size() (n int) + func (m *TxMsgData) Unmarshal(dAtA []byte) error + func (m *TxMsgData) XXX_DiscardUnknown() + func (m *TxMsgData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *TxMsgData) XXX_Merge(src proto.Message) + func (m *TxMsgData) XXX_Size() int + func (m *TxMsgData) XXX_Unmarshal(b []byte) error + func (this *TxMsgData) String() string + type TxResponse struct + Code uint32 + Codespace string + Data string + GasUsed int64 + GasWanted int64 + Height int64 + Info string + Logs ABCIMessageLogs + RawLog string + Timestamp string + Tx *types.Any + TxHash string + func NewResponseFormatBroadcastTx(res *ctypes.ResultBroadcastTx) *TxResponse + func NewResponseFormatBroadcastTxCommit(res *ctypes.ResultBroadcastTxCommit) *TxResponse + func NewResponseResultTx(res *ctypes.ResultTx, anyTx *codectypes.Any, timestamp string) *TxResponse + func (*TxResponse) Descriptor() ([]byte, []int) + func (*TxResponse) ProtoMessage() + func (m *TxResponse) Marshal() (dAtA []byte, err error) + func (m *TxResponse) MarshalTo(dAtA []byte) (int, error) + func (m *TxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *TxResponse) Reset() + func (m *TxResponse) Size() (n int) + func (m *TxResponse) Unmarshal(dAtA []byte) error + func (m *TxResponse) XXX_DiscardUnknown() + func (m *TxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *TxResponse) XXX_Merge(src proto.Message) + func (m *TxResponse) XXX_Size() int + func (m *TxResponse) XXX_Unmarshal(b []byte) error + func (r TxResponse) Empty() bool + func (r TxResponse) GetTx() Tx + func (r TxResponse) String() string + func (r TxResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error + type TxResult struct + Code uint32 + Events StringEvents + GasUsed int64 + GasWanted int64 + Log string + type TxWithMemo interface + GetMemo func() string + type TxWithTimeoutHeight interface + GetTimeoutHeight func() uint64 + type Unit struct + Denom string + Scale uint8 + func NewUnit(denom string, scale uint8) Unit + func (u Unit) GetScaleFactor() Int + type ValAddress []byte + func (va *ValAddress) Unmarshal(data []byte) error + func (va *ValAddress) UnmarshalJSON(data []byte) error + func (va ValAddress) Bytes() []byte + func (va ValAddress) Empty() bool + func (va ValAddress) Equals(va2 ValAddress) 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) String() string + type Validator struct + Address string + Bech32Address string + Bech32PubKey string + ProposerPriority int64 + PubKey PubKey + VotingPower int64 + type ValidatorUpdate struct + Power int64 + PubKey PubKey + func ParseValidatorUpdate(updates []abci.ValidatorUpdate) []ValidatorUpdate + type WSClient interface + SubscribeNewBlock func(builder *EventQueryBuilder, handler EventNewBlockHandler) (Subscription, Error) + SubscribeNewBlockHeader func(handler EventNewBlockHeaderHandler) (Subscription, Error) + SubscribeTx func(builder *EventQueryBuilder, handler EventTxHandler) (Subscription, Error) + SubscribeValidatorSetUpdates func(handler EventValidatorSetUpdatesHandler) (Subscription, Error) + Unsubscribe func(subscription Subscription) Error