mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-08-04 02:43:36 +00:00
* move rln specific procs and types * Renaming and restructuring RLN module * Rename waku_rln_relay to waku_rln * rename rln-relay types to rln * Fix linting * update logScope topics to match new rln module name * Rename waku_rln module to rln * Rename WakuRln type to Rln, rename FFI raw type to RlnRaw to avoid collision * Apply nph formatting * Rename local rlnRelay to rln in mountRlnRelay
27 lines
717 B
Nim
27 lines
717 B
Nim
{.push raises: [].}
|
|
|
|
import std/options, stint
|
|
|
|
import logos_delivery/waku/common/error_handling
|
|
|
|
type RlnCreds* {.requiresInit.} = object
|
|
path*: string
|
|
password*: string
|
|
|
|
type RlnConf* = object of RootObj
|
|
# TODO: severals parameters are only needed when it's dynamic
|
|
# change the config to either nest or use enum/type variant so it's obvious
|
|
# and then it can be set to `requiresInit`
|
|
dynamic*: bool
|
|
credIndex*: Option[uint]
|
|
ethContractAddress*: string
|
|
ethClientUrls*: seq[string]
|
|
chainId*: UInt256
|
|
creds*: Option[RlnCreds]
|
|
epochSizeSec*: uint64
|
|
userMessageLimit*: uint64
|
|
ethPrivateKey*: Option[string]
|
|
|
|
type WakuRlnConfig* = object of RlnConf
|
|
onFatalErrorAction*: OnFatalErrorHandler
|