Skip to content

Commit

Permalink
fix: scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlagonia committed Nov 17, 2023
1 parent efa945a commit 0d4a45a
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 12 deletions.
25 changes: 15 additions & 10 deletions scripts/deploy_accountant.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,11 @@ def deploy_accountant():
print(f"Salt we are using {salt}")
print("Init balance:", deployer.balance / 1e18)

if (
input(
"Would you like to deploy a Generic Accountant or a HealthCheck Accountant? g/h "
).lower()
== "g"
):
version = input(
"Would you like to deploy a Generic Accountant, HealthCheck Accountant or a Refund Accountant? g/h/r "
).lower()

if version == "g":
print("Deploying a Generic accountant.")
print("Enter the default amounts to use in Base Points. (100% == 10_000)")

Expand All @@ -65,10 +64,15 @@ def deploy_accountant():
)

else:
print("Deploying a HealthCheck accountant.")
print("Enter the default amounts to use in Base Points. (100% == 10_000)")
if version == "h":
print("Deploying a HealthCheck accountant.")
accountant = project.HealthCheckAccountant

accountant = project.HealthCheckAccountant
else:
print("Deploying a Refund accountant.")
accountant = project.RefundAccountant

print("Enter the default amounts to use in Base Points. (100% == 10_000)")

management_fee = input("Default management fee? ")
assert int(management_fee) <= 200
Expand Down Expand Up @@ -112,9 +116,10 @@ def deploy_accountant():

address = event[0].addr

print("------------------")
print(f"Deployed the Accountant to {address}")
print("------------------")
print(f"Encoded Constructor to use for verifaction {constructor.hex()}")
print(f"Encoded Constructor to use for verifaction {constructor.hex()[2:]}")


def main():
Expand Down
3 changes: 2 additions & 1 deletion scripts/deploy_address_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ def deploy_address_provider():

address = event[0].addr

print("------------------")
print(f"Deployed the address provider to {address}")
print("------------------")
print(f"Encoded Constructor to use for verifaction {constructor.hex()}")
print(f"Encoded Constructor to use for verifaction {constructor.hex()[2:]}")


def main():
Expand Down
2 changes: 2 additions & 0 deletions scripts/deploy_allocator_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ def deploy_allocator_factory():

address = event[0].addr

print("------------------")
print(f"Deployed the Factory to {address}")
print("------------------")


def main():
Expand Down
3 changes: 2 additions & 1 deletion scripts/deploy_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@ def deploy_release_and_factory():

deployed_factory = factory.at(factory_event[0].addr)

print("------------------")
print(f"Deployed Registry Factory to {deployed_factory.address}")
print("------------------")
print(f"Encoded Constructor to use for verifaction {factory_constructor.hex()}")
print(f"Encoded Constructor to use for verifaction {factory_constructor.hex()[2:]}")


def main():
Expand Down

0 comments on commit 0d4a45a

Please sign in to comment.