Documentation ¶
Index ¶
- type MockAccountService
- func (m *MockAccountService) CheckAliasAddress(ctx context.Context, alias string) (*dataserviceapi.AliasAddress, error)
- func (m *MockAccountService) CheckBalance(ctx context.Context, publicKey string) (*models.BalanceResult, error)
- func (m *MockAccountService) CreateAccount(ctx context.Context) (*models.AccountResult, error)
- func (m *MockAccountService) FetchTransactions(ctx context.Context, publicKey string) ([]dataserviceapi.Last10TxResponse, error)
- func (m *MockAccountService) FetchVouchers(ctx context.Context, publicKey string) ([]dataserviceapi.TokenHoldings, error)
- func (m *MockAccountService) TokenTransfer(ctx context.Context, amount, from, to, tokenAddress string) (*models.TokenTransferResponse, error)
- func (m *MockAccountService) TrackAccountStatus(ctx context.Context, trackingId string) (*models.TrackStatusResult, error)
- func (m *MockAccountService) VoucherData(ctx context.Context, address string) (*models.VoucherDataResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAccountService ¶
MockAccountService implements AccountServiceInterface for testing
func (*MockAccountService) CheckAliasAddress ¶
func (m *MockAccountService) CheckAliasAddress(ctx context.Context, alias string) (*dataserviceapi.AliasAddress, error)
func (*MockAccountService) CheckBalance ¶
func (m *MockAccountService) CheckBalance(ctx context.Context, publicKey string) (*models.BalanceResult, error)
func (*MockAccountService) CreateAccount ¶
func (m *MockAccountService) CreateAccount(ctx context.Context) (*models.AccountResult, error)
func (*MockAccountService) FetchTransactions ¶
func (m *MockAccountService) FetchTransactions(ctx context.Context, publicKey string) ([]dataserviceapi.Last10TxResponse, error)
func (*MockAccountService) FetchVouchers ¶
func (m *MockAccountService) FetchVouchers(ctx context.Context, publicKey string) ([]dataserviceapi.TokenHoldings, error)
func (*MockAccountService) TokenTransfer ¶
func (m *MockAccountService) TokenTransfer(ctx context.Context, amount, from, to, tokenAddress string) (*models.TokenTransferResponse, error)
func (*MockAccountService) TrackAccountStatus ¶
func (m *MockAccountService) TrackAccountStatus(ctx context.Context, trackingId string) (*models.TrackStatusResult, error)
func (*MockAccountService) VoucherData ¶
func (m *MockAccountService) VoucherData(ctx context.Context, address string) (*models.VoucherDataResult, error)
Click to show internal directories.
Click to hide internal directories.