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

Commit

Permalink
fix: Kakarot interface (#1649)
Browse files Browse the repository at this point in the history
<!--- Please provide a general summary of your changes in the title
above -->

<!-- Give an estimate of the time you spent on this PR in terms of work
days.
Did you spend 0.5 days on this PR or rather 2 days?  -->

Time spent on this PR:

## Pull request type

<!-- Please try to limit your pull request to one type,
submit multiple pull requests if needed. -->

Please check the type of change your PR introduces:

- [ ] Bugfix
- [ ] Feature
- [ ] Code style update (formatting, renaming)
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [ ] Documentation content changes
- [ ] Other (please describe):

## What is the current behavior?

<!-- Please describe the current behavior that you are modifying,
or link to a relevant issue. -->

Resolves #<Issue number>

## What is the new behavior?
Fix kakarot interface
  • Loading branch information
obatirou authored Nov 29, 2024
1 parent 306d391 commit d8f9267
Showing 1 changed file with 18 additions and 2 deletions.
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

0 comments on commit d8f9267

Please sign in to comment.