contracts

package
v0.0.1-alpha-7 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 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.Ethereum
	// contains filtered or unexported fields
}

func NewService

func NewService(client client.Ethereum, c config.Ethereum) *Service

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

func (*Service) GetBridgeContractAddress

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

func (*Service) GetMembers

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

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

func (*Service) GetServiceFee

func (bsc *Service) GetServiceFee() *big.Int

GetServiceFee returns the current service fee configured in the Bridge contract

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) ParseToken

func (bsc *Service) ParseToken(tokenId string) (string, error)

func (*Service) SubmitSignatures

func (bsc *Service) SubmitSignatures(opts *bind.TransactOpts, txId, wrappedToken, ethAddress, amount, fee string, signatures [][]byte) (*types.Transaction, error)

SubmitSignatures signs and broadcasts an Ethereum TX authorising the mint operation on the Ethereum network

func (*Service) WatchBurnEventLogs

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

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

type ServiceFee

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

func (*ServiceFee) Get

func (s *ServiceFee) Get() *big.Int

func (*ServiceFee) Set

func (s *ServiceFee) Set(serviceFee big.Int)

Jump to

Keyboard shortcuts

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