Documentation
¶
Index ¶
- type Api
- type BalanceResponse
- type BalancesResponse
- type MockApi
- func (api *MockApi) CheckBalance(address, token common.Address) (resp *BalanceResponse, err error)
- func (api *MockApi) CheckBalances(address []common.Address, token common.Address) (resp *BalancesResponse, err error)
- func (api *MockApi) SendTransaction(quantity *big.Int, fromPk *ecdsa.PrivateKey, to, token common.Address) (resp *types.Transaction, err error)
- type Resources
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api interface { SendTransaction(quantity *big.Int, fromPk *ecdsa.PrivateKey, to, token common.Address) (*types.Transaction, error) CheckBalance(address, token common.Address) (*BalanceResponse, error) CheckBalances(addresses []common.Address, token common.Address) (*BalancesResponse, error) }
func NewApiImplementation ¶
type BalanceResponse ¶
type BalancesResponse ¶
type BalancesResponse struct {
Processed map[common.Address]*BalanceResponse `json:"processed"`
}
type MockApi ¶
func (*MockApi) CheckBalance ¶
func (api *MockApi) CheckBalance( address, token common.Address, ) ( resp *BalanceResponse, err error, )
func (*MockApi) CheckBalances ¶
func (*MockApi) SendTransaction ¶
func (api *MockApi) SendTransaction( quantity *big.Int, fromPk *ecdsa.PrivateKey, to, token common.Address, ) ( resp *types.Transaction, err error, )
type Service ¶
type Service interface { SendTransaction(quantity *big.Int, fromPk *ecdsa.PrivateKey, to, token common.Address) (*types.Transaction, error) CheckBalance(address, token common.Address) (*BalanceResponse, error) CheckBalances(addresses []common.Address, token common.Address) (*BalancesResponse, error) }
func NewService ¶
Click to show internal directories.
Click to hide internal directories.