juno
juno copied to clipboard
Jelilat/implement-starknet_getClassAt
Closes https://github.com/NethermindEth/juno/issues/351
Description
This PR implements the starknet_getClassAt JSON RPC method as per version 0.1.0 of the specification
Changes:
- Added the
starknet_getClassAtmethod.
Types of changes
- New feature (non-breaking change which adds functionality)
Testing
Requires testing: Yes
Did you write tests?: No. Testing was done manually.
Codecov Report
Merging #358 (6cef8ec) into main (c5cc557) will decrease coverage by
0.41%. The diff coverage is83.61%.
@@ Coverage Diff @@
## main #358 +/- ##
==========================================
- Coverage 92.84% 92.42% -0.42%
==========================================
Files 67 67
Lines 7350 7397 +47
==========================================
+ Hits 6824 6837 +13
- Misses 519 551 +32
- Partials 7 9 +2
| Flag | Coverage Δ | |
|---|---|---|
| unittests | 92.42% <83.61%> (-0.42%) |
:arrow_down: |
Flags with carried forward coverage won't be shown. Click here to find out more.
| Impacted Files | Coverage Δ | |
|---|---|---|
| internal/db/state/contract.go | 100.00% <ø> (ø) |
|
| internal/juno/juno.go | 100.00% <ø> (ø) |
|
| internal/rpc/starknet/starknet.go | 0.00% <0.00%> (ø) |
|
| internal/rpc/starknet/types.go | 18.52% <0.00%> (-1.29%) |
:arrow_down: |
| internal/sync/sync.go | 100.00% <ø> (ø) |
|
| internal/sync/utils.go | 100.00% <ø> (ø) |
|
| pkg/feeder/feeder.go | 100.00% <ø> (ø) |
|
| pkg/types/class.go | 93.22% <93.22%> (ø) |
|
| internal/cairovm/vm.go | 100.00% <100.00%> (ø) |
|
| internal/cairovm/vmrpc/vm.go | 87.23% <100.00%> (+3.90%) |
:arrow_up: |
| ... and 10 more |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.