relayer

package
v0.0.0-...-32383df Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadTendermintCLIContext

func LoadTendermintCLIContext(appCodec *amino.Codec, validatorAddress sdk.ValAddress, validatorName string,
	rpcURL string, chainID string) sdkContext.CLIContext

func LoadValidatorCredentials

func LoadValidatorCredentials(validatorFrom string, inBuf io.Reader) (sdk.ValAddress, string, error)

Types

type CosmosSub

type CosmosSub struct {
	Cdc    *codec.Codec
	Logger tmLog.Logger
	CliCtx sdkContext.CLIContext
	TxBldr authtypes.TxBuilder

	ChainId string

	ValidatorMoniker         string
	ValidatorAddress         sdk.ValAddress
	ProximaxPrivateKey       string
	ProximxMultisigPublicKey string

	TendermintClient *tmClient.HTTP
	ProximaXClient   *proximax.Client
}

func NewCosmosSub

func NewCosmosSub(cdc *codec.Codec, cliCtx sdkContext.CLIContext, txBldr authtypes.TxBuilder, logger tmLog.Logger, tendermintNode, chainID, validatorMoniker string, validatorAddress sdk.ValAddress, proximaXNode, proximaXPrivateKey, proximaXMultisibPublicKey string) (CosmosSub, error)

func (*CosmosSub) Start

func (sub *CosmosSub) Start(exitSignal chan os.Signal)

type ProximaXSub

type ProximaXSub struct {
	Cdc    *codec.Codec
	CliCtx sdkContext.CLIContext
	TxBldr authtypes.TxBuilder
	Logger tmLog.Logger

	ChainId string

	ValidatorMoniker string
	ValidatorAddress cosmosSdk.ValAddress
	SignerAccount    *sdk.Account
	MultisigAccount  *sdk.PublicAccount

	TendermintClient *tmClient.HTTP
	ProximaXClient   *sdk.Client
	ProximaXWsClient websocket.CatapultClient
}

func NewProximaxSub

func NewProximaxSub(cdc *codec.Codec, cliCtx sdkContext.CLIContext, txBldr authtypes.TxBuilder, logger tmLog.Logger, chainID, validatorMoniker string, validatorAddress cosmosSdk.ValAddress, proximaXNode, proximaXPrivateKey, proximaXMultisibPublicKey string) (ProximaXSub, error)

func (*ProximaXSub) Start

func (sub *ProximaXSub) Start(exitSignal chan os.Signal) error

Jump to

Keyboard shortcuts

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