sydhds
a212c96ce3
Various clippy fixes
2025-08-13 14:52:46 +02:00
Vinh Trịnh
802872e155
Test and fix smart contract interaction ( #24 )
...
* chore: add karma_sc_test, karma_tiers_test, rln_sc_test script
* chore: fix rustls panic erro in prover_cli
* fix: update TierLimits's validate method to handle first tier's minKarma starts at 0
* chore: add NoTier
* chore: update Dockerfile
* chore: update rust version and tooling to build rocksdb deps
* fix: refactor smart contract interaction scripts, add error enum and remove unuse codes
* fix: add PRIVATE_KEY env variable, seperate specific error types, update Dockerfile, remove config.example.toml and use clap's default_value instead
* chore: update Dockerfile
* chore: remove unuse register_user_with_commitment and redundant KarmaSCInstance::from
2025-08-12 22:39:18 +07:00
Sydhds
400d0155a7
Update for new KarmaTiers smart contract ( #23 )
...
* Update for new KarmaTiers smart contract
* Add Anvil unit test for KarmaTiers SC
* Add unit test for KarmaSC
* Add rln sc unit test
2025-07-31 11:40:50 +02:00
Sydhds
d33c1016cd
Update && enable unit test: test_user_spamming_same_signal ( #13 )
...
* Update && enable unit test: test_user_spamming_same_signal
* Add debug_assert in epoch_counters_operands
* Write merkle tree inside db transaction
* Add note about error handling in RegistryListener
* Remove user if it cannot register it to smart contract
* Remove user in db if we cannot add to SC
* Add support for config file
2025-07-04 11:41:36 +02:00
Sydhds
cac235dbcc
Add TierLimits unit tests ( #12 )
...
* Add TierLimits unit tests
2025-07-01 10:11:08 +02:00
Sydhds
9f4027ed2b
Add UserRocksDb - initial attemp to rewrite UserDb with persistent st… ( #10 )
...
* Use RocksDb + PmTree for UserDb persistent storage
2025-06-27 15:41:41 +02:00
Sydhds
409cdcb651
Move all code related to smart contracts into lib smart_contract ( #7 )
...
* Move all code related to smart contracts into lib smart_contract
* Can start the prover with mocked smart contract
* Add KarmaTier integration
* Filter & validate initial tier limits
2025-06-13 12:04:10 +02:00