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

Alignment of main human protocol repository with forked one #26

Merged
merged 64 commits into from
Mar 14, 2024

Conversation

macnablocky
Copy link
Collaborator

Alignment of main human protocol repository with forked one

BartoszSolkaBD and others added 30 commits February 20, 2024 17:16
* Bump semver from 5.7.1 to 5.7.2 (humanprotocol#674)

Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
- [Commits](npm/node-semver@v5.7.1...v5.7.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: packages/examples/fortune/launcher/client/Dockerfile to reduce vulnerabilities (humanprotocol#770)

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-DEBIAN10-PYTHON37-1570178
- https://snyk.io/vuln/SNYK-DEBIAN10-PYTHON37-2764966
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-5741793
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-5741794
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-5741889

Co-authored-by: snyk-bot <snyk-bot@snyk.io>

* fix: packages/examples/fortune/exchange-oracle/client/Dockerfile to reduce vulnerabilities (humanprotocol#771)

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-DEBIAN10-PYTHON37-1570178
- https://snyk.io/vuln/SNYK-DEBIAN10-PYTHON37-2764966
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-5741793
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-5741794
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-5741889

Co-authored-by: snyk-bot <snyk-bot@snyk.io>

* feat: add initial NestJS project setup

* Adds Project structure section in documentation

* feat: add swagger setup

* feat: add env config service

* feat: redirection to swagger endpoint

* feat: add worker registration

* feat: separation auth logic to new module

* feat: separation api integration logic

* feat: add command type class for business layer

* bug fixed

* feat: add logger

* feat: add env variable service and validation

* chore: rename integration service to gateway

* Adds unit test configuration, fixes unit test

* chore: code refactoring

* feat: Adds operator-registration DRAFT

* feat: Adds operator-registration DRAFT

* feat: Adds operator-registration UNDRAFT

* feat: Adds operator-registration fixes after testing

* chore: adds service mocks

* chore: reworks integrations directory, adds config module, updates README

* chore: adds unit tests for Reputation Oracle Gateway, fixes bug

* chore: review fixes

* chore: adds unit tests for controllers and services, adds and reworks mocks, moves spec related files to separate directory

* Chore: Removes unnecessary mapper

* Chore: Changes in directory naming

* Chore: Adds common data type interfaces requested in reputation oracle gateway, removes unnecessary config module

* Update worker.controller.spec.ts

* Update reputation-oracle.gateway.spec.ts

* Chore: minor fixes in test names, removal of unnecessary mapper in test

* bug fixed

* feat: add signin user worker endpoint

* feat: add signin user worker unit tests

* E2e testing (#7)

## Description

Addition of end to end test, and its configuration,

## Summary of changes

* e2e user worker tests
* e2e user operator tests
* e2s jest configuration
* fixes

## Related issues
Fixes #2 
Fixes #3

* feat: add tests for worker signin

* feat: create new environment config for e2e tests

* chore: worker controller better test naming

* chore: removed unused service file

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: portuu3 <61605646+portuu3@users.noreply.github.com>
Co-authored-by: portuu3 <adrian.portugues.mas@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: basit511 <101107213+basit511@users.noreply.github.com>
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Co-authored-by: CryptoRush <98655210+leric7@users.noreply.github.com>
Co-authored-by: Michał Walczak <michal.walczak@blockydevs.com>
Co-authored-by: maciek.nabialek <maciej.nabialek@blockydevs.com>
Co-authored-by: MWBlocky <137490000+MWBlocky@users.noreply.github.com>
Co-authored-by: macnablocky <143715306+macnablocky@users.noreply.github.com>
Modify the previous preWeb3SignUp endpoint to make it generic
* feat: add governance contracts

* fix: change files

* fix: hardhat config

* feat: deploy scripts

* fix : deploy script

* feat: deploy hub contract

* feat: deploy spokes

* fix: lint code

* fix: deploy-spokes
lint

* fix: remove dependencies

* feat: governor tests

* add: function helpers for governor tests

* feat: allow voting on proposals

* feat: fix package.json

* feat: refactor helper functions into GovernanceUtils.ts

* fix: event proposalId

* fix: event proposalId

* fix governance test utils

* add more tests

* add wormhole mock

* fix worm hole mock

* fix worm hole mock

* finish spokedao test

* more tests
fix test

* feat: more tests

* feat: add current changes

* fix conflicts

* fix meta human governor test

* commit
fix : changes

* feat: more tests

* feat : 10 tests left

* feat: add function signature + tests

* tests for governance

* fix some tests

* fix proposal success

* fix proposal success

* remove console log from governor contract

* fix all tests except same block test

* add : signature functions

* --amend

* test with signature

* clean metahuman governor test

* fix delayed vote test

* fix cast vote by sig

* fix: undo double quotes

* undo double quotes

* fix: prettier location

* undo double quotes

* fix changes

* fix changes

* fix governor setup

* remove console/hardhat

* fix changes

---------

Co-authored-by: Eric Lee <eric@hmt.ai>
Bumps @graphprotocol/graph-cli from 0.64.1 to 0.68.3.

---
updated-dependencies:
- dependency-name: "@graphprotocol/graph-cli"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.23.8 to 7.23.9.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.9/packages/babel-preset-env)

---
updated-dependencies:
- dependency-name: "@babel/preset-env"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [@mui/icons-material](https://github.com/mui/material-ui/tree/HEAD/packages/mui-icons-material) from 5.15.3 to 5.15.11.
- [Release notes](https://github.com/mui/material-ui/releases)
- [Changelog](https://github.com/mui/material-ui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mui/material-ui/commits/v5.15.11/packages/mui-icons-material)

---
updated-dependencies:
- dependency-name: "@mui/icons-material"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…sed on annotation quality (humanprotocol#1618)

* increase/decrease worker reputation based on annotation quality

* fix reputation assessment for cvat jobs
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.10.4 to 20.11.20.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Update last solve endpoint to the new webhook structure
Update wrong webhook model in exchange oracle

* Exclude base endpoind and fix webhook path

* Add api description and fix path
mrhouzlane and others added 27 commits March 1, 2024 11:09
SRC-10: add custom errors
SRC-10: add custom errors
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 5.1.2 to 5.1.3.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/master/CHANGELOG.md)
- [Commits](prettier/eslint-plugin-prettier@v5.1.2...v5.1.3)

---
updated-dependencies:
- dependency-name: eslint-plugin-prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react) from 3.1.0 to 4.2.1.
- [Release notes](https://github.com/vitejs/vite-plugin-react/releases)
- [Changelog](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite-plugin-react/commits/v4.2.1/packages/plugin-react)

---
updated-dependencies:
- dependency-name: "@vitejs/plugin-react"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [@nestjs/schedule](https://github.com/nestjs/schedule) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/nestjs/schedule/releases)
- [Changelog](https://github.com/nestjs/schedule/blob/master/.release-it.json)
- [Commits](nestjs/schedule@4.0.0...4.0.1)

---
updated-dependencies:
- dependency-name: "@nestjs/schedule"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…1640)

* feat: update KVStoreClient SDK

* fix get public key

* [SDK] feat: Use snake case for KVStore keys [humanprotocol#1605] (humanprotocol#1659)

* use snake case for kvstore keys

* update doc

* fix subgraph backward compatibility
* Send a webhook from Reputation Oracle to Job Launcher and Recording Oracle once the escrow is completed

* Handle escrow_completed event in Job Launcher

* Update name from escrowCompletedWebhook to completeJob in webhook.service.ts
…l#1555)

* fortune oracle fixes and development env setups

* fix lint issues

* fix tests

* set up subgraph local env

* run fortune locally

* fix Fortune exchange oracle tests

* fix Fortune recording oracle tests

* change node env to local

* fix Fortune recording oracle tests

* fix sdk tests

* add readme, fix rep oracle tests and create env files

* map database folder so that data persists after stopping the db

* fix recording oracle tests

* remove unused JL fee env variable

* use env variables for jl setup script

* fix recording oracle modules dependencies

* remove unnecessary imports
…ocol#1680)

* feat: secure cron jobs for vercel

* add vercel cron job

* undo typeorm change
- add scripts for governance setup
* fix: remove fortune check badge from readme

* update monorepo structure doc
Bumps [stripe](https://github.com/stripe/stripe-node) from 14.17.0 to 14.20.0.
- [Release notes](https://github.com/stripe/stripe-node/releases)
- [Changelog](https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md)
- [Commits](stripe/stripe-node@v14.17.0...v14.20.0)

---
updated-dependencies:
- dependency-name: stripe
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [web-vitals](https://github.com/GoogleChrome/web-vitals) from 3.5.1 to 3.5.2.
- [Changelog](https://github.com/GoogleChrome/web-vitals/blob/main/CHANGELOG.md)
- [Commits](GoogleChrome/web-vitals@v3.5.1...v3.5.2)

---
updated-dependencies:
- dependency-name: web-vitals
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library) from 14.1.2 to 14.2.1.
- [Release notes](https://github.com/testing-library/react-testing-library/releases)
- [Changelog](https://github.com/testing-library/react-testing-library/blob/main/CHANGELOG.md)
- [Commits](testing-library/react-testing-library@v14.1.2...v14.2.1)

---
updated-dependencies:
- dependency-name: "@testing-library/react"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [hardhat](https://github.com/nomiclabs/hardhat) from 2.19.4 to 2.21.0.
- [Release notes](https://github.com/nomiclabs/hardhat/releases)
- [Commits](https://github.com/nomiclabs/hardhat/compare/hardhat@2.19.4...hardhat@2.21.0)

---
updated-dependencies:
- dependency-name: hardhat
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Setup database in fortune exchange oracle

* Add yarn build to exchange oracle db commands
@macnablocky macnablocky self-assigned this Mar 14, 2024
@BartoszSolkaBD BartoszSolkaBD merged commit 9a5f454 into main Mar 14, 2024
16 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants