Skip to content

Commit d637f57

Browse files
committed
final fix
1 parent 1ba4208 commit d637f57

File tree

5 files changed

+3
-65
lines changed

5 files changed

+3
-65
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ First, run `npm i` to install the dependencies.
1515

1616
Then, run `npm run dev` to start the development server and visit localhost:3000.
1717

18-
If you need to fetch the latest cosmos chains, run `npm run fetch-cosmos-chains`.
19-
2018
## Deployment
2119

2220
Use the `Dockerfile` in the root of the repository to build a docker image that can be run for production deployments.

contexts/GlobalContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
osmosis,
1919
osmosistestnet,
2020
seitestnet2,
21-
} from "../store/cosmos-chains";
21+
} from "graz/chains";
2222
import PythAbi from "../abis/IPyth.json";
2323
import PythErrorsAbi from "../abis/PythErrors.json";
2424
import { ChainInfo } from "@keplr-wallet/types";

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"start": "next start",
99
"lint": "next lint",
1010
"test": "jest",
11-
"postinstall": "bash scripts/fetchGrazChain.sh"
11+
"postinstall": "bash scripts/fetchGrazChains.sh"
1212
},
1313
"dependencies": {
1414
"@amplitude/analytics-browser": "^2.8.1",

scripts/fetchGrazChain.sh

Lines changed: 0 additions & 48 deletions
This file was deleted.

scripts/fetchGrazChains.sh

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
#!/bin/bash
2-
3-
42
MAX_RETRIES=5
5-
6-
OUTPUT_DIR="store/cosmos-chains"
7-
8-
93
command_exists() {
104
command -v "$1" >/dev/null 2>&1
115
}
@@ -19,20 +13,14 @@ if ! command_exists graz; then
1913
fi
2014
fi
2115

22-
mkdir -p "$OUTPUT_DIR"
23-
2416
fetch_graz_chains() {
2517
local retry_count=0
2618

2719
while [ $retry_count -lt $MAX_RETRIES ]; do
2820
echo "Attempt $((retry_count + 1)) to fetch cosmos chains..."
2921

30-
if graz generate -g; then
22+
if graz generate -g -b; then
3123
echo "Successfully fetched cosmos chains!"
32-
33-
# Copy generated files to the output directory
34-
cp -R node_modules/graz/chains/* "$OUTPUT_DIR"
35-
echo "Copied generated files to $OUTPUT_DIR"
3624
return 0
3725
else
3826
retry_count=$((retry_count + 1))

0 commit comments

Comments
 (0)