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

Release 2025-03-XX #3125

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
f644aa0
chore(deps): bump @tanstack/react-query-persist-client (#3118)
dependabot[bot] Feb 25, 2025
abf31c2
refactor: remove end-to-end testing configurations and related files …
flopez7 Feb 26, 2025
d8d9198
chore(deps-dev): bump vite from 5.4.14 to 6.2.0 (#3124)
dependabot[bot] Feb 26, 2025
589343d
[Human app] Governance banner (#3107)
flopez7 Feb 26, 2025
6879d30
[HUMAN App] chore: cleanup hcaptcha module (#3127)
mpblocky Feb 26, 2025
7225c79
[HUMAN App] chore: move hcaptcha labeling hook to its module (#3128)
mpblocky Feb 26, 2025
76b128d
[HUMAN App] refactor: oracles table data (#2998)
adrian-oleskiewicz Feb 26, 2025
cdc1d89
[HUMAN App] refactor: profile module (#3004)
adrian-oleskiewicz Feb 27, 2025
3501c19
[Reputation Oracle] refactor: web3service and dependent configs (#3115)
dnechay Feb 27, 2025
c046770
fix: add missing env vars to docker setup (#3129)
dnechay Feb 27, 2025
92edc87
Refactor: Remove unused test configurations and dependencies (#3123)
flopez7 Feb 27, 2025
b78f3a8
fix: prevent rendering of governance banner if KYC is not approved (#…
flopez7 Feb 27, 2025
5dbf403
refactor: optimisation of authentication wrappers in the router compo…
flopez7 Feb 27, 2025
8b35076
[HUMAN App] chore: remove unused files (#3135)
mpblocky Feb 28, 2025
1ce0539
[HUMAN App] refactor: email verification pages (#3009)
adrian-oleskiewicz Feb 28, 2025
b7dc8a9
[HUMAN App] chore: move operator profile components to one module (#3…
mpblocky Feb 28, 2025
c58e033
[HUMAN App] fix: show governance banner only for workers (#3139)
dnechay Mar 3, 2025
d7e9a3a
[HUMAN App] refactor: available jobs service (#3032)
adrian-oleskiewicz Mar 3, 2025
0bc3d5a
chore(deps): bump @mui/icons-material from 6.4.4 to 6.4.6 (#3143)
dependabot[bot] Mar 4, 2025
bff7aaf
[Job Launcher] Move routing protocol (#3149)
flopez7 Mar 4, 2025
30f7b5b
fix: typos in documentation files (#3138)
kilavvy Mar 4, 2025
b08c409
[Reputation Oracle] refactor: hCaptcha service (#3148)
dnechay Mar 4, 2025
a7f37fe
[HUMAN APP] refactor: split sign up account type component (#3140)
mpblocky Mar 4, 2025
1bf5802
fix: update HMT price source to CoinLore API (#3152)
flopez7 Mar 5, 2025
31f56be
fix: validate HMT symbol in Coinlore API response (#3156)
flopez7 Mar 5, 2025
b221003
feat: add RateModule and RateService for currency rate management (#3…
flopez7 Mar 5, 2025
64de1ac
[Reputation Oracle] refactor: typeorm usage (#3154)
dnechay Mar 5, 2025
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
12 changes: 0 additions & 12 deletions .github/workflows/ci-test-job-launcher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,6 @@ on:
workflow_dispatch:

jobs:
job-launcher-client-test:
name: Job Launcher Client Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- run: npm install --global yarn && yarn
name: Install dependencies
- run: yarn workspace @human-protocol/job-launcher-client test
name: Run Job Launcher Client test
job-launcher-server-test:
name: Job Launcher Server Test
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"repository": "https://github.com/humanprotocol/human-protocol",
"license": "MIT",
"scripts": {
"test": "concurrently \"yarn workspace @human-protocol/core test\" \"yarn workspace @human-protocol/sdk test\" \"yarn workspace @human-protocol/subgraph test\" \"yarn workspace @human-protocol/faucet-server test\" \"yarn workspace @human-protocol/job-launcher-server test\" \"yarn workspace @human-protocol/job-launcher-client test\" \"yarn workspace @human-protocol/human-app-frontend test\" \"yarn workspace @human-protocol/human-app-server test\" \"yarn workspace @human-protocol/reputation-oracle test\" \"yarn workspace @human-protocol/fortune-exchange-oracle-server test\" \"yarn workspace @human-protocol/fortune-recording-oracle test\"",
"lint": "concurrently \"yarn workspace @human-protocol/core lint\" \"yarn workspace @human-protocol/sdk lint\" \"yarn workspace @human-protocol/subgraph lint\" \"yarn workspace @human-protocol/faucet-client lint\" \"yarn workspace @human-protocol/faucet-server lint\" \"yarn workspace @human-protocol/job-launcher-server lint\" \"yarn workspace @human-protocol/job-launcher-client lint\" \"yarn workspace @human-protocol/human-app-frontend lint\" \"yarn workspace @human-protocol/human-app-server lint\" \"yarn workspace @human-protocol/reputation-oracle lint\" \"yarn workspace @human-protocol/fortune-exchange-oracle-server lint\" \"yarn workspace @human-protocol/fortune-recording-oracle lint\" \"yarn workspace @human-protocol/dashboard-client lint\"",
"test": "concurrently \"yarn workspace @human-protocol/core test\" \"yarn workspace @human-protocol/sdk test\" \"yarn workspace @human-protocol/subgraph test\" \"yarn workspace @human-protocol/faucet-server test\" \"yarn workspace @human-protocol/job-launcher-server test\" \"yarn workspace @human-protocol/human-app-frontend test\" \"yarn workspace @human-protocol/human-app-server test\" \"yarn workspace @human-protocol/reputation-oracle test\" \"yarn workspace @human-protocol/fortune-exchange-oracle-server test\" \"yarn workspace @human-protocol/fortune-recording-oracle test\"",
"lint": "concurrently \"yarn workspace @human-protocol/core lint\" \"yarn workspace @human-protocol/sdk lint\" \"yarn workspace @human-protocol/subgraph lint\" \"yarn workspace @human-protocol/faucet-client lint\" \"yarn workspace @human-protocol/faucet-server lint\" \"yarn workspace @human-protocol/job-launcher-server lint\" \"yarn workspace @human-protocol/job-launcher-client lint\" \"yarn workspace @human-protocol/human-app-frontend lint\" \"yarn workspace @human-protocol/human-app-server lint\" \"yarn workspace @human-protocol/reputation-oracle lint\" \"yarn workspace @human-protocol/fortune-exchange-oracle-server lint\" \"yarn workspace @human-protocol/fortune-recording-oracle lint\" \"yarn workspace @human-protocol/dashboard-client lint\" \"yarn workspace @human-protocol/staking-dashboard-client lint\"",
"prepare": "husky",
"postinstall": "yarn workspace @human-protocol/sdk build"
},
Expand Down
5 changes: 2 additions & 3 deletions packages/apps/dashboard/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"type": "module",
"scripts": {
"start": "vite",
"test": "vitest -u",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
Expand All @@ -17,7 +16,7 @@
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@human-protocol/sdk": "*",
"@mui/icons-material": "^6.2.0",
"@mui/icons-material": "^6.4.6",
"@mui/material": "^5.15.18",
"@mui/styled-engine-sc": "6.4.0",
"@mui/x-data-grid": "^7.23.2",
Expand Down Expand Up @@ -54,7 +53,7 @@
"sass": "^1.85.0",
"stylelint-prettier": "^5.0.0",
"typescript": "^5.6.3",
"vite": "^5.4.7",
"vite": "^6.2.0",
"vite-plugin-svgr": "^4.2.0"
}
}
3 changes: 0 additions & 3 deletions packages/apps/dashboard/server/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,3 @@ S3_BUCKET=
#Web3
WEB3_ENV=
RPC_URL_POLYGON=

# e2e testing
E2E_TESTING_EMAIL_ADDRESS=
3 changes: 0 additions & 3 deletions packages/apps/dashboard/server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ $ yarn run start:prod
# unit tests
$ yarn run test

# e2e tests
$ yarn run test:e2e

# test coverage
$ yarn run test:cov
```
Expand Down
3 changes: 1 addition & 2 deletions packages/apps/dashboard/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json"
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand"
},
"dependencies": {
"@human-protocol/sdk": "*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const DEFAULT_CORS_ALLOWED_ORIGIN = 'http://localhost:3001';
const DEFAULT_CORS_ALLOWED_HEADERS = 'Content-Type, Accept';

const DEFAULT_HMT_PRICE_SOURCE =
'https://api.coingecko.com/api/v3/simple/price?ids=human-protocol&vs_currencies=usd';
'https://api.coinlore.net/api/ticker/?id=53887';
const DEFAULT_HMT_PRICE_FROM = 'human-protocol';
const DEFAULT_HMT_PRICE_TO = 'usd';
const DEFAULT_HCAPTCHA_STATS_SOURCE =
Expand Down Expand Up @@ -53,8 +53,10 @@ export class EnvironmentConfigService {
DEFAULT_HMT_PRICE_SOURCE,
);
}
get hmtPriceSourceApiKey(): string {
return this.configService.getOrThrow<string>('HMT_PRICE_SOURCE_API_KEY');
get hmtPriceSourceApiKey(): string | undefined {
return this.configService.get<string | undefined>(
'HMT_PRICE_SOURCE_API_KEY',
);
}
get hmtPriceFromKey(): string {
return this.configService.get<string>(
Expand Down

This file was deleted.

42 changes: 33 additions & 9 deletions packages/apps/dashboard/server/src/modules/stats/stats.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,22 +321,46 @@ export class StatsService implements OnModuleInit {
return cachedHmtPrice;
}

const headers = this.envConfigService.hmtPriceSourceApiKey
? { 'x-cg-demo-api-key': this.envConfigService.hmtPriceSourceApiKey }
: {};

const { data } = await lastValueFrom(
this.httpService.get(this.envConfigService.hmtPriceSource, {
headers: {
'x-cg-demo-api-key': this.envConfigService.hmtPriceSourceApiKey,
},
}),
this.httpService.get(this.envConfigService.hmtPriceSource, { headers }),
);
const hmtPrice =
data[this.envConfigService.hmtPriceFromKey][
this.envConfigService.hmtPriceToKey
];

let hmtPrice: number;

if (this.envConfigService.hmtPriceSource.includes('coingecko')) {
if (
!data ||
!data[this.envConfigService.hmtPriceFromKey] ||
!data[this.envConfigService.hmtPriceFromKey][
this.envConfigService.hmtPriceToKey
]
) {
throw new Error('Failed to fetch HMT price from CoinGecko API');
}
hmtPrice = parseFloat(
data[this.envConfigService.hmtPriceFromKey][
this.envConfigService.hmtPriceToKey
],
);
} else if (this.envConfigService.hmtPriceSource.includes('coinlore')) {
if (!data || !data[0] || !data[0].price_usd || data[0].symbol !== 'HMT') {
throw new Error('Failed to fetch HMT price from Coinlore API');
}
hmtPrice = parseFloat(data[0].price_usd);
} else {
throw new Error('Unsupported HMT price source');
}

await this.cacheManager.set(
this.redisConfigService.hmtPriceCacheKey,
hmtPrice,
this.redisConfigService.cacheHmtPriceTTL,
);

return hmtPrice;
}

Expand Down
68 changes: 0 additions & 68 deletions packages/apps/dashboard/server/test/app.e2e-spec.ts

This file was deleted.

12 changes: 0 additions & 12 deletions packages/apps/dashboard/server/test/jest-e2e.json

This file was deleted.

6 changes: 0 additions & 6 deletions packages/apps/faucet/client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@
<h1 align="center">HUMAN Faucet</h1>
<p align="center">The HUMAN Faucet allows users to claim small amounts of HMT tokens to test and explore functionalities within the HUMAN Protocol ecosystem.</p>

<p align="center">
<a href="https://github.com/humanprotocol/human-protocol/actions/workflows/ci-test-faucet-ui.yaml">
<img src="https://github.com/humanprotocol/human-protocol/actions/workflows/ci-test-faucet-ui.yaml/badge.svg?branch=main" alt="Faucet Check">
</a>
</p>

## ✨ Demo

First, install the dependencies using `yarn` as the package manager:
Expand Down
8 changes: 3 additions & 5 deletions packages/apps/faucet/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"dependencies": {
"@human-protocol/sdk": "*",
"@mui/icons-material": "^6.2.0",
"@mui/icons-material": "^6.4.6",
"@mui/material": "^5.16.7",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand All @@ -22,17 +22,15 @@
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-react": "^7.34.3",
"eslint-plugin-react-hooks": "^5.1.0",
"vite": "^5.4.7",
"vite-plugin-node-polyfills": "^0.22.0",
"vitest": "^1.6.0"
"vite": "^6.2.0",
"vite-plugin-node-polyfills": "^0.22.0"
},
"scripts": {
"lint": "eslint '**/*.{ts,tsx}'",
"start": "vite",
"build": "vite build",
"preview": "vite preview",
"start-prod": "serve -s dist",
"test": "vitest -u",
"format:prettier": "prettier --write '**/*.{ts,tsx}'",
"format:lint": "eslint --fix '**/*.{ts,tsx}'",
"format": "yarn format:prettier && yarn format:lint",
Expand Down
4 changes: 2 additions & 2 deletions packages/apps/faucet/client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"resolveJsonModule": true,
"downlevelIteration": true,
"baseUrl": "./",
"types": ["node", "jest", "@testing-library/jest-dom"]
"types": ["node"]
},
"include": ["src", "tests"]
"include": ["src"]
}
13 changes: 1 addition & 12 deletions packages/apps/faucet/client/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,7 @@ export default defineConfig(({ mode }) => {
plugins: () => react(),
},
resolve: {
alias: [
{ find: 'src', replacement: path.resolve(__dirname, 'src') },
{ find: 'tests', replacement: path.resolve(__dirname, 'tests') },
],
},
test: {
globals: true,
environment: 'happy-dom',
setupFiles: './tests/setup.ts',
coverage: {
reporter: ['text', 'json', 'html'],
},
alias: [{ find: 'src', replacement: path.resolve(__dirname, 'src') }],
},
optimizeDeps: {
include: ['@human-protocol/sdk'],
Expand Down
5 changes: 2 additions & 3 deletions packages/apps/fortune/exchange-oracle/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"build": "vite build",
"preview": "vite preview",
"start:prod": "serve -s dist",
"test": "vitest run -u",
"format:prettier": "prettier --write \"**/*.{ts,tsx,js,jsx}\"",
"format:lint": "eslint --fix \"**/*.{ts,tsx,js,jsx}\"",
"format": "yarn format:prettier && yarn format:lint"
Expand All @@ -30,7 +29,7 @@
"@mui/material": "^5.16.7",
"@tanstack/query-sync-storage-persister": "^5.59.0",
"@tanstack/react-query": "^5.60.5",
"@tanstack/react-query-persist-client": "^5.51.11",
"@tanstack/react-query-persist-client": "^5.66.9",
"axios": "^1.7.2",
"ethers": "^6.13.5",
"react": "^18.3.1",
Expand All @@ -51,7 +50,7 @@
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-react-refresh": "^0.4.11",
"typescript": "^5.6.3",
"vite": "^5.4.7"
"vite": "^6.2.0"
},
"lint-staged": {
"*.{ts,tsx}": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference types="vitest" />
/// <reference types="vite/client" />

import path from 'path';
Expand Down
3 changes: 0 additions & 3 deletions packages/apps/fortune/exchange-oracle/server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@ $ yarn run start:debug
# unit tests
$ yarn run test

# e2e tests
$ yarn run test:e2e

# test coverage
$ yarn run test:cov
```
Expand Down
1 change: 0 additions & 1 deletion packages/apps/fortune/exchange-oracle/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json",
"setup:local": "ts-node ./test/setup.ts",
"generate-env-doc": "ts-node scripts/generate-env-doc.ts"
},
Expand Down
Loading