Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ The methods for generating signature are described below:

> https://www.python.org/downloads/

2. Install dependencies
2. Download the metadata.json file

> curl https://fluence-dao.s3.eu-west-1.amazonaws.com/metadata.json > metadata.json

3. Install dependencies

> `./install.sh`

Expand All @@ -48,7 +52,7 @@ The methods for generating signature are described below:

> `pip3 install -r python/requirements.txt`

3. Run the script
4. Run the script

> `python3 python/proof.py`

Expand Down
4 changes: 4 additions & 0 deletions python/proof.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ def get_merkle_proof(metadata, tempETHAccount):

def main():
metadataPath = "metadata.json"
if not os.pathh.exists(metadataPath):
os.system(
"curl https://fluence-dao.s3.eu-west-1.amazonaws.com/metadata.json > metadata.json"
)
metadata = parse_metadata(metadataPath)

print('''
Expand Down