generated from KyberNetwork/go-project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TRD-573 Trade log v2: Parse Log Flow (#69)
* TRD-573 trade log v2: parse log flow * TRD-573 add migration file * TRD-573 persist processed block state to postgres * TRD-573 fix lint error * TRD-573 add message sender and interact contract * TRD-573 using tradelog as struct, add dockerfile & readme * TRD-573 remove old log before processing * TRD-573 refactor project structure * TRD-573 update Dockerfile
- Loading branch information
1 parent
0f433cd
commit 436098b
Showing
49 changed files
with
3,690 additions
and
209 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,22 @@ | ||
## This is service to indexing tradelogs from event | ||
|
||
### Re-generate mock file | ||
|
||
First, you need to install `mockery` | ||
|
||
- https://vektra.github.io/mockery/latest/installation/ | ||
- https://github.com/vektra/mockery | ||
|
||
Then you use the `mockery` to generate mock files from interface | ||
|
||
``` | ||
mockery --dir=<interface directory> --name=<interface name> --output=<output dir> --structname=<name of output struct> --filename=<output filename> | ||
``` | ||
|
||
Example: generate `Storage` interface to a struct name `MockStorage` | ||
|
||
``` | ||
mockery --dir=v2/pkg/storage/state --name=Storage --output=v2/mocks/ --structname=MockState --filename=State.go | ||
``` | ||
|
||
For more information `mockery --help` |
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
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.