envoy

package
v2.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: GPL-3.0 Imports: 26 Imported by: 0

README

Envoy

The Envoy module acts as the owner of interchain accounts (ICAs) on other chains. It provides governance-gated message types for creating, sending funds, or messages to these accounts. The ICAs are to be set as owners/admins of Mars Outpost and Rover contracts on those chains, allowing Mars Hub governance to remotely govern those contracts.

Acknowledgements

  • This module is adapted from the intertx module found in the interchain-accounts-demo repo.
  • We thank Informal Systems for reviewing and contributing open source code to this module.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIBCModule

func NewIBCModule(k keeper.Keeper) ibcporttypes.IBCModule

NewIBCModule creates a new IBCModule given the keeper.

Types

type AppModule

type AppModule struct {
	AppModuleBasic
	// contains filtered or unexported fields
}

AppModule implements an application module for the envoy module

func NewAppModule

func NewAppModule(keeper keeper.Keeper) AppModule

NewAppModule creates a new AppModule object

func (AppModule) BeginBlock

func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)

func (AppModule) ConsensusVersion

func (AppModule) ConsensusVersion() uint64

func (AppModule) EndBlock

func (AppModule) ExportGenesis

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

func (AppModule) InitGenesis

func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, data json.RawMessage) []abci.ValidatorUpdate

func (AppModule) InitModule

func (am AppModule) InitModule(ctx sdk.Context)

InitModule is similar to InitGenesis, but used during chain upgrades.

func (AppModule) LegacyQuerierHandler

func (AppModule) LegacyQuerierHandler(*codec.LegacyAmino) sdk.Querier

deprecated

func (AppModule) QuerierRoute

func (AppModule) QuerierRoute() string

deprecated

func (AppModule) RegisterInvariants

func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry)

func (AppModule) RegisterServices

func (am AppModule) RegisterServices(cfg module.Configurator)

func (AppModule) Route

func (AppModule) Route() sdk.Route

deprecated

type AppModuleBasic

type AppModuleBasic struct{}

AppModuleBasic defines the basic application module used by the module

func (AppModuleBasic) DefaultGenesis

func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage

func (AppModuleBasic) GetQueryCmd

func (AppModuleBasic) GetQueryCmd() *cobra.Command

func (AppModuleBasic) GetTxCmd

func (AppModuleBasic) GetTxCmd() *cobra.Command

func (AppModuleBasic) Name

func (AppModuleBasic) Name() string

func (AppModuleBasic) RegisterGRPCGatewayRoutes

func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux)

func (AppModuleBasic) RegisterInterfaces

func (AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry)

func (AppModuleBasic) RegisterLegacyAminoCodec

func (AppModuleBasic) RegisterLegacyAminoCodec(_ *codec.LegacyAmino)

deprecated

func (AppModuleBasic) RegisterRESTRoutes

func (AppModuleBasic) RegisterRESTRoutes(_ client.Context, _ *mux.Router)

deprecated

func (AppModuleBasic) ValidateGenesis

type IBCModule

type IBCModule struct {
	// contains filtered or unexported fields
}

IBCModule implements the ICS26 interface for the envoy module.

func (IBCModule) OnAcknowledgementPacket

func (im IBCModule) OnAcknowledgementPacket(
	ctx sdk.Context,
	packet ibcchanneltypes.Packet,
	acknowledgement []byte,
	_ sdk.AccAddress,
) error

OnAcknowledgementPacket parses the acknowledgement and prints log messages.

Although the envoy module can send both ICS-20 and ICS-27 packets, only ICS-27 acknowledgements are routed here. ICS-20 packets are handled by the ibctransfer module alone.

This function is mostly copied from interchain-account-demo: https://github.com/cosmos/interchain-accounts-demo/blob/v0.4.3/x/inter-tx/ibc_module.go#L108

func (IBCModule) OnChanCloseConfirm

func (im IBCModule) OnChanCloseConfirm(
	_ sdk.Context,
	_,
	_ string,
) error

func (IBCModule) OnChanCloseInit

func (im IBCModule) OnChanCloseInit(
	_ sdk.Context,
	_,
	_ string,
) error

func (IBCModule) OnChanOpenAck

func (im IBCModule) OnChanOpenAck(
	_ sdk.Context,
	_,
	_ string,
	_ string,
	_ string,
) error

func (IBCModule) OnChanOpenConfirm

func (im IBCModule) OnChanOpenConfirm(
	_ sdk.Context,
	_,
	_ string,
) error

func (IBCModule) OnChanOpenInit

func (IBCModule) OnChanOpenTry

func (IBCModule) OnRecvPacket

func (IBCModule) OnTimeoutPacket

func (im IBCModule) OnTimeoutPacket(
	ctx sdk.Context,
	packet ibcchanneltypes.Packet,
	_ sdk.AccAddress,
) error

OnTimeoutPacket prints a log message indicating the packet has timed out.

Directories

Path Synopsis
client
cli
Package types is a reverse proxy.
Package types is a reverse proxy.

Jump to

Keyboard shortcuts

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