Documentation ¶
Index ¶
- func New(opts ...Option) chain.Traffic
- type ChainTrafficMock
- func (m *ChainTrafficMock) BalanceOf(address common.Address) (*big.Int, error)
- func (m *ChainTrafficMock) CashChequeBeneficiary(ctx context.Context, beneficiary, recipient common.Address, ...) (*types.Transaction, error)
- func (m *ChainTrafficMock) RetrievedAddress(address common.Address) ([]common.Address, error)
- func (m *ChainTrafficMock) RetrievedTotal(address common.Address) (*big.Int, error)
- func (m *ChainTrafficMock) TransAmount(beneficiary, recipient common.Address) (*big.Int, error)
- func (m *ChainTrafficMock) TransferredAddress(address common.Address) ([]common.Address, error)
- func (m *ChainTrafficMock) TransferredTotal(address common.Address) (*big.Int, error)
- type Option
- func WithBalanceOf(f func(account common.Address) (*big.Int, error)) Option
- func WithCashChequeBeneficiary(...) Option
- func WithRetrievedAddress(f func(address common.Address) ([]common.Address, error)) Option
- func WithRetrievedTotal(f func(address common.Address) (*big.Int, error)) Option
- func WithTransAmount(f func(beneficiary, recipient common.Address) (*big.Int, error)) Option
- func WithTransferredAddress(f func(address common.Address) ([]common.Address, error)) Option
- func WithTransferredTotal(f func(address common.Address) (*big.Int, error)) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChainTrafficMock ¶
type ChainTrafficMock struct {
// contains filtered or unexported fields
}
func (*ChainTrafficMock) CashChequeBeneficiary ¶
func (*ChainTrafficMock) RetrievedAddress ¶
func (*ChainTrafficMock) RetrievedTotal ¶
func (*ChainTrafficMock) TransAmount ¶
func (*ChainTrafficMock) TransferredAddress ¶
func (*ChainTrafficMock) TransferredTotal ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option is the option passed to the mock Chequebook service
func WithRetrievedAddress ¶
func WithRetrievedTotal ¶
func WithTransAmount ¶
func WithTransferredAddress ¶
Click to show internal directories.
Click to hide internal directories.