2024-08-16 14:52:45 +00:00
|
|
|
# scripts
|
2024-08-16 04:11:54 +00:00
|
|
|
|
|
|
|
## Prerequisites
|
|
|
|
|
|
|
|
- NodeJS >= `v18.17.x`
|
|
|
|
|
|
|
|
## Instructions
|
|
|
|
|
|
|
|
- Change to scripts dir:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
cd scripts
|
|
|
|
```
|
|
|
|
|
|
|
|
- Install dependencies and build:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
yarn && yarn build
|
|
|
|
```
|
|
|
|
|
|
|
|
- Create required env configuration:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
# Update the values as required
|
|
|
|
# By default, live laconicd testnet (laconicd.laconic.com) endpoint is configured
|
|
|
|
cp .env.example .env
|
|
|
|
```
|
|
|
|
|
|
|
|
- Map subscribers to onboarded participants:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
yarn map-subscribers-to-participants --subscribers-csv <subscribers-csv-file> --output <output-csv-file>
|
|
|
|
|
|
|
|
# Example:
|
|
|
|
# yarn map-subscribers-to-participants --subscribers-csv subscribers.csv --output result-$(date +"%Y-%m-%d%Y%m%d").csv
|
|
|
|
```
|