Documentation ¶
Index ¶
- Constants
- Variables
- func BeginBlockForks(ctx sdk.Context, app *Kynno)
- func ConsumeMultisignatureVerificationGas(meter sdk.GasMeter, sig *signing.MultiSignatureData, pubkey multisig.PubKey, ...) error
- func GetMaccPerms() map[string][]string
- func NewDefaultGenesisState() simapp.GenesisState
- func ObservabilityViews() (views []*view.View)
- func RegisterSwaggerAPI(_ client.Context, rtr *mux.Router)
- func SetupTestingApp() (ibctesting.TestingApp, map[string]json.RawMessage)
- func SigVerificationGasConsumer(meter sdk.GasMeter, sig signing.SignatureV2, params authtypes.Params) error
- type Kynno
- func (app *Kynno) AppCodec() codec.Codec
- func (app *Kynno) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *Kynno) BlockedAddrs() map[string]bool
- func (app *Kynno) DeliverTx(req abci.RequestDeliverTx) (res abci.ResponseDeliverTx)
- func (app *Kynno) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *Kynno) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string) (servertypes.ExportedApp, error)
- func (app *Kynno) GetBaseApp() *baseapp.BaseApp
- func (app *Kynno) GetIBCKeeper() *ibckeeper.Keeper
- func (app *Kynno) GetKey(storeKey string) *sdk.KVStoreKey
- func (app *Kynno) GetMemKey(storeKey string) *sdk.MemoryStoreKey
- func (app *Kynno) GetScopedIBCKeeper() capabilitykeeper.ScopedKeeper
- func (app *Kynno) GetStakingKeeper() stakingkeeper.Keeper
- func (app *Kynno) GetSubspace(moduleName string) paramstypes.Subspace
- func (app *Kynno) GetTKey(storeKey string) *sdk.TransientStoreKey
- func (app *Kynno) GetTxConfig() client.TxConfig
- func (app *Kynno) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *Kynno) InterfaceRegistry() types.InterfaceRegistry
- func (app *Kynno) LegacyAmino() *codec.LegacyAmino
- func (app *Kynno) LoadHeight(height int64) error
- func (app *Kynno) ModuleAccountAddrs() map[string]bool
- func (app *Kynno) Name() string
- func (app *Kynno) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
- func (app *Kynno) RegisterTendermintService(clientCtx client.Context)
- func (app *Kynno) RegisterTxService(clientCtx client.Context)
- func (app *Kynno) SimulationManager() *module.SimulationManager
Constants ¶
const ( // Name defines the application binary name Name = "kynnod" // MainnetChainID defines the Kynno EIP155 chain ID for mainnet MainnetChainID = "Kynno_9001" // TestnetChainID defines the Kynno EIP155 chain ID for testnet TestnetChainID = "Kynno_9000" )
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{}, distr.AppModuleBasic{}, gov.NewAppModuleBasic( paramsclient.ProposalHandler, distrclient.ProposalHandler, upgradeclient.ProposalHandler, upgradeclient.CancelProposalHandler, ibcclientclient.UpdateClientProposalHandler, ibcclientclient.UpgradeProposalHandler, erc20client.RegisterCoinProposalHandler, erc20client.RegisterERC20ProposalHandler, erc20client.ToggleTokenRelayProposalHandler, erc20client.UpdateTokenPairERC20ProposalHandler, incentivesclient.RegisterIncentiveProposalHandler, incentivesclient.CancelIncentiveProposalHandler, ), params.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, ibc.AppModuleBasic{}, authzmodule.AppModuleBasic{}, feegrantmodule.AppModuleBasic{}, upgrade.AppModuleBasic{}, evidence.AppModuleBasic{}, transfer.AppModuleBasic{}, vesting.AppModuleBasic{}, evm.AppModuleBasic{}, feemarket.AppModuleBasic{}, inflation.AppModuleBasic{}, erc20.AppModuleBasic{}, incentives.AppModuleBasic{}, epochs.AppModuleBasic{}, claims.AppModuleBasic{}, recovery.AppModuleBasic{}, fees.AppModuleBasic{}, ) )
var DefaultConsensusParams = &abci.ConsensusParams{ Block: &abci.BlockParams{ MaxBytes: 200000, MaxGas: -1, }, Evidence: &tmproto.EvidenceParams{ MaxAgeNumBlocks: 302400, MaxAgeDuration: 504 * time.Hour, MaxBytes: 10000, }, Validator: &tmproto.ValidatorParams{ PubKeyTypes: []string{ tmtypes.ABCIPubKeyTypeEd25519, }, }, }
DefaultConsensusParams defines the default Tendermint consensus params used in Kynno testing.
var DefaultTestingAppInit func() (ibctesting.TestingApp, map[string]json.RawMessage) = SetupTestingApp
DefaultTestingAppInit defines the IBC application used for testing
Functions ¶
func BeginBlockForks ¶
BeginBlockForks executes any necessary fork logic based upon the current block height.
func ConsumeMultisignatureVerificationGas ¶
func ConsumeMultisignatureVerificationGas( meter sdk.GasMeter, sig *signing.MultiSignatureData, pubkey multisig.PubKey, params authtypes.Params, accSeq uint64, ) error
ConsumeMultisignatureVerificationGas consumes gas from a GasMeter for verifying a multisig pubkey signature
func GetMaccPerms ¶
GetMaccPerms returns a copy of the module account permissions
func NewDefaultGenesisState ¶
func NewDefaultGenesisState() simapp.GenesisState
NewDefaultGenesisState generates the default state for the application.
func ObservabilityViews ¶
func RegisterSwaggerAPI ¶
RegisterSwaggerAPI registers swagger route with API Server
func SetupTestingApp ¶
func SetupTestingApp() (ibctesting.TestingApp, map[string]json.RawMessage)
SetupTestingApp initializes the IBC-go testing application
func SigVerificationGasConsumer ¶
func SigVerificationGasConsumer( meter sdk.GasMeter, sig signing.SignatureV2, params authtypes.Params, ) error
SigVerificationGasConsumer is the Kynno implementation of SignatureVerificationGasConsumer. It consumes gas for signature verification based upon the public key type. The cost is fetched from the given params and is matched by the concrete type. The types of keys supported are:
- ethsecp256k1 (Ethereum keys)
- ed25519 (Validators)
- multisig (Cosmos SDK multisigs)
Types ¶
type Kynno ¶
type Kynno struct { *baseapp.BaseApp // keepers AccountKeeper authkeeper.AccountKeeper BankKeeper bankkeeper.Keeper CapabilityKeeper *capabilitykeeper.Keeper StakingKeeper stakingkeeper.Keeper SlashingKeeper slashingkeeper.Keeper DistrKeeper distrkeeper.Keeper GovKeeper govkeeper.Keeper CrisisKeeper crisiskeeper.Keeper UpgradeKeeper upgradekeeper.Keeper ParamsKeeper paramskeeper.Keeper FeeGrantKeeper feegrantkeeper.Keeper AuthzKeeper authzkeeper.Keeper IBCKeeper *ibckeeper.Keeper // IBC Keeper must be a pointer in the app, so we can SetRouter on it correctly EvidenceKeeper evidencekeeper.Keeper TransferKeeper ibctransferkeeper.Keeper // make scoped keepers public for test purposes ScopedIBCKeeper capabilitykeeper.ScopedKeeper ScopedTransferKeeper capabilitykeeper.ScopedKeeper // Ethermint keepers EvmKeeper *evmkeeper.Keeper FeeMarketKeeper feemarketkeeper.Keeper // Kynno keepers InflationKeeper inflationkeeper.Keeper ClaimsKeeper *claimskeeper.Keeper Erc20Keeper erc20keeper.Keeper IncentivesKeeper incentiveskeeper.Keeper EpochsKeeper epochskeeper.Keeper VestingKeeper vestingkeeper.Keeper RecoveryKeeper *recoverykeeper.Keeper FeesKeeper feeskeeper.Keeper // contains filtered or unexported fields }
Kynno implements an extended ABCI application. It is an application that may process transactions through Ethereum's EVM running atop of Tendermint consensus.
func NewKynno ¶
func NewKynno( logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, skipUpgradeHeights map[int64]bool, homePath string, invCheckPeriod uint, encodingConfig simappparams.EncodingConfig, appOpts servertypes.AppOptions, baseAppOptions ...func(*baseapp.BaseApp), ) *Kynno
NewKynno returns a reference to a new initialized Ethermint application.
func Setup ¶
func Setup( isCheckTx bool, feemarketGenesis *feemarkettypes.GenesisState, ) *Kynno
Setup initializes a new Kynno. A Nop logger is set in Kynno.
func (*Kynno) AppCodec ¶
AppCodec returns Kynno'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 (*Kynno) BeginBlocker ¶
func (app *Kynno) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
BeginBlocker updates every begin block
func (*Kynno) BlockedAddrs ¶
BlockedAddrs returns all the app's module account addresses that are not allowed to receive external tokens.
func (*Kynno) DeliverTx ¶
func (app *Kynno) DeliverTx(req abci.RequestDeliverTx) (res abci.ResponseDeliverTx)
We are intentionally decomposing the DeliverTx method so as to calculate the transactions per second.
func (*Kynno) EndBlocker ¶
func (app *Kynno) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
EndBlocker updates every end block
func (*Kynno) ExportAppStateAndValidators ¶
func (app *Kynno) ExportAppStateAndValidators( forZeroHeight bool, jailAllowedAddrs []string, ) (servertypes.ExportedApp, error)
ExportAppStateAndValidators exports the state of the application for a genesis file.
func (*Kynno) GetBaseApp ¶
GetBaseApp implements the TestingApp interface.
func (*Kynno) GetIBCKeeper ¶
GetIBCKeeper implements the TestingApp interface.
func (*Kynno) GetKey ¶
func (app *Kynno) 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 (*Kynno) GetMemKey ¶
func (app *Kynno) GetMemKey(storeKey string) *sdk.MemoryStoreKey
GetMemKey returns the MemStoreKey for the provided mem key.
NOTE: This is solely used for testing purposes.
func (*Kynno) GetScopedIBCKeeper ¶
func (app *Kynno) GetScopedIBCKeeper() capabilitykeeper.ScopedKeeper
GetScopedIBCKeeper implements the TestingApp interface.
func (*Kynno) GetStakingKeeper ¶
func (app *Kynno) GetStakingKeeper() stakingkeeper.Keeper
GetStakingKeeper implements the TestingApp interface.
func (*Kynno) GetSubspace ¶
func (app *Kynno) 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 (*Kynno) GetTKey ¶
func (app *Kynno) 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 (*Kynno) GetTxConfig ¶
GetTxConfig implements the TestingApp interface.
func (*Kynno) InitChainer ¶
func (app *Kynno) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
InitChainer updates at chain initialization
func (*Kynno) InterfaceRegistry ¶
func (app *Kynno) InterfaceRegistry() types.InterfaceRegistry
InterfaceRegistry returns Kynno's InterfaceRegistry
func (*Kynno) LegacyAmino ¶
func (app *Kynno) LegacyAmino() *codec.LegacyAmino
LegacyAmino returns Kynno'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 (*Kynno) LoadHeight ¶
LoadHeight loads state at a particular height
func (*Kynno) ModuleAccountAddrs ¶
ModuleAccountAddrs returns all the app's module account addresses.
func (*Kynno) RegisterAPIRoutes ¶
RegisterAPIRoutes registers all application module routes with the provided API server.
func (*Kynno) RegisterTendermintService ¶
func (*Kynno) RegisterTxService ¶
func (*Kynno) SimulationManager ¶
func (app *Kynno) SimulationManager() *module.SimulationManager
SimulationManager implements the SimulationApp interface
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package ante defines the SDK auth module's AnteHandler as well as an internal AnteHandler for an Ethereum transaction (i.e MsgEthereumTx).
|
Package ante defines the SDK auth module's AnteHandler as well as an internal AnteHandler for an Ethereum transaction (i.e MsgEthereumTx). |
upgrades
|
|