forked from tokamak-network/tokamak-sybil-resistance
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update: update the method to generate sybil.go
- Loading branch information
1 parent
81f897b
commit 2242941
Showing
1 changed file
with
6 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,13 +74,9 @@ go run main.go run --mode sync --cfg cfg.toml | |
``` | ||
go run main.go run --mode coord --cfg cfg.toml | ||
``` | ||
## To generate .go file of the contract | ||
``` | ||
npm install [email protected] | ||
``` | ||
``` | ||
npx solc --bin --abi src/sybil.sol -o build/ | ||
``` | ||
``` | ||
abigen --abi=build/src_mvp_Sybil_sol_Sybil.abi --bin=build/src_mvp_Sybil_sol_Sybil.bin --pkg=sybil --out=Sybil.go | ||
``` | ||
# Generate .go file from the Sybil contract | ||
Navigate to the contracts folder inside the tokamak-sybil-resistance-mvp directory. | ||
|
||
Run the followig command: | ||
|
||
```sh sybil_go.sh``` |