Skip to content

feat: persistent tree metadata #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 81 commits into
base: jorrit/feat-add-test
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
31f62cc
refactor: add support for batched updates
sergeytimoshin Dec 13, 2024
be0fb91
refactor: add support for batched updates
sergeytimoshin Dec 13, 2024
6c3c80d
fix mock test
SwenSchaeferjohann Feb 20, 2025
7a7984c
Merge pull request #4 from Lightprotocol/swen/fmt-fix-tests
sergeytimoshin Feb 20, 2025
f53ab9c
refactor: validate heights of inclusion and non-inclusion proofs
sergeytimoshin Feb 21, 2025
2aff2b2
refactor: implement AccountWithContext constructor and remove parse_a…
sergeytimoshin Feb 21, 2025
32d128e
refactor: move spend_input_accounts_batched function to spend_batch m…
sergeytimoshin Feb 21, 2025
718cd09
refactor: rename spend_batch module to spend and move spend_input_acc…
sergeytimoshin Feb 21, 2025
96f7ad2
refactor: streamline transaction parsing
sergeytimoshin Feb 21, 2025
21b022e
refactor: restructure ingester/parser module
sergeytimoshin Feb 21, 2025
3216841
refactor: restructure ingester/persist module
sergeytimoshin Feb 21, 2025
0ba905c
add v2 endpoints
SwenSchaeferjohann Feb 20, 2025
8f186bf
chore: renamed tests, wip reference Merkle tree to assert root
ananas-block Feb 21, 2025
0aca77e
test: correct root
ananas-block Feb 21, 2025
0c5eafe
test: add get_queue_elements test
ananas-block Feb 21, 2025
16be21f
refactor: get_validity_proof_v2 and add tests
ananas-block Feb 21, 2025
651f24a
removed leftover print
ananas-block Feb 22, 2025
9817c89
feat: add v2 endpoints and update response schemas for compressed acc…
sergeytimoshin Feb 22, 2025
dcde89d
fix: tests
ananas-block Feb 22, 2025
510e359
fix: get_queue_elements response ordering
ananas-block Feb 22, 2025
dc4af28
fix: spend_input_accounts_batched
ananas-block Feb 23, 2025
5016392
parser cleanup
ananas-block Feb 23, 2025
baa4d99
refactor: persist batch events
ananas-block Feb 23, 2025
27ba3b5
chore: add get_queue_elements test
ananas-block Feb 23, 2025
84cfc1a
fix: flaky nullification of batched input accounts
ananas-block Feb 23, 2025
4a316ab
updated dep commit
ananas-block Feb 23, 2025
7edfcbb
refactor: update queue size calculation for batch inputs based on sta…
sergeytimoshin Feb 24, 2025
1eaeaab
feat: enhance account structure with tree type and update queue handling
sergeytimoshin Feb 24, 2025
f2ee155
refactor: fix SQL syntax in account initialization and update queue a…
sergeytimoshin Feb 24, 2025
b6d075a
refactor: correct queue access in batched state tree tests and adjust…
sergeytimoshin Feb 24, 2025
2485469
feat: update AccountContext to include tree type in mock tests and utils
sergeytimoshin Feb 24, 2025
b8d6772
tests wip
ananas-block Feb 24, 2025
a7ed862
feat: add queue and tree_type fields to mock test data
sergeytimoshin Feb 24, 2025
9698d31
chore: update light-protocol dependencies
sergeytimoshin Feb 24, 2025
015b2da
refactor: update light-protocol dependencies and improve error handli…
sergeytimoshin Feb 24, 2025
a2d897f
cleanup
sergeytimoshin Feb 25, 2025
c410da2
feat: update API responses to include V2 schemas and add new fields f…
sergeytimoshin Feb 25, 2025
bc3d844
chore: rename GetCompressedAccountsByOwnerV2Response -> GetCompressed…
ananas-block Feb 25, 2025
724a1f7
chore: updated to refactored event_from_light_transaction
ananas-block Feb 27, 2025
a1c2bc9
test: four cpi events
ananas-block Feb 27, 2025
164451f
refactored event to use unified enum doesn't work
ananas-block Feb 27, 2025
5c5e33d
* add validation for maximum allowed hashes in get_validity_proof_v2 …
sergeytimoshin Feb 27, 2025
5b63f63
feat: refactor account structures to use MerkleContextV2 and update A…
sergeytimoshin Feb 28, 2025
2c7c774
pass as u16
SwenSchaeferjohann Feb 28, 2025
27c1c7d
rm
SwenSchaeferjohann Feb 28, 2025
ee782e2
add new test data
ananas-block Feb 28, 2025
3d45ec4
fix: refactor
ananas-block Feb 28, 2025
fe3b960
Merge pull request #8 from Lightprotocol/swen/tree_type_rev
sergeytimoshin Feb 28, 2025
744d0b1
refactor: remove constant for maximum allowed hashes in get_validity_…
sergeytimoshin Feb 28, 2025
e223473
feat: move account*, context and limit structs to typedefs
sergeytimoshin Feb 28, 2025
3186fea
fix: update parse_leaf_index function to accept i64 and adjust relate…
sergeytimoshin Feb 28, 2025
ae71bdb
feat: move TryFrom for AccountWithContext to account/context.rs
sergeytimoshin Feb 28, 2025
6f47913
refactor: remove parse_discriminator function from utils.rs
sergeytimoshin Feb 28, 2025
6ba5c07
Merge pull request #9 from Lightprotocol/jorrit/refactor-event-failed
sergeytimoshin Feb 28, 2025
c423ece
* implement v2 API for compressed account proofs
sergeytimoshin Feb 28, 2025
97d57dd
Update src/api/method/get_compressed_account_proof/v2.rs
sergeytimoshin Feb 28, 2025
f23ceeb
fix: add error handling for mismatched accounts and hashes in v2 API
sergeytimoshin Feb 28, 2025
90d162b
fix: add error handling for missing account in v2 API
sergeytimoshin Feb 28, 2025
62b3b9d
feat: integrate ContextInfo into GetCompressedAccountProofResponseVal…
sergeytimoshin Feb 28, 2025
d066125
refactor: clean up imports in tx_event_parser.rs
sergeytimoshin Feb 28, 2025
14dfd6d
refactor: remove debug print statement from leaf_node.rs
sergeytimoshin Feb 28, 2025
d76e21e
refactor: simplify GetMultipleCompressedAccountProofsResponseValueV2 …
sergeytimoshin Feb 28, 2025
7296ab4
refactor: simplify GetMultipleCompressedAccountProofsResponseV2 by re…
sergeytimoshin Feb 28, 2025
12cbda6
Merge pull request #10 from Lightprotocol/sergey/photon-ref-tree-context
SwenSchaeferjohann Feb 28, 2025
25d01a0
feat: add v2 endpoints for compressed account proofs and update API s…
sergeytimoshin Feb 28, 2025
634f61b
refactor: remove debug print statements and clean up imports in API m…
sergeytimoshin Feb 28, 2025
a779dbe
consistent tree field in v2 responses
SwenSchaeferjohann Mar 3, 2025
7bb52e9
validityproofv2 merkle_context -> merkle_contexts
SwenSchaeferjohann Mar 4, 2025
e5a55be
update naming for get_transaction_with_compression_info helpers v2
SwenSchaeferjohann Mar 5, 2025
fb37f43
Merge pull request #11 from Lightprotocol/swen/consistent-v2-interfac…
sergeytimoshin Mar 7, 2025
cf9aa91
Merge pull request #12 from Lightprotocol/swen/merkle-contexts
sergeytimoshin Mar 7, 2025
c909d50
fix batch events processing
sergeytimoshin Mar 8, 2025
3951e17
remove unused AccountContext
ananas-block Mar 8, 2025
20747df
chore: remove unused StateUpdate field
ananas-block Mar 8, 2025
572ab0d
move parse_token_data_v2 to get_transaction_with_compression_info
ananas-block Mar 8, 2025
3edd5d7
chore: add test description
ananas-block Mar 8, 2025
1317def
wip
SwenSchaeferjohann Mar 8, 2025
16943c0
register getCompressedAccountProofV2
SwenSchaeferjohann Mar 8, 2025
55d041e
fix: update test assertions
ananas-block Mar 10, 2025
bd44bb6
fix: GetQueueElementsResponseValue camelCase
ananas-block Mar 10, 2025
6f873cd
feat: store tree metadata in db
sergeytimoshin Mar 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
.idea

test-ledger/

# Added by cargo

/target
/.cargo

.DS_Store

minio
test.db
docker-compose.yml
Loading