-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: API refactoring to use more interfaces and be unit testable
Client{} is now a struct that has methods that correspond directly to the node's endpoints helpers.go helper functions that implement useful business logic like GetTTLNonce, WaitForTransactionUntilHeight, BroadcastTransaction etc. now take an interface instead of being attached to Client{}, making them testable. Unittest for WaitForTransactionUntilHeight() AENS/Contract/Oracle helpers stay as they are. Not much testing needed there since they only use GetTTLNonce.
- Loading branch information
1 parent
6610ae8
commit 25ef16e
Showing
7 changed files
with
180 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.