Documentation ¶
Overview ¶
Package bridge init router bridge and load / reload configs.
Index ¶
- func AdjustGatewayOrder(bridge tokens.IBridge, chainID string)
- func InitChainConfig(b tokens.IBridge, chainID *big.Int)
- func InitGatewayConfig(b tokens.IBridge, chainID *big.Int)
- func InitRouterBridges(isServer bool)
- func InitTokenConfig(b tokens.IBridge, tokenID string, chainID *big.Int)
- func NewCrossChainBridge(chainID *big.Int) tokens.IBridge
- func ReloadRouterConfig() (success bool)
- func SetGatewayConfig(b tokens.IBridge, chainID string)
- func StartReloadRouterConfigTask()
- func WatchGatewayConfig()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdjustGatewayOrder ¶
AdjustGatewayOrder adjust gateway order once
func InitChainConfig ¶ added in v3.5.2
InitChainConfig impl
func InitGatewayConfig ¶ added in v3.5.2
InitGatewayConfig impl
func InitRouterBridges ¶
func InitRouterBridges(isServer bool)
InitRouterBridges init router bridges
func InitTokenConfig ¶ added in v3.5.2
InitTokenConfig impl
func NewCrossChainBridge ¶
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
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.
Click to show internal directories.
Click to hide internal directories.