Easy to use command line deployer for smart contracts.
Project description
Overview
Warfle is an easy-to-use command-line interface for deploying smart contracts without any deep configurations.
Important Note
In the current version, Warfle does not supports the public mainnet or testnet deployment
but in the further versions, We will add this feature.
Installation
Install from the with the setup
file of the project:
>>> git clone https://www.github.com/egesabanci/warfle
>>> cd warfle/
>>> pip install .
Example Usage
Let's say, we have a following smart contract:
// Test.sol
pragma solidity >=5.0.1;
contract Test {
string public greet;
function setGreet(string memory text) public returns (bool) {
greet = text;
return true;
}
function greet() public view returns (string) {
return greet;
}
}
Step 1:
Now, We want to deploy that contract with Warfle
. Firstly we need to initialize Warfle
to the current working folder:
>>> warfle init
This command will create a .warfle
configuration file to the current path. .warfle
file contains:
{
"rpc": "http://127.0.0.1:7545",
"public": <YOUR WALLET PUBLIC KEY>
}
Step 2 (Optional):
If we want to update the configurations, We can simple use the warfle update
command.
Example usage:
>>> warfle update KEY
key
argument must be rpc
or public
. You can not add any other argument to the .warfle
configuration file.
Step 3:
Then, We need to compile our smart contract with the warfle compile
command. This command will create a new source
folder to the current path. ./source
will contains 2 files: ABI of the contract (*.abi)
and Bytecode of the contract (*.bin)
. In our case, ./source
will contains: Test.abi
and Test.bin
:
Example:
>>> warfle compile Test.sol
Step 4:
Now, We are ready to deploy our contract with the warfle deploy
command:
>>> warfle deploy <PATH TO ABI> <PATH TO BIN>
In our case:
>>> warfle deploy source/Test.abi source/Test.bin
License
MIT © Ege Sabanci egesabanci@outlook.com.tr
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file warfle-deploy-cli-1.0.0.tar.gz
.
File metadata
- Download URL: warfle-deploy-cli-1.0.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b506eefcac1fe7c649642634b3d26a777cc1fc993f2726f7cd065078604c1352 |
|
MD5 | d7347a1abddd2123c40f6657ab4d41a7 |
|
BLAKE2b-256 | 6c81f803cb4d1c30b3dded517289dc90895515393e291b05c8529ff0d21c209d |
File details
Details for the file warfle_deploy_cli-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: warfle_deploy_cli-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5115b5d493adecc68b36d30e8ff34cfcaf787008018aae3f2b02b4e889aaa915 |
|
MD5 | 67209012be1fc154e2833c79bc9f1d3b |
|
BLAKE2b-256 | f5b7b5c8e1041a1c9a7ea1eb35e53656005f9b6793ac152bf0fd4dd364a53678 |