From 469332e53e8a7c77b58d057c4230ece7a1e726cd Mon Sep 17 00:00:00 2001 From: mehditorabiv Date: Tue, 26 Nov 2024 21:25:52 +0300 Subject: [PATCH] add base sepolia --- package-lock.json | 1432 ++++++++++------- package.json | 1 + src/App.tsx | 99 +- src/components/layouts/AccountPopover.tsx | 1 - .../pages/attestations/StepThree.tsx | 10 +- src/components/pages/attestations/StepTwo.tsx | 6 +- src/hooks/LitProvider.tsx | 1 - src/hooks/useAttestations.tsx | 2 +- src/hooks/useSessionSigs.tsx | 3 +- src/hooks/useSiweAuth.tsx | 9 +- src/interfaces/index.ts | 1 + src/main.tsx | 16 +- src/pages/Identifiers/Identifiers.tsx | 10 +- src/pages/Permissions/Permissions.tsx | 41 +- src/services/api/eas/index.ts | 2 +- src/services/api/eas/query.ts | 8 +- src/services/api/index.ts | 2 - src/services/eas.service.ts | 3 + src/services/eas/index.ts | 17 + src/services/eas/query.ts | 17 +- src/utils/contracts/app/contracts.ts | 470 ++++++ src/utils/contracts/eas/constants.ts | 10 +- src/utils/contracts/eas/contracts.ts | 16 + src/utils/contracts/oid/contracts.ts | 320 ++++ 24 files changed, 1775 insertions(+), 722 deletions(-) create mode 100644 src/utils/contracts/app/contracts.ts create mode 100644 src/utils/contracts/eas/contracts.ts create mode 100644 src/utils/contracts/oid/contracts.ts diff --git a/package-lock.json b/package-lock.json index 0658be5..bd19b92 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,6 +26,7 @@ "graphql": "^16.9.0", "graphql-request": "^7.1.0", "jwt-decode": "^4.0.0", + "oci-js-sdk": "^1.5.8", "react": "^18.3.1", "react-dom": "^18.3.1", "react-hook-form": "^7.52.1", @@ -80,9 +81,9 @@ "dev": true }, "node_modules/@adraffy/ens-normalize": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.10.0.tgz", - "integrity": "sha512-nA9XHtlAkYfJxY7bce8DcN7eKxWWCWkU+1GR9d+U6MbNpfwQp8TI7vqOsBsMcHoT4mBu2kypKoSKnghEzOOq5Q==", + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.11.0.tgz", + "integrity": "sha512-/3DDPKHqqIqxUULp8yP4zODUY1i+2xvVWsv8A79xGWdCAG+8sb0hRh0Rk2QyOJUnnbyPUAZYcpBuRe3nS2OIUg==", "license": "MIT" }, "node_modules/@alloc/quick-lru": { @@ -2450,6 +2451,28 @@ "integrity": "sha512-KvvX58MGMWh7xA+N+deCfunkA/ZNDvFLw4YbOmX3f/XBIkqrVY7qlotfy2aNb1kgp6h4B6Yc8YawJPDTfvWX7g==", "license": "Apache-2.0" }, + "node_modules/@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "0.3.9" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, "node_modules/@emotion/babel-plugin": { "version": "11.11.0", "resolved": "https://registry.npmjs.org/@emotion/babel-plugin/-/babel-plugin-11.11.0.tgz", @@ -3038,28 +3061,29 @@ } }, "node_modules/@ethereum-attestation-service/eas-contracts": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@ethereum-attestation-service/eas-contracts/-/eas-contracts-1.4.1.tgz", - "integrity": "sha512-c+yaTMrEjOESG3yFztPQnNCGARZOBde6r7RnH4hK/T7BS84rC0Y0BbUv/4tOwGBAhN9ke8MJ7G/qySngVtJk3w==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@ethereum-attestation-service/eas-contracts/-/eas-contracts-1.7.1.tgz", + "integrity": "sha512-z2MeCrkp4JrtOMBHQt5fcdbxryC+xxofoPzzv3wcx5GbfG27PpkXRKxlSlb1l2jIT1YfDc701rixbP6vHaEN3Q==", "license": "MIT", "dependencies": { - "hardhat": "2.22.1" + "hardhat": "2.22.4" } }, "node_modules/@ethereum-attestation-service/eas-sdk": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/@ethereum-attestation-service/eas-sdk/-/eas-sdk-2.5.0.tgz", - "integrity": "sha512-3Lt7mDmrIjJqfWcR2rMpwzOOcbcn39G02ziXJbkO9R9FNro4U9uZSyhh1iQsbXUgf0LLisd3LrcrmNg8Wo9rKA==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@ethereum-attestation-service/eas-sdk/-/eas-sdk-2.7.0.tgz", + "integrity": "sha512-JpbUty2ab+FK5AZdoNhH/yCAUfruC2J6sxIhOaF923qip4ibs3M8XwFRr8R67xWEzcML7WKn8rFz0icJiJnxUA==", "license": "MIT", "dependencies": { - "@ethereum-attestation-service/eas-contracts": "1.4.1", - "@openzeppelin/merkle-tree": "^1.0.6", - "ethers": "^6.11.1", + "@ethereum-attestation-service/eas-contracts": "1.7.1", + "@openzeppelin/merkle-tree": "^1.0.7", + "ethers": "^6.13.2", "js-base64": "^3.7.7", "lodash": "^4.17.21", "multiformats": "9.9.0", "pako": "^2.1.0", - "semver": "^7.6.0" + "semver": "^7.6.3", + "viem": "^2.19.2" } }, "node_modules/@ethereumjs/common": { @@ -4274,28 +4298,26 @@ "license": "BSD-3-Clause" }, "node_modules/@lit-protocol/access-control-conditions": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/access-control-conditions/-/access-control-conditions-6.4.0.tgz", - "integrity": "sha512-1pzbCG1R7a1EIwFYA76u7/b082tFFZkQlNn2WsWmGURZzKDmDU8lZ4AGBslx0P7PKPia6BljRmDwaZ6UDf/F1A==", + "version": "6.11.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/access-control-conditions/-/access-control-conditions-6.11.2.tgz", + "integrity": "sha512-NqvlJQrm5fi/9b85Dk1ue9JbN91WEJpYOMjd1bmNI+WFzu/K5gdDokhduZWwj0m4KygOS0LQW0cLy/a0U8HxxQ==", "license": "MIT", "dependencies": { "@ethersproject/abstract-provider": "5.7.0", "@ethersproject/contracts": "5.7.0", "@ethersproject/providers": "5.7.2", - "@lit-protocol/accs-schemas": "0.0.7", - "@lit-protocol/constants": "6.4.0", - "@lit-protocol/contracts": "^0.0.39", - "@lit-protocol/logger": "6.4.0", - "@lit-protocol/misc": "6.4.0", - "@lit-protocol/types": "6.4.0", - "@lit-protocol/uint8arrays": "6.4.0", + "@lit-protocol/accs-schemas": "^0.0.19", + "@lit-protocol/constants": "6.11.2", + "@lit-protocol/contracts": "^0.0.63", + "@lit-protocol/logger": "6.11.2", + "@lit-protocol/misc": "6.11.2", + "@lit-protocol/types": "6.11.2", + "@lit-protocol/uint8arrays": "6.11.2", "ajv": "^8.12.0", "ethers": "^5.7.1", "jszip": "^3.10.1", - "punycode": "2.3.1", "siwe": "^2.0.5", "tslib": "1.14.1", - "uint8arrays": "^4.0.3", "util": "0.12.5" } }, @@ -4369,35 +4391,16 @@ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", "license": "MIT" }, - "node_modules/@lit-protocol/access-control-conditions/node_modules/multiformats": { - "version": "12.1.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.1.3.tgz", - "integrity": "sha512-eajQ/ZH7qXZQR2AgtfpmSMizQzmyYVmCql7pdhldPuYQi4atACekbJaQplk6dWyIi10jCaFnd6pqvcEFXjbaJw==", - "license": "Apache-2.0 OR MIT", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, "node_modules/@lit-protocol/access-control-conditions/node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "license": "0BSD" }, - "node_modules/@lit-protocol/access-control-conditions/node_modules/uint8arrays": { - "version": "4.0.10", - "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-4.0.10.tgz", - "integrity": "sha512-AnJNUGGDJAgFw/eWu/Xb9zrVKEGlwJJCaeInlf3BkecE/zcTobk5YXYIPNQJO1q5Hh1QZrQQHf0JvcHqz2hqoA==", - "license": "Apache-2.0 OR MIT", - "dependencies": { - "multiformats": "^12.0.1" - } - }, "node_modules/@lit-protocol/accs-schemas": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/@lit-protocol/accs-schemas/-/accs-schemas-0.0.7.tgz", - "integrity": "sha512-n8fJ6NMh2T3KgSKe0CRB0Uam6ZwxUTQV0oQXY0vEmSL+Q2a1PsM2FX42szOM+O7LgY+Bko7AiCjjDHbqQoJydg==", + "version": "0.0.19", + "resolved": "https://registry.npmjs.org/@lit-protocol/accs-schemas/-/accs-schemas-0.0.19.tgz", + "integrity": "sha512-O7hrDPUA6x5fgOx8HKRAV1k/8VMzwehfNHUwb2UGMbw4g3kKpokbR/ne7OPdIUYMgvRATc0WjL5gbh/w33pkOQ==", "license": "MIT", "dependencies": { "ajv": "^8.12.0" @@ -4426,9 +4429,9 @@ "license": "MIT" }, "node_modules/@lit-protocol/auth-browser": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/auth-browser/-/auth-browser-6.4.0.tgz", - "integrity": "sha512-lyFypEBQkAhZATczcsDf2isH5H3APN9rElgZaeUDVAyIBsX5jFr+RRep9SmePS23xuBVVc0g9FwBAroHV5UQpw==", + "version": "6.11.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/auth-browser/-/auth-browser-6.11.2.tgz", + "integrity": "sha512-UBZrHYUBtzp1DUCurnm4yHy5R9n3KNr7GlfxNdKC1eutiXfxysX90gDUXkNRLdVtKplUHgqEJVlmZhBGNlyWiw==", "license": "MIT", "dependencies": { "@ethersproject/abstract-provider": "5.7.0", @@ -4437,20 +4440,18 @@ "@ethersproject/providers": "5.7.2", "@ethersproject/strings": "5.7.0", "@ethersproject/wallet": "5.7.0", - "@lit-protocol/accs-schemas": "0.0.7", - "@lit-protocol/constants": "6.4.0", - "@lit-protocol/contracts": "^0.0.39", - "@lit-protocol/logger": "6.4.0", - "@lit-protocol/misc": "6.4.0", - "@lit-protocol/misc-browser": "6.4.0", - "@lit-protocol/types": "6.4.0", - "@lit-protocol/uint8arrays": "6.4.0", + "@lit-protocol/accs-schemas": "^0.0.19", + "@lit-protocol/constants": "6.11.2", + "@lit-protocol/contracts": "^0.0.63", + "@lit-protocol/logger": "6.11.2", + "@lit-protocol/misc": "6.11.2", + "@lit-protocol/misc-browser": "6.11.2", + "@lit-protocol/types": "6.11.2", + "@lit-protocol/uint8arrays": "6.11.2", "ajv": "^8.12.0", "ethers": "^5.7.1", "jszip": "^3.10.1", - "punycode": "2.3.1", - "tslib": "1.14.1", - "uint8arrays": "^4.0.3" + "tslib": "1.14.1" } }, "node_modules/@lit-protocol/auth-browser/node_modules/ajv": { @@ -4523,56 +4524,35 @@ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", "license": "MIT" }, - "node_modules/@lit-protocol/auth-browser/node_modules/multiformats": { - "version": "12.1.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.1.3.tgz", - "integrity": "sha512-eajQ/ZH7qXZQR2AgtfpmSMizQzmyYVmCql7pdhldPuYQi4atACekbJaQplk6dWyIi10jCaFnd6pqvcEFXjbaJw==", - "license": "Apache-2.0 OR MIT", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, "node_modules/@lit-protocol/auth-browser/node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "license": "0BSD" }, - "node_modules/@lit-protocol/auth-browser/node_modules/uint8arrays": { - "version": "4.0.10", - "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-4.0.10.tgz", - "integrity": "sha512-AnJNUGGDJAgFw/eWu/Xb9zrVKEGlwJJCaeInlf3BkecE/zcTobk5YXYIPNQJO1q5Hh1QZrQQHf0JvcHqz2hqoA==", - "license": "Apache-2.0 OR MIT", - "dependencies": { - "multiformats": "^12.0.1" - } - }, "node_modules/@lit-protocol/auth-helpers": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/auth-helpers/-/auth-helpers-6.4.0.tgz", - "integrity": "sha512-LhsuERScfUWftbOSgf6bZOUlJaZztuIhA7m7d38MoeHtCdnqC63+Gf16xbbmgVcA8SXhf4+OmMEu42lwkwv4MQ==", + "version": "6.11.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/auth-helpers/-/auth-helpers-6.11.2.tgz", + "integrity": "sha512-cneLYoFrovVWHxeedeqBsYKNoEkbaABx8woU74g3CxCl+NpuScS0ZRImCza2ci6zHM23y5pIQGeyvb4na1jH1g==", "license": "MIT", "dependencies": { "@ethersproject/abstract-provider": "5.7.0", "@ethersproject/contracts": "5.7.0", "@ethersproject/providers": "5.7.2", - "@lit-protocol/access-control-conditions": "6.4.0", - "@lit-protocol/accs-schemas": "0.0.7", - "@lit-protocol/constants": "6.4.0", - "@lit-protocol/contracts": "^0.0.39", - "@lit-protocol/logger": "6.4.0", - "@lit-protocol/misc": "6.4.0", - "@lit-protocol/types": "6.4.0", - "@lit-protocol/uint8arrays": "6.4.0", + "@lit-protocol/access-control-conditions": "6.11.2", + "@lit-protocol/accs-schemas": "^0.0.19", + "@lit-protocol/constants": "6.11.2", + "@lit-protocol/contracts": "^0.0.63", + "@lit-protocol/logger": "6.11.2", + "@lit-protocol/misc": "6.11.2", + "@lit-protocol/types": "6.11.2", + "@lit-protocol/uint8arrays": "6.11.2", "ajv": "^8.12.0", "ethers": "^5.7.1", "jszip": "^3.10.1", - "punycode": "2.3.1", "siwe": "^2.0.5", "siwe-recap": "0.0.2-alpha.0", "tslib": "2.6.0", - "uint8arrays": "^4.0.3", "util": "0.12.5" } }, @@ -4676,29 +4656,10 @@ "integrity": "sha512-7At1WUettjcSRHXCyYtTselblcHl9PJFFVKiCAy/bY97+BPZXSQ2wbq0P9s8tK2G7dFQfNnlJnPAiArVBVBsfA==", "license": "0BSD" }, - "node_modules/@lit-protocol/auth-helpers/node_modules/uint8arrays": { - "version": "4.0.10", - "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-4.0.10.tgz", - "integrity": "sha512-AnJNUGGDJAgFw/eWu/Xb9zrVKEGlwJJCaeInlf3BkecE/zcTobk5YXYIPNQJO1q5Hh1QZrQQHf0JvcHqz2hqoA==", - "license": "Apache-2.0 OR MIT", - "dependencies": { - "multiformats": "^12.0.1" - } - }, - "node_modules/@lit-protocol/auth-helpers/node_modules/uint8arrays/node_modules/multiformats": { - "version": "12.1.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.1.3.tgz", - "integrity": "sha512-eajQ/ZH7qXZQR2AgtfpmSMizQzmyYVmCql7pdhldPuYQi4atACekbJaQplk6dWyIi10jCaFnd6pqvcEFXjbaJw==", - "license": "Apache-2.0 OR MIT", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, "node_modules/@lit-protocol/bls-sdk": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/bls-sdk/-/bls-sdk-6.4.0.tgz", - "integrity": "sha512-blfauiCYX+zIIwcDkFVHlh29nFvJNMZQQmgwxUfCVUQD502ejb67IMqz02u43t9opzCVlFBYFxjXMtPVNyoI5A==", + "version": "6.11.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/bls-sdk/-/bls-sdk-6.11.2.tgz", + "integrity": "sha512-E9YWeeoETrtwwaNiwVvnA4okMSp2PsM6Pp8UL0nRD328YBTuY5UtZaF85QsmuMSbc7SxWU52ABhWNofZAFOh+A==", "license": "MIT", "dependencies": { "tslib": "1.14.1", @@ -4712,15 +4673,15 @@ "license": "0BSD" }, "node_modules/@lit-protocol/constants": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/constants/-/constants-6.4.0.tgz", - "integrity": "sha512-lnCpxymWbuY2xsSlnmNsJkFY8LoSdj6JeqGD1fVfXUv/seMn0iEUfaZ1XNgw4TY5GnJsv0z9K2cwaKmQkLxGVQ==", + "version": "6.11.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/constants/-/constants-6.11.2.tgz", + "integrity": "sha512-rcOrHikdJ/SdEL6dT/uRKWZNTYPPgQO4xbHweLMZocsIqofaU5Zpn/jLQ6xabVkx8YaW3quYMI2VT15r3u6CGw==", "license": "MIT", "dependencies": { "@ethersproject/abstract-provider": "5.7.0", - "@lit-protocol/accs-schemas": "0.0.7", - "@lit-protocol/contracts": "^0.0.39", - "@lit-protocol/types": "6.4.0", + "@lit-protocol/accs-schemas": "^0.0.19", + "@lit-protocol/contracts": "^0.0.63", + "@lit-protocol/types": "6.11.2", "ethers": "^5.7.1", "jszip": "^3.10.1", "siwe": "^2.0.5", @@ -4782,17 +4743,17 @@ "license": "0BSD" }, "node_modules/@lit-protocol/contracts": { - "version": "0.0.39", - "resolved": "https://registry.npmjs.org/@lit-protocol/contracts/-/contracts-0.0.39.tgz", - "integrity": "sha512-zz/TaKWUqFK2n7BqwKj9PeV0px89G7dnjkRJ9BM/eri356zodd/W5d5iGQUVdaFiCYKd/cibm4004BnuMlXLeg==", + "version": "0.0.63", + "resolved": "https://registry.npmjs.org/@lit-protocol/contracts/-/contracts-0.0.63.tgz", + "integrity": "sha512-CAorNt72ybIY/g//dDeR837izNGuYQR99XwPSK2X2AJ6c+aZX1kdXCrOnxsbY40BzFrOk/dIFo+ymJ9E3qh48w==", "peerDependencies": { "typescript": "^5.0.0" } }, "node_modules/@lit-protocol/contracts-sdk": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/contracts-sdk/-/contracts-sdk-6.4.0.tgz", - "integrity": "sha512-qZuFIiSjdWyBXmkhRRvb0FrKfGwXe4+3f0ARytPDFNL2g5mMwy5IQ9EQPm0HnAe0/HqrBX3oZ+DPsjRHJ4g7qQ==", + "version": "6.11.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/contracts-sdk/-/contracts-sdk-6.11.2.tgz", + "integrity": "sha512-vfM+AqjHXAzkwjpFPM2JBCgPQmMCHIGrk12upfb1klvvjHqU4BU7fLl7Q6l2SHC0rwQEj5xNGVFY6mDY0DK6VQ==", "license": "MIT", "dependencies": { "@cosmjs/amino": "0.30.1", @@ -4802,22 +4763,20 @@ "@ethersproject/abstract-provider": "5.7.0", "@ethersproject/contracts": "5.7.0", "@ethersproject/providers": "5.7.2", - "@lit-protocol/accs-schemas": "0.0.7", - "@lit-protocol/constants": "6.4.0", - "@lit-protocol/contracts": "^0.0.39", - "@lit-protocol/logger": "6.4.0", - "@lit-protocol/misc": "6.4.0", - "@lit-protocol/types": "6.4.0", + "@lit-protocol/accs-schemas": "^0.0.19", + "@lit-protocol/constants": "6.11.2", + "@lit-protocol/contracts": "^0.0.63", + "@lit-protocol/logger": "6.11.2", + "@lit-protocol/misc": "6.11.2", + "@lit-protocol/types": "6.11.2", "ajv": "^8.12.0", "bitcoinjs-lib": "^6.1.0", "ethers": "^5.7.1", "jose": "^4.14.4", "jszip": "^3.10.1", "process": "0.11.10", - "punycode": "2.3.1", "siwe": "^2.0.5", "tslib": "1.14.1", - "uint8arrays": "^4.0.3", "util": "0.12.5" } }, @@ -4891,35 +4850,16 @@ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", "license": "MIT" }, - "node_modules/@lit-protocol/contracts-sdk/node_modules/multiformats": { - "version": "12.1.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.1.3.tgz", - "integrity": "sha512-eajQ/ZH7qXZQR2AgtfpmSMizQzmyYVmCql7pdhldPuYQi4atACekbJaQplk6dWyIi10jCaFnd6pqvcEFXjbaJw==", - "license": "Apache-2.0 OR MIT", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, "node_modules/@lit-protocol/contracts-sdk/node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "license": "0BSD" }, - "node_modules/@lit-protocol/contracts-sdk/node_modules/uint8arrays": { - "version": "4.0.10", - "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-4.0.10.tgz", - "integrity": "sha512-AnJNUGGDJAgFw/eWu/Xb9zrVKEGlwJJCaeInlf3BkecE/zcTobk5YXYIPNQJO1q5Hh1QZrQQHf0JvcHqz2hqoA==", - "license": "Apache-2.0 OR MIT", - "dependencies": { - "multiformats": "^12.0.1" - } - }, "node_modules/@lit-protocol/core": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/core/-/core-6.4.0.tgz", - "integrity": "sha512-qp6NHl4RuBvflB0vIxgdBC4m7ZjgeeWySiOyFSkytXv5lb9xdkDGksv5UaTV4ReeKsr9+4eKd25BCBiXF/TBXA==", + "version": "6.11.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/core/-/core-6.11.2.tgz", + "integrity": "sha512-76TKyLWztfwswR1AAKVwVVtm8C1iJzCqntgwjopF6JA8OulZTbmltKx+/WupmeXwQlLo4lzilZZDJLFhkgwMwg==", "license": "MIT", "dependencies": { "@cosmjs/amino": "0.30.1", @@ -4929,20 +4869,20 @@ "@ethersproject/abstract-provider": "5.7.0", "@ethersproject/contracts": "5.7.0", "@ethersproject/providers": "5.7.2", - "@lit-protocol/access-control-conditions": "6.4.0", - "@lit-protocol/accs-schemas": "0.0.7", - "@lit-protocol/bls-sdk": "6.4.0", - "@lit-protocol/constants": "6.4.0", - "@lit-protocol/contracts": "^0.0.39", - "@lit-protocol/contracts-sdk": "6.4.0", - "@lit-protocol/crypto": "6.4.0", - "@lit-protocol/ecdsa-sdk": "6.4.0", - "@lit-protocol/logger": "6.4.0", - "@lit-protocol/misc": "6.4.0", - "@lit-protocol/nacl": "6.4.0", - "@lit-protocol/sev-snp-utils-sdk": "6.4.0", - "@lit-protocol/types": "6.4.0", - "@lit-protocol/uint8arrays": "6.4.0", + "@lit-protocol/access-control-conditions": "6.11.2", + "@lit-protocol/accs-schemas": "^0.0.19", + "@lit-protocol/bls-sdk": "6.11.2", + "@lit-protocol/constants": "6.11.2", + "@lit-protocol/contracts": "^0.0.63", + "@lit-protocol/contracts-sdk": "6.11.2", + "@lit-protocol/crypto": "6.11.2", + "@lit-protocol/ecdsa-sdk": "6.11.2", + "@lit-protocol/logger": "6.11.2", + "@lit-protocol/misc": "6.11.2", + "@lit-protocol/nacl": "6.11.2", + "@lit-protocol/sev-snp-utils-sdk": "6.11.2", + "@lit-protocol/types": "6.11.2", + "@lit-protocol/uint8arrays": "6.11.2", "ajv": "^8.12.0", "bitcoinjs-lib": "^6.1.0", "bs58": "^5.0.0", @@ -4954,10 +4894,8 @@ "multiformats": "^9.7.1", "pako": "1.0.11", "process": "0.11.10", - "punycode": "2.3.1", "siwe": "^2.0.5", "tslib": "1.14.1", - "uint8arrays": "^4.0.3", "util": "0.12.5" } }, @@ -4977,21 +4915,6 @@ "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/@lit-protocol/core/node_modules/base-x": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/base-x/-/base-x-4.0.0.tgz", - "integrity": "sha512-FuwxlW4H5kh37X/oW59pwTzzTKRzfrrQwhmyspRM7swOEZcHtDZSCt45U6oKgtuFE+WYPblePMVIPR4RZrh/hw==", - "license": "MIT" - }, - "node_modules/@lit-protocol/core/node_modules/bs58": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/bs58/-/bs58-5.0.0.tgz", - "integrity": "sha512-r+ihvQJvahgYT50JD05dyJNKlmmSlMoOGwn1lCcEzanPglg7TxYjioQUYehQ9mAR/+hOSd2jRc/Z2y5UxBymvQ==", - "license": "MIT", - "dependencies": { - "base-x": "^4.0.0" - } - }, "node_modules/@lit-protocol/core/node_modules/cross-fetch": { "version": "3.1.4", "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.4.tgz", @@ -5076,54 +4999,33 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "license": "0BSD" }, - "node_modules/@lit-protocol/core/node_modules/uint8arrays": { - "version": "4.0.10", - "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-4.0.10.tgz", - "integrity": "sha512-AnJNUGGDJAgFw/eWu/Xb9zrVKEGlwJJCaeInlf3BkecE/zcTobk5YXYIPNQJO1q5Hh1QZrQQHf0JvcHqz2hqoA==", - "license": "Apache-2.0 OR MIT", - "dependencies": { - "multiformats": "^12.0.1" - } - }, - "node_modules/@lit-protocol/core/node_modules/uint8arrays/node_modules/multiformats": { - "version": "12.1.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.1.3.tgz", - "integrity": "sha512-eajQ/ZH7qXZQR2AgtfpmSMizQzmyYVmCql7pdhldPuYQi4atACekbJaQplk6dWyIi10jCaFnd6pqvcEFXjbaJw==", - "license": "Apache-2.0 OR MIT", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, "node_modules/@lit-protocol/crypto": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/crypto/-/crypto-6.4.0.tgz", - "integrity": "sha512-h6fUzGGsUWNAG//qM3E9uTnbPi0Ne1QLlsxaunJEM4bU2JWmmjqKYveP0d1YPq1hXFGHf9U2FA44DzEkDSm21A==", + "version": "6.11.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/crypto/-/crypto-6.11.2.tgz", + "integrity": "sha512-hpVrhhKI6o4SyX9NRriL6yXoNXDpvxVT3k50pg1F5+tHHlHL0bPuFc4hj9RWQ7TqwUtamMfPxEgRhYCTN5u5wg==", "license": "MIT", "dependencies": { "@ethersproject/abstract-provider": "5.7.0", "@ethersproject/contracts": "5.7.0", "@ethersproject/providers": "5.7.2", - "@lit-protocol/accs-schemas": "0.0.7", - "@lit-protocol/bls-sdk": "6.4.0", - "@lit-protocol/constants": "6.4.0", - "@lit-protocol/contracts": "^0.0.39", - "@lit-protocol/ecdsa-sdk": "6.4.0", - "@lit-protocol/logger": "6.4.0", - "@lit-protocol/misc": "6.4.0", - "@lit-protocol/nacl": "6.4.0", - "@lit-protocol/sev-snp-utils-sdk": "6.4.0", - "@lit-protocol/types": "6.4.0", - "@lit-protocol/uint8arrays": "6.4.0", + "@lit-protocol/accs-schemas": "^0.0.19", + "@lit-protocol/bls-sdk": "6.11.2", + "@lit-protocol/constants": "6.11.2", + "@lit-protocol/contracts": "^0.0.63", + "@lit-protocol/ecdsa-sdk": "6.11.2", + "@lit-protocol/logger": "6.11.2", + "@lit-protocol/misc": "6.11.2", + "@lit-protocol/nacl": "6.11.2", + "@lit-protocol/sev-snp-utils-sdk": "6.11.2", + "@lit-protocol/types": "6.11.2", + "@lit-protocol/uint8arrays": "6.11.2", "ajv": "^8.12.0", "cross-fetch": "3.1.4", "ethers": "^5.7.1", "jszip": "^3.10.1", "pako": "1.0.11", - "punycode": "2.3.1", "siwe": "^2.0.5", "tslib": "1.14.1", - "uint8arrays": "^4.0.3", "util": "0.12.5" } }, @@ -5206,16 +5108,6 @@ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", "license": "MIT" }, - "node_modules/@lit-protocol/crypto/node_modules/multiformats": { - "version": "12.1.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.1.3.tgz", - "integrity": "sha512-eajQ/ZH7qXZQR2AgtfpmSMizQzmyYVmCql7pdhldPuYQi4atACekbJaQplk6dWyIi10jCaFnd6pqvcEFXjbaJw==", - "license": "Apache-2.0 OR MIT", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, "node_modules/@lit-protocol/crypto/node_modules/node-fetch": { "version": "2.6.1", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", @@ -5237,19 +5129,10 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "license": "0BSD" }, - "node_modules/@lit-protocol/crypto/node_modules/uint8arrays": { - "version": "4.0.10", - "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-4.0.10.tgz", - "integrity": "sha512-AnJNUGGDJAgFw/eWu/Xb9zrVKEGlwJJCaeInlf3BkecE/zcTobk5YXYIPNQJO1q5Hh1QZrQQHf0JvcHqz2hqoA==", - "license": "Apache-2.0 OR MIT", - "dependencies": { - "multiformats": "^12.0.1" - } - }, "node_modules/@lit-protocol/ecdsa-sdk": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/ecdsa-sdk/-/ecdsa-sdk-6.4.0.tgz", - "integrity": "sha512-ooM4eDaqsDn4w6LqFO3QDKPVlyR2q39H83OLjTuKi2xVbnl2/YcjPJ+4quKzfi3hHqzOC2DtFLwGuA9WLRzCyQ==", + "version": "6.11.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/ecdsa-sdk/-/ecdsa-sdk-6.11.2.tgz", + "integrity": "sha512-slGmsK7GgIamJSdgUWl1soTrWe5qXwxNNwb0FSp7gFDW0X4nReDB8PSJIbu/cG5V6m+5QCHM79GLVJSilKnf5g==", "license": "MIT", "dependencies": { "tslib": "1.14.1", @@ -5263,35 +5146,33 @@ "license": "0BSD" }, "node_modules/@lit-protocol/encryption": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/encryption/-/encryption-6.4.0.tgz", - "integrity": "sha512-S2M4Vg85Uy4JSGROB3ONmvTYGNQufr9G8K2ZE6gAaEHNIjmlqMplHVm/g/Vu9AY/oOtgGnKQRAFW4hyVPXTtuQ==", + "version": "6.11.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/encryption/-/encryption-6.11.2.tgz", + "integrity": "sha512-PFbDmwUbTIq+PQPTDOQOGh8wTdgFXsM8KF+i4e+OLFOYqnTYdUcWt3r67z1rU1FVqudDIFj47IWzKe1sBmtTDQ==", "license": "MIT", "dependencies": { "@ethersproject/abstract-provider": "5.7.0", "@ethersproject/contracts": "5.7.0", "@ethersproject/providers": "5.7.2", - "@lit-protocol/accs-schemas": "0.0.7", - "@lit-protocol/bls-sdk": "6.4.0", - "@lit-protocol/constants": "6.4.0", - "@lit-protocol/contracts": "^0.0.39", - "@lit-protocol/crypto": "6.4.0", - "@lit-protocol/ecdsa-sdk": "6.4.0", - "@lit-protocol/logger": "6.4.0", - "@lit-protocol/misc": "6.4.0", - "@lit-protocol/nacl": "6.4.0", - "@lit-protocol/sev-snp-utils-sdk": "6.4.0", - "@lit-protocol/types": "6.4.0", - "@lit-protocol/uint8arrays": "6.4.0", + "@lit-protocol/accs-schemas": "^0.0.19", + "@lit-protocol/bls-sdk": "6.11.2", + "@lit-protocol/constants": "6.11.2", + "@lit-protocol/contracts": "^0.0.63", + "@lit-protocol/crypto": "6.11.2", + "@lit-protocol/ecdsa-sdk": "6.11.2", + "@lit-protocol/logger": "6.11.2", + "@lit-protocol/misc": "6.11.2", + "@lit-protocol/nacl": "6.11.2", + "@lit-protocol/sev-snp-utils-sdk": "6.11.2", + "@lit-protocol/types": "6.11.2", + "@lit-protocol/uint8arrays": "6.11.2", "ajv": "^8.12.0", "cross-fetch": "3.1.4", "ethers": "^5.7.1", "jszip": "^3.10.1", "pako": "1.0.11", - "punycode": "2.3.1", "siwe": "^2.0.5", "tslib": "1.14.1", - "uint8arrays": "^4.0.3", "util": "0.12.5" } }, @@ -5374,16 +5255,6 @@ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", "license": "MIT" }, - "node_modules/@lit-protocol/encryption/node_modules/multiformats": { - "version": "12.1.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.1.3.tgz", - "integrity": "sha512-eajQ/ZH7qXZQR2AgtfpmSMizQzmyYVmCql7pdhldPuYQi4atACekbJaQplk6dWyIi10jCaFnd6pqvcEFXjbaJw==", - "license": "Apache-2.0 OR MIT", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, "node_modules/@lit-protocol/encryption/node_modules/node-fetch": { "version": "2.6.1", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", @@ -5405,19 +5276,10 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "license": "0BSD" }, - "node_modules/@lit-protocol/encryption/node_modules/uint8arrays": { - "version": "4.0.10", - "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-4.0.10.tgz", - "integrity": "sha512-AnJNUGGDJAgFw/eWu/Xb9zrVKEGlwJJCaeInlf3BkecE/zcTobk5YXYIPNQJO1q5Hh1QZrQQHf0JvcHqz2hqoA==", - "license": "Apache-2.0 OR MIT", - "dependencies": { - "multiformats": "^12.0.1" - } - }, "node_modules/@lit-protocol/lit-node-client": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/lit-node-client/-/lit-node-client-6.4.0.tgz", - "integrity": "sha512-6biGHEuczL+tRPk1xbBTVWhnGq3lgXRR4ArKDhVUY1jQiNecGDXBWEZVEMPV+yFD9MXQtLWl4aLuw97zJyZnig==", + "version": "6.11.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/lit-node-client/-/lit-node-client-6.11.2.tgz", + "integrity": "sha512-mV+gc6rDjvECGvmso0LccoIK7mdXXqWYuTHNQOPJbYhN7wiDdNHBdLIu/TweBNzr5A1OYEyrhMd+4QINx/Ydcw==", "license": "MIT", "dependencies": { "@cosmjs/amino": "0.30.1", @@ -5431,26 +5293,26 @@ "@ethersproject/strings": "5.7.0", "@ethersproject/transactions": "5.7.0", "@ethersproject/wallet": "5.7.0", - "@lit-protocol/access-control-conditions": "6.4.0", - "@lit-protocol/accs-schemas": "0.0.7", - "@lit-protocol/auth-browser": "6.4.0", - "@lit-protocol/auth-helpers": "6.4.0", - "@lit-protocol/bls-sdk": "6.4.0", - "@lit-protocol/constants": "6.4.0", - "@lit-protocol/contracts": "^0.0.39", - "@lit-protocol/contracts-sdk": "6.4.0", - "@lit-protocol/core": "6.4.0", - "@lit-protocol/crypto": "6.4.0", - "@lit-protocol/ecdsa-sdk": "6.4.0", - "@lit-protocol/encryption": "6.4.0", - "@lit-protocol/lit-node-client-nodejs": "6.4.0", - "@lit-protocol/logger": "6.4.0", - "@lit-protocol/misc": "6.4.0", - "@lit-protocol/misc-browser": "6.4.0", - "@lit-protocol/nacl": "6.4.0", - "@lit-protocol/sev-snp-utils-sdk": "6.4.0", - "@lit-protocol/types": "6.4.0", - "@lit-protocol/uint8arrays": "6.4.0", + "@lit-protocol/access-control-conditions": "6.11.2", + "@lit-protocol/accs-schemas": "^0.0.19", + "@lit-protocol/auth-browser": "6.11.2", + "@lit-protocol/auth-helpers": "6.11.2", + "@lit-protocol/bls-sdk": "6.11.2", + "@lit-protocol/constants": "6.11.2", + "@lit-protocol/contracts": "^0.0.63", + "@lit-protocol/contracts-sdk": "6.11.2", + "@lit-protocol/core": "6.11.2", + "@lit-protocol/crypto": "6.11.2", + "@lit-protocol/ecdsa-sdk": "6.11.2", + "@lit-protocol/encryption": "6.11.2", + "@lit-protocol/lit-node-client-nodejs": "6.11.2", + "@lit-protocol/logger": "6.11.2", + "@lit-protocol/misc": "6.11.2", + "@lit-protocol/misc-browser": "6.11.2", + "@lit-protocol/nacl": "6.11.2", + "@lit-protocol/sev-snp-utils-sdk": "6.11.2", + "@lit-protocol/types": "6.11.2", + "@lit-protocol/uint8arrays": "6.11.2", "@walletconnect/ethereum-provider": "2.9.2", "@walletconnect/modal": "2.6.1", "ajv": "^8.12.0", @@ -5464,19 +5326,17 @@ "multiformats": "^9.7.1", "pako": "1.0.11", "process": "0.11.10", - "punycode": "2.3.1", "siwe": "^2.0.5", "siwe-recap": "0.0.2-alpha.0", "tweetnacl": "^1.0.3", "tweetnacl-util": "^0.15.1", - "uint8arrays": "^4.0.3", "util": "0.12.5" } }, "node_modules/@lit-protocol/lit-node-client-nodejs": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/lit-node-client-nodejs/-/lit-node-client-nodejs-6.4.0.tgz", - "integrity": "sha512-6rvyeqgzdkqk8yF9m+1Flg06f8SF4bM3U3jQ/FtZMC4S9n/Bw157B5153Tuzk6WD/xiNnPr+IvIL0xir7pZrOw==", + "version": "6.11.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/lit-node-client-nodejs/-/lit-node-client-nodejs-6.11.2.tgz", + "integrity": "sha512-1xMwkEk2LXJi2aOosolDEpVQmthLl6SQbshk0fvwJn57Q+xYBOLH9PjZ9JinGgLOZ6lQGJS6E7yYJ/b4FFo5tA==", "license": "MIT", "dependencies": { "@cosmjs/amino": "0.30.1", @@ -5487,24 +5347,24 @@ "@ethersproject/contracts": "5.7.0", "@ethersproject/providers": "5.7.2", "@ethersproject/transactions": "5.7.0", - "@lit-protocol/access-control-conditions": "6.4.0", - "@lit-protocol/accs-schemas": "0.0.7", - "@lit-protocol/auth-helpers": "6.4.0", - "@lit-protocol/bls-sdk": "6.4.0", - "@lit-protocol/constants": "6.4.0", - "@lit-protocol/contracts": "^0.0.39", - "@lit-protocol/contracts-sdk": "6.4.0", - "@lit-protocol/core": "6.4.0", - "@lit-protocol/crypto": "6.4.0", - "@lit-protocol/ecdsa-sdk": "6.4.0", - "@lit-protocol/encryption": "6.4.0", - "@lit-protocol/logger": "6.4.0", - "@lit-protocol/misc": "6.4.0", - "@lit-protocol/misc-browser": "6.4.0", - "@lit-protocol/nacl": "6.4.0", - "@lit-protocol/sev-snp-utils-sdk": "6.4.0", - "@lit-protocol/types": "6.4.0", - "@lit-protocol/uint8arrays": "6.4.0", + "@lit-protocol/access-control-conditions": "6.11.2", + "@lit-protocol/accs-schemas": "^0.0.19", + "@lit-protocol/auth-helpers": "6.11.2", + "@lit-protocol/bls-sdk": "6.11.2", + "@lit-protocol/constants": "6.11.2", + "@lit-protocol/contracts": "^0.0.63", + "@lit-protocol/contracts-sdk": "6.11.2", + "@lit-protocol/core": "6.11.2", + "@lit-protocol/crypto": "6.11.2", + "@lit-protocol/ecdsa-sdk": "6.11.2", + "@lit-protocol/encryption": "6.11.2", + "@lit-protocol/logger": "6.11.2", + "@lit-protocol/misc": "6.11.2", + "@lit-protocol/misc-browser": "6.11.2", + "@lit-protocol/nacl": "6.11.2", + "@lit-protocol/sev-snp-utils-sdk": "6.11.2", + "@lit-protocol/types": "6.11.2", + "@lit-protocol/uint8arrays": "6.11.2", "ajv": "^8.12.0", "bitcoinjs-lib": "^6.1.0", "bs58": "^5.0.0", @@ -5516,11 +5376,9 @@ "multiformats": "^9.7.1", "pako": "1.0.11", "process": "0.11.10", - "punycode": "2.3.1", "siwe": "^2.0.5", "siwe-recap": "0.0.2-alpha.0", "tslib": "^2.3.0", - "uint8arrays": "^4.0.3", "util": "0.12.5" } }, @@ -5540,21 +5398,6 @@ "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/@lit-protocol/lit-node-client-nodejs/node_modules/base-x": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/base-x/-/base-x-4.0.0.tgz", - "integrity": "sha512-FuwxlW4H5kh37X/oW59pwTzzTKRzfrrQwhmyspRM7swOEZcHtDZSCt45U6oKgtuFE+WYPblePMVIPR4RZrh/hw==", - "license": "MIT" - }, - "node_modules/@lit-protocol/lit-node-client-nodejs/node_modules/bs58": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/bs58/-/bs58-5.0.0.tgz", - "integrity": "sha512-r+ihvQJvahgYT50JD05dyJNKlmmSlMoOGwn1lCcEzanPglg7TxYjioQUYehQ9mAR/+hOSd2jRc/Z2y5UxBymvQ==", - "license": "MIT", - "dependencies": { - "base-x": "^4.0.0" - } - }, "node_modules/@lit-protocol/lit-node-client-nodejs/node_modules/cross-fetch": { "version": "3.1.4", "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.4.tgz", @@ -5657,25 +5500,6 @@ "npm": ">=7.0.0" } }, - "node_modules/@lit-protocol/lit-node-client-nodejs/node_modules/uint8arrays": { - "version": "4.0.10", - "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-4.0.10.tgz", - "integrity": "sha512-AnJNUGGDJAgFw/eWu/Xb9zrVKEGlwJJCaeInlf3BkecE/zcTobk5YXYIPNQJO1q5Hh1QZrQQHf0JvcHqz2hqoA==", - "license": "Apache-2.0 OR MIT", - "dependencies": { - "multiformats": "^12.0.1" - } - }, - "node_modules/@lit-protocol/lit-node-client-nodejs/node_modules/uint8arrays/node_modules/multiformats": { - "version": "12.1.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.1.3.tgz", - "integrity": "sha512-eajQ/ZH7qXZQR2AgtfpmSMizQzmyYVmCql7pdhldPuYQi4atACekbJaQplk6dWyIi10jCaFnd6pqvcEFXjbaJw==", - "license": "Apache-2.0 OR MIT", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, "node_modules/@lit-protocol/lit-node-client/node_modules/@walletconnect/core": { "version": "2.9.2", "resolved": "https://registry.npmjs.org/@walletconnect/core/-/core-2.9.2.tgz", @@ -5906,21 +5730,6 @@ "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/@lit-protocol/lit-node-client/node_modules/base-x": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/base-x/-/base-x-4.0.0.tgz", - "integrity": "sha512-FuwxlW4H5kh37X/oW59pwTzzTKRzfrrQwhmyspRM7swOEZcHtDZSCt45U6oKgtuFE+WYPblePMVIPR4RZrh/hw==", - "license": "MIT" - }, - "node_modules/@lit-protocol/lit-node-client/node_modules/bs58": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/bs58/-/bs58-5.0.0.tgz", - "integrity": "sha512-r+ihvQJvahgYT50JD05dyJNKlmmSlMoOGwn1lCcEzanPglg7TxYjioQUYehQ9mAR/+hOSd2jRc/Z2y5UxBymvQ==", - "license": "MIT", - "dependencies": { - "base-x": "^4.0.0" - } - }, "node_modules/@lit-protocol/lit-node-client/node_modules/cross-fetch": { "version": "3.1.4", "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.4.tgz", @@ -6040,25 +5849,6 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "license": "0BSD" }, - "node_modules/@lit-protocol/lit-node-client/node_modules/uint8arrays": { - "version": "4.0.10", - "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-4.0.10.tgz", - "integrity": "sha512-AnJNUGGDJAgFw/eWu/Xb9zrVKEGlwJJCaeInlf3BkecE/zcTobk5YXYIPNQJO1q5Hh1QZrQQHf0JvcHqz2hqoA==", - "license": "Apache-2.0 OR MIT", - "dependencies": { - "multiformats": "^12.0.1" - } - }, - "node_modules/@lit-protocol/lit-node-client/node_modules/uint8arrays/node_modules/multiformats": { - "version": "12.1.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.1.3.tgz", - "integrity": "sha512-eajQ/ZH7qXZQR2AgtfpmSMizQzmyYVmCql7pdhldPuYQi4atACekbJaQplk6dWyIi10jCaFnd6pqvcEFXjbaJw==", - "license": "Apache-2.0 OR MIT", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, "node_modules/@lit-protocol/lit-node-client/node_modules/valtio": { "version": "1.11.0", "resolved": "https://registry.npmjs.org/valtio/-/valtio-1.11.0.tgz", @@ -6102,21 +5892,19 @@ } }, "node_modules/@lit-protocol/logger": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/logger/-/logger-6.4.0.tgz", - "integrity": "sha512-0+bBR79PfkASklFHXhZn5CDZMdoRPy43AOgUQVXCppXNpOqdhRuxUNXyDuoOJhmkFq21ns7XMtxkxcXDTCEWzw==", + "version": "6.11.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/logger/-/logger-6.11.2.tgz", + "integrity": "sha512-YUIYSOuAqQHbk7kS+c/vTyKWeN+2/x/HjE8eBj3nunQ7EhpK5Y6fIUoUj0Zzr7hUW3mWB9KabB92U9hbweQfkA==", "dependencies": { "@ethersproject/abstract-provider": "5.7.0", - "@lit-protocol/accs-schemas": "0.0.7", - "@lit-protocol/constants": "6.4.0", - "@lit-protocol/contracts": "^0.0.39", - "@lit-protocol/types": "6.4.0", + "@lit-protocol/accs-schemas": "^0.0.19", + "@lit-protocol/constants": "6.11.2", + "@lit-protocol/contracts": "^0.0.63", + "@lit-protocol/types": "6.11.2", "ethers": "^5.7.1", "jszip": "^3.10.1", - "punycode": "2.3.1", "siwe": "^2.0.5", - "tslib": "1.14.1", - "uint8arrays": "^4.0.3" + "tslib": "1.14.1" } }, "node_modules/@lit-protocol/logger/node_modules/ethers": { @@ -6167,67 +5955,46 @@ "@ethersproject/wordlists": "5.7.0" } }, - "node_modules/@lit-protocol/logger/node_modules/multiformats": { - "version": "12.1.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.1.3.tgz", - "integrity": "sha512-eajQ/ZH7qXZQR2AgtfpmSMizQzmyYVmCql7pdhldPuYQi4atACekbJaQplk6dWyIi10jCaFnd6pqvcEFXjbaJw==", - "license": "Apache-2.0 OR MIT", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, "node_modules/@lit-protocol/logger/node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "license": "0BSD" }, - "node_modules/@lit-protocol/logger/node_modules/uint8arrays": { - "version": "4.0.10", - "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-4.0.10.tgz", - "integrity": "sha512-AnJNUGGDJAgFw/eWu/Xb9zrVKEGlwJJCaeInlf3BkecE/zcTobk5YXYIPNQJO1q5Hh1QZrQQHf0JvcHqz2hqoA==", - "license": "Apache-2.0 OR MIT", - "dependencies": { - "multiformats": "^12.0.1" - } - }, "node_modules/@lit-protocol/misc": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/misc/-/misc-6.4.0.tgz", - "integrity": "sha512-ek1DWsj2I5P95nGEdSbjyDHF4/gbD5bn6W8bCMy6DHZSnahh5ae6iY1CD0hDGRfbowCtLM3vaPydRhZwN6UuEg==", + "version": "6.11.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/misc/-/misc-6.11.2.tgz", + "integrity": "sha512-J+YbDRpGmO9dtyjJv18pJHRL7qu8acu36wF04Lu8ZwRoYHMBVNQHBNRl7z6h8rcV3TEs9/aERTIQZI23K/EbpA==", "license": "MIT", "dependencies": { "@ethersproject/abstract-provider": "5.7.0", "@ethersproject/contracts": "5.7.0", "@ethersproject/providers": "5.7.2", - "@lit-protocol/accs-schemas": "0.0.7", - "@lit-protocol/constants": "6.4.0", - "@lit-protocol/contracts": "^0.0.39", - "@lit-protocol/logger": "6.4.0", - "@lit-protocol/types": "6.4.0", + "@lit-protocol/accs-schemas": "^0.0.19", + "@lit-protocol/constants": "6.11.2", + "@lit-protocol/contracts": "^0.0.63", + "@lit-protocol/logger": "6.11.2", + "@lit-protocol/types": "6.11.2", "ajv": "^8.12.0", "ethers": "^5.7.1", "jszip": "^3.10.1", - "punycode": "2.3.1", "siwe": "^2.0.5", "tslib": "1.14.1", - "uint8arrays": "^4.0.3", "util": "0.12.5" } }, "node_modules/@lit-protocol/misc-browser": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/misc-browser/-/misc-browser-6.4.0.tgz", - "integrity": "sha512-RUki2ald8KllNJYbp6I6/oekuQVNCl+kw4U/C64NKP+EePiUwPqmuSJ5yAWWznKNaDDFPmSUyLy3Gz/dRYvfUQ==", + "version": "6.11.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/misc-browser/-/misc-browser-6.11.2.tgz", + "integrity": "sha512-dAHutu+S7BKYfIGXKlWmdsj2T2dneGBTwY09D5GVrgf6iCmyZd5O4X3tCw+vrfVeRxbdLQQrIe2VQkJhP0yMXw==", "license": "MIT", "dependencies": { "@ethersproject/abstract-provider": "5.7.0", - "@lit-protocol/accs-schemas": "0.0.7", - "@lit-protocol/constants": "6.4.0", - "@lit-protocol/contracts": "^0.0.39", - "@lit-protocol/types": "6.4.0", - "@lit-protocol/uint8arrays": "6.4.0", + "@lit-protocol/accs-schemas": "^0.0.19", + "@lit-protocol/constants": "6.11.2", + "@lit-protocol/contracts": "^0.0.63", + "@lit-protocol/types": "6.11.2", + "@lit-protocol/uint8arrays": "6.11.2", "ethers": "^5.7.1", "jszip": "^3.10.1", "siwe": "^2.0.5", @@ -6358,35 +6125,16 @@ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", "license": "MIT" }, - "node_modules/@lit-protocol/misc/node_modules/multiformats": { - "version": "12.1.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.1.3.tgz", - "integrity": "sha512-eajQ/ZH7qXZQR2AgtfpmSMizQzmyYVmCql7pdhldPuYQi4atACekbJaQplk6dWyIi10jCaFnd6pqvcEFXjbaJw==", - "license": "Apache-2.0 OR MIT", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, "node_modules/@lit-protocol/misc/node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "license": "0BSD" }, - "node_modules/@lit-protocol/misc/node_modules/uint8arrays": { - "version": "4.0.10", - "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-4.0.10.tgz", - "integrity": "sha512-AnJNUGGDJAgFw/eWu/Xb9zrVKEGlwJJCaeInlf3BkecE/zcTobk5YXYIPNQJO1q5Hh1QZrQQHf0JvcHqz2hqoA==", - "license": "Apache-2.0 OR MIT", - "dependencies": { - "multiformats": "^12.0.1" - } - }, "node_modules/@lit-protocol/nacl": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/nacl/-/nacl-6.4.0.tgz", - "integrity": "sha512-gDCvW0up9YVe3V3bzEX2wmSzl9850K91098gXXUrprGq1ByXIjShfxP7Orlr0J5gXP1JcHLsXpVPXxNIpK4Fbg==", + "version": "6.11.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/nacl/-/nacl-6.11.2.tgz", + "integrity": "sha512-lMImHYQbtTqR7A+XfuAghLczpmj2ctAFXp0e8OwUFk8cTlBhhncvDihAxtddHFD+iqGKKFIXrtukhOt8d64qiA==", "license": "MIT", "dependencies": { "tslib": "1.14.1" @@ -6399,9 +6147,9 @@ "license": "0BSD" }, "node_modules/@lit-protocol/sev-snp-utils-sdk": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/sev-snp-utils-sdk/-/sev-snp-utils-sdk-6.4.0.tgz", - "integrity": "sha512-bpGJF00YueR28Py825ckO5+kZO/lEg5VFz2jQ4clsugSXrvlKjtMgSQUB/Dx5hRbT/vOOQdI+ygy81vGp++tsw==", + "version": "6.11.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/sev-snp-utils-sdk/-/sev-snp-utils-sdk-6.11.2.tgz", + "integrity": "sha512-53Pk/8NsFVvfx6wxpoSQkJ3IjovXv8W66PcZyj5awNpR0RMmeXH3aYZtCD0OLl+Aa0PIoRDPUDBKUflKLlogtw==", "license": "MIT", "dependencies": { "cross-fetch": "3.1.4", @@ -6433,13 +6181,13 @@ "license": "0BSD" }, "node_modules/@lit-protocol/types": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/types/-/types-6.4.0.tgz", - "integrity": "sha512-x1PGp5+c3eG/RezHSk2ucnxlxkLs1+Y9r2R4jBGmKQ8V1JyOsyrTaWz645nItSLZRKTQxdtU7EV1k25VeuAAnQ==", + "version": "6.11.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/types/-/types-6.11.2.tgz", + "integrity": "sha512-CPsOcRaRrEkN2X1gV5yYdyaNmNjzWubWgpzElFtvxg0RqU52a+XBGyF2lwFj3rPMkXAqU7ebC9tffU8sSII7bg==", "license": "MIT", "dependencies": { "@ethersproject/abstract-provider": "5.7.0", - "@lit-protocol/accs-schemas": "0.0.7", + "@lit-protocol/accs-schemas": "^0.0.19", "ethers": "^5.7.1", "jszip": "^3.10.1", "siwe": "^2.0.5", @@ -6501,14 +6249,14 @@ "license": "0BSD" }, "node_modules/@lit-protocol/uint8arrays": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/uint8arrays/-/uint8arrays-6.4.0.tgz", - "integrity": "sha512-Eio+Ar6E0ZzBlJ3mGrPk4iNvyRHbbRmjI/p/VftorjXbMBejNP3WA5x4hQVKoHYrdSLY4Do3zhGunCqF/n6/nA==", + "version": "6.11.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/uint8arrays/-/uint8arrays-6.11.2.tgz", + "integrity": "sha512-LJYNxrwK+pjT39akzPxjMrABedP6dHZqZ+P7/t2s6ueDSvAGT+koeivP14uvMqhjZwsSl0QpPjwhmGowYeKLXw==", "license": "MIT", "dependencies": { "@ethersproject/abstract-provider": "5.7.0", - "@lit-protocol/accs-schemas": "0.0.7", - "@lit-protocol/contracts": "^0.0.39", + "@lit-protocol/accs-schemas": "^0.0.19", + "@lit-protocol/contracts": "^0.0.63", "ethers": "^5.7.1", "jszip": "^3.10.1", "siwe": "^2.0.5", @@ -7895,6 +7643,35 @@ } } }, + "node_modules/@nomicfoundation/ethereumjs-tx/node_modules/base-x": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.10.tgz", + "integrity": "sha512-7d0s06rR9rYaIWHkpfLIFICM/tkSVdoPC9qYAQRpxn9DdKNWNsKC0uk++akckyLq16Tx2WIinnZ6WRriAt6njQ==", + "license": "MIT", + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, + "node_modules/@nomicfoundation/ethereumjs-tx/node_modules/bs58": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", + "integrity": "sha512-Ok3Wdf5vOIlBrgCvTq96gBkJw+JUEzdBgyaza5HLtPm7yTHkjRy8+JzNyHF7BHa0bNWOQIp3m5YF0nnFcOIKLw==", + "license": "MIT", + "dependencies": { + "base-x": "^3.0.2" + } + }, + "node_modules/@nomicfoundation/ethereumjs-tx/node_modules/bs58check": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/bs58check/-/bs58check-2.1.2.tgz", + "integrity": "sha512-0TS1jicxdU09dwJMNZtVAfzPi6Q6QeN0pM1Fkzrjn+XYHvzMKPU3pHVpva+769iNVSfIYWf7LJ6WR+BuuMf8cA==", + "license": "MIT", + "dependencies": { + "bs58": "^4.0.0", + "create-hash": "^1.1.0", + "safe-buffer": "^5.1.2" + } + }, "node_modules/@nomicfoundation/ethereumjs-tx/node_modules/ethereum-cryptography": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", @@ -7918,19 +7695,25 @@ "setimmediate": "^1.0.5" } }, + "node_modules/@nomicfoundation/ethereumjs-tx/node_modules/node-addon-api": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz", + "integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==", + "license": "MIT" + }, "node_modules/@nomicfoundation/ethereumjs-tx/node_modules/secp256k1": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-4.0.3.tgz", - "integrity": "sha512-NLZVf+ROMxwtEj3Xa562qgv2BK5e2WNmXPiOdVIPLgs6lyTzMvBq0aWTYMI5XCP9jZMVKOcqZLw/Wc4vDkuxhA==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-4.0.4.tgz", + "integrity": "sha512-6JfvwvjUOn8F/jUoBY2Q1v5WY5XS+rj8qSe0v8Y4ezH4InLgTEeOOPQsRll9OV429Pvo6BCHGavIyJfr3TAhsw==", "hasInstallScript": true, "license": "MIT", "dependencies": { - "elliptic": "^6.5.4", - "node-addon-api": "^2.0.0", + "elliptic": "^6.5.7", + "node-addon-api": "^5.0.0", "node-gyp-build": "^4.2.0" }, "engines": { - "node": ">=10.0.0" + "node": ">=18.0.0" } }, "node_modules/@nomicfoundation/ethereumjs-util": { @@ -7954,6 +7737,35 @@ } } }, + "node_modules/@nomicfoundation/ethereumjs-util/node_modules/base-x": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.10.tgz", + "integrity": "sha512-7d0s06rR9rYaIWHkpfLIFICM/tkSVdoPC9qYAQRpxn9DdKNWNsKC0uk++akckyLq16Tx2WIinnZ6WRriAt6njQ==", + "license": "MIT", + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, + "node_modules/@nomicfoundation/ethereumjs-util/node_modules/bs58": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", + "integrity": "sha512-Ok3Wdf5vOIlBrgCvTq96gBkJw+JUEzdBgyaza5HLtPm7yTHkjRy8+JzNyHF7BHa0bNWOQIp3m5YF0nnFcOIKLw==", + "license": "MIT", + "dependencies": { + "base-x": "^3.0.2" + } + }, + "node_modules/@nomicfoundation/ethereumjs-util/node_modules/bs58check": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/bs58check/-/bs58check-2.1.2.tgz", + "integrity": "sha512-0TS1jicxdU09dwJMNZtVAfzPi6Q6QeN0pM1Fkzrjn+XYHvzMKPU3pHVpva+769iNVSfIYWf7LJ6WR+BuuMf8cA==", + "license": "MIT", + "dependencies": { + "bs58": "^4.0.0", + "create-hash": "^1.1.0", + "safe-buffer": "^5.1.2" + } + }, "node_modules/@nomicfoundation/ethereumjs-util/node_modules/ethereum-cryptography": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", @@ -7977,19 +7789,25 @@ "setimmediate": "^1.0.5" } }, + "node_modules/@nomicfoundation/ethereumjs-util/node_modules/node-addon-api": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz", + "integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==", + "license": "MIT" + }, "node_modules/@nomicfoundation/ethereumjs-util/node_modules/secp256k1": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-4.0.3.tgz", - "integrity": "sha512-NLZVf+ROMxwtEj3Xa562qgv2BK5e2WNmXPiOdVIPLgs6lyTzMvBq0aWTYMI5XCP9jZMVKOcqZLw/Wc4vDkuxhA==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-4.0.4.tgz", + "integrity": "sha512-6JfvwvjUOn8F/jUoBY2Q1v5WY5XS+rj8qSe0v8Y4ezH4InLgTEeOOPQsRll9OV429Pvo6BCHGavIyJfr3TAhsw==", "hasInstallScript": true, "license": "MIT", "dependencies": { - "elliptic": "^6.5.4", - "node-addon-api": "^2.0.0", + "elliptic": "^6.5.7", + "node-addon-api": "^5.0.0", "node-gyp-build": "^4.2.0" }, "engines": { - "node": ">=10.0.0" + "node": ">=18.0.0" } }, "node_modules/@nomicfoundation/solidity-analyzer": { @@ -11101,9 +10919,9 @@ } }, "node_modules/@scure/base": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.7.tgz", - "integrity": "sha512-PPNYBslrLNNUQ/Yad37MHYsNQtK67EhWb6WtSvNLLPo7SdVZgkUjD6Dg+5On7zNwmskf8OX7I7Nx5oN+MIWE0g==", + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.9.tgz", + "integrity": "sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==", "license": "MIT", "funding": { "url": "https://paulmillr.com/funding/" @@ -11860,6 +11678,30 @@ "@testing-library/dom": ">=7.21.4" } }, + "node_modules/@tsconfig/node10": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz", + "integrity": "sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==", + "license": "MIT" + }, + "node_modules/@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", + "license": "MIT" + }, + "node_modules/@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", + "license": "MIT" + }, + "node_modules/@tsconfig/node16": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", + "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", + "license": "MIT" + }, "node_modules/@types/aria-query": { "version": "5.0.4", "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.4.tgz", @@ -11908,9 +11750,9 @@ } }, "node_modules/@types/bn.js": { - "version": "5.1.5", - "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.1.5.tgz", - "integrity": "sha512-V46N0zwKRF5Q00AZ6hWtN0T8gGmDUaUzLWQvHFo5yThtVwK/VCenFY3wXVbOvNfajEpsTfQM4IN9k/d6gUVX3A==", + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.1.6.tgz", + "integrity": "sha512-Xh8vSwUeMKeYYrj3cX4lGQgFSF/N03r+tv4AiLl1SucqV+uTQpxRcnM8AkXKHwYP9ZPXOYXRr2KPXpVlIvqh9w==", "license": "MIT", "dependencies": { "@types/node": "*" @@ -11982,12 +11824,12 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "22.0.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.0.0.tgz", - "integrity": "sha512-VT7KSYudcPOzP5Q0wfbowyNLaVR8QWUdw+088uFWwfvpY6uCWaXpqV6ieLAu9WBcnTa7H4Z5RLK8I5t2FuOcqw==", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.5.tgz", + "integrity": "sha512-jML7s2NAzMWc//QSJ1a3prpk78cOPchGvXJsC3C6R6PSMoooztvRVQEz89gmBTBY1SPMaqo5teB4uNHPdetShQ==", "license": "MIT", "dependencies": { - "undici-types": "~6.11.1" + "undici-types": "~6.19.2" } }, "node_modules/@types/node-forge": { @@ -12980,9 +12822,9 @@ "license": "0BSD" }, "node_modules/abitype": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/abitype/-/abitype-1.0.5.tgz", - "integrity": "sha512-YzDhti7cjlfaBhHutMaboYB21Ha3rXR9QTkNJFzYC4kC8YclaiwPBBBJY8ejFdu2wnJeZCVZSMlQJ7fi8S6hsw==", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/abitype/-/abitype-1.0.6.tgz", + "integrity": "sha512-MMSqYh4+C/aVqI2RQaWqbvI4Kxo5cQV40WQ4QFtDnNzCkqChm8MuENhElmynZlO0qUy/ObkEUaXtKqYnx1Kp3A==", "license": "MIT", "funding": { "url": "https://github.com/sponsors/wevm" @@ -13047,6 +12889,18 @@ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, + "node_modules/acorn-walk": { + "version": "8.3.4", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz", + "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==", + "license": "MIT", + "dependencies": { + "acorn": "^8.11.0" + }, + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/adm-zip": { "version": "0.4.16", "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.4.16.tgz", @@ -13756,13 +13610,10 @@ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" }, "node_modules/base-x": { - "version": "3.0.10", - "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.10.tgz", - "integrity": "sha512-7d0s06rR9rYaIWHkpfLIFICM/tkSVdoPC9qYAQRpxn9DdKNWNsKC0uk++akckyLq16Tx2WIinnZ6WRriAt6njQ==", - "license": "MIT", - "dependencies": { - "safe-buffer": "^5.0.1" - } + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/base-x/-/base-x-4.0.0.tgz", + "integrity": "sha512-FuwxlW4H5kh37X/oW59pwTzzTKRzfrrQwhmyspRM7swOEZcHtDZSCt45U6oKgtuFE+WYPblePMVIPR4RZrh/hw==", + "license": "MIT" }, "node_modules/base64-js": { "version": "1.5.1", @@ -13827,37 +13678,12 @@ "node": ">=8.0.0" } }, - "node_modules/bitcoinjs-lib/node_modules/base-x": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/base-x/-/base-x-4.0.0.tgz", - "integrity": "sha512-FuwxlW4H5kh37X/oW59pwTzzTKRzfrrQwhmyspRM7swOEZcHtDZSCt45U6oKgtuFE+WYPblePMVIPR4RZrh/hw==", - "license": "MIT" - }, "node_modules/bitcoinjs-lib/node_modules/bech32": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/bech32/-/bech32-2.0.0.tgz", "integrity": "sha512-LcknSilhIGatDAsY1ak2I8VtGaHNhgMSYVxFrGLXv+xLHytaKZKcaUJJUE7qmBr7h33o5YQwP55pMI0xmkpJwg==", "license": "MIT" }, - "node_modules/bitcoinjs-lib/node_modules/bs58": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/bs58/-/bs58-5.0.0.tgz", - "integrity": "sha512-r+ihvQJvahgYT50JD05dyJNKlmmSlMoOGwn1lCcEzanPglg7TxYjioQUYehQ9mAR/+hOSd2jRc/Z2y5UxBymvQ==", - "license": "MIT", - "dependencies": { - "base-x": "^4.0.0" - } - }, - "node_modules/bitcoinjs-lib/node_modules/bs58check": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/bs58check/-/bs58check-3.0.1.tgz", - "integrity": "sha512-hjuuJvoWEybo7Hn/0xOrczQKKEKD63WguEjlhLExYs2wUBcebDC1jDNK17eEAD2lYfw82d5ASC1d7K3SWszjaQ==", - "license": "MIT", - "dependencies": { - "@noble/hashes": "^1.2.0", - "bs58": "^5.0.0" - } - }, "node_modules/bl": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", @@ -14264,23 +14090,22 @@ } }, "node_modules/bs58": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", - "integrity": "sha512-Ok3Wdf5vOIlBrgCvTq96gBkJw+JUEzdBgyaza5HLtPm7yTHkjRy8+JzNyHF7BHa0bNWOQIp3m5YF0nnFcOIKLw==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/bs58/-/bs58-5.0.0.tgz", + "integrity": "sha512-r+ihvQJvahgYT50JD05dyJNKlmmSlMoOGwn1lCcEzanPglg7TxYjioQUYehQ9mAR/+hOSd2jRc/Z2y5UxBymvQ==", "license": "MIT", "dependencies": { - "base-x": "^3.0.2" + "base-x": "^4.0.0" } }, "node_modules/bs58check": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/bs58check/-/bs58check-2.1.2.tgz", - "integrity": "sha512-0TS1jicxdU09dwJMNZtVAfzPi6Q6QeN0pM1Fkzrjn+XYHvzMKPU3pHVpva+769iNVSfIYWf7LJ6WR+BuuMf8cA==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/bs58check/-/bs58check-3.0.1.tgz", + "integrity": "sha512-hjuuJvoWEybo7Hn/0xOrczQKKEKD63WguEjlhLExYs2wUBcebDC1jDNK17eEAD2lYfw82d5ASC1d7K3SWszjaQ==", "license": "MIT", "dependencies": { - "bs58": "^4.0.0", - "create-hash": "^1.1.0", - "safe-buffer": "^5.1.2" + "@noble/hashes": "^1.2.0", + "bs58": "^5.0.0" } }, "node_modules/bser": { @@ -15749,6 +15574,18 @@ "url": "https://bevry.me/fund" } }, + "node_modules/dotenv": { + "version": "16.4.5", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz", + "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, "node_modules/duplexify": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-4.1.3.tgz", @@ -15791,9 +15628,9 @@ "integrity": "sha512-eGvIk2V0dGImV9gWLq8fDfTTsCAeMDwZqEPMr+jMInxZdnp9Us8UpovYpRCf9NQ7VOFgrN2doNSgvISbsbNpxA==" }, "node_modules/elliptic": { - "version": "6.5.6", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.6.tgz", - "integrity": "sha512-mpzdtpeCLuS3BmE3pO3Cpp5bbjlOPY2Q0PgoF+Od1XZrHLYI28Xe3ossCmYCQt11FQKEYd9+PF8jymTvtWJSHQ==", + "version": "6.6.1", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.6.1.tgz", + "integrity": "sha512-RaddvvMatK2LJHqFJ+YA4WysVN5Ita9E35botqIYspQ4TkRAlCicdzKOjlyv/1Za5RyTNn7di//eEV0uTAfe3g==", "license": "MIT", "dependencies": { "bn.js": "^4.11.9", @@ -17027,6 +16864,7 @@ "version": "0.6.8", "resolved": "https://registry.npmjs.org/ethereumjs-abi/-/ethereumjs-abi-0.6.8.tgz", "integrity": "sha512-Tx0r/iXI6r+lRsdvkFDlut0N08jWMnKRZ6Gkq+Nmw75lZe4e6o3EkSnkaBP5NF6+m5PTGAr9JP43N3LyeoglsA==", + "deprecated": "This library has been deprecated and usage is discouraged.", "license": "MIT", "dependencies": { "bn.js": "^4.11.8", @@ -17034,9 +16872,9 @@ } }, "node_modules/ethereumjs-abi/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "version": "4.12.1", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.1.tgz", + "integrity": "sha512-k8TVBiPkPJT9uHLdOKfFpqcfprwBFOAAXXozRubr7R7PfIuKvQlzcI4M0pALeqXN09vdaMbUdUj+pass+uULAg==", "license": "MIT" }, "node_modules/ethereumjs-util": { @@ -17063,12 +16901,41 @@ "@types/node": "*" } }, - "node_modules/ethereumjs-util/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", - "license": "MIT" - }, + "node_modules/ethereumjs-util/node_modules/base-x": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.10.tgz", + "integrity": "sha512-7d0s06rR9rYaIWHkpfLIFICM/tkSVdoPC9qYAQRpxn9DdKNWNsKC0uk++akckyLq16Tx2WIinnZ6WRriAt6njQ==", + "license": "MIT", + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, + "node_modules/ethereumjs-util/node_modules/bn.js": { + "version": "4.12.1", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.1.tgz", + "integrity": "sha512-k8TVBiPkPJT9uHLdOKfFpqcfprwBFOAAXXozRubr7R7PfIuKvQlzcI4M0pALeqXN09vdaMbUdUj+pass+uULAg==", + "license": "MIT" + }, + "node_modules/ethereumjs-util/node_modules/bs58": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", + "integrity": "sha512-Ok3Wdf5vOIlBrgCvTq96gBkJw+JUEzdBgyaza5HLtPm7yTHkjRy8+JzNyHF7BHa0bNWOQIp3m5YF0nnFcOIKLw==", + "license": "MIT", + "dependencies": { + "base-x": "^3.0.2" + } + }, + "node_modules/ethereumjs-util/node_modules/bs58check": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/bs58check/-/bs58check-2.1.2.tgz", + "integrity": "sha512-0TS1jicxdU09dwJMNZtVAfzPi6Q6QeN0pM1Fkzrjn+XYHvzMKPU3pHVpva+769iNVSfIYWf7LJ6WR+BuuMf8cA==", + "license": "MIT", + "dependencies": { + "bs58": "^4.0.0", + "create-hash": "^1.1.0", + "safe-buffer": "^5.1.2" + } + }, "node_modules/ethereumjs-util/node_modules/ethereum-cryptography": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", @@ -17092,19 +16959,25 @@ "setimmediate": "^1.0.5" } }, + "node_modules/ethereumjs-util/node_modules/node-addon-api": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz", + "integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==", + "license": "MIT" + }, "node_modules/ethereumjs-util/node_modules/secp256k1": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-4.0.3.tgz", - "integrity": "sha512-NLZVf+ROMxwtEj3Xa562qgv2BK5e2WNmXPiOdVIPLgs6lyTzMvBq0aWTYMI5XCP9jZMVKOcqZLw/Wc4vDkuxhA==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-4.0.4.tgz", + "integrity": "sha512-6JfvwvjUOn8F/jUoBY2Q1v5WY5XS+rj8qSe0v8Y4ezH4InLgTEeOOPQsRll9OV429Pvo6BCHGavIyJfr3TAhsw==", "hasInstallScript": true, "license": "MIT", "dependencies": { - "elliptic": "^6.5.4", - "node-addon-api": "^2.0.0", + "elliptic": "^6.5.7", + "node-addon-api": "^5.0.0", "node-gyp-build": "^4.2.0" }, "engines": { - "node": ">=10.0.0" + "node": ">=18.0.0" } }, "node_modules/ethers": { @@ -18034,14 +17907,14 @@ } }, "node_modules/hardhat": { - "version": "2.22.1", - "resolved": "https://registry.npmjs.org/hardhat/-/hardhat-2.22.1.tgz", - "integrity": "sha512-cTWYIJc5jQ132XUI8oRI/TO9L6oavPoJRCTRU9sIjkVxvkxz0Axz0K83Z3BEdJTqBQ2W84ZRoTekti84kBwCjg==", + "version": "2.22.4", + "resolved": "https://registry.npmjs.org/hardhat/-/hardhat-2.22.4.tgz", + "integrity": "sha512-09qcXJFBHQUaraJkYNr7XlmwjOj27xBB0SL2rYS024hTj9tPMbp26AFjlf5quBMO9SR4AJFg+4qWahcYcvXBuQ==", "license": "MIT", "dependencies": { "@ethersproject/abi": "^5.1.2", "@metamask/eth-sig-util": "^4.0.0", - "@nomicfoundation/edr": "^0.3.1", + "@nomicfoundation/edr": "^0.3.7", "@nomicfoundation/ethereumjs-common": "4.0.4", "@nomicfoundation/ethereumjs-tx": "5.0.4", "@nomicfoundation/ethereumjs-util": "9.0.4", @@ -19438,13 +19311,13 @@ } }, "node_modules/isows": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/isows/-/isows-1.0.4.tgz", - "integrity": "sha512-hEzjY+x9u9hPmBom9IIAqdJCwNLax+xrPb51vEPpERoFlIxgmZcHzsT5jKG06nvInKOBGvReAVz80Umed5CczQ==", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/isows/-/isows-1.0.6.tgz", + "integrity": "sha512-lPHCayd40oW98/I0uvgaHKWCSvkzY27LjWLbtzOm64yQ+G3Q5npjjbdppU65iZXkK1Zt+kH9pfegli0AYfwYYw==", "funding": [ { "type": "github", - "url": "https://github.com/sponsors/wagmi-dev" + "url": "https://github.com/sponsors/wevm" } ], "license": "MIT", @@ -21105,6 +20978,12 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "license": "ISC" + }, "node_modules/makeerror": { "version": "1.0.12", "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", @@ -21976,9 +21855,9 @@ } }, "node_modules/mocha": { - "version": "10.7.3", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.7.3.tgz", - "integrity": "sha512-uQWxAu44wwiACGqjbPYmjo7Lg8sFrS3dQe7PP2FQI+woptP4vZXSMcfMyFL/e1yFEeEpV4RtyTpZROOKmxis+A==", + "version": "10.8.2", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.8.2.tgz", + "integrity": "sha512-VZlYo/WE8t1tstuRmqgeyBgCbJc/lEdopaa+axcKzTBJ+UIdlAB9XnmvTCAH4pwR4ElNInaedhEBmZD8iCSVEg==", "license": "MIT", "dependencies": { "ansi-colors": "^4.1.3", @@ -22792,6 +22671,118 @@ "integrity": "sha512-lgHwxlxV1qIg1Eap7LgIeoBWIMFibOjbrYPIPJZcI1mmGAI2m3lNYpK12Y+GBdPQ0U1hRwSord7GIaawz962qQ==", "license": "MIT" }, + "node_modules/oci-js-sdk": { + "version": "1.5.8", + "resolved": "https://registry.npmjs.org/oci-js-sdk/-/oci-js-sdk-1.5.8.tgz", + "integrity": "sha512-e6sYuR3euSuS4InnZHeV8CcQzpVfo+WqVJcctGlYELOrRqza4g6s4xdkpk7udygLDxyL+/iVTCQQXFpb38u8KA==", + "license": "ISC", + "dependencies": { + "@ethereum-attestation-service/eas-sdk": "^2.7.0", + "@lit-protocol/auth-helpers": "^6.11.0", + "@lit-protocol/constants": "^6.11.0", + "@lit-protocol/lit-node-client": "^6.11.0", + "@lit-protocol/lit-node-client-nodejs": "^6.11.0", + "@lit-protocol/types": "^6.11.0", + "dotenv": "^16.4.5", + "ethers": "^6.13.4", + "ts-node": "^10.9.2", + "tsconfig-paths": "^4.2.0", + "viem": "^2.21.27" + } + }, + "node_modules/oci-js-sdk/node_modules/@adraffy/ens-normalize": { + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.10.1.tgz", + "integrity": "sha512-96Z2IP3mYmF1Xg2cDm8f1gWGf/HUVedQ3FMifV4kG/PQ4yEP51xDtRAEfhVNt5f/uzpNkZHwWQuUcu6D6K+Ekw==", + "license": "MIT" + }, + "node_modules/oci-js-sdk/node_modules/@noble/curves": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.2.0.tgz", + "integrity": "sha512-oYclrNgRaM9SsBUBVbb8M6DTV7ZHRTKugureoYEncY5c65HOmRzvSiTE3y5CYaPYJA/GVkrhXEoF0M3Ya9PMnw==", + "license": "MIT", + "dependencies": { + "@noble/hashes": "1.3.2" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/oci-js-sdk/node_modules/@noble/hashes": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.2.tgz", + "integrity": "sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==", + "license": "MIT", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/oci-js-sdk/node_modules/ethers": { + "version": "6.13.4", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.13.4.tgz", + "integrity": "sha512-21YtnZVg4/zKkCQPjrDj38B1r4nQvTZLopUGMLQ1ePU2zV/joCfDC3t3iKQjWRzjjjbzR+mdAIoikeBRNkdllA==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/ethers-io/" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@adraffy/ens-normalize": "1.10.1", + "@noble/curves": "1.2.0", + "@noble/hashes": "1.3.2", + "@types/node": "22.7.5", + "aes-js": "4.0.0-beta.5", + "tslib": "2.7.0", + "ws": "8.17.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/oci-js-sdk/node_modules/tsconfig-paths": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-4.2.0.tgz", + "integrity": "sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==", + "license": "MIT", + "dependencies": { + "json5": "^2.2.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/oci-js-sdk/node_modules/ws": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", + "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, "node_modules/ofetch": { "version": "1.3.4", "resolved": "https://registry.npmjs.org/ofetch/-/ofetch-1.3.4.tgz", @@ -23075,6 +23066,110 @@ "integrity": "sha512-KiOAIsdpUTcAXuykya5fnVVT+/5uS0Q1mrkRHcF89tpieSmY33O/tmc54CqwA+bfhbtEfZUNLHaPUiB9X3jt1A==", "license": "MIT" }, + "node_modules/ox": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ox/-/ox-0.1.2.tgz", + "integrity": "sha512-ak/8K0Rtphg9vnRJlbOdaX9R7cmxD2MiSthjWGaQdMk3D7hrAlDoM+6Lxn7hN52Za3vrXfZ7enfke/5WjolDww==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wevm" + } + ], + "license": "MIT", + "dependencies": { + "@adraffy/ens-normalize": "^1.10.1", + "@noble/curves": "^1.6.0", + "@noble/hashes": "^1.5.0", + "@scure/bip32": "^1.5.0", + "@scure/bip39": "^1.4.0", + "abitype": "^1.0.6", + "eventemitter3": "5.0.1" + }, + "peerDependencies": { + "typescript": ">=5.4.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/ox/node_modules/@noble/curves": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.7.0.tgz", + "integrity": "sha512-UTMhXK9SeDhFJVrHeUJ5uZlI6ajXg10O6Ddocf9S6GjbSBVZsJo88HzKwXznNfGpMTRDyJkqMjNDPYgf0qFWnw==", + "license": "MIT", + "dependencies": { + "@noble/hashes": "1.6.0" + }, + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/ox/node_modules/@noble/curves/node_modules/@noble/hashes": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.6.0.tgz", + "integrity": "sha512-YUULf0Uk4/mAA89w+k3+yUYh6NrEvxZa5T6SY3wlMvE2chHkxFUUIDI8/XW1QSC357iA5pSnqt7XEhvFOqmDyQ==", + "license": "MIT", + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/ox/node_modules/@noble/hashes": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.6.1.tgz", + "integrity": "sha512-pq5D8h10hHBjyqX+cfBm0i8JUXJ0UhczFc4r74zbuT9XgewFo2E3J1cOaGtdZynILNmQ685YWGzGE1Zv6io50w==", + "license": "MIT", + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/ox/node_modules/@scure/base": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.2.1.tgz", + "integrity": "sha512-DGmGtC8Tt63J5GfHgfl5CuAXh96VF/LD8K9Hr/Gv0J2lAoRGlPOMpqMpMbCTOoOJMZCk2Xt+DskdDyn6dEFdzQ==", + "license": "MIT", + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/ox/node_modules/@scure/bip32": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.6.0.tgz", + "integrity": "sha512-82q1QfklrUUdXJzjuRU7iG7D7XiFx5PHYVS0+oeNKhyDLT7WPqs6pBcM2W5ZdwOwKCwoE1Vy1se+DHjcXwCYnA==", + "license": "MIT", + "dependencies": { + "@noble/curves": "~1.7.0", + "@noble/hashes": "~1.6.0", + "@scure/base": "~1.2.1" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/ox/node_modules/@scure/bip39": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.5.0.tgz", + "integrity": "sha512-Dop+ASYhnrwm9+HA/HwXg7j2ZqM6yk2fyLWb5znexjctFY3+E+eU8cIWI0Pql0Qx4hPZCijlGq4OL71g+Uz30A==", + "license": "MIT", + "dependencies": { + "@noble/hashes": "~1.6.0", + "@scure/base": "~1.2.1" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", @@ -25011,9 +25106,10 @@ } }, "node_modules/semver": { - "version": "7.6.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", - "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -25878,7 +25974,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "dev": true, "engines": { "node": ">=4" } @@ -26415,6 +26510,64 @@ "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==", "dev": true }, + "node_modules/ts-node": { + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", + "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", + "license": "MIT", + "dependencies": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } + } + }, + "node_modules/ts-node/node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "license": "MIT" + }, + "node_modules/ts-node/node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, "node_modules/ts-toolbelt": { "version": "9.6.0", "resolved": "https://registry.npmjs.org/ts-toolbelt/-/ts-toolbelt-9.6.0.tgz", @@ -26446,9 +26599,10 @@ } }, "node_modules/tslib": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.3.tgz", - "integrity": "sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==" + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.7.0.tgz", + "integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==", + "license": "0BSD" }, "node_modules/tsort": { "version": "0.0.1", @@ -26696,9 +26850,9 @@ } }, "node_modules/undici-types": { - "version": "6.11.1", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.11.1.tgz", - "integrity": "sha512-mIDEX2ek50x0OlRgxryxsenE5XaQD4on5U2inY7RApK3SOJpofyw7uW2AyfMKkhAxXIceo2DeWGVGwyvng1GNQ==", + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", "license": "MIT" }, "node_modules/unenv": { @@ -27061,6 +27215,12 @@ "uuid": "dist/bin/uuid" } }, + "node_modules/v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", + "license": "MIT" + }, "node_modules/valid-url": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/valid-url/-/valid-url-1.0.9.tgz", @@ -27111,9 +27271,9 @@ } }, "node_modules/viem": { - "version": "2.18.6", - "resolved": "https://registry.npmjs.org/viem/-/viem-2.18.6.tgz", - "integrity": "sha512-KughUodIEjzkC+KfQ4+259yRXYfo0VLkZQ7NVC3RGfCMMOiVWaOxHjmcaY0FnZzKX3pwrlMyTAZbwH9tVAN/Yw==", + "version": "2.21.51", + "resolved": "https://registry.npmjs.org/viem/-/viem-2.21.51.tgz", + "integrity": "sha512-IBZTFoo9cZvMBkFqaJq5G8Ori4IeEDe9AHE5CmOlvNw7ytkC3vdVrJ/APL+V3H4d/5i1FiV331UsckIqQLIM0w==", "funding": [ { "type": "github", @@ -27122,15 +27282,15 @@ ], "license": "MIT", "dependencies": { - "@adraffy/ens-normalize": "1.10.0", - "@noble/curves": "1.4.0", - "@noble/hashes": "1.4.0", - "@scure/bip32": "1.4.0", - "@scure/bip39": "1.3.0", - "abitype": "1.0.5", - "isows": "1.0.4", - "webauthn-p256": "0.0.5", - "ws": "8.17.1" + "@noble/curves": "1.6.0", + "@noble/hashes": "1.5.0", + "@scure/bip32": "1.5.0", + "@scure/bip39": "1.4.0", + "abitype": "1.0.6", + "isows": "1.0.6", + "ox": "0.1.2", + "webauthn-p256": "0.0.10", + "ws": "8.18.0" }, "peerDependencies": { "typescript": ">=5.0.4" @@ -27141,25 +27301,58 @@ } } }, - "node_modules/viem/node_modules/ws": { - "version": "8.17.1", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", - "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", + "node_modules/viem/node_modules/@noble/curves": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.6.0.tgz", + "integrity": "sha512-TlaHRXDehJuRNR9TfZDNQ45mMEd5dwUwmicsafcIX4SsNiqnCHKjE/1alYPd/lDRVhxdhUAlv8uEhMCI5zjIJQ==", "license": "MIT", + "dependencies": { + "@noble/hashes": "1.5.0" + }, "engines": { - "node": ">=10.0.0" + "node": "^14.21.3 || >=16" }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": ">=5.0.2" + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/viem/node_modules/@noble/hashes": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.5.0.tgz", + "integrity": "sha512-1j6kQFb7QRru7eKN3ZDvRcP13rugwdxZqCjbiAVZfIJwgj2A65UmT4TgARXGlXgnRkORLTDTrO19ZErt7+QXgA==", + "license": "MIT", + "engines": { + "node": "^14.21.3 || >=16" }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/viem/node_modules/@scure/bip32": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.5.0.tgz", + "integrity": "sha512-8EnFYkqEQdnkuGBVpCzKxyIwDCBLDVj3oiX0EKUFre/tOjL/Hqba1D6n/8RcmaQy4f95qQFrO2A8Sr6ybh4NRw==", + "license": "MIT", + "dependencies": { + "@noble/curves": "~1.6.0", + "@noble/hashes": "~1.5.0", + "@scure/base": "~1.1.7" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/viem/node_modules/@scure/bip39": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.4.0.tgz", + "integrity": "sha512-BEEm6p8IueV/ZTfQLp/0vhw4NPnT9oWf5+28nvmeUICjP99f4vr2d+qc7AVGDDtwRep6ifR43Yed9ERVmiITzw==", + "license": "MIT", + "dependencies": { + "@noble/hashes": "~1.5.0", + "@scure/base": "~1.1.8" + }, + "funding": { + "url": "https://paulmillr.com/funding/" } }, "node_modules/vite": { @@ -27388,9 +27581,9 @@ } }, "node_modules/webauthn-p256": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/webauthn-p256/-/webauthn-p256-0.0.5.tgz", - "integrity": "sha512-drMGNWKdaixZNobeORVIqq7k5DsRC9FnG201K2QjeOoQLmtSDaSsVZdkg6n5jUALJKcAG++zBPJXmv6hy0nWFg==", + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/webauthn-p256/-/webauthn-p256-0.0.10.tgz", + "integrity": "sha512-EeYD+gmIT80YkSIDb2iWq0lq2zbHo1CxHlQTeJ+KkCILWpVy3zASH3ByD4bopzfk0uCwXxLqKGLqp2W4O28VFA==", "funding": [ { "type": "github", @@ -27988,6 +28181,15 @@ "node": ">=8" } }, + "node_modules/yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", diff --git a/package.json b/package.json index 99eaa36..8a96d8a 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "graphql": "^16.9.0", "graphql-request": "^7.1.0", "jwt-decode": "^4.0.0", + "oci-js-sdk": "^1.5.8", "react": "^18.3.1", "react-dom": "^18.3.1", "react-hook-form": "^7.52.1", diff --git a/src/App.tsx b/src/App.tsx index 77eabbc..57885cd 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -2,21 +2,17 @@ import './App.css'; import '@rainbow-me/rainbowkit/styles.css'; import React from 'react'; -import { LitNetwork } from '@lit-protocol/constants'; import CssBaseline from '@mui/material/CssBaseline'; import { ThemeProvider } from '@mui/material/styles'; import { - getDefaultConfig, RainbowKitAuthenticationProvider, RainbowKitProvider, } from '@rainbow-me/rainbowkit'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import { Navigate, Route, Routes } from 'react-router-dom'; -import { WagmiProvider } from 'wagmi'; import { sepolia } from 'wagmi/chains'; import { CustomSnackbar } from './components/shared/CustomSnackbar'; -import { LitProvider } from './hooks/LitProvider'; import useSiweAuth from './hooks/useSiweAuth'; import DefaultLayout from './layouts/DefaultLayout'; import theme from './libs/theme'; @@ -37,65 +33,54 @@ const queryClient = new QueryClient({ }, }); -const config = getDefaultConfig({ - appName: 'RainbowKit demo', - projectId: '1cf030f3b91e339bc4e6ecf71a694a88', - chains: [sepolia], - ssr: false, -}); - const App: React.FC = () => { const { authStatus, authenticationAdapter } = useSiweAuth(); globalThis.Buffer = Buffer; return ( - - - - - - - - - - ) : ( - - ) - } - /> - - - - } - > - } /> - } /> - } - /> - } /> - - } /> - Not found} /> - - - - - - - - + + + + + + + + ) : ( + + ) + } + /> + + + + } + > + } /> + } /> + } + /> + } /> + + } /> + Not found} /> + + + + + + ); }; diff --git a/src/components/layouts/AccountPopover.tsx b/src/components/layouts/AccountPopover.tsx index 119d5c0..fc68cd3 100644 --- a/src/components/layouts/AccountPopover.tsx +++ b/src/components/layouts/AccountPopover.tsx @@ -22,7 +22,6 @@ function AccountPopover() { }; const handleLogout = () => { - console.log('User logged out'); handleClose(); }; diff --git a/src/components/pages/attestations/StepThree.tsx b/src/components/pages/attestations/StepThree.tsx index 4141b2a..3624881 100644 --- a/src/components/pages/attestations/StepThree.tsx +++ b/src/components/pages/attestations/StepThree.tsx @@ -9,11 +9,12 @@ import { import { FaLink } from 'react-icons/fa'; import { useNavigate } from 'react-router-dom'; import { Address } from 'viem'; +import { useAccount } from 'wagmi'; import { AttestPayload } from '../../../interfaces'; import EASService from '../../../services/eas.service'; import useSnackbarStore from '../../../store/useSnackbarStore'; -import sepoliaChain from '../../../utils/contracts/eas/sepoliaChain.json'; +import { contracts } from '../../../utils/contracts/eas/contracts'; import { useSigner } from '../../../utils/eas-wagmi-utils'; interface StepThreeProps { @@ -24,10 +25,15 @@ const StepThree: React.FC = ({ attestedSignutare }) => { const { showSnackbar } = useSnackbarStore(); const navigate = useNavigate(); const signer = useSigner(); + const { chainId } = useAccount(); const [isLoading, setIsLoading] = useState(false); + const easContractAddress = contracts.find( + (contract) => contract.chainId === chainId + )?.easContractAddress; + const easService = signer - ? new EASService(sepoliaChain.easContractAddress as Address, signer) + ? new EASService(easContractAddress as Address, signer) : null; const handleAttestByDelegation = async () => { diff --git a/src/components/pages/attestations/StepTwo.tsx b/src/components/pages/attestations/StepTwo.tsx index afbd283..2c76267 100644 --- a/src/components/pages/attestations/StepTwo.tsx +++ b/src/components/pages/attestations/StepTwo.tsx @@ -7,6 +7,7 @@ import { Typography, } from '@mui/material'; import { FaLink } from 'react-icons/fa6'; +import { useAccount } from 'wagmi'; import { Provider } from '../../../enums'; import { AttestPayload } from '../../../interfaces'; @@ -22,7 +23,10 @@ const StepTwo: React.FC = ({ provider, handlePrepareAttestation, }) => { - const { mutate: mutateIdentifier, isPending } = useLinkIdentifierMutation(); + const { chainId } = useAccount(); + const { mutate: mutateIdentifier, isPending } = useLinkIdentifierMutation( + chainId as number + ); const handleGenerateSignedDelegation = async () => { const siweJwt = localStorage.getItem('OCI_TOKEN'); diff --git a/src/hooks/LitProvider.tsx b/src/hooks/LitProvider.tsx index 958fca9..8debf89 100644 --- a/src/hooks/LitProvider.tsx +++ b/src/hooks/LitProvider.tsx @@ -40,7 +40,6 @@ export const LitProvider = ({ litNetwork, children }: ILitProvider) => { try { await client.connect(); setConnected(true); - console.log(`Connected to Lit Network: ${litNetwork}`); } catch (error) { console.error('Failed to connect to Lit Network:', error); setConnected(false); diff --git a/src/hooks/useAttestations.tsx b/src/hooks/useAttestations.tsx index bec71c9..c3597fd 100644 --- a/src/hooks/useAttestations.tsx +++ b/src/hooks/useAttestations.tsx @@ -28,7 +28,7 @@ const useAttestations = () => { error, isLoading, refetch, - } = useGetAttestations(address as `0x${string}`); + } = useGetAttestations(address as `0x${string}`, chainId as number); const [attestations, setAttestations] = useState([]); diff --git a/src/hooks/useSessionSigs.tsx b/src/hooks/useSessionSigs.tsx index a7c1f20..155fb27 100644 --- a/src/hooks/useSessionSigs.tsx +++ b/src/hooks/useSessionSigs.tsx @@ -56,7 +56,7 @@ function useSessionSigs() { litNodeClient, }); const authSig = generateAuthSig({ signer, toSign }); - console.log('authSig', authSig); + return authSig; }; @@ -71,7 +71,6 @@ function useSessionSigs() { ], authNeededCallback, }); - console.log('sessionSigs', sessionSigs); setSessionSigs(sessionSigs); }, [] diff --git a/src/hooks/useSiweAuth.tsx b/src/hooks/useSiweAuth.tsx index b5007e9..b2ed870 100644 --- a/src/hooks/useSiweAuth.tsx +++ b/src/hooks/useSiweAuth.tsx @@ -6,10 +6,13 @@ import { import { useNavigate } from 'react-router-dom'; import { getAddress } from 'viem'; import { createSiweMessage } from 'viem/siwe'; +import { useAccount } from 'wagmi'; import { api } from '../services/api'; const useSiweAuth = () => { + const { chainId } = useAccount(); + const navigate = useNavigate(); const [authStatus, setAuthStatus] = useState('unauthenticated'); @@ -19,10 +22,10 @@ const useSiweAuth = () => { const { data } = await api.get('auth/siwe/nonce'); return data.nonce; }, - createMessage: ({ nonce, address, chainId }) => { + createMessage: ({ nonce, address }) => { return createSiweMessage({ address: getAddress(address), - chainId, + chainId: chainId as number, domain: window.location.host, nonce, uri: window.location.origin, @@ -35,7 +38,7 @@ const useSiweAuth = () => { const { data } = await api.post('auth/siwe/verify', { message, signature, - chainId: 11155111, + chainId: chainId as number, }); if (data?.jwt) { diff --git a/src/interfaces/index.ts b/src/interfaces/index.ts index 59f91f0..f309d63 100644 --- a/src/interfaces/index.ts +++ b/src/interfaces/index.ts @@ -22,6 +22,7 @@ export interface IAttestation { revocable: boolean; data: `0x${string}`; id?: string; + key?: string; provider?: string; } diff --git a/src/main.tsx b/src/main.tsx index 059589b..82bcaba 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -1,15 +1,29 @@ import './index.css'; import React from 'react'; +import { getDefaultConfig } from '@rainbow-me/rainbowkit'; import ReactDOM from 'react-dom/client'; import { BrowserRouter } from 'react-router-dom'; +import { baseSepolia, optimismSepolia } from 'viem/chains'; +import { WagmiProvider } from 'wagmi'; import App from './App'; +const projectID = import.meta.env.VITE_PROJECT_ID; + +const config = getDefaultConfig({ + appName: 'RainbowKit demo', + projectId: projectID, + chains: [optimismSepolia, baseSepolia], + ssr: false, +}); + ReactDOM.createRoot(document.getElementById('root')!).render( - + + + ); diff --git a/src/pages/Identifiers/Identifiers.tsx b/src/pages/Identifiers/Identifiers.tsx index cbe289d..f12ae05 100644 --- a/src/pages/Identifiers/Identifiers.tsx +++ b/src/pages/Identifiers/Identifiers.tsx @@ -23,6 +23,7 @@ import clsx from 'clsx'; import { FaDiscord, FaGoogle } from 'react-icons/fa'; import { useNavigate } from 'react-router-dom'; import { Address } from 'viem'; +import { useAccount } from 'wagmi'; import useAttestations from '../../hooks/useAttestations'; import { IAttestation, RevokePayload } from '../../interfaces'; @@ -32,7 +33,7 @@ import { } from '../../services/api/eas/query'; import EASService from '../../services/eas.service'; import useSnackbarStore from '../../store/useSnackbarStore'; -import sepoliaChain from '../../utils/contracts/eas/sepoliaChain.json'; +import { contracts } from '../../utils/contracts/eas/contracts'; import { useSigner } from '../../utils/eas-wagmi-utils'; interface Identifier { @@ -45,6 +46,7 @@ interface Identifier { export default function Identifiers() { const navigate = useNavigate(); + const { chainId: chainIdNetwork } = useAccount(); const { showSnackbar } = useSnackbarStore(); const [userIdentifiers, setUserIdentifiers] = useState([ { name: 'Discord', icon: FaDiscord, verified: false, uid: '' }, @@ -58,8 +60,12 @@ export default function Identifiers() { const signer = useSigner(); + const easContractAddress = contracts.find( + (contract) => contract.chainId === chainIdNetwork + )?.easContractAddress; + const easService = signer - ? new EASService(sepoliaChain.easContractAddress as Address, signer) + ? new EASService(easContractAddress as Address, signer) : null; const { diff --git a/src/pages/Permissions/Permissions.tsx b/src/pages/Permissions/Permissions.tsx index 46d57ab..a4ac292 100644 --- a/src/pages/Permissions/Permissions.tsx +++ b/src/pages/Permissions/Permissions.tsx @@ -28,13 +28,21 @@ import { IAttestation } from '../../interfaces'; import { decodeAttestationData } from '../../libs/oci'; import { useGetAttestations } from '../../services/eas/query'; import useSnackbarStore from '../../store/useSnackbarStore'; -import sepoliaChainAppConctract from '../../utils/contracts/app/sepoliaChain.json'; -import sepoliaChainOidonctract from '../../utils/contracts/oid/sepoliaChain.json'; +import { appContracts } from '../../utils/contracts/app/contracts'; +import { oidContracts } from '../../utils/contracts/oid/contracts'; export function Permissions() { const { showSnackbar } = useSnackbarStore(); - const { address } = useAccount(); + const { address, chainId } = useAccount(); const navigate = useNavigate(); + + const appContract = appContracts.find( + (contract) => contract.chainId === chainId + ); + const oidContract = oidContracts.find( + (contract) => contract.chainId === chainId + ); + const { data: transactionHash, writeContract, @@ -49,7 +57,8 @@ export function Permissions() { data: attestationsResponse, isLoading: isLoadingAttestations, refetch: refetchAttestations, - } = useGetAttestations(address as `0x${string}`); + } = useGetAttestations(address as Address, chainId as number); + const [applicationsArgs] = useState<[number, number]>([0, 10]); const [attestations, setAttestations] = useState< (IAttestation & { provider?: string; id?: string })[] @@ -64,8 +73,8 @@ export function Permissions() { error, refetch: refetchApplications, } = useReadContract({ - abi: sepoliaChainAppConctract.appContractABI, - address: sepoliaChainAppConctract.appContractAddress as Address, + abi: appContract?.abi, + address: appContract?.address as Address, functionName: 'getApplications', args: applicationsArgs, }); @@ -88,15 +97,13 @@ export function Permissions() { const attestationsData = attestationsResponse.map((attestation) => { const decodedData = decodeAttestationData(attestation.data); - const providerData = decodedData.find( - (provider) => provider.name === 'provider' - ); + const keyData = decodedData.find((field) => field.name === 'key'); return { ...attestation, - provider: - typeof providerData?.value.value === 'string' - ? providerData.value.value + key: + typeof keyData?.value.value === 'string' + ? keyData.value.value : undefined, decodedData, }; @@ -113,10 +120,10 @@ export function Permissions() { attestations.flatMap( (attestation) => applications?.map((application) => ({ - abi: sepoliaChainOidonctract.oidContractAbi as Abi, - address: sepoliaChainOidonctract.oidContractAddress as Address, + abi: oidContract?.abi as Abi, + address: oidContract?.address as Address, functionName: 'hasPermission', - args: [attestation.id, application.account], + args: [attestation.key, application.account], })) || [] ), [attestations, applications] @@ -177,8 +184,8 @@ export function Permissions() { const handleGrantOrRevokeAccess = (application: any, platform: any) => { writeContract( { - abi: sepoliaChainOidonctract.oidContractAbi as Abi, - address: sepoliaChainOidonctract.oidContractAddress as Address, + abi: oidContract?.abi as Abi, + address: oidContract?.address as Address, functionName: application.hasPermission ? 'revokePermission' : 'grantPermission', diff --git a/src/services/api/eas/index.ts b/src/services/api/eas/index.ts index ab0204d..a98b0d9 100644 --- a/src/services/api/eas/index.ts +++ b/src/services/api/eas/index.ts @@ -21,7 +21,7 @@ export interface DecryptAttestationsSecretParams { export const linkIdentifier = async ({ siweJwt, anyJwt, - chainId = 11155111, + chainId, }: LinkIdentifierParams) => { return api.post('/eas/sign-delegated-attestation', { siweJwt, diff --git a/src/services/api/eas/query.ts b/src/services/api/eas/query.ts index 3f44a05..19f7e71 100644 --- a/src/services/api/eas/query.ts +++ b/src/services/api/eas/query.ts @@ -9,13 +9,9 @@ import { RevokeIdentifierParams, } from '.'; -export const useLinkIdentifierMutation = () => { +export const useLinkIdentifierMutation = (chainId: number) => { return useMutation({ - mutationFn: async ({ - siweJwt, - anyJwt, - chainId = 11155111, - }: LinkIdentifierParams) => { + mutationFn: async ({ siweJwt, anyJwt }: LinkIdentifierParams) => { return linkIdentifier({ siweJwt, anyJwt, diff --git a/src/services/api/index.ts b/src/services/api/index.ts index 098e80b..3f00fd0 100644 --- a/src/services/api/index.ts +++ b/src/services/api/index.ts @@ -43,8 +43,6 @@ apiInstance.interceptors.response.use( (error) => { const navigate = useNavigate(); const { showSnackbar } = useSnackbarStore(); - console.log(error.response, 'test'); - if (error.response?.status === 400) { showSnackbar('Bad Request', { severity: 'error', diff --git a/src/services/eas.service.ts b/src/services/eas.service.ts index bbfae19..370f344 100644 --- a/src/services/eas.service.ts +++ b/src/services/eas.service.ts @@ -139,6 +139,8 @@ class EASService { public async attestByDelegation( attestationPayload: AttestPayload ): Promise { + console.log('attestationPayload', attestationPayload); + if (!this.eas) { throw new Error('EAS is not initialized'); } @@ -149,6 +151,7 @@ class EASService { const attestationRequest = EASService.prepareAttestationRequest(convertedPayload); + console.log('attestationRequest', attestationRequest); try { const tx = await this.eas.attestByDelegation(attestationRequest); await tx.wait(); diff --git a/src/services/eas/index.ts b/src/services/eas/index.ts index 045fc86..fa678bf 100644 --- a/src/services/eas/index.ts +++ b/src/services/eas/index.ts @@ -1,6 +1,23 @@ import { GraphQLClient } from 'graphql-request'; export const easBaseUrl = import.meta.env.VITE_API_GRAPHQL_URL; + +export const chainIdToGraphQLEndpoint: { [key: number]: string } = { + 11155111: 'https://sepolia.easscan.org/graphql', + 11155420: 'https://optimism-sepolia-bedrock.easscan.org/graphql', + 84532: 'https://base-sepolia.easscan.org/graphql', + // 1: "https://easscan.org/graphql", + // 42161: "https://arbitrum.easscan.org/graphql", + // 42170: "https://arbitrum-nova.easscan.org/graphql", + // 8453: "https://base.easscan.org/graphql", + // 10: "https://optimism.easscan.org/graphql", + // 28528: "https://optimism-sepolia-bedrock.easscan.org/graphql", + // 534353: "https://scroll.easscan.org/graphql", + // 137: "https://polygon.easscan.org/graphql", + // 59144: "https://linea.easscan.org/graphql", + // 42220: "https://celo.easscan.org/graphql", +}; + export const ATTESTER_ADDRESS = import.meta.env.VITE_EAS_ATTESTER_ADDRESS; if (!easBaseUrl) { diff --git a/src/services/eas/query.ts b/src/services/eas/query.ts index 0d3759f..3cf1d77 100644 --- a/src/services/eas/query.ts +++ b/src/services/eas/query.ts @@ -1,18 +1,20 @@ import { useQuery } from '@tanstack/react-query'; -import { gql } from 'graphql-request'; +import { gql, GraphQLClient } from 'graphql-request'; import { Address } from 'viem'; import { IAttestation } from '../../interfaces'; import { EAS_SCHEMA_ID } from '../../utils/contracts/eas/constants'; -import { ATTESTER_ADDRESS, graphQLClient } from '.'; +import { ATTESTER_ADDRESS, chainIdToGraphQLEndpoint } from '.'; interface AttestationsResponse { attestations: IAttestation[]; } -export const useGetAttestations = (recipient: Address) => { +export const useGetAttestations = (recipient: Address, chainId: number) => { + const graphqlClient = new GraphQLClient(chainIdToGraphQLEndpoint[chainId]); + return useQuery({ - queryKey: ['getAttestations', recipient], + queryKey: ['getAttestations', recipient, chainId], queryFn: async () => { const query = gql` query Attestations( @@ -36,6 +38,7 @@ export const useGetAttestations = (recipient: Address) => { revocationTime expirationTime data + decodedDataJson } } `; @@ -43,16 +46,16 @@ export const useGetAttestations = (recipient: Address) => { const variables = { attester: ATTESTER_ADDRESS, recipient, - schemaId: EAS_SCHEMA_ID, + schemaId: EAS_SCHEMA_ID[chainId], }; - const attestedResults = await graphQLClient.request( + const attestedResults = await graphqlClient.request( query, variables ); return attestedResults.attestations; }, - enabled: !!recipient, + enabled: !!recipient || !chainId, }); }; diff --git a/src/utils/contracts/app/contracts.ts b/src/utils/contracts/app/contracts.ts new file mode 100644 index 0000000..9303a14 --- /dev/null +++ b/src/utils/contracts/app/contracts.ts @@ -0,0 +1,470 @@ +export const appContracts = [ + { + chainId: 11155420, + address: '0xb250C2b5967FEc8241FD9a26C30145Fbdf347eEC', + abi: [ + { + inputs: [ + { + internalType: 'address', + name: 'initialAuthority', + type: 'address', + }, + ], + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + inputs: [ + { internalType: 'address', name: 'authority', type: 'address' }, + ], + name: 'AccessManagedInvalidAuthority', + type: 'error', + }, + { + inputs: [ + { internalType: 'address', name: 'caller', type: 'address' }, + { internalType: 'uint32', name: 'delay', type: 'uint32' }, + ], + name: 'AccessManagedRequiredDelay', + type: 'error', + }, + { + inputs: [{ internalType: 'address', name: 'caller', type: 'address' }], + name: 'AccessManagedUnauthorized', + type: 'error', + }, + { inputs: [], name: 'ReentrancyGuardReentrantCall', type: 'error' }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint256', + name: 'id', + type: 'uint256', + }, + { + components: [ + { internalType: 'uint256', name: 'id', type: 'uint256' }, + { internalType: 'string', name: 'name', type: 'string' }, + { internalType: 'address', name: 'account', type: 'address' }, + ], + indexed: false, + internalType: 'struct IApplicationManager.Application', + name: 'application', + type: 'tuple', + }, + ], + name: 'ApplicationCreated', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint256', + name: 'id', + type: 'uint256', + }, + { + components: [ + { internalType: 'uint256', name: 'id', type: 'uint256' }, + { internalType: 'string', name: 'name', type: 'string' }, + { internalType: 'address', name: 'account', type: 'address' }, + ], + indexed: false, + internalType: 'struct IApplicationManager.Application', + name: 'application', + type: 'tuple', + }, + ], + name: 'ApplicationDeleted', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint256', + name: 'id', + type: 'uint256', + }, + { + components: [ + { internalType: 'uint256', name: 'id', type: 'uint256' }, + { internalType: 'string', name: 'name', type: 'string' }, + { internalType: 'address', name: 'account', type: 'address' }, + ], + indexed: false, + internalType: 'struct IApplicationManager.Application', + name: 'application', + type: 'tuple', + }, + ], + name: 'ApplicationUpdated', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'authority', + type: 'address', + }, + ], + name: 'AuthorityUpdated', + type: 'event', + }, + { + inputs: [], + name: 'authority', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + components: [ + { internalType: 'string', name: 'name', type: 'string' }, + { internalType: 'address', name: 'account', type: 'address' }, + ], + internalType: 'struct IApplicationManager.ApplicationDto', + name: 'dto', + type: 'tuple', + }, + ], + name: 'createApplication', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [{ internalType: 'uint256', name: 'id', type: 'uint256' }], + name: 'deleteApplication', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [{ internalType: 'uint256', name: 'id', type: 'uint256' }], + name: 'getApplication', + outputs: [ + { + components: [ + { internalType: 'uint256', name: 'id', type: 'uint256' }, + { internalType: 'string', name: 'name', type: 'string' }, + { internalType: 'address', name: 'account', type: 'address' }, + ], + internalType: 'struct IApplicationManager.Application', + name: '', + type: 'tuple', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { internalType: 'uint256', name: 'start', type: 'uint256' }, + { internalType: 'uint256', name: 'limit', type: 'uint256' }, + ], + name: 'getApplications', + outputs: [ + { + components: [ + { internalType: 'uint256', name: 'id', type: 'uint256' }, + { internalType: 'string', name: 'name', type: 'string' }, + { internalType: 'address', name: 'account', type: 'address' }, + ], + internalType: 'struct IApplicationManager.Application[]', + name: '', + type: 'tuple[]', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'getNextApplicationId', + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'isConsumingScheduledOp', + outputs: [{ internalType: 'bytes4', name: '', type: 'bytes4' }], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { internalType: 'address', name: 'newAuthority', type: 'address' }, + ], + name: 'setAuthority', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { internalType: 'uint256', name: 'id', type: 'uint256' }, + { + components: [ + { internalType: 'string', name: 'name', type: 'string' }, + { internalType: 'address', name: 'account', type: 'address' }, + ], + internalType: 'struct IApplicationManager.ApplicationDto', + name: 'dto', + type: 'tuple', + }, + ], + name: 'updateApplication', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + ], + }, + { + chainId: 84532, + address: '0x52d0a71B42Dd84532A7B332fdfa059E8a7391092', + abi: [ + { + inputs: [ + { + internalType: 'address', + name: 'initialAuthority', + type: 'address', + }, + ], + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + inputs: [ + { internalType: 'address', name: 'authority', type: 'address' }, + ], + name: 'AccessManagedInvalidAuthority', + type: 'error', + }, + { + inputs: [ + { internalType: 'address', name: 'caller', type: 'address' }, + { internalType: 'uint32', name: 'delay', type: 'uint32' }, + ], + name: 'AccessManagedRequiredDelay', + type: 'error', + }, + { + inputs: [{ internalType: 'address', name: 'caller', type: 'address' }], + name: 'AccessManagedUnauthorized', + type: 'error', + }, + { inputs: [], name: 'ReentrancyGuardReentrantCall', type: 'error' }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint256', + name: 'id', + type: 'uint256', + }, + { + components: [ + { internalType: 'uint256', name: 'id', type: 'uint256' }, + { internalType: 'string', name: 'name', type: 'string' }, + { internalType: 'address', name: 'account', type: 'address' }, + ], + indexed: false, + internalType: 'struct IApplicationManager.Application', + name: 'application', + type: 'tuple', + }, + ], + name: 'ApplicationCreated', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint256', + name: 'id', + type: 'uint256', + }, + { + components: [ + { internalType: 'uint256', name: 'id', type: 'uint256' }, + { internalType: 'string', name: 'name', type: 'string' }, + { internalType: 'address', name: 'account', type: 'address' }, + ], + indexed: false, + internalType: 'struct IApplicationManager.Application', + name: 'application', + type: 'tuple', + }, + ], + name: 'ApplicationDeleted', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint256', + name: 'id', + type: 'uint256', + }, + { + components: [ + { internalType: 'uint256', name: 'id', type: 'uint256' }, + { internalType: 'string', name: 'name', type: 'string' }, + { internalType: 'address', name: 'account', type: 'address' }, + ], + indexed: false, + internalType: 'struct IApplicationManager.Application', + name: 'application', + type: 'tuple', + }, + ], + name: 'ApplicationUpdated', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'authority', + type: 'address', + }, + ], + name: 'AuthorityUpdated', + type: 'event', + }, + { + inputs: [], + name: 'authority', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + components: [ + { internalType: 'string', name: 'name', type: 'string' }, + { internalType: 'address', name: 'account', type: 'address' }, + ], + internalType: 'struct IApplicationManager.ApplicationDto', + name: 'dto', + type: 'tuple', + }, + ], + name: 'createApplication', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [{ internalType: 'uint256', name: 'id', type: 'uint256' }], + name: 'deleteApplication', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [{ internalType: 'uint256', name: 'id', type: 'uint256' }], + name: 'getApplication', + outputs: [ + { + components: [ + { internalType: 'uint256', name: 'id', type: 'uint256' }, + { internalType: 'string', name: 'name', type: 'string' }, + { internalType: 'address', name: 'account', type: 'address' }, + ], + internalType: 'struct IApplicationManager.Application', + name: '', + type: 'tuple', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { internalType: 'uint256', name: 'start', type: 'uint256' }, + { internalType: 'uint256', name: 'limit', type: 'uint256' }, + ], + name: 'getApplications', + outputs: [ + { + components: [ + { internalType: 'uint256', name: 'id', type: 'uint256' }, + { internalType: 'string', name: 'name', type: 'string' }, + { internalType: 'address', name: 'account', type: 'address' }, + ], + internalType: 'struct IApplicationManager.Application[]', + name: '', + type: 'tuple[]', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'getNextApplicationId', + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'isConsumingScheduledOp', + outputs: [{ internalType: 'bytes4', name: '', type: 'bytes4' }], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { internalType: 'address', name: 'newAuthority', type: 'address' }, + ], + name: 'setAuthority', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { internalType: 'uint256', name: 'id', type: 'uint256' }, + { + components: [ + { internalType: 'string', name: 'name', type: 'string' }, + { internalType: 'address', name: 'account', type: 'address' }, + ], + internalType: 'struct IApplicationManager.ApplicationDto', + name: 'dto', + type: 'tuple', + }, + ], + name: 'updateApplication', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + ], + }, +]; diff --git a/src/utils/contracts/eas/constants.ts b/src/utils/contracts/eas/constants.ts index 2311c11..753ab96 100644 --- a/src/utils/contracts/eas/constants.ts +++ b/src/utils/contracts/eas/constants.ts @@ -1,4 +1,8 @@ -export const SCHEMA_TYPES = 'bytes32 key, string provider, string secret'; +export const SCHEMA_TYPES = + 'bytes32 key,string provider,string secret,string metadata'; -export const EAS_SCHEMA_ID = - '0x85e90e3e16d319578888790af3284fea8bca549305071531e7478e3e0b5e7d6d'; +export const EAS_SCHEMA_ID: { [key: string | number]: string } = { + 11155420: + '0x2c988095892ea57c600e5cc6fb62531502bc0c8d038ac39dc3fab161b6f122db', + 84532: '0xe8c59f8de4cdf61c8ebefa3ed83d714acc767dda3bbff00623e73f5a8bf5255f', +}; diff --git a/src/utils/contracts/eas/contracts.ts b/src/utils/contracts/eas/contracts.ts new file mode 100644 index 0000000..ae97aaf --- /dev/null +++ b/src/utils/contracts/eas/contracts.ts @@ -0,0 +1,16 @@ +export const contracts = [ + { + chainId: 11155420, + easSchemaUUID: + '0x2c988095892ea57c600e5cc6fb62531502bc0c8d038ac39dc3fab161b6f122db', + easContractAddress: '0x4200000000000000000000000000000000000021', + abi: [], + }, + { + chainId: 84532, + easSchemaUUID: + '0xe8c59f8de4cdf61c8ebefa3ed83d714acc767dda3bbff00623e73f5a8bf5255f', + easContractAddress: '0x4200000000000000000000000000000000000021', + abi: [], + }, +]; diff --git a/src/utils/contracts/oid/contracts.ts b/src/utils/contracts/oid/contracts.ts new file mode 100644 index 0000000..9e2d948 --- /dev/null +++ b/src/utils/contracts/oid/contracts.ts @@ -0,0 +1,320 @@ +export const oidContracts = [ + { + chainId: 11155420, + address: '0xFcE488b93696Ec5e279b8257E67F074AbFEc59d8', + abi: [ + { + inputs: [ + { + internalType: 'address', + name: 'initialAuthority', + type: 'address', + }, + { + internalType: 'contract IEAS', + name: 'initialEAS', + type: 'address', + }, + ], + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + inputs: [ + { internalType: 'address', name: 'authority', type: 'address' }, + ], + name: 'AccessManagedInvalidAuthority', + type: 'error', + }, + { + inputs: [ + { internalType: 'address', name: 'caller', type: 'address' }, + { internalType: 'uint32', name: 'delay', type: 'uint32' }, + ], + name: 'AccessManagedRequiredDelay', + type: 'error', + }, + { + inputs: [{ internalType: 'address', name: 'caller', type: 'address' }], + name: 'AccessManagedUnauthorized', + type: 'error', + }, + { + inputs: [ + { internalType: 'bytes32', name: 'attestation_uid', type: 'bytes32' }, + ], + name: 'AttestationNotFound', + type: 'error', + }, + { + inputs: [ + { internalType: 'bytes32', name: 'attestation_uid', type: 'bytes32' }, + ], + name: 'AttestationRevoked', + type: 'error', + }, + { + inputs: [{ internalType: 'address', name: 'caller', type: 'address' }], + name: 'UnauthorizedAccess', + type: 'error', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'authority', + type: 'address', + }, + ], + name: 'AuthorityUpdated', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'bytes32', + name: 'key', + type: 'bytes32', + }, + { + indexed: false, + internalType: 'address', + name: 'account', + type: 'address', + }, + { + indexed: false, + internalType: 'bool', + name: 'granted', + type: 'bool', + }, + ], + name: 'PermissionUpdated', + type: 'event', + }, + { + inputs: [], + name: 'authority', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'eas', + outputs: [{ internalType: 'contract IEAS', name: '', type: 'address' }], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { internalType: 'bytes32', name: 'attestation_uid', type: 'bytes32' }, + { internalType: 'address', name: 'account', type: 'address' }, + ], + name: 'grantPermission', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { internalType: 'bytes32', name: 'key', type: 'bytes32' }, + { internalType: 'address', name: 'account', type: 'address' }, + ], + name: 'hasPermission', + outputs: [{ internalType: 'bool', name: '', type: 'bool' }], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'isConsumingScheduledOp', + outputs: [{ internalType: 'bytes4', name: '', type: 'bytes4' }], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { internalType: 'bytes32', name: 'attestation_uid', type: 'bytes32' }, + { internalType: 'address', name: 'account', type: 'address' }, + ], + name: 'revokePermission', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { internalType: 'address', name: 'newAuthority', type: 'address' }, + ], + name: 'setAuthority', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + ], + }, + { + chainId: 84532, + address: '0xF65e300B0e622B1Bc224c7351397ea2FF29f1c3D', + abi: [ + { + inputs: [ + { + internalType: 'address', + name: 'initialAuthority', + type: 'address', + }, + { + internalType: 'contract IEAS', + name: 'initialEAS', + type: 'address', + }, + ], + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + inputs: [ + { internalType: 'address', name: 'authority', type: 'address' }, + ], + name: 'AccessManagedInvalidAuthority', + type: 'error', + }, + { + inputs: [ + { internalType: 'address', name: 'caller', type: 'address' }, + { internalType: 'uint32', name: 'delay', type: 'uint32' }, + ], + name: 'AccessManagedRequiredDelay', + type: 'error', + }, + { + inputs: [{ internalType: 'address', name: 'caller', type: 'address' }], + name: 'AccessManagedUnauthorized', + type: 'error', + }, + { + inputs: [ + { internalType: 'bytes32', name: 'attestation_uid', type: 'bytes32' }, + ], + name: 'AttestationNotFound', + type: 'error', + }, + { + inputs: [ + { internalType: 'bytes32', name: 'attestation_uid', type: 'bytes32' }, + ], + name: 'AttestationRevoked', + type: 'error', + }, + { + inputs: [{ internalType: 'address', name: 'caller', type: 'address' }], + name: 'UnauthorizedAccess', + type: 'error', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'authority', + type: 'address', + }, + ], + name: 'AuthorityUpdated', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'bytes32', + name: 'key', + type: 'bytes32', + }, + { + indexed: false, + internalType: 'address', + name: 'account', + type: 'address', + }, + { + indexed: false, + internalType: 'bool', + name: 'granted', + type: 'bool', + }, + ], + name: 'PermissionUpdated', + type: 'event', + }, + { + inputs: [], + name: 'authority', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'eas', + outputs: [{ internalType: 'contract IEAS', name: '', type: 'address' }], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { internalType: 'bytes32', name: 'attestation_uid', type: 'bytes32' }, + { internalType: 'address', name: 'account', type: 'address' }, + ], + name: 'grantPermission', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { internalType: 'bytes32', name: 'key', type: 'bytes32' }, + { internalType: 'address', name: 'account', type: 'address' }, + ], + name: 'hasPermission', + outputs: [{ internalType: 'bool', name: '', type: 'bool' }], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'isConsumingScheduledOp', + outputs: [{ internalType: 'bytes4', name: '', type: 'bytes4' }], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { internalType: 'bytes32', name: 'attestation_uid', type: 'bytes32' }, + { internalType: 'address', name: 'account', type: 'address' }, + ], + name: 'revokePermission', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { internalType: 'address', name: 'newAuthority', type: 'address' }, + ], + name: 'setAuthority', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + ], + }, +];