- Add Foundry project configuration (foundry.toml, foundry.lock) - Add Solidity contracts (TokenFactory138, BridgeVault138, ComplianceRegistry, etc.) - Add API definitions (OpenAPI, GraphQL, gRPC, AsyncAPI) - Add comprehensive test suite (unit, integration, fuzz, invariants) - Add API services (REST, GraphQL, orchestrator, packet service) - Add documentation (ISO20022 mapping, runbooks, adapter guides) - Add development tools (RBC tool, Swagger UI, mock server) - Update OpenZeppelin submodules to v5.0.0
63 lines
1.1 KiB
Markdown
63 lines
1.1 KiB
Markdown
# RailBridge Composer (RBC)
|
|
|
|
Bank-grade instruction packet generator for non-scheme participants.
|
|
|
|
## Overview
|
|
|
|
RailBridge Composer generates instruction packets that can be transmitted via:
|
|
- Secure email (S/MIME, PGP)
|
|
- AS4 envelopes (eDelivery / B2B gateways)
|
|
- PDF instruction packets (hard copy)
|
|
|
|
All packets are traceable to ChainID 138 triggers and provide tamper-evident audit trails.
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
npm install
|
|
npm run build
|
|
```
|
|
|
|
## Usage
|
|
|
|
### CLI
|
|
|
|
```bash
|
|
# Compose packet from trigger
|
|
rbc compose <triggerId>
|
|
|
|
# Compose manual instruction
|
|
rbc compose --manual
|
|
|
|
# Send packet
|
|
rbc send <packetId> --mode email|as4|portal
|
|
|
|
# Verify packet
|
|
rbc verify <instructionId>
|
|
|
|
# Manage profiles
|
|
rbc profile add|list|update
|
|
```
|
|
|
|
### API Service
|
|
|
|
```bash
|
|
npm run start:api
|
|
```
|
|
|
|
API endpoints:
|
|
- `POST /api/v1/compose` - Compose instruction packet
|
|
- `POST /api/v1/send` - Send packet
|
|
- `GET /api/v1/verify/:instructionId` - Verify packet
|
|
- `GET /api/v1/trigger/:triggerId` - Get trigger data
|
|
- `POST /api/v1/profiles` - Manage profiles
|
|
|
|
## Configuration
|
|
|
|
See `config/default.json` for configuration options.
|
|
|
|
## License
|
|
|
|
MIT
|
|
|