Versions in this module Expand all Collapse all v0 v0.1.2 Feb 6, 2023 Changes in this version + var Bech32PrefixAccAddr string + var Codec = MakeCodec() + var DefaultCLIHome = os.ExpandEnv("$HOME/.axccli") + var DefaultCacheSize = 20000 + var DefaultGovMinDesposit = sdk.Coins + var DefaultKeyPass = "12345678" + var DefaultMaxBondedTokenAmount int64 = types.NativeTokenTotalSupply + var DefaultMaxSurvive = 10 + var DefaultMaxValidators uint16 = 21 + var DefaultNodeHome = os.ExpandEnv("$HOME/.axcchaind") + var DefaultSelfDelegationToken = sdk.NewCoin(types.NativeTokenSymbol, 10000e8) + var DefaultUnbondingTime = 60 * 60 * 24 * 7 * time.Second + var SentryAppConfig = SentryConfig + var ServerContext = config.NewDefaultContext() + func AximchainAppGenState(cdc *wire.Codec, appGenTxs []json.RawMessage) (appState json.RawMessage, err error) + func AximchainAppInit() server.AppInit + func MakeCodec() *wire.Codec + func NewSentryApplication(logger log.Logger, _ db.DB, _ io.Writer) abci.Application + func PersistentPreRunEFn(context *config.AximchainContext) func(*cobra.Command, []string) error + func SetUpgradeConfig(upgradeConfig *config.UpgradeConfig) + type Aximchain struct + AccountKeeper auth.AccountKeeper + Codec *wire.Codec + CoinKeeper bank.Keeper + DexKeeper *dex.DexKeeper + ParamHub *param.Keeper + TokenMapper tokens.Mapper + ValAddrCache *ValAddrCache + func NewAximchain(logger log.Logger, db dbm.DB, traceStore io.Writer, ...) *Aximchain + func (app *Aximchain) AccountHandler(chainApp types.ChainApp, req abci.RequestQuery, path []string) *abci.ResponseQuery + func (app *Aximchain) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) (res abci.ResponseBeginBlock) + func (app *Aximchain) CheckTx(req abci.RequestCheckTx) (res abci.ResponseCheckTx) + func (app *Aximchain) Commit() (res abci.ResponseCommit) + func (app *Aximchain) DeliverTx(req abci.RequestDeliverTx) (res abci.ResponseDeliverTx) + func (app *Aximchain) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock + func (app *Aximchain) ExportAppStateAndValidators() (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error) + func (app *Aximchain) GetCodec() *wire.Codec + func (app *Aximchain) GetContextForCheckState() sdk.Context + func (app *Aximchain) GetRouter() baseapp.Router + func (app *Aximchain) PreDeliverTx(req abci.RequestDeliverTx) (res abci.ResponseDeliverTx) + func (app *Aximchain) Query(req abci.RequestQuery) (res abci.ResponseQuery) + func (app *Aximchain) RegisterQueryHandler(prefix string, handler types.AbciQueryHandler) + func (app *Aximchain) WriteRecoveryChunk(hash abci.SHA256Sum, chunk *abci.AppStateChunk, isComplete bool) (err error) + type GenesisAccount struct + Address sdk.AccAddress + ConsensusAddr crypto.Address + Name string + func NewGenesisAccount(aa *types.AppAccount, consensusAddr crypto.Address) GenesisAccount + func (ga *GenesisAccount) ToAppAccount() (acc *types.AppAccount) + type GenesisState struct + Accounts []GenesisAccount + DexGenesis dex.Genesis + GenTxs []json.RawMessage + GovData gov.GenesisState + ParamGenesis paramtypes.GenesisState + StakeData stake.GenesisState + Tokens []tokens.GenesisToken + type SentryApplication struct + Codec *wire.Codec + func (app *SentryApplication) BeginBlock(req abci.RequestBeginBlock) abci.ResponseBeginBlock + func (app *SentryApplication) CheckTx(req abci.RequestCheckTx) abci.ResponseCheckTx + func (app *SentryApplication) Info(req abci.RequestInfo) (resInfo abci.ResponseInfo) + func (app *SentryApplication) InitChain(req abci.RequestInitChain) (res abci.ResponseInitChain) + func (app *SentryApplication) ReCheckTx(req abci.RequestCheckTx) (res abci.ResponseCheckTx) + type SentryConfig struct + CacheSize int + MaxSurvive int + type ValAddrCache struct + func NewValAddrCache(stakeKeeper stake.Keeper) *ValAddrCache + func (vac *ValAddrCache) ClearCache() + func (vac *ValAddrCache) GetAccAddr(ctx sdk.Context, consAddr sdk.ConsAddress) sdk.AccAddress + func (vac *ValAddrCache) GetDistributionAddr(ctx sdk.Context, consAddr sdk.ConsAddress) sdk.AccAddress + func (vac *ValAddrCache) SetAccAddr(consAddr sdk.ConsAddress, accAddr sdk.AccAddress) + func (vac *ValAddrCache) SetDistributionAddr(consAddr sdk.ConsAddress, accAddr sdk.AccAddress)