https://github.com/uvdsl/web3py-contractor
A contract compilation and deployment script, written in python using the web3py Websocket or RPC interface for geth.
https://github.com/uvdsl/web3py-contractor
compilation deployment geth-rpc python smart-contract web3py
Last synced: 11 months ago
JSON representation
A contract compilation and deployment script, written in python using the web3py Websocket or RPC interface for geth.
- Host: GitHub
- URL: https://github.com/uvdsl/web3py-contractor
- Owner: uvdsl
- Created: 2020-04-22T08:56:14.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-25T17:46:56.000Z (almost 3 years ago)
- Last Synced: 2025-03-01T14:29:36.371Z (over 1 year ago)
- Topics: compilation, deployment, geth-rpc, python, smart-contract, web3py
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Contractor (web3py)
A contract compilation and deployment script, written in python using the web3py Websocket or RPC interface for geth.
## Requirements
I used a conda environment with python 3.7:
```
pip install -r requirements.txt
```
## Usage
```
usage: contractor.py [-h] [-e ENDPOINT] [-cargs CONSTRUCTOR_ARGS] [-a ACCOUNT] [-p PASSWORD] contract
positional arguments:
contract Contract file in ./data/src/, e.g. myContract.sol or
myContract.vy, to be compiled. If the filetype is not
.vy or .sol, compilation will be skipped.
optional arguments:
-h, --help show this help message and exit
deployment arguments:
-e ENDPOINT, --endpoint ENDPOINT
Geth connection endpoint. If you don't provide an
endpoint, deployment will be skipped.
-cargs CONSTRUCTOR_ARGS, --constructor_args CONSTRUCTOR_ARGS
Arguments of the contract constructor in array syntax,
i.e. [args1,args2,...]. If the contract constructor
requires arguments you didn't provide, the deployment
will fail.
-a ACCOUNT, --account ACCOUNT
Account to unlock in 0x format. If you don't provide
an account, available accounts will be suggested.
-p PASSWORD, --password PASSWORD
The password to unlock the given account. If you don't
provide a password, you will be prompted.
```