Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Commit

Permalink
Update deployments and messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementWalter committed Oct 10, 2024
1 parent fad7add commit 68ff9ab
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 10 deletions.
26 changes: 19 additions & 7 deletions deployments/starknet-sepolia/kakarot_deployments.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
{
"Bridge": {
"address": "0x5fbdb2315678afecb367f032d93f642f64180aa3",
"starknet_address": "0x31af0ca9f2991fc54f20c54c66d87dd8492066a0a38ab50faa1f4df144f36d9"
"WETH9": {
"address": "0x37f78d636aab48c5cffc9909390cf62318b8abbf",
"starknet_address": "0x19a5d6a1d55619a79fdaa98a696c2b2e379e1b5a402c9bf78ad18833c189c70"
},
"WETH": {
"address": "0xe7f1725e7734ce288f8367e1bb143e90bb3f0512",
"starknet_address": "0x50ebf948c87f34b5b491ca0f07c9a0a912fe3a11e1f0a73eff9aa5bea86304a"
"KakarotETH": {
"address": "0x5e950f65e70a06efae17cd3f6d8e4fc6474b5b8d",
"starknet_address": "0x734abad1f311ff96517f55d2ae31fa178235c99d51dc97a03f126b719775c62"
},
"KakarotSTRK": {
"address": "0x68b7dbbd2ef15e9e6716d58ea844ee72976b131f",
"starknet_address": "0x1dd4844458b812a6a865b6537c03327e58025a1b6b7bd1c2bfb2a7d92234dac"
},
"L2KakarotMessaging": {
"address": "0x3653ff9df27df8bca306fb628e70f1c90fcde27f",
"starknet_address": "0x4227ee2b1b5611dbbe1f54410e244f90581ddc8f66caebf9d4e1c9aa8dc8da0"
},
"Coinbase": {
"address": "0xccaa1b04b831ea3e547d4fe4359e0c2f5b34b749",
"starknet_address": "0x152c78b2d1229464d461bc323801739bf7a439d049685f59c506b356d0da1bb"
}
}
}
2 changes: 1 addition & 1 deletion kakarot_scripts/deploy_kakarot.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ async def main():
"kakarot",
"set_authorized_cairo_precompile_caller",
int(l2_kakarot_messaging.address, 16),
True,
1,
)
evm_deployments["L2KakarotMessaging"] = {
"address": int(l2_kakarot_messaging.address, 16),
Expand Down
10 changes: 8 additions & 2 deletions kakarot_scripts/utils/kakarot.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import functools
import json
import logging
import time
from collections import defaultdict
from pathlib import Path
from types import MethodType
Expand Down Expand Up @@ -47,7 +48,6 @@
from kakarot_scripts.utils.starknet import get_contract as _get_starknet_contract
from kakarot_scripts.utils.starknet import get_deployments as _get_starknet_deployments
from kakarot_scripts.utils.starknet import invoke as _invoke_starknet
from kakarot_scripts.utils.starknet import wait_for_transaction
from kakarot_scripts.utils.uint256 import int_to_uint256
from tests.utils.constants import TRANSACTION_GAS_LIMIT
from tests.utils.helpers import pack_calldata, rlp_encode_signed_data
Expand Down Expand Up @@ -629,7 +629,13 @@ async def send_starknet_transaction(
account=relayer,
)

receipt = await RPC_CLIENT.get_transaction_receipt(tx_hash)
try:
receipt = await RPC_CLIENT.get_transaction_receipt(tx_hash)
except Exception:
# Sometime the RPC_CLIENT is too fast and the first pool raises with
# starknet_py.net.client_errors.ClientError: Client failed with code 29. Message: Transaction hash not found
time.sleep(2)
receipt = await RPC_CLIENT.get_transaction_receipt(tx_hash)
transaction_events = [
event
for event in receipt.events
Expand Down

0 comments on commit 68ff9ab

Please sign in to comment.