-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
BillyWooo
committed
Dec 12, 2024
1 parent
bbb8612
commit a46a1ba
Showing
3 changed files
with
29 additions
and
14 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
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 |
---|---|---|
|
@@ -9,6 +9,21 @@ set -eo pipefail | |
|
||
ROOTDIR=$(git rev-parse --show-toplevel) | ||
|
||
|
||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash | ||
export NVM_DIR="$HOME/.nvm" | ||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" | ||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" | ||
echo "nvm version: $(nvm --version)" | ||
|
||
nvm install 20 | ||
echo "start chopsticks: $1" | ||
npx @acala-network/[email protected] --config=litentry.yml --allow-unresolved-imports=true --block 6361000 | ||
|
||
|
||
exit 0 | ||
|
||
|
||
# setup TMPDIR | ||
export TMPDIR=$(mktemp -d) | ||
cleanup() { | ||
|
@@ -27,10 +42,10 @@ function usage() { | |
print_divider | ||
echo "Usage: $0 [chain] [ws-rpc-endpoint] [binary]" | ||
echo | ||
echo "chain: rococo|litentry" | ||
echo " default: rococo" | ||
echo "chain: paseo|litentry" | ||
echo " default: paseo" | ||
echo "ws-rpc-endpoint: the ws rpc endpoint of the parachain" | ||
echo " default: litentry-rococo's rpc endpoint" | ||
echo " default: litentry-paseo's rpc endpoint" | ||
echo "binary: path to the litentry parachain binary" | ||
echo " default: the binary copied from litentry/litentry-parachain:latest" | ||
print_divider | ||
|
@@ -47,12 +62,12 @@ case "$1" in | |
;; | ||
esac | ||
|
||
ORIG_CHAIN=${1:-rococo} | ||
FORK_CHAIN=${ORIG_CHAIN}-dev | ||
ORIG_CHAIN=${1:-paseo} | ||
# FORK_CHAIN=${ORIG_CHAIN}-dev | ||
|
||
case "$ORIG_CHAIN" in | ||
rococo) | ||
ENDPOINT="${2:-wss://rpc.litentry-parachain.litentry.io}" | ||
paseo) | ||
ENDPOINT="${2:-wss://rpc.paseo-parachain.litentry.io}" | ||
;; | ||
litentry) | ||
ENDPOINT="${2:-wss://rpc.litentry-parachain.litentry.io}" | ||
|
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