Skip to content

feat: add test #5

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

Open
wants to merge 121 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
121 commits
Select commit Hold shift + click to select a range
c7e5b15
refactor: add support for batched updates
sergeytimoshin Dec 13, 2024
bf6211e
refactor: add support for batched updates
sergeytimoshin Dec 13, 2024
edc2a12
fix mock test
SwenSchaeferjohann Feb 20, 2025
85504a8
refactor: validate heights of inclusion and non-inclusion proofs
sergeytimoshin Feb 21, 2025
02934d6
refactor: implement AccountWithContext constructor and remove parse_a…
sergeytimoshin Feb 21, 2025
fab5af9
refactor: move spend_input_accounts_batched function to spend_batch m…
sergeytimoshin Feb 21, 2025
d47435e
refactor: rename spend_batch module to spend and move spend_input_acc…
sergeytimoshin Feb 21, 2025
1fa8743
refactor: streamline transaction parsing
sergeytimoshin Feb 21, 2025
2c06a91
refactor: restructure ingester/parser module
sergeytimoshin Feb 21, 2025
221c2fe
refactor: restructure ingester/persist module
sergeytimoshin Feb 21, 2025
dfe149e
add v2 endpoints
SwenSchaeferjohann Feb 20, 2025
32ebdd5
chore: renamed tests, wip reference Merkle tree to assert root
ananas-block Feb 21, 2025
6eab2bf
test: correct root
ananas-block Feb 21, 2025
929f259
test: add get_queue_elements test
ananas-block Feb 21, 2025
5fa721f
refactor: get_validity_proof_v2 and add tests
ananas-block Feb 21, 2025
4883029
removed leftover print
ananas-block Feb 22, 2025
5540710
feat: add v2 endpoints and update response schemas for compressed acc…
sergeytimoshin Feb 22, 2025
f4ba2f0
fix: tests
ananas-block Feb 22, 2025
dc3240f
fix: get_queue_elements response ordering
ananas-block Feb 22, 2025
7a62aac
fix: spend_input_accounts_batched
ananas-block Feb 23, 2025
ca29307
parser cleanup
ananas-block Feb 23, 2025
091b32a
refactor: persist batch events
ananas-block Feb 23, 2025
a4a3bb2
chore: add get_queue_elements test
ananas-block Feb 23, 2025
ff05689
fix: flaky nullification of batched input accounts
ananas-block Feb 23, 2025
e10038d
updated dep commit
ananas-block Feb 23, 2025
52eca18
refactor: update queue size calculation for batch inputs based on sta…
sergeytimoshin Feb 24, 2025
b109b11
feat: enhance account structure with tree type and update queue handling
sergeytimoshin Feb 24, 2025
1705b5a
refactor: fix SQL syntax in account initialization and update queue a…
sergeytimoshin Feb 24, 2025
64f3959
refactor: correct queue access in batched state tree tests and adjust…
sergeytimoshin Feb 24, 2025
1eb73ad
feat: update AccountContext to include tree type in mock tests and utils
sergeytimoshin Feb 24, 2025
abd4e02
tests wip
ananas-block Feb 24, 2025
8733c59
feat: add queue and tree_type fields to mock test data
sergeytimoshin Feb 24, 2025
5293c7f
chore: update light-protocol dependencies
sergeytimoshin Feb 24, 2025
e1b2142
refactor: update light-protocol dependencies and improve error handli…
sergeytimoshin Feb 24, 2025
1f2615e
cleanup
sergeytimoshin Feb 25, 2025
6b04fa9
feat: update API responses to include V2 schemas and add new fields f…
sergeytimoshin Feb 25, 2025
6ad4c84
chore: rename GetCompressedAccountsByOwnerV2Response -> GetCompressed…
ananas-block Feb 25, 2025
6364bfc
chore: updated to refactored event_from_light_transaction
ananas-block Feb 27, 2025
7d80855
test: four cpi events
ananas-block Feb 27, 2025
717e514
* add validation for maximum allowed hashes in get_validity_proof_v2 …
sergeytimoshin Feb 27, 2025
36f8611
feat: refactor account structures to use MerkleContextV2 and update A…
sergeytimoshin Feb 28, 2025
b9f6325
pass as u16
SwenSchaeferjohann Feb 28, 2025
2acc49c
rm
SwenSchaeferjohann Feb 28, 2025
1374040
refactor: remove constant for maximum allowed hashes in get_validity_…
sergeytimoshin Feb 28, 2025
017e2a1
feat: move account*, context and limit structs to typedefs
sergeytimoshin Feb 28, 2025
b4cf6c9
fix: update parse_leaf_index function to accept i64 and adjust relate…
sergeytimoshin Feb 28, 2025
4ea553b
feat: move TryFrom for AccountWithContext to account/context.rs
sergeytimoshin Feb 28, 2025
b40732a
refactor: remove parse_discriminator function from utils.rs
sergeytimoshin Feb 28, 2025
455ed54
refactored event to use unified enum doesn't work
ananas-block Feb 27, 2025
2840a6e
add new test data
ananas-block Feb 28, 2025
47877a2
fix: refactor
ananas-block Feb 28, 2025
73ef1a7
* implement v2 API for compressed account proofs
sergeytimoshin Feb 28, 2025
63bd1d5
Update src/api/method/get_compressed_account_proof/v2.rs
sergeytimoshin Feb 28, 2025
f6d4822
fix: add error handling for mismatched accounts and hashes in v2 API
sergeytimoshin Feb 28, 2025
248a312
fix: add error handling for missing account in v2 API
sergeytimoshin Feb 28, 2025
4dfd2f2
feat: integrate ContextInfo into GetCompressedAccountProofResponseVal…
sergeytimoshin Feb 28, 2025
1d9738f
refactor: clean up imports in tx_event_parser.rs
sergeytimoshin Feb 28, 2025
30cfaef
refactor: remove debug print statement from leaf_node.rs
sergeytimoshin Feb 28, 2025
9459951
refactor: simplify GetMultipleCompressedAccountProofsResponseValueV2 …
sergeytimoshin Feb 28, 2025
102b34d
refactor: simplify GetMultipleCompressedAccountProofsResponseV2 by re…
sergeytimoshin Feb 28, 2025
01e5c39
feat: add v2 endpoints for compressed account proofs and update API s…
sergeytimoshin Feb 28, 2025
cda4281
refactor: remove debug print statements and clean up imports in API m…
sergeytimoshin Feb 28, 2025
50d5776
consistent tree field in v2 responses
SwenSchaeferjohann Mar 3, 2025
5b942ae
validityproofv2 merkle_context -> merkle_contexts
SwenSchaeferjohann Mar 4, 2025
8620ea8
update naming for get_transaction_with_compression_info helpers v2
SwenSchaeferjohann Mar 5, 2025
ceb3ff9
fix batch events processing
sergeytimoshin Mar 8, 2025
4de5481
remove unused AccountContext
ananas-block Mar 8, 2025
11f9333
chore: remove unused StateUpdate field
ananas-block Mar 8, 2025
caa6c68
move parse_token_data_v2 to get_transaction_with_compression_info
ananas-block Mar 8, 2025
4b603d5
chore: add test description
ananas-block Mar 8, 2025
5de639b
wip
SwenSchaeferjohann Mar 8, 2025
89c0cba
register getCompressedAccountProofV2
SwenSchaeferjohann Mar 8, 2025
86d168d
fix: update test assertions
ananas-block Mar 10, 2025
dc03b36
fix: GetQueueElementsResponseValue camelCase
ananas-block Mar 10, 2025
95e7bca
feat: batch address update support
sergeytimoshin Mar 17, 2025
de16956
feat: implement batch address tree tests
sergeytimoshin Apr 8, 2025
f442d99
refactor: remove debug print statements from multiple modules
sergeytimoshin Apr 9, 2025
9e18e9d
fix: update .gitignore to ignore all .env files
sergeytimoshin Apr 9, 2025
b7e368b
fix: use create_dir_all for creating temp directory
sergeytimoshin Apr 9, 2025
18538b1
feat: add legacy state and address trees to tree_info
sergeytimoshin Apr 11, 2025
7448d21
feat: implement conversion from PublicTransactionEventV1 and V2 to Pu…
sergeytimoshin Apr 11, 2025
e343c58
refactor: remove PublicTransactionEvent enum and related conversions
sergeytimoshin Apr 12, 2025
2c14e2f
update tests data
sergeytimoshin Apr 12, 2025
fbe133f
update tests data
sergeytimoshin Apr 12, 2025
2f443be
remove leftover
sergeytimoshin Apr 12, 2025
c97949f
remove leftover
sergeytimoshin Apr 12, 2025
ce1986d
remove leftover
sergeytimoshin Apr 12, 2025
18af236
update batched address tree tests
sergeytimoshin Apr 12, 2025
49e6609
batched address tree tests wip
sergeytimoshin Apr 12, 2025
50a86bf
cleanup
sergeytimoshin Apr 12, 2025
eb11fdc
cleanup
sergeytimoshin Apr 12, 2025
d1357b3
cleanup
sergeytimoshin Apr 12, 2025
625a794
cleanup
sergeytimoshin Apr 12, 2025
9515c3a
add support for custom account compression program ID
sergeytimoshin Apr 12, 2025
8c8c1ee
* For get_multiple_new_address_proofs if request tree is V2, requeste…
sergeytimoshin Apr 29, 2025
72bee5a
Switch to `solana-pubkey` and update dependencies.
sergeytimoshin Apr 29, 2025
3f6f61d
Switch to `solana-pubkey` and update dependencies.
sergeytimoshin Apr 30, 2025
8735d25
Update import for Pubkey from solana_pubkey and adjust account key ma…
sergeytimoshin Apr 30, 2025
f161915
update tree height handling and clean up debug prints
sergeytimoshin Apr 30, 2025
e8b6785
fix test environment comment and increment state tree height for leaf…
sergeytimoshin Apr 30, 2025
f63d4a7
test tx data
sergeytimoshin Apr 30, 2025
b1a2f6f
test tx data
sergeytimoshin Apr 30, 2025
aec9f6c
test tx data
sergeytimoshin Apr 30, 2025
39868f7
test tx data
sergeytimoshin Apr 30, 2025
b43c5b9
refactor address tree handling and improve logging for batch updates
sergeytimoshin May 1, 2025
fe38564
refactor batched address tests
sergeytimoshin May 2, 2025
ddd18ca
Move `light-merkle-tree-reference` to dev-dependencies
sergeytimoshin May 6, 2025
99e131f
fix: test batched tree transactions test (#24)
sergeytimoshin May 7, 2025
c1b8c0d
refactor: validity proof v2 response layout
sergeytimoshin May 11, 2025
e030a0b
refactor: update dependencies and improve proof handling
sergeytimoshin May 13, 2025
9bcf656
1. updated proof deserialization to skip validation for performance i…
sergeytimoshin May 15, 2025
0a0d18f
updated `negate_proof` to return `Result` for better error handling
sergeytimoshin May 15, 2025
b53a871
chore: update ark-* to 0.5
sergeytimoshin May 15, 2025
48ffcfa
refactor: remove commented-out code for clarity in v2.rs
sergeytimoshin May 15, 2025
5c20ac7
refactor: prover logic, dependency updates (#28)
sergeytimoshin May 18, 2025
8812f95
refactor: improve transaction parsing logic and clean up code
sergeytimoshin May 30, 2025
3a66f16
Update prover docker image to sergeytimoshin/prover:latest
sergeytimoshin May 30, 2025
0fb67ec
Export proof input types for OpenAPI schema generation
sergeytimoshin May 30, 2025
0662eb3
chore: remove tree.txt, replace git dependencies with released crates
ananas-block May 30, 2025
e05df82
chore: replace git dev dep with released dep
ananas-block May 30, 2025
852100d
chore: rename start_offset -> start_queue_index, zkp_batch_size -> li…
ananas-block Jun 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

jobs:
test:
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:

- name: Start light-prover container
run: |
docker run -d -p 3001:3001 docker.io/pmantica1/light-prover:1
docker run -d -p 3001:3001 docker.io/sergeytimoshin/prover:latest

- name: Set environment variables
run: |
Expand Down
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
.env*
.idea

test-ledger/

# Added by cargo

/target
/.cargo

.DS_Store

minio
test.db
docker-compose.yml
Loading
Loading