feat: migrate the contract account data structure to kakarot-ssj #158
Labels
enhancement
New feature or request
smart-contract-logic
A specific type of opcode that requires smart contract logic as opposed to pure cairo
timebox-1day
1 day exploration - tinkering
Milestone
Feature Request
In Kakarot Cairo 0, to mimic the EVM contract accounts (Smart Contracts), we use Starknet contracts.
Source:
Each contract_account needs:
Tasks
Note that for storing its own bytecode we can:
Use storage index: Besides storing 32/16 bytes for each storage, once the hash for the storage location is calculated we can access up to 256 more slots by adding to the index.
Milan made a cool Alexandria storage list lib for this, we can use it here.
Additional Context
If the feature request is approved, would you be willing to submit a PR?
(Help can be provided if you need assistance submitting a PR)
The text was updated successfully, but these errors were encountered: