mirror of
https://github.com/waku-org/waku-simulator.git
synced 2025-02-28 15:30:31 +00:00
* chore: add rln registry deploy script * removed local variables, now passed via docker enviroment * foundry service now also running contract deploy script * replaced hardcoded contract bytecode with bytecode retrieved from github * fixed variable naming * Added Anvil RPC_URL to env file * new docker service to get waku-rln-contract repo, build it and deploy * added entrypoint: sh to contract-repo-deployer and deploy script now has bash/sh --------- Co-authored-by: rymnc <43716372+rymnc@users.noreply.github.com>
18 lines
529 B
Bash
18 lines
529 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
# 1. Install foundry
|
|
curl -L https://foundry.paradigm.xyz | bash && . /root/.bashrc && foundryup && export PATH=$PATH:$HOME/.foundry/bin
|
|
|
|
#. 2. Clone and build waku-rln-contract repo
|
|
git clone https://github.com/waku-org/waku-rln-contract.git
|
|
cd /waku-rln-contract
|
|
forge install && yarn install && yarn compile
|
|
|
|
# 3. Create .env file with RPC_PROVIDER variable
|
|
echo "creating .env file with RPC_PROVIDER=$RPC_URL"
|
|
echo "RPC_PROVIDER=$RPC_URL" > .env
|
|
|
|
# 3. Deploy the contracts
|
|
yarn deploy localhost_integration |