bridge

package
v3.0.0-...-e8b7a4c Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: GPL-3.0 Imports: 32 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

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

InitChainConfig impl

func InitGatewayConfig

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

InitGatewayConfig impl

func InitRouterBridges

func InitRouterBridges(isServer bool)

InitRouterBridges init router bridges

func InitTokenConfig

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

func SetGatewayConfig(b tokens.IBridge, chainID string)

SetGatewayConfig set gateway config

func StartReloadRouterConfigTask

func StartReloadRouterConfigTask()

StartReloadRouterConfigTask start reload config

func WatchGatewayConfig

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