Skip to content

Commit

Permalink
Add deployment script and params for InfractionCollector on mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
theref committed Aug 22, 2024
1 parent 2211cd3 commit 0fb1c3c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
17 changes: 17 additions & 0 deletions deployment/constructor_params/mainnet/infraction.yml
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
20 changes: 20 additions & 0 deletions scripts/mainnet/deploy_infraction.py
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)

0 comments on commit 0fb1c3c

Please sign in to comment.