chainap

package
v0.0.0-...-7c2dc49 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainAPManager

type ChainAPManager interface {
	// RegisterChainAP registers an access of chain to given chainID.
	RegisterChainAP(chainID *big.Int, chainAP *ethclient.Client)

	// ChainAP obtains the access of chain for given chainID.
	ChainAP(chainID *big.Int) (*ethclient.Client, error)
}

ChainAPManager manages the access to chain.

type ChainAPManagerImplV1

type ChainAPManagerImplV1 struct {
	// contains filtered or unexported fields
}

ChainAPManagerImplV1 implements ChainAPManager.

func NewChainAPManagerImplV1

func NewChainAPManagerImplV1() *ChainAPManagerImplV1

NewChainAPManagerImplV1 creates a new chain ap manager impl v1.

func (*ChainAPManagerImplV1) ChainAP

func (mgr *ChainAPManagerImplV1) ChainAP(chainID *big.Int) (*ethclient.Client, error)

ChainAP obtains the access of chain for given chainID.

func (*ChainAPManagerImplV1) RegisterChainAP

func (mgr *ChainAPManagerImplV1) RegisterChainAP(chainID *big.Int, chainAP *ethclient.Client)

RegisterChainAP registers an access of chain to given chainID.

Jump to

Keyboard shortcuts

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