Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scripts to process and aggregate chains #125

Merged
merged 2 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions _api/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
25 changes: 25 additions & 0 deletions _api/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Chain Registry Deployment Scripts

### Overview

This repository contains scripts to deploy static files from the `_api/dist` directory. The scripts perform the following tasks:

1. Copy original files to the `dist` directory.
2. Update URLs in `chain.json` and `assetlist.json` files.
3. Aggregate `chain.json` files into a single `chains.json` file by extracting specific properties.

### Usage

Set the `ROOT_DIR` environment variable to specify the network type (e.g., `testnets`, `devnets`).

Run the script:

```sh
pnpm build
```

or

```sh
ROOT_DIR=testnets pnpm build
```
13 changes: 13 additions & 0 deletions _api/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"scripts": {
"build": "tsx src/main.ts"
},
"devDependencies": {
"@initia/initia-registry-types": "^0.0.17",
"@tsconfig/recommended": "^1.0.6",
"@types/node": "^20.14.8",
"@types/ramda": "^0.30.0",
"ramda": "^0.30.1",
"tsx": "^4.15.7"
}
}
355 changes: 355 additions & 0 deletions _api/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading