Skip to content

Commit a236639

Browse files
jaime-iobermudezthemariofrancialuigi-io
authored
chore: hotfix ats scs deployment scripts and update doc (#904)
Signed-off-by: jaime-iobermudez <jaime.bermudez@io.builders> Signed-off-by: Mario Francia <mariofranciarius@gmail.com> Signed-off-by: Luigi Navarro <luigi@io.builders> Co-authored-by: Mario Francia <mariofranciarius@gmail.com> Co-authored-by: Luigi Navarro <luigi@io.builders>
1 parent 83abe3b commit a236639

30 files changed

Lines changed: 497 additions & 827 deletions

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ This will remove previous build artifacts and reinstall dependencies before buil
230230

231231
Each application has its own .env configuration file.
232232

233-
- ATS Web App: apps/ats/web/.env.local
233+
- ATS Web App: apps/ats/web/.env
234234
Defines Hedera endpoints, resolver and factory IDs, and WalletConnect settings.
235235

236236
- Mass Payout Backend: apps/mass-payout/backend/.env
@@ -239,7 +239,7 @@ Each application has its own .env configuration file.
239239
- Mass Payout Frontend: apps/mass-payout/frontend/.env
240240
Requires VITE_API_URL and VITE_PORT.
241241

242-
Sample files are provided (.env.sample or .env.example) in each module.
242+
Sample files are provided as `.env.example` in each module.
243243

244244
## Development Workflows
245245

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,35 @@
1+
# ATS Web Application - Environment Variables
2+
#
3+
# Copy this file to .env and fill in your values.
4+
# Preconfigured for Hedera Testnet.
5+
16
# * General
7+
# Configuration IDs for token types (from the Business Logic Resolver deployment)
28
REACT_APP_EQUITY_CONFIG_ID='0x0000000000000000000000000000000000000000000000000000000000000001'
39
REACT_APP_EQUITY_CONFIG_VERSION='0'
410
REACT_APP_BOND_CONFIG_ID='0x0000000000000000000000000000000000000000000000000000000000000002'
511
REACT_APP_BOND_CONFIG_VERSION='0'
12+
13+
# Show cookie disclaimer popup (true/false)
614
REACT_APP_SHOW_DISCLAIMER="true"
715

816
# * Network Configuration
17+
# Hedera Mirror Node - used for querying historical data and account info
918
REACT_APP_MIRROR_NODE='https://testnet.mirrornode.hedera.com/api/v1/'
19+
20+
# Hedera JSON-RPC Relay - used for contract interactions
1021
REACT_APP_RPC_NODE='https://testnet.hashio.io/api'
1122

12-
# * Smart Contract Addresses (Version 2.0.1)
23+
# * Smart Contract Addresses
24+
# Replace with your deployed contract IDs (Hedera format: 0.0.XXXXX)
25+
# See packages/ats/contracts for deployment instructions
1326
REACT_APP_RPC_RESOLVER='0.0.7511642'
1427
REACT_APP_RPC_FACTORY='0.0.7512002'
1528

16-
# * Hedera Wallet Connnect
29+
# * Hedera WalletConnect
30+
# Required for HashPack, Blade, and other WalletConnect-compatible wallets.
31+
# Not needed if only using MetaMask (connects directly).
32+
# Get your project ID from https://cloud.walletconnect.com
1733
REACT_APP_PROJECT_ID='1a2b3c4d [...] 9a0b1c2d3e4f'
1834
REACT_APP_DAPP_NAME='Asset Tokenization Studio'
1935
REACT_APP_DAPP_DESCRIPTION='Asset Tokenization Studio. Built on Hedera Hashgraph.'

apps/ats/web/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ npm install
4949
# Environment Variables
5050

5151
Environment variables should be included in a ".env" file located in `apps/ats/web/`.
52-
Please refer to ".env.sample" to see the list of variables that must be defined alongside some default values that you could use to start up the application.
52+
Please refer to ".env.example" to see the list of variables that must be defined alongside some default values that you could use to start up the application.
5353

5454
Below is a description of what each variable represents.
5555

docs/ats/developer-guides/contracts/deployed-addresses.md

Lines changed: 0 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -23,111 +23,13 @@ Latest deployed smart contract addresses for Asset Tokenization Studio.
2323
| Factory Proxy | 0.0.7708432 | 0x5fA65CA30d1984701F10476664327f97c864A9D3 | [View on HashScan](https://hashscan.io/testnet/contract/0.0.7708432) |
2424
| Factory Implementation | 0.0.7708430 | 0x3803219f13E23998FdDCa67AdA60EeB8E62eEEA8 | [View on HashScan](https://hashscan.io/testnet/contract/0.0.7708430) |
2525

26-
### Token Configurations
27-
28-
| Configuration | Config ID | Version | Facet Count |
29-
| ------------------------------------------- | --------- | ------- | ----------- |
30-
| Equity | 0x01 | 1 | 44 |
31-
| Bond (Standard) | 0x02 | 1 | 47 |
32-
| Bond Fixed Rate | 0x03 | 1 | 48 |
33-
| Bond KPI Linked Rate | 0x04 | 1 | 48 |
34-
| Bond Sustainability Performance Target Rate | 0x05 | 1 | 49 |
35-
36-
> **Note**: v4.0.0 introduces four bond types with different interest rate mechanisms. See [Creating Bonds](../../user-guides/creating-bond.md) for details on each bond type.
37-
38-
## Usage in Web App
39-
40-
Configure these addresses in your `.env.local` file:
41-
42-
```bash
43-
# Smart Contract Version: 4.0.0
44-
REACT_APP_RPC_RESOLVER='0.0.7707874'
45-
REACT_APP_RPC_FACTORY='0.0.7708432'
46-
```
47-
48-
See the complete `.env.sample` in `apps/ats/web/.env.sample` for all required environment variables.
49-
50-
## Usage in SDK
51-
52-
When initializing the SDK, provide these addresses in the configuration:
53-
54-
```typescript
55-
import { Network, InitializationRequest } from "@hashgraph/asset-tokenization-sdk";
56-
57-
const initRequest = new InitializationRequest({
58-
network: "testnet",
59-
configuration: {
60-
resolverAddress: "0.0.7707874",
61-
factoryAddress: "0.0.7708432",
62-
},
63-
// ... other configuration
64-
});
65-
66-
await Network.init(initRequest);
67-
```
68-
69-
See the [SDK Integration Guide](../sdk-integration.md) for complete initialization examples.
70-
71-
## Contract Information
72-
73-
### Business Logic Resolver (BLR) Proxy
74-
75-
The BLR acts as a central registry that maps Business Logic Keys (BLK) to versioned facet implementations. Tokens query the resolver to determine which logic version to execute.
76-
77-
### Factory Proxy
78-
79-
The Factory contract deploys new security tokens using the Diamond Pattern. It creates the token proxy and links it to the appropriate configuration in the Business Logic Resolver.
80-
81-
### ProxyAdmin
82-
83-
Manages upgrade permissions for both the BLR Proxy and Factory Proxy contracts.
84-
85-
## Deployment Statistics
86-
87-
| Metric | Value |
88-
| --------------------- | ---------- |
89-
| Total Facets Deployed | 192 |
90-
| Configurations | 5 |
91-
| Deployment Date | 2026-01-22 |
92-
9326
## Version History
9427

9528
| Version | BLR Proxy | Factory Proxy | Release Date |
9629
| ------- | ----------- | ------------- | ------------ |
9730
| 4.0.0 | 0.0.7707874 | 0.0.7708432 | 2026-01-22 |
9831
| 2.0.1 | 0.0.7511642 | 0.0.7512002 | 2024-12-23 |
9932

100-
## Deployment Files
101-
102-
Complete deployment outputs including all facet addresses are stored in the repository:
103-
104-
```
105-
packages/ats/contracts/deployments/
106-
├── hedera-testnet/
107-
│ ├── newBlr-2026-01-22T11-09-49.json # Latest v4.0.0 deployment
108-
│ └── ... # Previous deployments
109-
└── hedera-mainnet/
110-
└── ...
111-
```
112-
113-
Each deployment file contains:
114-
115-
- Infrastructure contract addresses (ProxyAdmin, BLR, Factory)
116-
- All facet addresses with their resolver keys
117-
- Configuration details for each token type
118-
- Hedera Contract IDs and EVM addresses
119-
120-
**Example**: To get all facet addresses from a deployment:
121-
122-
```bash
123-
# View the deployment file
124-
cat packages/ats/contracts/deployments/hedera-testnet/newBlr-2026-01-22T11-09-49.json
125-
126-
# Extract specific facet address using jq
127-
jq '.facets[] | select(.name == "BondUSAFacet")' \
128-
packages/ats/contracts/deployments/hedera-testnet/newBlr-2026-01-22T11-09-49.json
129-
```
130-
13133
## Related Resources
13234

13335
- [Contract Architecture](./index.md) - Understanding the diamond pattern

0 commit comments

Comments
 (0)