Skip to content

Commit

Permalink
feat: add madara devnet (#122)
Browse files Browse the repository at this point in the history
* feat: madara devnet deployment

* deployed 🎉
  • Loading branch information
EvolveArt authored Sep 24, 2024
1 parent eeb381b commit 4700472
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 5 deletions.
9 changes: 9 additions & 0 deletions deployments/madara_test/declarations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"pragma_Oracle": "0x230f20832d73433a0ef69663545aabb607a3bbc0ff0a5f75e5d9716730e4141",
"pragma_Ownable": "0x7b50a7a9bbb75d08248135003f1c87f0d44ba23018dc0ca480ac37a901531f3",
"pragma_PublisherRegistry": "0x306288971002bd7906e3a607d504dfb28dcbdc7655a115984e567dce3b67e8f",
"pragma_SummaryStats": "0x30f6d03650b88c1268fd285e89ce660082439e8496b3359efa5dcda2d9ff12e",
"pragma_Randomness": "0x2e167703c1deef69c6c5076133d3491fc75d1d1f486e6a8375712d28ff10fa4",
"pragma_ExampleRandomness": "0x2f8197e47fa9776db20a22e009fdeee079f0387cbc823fad5bf0d8e285e81a7",
"pragma_YieldCurve": "0x1d59490811990de9a28095a519c045eeae60e5a7c6b976a207fcd56716b4171"
}
10 changes: 10 additions & 0 deletions deployments/madara_test/deployments.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"pragma_PublisherRegistry": {
"address": "0x1051e6a2110d4b9d18344214180415f8d524867e42794f09e4ca975668db541",
"tx": "0x18600c869f848e9663232e2c25a196c34a4ac54ac2651ebaf32ef17cd72235e"
},
"pragma_Oracle": {
"address": "0x5bec6ca0be39624d95818d17857428c9995d4db5ddd088aefbf218b6d280f2a",
"tx": "0xfad6c97fc9869d0bee86a5c47bf19d2083e18eedea50781e796fd42a9ef254"
}
}
14 changes: 9 additions & 5 deletions pragma-deployer/pragma_deployer/utils/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,25 @@
"mainnet": {
"name": "mainnet",
"rpc_url": "https://starknet-mainnet.public.blastapi.io/rpc/v0_7",
"chain_id": StarknetChainId.MAINNET,
},
"sepolia": {
"name": "sepolia",
"explorer_url": "https://sepolia.starkscan.co/",
"rpc_url": "https://starknet-sepolia.public.blastapi.io/rpc/v0_7",
"chain_id": StarknetChainId.SEPOLIA,
},
"devnet": {
"name": "devnet",
"explorer_url": "https://devnet.starkscan.co",
"rpc_url": "http://127.0.0.1:5050/rpc",
"chain_id": StarknetChainId.SEPOLIA,
},
"madara_test": {
"name": "madara_test",
"explorer_url": "",
"rpc_url": "http://pragma-devnet.karnot.xyz/",
"chain_id": 93395501017206423887893332,
},
}

Expand All @@ -52,11 +61,6 @@
f"⚠️ {NETWORK['name'].upper()}_PRIVATE_KEY not set, defaulting to PRIVATE_KEY"
)
NETWORK["private_key"] = os.getenv("PRIVATE_KEY")
if NETWORK["name"] == "mainnet":
NETWORK["chain_id"] = StarknetChainId.MAINNET
else:
NETWORK["chain_id"] = StarknetChainId.SEPOLIA


FULLNODE_CLIENT = FullNodeClient(
node_url=NETWORK["rpc_url"],
Expand Down

0 comments on commit 4700472

Please sign in to comment.