Open samparsky opened 6 years ago
@avive Can I take this ?
Please create a component called SpacemeshApiClientMock
that mock implements all the methods described in this issue via one or more typescript interfaces. e.g. ISpacemeshApi
. For the real app, we'll replace the mock implementation with a real one - e.g. SpacemeshApiClient
component.
@avive Can I take this ?
Yes but please see my proposal for next steps in the gitter chat...
Please add
done
Please make all API calls async using the async / await javascript pattern. Even methods that can return data immediately should use a typed promise for consistent behavior. e.g. Promise
@avive Should there be some sort of API auth mechanism?
@avive @samparsky I think Post a Transaction
should be broad cast transaction
.
Description
Provide API mocks for the following
Describe the solution you'd like
Describe alternatives you've considered
Contribution Guide
Please checkout the contribution guide