Skip to content

Commit 348b940

Browse files
committed
Add verification commands to run.sh
1 parent 42813b4 commit 348b940

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

run.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,23 @@ deploy_verifiable() {
5656
solana program deploy --use-rpc -u "$CLUSTER" --program-id ./target/deploy/"$PROGRAM_NAME"-keypair.json ./verifiable-builds/"$PROGRAM_NAME".so --with-compute-unit-price 5 --max-sign-attempts 15 && PROGRAM_ID=$(solana-keygen pubkey ./target/deploy/"$PROGRAM_NAME"-keypair.json) && anchor idl init --filepath ./target/idl/"$PROGRAM_NAME".json $PROGRAM_ID --provider.cluster "$CLUSTER"
5757
}
5858

59+
write_buffer_verifiable() {
60+
PROGRAM_NAME=$1
61+
CLUSTER=$2
62+
solana program write-buffer --use-rpc -u "$CLUSTER" ./verifiable-builds/"$PROGRAM_NAME".so --with-compute-unit-price 5 --max-sign-attempts 15
63+
}
64+
65+
export_verifiable() {
66+
PROGRAM_NAME=$1
67+
PROGRAM_ID=$2
68+
solana-verify export-pda-tx https://github.com/metaDAOproject/futarchy --program-id "$PROGRAM_ID" --uploader 6awyHMshBGVjJ3ozdSJdyyDE1CTAXUwrpNMaRGMsb4sf -b ellipsislabs/solana:1.17.16 --library-name "$PROGRAM_NAME" -- --features default
69+
}
70+
71+
verify() {
72+
PROGRAM_ID=$1
73+
solana-verify remote submit-job --program-id "$PROGRAM_ID" --uploader 6awyHMshBGVjJ3ozdSJdyyDE1CTAXUwrpNMaRGMsb4sf
74+
}
75+
5976
upgrade() {
6077
PROGRAM_NAME=$1
6178
PROGRAM_ID=$2
@@ -132,6 +149,9 @@ case "$1" in
132149
build_verifiable) build_verifiable "$2" ;;
133150
deploy) deploy "$2" "$3" ;;
134151
deploy_verifiable) deploy_verifiable "$2" "$3" ;;
152+
write_buffer_verifiable) write_buffer_verifiable "$2" "$3" ;;
153+
export_verifiable) export_verifiable "$2" "$3" ;;
154+
verify) verify "$2" ;;
135155
upgrade) upgrade "$2" "$3" "$4" ;;
136156
upgrade_idl) upgrade_idl "$2" "$3" "$4" ;;
137157
bankrun) bankrun ;;

0 commit comments

Comments
 (0)