-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add deployment script and params for InfractionCollector on mainnet
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
deployment: | ||
name: infraction | ||
chain_id: 137 | ||
|
||
artifacts: | ||
dir: ./deployment/artifacts/ | ||
filename: mainnet.json | ||
|
||
constants: | ||
# See deployment/artifacts/mainnet.json | ||
COORDINATOR_PROXY: "0xE74259e3dafe30bAA8700238e324b47aC98FE755" | ||
|
||
contracts: | ||
- InfractionCollector: | ||
proxy: | ||
constructor: | ||
_coordinator: $COORDINATOR_PROXY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/python3 | ||
|
||
from ape import project | ||
|
||
from deployment.constants import ( | ||
CONSTRUCTOR_PARAMS_DIR, ARTIFACTS_DIR, | ||
) | ||
from deployment.params import Deployer | ||
|
||
VERIFY = False | ||
CONSTRUCTOR_PARAMS_FILEPATH = CONSTRUCTOR_PARAMS_DIR / "mainnet" / "infraction.yml" | ||
TAPIR_REGISTRY = ARTIFACTS_DIR / "mainnet.json" | ||
|
||
|
||
def main(): | ||
deployer = Deployer.from_yaml(filepath=CONSTRUCTOR_PARAMS_FILEPATH, verify=VERIFY) | ||
infraction = deployer.deploy(project.InfractionCollector) | ||
deployments = [infraction] | ||
deployer.finalize(deployments=deployments) | ||
|