feat: add interactive deployment and switch to poetry #2
@ -22,10 +22,6 @@ CONTRACTS = [
|
|||||||
{
|
{
|
||||||
"url": "https://gitlab.com/cicnet/erc20-demurrage-token/-/raw/master/python/erc20_demurrage_token/data/DemurrageTokenSingleNocap",
|
"url": "https://gitlab.com/cicnet/erc20-demurrage-token/-/raw/master/python/erc20_demurrage_token/data/DemurrageTokenSingleNocap",
|
||||||
"name": "Demurrage Token Single No Cap",
|
"name": "Demurrage Token Single No Cap",
|
||||||
},
|
|
||||||
{
|
|
||||||
"url":"https://gitlab.com/cicnet/erc20-demurrage-token/-/raw/lash/gas-safety-valve/python/erc20_demurrage_token/data/DemurrageTokenSingleNocap",
|
|
||||||
"name": "Demurrage Token Single No Cap (gas-safety-valve)",
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -33,15 +29,13 @@ CONTRACTS = [
|
|||||||
def download_file(url: str, filename=None) -> (str, bytes):
|
def download_file(url: str, filename=None) -> (str, bytes):
|
||||||
directory = tempfile.gettempdir()
|
directory = tempfile.gettempdir()
|
||||||
filename = filename if filename else url.split("/")[-1]
|
filename = filename if filename else url.split("/")[-1]
|
||||||
hash_object = hashlib.md5(url.encode())
|
|
||||||
path = os.path.join(directory, hash_object.hexdigest())
|
|
||||||
log.debug(f"Downloading {filename} to {path}")
|
|
||||||
if not os.path.exists(path):
|
|
||||||
log.debug(f"Downloading {filename}")
|
log.debug(f"Downloading {filename}")
|
||||||
r = requests.get(url, allow_redirects=True)
|
r = requests.get(url, allow_redirects=True)
|
||||||
|
content_hash = hashlib.md5(r.content).hexdigest()
|
||||||
|
path = os.path.join(directory, content_hash)
|
||||||
with open(path, "wb") as f:
|
with open(path, "wb") as f:
|
||||||
f.write(r.content)
|
f.write(r.content)
|
||||||
return path
|
log.debug(f"{filename} downloaded to {path}")
|
||||||
return path
|
return path
|
||||||
|
|
||||||
def get_contract_args(data: list):
|
def get_contract_args(data: list):
|
||||||
|
@ -5,7 +5,7 @@ proof_writer = cic.writers.KVWriter
|
|||||||
ext_writer = cic.writers.KVWriter
|
ext_writer = cic.writers.KVWriter
|
||||||
|
|
||||||
[cic]
|
[cic]
|
||||||
registry_address = 0xcf60ebc445b636a5ab787f9e8bc465a2a3ef8299
|
registry_address = 0x86c616fd2f020289d6fd7a98f3bd7539b335c995
|
||||||
|
|
||||||
[meta]
|
[meta]
|
||||||
url = https://meta.grassecon.net
|
url = https://meta.grassecon.net
|
||||||
@ -24,4 +24,4 @@ key_file = /home/will/grassroots/cic-internal-integration/apps/contract-migratio
|
|||||||
passphrase =
|
passphrase =
|
||||||
|
|
||||||
[chain]
|
[chain]
|
||||||
spec = evm:byzantium:5050:bloxberg
|
spec = evm:kitabu:5050:sarafu
|
Loading…
Reference in New Issue
Block a user