Documentation
¶
Index ¶
- Variables
- func AddTestAddrsIncremental(app *JunctionApp, ctx sdk.Context, accNum int, accAmt sdkmath.Int) []sdk.AccAddress
- func AllCapabilities() []stringdeprecated
- func BlockedAddresses() map[string]bool
- func GenesisStateWithValSet(codec codec.Codec, genesisState map[string]json.RawMessage, ...) (map[string]json.RawMessage, error)
- func GetMaccPerms() map[string][]string
- func MakeEncodingConfig(t testing.TB) params.EncodingConfig
- func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)
- func NewTestNetworkFixture() network.TestFixture
- func SignAndDeliverWithoutCommit(t *testing.T, txCfg client.TxConfig, app *bam.BaseApp, msgs []sdk.Msg, ...) (*abci.ResponseFinalizeBlock, error)
- type GenesisState
- type HandlerOptions
- type JunctionApp
- func NewJunctionApp(logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, ...) *JunctionApp
- func NewJunctionAppWithCustomOptions(t *testing.T, isCheckTx bool, options SetupOptions) *JunctionApp
- func Setup(t *testing.T, opts ...wasmkeeper.Option) *JunctionApp
- func SetupWithEmptyStore(t testing.TB) *JunctionApp
- func SetupWithGenesisValSet(t *testing.T, valSet *cmttypes.ValidatorSet, ...) *JunctionApp
- func (app *JunctionApp) AppCodec() codec.Codec
- func (app *JunctionApp) AutoCliOpts() autocli.AppOptions
- func (app *JunctionApp) BeginBlocker(ctx sdk.Context) (sdk.BeginBlock, error)
- func (a *JunctionApp) Configurator() module.Configurator
- func (a *JunctionApp) DefaultGenesis() map[string]json.RawMessage
- func (app *JunctionApp) EndBlocker(ctx sdk.Context) (sdk.EndBlock, error)
- func (app *JunctionApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs, modulesToExport []string) (servertypes.ExportedApp, error)
- func (app *JunctionApp) GetAccountKeeper() authkeeper.AccountKeeper
- func (app *JunctionApp) GetBankKeeper() bankkeeper.Keeper
- func (app *JunctionApp) GetBaseApp() *baseapp.BaseApp
- func (app *JunctionApp) GetIBCKeeper() *ibckeeper.Keeper
- func (app *JunctionApp) GetKey(storeKey string) *storetypes.KVStoreKey
- func (app *JunctionApp) GetMemKey(storeKey string) *storetypes.MemoryStoreKey
- func (app *JunctionApp) GetScopedIBCKeeper() capabilitykeeper.ScopedKeeper
- func (app *JunctionApp) GetStakingKeeper() *stakingkeeper.Keeper
- func (app *JunctionApp) GetStoreKeys() []storetypes.StoreKey
- func (app *JunctionApp) GetSubspace(moduleName string) paramstypes.Subspace
- func (app *JunctionApp) GetTKey(storeKey string) *storetypes.TransientStoreKey
- func (app *JunctionApp) GetWasmKeeper() wasmkeeper.Keeper
- func (app *JunctionApp) InitChainer(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error)
- func (app *JunctionApp) InterfaceRegistry() types.InterfaceRegistry
- func (app *JunctionApp) LegacyAmino() *codec.LegacyAmino
- func (app *JunctionApp) LoadHeight(height int64) error
- func (app *JunctionApp) Name() string
- func (app *JunctionApp) PreBlocker(ctx sdk.Context, _ *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error)
- func (app *JunctionApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
- func (app *JunctionApp) RegisterNodeService(clientCtx client.Context, cfg config.Config)
- func (app *JunctionApp) RegisterTendermintService(clientCtx client.Context)
- func (app *JunctionApp) RegisterTxService(clientCtx client.Context)
- func (app *JunctionApp) RegisterUpgradeHandlers()
- func (app *JunctionApp) SimulationManager() *module.SimulationManager
- func (app *JunctionApp) TxConfig() client.TxConfig
- type SetupOptions
Constants ¶
This section is empty.
Variables ¶
var ( NodeDir = ".junctiond" Bech32Prefix = "air" )
We pull these out so we can set them with LDFLAGS in the Makefile
var ( // DefaultNodeHome default home directories for junctiond DefaultNodeHome = os.ExpandEnv("$HOME/") + NodeDir // Bech32PrefixAccAddr defines the Bech32 prefix of an account's address Bech32PrefixAccAddr = Bech32Prefix // Bech32PrefixAccPub defines the Bech32 prefix of an account's public key Bech32PrefixAccPub = Bech32Prefix + sdk.PrefixPublic // Bech32PrefixValAddr defines the Bech32 prefix of a validator's operator address Bech32PrefixValAddr = Bech32Prefix + sdk.PrefixValidator + sdk.PrefixOperator // Bech32PrefixValPub defines the Bech32 prefix of a validator's operator public key Bech32PrefixValPub = Bech32Prefix + sdk.PrefixValidator + sdk.PrefixOperator + sdk.PrefixPublic // Bech32PrefixConsAddr defines the Bech32 prefix of a consensus node address Bech32PrefixConsAddr = Bech32Prefix + sdk.PrefixValidator + sdk.PrefixConsensus // Bech32PrefixConsPub defines the Bech32 prefix of a consensus node public key Bech32PrefixConsPub = Bech32Prefix + sdk.PrefixValidator + sdk.PrefixConsensus + sdk.PrefixPublic )
These constants are derived from the above variables. These are the ones we will want to use in the code, based on any overrides above
Upgrades list of chain upgrades
Functions ¶
func AddTestAddrsIncremental ¶
func AddTestAddrsIncremental(app *JunctionApp, ctx sdk.Context, accNum int, accAmt sdkmath.Int) []sdk.AccAddress
AddTestAddrsIncremental constructs and returns accNum amount of accounts with an initial balance of accAmt in random order
func AllCapabilities
deprecated
func AllCapabilities() []string
Deprecated: Use BuiltInCapabilities from github.com/CosmWasm/junctiond/x/wasm/keeper
func BlockedAddresses ¶
BlockedAddresses returns all the app's blocked account addresses.
func GenesisStateWithValSet ¶
func GenesisStateWithValSet( codec codec.Codec, genesisState map[string]json.RawMessage, valSet *cmttypes.ValidatorSet, genAccs []authtypes.GenesisAccount, balances ...banktypes.Balance, ) (map[string]json.RawMessage, error)
GenesisStateWithValSet returns a new genesis state with the validator set copied from simtestutil with delegation not added to supply
func GetMaccPerms ¶
GetMaccPerms returns a copy of the module account permissions
NOTE: This is solely to be used for testing purposes.
func MakeEncodingConfig ¶
func MakeEncodingConfig(t testing.TB) params.EncodingConfig
MakeEncodingConfig creates a new EncodingConfig with all modules registered. For testing only
func NewAnteHandler ¶
func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)
NewAnteHandler constructor
func NewTestNetworkFixture ¶
func NewTestNetworkFixture() network.TestFixture
NewTestNetworkFixture returns a new JunctionApp AppConstructor for network simulation tests
func SignAndDeliverWithoutCommit ¶
func SignAndDeliverWithoutCommit(t *testing.T, txCfg client.TxConfig, app *bam.BaseApp, msgs []sdk.Msg, fees sdk.Coins, chainID string, accNums, accSeqs []uint64, blockTime time.Time, priv ...cryptotypes.PrivKey) (*abci.ResponseFinalizeBlock, error)
SignAndDeliverWithoutCommit signs and delivers a transaction. No commit
Types ¶
type GenesisState ¶
type GenesisState map[string]json.RawMessage
GenesisState 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 GenesisStateWithSingleValidator ¶
func GenesisStateWithSingleValidator(t *testing.T, app *JunctionApp) GenesisState
GenesisStateWithSingleValidator initializes GenesisState with a single validator and genesis accounts that also act as delegators.
type HandlerOptions ¶
type HandlerOptions struct {
ante.HandlerOptions
IBCKeeper *keeper.Keeper
WasmConfig *wasmTypes.WasmConfig
WasmKeeper *wasmkeeper.Keeper
TXCounterStoreService corestoretypes.KVStoreService
CircuitKeeper *circuitkeeper.Keeper
}
HandlerOptions extend the SDK's AnteHandler options by requiring the IBC channel keeper.
type JunctionApp ¶
type JunctionApp struct {
*baseapp.BaseApp
// keepers
AccountKeeper authkeeper.AccountKeeper
BankKeeper bankkeeper.BaseKeeper
CapabilityKeeper *capabilitykeeper.Keeper
StakingKeeper *stakingkeeper.Keeper
SlashingKeeper slashingkeeper.Keeper
MintKeeper mintkeeper.Keeper
DistrKeeper distrkeeper.Keeper
GovKeeper govkeeper.Keeper
CrisisKeeper *crisiskeeper.Keeper
UpgradeKeeper *upgradekeeper.Keeper
ParamsKeeper paramskeeper.Keeper
AuthzKeeper authzkeeper.Keeper
EvidenceKeeper evidencekeeper.Keeper
FeeGrantKeeper feegrantkeeper.Keeper
GroupKeeper groupkeeper.Keeper
NFTKeeper nftkeeper.Keeper
ConsensusParamsKeeper consensusparamkeeper.Keeper
CircuitKeeper circuitkeeper.Keeper
IBCKeeper *ibckeeper.Keeper // IBC Keeper must be a pointer in the app, so we can SetRouter on it correctly
IBCFeeKeeper ibcfeekeeper.Keeper
ICAControllerKeeper icacontrollerkeeper.Keeper
ICAHostKeeper icahostkeeper.Keeper
TransferKeeper ibctransferkeeper.Keeper
WasmKeeper wasmkeeper.Keeper
RollupKeeper rollupkeeper.Keeper
ScopedIBCKeeper capabilitykeeper.ScopedKeeper
ScopedICAHostKeeper capabilitykeeper.ScopedKeeper
ScopedICAControllerKeeper capabilitykeeper.ScopedKeeper
ScopedTransferKeeper capabilitykeeper.ScopedKeeper
ScopedIBCFeeKeeper capabilitykeeper.ScopedKeeper
ScopedWasmKeeper capabilitykeeper.ScopedKeeper
ScopedRollupKeeper capabilitykeeper.ScopedKeeper
// the module manager
ModuleManager *module.Manager
BasicModuleManager module.BasicManager
// contains filtered or unexported fields
}
JunctionApp extended ABCI application
func NewJunctionApp ¶
func NewJunctionApp( logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, appOpts servertypes.AppOptions, wasmOpts []wasmkeeper.Option, baseAppOptions ...func(*baseapp.BaseApp), ) *JunctionApp
NewJunctionApp returns a reference to an initialized JunctionApp.
func NewJunctionAppWithCustomOptions ¶
func NewJunctionAppWithCustomOptions(t *testing.T, isCheckTx bool, options SetupOptions) *JunctionApp
NewJunctionAppWithCustomOptions initializes a new JunctionApp with custom options.
func Setup ¶
func Setup(t *testing.T, opts ...wasmkeeper.Option) *JunctionApp
Setup initializes a new JunctionApp. A Nop logger is set in JunctionApp.
func SetupWithEmptyStore ¶
func SetupWithEmptyStore(t testing.TB) *JunctionApp
SetupWithEmptyStore set up a junctiond app instance with empty DB
func SetupWithGenesisValSet ¶
func SetupWithGenesisValSet( t *testing.T, valSet *cmttypes.ValidatorSet, genAccs []authtypes.GenesisAccount, chainID string, opts []wasmkeeper.Option, balances ...banktypes.Balance, ) *JunctionApp
SetupWithGenesisValSet initializes a new JunctionApp with a validator set and genesis accounts that also act as delegators. For simplicity, each validator is bonded with a delegation of one consensus engine unit in the default token of the JunctionApp from first genesis account. A Nop logger is set in JunctionApp.
func (*JunctionApp) AppCodec ¶
func (app *JunctionApp) AppCodec() codec.Codec
AppCodec returns 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 (*JunctionApp) AutoCliOpts ¶
func (app *JunctionApp) AutoCliOpts() autocli.AppOptions
AutoCliOpts returns the autocli options for the app.
func (*JunctionApp) BeginBlocker ¶
func (app *JunctionApp) BeginBlocker(ctx sdk.Context) (sdk.BeginBlock, error)
BeginBlocker application updates every begin block
func (*JunctionApp) Configurator ¶
func (a *JunctionApp) Configurator() module.Configurator
func (*JunctionApp) DefaultGenesis ¶
func (a *JunctionApp) DefaultGenesis() map[string]json.RawMessage
DefaultGenesis returns a default genesis from the registered AppModuleBasic's.
func (*JunctionApp) EndBlocker ¶
EndBlocker application updates every end block
func (*JunctionApp) ExportAppStateAndValidators ¶
func (app *JunctionApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs, modulesToExport []string) (servertypes.ExportedApp, error)
ExportAppStateAndValidators exports the state of the application for a genesis file.
func (*JunctionApp) GetAccountKeeper ¶
func (app *JunctionApp) GetAccountKeeper() authkeeper.AccountKeeper
func (*JunctionApp) GetBankKeeper ¶
func (app *JunctionApp) GetBankKeeper() bankkeeper.Keeper
func (*JunctionApp) GetBaseApp ¶
func (app *JunctionApp) GetBaseApp() *baseapp.BaseApp
func (*JunctionApp) GetIBCKeeper ¶
func (app *JunctionApp) GetIBCKeeper() *ibckeeper.Keeper
func (*JunctionApp) GetKey ¶
func (app *JunctionApp) GetKey(storeKey string) *storetypes.KVStoreKey
GetKey returns the KVStoreKey for the provided store key.
NOTE: This is solely to be used for testing purposes.
func (*JunctionApp) GetMemKey ¶
func (app *JunctionApp) GetMemKey(storeKey string) *storetypes.MemoryStoreKey
GetMemKey returns the MemStoreKey for the provided mem key.
NOTE: This is solely used for testing purposes.
func (*JunctionApp) GetScopedIBCKeeper ¶
func (app *JunctionApp) GetScopedIBCKeeper() capabilitykeeper.ScopedKeeper
func (*JunctionApp) GetStakingKeeper ¶
func (app *JunctionApp) GetStakingKeeper() *stakingkeeper.Keeper
func (*JunctionApp) GetStoreKeys ¶
func (app *JunctionApp) GetStoreKeys() []storetypes.StoreKey
GetStoreKeys returns all the stored store keys.
func (*JunctionApp) GetSubspace ¶
func (app *JunctionApp) 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 (*JunctionApp) GetTKey ¶
func (app *JunctionApp) GetTKey(storeKey string) *storetypes.TransientStoreKey
GetTKey returns the TransientStoreKey for the provided store key.
NOTE: This is solely to be used for testing purposes.
func (*JunctionApp) GetWasmKeeper ¶
func (app *JunctionApp) GetWasmKeeper() wasmkeeper.Keeper
func (*JunctionApp) InitChainer ¶
func (app *JunctionApp) InitChainer(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error)
InitChainer application update at chain initialization
func (*JunctionApp) InterfaceRegistry ¶
func (app *JunctionApp) InterfaceRegistry() types.InterfaceRegistry
InterfaceRegistry returns JunctionApp's InterfaceRegistry
func (*JunctionApp) LegacyAmino ¶
func (app *JunctionApp) LegacyAmino() *codec.LegacyAmino
LegacyAmino returns legacy 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 (*JunctionApp) LoadHeight ¶
func (app *JunctionApp) LoadHeight(height int64) error
LoadHeight loads a particular height
func (*JunctionApp) PreBlocker ¶
func (app *JunctionApp) PreBlocker(ctx sdk.Context, _ *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error)
PreBlocker application updates every pre block
func (*JunctionApp) RegisterAPIRoutes ¶
func (app *JunctionApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
RegisterAPIRoutes registers all application module routes with the provided API server.
func (*JunctionApp) RegisterNodeService ¶
func (app *JunctionApp) RegisterNodeService(clientCtx client.Context, cfg config.Config)
func (*JunctionApp) RegisterTendermintService ¶
func (app *JunctionApp) RegisterTendermintService(clientCtx client.Context)
RegisterTendermintService implements the Application.RegisterTendermintService method.
func (*JunctionApp) RegisterTxService ¶
func (app *JunctionApp) RegisterTxService(clientCtx client.Context)
RegisterTxService implements the Application.RegisterTxService method.
func (*JunctionApp) RegisterUpgradeHandlers ¶
func (app *JunctionApp) RegisterUpgradeHandlers()
RegisterUpgradeHandlers registers the chain upgrade handlers
func (*JunctionApp) SimulationManager ¶
func (app *JunctionApp) SimulationManager() *module.SimulationManager
SimulationManager implements the SimulationApp interface
func (*JunctionApp) TxConfig ¶
func (app *JunctionApp) TxConfig() client.TxConfig
TxConfig returns JunctionApp's TxConfig
type SetupOptions ¶
type SetupOptions struct {
Logger log.Logger
DB *dbm.MemDB
AppOpts servertypes.AppOptions
WasmOpts []wasmkeeper.Option
}
SetupOptions defines arguments that are passed into `JunctionApp` constructor.