To add in a new smart contract deployment feature that uses the Python-based Brownie framework. This add-in will give Scroll developers more flexibility to choose what type of framework to use when deploying new smart contracts to the Scroll blockchain. This new feature also contains a detailed tutorial inside the README.md file, as a walkthrough to assist developers that choose to use Brownie as the main framework for deployment.
Overview:
The deploy.py file, a Python file containing the code to deploy the Lock.sol contract, was added inside the ./scripts folder.
A Brownie tutorial was added to the README.md file, to assist developers to deploy the Scroll contract using the Brownie framework. This tutorial follows and complements the one already published in the Scroll docs.
Using brownie to create an account and add your private key to it is one of the safest ways to do it, since you won't need to add the private key manually to an .env file, won't store it on git, it won't show on configuration files, nor be accidentally pushed up to a public git repository.
Purpose:
README.md
file, as a walkthrough to assist developers that choose to use Brownie as the main framework for deployment.Overview:
The
deploy.py
file, a Python file containing the code to deploy theLock.sol
contract, was added inside the./scripts
folder.A Brownie tutorial was added to the README.md file, to assist developers to deploy the Scroll contract using the Brownie framework. This tutorial follows and complements the one already published in the Scroll docs.
Using brownie to create an account and add your private key to it is one of the safest ways to do it, since you won't need to add the private key manually to an
.env
file, won't store it on git, it won't show on configuration files, nor be accidentally pushed up to a public git repository.