Skip to content

Commit

Permalink
fraxtal deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
bout3fiddy committed Feb 13, 2024
1 parent cf378ed commit 6a87285
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/push_pr.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
on:
release:
types: [ created ]
types: [created]

name: on-creating-new-tag

Expand Down Expand Up @@ -30,7 +30,7 @@ jobs:
git config user.name "curvefi"
git remote update
git fetch
git checkout master
git checkout main
git add deployments
git commit -m "chore: add release file - $TITLE"
git push
Expand Down
5 changes: 5 additions & 0 deletions deployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ ethereum:sepolia:
factory: '0x98EE851a00abeE0d95D08cF4CA2BdCE32aeaAF7F'
math: '0x2005995a71243be9FB995DaB4742327dc76564Df'
views: '0x07CdEBF81977E111B08C126DEFA07818d0045b80'
fraxtal:mainnet:
amm: '0x04Fd6beC7D45EFA99a27D29FB94b55c56dD07223'
factory: '0x98EE851a00abeE0d95D08cF4CA2BdCE32aeaAF7F'
math: '0x2005995a71243be9FB995DaB4742327dc76564Df'
views: '0x07CdEBF81977E111B08C126DEFA07818d0045b80'
ftm:mainnet:
amm: '0x04Fd6beC7D45EFA99a27D29FB94b55c56dD07223'
factory: '0x98EE851a00abeE0d95D08cF4CA2BdCE32aeaAF7F'
Expand Down
11 changes: 5 additions & 6 deletions scripts/deploy_infra.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,9 @@ def check_and_deploy(
return contract_obj.at(deployed_contract_address)

logger.log(f"Deploying {contract_designation} contract ...")
salt = keccak(42069)
compiled_bytecode = contract_obj.compiler_data.bytecode

try:
salt = keccak(42069)
compiled_bytecode = contract_obj.compiler_data.bytecode
(
precomputed_address,
deployment_bytecode,
Expand Down Expand Up @@ -216,9 +215,9 @@ def main():

forkmode = False
deploy_infra(
":mainnet",
os.environ["RPC_"],
"",
"fraxtal:mainnet",
os.environ["RPC_FRAXTAL"],
"FIDDYDEPLOYER",
fork=forkmode,
)

Expand Down
4 changes: 4 additions & 0 deletions scripts/deployment_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ class CurveNetworkSettings:
thin_proxy_contract="",
fee_receiver_address="0x4920088D9a5e5De9c098FCA4960d0DA5f4caa4c1",
),
"fraxtal:mainnet": CurveNetworkSettings(
thin_proxy_contract="0x8b3EFBEfa6eD222077455d6f0DCdA3bF4f3F57A6",
fee_receiver_address="0x8b3EFBEfa6eD222077455d6f0DCdA3bF4f3F57A6",
),
}

CURVE_DAO_OWNERSHIP = {
Expand Down

0 comments on commit 6a87285

Please sign in to comment.