bridge

package
v3.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: GPL-3.0 Imports: 27 Imported by: 0

Documentation

Overview

Package bridge init router bridge and load / reload configs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdjustGatewayOrder

func AdjustGatewayOrder(bridge tokens.IBridge, chainID string)

AdjustGatewayOrder adjust gateway order once

func InitChainConfig added in v3.5.2

func InitChainConfig(b tokens.IBridge, chainID *big.Int)

InitChainConfig impl

func InitGatewayConfig added in v3.5.2

func InitGatewayConfig(b tokens.IBridge, chainID *big.Int)

InitGatewayConfig impl

func InitRouterBridges

func InitRouterBridges(isServer bool)

InitRouterBridges init router bridges

func InitTokenConfig added in v3.5.2

func InitTokenConfig(b tokens.IBridge, tokenID string, chainID *big.Int)

InitTokenConfig impl

func NewCrossChainBridge

func NewCrossChainBridge(chainID *big.Int) tokens.IBridge

NewCrossChainBridge new bridge

func ReloadRouterConfig

func ReloadRouterConfig() (success bool)

ReloadRouterConfig reload router config support add/remove/modify chain config support add/remove/modify token config

func SetGatewayConfig added in v3.6.2

func SetGatewayConfig(b tokens.IBridge, chainID string)

SetGatewayConfig set gateway config

func StartReloadRouterConfigTask added in v3.5.2

func StartReloadRouterConfigTask()

StartReloadRouterConfigTask start reload config

func WatchGatewayConfig added in v3.6.2

func WatchGatewayConfig()

WatchGatewayConfig watch and update gateway config

Types

This section is empty.

Jump to

Keyboard shortcuts

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