fsn

package
v0.0.0-...-590ca12 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bridge

type Bridge struct {
	*eth.Bridge
}

Bridge fsn bridge inherit from eth bridge

func NewCrossChainBridge

func NewCrossChainBridge(isSrc bool) *Bridge

NewCrossChainBridge new fsn bridge

func (*Bridge) ChainID

func (b *Bridge) ChainID() (*big.Int, error)

ChainID get chain id use net_version (eth_chainId does not work)

func (*Bridge) GetTransactionAndReceipt

func (b *Bridge) GetTransactionAndReceipt(txHash string) (*types.RPCTxAndReceipt, error)

GetTransactionAndReceipt get tx and receipt (fsn special)

func (*Bridge) SetTokenAndGateway

func (b *Bridge) SetTokenAndGateway(tokenCfg *tokens.TokenConfig, gatewayCfg *tokens.GatewayConfig)

SetTokenAndGateway set token and gateway config

func (*Bridge) VerifyChainID

func (b *Bridge) VerifyChainID()

VerifyChainID verify chain id

Jump to

Keyboard shortcuts

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