Skip to content
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

Kiwie angel patch 1 #106

Open
wants to merge 5 commits into
base: dependabot/go_modules/golang.org/x/crypto-0.17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll with GitHub Pages dependencies preinstalled

on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
build:
go build ./main.go
build-arm64:
GOARCH=arm64 GOOS=darwin go build -o zkproof_darwin_arm64 ./main.go

build-amd64:
GOARCH=amd64 GOOS=darwin go build -o zkproof_darwin_amd64 ./main.go

build-linux:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build ./main.go
GOARCH=amd64 GOOS=linux go build -o zkproof_linux_amd64 ./main.go

build-windows:
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build ./main.go
GOARCH=amd64 GOOS=windows go build -o zkproof_windows_amd64.exe ./main.go
2 changes: 1 addition & 1 deletion config/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"MysqlDataSource" : "zkroot:zkpasswd@tcp(127.0.0.1:3306)/zkpos?parseTime=true",
"MysqlDataSource" : "root:mysqlpw@tcp(127.0.0.1:55000)/zkpos?parseTime=true",
"DbSuffix": "202307",
"UserDataFile": "./example_data/",
"TreeDB": {
Expand Down
9 changes: 8 additions & 1 deletion utils/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

const (
BatchCreateUserOpsCounts = 4
BatchCreateUserOpsCounts = 864
AccountTreeDepth = 28
AssetCounts = 350
RedisLockKey = "prover_mutex_key"
Expand All @@ -31,5 +31,12 @@ var (
"pepe": true,
"floki": true,
"nft": true,
"sats": true,
"btt": true,
"bonk": true,
"rats": true,
"axl": true,
"1cat": true,
"omi": true,
}
)