Versions in this module Expand all Collapse all v0 v0.1.1 May 14, 2023 Changes in this version + const FlagGasUsedFactor + const HistoryGasUsedDBName + const HistoryGasUsedDbDir + const LatestSimulateTxHeight + const MainStoreKey + var GasUsedFactor = 0.4 + func ConvertMsg(msg sdk.Msg, height int64) (sdk.Msg, error) + func DefaultStoreLoader(ms sdk.CommitMultiStore) error + func EvmResultConvert(txHash, data []byte) ([]byte, error) + func Find(x string) string + func GetABCIBlock(height int64) (*ctypes.ResultBlock, error) + func GetABCIHeader(height int64) (abci.Header, error) + func GetABCITx(hash []byte) (*ctypes.ResultTx, error) + func GetGlobalMempool() mempool.Mempool + func IsMempoolEnablePendingPool() bool + func IsMempoolEnableRecheck() bool + func IsMempoolEnableSort() bool + func NewBlockDataCache() *blockDataCache + func RegisterCmHandle(msgType string, create *CMHandle) + func RegisterEvmConvertJudge(create func(msg sdk.Msg) ([]byte, bool)) + func RegisterEvmParamParse(create func(msg sdk.Msg) ([]byte, error)) + func RegisterEvmResultConverter(create func(txHash, data []byte) ([]byte, error)) + func SetGlobalMempool(mempool mempool.Mempool, enableSort bool, enablePendingPool bool) + func SetHaltHeight(blockHeight uint64) func(*BaseApp) + func SetHaltTime(haltTime uint64) func(*BaseApp) + func SetInterBlockCache(cache sdk.MultiStorePersistentCache) func(*BaseApp) + func SetMinGasPrices(gasPricesStr string) func(*BaseApp) + func SetPruning(opts sdk.PruningOptions) func(*BaseApp) + func SetTrace(trace bool) func(*BaseApp) + func Union(x string, yString string) + type BaseApp struct + EvmSysContractAddressHandler sdk.EvmSysContractAddressHandler + FeeSplitCollector []*sdk.FeeSplitInfo + GasRefundHandler sdk.GasRefundHandler + func NewBaseApp(name string, logger log.Logger, db dbm.DB, txDecoder sdk.TxDecoder, ...) *BaseApp + func (app *BaseApp) AppVersion() string + func (app *BaseApp) BeginBlock(req abci.RequestBeginBlock) (res abci.ResponseBeginBlock) + func (app *BaseApp) Check(tx sdk.Tx) (sdk.GasInfo, *sdk.Result, error) + func (app *BaseApp) CheckTx(req abci.RequestCheckTx) abci.ResponseCheckTx + func (app *BaseApp) Commit(req abci.RequestCommit) abci.ResponseCommit + func (app *BaseApp) Deliver(tx sdk.Tx) (sdk.GasInfo, *sdk.Result, error) + func (app *BaseApp) DeliverRealTx(txes abci.TxEssentials) abci.ResponseDeliverTx + func (app *BaseApp) DeliverTx(req abci.RequestDeliverTx) abci.ResponseDeliverTx + func (app *BaseApp) EndBlock(req abci.RequestEndBlock) (res abci.ResponseEndBlock) + func (app *BaseApp) Export(toApp *BaseApp, version int64) error + func (app *BaseApp) FilterPeerByAddrPort(info string) abci.ResponseQuery + func (app *BaseApp) FilterPeerByID(info string) abci.ResponseQuery + func (app *BaseApp) GRPCQueryRouter() *GRPCQueryRouter + func (app *BaseApp) GetCMS() sdk.CommitMultiStore + func (app *BaseApp) GetCacheMultiStore(txBytes []byte) (sdk.CacheMultiStore, bool) + func (app *BaseApp) GetCommitVersion() (int64, error) + func (app *BaseApp) GetDB() dbm.DB + func (app *BaseApp) GetDeliverStateCtx() sdk.Context + func (app *BaseApp) GetRawTxInfo(rawTx tmtypes.Tx) mempool.ExTxInfo + func (app *BaseApp) GetRealTxFromRawTx(rawTx tmtypes.Tx) abci.TxEssentials + func (app *BaseApp) GetTxDecoder() sdk.TxDecoder + func (app *BaseApp) GetTxHistoryGasUsed(rawTx tmtypes.Tx) int64 + func (app *BaseApp) GetTxInfo(ctx sdk.Context, tx sdk.Tx) mempool.ExTxInfo + func (app *BaseApp) Info(req abci.RequestInfo) abci.ResponseInfo + func (app *BaseApp) InitChain(req abci.RequestInitChain) (res abci.ResponseInitChain) + func (app *BaseApp) IsSealed() bool + func (app *BaseApp) JudgeEvmConvert(ctx sdk.Context, msg sdk.Msg) bool + func (app *BaseApp) LastBlockHeight() int64 + func (app *BaseApp) LastCommitID() sdk.CommitID + func (app *BaseApp) LoadLatestVersion(baseKey *sdk.KVStoreKey) error + func (app *BaseApp) LoadVersion(version int64, baseKey *sdk.KVStoreKey) error + func (app *BaseApp) Logger() log.Logger + func (app *BaseApp) MockContext() sdk.Context + func (app *BaseApp) MountKVStores(keys map[string]*sdk.KVStoreKey) + func (app *BaseApp) MountMemoryStores(keys map[string]*sdk.MemoryStoreKey) + func (app *BaseApp) MountStore(key sdk.StoreKey, typ sdk.StoreType) + func (app *BaseApp) MountStoreWithDB(key sdk.StoreKey, typ sdk.StoreType, db dbm.DB) + func (app *BaseApp) MountStores(keys ...sdk.StoreKey) + func (app *BaseApp) MountTransientStores(keys map[string]*sdk.TransientStoreKey) + func (app *BaseApp) MsgServiceRouter() *MsgServiceRouter + func (app *BaseApp) Name() string + func (app *BaseApp) NewContext(isCheckTx bool, header abci.Header) (ctx sdk.Context) + func (app *BaseApp) ParallelTxs(txs [][]byte, onlyCalSender bool) []*abci.ResponseDeliverTx + func (app *BaseApp) PreDeliverRealTx(tx []byte) abci.TxEssentials + func (app *BaseApp) PushAnteHandler(ah sdk.AnteHandler) + func (app *BaseApp) PutCacheMultiStore(cms sdk.CacheMultiStore) + func (app *BaseApp) Query(req abci.RequestQuery) abci.ResponseQuery + func (app *BaseApp) QueryRouter() sdk.QueryRouter + func (app *BaseApp) RegisterGRPCServer(server gogogrpc.Server) + func (app *BaseApp) Router() sdk.Router + func (app *BaseApp) Seal() + func (app *BaseApp) SetAccNonceHandler(anh sdk.AccNonceHandler) + func (app *BaseApp) SetAddrPeerFilter(pf sdk.PeerFilter) + func (app *BaseApp) SetAnteHandler(ah sdk.AnteHandler) + func (app *BaseApp) SetAppVersion(v string) + func (app *BaseApp) SetBeginBlocker(beginBlocker sdk.BeginBlocker) + func (app *BaseApp) SetCMS(cms store.CommitMultiStore) + func (app *BaseApp) SetCommitMultiStoreTracer(w io.Writer) + func (app *BaseApp) SetDB(db dbm.DB) + func (app *BaseApp) SetEndBlocker(endBlocker sdk.EndBlocker) + func (app *BaseApp) SetEndLogHandler(handle recordHandle) + func (app *BaseApp) SetEvmSysContractAddressHandler(handler sdk.EvmSysContractAddressHandler) + func (app *BaseApp) SetEvmWatcherCollector(collector sdk.EvmWatcherCollector) + func (app *BaseApp) SetFauxMerkleMode() + func (app *BaseApp) SetGasRefundHandler(gh sdk.GasRefundHandler) + func (app *BaseApp) SetGetTxFeeHandler(handler sdk.GetTxFeeHandler) + func (app *BaseApp) SetIDPeerFilter(pf sdk.PeerFilter) + func (app *BaseApp) SetInitChainer(initChainer sdk.InitChainer) + func (app *BaseApp) SetInterceptors(interceptors map[string]Interceptor) + func (app *BaseApp) SetInterfaceRegistry(registry types.InterfaceRegistry) + func (app *BaseApp) SetName(name string) + func (app *BaseApp) SetOption(req abci.RequestSetOption) (res abci.ResponseSetOption) + func (app *BaseApp) SetParallelTxLogHandlers(fixLog sdk.LogFix) + func (app *BaseApp) SetPartialConcurrentHandlers(etf sdk.GetTxFeeAndFromHandler) + func (app *BaseApp) SetPreDeliverTxHandler(handler sdk.PreDeliverTxHandler) + func (app *BaseApp) SetRouter(router sdk.Router) + func (app *BaseApp) SetStartLogHandler(handle recordHandle) + func (app *BaseApp) SetStoreLoader(loader StoreLoader) + func (app *BaseApp) SetTmClient(client client.Client) + func (app *BaseApp) SetUpdateFeeCollectorAccHandler(handler sdk.UpdateFeeCollectorAccHandler) + func (app *BaseApp) Simulate(txBytes []byte, tx sdk.Tx, height int64, overridesBytes []byte, from ...string) (sdk.GasInfo, *sdk.Result, error) + func (app *BaseApp) StopBaseApp() + func (app *BaseApp) TraceTx(queryTraceTx sdk.QueryTraceTx, targetTx sdk.Tx, txIndex uint32, ...) (*sdk.Result, error) + func (app *BaseApp) UpdateFeeCollector(fee sdk.Coins, add bool) + type CMHandle struct + func NewCMHandle(fn func(data []byte, signers []sdk.AccAddress) (sdk.Msg, error), height int64) *CMHandle + type CacheTxContextFunc func(ctx sdk.Context, txBytes []byte) (sdk.Context, sdk.CacheMultiStore) + type GRPCQueryHandler = func(ctx sdk.Context, req abci.RequestQuery) (abci.ResponseQuery, error) + type GRPCQueryRouter struct + func NewGRPCQueryRouter() *GRPCQueryRouter + func (qrt *GRPCQueryRouter) RegisterService(sd *grpc.ServiceDesc, handler interface{}) + func (qrt *GRPCQueryRouter) Route(path string) GRPCQueryHandler + func (qrt *GRPCQueryRouter) SetInterfaceRegistry(interfaceRegistry codectypes.InterfaceRegistry) + type HistoryGasUsedRecordDB struct + func InstanceOfHistoryGasUsedRecordDB() *HistoryGasUsedRecordDB + func (h *HistoryGasUsedRecordDB) FlushHgu() + func (h *HistoryGasUsedRecordDB) GetHgu(key []byte) int64 + func (h *HistoryGasUsedRecordDB) UpdateGasUsed(key []byte, gasUsed int64) + type Interceptor interface + Intercept func(req *abci.RequestQuery) + func NewRedirectInterceptor(redirectPath string) Interceptor + type MsgServiceHandler = func(ctx sdk.Context, req sdk.MsgRequest) (*sdk.Result, error) + type MsgServiceRouter struct + func NewMsgServiceRouter() *MsgServiceRouter + func (msr *MsgServiceRouter) Handler(methodName string) MsgServiceHandler + func (msr *MsgServiceRouter) HandlerWithMsg(msg sdk.MsgAdapter) MsgServiceHandler + func (msr *MsgServiceRouter) RegisterService(sd *grpc.ServiceDesc, handler interface{}) + func (msr *MsgServiceRouter) SetInterfaceRegistry(interfaceRegistry codectypes.InterfaceRegistry) + type MsgWrapper struct + Data json.RawMessage + Name string + func ParseMsgWrapper(data []byte) (*MsgWrapper, error) + type QueryRouter struct + func NewQueryRouter() *QueryRouter + func (qrt *QueryRouter) AddRoute(path string, q sdk.Querier) sdk.QueryRouter + func (qrt *QueryRouter) Route(path string) sdk.Querier + type QueryServiceTestHelper struct + Ctx sdk.Context + func NewQueryServerTestHelper(ctx sdk.Context, interfaceRegistry types.InterfaceRegistry) *QueryServiceTestHelper + func (q *QueryServiceTestHelper) Invoke(_ gocontext.Context, method string, args, reply interface{}, ...) error + func (q *QueryServiceTestHelper) NewStream(gocontext.Context, *grpc.StreamDesc, string, ...grpc.CallOption) (grpc.ClientStream, error) + type Router struct + func NewRouter() *Router + func (rtr *Router) AddRoute(path string, h sdk.Handler) sdk.Router + func (rtr *Router) Route(_ sdk.Context, path string) sdk.Handler + type StoreLoader func(ms sdk.CommitMultiStore) error + func StoreLoaderWithUpgrade(upgrades *storetypes.StoreUpgrades) StoreLoader + func UpgradeableStoreLoader(upgradeInfoPath string) StoreLoader