mocks

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MExchangeRateProvider *rate_provider.MockExchangeRateProvider
View Source
var MTransferService *service.MockTransferService

Functions

func Setup

func Setup()

Types

type MockBridgeContract

type MockBridgeContract struct {
	mock.Mock
}
var MBridgeContractService *MockBridgeContract

func (*MockBridgeContract) GetBridgeContractAddress

func (m *MockBridgeContract) GetBridgeContractAddress() common.Address

func (*MockBridgeContract) GetMembers

func (m *MockBridgeContract) GetMembers() []string

func (*MockBridgeContract) GetServiceFee

func (m *MockBridgeContract) GetServiceFee() *big.Int

func (*MockBridgeContract) IsMember

func (m *MockBridgeContract) IsMember(address string) bool

func (*MockBridgeContract) ParseToken

func (m *MockBridgeContract) ParseToken(nativeToken string) (string, error)

func (*MockBridgeContract) SubmitSignatures

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

func (*MockBridgeContract) WatchBurnEventLogs

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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