-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add script for setting up staging artifacts
- Loading branch information
Showing
5 changed files
with
45 additions
and
9 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
gauntlet/packages/gauntlet-solana-contracts/networks/.env.staging
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
NODE_URL=https://api.devnet.solana.com | ||
|
||
PROGRAM_ID_OCR2=STGhiM1ZaLjDLZDGcVFp3ppdetggLAs6MXezw5DXXH3 | ||
PROGRAM_ID_ACCESS_CONTROLLER=STGsNB3u63hnBqJsL69HFjA9TTBRxovKfV4N9x9KzR6 | ||
PROGRAM_ID_STORE=STGxAk2tuSMv7iwt2vRRuijRp1ageiRcwrjhdPBsAXn | ||
|
||
LINK=4bZeE4RQ5N2HFUU18p6R2Xcdv3yvgGSTJ5VKKtvNqm8C | ||
|
||
BILLING_ACCESS_CONTROLLER=CBWXiwPGX6ykWtPGXp4cuFJP53SW81pe9q1YfUASWC46 | ||
REQUESTER_ACCESS_CONTROLLER=5vkHdxPiTyfY5VdRpPu8tNTpeik6Cy93M6GzztMPWfAk | ||
LOWERING_ACCESS_CONTROLLER=CBWXiwPGX6ykWtPGXp4cuFJP53SW81pe9q1YfUASWC46 |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
function modify_program { | ||
ac=$1 | ||
ocr2=$2 | ||
store=$3 | ||
|
||
# Replace existing declare_id!() | ||
sed -i "s/DzzjdPWNfwHZmzPVxnmqkkMJraYQQRCpgFZajqkqmU6G/$ac/" contracts/programs/access-controller/src/lib.rs | ||
sed -i "s/HW3ipKzeeduJq6f1NqRCw4doknMeWkfrM4WxobtG3o5v/$ocr2/" contracts/programs/ocr2/src/lib.rs | ||
sed -i "s/CaH12fwNTKJAG8PxEvo9R96Zc2j8qNHZaFj8ZW49yZNT/$store/" contracts/programs/store/src/lib.rs | ||
} | ||
|
||
function build { | ||
cd contracts | ||
anchor build | ||
cd .. | ||
} |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
# note call from repo root | ||
set -e | ||
source ./scripts/lib.sh | ||
source ./gauntlet/packages/gauntlet-solana-contracts/networks/.env.staging | ||
|
||
modify_program $PROGRAM_ID_ACCESS_CONTROLLER $PROGRAM_ID_OCR2 $PROGRAM_ID_STORE | ||
|
||
# build artifacts | ||
build |