-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add scripts to process and aggregate chains (#125)
* Create scripts to deploy * Add README
- Loading branch information
1 parent
c51c945
commit 51b2e58
Showing
9 changed files
with
569 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.