-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.mac.m1.sh
executable file
·18 lines (18 loc) · 984 Bytes
/
run.mac.m1.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
npm install --global @remix-project/remixd
echo "===================| Flattening StakingContract.sol |==================="
rm -rf contracts/StakingContractFlattened.sol
npx hardhat flatten contracts/StakingContract.sol > contracts/StakingContractFlattened.sol
echo "===================| Removing previous artifacts |==================="
rm -rf ./artifacts
rm -rf ./cache
echo "===================| Compiling |==================="
mkdir backup
mv contracts/StakingContract.sol backup/StakingContract.sol
npx hardhat compile
echo "===================| run the solt write contracts -r 200 if next command fails |==================="
arch -x86_64 chmod +x ./solt-mac
arch -x86_64 ./solt-mac write contracts -r 200
mv backup/StakingContract.sol contracts/StakingContract.sol
echo "===================| generated solc-input-contracts.json |==================="
echo "===================| Deploy the contracts using remix |==================="
npx remixd -s . -u https://remix.ethereum.org/