Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-06T22:05:57.000Z (over 2 years ago)
- Last Synced: 2023-03-06T18:45:26.259Z (almost 2 years 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] contractpositional 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 exitdeployment 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.
```