Skip to content

Commit

Permalink
Merge pull request #659 from humanprotocol/develop
Browse files Browse the repository at this point in the history
Release Q3 - sprint 1
  • Loading branch information
portuu3 authored Jul 10, 2023
2 parents 2904694 + 79894db commit 98c3714
Show file tree
Hide file tree
Showing 480 changed files with 18,300 additions and 9,552 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/cd-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3 #Temporal until this gets fixed https://github.com/NomicFoundation/hardhat/issues/3877
with:
node-version: 18.15
- run: yarn --ignore-scripts
name: Install dependencies
- run: yarn build
Expand Down
17 changes: 7 additions & 10 deletions .github/workflows/cd-deploy-contracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ jobs:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GH_TOKEN_CD_CONTRACTS }}
- uses: actions/setup-node@v3 #Temporal until this gets fixed https://github.com/NomicFoundation/hardhat/issues/3877
with:
node-version: 18.15
- name: Install dependencies
run: npm install --global yarn && yarn --ignore-scripts
- run: yarn build
Expand All @@ -60,7 +57,7 @@ jobs:
"polygon")
echo "escrow_factory=0xBDBfD2cC708199C5640C6ECdf3B0F4A4C67AdfcB" >> $GITHUB_OUTPUT
echo "staking=0xcbAd56bE3f504E98bd70875823d3CC0242B7bB29" >> $GITHUB_OUTPUT
echo "reward_pool=0xa8e32d777a3839440cc7c24D591A64B9481753B3" >> $GITHUB_OUTPUT
echo "reward_pool=0x1371057BAec59944B924A7963F2EeCF43ff94CE4" >> $GITHUB_OUTPUT
echo "private_key=MAINNET_PRIVATE_KEY" >> $GITHUB_OUTPUT
echo "subgraph=polygon-v1" >> $GITHUB_OUTPUT
;;
Expand All @@ -72,9 +69,9 @@ jobs:
echo "subgraph=mumbai-v1" >> $GITHUB_OUTPUT
;;
"bsc")
echo "escrow_factory=0xD9c75a1Aa4237BB72a41E5E26bd8384f10c1f55a" >> $GITHUB_OUTPUT
echo "staking=0x05398211bA2046E296fBc9a9D3EB49e3F15C3123" >> $GITHUB_OUTPUT
echo "reward_pool=0x4A5963Dd6792692e9147EdC7659936b96251917a" >> $GITHUB_OUTPUT
echo "escrow_factory=0x92FD968AcBd521c232f5fB8c33b342923cC72714" >> $GITHUB_OUTPUT
echo "staking=0xdFbB79dC35a3A53741be54a2C9b587d6BafAbd1C" >> $GITHUB_OUTPUT
echo "reward_pool=0xf376443BCc6d4d4D63eeC086bc4A9E4a83878e0e" >> $GITHUB_OUTPUT
echo "private_key=MAINNET_PRIVATE_KEY" >> $GITHUB_OUTPUT
echo "subgraph=bsc-v1" >> $GITHUB_OUTPUT
;;
Expand Down Expand Up @@ -107,12 +104,12 @@ jobs:
echo "subgraph=mainnet-v1" >> $GITHUB_OUTPUT
;;
*)
echo "Invalid network"
echo "Invalid network"
exit 1
;;
esac
- name: Upgrade Proxies
if: github.event.inputs.escrowFactory == 'true'
if: github.event.inputs.escrowFactory == 'true' || github.event.inputs.staking == 'true' || github.event.inputs.rewardPool== 'true'
run: yarn upgrade:proxy --network ${{ github.event.inputs.network }}
working-directory: ./packages/core
env:
Expand All @@ -137,7 +134,7 @@ jobs:
if: always() && github.event.inputs.rewardPool== 'true'
run: npx hardhat verify --network ${{ github.event.inputs.network }} ${{ steps.networks.outputs.reward_pool }}
working-directory: ./packages/core

#Deploy subgraph
- run: yarn global add @graphprotocol/graph-cli
name: Install Graph CLI
Expand Down
32 changes: 0 additions & 32 deletions .github/workflows/cd-node-basemodels.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions .github/workflows/cd-node-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3 #Temporal until this gets fixed https://github.com/NomicFoundation/hardhat/issues/3877
with:
node-version: 18.15
- run: yarn --ignore-scripts
name: Install dependencies
- run: yarn build
Expand Down
36 changes: 0 additions & 36 deletions .github/workflows/cd-python-basemodels.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions .github/workflows/cd-python-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3 #Temporal until this gets fixed https://github.com/NomicFoundation/hardhat/issues/3877
with:
node-version: 18.15
- run: yarn --ignore-scripts
name: Install dependencies
- run: yarn build
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/cd-subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ jobs:
if [[ ${{ needs.contracts-check.outputs.contracts_updated}} == 'true' && "${{ github.event.inputs.subgraph-name }}" != "${{ matrix.network.graph }}" ]]; then
echo "stop=true" >> $GITHUB_OUTPUT
fi
- uses: actions/setup-node@v3 #Temporal until this gets fixed https://github.com/NomicFoundation/hardhat/issues/3877
with:
node-version: 18.15
- run: yarn --ignore-scripts
if: ${{steps.continue_check.outputs.stop != 'true'}}
name: Install dependencies
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/ci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3 #Temporal until this gets fixed https://github.com/NomicFoundation/hardhat/issues/3877
with:
node-version: 18.15
- run: npm install --global yarn && yarn
name: Install dependencies
- run: yarn build
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/ci-mx-contracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches:
- 'main'
pull_request:
paths:
- 'packages/core/mx'

env:
RUST_TOOLCHAIN: nightly-2022-12-08
Expand All @@ -28,9 +30,8 @@ jobs:

- name: Run the rust tests
env:
RUSTFLAGS: ""
run:
cargo test
RUSTFLAGS: ''
run: cargo test

clippy_check:
name: Clippy linter check
Expand All @@ -43,7 +44,7 @@ jobs:
components: clippy
- uses: giraffate/clippy-action@v1
env:
RUSTFLAGS: ""
RUSTFLAGS: ''
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
clippy_flags: ${{ env.CLIPPY_ARGS}}
clippy_flags: ${{ env.CLIPPY_ARGS}}
8 changes: 4 additions & 4 deletions .github/workflows/ci-test-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ name: Protocol check
on:
push:
branches:
- "main"
- 'main'
pull_request:
paths:
- 'packages/core/**'
- '!packages/core/mx/**'
workflow_dispatch:

jobs:
Expand All @@ -13,9 +16,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3 #Temporal until this gets fixed https://github.com/NomicFoundation/hardhat/issues/3877
with:
node-version: 18.15
- run: npm install --global yarn && yarn --ignore-scripts
name: Install dependencies
- run: yarn core:test
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/ci-test-escrow-dashboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@ name: Escrow dashboard check
on:
push:
branches:
- "main"
- 'main'
pull_request:
paths:
- 'packages/core/**'
- '!packages/core/mx/**'
- 'packages/sdk/typescript/human-protocol-sdk/**'
- 'packages/sdk/typescript/subgraph/**'
- 'packages/apps/escrow-dashboard/**'
workflow_dispatch:

jobs:
Expand All @@ -13,9 +19,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3 #Temporal until this gets fixed https://github.com/NomicFoundation/hardhat/issues/3877
with:
node-version: 18.15
- run: npm install --global yarn && yarn
name: Install dependencies
- run: yarn build
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/ci-test-faucet-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
branches:
- 'main'
pull_request:
paths:
- 'packages/core/**'
- '!packages/core/mx/**'
- 'packages/sdk/typescript/human-protocol-sdk/**'
- 'packages/apps/faucet-server/**'
workflow_dispatch:

jobs:
Expand All @@ -13,9 +18,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3 #Temporal until this gets fixed https://github.com/NomicFoundation/hardhat/issues/3877
with:
node-version: 18.15
- run: npm install --global yarn && yarn
name: Install dependencies
- run: yarn build
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/ci-test-fortune-v3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Fortune V3 check

on:
push:
branches:
- 'main'
pull_request:
paths:
- 'packages/core/**'
- '!packages/core/mx/**'
- 'packages/sdk/typescript/human-protocol-sdk/**'
- 'packages/app/fortune/**'
workflow_dispatch:

jobs:
fortune-test:
name: Fortune V3 Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm install --global yarn && yarn
name: Install dependencies
- run: yarn build
name: Build core package
working-directory: ./packages/core
- run: yarn fortune-v3:test
name: Run fortune V3 test
10 changes: 6 additions & 4 deletions .github/workflows/ci-test-fortune.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@ name: Fortune check
on:
push:
branches:
- "main"
- 'main'
pull_request:
paths:
- 'packages/core/**'
- '!packages/core/mx/**'
- 'packages/sdk/typescript/human-protocol-sdk/**'
- 'packages/examples/fortune/**'
workflow_dispatch:

jobs:
Expand All @@ -13,9 +18,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3 #Temporal until this gets fixed https://github.com/NomicFoundation/hardhat/issues/3877
with:
node-version: 18.15
- run: npm install --global yarn && yarn
name: Install dependencies
- run: yarn build
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/ci-test-meta-code-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@ name: meta-code-verify CI
on:
push:
branches:
- "main"
- 'main'
pull_request:
paths:
- 'packages/core/**'
- '!packages/core/mx/**'
- 'packages/sdk/typescript/human-protocol-sdk/**'
- 'packages/apps/meta-code-verify/**'
workflow_dispatch:

jobs:
Expand All @@ -13,9 +18,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3 #Temporal until this gets fixed https://github.com/NomicFoundation/hardhat/issues/3877
with:
node-version: 18.15
- run: npm install --global yarn && yarn
name: Install dependencies
- run: yarn build
Expand Down
25 changes: 0 additions & 25 deletions .github/workflows/ci-test-node-basemodels.yaml

This file was deleted.

Loading

8 comments on commit 98c3714

@vercel
Copy link

@vercel vercel bot commented on 98c3714 Jul 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

fortune-job-launcher-server – ./packages/examples/fortune/launcher/server

fortune-job-launcher-server-humanprotocol.vercel.app
job-launcher-server.vercel.app
fortune-job-launcher-server-git-main-humanprotocol.vercel.app
job-launcher-server.humanprotocol.org

@vercel
Copy link

@vercel vercel bot commented on 98c3714 Jul 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

fortune-recording-oracle – ./packages/examples/fortune/recording-oracle

fortune-recording-oracle.vercel.app
fortune-recording-oracle-humanprotocol.vercel.app
fortune-recording-oracle-git-main-humanprotocol.vercel.app
recording-server.humanprotocol.org

@vercel
Copy link

@vercel vercel bot commented on 98c3714 Jul 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

escrow-dashboard – ./packages/apps/escrow-dashboard

escrow-dashboard-humanprotocol.vercel.app
escrow-dashboard-git-main-humanprotocol.vercel.app
dashboard.humanprotocol.org

@vercel
Copy link

@vercel vercel bot commented on 98c3714 Jul 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

fortune-reputation-oracle – ./packages/examples/fortune/reputation-oracle

fortune-reputation-oracle-git-main-humanprotocol.vercel.app
fortune-reputation-oracle.vercel.app
fortune-reputation-oracle-humanprotocol.vercel.app
reputation-server.humanprotocol.org

@vercel
Copy link

@vercel vercel bot commented on 98c3714 Jul 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

fortune-exchange-oracle-server – ./packages/examples/fortune/exchange-oracle/server

fortune-exchange-oracle-server.vercel.app
exchange-server.humanprotocol.org
fortune-exchange-oracle-server-git-main-humanprotocol.vercel.app
fortune-exchange-oracle-server-humanprotocol.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 98c3714 Jul 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

fortune-job-launcher-client – ./packages/examples/fortune/launcher/client

job-launcher-client.vercel.app
fortune-job-launcher-client-humanprotocol.vercel.app
fortune-job-launcher-client-git-main-humanprotocol.vercel.app
job-launcher.humanprotocol.org

@vercel
Copy link

@vercel vercel bot commented on 98c3714 Jul 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

fortune-exchange-oracle – ./packages/examples/fortune/exchange-oracle/client

fortune-exchange-oracle-humanprotocol.vercel.app
fortune-exchange-oracle-git-main-humanprotocol.vercel.app
exchange.humanprotocol.org
fortune-exchange-oracle.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 98c3714 Jul 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

faucet-server – ./packages/apps/faucet-server/

faucet-server.vercel.app
faucet-server-git-main-humanprotocol.vercel.app
faucet-server-humanprotocol.vercel.app

Please sign in to comment.