Documentation ¶
Index ¶
- type Verifier
- type VerifierImplV1
- func (v *VerifierImplV1) GetVerifierAddr(sourceChainID *big.Int, sourceAddr string, targetChainID *big.Int) (common.Address, error)
- func (v *VerifierImplV1) SetVerifierAddr(sourceChainID *big.Int, sourceCbc string, targetChainID *big.Int, ...) error
- func (v *VerifierImplV1) Start() error
- func (v *VerifierImplV1) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Verifier ¶
type Verifier interface { // Start starts the verifier's routine Start() error // Stop stops the verifier. Stop() // SetVerifierAddr sets a verifier contract address on the target chain based on source and target chain. SetVerifierAddr(sourceChainID *big.Int, sourceCbc string, targetChainID *big.Int, verifierContractAddr common.Address) error // GetVerifierAddr gets a verifier contract address for given source and target chain combination. GetVerifierAddr(sourceChainID *big.Int, sourceCbc string, targetChainID *big.Int) (common.Address, error) }
Verifier is an interface for the verifier in the system.
func NewVerifierImplV1 ¶
NewVerifierImplV1 creates a new verifier.
type VerifierImplV1 ¶
type VerifierImplV1 struct {
// contains filtered or unexported fields
}
VerifierImplV1 implements the verifier interface.
func (*VerifierImplV1) GetVerifierAddr ¶
func (v *VerifierImplV1) GetVerifierAddr(sourceChainID *big.Int, sourceAddr string, targetChainID *big.Int) (common.Address, error)
GetVerifierAddr gets a verifier contract address for given source and target chain combination.
func (*VerifierImplV1) SetVerifierAddr ¶
func (v *VerifierImplV1) SetVerifierAddr(sourceChainID *big.Int, sourceCbc string, targetChainID *big.Int, verifierContractAddr common.Address) error
SetVerifierAddr sets a verifier contract address on the target chain based on source and target chain.
func (*VerifierImplV1) Start ¶
func (v *VerifierImplV1) Start() error
Start starts the verifier's routine
Click to show internal directories.
Click to hide internal directories.