ethbridge

package
v0.15.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueryEthProphecy = types.QueryEthProphecy
	ModuleName       = types.ModuleName
	StoreKey         = types.StoreKey
	QuerierRoute     = types.QuerierRoute
	RouterKey        = types.RouterKey
	CethSymbol       = types.CethSymbol
)

Variables

View Source
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 ExportGenesis(ctx sdk.Context, keeper keeper.Keeper) *types.GenesisState

func InitGenesis

func InitGenesis(ctx sdk.Context, keeper keeper.Keeper, data types.GenesisState) (res []abci.ValidatorUpdate)

func NewHandler

func NewHandler(k Keeper) sdk.Handler

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) ConsensusVersion() uint64

func (AppModule) EndBlock

EndBlock returns the end blocker for the ethbridge module. It returns no validator updates.

func (AppModule) ExportGenesis

func (am AppModule) ExportGenesis(ctx sdk.Context, marshaler codec.JSONCodec) json.RawMessage

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) Name

func (AppModule) Name() string

Name returns the ethbridge module's name.

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

NewHandler returns an sdk.Handler for the ethbridge module.

func (AppModule) QuerierRoute

func (AppModule) QuerierRoute() string

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)

func (AppModule) Route

func (am AppModule) Route() sdk.Route

Route returns the message routing key for the ethbridge module.

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:golint

type EthereumAddress

type EthereumAddress = types.EthereumAddress

type Keeper

type Keeper = keeper.Keeper

type MsgBurn

type MsgBurn = types.MsgBurn

type MsgCreateEthBridgeClaim

type MsgCreateEthBridgeClaim = types.MsgCreateEthBridgeClaim

type MsgLock

type MsgLock = types.MsgLock

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

Directories

Path Synopsis
cli
legacy
v39
v42

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL