Skip to content

Commit caba294

Browse files
committed
Cairo v0.13.0.
1 parent 92fb7df commit caba294

File tree

8 files changed

+17
-16
lines changed

8 files changed

+17
-16
lines changed

WORKSPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ http_archive(
5252
"//src/starkware/starknet/compiler/v1:BUILD." + CAIRO_COMPILER_ARCHIVE,
5353
),
5454
strip_prefix = "cairo",
55-
url = "https://github.com/starkware-libs/cairo/releases/download/v2.4.0-rc6/release-x86_64-unknown-linux-musl.tar.gz",
55+
url = "https://github.com/starkware-libs/cairo/releases/download/v2.4.0/release-x86_64-unknown-linux-musl.tar.gz",
5656
)
5757

5858
http_archive(

src/starkware/cairo/lang/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.13.0a3
1+
0.13.0

src/starkware/cairo/sharp/BUILD

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ py_library(
4949
],
5050
visibility = ["//visibility:public"],
5151
deps = [
52-
"fact_checker_lib",
52+
":fact_checker_lib",
5353
"//src/starkware/cairo/bootloaders:cairo_bootloader_generate_fact_lib",
5454
"//src/starkware/cairo/bootloaders:cairo_hash_program_lib",
55+
"//src/starkware/cairo/lang/compiler:cairo_compile_lib",
5556
"//src/starkware/cairo/lang/vm:cairo_vm_crypto_lib",
5657
"//src/starkware/cairo/lang/vm:cairo_vm_lib",
5758
requirement("urllib3"),
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"prover_url": "https://testnet.provingservice.io",
3-
"verifier_address": "0x8f97970aC5a9aa8D130d35146F5b59c4aef57963",
3+
"verifier_address": "0x07ec0D28e50322Eb0C159B9090ecF3aeA8346DFe",
44
"steps_limit": 1000000
55
}

src/starkware/cairo/sharp/sharp_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def submit(args, command_args):
221221

222222

223223
def get_job_status(args, command_args):
224-
parser = argparse.ArgumentParser(description="Retreive the status of a SHARP Cairo job.")
224+
parser = argparse.ArgumentParser(description="Retrieve the status of a SHARP Cairo job.")
225225
parser.add_argument("job_key", type=str, help="The key identifying the job.")
226226

227227
parser.parse_args(command_args, namespace=args)
@@ -242,7 +242,7 @@ def is_verified(args, command_args):
242242
)
243243
parser.add_argument("fact", type=str, help="The fact to verify if registered.")
244244
parser.add_argument(
245-
"--node_url", required=True, type=str, help="URL for a Goerli Ethereum node RPC API."
245+
"--node_url", required=True, type=str, help="URL for a Sepolia Ethereum node RPC API."
246246
)
247247

248248
parser.parse_args(command_args, namespace=args)

src/starkware/starknet/definitions/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
CONSUMED_MSG_TO_L2_ENCODED_DATA_SIZE = (L1_TO_L2_MSG_HEADER_SIZE + 1) - CONSUMED_MSG_TO_L2_N_TOPICS
122122

123123
# The (empirical) L1 gas cost of each Cairo step.
124-
N_STEPS_FEE_WEIGHT = 0.01
124+
N_STEPS_FEE_WEIGHT = 0.005
125125

126126
# Expected return values of a 'validate' entry point.
127127
VALIDATE_RETDATA = [from_bytes(b"VALID")]

src/starkware/starknet/definitions/general_config.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,15 @@
7575
# Given in units of wei.
7676
DEFAULT_DEPRECATED_L1_GAS_PRICE = 10**11
7777
DEFAULT_CAIRO_RESOURCE_FEE_WEIGHTS = {
78-
N_STEPS_RESOURCE: 0.01,
78+
N_STEPS_RESOURCE: 0.005,
7979
**{builtin: 0.0 for builtin in ALL_BUILTINS.with_suffix()},
80-
with_suffix(PEDERSEN_BUILTIN): 0.32,
81-
with_suffix(RANGE_CHECK_BUILTIN): 0.16,
82-
with_suffix(ECDSA_BUILTIN): 20.48,
83-
with_suffix(KECCAK_BUILTIN): 20.48,
84-
with_suffix(BITWISE_BUILTIN): 0.64,
85-
with_suffix(EC_OP_BUILTIN): 10.24,
86-
with_suffix(POSEIDON_BUILTIN): 0.32,
80+
with_suffix(PEDERSEN_BUILTIN): 0.16,
81+
with_suffix(RANGE_CHECK_BUILTIN): 0.08,
82+
with_suffix(ECDSA_BUILTIN): 10.24,
83+
with_suffix(KECCAK_BUILTIN): 10.24,
84+
with_suffix(BITWISE_BUILTIN): 0.32,
85+
with_suffix(EC_OP_BUILTIN): 5.12,
86+
with_suffix(POSEIDON_BUILTIN): 0.16,
8787
}
8888

8989
DEFAULT_ETH_IN_STRK_WEI = 10**21

src/starkware/starknet/definitions/general_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cairo_resource_fee_weights:
2-
n_steps: 0.01
2+
n_steps: 0.005
33
compiled_class_hash_commitment_tree_height: 251
44
constant_gas_price: false
55
contract_storage_commitment_tree_height: 251

0 commit comments

Comments
 (0)