KasarLabs / deoxys-fork

Deoxys 👽 is a Starknet full node based on substrate and powered by Rust 🦀
https://deoxys.kasar.io
MIT License
27 stars 8 forks source link

Implemented `starknet_getClassAt` and `starknet_getClassHashAt` #118

Closed Trantorian1 closed 8 months ago

Trantorian1 commented 8 months ago

Pull Request type

What is the current behavior?

Resolves: #32 #33 #34

What is the new behavior?

Does this introduce a breaking change?

No changes have been made to class or ABI storage, so there is no need to synchronize the database

Other information

:warning: Note that due to how the genesis block is currently being stored, contract address to class equivalences relations are not being inserted for block 0. This causes issues for starknet_getClassHashAt and starknet_getClassAt on any class/contract defined on block 0. See #54 for more details.

starknet_getClass, starknet_getClassHashAt and starknet_getClassAt were briefly tested on the following classes:

More tests will need to follow in Ditto.

:warning: Note that there still appears to be a deserialization issue at block 20731. This is likely to be similar to #116.