-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: post review fixes and clean up (#6)
* add disclaimer + makefile * json operators file * remove .idea folder * add Makefile * logs cleanup * add test and fix 2 bugs. * add threshold compute + checks for operators * add paragraph about instance managment to readme * readme update * fix tests --------- Co-authored-by: pavelkrolevets <[email protected]>
- Loading branch information
1 parent
f3a5b07
commit 0e15ffa
Showing
26 changed files
with
478 additions
and
169 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# This Makefile is meant to be used by people that do not usually work | ||
# with Go source code. If you know what GOPATH is then you probably | ||
# don't need to bother with make. | ||
|
||
.PHONY: dkgcli test clean build docker-build | ||
|
||
GOBIN = ./build/bin | ||
GO ?= latest | ||
GORUN = env GO111MODULE=on go run | ||
GOINSTALL = env GO111MODULE=on go install -v | ||
GOTEST = env GO111MODULE=on go test -v | ||
# Name of the Go binary output | ||
BINARY_NAME=./bin/dkgcli | ||
# Docker image name | ||
DOCKER_IMAGE=ssv-dkg-tool | ||
|
||
install: | ||
$(GOINSTALL) cmd/dkgcli/dkgcli.go | ||
@echo "Done building." | ||
@echo "Run dkgcli to launch the tool." | ||
|
||
clean: | ||
env GO111MODULE=on go clean -cache | ||
|
||
# Recipe to compile the Go program | ||
build: | ||
@echo "Building Go binary..." | ||
go build -o $(BINARY_NAME) ./cmd/dkgcli/dkgcli.go | ||
|
||
# Recipe to run tests | ||
test: | ||
@echo "running tests" | ||
go test -p 1 ./... | ||
|
||
# Recipe to build the Docker image | ||
docker-build: | ||
@echo "Building Docker image..." | ||
docker build -t $(DOCKER_IMAGE) . | ||
|
||
docker-demo: | ||
@echo "Running docker compose demo" | ||
docker-compose up |
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 was deleted.
Oops, something went wrong.
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
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,9 +1,8 @@ | ||
threshold: 3 | ||
operatorIDs: [1, 2, 3, 4] | ||
withdrawAddress: "0x0000000000000000000000000000000000000009" | ||
withdrawAddress: "0000000000000000000000000000000000000009" | ||
owner: "0x81592c3de184a3e2c0dcb5a261bc107bfa91f494" | ||
nonce: 4 | ||
fork: "00000000" | ||
operatorsInfoPath: ./examples/operators_integration.csv | ||
operatorsInfoPath: ./examples/operators_integration.json | ||
depositResultsPath: ./deposit.json | ||
ssvPayloadResultsPath: ./payload.json |
Oops, something went wrong.