mirror of
https://github.com/logos-messaging/logos-messaging-js.git
synced 2026-01-18 16:03:07 +00:00
* chore: update ABI * chore: update contract address and chain ID to Linea Sepolia * chore: improve error handling * fix: bigint conversion * chore: update tests * chore: clean comments * chore: export keystore types * chore: update README with contract address * tests: add reusable mock functions * chore: LINEA_CONTRACT instead of SEPOLIA_CONTRACT * chore: add linea to cspell * chore: add rateLimit to MembershipInfo * fix: determine start options * feat: RLNLight * chore: fix * chore: export * fix: returns for ratelimit * chore: big number conversions * chore: rename RLNLight to CredentialsManager, add logs * chore: setup and use rln_base_contract * chore: use CredentialsManager for rln.ts * chore: public methods written above private methods * fix: rate limit getter * chore: simplify getters/setters * chore: insert empty line
10 lines
378 B
TypeScript
10 lines
378 B
TypeScript
import type { RLNInstance } from "./rln.js";
|
|
|
|
export async function createRLN(): Promise<RLNInstance> {
|
|
// A dependency graph that contains any wasm must all be imported
|
|
// asynchronously. This file does the single async import, so
|
|
// that no one else needs to worry about it again.
|
|
const rlnModule = await import("./rln.js");
|
|
return rlnModule.RLNInstance.create();
|
|
}
|