Documentation ¶
Index ¶
- Constants
- Variables
- func DefaultGenesis() *types.GenesisState
- func ExportGenesis(ctx sdk.Context, keeper keeper.Keeper) *types.GenesisState
- func InitGenesis(ctx sdk.Context, keeper keeper.Keeper, data types.GenesisState) (res []abci.ValidatorUpdate)
- func NewHandler(k Keeper) sdk.Handler
- func ValidateGenesis(data types.GenesisState) error
- type AppModule
- func (AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
- func (AppModule) ConsensusVersion() uint64
- func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context, marshaler codec.JSONCodec) json.RawMessage
- func (am AppModule) InitGenesis(ctx sdk.Context, marshaler codec.JSONCodec, data json.RawMessage) []abci.ValidatorUpdate
- func (am AppModule) LegacyQuerierHandler(amino *codec.LegacyAmino) sdk.Querierdeprecated
- func (AppModule) Name() string
- func (am AppModule) NewHandler() sdk.Handler
- func (AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (am AppModule) RegisterServices(cfg module.Configurator)
- func (am AppModule) Route() sdk.Route
- type AppModuleBasic
- func (b AppModuleBasic) DefaultGenesis(marshaler codec.JSONCodec) json.RawMessage
- func (AppModuleBasic) GetQueryCmd() *cobra.Command
- func (b AppModuleBasic) GetTxCmd() *cobra.Command
- func (AppModuleBasic) Name() string
- func (b AppModuleBasic) RegisterGRPCGatewayRoutes(c sdkclient.Context, serveMux *runtime.ServeMux)
- func (b AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func (b AppModuleBasic) RegisterRESTRoutes(ctx sdkclient.Context, router *mux.Router)
- func (b AppModuleBasic) ValidateGenesis(marshaler codec.JSONCodec, config sdkclient.TxEncodingConfig, ...) error
- type AppModuleSimulation
- type EthBridgeClaim
- type EthereumAddress
- type Keeper
- type MsgBurn
- type MsgCreateEthBridgeClaim
- type MsgLock
- type MsgRescueCeth
- type MsgUpdateCethReceiverAccount
- type MsgUpdateWhiteListValidator
- type OracleClaimContent
- type QueryEthProphecyParams
- type QueryEthProphecyResponse
Constants ¶
const ( QueryEthProphecy = types.QueryEthProphecy ModuleName = types.ModuleName StoreKey = types.StoreKey QuerierRoute = types.QuerierRoute RouterKey = types.RouterKey CethSymbol = types.CethSymbol )
Variables ¶
var ( NewKeeper = keeper.NewKeeper NewQuerier = keeper.NewLegacyQuerier NewEthBridgeClaim = types.NewEthBridgeClaim NewOracleClaimContent = types.NewOracleClaimContent CreateOracleClaimFromEthClaim = types.CreateOracleClaimFromEthClaim CreateEthClaimFromOracleString = types.CreateEthClaimFromOracleString CreateOracleClaimFromOracleString = types.CreateOracleClaimFromOracleString RegisterCodec = types.RegisterLegacyAminoCodec ErrInvalidEthNonce = types.ErrInvalidEthNonce ErrInvalidEthAddress = types.ErrInvalidEthAddress ErrJSONMarshalling = types.ErrJSONMarshalling NewEthereumAddress = types.NewEthereumAddress NewMsgCreateEthBridgeClaim = types.NewMsgCreateEthBridgeClaim MapOracleClaimsToEthBridgeClaims = types.MapOracleClaimsToEthBridgeClaims NewQueryEthProphecyParams = types.NewQueryEthProphecyRequest NewQueryEthProphecyResponse = types.NewQueryEthProphecyResponse CreateTestEthMsg = types.CreateTestEthMsg CreateTestEthClaim = types.CreateTestEthClaim CreateTestQueryEthProphecyResponse = types.CreateTestQueryEthProphecyResponse CethReceiverAccountPrefix = types.CethReceiverAccountPrefix )
Functions ¶
func DefaultGenesis ¶
func DefaultGenesis() *types.GenesisState
func ExportGenesis ¶
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, keeper keeper.Keeper, data types.GenesisState) (res []abci.ValidatorUpdate)
func NewHandler ¶
NewHandler returns a handler for "ethbridge" type messages.
func ValidateGenesis ¶
func ValidateGenesis(data types.GenesisState) error
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic AppModuleSimulation OracleKeeper types.OracleKeeper BankKeeper types.BankKeeper AccountKeeper types.AccountKeeper BridgeKeeper Keeper Codec *codec.Codec }
AppModule implements an application module for the ethbridge module.
func NewAppModule ¶
func NewAppModule( oracleKeeper types.OracleKeeper, bankKeeper types.BankKeeper, accountKeeper types.AccountKeeper, bridgeKeeper Keeper, cdc *codec.Codec) AppModule
NewAppModule creates a new AppModule object
func (AppModule) BeginBlock ¶
func (AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
BeginBlock returns the begin blocker for the ethbridge module.
func (AppModule) ConsensusVersion ¶ added in v0.10.1
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
EndBlock returns the end blocker for the ethbridge module. It returns no validator updates.
func (AppModule) ExportGenesis ¶
ExportGenesis returns the exported genesis state as raw bytes for the ethbridge module.
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, marshaler codec.JSONCodec, data json.RawMessage) []abci.ValidatorUpdate
InitGenesis performs genesis initialization for the ethbridge module. It returns no validator updates.
func (AppModule) LegacyQuerierHandler
deprecated
func (am AppModule) LegacyQuerierHandler(amino *codec.LegacyAmino) sdk.Querier
Deprecated: LegacyQuerierHandler use RegisterServices
func (AppModule) NewHandler ¶
NewHandler returns an sdk.Handler for the ethbridge module.
func (AppModule) QuerierRoute ¶
QuerierRoute returns the ethbridge module's querier route name.
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
RegisterInvariants registers the ethbridge module invariants.
func (AppModule) RegisterServices ¶
func (am AppModule) RegisterServices(cfg module.Configurator)
type AppModuleBasic ¶
type AppModuleBasic struct{}
AppModuleBasic defines the basic application module used by the ethbridge module.
func (AppModuleBasic) DefaultGenesis ¶
func (b AppModuleBasic) DefaultGenesis(marshaler codec.JSONCodec) json.RawMessage
DefaultGenesis returns default genesis state as raw bytes for the ethbridge module.
func (AppModuleBasic) GetQueryCmd ¶
func (AppModuleBasic) GetQueryCmd() *cobra.Command
GetQueryCmd returns no root query command for the ethbridge module.
func (AppModuleBasic) GetTxCmd ¶
func (b AppModuleBasic) GetTxCmd() *cobra.Command
GetTxCmd returns the root tx command for the ethbridge module.
func (AppModuleBasic) Name ¶
func (AppModuleBasic) Name() string
Name returns the ethbridge module's name.
func (AppModuleBasic) RegisterGRPCGatewayRoutes ¶
func (b AppModuleBasic) RegisterGRPCGatewayRoutes(c sdkclient.Context, serveMux *runtime.ServeMux)
func (AppModuleBasic) RegisterInterfaces ¶
func (b AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry)
func (AppModuleBasic) RegisterLegacyAminoCodec ¶
func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterCodec registers the ethbridge module's types for the given codec.
func (AppModuleBasic) RegisterRESTRoutes ¶
func (b AppModuleBasic) RegisterRESTRoutes(ctx sdkclient.Context, router *mux.Router)
RegisterRESTRoutes registers the REST routes for the ethbridge module.
func (AppModuleBasic) ValidateGenesis ¶
func (b AppModuleBasic) ValidateGenesis(marshaler codec.JSONCodec, config sdkclient.TxEncodingConfig, message json.RawMessage) error
ValidateGenesis performs genesis state validation for the ethbridge module.
type AppModuleSimulation ¶
type AppModuleSimulation struct{}
AppModuleSimulation defines the module simulation functions used by the ethbridge module.
type EthBridgeClaim ¶
type EthBridgeClaim = types.EthBridgeClaim //nolint:revive
type EthereumAddress ¶
type EthereumAddress = types.EthereumAddress
type MsgCreateEthBridgeClaim ¶
type MsgCreateEthBridgeClaim = types.MsgCreateEthBridgeClaim
type MsgRescueCeth ¶
type MsgRescueCeth = types.MsgRescueCeth
type MsgUpdateCethReceiverAccount ¶
type MsgUpdateCethReceiverAccount = types.MsgUpdateCethReceiverAccount
type MsgUpdateWhiteListValidator ¶
type MsgUpdateWhiteListValidator = types.MsgUpdateWhiteListValidator
type OracleClaimContent ¶
type OracleClaimContent = types.OracleClaimContent
type QueryEthProphecyParams ¶
type QueryEthProphecyParams = types.QueryEthProphecyRequest
type QueryEthProphecyResponse ¶
type QueryEthProphecyResponse = types.QueryEthProphecyResponse