-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add SQL storage support #20
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
efe5efa
Add sql storage support
jimthematrix 1638fdb
add readlock; unit test for concurrent insertions
jimthematrix 64bed19
Add read lock for mt.Root(); add verify tests
jimthematrix 7f74dfb
Update inline comments for the merkle tree structure
jimthematrix 8d207b4
Add GetNode() to the merkle tree interface
jimthematrix 0ff13d3
Merge remote-tracking branch 'hl/main' into sql
jimthematrix 2d5b8b2
Add a new test case to the integration test for the anon_nullifier ci…
jimthematrix 3febdc4
Add nullifiers objects
jimthematrix e12fc57
Addressing review comments
jimthematrix 781a434
Add action for go build
jimthematrix 2f98169
Move IndexOnly from utxo to utils
jimthematrix 364ff6f
Fix copy/paste errors
jimthematrix cb8a974
Add gorm annotations for fixed hex string length
jimthematrix File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Golang SDK | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
env: | ||
TEST_ARGS: -v | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.22 | ||
|
||
- name: Build and Test | ||
run: cd zkp/golang && make | ||
|
||
- uses: codecov/codecov-action@v4 | ||
with: | ||
codecov_yml_path: ./codecov.yml | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
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,32 @@ | ||
VGO=go | ||
GOFILES := $(shell find ./internal ./pkg -name '*.go' -print) | ||
GOBIN := $(shell $(VGO) env GOPATH)/bin | ||
LINT := $(GOBIN)/golangci-lint | ||
|
||
# Expect that Zeto compiles with CGO disabled | ||
CGO_ENABLED=0 | ||
GOGC=30 | ||
|
||
.DELETE_ON_ERROR: | ||
|
||
all: test go-mod-tidy | ||
test: deps lint | ||
$(VGO) test ./internal/... ./pkg/... -cover -coverprofile=coverage.txt -covermode=atomic -timeout=30s ${TEST_ARGS} | ||
coverage.html: | ||
$(VGO) tool cover -html=coverage.txt | ||
coverage: test coverage.html | ||
lint: ${LINT} | ||
GOGC=20 $(LINT) run -v --timeout 5m | ||
${LINT}: | ||
$(VGO) install github.com/golangci/golangci-lint/cmd/[email protected] | ||
|
||
go-mod-tidy: .ALWAYS | ||
$(VGO) mod tidy | ||
e2e: test | ||
$(VGO) test ./integration-test | ||
EnriqueL8 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
.ALWAYS: ; | ||
clean: | ||
$(VGO) clean | ||
rm -f *.so | ||
deps: | ||
$(VGO) get -u ./... |
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome, I have touched base in the pass with the Hyperledger team to setup codecov! Can reach out to set it up for this repo