Skip to content

Commit a017c49

Browse files
authored
feat: update rln package and contract (#18)
1 parent 6a5bb06 commit a017c49

File tree

10 files changed

+735
-282
lines changed

10 files changed

+735
-282
lines changed

package-lock.json

Lines changed: 237 additions & 114 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@radix-ui/react-toggle": "^1.1.2",
2222
"@radix-ui/react-toggle-group": "^1.1.2",
2323
"@radix-ui/react-tooltip": "^1.1.8",
24-
"@waku/rln": "0.1.7-987c6cd.0",
24+
"@waku/rln": "0.1.10-593bc45.0",
2525
"class-variance-authority": "^0.7.1",
2626
"clsx": "^2.1.1",
2727
"framer-motion": "^12.6.3",

src/components/RLNStatusIndicator.tsx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,9 @@ import { useRLN } from '../contexts';
55
import { useWallet } from '../contexts';
66

77
export function RLNStatusIndicator() {
8-
const { isInitialized, isStarted, isLoading, error, rln } = useRLN();
8+
const { isInitialized, isStarted, isLoading, error } = useRLN();
99
const { isConnected, chainId } = useWallet();
1010

11-
// Debug logging
12-
console.log('RLN Status:', {
13-
isConnected,
14-
chainId,
15-
isInitialized,
16-
isStarted,
17-
isLoading,
18-
error,
19-
rln
20-
});
21-
2211
const getStatusColor = () => {
2312
if (error) return 'bg-red-500 shadow-[0_0_8px_0_rgba(239,68,68,0.6)]';
2413
if (isLoading) return 'bg-yellow-500 animate-pulse shadow-[0_0_8px_0_rgba(234,179,8,0.6)]';

src/components/Tabs/RunNodeTab/RunNodeTab.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ function CodeBlock({ code }: { code: string }) {
3535
);
3636
}
3737

38+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
3839
export default function RunNodeTab({ tabId: _tabId }: RunNodeTabProps) {
3940
const {
4041
hasStoredCredentials,

src/content/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { RLN_REGISTRATION_CONTRACT_ADDRESS } from '../contracts/constants';
2+
13
export type ContentSegment = {
24
type: 'text' | 'link';
35
content: string;
@@ -20,7 +22,7 @@ export const membershipRegistration = {
2022
],
2123
[
2224
{ type: 'text', content: 'This application is configured to use the ' },
23-
{ type: 'link', content: 'Linea Sepolia', url: 'https://sepolia.lineascan.build/address/0xb9cd878c90e49f797b4431fbf4fb333108cb90e6' },
25+
{ type: 'link', content: 'Linea Sepolia', url: `https://sepolia.lineascan.build/address/${RLN_REGISTRATION_CONTRACT_ADDRESS.toLowerCase()}` },
2426
{ type: 'text', content: ' testnet for RLN registrations.' }
2527
],
2628
[

0 commit comments

Comments
 (0)