Documentation ¶
Index ¶
- func IsWebsocketURL(rawurl string) bool
- func LoadTendermintCLIContext(appCodec *amino.Codec, validatorAddress sdk.ValAddress, validatorName string, ...) sdkContext.CLIContext
- func LoadValidatorCredentials(validatorFrom string, inBuf io.Reader) (sdk.ValAddress, string, error)
- func SetupWebsocketEthClient(ethURL string) (*ethclient.Client, error)
- type CosmosSub
- type EthereumSub
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsWebsocketURL ¶
IsWebsocketURL returns true if the given URL is a websocket URL
func LoadTendermintCLIContext ¶
func LoadTendermintCLIContext(appCodec *amino.Codec, validatorAddress sdk.ValAddress, validatorName string, rpcURL string, chainID string) sdkContext.CLIContext
LoadTendermintCLIContext : loads CLI context for tendermint txs
func LoadValidatorCredentials ¶
func LoadValidatorCredentials(validatorFrom string, inBuf io.Reader) (sdk.ValAddress, string, error)
LoadValidatorCredentials : loads validator's credentials (address, moniker, and passphrase)
Types ¶
type CosmosSub ¶
type CosmosSub struct { TmProvider string EthProvider string RegistryContractAddress common.Address PrivateKey *ecdsa.PrivateKey Logger tmLog.Logger }
CosmosSub defines a Cosmos listener that relays events to Ethereum and Cosmos
func NewCosmosSub ¶
func NewCosmosSub(tmProvider, ethProvider string, registryContractAddress common.Address, privateKey *ecdsa.PrivateKey, logger tmLog.Logger) CosmosSub
NewCosmosSub initializes a new CosmosSub
type EthereumSub ¶
type EthereumSub struct { Cdc *codec.Codec EthProvider string RegistryContractAddress common.Address ValidatorName string ValidatorAddress sdk.ValAddress CliCtx sdkContext.CLIContext TxBldr authtypes.TxBuilder PrivateKey *ecdsa.PrivateKey Logger tmLog.Logger }
EthereumSub is an Ethereum listener that can relay txs to Cosmos and Ethereum
Click to show internal directories.
Click to hide internal directories.