contracts

package
v1.5.2-rc-3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Members

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

func (*Members) Get

func (c *Members) Get() []string

func (*Members) Set

func (c *Members) Set(addresses []string)

type Service

type Service struct {
	Client client.EVM
	// contains filtered or unexported fields
}

func NewService

func NewService(client client.EVM, address string, contractInstance client.DiamondRouter) *Service

NewService creates new instance of a Contract Services based on the provided configuration

func (*Service) Address added in v1.4.0

func (bsc *Service) Address() common.Address

Address returns the address of the contract instance

func (*Service) GetClient added in v1.4.0

func (bsc *Service) GetClient() client.Core

func (*Service) GetMembers

func (bsc *Service) GetMembers() []string

GetMembers returns the array of bridge members currently set in the Bridge contract

func (*Service) HasValidSignaturesLength added in v1.4.0

func (bsc *Service) HasValidSignaturesLength(signaturesLength *big.Int) (bool, error)

HasValidSignaturesLength returns whether the signatures are enough for submission

func (*Service) IsMember

func (bsc *Service) IsMember(address string) bool

IsMember returns true/false depending on whether the provided address is a Bridge member or not

func (*Service) ParseBurnERC721Log added in v1.4.0

func (bsc *Service) ParseBurnERC721Log(log types.Log) (*router.RouterBurnERC721, error)

ParseBurnERC721Log parses a general typed log to a BurnERC721event

func (*Service) ParseBurnLog added in v1.4.0

func (bsc *Service) ParseBurnLog(log types.Log) (*router.RouterBurn, error)

ParseBurnLog parses a general typed log to a RouterBurn event

func (*Service) ParseLockLog added in v1.4.0

func (bsc *Service) ParseLockLog(log types.Log) (*router.RouterLock, error)

ParseLockLog parses a general typed log to a RouterLock event

func (*Service) ParseMintLog added in v1.4.0

func (bsc *Service) ParseMintLog(log types.Log) (*router.RouterMint, error)

ParseMintLog parses a general typed log to a RouterMint event

func (*Service) ParseUnlockLog added in v1.4.0

func (bsc *Service) ParseUnlockLog(log types.Log) (*router.RouterUnlock, error)

ParseUnlockLog parses a general typed log to a RouterUnlock event

func (*Service) ReloadMembers added in v1.4.0

func (bsc *Service) ReloadMembers()

func (*Service) WatchBurnEventLogs

func (bsc *Service) WatchBurnEventLogs(opts *bind.WatchOpts, sink chan<- *router.RouterBurn) (event.Subscription, error)

WatchBurnEventLogs creates a subscription for Burn Events emitted in the Bridge contract

func (*Service) WatchLockEventLogs added in v1.4.0

func (bsc *Service) WatchLockEventLogs(opts *bind.WatchOpts, sink chan<- *router.RouterLock) (event.Subscription, error)

Jump to

Keyboard shortcuts

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