Documentation ¶
Index ¶
- Constants
- Variables
- func DefaultCoinDenomRegex() string
- func GetMaccPerms() map[string][]string
- func MakeCodecs() (codec.Codec, *codec.LegacyAmino)
- func MakeEncodingConfig() params.EncodingConfig
- func NewAnteHandler(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk feegrantkeeper.Keeper, ...) sdk.AnteHandler
- type GenesisState
- type IrisApp
- func (app *IrisApp) AppCodec() codec.Codec
- func (app *IrisApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *IrisApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *IrisApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string) (servertypes.ExportedApp, error)
- func (app *IrisApp) GetKey(storeKey string) *sdk.KVStoreKey
- func (app *IrisApp) GetMemKey(storeKey string) *sdk.MemoryStoreKey
- func (app *IrisApp) GetSubspace(moduleName string) paramstypes.Subspace
- func (app *IrisApp) GetTKey(storeKey string) *sdk.TransientStoreKey
- func (app *IrisApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *IrisApp) InterfaceRegistry() types.InterfaceRegistry
- func (app *IrisApp) LegacyAmino() *codec.LegacyAmino
- func (app *IrisApp) LoadHeight(height int64) error
- func (app *IrisApp) ModuleAccountAddrs() map[string]bool
- func (app *IrisApp) Name() string
- func (app *IrisApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
- func (app *IrisApp) RegisterTendermintService(clientCtx client.Context)
- func (app *IrisApp) RegisterTxService(clientCtx client.Context)
- func (app *IrisApp) RegisterUpgradePlan(planName string, upgrades *store.StoreUpgrades, ...)
- func (app *IrisApp) SimulationManager() *module.SimulationManager
- type ValidateServiceDecorator
- type ValidateTokenDecorator
Constants ¶
const ( DefaultWeightMsgSend int = 100 DefaultWeightMsgMultiSend int = 10 DefaultWeightMsgSetWithdrawAddress int = 50 DefaultWeightMsgWithdrawDelegationReward int = 50 DefaultWeightMsgWithdrawValidatorCommission int = 50 DefaultWeightMsgFundCommunityPool int = 50 DefaultWeightMsgDeposit int = 100 DefaultWeightMsgVote int = 67 DefaultWeightMsgUnjail int = 100 DefaultWeightMsgCreateValidator int = 100 DefaultWeightMsgEditValidator int = 5 DefaultWeightMsgDelegate int = 100 DefaultWeightMsgUndelegate int = 100 DefaultWeightMsgBeginRedelegate int = 100 DefaultWeightCommunitySpendProposal int = 5 DefaultWeightTextProposal int = 5 DefaultWeightParamChangeProposal int = 5 )
Default simulation operation weights for messages and gov proposals
Variables ¶
var ( // DefaultNodeHome default home directories for the application daemon DefaultNodeHome string // ModuleBasics defines the module BasicManager is in charge of setting up basic, // non-dependant module elements, such as codec registration // and genesis verification. ModuleBasics = module.NewBasicManager( auth.AppModuleBasic{}, genutil.AppModuleBasic{}, bank.AppModuleBasic{}, capability.AppModuleBasic{}, staking.AppModuleBasic{}, mint.AppModuleBasic{}, distr.AppModuleBasic{}, gov.NewAppModuleBasic( paramsclient.ProposalHandler, distrclient.ProposalHandler, upgradeclient.ProposalHandler, upgradeclient.CancelProposalHandler, tibcclient.CreateClientProposalHandler, tibcclient.UpgradeClientProposalHandler, tibcclient.RegisterRelayerProposalHandler, tibcrouting.SetRoutingRulesProposalHandler, ), params.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, ibc.AppModuleBasic{}, upgrade.AppModuleBasic{}, evidence.AppModuleBasic{}, transfer.AppModuleBasic{}, vesting.AppModuleBasic{}, feegrantmodule.AppModuleBasic{}, guardian.AppModuleBasic{}, token.AppModuleBasic{}, record.AppModuleBasic{}, nft.AppModuleBasic{}, htlc.AppModuleBasic{}, coinswap.AppModuleBasic{}, service.AppModuleBasic{}, oracle.AppModuleBasic{}, random.AppModuleBasic{}, farm.AppModuleBasic{}, tibc.AppModuleBasic{}, tibcnfttransfer.AppModuleBasic{}, ) )
Functions ¶
func DefaultCoinDenomRegex ¶ added in v1.2.0
func DefaultCoinDenomRegex() string
DefaultCoinDenomRegex returns the default regex string
func GetMaccPerms ¶ added in v1.0.0
GetMaccPerms returns a copy of the module account permissions
func MakeCodecs ¶ added in v1.0.0
func MakeCodecs() (codec.Codec, *codec.LegacyAmino)
MakeCodecs constructs the *std.Codec and *codec.LegacyAmino instances used by irisapp. It is useful for tests and clients who do not want to construct the full irisapp
func MakeEncodingConfig ¶ added in v1.0.0
func MakeEncodingConfig() params.EncodingConfig
MakeEncodingConfig creates an EncodingConfig for testing
func NewAnteHandler ¶ added in v1.0.0
func NewAnteHandler( ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk feegrantkeeper.Keeper, tk tokenkeeper.Keeper, ok oraclekeeper.Keeper, gk guardiankeeper.Keeper, sigGasConsumer ante.SignatureVerificationGasConsumer, signModeHandler signing.SignModeHandler, ) sdk.AnteHandler
NewAnteHandler returns an AnteHandler that checks and increments sequence numbers, checks signatures & account numbers, and deducts fees from the first signer.
Types ¶
type GenesisState ¶
type GenesisState map[string]json.RawMessage
The genesis state of the blockchain is represented here as a map of raw json messages key'd by a identifier string. The identifier is used to determine which module genesis information belongs to so it may be appropriately routed during init chain. Within this application default genesis information is retrieved from the ModuleBasicManager which populates json from each BasicModule object provided to it during init.
func NewDefaultGenesisState ¶ added in v0.7.0
func NewDefaultGenesisState() GenesisState
NewDefaultGenesisState generates the default state for the application.
type IrisApp ¶
IrisApp extends an ABCI application, but with most of its parameters exported. They are exported for convenience in creating helper functions, as object capabilities aren't needed for testing.
func NewIrisApp ¶
func NewIrisApp( logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, skipUpgradeHeights map[int64]bool, homePath string, invCheckPeriod uint, encodingConfig irisappparams.EncodingConfig, appOpts servertypes.AppOptions, baseAppOptions ...func(*baseapp.BaseApp), ) *IrisApp
NewIrisApp returns a reference to an initialized IrisApp.
func (*IrisApp) AppCodec ¶ added in v1.0.0
AppCodec returns IrisApp's app codec.
NOTE: This is solely to be used for testing purposes as it may be desirable for modules to register their own custom testing types.
func (*IrisApp) BeginBlocker ¶
func (app *IrisApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
BeginBlocker application updates every begin block
func (*IrisApp) EndBlocker ¶
func (app *IrisApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
EndBlocker application updates every end block
func (*IrisApp) ExportAppStateAndValidators ¶
func (app *IrisApp) ExportAppStateAndValidators( forZeroHeight bool, jailAllowedAddrs []string, ) (servertypes.ExportedApp, error)
ExportAppStateAndValidators exports the state of the application for a genesis file.
func (*IrisApp) GetKey ¶ added in v1.0.0
func (app *IrisApp) GetKey(storeKey string) *sdk.KVStoreKey
GetKey returns the KVStoreKey for the provided store key.
NOTE: This is solely to be used for testing purposes.
func (*IrisApp) GetMemKey ¶ added in v1.0.0
func (app *IrisApp) GetMemKey(storeKey string) *sdk.MemoryStoreKey
GetMemKey returns the MemStoreKey for the provided mem key.
NOTE: This is solely used for testing purposes.
func (*IrisApp) GetSubspace ¶ added in v1.0.0
func (app *IrisApp) GetSubspace(moduleName string) paramstypes.Subspace
GetSubspace returns a param subspace for a given module name.
NOTE: This is solely to be used for testing purposes.
func (*IrisApp) GetTKey ¶ added in v1.0.0
func (app *IrisApp) GetTKey(storeKey string) *sdk.TransientStoreKey
GetTKey returns the TransientStoreKey for the provided store key.
NOTE: This is solely to be used for testing purposes.
func (*IrisApp) InitChainer ¶ added in v1.0.0
func (app *IrisApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
InitChainer application update at chain initialization
func (*IrisApp) InterfaceRegistry ¶ added in v1.0.0
func (app *IrisApp) InterfaceRegistry() types.InterfaceRegistry
InterfaceRegistry returns IrisApp's InterfaceRegistry
func (*IrisApp) LegacyAmino ¶ added in v1.0.0
func (app *IrisApp) LegacyAmino() *codec.LegacyAmino
LegacyAmino returns SimApp's amino codec.
NOTE: This is solely to be used for testing purposes as it may be desirable for modules to register their own custom testing types.
func (*IrisApp) LoadHeight ¶ added in v0.8.0
LoadHeight loads a particular height
func (*IrisApp) ModuleAccountAddrs ¶ added in v1.0.0
ModuleAccountAddrs returns all the app's module account addresses.
func (*IrisApp) RegisterAPIRoutes ¶ added in v1.0.0
RegisterAPIRoutes registers all application module routes with the provided API server.
func (*IrisApp) RegisterTendermintService ¶ added in v1.0.0
RegisterTendermintService implements the Application.RegisterTendermintService method.
func (*IrisApp) RegisterTxService ¶ added in v1.0.0
RegisterTxService implements the Application.RegisterTxService method.
func (*IrisApp) RegisterUpgradePlan ¶ added in v1.1.0
func (app *IrisApp) RegisterUpgradePlan( planName string, upgrades *store.StoreUpgrades, upgradeHandler sdkupgrade.UpgradeHandler, )
RegisterUpgradePlan implements the upgrade execution logic of the upgrade module
func (*IrisApp) SimulationManager ¶ added in v1.0.0
func (app *IrisApp) SimulationManager() *module.SimulationManager
SimulationManager implements the SimulationApp interface
type ValidateServiceDecorator ¶ added in v1.0.0
type ValidateServiceDecorator struct{}
ValidateServiceDecorator is responsible for checking the permission to execute MsgCallService
func NewValidateServiceDecorator ¶ added in v1.0.0
func NewValidateServiceDecorator() ValidateServiceDecorator
NewValidateServiceDecorator returns an instance of ServiceAuthDecorator
func (ValidateServiceDecorator) AnteHandle ¶ added in v1.0.0
func (vsd ValidateServiceDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error)
AnteHandle checks the transaction
type ValidateTokenDecorator ¶ added in v1.0.0
type ValidateTokenDecorator struct {
// contains filtered or unexported fields
}
ValidateTokenDecorator is responsible for restricting the token participation of the swap prefix
func NewValidateTokenDecorator ¶ added in v1.0.0
func NewValidateTokenDecorator(tk tokenkeeper.Keeper) ValidateTokenDecorator
NewValidateTokenDecorator returns an instance of ValidateTokenDecorator
func (ValidateTokenDecorator) AnteHandle ¶ added in v1.0.0
func (vtd ValidateTokenDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error)
AnteHandle checks the transaction