-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from humanprotocol/feat/staking-slashing
Staking/Slashing on Abuse
- Loading branch information
Showing
335 changed files
with
20,440 additions
and
46,061 deletions.
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,26 @@ | ||
name: Node.js Base Models NPM publish | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
node-sdk-publish: | ||
name: Node.js Base Models NPM Publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: yarn --ignore-scripts | ||
name: Install dependencies | ||
- name: Change Package version | ||
uses: jossef/action-set-json-field@v2 | ||
with: | ||
file: ./packages/sdk/typescript/human-protocol-basemodels/package.json | ||
field: version | ||
value: ${{ github.event.release.tag_name }} | ||
- uses: JS-DevTools/npm-publish@v1 | ||
name: Publish | ||
with: | ||
package: ./packages/sdk/typescript/human-protocol-basemodels/package.json | ||
access: public | ||
token: ${{ secrets.NPM_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,38 @@ | ||
name: Python Base Models publish | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
publish-python-basemodels: | ||
name: Publish Python Base Models | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Node | ||
run: yarn --ignore-scripts | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.x" | ||
- name: Install dependencies | ||
working-directory: ./packages/sdk/python/human-protocol-basemodels | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
- name: Set the relase version | ||
uses: "DamianReeves/write-file-action@master" | ||
with: | ||
path: ./packages/sdk/python/human-protocol-basemodels/basemodels/__init__.py | ||
write-mode: overwrite | ||
contents: | | ||
__version__ = "${{ github.event.release.tag_name }}" | ||
- name: Build and publish | ||
working-directory: ./packages/sdk/python/human-protocol-basemodels | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | ||
run: | | ||
make build-package | ||
twine upload dist/* --skip-existing |
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
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,19 @@ | ||
name: Node.js Base Models check | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
node-basemodels-test: | ||
name: Node.js Base Models Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: npm install --global yarn && yarn --ignore-scripts | ||
name: Install dependencies | ||
- run: yarn basemodels:test | ||
name: Run Node.js Base Models Test |
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,26 @@ | ||
name: Python Base Models Check | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
python-test: | ||
name: Python Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: "3.10" | ||
- name: Install pipenv | ||
run: pip install pipenv | ||
- name: Python test | ||
working-directory: ./packages/sdk/python/human-protocol-basemodels | ||
run: | | ||
pipenv install --dev | ||
make run-test |
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 |
---|---|---|
|
@@ -45,6 +45,3 @@ build | |
|
||
#cache | ||
cache | ||
|
||
#test data | ||
data |
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.
c460cc1
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.
Successfully deployed to the following URLs:
human-protocol-escrow-dashboard – ./packages/apps/escrow-dashboard
human-protocol-escrow-dashboard-humanprotocol.vercel.app
human-protocol-escrow-dashboard-git-main-humanprotocol.vercel.app
dashboard.humanprotocol.org
c460cc1
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.
Successfully deployed to the following URLs:
eth-kvstore-gui – ./
eth-kvstore-gui-humanprotocol.vercel.app
eth-kvstore-gui-git-main-humanprotocol.vercel.app
eth-kvstore-gui.vercel.app