Converts a bigint representing a felt252 to a Cairo short-string.
Converts a bigint representing a felt252 to a Cairo short-string of the given length.
Nulls are allowed and length must be <= 31.
Free a dictionary using an optional callback to drop each element.
Duplicate a dictionary using a provided callback to clone each element.
Compute the total gas refund for the dictionary at squash time.
Return a pointer to the entry’s value pointer for a given key, inserting a null pointer if not
present. Increment the access count.
Allocate a new dictionary.
Get the gas builtin from the internal thread local.
Based on cairo-lang-runner’s implementation.
Compute ec_point_from_x_nz(x) and store it.
Compute ec_point_try_new_nz(x).
Compute ec_state_add(state, point) and store the state back.
Compute ec_state_add_mul(state, scalar, point) and store the state back.
Compute ec_state_init() and store the state back.
Compute ec_state_try_finalize_nz(state) and store the result.
Compute hades_permutation(op0, op1, op2) and replace the operands with the results.
Compute pedersen(lhs, rhs) and store it into dst.
Store the gas builtin in the internal thread local. Returns the old pointer, to restore it after execution.
Not a runtime metadata method, it should be called before the program is executed.
Formats a string or a short string / felt252. Returns the formatted string and a boolean
indicating whether it’s a string. If can’t format the item, returns None.