Skip to content

Commit 818a530

Browse files
refactor: monorepo workspaces migration (#565)
Signed-off-by: Miguel_LZPF <miguel.carpena@io.builders> Signed-off-by: Mario Francia <mario@io.builders> Co-authored-by: Mario Francia <mario@io.builders>
1 parent ea6b86e commit 818a530

File tree

2,347 files changed

+81430
-68704
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,347 files changed

+81430
-68704
lines changed

.github/dependabot.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
version: 2
22
updates:
3-
- package-ecosystem: "github-actions"
4-
directory: "/"
3+
- package-ecosystem: 'github-actions'
4+
directory: '/'
55
schedule:
6-
interval: "daily"
6+
interval: 'daily'
77
open-pull-requests-limit: 10
88
- package-ecosystem: npm
9-
directory: "/"
9+
directory: '/'
1010
schedule:
11-
interval: "weekly"
11+
interval: 'weekly'
1212
open-pull-requests-limit: 10
1313
versioning-strategy: increase
1414
ignore:
1515
# For all packages, ignore all minor & patch updates
16-
- dependency-name: "*"
16+
- dependency-name: '*'
1717
update-types:
18-
[ "version-update:semver-minor", "version-update:semver-patch" ]
18+
['version-update:semver-minor', 'version-update:semver-patch']

.github/pull_request_template.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ Fixes #(issue)
1515

1616
## Type of change
1717

18-
- [ ] Bug fix 🐞
19-
- [ ] New feature ✨
20-
- [ ] Breaking change 💥
21-
- [ ] Documentation update 📖
22-
- [ ] Refactor 🔧
18+
- [ ] Bug fix 🐞
19+
- [ ] New feature ✨
20+
- [ ] Breaking change 💥
21+
- [ ] Documentation update 📖
22+
- [ ] Refactor 🔧
2323

2424
## Testing
2525

@@ -42,15 +42,15 @@ For example:
4242

4343
**Node version**:
4444

45-
- [ ] 20
46-
- [ ] 22
47-
- [ ] 24
45+
- [ ] 20
46+
- [ ] 22
47+
- [ ] 24
4848

4949
## Checklist
5050

51-
- [ ] Style Guidelines followed ✅
52-
- [ ] Documentation Updated 📚
53-
- [ ] **Linters** - No New Warnings ⚠️
54-
- [ ] Local Tests Pass ✅
55-
- [ ] Effective Tests Added ✔️
56-
- [ ] No reduction of **Coverage**
51+
- [ ] Style Guidelines followed ✅
52+
- [ ] Documentation Updated 📚
53+
- [ ] **Linters** - No New Warnings ⚠️
54+
- [ ] Local Tests Pass ✅
55+
- [ ] Effective Tests Added ✔️
56+
- [ ] No reduction of **Coverage**

.github/workflows/all.publish.yml

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: Publishing
2+
23
on:
34
release:
45
types:
56
- published
7+
68
permissions:
79
contents: read
810

@@ -11,9 +13,6 @@ jobs:
1113
name: Publish NPM Packages
1214
runs-on: ubuntu-latest
1315

14-
permissions:
15-
contents: read
16-
1716
steps:
1817
- name: Harden Runner
1918
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
@@ -32,24 +31,28 @@ jobs:
3231
run: |
3332
touch .npmrc
3433
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc
35-
cp .npmrc ./contracts/.npmrc
36-
cp .npmrc ./sdk/.npmrc
34+
cp .npmrc ./packages/ats/contracts/.npmrc
35+
cp .npmrc ./packages/ats/sdk/.npmrc
3736
38-
- name: Change references
39-
run: ./changeProjectsReferencesToRepo.sh
37+
- name: Install dependencies
38+
run: npm ci
4039

41-
- name: Install contracts dependencies
42-
run: npm run install:contracts
43-
44-
- name: Publish contracts package
45-
run: npm run publish:contracts --access=public
40+
# --- ATS publishing ---
41+
- name: Publish ats/contracts
42+
if: contains(github.ref_name, 'ats')
43+
run: npm run ats:contracts:publish --access=public
4644
env:
4745
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4846

49-
- name: Install sdk dependencies
50-
run: npm run install:sdk
47+
- name: Publish ats/sdk
48+
if: contains(github.ref_name, 'ats')
49+
run: npm run ats:sdk:publish --access=public
50+
env:
51+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5152

52-
- name: Publish sdk package
53-
run: npm run publish:sdk --access=public
53+
# --- Mass Payout publishing ---
54+
- name: Publish mass-payout
55+
if: contains(github.ref_name, 'mp')
56+
run: npm run mass-payout:publish --access=public
5457
env:
5558
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/all.test.yml

Lines changed: 0 additions & 105 deletions
This file was deleted.

.github/workflows/ats.test.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: Tests ATS
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
paths:
8+
- 'packages/ats/**'
9+
- 'apps/ats/**'
10+
- 'package.json'
11+
- '.github/workflows/*ats*.yml'
12+
- '.github/workflows/*ats*.yaml'
13+
workflow_dispatch:
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
test-ats:
20+
name: testing
21+
runs-on: token-studio-linux-large
22+
env:
23+
NODE_OPTIONS: '--max-old-space-size=32768'
24+
CONTRACT_SIZER_RUN_ON_COMPILE: 'false'
25+
REPORT_GAS: 'false'
26+
CLIENT_PRIVATE_KEY_ECDSA_1: ${{ secrets.CLIENT_PRIVATE_KEY_ECDSA_1 }}
27+
CLIENT_PUBLIC_KEY_ECDSA_1: ${{ secrets.CLIENT_PUBLIC_KEY_ECDSA_1 }}
28+
CLIENT_ACCOUNT_ID_ECDSA_1: '0.0.1328'
29+
CLIENT_EVM_ADDRESS_ECDSA_1_CORRECT: '0x97C50bb12E1C6284cF2855cdba95c5D60AEE44CF'
30+
CLIENT_EVM_ADDRESS_ECDSA_1: '0x0000000000000000000000000000000000000530'
31+
CLIENT_PRIVATE_KEY_ECDSA_2: ${{ secrets.CLIENT_PRIVATE_KEY_ECDSA_2 }}
32+
CLIENT_PUBLIC_KEY_ECDSA_2: ${{ secrets.CLIENT_PUBLIC_KEY_ECDSA_2 }}
33+
CLIENT_ACCOUNT_ID_ECDSA_2: '0.0.2168740'
34+
CLIENT_EVM_ADDRESS_ECDSA_2: '0x00000000000000000000000000000000002117A4'
35+
FACTORY_ADDRESS: '0.0.5480051'
36+
RESOLVER_ADDRESS: '0.0.5479997'
37+
FIREBLOCKS_HEDERA_ACCOUNT_ID: '0.0.2168740'
38+
FIREBLOCKS_HEDERA_PUBLIC_KEY: ${{ secrets.CLIENT_PUBLIC_KEY_ECDSA_2 }}
39+
DFNS_HEDERA_ACCOUNT_ID: '0.0.2168740'
40+
DFNS_WALLET_PUBLIC_KEY: ${{ secrets.CLIENT_PUBLIC_KEY_ECDSA_2 }}
41+
AWS_KMS_HEDERA_ACCOUNT_ID: '0.0.4394946'
42+
AWS_KMS_HEDERA_PUBLIC_KEY: '302d300706052b8104000a03220003ee815bb9b5e53f5dbe7264a77e586127dfcb75da8c1246f5aa6ededdb13e6c21'
43+
REACT_APP_MIRROR_NODE: 'https://testnet.mirrornode.hedera.com/api/v1/'
44+
REACT_APP_RPC_NODE: 'https://testnet.hashio.io/api'
45+
REACT_APP_RESOLVER: '0.0.5479997'
46+
REACT_APP_FACTORY: '0.0.5480051'
47+
REACT_APP_SHOW_DISCLAIMER: 'true'
48+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
49+
50+
steps:
51+
- name: Harden Runner
52+
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
53+
with:
54+
egress-policy: audit
55+
56+
- name: Checkout repository
57+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
58+
59+
- name: Setup NodeJS Environment
60+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
61+
with:
62+
node-version: 22.x
63+
64+
- name: Install dependencies
65+
run: npm ci
66+
67+
- name: Build ATS packages
68+
run: npm run ats:build
69+
70+
- name: Run ATS tests
71+
run: npm run ats:test
72+
73+
- name: Upload coverage report
74+
if: ${{ !cancelled() && always() }}
75+
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673

.github/workflows/mp.test.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Tests Mass Payout
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
paths:
8+
- 'packages/mass-payout/**'
9+
- 'apps/mass-payout/**'
10+
- 'package.json'
11+
- '.github/workflows/*mp*.yml'
12+
- '.github/workflows/*mp*.yaml'
13+
workflow_dispatch:
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
test-mass-payout:
20+
name: testing
21+
runs-on: token-studio-linux-large
22+
env:
23+
NODE_OPTIONS: '--max-old-space-size=32768'
24+
CONTRACT_SIZER_RUN_ON_COMPILE: 'false'
25+
REPORT_GAS: 'false'
26+
CLIENT_PRIVATE_KEY_ECDSA_1: ${{ secrets.CLIENT_PRIVATE_KEY_ECDSA_1 }}
27+
CLIENT_PUBLIC_KEY_ECDSA_1: ${{ secrets.CLIENT_PUBLIC_KEY_ECDSA_1 }}
28+
CLIENT_ACCOUNT_ID_ECDSA_1: '0.0.1328'
29+
CLIENT_EVM_ADDRESS_ECDSA_1_CORRECT: '0x97C50bb12E1C6284cF2855cdba95c5D60AEE44CF'
30+
CLIENT_EVM_ADDRESS_ECDSA_1: '0x0000000000000000000000000000000000000530'
31+
CLIENT_PRIVATE_KEY_ECDSA_2: ${{ secrets.CLIENT_PRIVATE_KEY_ECDSA_2 }}
32+
CLIENT_PUBLIC_KEY_ECDSA_2: ${{ secrets.CLIENT_PUBLIC_KEY_ECDSA_2 }}
33+
CLIENT_ACCOUNT_ID_ECDSA_2: '0.0.2168740'
34+
CLIENT_EVM_ADDRESS_ECDSA_2: '0x00000000000000000000000000000000002117A4'
35+
FACTORY_ADDRESS: '0.0.5480051'
36+
RESOLVER_ADDRESS: '0.0.5479997'
37+
FIREBLOCKS_HEDERA_ACCOUNT_ID: '0.0.2168740'
38+
FIREBLOCKS_HEDERA_PUBLIC_KEY: ${{ secrets.CLIENT_PUBLIC_KEY_ECDSA_2 }}
39+
DFNS_HEDERA_ACCOUNT_ID: '0.0.2168740'
40+
DFNS_WALLET_PUBLIC_KEY: ${{ secrets.CLIENT_PUBLIC_KEY_ECDSA_2 }}
41+
AWS_KMS_HEDERA_ACCOUNT_ID: '0.0.4394946'
42+
AWS_KMS_HEDERA_PUBLIC_KEY: '302d300706052b8104000a03220003ee815bb9b5e53f5dbe7264a77e586127dfcb75da8c1246f5aa6ededdb13e6c21'
43+
REACT_APP_MIRROR_NODE: 'https://testnet.mirrornode.hedera.com/api/v1/'
44+
REACT_APP_RPC_NODE: 'https://testnet.hashio.io/api'
45+
REACT_APP_RESOLVER: '0.0.5479997'
46+
REACT_APP_FACTORY: '0.0.5480051'
47+
REACT_APP_SHOW_DISCLAIMER: 'true'
48+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
49+
50+
steps:
51+
- name: Harden Runner
52+
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
53+
with:
54+
egress-policy: audit
55+
56+
- name: Checkout repository
57+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
58+
59+
- name: Setup NodeJS Environment
60+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
61+
with:
62+
node-version: 22.x
63+
64+
- name: Install dependencies
65+
run: npm ci
66+
67+
# - name: Build mass-payout
68+
# run: npm run mp:build
69+
70+
# - name: Test mass-payout
71+
# run: npm run mp:test

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,9 @@ asset-tokenization-studio.iml
133133
# IntelliJ Idea
134134
/.idea/
135135

136-
# Kiro files
136+
# AI files
137137
.kiro/
138+
CLAUDE.md
138139

139140
# Extracted methods from contracts
140141
contracts/extracted-methods.txt

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm run commitlint

0 commit comments

Comments
 (0)