Aaryamann Challani
059cb97518
chore(rln-relay-v2): wakunode testing + improvements ( #2501 )
...
* chore(rln-relay-v2): additional testing
* fix: bump librln to v0.4.2 for v2
* fix: catch possible error from the copyFrom
* ci: rename step title for rln-version
2024-03-12 16:20:30 +05:30
Aaryamann Challani
1274b15d75
fix(rln-relay): handle empty metadata returned by getMetadata proc ( #2516 )
...
* fix(rln-relay): silence error on startup when metadata is not found
* chore: fix fetching value from option
* fix: clarity of returned opt
2024-03-08 19:36:22 +05:30
Aaryamann Challani
beba14dcaa
fix(rln-relay): make nullifier log abide by epoch ordering ( #2508 )
...
* fix(rln-relay): nullifier log abide by epoch ordering
* fix: cleaner hasKey method, test
* chore: idiomatic usage of results, error handling
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
---------
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
2024-03-06 23:59:07 +05:30
Aaryamann Challani
5b174fb392
chore(rln-relay-v2): added tests for static rln-relay-v2 ( #2484 )
...
* chore(rln-relay-v2): added tests for onchain rln-relay-v2
* chore(rln-relay): added tests for static rln-relay-v2
* Update waku/waku_rln_relay/group_manager/static/group_manager.nim
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
* fix: split lines
* fix: remove redundant require
* fix: remove redundant require
* fix: bad await
---------
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
2024-03-04 17:41:33 +05:30
Aaryamann Challani
88ff928213
chore(rln-relay-v2): added tests for onchain rln-relay-v2 ( #2482 )
...
* chore(rln-relay-v2): added tests for onchain rln-relay-v2
* Update tests/waku_rln_relay/test_rln_group_manager_onchain.nim
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
---------
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
2024-03-01 14:15:40 +05:30
Alvaro Revuelta
3f4f6d7e5b
chore: remove rln epoch hardcoding ( #2483 )
2024-02-28 17:19:20 +01:00
Aaryamann Challani
f6332ac646
chore(rln-relay): use anvil instead of ganache in onchain tests ( #2449 )
...
* chore(rln-relay): use anvil instead of ganache in onchain tests
* fix: incl rustup in makefile
2024-02-22 16:59:13 +05:30
gabrielmer
8f487a2179
fix: checking for keystore file existence ( #2427 )
2024-02-15 17:33:15 +02:00
Aaryamann Challani
d0377056ca
chore(rln-relay-v2): add tests for serde ( #2421 )
...
* chore(rln-relay-v2): add tests for serde
* fix: call isOk fn instead of prop access
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
* fix: make cast more explicit
---------
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
2024-02-14 13:24:05 +05:30
Aaryamann Challani
50308eda0d
feat(rln-relay-v2): nonce/messageId manager ( #2413 )
...
* feat(rln-relay-v2): nonce/messageId manager
* fix: simplify
2024-02-13 10:18:02 +05:30
Álex Cabeza Romero
f86baa01a7
test(rln): Implement some rln unit tests ( #2356 )
...
* Fix sanity check location.
* Implement some rln tests.
2024-02-02 09:56:41 +01:00
Aaryamann Challani
c55ca06756
chore(rln-relay-v2): use rln-v2 contract code ( #2381 )
...
* chore(rln-relay-v2): use rln-v2 contract code
* fix: reduced duped code
2024-01-30 23:28:30 +05:30
Aaryamann Challani
efdc5244f6
chore(rln-relay): remove websocket from OnchainGroupManager ( #2364 )
...
* chore(rln-relay): remove websocket from OnchainGroupManager
* fix: swap ws for http
2024-01-23 23:22:45 +05:30
gabrielmer
f841454edc
chore: improve POST /relay/v1/auto/messages/{topic} error handling ( #2339 )
2024-01-18 13:49:13 +01:00
gabrielmer
3d816c0814
chore: Bump `nim-dnsdisc` ( #2354 )
...
* chore: bump `vendor/nim-dnsdisc`
* chore: Update import path of dnsdisc
---------
Co-authored-by: Emil Ivanichkov <emil.ivanichkov@gmail.com>
2024-01-15 16:54:02 +02:00
Alvaro Revuelta
5847f49d3d
fix: make rln rate limit spec compliant ( #2294 )
2023-12-15 10:26:17 +01:00
Ivan FB
385daf16be
chore: vendor bump for 0.23.0 ( #2274 )
...
* on_chain/group_manager: use .async: (raises:[Exception]).
* bump nim-dnsdisc
* update nim-chronos to the latest state
* chat2.nim: catch any possible exception when stopping
* chat2bridge.nim: make it to compile after vendor bump
* ValidIpAddress (deprecated) -> IpAddress
* vendor/nim-libp2p additional bump
* libwaku: adapt to vendor bump
* testlib/wakunode.nim: adapt to vendor bump (ValidIpAddress -> IpAddress)
* waku_node: avoid throwing any exception from stop*(node: WakuNode)
* test_confutils_envvar.nim: ValidIpAddress -> IpAddress
* test_jsonrpc_store: capture exception
* test_rln*: handling exceptions
* adaptation to make test_rln_* to work properly
* signature enhancement of group_manager methods
2023-12-14 07:16:39 +01:00
Álex Cabeza Romero
d864db3fb5
feat(coverage): Add simple coverage ( #2067 )
...
* Add test aggregator to all directories.
* Implement coverage script.
2023-09-27 15:53:23 +02:00
Simon-Pierre Vivier
1763b1efa1
feat: Autosharding API for RELAY subscriptions ( #1983 )
2023-09-26 07:33:52 -04:00
Aaryamann Challani
2e515a06ed
chore(rln-relay): logs, updated submodule, leaves_set metric ( #2024 )
...
* chore(rln-relay): logs, updated submodule, leaves_set metric
* chore(rln-relay): update build script, fix makefile
2023-09-18 10:56:58 +05:30
Aaryamann Challani
21604e6bfd
fix(rln-relay): missed roots during sync ( #2015 )
2023-09-08 18:24:27 +05:30
Aaryamann Challani
5638bd06bb
chore(rln-relay): add isReady check ( #1989 )
...
* chore(rln-relay): add isReady check
* fix(rln-relay): multiple parameters for checking if node is in sync
* fix: set latesthead in newHeadCallback
* fix: explicit rpc call
* fix: unhandled exception
2023-09-06 14:16:19 +05:30
Aaryamann Challani
483f40c8f7
chore(rln-relay): clean up nullifier table every MaxEpochGap ( #1994 )
2023-09-06 13:48:02 +05:30
Aaryamann Challani
debc5f19d9
feat(relay): ordered validator execution ( #1966 )
...
* feat(relay): ordered validator execution
* fix: make more readable
* test: ignore accepts only
* fix: idempotent .subscribe
* fix(rln-relay): make validators private
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com>
* fix: include comments, unsubscribe behaviour
* fix: compilation
---------
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com>
2023-09-05 14:35:07 +05:30
Aaryamann Challani
a14c32614a
chore(rln-relay): use the only key from keystore if only 1 exists ( #1984 )
...
* chore(rln-relay): use the only key from keystore if only 1 exists
* fix: convert iterator to seq and then index into it
2023-09-04 15:46:44 +05:30
Aaryamann Challani
be48891f77
chore(rln-relay): confirm that the provided credential is correct using onchain query ( #1980 )
2023-09-04 11:22:31 +05:30
Alvaro Revuelta
05c988645d
chore(api): validate rln message before sending (rest + rpc) ( #1968 )
2023-09-01 15:03:59 +02:00
Alvaro Revuelta
f262397d71
fix(tests): fix flaky test ( #1972 )
2023-08-31 12:24:41 +02:00
Aaryamann Challani
e7b2b88f5b
fix(rln-relay): modify keystore credentials logic ( #1956 )
...
* fix(rln-relay): modify keystore credentials logic
fix: bump version
* Update waku/waku_rln_relay/group_manager/on_chain/group_manager.nim
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com>
* Update tests/waku_rln_relay/test_waku_rln_relay.nim
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com>
* Update waku/waku_keystore/protocol_types.nim
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com>
* fix: greatly improve error handling
* fix: display proc and appropriate assert
---------
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com>
2023-08-29 17:46:21 +05:30
Aaryamann Challani
bd3be21929
fix(rln-relay): sync from deployed block number ( #1955 )
...
* fix(rln-relay): sync from deployed block number
* fix(rln-relay): remove option usage for ints
* fix: unnecessary decl
2023-08-29 13:12:13 +05:30
Aaryamann Challani
01634f57f0
fix(rln-relay): window of acceptable roots synced to rln metadata ( #1953 )
...
* fix(rln-relay): window of acceptable roots synced to rln metadata
* fix(rln-relay): s/var/let, use for loop
2023-08-25 23:29:17 +05:30
Aaryamann Challani
cc9f8d4254
chore(rln-relay): integrate waku rln registry ( #1943 )
2023-08-25 22:48:52 +05:30
Aaryamann Challani
1ae5b5a951
fix(rln-relay): RLN DB should be aware of chain and contract address ( #1932 )
2023-08-23 18:23:30 +05:30
Alvaro Revuelta
0ac8a7f0cd
fix(test): fix flaky rln test ( #1923 )
2023-08-22 10:10:54 +02:00
Alvaro Revuelta
af95b5713f
chore(rln): run rln in all relay pubsubtopics + remove cli flags ( #1917 )
2023-08-21 08:55:34 +02:00
Aaryamann Challani
c9772af0be
fix(rln-relay): timeout on macos runners, use fixed version of ganache ( #1913 )
2023-08-16 17:04:16 +05:30
Hanno Cornelius
b9d5d28af5
chore: remove references to v2 ( #1898 )
...
* chore: remove references to v2
* fix: lingering rln-relay import path
2023-08-09 18:11:50 +01:00