Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions .github/workflows/release-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

- name: Check if release already exists
id: release_check
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
github-token: ${{ secrets.RELEASE_GH_TOKEN }}
script: |
Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:
- name: Create GitHub release
id: release
if: ${{ steps.release_check.outputs.exists != 'true' }}
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@v3
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
Expand Down
4 changes: 2 additions & 2 deletions packages/apps/dashboard/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@mui/styled-engine-sc": "7.3.8",
"@mui/system": "^7.3.9",
"@mui/x-data-grid": "^8.7.0",
"@mui/x-date-pickers": "^8.26.0",
"@mui/x-date-pickers": "^9.0.4",
"@tanstack/react-query": "^5.91.3",
"@types/react-router-dom": "^5.3.3",
"@types/recharts": "^1.8.29",
Expand Down Expand Up @@ -56,7 +56,7 @@
"eslint-plugin-prettier": "^5.5.5",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.11",
"eslint-plugin-react-refresh": "^0.5.2",
"globals": "^16.2.0",
"prettier": "^3.8.1",
"sass": "^1.89.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/apps/dashboard/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@golevelup/ts-jest": "^3.0.0",
"@nestjs/cli": "^11.0.16",
"@nestjs/schematics": "^11.0.9",
"@nestjs/testing": "^11.1.14",
"@nestjs/testing": "^11.1.19",
"@types/express": "^5.0.6",
"@types/jest": "30.0.0",
"@types/node": "22.10.5",
Expand Down
4 changes: 2 additions & 2 deletions packages/apps/dashboard/server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
"target": "es2023",
"sourceMap": true,
"outDir": "./dist",
"baseUrl": "./",
"incremental": true,
"skipLibCheck": true,
"strictNullChecks": false,
"noImplicitAny": false,
"strictBindCallApply": false,
"forceConsistentCasingInFileNames": false,
"noFallthroughCasesInSwitch": false,
"esModuleInterop": true
"esModuleInterop": true,
"types": ["node", "jest"]
}
}
1 change: 0 additions & 1 deletion packages/apps/faucet/client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"jsx": "react-jsx",
"resolveJsonModule": true,
"downlevelIteration": true,
"baseUrl": "./",
"types": ["node"]
},
"include": ["src"]
Expand Down
3 changes: 2 additions & 1 deletion packages/apps/faucet/server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"outDir": "build",
"useUnknownInCatchVariables": false,
"strictNullChecks": false,
"allowJs": true
"allowJs": true,
"types": ["node", "jest"]
}
}
2 changes: 1 addition & 1 deletion packages/apps/fortune/exchange-oracle/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@vitejs/plugin-react": "^4.3.1",
"eslint": "^10.1.0",
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-react-refresh": "^0.4.11",
"eslint-plugin-react-refresh": "^0.5.2",
"globals": "^16.3.0",
"prettier": "^3.8.1",
"typescript": "^5.6.3",
Expand Down
1 change: 0 additions & 1 deletion packages/apps/fortune/exchange-oracle/client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"jsx": "react-jsx",
"resolveJsonModule": true,
"downlevelIteration": true,
"baseUrl": ".",
"types": ["node", "jest", "@testing-library/jest-dom"]
},
"include": ["src", "tests"]
Expand Down
6 changes: 3 additions & 3 deletions packages/apps/fortune/exchange-oracle/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"minio": "8.0.6",
"passport": "^0.7.0",
"passport-jwt": "^4.0.1",
"pg": "8.13.1",
"pg": "8.20.0",
"reflect-metadata": "^0.2.2",
"rxjs": "^7.2.0",
"typeorm": "^0.3.28",
Expand All @@ -65,14 +65,14 @@
"@golevelup/ts-jest": "^3.0.0",
"@nestjs/cli": "^11.0.16",
"@nestjs/schematics": "^11.0.9",
"@nestjs/testing": "^11.1.14",
"@nestjs/testing": "^11.1.19",
"@types/body-parser": "^1",
"@types/express": "^5.0.6",
"@types/jest": "30.0.0",
"@types/jsonwebtoken": "^9.0.7",
"@types/node": "22.10.5",
"@types/passport": "^1",
"@types/pg": "8.11.10",
"@types/pg": "8.20.0",
"eslint": "^10.1.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jest": "^29.15.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/apps/fortune/exchange-oracle/server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
"target": "es2023",
"sourceMap": true,
"outDir": "./dist",
"baseUrl": "./",
"incremental": true,
"skipLibCheck": true,
"strictNullChecks": true,
"noImplicitAny": true,
"strictBindCallApply": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"esModuleInterop": true
"esModuleInterop": true,
"types": ["node", "jest"]
}
}
4 changes: 2 additions & 2 deletions packages/apps/fortune/recording-oracle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"class-transformer": "^0.5.1",
"class-validator": "0.14.1",
"dotenv": "^17.2.2",
"helmet": "^7.1.0",
"helmet": "^8.1.0",
"joi": "^17.13.3",
"minio": "8.0.6",
"reflect-metadata": "^0.2.2",
Expand All @@ -46,7 +46,7 @@
"@eslint/js": "^10.0.1",
"@nestjs/cli": "^11.0.16",
"@nestjs/schematics": "^11.0.9",
"@nestjs/testing": "^11.1.14",
"@nestjs/testing": "^11.1.19",
"@types/express": "^5.0.6",
"@types/jest": "^29.5.14",
"@types/node": "^22.15.16",
Expand Down
1 change: 1 addition & 0 deletions packages/apps/fortune/recording-oracle/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"strictNullChecks": true,
"strictPropertyInitialization": false,
"baseUrl": ".",
"types": ["node", "jest"],
"paths": {
"@/*": ["src/*"]
}
Expand Down
4 changes: 2 additions & 2 deletions packages/apps/human-app/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@mui/icons-material": "^7.3.8",
"@mui/material": "^5.16.7",
"@mui/system": "^7.3.9",
"@mui/x-date-pickers": "^8.26.0",
"@mui/x-date-pickers": "^9.0.4",
"@reown/appkit": "^1.7.11",
"@reown/appkit-adapter-wagmi": "^1.7.11",
"@synaps-io/verify-sdk": "^4.0.45",
Expand Down Expand Up @@ -75,7 +75,7 @@
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-prettier": "^5.5.5",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.11",
"eslint-plugin-react-refresh": "^0.5.2",
"globals": "^16.3.0",
"husky": "^9.1.6",
"jsdom": "^25.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export enum JobType {
POLYGONS = 'image_polygons',
AUDIO_TRANSCRIPTION = 'audio_transcription',
AUDIO_ATTRIBUTE_ANNOTATION = 'audio_attribute_annotation',
SOCIAL_MEDIA_PROMOTION = 'social_media_promotion',
}

export const EthKVStoreKeys = {
Expand Down
3 changes: 2 additions & 1 deletion packages/apps/human-app/frontend/src/shared/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@
"image_skeletons_from_boxes": "Skeletons from Bounding Boxes",
"image_polygons": "Polygons",
"audio_transcription": "Audio Transcription",
"audio_attribute_annotation": "Audio Attribute Annotation"
"audio_attribute_annotation": "Audio Attribute Annotation",
"social_media_promotion": "Social Media Promotion"
}
}
2 changes: 1 addition & 1 deletion packages/apps/human-app/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"@eslint/js": "^10.0.1",
"@nestjs/cli": "^11.0.16",
"@nestjs/schematics": "^11.0.9",
"@nestjs/testing": "^11.1.14",
"@nestjs/testing": "^11.1.19",
"@types/express": "^5.0.6",
"@types/jest": "30.0.0",
"@types/jsonwebtoken": "^9.0.7",
Expand Down
6 changes: 3 additions & 3 deletions packages/apps/human-app/server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"target": "es2023",
"sourceMap": true,
"outDir": "./dist",
"baseUrl": "./",
"incremental": true,
"skipLibCheck": true,
"strictNullChecks": true,
Expand All @@ -19,6 +18,7 @@
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"esModuleInterop": true,
"resolveJsonModule": true
"resolveJsonModule": true,
"types": ["node", "jest"]
}
}
}
4 changes: 2 additions & 2 deletions packages/apps/job-launcher/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
"@mui/lab": "^7.0.0-beta.17",
"@mui/material": "^5.16.7",
"@mui/system": "^7.3.9",
"@mui/x-date-pickers": "^8.26.0",
"@mui/x-date-pickers": "^9.0.4",
"@reduxjs/toolkit": "^2.5.0",
"@stripe/react-stripe-js": "^3.0.0",
"@stripe/stripe-js": "^4.2.0",
"@tanstack/query-sync-storage-persister": "^5.68.0",
"@tanstack/react-query": "^5.91.3",
"@tanstack/react-query-persist-client": "^5.80.7",
"axios": "^1.1.3",
"copy-to-clipboard": "^3.3.3",
"copy-to-clipboard": "^4.0.2",
"dayjs": "^1.11.12",
"decimal.js": "^10.6.0",
"ethers": "^6.16.0",
Expand Down
1 change: 0 additions & 1 deletion packages/apps/job-launcher/client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"jsx": "react-jsx",
"resolveJsonModule": true,
"downlevelIteration": true,
"baseUrl": ".",
"types": ["node", "jest"]
},
"include": ["src", "tests"]
Expand Down
6 changes: 3 additions & 3 deletions packages/apps/job-launcher/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@
"class-validator": "0.14.1",
"decimal.js": "^10.6.0",
"dotenv": "^17.2.2",
"helmet": "^7.1.0",
"helmet": "^8.1.0",
"joi": "^17.13.3",
"json-stable-stringify": "^1.2.1",
"minio": "8.0.6",
"nestjs-minio-client": "^2.2.0",
"node-cache": "^5.1.2",
"passport": "^0.7.0",
"passport-jwt": "^4.0.1",
"pg": "8.13.1",
"pg": "8.20.0",
"reflect-metadata": "^0.2.2",
"rxjs": "^7.2.0",
"stripe": "^17.7.0",
Expand All @@ -80,7 +80,7 @@
"@golevelup/ts-jest": "^3.0.0",
"@nestjs/cli": "^11.0.16",
"@nestjs/schematics": "^11.0.9",
"@nestjs/testing": "^11.1.14",
"@nestjs/testing": "^11.1.19",
"@types/bcrypt": "^6.0.0",
"@types/express": "^5.0.6",
"@types/jest": "30.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
ValidatorConstraint,
ValidatorConstraintInterface,
} from 'class-validator';
import { JobDto } from 'src/modules/job/job.dto';
import { JobDto } from '../../modules/job/job.dto';
import { TOKEN_ADDRESSES } from '../constants/tokens';
import { ChainId } from '@human-protocol/sdk';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
JobCountDto,
} from '../statistic/statistic.dto';
import { convertToDatabaseSortDirection } from '../../database/database.utils';
import { PaymentSource } from 'src/common/enums/payment';
import { PaymentSource } from '../../common/enums/payment';

@Injectable()
export class JobRepository extends BaseRepository<JobEntity> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ import { JobRepository } from './job.repository';
@Injectable()
export class JobService {
private readonly logger = logger.child({ context: JobService.name });
public readonly bucket: string;
private cronJobRepository: CronJobRepository;
private cronJobRepository!: CronJobRepository;

constructor(
@Inject(Web3Service)
Expand Down Expand Up @@ -454,7 +453,7 @@ export class JobService {
});

return new PageDto(data.page!, data.pageSize!, itemCount, jobs);
} catch (error) {
} catch (error: any) {
throw new ServerError(error.message, error.stack);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ import {

@Injectable()
export class ManifestService {
public readonly bucket: string;

constructor(
private readonly web3Service: Web3Service,
private readonly cvatConfigService: CvatConfigService,
Expand Down
4 changes: 2 additions & 2 deletions packages/apps/job-launcher/server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
"target": "es2023",
"sourceMap": true,
"outDir": "./dist",
"baseUrl": "./",
"incremental": true,
"skipLibCheck": true,
"strictNullChecks": true,
"noImplicitAny": true,
"strictBindCallApply": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"esModuleInterop": true
"esModuleInterop": true,
"types": ["node", "jest"]
}
}
6 changes: 3 additions & 3 deletions packages/apps/reputation-oracle/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@
"class-validator": "^0.14.1",
"dotenv": "^17.2.2",
"ethers": "~6.16.0",
"helmet": "^7.1.0",
"helmet": "^8.1.0",
"joi": "^17.13.3",
"json-stable-stringify": "^1.2.1",
"lodash": "^4.17.21",
"minio": "8.0.6",
"passport": "^0.7.0",
"passport-jwt": "^4.0.1",
"pg": "8.13.1",
"pg": "8.20.0",
"reflect-metadata": "^0.2.2",
"rxjs": "^7.2.0",
"typeorm": "^0.3.28",
Expand All @@ -78,7 +78,7 @@
"@golevelup/ts-jest": "^3.0.0",
"@nestjs/cli": "^11.0.16",
"@nestjs/schematics": "^11.0.9",
"@nestjs/testing": "^11.1.14",
"@nestjs/testing": "^11.1.19",
"@types/bcrypt": "^6.0.0",
"@types/express": "^5.0.6",
"@types/jest": "30.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const RPC_URL = isLocalEnv
: process.env.RPC_URL_POLYGON_AMOY;

const DEFAULT_SUPPORTED_JOB_TYPES =
'fortune,image_boxes,image_boxes_from_points,image_points,image_polygons,image_skeletons_from_boxes';
'fortune,social_media_promotion,image_boxes,image_boxes_from_points,image_points,image_polygons,image_skeletons_from_boxes';
const ROLE = Role.ReputationOracle;

async function setupCommonValues(kvStoreClient: KVStoreClient): Promise<void> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ export enum FortuneJobType {
FORTUNE = 'fortune',
}

export enum MarketingJobType {
SOCIAL_MEDIA_PROMOTION = 'social_media_promotion',
}

export enum CvatJobType {
IMAGE_BOXES = 'image_boxes',
IMAGE_POINTS = 'image_points',
Expand Down
Loading
Loading