juno
juno copied to clipboard
Add getNonce endpoint
Fixes | Closes | Resolves #347
Description
Adds starknet_getNonce endpoint.
Changes:
- Stores
noncein theContractStatetable - Provides the
nonceusing the RPC
Types of changes
- New feature (non-breaking change which adds functionality)
Testing
Requires testing: Yes
Did you write tests??: No
Documentation
If this requires a documentation update, did you add one? No
Codecov Report
Merging #395 (4f706b6) into main (c5cc557) will decrease coverage by
0.08%. The diff coverage is72.00%.
@@ Coverage Diff @@
## main #395 +/- ##
==========================================
- Coverage 92.84% 92.75% -0.09%
==========================================
Files 67 67
Lines 7350 7360 +10
==========================================
+ Hits 6824 6827 +3
- Misses 519 526 +7
Partials 7 7
| Flag | Coverage Δ | |
|---|---|---|
| unittests | 92.75% <72.00%> (-0.09%) |
:arrow_down: |
Flags with carried forward coverage won't be shown. Click here to find out more.
| Impacted Files | Coverage Δ | |
|---|---|---|
| internal/db/transaction/transaction.pb.go | 100.00% <ø> (ø) |
|
| internal/juno/juno.go | 100.00% <ø> (ø) |
|
| internal/rpc/starknet/starknet.go | 0.00% <0.00%> (ø) |
|
| internal/sync/sync.go | 100.00% <ø> (ø) |
|
| pkg/felt/felt.go | 100.00% <ø> (ø) |
|
| pkg/state/contract.go | 100.00% <ø> (ø) |
|
| internal/db/state/contract.go | 100.00% <100.00%> (ø) |
|
| internal/db/state/state.pb.go | 100.00% <100.00%> (ø) |
|
| internal/sync/apiCollection.go | 100.00% <100.00%> (ø) |
|
| pkg/state/state.go | 100.00% <100.00%> (ø) |
|
| ... and 3 more |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.