mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 13:07:09 +00:00
* feat(database): create schema for hway and motr * fix(gateway): correct naming inconsistencies in handlers * build: update schema file to be compatible with postgresql syntax * fix: update schema to be compatible with PostgreSQL syntax * chore: update query_hway.sql to follow sqlc syntax * ```text refactor: update query_hway.sql for PostgreSQL and sqlc ``` * feat: add vaults table to store encrypted data * refactor: Update vaults table schema for sqlc compatibility * chore(deps): Upgrade dependencies and add pgx/v5 * refactor(Makefile): move sqlc generate to internal/models * docs(foundations): remove outdated pages * chore(build): add Taskfile for build tasks * refactor(embed): move embed files to internal package * docs: add documentation for Cosmos SDK ORM
58 lines
1.7 KiB
Bash
Executable File
58 lines
1.7 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
ROOT_DIR=$(git rev-parse --show-toplevel)
|
|
export TURNSTILE_SITE_KEY=$(skate get TURNSTILE_SITE_KEY)
|
|
# export KEY="user1"
|
|
# export KEY2="user2"
|
|
#
|
|
# export CHAIN_ID=${CHAIN_ID:-"sonr-testnet-1"}
|
|
# export MONIKER="florence"
|
|
# export KEYALGO="secp256k1"
|
|
# export KEYRING=${KEYRING:-"test"}
|
|
# export HOME_DIR=$(eval echo "${HOME_DIR:-"~/.sonr"}")
|
|
# export BINARY=${BINARY:-sonrd}
|
|
# export DENOM=${DENOM:-usnr}
|
|
#
|
|
# export CLEAN=${CLEAN:-"true"}
|
|
# export RPC=${RPC:-"26657"}
|
|
# export REST=${REST:-"1317"}
|
|
# export PROFF=${PROFF:-"6969"}
|
|
# export P2P=${P2P:-"26656"}
|
|
# export GRPC=${GRPC:-"9090"}
|
|
# export GRPC_WEB=${GRPC_WEB:-"9091"}
|
|
# export ROSETTA=${ROSETTA:-"8420"}
|
|
# export BLOCK_TIME=${BLOCK_TIME:-"5s"}
|
|
|
|
# Check if process-compose is installed to $ROOT_DIR/build
|
|
if [ ! -f "$ROOT_DIR/bin/process-compose" ]; then
|
|
echo "process-compose not found. Installing..."
|
|
sh -c "$(curl --location https://raw.githubusercontent.com/F1bonacc1/process-compose/main/scripts/get-pc.sh)" -- -d -b $ROOT_DIR/bin
|
|
fi
|
|
|
|
# Check if pkl-gen-go is installed to $GOPATH/bin
|
|
if [ ! -f "$GOPATH/bin/pkl-gen-go" ]; then
|
|
echo "pkl-gen-go not found. Installing..."
|
|
go install github.com/apple/pkl-go/cmd/pkl-gen-go@latest
|
|
fi
|
|
|
|
# Check if sqlc is installed to $GOPATH/bin
|
|
if [ ! -f "$GOPATH/bin/sqlc" ]; then
|
|
echo "sqlc not found. Installing..."
|
|
go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest
|
|
fi
|
|
|
|
# Check if goreleaser is installed to $GOPATH/bin
|
|
if [ ! -f "$GOPATH/bin/goreleaser" ]; then
|
|
echo "goreleaser not found. Installing..."
|
|
go install github.com/goreleaser/goreleaser/v2@latest
|
|
fi
|
|
|
|
# Check if templ is installed to $GOPATH/bin
|
|
if [ ! -f "$GOPATH/bin/templ" ]; then
|
|
echo "templ not found. Installing..."
|
|
go install github.com/a-h/templ/cmd/templ@latest
|
|
fi
|
|
|