-
Notifications
You must be signed in to change notification settings - Fork 84
feat: implement eth_get_balance
#941
Comments
Hi, I would like to work on this! |
Hey @stevencartavia! |
Hi, this will be for the ODHack week |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedHii! My name is Daniel, I’m a Computer Science student and web3 developer. I’ve done some contributions, finished a Starknet Bootcamp, exercises on NodeGuardians, finished Starklings and I have participated in multiple Hackathons. I’m also a member of the Dojo Coding community.I’ve contributed to the project in the past. How I plan on tackling this issueI would approach this issue in the following way:
|
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedHi, I am Cairo dev with lots of experience contributing to Cairo projects, my OD profile is a witness to this. This feat is right within my comfort zone. How I plan on tackling this issueI would go through the code base and understand the functionality expected, after that I would write a robust test ensuring all test cases are covered and the feat behaves as expected. |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedI am a cairo developer , and have a thorough understanding of ethereum rpc endpoints How I plan on tackling this issueRead the codebase, try to implement the rpc endpoint , use the implementation where its needed. |
This comment was marked as abuse.
This comment was marked as abuse.
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedWith over four years in blockchain and backend development, I’ve worked across different ecosystems, handling everything from smart contract design to on-chain interactions and protocol integration. I focus on building secure, scalable, and reliable blockchain applications, managing both on-chain and off-chain infrastructure. How I plan on tackling this issueAs this would be my first contribution. I'd start by reviewing Kakarot's architecture, then select the best possible way for implementing the eth_get_rpc. Once completed would proceed to test and integrate with the JSON rpc interface. |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedI have some experience in Cairo, mostly porting Solidity ERCs to Cairo: How I plan on tackling this issueI will leverage kakarot_core address_registry function to map the given EthAddress to the corresponding Starknet ContractAddress, then I will query this address balance on the native_token. |
The maintainer enitrat has assigned saimeunt to this issue via OnlyDust Platform. |
Implement the method
eth_get_balance
of theEthRPC
traitkakarot-ssj/crates/contracts/src/kakarot_core/eth_rpc.cairo
Lines 124 to 126 in b1f7f8c
Given an evm address, this will return the balance of this address.
Use this where required inside the codebase, e.g.
kakarot-ssj/crates/evm/src/backend/validation.cairo
Lines 52 to 56 in b1f7f8c
kakarot-ssj/crates/evm/src/backend/starknet_backend.cairo
Lines 120 to 125 in b1f7f8c
The text was updated successfully, but these errors were encountered: