Skip to content

Commit

Permalink
update: scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
berzanorg committed May 10, 2024
1 parent d047f47 commit 859fc79
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 15 deletions.
18 changes: 13 additions & 5 deletions scripts/environment-variables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,16 @@ export NACHO_TRANSACTIONS_DB_PATH="/nacho/state/transactions-db/"
export NACHO_EVENTS_DB_PATH="/nacho/state/events-db/"
export NACHO_MEMPOOL_PATH="/nacho/state/mempool/"
export NACHO_PROOFPOOL_PATH="/nacho/state/proofpool/"
export NACHO_EVENT_FETCHER_PROCESS_SCRIPT_PATH="/nacho/dependencies/node_modules/nacho-event-fetcher-process/build/event-fetcher-process.mjs"
export NACHO_PROOF_GENERATOR_PROCESS_SCRIPT_PATH="/nacho/dependencies/node_modules/nacho-proof-generator-process/build/proof-generator-process.mjs"
export NACHO_PROOF_MERGER_PROCESS_SCRIPT_PATH="/nacho/dependencies/node_modules/nacho-proof-merger-process/build/proof-merger-process.mjs"
export NACHO_PROOF_SUBMITTER_PROCESS_SCRIPT_PATH="/nacho/dependencies/node_modules/nacho-proof-submitter-process/build/proof-submitter-process.mjs"
export NACHO_SIGNATURE_VERIFIER_PROCESS_SCRIPT_PATH="/nacho/dependencies/node_modules/nacho-signature-verifier-process/build/signature-verifier-process.mjs"
export NACHO_EVENT_FETCHER_PROCESS_SCRIPT_PATH="/nacho/dependencies/node_modules/nacho-event-fetcher-process/build/index.mjs"
export NACHO_PROOF_GENERATOR_PROCESS_SCRIPT_PATH="/nacho/dependencies/node_modules/nacho-proof-generator-process/build/index.mjs"
export NACHO_PROOF_MERGER_PROCESS_SCRIPT_PATH="/nacho/dependencies/node_modules/nacho-proof-merger-process/build/index.mjs"
export NACHO_PROOF_SUBMITTER_PROCESS_SCRIPT_PATH="/nacho/dependencies/node_modules/nacho-proof-submitter-process/build/index.mjs"
export NACHO_SIGNATURE_VERIFIER_PROCESS_SCRIPT_PATH="/nacho/dependencies/node_modules/nacho-signature-verifier-process/build/index.mjs"

# Don't forget to set those private environment variables before running this script.
# export NACHO_RPC_SERVER_PORT=""
# export NACHO_SUBMITTER_PRIVATE_KEY=""
# export NACHO_MINA_GRAPHQL_URL=""
# export NACHO_MINA_ARCHIVE_URL=""
# export NACHO_ROLLUP_CONTRACT_PUBLIC_KEY=""
# export NACHO_BRIDGE_CONTRACT_PUBLIC_KEY=""
10 changes: 10 additions & 0 deletions scripts/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
set -e

##############################################
# SETUP #
##############################################

source ./scripts/environment-variables.sh

node /nacho/dependencies/node_modules/nacho-setup-script/build/index.mjs http://localhost:8080/graphql http://127.0.0.1:8181/
4 changes: 2 additions & 2 deletions scripts/start-mina.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ set -e


##############################################
# START MINA #
# STARTS MINA LAYER 1 NETWORK #
##############################################

npm install -g zkapp-cli

zk lightnet start
zk lightnet start -p none -m single-node -b o1js-main
9 changes: 1 addition & 8 deletions scripts/start-nacho.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,9 @@
set -e

##############################################
# START NACHO #
# STARTS NACHO LAYER 2 NETWORK #
##############################################

# Don't forget to set those private environment variables before running this script.
# NACHO_RPC_SERVER_PORT
# NACHO_SUBMITTER_PRIVATE_KEY
# NACHO_MINA_NODE_URL
# NACHO_ROLLUP_CONTRACT_PUBLIC_KEY
# NACHO_BRIDGE_CONTRACT_PUBLIC_KEY

source ./scripts/environment-variables.sh

/nacho/bin/nacho-zk-rollup

0 comments on commit 859fc79

Please sign in to comment.