Skip to content

Commit

Permalink
add more upload help text
Browse files Browse the repository at this point in the history
  • Loading branch information
relyt29 committed Jun 20, 2019
1 parent 889a154 commit 8dc7864
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 5 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,34 @@ We have provided a python script you can use to upload your own website to the E
python upload.py --start-gas 8000000 -r "https://infura.io/v3/<some infura key>:443" "Some raw private key exported from metamask" "some deployed registry contract address such as 0x0e46..." mywebsite.html
```


```
(venv) ➜ EthSites git:(master) ✗ python upload.py -h
usage: upload.py [-h] [-r RPC_URL] [-t TIMEOUT] [--gas-price GAS_PRICE]
[--start-gas START_GAS]
key reg_addr filepath
Tool to upload/store files to the Ethereum blockchain
positional arguments:
key The Ethereum raw private key for the address that you wish to use to store with. This address must have enough money to store with.
reg_addr The address of the registry contract stored on chain.
filepath Path to file to upload.
optional arguments:
-h, --help show this help message and exit
-r RPC_URL, --rpc-url RPC_URL
The HTTP RPC Endpoint URL you wish to use.
-t TIMEOUT, --timeout TIMEOUT
The timeout to wait, in seconds.
--gas-price GAS_PRICE
Gas price to pay.
--start-gas START_GAS
Amount of Gas to pay in Wei.
(venv) ➜ EthSites git:(master) ✗
```


## Contract Deployment

The existing contract deployments are deployed on mainnet at [0x0e46d03b99aaa8b8cc093ffed5855b92d61f9609](https://etherscan.io/address/0x0e46d03b99aaa8b8cc093ffed5855b92d61f9609) for the Registry contract and [0x4CecEC099a5c8B554e6Ec0cdb7B7623f5016e20b](https://etherscan.io/address/0x4CecEC099a5c8B554e6Ec0cdb7B7623f5016e20b) for the Bootstrapper contract.
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ certifi==2019.6.16
chardet==3.0.4
cytoolz==0.9.0.1
eth-abi==1.3.0
eth-account==0.4.0
eth-account==0.3.0
eth-hash==0.2.0
eth-keyfile==0.5.1
eth-keys==0.2.4
Expand Down
8 changes: 4 additions & 4 deletions upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
function_abi_to_4byte_selector,
)
import time, json
#from web3 import Web3
from web3.auto.infura import w3
from web3 import Web3
#from web3.auto.infura import w3
import argparse
import math
import lzstring
Expand Down Expand Up @@ -76,8 +76,8 @@ def main():
'''

parser = _get_args()
#prov = Web3.HTTPProvider(parser.rpc_url) # not necessary if using infura
#w3 = Web3(prov)
prov = Web3.HTTPProvider(parser.rpc_url) # not necessary if using infura
w3 = Web3(prov)

with open('./compiles/Registry.abi','r') as f:
abi = json.loads(f.read())
Expand Down

0 comments on commit 8dc7864

Please sign in to comment.