chain

package
v0.0.0-...-b770cea Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: BSD-3-Clause Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EthTxStatusCheckedIndex = []byte("EthTxStatusCheckedIndex")
)

key ...

Functions

This section is empty.

Types

type Relayer4Chain

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

Relayer4Chain ...

func StartChainRelayer

func StartChainRelayer(ctx context.Context, syncTxConfig *ebTypes.SyncTxConfig, registryAddr, provider string, db dbm.DB) *Relayer4Chain

StartChainRelayer : initializes a relayer which witnesses events on the chain network and relays them to Ethereum

func (*Relayer4Chain) GetAccount

func (chainRelayer *Relayer4Chain) GetAccount(passphrase string) (privateKey, addr string, err error)

GetAccount ...

func (*Relayer4Chain) GetAccountAddr

func (chainRelayer *Relayer4Chain) GetAccountAddr() (addr string, err error)

GetAccountAddr ...

func (*Relayer4Chain) ImportPrivateKey

func (chainRelayer *Relayer4Chain) ImportPrivateKey(passphrase, privateKeyStr string) (addr string, err error)

ImportPrivateKey ...

func (*Relayer4Chain) QueryTxhashRelay2Eth

func (chainRelayer *Relayer4Chain) QueryTxhashRelay2Eth() ebTypes.Txhashes

QueryTxhashRelay2Eth ...

func (*Relayer4Chain) RestorePrivateKeys

func (chainRelayer *Relayer4Chain) RestorePrivateKeys(passphrase string) error

RestorePrivateKeys ...

func (*Relayer4Chain) StoreAccountWithNewPassphase

func (chainRelayer *Relayer4Chain) StoreAccountWithNewPassphase(newPassphrase, oldPassphrase string) error

StoreAccountWithNewPassphase ...

Directories

Path Synopsis
transceiver
sync
Package sync ...
Package sync ...

Jump to

Keyboard shortcuts

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