forked from madara-alliance/madara-bootstrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile_contracts.sh
executable file
·21 lines (17 loc) · 1.19 KB
/
compile_contracts.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
echo ">>>> Setting up deps for starkgate contracts 2.0.1 release"
./starkgate-contracts-2-0-1/scripts/setup.sh
echo ">>>> Building starkgate 2.0.1 contracts"
./starkgate-contracts-2-0-1/scripts/build-cairo.sh
./starkgate-contracts-2-0-1/scripts/build-solidity.sh
./starkgate-contracts-2-0-1/.downloads/cairo/bin/starknet-sierra-compile ./starkgate-contracts-2-0-1/cairo_contracts/ERC20.sierra ./starkgate-contracts-2-0-1/cairo_contracts/ERC20.casm
./starkgate-contracts-2-0-1/.downloads/cairo/bin/starknet-sierra-compile ./starkgate-contracts-2-0-1/cairo_contracts/TokenBridge.sierra ./starkgate-contracts-2-0-1/cairo_contracts/TokenBridge.casm
echo ">>>> copying the built contracts 2.0.1"
cp ./starkgate-contracts-2-0-1/cairo_contracts/ERC20.sierra ./src/contracts/erc20.sierra.json
cp ./starkgate-contracts-2-0-1/cairo_contracts/ERC20.casm ./src/contracts/erc20.casm.json
cp ./starkgate-contracts-2-0-1/cairo_contracts/TokenBridge.sierra ./src/contracts/token_bridge.sierra.json
cp ./starkgate-contracts-2-0-1/cairo_contracts/TokenBridge.casm ./src/contracts/token_bridge.casm.json
#echo ">>>> Setting up deps for starkgate contracts 0.9.0 release"
#cd starkgate-contracts || return
#./build.sh
#cd ..