Digine-Labs / rosettanet

Ethereum <> Starknet RPC middleware.
MIT License
34 stars 27 forks source link

Estimate gas implementation #125

Closed Boreas09 closed 1 month ago

Boreas09 commented 2 months ago

solves #111

Hey there, i writed most of the code and i stuck where i need to create a calldata for starknet's rpc. In ethereum a simple eth transaction that sends eth from address a to b do not need a data value. Its just account a, account b and eth value being sent. I need to convert it a calldata parameter so i can send it to starknet. I need help doing it. You can see what i did in draft pull request.

Boreas09 commented 1 month ago

Hey @ermvrs can you check it out?

ermvrs commented 1 month ago

Here is how we convert calldatas. https://github.com/keep-starknet-strange/rosettanet/blob/main/src/utils/calldata.ts

In case signatures are needed on starknet_estimateFee, then open an issue according to that. Or return non-revert value.