From b431fba0a751c57a20bfa1ec57563d16aca95435 Mon Sep 17 00:00:00 2001 From: Miguel Nascimento Date: Tue, 10 Dec 2024 23:05:29 -0300 Subject: [PATCH 1/2] chore: new contracts --- .prettierrc | 1 + package.json | 1 + pnpm-lock.yaml | 1242 ++++++++-------- src/contracts.ts | 3644 ++++++++++++++++++---------------------------- wagmi.config.ts | 2715 +++++++++++++--------------------- 5 files changed, 3102 insertions(+), 4501 deletions(-) diff --git a/.prettierrc b/.prettierrc index 43944a8..bbcbd05 100644 --- a/.prettierrc +++ b/.prettierrc @@ -4,5 +4,6 @@ "tabWidth": 2, "semi": false, "singleQuote": true, + "arrowParens": "always", "plugins": ["prettier-plugin-organize-imports", "prettier-plugin-tailwindcss"] } diff --git a/package.json b/package.json index ba7b129..4f111c4 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "@react-spring/three": "^9.7.3", "@react-three/drei": "^9.105.6", "@react-three/fiber": "^8.16.3", + "@river-build/generated": "^0.0.127", "@styled-jsx/plugin-sass": "^4.0.1", "@tanstack/react-query": "^5.29.2", "@tanstack/react-query-devtools": "^5.45.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d55290d..a048df2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -31,46 +31,49 @@ importers: version: 3.2.0(graphql@16.8.1) '@hookform/resolvers': specifier: ^3.3.4 - version: 3.4.2(react-hook-form@7.51.5) + version: 3.4.2(react-hook-form@7.51.5(react@18.3.1)) '@radix-ui/react-accordion': specifier: ^1.1.0 - version: 1.1.2(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + version: 1.1.2(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-dialog': specifier: ^1.0.2 - version: 1.0.5(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + version: 1.0.5(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-dropdown-menu': specifier: ^2.0.2 - version: 2.0.6(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + version: 2.0.6(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-label': specifier: ^2.0.2 - version: 2.0.2(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + version: 2.0.2(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-navigation-menu': specifier: ^1.1.4 - version: 1.1.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + version: 1.1.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-popover': specifier: ^1.0.7 - version: 1.0.7(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + version: 1.0.7(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-scroll-area': specifier: ^1.0.4 - version: 1.0.5(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + version: 1.0.5(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-slot': specifier: ^1.0.2 version: 1.0.2(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-toast': specifier: ^1.1.4 - version: 1.1.5(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + version: 1.1.5(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-tooltip': specifier: ^1.0.7 - version: 1.0.7(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + version: 1.0.7(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@react-spring/three': specifier: ^9.7.3 - version: 9.7.3(@react-three/fiber@8.16.7)(react@18.3.1)(three@0.164.1) + version: 9.7.3(@react-three/fiber@8.16.7(react-dom@18.3.1(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1)(three@0.164.1))(react@18.3.1)(three@0.164.1) '@react-three/drei': specifier: ^9.105.6 - version: 9.106.0(@react-three/fiber@8.16.7)(@types/react@18.3.1)(@types/three@0.164.1)(react-dom@18.3.1)(react@18.3.1)(three@0.164.1) + version: 9.106.0(@react-three/fiber@8.16.7(react-dom@18.3.1(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1)(three@0.164.1))(@types/react@18.3.1)(@types/three@0.164.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(three@0.164.1) '@react-three/fiber': specifier: ^8.16.3 - version: 8.16.7(react-dom@18.3.1)(react-native@0.74.1)(react@18.3.1)(three@0.164.1) + version: 8.16.7(react-dom@18.3.1(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1)(three@0.164.1) + '@river-build/generated': + specifier: ^0.0.127 + version: 0.0.127 '@styled-jsx/plugin-sass': specifier: ^4.0.1 version: 4.1.0(sass@1.77.4) @@ -79,7 +82,7 @@ importers: version: 5.40.0(react@18.3.1) '@tanstack/react-query-devtools': specifier: ^5.45.0 - version: 5.45.0(@tanstack/react-query@5.40.0)(react@18.3.1) + version: 5.45.0(@tanstack/react-query@5.40.0(react@18.3.1))(react@18.3.1) '@types/seedrandom': specifier: ^3.0.8 version: 3.0.8 @@ -91,7 +94,7 @@ importers: version: 10.3.1(react@18.3.1) '@web3modal/wagmi': specifier: ^4.1.7 - version: 4.2.3(@types/react@18.3.1)(@wagmi/connectors@5.0.14)(@wagmi/core@2.11.2)(react-dom@18.3.1)(react@18.3.1)(viem@2.13.3) + version: 4.2.3(tvdeig7epb6pfdu4bgzyotf5qu) class-variance-authority: specifier: ^0.6.0 version: 0.6.1 @@ -106,13 +109,13 @@ importers: version: 8.0.1(react@18.3.1) embla-carousel-wheel-gestures: specifier: 8.0.1 - version: 8.0.1(embla-carousel@8.1.3) + version: 8.0.1(embla-carousel@8.0.1) framer-motion: specifier: ^11.0.3 - version: 11.2.10(react-dom@18.3.1)(react@18.3.1) + version: 11.2.10(react-dom@18.3.1(react@18.3.1))(react@18.3.1) geist: specifier: ^1.2.1 - version: 1.3.0(next@14.2.3) + version: 1.3.0(next@14.2.3(@babel/core@7.24.6)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.4)) graphql: specifier: ^16.8.1 version: 16.8.1 @@ -133,13 +136,13 @@ importers: version: 2.51.0 next: specifier: ^14.2.3 - version: 14.2.3(@babel/core@7.24.6)(react-dom@18.3.1)(react@18.3.1)(sass@1.77.4) + version: 14.2.3(@babel/core@7.24.6)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.4) react: specifier: ^18.3.1 version: 18.3.1 react-datocms: specifier: ^4.1.3 - version: 4.2.2(@types/react-dom@18.3.0)(@types/react@18.3.1)(graphql@16.8.1)(react-dom@18.3.1)(react@18.3.1) + version: 4.2.2(@types/react-dom@18.3.0)(@types/react@18.3.1)(graphql@16.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react-dom: specifier: ^18.3.1 version: 18.3.1(react@18.3.1) @@ -184,10 +187,10 @@ importers: version: 9.0.4(react@18.3.1) viem: specifier: ^2.9.16 - version: 2.13.3(typescript@5.4.5)(zod@3.23.8) + version: 2.13.3(bufferutil@4.0.8)(typescript@5.4.5)(zod@3.23.8) wagmi: specifier: ^2.10.2 - version: 2.10.2(@tanstack/react-query@5.40.0)(@types/react@18.3.1)(react-dom@18.3.1)(react-i18next@13.5.0)(react-native@0.74.1)(react@18.3.1)(typescript@5.4.5)(viem@2.13.3)(zod@3.23.8) + version: 2.10.2(@tanstack/query-core@5.40.0)(@tanstack/react-query@5.40.0(react@18.3.1))(@types/react@18.3.1)(bufferutil@4.0.8)(react-dom@18.3.1(react@18.3.1))(react-i18next@13.5.0(i18next@22.5.1)(react-dom@18.3.1(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1)(typescript@5.4.5)(viem@2.13.3(bufferutil@4.0.8)(typescript@5.4.5)(zod@3.23.8))(zod@3.23.8) wavesurfer.js: specifier: ^7.1.1 version: 7.7.15 @@ -203,7 +206,7 @@ importers: version: 7.24.6(@babel/core@7.24.6) '@graphql-codegen/cli': specifier: ^5.0.2 - version: 5.0.2(@types/node@17.0.45)(graphql@16.8.1)(typescript@5.4.5) + version: 5.0.2(@parcel/watcher@2.4.1)(@types/node@17.0.45)(bufferutil@4.0.8)(enquirer@2.4.1)(graphql@16.8.1)(typescript@5.4.5) '@graphql-codegen/client-preset': specifier: ^4.2.4 version: 4.2.6(graphql@16.8.1) @@ -218,7 +221,7 @@ importers: version: 7.6.19 '@storybook/addon-essentials': specifier: ^7.4.6 - version: 7.6.19(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + version: 7.6.19(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@storybook/addon-interactions': specifier: ^7.4.6 version: 7.6.19 @@ -227,13 +230,13 @@ importers: version: 7.6.19(react@18.3.1) '@storybook/addon-postcss': specifier: ^2.0.0 - version: 2.0.0(webpack@5.91.0) + version: 2.0.0(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)) '@storybook/nextjs': specifier: ^7.4.6 - version: 7.6.19(@swc/core@1.5.24)(esbuild@0.18.20)(next@14.2.3)(react-dom@18.3.1)(react@18.3.1)(sass@1.77.4)(typescript@5.4.5)(webpack@5.91.0) + version: 7.6.19(@swc/core@1.5.24(@swc/helpers@0.5.5))(@swc/helpers@0.5.5)(esbuild@0.18.20)(next@14.2.3(@babel/core@7.24.6)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.4))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.4)(type-fest@2.19.0)(typescript@5.4.5)(webpack-hot-middleware@2.26.1)(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)) '@storybook/react': specifier: ^7.4.6 - version: 7.6.19(react-dom@18.3.1)(react@18.3.1)(typescript@5.4.5) + version: 7.6.19(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.4.5) '@storybook/testing-library': specifier: ^0.2.2 version: 0.2.2 @@ -263,22 +266,22 @@ importers: version: 18.3.0 '@wagmi/cli': specifier: ^2.1.4 - version: 2.1.8(typescript@5.4.5) + version: 2.1.8(bufferutil@4.0.8)(typescript@5.4.5) autoprefixer: specifier: ^10.4.13 version: 10.4.19(postcss@8.4.38) babel-loader: specifier: ^8.3.0 - version: 8.3.0(@babel/core@7.24.6)(webpack@5.91.0) + version: 8.3.0(@babel/core@7.24.6)(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)) css-loader: specifier: ^6.8.1 - version: 6.11.0(webpack@5.91.0) + version: 6.11.0(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)) eslint: specifier: ^7.32.0 version: 7.32.0 eslint-config-airbnb: specifier: ^18.2.1 - version: 18.2.1(eslint-plugin-import@2.29.1)(eslint-plugin-jsx-a11y@6.8.0)(eslint-plugin-react-hooks@4.2.1-alpha-327d5c484-20211106)(eslint-plugin-react@7.34.2)(eslint@7.32.0) + version: 18.2.1(eslint-plugin-import@2.29.1(eslint@7.32.0))(eslint-plugin-jsx-a11y@6.8.0(eslint@7.32.0))(eslint-plugin-react-hooks@4.2.1-alpha-327d5c484-20211106(eslint@7.32.0))(eslint-plugin-react@7.34.2(eslint@7.32.0))(eslint@7.32.0) eslint-config-next: specifier: ^14.2.3 version: 14.2.3(eslint@7.32.0)(typescript@5.4.5) @@ -287,13 +290,13 @@ importers: version: 8.10.0(eslint@7.32.0) eslint-plugin-import: specifier: ^2.24.1 - version: 2.29.1(@typescript-eslint/parser@7.2.0)(eslint-import-resolver-typescript@3.6.1)(eslint@7.32.0) + version: 2.29.1(@typescript-eslint/parser@7.2.0(eslint@7.32.0)(typescript@5.4.5))(eslint-import-resolver-typescript@3.6.1)(eslint@7.32.0) eslint-plugin-kentcdodds: specifier: ^1.0.3 version: 1.0.3(eslint@7.32.0) eslint-plugin-prettier: specifier: ^4.0.0 - version: 4.2.1(eslint-config-prettier@8.10.0)(eslint@7.32.0)(prettier@3.3.0) + version: 4.2.1(eslint-config-prettier@8.10.0(eslint@7.32.0))(eslint@7.32.0)(prettier@3.3.0) eslint-plugin-react: specifier: ^7.26.1 version: 7.34.2(eslint@7.32.0) @@ -302,7 +305,7 @@ importers: version: 4.2.1-alpha-327d5c484-20211106(eslint@7.32.0) file-loader: specifier: ^6.2.0 - version: 6.2.0(webpack@5.91.0) + version: 6.2.0(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)) husky: specifier: ^8.0.3 version: 8.0.3 @@ -320,19 +323,19 @@ importers: version: 3.2.4(prettier@3.3.0)(typescript@5.4.5) prettier-plugin-tailwindcss: specifier: ^0.6.1 - version: 0.6.1(prettier-plugin-organize-imports@3.2.4)(prettier@3.3.0) + version: 0.6.1(prettier-plugin-organize-imports@3.2.4(prettier@3.3.0)(typescript@5.4.5))(prettier@3.3.0) pretty-quick: specifier: ^3.1.1 version: 3.3.1(prettier@3.3.0) react-docgen-typescript-plugin: specifier: ^1.0.5 - version: 1.0.6(typescript@5.4.5)(webpack@5.91.0) + version: 1.0.6(typescript@5.4.5)(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)) storybook: specifier: ^7.4.6 - version: 7.6.19 + version: 7.6.19(bufferutil@4.0.8) style-loader: specifier: ^3.3.3 - version: 3.3.4(webpack@5.91.0) + version: 3.3.4(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)) tailwindcss: specifier: ^3.4.1 version: 3.4.3 @@ -2832,6 +2835,9 @@ packages: '@repeaterjs/repeater@3.0.6': resolution: {integrity: sha512-Javneu5lsuhwNCryN+pXH93VPQ8g0dBX7wItHFgYiwQmzE1sVdg5tWHiOgHywzL2W21XQopa7IwIEnNbmeUJYA==} + '@river-build/generated@0.0.127': + resolution: {integrity: sha512-xM2HSpfqE4/zkCogIo88w6Q4rjXnSw6mYfwUErY9Gk5No8REKB0Lxi2PSyc9tGRhLez113NCS+G1GXijP5wchQ==} + '@rnx-kit/chromium-edge-launcher@1.0.0': resolution: {integrity: sha512-lzD84av1ZQhYUS+jsGqJiCMaJO2dn9u+RTT9n9q6D3SaKVwWqv+7AoRKqBu19bkwyE+iFRl1ymr40QS90jVFYg==} engines: {node: '>=14.15'} @@ -5090,9 +5096,6 @@ packages: embla-carousel@8.0.1: resolution: {integrity: sha512-RsaMRyBCd144N95gb3XoI+H9zj3RI4y0qcfvKYEh2tIAIEenL9CW9vwzltCeoYkWYipGdkvup+HGT9ewG1YTEw==} - embla-carousel@8.1.3: - resolution: {integrity: sha512-GiRpKtzidV3v50oVMly8S+D7iE1r96ttt7fSlvtyKHoSkzrAnVcu8fX3c4j8Ol2hZSQlVfDqDIqdrFPs0u5TWQ==} - emoji-regex@8.0.0: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} @@ -7095,9 +7098,6 @@ packages: napi-build-utils@1.0.2: resolution: {integrity: sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==} - napi-wasm@1.1.0: - resolution: {integrity: sha512-lHwIAJbmLSjF9VDRm9GoVOy9AGp3aIvkjv+Kvz9h16QR3uSVYH78PNQUnT2U4X53mhlnV2M7wrhibQ3GHicDmg==} - natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} @@ -9682,7 +9682,7 @@ packages: snapshots: '@0no-co/graphql.web@1.0.7(graphql@16.8.1)': - dependencies: + optionalDependencies: graphql: 16.8.1 '@adraffy/ens-normalize@1.10.0': {} @@ -10833,7 +10833,7 @@ snapshots: '@floating-ui/core': 1.6.2 '@floating-ui/utils': 0.2.2 - '@floating-ui/react-dom@2.1.0(react-dom@18.3.1)(react@18.3.1)': + '@floating-ui/react-dom@2.1.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@floating-ui/dom': 1.6.5 react: 18.3.1 @@ -10847,7 +10847,7 @@ snapshots: graphql: 16.8.1 tslib: 2.6.2 - '@graphql-codegen/cli@5.0.2(@types/node@17.0.45)(graphql@16.8.1)(typescript@5.4.5)': + '@graphql-codegen/cli@5.0.2(@parcel/watcher@2.4.1)(@types/node@17.0.45)(bufferutil@4.0.8)(enquirer@2.4.1)(graphql@16.8.1)(typescript@5.4.5)': dependencies: '@babel/generator': 7.24.6 '@babel/template': 7.24.6 @@ -10862,8 +10862,8 @@ snapshots: '@graphql-tools/graphql-file-loader': 8.0.1(graphql@16.8.1) '@graphql-tools/json-file-loader': 8.0.1(graphql@16.8.1) '@graphql-tools/load': 8.0.2(graphql@16.8.1) - '@graphql-tools/prisma-loader': 8.0.4(@types/node@17.0.45)(graphql@16.8.1) - '@graphql-tools/url-loader': 8.0.2(@types/node@17.0.45)(graphql@16.8.1) + '@graphql-tools/prisma-loader': 8.0.4(@types/node@17.0.45)(bufferutil@4.0.8)(graphql@16.8.1) + '@graphql-tools/url-loader': 8.0.2(@types/node@17.0.45)(bufferutil@4.0.8)(graphql@16.8.1) '@graphql-tools/utils': 10.2.1(graphql@16.8.1) '@whatwg-node/fetch': 0.8.8 chalk: 4.1.2 @@ -10871,12 +10871,12 @@ snapshots: debounce: 1.2.1 detect-indent: 6.1.0 graphql: 16.8.1 - graphql-config: 5.0.3(@types/node@17.0.45)(graphql@16.8.1)(typescript@5.4.5) + graphql-config: 5.0.3(@types/node@17.0.45)(bufferutil@4.0.8)(graphql@16.8.1)(typescript@5.4.5) inquirer: 8.2.6 is-glob: 4.0.3 jiti: 1.21.0 json-to-pretty-yaml: 1.2.2 - listr2: 4.0.5 + listr2: 4.0.5(enquirer@2.4.1) log-symbols: 4.1.0 micromatch: 4.0.7 shell-quote: 1.8.1 @@ -10885,6 +10885,8 @@ snapshots: tslib: 2.6.2 yaml: 2.4.3 yargs: 17.7.2 + optionalDependencies: + '@parcel/watcher': 2.4.1 transitivePeerDependencies: - '@types/node' - bufferutil @@ -11060,15 +11062,15 @@ snapshots: lodash.sortby: 4.7.0 tslib: 2.6.2 - '@graphql-tools/executor-graphql-ws@1.1.2(graphql@16.8.1)': + '@graphql-tools/executor-graphql-ws@1.1.2(bufferutil@4.0.8)(graphql@16.8.1)': dependencies: '@graphql-tools/utils': 10.2.1(graphql@16.8.1) '@types/ws': 8.5.10 graphql: 16.8.1 graphql-ws: 5.16.0(graphql@16.8.1) - isomorphic-ws: 5.0.0(ws@8.17.0) + isomorphic-ws: 5.0.0(ws@8.17.0(bufferutil@4.0.8)) tslib: 2.6.2 - ws: 8.17.0 + ws: 8.17.0(bufferutil@4.0.8) transitivePeerDependencies: - bufferutil - utf-8-validate @@ -11086,14 +11088,14 @@ snapshots: transitivePeerDependencies: - '@types/node' - '@graphql-tools/executor-legacy-ws@1.0.6(graphql@16.8.1)': + '@graphql-tools/executor-legacy-ws@1.0.6(bufferutil@4.0.8)(graphql@16.8.1)': dependencies: '@graphql-tools/utils': 10.2.1(graphql@16.8.1) '@types/ws': 8.5.10 graphql: 16.8.1 - isomorphic-ws: 5.0.0(ws@8.17.0) + isomorphic-ws: 5.0.0(ws@8.17.0(bufferutil@4.0.8)) tslib: 2.6.2 - ws: 8.17.0 + ws: 8.17.0(bufferutil@4.0.8) transitivePeerDependencies: - bufferutil - utf-8-validate @@ -11190,9 +11192,9 @@ snapshots: graphql: 16.8.1 tslib: 2.6.2 - '@graphql-tools/prisma-loader@8.0.4(@types/node@17.0.45)(graphql@16.8.1)': + '@graphql-tools/prisma-loader@8.0.4(@types/node@17.0.45)(bufferutil@4.0.8)(graphql@16.8.1)': dependencies: - '@graphql-tools/url-loader': 8.0.2(@types/node@17.0.45)(graphql@16.8.1) + '@graphql-tools/url-loader': 8.0.2(@types/node@17.0.45)(bufferutil@4.0.8)(graphql@16.8.1) '@graphql-tools/utils': 10.2.1(graphql@16.8.1) '@types/js-yaml': 4.0.9 '@whatwg-node/fetch': 0.9.18 @@ -11234,22 +11236,22 @@ snapshots: tslib: 2.6.2 value-or-promise: 1.0.12 - '@graphql-tools/url-loader@8.0.2(@types/node@17.0.45)(graphql@16.8.1)': + '@graphql-tools/url-loader@8.0.2(@types/node@17.0.45)(bufferutil@4.0.8)(graphql@16.8.1)': dependencies: '@ardatan/sync-fetch': 0.0.1 '@graphql-tools/delegate': 10.0.11(graphql@16.8.1) - '@graphql-tools/executor-graphql-ws': 1.1.2(graphql@16.8.1) + '@graphql-tools/executor-graphql-ws': 1.1.2(bufferutil@4.0.8)(graphql@16.8.1) '@graphql-tools/executor-http': 1.0.9(@types/node@17.0.45)(graphql@16.8.1) - '@graphql-tools/executor-legacy-ws': 1.0.6(graphql@16.8.1) + '@graphql-tools/executor-legacy-ws': 1.0.6(bufferutil@4.0.8)(graphql@16.8.1) '@graphql-tools/utils': 10.2.1(graphql@16.8.1) '@graphql-tools/wrap': 10.0.5(graphql@16.8.1) '@types/ws': 8.5.10 '@whatwg-node/fetch': 0.9.18 graphql: 16.8.1 - isomorphic-ws: 5.0.0(ws@8.17.0) + isomorphic-ws: 5.0.0(ws@8.17.0(bufferutil@4.0.8)) tslib: 2.6.2 value-or-promise: 1.0.12 - ws: 8.17.0 + ws: 8.17.0(bufferutil@4.0.8) transitivePeerDependencies: - '@types/node' - bufferutil @@ -11283,7 +11285,7 @@ snapshots: dependencies: '@hapi/hoek': 9.3.0 - '@hookform/resolvers@3.4.2(react-hook-form@7.51.5)': + '@hookform/resolvers@3.4.2(react-hook-form@7.51.5(react@18.3.1))': dependencies: react-hook-form: 7.51.5(react@18.3.1) @@ -11493,7 +11495,7 @@ snapshots: '@metamask/safe-event-emitter@3.1.1': {} - '@metamask/sdk-communication-layer@0.20.5(cross-fetch@4.0.0)(eciesjs@0.3.18)(eventemitter2@6.4.9)(readable-stream@3.6.2)(socket.io-client@4.7.5)': + '@metamask/sdk-communication-layer@0.20.5(cross-fetch@4.0.0)(eciesjs@0.3.18)(eventemitter2@6.4.9)(readable-stream@3.6.2)(socket.io-client@4.7.5(bufferutil@4.0.8))': dependencies: bufferutil: 4.0.8 cross-fetch: 4.0.0 @@ -11502,27 +11504,28 @@ snapshots: eciesjs: 0.3.18 eventemitter2: 6.4.9 readable-stream: 3.6.2 - socket.io-client: 4.7.5 + socket.io-client: 4.7.5(bufferutil@4.0.8) utf-8-validate: 6.0.4 uuid: 8.3.2 transitivePeerDependencies: - supports-color - '@metamask/sdk-install-modal-web@0.20.4(i18next@22.5.1)(react-dom@18.3.1)(react-i18next@13.5.0)(react-native@0.74.1)(react@18.3.1)': + '@metamask/sdk-install-modal-web@0.20.4(i18next@22.5.1)(react-dom@18.3.1(react@18.3.1))(react-i18next@13.5.0(i18next@22.5.1)(react-dom@18.3.1(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1)': dependencies: i18next: 22.5.1 qr-code-styling: 1.6.0-rc.1 + react-i18next: 13.5.0(i18next@22.5.1)(react-dom@18.3.1(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1) + optionalDependencies: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - react-i18next: 13.5.0(i18next@22.5.1)(react-dom@18.3.1)(react-native@0.74.1)(react@18.3.1) - react-native: 0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6)(@types/react@18.3.1)(react@18.3.1) + react-native: 0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1) - '@metamask/sdk@0.20.5(react-dom@18.3.1)(react-i18next@13.5.0)(react-native@0.74.1)(react@18.3.1)': + '@metamask/sdk@0.20.5(bufferutil@4.0.8)(react-dom@18.3.1(react@18.3.1))(react-i18next@13.5.0(i18next@22.5.1)(react-dom@18.3.1(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1)': dependencies: '@metamask/onboarding': 1.0.1 '@metamask/providers': 15.0.0 - '@metamask/sdk-communication-layer': 0.20.5(cross-fetch@4.0.0)(eciesjs@0.3.18)(eventemitter2@6.4.9)(readable-stream@3.6.2)(socket.io-client@4.7.5) - '@metamask/sdk-install-modal-web': 0.20.4(i18next@22.5.1)(react-dom@18.3.1)(react-i18next@13.5.0)(react-native@0.74.1)(react@18.3.1) + '@metamask/sdk-communication-layer': 0.20.5(cross-fetch@4.0.0)(eciesjs@0.3.18)(eventemitter2@6.4.9)(readable-stream@3.6.2)(socket.io-client@4.7.5(bufferutil@4.0.8)) + '@metamask/sdk-install-modal-web': 0.20.4(i18next@22.5.1)(react-dom@18.3.1(react@18.3.1))(react-i18next@13.5.0(i18next@22.5.1)(react-dom@18.3.1(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1) '@types/dom-screen-wake-lock': 1.0.3 bowser: 2.11.0 cross-fetch: 4.0.0 @@ -11535,14 +11538,15 @@ snapshots: obj-multiplex: 1.0.0 pump: 3.0.0 qrcode-terminal-nooctal: 0.12.1 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - react-native-webview: 11.26.1(react-native@0.74.1)(react@18.3.1) + react-native-webview: 11.26.1(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1) readable-stream: 3.6.2 rollup-plugin-visualizer: 5.12.0 - socket.io-client: 4.7.5 + socket.io-client: 4.7.5(bufferutil@4.0.8) util: 0.12.5 uuid: 8.3.2 + optionalDependencies: + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) transitivePeerDependencies: - bufferutil - encoding @@ -11626,15 +11630,16 @@ snapshots: '@motionone/dom': 10.18.0 tslib: 2.6.2 - '@mux/mux-player-react@2.7.0(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@mux/mux-player-react@2.7.0(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@mux/mux-player': 2.7.0 '@mux/playback-core': 0.24.0 - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 prop-types: 15.8.1 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 '@mux/mux-player@2.7.0': dependencies: @@ -11750,7 +11755,6 @@ snapshots: dependencies: is-glob: 4.0.3 micromatch: 4.0.7 - napi-wasm: 1.1.0 '@parcel/watcher-win32-arm64@2.4.1': optional: true @@ -11802,7 +11806,7 @@ snapshots: '@pkgjs/parseargs@0.11.0': optional: true - '@pmmmwh/react-refresh-webpack-plugin@0.5.15(react-refresh@0.14.2)(webpack@5.91.0)': + '@pmmmwh/react-refresh-webpack-plugin@0.5.15(react-refresh@0.14.2)(type-fest@2.19.0)(webpack-hot-middleware@2.26.1)(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20))': dependencies: ansi-html: 0.0.9 core-js-pure: 3.37.1 @@ -11812,7 +11816,10 @@ snapshots: react-refresh: 0.14.2 schema-utils: 4.2.0 source-map: 0.7.4 - webpack: 5.91.0(@swc/core@1.5.24)(esbuild@0.18.20) + webpack: 5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20) + optionalDependencies: + type-fest: 2.19.0 + webpack-hot-middleware: 2.26.1 '@radix-ui/number@1.0.1': dependencies: @@ -11822,347 +11829,373 @@ snapshots: dependencies: '@babel/runtime': 7.24.6 - '@radix-ui/react-accordion@1.1.2(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@radix-ui/react-accordion@1.1.2(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 '@radix-ui/primitive': 1.0.1 - '@radix-ui/react-collapsible': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@radix-ui/react-collection': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-collapsible': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-collection': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-context': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-direction': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-id': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-use-controllable-state': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 - '@radix-ui/react-arrow@1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@radix-ui/react-arrow@1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 - '@radix-ui/react-collapsible@1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@radix-ui/react-collapsible@1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 '@radix-ui/primitive': 1.0.1 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-context': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-id': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-use-controllable-state': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-use-layout-effect': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 - '@radix-ui/react-collection@1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@radix-ui/react-collection@1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-context': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-slot': 1.0.2(@types/react@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 '@radix-ui/react-compose-refs@1.0.1(@types/react@18.3.1)(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 - '@types/react': 18.3.1 react: 18.3.1 + optionalDependencies: + '@types/react': 18.3.1 '@radix-ui/react-context@1.0.1(@types/react@18.3.1)(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 - '@types/react': 18.3.1 react: 18.3.1 + optionalDependencies: + '@types/react': 18.3.1 - '@radix-ui/react-dialog@1.0.5(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@radix-ui/react-dialog@1.0.5(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 '@radix-ui/primitive': 1.0.1 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-context': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-dismissable-layer': 1.0.5(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-dismissable-layer': 1.0.5(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-focus-guards': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-focus-scope': 1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-focus-scope': 1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-id': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-portal': 1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-portal': 1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-slot': 1.0.2(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-use-controllable-state': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 aria-hidden: 1.2.4 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) react-remove-scroll: 2.5.5(@types/react@18.3.1)(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 '@radix-ui/react-direction@1.0.1(@types/react@18.3.1)(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 - '@types/react': 18.3.1 react: 18.3.1 + optionalDependencies: + '@types/react': 18.3.1 - '@radix-ui/react-dismissable-layer@1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@radix-ui/react-dismissable-layer@1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 '@radix-ui/primitive': 1.0.1 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-use-escape-keydown': 1.0.3(@types/react@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 - '@radix-ui/react-dismissable-layer@1.0.5(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@radix-ui/react-dismissable-layer@1.0.5(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 '@radix-ui/primitive': 1.0.1 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-use-escape-keydown': 1.0.3(@types/react@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 - '@radix-ui/react-dropdown-menu@2.0.6(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@radix-ui/react-dropdown-menu@2.0.6(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 '@radix-ui/primitive': 1.0.1 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-context': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-id': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-menu': 2.0.6(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-menu': 2.0.6(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-use-controllable-state': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 '@radix-ui/react-focus-guards@1.0.1(@types/react@18.3.1)(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 - '@types/react': 18.3.1 react: 18.3.1 + optionalDependencies: + '@types/react': 18.3.1 - '@radix-ui/react-focus-scope@1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@radix-ui/react-focus-scope@1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 - '@radix-ui/react-focus-scope@1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@radix-ui/react-focus-scope@1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 '@radix-ui/react-id@1.0.1(@types/react@18.3.1)(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 '@radix-ui/react-use-layout-effect': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 react: 18.3.1 + optionalDependencies: + '@types/react': 18.3.1 - '@radix-ui/react-label@2.0.2(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@radix-ui/react-label@2.0.2(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 - '@radix-ui/react-menu@2.0.6(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@radix-ui/react-menu@2.0.6(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 '@radix-ui/primitive': 1.0.1 - '@radix-ui/react-collection': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-collection': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-context': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-direction': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-dismissable-layer': 1.0.5(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-dismissable-layer': 1.0.5(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-focus-guards': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-focus-scope': 1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-focus-scope': 1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-id': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-popper': 1.1.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@radix-ui/react-portal': 1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@radix-ui/react-roving-focus': 1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-popper': 1.1.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-portal': 1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-roving-focus': 1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-slot': 1.0.2(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 aria-hidden: 1.2.4 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) react-remove-scroll: 2.5.5(@types/react@18.3.1)(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 - '@radix-ui/react-navigation-menu@1.1.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@radix-ui/react-navigation-menu@1.1.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 '@radix-ui/primitive': 1.0.1 - '@radix-ui/react-collection': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-collection': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-context': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-direction': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-dismissable-layer': 1.0.5(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-dismissable-layer': 1.0.5(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-id': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-use-controllable-state': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-use-layout-effect': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-use-previous': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-visually-hidden': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 + '@radix-ui/react-visually-hidden': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 - '@radix-ui/react-popover@1.0.7(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@radix-ui/react-popover@1.0.7(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 '@radix-ui/primitive': 1.0.1 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-context': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-dismissable-layer': 1.0.5(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-dismissable-layer': 1.0.5(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-focus-guards': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-focus-scope': 1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-focus-scope': 1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-id': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-popper': 1.1.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@radix-ui/react-portal': 1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-popper': 1.1.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-portal': 1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-slot': 1.0.2(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-use-controllable-state': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 aria-hidden: 1.2.4 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) react-remove-scroll: 2.5.5(@types/react@18.3.1)(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 - '@radix-ui/react-popper@1.1.2(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@radix-ui/react-popper@1.1.2(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 - '@floating-ui/react-dom': 2.1.0(react-dom@18.3.1)(react@18.3.1) - '@radix-ui/react-arrow': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@floating-ui/react-dom': 2.1.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-arrow': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-context': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-use-layout-effect': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-use-rect': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-use-size': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/rect': 1.0.1 - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 - '@radix-ui/react-popper@1.1.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@radix-ui/react-popper@1.1.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 - '@floating-ui/react-dom': 2.1.0(react-dom@18.3.1)(react@18.3.1) - '@radix-ui/react-arrow': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@floating-ui/react-dom': 2.1.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-arrow': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-context': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-use-layout-effect': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-use-rect': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-use-size': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/rect': 1.0.1 - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 - '@radix-ui/react-portal@1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@radix-ui/react-portal@1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 - '@radix-ui/react-portal@1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@radix-ui/react-portal@1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 - '@radix-ui/react-presence@1.0.1(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@radix-ui/react-presence@1.0.1(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-use-layout-effect': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 - '@radix-ui/react-primitive@1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@radix-ui/react-primitive@1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 '@radix-ui/react-slot': 1.0.2(@types/react@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 - '@radix-ui/react-roving-focus@1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@radix-ui/react-roving-focus@1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 '@radix-ui/primitive': 1.0.1 - '@radix-ui/react-collection': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-collection': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-context': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-direction': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-id': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-use-controllable-state': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 - '@radix-ui/react-scroll-area@1.0.5(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@radix-ui/react-scroll-area@1.0.5(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 '@radix-ui/number': 1.0.1 @@ -12170,195 +12203,212 @@ snapshots: '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-context': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-direction': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-use-layout-effect': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 - '@radix-ui/react-select@1.2.2(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@radix-ui/react-select@1.2.2(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 '@radix-ui/number': 1.0.1 '@radix-ui/primitive': 1.0.1 - '@radix-ui/react-collection': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-collection': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-context': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-direction': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-dismissable-layer': 1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-dismissable-layer': 1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-focus-guards': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-focus-scope': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-focus-scope': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-id': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-popper': 1.1.2(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@radix-ui/react-portal': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-popper': 1.1.2(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-portal': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-slot': 1.0.2(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-use-controllable-state': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-use-layout-effect': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-use-previous': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-visually-hidden': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 + '@radix-ui/react-visually-hidden': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) aria-hidden: 1.2.4 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) react-remove-scroll: 2.5.5(@types/react@18.3.1)(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 - '@radix-ui/react-separator@1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@radix-ui/react-separator@1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 '@radix-ui/react-slot@1.0.2(@types/react@18.3.1)(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 react: 18.3.1 + optionalDependencies: + '@types/react': 18.3.1 - '@radix-ui/react-toast@1.1.5(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@radix-ui/react-toast@1.1.5(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 '@radix-ui/primitive': 1.0.1 - '@radix-ui/react-collection': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-collection': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-context': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-dismissable-layer': 1.0.5(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@radix-ui/react-portal': 1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-dismissable-layer': 1.0.5(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-portal': 1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-use-controllable-state': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-use-layout-effect': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-visually-hidden': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 + '@radix-ui/react-visually-hidden': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 - '@radix-ui/react-toggle-group@1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@radix-ui/react-toggle-group@1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 '@radix-ui/primitive': 1.0.1 '@radix-ui/react-context': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-direction': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@radix-ui/react-roving-focus': 1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@radix-ui/react-toggle': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-roving-focus': 1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-toggle': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-use-controllable-state': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 - '@radix-ui/react-toggle@1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@radix-ui/react-toggle@1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 '@radix-ui/primitive': 1.0.1 - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-use-controllable-state': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 - '@radix-ui/react-toolbar@1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@radix-ui/react-toolbar@1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 '@radix-ui/primitive': 1.0.1 '@radix-ui/react-context': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-direction': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@radix-ui/react-roving-focus': 1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@radix-ui/react-separator': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@radix-ui/react-toggle-group': 1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-roving-focus': 1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-separator': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-toggle-group': 1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 - '@radix-ui/react-tooltip@1.0.7(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@radix-ui/react-tooltip@1.0.7(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 '@radix-ui/primitive': 1.0.1 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-context': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-dismissable-layer': 1.0.5(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-dismissable-layer': 1.0.5(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-id': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-popper': 1.1.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@radix-ui/react-portal': 1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-popper': 1.1.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-portal': 1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-slot': 1.0.2(@types/react@18.3.1)(react@18.3.1) '@radix-ui/react-use-controllable-state': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@radix-ui/react-visually-hidden': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 + '@radix-ui/react-visually-hidden': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 '@radix-ui/react-use-callback-ref@1.0.1(@types/react@18.3.1)(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 - '@types/react': 18.3.1 react: 18.3.1 + optionalDependencies: + '@types/react': 18.3.1 '@radix-ui/react-use-controllable-state@1.0.1(@types/react@18.3.1)(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 react: 18.3.1 + optionalDependencies: + '@types/react': 18.3.1 '@radix-ui/react-use-escape-keydown@1.0.3(@types/react@18.3.1)(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 react: 18.3.1 + optionalDependencies: + '@types/react': 18.3.1 '@radix-ui/react-use-layout-effect@1.0.1(@types/react@18.3.1)(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 - '@types/react': 18.3.1 react: 18.3.1 + optionalDependencies: + '@types/react': 18.3.1 '@radix-ui/react-use-previous@1.0.1(@types/react@18.3.1)(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 - '@types/react': 18.3.1 react: 18.3.1 + optionalDependencies: + '@types/react': 18.3.1 '@radix-ui/react-use-rect@1.0.1(@types/react@18.3.1)(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 '@radix-ui/rect': 1.0.1 - '@types/react': 18.3.1 react: 18.3.1 + optionalDependencies: + '@types/react': 18.3.1 '@radix-ui/react-use-size@1.0.1(@types/react@18.3.1)(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 '@radix-ui/react-use-layout-effect': 1.0.1(@types/react@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 react: 18.3.1 + optionalDependencies: + '@types/react': 18.3.1 - '@radix-ui/react-visually-hidden@1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@radix-ui/react-visually-hidden@1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.6 - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@types/react': 18.3.1 - '@types/react-dom': 18.3.0 + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + '@types/react-dom': 18.3.0 '@radix-ui/rect@1.0.1': dependencies: @@ -12449,7 +12499,7 @@ snapshots: transitivePeerDependencies: - encoding - '@react-native-community/cli-server-api@13.6.6': + '@react-native-community/cli-server-api@13.6.6(bufferutil@4.0.8)': dependencies: '@react-native-community/cli-debugger-ui': 13.6.6 '@react-native-community/cli-tools': 13.6.6 @@ -12459,7 +12509,7 @@ snapshots: nocache: 3.0.4 pretty-format: 26.6.2 serve-static: 1.15.0 - ws: 6.2.2 + ws: 6.2.2(bufferutil@4.0.8) transitivePeerDependencies: - bufferutil - encoding @@ -12486,14 +12536,14 @@ snapshots: dependencies: joi: 17.13.1 - '@react-native-community/cli@13.6.6': + '@react-native-community/cli@13.6.6(bufferutil@4.0.8)': dependencies: '@react-native-community/cli-clean': 13.6.6 '@react-native-community/cli-config': 13.6.6 '@react-native-community/cli-debugger-ui': 13.6.6 '@react-native-community/cli-doctor': 13.6.6 '@react-native-community/cli-hermes': 13.6.6 - '@react-native-community/cli-server-api': 13.6.6 + '@react-native-community/cli-server-api': 13.6.6(bufferutil@4.0.8) '@react-native-community/cli-tools': 13.6.6 '@react-native-community/cli-types': 13.6.6 chalk: 4.1.2 @@ -12513,14 +12563,14 @@ snapshots: '@react-native/assets-registry@0.74.83': {} - '@react-native/babel-plugin-codegen@0.74.83(@babel/preset-env@7.24.6)': + '@react-native/babel-plugin-codegen@0.74.83(@babel/preset-env@7.24.6(@babel/core@7.24.6))': dependencies: - '@react-native/codegen': 0.74.83(@babel/preset-env@7.24.6) + '@react-native/codegen': 0.74.83(@babel/preset-env@7.24.6(@babel/core@7.24.6)) transitivePeerDependencies: - '@babel/preset-env' - supports-color - '@react-native/babel-preset@0.74.83(@babel/core@7.24.6)(@babel/preset-env@7.24.6)': + '@react-native/babel-preset@0.74.83(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))': dependencies: '@babel/core': 7.24.6 '@babel/plugin-proposal-async-generator-functions': 7.20.7(@babel/core@7.24.6) @@ -12562,36 +12612,36 @@ snapshots: '@babel/plugin-transform-typescript': 7.24.6(@babel/core@7.24.6) '@babel/plugin-transform-unicode-regex': 7.24.6(@babel/core@7.24.6) '@babel/template': 7.24.6 - '@react-native/babel-plugin-codegen': 0.74.83(@babel/preset-env@7.24.6) + '@react-native/babel-plugin-codegen': 0.74.83(@babel/preset-env@7.24.6(@babel/core@7.24.6)) babel-plugin-transform-flow-enums: 0.0.2(@babel/core@7.24.6) react-refresh: 0.14.2 transitivePeerDependencies: - '@babel/preset-env' - supports-color - '@react-native/codegen@0.74.83(@babel/preset-env@7.24.6)': + '@react-native/codegen@0.74.83(@babel/preset-env@7.24.6(@babel/core@7.24.6))': dependencies: '@babel/parser': 7.24.6 '@babel/preset-env': 7.24.6(@babel/core@7.24.6) glob: 7.2.3 hermes-parser: 0.19.1 invariant: 2.2.4 - jscodeshift: 0.14.0(@babel/preset-env@7.24.6) + jscodeshift: 0.14.0(@babel/preset-env@7.24.6(@babel/core@7.24.6)) mkdirp: 0.5.6 nullthrows: 1.1.1 transitivePeerDependencies: - supports-color - '@react-native/community-cli-plugin@0.74.83(@babel/core@7.24.6)(@babel/preset-env@7.24.6)': + '@react-native/community-cli-plugin@0.74.83(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(bufferutil@4.0.8)': dependencies: - '@react-native-community/cli-server-api': 13.6.6 + '@react-native-community/cli-server-api': 13.6.6(bufferutil@4.0.8) '@react-native-community/cli-tools': 13.6.6 - '@react-native/dev-middleware': 0.74.83 - '@react-native/metro-babel-transformer': 0.74.83(@babel/core@7.24.6)(@babel/preset-env@7.24.6) + '@react-native/dev-middleware': 0.74.83(bufferutil@4.0.8) + '@react-native/metro-babel-transformer': 0.74.83(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6)) chalk: 4.1.2 execa: 5.1.1 - metro: 0.80.9 - metro-config: 0.80.9 + metro: 0.80.9(bufferutil@4.0.8) + metro-config: 0.80.9(bufferutil@4.0.8) metro-core: 0.80.9 node-fetch: 2.7.0 querystring: 0.2.1 @@ -12606,7 +12656,7 @@ snapshots: '@react-native/debugger-frontend@0.74.83': {} - '@react-native/dev-middleware@0.74.83': + '@react-native/dev-middleware@0.74.83(bufferutil@4.0.8)': dependencies: '@isaacs/ttlcache': 1.4.1 '@react-native/debugger-frontend': 0.74.83 @@ -12620,7 +12670,7 @@ snapshots: selfsigned: 2.4.1 serve-static: 1.15.0 temp-dir: 2.0.0 - ws: 6.2.2 + ws: 6.2.2(bufferutil@4.0.8) transitivePeerDependencies: - bufferutil - encoding @@ -12631,10 +12681,10 @@ snapshots: '@react-native/js-polyfills@0.74.83': {} - '@react-native/metro-babel-transformer@0.74.83(@babel/core@7.24.6)(@babel/preset-env@7.24.6)': + '@react-native/metro-babel-transformer@0.74.83(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))': dependencies: '@babel/core': 7.24.6 - '@react-native/babel-preset': 0.74.83(@babel/core@7.24.6)(@babel/preset-env@7.24.6) + '@react-native/babel-preset': 0.74.83(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6)) hermes-parser: 0.19.1 nullthrows: 1.1.1 transitivePeerDependencies: @@ -12643,13 +12693,14 @@ snapshots: '@react-native/normalize-colors@0.74.83': {} - '@react-native/virtualized-lists@0.74.83(@types/react@18.3.1)(react-native@0.74.1)(react@18.3.1)': + '@react-native/virtualized-lists@0.74.83(@types/react@18.3.1)(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1)': dependencies: - '@types/react': 18.3.1 invariant: 2.2.4 nullthrows: 1.1.1 react: 18.3.1 - react-native: 0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6)(@types/react@18.3.1)(react@18.3.1) + react-native: 0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 '@react-spring/animated@9.6.1(react@18.3.1)': dependencies: @@ -12691,23 +12742,23 @@ snapshots: '@react-spring/types': 9.7.3 react: 18.3.1 - '@react-spring/three@9.6.1(@react-three/fiber@8.16.7)(react@18.3.1)(three@0.164.1)': + '@react-spring/three@9.6.1(@react-three/fiber@8.16.7(react-dom@18.3.1(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1)(three@0.164.1))(react@18.3.1)(three@0.164.1)': dependencies: '@react-spring/animated': 9.6.1(react@18.3.1) '@react-spring/core': 9.6.1(react@18.3.1) '@react-spring/shared': 9.6.1(react@18.3.1) '@react-spring/types': 9.6.1 - '@react-three/fiber': 8.16.7(react-dom@18.3.1)(react-native@0.74.1)(react@18.3.1)(three@0.164.1) + '@react-three/fiber': 8.16.7(react-dom@18.3.1(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1)(three@0.164.1) react: 18.3.1 three: 0.164.1 - '@react-spring/three@9.7.3(@react-three/fiber@8.16.7)(react@18.3.1)(three@0.164.1)': + '@react-spring/three@9.7.3(@react-three/fiber@8.16.7(react-dom@18.3.1(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1)(three@0.164.1))(react@18.3.1)(three@0.164.1)': dependencies: '@react-spring/animated': 9.7.3(react@18.3.1) '@react-spring/core': 9.7.3(react@18.3.1) '@react-spring/shared': 9.7.3(react@18.3.1) '@react-spring/types': 9.7.3 - '@react-three/fiber': 8.16.7(react-dom@18.3.1)(react-native@0.74.1)(react@18.3.1)(three@0.164.1) + '@react-three/fiber': 8.16.7(react-dom@18.3.1(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1)(three@0.164.1) react: 18.3.1 three: 0.164.1 @@ -12715,13 +12766,13 @@ snapshots: '@react-spring/types@9.7.3': {} - '@react-three/drei@9.106.0(@react-three/fiber@8.16.7)(@types/react@18.3.1)(@types/three@0.164.1)(react-dom@18.3.1)(react@18.3.1)(three@0.164.1)': + '@react-three/drei@9.106.0(@react-three/fiber@8.16.7(react-dom@18.3.1(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1)(three@0.164.1))(@types/react@18.3.1)(@types/three@0.164.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(three@0.164.1)': dependencies: '@babel/runtime': 7.24.6 '@mediapipe/tasks-vision': 0.10.8 '@monogrid/gainmap-js': 3.0.5(three@0.164.1) - '@react-spring/three': 9.6.1(@react-three/fiber@8.16.7)(react@18.3.1)(three@0.164.1) - '@react-three/fiber': 8.16.7(react-dom@18.3.1)(react-native@0.74.1)(react@18.3.1)(three@0.164.1) + '@react-spring/three': 9.6.1(@react-three/fiber@8.16.7(react-dom@18.3.1(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1)(three@0.164.1))(react@18.3.1)(three@0.164.1) + '@react-three/fiber': 8.16.7(react-dom@18.3.1(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1)(three@0.164.1) '@use-gesture/react': 10.3.1(react@18.3.1) camera-controls: 2.8.4(three@0.164.1) cross-env: 7.0.3 @@ -12732,7 +12783,6 @@ snapshots: meshline: 3.3.1(three@0.164.1) react: 18.3.1 react-composer: 5.0.3(react@18.3.1) - react-dom: 18.3.1(react@18.3.1) stats-gl: 2.2.8 stats.js: 0.17.0 suspend-react: 0.1.3(react@18.3.1) @@ -12744,12 +12794,14 @@ snapshots: utility-types: 3.11.0 uuid: 9.0.1 zustand: 3.7.2(react@18.3.1) + optionalDependencies: + react-dom: 18.3.1(react@18.3.1) transitivePeerDependencies: - '@types/react' - '@types/three' - immer - '@react-three/fiber@8.16.7(react-dom@18.3.1)(react-native@0.74.1)(react@18.3.1)(three@0.164.1)': + '@react-three/fiber@8.16.7(react-dom@18.3.1(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1)(three@0.164.1)': dependencies: '@babel/runtime': 7.24.6 '@types/react-reconciler': 0.26.7 @@ -12758,17 +12810,20 @@ snapshots: buffer: 6.0.3 its-fine: 1.2.5(react@18.3.1) react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - react-native: 0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6)(@types/react@18.3.1)(react@18.3.1) react-reconciler: 0.27.0(react@18.3.1) - react-use-measure: 2.1.1(react-dom@18.3.1)(react@18.3.1) + react-use-measure: 2.1.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) scheduler: 0.21.0 suspend-react: 0.1.3(react@18.3.1) three: 0.164.1 zustand: 3.7.2(react@18.3.1) + optionalDependencies: + react-dom: 18.3.1(react@18.3.1) + react-native: 0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1) '@repeaterjs/repeater@3.0.6': {} + '@river-build/generated@0.0.127': {} + '@rnx-kit/chromium-edge-launcher@1.0.0': dependencies: '@types/node': 18.19.33 @@ -12786,9 +12841,9 @@ snapshots: '@rushstack/eslint-patch@1.10.3': {} - '@safe-global/safe-apps-provider@0.18.1(typescript@5.4.5)(zod@3.23.8)': + '@safe-global/safe-apps-provider@0.18.1(bufferutil@4.0.8)(typescript@5.4.5)(zod@3.23.8)': dependencies: - '@safe-global/safe-apps-sdk': 8.1.0(typescript@5.4.5)(zod@3.23.8) + '@safe-global/safe-apps-sdk': 8.1.0(bufferutil@4.0.8)(typescript@5.4.5)(zod@3.23.8) events: 3.3.0 transitivePeerDependencies: - bufferutil @@ -12796,10 +12851,10 @@ snapshots: - utf-8-validate - zod - '@safe-global/safe-apps-sdk@8.1.0(typescript@5.4.5)(zod@3.23.8)': + '@safe-global/safe-apps-sdk@8.1.0(bufferutil@4.0.8)(typescript@5.4.5)(zod@3.23.8)': dependencies: '@safe-global/safe-gateway-typescript-sdk': 3.21.1 - viem: 1.21.4(typescript@5.4.5)(zod@3.23.8) + viem: 1.21.4(bufferutil@4.0.8)(typescript@5.4.5)(zod@3.23.8) transitivePeerDependencies: - bufferutil - typescript @@ -12952,9 +13007,9 @@ snapshots: memoizerific: 1.11.3 ts-dedent: 2.2.0 - '@storybook/addon-controls@7.6.19(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@storybook/addon-controls@7.6.19(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: - '@storybook/blocks': 7.6.19(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@storybook/blocks': 7.6.19(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) lodash: 4.17.21 ts-dedent: 2.2.0 transitivePeerDependencies: @@ -12965,13 +13020,13 @@ snapshots: - react-dom - supports-color - '@storybook/addon-docs@7.6.19(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@storybook/addon-docs@7.6.19(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@jest/transform': 29.7.0 '@mdx-js/react': 2.3.0(react@18.3.1) - '@storybook/blocks': 7.6.19(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@storybook/blocks': 7.6.19(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@storybook/client-logger': 7.6.19 - '@storybook/components': 7.6.19(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@storybook/components': 7.6.19(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@storybook/csf-plugin': 7.6.19 '@storybook/csf-tools': 7.6.19 '@storybook/global': 5.0.0 @@ -12979,8 +13034,8 @@ snapshots: '@storybook/node-logger': 7.6.19 '@storybook/postinstall': 7.6.19 '@storybook/preview-api': 7.6.19 - '@storybook/react-dom-shim': 7.6.19(react-dom@18.3.1)(react@18.3.1) - '@storybook/theming': 7.6.19(react-dom@18.3.1)(react@18.3.1) + '@storybook/react-dom-shim': 7.6.19(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@storybook/theming': 7.6.19(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@storybook/types': 7.6.19 fs-extra: 11.2.0 react: 18.3.1 @@ -12994,19 +13049,19 @@ snapshots: - encoding - supports-color - '@storybook/addon-essentials@7.6.19(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@storybook/addon-essentials@7.6.19(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@storybook/addon-actions': 7.6.19 '@storybook/addon-backgrounds': 7.6.19 - '@storybook/addon-controls': 7.6.19(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@storybook/addon-docs': 7.6.19(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@storybook/addon-controls': 7.6.19(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@storybook/addon-docs': 7.6.19(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@storybook/addon-highlight': 7.6.19 '@storybook/addon-measure': 7.6.19 '@storybook/addon-outline': 7.6.19 '@storybook/addon-toolbars': 7.6.19 '@storybook/addon-viewport': 7.6.19 '@storybook/core-common': 7.6.19 - '@storybook/manager-api': 7.6.19(react-dom@18.3.1)(react@18.3.1) + '@storybook/manager-api': 7.6.19(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@storybook/node-logger': 7.6.19 '@storybook/preview-api': 7.6.19 react: 18.3.1 @@ -13034,8 +13089,9 @@ snapshots: dependencies: '@storybook/csf': 0.1.8 '@storybook/global': 5.0.0 - react: 18.3.1 ts-dedent: 2.2.0 + optionalDependencies: + react: 18.3.1 '@storybook/addon-measure@7.6.19': dependencies: @@ -13047,13 +13103,13 @@ snapshots: '@storybook/global': 5.0.0 ts-dedent: 2.2.0 - '@storybook/addon-postcss@2.0.0(webpack@5.91.0)': + '@storybook/addon-postcss@2.0.0(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20))': dependencies: '@storybook/node-logger': 6.5.16 - css-loader: 3.6.0(webpack@5.91.0) + css-loader: 3.6.0(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)) postcss: 7.0.39 - postcss-loader: 4.3.0(postcss@7.0.39)(webpack@5.91.0) - style-loader: 1.3.0(webpack@5.91.0) + postcss-loader: 4.3.0(postcss@7.0.39)(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)) + style-loader: 1.3.0(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)) transitivePeerDependencies: - webpack @@ -13063,18 +13119,18 @@ snapshots: dependencies: memoizerific: 1.11.3 - '@storybook/blocks@7.6.19(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@storybook/blocks@7.6.19(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@storybook/channels': 7.6.19 '@storybook/client-logger': 7.6.19 - '@storybook/components': 7.6.19(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@storybook/components': 7.6.19(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@storybook/core-events': 7.6.19 '@storybook/csf': 0.1.8 '@storybook/docs-tools': 7.6.19 '@storybook/global': 5.0.0 - '@storybook/manager-api': 7.6.19(react-dom@18.3.1)(react@18.3.1) + '@storybook/manager-api': 7.6.19(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@storybook/preview-api': 7.6.19 - '@storybook/theming': 7.6.19(react-dom@18.3.1)(react@18.3.1) + '@storybook/theming': 7.6.19(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@storybook/types': 7.6.19 '@types/lodash': 4.17.4 color-convert: 2.0.1 @@ -13084,7 +13140,7 @@ snapshots: memoizerific: 1.11.3 polished: 4.3.1 react: 18.3.1 - react-colorful: 5.6.1(react-dom@18.3.1)(react@18.3.1) + react-colorful: 5.6.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react-dom: 18.3.1(react@18.3.1) telejson: 7.2.0 tocbot: 4.28.2 @@ -13118,7 +13174,7 @@ snapshots: - encoding - supports-color - '@storybook/builder-webpack5@7.6.19(esbuild@0.18.20)(typescript@5.4.5)': + '@storybook/builder-webpack5@7.6.19(@swc/helpers@0.5.5)(esbuild@0.18.20)(typescript@5.4.5)': dependencies: '@babel/core': 7.24.6 '@storybook/channels': 7.6.19 @@ -13129,36 +13185,37 @@ snapshots: '@storybook/node-logger': 7.6.19 '@storybook/preview': 7.6.19 '@storybook/preview-api': 7.6.19 - '@swc/core': 1.5.24 + '@swc/core': 1.5.24(@swc/helpers@0.5.5) '@types/node': 18.19.33 '@types/semver': 7.5.8 - babel-loader: 9.1.3(@babel/core@7.24.6)(webpack@5.91.0) + babel-loader: 9.1.3(@babel/core@7.24.6)(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)) browser-assert: 1.2.1 case-sensitive-paths-webpack-plugin: 2.4.0 cjs-module-lexer: 1.3.1 constants-browserify: 1.0.0 - css-loader: 6.11.0(webpack@5.91.0) + css-loader: 6.11.0(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)) es-module-lexer: 1.5.3 express: 4.19.2 - fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.4.5)(webpack@5.91.0) + fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.4.5)(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)) fs-extra: 11.2.0 - html-webpack-plugin: 5.6.0(webpack@5.91.0) + html-webpack-plugin: 5.6.0(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)) magic-string: 0.30.10 path-browserify: 1.0.1 process: 0.11.10 semver: 7.6.2 - style-loader: 3.3.4(webpack@5.91.0) - swc-loader: 0.2.6(@swc/core@1.5.24)(webpack@5.91.0) - terser-webpack-plugin: 5.3.10(@swc/core@1.5.24)(esbuild@0.18.20)(webpack@5.91.0) + style-loader: 3.3.4(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)) + swc-loader: 0.2.6(@swc/core@1.5.24(@swc/helpers@0.5.5))(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)) + terser-webpack-plugin: 5.3.10(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)) ts-dedent: 2.2.0 - typescript: 5.4.5 url: 0.11.3 util: 0.12.5 util-deprecate: 1.0.2 - webpack: 5.91.0(@swc/core@1.5.24)(esbuild@0.18.20) - webpack-dev-middleware: 6.1.3(webpack@5.91.0) + webpack: 5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20) + webpack-dev-middleware: 6.1.3(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)) webpack-hot-middleware: 2.26.1 webpack-virtual-modules: 0.5.0 + optionalDependencies: + typescript: 5.4.5 transitivePeerDependencies: - '@rspack/core' - '@swc/helpers' @@ -13177,7 +13234,7 @@ snapshots: telejson: 7.2.0 tiny-invariant: 1.3.3 - '@storybook/cli@7.6.19': + '@storybook/cli@7.6.19(bufferutil@4.0.8)': dependencies: '@babel/core': 7.24.6 '@babel/preset-env': 7.24.6(@babel/core@7.24.6) @@ -13186,7 +13243,7 @@ snapshots: '@storybook/codemod': 7.6.19 '@storybook/core-common': 7.6.19 '@storybook/core-events': 7.6.19 - '@storybook/core-server': 7.6.19 + '@storybook/core-server': 7.6.19(bufferutil@4.0.8) '@storybook/csf-tools': 7.6.19 '@storybook/node-logger': 7.6.19 '@storybook/telemetry': 7.6.19 @@ -13207,12 +13264,12 @@ snapshots: get-port: 5.1.1 giget: 1.2.3 globby: 11.1.0 - jscodeshift: 0.15.2(@babel/preset-env@7.24.6) + jscodeshift: 0.15.2(@babel/preset-env@7.24.6(@babel/core@7.24.6)) leven: 3.1.0 ora: 5.4.1 prettier: 2.8.8 prompts: 2.4.2 - puppeteer-core: 2.1.1 + puppeteer-core: 2.1.1(bufferutil@4.0.8) read-pkg-up: 7.0.1 semver: 7.6.2 strip-json-comments: 3.1.1 @@ -13241,26 +13298,26 @@ snapshots: '@types/cross-spawn': 6.0.6 cross-spawn: 7.0.3 globby: 11.1.0 - jscodeshift: 0.15.2(@babel/preset-env@7.24.6) + jscodeshift: 0.15.2(@babel/preset-env@7.24.6(@babel/core@7.24.6)) lodash: 4.17.21 prettier: 2.8.8 recast: 0.23.9 transitivePeerDependencies: - supports-color - '@storybook/components@7.6.19(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@storybook/components@7.6.19(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: - '@radix-ui/react-select': 1.2.2(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) - '@radix-ui/react-toolbar': 1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@radix-ui/react-select': 1.2.2(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-toolbar': 1.0.4(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@storybook/client-logger': 7.6.19 '@storybook/csf': 0.1.8 '@storybook/global': 5.0.0 - '@storybook/theming': 7.6.19(react-dom@18.3.1)(react@18.3.1) + '@storybook/theming': 7.6.19(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@storybook/types': 7.6.19 memoizerific: 1.11.3 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - use-resize-observer: 9.1.0(react-dom@18.3.1)(react@18.3.1) + use-resize-observer: 9.1.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) util-deprecate: 1.0.2 transitivePeerDependencies: - '@types/react' @@ -13304,7 +13361,7 @@ snapshots: dependencies: ts-dedent: 2.2.0 - '@storybook/core-server@7.6.19': + '@storybook/core-server@7.6.19(bufferutil@4.0.8)': dependencies: '@aw-web-design/x-default-browser': 1.4.126 '@discoveryjs/json-ext': 0.5.7 @@ -13346,7 +13403,7 @@ snapshots: util: 0.12.5 util-deprecate: 1.0.2 watchpack: 2.4.1 - ws: 8.17.0 + ws: 8.17.0(bufferutil@4.0.8) transitivePeerDependencies: - bufferutil - encoding @@ -13406,7 +13463,7 @@ snapshots: '@storybook/global@5.0.0': {} - '@storybook/manager-api@7.6.19(react-dom@18.3.1)(react@18.3.1)': + '@storybook/manager-api@7.6.19(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@storybook/channels': 7.6.19 '@storybook/client-logger': 7.6.19 @@ -13414,7 +13471,7 @@ snapshots: '@storybook/csf': 0.1.8 '@storybook/global': 5.0.0 '@storybook/router': 7.6.19 - '@storybook/theming': 7.6.19(react-dom@18.3.1)(react@18.3.1) + '@storybook/theming': 7.6.19(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@storybook/types': 7.6.19 dequal: 2.0.3 lodash: 4.17.21 @@ -13430,7 +13487,7 @@ snapshots: '@storybook/mdx2-csf@1.1.0': {} - '@storybook/nextjs@7.6.19(@swc/core@1.5.24)(esbuild@0.18.20)(next@14.2.3)(react-dom@18.3.1)(react@18.3.1)(sass@1.77.4)(typescript@5.4.5)(webpack@5.91.0)': + '@storybook/nextjs@7.6.19(@swc/core@1.5.24(@swc/helpers@0.5.5))(@swc/helpers@0.5.5)(esbuild@0.18.20)(next@14.2.3(@babel/core@7.24.6)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.4))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.4)(type-fest@2.19.0)(typescript@5.4.5)(webpack-hot-middleware@2.26.1)(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20))': dependencies: '@babel/core': 7.24.6 '@babel/plugin-syntax-bigint': 7.8.3(@babel/core@7.24.6) @@ -13446,38 +13503,39 @@ snapshots: '@babel/preset-typescript': 7.24.6(@babel/core@7.24.6) '@babel/runtime': 7.24.6 '@storybook/addon-actions': 7.6.19 - '@storybook/builder-webpack5': 7.6.19(esbuild@0.18.20)(typescript@5.4.5) + '@storybook/builder-webpack5': 7.6.19(@swc/helpers@0.5.5)(esbuild@0.18.20)(typescript@5.4.5) '@storybook/core-common': 7.6.19 '@storybook/core-events': 7.6.19 '@storybook/node-logger': 7.6.19 - '@storybook/preset-react-webpack': 7.6.19(@babel/core@7.24.6)(@swc/core@1.5.24)(esbuild@0.18.20)(react-dom@18.3.1)(react@18.3.1)(typescript@5.4.5) + '@storybook/preset-react-webpack': 7.6.19(@babel/core@7.24.6)(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(type-fest@2.19.0)(typescript@5.4.5)(webpack-hot-middleware@2.26.1) '@storybook/preview-api': 7.6.19 - '@storybook/react': 7.6.19(react-dom@18.3.1)(react@18.3.1)(typescript@5.4.5) + '@storybook/react': 7.6.19(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.4.5) '@types/node': 18.19.33 '@types/semver': 7.5.8 - css-loader: 6.11.0(webpack@5.91.0) + css-loader: 6.11.0(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)) find-up: 5.0.0 fs-extra: 11.2.0 image-size: 1.1.1 loader-utils: 3.2.2 - next: 14.2.3(@babel/core@7.24.6)(react-dom@18.3.1)(react@18.3.1)(sass@1.77.4) - node-polyfill-webpack-plugin: 2.0.1(webpack@5.91.0) + next: 14.2.3(@babel/core@7.24.6)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.4) + node-polyfill-webpack-plugin: 2.0.1(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)) pnp-webpack-plugin: 1.7.0(typescript@5.4.5) postcss: 8.4.38 - postcss-loader: 7.3.4(postcss@8.4.38)(typescript@5.4.5)(webpack@5.91.0) + postcss-loader: 7.3.4(postcss@8.4.38)(typescript@5.4.5)(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)) react: 18.3.1 react-dom: 18.3.1(react@18.3.1) resolve-url-loader: 5.0.0 - sass-loader: 12.6.0(sass@1.77.4)(webpack@5.91.0) + sass-loader: 12.6.0(sass@1.77.4)(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)) semver: 7.6.2 sharp: 0.32.6 - style-loader: 3.3.4(webpack@5.91.0) + style-loader: 3.3.4(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)) styled-jsx: 5.1.1(@babel/core@7.24.6)(react@18.3.1) ts-dedent: 2.2.0 tsconfig-paths: 4.2.0 tsconfig-paths-webpack-plugin: 4.1.0 + optionalDependencies: typescript: 5.4.5 - webpack: 5.91.0(@swc/core@1.5.24)(esbuild@0.18.20) + webpack: 5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20) transitivePeerDependencies: - '@rspack/core' - '@swc/core' @@ -13511,17 +13569,16 @@ snapshots: '@storybook/postinstall@7.6.19': {} - '@storybook/preset-react-webpack@7.6.19(@babel/core@7.24.6)(@swc/core@1.5.24)(esbuild@0.18.20)(react-dom@18.3.1)(react@18.3.1)(typescript@5.4.5)': + '@storybook/preset-react-webpack@7.6.19(@babel/core@7.24.6)(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(type-fest@2.19.0)(typescript@5.4.5)(webpack-hot-middleware@2.26.1)': dependencies: - '@babel/core': 7.24.6 '@babel/preset-flow': 7.24.6(@babel/core@7.24.6) '@babel/preset-react': 7.24.6(@babel/core@7.24.6) - '@pmmmwh/react-refresh-webpack-plugin': 0.5.15(react-refresh@0.14.2)(webpack@5.91.0) + '@pmmmwh/react-refresh-webpack-plugin': 0.5.15(react-refresh@0.14.2)(type-fest@2.19.0)(webpack-hot-middleware@2.26.1)(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)) '@storybook/core-webpack': 7.6.19 '@storybook/docs-tools': 7.6.19 '@storybook/node-logger': 7.6.19 - '@storybook/react': 7.6.19(react-dom@18.3.1)(react@18.3.1)(typescript@5.4.5) - '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.cd77847.0(typescript@5.4.5)(webpack@5.91.0) + '@storybook/react': 7.6.19(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.4.5) + '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.cd77847.0(typescript@5.4.5)(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)) '@types/node': 18.19.33 '@types/semver': 7.5.8 babel-plugin-add-react-displayname: 0.0.5 @@ -13532,8 +13589,10 @@ snapshots: react-dom: 18.3.1(react@18.3.1) react-refresh: 0.14.2 semver: 7.6.2 + webpack: 5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20) + optionalDependencies: + '@babel/core': 7.24.6 typescript: 5.4.5 - webpack: 5.91.0(@swc/core@1.5.24)(esbuild@0.18.20) transitivePeerDependencies: - '@swc/core' - '@types/webpack' @@ -13567,7 +13626,7 @@ snapshots: '@storybook/preview@7.6.19': {} - '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.cd77847.0(typescript@5.4.5)(webpack@5.91.0)': + '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.cd77847.0(typescript@5.4.5)(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20))': dependencies: debug: 4.3.5 endent: 2.1.0 @@ -13577,23 +13636,23 @@ snapshots: react-docgen-typescript: 2.2.2(typescript@5.4.5) tslib: 2.6.2 typescript: 5.4.5 - webpack: 5.91.0(@swc/core@1.5.24)(esbuild@0.18.20) + webpack: 5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20) transitivePeerDependencies: - supports-color - '@storybook/react-dom-shim@7.6.19(react-dom@18.3.1)(react@18.3.1)': + '@storybook/react-dom-shim@7.6.19(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - '@storybook/react@7.6.19(react-dom@18.3.1)(react@18.3.1)(typescript@5.4.5)': + '@storybook/react@7.6.19(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.4.5)': dependencies: '@storybook/client-logger': 7.6.19 '@storybook/core-client': 7.6.19 '@storybook/docs-tools': 7.6.19 '@storybook/global': 5.0.0 '@storybook/preview-api': 7.6.19 - '@storybook/react-dom-shim': 7.6.19(react-dom@18.3.1)(react@18.3.1) + '@storybook/react-dom-shim': 7.6.19(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@storybook/types': 7.6.19 '@types/escodegen': 0.0.6 '@types/estree': 0.0.51 @@ -13607,11 +13666,12 @@ snapshots: prop-types: 15.8.1 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - react-element-to-jsx-string: 15.0.0(react-dom@18.3.1)(react@18.3.1) + react-element-to-jsx-string: 15.0.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) ts-dedent: 2.2.0 type-fest: 2.19.0 - typescript: 5.4.5 util-deprecate: 1.0.2 + optionalDependencies: + typescript: 5.4.5 transitivePeerDependencies: - encoding - supports-color @@ -13642,7 +13702,7 @@ snapshots: '@testing-library/user-event': 14.5.2(@testing-library/dom@9.3.4) ts-dedent: 2.2.0 - '@storybook/theming@7.6.19(react-dom@18.3.1)(react@18.3.1)': + '@storybook/theming@7.6.19(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@emotion/use-insertion-effect-with-fallbacks': 1.0.1(react@18.3.1) '@storybook/client-logger': 7.6.19 @@ -13693,7 +13753,7 @@ snapshots: '@swc/core-win32-x64-msvc@1.5.24': optional: true - '@swc/core@1.5.24': + '@swc/core@1.5.24(@swc/helpers@0.5.5)': dependencies: '@swc/counter': 0.1.3 '@swc/types': 0.1.7 @@ -13708,6 +13768,7 @@ snapshots: '@swc/core-win32-arm64-msvc': 1.5.24 '@swc/core-win32-ia32-msvc': 1.5.24 '@swc/core-win32-x64-msvc': 1.5.24 + '@swc/helpers': 0.5.5 '@swc/counter@0.1.3': {} @@ -13745,7 +13806,7 @@ snapshots: '@tanstack/query-devtools@5.37.1': {} - '@tanstack/react-query-devtools@5.45.0(@tanstack/react-query@5.40.0)(react@18.3.1)': + '@tanstack/react-query-devtools@5.45.0(@tanstack/react-query@5.40.0(react@18.3.1))(react@18.3.1)': dependencies: '@tanstack/query-devtools': 5.37.1 '@tanstack/react-query': 5.40.0(react@18.3.1) @@ -14022,6 +14083,7 @@ snapshots: '@typescript-eslint/visitor-keys': 7.2.0 debug: 4.3.5 eslint: 7.32.0 + optionalDependencies: typescript: 5.4.5 transitivePeerDependencies: - supports-color @@ -14043,6 +14105,7 @@ snapshots: minimatch: 9.0.3 semver: 7.6.2 ts-api-utils: 1.3.0(typescript@5.4.5) + optionalDependencies: typescript: 5.4.5 transitivePeerDependencies: - supports-color @@ -14059,7 +14122,7 @@ snapshots: '@use-gesture/core': 10.3.1 react: 18.3.1 - '@wagmi/cli@2.1.8(typescript@5.4.5)': + '@wagmi/cli@2.1.8(bufferutil@4.0.8)(typescript@5.4.5)': dependencies: abitype: 1.0.2(typescript@5.4.5)(zod@3.23.8) bundle-require: 4.2.1(esbuild@0.19.12) @@ -14078,25 +14141,27 @@ snapshots: pathe: 1.1.2 picocolors: 1.0.1 prettier: 3.3.0 - typescript: 5.4.5 - viem: 2.13.3(typescript@5.4.5)(zod@3.23.8) + viem: 2.13.3(bufferutil@4.0.8)(typescript@5.4.5)(zod@3.23.8) zod: 3.23.8 + optionalDependencies: + typescript: 5.4.5 transitivePeerDependencies: - bufferutil - utf-8-validate - '@wagmi/connectors@5.0.14(@types/react@18.3.1)(@wagmi/core@2.11.2)(react-dom@18.3.1)(react-i18next@13.5.0)(react-native@0.74.1)(react@18.3.1)(typescript@5.4.5)(viem@2.13.3)(zod@3.23.8)': + '@wagmi/connectors@5.0.14(@types/react@18.3.1)(@wagmi/core@2.11.2(@tanstack/query-core@5.40.0)(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(typescript@5.4.5)(viem@2.13.3(bufferutil@4.0.8)(typescript@5.4.5)(zod@3.23.8))(zod@3.23.8))(bufferutil@4.0.8)(react-dom@18.3.1(react@18.3.1))(react-i18next@13.5.0(i18next@22.5.1)(react-dom@18.3.1(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1)(typescript@5.4.5)(viem@2.13.3(bufferutil@4.0.8)(typescript@5.4.5)(zod@3.23.8))(zod@3.23.8)': dependencies: '@coinbase/wallet-sdk': 4.0.3 - '@metamask/sdk': 0.20.5(react-dom@18.3.1)(react-i18next@13.5.0)(react-native@0.74.1)(react@18.3.1) - '@safe-global/safe-apps-provider': 0.18.1(typescript@5.4.5)(zod@3.23.8) - '@safe-global/safe-apps-sdk': 8.1.0(typescript@5.4.5)(zod@3.23.8) - '@wagmi/core': 2.11.2(@types/react@18.3.1)(react@18.3.1)(typescript@5.4.5)(viem@2.13.3)(zod@3.23.8) - '@walletconnect/ethereum-provider': 2.13.0(@types/react@18.3.1)(react@18.3.1) + '@metamask/sdk': 0.20.5(bufferutil@4.0.8)(react-dom@18.3.1(react@18.3.1))(react-i18next@13.5.0(i18next@22.5.1)(react-dom@18.3.1(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1) + '@safe-global/safe-apps-provider': 0.18.1(bufferutil@4.0.8)(typescript@5.4.5)(zod@3.23.8) + '@safe-global/safe-apps-sdk': 8.1.0(bufferutil@4.0.8)(typescript@5.4.5)(zod@3.23.8) + '@wagmi/core': 2.11.2(@tanstack/query-core@5.40.0)(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(typescript@5.4.5)(viem@2.13.3(bufferutil@4.0.8)(typescript@5.4.5)(zod@3.23.8))(zod@3.23.8) + '@walletconnect/ethereum-provider': 2.13.0(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1) '@walletconnect/modal': 2.6.2(@types/react@18.3.1)(react@18.3.1) cbw-sdk: '@coinbase/wallet-sdk@3.9.3' + viem: 2.13.3(bufferutil@4.0.8)(typescript@5.4.5)(zod@3.23.8) + optionalDependencies: typescript: 5.4.5 - viem: 2.13.3(typescript@5.4.5)(zod@3.23.8) transitivePeerDependencies: - '@azure/app-configuration' - '@azure/cosmos' @@ -14124,13 +14189,15 @@ snapshots: - utf-8-validate - zod - '@wagmi/core@2.11.2(@types/react@18.3.1)(react@18.3.1)(typescript@5.4.5)(viem@2.13.3)(zod@3.23.8)': + '@wagmi/core@2.11.2(@tanstack/query-core@5.40.0)(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(typescript@5.4.5)(viem@2.13.3(bufferutil@4.0.8)(typescript@5.4.5)(zod@3.23.8))(zod@3.23.8)': dependencies: eventemitter3: 5.0.1 - mipd: 0.0.5(typescript@5.4.5)(zod@3.23.8) - typescript: 5.4.5 - viem: 2.13.3(typescript@5.4.5)(zod@3.23.8) + mipd: 0.0.5(bufferutil@4.0.8)(typescript@5.4.5)(zod@3.23.8) + viem: 2.13.3(bufferutil@4.0.8)(typescript@5.4.5)(zod@3.23.8) zustand: 4.4.1(@types/react@18.3.1)(react@18.3.1) + optionalDependencies: + '@tanstack/query-core': 5.40.0 + typescript: 5.4.5 transitivePeerDependencies: - '@types/react' - bufferutil @@ -14139,13 +14206,13 @@ snapshots: - utf-8-validate - zod - '@walletconnect/core@2.13.0': + '@walletconnect/core@2.13.0(bufferutil@4.0.8)': dependencies: '@walletconnect/heartbeat': 1.2.2 '@walletconnect/jsonrpc-provider': 1.0.14 '@walletconnect/jsonrpc-types': 1.0.4 '@walletconnect/jsonrpc-utils': 1.0.8 - '@walletconnect/jsonrpc-ws-connection': 1.0.14 + '@walletconnect/jsonrpc-ws-connection': 1.0.14(bufferutil@4.0.8) '@walletconnect/keyvaluestorage': 1.1.1 '@walletconnect/logger': 2.1.2 '@walletconnect/relay-api': 1.0.10 @@ -14181,16 +14248,16 @@ snapshots: dependencies: tslib: 1.14.1 - '@walletconnect/ethereum-provider@2.13.0(@types/react@18.3.1)(react@18.3.1)': + '@walletconnect/ethereum-provider@2.13.0(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)': dependencies: '@walletconnect/jsonrpc-http-connection': 1.0.8 '@walletconnect/jsonrpc-provider': 1.0.14 '@walletconnect/jsonrpc-types': 1.0.4 '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/modal': 2.6.2(@types/react@18.3.1)(react@18.3.1) - '@walletconnect/sign-client': 2.13.0 + '@walletconnect/sign-client': 2.13.0(bufferutil@4.0.8) '@walletconnect/types': 2.13.0 - '@walletconnect/universal-provider': 2.13.0 + '@walletconnect/universal-provider': 2.13.0(bufferutil@4.0.8) '@walletconnect/utils': 2.13.0 events: 3.3.0 transitivePeerDependencies: @@ -14262,12 +14329,12 @@ snapshots: '@walletconnect/jsonrpc-types': 1.0.4 tslib: 1.14.1 - '@walletconnect/jsonrpc-ws-connection@1.0.14': + '@walletconnect/jsonrpc-ws-connection@1.0.14(bufferutil@4.0.8)': dependencies: '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/safe-json': 1.0.2 events: 3.3.0 - ws: 7.5.9 + ws: 7.5.9(bufferutil@4.0.8) transitivePeerDependencies: - bufferutil - utf-8-validate @@ -14339,9 +14406,9 @@ snapshots: dependencies: tslib: 1.14.1 - '@walletconnect/sign-client@2.13.0': + '@walletconnect/sign-client@2.13.0(bufferutil@4.0.8)': dependencies: - '@walletconnect/core': 2.13.0 + '@walletconnect/core': 2.13.0(bufferutil@4.0.8) '@walletconnect/events': 1.0.1 '@walletconnect/heartbeat': 1.2.2 '@walletconnect/jsonrpc-utils': 1.0.8 @@ -14421,14 +14488,14 @@ snapshots: - ioredis - uWebSockets.js - '@walletconnect/universal-provider@2.13.0': + '@walletconnect/universal-provider@2.13.0(bufferutil@4.0.8)': dependencies: '@walletconnect/jsonrpc-http-connection': 1.0.8 '@walletconnect/jsonrpc-provider': 1.0.14 '@walletconnect/jsonrpc-types': 1.0.4 '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/logger': 2.1.2 - '@walletconnect/sign-client': 2.13.0 + '@walletconnect/sign-client': 2.13.0(bufferutil@4.0.8) '@walletconnect/types': 2.13.0 '@walletconnect/utils': 2.13.0 events: 3.3.0 @@ -14542,9 +14609,10 @@ snapshots: dependencies: buffer: 6.0.3 - '@web3modal/scaffold-react@4.2.3(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1)': + '@web3modal/scaffold-react@4.2.3(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@web3modal/scaffold': 4.2.3(@types/react@18.3.1)(react@18.3.1) + optionalDependencies: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) transitivePeerDependencies: @@ -14650,20 +14718,21 @@ snapshots: lit: 3.1.0 qrcode: 1.5.3 - '@web3modal/wagmi@4.2.3(@types/react@18.3.1)(@wagmi/connectors@5.0.14)(@wagmi/core@2.11.2)(react-dom@18.3.1)(react@18.3.1)(viem@2.13.3)': + '@web3modal/wagmi@4.2.3(tvdeig7epb6pfdu4bgzyotf5qu)': dependencies: - '@wagmi/connectors': 5.0.14(@types/react@18.3.1)(@wagmi/core@2.11.2)(react-dom@18.3.1)(react-i18next@13.5.0)(react-native@0.74.1)(react@18.3.1)(typescript@5.4.5)(viem@2.13.3)(zod@3.23.8) - '@wagmi/core': 2.11.2(@types/react@18.3.1)(react@18.3.1)(typescript@5.4.5)(viem@2.13.3)(zod@3.23.8) - '@walletconnect/ethereum-provider': 2.13.0(@types/react@18.3.1)(react@18.3.1) + '@wagmi/connectors': 5.0.14(@types/react@18.3.1)(@wagmi/core@2.11.2(@tanstack/query-core@5.40.0)(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(typescript@5.4.5)(viem@2.13.3(bufferutil@4.0.8)(typescript@5.4.5)(zod@3.23.8))(zod@3.23.8))(bufferutil@4.0.8)(react-dom@18.3.1(react@18.3.1))(react-i18next@13.5.0(i18next@22.5.1)(react-dom@18.3.1(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1)(typescript@5.4.5)(viem@2.13.3(bufferutil@4.0.8)(typescript@5.4.5)(zod@3.23.8))(zod@3.23.8) + '@wagmi/core': 2.11.2(@tanstack/query-core@5.40.0)(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(typescript@5.4.5)(viem@2.13.3(bufferutil@4.0.8)(typescript@5.4.5)(zod@3.23.8))(zod@3.23.8) + '@walletconnect/ethereum-provider': 2.13.0(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1) '@web3modal/polyfills': 4.2.3 '@web3modal/scaffold': 4.2.3(@types/react@18.3.1)(react@18.3.1) - '@web3modal/scaffold-react': 4.2.3(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@web3modal/scaffold-react': 4.2.3(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@web3modal/scaffold-utils': 4.2.3(@types/react@18.3.1)(react@18.3.1) '@web3modal/scaffold-vue': 4.2.3(@types/react@18.3.1)(react@18.3.1) '@web3modal/siwe': 4.2.3(@types/react@18.3.1)(react@18.3.1) + viem: 2.13.3(bufferutil@4.0.8)(typescript@5.4.5)(zod@3.23.8) + optionalDependencies: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - viem: 2.13.3(typescript@5.4.5)(zod@3.23.8) transitivePeerDependencies: - '@azure/app-configuration' - '@azure/cosmos' @@ -14820,17 +14889,17 @@ snapshots: tslib: 1.14.1 abitype@0.9.8(typescript@5.4.5)(zod@3.23.8): - dependencies: + optionalDependencies: typescript: 5.4.5 zod: 3.23.8 abitype@1.0.0(typescript@5.4.5)(zod@3.23.8): - dependencies: + optionalDependencies: typescript: 5.4.5 zod: 3.23.8 abitype@1.0.2(typescript@5.4.5)(zod@3.23.8): - dependencies: + optionalDependencies: typescript: 5.4.5 zod: 3.23.8 @@ -14878,7 +14947,7 @@ snapshots: indent-string: 4.0.0 ajv-formats@2.1.1(ajv@8.14.0): - dependencies: + optionalDependencies: ajv: 8.14.0 ajv-keywords@3.5.2(ajv@6.12.6): @@ -15136,21 +15205,21 @@ snapshots: dependencies: '@babel/core': 7.24.6 - babel-loader@8.3.0(@babel/core@7.24.6)(webpack@5.91.0): + babel-loader@8.3.0(@babel/core@7.24.6)(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)): dependencies: '@babel/core': 7.24.6 find-cache-dir: 3.3.2 loader-utils: 2.0.4 make-dir: 3.1.0 schema-utils: 2.7.1 - webpack: 5.91.0(@swc/core@1.5.24)(esbuild@0.18.20) + webpack: 5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20) - babel-loader@9.1.3(@babel/core@7.24.6)(webpack@5.91.0): + babel-loader@9.1.3(@babel/core@7.24.6)(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)): dependencies: '@babel/core': 7.24.6 find-cache-dir: 4.0.0 schema-utils: 4.2.0 - webpack: 5.91.0(@swc/core@1.5.24)(esbuild@0.18.20) + webpack: 5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20) babel-plugin-add-react-displayname@0.0.5: {} @@ -15776,6 +15845,7 @@ snapshots: js-yaml: 4.1.0 parse-json: 5.2.0 path-type: 4.0.0 + optionalDependencies: typescript: 5.4.5 crc-32@1.2.2: {} @@ -15846,7 +15916,7 @@ snapshots: crypto-random-string@2.0.0: {} - css-loader@3.6.0(webpack@5.91.0): + css-loader@3.6.0(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)): dependencies: camelcase: 5.3.1 cssesc: 3.0.0 @@ -15861,9 +15931,9 @@ snapshots: postcss-value-parser: 4.2.0 schema-utils: 2.7.1 semver: 6.3.1 - webpack: 5.91.0(@swc/core@1.5.24)(esbuild@0.18.20) + webpack: 5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20) - css-loader@6.11.0(webpack@5.91.0): + css-loader@6.11.0(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)): dependencies: icss-utils: 5.1.0(postcss@8.4.38) postcss: 8.4.38 @@ -15873,7 +15943,8 @@ snapshots: postcss-modules-values: 4.0.0(postcss@8.4.38) postcss-value-parser: 4.2.0 semver: 7.6.2 - webpack: 5.91.0(@swc/core@1.5.24)(esbuild@0.18.20) + optionalDependencies: + webpack: 5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20) css-select@4.3.0: dependencies: @@ -16183,15 +16254,13 @@ snapshots: dependencies: embla-carousel: 8.0.1 - embla-carousel-wheel-gestures@8.0.1(embla-carousel@8.1.3): + embla-carousel-wheel-gestures@8.0.1(embla-carousel@8.0.1): dependencies: - embla-carousel: 8.1.3 + embla-carousel: 8.0.1 wheel-gestures: 2.2.5 embla-carousel@8.0.1: {} - embla-carousel@8.1.3: {} - emoji-regex@8.0.0: {} emoji-regex@9.2.2: {} @@ -16212,12 +16281,12 @@ snapshots: fast-json-parse: 1.0.3 objectorarray: 1.0.5 - engine.io-client@6.5.3: + engine.io-client@6.5.3(bufferutil@4.0.8): dependencies: '@socket.io/component-emitter': 3.1.2 debug: 4.3.5 engine.io-parser: 5.2.2 - ws: 8.11.0 + ws: 8.11.0(bufferutil@4.0.8) xmlhttprequest-ssl: 2.0.0 transitivePeerDependencies: - bufferutil @@ -16437,19 +16506,19 @@ snapshots: optionalDependencies: source-map: 0.6.1 - eslint-config-airbnb-base@14.2.1(eslint-plugin-import@2.29.1)(eslint@7.32.0): + eslint-config-airbnb-base@14.2.1(eslint-plugin-import@2.29.1(eslint@7.32.0))(eslint@7.32.0): dependencies: confusing-browser-globals: 1.0.11 eslint: 7.32.0 - eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.2.0)(eslint-import-resolver-typescript@3.6.1)(eslint@7.32.0) + eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.2.0(eslint@7.32.0)(typescript@5.4.5))(eslint-import-resolver-typescript@3.6.1)(eslint@7.32.0) object.assign: 4.1.5 object.entries: 1.1.8 - eslint-config-airbnb@18.2.1(eslint-plugin-import@2.29.1)(eslint-plugin-jsx-a11y@6.8.0)(eslint-plugin-react-hooks@4.2.1-alpha-327d5c484-20211106)(eslint-plugin-react@7.34.2)(eslint@7.32.0): + eslint-config-airbnb@18.2.1(eslint-plugin-import@2.29.1(eslint@7.32.0))(eslint-plugin-jsx-a11y@6.8.0(eslint@7.32.0))(eslint-plugin-react-hooks@4.2.1-alpha-327d5c484-20211106(eslint@7.32.0))(eslint-plugin-react@7.34.2(eslint@7.32.0))(eslint@7.32.0): dependencies: eslint: 7.32.0 - eslint-config-airbnb-base: 14.2.1(eslint-plugin-import@2.29.1)(eslint@7.32.0) - eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.2.0)(eslint-import-resolver-typescript@3.6.1)(eslint@7.32.0) + eslint-config-airbnb-base: 14.2.1(eslint-plugin-import@2.29.1(eslint@7.32.0))(eslint@7.32.0) + eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.2.0(eslint@7.32.0)(typescript@5.4.5))(eslint-import-resolver-typescript@3.6.1)(eslint@7.32.0) eslint-plugin-jsx-a11y: 6.8.0(eslint@7.32.0) eslint-plugin-react: 7.34.2(eslint@7.32.0) eslint-plugin-react-hooks: 4.2.1-alpha-327d5c484-20211106(eslint@7.32.0) @@ -16463,11 +16532,12 @@ snapshots: '@typescript-eslint/parser': 7.2.0(eslint@7.32.0)(typescript@5.4.5) eslint: 7.32.0 eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@7.2.0)(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1)(eslint@7.32.0) - eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.2.0)(eslint-import-resolver-typescript@3.6.1)(eslint@7.32.0) + eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@7.2.0(eslint@7.32.0)(typescript@5.4.5))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1(eslint@7.32.0))(eslint@7.32.0) + eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.2.0(eslint@7.32.0)(typescript@5.4.5))(eslint-import-resolver-typescript@3.6.1)(eslint@7.32.0) eslint-plugin-jsx-a11y: 6.8.0(eslint@7.32.0) eslint-plugin-react: 7.34.2(eslint@7.32.0) eslint-plugin-react-hooks: 4.6.2(eslint@7.32.0) + optionalDependencies: typescript: 5.4.5 transitivePeerDependencies: - eslint-import-resolver-webpack @@ -16485,13 +16555,13 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.2.0)(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1)(eslint@7.32.0): + eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.2.0(eslint@7.32.0)(typescript@5.4.5))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1(eslint@7.32.0))(eslint@7.32.0): dependencies: debug: 4.3.5 enhanced-resolve: 5.16.1 eslint: 7.32.0 - eslint-module-utils: 2.8.1(@typescript-eslint/parser@7.2.0)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1)(eslint@7.32.0) - eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.2.0)(eslint-import-resolver-typescript@3.6.1)(eslint@7.32.0) + eslint-module-utils: 2.8.1(@typescript-eslint/parser@7.2.0(eslint@7.32.0)(typescript@5.4.5))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1)(eslint@7.32.0) + eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.2.0(eslint@7.32.0)(typescript@5.4.5))(eslint-import-resolver-typescript@3.6.1)(eslint@7.32.0) fast-glob: 3.3.2 get-tsconfig: 4.7.5 is-core-module: 2.13.1 @@ -16502,19 +16572,19 @@ snapshots: - eslint-import-resolver-webpack - supports-color - eslint-module-utils@2.8.1(@typescript-eslint/parser@7.2.0)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1)(eslint@7.32.0): + eslint-module-utils@2.8.1(@typescript-eslint/parser@7.2.0(eslint@7.32.0)(typescript@5.4.5))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1)(eslint@7.32.0): dependencies: - '@typescript-eslint/parser': 7.2.0(eslint@7.32.0)(typescript@5.4.5) debug: 3.2.7 + optionalDependencies: + '@typescript-eslint/parser': 7.2.0(eslint@7.32.0)(typescript@5.4.5) eslint: 7.32.0 eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@7.2.0)(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1)(eslint@7.32.0) + eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@7.2.0(eslint@7.32.0)(typescript@5.4.5))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1(eslint@7.32.0))(eslint@7.32.0) transitivePeerDependencies: - supports-color - eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.2.0)(eslint-import-resolver-typescript@3.6.1)(eslint@7.32.0): + eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.2.0(eslint@7.32.0)(typescript@5.4.5))(eslint-import-resolver-typescript@3.6.1)(eslint@7.32.0): dependencies: - '@typescript-eslint/parser': 7.2.0(eslint@7.32.0)(typescript@5.4.5) array-includes: 3.1.8 array.prototype.findlastindex: 1.2.5 array.prototype.flat: 1.3.2 @@ -16523,7 +16593,7 @@ snapshots: doctrine: 2.1.0 eslint: 7.32.0 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.8.1(@typescript-eslint/parser@7.2.0)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1)(eslint@7.32.0) + eslint-module-utils: 2.8.1(@typescript-eslint/parser@7.2.0(eslint@7.32.0)(typescript@5.4.5))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1)(eslint@7.32.0) hasown: 2.0.2 is-core-module: 2.13.1 is-glob: 4.0.3 @@ -16533,6 +16603,8 @@ snapshots: object.values: 1.2.0 semver: 6.3.1 tsconfig-paths: 3.15.0 + optionalDependencies: + '@typescript-eslint/parser': 7.2.0(eslint@7.32.0)(typescript@5.4.5) transitivePeerDependencies: - eslint-import-resolver-typescript - eslint-import-resolver-webpack @@ -16563,12 +16635,13 @@ snapshots: eslint: 7.32.0 requireindex: 1.2.0 - eslint-plugin-prettier@4.2.1(eslint-config-prettier@8.10.0)(eslint@7.32.0)(prettier@3.3.0): + eslint-plugin-prettier@4.2.1(eslint-config-prettier@8.10.0(eslint@7.32.0))(eslint@7.32.0)(prettier@3.3.0): dependencies: eslint: 7.32.0 - eslint-config-prettier: 8.10.0(eslint@7.32.0) prettier: 3.3.0 prettier-linter-helpers: 1.0.0 + optionalDependencies: + eslint-config-prettier: 8.10.0(eslint@7.32.0) eslint-plugin-react-hooks@4.2.1-alpha-327d5c484-20211106(eslint@7.32.0): dependencies: @@ -16909,11 +16982,11 @@ snapshots: dependencies: flat-cache: 3.2.0 - file-loader@6.2.0(webpack@5.91.0): + file-loader@6.2.0(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)): dependencies: loader-utils: 2.0.4 schema-utils: 3.3.0 - webpack: 5.91.0(@swc/core@1.5.24)(esbuild@0.18.20) + webpack: 5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20) file-selector@0.6.0: dependencies: @@ -17017,7 +17090,7 @@ snapshots: cross-spawn: 7.0.3 signal-exit: 4.1.0 - fork-ts-checker-webpack-plugin@8.0.0(typescript@5.4.5)(webpack@5.91.0): + fork-ts-checker-webpack-plugin@8.0.0(typescript@5.4.5)(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)): dependencies: '@babel/code-frame': 7.24.6 chalk: 4.1.2 @@ -17032,7 +17105,7 @@ snapshots: semver: 7.6.2 tapable: 2.2.1 typescript: 5.4.5 - webpack: 5.91.0(@swc/core@1.5.24)(esbuild@0.18.20) + webpack: 5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20) form-data@4.0.0: dependencies: @@ -17044,11 +17117,12 @@ snapshots: fraction.js@4.3.7: {} - framer-motion@11.2.10(react-dom@18.3.1)(react@18.3.1): + framer-motion@11.2.10(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: + tslib: 2.6.2 + optionalDependencies: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - tslib: 2.6.2 fresh@0.5.2: {} @@ -17116,9 +17190,9 @@ snapshots: strip-ansi: 6.0.1 wide-align: 1.1.5 - geist@1.3.0(next@14.2.3): + geist@1.3.0(next@14.2.3(@babel/core@7.24.6)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.4)): dependencies: - next: 14.2.3(@babel/core@7.24.6)(react-dom@18.3.1)(react@18.3.1)(sass@1.77.4) + next: 14.2.3(@babel/core@7.24.6)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.4) gensync@1.0.0-beta.2: {} @@ -17246,13 +17320,13 @@ snapshots: graceful-fs@4.2.11: {} - graphql-config@5.0.3(@types/node@17.0.45)(graphql@16.8.1)(typescript@5.4.5): + graphql-config@5.0.3(@types/node@17.0.45)(bufferutil@4.0.8)(graphql@16.8.1)(typescript@5.4.5): dependencies: '@graphql-tools/graphql-file-loader': 8.0.1(graphql@16.8.1) '@graphql-tools/json-file-loader': 8.0.1(graphql@16.8.1) '@graphql-tools/load': 8.0.2(graphql@16.8.1) '@graphql-tools/merge': 9.0.4(graphql@16.8.1) - '@graphql-tools/url-loader': 8.0.2(@types/node@17.0.45)(graphql@16.8.1) + '@graphql-tools/url-loader': 8.0.2(@types/node@17.0.45)(bufferutil@4.0.8)(graphql@16.8.1) '@graphql-tools/utils': 10.2.1(graphql@16.8.1) cosmiconfig: 8.3.6(typescript@5.4.5) graphql: 16.8.1 @@ -17414,14 +17488,15 @@ snapshots: html-tags@3.3.1: {} - html-webpack-plugin@5.6.0(webpack@5.91.0): + html-webpack-plugin@5.6.0(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)): dependencies: '@types/html-minifier-terser': 6.1.0 html-minifier-terser: 6.1.0 lodash: 4.17.21 pretty-error: 4.0.0 tapable: 2.2.1 - webpack: 5.91.0(@swc/core@1.5.24)(esbuild@0.18.20) + optionalDependencies: + webpack: 5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20) htmlparser2@6.1.0: dependencies: @@ -17774,17 +17849,17 @@ snapshots: transitivePeerDependencies: - encoding - isomorphic-ws@5.0.0(ws@8.17.0): + isomorphic-ws@5.0.0(ws@8.17.0(bufferutil@4.0.8)): dependencies: - ws: 8.17.0 + ws: 8.17.0(bufferutil@4.0.8) - isows@1.0.3(ws@8.13.0): + isows@1.0.3(ws@8.13.0(bufferutil@4.0.8)): dependencies: - ws: 8.13.0 + ws: 8.13.0(bufferutil@4.0.8) - isows@1.0.4(ws@8.13.0): + isows@1.0.4(ws@8.13.0(bufferutil@4.0.8)): dependencies: - ws: 8.13.0 + ws: 8.13.0(bufferutil@4.0.8) istanbul-lib-coverage@3.2.2: {} @@ -17942,7 +18017,7 @@ snapshots: jsc-safe-url@0.2.4: {} - jscodeshift@0.14.0(@babel/preset-env@7.24.6): + jscodeshift@0.14.0(@babel/preset-env@7.24.6(@babel/core@7.24.6)): dependencies: '@babel/core': 7.24.6 '@babel/parser': 7.24.6 @@ -17967,7 +18042,7 @@ snapshots: transitivePeerDependencies: - supports-color - jscodeshift@0.15.2(@babel/preset-env@7.24.6): + jscodeshift@0.15.2(@babel/preset-env@7.24.6(@babel/core@7.24.6)): dependencies: '@babel/core': 7.24.6 '@babel/parser': 7.24.6 @@ -17976,7 +18051,6 @@ snapshots: '@babel/plugin-transform-nullish-coalescing-operator': 7.24.6(@babel/core@7.24.6) '@babel/plugin-transform-optional-chaining': 7.24.6(@babel/core@7.24.6) '@babel/plugin-transform-private-methods': 7.24.6(@babel/core@7.24.6) - '@babel/preset-env': 7.24.6(@babel/core@7.24.6) '@babel/preset-flow': 7.24.6(@babel/core@7.24.6) '@babel/preset-typescript': 7.24.6(@babel/core@7.24.6) '@babel/register': 7.24.6(@babel/core@7.24.6) @@ -17990,6 +18064,8 @@ snapshots: recast: 0.23.9 temp: 0.8.4 write-file-atomic: 2.4.3 + optionalDependencies: + '@babel/preset-env': 7.24.6(@babel/core@7.24.6) transitivePeerDependencies: - supports-color @@ -18121,7 +18197,7 @@ snapshots: transitivePeerDependencies: - uWebSockets.js - listr2@4.0.5: + listr2@4.0.5(enquirer@2.4.1): dependencies: cli-truncate: 2.1.0 colorette: 2.0.20 @@ -18131,6 +18207,8 @@ snapshots: rxjs: 7.8.1 through: 2.3.8 wrap-ansi: 7.0.0 + optionalDependencies: + enquirer: 2.4.1 lit-element@3.3.3: dependencies: @@ -18331,7 +18409,7 @@ snapshots: merge2@1.4.1: {} meros@1.3.0(@types/node@17.0.45): - dependencies: + optionalDependencies: '@types/node': 17.0.45 meshline@3.3.1(three@0.164.1): @@ -18357,12 +18435,12 @@ snapshots: metro-core: 0.80.9 rimraf: 3.0.2 - metro-config@0.80.9: + metro-config@0.80.9(bufferutil@4.0.8): dependencies: connect: 3.7.0 cosmiconfig: 5.2.1 jest-validate: 29.7.0 - metro: 0.80.9 + metro: 0.80.9(bufferutil@4.0.8) metro-cache: 0.80.9 metro-core: 0.80.9 metro-runtime: 0.80.9 @@ -18438,13 +18516,13 @@ snapshots: transitivePeerDependencies: - supports-color - metro-transform-worker@0.80.9: + metro-transform-worker@0.80.9(bufferutil@4.0.8): dependencies: '@babel/core': 7.24.6 '@babel/generator': 7.24.6 '@babel/parser': 7.24.6 '@babel/types': 7.24.6 - metro: 0.80.9 + metro: 0.80.9(bufferutil@4.0.8) metro-babel-transformer: 0.80.9 metro-cache: 0.80.9 metro-cache-key: 0.80.9 @@ -18458,7 +18536,7 @@ snapshots: - supports-color - utf-8-validate - metro@0.80.9: + metro@0.80.9(bufferutil@4.0.8): dependencies: '@babel/code-frame': 7.24.6 '@babel/core': 7.24.6 @@ -18484,7 +18562,7 @@ snapshots: metro-babel-transformer: 0.80.9 metro-cache: 0.80.9 metro-cache-key: 0.80.9 - metro-config: 0.80.9 + metro-config: 0.80.9(bufferutil@4.0.8) metro-core: 0.80.9 metro-file-map: 0.80.9 metro-resolver: 0.80.9 @@ -18492,7 +18570,7 @@ snapshots: metro-source-map: 0.80.9 metro-symbolicate: 0.80.9 metro-transform-plugins: 0.80.9 - metro-transform-worker: 0.80.9 + metro-transform-worker: 0.80.9(bufferutil@4.0.8) mime-types: 2.1.35 node-fetch: 2.7.0 nullthrows: 1.1.1 @@ -18501,7 +18579,7 @@ snapshots: source-map: 0.5.7 strip-ansi: 6.0.1 throat: 5.0.0 - ws: 7.5.9 + ws: 7.5.9(bufferutil@4.0.8) yargs: 17.7.2 transitivePeerDependencies: - bufferutil @@ -18582,10 +18660,11 @@ snapshots: minipass: 3.3.6 yallist: 4.0.0 - mipd@0.0.5(typescript@5.4.5)(zod@3.23.8): + mipd@0.0.5(bufferutil@4.0.8)(typescript@5.4.5)(zod@3.23.8): dependencies: + viem: 1.21.4(bufferutil@4.0.8)(typescript@5.4.5)(zod@3.23.8) + optionalDependencies: typescript: 5.4.5 - viem: 1.21.4(typescript@5.4.5)(zod@3.23.8) transitivePeerDependencies: - bufferutil - utf-8-validate @@ -18645,15 +18724,13 @@ snapshots: napi-build-utils@1.0.2: {} - napi-wasm@1.1.0: {} - natural-compare@1.4.0: {} negotiator@0.6.3: {} neo-async@2.6.2: {} - next@14.2.3(@babel/core@7.24.6)(react-dom@18.3.1)(react@18.3.1)(sass@1.77.4): + next@14.2.3(@babel/core@7.24.6)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.4): dependencies: '@next/env': 14.2.3 '@swc/helpers': 0.5.5 @@ -18663,7 +18740,6 @@ snapshots: postcss: 8.4.31 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - sass: 1.77.4 styled-jsx: 5.1.1(@babel/core@7.24.6)(react@18.3.1) optionalDependencies: '@next/swc-darwin-arm64': 14.2.3 @@ -18675,6 +18751,7 @@ snapshots: '@next/swc-win32-arm64-msvc': 14.2.3 '@next/swc-win32-ia32-msvc': 14.2.3 '@next/swc-win32-x64-msvc': 14.2.3 + sass: 1.77.4 transitivePeerDependencies: - '@babel/core' - babel-plugin-macros @@ -18718,7 +18795,7 @@ snapshots: node-int64@0.4.0: {} - node-polyfill-webpack-plugin@2.0.1(webpack@5.91.0): + node-polyfill-webpack-plugin@2.0.1(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)): dependencies: assert: 2.1.0 browserify-zlib: 0.2.0 @@ -18745,7 +18822,7 @@ snapshots: url: 0.11.3 util: 0.12.5 vm-browserify: 1.1.2 - webpack: 5.91.0(@swc/core@1.5.24)(esbuild@0.18.20) + webpack: 5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20) node-releases@2.0.14: {} @@ -19172,10 +19249,11 @@ snapshots: postcss-load-config@4.0.2(postcss@8.4.38): dependencies: lilconfig: 3.1.1 - postcss: 8.4.38 yaml: 2.4.3 + optionalDependencies: + postcss: 8.4.38 - postcss-loader@4.3.0(postcss@7.0.39)(webpack@5.91.0): + postcss-loader@4.3.0(postcss@7.0.39)(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)): dependencies: cosmiconfig: 7.1.0 klona: 2.0.6 @@ -19183,15 +19261,15 @@ snapshots: postcss: 7.0.39 schema-utils: 3.3.0 semver: 7.6.2 - webpack: 5.91.0(@swc/core@1.5.24)(esbuild@0.18.20) + webpack: 5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20) - postcss-loader@7.3.4(postcss@8.4.38)(typescript@5.4.5)(webpack@5.91.0): + postcss-loader@7.3.4(postcss@8.4.38)(typescript@5.4.5)(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)): dependencies: cosmiconfig: 8.3.6(typescript@5.4.5) jiti: 1.21.0 postcss: 8.4.38 semver: 7.6.2 - webpack: 5.91.0(@swc/core@1.5.24)(esbuild@0.18.20) + webpack: 5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20) transitivePeerDependencies: - typescript @@ -19301,9 +19379,10 @@ snapshots: prettier: 3.3.0 typescript: 5.4.5 - prettier-plugin-tailwindcss@0.6.1(prettier-plugin-organize-imports@3.2.4)(prettier@3.3.0): + prettier-plugin-tailwindcss@0.6.1(prettier-plugin-organize-imports@3.2.4(prettier@3.3.0)(typescript@5.4.5))(prettier@3.3.0): dependencies: prettier: 3.3.0 + optionalDependencies: prettier-plugin-organize-imports: 3.2.4(prettier@3.3.0)(typescript@5.4.5) prettier@2.8.8: {} @@ -19417,7 +19496,7 @@ snapshots: punycode@2.3.1: {} - puppeteer-core@2.1.1: + puppeteer-core@2.1.1(bufferutil@4.0.8): dependencies: '@types/mime-types': 2.1.4 debug: 4.3.5 @@ -19428,7 +19507,7 @@ snapshots: progress: 2.0.3 proxy-from-env: 1.1.0 rimraf: 2.7.1 - ws: 6.2.2 + ws: 6.2.2(bufferutil@4.0.8) transitivePeerDependencies: - bufferutil - supports-color @@ -19513,7 +19592,7 @@ snapshots: minimist: 1.2.8 strip-json-comments: 2.0.1 - react-colorful@5.6.1(react-dom@18.3.1)(react@18.3.1): + react-colorful@5.6.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) @@ -19523,14 +19602,14 @@ snapshots: prop-types: 15.8.1 react: 18.3.1 - react-datocms@4.2.2(@types/react-dom@18.3.0)(@types/react@18.3.1)(graphql@16.8.1)(react-dom@18.3.1)(react@18.3.1): + react-datocms@4.2.2(@types/react-dom@18.3.0)(@types/react@18.3.1)(graphql@16.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: - '@mux/mux-player-react': 2.7.0(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1)(react@18.3.1) + '@mux/mux-player-react': 2.7.0(@types/react-dom@18.3.0)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) datocms-listen: 0.1.15(graphql@16.8.1) datocms-structured-text-generic-html-renderer: 2.1.12 datocms-structured-text-utils: 2.1.12 react: 18.3.1 - react-intersection-observer: 9.10.2(react-dom@18.3.1)(react@18.3.1) + react-intersection-observer: 9.10.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react-string-replace: 1.1.1 universal-base64: 2.1.0 use-deep-compare-effect: 1.8.1(react@18.3.1) @@ -19540,15 +19619,15 @@ snapshots: - graphql - react-dom - react-devtools-core@5.2.0: + react-devtools-core@5.2.0(bufferutil@4.0.8): dependencies: shell-quote: 1.8.1 - ws: 7.5.9 + ws: 7.5.9(bufferutil@4.0.8) transitivePeerDependencies: - bufferutil - utf-8-validate - react-docgen-typescript-plugin@1.0.6(typescript@5.4.5)(webpack@5.91.0): + react-docgen-typescript-plugin@1.0.6(typescript@5.4.5)(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)): dependencies: debug: 4.3.5 endent: 2.1.0 @@ -19558,7 +19637,7 @@ snapshots: react-docgen-typescript: 2.2.2(typescript@5.4.5) tslib: 2.6.2 typescript: 5.4.5 - webpack: 5.91.0(@swc/core@1.5.24)(esbuild@0.18.20) + webpack: 5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20) transitivePeerDependencies: - supports-color @@ -19594,7 +19673,7 @@ snapshots: prop-types: 15.8.1 react: 18.3.1 - react-element-to-jsx-string@15.0.0(react-dom@18.3.1)(react@18.3.1): + react-element-to-jsx-string@15.0.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: '@base2/pretty-print-object': 1.0.1 is-plain-object: 5.0.0 @@ -19606,18 +19685,20 @@ snapshots: dependencies: react: 18.3.1 - react-i18next@13.5.0(i18next@22.5.1)(react-dom@18.3.1)(react-native@0.74.1)(react@18.3.1): + react-i18next@13.5.0(i18next@22.5.1)(react-dom@18.3.1(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1): dependencies: '@babel/runtime': 7.24.6 html-parse-stringify: 3.0.1 i18next: 22.5.1 react: 18.3.1 + optionalDependencies: react-dom: 18.3.1(react@18.3.1) - react-native: 0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6)(@types/react@18.3.1)(react@18.3.1) + react-native: 0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1) - react-intersection-observer@9.10.2(react-dom@18.3.1)(react@18.3.1): + react-intersection-observer@9.10.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: react: 18.3.1 + optionalDependencies: react-dom: 18.3.1(react@18.3.1) react-is@16.13.1: {} @@ -19628,27 +19709,26 @@ snapshots: react-is@18.3.1: {} - react-native-webview@11.26.1(react-native@0.74.1)(react@18.3.1): + react-native-webview@11.26.1(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1): dependencies: escape-string-regexp: 2.0.0 invariant: 2.2.4 react: 18.3.1 - react-native: 0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6)(@types/react@18.3.1)(react@18.3.1) + react-native: 0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1) - react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6)(@types/react@18.3.1)(react@18.3.1): + react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1): dependencies: '@jest/create-cache-key-function': 29.7.0 - '@react-native-community/cli': 13.6.6 + '@react-native-community/cli': 13.6.6(bufferutil@4.0.8) '@react-native-community/cli-platform-android': 13.6.6 '@react-native-community/cli-platform-ios': 13.6.6 '@react-native/assets-registry': 0.74.83 - '@react-native/codegen': 0.74.83(@babel/preset-env@7.24.6) - '@react-native/community-cli-plugin': 0.74.83(@babel/core@7.24.6)(@babel/preset-env@7.24.6) + '@react-native/codegen': 0.74.83(@babel/preset-env@7.24.6(@babel/core@7.24.6)) + '@react-native/community-cli-plugin': 0.74.83(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(bufferutil@4.0.8) '@react-native/gradle-plugin': 0.74.83 '@react-native/js-polyfills': 0.74.83 '@react-native/normalize-colors': 0.74.83 - '@react-native/virtualized-lists': 0.74.83(@types/react@18.3.1)(react-native@0.74.1)(react@18.3.1) - '@types/react': 18.3.1 + '@react-native/virtualized-lists': 0.74.83(@types/react@18.3.1)(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1) abort-controller: 3.0.0 anser: 1.4.10 ansi-regex: 5.0.1 @@ -19667,15 +19747,17 @@ snapshots: pretty-format: 26.6.2 promise: 8.3.0 react: 18.3.1 - react-devtools-core: 5.2.0 + react-devtools-core: 5.2.0(bufferutil@4.0.8) react-refresh: 0.14.2 react-shallow-renderer: 16.15.0(react@18.3.1) regenerator-runtime: 0.13.11 scheduler: 0.24.0-canary-efb381bbf-20230505 stacktrace-parser: 0.1.10 whatwg-fetch: 3.6.20 - ws: 6.2.2 + ws: 6.2.2(bufferutil@4.0.8) yargs: 17.7.2 + optionalDependencies: + '@types/react': 18.3.1 transitivePeerDependencies: - '@babel/core' - '@babel/preset-env' @@ -19694,20 +19776,22 @@ snapshots: react-remove-scroll-bar@2.3.6(@types/react@18.3.1)(react@18.3.1): dependencies: - '@types/react': 18.3.1 react: 18.3.1 react-style-singleton: 2.2.1(@types/react@18.3.1)(react@18.3.1) tslib: 2.6.2 + optionalDependencies: + '@types/react': 18.3.1 react-remove-scroll@2.5.5(@types/react@18.3.1)(react@18.3.1): dependencies: - '@types/react': 18.3.1 react: 18.3.1 react-remove-scroll-bar: 2.3.6(@types/react@18.3.1)(react@18.3.1) react-style-singleton: 2.2.1(@types/react@18.3.1)(react@18.3.1) tslib: 2.6.2 use-callback-ref: 1.3.2(@types/react@18.3.1)(react@18.3.1) use-sidecar: 1.1.2(@types/react@18.3.1)(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 react-shallow-renderer@16.15.0(react@18.3.1): dependencies: @@ -19719,13 +19803,14 @@ snapshots: react-style-singleton@2.2.1(@types/react@18.3.1)(react@18.3.1): dependencies: - '@types/react': 18.3.1 get-nonce: 1.0.1 invariant: 2.2.4 react: 18.3.1 tslib: 2.6.2 + optionalDependencies: + '@types/react': 18.3.1 - react-use-measure@2.1.1(react-dom@18.3.1)(react@18.3.1): + react-use-measure@2.1.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: debounce: 1.2.1 react: 18.3.1 @@ -20011,12 +20096,13 @@ snapshots: safer-buffer@2.1.2: {} - sass-loader@12.6.0(sass@1.77.4)(webpack@5.91.0): + sass-loader@12.6.0(sass@1.77.4)(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)): dependencies: klona: 2.0.6 neo-async: 2.6.2 + webpack: 5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20) + optionalDependencies: sass: 1.77.4 - webpack: 5.91.0(@swc/core@1.5.24)(esbuild@0.18.20) sass@1.77.4: dependencies: @@ -20230,11 +20316,11 @@ snapshots: dot-case: 3.0.4 tslib: 2.6.2 - socket.io-client@4.7.5: + socket.io-client@4.7.5(bufferutil@4.0.8): dependencies: '@socket.io/component-emitter': 3.1.2 debug: 4.3.5 - engine.io-client: 6.5.3 + engine.io-client: 6.5.3(bufferutil@4.0.8) socket.io-parser: 4.2.4 transitivePeerDependencies: - bufferutil @@ -20323,9 +20409,9 @@ snapshots: store2@2.14.3: {} - storybook@7.6.19: + storybook@7.6.19(bufferutil@4.0.8): dependencies: - '@storybook/cli': 7.6.19 + '@storybook/cli': 7.6.19(bufferutil@4.0.8) transitivePeerDependencies: - bufferutil - encoding @@ -20446,21 +20532,22 @@ snapshots: strnum@1.0.5: {} - style-loader@1.3.0(webpack@5.91.0): + style-loader@1.3.0(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)): dependencies: loader-utils: 2.0.4 schema-utils: 2.7.1 - webpack: 5.91.0(@swc/core@1.5.24)(esbuild@0.18.20) + webpack: 5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20) - style-loader@3.3.4(webpack@5.91.0): + style-loader@3.3.4(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)): dependencies: - webpack: 5.91.0(@swc/core@1.5.24)(esbuild@0.18.20) + webpack: 5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20) styled-jsx@5.1.1(@babel/core@7.24.6)(react@18.3.1): dependencies: - '@babel/core': 7.24.6 client-only: 0.0.1 react: 18.3.1 + optionalDependencies: + '@babel/core': 7.24.6 sucrase@3.35.0: dependencies: @@ -20502,11 +20589,11 @@ snapshots: dependencies: tslib: 2.6.2 - swc-loader@0.2.6(@swc/core@1.5.24)(webpack@5.91.0): + swc-loader@0.2.6(@swc/core@1.5.24(@swc/helpers@0.5.5))(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)): dependencies: - '@swc/core': 1.5.24 + '@swc/core': 1.5.24(@swc/helpers@0.5.5) '@swc/counter': 0.1.3 - webpack: 5.91.0(@swc/core@1.5.24)(esbuild@0.18.20) + webpack: 5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20) synchronous-promise@2.0.17: {} @@ -20613,16 +20700,17 @@ snapshots: type-fest: 0.16.0 unique-string: 2.0.0 - terser-webpack-plugin@5.3.10(@swc/core@1.5.24)(esbuild@0.18.20)(webpack@5.91.0): + terser-webpack-plugin@5.3.10(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)): dependencies: '@jridgewell/trace-mapping': 0.3.25 - '@swc/core': 1.5.24 - esbuild: 0.18.20 jest-worker: 27.5.1 schema-utils: 3.3.0 serialize-javascript: 6.0.2 terser: 5.31.0 - webpack: 5.91.0(@swc/core@1.5.24)(esbuild@0.18.20) + webpack: 5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20) + optionalDependencies: + '@swc/core': 1.5.24(@swc/helpers@0.5.5) + esbuild: 0.18.20 terser@5.31.0: dependencies: @@ -20733,7 +20821,7 @@ snapshots: ts-log@2.2.5: {} ts-pnp@1.2.0(typescript@5.4.5): - dependencies: + optionalDependencies: typescript: 5.4.5 tsconfig-paths-webpack-plugin@4.1.0: @@ -20925,13 +21013,14 @@ snapshots: chokidar: 3.6.0 destr: 2.0.3 h3: 1.11.1 - idb-keyval: 6.2.1 listhen: 1.7.2 lru-cache: 10.2.2 mri: 1.2.0 node-fetch-native: 1.6.4 ofetch: 1.3.4 ufo: 1.5.3 + optionalDependencies: + idb-keyval: 6.2.1 transitivePeerDependencies: - uWebSockets.js @@ -20974,9 +21063,10 @@ snapshots: use-callback-ref@1.3.2(@types/react@18.3.1)(react@18.3.1): dependencies: - '@types/react': 18.3.1 react: 18.3.1 tslib: 2.6.2 + optionalDependencies: + '@types/react': 18.3.1 use-debounce@9.0.4(react@18.3.1): dependencies: @@ -20988,7 +21078,7 @@ snapshots: dequal: 2.0.3 react: 18.3.1 - use-resize-observer@9.1.0(react-dom@18.3.1)(react@18.3.1): + use-resize-observer@9.1.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: '@juggle/resize-observer': 3.4.0 react: 18.3.1 @@ -20996,10 +21086,11 @@ snapshots: use-sidecar@1.1.2(@types/react@18.3.1)(react@18.3.1): dependencies: - '@types/react': 18.3.1 detect-node-es: 1.1.0 react: 18.3.1 tslib: 2.6.2 + optionalDependencies: + '@types/react': 18.3.1 use-sync-external-store@1.2.0(react@18.3.1): dependencies: @@ -21038,16 +21129,17 @@ snapshots: valtio@1.11.2(@types/react@18.3.1)(react@18.3.1): dependencies: - '@types/react': 18.3.1 proxy-compare: 2.5.1 - react: 18.3.1 use-sync-external-store: 1.2.0(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.1 + react: 18.3.1 value-or-promise@1.0.12: {} vary@1.1.2: {} - viem@1.21.4(typescript@5.4.5)(zod@3.23.8): + viem@1.21.4(bufferutil@4.0.8)(typescript@5.4.5)(zod@3.23.8): dependencies: '@adraffy/ens-normalize': 1.10.0 '@noble/curves': 1.2.0 @@ -21055,15 +21147,16 @@ snapshots: '@scure/bip32': 1.3.2 '@scure/bip39': 1.2.1 abitype: 0.9.8(typescript@5.4.5)(zod@3.23.8) - isows: 1.0.3(ws@8.13.0) + isows: 1.0.3(ws@8.13.0(bufferutil@4.0.8)) + ws: 8.13.0(bufferutil@4.0.8) + optionalDependencies: typescript: 5.4.5 - ws: 8.13.0 transitivePeerDependencies: - bufferutil - utf-8-validate - zod - viem@2.13.3(typescript@5.4.5)(zod@3.23.8): + viem@2.13.3(bufferutil@4.0.8)(typescript@5.4.5)(zod@3.23.8): dependencies: '@adraffy/ens-normalize': 1.10.0 '@noble/curves': 1.2.0 @@ -21071,9 +21164,10 @@ snapshots: '@scure/bip32': 1.3.2 '@scure/bip39': 1.2.1 abitype: 1.0.0(typescript@5.4.5)(zod@3.23.8) - isows: 1.0.4(ws@8.13.0) + isows: 1.0.4(ws@8.13.0(bufferutil@4.0.8)) + ws: 8.13.0(bufferutil@4.0.8) + optionalDependencies: typescript: 5.4.5 - ws: 8.13.0 transitivePeerDependencies: - bufferutil - utf-8-validate @@ -21085,15 +21179,16 @@ snapshots: void-elements@3.1.0: {} - wagmi@2.10.2(@tanstack/react-query@5.40.0)(@types/react@18.3.1)(react-dom@18.3.1)(react-i18next@13.5.0)(react-native@0.74.1)(react@18.3.1)(typescript@5.4.5)(viem@2.13.3)(zod@3.23.8): + wagmi@2.10.2(@tanstack/query-core@5.40.0)(@tanstack/react-query@5.40.0(react@18.3.1))(@types/react@18.3.1)(bufferutil@4.0.8)(react-dom@18.3.1(react@18.3.1))(react-i18next@13.5.0(i18next@22.5.1)(react-dom@18.3.1(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1)(typescript@5.4.5)(viem@2.13.3(bufferutil@4.0.8)(typescript@5.4.5)(zod@3.23.8))(zod@3.23.8): dependencies: '@tanstack/react-query': 5.40.0(react@18.3.1) - '@wagmi/connectors': 5.0.14(@types/react@18.3.1)(@wagmi/core@2.11.2)(react-dom@18.3.1)(react-i18next@13.5.0)(react-native@0.74.1)(react@18.3.1)(typescript@5.4.5)(viem@2.13.3)(zod@3.23.8) - '@wagmi/core': 2.11.2(@types/react@18.3.1)(react@18.3.1)(typescript@5.4.5)(viem@2.13.3)(zod@3.23.8) + '@wagmi/connectors': 5.0.14(@types/react@18.3.1)(@wagmi/core@2.11.2(@tanstack/query-core@5.40.0)(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(typescript@5.4.5)(viem@2.13.3(bufferutil@4.0.8)(typescript@5.4.5)(zod@3.23.8))(zod@3.23.8))(bufferutil@4.0.8)(react-dom@18.3.1(react@18.3.1))(react-i18next@13.5.0(i18next@22.5.1)(react-dom@18.3.1(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1))(react-native@0.74.1(@babel/core@7.24.6)(@babel/preset-env@7.24.6(@babel/core@7.24.6))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1)(typescript@5.4.5)(viem@2.13.3(bufferutil@4.0.8)(typescript@5.4.5)(zod@3.23.8))(zod@3.23.8) + '@wagmi/core': 2.11.2(@tanstack/query-core@5.40.0)(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(typescript@5.4.5)(viem@2.13.3(bufferutil@4.0.8)(typescript@5.4.5)(zod@3.23.8))(zod@3.23.8) react: 18.3.1 - typescript: 5.4.5 use-sync-external-store: 1.2.0(react@18.3.1) - viem: 2.13.3(typescript@5.4.5)(zod@3.23.8) + viem: 2.13.3(bufferutil@4.0.8)(typescript@5.4.5)(zod@3.23.8) + optionalDependencies: + typescript: 5.4.5 transitivePeerDependencies: - '@azure/app-configuration' - '@azure/cosmos' @@ -21155,14 +21250,15 @@ snapshots: webidl-conversions@3.0.1: {} - webpack-dev-middleware@6.1.3(webpack@5.91.0): + webpack-dev-middleware@6.1.3(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)): dependencies: colorette: 2.0.20 memfs: 3.5.3 mime-types: 2.1.35 range-parser: 1.2.1 schema-utils: 4.2.0 - webpack: 5.91.0(@swc/core@1.5.24)(esbuild@0.18.20) + optionalDependencies: + webpack: 5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20) webpack-hot-middleware@2.26.1: dependencies: @@ -21176,7 +21272,7 @@ snapshots: webpack-virtual-modules@0.6.1: {} - webpack@5.91.0(@swc/core@1.5.24)(esbuild@0.18.20): + webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20): dependencies: '@types/eslint-scope': 3.7.7 '@types/estree': 1.0.5 @@ -21199,7 +21295,7 @@ snapshots: neo-async: 2.6.2 schema-utils: 3.3.0 tapable: 2.2.1 - terser-webpack-plugin: 5.3.10(@swc/core@1.5.24)(esbuild@0.18.20)(webpack@5.91.0) + terser-webpack-plugin: 5.3.10(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)(webpack@5.91.0(@swc/core@1.5.24(@swc/helpers@0.5.5))(esbuild@0.18.20)) watchpack: 2.4.1 webpack-sources: 3.2.3 transitivePeerDependencies: @@ -21299,17 +21395,27 @@ snapshots: imurmurhash: 0.1.4 signal-exit: 3.0.7 - ws@6.2.2: + ws@6.2.2(bufferutil@4.0.8): dependencies: async-limiter: 1.0.1 + optionalDependencies: + bufferutil: 4.0.8 - ws@7.5.9: {} + ws@7.5.9(bufferutil@4.0.8): + optionalDependencies: + bufferutil: 4.0.8 - ws@8.11.0: {} + ws@8.11.0(bufferutil@4.0.8): + optionalDependencies: + bufferutil: 4.0.8 - ws@8.13.0: {} + ws@8.13.0(bufferutil@4.0.8): + optionalDependencies: + bufferutil: 4.0.8 - ws@8.17.0: {} + ws@8.17.0(bufferutil@4.0.8): + optionalDependencies: + bufferutil: 4.0.8 xmlhttprequest-ssl@2.0.0: {} @@ -21374,17 +21480,19 @@ snapshots: zod@3.23.8: {} zustand@3.7.2(react@18.3.1): - dependencies: + optionalDependencies: react: 18.3.1 zustand@4.4.1(@types/react@18.3.1)(react@18.3.1): dependencies: + use-sync-external-store: 1.2.0(react@18.3.1) + optionalDependencies: '@types/react': 18.3.1 react: 18.3.1 - use-sync-external-store: 1.2.0(react@18.3.1) zustand@4.5.2(@types/react@18.3.1)(react@18.3.1): dependencies: + use-sync-external-store: 1.2.0(react@18.3.1) + optionalDependencies: '@types/react': 18.3.1 react: 18.3.1 - use-sync-external-store: 1.2.0(react@18.3.1) diff --git a/src/contracts.ts b/src/contracts.ts index 6a448e4..f79fa7d 100644 --- a/src/contracts.ts +++ b/src/contracts.ts @@ -6,1179 +6,854 @@ import { } from 'wagmi/codegen' ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// BaseRiverToken +// Authorizer ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /** - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05) + * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B) */ -export const baseRiverTokenAbi = [ - { - type: 'constructor', - inputs: [ - { name: '_bridge', internalType: 'address', type: 'address' }, - { name: '_remoteToken', internalType: 'address', type: 'address' }, - ], - stateMutability: 'nonpayable', - }, - { type: 'error', inputs: [], name: 'CheckpointUnorderedInsertion' }, - { type: 'error', inputs: [], name: 'ECDSAInvalidSignature' }, - { - type: 'error', - inputs: [{ name: 'length', internalType: 'uint256', type: 'uint256' }], - name: 'ECDSAInvalidSignatureLength', - }, +export const authorizerAbi = [ { type: 'error', - inputs: [{ name: 's', internalType: 'bytes32', type: 'bytes32' }], - name: 'ECDSAInvalidSignatureS', + inputs: [], + name: 'AuthorizedClaimers_ClaimerAlreadyAuthorized', }, { - type: 'error', + type: 'event', + anonymous: false, inputs: [ - { name: 'increasedSupply', internalType: 'uint256', type: 'uint256' }, - { name: 'cap', internalType: 'uint256', type: 'uint256' }, + { + name: 'authorizer', + internalType: 'address', + type: 'address', + indexed: true, + }, + { + name: 'claimer', + internalType: 'address', + type: 'address', + indexed: true, + }, ], - name: 'ERC20ExceededSafeSupply', + name: 'AuthorizedClaimerChanged', }, { - type: 'error', + type: 'event', + anonymous: false, inputs: [ - { name: 'spender', internalType: 'address', type: 'address' }, - { name: 'allowance', internalType: 'uint256', type: 'uint256' }, - { name: 'needed', internalType: 'uint256', type: 'uint256' }, + { + name: 'authorizer', + internalType: 'address', + type: 'address', + indexed: true, + }, ], - name: 'ERC20InsufficientAllowance', + name: 'AuthorizedClaimerRemoved', }, { - type: 'error', - inputs: [ - { name: 'sender', internalType: 'address', type: 'address' }, - { name: 'balance', internalType: 'uint256', type: 'uint256' }, - { name: 'needed', internalType: 'uint256', type: 'uint256' }, - ], - name: 'ERC20InsufficientBalance', + type: 'function', + inputs: [{ name: 'claimer', internalType: 'address', type: 'address' }], + name: 'authorizeClaimer', + outputs: [], + stateMutability: 'nonpayable', }, { - type: 'error', - inputs: [{ name: 'approver', internalType: 'address', type: 'address' }], - name: 'ERC20InvalidApprover', + type: 'function', + inputs: [{ name: 'authorizer', internalType: 'address', type: 'address' }], + name: 'getAuthorizedClaimer', + outputs: [{ name: '', internalType: 'address', type: 'address' }], + stateMutability: 'view', }, { - type: 'error', - inputs: [{ name: 'receiver', internalType: 'address', type: 'address' }], - name: 'ERC20InvalidReceiver', + type: 'function', + inputs: [], + name: 'removeAuthorizedClaimer', + outputs: [], + stateMutability: 'nonpayable', }, +] as const + +/** + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05) + * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B) + */ +export const authorizerAddress = { + 1: '0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05', + 11155111: '0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B', +} as const + +/** + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05) + * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B) + */ +export const authorizerConfig = { + address: authorizerAddress, + abi: authorizerAbi, +} as const + +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// RewardsDistribution +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +/** + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) + */ +export const rewardsDistributionAbi = [ { type: 'error', - inputs: [{ name: 'sender', internalType: 'address', type: 'address' }], - name: 'ERC20InvalidSender', + inputs: [ + { name: 'delegator', internalType: 'address', type: 'address' }, + { name: 'operator', internalType: 'address', type: 'address' }, + ], + name: 'DelegationAlreadySet', }, + { type: 'error', inputs: [], name: 'DelegationNotSet' }, + { type: 'error', inputs: [], name: 'Initializable_InInitializingState' }, + { type: 'error', inputs: [], name: 'Initializable_NotInInitializingState' }, + { type: 'error', inputs: [], name: 'Introspection_AlreadySupported' }, + { type: 'error', inputs: [], name: 'Introspection_NotSupported' }, { type: 'error', - inputs: [{ name: 'spender', internalType: 'address', type: 'address' }], - name: 'ERC20InvalidSpender', + inputs: [ + { name: 'account', internalType: 'address', type: 'address' }, + { name: 'currentNonce', internalType: 'uint256', type: 'uint256' }, + ], + name: 'InvalidAccountNonce', }, { type: 'error', - inputs: [{ name: 'deadline', internalType: 'uint256', type: 'uint256' }], - name: 'ERC2612ExpiredSignature', + inputs: [{ name: 'claimer', internalType: 'address', type: 'address' }], + name: 'InvalidClaimer', }, { type: 'error', - inputs: [ - { name: 'signer', internalType: 'address', type: 'address' }, - { name: 'owner', internalType: 'address', type: 'address' }, - ], - name: 'ERC2612InvalidSigner', + inputs: [{ name: 'delegator', internalType: 'address', type: 'address' }], + name: 'InvalidDelegator', }, { type: 'error', - inputs: [ - { name: 'timepoint', internalType: 'uint256', type: 'uint256' }, - { name: 'clock', internalType: 'uint48', type: 'uint48' }, - ], - name: 'ERC5805FutureLookup', + inputs: [{ name: 'operator', internalType: 'address', type: 'address' }], + name: 'InvalidOperator', }, - { type: 'error', inputs: [], name: 'ERC6372InconsistentClock' }, - { type: 'error', inputs: [], name: 'Introspection_AlreadySupported' }, - { type: 'error', inputs: [], name: 'Introspection_NotSupported' }, { type: 'error', - inputs: [ - { name: 'account', internalType: 'address', type: 'address' }, - { name: 'currentNonce', internalType: 'uint256', type: 'uint256' }, - ], - name: 'InvalidAccountNonce', + inputs: [{ name: 'owner', internalType: 'address', type: 'address' }], + name: 'InvalidOwner', }, - { type: 'error', inputs: [], name: 'InvalidShortString' }, - { type: 'error', inputs: [], name: 'LockAlreadyDisabled' }, - { type: 'error', inputs: [], name: 'LockAlreadyEnabled' }, - { type: 'error', inputs: [], name: 'LockNotAuthorized' }, { type: 'error', - inputs: [{ name: 'owner', internalType: 'address', type: 'address' }], - name: 'OwnableInvalidOwner', + inputs: [{ name: 'quantity', internalType: 'uint256', type: 'uint256' }], + name: 'InvalidQuantity', }, + { type: 'error', inputs: [], name: 'NewImplementationHasNoCode' }, { type: 'error', inputs: [{ name: 'account', internalType: 'address', type: 'address' }], - name: 'OwnableUnauthorizedAccount', + name: 'Ownable__NotOwner', }, - { type: 'error', inputs: [], name: 'River__DelegateeSameAsCurrent' }, - { type: 'error', inputs: [], name: 'River__InvalidTokenAmount' }, - { type: 'error', inputs: [], name: 'River__TransferLockEnabled' }, + { type: 'error', inputs: [], name: 'Ownable__ZeroAddress' }, { type: 'error', - inputs: [ - { name: 'bits', internalType: 'uint8', type: 'uint8' }, - { name: 'value', internalType: 'uint256', type: 'uint256' }, - ], - name: 'SafeCastOverflowedUintDowncast', + inputs: [], + name: 'RewardsDistribution__CannotWithdrawFromSelf', }, + { type: 'error', inputs: [], name: 'RewardsDistribution__ExpiredDeadline' }, + { type: 'error', inputs: [], name: 'RewardsDistribution__InvalidSignature' }, { type: 'error', - inputs: [{ name: 'str', internalType: 'string', type: 'string' }], - name: 'StringTooLong', + inputs: [], + name: 'RewardsDistribution__NoPendingWithdrawal', }, + { type: 'error', inputs: [], name: 'RewardsDistribution__NotActiveOperator' }, + { type: 'error', inputs: [], name: 'RewardsDistribution__NotBeneficiary' }, + { type: 'error', inputs: [], name: 'RewardsDistribution__NotClaimer' }, + { type: 'error', inputs: [], name: 'RewardsDistribution__NotDepositOwner' }, { type: 'error', - inputs: [{ name: 'expiry', internalType: 'uint256', type: 'uint256' }], - name: 'VotesExpiredSignature', + inputs: [], + name: 'RewardsDistribution__NotOperatorOrSpace', }, + { type: 'error', inputs: [], name: 'RewardsDistribution__NotRewardNotifier' }, { type: 'event', anonymous: false, inputs: [ { - name: 'owner', - internalType: 'address', - type: 'address', + name: 'depositId', + internalType: 'uint256', + type: 'uint256', indexed: true, }, { - name: 'spender', + name: 'newBeneficiary', internalType: 'address', type: 'address', indexed: true, }, - { - name: 'value', - internalType: 'uint256', - type: 'uint256', - indexed: false, - }, ], - name: 'Approval', + name: 'ChangeBeneficiary', }, { type: 'event', anonymous: false, inputs: [ { - name: 'delegator', + name: 'beneficiary', internalType: 'address', type: 'address', indexed: true, }, { - name: 'fromDelegate', + name: 'recipient', internalType: 'address', type: 'address', indexed: true, }, { - name: 'toDelegate', - internalType: 'address', - type: 'address', - indexed: true, + name: 'reward', + internalType: 'uint256', + type: 'uint256', + indexed: false, }, ], - name: 'DelegateChanged', + name: 'ClaimReward', }, { type: 'event', anonymous: false, inputs: [ { - name: 'delegate', + name: 'delegator', internalType: 'address', type: 'address', indexed: true, }, { - name: 'previousVotes', - internalType: 'uint256', - type: 'uint256', - indexed: false, - }, - { - name: 'newVotes', - internalType: 'uint256', - type: 'uint256', - indexed: false, + name: 'claimer', + internalType: 'address', + type: 'address', + indexed: true, }, ], - name: 'DelegateVotesChanged', + name: 'ClaimerSet', }, - { type: 'event', anonymous: false, inputs: [], name: 'EIP712DomainChanged' }, { type: 'event', anonymous: false, inputs: [ { - name: 'interfaceId', - internalType: 'bytes4', - type: 'bytes4', + name: 'depositId', + internalType: 'uint256', + type: 'uint256', + indexed: true, + }, + { + name: 'delegatee', + internalType: 'address', + type: 'address', indexed: true, }, + { + name: 'proxy', + internalType: 'address', + type: 'address', + indexed: false, + }, ], - name: 'InterfaceAdded', + name: 'DelegationProxyDeployed', }, { type: 'event', anonymous: false, inputs: [ { - name: 'interfaceId', - internalType: 'bytes4', - type: 'bytes4', + name: 'delegator', + internalType: 'address', + type: 'address', indexed: true, }, ], - name: 'InterfaceRemoved', + name: 'DelegationRemoved', }, { type: 'event', anonymous: false, inputs: [ { - name: 'caller', + name: 'delegator', internalType: 'address', type: 'address', indexed: true, }, - { name: 'enabled', internalType: 'bool', type: 'bool', indexed: true }, { - name: 'cooldown', - internalType: 'uint256', - type: 'uint256', - indexed: false, + name: 'operator', + internalType: 'address', + type: 'address', + indexed: true, }, { - name: 'timestamp', + name: 'quantity', internalType: 'uint256', type: 'uint256', indexed: false, }, ], - name: 'LockUpdated', + name: 'DelegationSet', }, { type: 'event', anonymous: false, inputs: [ { - name: 'previousOwner', - internalType: 'address', - type: 'address', - indexed: true, - }, - { - name: 'newOwner', - internalType: 'address', - type: 'address', - indexed: true, - }, - ], - name: 'OwnershipTransferred', - }, - { - type: 'event', - anonymous: false, - inputs: [ - { - name: 'threshold', - internalType: 'uint256', - type: 'uint256', - indexed: false, - }, - ], - name: 'TokenThresholdSet', - }, - { - type: 'event', - anonymous: false, - inputs: [ - { name: 'from', internalType: 'address', type: 'address', indexed: true }, - { name: 'to', internalType: 'address', type: 'address', indexed: true }, - { - name: 'value', - internalType: 'uint256', - type: 'uint256', - indexed: false, - }, - ], - name: 'Transfer', - }, - { - type: 'function', - inputs: [], - name: 'CLOCK_MODE', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'pure', - }, - { - type: 'function', - inputs: [], - name: 'DOMAIN_SEPARATOR', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'MIN_TOKEN_THRESHOLD', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'REMOTE_TOKEN', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [ - { name: 'owner', internalType: 'address', type: 'address' }, - { name: 'spender', internalType: 'address', type: 'address' }, - ], - name: 'allowance', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [ - { name: 'spender', internalType: 'address', type: 'address' }, - { name: 'value', internalType: 'uint256', type: 'uint256' }, - ], - name: 'approve', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [{ name: 'account', internalType: 'address', type: 'address' }], - name: 'balanceOf', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'bridge', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [ - { name: 'from', internalType: 'address', type: 'address' }, - { name: 'amount', internalType: 'uint256', type: 'uint256' }, - ], - name: 'burn', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [ - { name: 'account', internalType: 'address', type: 'address' }, - { name: 'pos', internalType: 'uint32', type: 'uint32' }, - ], - name: 'checkpoints', - outputs: [ - { - name: '', - internalType: 'struct Checkpoints.Checkpoint208', - type: 'tuple', - components: [ - { name: '_key', internalType: 'uint48', type: 'uint48' }, - { name: '_value', internalType: 'uint208', type: 'uint208' }, - ], - }, - ], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'clock', - outputs: [{ name: '', internalType: 'uint48', type: 'uint48' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'decimals', - outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [{ name: 'delegatee', internalType: 'address', type: 'address' }], - name: 'delegate', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [ - { name: 'delegatee', internalType: 'address', type: 'address' }, - { name: 'nonce', internalType: 'uint256', type: 'uint256' }, - { name: 'expiry', internalType: 'uint256', type: 'uint256' }, - { name: 'v', internalType: 'uint8', type: 'uint8' }, - { name: 'r', internalType: 'bytes32', type: 'bytes32' }, - { name: 's', internalType: 'bytes32', type: 'bytes32' }, - ], - name: 'delegateBySig', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [{ name: 'account', internalType: 'address', type: 'address' }], - name: 'delegates', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [{ name: 'account', internalType: 'address', type: 'address' }], - name: 'disableLock', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [], - name: 'eip712Domain', - outputs: [ - { name: 'fields', internalType: 'bytes1', type: 'bytes1' }, - { name: 'name', internalType: 'string', type: 'string' }, - { name: 'version', internalType: 'string', type: 'string' }, - { name: 'chainId', internalType: 'uint256', type: 'uint256' }, - { name: 'verifyingContract', internalType: 'address', type: 'address' }, - { name: 'salt', internalType: 'bytes32', type: 'bytes32' }, - { name: 'extensions', internalType: 'uint256[]', type: 'uint256[]' }, - ], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [{ name: 'account', internalType: 'address', type: 'address' }], - name: 'enableLock', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [{ name: 'account', internalType: 'address', type: 'address' }], - name: 'getDelegationTimeForDelegator', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'getDelegators', - outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [{ name: 'account', internalType: 'address', type: 'address' }], - name: 'getDelegatorsByDelegatee', - outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [{ name: 'timepoint', internalType: 'uint256', type: 'uint256' }], - name: 'getPastTotalSupply', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [ - { name: 'account', internalType: 'address', type: 'address' }, - { name: 'timepoint', internalType: 'uint256', type: 'uint256' }, - ], - name: 'getPastVotes', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [{ name: 'account', internalType: 'address', type: 'address' }], - name: 'getVotes', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [{ name: 'account', internalType: 'address', type: 'address' }], - name: 'isLockEnabled', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'l1Token', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'l2Bridge', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [{ name: 'account', internalType: 'address', type: 'address' }], - name: 'lockCooldown', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [ - { name: 'from', internalType: 'address', type: 'address' }, - { name: 'amount', internalType: 'uint256', type: 'uint256' }, - ], - name: 'mint', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [], - name: 'name', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [{ name: 'owner', internalType: 'address', type: 'address' }], - name: 'nonces', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [{ name: 'account', internalType: 'address', type: 'address' }], - name: 'numCheckpoints', - outputs: [{ name: '', internalType: 'uint32', type: 'uint32' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'owner', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [ - { name: 'owner', internalType: 'address', type: 'address' }, - { name: 'spender', internalType: 'address', type: 'address' }, - { name: 'value', internalType: 'uint256', type: 'uint256' }, - { name: 'deadline', internalType: 'uint256', type: 'uint256' }, - { name: 'v', internalType: 'uint8', type: 'uint8' }, - { name: 'r', internalType: 'bytes32', type: 'bytes32' }, - { name: 's', internalType: 'bytes32', type: 'bytes32' }, - ], - name: 'permit', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [], - name: 'renounceOwnership', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [{ name: 'cooldown', internalType: 'uint256', type: 'uint256' }], - name: 'setLockCooldown', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [{ name: 'threshold', internalType: 'uint256', type: 'uint256' }], - name: 'setTokenThreshold', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }], - name: 'supportsInterface', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'symbol', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'totalSupply', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [ - { name: 'to', internalType: 'address', type: 'address' }, - { name: 'value', internalType: 'uint256', type: 'uint256' }, + name: 'depositId', + internalType: 'uint256', + type: 'uint256', + indexed: true, + }, + { + name: 'amount', + internalType: 'uint96', + type: 'uint96', + indexed: false, + }, ], - name: 'transfer', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'nonpayable', + name: 'IncreaseStake', }, { - type: 'function', + type: 'event', + anonymous: false, inputs: [ - { name: 'from', internalType: 'address', type: 'address' }, - { name: 'to', internalType: 'address', type: 'address' }, - { name: 'value', internalType: 'uint256', type: 'uint256' }, + { + name: 'version', + internalType: 'uint32', + type: 'uint32', + indexed: false, + }, ], - name: 'transferFrom', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }], - name: 'transferOwnership', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [], - name: 'version', - outputs: [{ name: '', internalType: 'string', type: 'string' }], - stateMutability: 'view', - }, -] as const - -/** - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const baseRiverTokenAddress = { - 8453: '0x9172852305F32819469bf38A3772f29361d7b768', - 84532: '0x49442708a16Bf7917764F14A2D103f40Eb27BdD8', -} as const - -/** - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const baseRiverTokenConfig = { - address: baseRiverTokenAddress, - abi: baseRiverTokenAbi, -} as const - -////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// RiverAuthorizer -////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/** - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B) - */ -export const riverAuthorizerAbi = [ - { - type: 'error', - inputs: [], - name: 'AuthorizedClaimers_ClaimerAlreadyAuthorized', + name: 'Initialized', }, { type: 'event', anonymous: false, inputs: [ { - name: 'authorizer', + name: 'owner', internalType: 'address', type: 'address', indexed: true, }, { - name: 'claimer', - internalType: 'address', - type: 'address', + name: 'depositId', + internalType: 'uint256', + type: 'uint256', indexed: true, }, + { + name: 'amount', + internalType: 'uint96', + type: 'uint96', + indexed: false, + }, ], - name: 'AuthorizedClaimerChanged', + name: 'InitiateWithdraw', }, { type: 'event', anonymous: false, inputs: [ { - name: 'authorizer', - internalType: 'address', - type: 'address', + name: 'interfaceId', + internalType: 'bytes4', + type: 'bytes4', indexed: true, }, ], - name: 'AuthorizedClaimerRemoved', - }, - { - type: 'function', - inputs: [{ name: 'claimer', internalType: 'address', type: 'address' }], - name: 'authorizeClaimer', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [{ name: 'authorizer', internalType: 'address', type: 'address' }], - name: 'getAuthorizedClaimer', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'removeAuthorizedClaimer', - outputs: [], - stateMutability: 'nonpayable', - }, -] as const - -/** - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B) - */ -export const riverAuthorizerAddress = { - 1: '0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05', - 11155111: '0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B', -} as const - -/** - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B) - */ -export const riverAuthorizerConfig = { - address: riverAuthorizerAddress, - abi: riverAuthorizerAbi, -} as const - -////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// RiverClaimer -////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/** - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) - */ -export const riverClaimerAbi = [ - { - type: 'error', - inputs: [{ name: 'target', internalType: 'address', type: 'address' }], - name: 'AddressEmptyCode', - }, - { - type: 'error', - inputs: [{ name: 'account', internalType: 'address', type: 'address' }], - name: 'AddressInsufficientBalance', + name: 'InterfaceAdded', }, - { type: 'error', inputs: [], name: 'ApprovalCallerNotOwnerNorApproved' }, - { type: 'error', inputs: [], name: 'ApprovalQueryForNonexistentToken' }, - { type: 'error', inputs: [], name: 'BalanceQueryForZeroAddress' }, { - type: 'error', + type: 'event', + anonymous: false, inputs: [ - { name: 'delegator', internalType: 'address', type: 'address' }, - { name: 'operator', internalType: 'address', type: 'address' }, + { + name: 'interfaceId', + internalType: 'bytes4', + type: 'bytes4', + indexed: true, + }, ], - name: 'DelegationAlreadySet', - }, - { type: 'error', inputs: [], name: 'DelegationNotSet' }, - { type: 'error', inputs: [], name: 'FailedInnerCall' }, - { type: 'error', inputs: [], name: 'Initializable_InInitializingState' }, - { type: 'error', inputs: [], name: 'Initializable_NotInInitializingState' }, - { type: 'error', inputs: [], name: 'Introspection_AlreadySupported' }, - { type: 'error', inputs: [], name: 'Introspection_NotSupported' }, - { - type: 'error', - inputs: [{ name: 'claimer', internalType: 'address', type: 'address' }], - name: 'InvalidClaimer', - }, - { - type: 'error', - inputs: [{ name: 'delegator', internalType: 'address', type: 'address' }], - name: 'InvalidDelegator', - }, - { - type: 'error', - inputs: [{ name: 'operator', internalType: 'address', type: 'address' }], - name: 'InvalidOperator', - }, - { - type: 'error', - inputs: [{ name: 'owner', internalType: 'address', type: 'address' }], - name: 'InvalidOwner', - }, - { - type: 'error', - inputs: [{ name: 'quantity', internalType: 'uint256', type: 'uint256' }], - name: 'InvalidQuantity', - }, - { type: 'error', inputs: [], name: 'MintERC2309QuantityExceedsLimit' }, - { type: 'error', inputs: [], name: 'MintToZeroAddress' }, - { type: 'error', inputs: [], name: 'MintZeroQuantity' }, - { - type: 'error', - inputs: [{ name: 'account', internalType: 'address', type: 'address' }], - name: 'Ownable__NotOwner', - }, - { type: 'error', inputs: [], name: 'Ownable__ZeroAddress' }, - { type: 'error', inputs: [], name: 'OwnerQueryForNonexistentToken' }, - { type: 'error', inputs: [], name: 'OwnershipNotInitializedForExtraData' }, - { - type: 'error', - inputs: [], - name: 'RewardsDistribution_InsufficientRewardBalance', - }, - { type: 'error', inputs: [], name: 'RewardsDistribution_InvalidOperator' }, - { type: 'error', inputs: [], name: 'RewardsDistribution_NoActiveOperators' }, - { type: 'error', inputs: [], name: 'RewardsDistribution_NoRewardsToClaim' }, - { - type: 'error', - inputs: [{ name: 'token', internalType: 'address', type: 'address' }], - name: 'SafeERC20FailedOperation', + name: 'InterfaceRemoved', }, - { type: 'error', inputs: [], name: 'TransferCallerNotOwnerNorApproved' }, - { type: 'error', inputs: [], name: 'TransferFromIncorrectOwner' }, - { type: 'error', inputs: [], name: 'TransferToNonERC721ReceiverImplementer' }, - { type: 'error', inputs: [], name: 'TransferToZeroAddress' }, - { type: 'error', inputs: [], name: 'URIQueryForNonexistentToken' }, { type: 'event', anonymous: false, inputs: [ { - name: 'owner', - internalType: 'address', - type: 'address', - indexed: true, - }, - { - name: 'approved', + name: 'notifier', internalType: 'address', type: 'address', indexed: true, }, { - name: 'tokenId', + name: 'reward', internalType: 'uint256', type: 'uint256', - indexed: true, + indexed: false, }, ], - name: 'Approval', + name: 'NotifyRewardAmount', }, { type: 'event', anonymous: false, inputs: [ { - name: 'owner', + name: 'previousOwner', internalType: 'address', type: 'address', indexed: true, }, { - name: 'operator', + name: 'newOwner', internalType: 'address', type: 'address', indexed: true, }, - { name: 'approved', internalType: 'bool', type: 'bool', indexed: false }, ], - name: 'ApprovalForAll', + name: 'OwnershipTransferred', }, { type: 'event', anonymous: false, inputs: [ { - name: 'fromTokenId', + name: 'depositId', internalType: 'uint256', type: 'uint256', indexed: true, }, { - name: 'toTokenId', - internalType: 'uint256', - type: 'uint256', - indexed: false, + name: 'delegatee', + internalType: 'address', + type: 'address', + indexed: true, }, - { name: 'from', internalType: 'address', type: 'address', indexed: true }, - { name: 'to', internalType: 'address', type: 'address', indexed: true }, ], - name: 'ConsecutiveTransfer', + name: 'Redelegate', }, { type: 'event', anonymous: false, inputs: [ { - name: 'delegator', + name: 'notifier', internalType: 'address', type: 'address', indexed: true, }, + { name: 'enabled', internalType: 'bool', type: 'bool', indexed: false }, ], - name: 'DelegationRemoved', + name: 'RewardNotifierSet', }, { type: 'event', anonymous: false, inputs: [ { - name: 'delegator', + name: 'stakeToken', internalType: 'address', type: 'address', - indexed: true, + indexed: false, }, { - name: 'operator', + name: 'rewardToken', internalType: 'address', type: 'address', - indexed: true, + indexed: false, }, { - name: 'quantity', + name: 'rewardDuration', internalType: 'uint256', type: 'uint256', indexed: false, }, ], - name: 'DelegationSet', + name: 'RewardsDistributionInitialized', }, { type: 'event', anonymous: false, inputs: [ { - name: 'version', - internalType: 'uint32', - type: 'uint32', - indexed: false, + name: 'space', + internalType: 'address', + type: 'address', + indexed: true, }, - ], - name: 'Initialized', - }, - { - type: 'event', - anonymous: false, - inputs: [ { - name: 'interfaceId', - internalType: 'bytes4', - type: 'bytes4', + name: 'operator', + internalType: 'address', + type: 'address', indexed: true, }, - ], - name: 'InterfaceAdded', - }, - { - type: 'event', - anonymous: false, - inputs: [ { - name: 'interfaceId', - internalType: 'bytes4', - type: 'bytes4', - indexed: true, + name: 'scaledReward', + internalType: 'uint256', + type: 'uint256', + indexed: false, }, ], - name: 'InterfaceRemoved', + name: 'SpaceRewardsSwept', }, { type: 'event', anonymous: false, inputs: [ { - name: 'previousOwner', + name: 'owner', internalType: 'address', type: 'address', indexed: true, }, { - name: 'newOwner', + name: 'delegatee', + internalType: 'address', + type: 'address', + indexed: true, + }, + { + name: 'beneficiary', internalType: 'address', type: 'address', indexed: true, }, + { + name: 'depositId', + internalType: 'uint256', + type: 'uint256', + indexed: false, + }, + { + name: 'amount', + internalType: 'uint96', + type: 'uint96', + indexed: false, + }, ], - name: 'OwnershipTransferred', + name: 'Stake', }, { type: 'event', anonymous: false, inputs: [ { - name: 'operator', + name: 'implementation', internalType: 'address', type: 'address', - indexed: false, - }, - { - name: 'amount', - internalType: 'uint256', - type: 'uint256', - indexed: false, + indexed: true, }, ], - name: 'RewardsDistributed', + name: 'Upgraded', }, { type: 'event', anonymous: false, inputs: [ - { name: 'from', internalType: 'address', type: 'address', indexed: true }, - { name: 'to', internalType: 'address', type: 'address', indexed: true }, { - name: 'tokenId', + name: 'depositId', internalType: 'uint256', type: 'uint256', indexed: true, }, + { + name: 'amount', + internalType: 'uint96', + type: 'uint96', + indexed: false, + }, ], - name: 'Transfer', + name: 'Withdraw', }, { type: 'function', - inputs: [], + inputs: [ + { name: 'stakeToken', internalType: 'address', type: 'address' }, + { name: 'rewardToken', internalType: 'address', type: 'address' }, + { name: 'rewardDuration', internalType: 'uint256', type: 'uint256' }, + ], name: '__RewardsDistribution_init', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', - inputs: [], - name: 'delegatorClaim', + inputs: [ + { name: 'depositId', internalType: 'uint256', type: 'uint256' }, + { name: 'newBeneficiary', internalType: 'address', type: 'address' }, + ], + name: 'changeBeneficiary', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', - inputs: [{ name: 'operator', internalType: 'address', type: 'address' }], - name: 'distributeRewards', - outputs: [], + inputs: [ + { name: 'beneficiary', internalType: 'address', type: 'address' }, + { name: 'recipient', internalType: 'address', type: 'address' }, + ], + name: 'claimReward', + outputs: [{ name: 'reward', internalType: 'uint256', type: 'uint256' }], stateMutability: 'nonpayable', }, { type: 'function', - inputs: [], - name: 'getActiveOperators', - outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }], + inputs: [{ name: 'beneficiary', internalType: 'address', type: 'address' }], + name: 'currentReward', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', inputs: [], - name: 'getActivePeriodLength', + name: 'currentRewardPerTokenAccumulated', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', - inputs: [{ name: 'claimer', internalType: 'address', type: 'address' }], - name: 'getClaimableAmountForAuthorizedClaimer', + inputs: [{ name: 'operator', internalType: 'address', type: 'address' }], + name: 'currentSpaceDelegationReward', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', - inputs: [{ name: 'delegator', internalType: 'address', type: 'address' }], - name: 'getClaimableAmountForDelegator', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + inputs: [{ name: 'depositId', internalType: 'uint256', type: 'uint256' }], + name: 'delegationProxyById', + outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', - inputs: [{ name: 'operator', internalType: 'address', type: 'address' }], - name: 'getClaimableAmountForOperator', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + inputs: [{ name: 'depositId', internalType: 'uint256', type: 'uint256' }], + name: 'depositById', + outputs: [ + { + name: 'deposit', + internalType: 'struct StakingRewards.Deposit', + type: 'tuple', + components: [ + { name: 'amount', internalType: 'uint96', type: 'uint96' }, + { name: 'owner', internalType: 'address', type: 'address' }, + { + name: 'commissionEarningPower', + internalType: 'uint96', + type: 'uint96', + }, + { name: 'delegatee', internalType: 'address', type: 'address' }, + { name: 'pendingWithdrawal', internalType: 'uint96', type: 'uint96' }, + { name: 'beneficiary', internalType: 'address', type: 'address' }, + ], + }, + ], stateMutability: 'view', }, { type: 'function', - inputs: [], - name: 'getPeriodDistributionAmount', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + inputs: [{ name: 'depositor', internalType: 'address', type: 'address' }], + name: 'getDepositsByDepositor', + outputs: [{ name: '', internalType: 'uint256[]', type: 'uint256[]' }], stateMutability: 'view', }, { type: 'function', inputs: [], - name: 'mainnetClaim', + name: 'implementation', + outputs: [{ name: 'result', internalType: 'address', type: 'address' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [ + { name: 'depositId', internalType: 'uint256', type: 'uint256' }, + { name: 'amount', internalType: 'uint96', type: 'uint96' }, + ], + name: 'increaseStake', outputs: [], stateMutability: 'nonpayable', }, + { + type: 'function', + inputs: [{ name: 'depositId', internalType: 'uint256', type: 'uint256' }], + name: 'initiateWithdraw', + outputs: [{ name: 'amount', internalType: 'uint96', type: 'uint96' }], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [{ name: 'notifier', internalType: 'address', type: 'address' }], + name: 'isRewardNotifier', + outputs: [{ name: '', internalType: 'bool', type: 'bool' }], + stateMutability: 'view', + }, { type: 'function', inputs: [], - name: 'operatorClaim', + name: 'lastTimeRewardDistributed', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [{ name: 'reward', internalType: 'uint256', type: 'uint256' }], + name: 'notifyRewardAmount', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', - inputs: [{ name: 'length', internalType: 'uint256', type: 'uint256' }], - name: 'setActivePeriodLength', + inputs: [ + { name: 'amount', internalType: 'uint96', type: 'uint96' }, + { name: 'delegatee', internalType: 'address', type: 'address' }, + { name: 'beneficiary', internalType: 'address', type: 'address' }, + { name: 'deadline', internalType: 'uint256', type: 'uint256' }, + { name: 'v', internalType: 'uint8', type: 'uint8' }, + { name: 'r', internalType: 'bytes32', type: 'bytes32' }, + { name: 's', internalType: 'bytes32', type: 'bytes32' }, + ], + name: 'permitAndStake', + outputs: [{ name: 'depositId', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [ + { name: 'depositId', internalType: 'uint256', type: 'uint256' }, + { name: 'delegatee', internalType: 'address', type: 'address' }, + ], + name: 'redelegate', + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [ + { name: 'notifier', internalType: 'address', type: 'address' }, + { name: 'enabled', internalType: 'bool', type: 'bool' }, + ], + name: 'setRewardNotifier', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', - inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }], - name: 'setPeriodDistributionAmount', + inputs: [ + { name: 'amount', internalType: 'uint96', type: 'uint96' }, + { name: 'delegatee', internalType: 'address', type: 'address' }, + { name: 'beneficiary', internalType: 'address', type: 'address' }, + ], + name: 'stake', + outputs: [{ name: 'depositId', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [ + { name: 'amount', internalType: 'uint96', type: 'uint96' }, + { name: 'delegatee', internalType: 'address', type: 'address' }, + { name: 'beneficiary', internalType: 'address', type: 'address' }, + { name: 'owner', internalType: 'address', type: 'address' }, + { name: 'deadline', internalType: 'uint256', type: 'uint256' }, + { name: 'signature', internalType: 'bytes', type: 'bytes' }, + ], + name: 'stakeOnBehalf', + outputs: [{ name: 'depositId', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [{ name: 'depositor', internalType: 'address', type: 'address' }], + name: 'stakedByDepositor', + outputs: [{ name: 'amount', internalType: 'uint96', type: 'uint96' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'stakingState', + outputs: [ + { + name: 'state', + internalType: 'struct IRewardsDistributionBase.StakingState', + type: 'tuple', + components: [ + { name: 'riverToken', internalType: 'address', type: 'address' }, + { name: 'totalStaked', internalType: 'uint96', type: 'uint96' }, + { name: 'rewardDuration', internalType: 'uint256', type: 'uint256' }, + { name: 'rewardEndTime', internalType: 'uint256', type: 'uint256' }, + { name: 'lastUpdateTime', internalType: 'uint256', type: 'uint256' }, + { name: 'rewardRate', internalType: 'uint256', type: 'uint256' }, + { + name: 'rewardPerTokenAccumulated', + internalType: 'uint256', + type: 'uint256', + }, + { name: 'nextDepositId', internalType: 'uint256', type: 'uint256' }, + ], + }, + ], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [{ name: 'beneficiary', internalType: 'address', type: 'address' }], + name: 'treasureByBeneficiary', + outputs: [ + { + name: 'treasure', + internalType: 'struct StakingRewards.Treasure', + type: 'tuple', + components: [ + { name: 'earningPower', internalType: 'uint96', type: 'uint96' }, + { + name: 'rewardPerTokenAccumulated', + internalType: 'uint256', + type: 'uint256', + }, + { + name: 'unclaimedRewardSnapshot', + internalType: 'uint256', + type: 'uint256', + }, + ], + }, + ], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [ + { name: 'newImplementation', internalType: 'address', type: 'address' }, + ], + name: 'upgradeDelegationProxy', outputs: [], stateMutability: 'nonpayable', }, + { + type: 'function', + inputs: [{ name: 'depositId', internalType: 'uint256', type: 'uint256' }], + name: 'withdraw', + outputs: [{ name: 'amount', internalType: 'uint96', type: 'uint96' }], + stateMutability: 'nonpayable', + }, ] as const /** * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const riverClaimerAddress = { +export const rewardsDistributionAddress = { 8453: '0x7c0422b31401C936172C897802CF0373B35B7698', 84532: '0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F', } as const @@ -1187,9 +862,9 @@ export const riverClaimerAddress = { * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const riverClaimerConfig = { - address: riverClaimerAddress, - abi: riverClaimerAbi, +export const rewardsDistributionConfig = { + address: rewardsDistributionAddress, + abi: rewardsDistributionAbi, } as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// @@ -1197,49 +872,16 @@ export const riverClaimerConfig = { ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /** - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const riverTokenAbi = [ { type: 'constructor', inputs: [ - { - name: 'config', - internalType: 'struct IRiverBase.RiverConfig', - type: 'tuple', - components: [ - { name: 'vault', internalType: 'address', type: 'address' }, - { name: 'owner', internalType: 'address', type: 'address' }, - { - name: 'inflationConfig', - internalType: 'struct IRiverBase.InflationConfig', - type: 'tuple', - components: [ - { - name: 'initialInflationRate', - internalType: 'uint256', - type: 'uint256', - }, - { - name: 'finalInflationRate', - internalType: 'uint256', - type: 'uint256', - }, - { - name: 'inflationDecreaseRate', - internalType: 'uint256', - type: 'uint256', - }, - { - name: 'inflationDecreaseInterval', - internalType: 'uint256', - type: 'uint256', - }, - ], - }, - ], - }, + { name: '_bridge', internalType: 'address', type: 'address' }, + { name: '_remoteToken', internalType: 'address', type: 'address' }, ], stateMutability: 'nonpayable', }, @@ -1336,8 +978,6 @@ export const riverTokenAbi = [ name: 'InvalidAccountNonce', }, { type: 'error', inputs: [], name: 'InvalidShortString' }, - { type: 'error', inputs: [], name: 'LockAlreadyDisabled' }, - { type: 'error', inputs: [], name: 'LockAlreadyEnabled' }, { type: 'error', inputs: [], name: 'LockNotAuthorized' }, { type: 'error', @@ -1349,13 +989,7 @@ export const riverTokenAbi = [ inputs: [{ name: 'account', internalType: 'address', type: 'address' }], name: 'OwnableUnauthorizedAccount', }, - { type: 'error', inputs: [], name: 'River__CannotMint' }, - { type: 'error', inputs: [], name: 'River__CannotMintZero' }, { type: 'error', inputs: [], name: 'River__DelegateeSameAsCurrent' }, - { type: 'error', inputs: [], name: 'River__InvalidAddress' }, - { type: 'error', inputs: [], name: 'River__InvalidDelegatee' }, - { type: 'error', inputs: [], name: 'River__InvalidInflationRate' }, - { type: 'error', inputs: [], name: 'River__MintingTooSoon' }, { type: 'error', inputs: [], name: 'River__TransferLockEnabled' }, { type: 'error', @@ -1507,12 +1141,6 @@ export const riverTokenAbi = [ type: 'uint256', indexed: false, }, - { - name: 'timestamp', - internalType: 'uint256', - type: 'uint256', - indexed: false, - }, ], name: 'LockUpdated', }, @@ -1535,6 +1163,19 @@ export const riverTokenAbi = [ ], name: 'OwnershipTransferred', }, + { + type: 'event', + anonymous: false, + inputs: [ + { + name: 'threshold', + internalType: 'uint256', + type: 'uint256', + indexed: false, + }, + ], + name: 'TokenThresholdSet', + }, { type: 'event', anonymous: false, @@ -1605,6 +1246,23 @@ export const riverTokenAbi = [ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, + { + type: 'function', + inputs: [], + name: 'bridge', + outputs: [{ name: '', internalType: 'address', type: 'address' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [ + { name: 'from', internalType: 'address', type: 'address' }, + { name: 'amount', internalType: 'uint256', type: 'uint256' }, + ], + name: 'burn', + outputs: [], + stateMutability: 'nonpayable', + }, { type: 'function', inputs: [ @@ -1632,13 +1290,6 @@ export const riverTokenAbi = [ outputs: [{ name: '', internalType: 'uint48', type: 'uint48' }], stateMutability: 'view', }, - { - type: 'function', - inputs: [{ name: 'to', internalType: 'address', type: 'address' }], - name: 'createInflation', - outputs: [], - stateMutability: 'nonpayable', - }, { type: 'function', inputs: [], @@ -1674,13 +1325,6 @@ export const riverTokenAbi = [ outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, - { - type: 'function', - inputs: [], - name: 'deployedAt', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', - }, { type: 'function', inputs: [{ name: 'account', internalType: 'address', type: 'address' }], @@ -1712,8 +1356,8 @@ export const riverTokenAbi = [ }, { type: 'function', - inputs: [], - name: 'finalInflationRate', + inputs: [{ name: 'account', internalType: 'address', type: 'address' }], + name: 'getDelegationTimeForDelegator', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, @@ -1724,6 +1368,13 @@ export const riverTokenAbi = [ outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }], stateMutability: 'view', }, + { + type: 'function', + inputs: [{ name: 'account', internalType: 'address', type: 'address' }], + name: 'getDelegatorsByDelegatee', + outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }], + stateMutability: 'view', + }, { type: 'function', inputs: [{ name: 'timepoint', internalType: 'uint256', type: 'uint256' }], @@ -1750,37 +1401,23 @@ export const riverTokenAbi = [ }, { type: 'function', - inputs: [], - name: 'inflationDecreaseInterval', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'inflationDecreaseRate', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + inputs: [{ name: 'account', internalType: 'address', type: 'address' }], + name: 'isLockEnabled', + outputs: [{ name: '', internalType: 'bool', type: 'bool' }], stateMutability: 'view', }, { type: 'function', inputs: [], - name: 'initialInflationRate', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [{ name: 'account', internalType: 'address', type: 'address' }], - name: 'isLockEnabled', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], + name: 'l1Token', + outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [], - name: 'lastMintTime', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + name: 'l2Bridge', + outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { @@ -1790,6 +1427,16 @@ export const riverTokenAbi = [ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, + { + type: 'function', + inputs: [ + { name: 'from', internalType: 'address', type: 'address' }, + { name: 'amount', internalType: 'uint256', type: 'uint256' }, + ], + name: 'mint', + outputs: [], + stateMutability: 'nonpayable', + }, { type: 'function', inputs: [], @@ -1811,20 +1458,6 @@ export const riverTokenAbi = [ outputs: [{ name: '', internalType: 'uint32', type: 'uint32' }], stateMutability: 'view', }, - { - type: 'function', - inputs: [], - name: 'overrideInflation', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'overrideInflationRate', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', - }, { type: 'function', inputs: [], @@ -1850,28 +1483,21 @@ export const riverTokenAbi = [ { type: 'function', inputs: [], - name: 'renounceOwnership', - outputs: [], - stateMutability: 'nonpayable', + name: 'remoteToken', + outputs: [{ name: '', internalType: 'address', type: 'address' }], + stateMutability: 'view', }, { type: 'function', - inputs: [{ name: 'cooldown', internalType: 'uint256', type: 'uint256' }], - name: 'setLockCooldown', + inputs: [], + name: 'renounceOwnership', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', - inputs: [ - { name: '_overrideInflation', internalType: 'bool', type: 'bool' }, - { - name: '_overrideInflationRate', - internalType: 'uint256', - type: 'uint256', - }, - ], - name: 'setOverrideInflation', + inputs: [{ name: 'cooldown', internalType: 'uint256', type: 'uint256' }], + name: 'setLockCooldown', outputs: [], stateMutability: 'nonpayable', }, @@ -1924,1544 +1550,981 @@ export const riverTokenAbi = [ outputs: [], stateMutability: 'nonpayable', }, -] as const - -/** - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) - */ -export const riverTokenAddress = { - 1: '0x53319181e003E7f86fB79f794649a2aB680Db244', - 11155111: '0x40eF1bb984503bb5Adef041A88a4F9180e8586f9', -} as const - -/** - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) - */ -export const riverTokenConfig = { - address: riverTokenAddress, - abi: riverTokenAbi, -} as const - -////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// React -////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverToken = /*#__PURE__*/ createUseReadContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, -}) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"CLOCK_MODE"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverTokenClockMode = - /*#__PURE__*/ createUseReadContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'CLOCK_MODE', - }) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"DOMAIN_SEPARATOR"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverTokenDomainSeparator = - /*#__PURE__*/ createUseReadContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'DOMAIN_SEPARATOR', - }) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"MIN_TOKEN_THRESHOLD"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverTokenMinTokenThreshold = - /*#__PURE__*/ createUseReadContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'MIN_TOKEN_THRESHOLD', - }) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"REMOTE_TOKEN"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverTokenRemoteToken = - /*#__PURE__*/ createUseReadContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'REMOTE_TOKEN', - }) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"allowance"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverTokenAllowance = - /*#__PURE__*/ createUseReadContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'allowance', - }) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"balanceOf"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverTokenBalanceOf = - /*#__PURE__*/ createUseReadContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'balanceOf', - }) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"bridge"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverTokenBridge = /*#__PURE__*/ createUseReadContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'bridge', -}) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"checkpoints"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverTokenCheckpoints = - /*#__PURE__*/ createUseReadContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'checkpoints', - }) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"clock"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverTokenClock = /*#__PURE__*/ createUseReadContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'clock', -}) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"decimals"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverTokenDecimals = - /*#__PURE__*/ createUseReadContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'decimals', - }) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"delegates"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverTokenDelegates = - /*#__PURE__*/ createUseReadContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'delegates', - }) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"eip712Domain"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverTokenEip712Domain = - /*#__PURE__*/ createUseReadContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'eip712Domain', - }) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"getDelegationTimeForDelegator"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverTokenGetDelegationTimeForDelegator = - /*#__PURE__*/ createUseReadContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'getDelegationTimeForDelegator', - }) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"getDelegators"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverTokenGetDelegators = - /*#__PURE__*/ createUseReadContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'getDelegators', - }) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"getDelegatorsByDelegatee"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverTokenGetDelegatorsByDelegatee = - /*#__PURE__*/ createUseReadContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'getDelegatorsByDelegatee', - }) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"getPastTotalSupply"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverTokenGetPastTotalSupply = - /*#__PURE__*/ createUseReadContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'getPastTotalSupply', - }) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"getPastVotes"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverTokenGetPastVotes = - /*#__PURE__*/ createUseReadContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'getPastVotes', - }) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"getVotes"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverTokenGetVotes = - /*#__PURE__*/ createUseReadContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'getVotes', - }) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"isLockEnabled"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverTokenIsLockEnabled = - /*#__PURE__*/ createUseReadContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'isLockEnabled', - }) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"l1Token"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverTokenL1Token = /*#__PURE__*/ createUseReadContract( - { - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'l1Token', - }, -) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"l2Bridge"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverTokenL2Bridge = - /*#__PURE__*/ createUseReadContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'l2Bridge', - }) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"lockCooldown"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverTokenLockCooldown = - /*#__PURE__*/ createUseReadContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'lockCooldown', - }) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"name"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverTokenName = /*#__PURE__*/ createUseReadContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'name', -}) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"nonces"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverTokenNonces = /*#__PURE__*/ createUseReadContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'nonces', -}) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"numCheckpoints"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverTokenNumCheckpoints = - /*#__PURE__*/ createUseReadContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'numCheckpoints', - }) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"owner"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverTokenOwner = /*#__PURE__*/ createUseReadContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'owner', -}) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"supportsInterface"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverTokenSupportsInterface = - /*#__PURE__*/ createUseReadContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'supportsInterface', - }) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"symbol"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverTokenSymbol = /*#__PURE__*/ createUseReadContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'symbol', -}) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"totalSupply"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverTokenTotalSupply = - /*#__PURE__*/ createUseReadContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'totalSupply', - }) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"version"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useReadBaseRiverTokenVersion = /*#__PURE__*/ createUseReadContract( { - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'version', + type: 'function', + inputs: [], + name: 'version', + outputs: [{ name: '', internalType: 'string', type: 'string' }], + stateMutability: 'view', }, -) - -/** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useWriteBaseRiverToken = /*#__PURE__*/ createUseWriteContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, -}) - -/** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"approve"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useWriteBaseRiverTokenApprove = - /*#__PURE__*/ createUseWriteContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'approve', - }) - -/** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"burn"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useWriteBaseRiverTokenBurn = /*#__PURE__*/ createUseWriteContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'burn', -}) - -/** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"delegate"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useWriteBaseRiverTokenDelegate = - /*#__PURE__*/ createUseWriteContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'delegate', - }) +] as const /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"delegateBySig"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ -export const useWriteBaseRiverTokenDelegateBySig = - /*#__PURE__*/ createUseWriteContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'delegateBySig', - }) +export const riverTokenAddress = { + 1: '0x53319181e003E7f86fB79f794649a2aB680Db244', + 8453: '0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920', + 84532: '0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0', +} as const /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"disableLock"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ -export const useWriteBaseRiverTokenDisableLock = - /*#__PURE__*/ createUseWriteContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'disableLock', - }) +export const riverTokenConfig = { + address: riverTokenAddress, + abi: riverTokenAbi, +} as const -/** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"enableLock"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useWriteBaseRiverTokenEnableLock = - /*#__PURE__*/ createUseWriteContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'enableLock', - }) +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// React +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"mint"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link authorizerAbi}__ * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05) + * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B) */ -export const useWriteBaseRiverTokenMint = /*#__PURE__*/ createUseWriteContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'mint', +export const useReadAuthorizer = /*#__PURE__*/ createUseReadContract({ + abi: authorizerAbi, + address: authorizerAddress, }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"permit"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useWriteBaseRiverTokenPermit = - /*#__PURE__*/ createUseWriteContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'permit', - }) - -/** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"renounceOwnership"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useWriteBaseRiverTokenRenounceOwnership = - /*#__PURE__*/ createUseWriteContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'renounceOwnership', - }) - -/** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"setLockCooldown"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useWriteBaseRiverTokenSetLockCooldown = - /*#__PURE__*/ createUseWriteContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'setLockCooldown', - }) - -/** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"setTokenThreshold"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link authorizerAbi}__ and `functionName` set to `"getAuthorizedClaimer"` * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05) + * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B) */ -export const useWriteBaseRiverTokenSetTokenThreshold = - /*#__PURE__*/ createUseWriteContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'setTokenThreshold', +export const useReadAuthorizerGetAuthorizedClaimer = + /*#__PURE__*/ createUseReadContract({ + abi: authorizerAbi, + address: authorizerAddress, + functionName: 'getAuthorizedClaimer', }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"transfer"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link authorizerAbi}__ * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05) + * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B) */ -export const useWriteBaseRiverTokenTransfer = - /*#__PURE__*/ createUseWriteContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'transfer', - }) +export const useWriteAuthorizer = /*#__PURE__*/ createUseWriteContract({ + abi: authorizerAbi, + address: authorizerAddress, +}) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"transferFrom"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link authorizerAbi}__ and `functionName` set to `"authorizeClaimer"` * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05) + * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B) */ -export const useWriteBaseRiverTokenTransferFrom = +export const useWriteAuthorizerAuthorizeClaimer = /*#__PURE__*/ createUseWriteContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'transferFrom', + abi: authorizerAbi, + address: authorizerAddress, + functionName: 'authorizeClaimer', }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"transferOwnership"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link authorizerAbi}__ and `functionName` set to `"removeAuthorizedClaimer"` * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05) + * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B) */ -export const useWriteBaseRiverTokenTransferOwnership = +export const useWriteAuthorizerRemoveAuthorizedClaimer = /*#__PURE__*/ createUseWriteContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'transferOwnership', - }) - -/** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useSimulateBaseRiverToken = - /*#__PURE__*/ createUseSimulateContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - }) - -/** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"approve"` - * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) - */ -export const useSimulateBaseRiverTokenApprove = - /*#__PURE__*/ createUseSimulateContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'approve', + abi: authorizerAbi, + address: authorizerAddress, + functionName: 'removeAuthorizedClaimer', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"burn"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link authorizerAbi}__ * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05) + * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B) */ -export const useSimulateBaseRiverTokenBurn = - /*#__PURE__*/ createUseSimulateContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'burn', - }) +export const useSimulateAuthorizer = /*#__PURE__*/ createUseSimulateContract({ + abi: authorizerAbi, + address: authorizerAddress, +}) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"delegate"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link authorizerAbi}__ and `functionName` set to `"authorizeClaimer"` * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05) + * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B) */ -export const useSimulateBaseRiverTokenDelegate = +export const useSimulateAuthorizerAuthorizeClaimer = /*#__PURE__*/ createUseSimulateContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'delegate', + abi: authorizerAbi, + address: authorizerAddress, + functionName: 'authorizeClaimer', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"delegateBySig"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link authorizerAbi}__ and `functionName` set to `"removeAuthorizedClaimer"` * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05) + * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B) */ -export const useSimulateBaseRiverTokenDelegateBySig = +export const useSimulateAuthorizerRemoveAuthorizedClaimer = /*#__PURE__*/ createUseSimulateContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'delegateBySig', + abi: authorizerAbi, + address: authorizerAddress, + functionName: 'removeAuthorizedClaimer', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"disableLock"` + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link authorizerAbi}__ * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05) + * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B) */ -export const useSimulateBaseRiverTokenDisableLock = - /*#__PURE__*/ createUseSimulateContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'disableLock', +export const useWatchAuthorizerEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: authorizerAbi, + address: authorizerAddress, }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"enableLock"` + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link authorizerAbi}__ and `eventName` set to `"AuthorizedClaimerChanged"` * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05) + * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B) */ -export const useSimulateBaseRiverTokenEnableLock = - /*#__PURE__*/ createUseSimulateContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'enableLock', +export const useWatchAuthorizerAuthorizedClaimerChangedEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: authorizerAbi, + address: authorizerAddress, + eventName: 'AuthorizedClaimerChanged', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"mint"` + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link authorizerAbi}__ and `eventName` set to `"AuthorizedClaimerRemoved"` * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05) + * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B) */ -export const useSimulateBaseRiverTokenMint = - /*#__PURE__*/ createUseSimulateContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'mint', +export const useWatchAuthorizerAuthorizedClaimerRemovedEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: authorizerAbi, + address: authorizerAddress, + eventName: 'AuthorizedClaimerRemoved', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"permit"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useSimulateBaseRiverTokenPermit = - /*#__PURE__*/ createUseSimulateContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'permit', - }) +export const useReadRewardsDistribution = /*#__PURE__*/ createUseReadContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, +}) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"renounceOwnership"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"currentReward"` * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useSimulateBaseRiverTokenRenounceOwnership = - /*#__PURE__*/ createUseSimulateContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'renounceOwnership', +export const useReadRewardsDistributionCurrentReward = + /*#__PURE__*/ createUseReadContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'currentReward', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"setLockCooldown"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"currentRewardPerTokenAccumulated"` * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useSimulateBaseRiverTokenSetLockCooldown = - /*#__PURE__*/ createUseSimulateContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'setLockCooldown', +export const useReadRewardsDistributionCurrentRewardPerTokenAccumulated = + /*#__PURE__*/ createUseReadContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'currentRewardPerTokenAccumulated', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"setTokenThreshold"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"currentSpaceDelegationReward"` * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useSimulateBaseRiverTokenSetTokenThreshold = - /*#__PURE__*/ createUseSimulateContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'setTokenThreshold', +export const useReadRewardsDistributionCurrentSpaceDelegationReward = + /*#__PURE__*/ createUseReadContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'currentSpaceDelegationReward', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"transfer"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"delegationProxyById"` * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useSimulateBaseRiverTokenTransfer = - /*#__PURE__*/ createUseSimulateContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'transfer', +export const useReadRewardsDistributionDelegationProxyById = + /*#__PURE__*/ createUseReadContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'delegationProxyById', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"transferFrom"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"depositById"` * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useSimulateBaseRiverTokenTransferFrom = - /*#__PURE__*/ createUseSimulateContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'transferFrom', +export const useReadRewardsDistributionDepositById = + /*#__PURE__*/ createUseReadContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'depositById', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `functionName` set to `"transferOwnership"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"getDepositsByDepositor"` * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useSimulateBaseRiverTokenTransferOwnership = - /*#__PURE__*/ createUseSimulateContract({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - functionName: 'transferOwnership', +export const useReadRewardsDistributionGetDepositsByDepositor = + /*#__PURE__*/ createUseReadContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'getDepositsByDepositor', }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link baseRiverTokenAbi}__ + * Wraps __{@link useReadContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"implementation"` * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWatchBaseRiverTokenEvent = - /*#__PURE__*/ createUseWatchContractEvent({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, +export const useReadRewardsDistributionImplementation = + /*#__PURE__*/ createUseReadContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'implementation', }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `eventName` set to `"Approval"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"isRewardNotifier"` * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWatchBaseRiverTokenApprovalEvent = - /*#__PURE__*/ createUseWatchContractEvent({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - eventName: 'Approval', +export const useReadRewardsDistributionIsRewardNotifier = + /*#__PURE__*/ createUseReadContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'isRewardNotifier', }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `eventName` set to `"DelegateChanged"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"lastTimeRewardDistributed"` * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWatchBaseRiverTokenDelegateChangedEvent = - /*#__PURE__*/ createUseWatchContractEvent({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - eventName: 'DelegateChanged', +export const useReadRewardsDistributionLastTimeRewardDistributed = + /*#__PURE__*/ createUseReadContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'lastTimeRewardDistributed', }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `eventName` set to `"DelegateVotesChanged"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"stakedByDepositor"` * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWatchBaseRiverTokenDelegateVotesChangedEvent = - /*#__PURE__*/ createUseWatchContractEvent({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - eventName: 'DelegateVotesChanged', +export const useReadRewardsDistributionStakedByDepositor = + /*#__PURE__*/ createUseReadContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'stakedByDepositor', }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `eventName` set to `"EIP712DomainChanged"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"stakingState"` * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWatchBaseRiverTokenEip712DomainChangedEvent = - /*#__PURE__*/ createUseWatchContractEvent({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - eventName: 'EIP712DomainChanged', +export const useReadRewardsDistributionStakingState = + /*#__PURE__*/ createUseReadContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'stakingState', }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `eventName` set to `"InterfaceAdded"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"treasureByBeneficiary"` * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWatchBaseRiverTokenInterfaceAddedEvent = - /*#__PURE__*/ createUseWatchContractEvent({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - eventName: 'InterfaceAdded', +export const useReadRewardsDistributionTreasureByBeneficiary = + /*#__PURE__*/ createUseReadContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'treasureByBeneficiary', }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `eventName` set to `"InterfaceRemoved"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWatchBaseRiverTokenInterfaceRemovedEvent = - /*#__PURE__*/ createUseWatchContractEvent({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - eventName: 'InterfaceRemoved', - }) +export const useWriteRewardsDistribution = /*#__PURE__*/ createUseWriteContract( + { abi: rewardsDistributionAbi, address: rewardsDistributionAddress }, +) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `eventName` set to `"LockUpdated"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"__RewardsDistribution_init"` * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWatchBaseRiverTokenLockUpdatedEvent = - /*#__PURE__*/ createUseWatchContractEvent({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - eventName: 'LockUpdated', +export const useWriteRewardsDistributionRewardsDistributionInit = + /*#__PURE__*/ createUseWriteContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: '__RewardsDistribution_init', }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `eventName` set to `"OwnershipTransferred"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"changeBeneficiary"` * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWatchBaseRiverTokenOwnershipTransferredEvent = - /*#__PURE__*/ createUseWatchContractEvent({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - eventName: 'OwnershipTransferred', +export const useWriteRewardsDistributionChangeBeneficiary = + /*#__PURE__*/ createUseWriteContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'changeBeneficiary', }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `eventName` set to `"TokenThresholdSet"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"claimReward"` * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWatchBaseRiverTokenTokenThresholdSetEvent = - /*#__PURE__*/ createUseWatchContractEvent({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - eventName: 'TokenThresholdSet', +export const useWriteRewardsDistributionClaimReward = + /*#__PURE__*/ createUseWriteContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'claimReward', }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link baseRiverTokenAbi}__ and `eventName` set to `"Transfer"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"increaseStake"` * - * - [__View Contract on Base Basescan__](https://basescan.org/address/0x9172852305F32819469bf38A3772f29361d7b768) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x49442708a16Bf7917764F14A2D103f40Eb27BdD8) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWatchBaseRiverTokenTransferEvent = - /*#__PURE__*/ createUseWatchContractEvent({ - abi: baseRiverTokenAbi, - address: baseRiverTokenAddress, - eventName: 'Transfer', +export const useWriteRewardsDistributionIncreaseStake = + /*#__PURE__*/ createUseWriteContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'increaseStake', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverAuthorizerAbi}__ - * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B) - */ -export const useReadRiverAuthorizer = /*#__PURE__*/ createUseReadContract({ - abi: riverAuthorizerAbi, - address: riverAuthorizerAddress, -}) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverAuthorizerAbi}__ and `functionName` set to `"getAuthorizedClaimer"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"initiateWithdraw"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useReadRiverAuthorizerGetAuthorizedClaimer = - /*#__PURE__*/ createUseReadContract({ - abi: riverAuthorizerAbi, - address: riverAuthorizerAddress, - functionName: 'getAuthorizedClaimer', +export const useWriteRewardsDistributionInitiateWithdraw = + /*#__PURE__*/ createUseWriteContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'initiateWithdraw', }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link riverAuthorizerAbi}__ - * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B) - */ -export const useWriteRiverAuthorizer = /*#__PURE__*/ createUseWriteContract({ - abi: riverAuthorizerAbi, - address: riverAuthorizerAddress, -}) - -/** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link riverAuthorizerAbi}__ and `functionName` set to `"authorizeClaimer"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"notifyRewardAmount"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWriteRiverAuthorizerAuthorizeClaimer = +export const useWriteRewardsDistributionNotifyRewardAmount = /*#__PURE__*/ createUseWriteContract({ - abi: riverAuthorizerAbi, - address: riverAuthorizerAddress, - functionName: 'authorizeClaimer', + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'notifyRewardAmount', }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link riverAuthorizerAbi}__ and `functionName` set to `"removeAuthorizedClaimer"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"permitAndStake"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWriteRiverAuthorizerRemoveAuthorizedClaimer = +export const useWriteRewardsDistributionPermitAndStake = /*#__PURE__*/ createUseWriteContract({ - abi: riverAuthorizerAbi, - address: riverAuthorizerAddress, - functionName: 'removeAuthorizedClaimer', + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'permitAndStake', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link riverAuthorizerAbi}__ + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"redelegate"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useSimulateRiverAuthorizer = - /*#__PURE__*/ createUseSimulateContract({ - abi: riverAuthorizerAbi, - address: riverAuthorizerAddress, +export const useWriteRewardsDistributionRedelegate = + /*#__PURE__*/ createUseWriteContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'redelegate', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link riverAuthorizerAbi}__ and `functionName` set to `"authorizeClaimer"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"setRewardNotifier"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useSimulateRiverAuthorizerAuthorizeClaimer = - /*#__PURE__*/ createUseSimulateContract({ - abi: riverAuthorizerAbi, - address: riverAuthorizerAddress, - functionName: 'authorizeClaimer', +export const useWriteRewardsDistributionSetRewardNotifier = + /*#__PURE__*/ createUseWriteContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'setRewardNotifier', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link riverAuthorizerAbi}__ and `functionName` set to `"removeAuthorizedClaimer"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"stake"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useSimulateRiverAuthorizerRemoveAuthorizedClaimer = - /*#__PURE__*/ createUseSimulateContract({ - abi: riverAuthorizerAbi, - address: riverAuthorizerAddress, - functionName: 'removeAuthorizedClaimer', +export const useWriteRewardsDistributionStake = + /*#__PURE__*/ createUseWriteContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'stake', }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link riverAuthorizerAbi}__ + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"stakeOnBehalf"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWatchRiverAuthorizerEvent = - /*#__PURE__*/ createUseWatchContractEvent({ - abi: riverAuthorizerAbi, - address: riverAuthorizerAddress, +export const useWriteRewardsDistributionStakeOnBehalf = + /*#__PURE__*/ createUseWriteContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'stakeOnBehalf', }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link riverAuthorizerAbi}__ and `eventName` set to `"AuthorizedClaimerChanged"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"upgradeDelegationProxy"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWatchRiverAuthorizerAuthorizedClaimerChangedEvent = - /*#__PURE__*/ createUseWatchContractEvent({ - abi: riverAuthorizerAbi, - address: riverAuthorizerAddress, - eventName: 'AuthorizedClaimerChanged', +export const useWriteRewardsDistributionUpgradeDelegationProxy = + /*#__PURE__*/ createUseWriteContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'upgradeDelegationProxy', }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link riverAuthorizerAbi}__ and `eventName` set to `"AuthorizedClaimerRemoved"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"withdraw"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWatchRiverAuthorizerAuthorizedClaimerRemovedEvent = - /*#__PURE__*/ createUseWatchContractEvent({ - abi: riverAuthorizerAbi, - address: riverAuthorizerAddress, - eventName: 'AuthorizedClaimerRemoved', +export const useWriteRewardsDistributionWithdraw = + /*#__PURE__*/ createUseWriteContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'withdraw', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverClaimerAbi}__ + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useReadRiverClaimer = /*#__PURE__*/ createUseReadContract({ - abi: riverClaimerAbi, - address: riverClaimerAddress, -}) +export const useSimulateRewardsDistribution = + /*#__PURE__*/ createUseSimulateContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverClaimerAbi}__ and `functionName` set to `"getActiveOperators"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"__RewardsDistribution_init"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useReadRiverClaimerGetActiveOperators = - /*#__PURE__*/ createUseReadContract({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - functionName: 'getActiveOperators', +export const useSimulateRewardsDistributionRewardsDistributionInit = + /*#__PURE__*/ createUseSimulateContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: '__RewardsDistribution_init', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverClaimerAbi}__ and `functionName` set to `"getActivePeriodLength"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"changeBeneficiary"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useReadRiverClaimerGetActivePeriodLength = - /*#__PURE__*/ createUseReadContract({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - functionName: 'getActivePeriodLength', +export const useSimulateRewardsDistributionChangeBeneficiary = + /*#__PURE__*/ createUseSimulateContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'changeBeneficiary', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverClaimerAbi}__ and `functionName` set to `"getClaimableAmountForAuthorizedClaimer"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"claimReward"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useReadRiverClaimerGetClaimableAmountForAuthorizedClaimer = - /*#__PURE__*/ createUseReadContract({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - functionName: 'getClaimableAmountForAuthorizedClaimer', +export const useSimulateRewardsDistributionClaimReward = + /*#__PURE__*/ createUseSimulateContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'claimReward', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverClaimerAbi}__ and `functionName` set to `"getClaimableAmountForDelegator"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"increaseStake"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useReadRiverClaimerGetClaimableAmountForDelegator = - /*#__PURE__*/ createUseReadContract({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - functionName: 'getClaimableAmountForDelegator', +export const useSimulateRewardsDistributionIncreaseStake = + /*#__PURE__*/ createUseSimulateContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'increaseStake', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverClaimerAbi}__ and `functionName` set to `"getClaimableAmountForOperator"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"initiateWithdraw"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useReadRiverClaimerGetClaimableAmountForOperator = - /*#__PURE__*/ createUseReadContract({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - functionName: 'getClaimableAmountForOperator', +export const useSimulateRewardsDistributionInitiateWithdraw = + /*#__PURE__*/ createUseSimulateContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'initiateWithdraw', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverClaimerAbi}__ and `functionName` set to `"getPeriodDistributionAmount"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"notifyRewardAmount"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useReadRiverClaimerGetPeriodDistributionAmount = - /*#__PURE__*/ createUseReadContract({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - functionName: 'getPeriodDistributionAmount', +export const useSimulateRewardsDistributionNotifyRewardAmount = + /*#__PURE__*/ createUseSimulateContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'notifyRewardAmount', }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link riverClaimerAbi}__ + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"permitAndStake"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWriteRiverClaimer = /*#__PURE__*/ createUseWriteContract({ - abi: riverClaimerAbi, - address: riverClaimerAddress, -}) +export const useSimulateRewardsDistributionPermitAndStake = + /*#__PURE__*/ createUseSimulateContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'permitAndStake', + }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link riverClaimerAbi}__ and `functionName` set to `"__RewardsDistribution_init"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"redelegate"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWriteRiverClaimerRewardsDistributionInit = - /*#__PURE__*/ createUseWriteContract({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - functionName: '__RewardsDistribution_init', +export const useSimulateRewardsDistributionRedelegate = + /*#__PURE__*/ createUseSimulateContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'redelegate', }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link riverClaimerAbi}__ and `functionName` set to `"delegatorClaim"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"setRewardNotifier"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWriteRiverClaimerDelegatorClaim = - /*#__PURE__*/ createUseWriteContract({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - functionName: 'delegatorClaim', +export const useSimulateRewardsDistributionSetRewardNotifier = + /*#__PURE__*/ createUseSimulateContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'setRewardNotifier', }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link riverClaimerAbi}__ and `functionName` set to `"distributeRewards"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"stake"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWriteRiverClaimerDistributeRewards = - /*#__PURE__*/ createUseWriteContract({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - functionName: 'distributeRewards', +export const useSimulateRewardsDistributionStake = + /*#__PURE__*/ createUseSimulateContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'stake', }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link riverClaimerAbi}__ and `functionName` set to `"mainnetClaim"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"stakeOnBehalf"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWriteRiverClaimerMainnetClaim = - /*#__PURE__*/ createUseWriteContract({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - functionName: 'mainnetClaim', +export const useSimulateRewardsDistributionStakeOnBehalf = + /*#__PURE__*/ createUseSimulateContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'stakeOnBehalf', }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link riverClaimerAbi}__ and `functionName` set to `"operatorClaim"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"upgradeDelegationProxy"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWriteRiverClaimerOperatorClaim = - /*#__PURE__*/ createUseWriteContract({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - functionName: 'operatorClaim', +export const useSimulateRewardsDistributionUpgradeDelegationProxy = + /*#__PURE__*/ createUseSimulateContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'upgradeDelegationProxy', }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link riverClaimerAbi}__ and `functionName` set to `"setActivePeriodLength"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `functionName` set to `"withdraw"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWriteRiverClaimerSetActivePeriodLength = - /*#__PURE__*/ createUseWriteContract({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - functionName: 'setActivePeriodLength', +export const useSimulateRewardsDistributionWithdraw = + /*#__PURE__*/ createUseSimulateContract({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + functionName: 'withdraw', }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link riverClaimerAbi}__ and `functionName` set to `"setPeriodDistributionAmount"` + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link rewardsDistributionAbi}__ * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWriteRiverClaimerSetPeriodDistributionAmount = - /*#__PURE__*/ createUseWriteContract({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - functionName: 'setPeriodDistributionAmount', +export const useWatchRewardsDistributionEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link riverClaimerAbi}__ + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `eventName` set to `"ChangeBeneficiary"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useSimulateRiverClaimer = /*#__PURE__*/ createUseSimulateContract({ - abi: riverClaimerAbi, - address: riverClaimerAddress, -}) +export const useWatchRewardsDistributionChangeBeneficiaryEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + eventName: 'ChangeBeneficiary', + }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link riverClaimerAbi}__ and `functionName` set to `"__RewardsDistribution_init"` + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `eventName` set to `"ClaimReward"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useSimulateRiverClaimerRewardsDistributionInit = - /*#__PURE__*/ createUseSimulateContract({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - functionName: '__RewardsDistribution_init', +export const useWatchRewardsDistributionClaimRewardEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + eventName: 'ClaimReward', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link riverClaimerAbi}__ and `functionName` set to `"delegatorClaim"` + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `eventName` set to `"ClaimerSet"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useSimulateRiverClaimerDelegatorClaim = - /*#__PURE__*/ createUseSimulateContract({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - functionName: 'delegatorClaim', +export const useWatchRewardsDistributionClaimerSetEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + eventName: 'ClaimerSet', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link riverClaimerAbi}__ and `functionName` set to `"distributeRewards"` + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `eventName` set to `"DelegationProxyDeployed"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useSimulateRiverClaimerDistributeRewards = - /*#__PURE__*/ createUseSimulateContract({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - functionName: 'distributeRewards', +export const useWatchRewardsDistributionDelegationProxyDeployedEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + eventName: 'DelegationProxyDeployed', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link riverClaimerAbi}__ and `functionName` set to `"mainnetClaim"` + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `eventName` set to `"DelegationRemoved"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useSimulateRiverClaimerMainnetClaim = - /*#__PURE__*/ createUseSimulateContract({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - functionName: 'mainnetClaim', +export const useWatchRewardsDistributionDelegationRemovedEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + eventName: 'DelegationRemoved', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link riverClaimerAbi}__ and `functionName` set to `"operatorClaim"` + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `eventName` set to `"DelegationSet"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useSimulateRiverClaimerOperatorClaim = - /*#__PURE__*/ createUseSimulateContract({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - functionName: 'operatorClaim', +export const useWatchRewardsDistributionDelegationSetEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + eventName: 'DelegationSet', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link riverClaimerAbi}__ and `functionName` set to `"setActivePeriodLength"` + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `eventName` set to `"IncreaseStake"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useSimulateRiverClaimerSetActivePeriodLength = - /*#__PURE__*/ createUseSimulateContract({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - functionName: 'setActivePeriodLength', +export const useWatchRewardsDistributionIncreaseStakeEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + eventName: 'IncreaseStake', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link riverClaimerAbi}__ and `functionName` set to `"setPeriodDistributionAmount"` + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `eventName` set to `"Initialized"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useSimulateRiverClaimerSetPeriodDistributionAmount = - /*#__PURE__*/ createUseSimulateContract({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - functionName: 'setPeriodDistributionAmount', +export const useWatchRewardsDistributionInitializedEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + eventName: 'Initialized', }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link riverClaimerAbi}__ + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `eventName` set to `"InitiateWithdraw"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWatchRiverClaimerEvent = +export const useWatchRewardsDistributionInitiateWithdrawEvent = /*#__PURE__*/ createUseWatchContractEvent({ - abi: riverClaimerAbi, - address: riverClaimerAddress, + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + eventName: 'InitiateWithdraw', }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link riverClaimerAbi}__ and `eventName` set to `"Approval"` + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `eventName` set to `"InterfaceAdded"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWatchRiverClaimerApprovalEvent = +export const useWatchRewardsDistributionInterfaceAddedEvent = /*#__PURE__*/ createUseWatchContractEvent({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - eventName: 'Approval', + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + eventName: 'InterfaceAdded', }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link riverClaimerAbi}__ and `eventName` set to `"ApprovalForAll"` + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `eventName` set to `"InterfaceRemoved"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWatchRiverClaimerApprovalForAllEvent = +export const useWatchRewardsDistributionInterfaceRemovedEvent = /*#__PURE__*/ createUseWatchContractEvent({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - eventName: 'ApprovalForAll', + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + eventName: 'InterfaceRemoved', }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link riverClaimerAbi}__ and `eventName` set to `"ConsecutiveTransfer"` + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `eventName` set to `"NotifyRewardAmount"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWatchRiverClaimerConsecutiveTransferEvent = +export const useWatchRewardsDistributionNotifyRewardAmountEvent = /*#__PURE__*/ createUseWatchContractEvent({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - eventName: 'ConsecutiveTransfer', + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + eventName: 'NotifyRewardAmount', }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link riverClaimerAbi}__ and `eventName` set to `"DelegationRemoved"` + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `eventName` set to `"OwnershipTransferred"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWatchRiverClaimerDelegationRemovedEvent = +export const useWatchRewardsDistributionOwnershipTransferredEvent = /*#__PURE__*/ createUseWatchContractEvent({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - eventName: 'DelegationRemoved', + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + eventName: 'OwnershipTransferred', }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link riverClaimerAbi}__ and `eventName` set to `"DelegationSet"` + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `eventName` set to `"Redelegate"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWatchRiverClaimerDelegationSetEvent = +export const useWatchRewardsDistributionRedelegateEvent = /*#__PURE__*/ createUseWatchContractEvent({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - eventName: 'DelegationSet', + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + eventName: 'Redelegate', }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link riverClaimerAbi}__ and `eventName` set to `"Initialized"` + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `eventName` set to `"RewardNotifierSet"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWatchRiverClaimerInitializedEvent = +export const useWatchRewardsDistributionRewardNotifierSetEvent = /*#__PURE__*/ createUseWatchContractEvent({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - eventName: 'Initialized', + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + eventName: 'RewardNotifierSet', }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link riverClaimerAbi}__ and `eventName` set to `"InterfaceAdded"` + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `eventName` set to `"RewardsDistributionInitialized"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWatchRiverClaimerInterfaceAddedEvent = +export const useWatchRewardsDistributionRewardsDistributionInitializedEvent = /*#__PURE__*/ createUseWatchContractEvent({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - eventName: 'InterfaceAdded', + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + eventName: 'RewardsDistributionInitialized', }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link riverClaimerAbi}__ and `eventName` set to `"InterfaceRemoved"` + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `eventName` set to `"SpaceRewardsSwept"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWatchRiverClaimerInterfaceRemovedEvent = +export const useWatchRewardsDistributionSpaceRewardsSweptEvent = /*#__PURE__*/ createUseWatchContractEvent({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - eventName: 'InterfaceRemoved', + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + eventName: 'SpaceRewardsSwept', }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link riverClaimerAbi}__ and `eventName` set to `"OwnershipTransferred"` + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `eventName` set to `"Stake"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWatchRiverClaimerOwnershipTransferredEvent = +export const useWatchRewardsDistributionStakeEvent = /*#__PURE__*/ createUseWatchContractEvent({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - eventName: 'OwnershipTransferred', + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + eventName: 'Stake', }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link riverClaimerAbi}__ and `eventName` set to `"RewardsDistributed"` + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `eventName` set to `"Upgraded"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWatchRiverClaimerRewardsDistributedEvent = +export const useWatchRewardsDistributionUpgradedEvent = /*#__PURE__*/ createUseWatchContractEvent({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - eventName: 'RewardsDistributed', + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + eventName: 'Upgraded', }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link riverClaimerAbi}__ and `eventName` set to `"Transfer"` + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link rewardsDistributionAbi}__ and `eventName` set to `"Withdraw"` * * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7c0422b31401C936172C897802CF0373B35B7698) * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F) */ -export const useWatchRiverClaimerTransferEvent = +export const useWatchRewardsDistributionWithdrawEvent = /*#__PURE__*/ createUseWatchContractEvent({ - abi: riverClaimerAbi, - address: riverClaimerAddress, - eventName: 'Transfer', + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress, + eventName: 'Withdraw', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useReadRiverToken = /*#__PURE__*/ createUseReadContract({ abi: riverTokenAbi, @@ -3471,8 +2534,9 @@ export const useReadRiverToken = /*#__PURE__*/ createUseReadContract({ /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"CLOCK_MODE"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useReadRiverTokenClockMode = /*#__PURE__*/ createUseReadContract({ abi: riverTokenAbi, @@ -3483,8 +2547,9 @@ export const useReadRiverTokenClockMode = /*#__PURE__*/ createUseReadContract({ /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"DOMAIN_SEPARATOR"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useReadRiverTokenDomainSeparator = /*#__PURE__*/ createUseReadContract({ @@ -3496,8 +2561,9 @@ export const useReadRiverTokenDomainSeparator = /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"allowance"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useReadRiverTokenAllowance = /*#__PURE__*/ createUseReadContract({ abi: riverTokenAbi, @@ -3508,8 +2574,9 @@ export const useReadRiverTokenAllowance = /*#__PURE__*/ createUseReadContract({ /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"balanceOf"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useReadRiverTokenBalanceOf = /*#__PURE__*/ createUseReadContract({ abi: riverTokenAbi, @@ -3517,11 +2584,25 @@ export const useReadRiverTokenBalanceOf = /*#__PURE__*/ createUseReadContract({ functionName: 'balanceOf', }) +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"bridge"` + * + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) + */ +export const useReadRiverTokenBridge = /*#__PURE__*/ createUseReadContract({ + abi: riverTokenAbi, + address: riverTokenAddress, + functionName: 'bridge', +}) + /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"checkpoints"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useReadRiverTokenCheckpoints = /*#__PURE__*/ createUseReadContract( { @@ -3534,8 +2615,9 @@ export const useReadRiverTokenCheckpoints = /*#__PURE__*/ createUseReadContract( /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"clock"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useReadRiverTokenClock = /*#__PURE__*/ createUseReadContract({ abi: riverTokenAbi, @@ -3546,8 +2628,9 @@ export const useReadRiverTokenClock = /*#__PURE__*/ createUseReadContract({ /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"decimals"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useReadRiverTokenDecimals = /*#__PURE__*/ createUseReadContract({ abi: riverTokenAbi, @@ -3558,8 +2641,9 @@ export const useReadRiverTokenDecimals = /*#__PURE__*/ createUseReadContract({ /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"delegates"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useReadRiverTokenDelegates = /*#__PURE__*/ createUseReadContract({ abi: riverTokenAbi, @@ -3567,23 +2651,12 @@ export const useReadRiverTokenDelegates = /*#__PURE__*/ createUseReadContract({ functionName: 'delegates', }) -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"deployedAt"` - * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) - */ -export const useReadRiverTokenDeployedAt = /*#__PURE__*/ createUseReadContract({ - abi: riverTokenAbi, - address: riverTokenAddress, - functionName: 'deployedAt', -}) - /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"eip712Domain"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useReadRiverTokenEip712Domain = /*#__PURE__*/ createUseReadContract({ @@ -3593,23 +2666,25 @@ export const useReadRiverTokenEip712Domain = }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"finalInflationRate"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"getDelegationTimeForDelegator"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ -export const useReadRiverTokenFinalInflationRate = +export const useReadRiverTokenGetDelegationTimeForDelegator = /*#__PURE__*/ createUseReadContract({ abi: riverTokenAbi, address: riverTokenAddress, - functionName: 'finalInflationRate', + functionName: 'getDelegationTimeForDelegator', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"getDelegators"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useReadRiverTokenGetDelegators = /*#__PURE__*/ createUseReadContract({ @@ -3618,11 +2693,26 @@ export const useReadRiverTokenGetDelegators = functionName: 'getDelegators', }) +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"getDelegatorsByDelegatee"` + * + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) + */ +export const useReadRiverTokenGetDelegatorsByDelegatee = + /*#__PURE__*/ createUseReadContract({ + abi: riverTokenAbi, + address: riverTokenAddress, + functionName: 'getDelegatorsByDelegatee', + }) + /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"getPastTotalSupply"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useReadRiverTokenGetPastTotalSupply = /*#__PURE__*/ createUseReadContract({ @@ -3634,8 +2724,9 @@ export const useReadRiverTokenGetPastTotalSupply = /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"getPastVotes"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useReadRiverTokenGetPastVotes = /*#__PURE__*/ createUseReadContract({ @@ -3647,8 +2738,9 @@ export const useReadRiverTokenGetPastVotes = /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"getVotes"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useReadRiverTokenGetVotes = /*#__PURE__*/ createUseReadContract({ abi: riverTokenAbi, @@ -3657,75 +2749,51 @@ export const useReadRiverTokenGetVotes = /*#__PURE__*/ createUseReadContract({ }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"inflationDecreaseInterval"` - * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) - */ -export const useReadRiverTokenInflationDecreaseInterval = - /*#__PURE__*/ createUseReadContract({ - abi: riverTokenAbi, - address: riverTokenAddress, - functionName: 'inflationDecreaseInterval', - }) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"inflationDecreaseRate"` - * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) - */ -export const useReadRiverTokenInflationDecreaseRate = - /*#__PURE__*/ createUseReadContract({ - abi: riverTokenAbi, - address: riverTokenAddress, - functionName: 'inflationDecreaseRate', - }) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"initialInflationRate"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"isLockEnabled"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ -export const useReadRiverTokenInitialInflationRate = +export const useReadRiverTokenIsLockEnabled = /*#__PURE__*/ createUseReadContract({ abi: riverTokenAbi, address: riverTokenAddress, - functionName: 'initialInflationRate', + functionName: 'isLockEnabled', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"isLockEnabled"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"l1Token"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ -export const useReadRiverTokenIsLockEnabled = - /*#__PURE__*/ createUseReadContract({ - abi: riverTokenAbi, - address: riverTokenAddress, - functionName: 'isLockEnabled', - }) +export const useReadRiverTokenL1Token = /*#__PURE__*/ createUseReadContract({ + abi: riverTokenAbi, + address: riverTokenAddress, + functionName: 'l1Token', +}) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"lastMintTime"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"l2Bridge"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ -export const useReadRiverTokenLastMintTime = - /*#__PURE__*/ createUseReadContract({ - abi: riverTokenAbi, - address: riverTokenAddress, - functionName: 'lastMintTime', - }) +export const useReadRiverTokenL2Bridge = /*#__PURE__*/ createUseReadContract({ + abi: riverTokenAbi, + address: riverTokenAddress, + functionName: 'l2Bridge', +}) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"lockCooldown"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useReadRiverTokenLockCooldown = /*#__PURE__*/ createUseReadContract({ @@ -3737,8 +2805,9 @@ export const useReadRiverTokenLockCooldown = /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"name"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useReadRiverTokenName = /*#__PURE__*/ createUseReadContract({ abi: riverTokenAbi, @@ -3749,8 +2818,9 @@ export const useReadRiverTokenName = /*#__PURE__*/ createUseReadContract({ /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"nonces"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useReadRiverTokenNonces = /*#__PURE__*/ createUseReadContract({ abi: riverTokenAbi, @@ -3761,8 +2831,9 @@ export const useReadRiverTokenNonces = /*#__PURE__*/ createUseReadContract({ /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"numCheckpoints"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useReadRiverTokenNumCheckpoints = /*#__PURE__*/ createUseReadContract({ @@ -3771,37 +2842,12 @@ export const useReadRiverTokenNumCheckpoints = functionName: 'numCheckpoints', }) -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"overrideInflation"` - * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) - */ -export const useReadRiverTokenOverrideInflation = - /*#__PURE__*/ createUseReadContract({ - abi: riverTokenAbi, - address: riverTokenAddress, - functionName: 'overrideInflation', - }) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"overrideInflationRate"` - * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) - */ -export const useReadRiverTokenOverrideInflationRate = - /*#__PURE__*/ createUseReadContract({ - abi: riverTokenAbi, - address: riverTokenAddress, - functionName: 'overrideInflationRate', - }) - /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"owner"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useReadRiverTokenOwner = /*#__PURE__*/ createUseReadContract({ abi: riverTokenAbi, @@ -3809,11 +2855,27 @@ export const useReadRiverTokenOwner = /*#__PURE__*/ createUseReadContract({ functionName: 'owner', }) +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"remoteToken"` + * + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) + */ +export const useReadRiverTokenRemoteToken = /*#__PURE__*/ createUseReadContract( + { + abi: riverTokenAbi, + address: riverTokenAddress, + functionName: 'remoteToken', + }, +) + /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"supportsInterface"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useReadRiverTokenSupportsInterface = /*#__PURE__*/ createUseReadContract({ @@ -3825,8 +2887,9 @@ export const useReadRiverTokenSupportsInterface = /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"symbol"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useReadRiverTokenSymbol = /*#__PURE__*/ createUseReadContract({ abi: riverTokenAbi, @@ -3837,8 +2900,9 @@ export const useReadRiverTokenSymbol = /*#__PURE__*/ createUseReadContract({ /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"totalSupply"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useReadRiverTokenTotalSupply = /*#__PURE__*/ createUseReadContract( { @@ -3848,11 +2912,25 @@ export const useReadRiverTokenTotalSupply = /*#__PURE__*/ createUseReadContract( }, ) +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"version"` + * + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) + */ +export const useReadRiverTokenVersion = /*#__PURE__*/ createUseReadContract({ + abi: riverTokenAbi, + address: riverTokenAddress, + functionName: 'version', +}) + /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link riverTokenAbi}__ * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useWriteRiverToken = /*#__PURE__*/ createUseWriteContract({ abi: riverTokenAbi, @@ -3862,8 +2940,9 @@ export const useWriteRiverToken = /*#__PURE__*/ createUseWriteContract({ /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"__Introspection_init"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useWriteRiverTokenIntrospectionInit = /*#__PURE__*/ createUseWriteContract({ @@ -3875,8 +2954,9 @@ export const useWriteRiverTokenIntrospectionInit = /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"__LockFacet_init"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useWriteRiverTokenLockFacetInit = /*#__PURE__*/ createUseWriteContract({ @@ -3888,8 +2968,9 @@ export const useWriteRiverTokenLockFacetInit = /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"approve"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useWriteRiverTokenApprove = /*#__PURE__*/ createUseWriteContract({ abi: riverTokenAbi, @@ -3898,23 +2979,24 @@ export const useWriteRiverTokenApprove = /*#__PURE__*/ createUseWriteContract({ }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"createInflation"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"burn"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ -export const useWriteRiverTokenCreateInflation = - /*#__PURE__*/ createUseWriteContract({ - abi: riverTokenAbi, - address: riverTokenAddress, - functionName: 'createInflation', - }) +export const useWriteRiverTokenBurn = /*#__PURE__*/ createUseWriteContract({ + abi: riverTokenAbi, + address: riverTokenAddress, + functionName: 'burn', +}) /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"delegate"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useWriteRiverTokenDelegate = /*#__PURE__*/ createUseWriteContract({ abi: riverTokenAbi, @@ -3925,8 +3007,9 @@ export const useWriteRiverTokenDelegate = /*#__PURE__*/ createUseWriteContract({ /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"delegateBySig"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useWriteRiverTokenDelegateBySig = /*#__PURE__*/ createUseWriteContract({ @@ -3938,8 +3021,9 @@ export const useWriteRiverTokenDelegateBySig = /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"disableLock"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useWriteRiverTokenDisableLock = /*#__PURE__*/ createUseWriteContract({ @@ -3951,8 +3035,9 @@ export const useWriteRiverTokenDisableLock = /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"enableLock"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useWriteRiverTokenEnableLock = /*#__PURE__*/ createUseWriteContract({ @@ -3961,11 +3046,25 @@ export const useWriteRiverTokenEnableLock = functionName: 'enableLock', }) +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"mint"` + * + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) + */ +export const useWriteRiverTokenMint = /*#__PURE__*/ createUseWriteContract({ + abi: riverTokenAbi, + address: riverTokenAddress, + functionName: 'mint', +}) + /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"permit"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useWriteRiverTokenPermit = /*#__PURE__*/ createUseWriteContract({ abi: riverTokenAbi, @@ -3976,8 +3075,9 @@ export const useWriteRiverTokenPermit = /*#__PURE__*/ createUseWriteContract({ /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"renounceOwnership"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useWriteRiverTokenRenounceOwnership = /*#__PURE__*/ createUseWriteContract({ @@ -3989,8 +3089,9 @@ export const useWriteRiverTokenRenounceOwnership = /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"setLockCooldown"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useWriteRiverTokenSetLockCooldown = /*#__PURE__*/ createUseWriteContract({ @@ -3999,24 +3100,12 @@ export const useWriteRiverTokenSetLockCooldown = functionName: 'setLockCooldown', }) -/** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"setOverrideInflation"` - * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) - */ -export const useWriteRiverTokenSetOverrideInflation = - /*#__PURE__*/ createUseWriteContract({ - abi: riverTokenAbi, - address: riverTokenAddress, - functionName: 'setOverrideInflation', - }) - /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"transfer"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useWriteRiverTokenTransfer = /*#__PURE__*/ createUseWriteContract({ abi: riverTokenAbi, @@ -4027,8 +3116,9 @@ export const useWriteRiverTokenTransfer = /*#__PURE__*/ createUseWriteContract({ /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"transferFrom"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useWriteRiverTokenTransferFrom = /*#__PURE__*/ createUseWriteContract({ @@ -4040,8 +3130,9 @@ export const useWriteRiverTokenTransferFrom = /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"transferOwnership"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useWriteRiverTokenTransferOwnership = /*#__PURE__*/ createUseWriteContract({ @@ -4053,8 +3144,9 @@ export const useWriteRiverTokenTransferOwnership = /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link riverTokenAbi}__ * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useSimulateRiverToken = /*#__PURE__*/ createUseSimulateContract({ abi: riverTokenAbi, @@ -4064,8 +3156,9 @@ export const useSimulateRiverToken = /*#__PURE__*/ createUseSimulateContract({ /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"__Introspection_init"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useSimulateRiverTokenIntrospectionInit = /*#__PURE__*/ createUseSimulateContract({ @@ -4077,8 +3170,9 @@ export const useSimulateRiverTokenIntrospectionInit = /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"__LockFacet_init"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useSimulateRiverTokenLockFacetInit = /*#__PURE__*/ createUseSimulateContract({ @@ -4090,8 +3184,9 @@ export const useSimulateRiverTokenLockFacetInit = /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"approve"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useSimulateRiverTokenApprove = /*#__PURE__*/ createUseSimulateContract({ @@ -4101,23 +3196,25 @@ export const useSimulateRiverTokenApprove = }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"createInflation"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"burn"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ -export const useSimulateRiverTokenCreateInflation = +export const useSimulateRiverTokenBurn = /*#__PURE__*/ createUseSimulateContract({ abi: riverTokenAbi, address: riverTokenAddress, - functionName: 'createInflation', + functionName: 'burn', }) /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"delegate"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useSimulateRiverTokenDelegate = /*#__PURE__*/ createUseSimulateContract({ @@ -4129,8 +3226,9 @@ export const useSimulateRiverTokenDelegate = /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"delegateBySig"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useSimulateRiverTokenDelegateBySig = /*#__PURE__*/ createUseSimulateContract({ @@ -4142,8 +3240,9 @@ export const useSimulateRiverTokenDelegateBySig = /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"disableLock"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useSimulateRiverTokenDisableLock = /*#__PURE__*/ createUseSimulateContract({ @@ -4155,8 +3254,9 @@ export const useSimulateRiverTokenDisableLock = /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"enableLock"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useSimulateRiverTokenEnableLock = /*#__PURE__*/ createUseSimulateContract({ @@ -4165,11 +3265,26 @@ export const useSimulateRiverTokenEnableLock = functionName: 'enableLock', }) +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"mint"` + * + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) + */ +export const useSimulateRiverTokenMint = + /*#__PURE__*/ createUseSimulateContract({ + abi: riverTokenAbi, + address: riverTokenAddress, + functionName: 'mint', + }) + /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"permit"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useSimulateRiverTokenPermit = /*#__PURE__*/ createUseSimulateContract({ @@ -4181,8 +3296,9 @@ export const useSimulateRiverTokenPermit = /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"renounceOwnership"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useSimulateRiverTokenRenounceOwnership = /*#__PURE__*/ createUseSimulateContract({ @@ -4194,8 +3310,9 @@ export const useSimulateRiverTokenRenounceOwnership = /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"setLockCooldown"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useSimulateRiverTokenSetLockCooldown = /*#__PURE__*/ createUseSimulateContract({ @@ -4204,24 +3321,12 @@ export const useSimulateRiverTokenSetLockCooldown = functionName: 'setLockCooldown', }) -/** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"setOverrideInflation"` - * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) - */ -export const useSimulateRiverTokenSetOverrideInflation = - /*#__PURE__*/ createUseSimulateContract({ - abi: riverTokenAbi, - address: riverTokenAddress, - functionName: 'setOverrideInflation', - }) - /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"transfer"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useSimulateRiverTokenTransfer = /*#__PURE__*/ createUseSimulateContract({ @@ -4233,8 +3338,9 @@ export const useSimulateRiverTokenTransfer = /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"transferFrom"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useSimulateRiverTokenTransferFrom = /*#__PURE__*/ createUseSimulateContract({ @@ -4246,8 +3352,9 @@ export const useSimulateRiverTokenTransferFrom = /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link riverTokenAbi}__ and `functionName` set to `"transferOwnership"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useSimulateRiverTokenTransferOwnership = /*#__PURE__*/ createUseSimulateContract({ @@ -4259,8 +3366,9 @@ export const useSimulateRiverTokenTransferOwnership = /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link riverTokenAbi}__ * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useWatchRiverTokenEvent = /*#__PURE__*/ createUseWatchContractEvent({ @@ -4271,8 +3379,9 @@ export const useWatchRiverTokenEvent = /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link riverTokenAbi}__ and `eventName` set to `"Approval"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useWatchRiverTokenApprovalEvent = /*#__PURE__*/ createUseWatchContractEvent({ @@ -4284,8 +3393,9 @@ export const useWatchRiverTokenApprovalEvent = /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link riverTokenAbi}__ and `eventName` set to `"DelegateChanged"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useWatchRiverTokenDelegateChangedEvent = /*#__PURE__*/ createUseWatchContractEvent({ @@ -4297,8 +3407,9 @@ export const useWatchRiverTokenDelegateChangedEvent = /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link riverTokenAbi}__ and `eventName` set to `"DelegateVotesChanged"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useWatchRiverTokenDelegateVotesChangedEvent = /*#__PURE__*/ createUseWatchContractEvent({ @@ -4310,8 +3421,9 @@ export const useWatchRiverTokenDelegateVotesChangedEvent = /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link riverTokenAbi}__ and `eventName` set to `"EIP712DomainChanged"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useWatchRiverTokenEip712DomainChangedEvent = /*#__PURE__*/ createUseWatchContractEvent({ @@ -4323,8 +3435,9 @@ export const useWatchRiverTokenEip712DomainChangedEvent = /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link riverTokenAbi}__ and `eventName` set to `"Initialized"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useWatchRiverTokenInitializedEvent = /*#__PURE__*/ createUseWatchContractEvent({ @@ -4336,8 +3449,9 @@ export const useWatchRiverTokenInitializedEvent = /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link riverTokenAbi}__ and `eventName` set to `"InterfaceAdded"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useWatchRiverTokenInterfaceAddedEvent = /*#__PURE__*/ createUseWatchContractEvent({ @@ -4349,8 +3463,9 @@ export const useWatchRiverTokenInterfaceAddedEvent = /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link riverTokenAbi}__ and `eventName` set to `"InterfaceRemoved"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useWatchRiverTokenInterfaceRemovedEvent = /*#__PURE__*/ createUseWatchContractEvent({ @@ -4362,8 +3477,9 @@ export const useWatchRiverTokenInterfaceRemovedEvent = /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link riverTokenAbi}__ and `eventName` set to `"LockUpdated"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useWatchRiverTokenLockUpdatedEvent = /*#__PURE__*/ createUseWatchContractEvent({ @@ -4375,8 +3491,9 @@ export const useWatchRiverTokenLockUpdatedEvent = /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link riverTokenAbi}__ and `eventName` set to `"OwnershipTransferred"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useWatchRiverTokenOwnershipTransferredEvent = /*#__PURE__*/ createUseWatchContractEvent({ @@ -4385,11 +3502,26 @@ export const useWatchRiverTokenOwnershipTransferredEvent = eventName: 'OwnershipTransferred', }) +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link riverTokenAbi}__ and `eventName` set to `"TokenThresholdSet"` + * + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) + */ +export const useWatchRiverTokenTokenThresholdSetEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: riverTokenAbi, + address: riverTokenAddress, + eventName: 'TokenThresholdSet', + }) + /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link riverTokenAbi}__ and `eventName` set to `"Transfer"` * - * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003e7f86fb79f794649a2ab680db244) - * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x40ef1bb984503bb5adef041a88a4f9180e8586f9) + * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x53319181e003E7f86fB79f794649a2aB680Db244) + * - [__View Contract on Base Basescan__](https://basescan.org/address/0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0) */ export const useWatchRiverTokenTransferEvent = /*#__PURE__*/ createUseWatchContractEvent({ diff --git a/wagmi.config.ts b/wagmi.config.ts index 243e9ed..2c7e5c4 100644 --- a/wagmi.config.ts +++ b/wagmi.config.ts @@ -1,2022 +1,1381 @@ +import gamma from '@river-build/generated/deployments/gamma/base/addresses/baseRegistry.json' with { type: + 'json' } +import omega from '@river-build/generated/deployments/omega/base/addresses/baseRegistry.json' with { type: + 'json' } + import { defineConfig, loadEnv } from '@wagmi/cli' import { etherscan, react } from '@wagmi/cli/plugins' -import { mainnet, sepolia, base, baseSepolia } from 'wagmi/chains' - +import { type Address } from 'viem' +import { base, baseSepolia, mainnet, sepolia } from 'viem/chains' + const env = loadEnv({ mode: process.env.NODE_ENV, envDir: process.cwd(), }) -// BRIDGE and remoteToken are commented out because they not unique, causing wagmi cli codegen to fail -const BaseRiverTokenAbi = [ +// https://sepolia.basescan.org/address/0x1bDcd58340c47Bb30A4fbD83016bBea2C63dE130#code +const rewardDistributionAbi = [ { - "inputs": [ - { - "internalType": "address", - "name": "_bridge", - "type": "address" - }, - { - "internalType": "address", - "name": "_remoteToken", - "type": "address" - } + inputs: [ + { internalType: 'address', name: 'delegator', type: 'address' }, + { internalType: 'address', name: 'operator', type: 'address' }, ], - "stateMutability": "nonpayable", - "type": "constructor" + name: 'DelegationAlreadySet', + type: 'error', }, + { inputs: [], name: 'DelegationNotSet', type: 'error' }, + { inputs: [], name: 'Initializable_InInitializingState', type: 'error' }, + { inputs: [], name: 'Initializable_NotInInitializingState', type: 'error' }, + { inputs: [], name: 'Introspection_AlreadySupported', type: 'error' }, + { inputs: [], name: 'Introspection_NotSupported', type: 'error' }, { - "inputs": [], - "name": "CheckpointUnorderedInsertion", - "type": "error" + inputs: [ + { internalType: 'address', name: 'account', type: 'address' }, + { internalType: 'uint256', name: 'currentNonce', type: 'uint256' }, + ], + name: 'InvalidAccountNonce', + type: 'error', }, { - "inputs": [], - "name": "ECDSAInvalidSignature", - "type": "error" + inputs: [{ internalType: 'address', name: 'claimer', type: 'address' }], + name: 'InvalidClaimer', + type: 'error', }, { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "ECDSAInvalidSignatureLength", - "type": "error" + inputs: [{ internalType: 'address', name: 'delegator', type: 'address' }], + name: 'InvalidDelegator', + type: 'error', }, { - "inputs": [ - { - "internalType": "bytes32", - "name": "s", - "type": "bytes32" - } - ], - "name": "ECDSAInvalidSignatureS", - "type": "error" + inputs: [{ internalType: 'address', name: 'operator', type: 'address' }], + name: 'InvalidOperator', + type: 'error', }, { - "inputs": [ - { - "internalType": "uint256", - "name": "increasedSupply", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "cap", - "type": "uint256" - } - ], - "name": "ERC20ExceededSafeSupply", - "type": "error" + inputs: [{ internalType: 'address', name: 'owner', type: 'address' }], + name: 'InvalidOwner', + type: 'error', }, { - "inputs": [ - { - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "internalType": "uint256", - "name": "allowance", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "needed", - "type": "uint256" - } - ], - "name": "ERC20InsufficientAllowance", - "type": "error" + inputs: [{ internalType: 'uint256', name: 'quantity', type: 'uint256' }], + name: 'InvalidQuantity', + type: 'error', }, + { inputs: [], name: 'NewImplementationHasNoCode', type: 'error' }, { - "inputs": [ - { - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "internalType": "uint256", - "name": "balance", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "needed", - "type": "uint256" - } - ], - "name": "ERC20InsufficientBalance", - "type": "error" + inputs: [{ internalType: 'address', name: 'account', type: 'address' }], + name: 'Ownable__NotOwner', + type: 'error', }, + { inputs: [], name: 'Ownable__ZeroAddress', type: 'error' }, + { inputs: [], name: 'RewardsDistribution__CannotWithdrawFromSelf', type: 'error' }, + { inputs: [], name: 'RewardsDistribution__ExpiredDeadline', type: 'error' }, + { inputs: [], name: 'RewardsDistribution__InvalidSignature', type: 'error' }, + { inputs: [], name: 'RewardsDistribution__NoPendingWithdrawal', type: 'error' }, + { inputs: [], name: 'RewardsDistribution__NotActiveOperator', type: 'error' }, + { inputs: [], name: 'RewardsDistribution__NotBeneficiary', type: 'error' }, + { inputs: [], name: 'RewardsDistribution__NotClaimer', type: 'error' }, + { inputs: [], name: 'RewardsDistribution__NotDepositOwner', type: 'error' }, + { inputs: [], name: 'RewardsDistribution__NotOperatorOrSpace', type: 'error' }, + { inputs: [], name: 'RewardsDistribution__NotRewardNotifier', type: 'error' }, { - "inputs": [ - { - "internalType": "address", - "name": "approver", - "type": "address" - } + anonymous: false, + inputs: [ + { indexed: true, internalType: 'uint256', name: 'depositId', type: 'uint256' }, + { indexed: true, internalType: 'address', name: 'newBeneficiary', type: 'address' }, ], - "name": "ERC20InvalidApprover", - "type": "error" + name: 'ChangeBeneficiary', + type: 'event', }, { - "inputs": [ - { - "internalType": "address", - "name": "receiver", - "type": "address" - } + anonymous: false, + inputs: [ + { indexed: true, internalType: 'address', name: 'beneficiary', type: 'address' }, + { indexed: true, internalType: 'address', name: 'recipient', type: 'address' }, + { indexed: false, internalType: 'uint256', name: 'reward', type: 'uint256' }, ], - "name": "ERC20InvalidReceiver", - "type": "error" + name: 'ClaimReward', + type: 'event', }, { - "inputs": [ - { - "internalType": "address", - "name": "sender", - "type": "address" - } + anonymous: false, + inputs: [ + { indexed: true, internalType: 'address', name: 'delegator', type: 'address' }, + { indexed: true, internalType: 'address', name: 'claimer', type: 'address' }, ], - "name": "ERC20InvalidSender", - "type": "error" + name: 'ClaimerSet', + type: 'event', }, { - "inputs": [ - { - "internalType": "address", - "name": "spender", - "type": "address" - } + anonymous: false, + inputs: [ + { indexed: true, internalType: 'uint256', name: 'depositId', type: 'uint256' }, + { indexed: true, internalType: 'address', name: 'delegatee', type: 'address' }, + { indexed: false, internalType: 'address', name: 'proxy', type: 'address' }, ], - "name": "ERC20InvalidSpender", - "type": "error" + name: 'DelegationProxyDeployed', + type: 'event', }, { - "inputs": [ - { - "internalType": "uint256", - "name": "deadline", - "type": "uint256" - } - ], - "name": "ERC2612ExpiredSignature", - "type": "error" + anonymous: false, + inputs: [{ indexed: true, internalType: 'address', name: 'delegator', type: 'address' }], + name: 'DelegationRemoved', + type: 'event', }, { - "inputs": [ - { - "internalType": "address", - "name": "signer", - "type": "address" - }, - { - "internalType": "address", - "name": "owner", - "type": "address" - } + anonymous: false, + inputs: [ + { indexed: true, internalType: 'address', name: 'delegator', type: 'address' }, + { indexed: true, internalType: 'address', name: 'operator', type: 'address' }, + { indexed: false, internalType: 'uint256', name: 'quantity', type: 'uint256' }, ], - "name": "ERC2612InvalidSigner", - "type": "error" + name: 'DelegationSet', + type: 'event', }, { - "inputs": [ - { - "internalType": "uint256", - "name": "timepoint", - "type": "uint256" - }, - { - "internalType": "uint48", - "name": "clock", - "type": "uint48" - } + anonymous: false, + inputs: [ + { indexed: true, internalType: 'uint256', name: 'depositId', type: 'uint256' }, + { indexed: false, internalType: 'uint96', name: 'amount', type: 'uint96' }, ], - "name": "ERC5805FutureLookup", - "type": "error" + name: 'IncreaseStake', + type: 'event', }, { - "inputs": [], - "name": "ERC6372InconsistentClock", - "type": "error" + anonymous: false, + inputs: [{ indexed: false, internalType: 'uint32', name: 'version', type: 'uint32' }], + name: 'Initialized', + type: 'event', }, { - "inputs": [], - "name": "Introspection_AlreadySupported", - "type": "error" + anonymous: false, + inputs: [ + { indexed: true, internalType: 'address', name: 'owner', type: 'address' }, + { indexed: true, internalType: 'uint256', name: 'depositId', type: 'uint256' }, + { indexed: false, internalType: 'uint96', name: 'amount', type: 'uint96' }, + ], + name: 'InitiateWithdraw', + type: 'event', }, { - "inputs": [], - "name": "Introspection_NotSupported", - "type": "error" + anonymous: false, + inputs: [{ indexed: true, internalType: 'bytes4', name: 'interfaceId', type: 'bytes4' }], + name: 'InterfaceAdded', + type: 'event', }, { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "internalType": "uint256", - "name": "currentNonce", - "type": "uint256" - } - ], - "name": "InvalidAccountNonce", - "type": "error" + anonymous: false, + inputs: [{ indexed: true, internalType: 'bytes4', name: 'interfaceId', type: 'bytes4' }], + name: 'InterfaceRemoved', + type: 'event', }, { - "inputs": [], - "name": "InvalidShortString", - "type": "error" + anonymous: false, + inputs: [ + { indexed: true, internalType: 'address', name: 'notifier', type: 'address' }, + { indexed: false, internalType: 'uint256', name: 'reward', type: 'uint256' }, + ], + name: 'NotifyRewardAmount', + type: 'event', }, { - "inputs": [], - "name": "LockAlreadyDisabled", - "type": "error" + anonymous: false, + inputs: [ + { indexed: true, internalType: 'address', name: 'previousOwner', type: 'address' }, + { indexed: true, internalType: 'address', name: 'newOwner', type: 'address' }, + ], + name: 'OwnershipTransferred', + type: 'event', }, { - "inputs": [], - "name": "LockAlreadyEnabled", - "type": "error" + anonymous: false, + inputs: [ + { indexed: true, internalType: 'uint256', name: 'depositId', type: 'uint256' }, + { indexed: true, internalType: 'address', name: 'delegatee', type: 'address' }, + ], + name: 'Redelegate', + type: 'event', }, { - "inputs": [], - "name": "LockNotAuthorized", - "type": "error" + anonymous: false, + inputs: [ + { indexed: true, internalType: 'address', name: 'notifier', type: 'address' }, + { indexed: false, internalType: 'bool', name: 'enabled', type: 'bool' }, + ], + name: 'RewardNotifierSet', + type: 'event', }, { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } + anonymous: false, + inputs: [ + { indexed: false, internalType: 'address', name: 'stakeToken', type: 'address' }, + { indexed: false, internalType: 'address', name: 'rewardToken', type: 'address' }, + { indexed: false, internalType: 'uint256', name: 'rewardDuration', type: 'uint256' }, ], - "name": "OwnableInvalidOwner", - "type": "error" + name: 'RewardsDistributionInitialized', + type: 'event', }, { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } + anonymous: false, + inputs: [ + { indexed: true, internalType: 'address', name: 'space', type: 'address' }, + { indexed: true, internalType: 'address', name: 'operator', type: 'address' }, + { indexed: false, internalType: 'uint256', name: 'scaledReward', type: 'uint256' }, ], - "name": "OwnableUnauthorizedAccount", - "type": "error" + name: 'SpaceRewardsSwept', + type: 'event', }, { - "inputs": [], - "name": "River__DelegateeSameAsCurrent", - "type": "error" + anonymous: false, + inputs: [ + { indexed: true, internalType: 'address', name: 'owner', type: 'address' }, + { indexed: true, internalType: 'address', name: 'delegatee', type: 'address' }, + { indexed: true, internalType: 'address', name: 'beneficiary', type: 'address' }, + { indexed: false, internalType: 'uint256', name: 'depositId', type: 'uint256' }, + { indexed: false, internalType: 'uint96', name: 'amount', type: 'uint96' }, + ], + name: 'Stake', + type: 'event', }, { - "inputs": [], - "name": "River__InvalidTokenAmount", - "type": "error" + anonymous: false, + inputs: [{ indexed: true, internalType: 'address', name: 'implementation', type: 'address' }], + name: 'Upgraded', + type: 'event', }, { - "inputs": [], - "name": "River__TransferLockEnabled", - "type": "error" + anonymous: false, + inputs: [ + { indexed: true, internalType: 'uint256', name: 'depositId', type: 'uint256' }, + { indexed: false, internalType: 'uint96', name: 'amount', type: 'uint96' }, + ], + name: 'Withdraw', + type: 'event', }, { - "inputs": [ - { - "internalType": "uint8", - "name": "bits", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } + inputs: [ + { internalType: 'address', name: 'stakeToken', type: 'address' }, + { internalType: 'address', name: 'rewardToken', type: 'address' }, + { internalType: 'uint256', name: 'rewardDuration', type: 'uint256' }, ], - "name": "SafeCastOverflowedUintDowncast", - "type": "error" + name: '__RewardsDistribution_init', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [ - { - "internalType": "string", - "name": "str", - "type": "string" - } + inputs: [ + { internalType: 'uint256', name: 'depositId', type: 'uint256' }, + { internalType: 'address', name: 'newBeneficiary', type: 'address' }, ], - "name": "StringTooLong", - "type": "error" + name: 'changeBeneficiary', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [ - { - "internalType": "uint256", - "name": "expiry", - "type": "uint256" - } + inputs: [ + { internalType: 'address', name: 'beneficiary', type: 'address' }, + { internalType: 'address', name: 'recipient', type: 'address' }, ], - "name": "VotesExpiredSignature", - "type": "error" + name: 'claimReward', + outputs: [{ internalType: 'uint256', name: 'reward', type: 'uint256' }], + stateMutability: 'nonpayable', + type: 'function', }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "Approval", - "type": "event" + inputs: [{ internalType: 'address', name: 'beneficiary', type: 'address' }], + name: 'currentReward', + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + stateMutability: 'view', + type: 'function', }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "delegator", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "fromDelegate", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "toDelegate", - "type": "address" - } - ], - "name": "DelegateChanged", - "type": "event" + inputs: [], + name: 'currentRewardPerTokenAccumulated', + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + stateMutability: 'view', + type: 'function', }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "delegate", - "type": "address" - }, + inputs: [{ internalType: 'address', name: 'operator', type: 'address' }], + name: 'currentSpaceDelegationReward', + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [{ internalType: 'uint256', name: 'depositId', type: 'uint256' }], + name: 'delegationProxyById', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [{ internalType: 'uint256', name: 'depositId', type: 'uint256' }], + name: 'depositById', + outputs: [ { - "indexed": false, - "internalType": "uint256", - "name": "previousVotes", - "type": "uint256" + components: [ + { internalType: 'uint96', name: 'amount', type: 'uint96' }, + { internalType: 'address', name: 'owner', type: 'address' }, + { internalType: 'uint96', name: 'commissionEarningPower', type: 'uint96' }, + { internalType: 'address', name: 'delegatee', type: 'address' }, + { internalType: 'uint96', name: 'pendingWithdrawal', type: 'uint96' }, + { internalType: 'address', name: 'beneficiary', type: 'address' }, + ], + internalType: 'struct StakingRewards.Deposit', + name: 'deposit', + type: 'tuple', }, - { - "indexed": false, - "internalType": "uint256", - "name": "newVotes", - "type": "uint256" - } ], - "name": "DelegateVotesChanged", - "type": "event" + stateMutability: 'view', + type: 'function', }, { - "anonymous": false, - "inputs": [], - "name": "EIP712DomainChanged", - "type": "event" + inputs: [{ internalType: 'address', name: 'depositor', type: 'address' }], + name: 'getDepositsByDepositor', + outputs: [{ internalType: 'uint256[]', name: '', type: 'uint256[]' }], + stateMutability: 'view', + type: 'function', }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "InterfaceAdded", - "type": "event" + inputs: [], + name: 'implementation', + outputs: [{ internalType: 'address', name: 'result', type: 'address' }], + stateMutability: 'view', + type: 'function', }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } + inputs: [ + { internalType: 'uint256', name: 'depositId', type: 'uint256' }, + { internalType: 'uint96', name: 'amount', type: 'uint96' }, ], - "name": "InterfaceRemoved", - "type": "event" + name: 'increaseStake', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "caller", - "type": "address" - }, - { - "indexed": true, - "internalType": "bool", - "name": "enabled", - "type": "bool" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "cooldown", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - } - ], - "name": "LockUpdated", - "type": "event" + inputs: [{ internalType: 'uint256', name: 'depositId', type: 'uint256' }], + name: 'initiateWithdraw', + outputs: [{ internalType: 'uint96', name: 'amount', type: 'uint96' }], + stateMutability: 'nonpayable', + type: 'function', }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" + inputs: [{ internalType: 'address', name: 'notifier', type: 'address' }], + name: 'isRewardNotifier', + outputs: [{ internalType: 'bool', name: '', type: 'bool' }], + stateMutability: 'view', + type: 'function', }, { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "threshold", - "type": "uint256" - } - ], - "name": "TokenThresholdSet", - "type": "event" + inputs: [], + name: 'lastTimeRewardDistributed', + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + stateMutability: 'view', + type: 'function', }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } + inputs: [{ internalType: 'uint256', name: 'reward', type: 'uint256' }], + name: 'notifyRewardAmount', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { internalType: 'uint96', name: 'amount', type: 'uint96' }, + { internalType: 'address', name: 'delegatee', type: 'address' }, + { internalType: 'address', name: 'beneficiary', type: 'address' }, + { internalType: 'uint256', name: 'deadline', type: 'uint256' }, + { internalType: 'uint8', name: 'v', type: 'uint8' }, + { internalType: 'bytes32', name: 'r', type: 'bytes32' }, + { internalType: 'bytes32', name: 's', type: 'bytes32' }, ], - "name": "Transfer", - "type": "event" + name: 'permitAndStake', + outputs: [{ internalType: 'uint256', name: 'depositId', type: 'uint256' }], + stateMutability: 'nonpayable', + type: 'function', }, - // { - // "inputs": [], - // "name": "BRIDGE", - // "outputs": [ - // { - // "internalType": "address", - // "name": "", - // "type": "address" - // } - // ], - // "stateMutability": "view", - // "type": "function" - // }, { - "inputs": [], - "name": "CLOCK_MODE", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } + inputs: [ + { internalType: 'uint256', name: 'depositId', type: 'uint256' }, + { internalType: 'address', name: 'delegatee', type: 'address' }, ], - "stateMutability": "pure", - "type": "function" + name: 'redelegate', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [], - "name": "DOMAIN_SEPARATOR", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } + inputs: [ + { internalType: 'address', name: 'notifier', type: 'address' }, + { internalType: 'bool', name: 'enabled', type: 'bool' }, ], - "stateMutability": "view", - "type": "function" + name: 'setRewardNotifier', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [], - "name": "MIN_TOKEN_THRESHOLD", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } + inputs: [ + { internalType: 'uint96', name: 'amount', type: 'uint96' }, + { internalType: 'address', name: 'delegatee', type: 'address' }, + { internalType: 'address', name: 'beneficiary', type: 'address' }, ], - "stateMutability": "view", - "type": "function" + name: 'stake', + outputs: [{ internalType: 'uint256', name: 'depositId', type: 'uint256' }], + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [], - "name": "REMOTE_TOKEN", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } + inputs: [ + { internalType: 'uint96', name: 'amount', type: 'uint96' }, + { internalType: 'address', name: 'delegatee', type: 'address' }, + { internalType: 'address', name: 'beneficiary', type: 'address' }, + { internalType: 'address', name: 'owner', type: 'address' }, + { internalType: 'uint256', name: 'deadline', type: 'uint256' }, + { internalType: 'bytes', name: 'signature', type: 'bytes' }, ], - "stateMutability": "view", - "type": "function" + name: 'stakeOnBehalf', + outputs: [{ internalType: 'uint256', name: 'depositId', type: 'uint256' }], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [{ internalType: 'address', name: 'depositor', type: 'address' }], + name: 'stakedByDepositor', + outputs: [{ internalType: 'uint96', name: 'amount', type: 'uint96' }], + stateMutability: 'view', + type: 'function', }, { - "inputs": [ + inputs: [], + name: 'stakingState', + outputs: [ { - "internalType": "address", - "name": "owner", - "type": "address" + components: [ + { internalType: 'address', name: 'riverToken', type: 'address' }, + { internalType: 'uint96', name: 'totalStaked', type: 'uint96' }, + { internalType: 'uint256', name: 'rewardDuration', type: 'uint256' }, + { internalType: 'uint256', name: 'rewardEndTime', type: 'uint256' }, + { internalType: 'uint256', name: 'lastUpdateTime', type: 'uint256' }, + { internalType: 'uint256', name: 'rewardRate', type: 'uint256' }, + { internalType: 'uint256', name: 'rewardPerTokenAccumulated', type: 'uint256' }, + { internalType: 'uint256', name: 'nextDepositId', type: 'uint256' }, + ], + internalType: 'struct IRewardsDistributionBase.StakingState', + name: 'state', + type: 'tuple', }, - { - "internalType": "address", - "name": "spender", - "type": "address" - } ], - "name": "allowance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" + stateMutability: 'view', + type: 'function', }, { - "inputs": [ + inputs: [{ internalType: 'address', name: 'beneficiary', type: 'address' }], + name: 'treasureByBeneficiary', + outputs: [ { - "internalType": "address", - "name": "spender", - "type": "address" + components: [ + { internalType: 'uint96', name: 'earningPower', type: 'uint96' }, + { internalType: 'uint256', name: 'rewardPerTokenAccumulated', type: 'uint256' }, + { internalType: 'uint256', name: 'unclaimedRewardSnapshot', type: 'uint256' }, + ], + internalType: 'struct StakingRewards.Treasure', + name: 'treasure', + type: 'tuple', }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "approve", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } ], - "stateMutability": "nonpayable", - "type": "function" + stateMutability: 'view', + type: 'function', }, { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "balanceOf", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" + inputs: [{ internalType: 'address', name: 'newImplementation', type: 'address' }], + name: 'upgradeDelegationProxy', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [], - "name": "bridge", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" + inputs: [{ internalType: 'uint256', name: 'depositId', type: 'uint256' }], + name: 'withdraw', + outputs: [{ internalType: 'uint96', name: 'amount', type: 'uint96' }], + stateMutability: 'nonpayable', + type: 'function', }, +] as const + +// https://sepolia.basescan.org/address/0x4c16c148a9E2e33149e8394fE2A99495500d4923#code +const mainnetDelegationAbi = [ { - "inputs": [ - { - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } + inputs: [ + { internalType: 'address', name: 'delegator', type: 'address' }, + { internalType: 'address', name: 'operator', type: 'address' }, ], - "name": "burn", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + name: 'DelegationAlreadySet', + type: 'error', }, + { inputs: [], name: 'DelegationNotSet', type: 'error' }, + { inputs: [], name: 'Initializable_InInitializingState', type: 'error' }, + { inputs: [], name: 'Initializable_NotInInitializingState', type: 'error' }, + { inputs: [], name: 'Introspection_AlreadySupported', type: 'error' }, + { inputs: [], name: 'Introspection_NotSupported', type: 'error' }, { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "internalType": "uint32", - "name": "pos", - "type": "uint32" - } - ], - "name": "checkpoints", - "outputs": [ - { - "components": [ - { - "internalType": "uint48", - "name": "_key", - "type": "uint48" - }, - { - "internalType": "uint208", - "name": "_value", - "type": "uint208" - } - ], - "internalType": "struct Checkpoints.Checkpoint208", - "name": "", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" + inputs: [{ internalType: 'address', name: 'claimer', type: 'address' }], + name: 'InvalidClaimer', + type: 'error', }, { - "inputs": [], - "name": "clock", - "outputs": [ - { - "internalType": "uint48", - "name": "", - "type": "uint48" - } - ], - "stateMutability": "view", - "type": "function" + inputs: [{ internalType: 'address', name: 'delegator', type: 'address' }], + name: 'InvalidDelegator', + type: 'error', }, { - "inputs": [], - "name": "decimals", - "outputs": [ - { - "internalType": "uint8", - "name": "", - "type": "uint8" - } - ], - "stateMutability": "view", - "type": "function" + inputs: [{ internalType: 'address', name: 'operator', type: 'address' }], + name: 'InvalidOperator', + type: 'error', }, { - "inputs": [ - { - "internalType": "address", - "name": "delegatee", - "type": "address" - } - ], - "name": "delegate", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + inputs: [{ internalType: 'address', name: 'owner', type: 'address' }], + name: 'InvalidOwner', + type: 'error', }, { - "inputs": [ - { - "internalType": "address", - "name": "delegatee", - "type": "address" - }, - { - "internalType": "uint256", - "name": "nonce", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "expiry", - "type": "uint256" - }, - { - "internalType": "uint8", - "name": "v", - "type": "uint8" - }, - { - "internalType": "bytes32", - "name": "r", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "s", - "type": "bytes32" - } - ], - "name": "delegateBySig", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + inputs: [{ internalType: 'uint256', name: 'quantity', type: 'uint256' }], + name: 'InvalidQuantity', + type: 'error', }, { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "delegates", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" + inputs: [{ internalType: 'address', name: 'account', type: 'address' }], + name: 'Ownable__NotOwner', + type: 'error', }, + { inputs: [], name: 'Ownable__ZeroAddress', type: 'error' }, { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } + anonymous: false, + inputs: [ + { indexed: true, internalType: 'address', name: 'delegator', type: 'address' }, + { indexed: true, internalType: 'address', name: 'claimer', type: 'address' }, ], - "name": "disableLock", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + name: 'ClaimerSet', + type: 'event', }, { - "inputs": [], - "name": "eip712Domain", - "outputs": [ - { - "internalType": "bytes1", - "name": "fields", - "type": "bytes1" - }, - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "string", - "name": "version", - "type": "string" - }, - { - "internalType": "uint256", - "name": "chainId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "verifyingContract", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "salt", - "type": "bytes32" - }, - { - "internalType": "uint256[]", - "name": "extensions", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" + anonymous: false, + inputs: [{ indexed: true, internalType: 'address', name: 'delegator', type: 'address' }], + name: 'DelegationRemoved', + type: 'event', }, { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } + anonymous: false, + inputs: [ + { indexed: true, internalType: 'address', name: 'delegator', type: 'address' }, + { indexed: true, internalType: 'address', name: 'operator', type: 'address' }, + { indexed: false, internalType: 'uint256', name: 'quantity', type: 'uint256' }, ], - "name": "enableLock", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + name: 'DelegationSet', + type: 'event', }, { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getDelegationTimeForDelegator", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" + anonymous: false, + inputs: [{ indexed: false, internalType: 'uint32', name: 'version', type: 'uint32' }], + name: 'Initialized', + type: 'event', }, { - "inputs": [], - "name": "getDelegators", - "outputs": [ - { - "internalType": "address[]", - "name": "", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" + anonymous: false, + inputs: [{ indexed: true, internalType: 'bytes4', name: 'interfaceId', type: 'bytes4' }], + name: 'InterfaceAdded', + type: 'event', }, { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getDelegatorsByDelegatee", - "outputs": [ - { - "internalType": "address[]", - "name": "", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" + anonymous: false, + inputs: [{ indexed: true, internalType: 'bytes4', name: 'interfaceId', type: 'bytes4' }], + name: 'InterfaceRemoved', + type: 'event', }, { - "inputs": [ - { - "internalType": "uint256", - "name": "timepoint", - "type": "uint256" - } - ], - "name": "getPastTotalSupply", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } + anonymous: false, + inputs: [ + { indexed: true, internalType: 'address', name: 'previousOwner', type: 'address' }, + { indexed: true, internalType: 'address', name: 'newOwner', type: 'address' }, ], - "stateMutability": "view", - "type": "function" + name: 'OwnershipTransferred', + type: 'event', + }, + { + inputs: [{ internalType: 'address', name: 'messenger', type: 'address' }], + name: '__MainnetDelegation_init', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [{ internalType: 'address', name: 'owner', type: 'address' }], + name: 'getAuthorizedClaimer', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [{ internalType: 'address', name: 'operator', type: 'address' }], + name: 'getDelegatedStakeByOperator', + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + stateMutability: 'view', + type: 'function', }, { - "inputs": [ + inputs: [{ internalType: 'address', name: 'delegator', type: 'address' }], + name: 'getDelegationByDelegator', + outputs: [ { - "internalType": "address", - "name": "account", - "type": "address" + components: [ + { internalType: 'address', name: 'operator', type: 'address' }, + { internalType: 'uint256', name: 'quantity', type: 'uint256' }, + { internalType: 'address', name: 'delegator', type: 'address' }, + { internalType: 'uint256', name: 'delegationTime', type: 'uint256' }, + ], + internalType: 'struct IMainnetDelegationBase.Delegation', + name: '', + type: 'tuple', }, - { - "internalType": "uint256", - "name": "timepoint", - "type": "uint256" - } ], - "name": "getPastVotes", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" + stateMutability: 'view', + type: 'function', }, { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getVotes", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" + inputs: [{ internalType: 'address', name: 'delegator', type: 'address' }], + name: 'getDepositIdByDelegator', + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + stateMutability: 'view', + type: 'function', }, { - "inputs": [ + inputs: [{ internalType: 'address', name: 'operator', type: 'address' }], + name: 'getMainnetDelegationsByOperator', + outputs: [ { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "isLockEnabled", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } + components: [ + { internalType: 'address', name: 'operator', type: 'address' }, + { internalType: 'uint256', name: 'quantity', type: 'uint256' }, + { internalType: 'address', name: 'delegator', type: 'address' }, + { internalType: 'uint256', name: 'delegationTime', type: 'uint256' }, + ], + internalType: 'struct IMainnetDelegationBase.Delegation[]', + name: '', + type: 'tuple[]', + }, ], - "stateMutability": "view", - "type": "function" + stateMutability: 'view', + type: 'function', }, { - "inputs": [], - "name": "l1Token", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" + inputs: [], + name: 'getMessenger', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + stateMutability: 'view', + type: 'function', }, { - "inputs": [], - "name": "l2Bridge", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" + inputs: [], + name: 'getProxyDelegation', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + stateMutability: 'view', + type: 'function', }, { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "lockCooldown", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" + inputs: [{ internalType: 'address[]', name: 'delegators', type: 'address[]' }], + name: 'removeDelegations', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [ - { - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } + inputs: [ + { internalType: 'address', name: 'owner', type: 'address' }, + { internalType: 'address', name: 'claimer', type: 'address' }, ], - "name": "mint", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + name: 'setAuthorizedClaimer', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [], - "name": "name", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } + inputs: [ + { internalType: 'address[]', name: 'delegators', type: 'address[]' }, + { internalType: 'address[]', name: 'claimers', type: 'address[]' }, ], - "stateMutability": "view", - "type": "function" + name: 'setBatchAuthorizedClaimers', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } + inputs: [ + { internalType: 'address[]', name: 'delegators', type: 'address[]' }, + { internalType: 'address[]', name: 'delegates', type: 'address[]' }, + { internalType: 'address[]', name: 'claimers', type: 'address[]' }, + { internalType: 'uint256[]', name: 'quantities', type: 'uint256[]' }, ], - "name": "nonces", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" + name: 'setBatchDelegation', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "numCheckpoints", - "outputs": [ - { - "internalType": "uint32", - "name": "", - "type": "uint32" - } + inputs: [ + { internalType: 'address', name: 'delegator', type: 'address' }, + { internalType: 'address', name: 'operator', type: 'address' }, + { internalType: 'uint256', name: 'quantity', type: 'uint256' }, ], - "stateMutability": "view", - "type": "function" + name: 'setDelegation', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" + inputs: [{ internalType: 'address', name: 'proxyDelegation', type: 'address' }], + name: 'setProxyDelegation', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, +] as const + +const riverTokenAbi = [ { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "deadline", - "type": "uint256" - }, - { - "internalType": "uint8", - "name": "v", - "type": "uint8" - }, - { - "internalType": "bytes32", - "name": "r", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "s", - "type": "bytes32" - } + inputs: [ + { internalType: 'address', name: '_bridge', type: 'address' }, + { internalType: 'address', name: '_remoteToken', type: 'address' }, ], - "name": "permit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + stateMutability: 'nonpayable', + type: 'constructor', }, - // { - // "inputs": [], - // "name": "remoteToken", - // "outputs": [ - // { - // "internalType": "address", - // "name": "", - // "type": "address" - // } - // ], - // "stateMutability": "view", - // "type": "function" - // }, + { inputs: [], name: 'CheckpointUnorderedInsertion', type: 'error' }, + { inputs: [], name: 'ECDSAInvalidSignature', type: 'error' }, { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + inputs: [{ internalType: 'uint256', name: 'length', type: 'uint256' }], + name: 'ECDSAInvalidSignatureLength', + type: 'error', }, { - "inputs": [ - { - "internalType": "uint256", - "name": "cooldown", - "type": "uint256" - } - ], - "name": "setLockCooldown", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + inputs: [{ internalType: 'bytes32', name: 's', type: 'bytes32' }], + name: 'ECDSAInvalidSignatureS', + type: 'error', }, { - "inputs": [ - { - "internalType": "uint256", - "name": "threshold", - "type": "uint256" - } + inputs: [ + { internalType: 'uint256', name: 'increasedSupply', type: 'uint256' }, + { internalType: 'uint256', name: 'cap', type: 'uint256' }, ], - "name": "setTokenThreshold", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + name: 'ERC20ExceededSafeSupply', + type: 'error', }, { - "inputs": [ - { - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } + inputs: [ + { internalType: 'address', name: 'spender', type: 'address' }, + { internalType: 'uint256', name: 'allowance', type: 'uint256' }, + { internalType: 'uint256', name: 'needed', type: 'uint256' }, ], - "name": "supportsInterface", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } + name: 'ERC20InsufficientAllowance', + type: 'error', + }, + { + inputs: [ + { internalType: 'address', name: 'sender', type: 'address' }, + { internalType: 'uint256', name: 'balance', type: 'uint256' }, + { internalType: 'uint256', name: 'needed', type: 'uint256' }, ], - "stateMutability": "view", - "type": "function" + name: 'ERC20InsufficientBalance', + type: 'error', }, { - "inputs": [], - "name": "symbol", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } + inputs: [{ internalType: 'address', name: 'approver', type: 'address' }], + name: 'ERC20InvalidApprover', + type: 'error', + }, + { + inputs: [{ internalType: 'address', name: 'receiver', type: 'address' }], + name: 'ERC20InvalidReceiver', + type: 'error', + }, + { + inputs: [{ internalType: 'address', name: 'sender', type: 'address' }], + name: 'ERC20InvalidSender', + type: 'error', + }, + { + inputs: [{ internalType: 'address', name: 'spender', type: 'address' }], + name: 'ERC20InvalidSpender', + type: 'error', + }, + { + inputs: [{ internalType: 'uint256', name: 'deadline', type: 'uint256' }], + name: 'ERC2612ExpiredSignature', + type: 'error', + }, + { + inputs: [ + { internalType: 'address', name: 'signer', type: 'address' }, + { internalType: 'address', name: 'owner', type: 'address' }, ], - "stateMutability": "view", - "type": "function" + name: 'ERC2612InvalidSigner', + type: 'error', }, { - "inputs": [], - "name": "totalSupply", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } + inputs: [ + { internalType: 'uint256', name: 'timepoint', type: 'uint256' }, + { internalType: 'uint48', name: 'clock', type: 'uint48' }, ], - "stateMutability": "view", - "type": "function" + name: 'ERC5805FutureLookup', + type: 'error', }, + { inputs: [], name: 'ERC6372InconsistentClock', type: 'error' }, + { inputs: [], name: 'Initializable_InInitializingState', type: 'error' }, + { inputs: [], name: 'Initializable_NotInInitializingState', type: 'error' }, + { inputs: [], name: 'Introspection_AlreadySupported', type: 'error' }, + { inputs: [], name: 'Introspection_NotSupported', type: 'error' }, { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } + inputs: [ + { internalType: 'address', name: 'account', type: 'address' }, + { internalType: 'uint256', name: 'currentNonce', type: 'uint256' }, ], - "name": "transfer", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } + name: 'InvalidAccountNonce', + type: 'error', + }, + { inputs: [], name: 'InvalidShortString', type: 'error' }, + { inputs: [], name: 'LockNotAuthorized', type: 'error' }, + { + inputs: [{ internalType: 'address', name: 'owner', type: 'address' }], + name: 'OwnableInvalidOwner', + type: 'error', + }, + { + inputs: [{ internalType: 'address', name: 'account', type: 'address' }], + name: 'OwnableUnauthorizedAccount', + type: 'error', + }, + { inputs: [], name: 'River__DelegateeSameAsCurrent', type: 'error' }, + { inputs: [], name: 'River__TransferLockEnabled', type: 'error' }, + { + inputs: [ + { internalType: 'uint8', name: 'bits', type: 'uint8' }, + { internalType: 'uint256', name: 'value', type: 'uint256' }, ], - "stateMutability": "nonpayable", - "type": "function" + name: 'SafeCastOverflowedUintDowncast', + type: 'error', }, { - "inputs": [ - { - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } + inputs: [{ internalType: 'string', name: 'str', type: 'string' }], + name: 'StringTooLong', + type: 'error', + }, + { + inputs: [{ internalType: 'uint256', name: 'expiry', type: 'uint256' }], + name: 'VotesExpiredSignature', + type: 'error', + }, + { + anonymous: false, + inputs: [ + { indexed: true, internalType: 'address', name: 'owner', type: 'address' }, + { indexed: true, internalType: 'address', name: 'spender', type: 'address' }, + { indexed: false, internalType: 'uint256', name: 'value', type: 'uint256' }, ], - "name": "transferFrom", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } + name: 'Approval', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { indexed: true, internalType: 'address', name: 'delegator', type: 'address' }, + { indexed: true, internalType: 'address', name: 'fromDelegate', type: 'address' }, + { indexed: true, internalType: 'address', name: 'toDelegate', type: 'address' }, ], - "stateMutability": "nonpayable", - "type": "function" + name: 'DelegateChanged', + type: 'event', }, { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } + anonymous: false, + inputs: [ + { indexed: true, internalType: 'address', name: 'delegate', type: 'address' }, + { indexed: false, internalType: 'uint256', name: 'previousVotes', type: 'uint256' }, + { indexed: false, internalType: 'uint256', name: 'newVotes', type: 'uint256' }, ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + name: 'DelegateVotesChanged', + type: 'event', }, + { anonymous: false, inputs: [], name: 'EIP712DomainChanged', type: 'event' }, { - "inputs": [], - "name": "version", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - } -] as const - -const RiverClaimerAbi = [ - { - "inputs": [ - { - "internalType": "address", - "name": "target", - "type": "address" - } - ], - "name": "AddressEmptyCode", - "type": "error" + anonymous: false, + inputs: [{ indexed: false, internalType: 'uint32', name: 'version', type: 'uint32' }], + name: 'Initialized', + type: 'event', }, { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "AddressInsufficientBalance", - "type": "error" + anonymous: false, + inputs: [{ indexed: true, internalType: 'bytes4', name: 'interfaceId', type: 'bytes4' }], + name: 'InterfaceAdded', + type: 'event', }, { - "inputs": [], - "name": "ApprovalCallerNotOwnerNorApproved", - "type": "error" + anonymous: false, + inputs: [{ indexed: true, internalType: 'bytes4', name: 'interfaceId', type: 'bytes4' }], + name: 'InterfaceRemoved', + type: 'event', }, { - "inputs": [], - "name": "ApprovalQueryForNonexistentToken", - "type": "error" + anonymous: false, + inputs: [ + { indexed: true, internalType: 'address', name: 'caller', type: 'address' }, + { indexed: true, internalType: 'bool', name: 'enabled', type: 'bool' }, + { indexed: false, internalType: 'uint256', name: 'cooldown', type: 'uint256' }, + ], + name: 'LockUpdated', + type: 'event', }, { - "inputs": [], - "name": "BalanceQueryForZeroAddress", - "type": "error" + anonymous: false, + inputs: [ + { indexed: true, internalType: 'address', name: 'previousOwner', type: 'address' }, + { indexed: true, internalType: 'address', name: 'newOwner', type: 'address' }, + ], + name: 'OwnershipTransferred', + type: 'event', }, { - "inputs": [ - { - "internalType": "address", - "name": "delegator", - "type": "address" - }, - { - "internalType": "address", - "name": "operator", - "type": "address" - } - ], - "name": "DelegationAlreadySet", - "type": "error" + anonymous: false, + inputs: [{ indexed: false, internalType: 'uint256', name: 'threshold', type: 'uint256' }], + name: 'TokenThresholdSet', + type: 'event', }, { - "inputs": [], - "name": "DelegationNotSet", - "type": "error" + anonymous: false, + inputs: [ + { indexed: true, internalType: 'address', name: 'from', type: 'address' }, + { indexed: true, internalType: 'address', name: 'to', type: 'address' }, + { indexed: false, internalType: 'uint256', name: 'value', type: 'uint256' }, + ], + name: 'Transfer', + type: 'event', }, + // { + // inputs: [], + // name: 'BRIDGE', + // outputs: [{ internalType: 'address', name: '', type: 'address' }], + // stateMutability: 'view', + // type: 'function', + // }, { - "inputs": [], - "name": "FailedInnerCall", - "type": "error" + inputs: [], + name: 'CLOCK_MODE', + outputs: [{ internalType: 'string', name: '', type: 'string' }], + stateMutability: 'pure', + type: 'function', }, { - "inputs": [], - "name": "Initializable_InInitializingState", - "type": "error" + inputs: [], + name: 'DOMAIN_SEPARATOR', + outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], + stateMutability: 'view', + type: 'function', }, + // { + // inputs: [], + // name: 'REMOTE_TOKEN', + // outputs: [{ internalType: 'address', name: '', type: 'address' }], + // stateMutability: 'view', + // type: 'function', + // }, { - "inputs": [], - "name": "Initializable_NotInInitializingState", - "type": "error" + inputs: [], + name: '__Introspection_init', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [], - "name": "Introspection_AlreadySupported", - "type": "error" + inputs: [{ internalType: 'uint256', name: 'cooldown', type: 'uint256' }], + name: '__LockFacet_init', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [], - "name": "Introspection_NotSupported", - "type": "error" + inputs: [ + { internalType: 'address', name: 'owner', type: 'address' }, + { internalType: 'address', name: 'spender', type: 'address' }, + ], + name: 'allowance', + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + stateMutability: 'view', + type: 'function', }, { - "inputs": [ - { - "internalType": "address", - "name": "claimer", - "type": "address" - } - ], - "name": "InvalidClaimer", - "type": "error" + inputs: [ + { internalType: 'address', name: 'spender', type: 'address' }, + { internalType: 'uint256', name: 'value', type: 'uint256' }, + ], + name: 'approve', + outputs: [{ internalType: 'bool', name: '', type: 'bool' }], + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [ - { - "internalType": "address", - "name": "delegator", - "type": "address" - } - ], - "name": "InvalidDelegator", - "type": "error" + inputs: [{ internalType: 'address', name: 'account', type: 'address' }], + name: 'balanceOf', + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + stateMutability: 'view', + type: 'function', }, { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - } - ], - "name": "InvalidOperator", - "type": "error" + inputs: [], + name: 'bridge', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + stateMutability: 'view', + type: 'function', }, { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "InvalidOwner", - "type": "error" + inputs: [ + { internalType: 'address', name: 'from', type: 'address' }, + { internalType: 'uint256', name: 'amount', type: 'uint256' }, + ], + name: 'burn', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [ - { - "internalType": "uint256", - "name": "quantity", - "type": "uint256" - } - ], - "name": "InvalidQuantity", - "type": "error" + inputs: [ + { internalType: 'address', name: 'account', type: 'address' }, + { internalType: 'uint32', name: 'pos', type: 'uint32' }, + ], + name: 'checkpoints', + outputs: [ + { + components: [ + { internalType: 'uint48', name: '_key', type: 'uint48' }, + { internalType: 'uint208', name: '_value', type: 'uint208' }, + ], + internalType: 'struct Checkpoints.Checkpoint208', + name: '', + type: 'tuple', + }, + ], + stateMutability: 'view', + type: 'function', }, { - "inputs": [], - "name": "MintERC2309QuantityExceedsLimit", - "type": "error" + inputs: [], + name: 'clock', + outputs: [{ internalType: 'uint48', name: '', type: 'uint48' }], + stateMutability: 'view', + type: 'function', }, { - "inputs": [], - "name": "MintToZeroAddress", - "type": "error" + inputs: [], + name: 'decimals', + outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }], + stateMutability: 'view', + type: 'function', }, { - "inputs": [], - "name": "MintZeroQuantity", - "type": "error" + inputs: [{ internalType: 'address', name: 'delegatee', type: 'address' }], + name: 'delegate', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "Ownable__NotOwner", - "type": "error" + inputs: [ + { internalType: 'address', name: 'delegatee', type: 'address' }, + { internalType: 'uint256', name: 'nonce', type: 'uint256' }, + { internalType: 'uint256', name: 'expiry', type: 'uint256' }, + { internalType: 'uint8', name: 'v', type: 'uint8' }, + { internalType: 'bytes32', name: 'r', type: 'bytes32' }, + { internalType: 'bytes32', name: 's', type: 'bytes32' }, + ], + name: 'delegateBySig', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [], - "name": "Ownable__ZeroAddress", - "type": "error" + inputs: [{ internalType: 'address', name: 'account', type: 'address' }], + name: 'delegates', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + stateMutability: 'view', + type: 'function', }, { - "inputs": [], - "name": "OwnerQueryForNonexistentToken", - "type": "error" + inputs: [{ internalType: 'address', name: 'account', type: 'address' }], + name: 'disableLock', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [], - "name": "OwnershipNotInitializedForExtraData", - "type": "error" + inputs: [], + name: 'eip712Domain', + outputs: [ + { internalType: 'bytes1', name: 'fields', type: 'bytes1' }, + { internalType: 'string', name: 'name', type: 'string' }, + { internalType: 'string', name: 'version', type: 'string' }, + { internalType: 'uint256', name: 'chainId', type: 'uint256' }, + { internalType: 'address', name: 'verifyingContract', type: 'address' }, + { internalType: 'bytes32', name: 'salt', type: 'bytes32' }, + { internalType: 'uint256[]', name: 'extensions', type: 'uint256[]' }, + ], + stateMutability: 'view', + type: 'function', }, { - "inputs": [], - "name": "RewardsDistribution_InsufficientRewardBalance", - "type": "error" + inputs: [{ internalType: 'address', name: 'account', type: 'address' }], + name: 'enableLock', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [], - "name": "RewardsDistribution_InvalidOperator", - "type": "error" + inputs: [{ internalType: 'address', name: 'account', type: 'address' }], + name: 'getDelegationTimeForDelegator', + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + stateMutability: 'view', + type: 'function', }, { - "inputs": [], - "name": "RewardsDistribution_NoActiveOperators", - "type": "error" + inputs: [], + name: 'getDelegators', + outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }], + stateMutability: 'view', + type: 'function', }, { - "inputs": [], - "name": "RewardsDistribution_NoRewardsToClaim", - "type": "error" + inputs: [{ internalType: 'address', name: 'account', type: 'address' }], + name: 'getDelegatorsByDelegatee', + outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }], + stateMutability: 'view', + type: 'function', }, { - "inputs": [ - { - "internalType": "address", - "name": "token", - "type": "address" - } - ], - "name": "SafeERC20FailedOperation", - "type": "error" + inputs: [{ internalType: 'uint256', name: 'timepoint', type: 'uint256' }], + name: 'getPastTotalSupply', + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + stateMutability: 'view', + type: 'function', }, { - "inputs": [], - "name": "TransferCallerNotOwnerNorApproved", - "type": "error" + inputs: [ + { internalType: 'address', name: 'account', type: 'address' }, + { internalType: 'uint256', name: 'timepoint', type: 'uint256' }, + ], + name: 'getPastVotes', + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + stateMutability: 'view', + type: 'function', }, { - "inputs": [], - "name": "TransferFromIncorrectOwner", - "type": "error" + inputs: [{ internalType: 'address', name: 'account', type: 'address' }], + name: 'getVotes', + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + stateMutability: 'view', + type: 'function', }, { - "inputs": [], - "name": "TransferToNonERC721ReceiverImplementer", - "type": "error" + inputs: [{ internalType: 'address', name: 'account', type: 'address' }], + name: 'isLockEnabled', + outputs: [{ internalType: 'bool', name: '', type: 'bool' }], + stateMutability: 'view', + type: 'function', }, { - "inputs": [], - "name": "TransferToZeroAddress", - "type": "error" + inputs: [], + name: 'l1Token', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + stateMutability: 'view', + type: 'function', }, { - "inputs": [], - "name": "URIQueryForNonexistentToken", - "type": "error" + inputs: [], + name: 'l2Bridge', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + stateMutability: 'view', + type: 'function', }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "approved", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - } - ], - "name": "Approval", - "type": "event" + inputs: [{ internalType: 'address', name: 'account', type: 'address' }], + name: 'lockCooldown', + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + stateMutability: 'view', + type: 'function', }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "indexed": false, - "internalType": "bool", - "name": "approved", - "type": "bool" - } - ], - "name": "ApprovalForAll", - "type": "event" + inputs: [ + { internalType: 'address', name: 'from', type: 'address' }, + { internalType: 'uint256', name: 'amount', type: 'uint256' }, + ], + name: 'mint', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "fromTokenId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "toTokenId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - } - ], - "name": "ConsecutiveTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "delegator", - "type": "address" - } - ], - "name": "DelegationRemoved", - "type": "event" + inputs: [], + name: 'name', + outputs: [{ internalType: 'string', name: '', type: 'string' }], + stateMutability: 'view', + type: 'function', }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "delegator", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "quantity", - "type": "uint256" - } - ], - "name": "DelegationSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint32", - "name": "version", - "type": "uint32" - } - ], - "name": "Initialized", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "InterfaceAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "InterfaceRemoved", - "type": "event" + inputs: [{ internalType: 'address', name: 'owner', type: 'address' }], + name: 'nonces', + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + stateMutability: 'view', + type: 'function', }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" + inputs: [{ internalType: 'address', name: 'account', type: 'address' }], + name: 'numCheckpoints', + outputs: [{ internalType: 'uint32', name: '', type: 'uint32' }], + stateMutability: 'view', + type: 'function', }, { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "RewardsDistributed", - "type": "event" + inputs: [], + name: 'owner', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + stateMutability: 'view', + type: 'function', }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - } - ], - "name": "Transfer", - "type": "event" + inputs: [ + { internalType: 'address', name: 'owner', type: 'address' }, + { internalType: 'address', name: 'spender', type: 'address' }, + { internalType: 'uint256', name: 'value', type: 'uint256' }, + { internalType: 'uint256', name: 'deadline', type: 'uint256' }, + { internalType: 'uint8', name: 'v', type: 'uint8' }, + { internalType: 'bytes32', name: 'r', type: 'bytes32' }, + { internalType: 'bytes32', name: 's', type: 'bytes32' }, + ], + name: 'permit', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [], - "name": "__RewardsDistribution_init", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + inputs: [], + name: 'remoteToken', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + stateMutability: 'view', + type: 'function', }, { - "inputs": [], - "name": "delegatorClaim", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + inputs: [], + name: 'renounceOwnership', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - } - ], - "name": "distributeRewards", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getActiveOperators", - "outputs": [ - { - "internalType": "address[]", - "name": "", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getActivePeriodLength", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" + inputs: [{ internalType: 'uint256', name: 'cooldown', type: 'uint256' }], + name: 'setLockCooldown', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [ - { - "internalType": "address", - "name": "claimer", - "type": "address" - } - ], - "name": "getClaimableAmountForAuthorizedClaimer", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" + inputs: [{ internalType: 'bytes4', name: 'interfaceId', type: 'bytes4' }], + name: 'supportsInterface', + outputs: [{ internalType: 'bool', name: '', type: 'bool' }], + stateMutability: 'view', + type: 'function', }, { - "inputs": [ - { - "internalType": "address", - "name": "delegator", - "type": "address" - } - ], - "name": "getClaimableAmountForDelegator", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" + inputs: [], + name: 'symbol', + outputs: [{ internalType: 'string', name: '', type: 'string' }], + stateMutability: 'view', + type: 'function', }, { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - } - ], - "name": "getClaimableAmountForOperator", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getPeriodDistributionAmount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" + inputs: [], + name: 'totalSupply', + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + stateMutability: 'view', + type: 'function', }, { - "inputs": [], - "name": "mainnetClaim", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + inputs: [ + { internalType: 'address', name: 'to', type: 'address' }, + { internalType: 'uint256', name: 'value', type: 'uint256' }, + ], + name: 'transfer', + outputs: [{ internalType: 'bool', name: '', type: 'bool' }], + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [], - "name": "operatorClaim", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + inputs: [ + { internalType: 'address', name: 'from', type: 'address' }, + { internalType: 'address', name: 'to', type: 'address' }, + { internalType: 'uint256', name: 'value', type: 'uint256' }, + ], + name: 'transferFrom', + outputs: [{ internalType: 'bool', name: '', type: 'bool' }], + stateMutability: 'nonpayable', + type: 'function', }, { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "setActivePeriodLength", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "setPeriodDistributionAmount", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } + inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }], + name: 'transferOwnership', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [], + name: 'version', + outputs: [{ internalType: 'string', name: '', type: 'string' }], + stateMutability: 'view', + type: 'function', + }, ] as const +const mainnetRiverTokenAddress = '0x53319181e003E7f86fB79f794649a2aB680Db244' satisfies Address +const baseRiverTokenAddress = '0x91930fd11ABAa5241241d3B07c02A8d0B5ac1920' satisfies Address +const baseGammaSepoliaTokenAddress = '0x24e3123E1b30E041E2df26Da9d6140c5B07Fe4F0' satisfies Address + export default defineConfig({ out: 'src/contracts.ts', contracts: [ { - abi: BaseRiverTokenAbi, - name: 'BaseRiverToken', + name: 'RiverToken', address: { - [base.id]: '0x9172852305F32819469bf38A3772f29361d7b768', - [baseSepolia.id]: '0x49442708a16Bf7917764F14A2D103f40Eb27BdD8', + [mainnet.id]: mainnetRiverTokenAddress, + [base.id]: baseRiverTokenAddress, + [baseSepolia.id]: baseGammaSepoliaTokenAddress, }, + abi: riverTokenAbi, }, { - abi: RiverClaimerAbi, - name: 'RiverClaimer', + name: 'RewardsDistribution', address: { - [base.id]: '0x7c0422b31401C936172C897802CF0373B35B7698', - [baseSepolia.id]: '0x08cC41b782F27d62995056a4EF2fCBAe0d3c266F', + [base.id]: omega.address as Address, + [baseSepolia.id]: gamma.address as Address, }, - } + abi: rewardDistributionAbi, + }, ], plugins: [ etherscan({ - apiKey: env.ETHERSCAN_API_KEY!, + apiKey: env.ETHERSCAN_API_KEY, chainId: mainnet.id, contracts: [ { - name: 'RiverToken', - address: { - [mainnet.id]: '0x53319181e003e7f86fb79f794649a2ab680db244', - [sepolia.id]: '0x40ef1bb984503bb5adef041a88a4f9180e8586f9', - }, - }, - { - name: 'RiverAuthorizer', + name: 'Authorizer', address: { [mainnet.id]: '0x0bEe55b52d01C4D5d4D0cfcE1d6e0baE6722db05', [sepolia.id]: '0x2f5E8F6Fb7EcF63d13C13B698d1e0B3EA4Ef604B', @@ -2024,6 +1383,6 @@ export default defineConfig({ }, ], }), - react() + react(), ], -}) \ No newline at end of file +}) From e52f30bfeb8daef54ef3bd59d6bad75fbb0d7886 Mon Sep 17 00:00:00 2001 From: Miguel Nascimento Date: Tue, 10 Dec 2024 23:20:09 -0300 Subject: [PATCH 2/2] chore: update usage --- src/components/claim/claim-page.tsx | 86 ++++++++--- src/components/claim/claimable.tsx | 135 ------------------ .../delegate/authorize-claimer-form.tsx | 39 ++--- src/components/delegate/delegate-form.tsx | 73 ++-------- src/components/wallet-info.tsx | 100 +++++-------- src/lib/hooks/use-authorize-claimer.ts | 40 ++++++ src/lib/hooks/use-claim.ts | 73 ++++++++++ src/lib/hooks/use-delegate.ts | 58 ++++++++ src/lib/hooks/use-redelegate.ts | 100 +++++++++++++ 9 files changed, 398 insertions(+), 306 deletions(-) delete mode 100644 src/components/claim/claimable.tsx create mode 100644 src/lib/hooks/use-authorize-claimer.ts create mode 100644 src/lib/hooks/use-claim.ts create mode 100644 src/lib/hooks/use-delegate.ts create mode 100644 src/lib/hooks/use-redelegate.ts diff --git a/src/components/claim/claim-page.tsx b/src/components/claim/claim-page.tsx index 40a936e..69b539b 100644 --- a/src/components/claim/claim-page.tsx +++ b/src/components/claim/claim-page.tsx @@ -1,16 +1,26 @@ +import { useClaim } from '@/lib/hooks/use-claim' import { cn } from '@/lib/utils' +import { formatUnits } from 'viem' +import { base, baseSepolia } from 'viem/chains' import { useAccount, useSwitchChain } from 'wagmi' +import { Button } from '../ui/button' +import { Skeleton } from '../ui/skeleton' import { Typography } from '../ui/typography' import { WalletInfo } from '../wallet-info' -import { Claimable } from './claimable' -import { base, baseSepolia } from 'viem/chains' -import { Button } from '../ui/button' export const ClaimPage = () => { - const { chainId } = useAccount() + const { chainId, address } = useAccount() const { switchChain } = useSwitchChain() const isBase = chainId === base.id || chainId === baseSepolia.id + const { + claimReward, + isLoadingClaimableBalance, + claimableBalance, + isPending, + isTxPending, + isTxConfirmed, + } = useClaim() return (
{ {/* It's impossible to the disconnect user to get to this page without being on the base network But they can change the network after, that's why this toast is necessary */} {!isBase && ( -
- +
+ You can only claim on the Base chain. - +
)} + > Claim @@ -48,12 +57,57 @@ export const ClaimPage = () => {
- + -
- - - +
+
+ + Claimable balance + +
+ {isLoadingClaimableBalance ? ( + + ) : ( + + {!claimableBalance ? 0 : formatUnits(claimableBalance, 18)} + + )} + +
+
diff --git a/src/components/claim/claimable.tsx b/src/components/claim/claimable.tsx deleted file mode 100644 index de3f009..0000000 --- a/src/components/claim/claimable.tsx +++ /dev/null @@ -1,135 +0,0 @@ -import { - riverClaimerAbi, - riverClaimerAddress, - useReadBaseRiverTokenBalanceOf, - useReadRiverClaimer, - useReadRiverTokenBalanceOf, -} from '@/contracts' -import { useQueryClient } from '@tanstack/react-query' -import Confetti from 'js-confetti' -import { useEffect, useMemo } from 'react' -import { formatUnits } from 'viem' -import { useAccount, useSwitchChain, useWaitForTransactionReceipt, useWriteContract } from 'wagmi' -import { Button } from '../ui/button' -import { Skeleton } from '../ui/skeleton' -import { Typography } from '../ui/typography' -import { toast } from '../ui/use-toast' -import { cn } from '@/lib/utils' - -const text = { - operator: 'Operator rewards', - mainnet: 'Mainnet rewards', - delegator: 'Delegator rewards', -} - -const getBalance = { - operator: 'getClaimableAmountForOperator', - mainnet: 'getClaimableAmountForAuthorizedClaimer', - delegator: 'getClaimableAmountForDelegator', -} as const - -type Props = { - type: 'operator' | 'mainnet' | 'delegator' -} - -export const Claimable = ({ type }: Props) => { - const { address, chainId } = useAccount() - const qc = useQueryClient() - const confetti = useMemo(() => new Confetti(), []) - const { queryKey: riverBalanceQueryKey } = useReadRiverTokenBalanceOf({ - args: [address!], - query: { - enabled: false, - } - }) - const { queryKey: riverBaseBalanceQueryKey } = useReadBaseRiverTokenBalanceOf({ - args: [address!], - query: { - enabled: false, - } - }) - - const { - data: claimableBalance, - isLoading: isLoadingClaimableBalance, - queryKey: riverClaimBalanceQueryKey, - } = useReadRiverClaimer({ - functionName: getBalance[type], - args: [address!], - query: { - enabled: !!address - } - }) - const { data: hash, writeContract, isPending } = useWriteContract({ - mutation: { - onError: (e) => { - toast({ - title: 'Error', - description: e.name, - }) - } - } - }) - const { isLoading: isConfirming, isSuccess: isConfirmed } = useWaitForTransactionReceipt({ hash }) - - useEffect(() => { - if (isConfirmed) { - Promise.all([ - confetti - .addConfetti({ - confettiColors: ['#F7F7F8', '#3A3941', '#959499'], - confettiNumber: 250, - }) - .then(() => { - confetti.clearCanvas() - }), - qc.invalidateQueries({ queryKey: [riverBalanceQueryKey] }), - qc.invalidateQueries({ queryKey: [riverBaseBalanceQueryKey] }), - qc.invalidateQueries({ queryKey: [riverClaimBalanceQueryKey] }), - ]) - } - }, [confetti, isConfirmed, qc, riverBalanceQueryKey, riverBaseBalanceQueryKey, riverClaimBalanceQueryKey]) - - return ( -
- - {text[type]} - -
- {isLoadingClaimableBalance ? ( - - ) : ( - - {!claimableBalance - ? 'No claimable balance' - : formatUnits(claimableBalance, 18)} - - )} - -
-
- ) -} diff --git a/src/components/delegate/authorize-claimer-form.tsx b/src/components/delegate/authorize-claimer-form.tsx index b47e618..978f7b9 100644 --- a/src/components/delegate/authorize-claimer-form.tsx +++ b/src/components/delegate/authorize-claimer-form.tsx @@ -1,15 +1,14 @@ 'use client' -import { useReadRiverAuthorizer, useWriteRiverAuthorizerAuthorizeClaimer } from '@/contracts' +import { useAuthorizeClaimer } from '@/lib/hooks/use-authorize-claimer' import { formatAddress } from '@/lib/utils' import { zodResolver } from '@hookform/resolvers/zod' -import { useQueryClient } from '@tanstack/react-query' import { Check } from 'lucide-react' import { useEffect, useState } from 'react' import { useForm } from 'react-hook-form' import { isAddress } from 'viem' import { base, mainnet } from 'viem/chains' -import { useAccount, useSwitchChain, useWaitForTransactionReceipt } from 'wagmi' +import { useAccount, useSwitchChain } from 'wagmi' import { z } from 'zod' import { Button } from '../ui/button' import { @@ -34,42 +33,23 @@ export const AuthorizeClaimerForm = () => { const [authorizedClaimerAddress, setAuthorizedClaimerAddress] = useState<`0x${string}` | null>( null, ) - + const { isPending, isTxConfirmed, isTxPending, writeAuthorizer } = useAuthorizeClaimer() + const { switchChain } = useSwitchChain() + const { chainId } = useAccount() const { toast } = useToast() const form = useForm>({ resolver: zodResolver(formSchema), }) - const qc = useQueryClient() - const { chainId } = useAccount() - const { - data: hash, - writeContract: writeAuthorizer, - isPending, - } = useWriteRiverAuthorizerAuthorizeClaimer() - const { switchChain } = useSwitchChain() - - const { isLoading: isConfirming, isSuccess: isConfirmed } = useWaitForTransactionReceipt({ - hash, - }) - - const { queryKey: authorizedClaimerQueryKey } = useReadRiverAuthorizer() - - useEffect(() => { - if (isConfirmed) { - qc.invalidateQueries({ queryKey: authorizedClaimerQueryKey }) - } - }, [authorizedClaimerQueryKey, isConfirmed, qc]) - useEffect(() => { - if (isConfirmed && authorizedClaimerAddress) { + if (isTxConfirmed && authorizedClaimerAddress) { toast({ title: `You've authorized ${formatAddress( authorizedClaimerAddress, )} as the wallet that can claim on your behalf.`, }) } - }, [authorizedClaimerAddress, isConfirmed, toast]) + }, [authorizedClaimerAddress, isTxConfirmed, toast]) function onSubmit(formValue: z.infer) { if (!chainId) return @@ -81,7 +61,6 @@ export const AuthorizeClaimerForm = () => { switchChain({ chainId: mainnet.id }) return } - setAuthorizedClaimerAddress(formValue.address) writeAuthorizer({ args: [formValue.address], @@ -110,8 +89,8 @@ export const AuthorizeClaimerForm = () => { )} /> diff --git a/src/components/delegate/delegate-form.tsx b/src/components/delegate/delegate-form.tsx index c70e7ba..d9ba356 100644 --- a/src/components/delegate/delegate-form.tsx +++ b/src/components/delegate/delegate-form.tsx @@ -1,19 +1,11 @@ -import { - baseRiverTokenAbi, - baseRiverTokenAddress, - riverTokenAbi, - riverTokenAddress, - useReadRiverTokenDelegates, -} from '@/contracts' +import { useDelegate } from '@/lib/hooks/use-delegate' import { formatAddress } from '@/lib/utils' import { zodResolver } from '@hookform/resolvers/zod' -import { useQueryClient } from '@tanstack/react-query' import { Check } from 'lucide-react' import { useEffect, useState } from 'react' import { useForm } from 'react-hook-form' -import { isAddress } from 'viem' -import { useAccount, useWaitForTransactionReceipt, useWriteContract } from 'wagmi' -import { base } from 'wagmi/chains' +import { isAddress, type Address } from 'viem' +import { useAccount } from 'wagmi' import { z } from 'zod' import { Button } from '../ui/button' import { @@ -29,14 +21,11 @@ import { Input } from '../ui/input' import { useToast } from '../ui/use-toast' const formSchema = z.object({ - address: z.custom((value) => typeof value === 'string' && isAddress(value), { + address: z.string().refine((value) => isAddress(value), { message: 'Invalid address', }), }) -const isRiverInvalidTokenAmountError = (error: Error) => { - return error.message.includes('River__InvalidTokenAmount') -} export const DelegateForm = () => { const [delegatedAddress, setDelegatedAddress] = useState<`0x${string}` | null>(null) const { toast } = useToast() @@ -44,57 +33,21 @@ export const DelegateForm = () => { const form = useForm>({ resolver: zodResolver(formSchema), }) - - const qc = useQueryClient() - const { - data: hash, - writeContract, - isPending, - } = useWriteContract({ - mutation: { - onError: (e) => { - if (isRiverInvalidTokenAmountError(e)) { - toast({ - title: 'Insufficient RVR balance', - description: 'You need some RVR token in order to delegate.', - }) - } - }, - }, - }) - - const { isLoading: isConfirming, isSuccess: isConfirmed } = useWaitForTransactionReceipt({ - hash, - }) - - const { queryKey: delegateeQueryKey } = useReadRiverTokenDelegates() - - useEffect(() => { - if (isConfirmed) { - qc.invalidateQueries({ queryKey: delegateeQueryKey }) - } - }, [delegateeQueryKey, isConfirmed, qc]) + const { writeDelegate, isPending, isTxPending, isTxConfirmed } = useDelegate() useEffect(() => { - if (isConfirmed && delegatedAddress) { + if (isTxConfirmed && delegatedAddress) { toast({ title: `You've delegated your RVR balance to ${formatAddress(delegatedAddress)}.`, }) } - }, [delegatedAddress, isConfirmed, toast]) + }, [delegatedAddress, isTxConfirmed, toast]) function onSubmit(formValue: z.infer) { if (!chainId) return - const isBase = chainId === base.id - setDelegatedAddress(formValue.address) - writeContract({ - address: isBase - ? baseRiverTokenAddress[chainId] - : riverTokenAddress[chainId as keyof typeof riverTokenAddress], - abi: isBase ? baseRiverTokenAbi : riverTokenAbi, - functionName: 'delegate', - args: [formValue.address], - }) + const address = formValue.address as Address + setDelegatedAddress(address) + writeDelegate({ args: [address] }) } return ( @@ -116,9 +69,9 @@ export const DelegateForm = () => { )} /> - diff --git a/src/components/wallet-info.tsx b/src/components/wallet-info.tsx index 07036a4..0447d0d 100644 --- a/src/components/wallet-info.tsx +++ b/src/components/wallet-info.tsx @@ -1,20 +1,17 @@ 'use client' import { - useReadBaseRiverTokenBalanceOf, - useReadBaseRiverTokenDecimals, - useReadRiverAuthorizerGetAuthorizedClaimer, + useReadAuthorizerGetAuthorizedClaimer, + useReadRewardsDistributionCurrentReward, useReadRiverTokenBalanceOf, useReadRiverTokenDecimals, useReadRiverTokenDelegates, } from '@/contracts' -import { useMemo } from 'react' import { formatUnits, zeroAddress } from 'viem' import { useAccount, useDisconnect } from 'wagmi' import { Button } from './ui/button' import { Skeleton } from './ui/skeleton' import { WalletAddress } from './wallet-address' -import { base, baseSepolia } from 'viem/chains' type WalletInfoProps = { showRvrBalance?: boolean @@ -28,67 +25,40 @@ export const WalletInfo = ({ showRewards, showAuthorizedClaimer, }: WalletInfoProps) => { - const { address, chainId } = useAccount() + const { address } = useAccount() const { disconnect, isPending } = useDisconnect() - const isBase = useMemo(() => { - if (chainId === base.id) return true - if (chainId === baseSepolia.id) return true - return false - }, [chainId]) - const _riverBalance = useReadRiverTokenBalanceOf({ + const { isLoading: isRiverTokenLoading, data: riverBalance } = useReadRiverTokenBalanceOf({ args: [address!], query: { - enabled: showRvrBalance && !!address && !isBase, - }, - }) - - const _riverDecimals = useReadRiverTokenDecimals({ - query: { - enabled: showRvrBalance && !!address && !isBase, + enabled: showRvrBalance && !!address, }, }) - const _riverBaseBalance = useReadBaseRiverTokenBalanceOf({ - args: [address!], + const { data: riverDecimals } = useReadRiverTokenDecimals({ query: { - enabled: showRvrBalance && !!address && isBase, + enabled: (showRvrBalance || showRewards) && !!address, }, }) - const _riverBaseDecimals = useReadBaseRiverTokenDecimals({ - query: { - enabled: showRvrBalance && !!address && isBase, - }, - }) - - const riverBalance = isBase ? _riverBaseBalance : _riverBalance - const riverDecimals = isBase ? _riverBaseDecimals : _riverDecimals - - const _isRiverTokenLoading = useMemo( - () => riverBalance.isLoading || riverDecimals.isLoading, - [riverBalance.isLoading, riverDecimals.isLoading], - ) - - const _isBaseRiverTokenLoading = useMemo( - () => _riverBaseBalance.isLoading || _riverBaseDecimals.isLoading, - [_riverBaseBalance.isLoading, _riverBaseDecimals.isLoading], - ) - - - const isRiverTokenLoading = isBase ? _isRiverTokenLoading : _isBaseRiverTokenLoading - - const delegatee = useReadRiverTokenDelegates({ + const { isLoading: isDelegateeLoading, data: delegatee } = useReadRiverTokenDelegates({ args: [address!], query: { enabled: showDelegatee && !!address }, }) - const authorizedClaimer = useReadRiverAuthorizerGetAuthorizedClaimer({ - args: [address!], - query: { - enabled: showAuthorizedClaimer && !!address, - }, - }) + const { isLoading: isCurrentRewardLoading, data: currentReward } = + useReadRewardsDistributionCurrentReward({ + args: [address!], + query: { enabled: showRewards && !!address }, + }) + + const { isLoading: isAuthorizedClaimerLoading, data: authorizedClaimer } = + useReadAuthorizerGetAuthorizedClaimer({ + args: [address!], + query: { + enabled: showAuthorizedClaimer && !!address, + }, + }) return (
@@ -99,11 +69,11 @@ export const WalletInfo = ({ {showRvrBalance && (
RVR Balance: - + {isRiverTokenLoading ? ( - ) : riverBalance.data && riverDecimals.data ? ( - formatUnits(riverBalance.data, riverDecimals.data) + ) : riverBalance && riverDecimals ? ( + formatUnits(riverBalance, riverDecimals) ) : ( 0 )} @@ -113,34 +83,34 @@ export const WalletInfo = ({ {showDelegatee && (
Delegating to: - {delegatee.isLoading ? ( + {isDelegateeLoading ? ( - ) : delegatee.data && delegatee.data !== zeroAddress ? ( - + ) : delegatee && delegatee !== zeroAddress ? ( + ) : null}
)} - {/* {showRewards && ( + {showRewards && (
Rewards Balance: - {rewardsBalance.isLoading ? ( + {isCurrentRewardLoading ? ( - ) : rewardsBalance.data?.[0] && rewardsBalance.data?.[1] ? ( - formatUnits(rewardsBalance.data[0], rewardsBalance.data[1]) + ) : currentReward && riverDecimals ? ( + formatUnits(currentReward, riverDecimals) ) : ( 0 )}
- )} */} + )} {showAuthorizedClaimer && (
Authorized claimer: - {authorizedClaimer.isLoading ? ( + {isAuthorizedClaimerLoading ? ( - ) : authorizedClaimer.data && authorizedClaimer.data !== zeroAddress ? ( - + ) : authorizedClaimer && authorizedClaimer !== zeroAddress ? ( + ) : null}
)} diff --git a/src/lib/hooks/use-authorize-claimer.ts b/src/lib/hooks/use-authorize-claimer.ts new file mode 100644 index 0000000..c13ab50 --- /dev/null +++ b/src/lib/hooks/use-authorize-claimer.ts @@ -0,0 +1,40 @@ +import { + useReadAuthorizerGetAuthorizedClaimer, + useWriteAuthorizerAuthorizeClaimer, +} from '@/contracts' +import { useQueryClient } from '@tanstack/react-query' +import { useEffect } from 'react' +import { useWaitForTransactionReceipt } from 'wagmi' + +export const useAuthorizeClaimer = () => { + const qc = useQueryClient() + const { + data: hash, + writeContract: writeAuthorizer, + isPending, + } = useWriteAuthorizerAuthorizeClaimer({ + mutation: { + onError: (e) => { + console.error(e) + }, + }, + }) + const { isLoading: isTxPending, isSuccess: isTxConfirmed } = useWaitForTransactionReceipt({ + hash, + }) + + const { queryKey: authorizedClaimerQueryKey } = useReadAuthorizerGetAuthorizedClaimer() + + useEffect(() => { + if (isTxConfirmed) { + qc.invalidateQueries({ queryKey: authorizedClaimerQueryKey }) + } + }, [authorizedClaimerQueryKey, isTxConfirmed, qc]) + + return { + isPending, + isTxConfirmed, + isTxPending, + writeAuthorizer, + } +} diff --git a/src/lib/hooks/use-claim.ts b/src/lib/hooks/use-claim.ts new file mode 100644 index 0000000..d5128f8 --- /dev/null +++ b/src/lib/hooks/use-claim.ts @@ -0,0 +1,73 @@ +import { toast } from '@/components/ui/use-toast' +import { + useReadRewardsDistributionCurrentReward, + useReadRiverTokenBalanceOf, + useWriteRewardsDistributionClaimReward, +} from '@/contracts' +import { useQueryClient } from '@tanstack/react-query' +import Confetti from 'js-confetti' +import { useEffect, useMemo } from 'react' +import { useAccount, useWaitForTransactionReceipt } from 'wagmi' + +export const useClaim = () => { + const { address } = useAccount() + const qc = useQueryClient() + const confetti = useMemo(() => new Confetti(), []) + const { queryKey: riverBalanceQueryKey } = useReadRiverTokenBalanceOf({ + args: [address!], + }) + const { + data: claimableBalance, + isLoading: isLoadingClaimableBalance, + queryKey: riverClaimBalanceQueryKey, + } = useReadRewardsDistributionCurrentReward({ + args: [address!], + query: { + enabled: !!address, + }, + }) + const { + data: hash, + writeContract: claimReward, + isPending, + } = useWriteRewardsDistributionClaimReward({ + mutation: { + onError: (e) => { + toast({ + title: 'Error', + description: e.name, + }) + console.error(e) + }, + }, + }) + const { isLoading: isTxPending, isSuccess: isTxConfirmed } = useWaitForTransactionReceipt({ + hash, + }) + + useEffect(() => { + if (isTxConfirmed) { + Promise.all([ + confetti + .addConfetti({ + confettiColors: ['#F7F7F8', '#3A3941', '#959499'], + confettiNumber: 250, + }) + .then(() => { + confetti.clearCanvas() + }), + qc.invalidateQueries({ queryKey: [riverBalanceQueryKey] }), + qc.invalidateQueries({ queryKey: [riverClaimBalanceQueryKey] }), + ]) + } + }, [confetti, isTxConfirmed, qc, riverBalanceQueryKey, riverClaimBalanceQueryKey]) + + return { + claimReward, + isTxPending, + isTxConfirmed, + isPending, + claimableBalance, + isLoadingClaimableBalance, + } +} diff --git a/src/lib/hooks/use-delegate.ts b/src/lib/hooks/use-delegate.ts new file mode 100644 index 0000000..c3fe105 --- /dev/null +++ b/src/lib/hooks/use-delegate.ts @@ -0,0 +1,58 @@ +import { toast } from '@/components/ui/use-toast' +import { useReadRiverTokenDelegates, useWriteRiverTokenDelegate } from '@/contracts' +import { useQueryClient } from '@tanstack/react-query' +import { useEffect } from 'react' +import { useWaitForTransactionReceipt } from 'wagmi' + +const isRiverInvalidTokenAmountError = (error: Error) => { + return error.message.includes('River__InvalidTokenAmount') +} + +const isDelegateeSameAsCurrent = (error: Error) => { + return error.message.includes('River__DelegateeSameAsCurrent') +} + +export const useDelegate = () => { + const qc = useQueryClient() + const { + data: hash, + writeContract, + isPending, + } = useWriteRiverTokenDelegate({ + mutation: { + onError: (e) => { + if (isRiverInvalidTokenAmountError(e)) { + toast({ + title: 'Insufficient RVR balance', + description: 'You need some RVR token in order to delegate.', + }) + } else if (isDelegateeSameAsCurrent(e)) { + toast({ + title: 'Delegatee is the same as current', + description: 'You cannot delegate to the same address.', + }) + } else { + console.error(e) + } + }, + }, + }) + + const { isLoading: isTxPending, isSuccess: isTxConfirmed } = useWaitForTransactionReceipt({ + hash, + }) + const { queryKey: delegateeQueryKey } = useReadRiverTokenDelegates() + + useEffect(() => { + if (isTxConfirmed) { + qc.invalidateQueries({ queryKey: delegateeQueryKey }) + } + }, [delegateeQueryKey, isTxConfirmed, qc]) + + return { + writeDelegate: writeContract, + isPending, + isTxPending, + isTxConfirmed, + } +} diff --git a/src/lib/hooks/use-redelegate.ts b/src/lib/hooks/use-redelegate.ts new file mode 100644 index 0000000..cb6a510 --- /dev/null +++ b/src/lib/hooks/use-redelegate.ts @@ -0,0 +1,100 @@ +import { toast } from '@/components/ui/use-toast' +import { + rewardsDistributionAbi, + rewardsDistributionAddress, + useReadRewardsDistributionGetDepositsByDepositor, + useReadRiverTokenDelegates, + useWriteRewardsDistributionRedelegate, +} from '@/contracts' +import { useQueryClient } from '@tanstack/react-query' +import { useEffect, useMemo } from 'react' +import type { Address } from 'viem' +import { base, baseSepolia } from 'viem/chains' +import { useAccount, useReadContracts, useWaitForTransactionReceipt } from 'wagmi' + +const isRiverInvalidTokenAmountError = (error: Error) => { + return error.message.includes('River__InvalidTokenAmount') +} + +const isBase = (chainId?: number) => { + return chainId === base.id || chainId === baseSepolia.id +} + +export const useRedelegate = () => { + const qc = useQueryClient() + const { address, chainId } = useAccount() + + const { data: depositIds } = useReadRewardsDistributionGetDepositsByDepositor({ + args: [address!], + }) + + const { data } = useReadContracts({ + contracts: depositIds + ? depositIds?.map( + (depositId) => + ({ + abi: rewardsDistributionAbi, + address: rewardsDistributionAddress[ + chainId as keyof typeof rewardsDistributionAddress + ] as Address, + functionName: 'depositById', + args: [depositId], + }) as const, + ) + : [], + query: { + enabled: !!chainId && isBase(chainId) && !!depositIds, + }, + }) + + const allDeposits = useMemo(() => { + if (data?.length !== depositIds?.length) return [] + return data?.flatMap((deposit, idx) => { + if (deposit.error) return [] + if (!depositIds?.[idx]) return [] + if (typeof deposit.result === 'object' && 'lastUpdateTime' in deposit.result) + return [{ ...deposit.result, id: depositIds[idx] }] + return [] + }) + }, [data, depositIds]) + + const { + data: hash, + writeContract: writeRedelegate, + isPending, + } = useWriteRewardsDistributionRedelegate({ + mutation: { + onError: (e) => { + console.error(e) + if (isRiverInvalidTokenAmountError(e)) { + toast({ + title: 'Insufficient RVR balance', + description: 'You need some RVR token in order to delegate.', + }) + } else { + console.error(e) + } + }, + }, + }) + + const { isLoading: isTxPending, isSuccess: isTxConfirmed } = useWaitForTransactionReceipt({ + hash, + }) + + const { queryKey: delegateeQueryKey } = useReadRiverTokenDelegates() + + useEffect(() => { + if (isTxConfirmed) { + qc.invalidateQueries({ queryKey: delegateeQueryKey }) + } + }, [delegateeQueryKey, isTxConfirmed, qc]) + + return { + isTxConfirmed, + isTxPending, + writeRedelegate, + isPending, + deposits: allDeposits, + } +}