-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding rln contract deployment script (#30)
* 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>
- Loading branch information
Showing
3 changed files
with
51 additions
and
14 deletions.
There are no files selected for viewing
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 @@ | ||
#!/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 |
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