Skip to content

Commit

Permalink
fix: update upgrade.sh (kkrt-labs#1294)
Browse files Browse the repository at this point in the history
* update upgrade.sh

* Update scripts/upgrade.sh

Co-authored-by: Thomas Coratger <[email protected]>

* Update scripts/upgrade.sh

Co-authored-by: Thomas Coratger <[email protected]>

---------

Co-authored-by: Thomas Coratger <[email protected]>
  • Loading branch information
greged93 and tcoratger authored Jul 15, 2024
1 parent aa5db21 commit 3b0ea77
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ lint:
- git-diff-check
- [email protected]
- [email protected]
- [email protected].1
- [email protected].2
- [email protected]
- [email protected]
- [email protected]
Expand All @@ -33,7 +33,7 @@ lint:
- [email protected]
- [email protected]
- [email protected]
- deno@1.44.4
- deno@1.45.1
ignore:
- linters: [ALL]
paths:
Expand Down
26 changes: 12 additions & 14 deletions scripts/upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

# Function to display usage
usage() {
echo "Usage: $0 [COMMAND] [OPTION]"
echo "Commands:"
echo " test Run tests"
echo " deploy Run deployments"
echo "Options:"
echo " --staging Use staging environment for command"
echo " --production Use production environment for command"
exit 1
echo "Usage: $0 [COMMAND] [OPTION]"
echo "Commands:"
echo " test Run tests"
echo " deploy Run deployments"
echo "Options:"
echo " --staging Use staging environment for command"
echo " --production Use production environment for command"
exit 1
}

# Check if at least one argument is passed
Expand Down Expand Up @@ -59,27 +59,25 @@ export STARKNET_NETWORK="kakarot-${ENV}"
if [ "${ENV}" = "staging" ]; then
export EVM_PRIVATE_KEY="0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d"
export KAKAROT_STAGING_RPC_URL="https://juno-kakarot-testnet-stage.karnot.xyz"
export KAKAROT_STAGING_ACCOUNT_ADDRESS="0x7ecf6cd45c32ce84812e660cc176cb8b4de2e7a6d5916fe326bf871466fbe02"
export WEB3_HTTP_PROVIDER_URI="https://kkrt-rpc-kakarot-testnet-stage.karnot.xyz"
export KAKAROT_STAGING_ACCOUNT_ADDRESS="0x7ecf6cd45c32ce84812e660cc176cb8b4de2e7a6d5916fe326bf871466fbe02"
if [ -z "${KAKAROT_STAGING_PRIVATE_KEY}" ]; then
echo "Please provide the KAKAROT_STAGING_PRIVATE_KEY environment variable"
echo "Please provide the KAKAROT_STAGING_PRIVATE_KEY environment variable. The private key should be loaded using gpg: gpg -r [email protected] --decrypt path/to/encrypted/key.gpg"
exit 1
fi

SKIP="--ignore tests/end_to_end/L1L2Messaging"
elif [ "${ENV}" = "sepolia" ]; then
export KAKAROT_SEPOLIA_RPC_URL="https://juno-kakarot-dev.karnot.xyz/"
export KAKAROT_SEPOLIA_ACCOUNT_ADDRESS="0x43ABAA073C768EBF039C0C4F46DB9ACC39E9EC165690418060A652AAB39E7D8"
export WEB3_HTTP_PROVIDER_URI="https://sepolia-rpc.kakarot.org"
if [ -z "${EVM_PRIVATE_KEY}" ]; then
echo "Please provide the EVM_PRIVATE_KEY environment variable"
exit 1
fi
if [ -z "${KAKAROT_SEPOLIA_ACCOUNT_ADDRESS}" ]; then
echo "Please provide the KAKAROT_SEPOLIA_ACCOUNT_ADDRESS environment variable"
exit 1
fi
if [ -z "${KAKAROT_SEPOLIA_PRIVATE_KEY}" ]; then
echo "Please provide the KAKAROT_SEPOLIA_PRIVATE_KEY environment variable"
echo "Please provide the KAKAROT_SEPOLIA_PRIVATE_KEY environment variable. The private key should be loaded using gpg: gpg -r [email protected] --decrypt path/to/encrypted/key.gpg"
exit 1
fi

Expand Down

0 comments on commit 3b0ea77

Please sign in to comment.