bridge

package
v0.0.0-...-de16a70 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(fxBridge *FxTronBridge, startBlockNumber uint64, fees string) error

Types

type FxTronBridge

type FxTronBridge struct {
	TronClient       *client.TronClient
	CrossChainClient *fxchain.CrossChainClient
	BridgeAddr       string
	OrcPrivKey       *secp256k1.PrivKey
	TronPrivKey      *ecdsa.PrivateKey
}

func NewFxTronBridge

func NewFxTronBridge(bridgeAddr, tronGrpc, fxGrpc string, orcPrivKey *secp256k1.PrivKey, tronPrivateKey *ecdsa.PrivateKey) (*FxTronBridge, error)

func (*FxTronBridge) BatchSendMsg

func (f *FxTronBridge) BatchSendMsg(msgs []sdk.Msg, batchNumber int) error

func (*FxTronBridge) GetBridgerAddr

func (f *FxTronBridge) GetBridgerAddr() sdk.AccAddress

func (*FxTronBridge) GetTronAddr

func (f *FxTronBridge) GetTronAddr() address.Address

func (*FxTronBridge) WaitNewBlock

func (f *FxTronBridge) WaitNewBlock() error

type IMsg

type IMsg interface {
	sdk.Msg
	GetNonce() uint64
}

type Oracle

type Oracle struct {
	*FxTronBridge
	// contains filtered or unexported fields
}

func NewOracle

func NewOracle(fxBridge *FxTronBridge, startBlockNumber uint64) (*Oracle, error)

type Singer

type Singer struct {
	*FxTronBridge
	// contains filtered or unexported fields
}

func NewSinger

func NewSinger(fxBridge *FxTronBridge, fees string) (*Singer, error)

Jump to

Keyboard shortcuts

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