Logo
Explore Help
Sign In
logos-messaging/js-rln
1
0
Fork 0
You've already forked js-rln
mirror of https://github.com/logos-messaging/js-rln.git synced 2026-01-08 00:23:12 +00:00
Code Issues Packages Projects Releases Wiki Activity
js-rln/src/constants.ts

15 lines
508 B
TypeScript
Raw Normal View History

Add RLN Contract abstraction (#43) * implement rln contract abstraction, add basic tests, add usefull constants * remove test command * resolve simple comments * move to getter for members, add init method * fix naming * remove default signature message * use direct path to js file * try different karma config * try generic import * update test * address comments: rename const file, return prev regexp * remove test * bring back test file * fix mock approach * use any for type casting * use another approach for typecasting * update mocks * update mocked event * use correct value for mock * fix spy definition * add BigInt to MembershipKey * fix joining * use slice * remove accidentally commited junk * fix typo, use DataView for conversion, use BigInt directly Co-authored-by: weboko <anon@mail.com>
2023-01-26 18:58:18 +01:00
export const RLN_ABI = [
"function MEMBERSHIP_DEPOSIT() public view returns(uint256)",
"function register(uint256 pubkey) external payable",
"function withdraw(uint256 secret, uint256 _pubkeyIndex, address payable receiver) external",
"event MemberRegistered(uint256 pubkey, uint256 index)",
"event MemberWithdrawn(uint256 pubkey, uint256 index)",
];
export const GOERLI_CONTRACT = {
chainId: 5,
startBlock: 7109391,
address: "0x4252105670fe33d2947e8ead304969849e64f2a6",
abi: RLN_ABI,
};
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.0 Page: 36ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API