Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
4f3bcc1
feat: mass payout - wip
themariofrancia Sep 18, 2025
b041d40
refactor: replace tsc with nest build in mass-payout sdk
themariofrancia Sep 18, 2025
24221eb
chore: mode to modules
themariofrancia Sep 22, 2025
3f623ad
chore: add overrides for i18next in mass-payout frontend package.json
themariofrancia Sep 22, 2025
bc6915c
feat: add DeployContract
themariofrancia Sep 22, 2025
f62e83d
chore: align @hashgraph/sdk version across packages
themariofrancia Sep 22, 2025
51793ec
chore: update all dependencies
themariofrancia Sep 22, 2025
6374fd6
chore: align versions
themariofrancia Sep 23, 2025
8dbe355
fix: ats dependencies
ManuIOB Sep 23, 2025
11ac923
chore: update polyfills and remove unused overrides
themariofrancia Sep 23, 2025
b80ba3d
chore: adjust project
themariofrancia Sep 23, 2025
a82ae28
feat: added MP compatibility
themariofrancia Sep 24, 2025
e7a79db
Merge remote-tracking branch 'origin/develop' into feat/mass-payour-m…
themariofrancia Sep 24, 2025
a3d4d53
chore: update dependency versions and align overrides
themariofrancia Sep 24, 2025
64de8f1
chore: enable build and test steps for mass-payout workflow
themariofrancia Sep 24, 2025
4af1316
chore: update jest config
themariofrancia Sep 24, 2025
e5ffbe2
chore: update test scripts and workflows for CI compatibility
themariofrancia Sep 24, 2025
6fcc59a
chore: include contracts CI tests in `ats:test:ci` script
themariofrancia Sep 24, 2025
fe045ee
chore: fix tests
themariofrancia Sep 24, 2025
d18151e
chore: fix tests
themariofrancia Sep 24, 2025
24e603a
chore: fix tests
themariofrancia Sep 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .github/workflows/mp.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ jobs:
- name: Install dependencies
run: npm ci

# - name: Build mass-payout
# run: npm run mp:build
- name: Build mass-payout
run: npm run mass-payout:build

# - name: Test mass-payout
# run: npm run mp:test
- name: Test mass-payout
run: npm run mass-payout:test
435 changes: 153 additions & 282 deletions README.md

Large diffs are not rendered by default.

22 changes: 9 additions & 13 deletions apps/ats/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"rimraf": "^6.0.1",
"ts-jest": "^29.1.0",
"ts-xor": "^1.1.0",
"typescript": "4.9.5",
"typescript": "5.3.3",
"util": "^0.12.5",
"vite": "4.5.5",
"vite-plugin-environment": "^1.1.3",
Expand All @@ -64,22 +64,18 @@
"@hashgraph/asset-tokenization-sdk": "file:../../../packages/ats/sdk",
"@tanstack/react-query": "^4.35.3",
"framer-motion": "^10.16.4",
"i18next": "23.5.1",
"i18next-browser-languagedetector": "7.1.0",
"io-bricks-ui": "^2.7.4",
"i18next": "23.10.1",
"i18next-browser-languagedetector": "7.2.0",
"io-bricks-ui": "2.7.4",
"@phosphor-icons/react": "2.0.9",
"named-urls": "^2.0.1",
"react": "^18.2.0",
"react-device-detect": "^2.2.3",
"react-dom": "^18.2.0",
"react-hook-form": "^7.41.5",
"react-i18next": "^13.2.0",
"react-router-dom": "^6.10.0",
"react-hook-form": "7.41.5",
"react-i18next": "13.2.0",
"react-router-dom": "6.10.0",
"use-react-router-breadcrumbs": "^4.0.1",
"zustand": "^4.4.1"
},
"overrides": {
"ws": "7.5.10",
"elliptic": "6.6.1",
"path-to-regexp": "6.3.0"
"zustand": "4.4.1"
}
}
2 changes: 1 addition & 1 deletion apps/ats/web/src/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ declare module 'i18next' {
}

i18n
.use(initReactI18next)
.use(LanguageDetector)
.use(initReactI18next)
.init({
defaultNS: 'globals',
detection: {
Expand Down
46 changes: 0 additions & 46 deletions apps/mass-payout/README.md

This file was deleted.

20 changes: 20 additions & 0 deletions apps/mass-payout/backend/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
NODE_ENV=local
APP_ENV=local
LOG_LEVEL=log
PORT=3000
POSTGRESQL_HOST=localhost
POSTGRESQL_PORT=5432
POSTGRESQL_USER=postgres
POSTGRESQL_PASSWORD=postgres
POSTGRESQL_DB=postgres
BATCH_SIZE=100

# Mainnet
#BLOCKCHAIN_MIRROR_NODE_URL=https://mainnet-public.mirrornode.hedera.com
#BLOCKCHAIN_CONTRACT_ID=0.0.456858
# Testnet
BLOCKCHAIN_MIRROR_NODE_URL=https://testnet.mirrornode.hedera.com
BLOCKCHAIN_CONTRACT_ID=0.0.429274
BLOCKCHAIN_TOKEN_DECIMALS=6
BLOCKCHAIN_LISTENER_POLL_TIMEOUT=10000
BLOCKCHAIN_LISTENER_START_TIMESTAMP=2025-08-26T00:00:00.000Z
10 changes: 10 additions & 0 deletions apps/mass-payout/backend/.env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
APP_ENV=local
LOG_LEVEL=log
PORT=3000
HEDERA_USDC_ADDRESS=0.0.123456

BLOCKCHAIN_MIRROR_NODE_URL=https://testnet.mirrornode.hedera.com
BLOCKCHAIN_CONTRACT_ID=0.0.429274
BLOCKCHAIN_TOKEN_DECIMALS=6
BLOCKCHAIN_LISTENER_POLL_TIMEOUT=10000
BLOCKCHAIN_LISTENER_START_TIMESTAMP=2025-08-26T00:00:00.000Z
7 changes: 7 additions & 0 deletions apps/mass-payout/backend/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"singleQuote": false,
"semi": false,
"printWidth": 120,
"tabWidth": 2,
"endOfLine": "lf"
}
10 changes: 10 additions & 0 deletions apps/mass-payout/backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM node:22.17.0
RUN DEBIAN_FRONTEND=noninteractive apt update -y && apt dist-upgrade -y && apt clean
RUN mkdir /app
COPY . /app
WORKDIR /app
RUN npm install
ENV PATH=/app/node_modules/.bin:$PATH
RUN npm run build
EXPOSE 3000
CMD ["npm", "run", "start:prod"]
83 changes: 83 additions & 0 deletions apps/mass-payout/backend/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# Scheduler Payment Distribution service

## Table of Contents

- [Installation](#installation)
- [Running the app](#running-the-app)
- [Test](#test)

## Installation

install node version `22.17.0`

Create a `.env` file with the following command:

```bash
cp .env.example .env
```

Install dependencies with the following command:

```bash
npm install
```

Start the postgres database with the docker-compose file:

```bash
docker-compose up -d
```

## Running the app

```bash
# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod
```

## Test

```bash
# all tests
$ npm run test

# unit tests
$ npm run test:unit

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov
```

# IDE configuration

## VSCode

1. Install both [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) and
[Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) plugins.
2. Open VSCode's preferences: command + shift + p -> search for 'open user settings (JSON)'
3. Copy these parameters:

```json
"editor.formatOnPaste": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
```

## IntelliJ

1. Open settings
2. Navigate to Languages & Frameworks > Javascript > Prettier
3. Check both 'Automatic Prettier configuration' & 'Run on save'
4. Navigate to Tools > Actions on Save
5. Check 'Optimize imports'
13 changes: 13 additions & 0 deletions apps/mass-payout/backend/babel.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export default {
presets: [
[
"@babel/preset-env",
{
targets: {
node: "current",
},
modules: "commonjs",
},
],
],
}
9 changes: 9 additions & 0 deletions apps/mass-payout/backend/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
services:
db:
image: postgres:latest
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- "5432:5432"
Loading