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

fix: Kakarot interface #1649

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions cairo_zero/kakarot/interfaces/interfaces.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ namespace IKakarot {
func get_starknet_address(evm_address: felt) -> (starknet_address: felt) {
}

func deploy_externally_owned_account(evm_address: felt) {
func deploy_externally_owned_account(evm_address: felt) -> (starknet_address: felt) {
}

func register_account(evm_address: felt) {
Expand All @@ -172,7 +172,7 @@ namespace IKakarot {
func upgrade_account(evm_address: felt, new_class: felt) {
}

func set_authorized_pre_eip155_tx(sender_address: felt, msg_hash: felt) {
func set_authorized_pre_eip155_tx(sender_address: felt, msg_hash: Uint256) {
}

func eth_call(
Expand All @@ -184,9 +184,25 @@ namespace IKakarot {
value: Uint256,
data_len: felt,
data: felt*,
access_list_len: felt,
access_list: felt*,
) -> (return_data_len: felt, return_data: felt*, success: felt, gas_used: felt) {
}

func eth_estimate_gas(
nonce: felt,
origin: felt,
to: model.Option,
gas_limit: felt,
gas_price: felt,
value: Uint256,
data_len: felt,
data: felt*,
access_list_len: felt,
access_list: felt*,
) -> (return_data_len: felt, return_data: felt*, success: felt, required_gas: felt) {
}

func eth_send_transaction(
to: model.Option,
gas_limit: felt,
Expand Down