Sync workspace: config, docs, scripts, CI, operator rules, and submodule pointers.
- Update dbis_core, cross-chain-pmm-lps, explorer-monorepo, metamask-integration, pr-workspace/chains - Omit embedded publish git dirs and empty placeholders from index Made-with: Cursor
This commit is contained in:
39
scripts/wormhole/bootstrap-ntt-project.sh
Normal file
39
scripts/wormhole/bootstrap-ntt-project.sh
Normal file
@@ -0,0 +1,39 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
PROJECT_DIR="${WORMHOLE_NTT_PROJECT_DIR:-$HOME/wormhole-ntt-mainnet}"
|
||||
ENVIRONMENT="${WORMHOLE_ENVIRONMENT:-Mainnet}"
|
||||
EXAMPLE_ROOT="${WORMHOLE_EXAMPLE_ROOT:-/opt/op-stack-bootstrap}"
|
||||
if [[ ! -d "$EXAMPLE_ROOT/config/wormhole" ]]; then
|
||||
EXAMPLE_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
||||
fi
|
||||
|
||||
export BUN_INSTALL="${BUN_INSTALL:-$HOME/.bun}"
|
||||
export PATH="$BUN_INSTALL/bin:$PATH"
|
||||
|
||||
if ! command -v ntt >/dev/null 2>&1; then
|
||||
echo "ERROR: ntt CLI not installed. Run scripts/wormhole/install-ntt-cli.sh first." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ ! -d "$PROJECT_DIR" ]]; then
|
||||
ntt new "$PROJECT_DIR"
|
||||
fi
|
||||
|
||||
cd "$PROJECT_DIR"
|
||||
|
||||
if [[ ! -f deployment.json ]]; then
|
||||
ntt init "$ENVIRONMENT"
|
||||
fi
|
||||
|
||||
if [[ ! -f .env.example ]]; then
|
||||
cp "$EXAMPLE_ROOT/config/wormhole/ntt-operator.example.env" .env.example
|
||||
fi
|
||||
|
||||
if [[ ! -f deployment.example.json ]]; then
|
||||
cp "$EXAMPLE_ROOT/config/wormhole/ntt-deployment.example.json" deployment.example.json
|
||||
fi
|
||||
|
||||
echo "Bootstrapped Wormhole NTT project at $PROJECT_DIR"
|
||||
echo " deployment.json: $(pwd)/deployment.json"
|
||||
echo " .env.example: $(pwd)/.env.example"
|
||||
19
scripts/wormhole/install-ntt-cli.sh
Normal file
19
scripts/wormhole/install-ntt-cli.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
BUN_VERSION="${BUN_VERSION:-bun-v1.2.23}"
|
||||
export BUN_INSTALL="${BUN_INSTALL:-$HOME/.bun}"
|
||||
export PATH="$BUN_INSTALL/bin:$PATH"
|
||||
|
||||
if ! command -v bun >/dev/null 2>&1; then
|
||||
curl -fsSL https://bun.sh/install | bash -s -- "$BUN_VERSION"
|
||||
fi
|
||||
|
||||
export PATH="$BUN_INSTALL/bin:$PATH"
|
||||
|
||||
if ! command -v ntt >/dev/null 2>&1; then
|
||||
curl -fsSL https://raw.githubusercontent.com/wormhole-foundation/native-token-transfers/main/cli/install.sh | bash
|
||||
fi
|
||||
|
||||
echo "bun: $(bun --version)"
|
||||
echo "ntt: $(ntt --version)"
|
||||
Reference in New Issue
Block a user