Documentation ¶
Index ¶
- type Members
- type Service
- func (bsc *Service) GetBridgeContractAddress() common.Address
- func (bsc *Service) GetMembers() []string
- func (bsc *Service) GetServiceFee() *big.Int
- func (bsc *Service) IsMember(address string) bool
- func (bsc *Service) ParseToken(tokenId string) (string, error)
- func (bsc *Service) SubmitSignatures(opts *bind.TransactOpts, txId, wrappedToken, ethAddress, amount, fee string, ...) (*types.Transaction, error)
- func (bsc *Service) WatchBurnEventLogs(opts *bind.WatchOpts, sink chan<- *routerAbi.RouterBurn) (event.Subscription, error)
- type ServiceFee
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
func NewService ¶
NewService creates new instance of a Contract Services based on the provided configuration
func (*Service) GetBridgeContractAddress ¶
func (*Service) GetMembers ¶
GetMembers returns the array of bridge members currently set in the Bridge contract
func (*Service) GetServiceFee ¶
GetServiceFee returns the current service fee configured in the Bridge contract
func (*Service) IsMember ¶
IsMember returns true/false depending on whether the provided address is a Bridge member or not
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)
Click to show internal directories.
Click to hide internal directories.