Documentation ¶
Overview ¶
nolint
Index ¶
- Constants
- type Context
- func (c Context) BlockHeader() abci.Header
- func (c Context) BlockHeight() int64
- func (c Context) BlockTxIndex() int64
- func (c Context) CacheContext() (cc Context, writeCache func())
- func (c Context) ChainID() string
- func (c Context) ConsensusParams() abci.ConsensusParams
- func (c Context) GasMeter() types.GasMeter
- func (c Context) GetOp(ver int64) (Op, bool)
- func (c Context) IsCheckTx() bool
- func (c Context) IsZero() bool
- func (c Context) KVStore(key store.StoreKey) store.KVStore
- func (c Context) Logger() log.Logger
- func (c Context) Mapper(name string) mapper.IMapper
- func (c Context) MinimumFees() []types.Coin
- func (c Context) ResetBlockTxIndex() Context
- func (c Context) SigningValidators() []abci.SigningValidator
- func (c Context) TransientStore(key store.StoreKey) store.KVStore
- func (c Context) TxBytes() []byte
- func (c Context) TxQcpResultHandler() func(ctx Context, itx interface{}) types.Result
- func (c Context) Value(key interface{}) interface{}
- func (c Context) WithBlockHeader(header abci.Header) Context
- func (c Context) WithBlockHeight(height int64) Context
- func (c Context) WithBlockTxIndex(blockTxIndex int64) Context
- func (c Context) WithCacheWrapper(key interface{}, value store.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 types.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) WithMinimumFees(minFees []types.Coin) Context
- func (c Context) WithMultiStore(ms store.MultiStore) Context
- func (c Context) WithProtoMsg(key interface{}, value proto.Message) Context
- func (c Context) WithSigningValidators(SigningValidators []abci.SigningValidator) Context
- func (c Context) WithString(key interface{}, value string) Context
- func (c Context) WithTxBytes(txBytes []byte) Context
- func (c Context) WithTxQcpResultHandler(txQcpResultHandler func(ctx Context, itx interface{}) types.Result) 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
- type Op
Constants ¶
View Source
const ContextKeySigners contextKey = 99999
ContextKeySigners 用于保存tx中签名的账户
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
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. For example,
func MsgHandler(ctx Context, tx Tx) Result { ... ctx = ctx.WithValue(key, value) ... }
func NewContext ¶
func NewContext(ms store.MultiStore, header abci.Header, isCheckTx bool, logger log.Logger, registeSeedMapper map[string]mapper.IMapper) Context
create a new context nolint: unparam
func (Context) BlockHeader ¶
func (Context) BlockHeight ¶
func (Context) BlockTxIndex ¶
func (Context) CacheContext ¶
Cache the multistore and return a new cached context. The cached context is written to the context when writeCache is called.
func (Context) ConsensusParams ¶
func (c Context) ConsensusParams() abci.ConsensusParams
func (Context) GetOp ¶
Returns false if ver <= 0 || ver > len(c.pst.ops). The first operation is version 1.
func (Context) MinimumFees ¶
func (Context) ResetBlockTxIndex ¶
func (Context) SigningValidators ¶
func (c Context) SigningValidators() []abci.SigningValidator
func (Context) TransientStore ¶
TransientStore fetches a TransientStore from the MultiStore.
func (Context) TxQcpResultHandler ¶
func (Context) Value ¶
func (c Context) Value(key interface{}) interface{}
context value for the provided key
func (Context) WithBlockHeight ¶
func (Context) WithBlockTxIndex ¶
func (Context) WithCacheWrapper ¶
func (c Context) WithCacheWrapper(key interface{}, value store.CacheWrapper) Context
func (Context) WithChainID ¶
func (Context) WithCloner ¶
func (Context) WithConsensusParams ¶
func (c Context) WithConsensusParams(params *abci.ConsensusParams) Context
func (Context) WithIsCheckTx ¶
func (Context) WithMultiStore ¶
func (c Context) WithMultiStore(ms store.MultiStore) Context
func (Context) WithProtoMsg ¶
func (Context) WithSigningValidators ¶
func (c Context) WithSigningValidators(SigningValidators []abci.SigningValidator) Context
func (Context) WithString ¶
func (Context) WithTxBytes ¶
func (Context) WithTxQcpResultHandler ¶
func (Context) WithUint32 ¶
func (Context) WithUint64 ¶
Click to show internal directories.
Click to hide internal directories.