Documentation ¶
Overview ¶
Package kusama implements the bridge interfaces for kusama ecosystem blockchain.
Index ¶
- type Bridge
- func (b *Bridge) GetLatestBlockNumberOf(url string) (latest uint64, err error)
- func (b *Bridge) KsmGetFinalizedHead(url string) (result common.Hash, err error)
- func (b *Bridge) KsmGetHeader(blockHash string) (result *KsmHeader, err error)
- func (b *Bridge) SetChainAndGateway(chainCfg *tokens.ChainConfig, gatewayCfg *tokens.GatewayConfig)
- func (b *Bridge) VerifyChainID()
- type KsmHeader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bridge ¶
Bridge kusama bridge inherit from eth bridge
func NewCrossChainBridge ¶
NewCrossChainBridge new kusama bridge
func (*Bridge) GetLatestBlockNumberOf ¶
GetLatestBlockNumberOf call eth_blockNumber
func (*Bridge) KsmGetFinalizedHead ¶
KsmGetFinalizedHead call chain_getFinalizedHead
func (*Bridge) KsmGetHeader ¶
KsmGetHeader call chain_getHeader
func (*Bridge) SetChainAndGateway ¶
func (b *Bridge) SetChainAndGateway(chainCfg *tokens.ChainConfig, gatewayCfg *tokens.GatewayConfig)
SetChainAndGateway set token and gateway config
Click to show internal directories.
Click to hide internal directories.