Documentation ¶
Index ¶
- func New(opts ...Option) erc20.Service
- type Option
- type Service
- func (s *Service) Allowance(ctx context.Context, owner, spender common.Address) (*big.Int, error)
- func (s *Service) Approve(ctx context.Context, spender common.Address, value *big.Int) (common.Hash, error)
- func (s *Service) BalanceOf(ctx context.Context, address common.Address) (*big.Int, error)
- func (s *Service) Transfer(ctx context.Context, address common.Address, value *big.Int) (common.Hash, error)
- func (s *Service) WaitForApprove(ctx context.Context, hash common.Hash) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option is the option passed to the mock Chequebook service
func WithBalanceOfFunc ¶
Click to show internal directories.
Click to hide internal directories.