Skip to content

Commit

Permalink
feat: add server, worker, rewrite (#23)
Browse files Browse the repository at this point in the history
* feat: add function verify_proof_and_register

* fix: flow_test

* chore: more info about transactions

* feat: optimize verify_proof_and_register

* fix: tx

* temp

* feat: new-verifier-contracts

* update test

* feat: add function verify_proof_and_register (#5)

* feat: add function verify_proof_and_register

* fix: flow_test

* chore: more info about transactions

* feat: optimize verify_proof_and_register

* fix: tx

* fix(CI): increase timeout for tarpaulin

---------

Co-authored-by: Steve Nguyen <[email protected]>
Co-authored-by: draply <[email protected]>

* feat: add proof adapter

* feat: init stone-prover-cli

* feat: add proof generator func

* refactor: init the workspace

* refactor: change the src code into deployer subcrate.

* feat: add errors handler for each subcrate

* feat: Add verifier subcrate, which sends proof to the contracts.

* feat: server template

* temp

* feat: add worker service

* feat: add subcrates

* refactor: rename packages

* feat: add worker template

* Feat/check status api (#19)

* feat: add check status api

---------

Co-authored-by: AndrewTran <[email protected]>
Co-authored-by: Andrew Tran <[email protected]>

* feat: update README.md

* sot-190-add_job-worker-handler (#20)

* feat: handle stone verify job

* chore: resolve conflict

* feat: update README.md

* chore: clean code

---------

Co-authored-by: hduoc2003 <[email protected]>

* feat: SOT 206 Add e2e-tests (#22)

* feat: handle stone verify job

* chore: resolve conflict

* feat: add e2e-test

* fix: fix config test

* fix: fix worker not migration

---------

Co-authored-by: Draply <[email protected]>

---------

Co-authored-by: hduoc2003 <[email protected]>
Co-authored-by: Steve Nguyen <[email protected]>
Co-authored-by: draply <[email protected]>
Co-authored-by: hduoc2003 <[email protected]>
Co-authored-by: vanhger <[email protected]>
Co-authored-by: Draply <[email protected]>
  • Loading branch information
7 people authored Dec 19, 2024
1 parent 4059291 commit 0cf8212
Show file tree
Hide file tree
Showing 203 changed files with 29,956 additions and 3,408 deletions.
19 changes: 19 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Ignore target directory generated by Cargo
target/

# Ignore Rust build artifacts
Cargo.lock
Cargo.toml.orig
# Ignore IDE and editor files
.idea/
.vscode/
*.swp

# Ignore any other build artifacts or temporary files
*.o
*.rlib
*.rmeta
*.d

deploy/
Dockerfile
6 changes: 3 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export APTOS_NODE_URL="https://fullnode.testnet.aptoslabs.com"
export APTOS_PRIVATE_KEY="0x3d31ef06ed8003c3a85125b6e6287967a7b80a3e4367ccf2649e7acd574e4261"
export APTOS_MODULE_ADDRESS="852578629621677c02f4b9679622f25cac00b4fe17d1fd8b197ba52a2627ee3b"
export APTOS_VERIFIER_ADDRESS="852578629621677c02f4b9679622f25cac00b4fe17d1fd8b197ba52a2627ee3b"
export CHAIN_ID="testnet"

export APTOS_TESTCONTAINER__ACCOUNTS="0xe47491c27051639d2bc0167af9370dd39f6df3479edfb51658a2eb0a16239cf6,0xdbba3d6050eab8b8683598fad3f80ba1282664a9fca018d629fe883e59889241"
export APTOS_TESTCONTAINER__ACCOUNTS="0xb6c8ce69f296d08fc217b953c7fba5eb25fe14ce0c764b1360ddea4e7e21470a,0x054031364b8a623c093277d30ce9fefe0df363226c23b1cb130d6382f4a1162a"
export APTOS_TESTCONTAINER__NODE_URL="https://api.testnet.aptoslabs.com/v1"
export APTOS_TESTCONTAINER__ENABLE_NODE=true
export APTOS_TESTCONTAINER__ENABLE_NODE=false
export APTOS_TESTCONTAINER__DEPLOY_CONTRACT=true
export APTOS_TESTCONTAINER__CHAIN_ID=2
26 changes: 26 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
test-and-coverage:
name: Test and Coverage
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -59,3 +60,28 @@ jobs:
run: echo "PKG_CONFIG_PATH=/usr/lib/pkgconfig" >> $GITHUB_ENV
- name: Run tests
run: cargo tarpaulin --all-features --verbose --tests --skip-clean

build-and-push:
name: Build and push docker images to docker hub
env:
PKG_NAME: irelia-public-server
PKG_NAME_WORKER: irelia-worker
runs-on: ubuntu-latest
needs: [cargo-check, fmt-check, test-and-coverage]
steps:
- uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push docker images
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/${{ PKG_NAME }}:latest
${{ secrets.DOCKERHUB_USERNAME }}/${{ PKG_NAME_WORKER }}:latest
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/target
.idea
.env

*/target
Loading

0 comments on commit 0cf8212

Please sign in to comment.