Versions in this module Expand all Collapse all v0 v0.1.1 May 14, 2019 v0.1.0 May 14, 2019 Changes in this version + const CodeInsufficientCoins + const CodeInsufficientFee + const CodeInsufficientFunds + const CodeInternal + const CodeInvalidAddress + const CodeInvalidCoins + const CodeInvalidPubKey + const CodeInvalidSequence + const CodeMemoTooLarge + const CodeOK + const CodeOutOfGas + const CodeTooManySignatures + const CodeTxDecode + const CodeUnauthorized + const CodeUnknownAddress + const CodeUnknownRequest + const CodespaceRoot + const CodespaceUndefined + const GasDeleteDesc + const GasHasDesc + const GasIterNextCostFlatDesc + const GasReadCostFlatDesc + const GasReadPerByteDesc + const GasValuePerByteDesc + const GasWriteCostFlatDesc + const GasWritePerByteDesc + const SortableTimeFormat + func AddUint64Overflow(a, b uint64) (uint64, bool) + func AppendMsgToErr(msg string, err string) string + func CodeToDefaultMsg(code CodeType) string + func DefaultChainID() (string, error) + func DiffKVStores(a KVStore, b KVStore, prefixesToSkip [][]byte) (kvA cmn.KVPair, kvB cmn.KVPair, count int64, equal bool) + func FormatTimeBytes(t time.Time) []byte + func InclusiveEndBytes(inclusiveBytes []byte) (exclusiveBytes []byte) + func IntEq(t *testing.T, exp, got Int) (*testing.T, bool, string, string, string) + func MustSortJSON(toSortJSON []byte) []byte + func ParseTimeBytes(bz []byte) (time.Time, error) + func PrefixEndBytes(prefix []byte) []byte + func RegisterCodec(cdc *codec.Codec) + func SortJSON(toSortJSON []byte) ([]byte, error) + func Uint64ToBigEndian(i uint64) []byte + func UintOverflow(x Uint) bool + type AnteHandler func(ctx Context, tx Tx, simulate bool) (newCtx Context, result Result, abort bool) + type BeginBlocker func(ctx Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock + type CacheKVStore interface + Write func() + type CacheMultiStore interface + Write func() + type CacheWrap interface + CacheWrap func() CacheWrap + CacheWrapWithTrace func(w io.Writer, tc TraceContext) CacheWrap + Write func() + type CacheWrapper interface + CacheWrap func() CacheWrap + CacheWrapWithTrace func(w io.Writer, tc TraceContext) CacheWrap + type CodeType uint32 + func (code CodeType) IsOK() bool + type CodespaceType string + type CommitID struct + Hash []byte + Version int64 + func (cid CommitID) IsZero() bool + func (cid CommitID) String() string + type CommitKVStore interface + type CommitMultiStore interface + GetCommitKVStore func(key StoreKey) CommitKVStore + GetCommitStore func(key StoreKey) CommitStore + LoadLatestVersion func() error + LoadVersion func(ver int64) error + MountStoreWithDB func(key StoreKey, typ StoreType, db dbm.DB) + type CommitStore interface + type Committer interface + Commit func() CommitID + LastCommitID func() CommitID + SetPruning func(PruningStrategy) + type Context struct + func NewContext(ms MultiStore, header abci.Header, isCheckTx bool, logger log.Logger) Context + func (c Context) BlockHeader() abci.Header + func (c Context) BlockHeight() int64 + func (c Context) CacheContext() (cc Context, writeCache func()) + func (c Context) ChainID() string + func (c Context) ConsensusParams() abci.ConsensusParams + func (c Context) GasMeter() GasMeter + func (c Context) GetOp(ver int64) (Op, bool) + func (c Context) IsCheckTx() bool + func (c Context) IsZero() bool + func (c Context) KVStore(key StoreKey) KVStore + func (c Context) Logger() log.Logger + func (c Context) MultiStore() MultiStore + func (c Context) TransientStore(key StoreKey) KVStore + func (c Context) TxBytes() []byte + func (c Context) TxIndex() uint32 + func (c Context) Value(key interface{}) interface{} + func (c Context) VoteInfos() []abci.VoteInfo + 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) WithCacheWrapper(key interface{}, value CacheWrapper) Context + func (c Context) WithChainID(chainID string) Context + func (c Context) WithCloner(key interface{}, value cloner) Context + func (c Context) WithConsensusParams(params *abci.ConsensusParams) Context + func (c Context) WithGasMeter(meter GasMeter) Context + func (c Context) WithInt32(key interface{}, value int32) Context + func (c Context) WithIsCheckTx(isCheckTx bool) Context + func (c Context) WithLogger(logger log.Logger) Context + func (c Context) WithMultiStore(ms MultiStore) Context + func (c Context) WithProposer(addr []byte) Context + func (c Context) WithProtoMsg(key interface{}, value proto.Message) Context + func (c Context) WithString(key interface{}, value string) Context + func (c Context) WithTxBytes(txBytes []byte) Context + func (c Context) WithTxIndex(idx uint32) Context + func (c Context) WithUint32(key interface{}, value uint32) Context + func (c Context) WithUint64(key interface{}, value uint64) Context + func (c Context) WithValue(key interface{}, value interface{}) Context + func (c Context) WithVoteInfos(VoteInfos []abci.VoteInfo) Context + 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 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 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 struct + Descriptor string + type ErrorOutOfGas struct + Descriptor string + type Gas = uint64 + type GasConfig struct + DeleteCost Gas + HasCost Gas + IterNextCostFlat Gas + ReadCostFlat Gas + ReadCostPerByte Gas + ValueCostPerByte Gas + WriteCostFlat Gas + WriteCostPerByte Gas + func KVGasConfig() GasConfig + func TransientGasConfig() GasConfig + type GasMeter interface + ConsumeGas func(amount Gas, descriptor string) + GasConsumed func() Gas + func NewGasMeter(limit Gas) GasMeter + func NewInfiniteGasMeter() GasMeter + type Handler func(ctx Context, tx Tx) Result + type InitChainer func(ctx Context, req abci.RequestInitChain) abci.ResponseInitChain + type Int struct + 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 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) Div(i2 Int) (res Int) + func (i Int) DivRaw(i2 int64) Int + func (i Int) Equal(i2 Int) bool + func (i Int) GT(i2 Int) bool + func (i Int) Int64() int64 + func (i Int) IsInt64() bool + func (i Int) IsZero() bool + func (i Int) LT(i2 Int) bool + func (i Int) MarshalAmino() (string, error) + func (i Int) MarshalJSON() ([]byte, 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) Sign() int + func (i Int) String() string + func (i Int) Sub(i2 Int) (res Int) + func (i Int) SubRaw(i2 int64) Int + type Iterator = dbm.Iterator + func KVStorePrefixIterator(kvs KVStore, prefix []byte) Iterator + func KVStoreReversePrefixIterator(kvs KVStore, prefix []byte) Iterator + type KVPair cmn.KVPair + type KVStore interface + Delete func(key []byte) + Gas func(GasMeter, GasConfig) KVStore + Get func(key []byte) []byte + Has func(key []byte) bool + Iterator func(start, end []byte) Iterator + Prefix func(prefix []byte) KVStore + ReverseIterator func(start, end []byte) Iterator + Set func(key, value []byte) + type KVStoreKey struct + func NewKVStoreKey(name string) *KVStoreKey + func (key *KVStoreKey) Name() string + func (key *KVStoreKey) String() string + type MultiStore interface + CacheMultiStore func() CacheMultiStore + GetKVStore func(StoreKey) KVStore + GetStore func(StoreKey) Store + ResetTraceContext func() MultiStore + TracingEnabled func() bool + WithTracer func(w io.Writer) MultiStore + WithTracingContext func(TraceContext) MultiStore + type Op struct + type PeerFilter func(info string) abci.ResponseQuery + type PruningStrategy uint8 + const PruneEverything + const PruneNothing + const PruneSyncable + type Querier = func(ctx Context, path []string, req abci.RequestQuery) (res []byte, err Error) + type Queryable interface + Query func(abci.RequestQuery) abci.ResponseQuery + type Result struct + Code CodeType + Codespace CodespaceType + Data []byte + GasUsed uint64 + GasWanted uint64 + Log string + Tags cmn.KVPairs + func (res Result) IsOK() bool + type Store interface + GetStoreType func() StoreType + type StoreKey interface + Name func() string + String func() string + type StoreType int + const StoreTypeDB + const StoreTypeIAVL + const StoreTypeMulti + const StoreTypeTransient + type TraceContext map[string]interface + type TransientStoreKey struct + func NewTransientStoreKey(name string) *TransientStoreKey + func (key *TransientStoreKey) Name() string + func (key *TransientStoreKey) String() string + type Tx interface + ValidateBasic func() Error + type TxDecoder func(txBytes []byte) (Tx, Error) + type Uint struct + func MinUint(i1, i2 Uint) Uint + func NewUint(n uint64) Uint + func NewUintFromBigInt(i *big.Int) Uint + func NewUintFromString(s string) (res Uint, ok bool) + func NewUintWithDecimal(n uint64, dec int) Uint + func OneUint() Uint + func ZeroUint() Uint + func (i *Uint) UnmarshalAmino(text string) error + func (i *Uint) UnmarshalJSON(bz []byte) error + func (i Uint) Add(i2 Uint) (res Uint) + func (i Uint) AddRaw(i2 uint64) Uint + func (i Uint) BigInt() *big.Int + func (i Uint) Div(i2 Uint) (res Uint) + func (i Uint) DivRaw(i2 uint64) Uint + func (i Uint) Equal(i2 Uint) bool + func (i Uint) GT(i2 Uint) bool + func (i Uint) IsUint64() bool + func (i Uint) IsZero() bool + func (i Uint) LT(i2 Uint) bool + func (i Uint) MarshalAmino() (string, error) + func (i Uint) MarshalJSON() ([]byte, error) + func (i Uint) Mod(i2 Uint) Uint + func (i Uint) ModRaw(i2 uint64) Uint + func (i Uint) Mul(i2 Uint) (res Uint) + func (i Uint) MulRaw(i2 uint64) Uint + func (i Uint) SafeSub(i2 Uint) (Uint, bool) + func (i Uint) Sign() int + func (i Uint) String() string + func (i Uint) Sub(i2 Uint) (res Uint) + func (i Uint) SubRaw(i2 uint64) Uint + func (i Uint) Uint64() uint64