Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
fa9e33e
feat: add mass payout application and related root configurations
MiguelLZPF Aug 14, 2025
06ba826
refactor: move contracts to new folder structure
MiguelLZPF Aug 14, 2025
abfe963
refactor: move sdk to new folder structure
MiguelLZPF Aug 14, 2025
9778116
refactor: move web to new folder structure
MiguelLZPF Aug 14, 2025
6220351
feat: test and fix build
MiguelLZPF Aug 14, 2025
99be19e
refactor: clean install and format
MiguelLZPF Aug 14, 2025
159e10a
refactor: reorganize error declarations and improve function structur…
MiguelLZPF Aug 14, 2025
4d92534
refactor: remove unused imports and improve type definitions across c…
MiguelLZPF Aug 14, 2025
a684dff
fix: sdk build and linter issues
MiguelLZPF Aug 14, 2025
ce503b2
refactor: improve type safety in SDKConnection and update package.jso…
MiguelLZPF Aug 14, 2025
73cef7c
fix: import
MiguelLZPF Aug 14, 2025
f7aba67
fix: use monorepo's files to fix build
MiguelLZPF Aug 14, 2025
5fa136f
fix: web test mocks
MiguelLZPF Aug 14, 2025
fe22222
Merge remote-tracking branch 'origin/main' into refactor/BBND-1075-wo…
MiguelLZPF Aug 14, 2025
315a70c
chore: add commitlint and pre-commit hooks for improved commit messag…
MiguelLZPF Aug 14, 2025
b328e39
chore: update pull request template and add ATS and Mass Payout test …
MiguelLZPF Aug 14, 2025
790c216
test: add update command for web tests in package.json
MiguelLZPF Aug 14, 2025
890d688
docs: update documentation for monorepo structure and commands, add m…
MiguelLZPF Aug 18, 2025
9848da0
chore: update .gitignore to rename Kiro files section to AI files and…
MiguelLZPF Aug 18, 2025
0c20d35
chore: added winston
themariofrancia Aug 18, 2025
27b80ea
chore: remove unused files
themariofrancia Aug 18, 2025
ecb1619
refactor: update npm scripts for improved setup and cleaning processes
MiguelLZPF Aug 18, 2025
92059de
refactor: rename compliance and identityRegistry to complianceId and …
themariofrancia Aug 18, 2025
4f00940
refactor: rename compliance and identityRegistry in Bond module
themariofrancia Aug 18, 2025
4ed0970
feat: generate VC file and save to disk
themariofrancia Aug 19, 2025
a5eedc6
feat: add identityRegistryId to BondFixture
themariofrancia Aug 19, 2025
4ec22f3
refactor: simplify handling of complianceId and identityRegistryId ac…
themariofrancia Aug 19, 2025
9e981a2
feat: add missing npm scripts and reorder by project and module
MiguelLZPF Aug 19, 2025
136a1d8
feat: enhance VS Code settings for Prettier configuration and add sup…
MiguelLZPF Aug 19, 2025
fb6ff24
fix: add Apache License 2.0 header to missing files
MiguelLZPF Aug 19, 2025
23ca08b
chore: update package versions to 1.16.0 & be more sprecific on forma…
MiguelLZPF Aug 19, 2025
7038ea1
fix: update publish commands in GitHub Actions workflow
MiguelLZPF Aug 19, 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
  •  
  •  
  •  
14 changes: 7 additions & 7 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: "daily"
interval: 'daily'
open-pull-requests-limit: 10
- package-ecosystem: npm
directory: "/"
directory: '/'
schedule:
interval: "weekly"
interval: 'weekly'
open-pull-requests-limit: 10
versioning-strategy: increase
ignore:
# For all packages, ignore all minor & patch updates
- dependency-name: "*"
- dependency-name: '*'
update-types:
[ "version-update:semver-minor", "version-update:semver-patch" ]
['version-update:semver-minor', 'version-update:semver-patch']
28 changes: 14 additions & 14 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ Fixes #(issue)

## Type of change

- [ ] Bug fix 🐞
- [ ] New feature ✨
- [ ] Breaking change 💥
- [ ] Documentation update 📖
- [ ] Refactor 🔧
- [ ] Bug fix 🐞
- [ ] New feature ✨
- [ ] Breaking change 💥
- [ ] Documentation update 📖
- [ ] Refactor 🔧

## Testing

Expand All @@ -42,15 +42,15 @@ For example:

**Node version**:

- [ ] 20
- [ ] 22
- [ ] 24
- [ ] 20
- [ ] 22
- [ ] 24

## Checklist

- [ ] Style Guidelines followed ✅
- [ ] Documentation Updated 📚
- [ ] **Linters** - No New Warnings ⚠️
- [ ] Local Tests Pass ✅
- [ ] Effective Tests Added ✔️
- [ ] No reduction of **Coverage** ✅
- [ ] Style Guidelines followed ✅
- [ ] Documentation Updated 📚
- [ ] **Linters** - No New Warnings ⚠️
- [ ] Local Tests Pass ✅
- [ ] Effective Tests Added ✔️
- [ ] No reduction of **Coverage** ✅
35 changes: 19 additions & 16 deletions .github/workflows/all.publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Publishing

on:
release:
types:
- published

permissions:
contents: read

Expand All @@ -11,9 +13,6 @@ jobs:
name: Publish NPM Packages
runs-on: ubuntu-latest

permissions:
contents: read

steps:
- name: Harden Runner
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
Expand All @@ -32,24 +31,28 @@ jobs:
run: |
touch .npmrc
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc
cp .npmrc ./contracts/.npmrc
cp .npmrc ./sdk/.npmrc
cp .npmrc ./packages/ats/contracts/.npmrc
cp .npmrc ./packages/ats/sdk/.npmrc

- name: Change references
run: ./changeProjectsReferencesToRepo.sh
- name: Install dependencies
run: npm ci

- name: Install contracts dependencies
run: npm run install:contracts

- name: Publish contracts package
run: npm run publish:contracts --access=public
# --- ATS publishing ---
- name: Publish ats/contracts
if: contains(github.ref_name, 'ats')
run: npm run ats:contracts:publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

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

- name: Publish sdk package
run: npm run publish:sdk --access=public
# --- Mass Payout publishing ---
- name: Publish mass-payout
if: contains(github.ref_name, 'mp')
run: npm run mass-payout:publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
105 changes: 0 additions & 105 deletions .github/workflows/all.test.yml

This file was deleted.

75 changes: 75 additions & 0 deletions .github/workflows/ats.test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Tests ATS

on:
push:
branches: [main]
pull_request:
paths:
- 'packages/ats/**'
- 'apps/ats/**'
- 'package.json'
- '.github/workflows/*ats*.yml'
- '.github/workflows/*ats*.yaml'
workflow_dispatch:

permissions:
contents: read

jobs:
test-ats:
name: testing
runs-on: token-studio-linux-large
env:
NODE_OPTIONS: '--max-old-space-size=32768'
CONTRACT_SIZER_RUN_ON_COMPILE: 'false'
REPORT_GAS: 'false'
CLIENT_PRIVATE_KEY_ECDSA_1: ${{ secrets.CLIENT_PRIVATE_KEY_ECDSA_1 }}
CLIENT_PUBLIC_KEY_ECDSA_1: ${{ secrets.CLIENT_PUBLIC_KEY_ECDSA_1 }}
CLIENT_ACCOUNT_ID_ECDSA_1: '0.0.1328'
CLIENT_EVM_ADDRESS_ECDSA_1_CORRECT: '0x97C50bb12E1C6284cF2855cdba95c5D60AEE44CF'
CLIENT_EVM_ADDRESS_ECDSA_1: '0x0000000000000000000000000000000000000530'
CLIENT_PRIVATE_KEY_ECDSA_2: ${{ secrets.CLIENT_PRIVATE_KEY_ECDSA_2 }}
CLIENT_PUBLIC_KEY_ECDSA_2: ${{ secrets.CLIENT_PUBLIC_KEY_ECDSA_2 }}
CLIENT_ACCOUNT_ID_ECDSA_2: '0.0.2168740'
CLIENT_EVM_ADDRESS_ECDSA_2: '0x00000000000000000000000000000000002117A4'
FACTORY_ADDRESS: '0.0.5480051'
RESOLVER_ADDRESS: '0.0.5479997'
FIREBLOCKS_HEDERA_ACCOUNT_ID: '0.0.2168740'
FIREBLOCKS_HEDERA_PUBLIC_KEY: ${{ secrets.CLIENT_PUBLIC_KEY_ECDSA_2 }}
DFNS_HEDERA_ACCOUNT_ID: '0.0.2168740'
DFNS_WALLET_PUBLIC_KEY: ${{ secrets.CLIENT_PUBLIC_KEY_ECDSA_2 }}
AWS_KMS_HEDERA_ACCOUNT_ID: '0.0.4394946'
AWS_KMS_HEDERA_PUBLIC_KEY: '302d300706052b8104000a03220003ee815bb9b5e53f5dbe7264a77e586127dfcb75da8c1246f5aa6ededdb13e6c21'
REACT_APP_MIRROR_NODE: 'https://testnet.mirrornode.hedera.com/api/v1/'
REACT_APP_RPC_NODE: 'https://testnet.hashio.io/api'
REACT_APP_RESOLVER: '0.0.5479997'
REACT_APP_FACTORY: '0.0.5480051'
REACT_APP_SHOW_DISCLAIMER: 'true'
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

steps:
- name: Harden Runner
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
with:
egress-policy: audit

- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Setup NodeJS Environment
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 22.x

- name: Install dependencies
run: npm ci

- name: Build ATS packages
run: npm run ats:build

- name: Run ATS tests
run: npm run ats:test

- name: Upload coverage report
if: ${{ !cancelled() && always() }}
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673
71 changes: 71 additions & 0 deletions .github/workflows/mp.test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Tests Mass Payout

on:
push:
branches: [main]
pull_request:
paths:
- 'packages/mass-payout/**'
- 'apps/mass-payout/**'
- 'package.json'
- '.github/workflows/*mp*.yml'
- '.github/workflows/*mp*.yaml'
workflow_dispatch:

permissions:
contents: read

jobs:
test-mass-payout:
name: testing
runs-on: token-studio-linux-large
env:
NODE_OPTIONS: '--max-old-space-size=32768'
CONTRACT_SIZER_RUN_ON_COMPILE: 'false'
REPORT_GAS: 'false'
CLIENT_PRIVATE_KEY_ECDSA_1: ${{ secrets.CLIENT_PRIVATE_KEY_ECDSA_1 }}
CLIENT_PUBLIC_KEY_ECDSA_1: ${{ secrets.CLIENT_PUBLIC_KEY_ECDSA_1 }}
CLIENT_ACCOUNT_ID_ECDSA_1: '0.0.1328'
CLIENT_EVM_ADDRESS_ECDSA_1_CORRECT: '0x97C50bb12E1C6284cF2855cdba95c5D60AEE44CF'
CLIENT_EVM_ADDRESS_ECDSA_1: '0x0000000000000000000000000000000000000530'
CLIENT_PRIVATE_KEY_ECDSA_2: ${{ secrets.CLIENT_PRIVATE_KEY_ECDSA_2 }}
CLIENT_PUBLIC_KEY_ECDSA_2: ${{ secrets.CLIENT_PUBLIC_KEY_ECDSA_2 }}
CLIENT_ACCOUNT_ID_ECDSA_2: '0.0.2168740'
CLIENT_EVM_ADDRESS_ECDSA_2: '0x00000000000000000000000000000000002117A4'
FACTORY_ADDRESS: '0.0.5480051'
RESOLVER_ADDRESS: '0.0.5479997'
FIREBLOCKS_HEDERA_ACCOUNT_ID: '0.0.2168740'
FIREBLOCKS_HEDERA_PUBLIC_KEY: ${{ secrets.CLIENT_PUBLIC_KEY_ECDSA_2 }}
DFNS_HEDERA_ACCOUNT_ID: '0.0.2168740'
DFNS_WALLET_PUBLIC_KEY: ${{ secrets.CLIENT_PUBLIC_KEY_ECDSA_2 }}
AWS_KMS_HEDERA_ACCOUNT_ID: '0.0.4394946'
AWS_KMS_HEDERA_PUBLIC_KEY: '302d300706052b8104000a03220003ee815bb9b5e53f5dbe7264a77e586127dfcb75da8c1246f5aa6ededdb13e6c21'
REACT_APP_MIRROR_NODE: 'https://testnet.mirrornode.hedera.com/api/v1/'
REACT_APP_RPC_NODE: 'https://testnet.hashio.io/api'
REACT_APP_RESOLVER: '0.0.5479997'
REACT_APP_FACTORY: '0.0.5480051'
REACT_APP_SHOW_DISCLAIMER: 'true'
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

steps:
- name: Harden Runner
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
with:
egress-policy: audit

- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Setup NodeJS Environment
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 22.x

- name: Install dependencies
run: npm ci

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

# - name: Test mass-payout
# run: npm run mp:test
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,9 @@ asset-tokenization-studio.iml
# IntelliJ Idea
/.idea/

# Kiro files
# AI files
.kiro/
CLAUDE.md

# Extracted methods from contracts
contracts/extracted-methods.txt
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run commitlint
Loading