From 9d73de83b15436f5e7f57c17e1de92c21c1bc97a Mon Sep 17 00:00:00 2001 From: rodrigopavezi Date: Fri, 13 Dec 2024 17:41:03 -0300 Subject: [PATCH 01/28] chore: upgrade to new RN sdk version --- package-lock.json | 724 ++++++++++++++++++++++++++-------------------- package.json | 17 +- pages/index.tsx | 4 +- types.d.ts | 2 - utils/context.tsx | 25 +- 5 files changed, 436 insertions(+), 336 deletions(-) diff --git a/package-lock.json b/package-lock.json index c44467e..2268e32 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,15 +8,17 @@ "name": "request-network-template", "version": "0.12.0", "dependencies": { + "@lit-protocol/constants": "7.0.2", + "@lit-protocol/lit-node-client": "7.0.2", "@next/third-parties": "^14.1.0", "@radix-ui/react-dialog": "^1.1.0", "@rainbow-me/rainbowkit": "^2.2.1", - "@requestnetwork/create-invoice-form": "0.11.8", - "@requestnetwork/invoice-dashboard": "0.11.5", - "@requestnetwork/lit-protocol-cipher": "0.3.0", - "@requestnetwork/payment-detection": "0.47.0", - "@requestnetwork/request-client.js": "0.52.0", - "@requestnetwork/web3-signature": "0.8.3", + "@requestnetwork/create-invoice-form": "0.11.9", + "@requestnetwork/invoice-dashboard": "^0.11.7", + "@requestnetwork/lit-protocol-cipher": "0.4.0", + "@requestnetwork/payment-detection": "0.48.0", + "@requestnetwork/request-client.js": "0.53.0", + "@requestnetwork/web3-signature": "0.8.4", "@tanstack/react-query": "^5.59.14", "@wagmi/core": "^2.15.2", "class-variance-authority": "^0.7.0", @@ -32,7 +34,8 @@ "wagmi": "^2.13.3" }, "devDependencies": { - "@requestnetwork/types": "^0.47.0", + "@lit-protocol/types": "7.0.2", + "@requestnetwork/types": "^0.48.0", "@types/node": "^20", "@types/react": "^18", "@types/react-dom": "^18", @@ -1455,19 +1458,20 @@ "integrity": "sha512-wx4aBmgeGvFmOKucFKY+8VFJSYZxs9poN3SDNQFF6lT6NrQUnHiPB2PWz2sc4ieEcAaYYzN+1uWahEeTq2aRIQ==" }, "node_modules/@lit-protocol/access-control-conditions": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/access-control-conditions/-/access-control-conditions-7.0.0.tgz", - "integrity": "sha512-HzsiJlPQiJEa00syX9r+9ful0NPurgp2i/V0bwe17IyFdg71ENNLRSzCA+O8Yrnox+J6aqMFLwTgTvPXICyZeQ==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/access-control-conditions/-/access-control-conditions-7.0.2.tgz", + "integrity": "sha512-didWaPND1kCGzGNPI8S9lvQriMf2wIKZHCJIecofAT3JLolrcNk6LqXfIBgPSeZbyOAbH91kpHKN7PI0zyQtEQ==", "dependencies": { "@ethersproject/abstract-provider": "5.7.0", "@ethersproject/contracts": "5.7.0", "@ethersproject/providers": "5.7.2", - "@lit-protocol/accs-schemas": "^0.0.15", - "@lit-protocol/constants": "7.0.0", - "@lit-protocol/logger": "7.0.0", - "@lit-protocol/misc": "7.0.0", - "@lit-protocol/types": "7.0.0", - "@lit-protocol/uint8arrays": "7.0.0", + "@lit-protocol/accs-schemas": "^0.0.20", + "@lit-protocol/constants": "7.0.2", + "@lit-protocol/contracts": "^0.0.74", + "@lit-protocol/logger": "7.0.2", + "@lit-protocol/misc": "7.0.2", + "@lit-protocol/types": "7.0.2", + "@lit-protocol/uint8arrays": "7.0.2", "@openagenda/verror": "^3.1.4", "ajv": "^8.12.0", "bech32": "^2.0.0", @@ -1504,9 +1508,9 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@lit-protocol/accs-schemas": { - "version": "0.0.15", - "resolved": "https://registry.npmjs.org/@lit-protocol/accs-schemas/-/accs-schemas-0.0.15.tgz", - "integrity": "sha512-GYF8BolqrU2H/uXr3D39TUbgFN/3u2d68oHHNfwg926iEsCEHwGmUOPvi4EMprV5lJR3EVn9IQODY/4eokJ6Rg==", + "version": "0.0.20", + "resolved": "https://registry.npmjs.org/@lit-protocol/accs-schemas/-/accs-schemas-0.0.20.tgz", + "integrity": "sha512-JHHX0q45nq1uQ4olkg4VIGLW9lzMnRRldeTDuOrOaoPVztz+2iSOjwzb+QmuSuKFQpP5SOej2zoQB+K8b22KDw==", "dependencies": { "ajv": "^8.12.0" } @@ -1531,72 +1535,22 @@ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" }, - "node_modules/@lit-protocol/auth-browser": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/auth-browser/-/auth-browser-7.0.0.tgz", - "integrity": "sha512-DYoucBiTXCv1sdtUCTbYC4DApuezrtLXTK3bdW0KLLIY9aBBq0C9i4FwIPQjkz9e7S0rXUwI7d0QL3HV5NnK7Q==", - "dependencies": { - "@ethersproject/abstract-provider": "5.7.0", - "@ethersproject/bytes": "5.7.0", - "@ethersproject/contracts": "5.7.0", - "@ethersproject/providers": "5.7.2", - "@ethersproject/strings": "5.7.0", - "@ethersproject/wallet": "5.7.0", - "@lit-protocol/accs-schemas": "^0.0.15", - "@lit-protocol/constants": "7.0.0", - "@lit-protocol/logger": "7.0.0", - "@lit-protocol/misc": "7.0.0", - "@lit-protocol/misc-browser": "7.0.0", - "@lit-protocol/types": "7.0.0", - "@lit-protocol/uint8arrays": "7.0.0", - "@openagenda/verror": "^3.1.4", - "ajv": "^8.12.0", - "bech32": "^2.0.0", - "depd": "^2.0.0", - "ethers": "^5.7.1", - "tslib": "1.14.1" - } - }, - "node_modules/@lit-protocol/auth-browser/node_modules/ajv": { - "version": "8.17.1", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", - "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", - "dependencies": { - "fast-deep-equal": "^3.1.3", - "fast-uri": "^3.0.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/@lit-protocol/auth-browser/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "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==" - }, "node_modules/@lit-protocol/auth-helpers": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/auth-helpers/-/auth-helpers-7.0.0.tgz", - "integrity": "sha512-7psSirXq6aNJhauzgHgMRFPcBOTZ8BYkaYc70sL70yxVcbjXaoye4pNCyNYNqmvZ8SSxcAaFcwPc5V1SHKNSBw==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/auth-helpers/-/auth-helpers-7.0.2.tgz", + "integrity": "sha512-8917XgmuAEzXWPsyYSQcAlzmDWJ4xKabMroGObduY1RtsD0yq1o3azt+8kW0J7YDLmGRBGTGvVh2c1IQpCzXfQ==", "dependencies": { "@ethersproject/abstract-provider": "5.7.0", "@ethersproject/contracts": "5.7.0", "@ethersproject/providers": "5.7.2", - "@lit-protocol/access-control-conditions": "7.0.0", - "@lit-protocol/accs-schemas": "^0.0.15", - "@lit-protocol/constants": "7.0.0", - "@lit-protocol/logger": "7.0.0", - "@lit-protocol/misc": "7.0.0", - "@lit-protocol/types": "7.0.0", - "@lit-protocol/uint8arrays": "7.0.0", + "@lit-protocol/access-control-conditions": "7.0.2", + "@lit-protocol/accs-schemas": "^0.0.20", + "@lit-protocol/constants": "7.0.2", + "@lit-protocol/contracts": "^0.0.74", + "@lit-protocol/logger": "7.0.2", + "@lit-protocol/misc": "7.0.2", + "@lit-protocol/types": "7.0.2", + "@lit-protocol/uint8arrays": "7.0.2", "@openagenda/verror": "^3.1.4", "ajv": "^8.12.0", "bech32": "^2.0.0", @@ -1634,13 +1588,14 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@lit-protocol/constants": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/constants/-/constants-7.0.0.tgz", - "integrity": "sha512-pIxhY+fTswqWWM/DNRYOOLEYOWE+aQiacvJMl/MXvLk2MjG87AIWdpv5ZNpho5qy6MSfF7ig4WTgv4rjvNwfgA==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/constants/-/constants-7.0.2.tgz", + "integrity": "sha512-A2tpsB7pCGHiC+VrPAHBaEGyb/9crCkcSIj8BtGPrLRszFZO8EHKWziM7WiMM2c2mYb+B4dKtGGUkxxCAarqaQ==", "dependencies": { "@ethersproject/abstract-provider": "5.7.0", - "@lit-protocol/accs-schemas": "^0.0.15", - "@lit-protocol/types": "7.0.0", + "@lit-protocol/accs-schemas": "^0.0.20", + "@lit-protocol/contracts": "^0.0.74", + "@lit-protocol/types": "7.0.2", "@openagenda/verror": "^3.1.4", "depd": "^2.0.0", "ethers": "^5.7.1", @@ -1662,19 +1617,20 @@ } }, "node_modules/@lit-protocol/contracts-sdk": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/contracts-sdk/-/contracts-sdk-7.0.0.tgz", - "integrity": "sha512-lgNQsyZ0K8W3msW9fDPGF7nx7isQtdAq3dE4S0xUz9FzaOWzO88/z/UpQ4eIABhhCZddZLA2c9397keErl8SnQ==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/contracts-sdk/-/contracts-sdk-7.0.2.tgz", + "integrity": "sha512-EQs0l3v+tRdItuRamo675obkAPHGmQnef0WZ1cY0nNn97zRBGbkYPfkHMBxrUoGwbcsFQPMHDynrGTzAiUM7Zw==", "dependencies": { "@ethersproject/abi": "5.7.0", "@ethersproject/abstract-provider": "5.7.0", "@ethersproject/contracts": "5.7.0", "@ethersproject/providers": "5.7.2", - "@lit-protocol/accs-schemas": "^0.0.15", - "@lit-protocol/constants": "7.0.0", - "@lit-protocol/logger": "7.0.0", - "@lit-protocol/misc": "7.0.0", - "@lit-protocol/types": "7.0.0", + "@lit-protocol/accs-schemas": "^0.0.20", + "@lit-protocol/constants": "7.0.2", + "@lit-protocol/contracts": "^0.0.74", + "@lit-protocol/logger": "7.0.2", + "@lit-protocol/misc": "7.0.2", + "@lit-protocol/types": "7.0.2", "@openagenda/verror": "^3.1.4", "ajv": "^8.12.0", "bech32": "^2.0.0", @@ -1685,6 +1641,10 @@ "siwe": "^2.3.2", "tslib": "1.14.1", "util": "0.12.5" + }, + "peerDependencies": { + "date-and-time": "^2.4.1", + "multiformats": "^9.7.1" } }, "node_modules/@lit-protocol/contracts-sdk/node_modules/ajv": { @@ -1713,25 +1673,26 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@lit-protocol/core": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/core/-/core-7.0.0.tgz", - "integrity": "sha512-O8plnz6jRDus9sF23rjkZ1ANJLUV3tAD/PUWqlcCJsFzuh0Cl62hZx7bRvpMz41wX9P/DPQnSksVEJUq0gM79w==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/core/-/core-7.0.2.tgz", + "integrity": "sha512-BANcnKQyqBD5ZGfDAPEJBhtzhc4bYuka8xyb2/ueCleaWOe0NgwW/z/CJ6Q/eSysO9smi0Z7bQy5a4xDBGNjHA==", "dependencies": { "@ethersproject/abi": "5.7.0", "@ethersproject/abstract-provider": "5.7.0", "@ethersproject/contracts": "5.7.0", "@ethersproject/providers": "5.7.2", - "@lit-protocol/access-control-conditions": "7.0.0", - "@lit-protocol/accs-schemas": "^0.0.15", - "@lit-protocol/constants": "7.0.0", - "@lit-protocol/contracts-sdk": "7.0.0", - "@lit-protocol/crypto": "7.0.0", - "@lit-protocol/logger": "7.0.0", - "@lit-protocol/misc": "7.0.0", - "@lit-protocol/nacl": "7.0.0", - "@lit-protocol/types": "7.0.0", - "@lit-protocol/uint8arrays": "7.0.0", - "@lit-protocol/wasm": "7.0.0", + "@lit-protocol/access-control-conditions": "7.0.2", + "@lit-protocol/accs-schemas": "^0.0.20", + "@lit-protocol/constants": "7.0.2", + "@lit-protocol/contracts": "^0.0.74", + "@lit-protocol/contracts-sdk": "7.0.2", + "@lit-protocol/crypto": "7.0.2", + "@lit-protocol/logger": "7.0.2", + "@lit-protocol/misc": "7.0.2", + "@lit-protocol/nacl": "7.0.2", + "@lit-protocol/types": "7.0.2", + "@lit-protocol/uint8arrays": "7.0.2", + "@lit-protocol/wasm": "7.0.2", "@openagenda/verror": "^3.1.4", "ajv": "^8.12.0", "bech32": "^2.0.0", @@ -1773,21 +1734,22 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@lit-protocol/crypto": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/crypto/-/crypto-7.0.0.tgz", - "integrity": "sha512-QJPqLkuli/QBxX0en1gSRU0Q9GZfUkFiXdYwclWKhYZFBTXeOWvd0bFIYTzDhU2FpMCtPi12Qw+p7FjHAURdXw==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/crypto/-/crypto-7.0.2.tgz", + "integrity": "sha512-zgnOo3+LnRkIxGHro3QSsDmS3PPIH6nLrkBDp/+DigHL41H0zehdQbHMGxTQqzxtqpMFt9FARdAN0/CfHm/9Ow==", "dependencies": { "@ethersproject/abstract-provider": "5.7.0", "@ethersproject/contracts": "5.7.0", "@ethersproject/providers": "5.7.2", - "@lit-protocol/accs-schemas": "^0.0.15", - "@lit-protocol/constants": "7.0.0", - "@lit-protocol/logger": "7.0.0", - "@lit-protocol/misc": "7.0.0", - "@lit-protocol/nacl": "7.0.0", - "@lit-protocol/types": "7.0.0", - "@lit-protocol/uint8arrays": "7.0.0", - "@lit-protocol/wasm": "7.0.0", + "@lit-protocol/accs-schemas": "^0.0.20", + "@lit-protocol/constants": "7.0.2", + "@lit-protocol/contracts": "^0.0.74", + "@lit-protocol/logger": "7.0.2", + "@lit-protocol/misc": "7.0.2", + "@lit-protocol/nacl": "7.0.2", + "@lit-protocol/types": "7.0.2", + "@lit-protocol/uint8arrays": "7.0.2", + "@lit-protocol/wasm": "7.0.2", "@openagenda/verror": "^3.1.4", "ajv": "^8.12.0", "bech32": "^2.0.0", @@ -1825,19 +1787,20 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@lit-protocol/encryption": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/encryption/-/encryption-7.0.0.tgz", - "integrity": "sha512-Ip0+ukmCVYLF5rSMnFWPSIPus05ZP3eAes2iu8Gb4rn7GsTTGnK7qkQ8KFi15D5DYPYu+8x/qARSz1KZPB6tXw==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/encryption/-/encryption-7.0.2.tgz", + "integrity": "sha512-OeHDPkvVMiY86vkQ1LTNog06QLXmKXMleaz+WmJy4Qc6GkOARuuJtJW/1uZjOcwcaCGzvPSWjBasb8O1K6t4FQ==", "dependencies": { "@ethersproject/abstract-provider": "5.7.0", "@ethersproject/contracts": "5.7.0", "@ethersproject/providers": "5.7.2", - "@lit-protocol/accs-schemas": "^0.0.15", - "@lit-protocol/constants": "7.0.0", - "@lit-protocol/logger": "7.0.0", - "@lit-protocol/misc": "7.0.0", - "@lit-protocol/types": "7.0.0", - "@lit-protocol/uint8arrays": "7.0.0", + "@lit-protocol/accs-schemas": "^0.0.20", + "@lit-protocol/constants": "7.0.2", + "@lit-protocol/contracts": "^0.0.74", + "@lit-protocol/logger": "7.0.2", + "@lit-protocol/misc": "7.0.2", + "@lit-protocol/types": "7.0.2", + "@lit-protocol/uint8arrays": "7.0.2", "@openagenda/verror": "^3.1.4", "ajv": "^8.12.0", "bech32": "^2.0.0", @@ -1874,9 +1837,9 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@lit-protocol/lit-node-client": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/lit-node-client/-/lit-node-client-7.0.0.tgz", - "integrity": "sha512-qn9DN3bkdWZegmAguGT5WN1IGlWpHuKqgUMjf3rCbQUoJ94sjFW3QCTPEOMCc4AX9yI6e+514/B38+MWAcF+eg==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/lit-node-client/-/lit-node-client-7.0.2.tgz", + "integrity": "sha512-8zESXAA9HdRBLsjyljLuIpS2yzDv7jspW0MUe54XmHYHo87WE4G/q4WCjkKwRnKaeG0Jh5+/kb6j81AnLpWKFQ==", "dependencies": { "@ethersproject/abi": "5.7.0", "@ethersproject/abstract-provider": "5.7.0", @@ -1886,22 +1849,23 @@ "@ethersproject/strings": "5.7.0", "@ethersproject/transactions": "5.7.0", "@ethersproject/wallet": "5.7.0", - "@lit-protocol/access-control-conditions": "7.0.0", - "@lit-protocol/accs-schemas": "^0.0.15", - "@lit-protocol/auth-browser": "7.0.0", - "@lit-protocol/auth-helpers": "7.0.0", - "@lit-protocol/constants": "7.0.0", - "@lit-protocol/contracts-sdk": "7.0.0", - "@lit-protocol/core": "7.0.0", - "@lit-protocol/crypto": "7.0.0", - "@lit-protocol/lit-node-client-nodejs": "7.0.0", - "@lit-protocol/logger": "7.0.0", - "@lit-protocol/misc": "7.0.0", - "@lit-protocol/misc-browser": "7.0.0", - "@lit-protocol/nacl": "7.0.0", - "@lit-protocol/types": "7.0.0", - "@lit-protocol/uint8arrays": "7.0.0", - "@lit-protocol/wasm": "7.0.0", + "@lit-protocol/access-control-conditions": "7.0.2", + "@lit-protocol/accs-schemas": "^0.0.20", + "@lit-protocol/auth-browser": "7.0.2", + "@lit-protocol/auth-helpers": "7.0.2", + "@lit-protocol/constants": "7.0.2", + "@lit-protocol/contracts": "^0.0.74", + "@lit-protocol/contracts-sdk": "7.0.2", + "@lit-protocol/core": "7.0.2", + "@lit-protocol/crypto": "7.0.2", + "@lit-protocol/lit-node-client-nodejs": "7.0.2", + "@lit-protocol/logger": "7.0.2", + "@lit-protocol/misc": "7.0.2", + "@lit-protocol/misc-browser": "7.0.2", + "@lit-protocol/nacl": "7.0.2", + "@lit-protocol/types": "7.0.2", + "@lit-protocol/uint8arrays": "7.0.2", + "@lit-protocol/wasm": "7.0.2", "@openagenda/verror": "^3.1.4", "@walletconnect/ethereum-provider": "2.9.2", "ajv": "^8.12.0", @@ -1919,32 +1883,36 @@ "tweetnacl": "^1.0.3", "tweetnacl-util": "^0.15.1", "util": "0.12.5" + }, + "peerDependencies": { + "tslib": "^2.3.0" } }, "node_modules/@lit-protocol/lit-node-client-nodejs": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/lit-node-client-nodejs/-/lit-node-client-nodejs-7.0.0.tgz", - "integrity": "sha512-15aCAwZSekZagoHk7ne1DsoB+hFP0y9TR4JhaWQlLExcXrUTcoHdkebmO52XghxxWFLbCRQOpBrv9lBEmx4NWA==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/lit-node-client-nodejs/-/lit-node-client-nodejs-7.0.2.tgz", + "integrity": "sha512-HUPCKRFxObK+XM9lPlWtbx+PqQoQl4OrRN7Lw/sIXew+wdozYgcMAMEbrB/xlCmJB+eFccu/06V4URSXQ22jXQ==", "dependencies": { "@ethersproject/abi": "5.7.0", "@ethersproject/abstract-provider": "5.7.0", "@ethersproject/contracts": "5.7.0", "@ethersproject/providers": "5.7.2", "@ethersproject/transactions": "5.7.0", - "@lit-protocol/access-control-conditions": "7.0.0", - "@lit-protocol/accs-schemas": "^0.0.15", - "@lit-protocol/auth-helpers": "7.0.0", - "@lit-protocol/constants": "7.0.0", - "@lit-protocol/contracts-sdk": "7.0.0", - "@lit-protocol/core": "7.0.0", - "@lit-protocol/crypto": "7.0.0", - "@lit-protocol/logger": "7.0.0", - "@lit-protocol/misc": "7.0.0", - "@lit-protocol/misc-browser": "7.0.0", - "@lit-protocol/nacl": "7.0.0", - "@lit-protocol/types": "7.0.0", - "@lit-protocol/uint8arrays": "7.0.0", - "@lit-protocol/wasm": "7.0.0", + "@lit-protocol/access-control-conditions": "7.0.2", + "@lit-protocol/accs-schemas": "^0.0.20", + "@lit-protocol/auth-helpers": "7.0.2", + "@lit-protocol/constants": "7.0.2", + "@lit-protocol/contracts": "^0.0.74", + "@lit-protocol/contracts-sdk": "7.0.2", + "@lit-protocol/core": "7.0.2", + "@lit-protocol/crypto": "7.0.2", + "@lit-protocol/logger": "7.0.2", + "@lit-protocol/misc": "7.0.2", + "@lit-protocol/misc-browser": "7.0.2", + "@lit-protocol/nacl": "7.0.2", + "@lit-protocol/types": "7.0.2", + "@lit-protocol/uint8arrays": "7.0.2", + "@lit-protocol/wasm": "7.0.2", "@openagenda/verror": "^3.1.4", "ajv": "^8.12.0", "bech32": "^2.0.0", @@ -1987,6 +1955,78 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, + "node_modules/@lit-protocol/lit-node-client/node_modules/@lit-protocol/auth-browser": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/auth-browser/-/auth-browser-7.0.2.tgz", + "integrity": "sha512-zXNxJTmQle2rzede2x8L9m0ai72yRwtfye1ugJMBptSaiWMhkZHN3kiwBvXWusy35COOeq08NDVdvr2nsf9pGw==", + "dependencies": { + "@ethersproject/abstract-provider": "5.7.0", + "@ethersproject/bytes": "5.7.0", + "@ethersproject/contracts": "5.7.0", + "@ethersproject/providers": "5.7.2", + "@ethersproject/strings": "5.7.0", + "@ethersproject/wallet": "5.7.0", + "@lit-protocol/accs-schemas": "^0.0.20", + "@lit-protocol/constants": "7.0.2", + "@lit-protocol/logger": "7.0.2", + "@lit-protocol/misc": "7.0.2", + "@lit-protocol/misc-browser": "7.0.2", + "@lit-protocol/types": "7.0.2", + "@lit-protocol/uint8arrays": "7.0.2", + "@openagenda/verror": "^3.1.4", + "ajv": "^8.12.0", + "bech32": "^2.0.0", + "depd": "^2.0.0", + "ethers": "^5.7.1", + "tslib": "1.14.1" + }, + "peerDependencies": { + "@lit-protocol/contracts": "^0.0.74", + "@walletconnect/ethereum-provider": "2.9.2", + "@walletconnect/modal": "2.6.1", + "siwe": "^2.0.5", + "tweetnacl": "^1.0.3", + "tweetnacl-util": "^0.13.3", + "util": "^0.12.4", + "web-vitals": "^3.0.4" + } + }, + "node_modules/@lit-protocol/lit-node-client/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==" + }, + "node_modules/@lit-protocol/lit-node-client/node_modules/@walletconnect/modal": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/@walletconnect/modal/-/modal-2.6.1.tgz", + "integrity": "sha512-G84tSzdPKAFk1zimgV7JzIUFT5olZUVtI3GcOk77OeLYjlMfnDT23RVRHm5EyCrjkptnvpD0wQScXePOFd2Xcw==", + "peer": true, + "dependencies": { + "@walletconnect/modal-core": "2.6.1", + "@walletconnect/modal-ui": "2.6.1" + } + }, + "node_modules/@lit-protocol/lit-node-client/node_modules/@walletconnect/modal-core": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/@walletconnect/modal-core/-/modal-core-2.6.1.tgz", + "integrity": "sha512-f2hYlJ5pwzGvjyaZ6BoGR5uiMgXzWXt6w6ktt1N8lmY6PiYp8whZgqx2hTxVWwVlsGnaIfh6UHp1hGnANx0eTQ==", + "peer": true, + "dependencies": { + "valtio": "1.11.0" + } + }, + "node_modules/@lit-protocol/lit-node-client/node_modules/@walletconnect/modal-ui": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/@walletconnect/modal-ui/-/modal-ui-2.6.1.tgz", + "integrity": "sha512-RFUOwDAMijSK8B7W3+KoLKaa1l+KEUG0LCrtHqaB0H0cLnhEGdLR+kdTdygw+W8+yYZbkM5tXBm7MlFbcuyitA==", + "peer": true, + "dependencies": { + "@walletconnect/modal-core": "2.6.1", + "lit": "2.7.6", + "motion": "10.16.2", + "qrcode": "1.5.3" + } + }, "node_modules/@lit-protocol/lit-node-client/node_modules/ajv": { "version": "8.17.1", "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", @@ -2007,15 +2047,66 @@ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" }, + "node_modules/@lit-protocol/lit-node-client/node_modules/lit": { + "version": "2.7.6", + "resolved": "https://registry.npmjs.org/lit/-/lit-2.7.6.tgz", + "integrity": "sha512-1amFHA7t4VaaDe+vdQejSVBklwtH9svGoG6/dZi9JhxtJBBlqY5D1RV7iLUYY0trCqQc4NfhYYZilZiVHt7Hxg==", + "peer": true, + "dependencies": { + "@lit/reactive-element": "^1.6.0", + "lit-element": "^3.3.0", + "lit-html": "^2.7.0" + } + }, + "node_modules/@lit-protocol/lit-node-client/node_modules/qrcode": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/qrcode/-/qrcode-1.5.3.tgz", + "integrity": "sha512-puyri6ApkEHYiVl4CFzo1tDkAZ+ATcnbJrJ6RiBM1Fhctdn/ix9MTE3hRph33omisEbC/2fcfemsseiKgBPKZg==", + "peer": true, + "dependencies": { + "dijkstrajs": "^1.0.1", + "encode-utf8": "^1.0.3", + "pngjs": "^5.0.0", + "yargs": "^15.3.1" + }, + "bin": { + "qrcode": "bin/qrcode" + }, + "engines": { + "node": ">=10.13.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", + "integrity": "sha512-65Yd0yU5qs86b5lN1eu/nzcTgQ9/6YnD6iO+DDaDbQLn1Zv2w12Gwk43WkPlUBxk5wL/6cD5YMFf7kj6HZ1Kpg==", + "peer": true, + "dependencies": { + "proxy-compare": "2.5.1", + "use-sync-external-store": "1.2.0" + }, + "engines": { + "node": ">=12.20.0" + }, + "peerDependencies": { + "react": ">=16.8" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + } + } + }, "node_modules/@lit-protocol/logger": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/logger/-/logger-7.0.0.tgz", - "integrity": "sha512-gI/bK+Ea97a8CKMzd4MUoRFSy7eoEMzh6RsJ1lrkgod1tDrW91ktVc0qmzgvwNdwuOM45g+2T77DBDqaaB75iw==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/logger/-/logger-7.0.2.tgz", + "integrity": "sha512-44VsSlLWVxIVG9m5GIkvdXSfd4gyCNToNN0uor41cQTYLbyvasgTfyi12XPNwfFZU7FNMrYpt+Jgig2SqrzXVg==", "dependencies": { "@ethersproject/abstract-provider": "5.7.0", - "@lit-protocol/accs-schemas": "^0.0.15", - "@lit-protocol/constants": "7.0.0", - "@lit-protocol/types": "7.0.0", + "@lit-protocol/accs-schemas": "^0.0.20", + "@lit-protocol/constants": "7.0.2", + "@lit-protocol/contracts": "^0.0.74", + "@lit-protocol/types": "7.0.2", "@openagenda/verror": "^3.1.4", "depd": "^2.0.0", "ethers": "^5.7.1", @@ -2029,17 +2120,18 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@lit-protocol/misc": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/misc/-/misc-7.0.0.tgz", - "integrity": "sha512-5BDKukR/QzzFjoaYBUdpVM7R/GWIoOuQRzwM3myUjF+d4OR9imcRIeq9k8oQBAEPc+AoTimgn1aWxpEQMFrrGQ==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/misc/-/misc-7.0.2.tgz", + "integrity": "sha512-ZUU4j3E+VnCY11oPLGop95UkAUzTiBmPfiCXwFYGmh6PDvHXZlRC1Qc+3aC5lFpocoBTTJ/uE2MQZpHyN0kRlQ==", "dependencies": { "@ethersproject/abstract-provider": "5.7.0", "@ethersproject/contracts": "5.7.0", "@ethersproject/providers": "5.7.2", - "@lit-protocol/accs-schemas": "^0.0.15", - "@lit-protocol/constants": "7.0.0", - "@lit-protocol/logger": "7.0.0", - "@lit-protocol/types": "7.0.0", + "@lit-protocol/accs-schemas": "^0.0.20", + "@lit-protocol/constants": "7.0.2", + "@lit-protocol/contracts": "^0.0.74", + "@lit-protocol/logger": "7.0.2", + "@lit-protocol/types": "7.0.2", "@openagenda/verror": "^3.1.4", "ajv": "^8.12.0", "bech32": "^2.0.0", @@ -2051,15 +2143,16 @@ } }, "node_modules/@lit-protocol/misc-browser": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/misc-browser/-/misc-browser-7.0.0.tgz", - "integrity": "sha512-x54F4FRhIlugDB5LdErHBZCSlAF8I+Q9qCGObwddut77spYafOuVPsrtrLE/oDLYRcaAFOX7wWKYSxsZpOc53g==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/misc-browser/-/misc-browser-7.0.2.tgz", + "integrity": "sha512-T9L4j3U6P+/0uI30NB2lCZM2PVPDI6G9JkrBn7PBIgzwynK9jtUHxwmxMk16qrUV9MvVCYSEt+tqEvOI5S/gMg==", "dependencies": { "@ethersproject/abstract-provider": "5.7.0", - "@lit-protocol/accs-schemas": "^0.0.15", - "@lit-protocol/constants": "7.0.0", - "@lit-protocol/types": "7.0.0", - "@lit-protocol/uint8arrays": "7.0.0", + "@lit-protocol/accs-schemas": "^0.0.20", + "@lit-protocol/constants": "7.0.2", + "@lit-protocol/contracts": "^0.0.74", + "@lit-protocol/types": "7.0.2", + "@lit-protocol/uint8arrays": "7.0.2", "@openagenda/verror": "^3.1.4", "depd": "^2.0.0", "ethers": "^5.7.1", @@ -2098,9 +2191,9 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@lit-protocol/nacl": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/nacl/-/nacl-7.0.0.tgz", - "integrity": "sha512-tkcT4pf6kKJKT2h+8tH/qqf/Yi1Wug7lUodbiAxWMM859vjzKc2IKozfw5bcQ7UZsz9+xrHvDnD+d7dD1kHqMQ==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/nacl/-/nacl-7.0.2.tgz", + "integrity": "sha512-jdtquJ1iZCgIdKlVP0zAJlVfttLWLG2T6EsKFDp3o1lxEKtiUkKqbM1VGXihQVJQ6kFtmb3PJdMDRYDkOq1bhw==", "dependencies": { "tslib": "1.14.1" } @@ -2111,12 +2204,12 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@lit-protocol/types": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/types/-/types-7.0.0.tgz", - "integrity": "sha512-QEHeumd5rsfh9XJp7SpCT1b0xy4vzjt0UKssTzsymvBAGkjTXGtNkshO8GHgNm+nf32NmXhncTqTnIGACJw1Ew==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/types/-/types-7.0.2.tgz", + "integrity": "sha512-rEBZoeSByaMxXiP7w3g6/d180d8AbL4xpLqIlZchfJfAcSFkTseByV1d4h/J3LHl+3Q10wQsJT0N+qIi9kZbqA==", "dependencies": { "@ethersproject/abstract-provider": "5.7.0", - "@lit-protocol/accs-schemas": "^0.0.15", + "@lit-protocol/accs-schemas": "^0.0.20", "depd": "^2.0.0", "ethers": "^5.7.1", "siwe": "^2.3.2", @@ -2129,14 +2222,15 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@lit-protocol/uint8arrays": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/uint8arrays/-/uint8arrays-7.0.0.tgz", - "integrity": "sha512-oFZ0nokC67Qd+ilbG2+2V/EnE+1+4NugqWdaMcY7cuBB943D1oC6n6xLiNQcI1wpmB4cAvfvemGJ8toz+JQpZQ==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/uint8arrays/-/uint8arrays-7.0.2.tgz", + "integrity": "sha512-lwytcoJOQGtwrAU5qdRc3nkNWy4uND17HZux447eljgwJUGYeLFxNDfx8qtveues1MKAbvSOHtUmxmhpN1aHyQ==", "dependencies": { "@ethersproject/abstract-provider": "5.7.0", - "@lit-protocol/accs-schemas": "^0.0.15", - "@lit-protocol/constants": "7.0.0", - "@lit-protocol/types": "7.0.0", + "@lit-protocol/accs-schemas": "^0.0.20", + "@lit-protocol/constants": "7.0.2", + "@lit-protocol/contracts": "^0.0.74", + "@lit-protocol/types": "7.0.2", "@openagenda/verror": "^3.1.4", "depd": "^2.0.0", "ethers": "^5.7.1", @@ -2150,9 +2244,9 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@lit-protocol/wasm": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@lit-protocol/wasm/-/wasm-7.0.0.tgz", - "integrity": "sha512-YaADtQ4h/nQ56PRqzDm7sbnJkbdtQkQ27FJfEVtOiUvVRuoaCypLgulcxLbh+7VuNuEZ9ASMVQ0JLqES/+XFDg==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@lit-protocol/wasm/-/wasm-7.0.2.tgz", + "integrity": "sha512-e5sRe6Oi0ZSCjZZjL96jkbPE6UbxM1OYIrL3CFUo6IeoNZ/ZyYudHrM92v3ZEhiTfJDRnJDv0t3b2hpUz88cIQ==", "dependencies": { "ethers": "^5.7.1", "pako": "^2.1.0", @@ -3705,13 +3799,13 @@ } }, "node_modules/@requestnetwork/advanced-logic": { - "version": "0.47.0", - "resolved": "https://registry.npmjs.org/@requestnetwork/advanced-logic/-/advanced-logic-0.47.0.tgz", - "integrity": "sha512-XroGt33aSzaPudF1UneMYEg/UKhOvnkm8CNSx7a+ArdYi/dlWmd0aQWelnw4bv9FOrySnRhnzfNw4lmSn+b1Tw==", + "version": "0.48.0", + "resolved": "https://registry.npmjs.org/@requestnetwork/advanced-logic/-/advanced-logic-0.48.0.tgz", + "integrity": "sha512-cktVlQJhBuItcI6okN68wec2OG0gNC9VJP7jRCrgb8P52wAKwtz7neEqQFxXpPH4uNas3AaMpuRehKwg9rTvSA==", "dependencies": { - "@requestnetwork/currency": "0.21.0", - "@requestnetwork/types": "0.47.0", - "@requestnetwork/utils": "0.47.0", + "@requestnetwork/currency": "0.22.0", + "@requestnetwork/types": "0.48.0", + "@requestnetwork/utils": "0.48.0", "tslib": "2.5.0" }, "engines": { @@ -3719,25 +3813,25 @@ } }, "node_modules/@requestnetwork/create-invoice-form": { - "version": "0.11.8", - "resolved": "https://registry.npmjs.org/@requestnetwork/create-invoice-form/-/create-invoice-form-0.11.8.tgz", - "integrity": "sha512-AJV2xtcDOvPxuH+IYglK3x3sEsxK8vx1iveNC9xx3LRuK/EGMBa3xxCH+YVhFs67xp0/QjKkupLNqAP8ACms/w==", + "version": "0.11.9", + "resolved": "https://registry.npmjs.org/@requestnetwork/create-invoice-form/-/create-invoice-form-0.11.9.tgz", + "integrity": "sha512-wnl1lsAbJLXhbGp+67mLE/BoIFtEjzqMmuDVCGzwDr99la4xz8R1lwOOavXDrxvZxflOfP8v3B3OdtVKVM4ECg==", "dependencies": { - "@requestnetwork/data-format": "0.19.3", - "@requestnetwork/request-client.js": "0.52.0", + "@requestnetwork/data-format": "0.19.4", + "@requestnetwork/request-client.js": "0.53.0", "@wagmi/core": "^2.15.2", "validator": "^13.12.0", "viem": "^2.21.53" } }, "node_modules/@requestnetwork/currency": { - "version": "0.21.0", - "resolved": "https://registry.npmjs.org/@requestnetwork/currency/-/currency-0.21.0.tgz", - "integrity": "sha512-bp2JBB9cWZiJ3YHC1lDgAG+JmicUgMGFYYpTxc6g6fxFTgc+p7eFM24XdIbcGjgKw/MPuHqSG7qSIIDcHkHKxQ==", + "version": "0.22.0", + "resolved": "https://registry.npmjs.org/@requestnetwork/currency/-/currency-0.22.0.tgz", + "integrity": "sha512-DJn3BKQSrjeL/LyKGG+8aqDcuxCcOsdRZOXO3unt0iseCoz/zm+ykzVx2BB2Wkyk8RTTupRj2but3T/8Uxi86A==", "dependencies": { "@metamask/contract-metadata": "1.31.0", - "@requestnetwork/types": "0.47.0", - "@requestnetwork/utils": "0.47.0", + "@requestnetwork/types": "0.48.0", + "@requestnetwork/utils": "0.48.0", "multicoin-address-validator": "0.5.15", "node-dijkstra": "2.5.0", "tslib": "2.5.0" @@ -3747,13 +3841,13 @@ } }, "node_modules/@requestnetwork/data-access": { - "version": "0.38.0", - "resolved": "https://registry.npmjs.org/@requestnetwork/data-access/-/data-access-0.38.0.tgz", - "integrity": "sha512-94dt+rgXrFLFoVus4nqoVEPDf9x+RsjIJbjXR1Ct1eKFgOWINpriZtR6UISAyk023kg8b2nvuUCHUbG5SBDwXw==", + "version": "0.39.0", + "resolved": "https://registry.npmjs.org/@requestnetwork/data-access/-/data-access-0.39.0.tgz", + "integrity": "sha512-kiGUpCIej+BOScIRR3MrsYjTE93bvk3+tgFIjHs7sD7jBRPgifbmgX2DCT+WeIJsi9BQ5/j8N5IcoGDXspppMg==", "dependencies": { - "@requestnetwork/multi-format": "0.21.0", - "@requestnetwork/types": "0.47.0", - "@requestnetwork/utils": "0.47.0", + "@requestnetwork/multi-format": "0.22.0", + "@requestnetwork/types": "0.48.0", + "@requestnetwork/utils": "0.48.0", "tslib": "2.5.0" }, "engines": { @@ -3761,9 +3855,9 @@ } }, "node_modules/@requestnetwork/data-format": { - "version": "0.19.3", - "resolved": "https://registry.npmjs.org/@requestnetwork/data-format/-/data-format-0.19.3.tgz", - "integrity": "sha512-/5EyG01NSJ83uZqAnwEDBWxUmoY59yHuj0nTWsGqmxYuqTzC6yf9LZ23Gk+ZM1w1skSQbyacGHnoPd2u4zeuwA==", + "version": "0.19.4", + "resolved": "https://registry.npmjs.org/@requestnetwork/data-format/-/data-format-0.19.4.tgz", + "integrity": "sha512-uYR4L1IYT3dma2PEfkJ9a0RRjdKaJHIerL8fmksUSCGGqQnFyC2562rOafV/GLVzybS95NeAEsm0phFEjYSM9A==", "dependencies": { "ajv": "6.12.4", "ethers": "5.7.2", @@ -3774,12 +3868,12 @@ } }, "node_modules/@requestnetwork/epk-signature": { - "version": "0.9.3", - "resolved": "https://registry.npmjs.org/@requestnetwork/epk-signature/-/epk-signature-0.9.3.tgz", - "integrity": "sha512-POE4ikBJVuvtncDbbxdJs/lUK/uu/0+/D4K0zQdm69coLS6DYanNxQu3D8lYyoJtT4ewKS923lpZK2ekyvTWkA==", + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/@requestnetwork/epk-signature/-/epk-signature-0.9.4.tgz", + "integrity": "sha512-Hp9eA4lCTzK1SwoWfZAw7GpBKZaJSpr4+4v3j/6/C/r/7z1yVH86RPmoFla4JEgZMaeyLkQ+41zMazX/qqJqrQ==", "dependencies": { - "@requestnetwork/types": "0.47.0", - "@requestnetwork/utils": "0.47.0", + "@requestnetwork/types": "0.48.0", + "@requestnetwork/utils": "0.48.0", "tslib": "2.5.0" }, "engines": { @@ -3787,13 +3881,13 @@ } }, "node_modules/@requestnetwork/invoice-dashboard": { - "version": "0.11.5", - "resolved": "https://registry.npmjs.org/@requestnetwork/invoice-dashboard/-/invoice-dashboard-0.11.5.tgz", - "integrity": "sha512-62qdEpUPbAKv1FI3DdzdrXDuIn7H5XRxUrpGAjFZMeJcaeKGdnaEiWH3GPvW0tEixMgaUQlc8YYdwl8iT+fucA==", + "version": "0.11.7", + "resolved": "https://registry.npmjs.org/@requestnetwork/invoice-dashboard/-/invoice-dashboard-0.11.7.tgz", + "integrity": "sha512-ebAE2DJ4jMKa+Yopdm2Oeg9HDNaBNLANF1AllI1W4St5Oa5hnJkeP9uy1+Dnbop2wlGHOX+nZCqQYXVZSBZrYA==", "dependencies": { - "@requestnetwork/payment-detection": "0.47.0", - "@requestnetwork/payment-processor": "0.50.0", - "@requestnetwork/request-client.js": "0.52.0", + "@requestnetwork/payment-detection": "0.48.0", + "@requestnetwork/payment-processor": "0.51.0", + "@requestnetwork/request-client.js": "0.53.0", "@wagmi/connectors": "^5.5.3", "@wagmi/core": "^2.15.2", "ethers": "^5.7.2", @@ -3808,19 +3902,19 @@ } }, "node_modules/@requestnetwork/lit-protocol-cipher": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@requestnetwork/lit-protocol-cipher/-/lit-protocol-cipher-0.3.0.tgz", - "integrity": "sha512-n3kPvJb2liuIldNGY34dnoQtFVg2vH+qnpuuizDrZIZQJTs2gW6BLlZolulaiDEyXk67gNaxaWb4OFONBk6w6A==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@requestnetwork/lit-protocol-cipher/-/lit-protocol-cipher-0.4.0.tgz", + "integrity": "sha512-L1wgcuhjtlpHO+EbNB1jPKkCPOOQsSMXbvjZepHBEjmik/ZVNN3dnpyoCNowr0i5w5mGm5D7bx64Lu1yCR2mkA==", "dependencies": { - "@lit-protocol/auth-helpers": "7.0.0", - "@lit-protocol/constants": "7.0.0", + "@lit-protocol/auth-helpers": "7.0.2", + "@lit-protocol/constants": "7.0.2", "@lit-protocol/contracts": "0.0.74", - "@lit-protocol/encryption": "7.0.0", - "@lit-protocol/lit-node-client": "7.0.0", - "@lit-protocol/lit-node-client-nodejs": "7.0.0", - "@lit-protocol/types": "7.0.0", - "@requestnetwork/request-client.js": "0.52.0", - "@requestnetwork/types": "0.47.0", + "@lit-protocol/encryption": "7.0.2", + "@lit-protocol/lit-node-client": "7.0.2", + "@lit-protocol/lit-node-client-nodejs": "7.0.2", + "@lit-protocol/types": "7.0.2", + "@requestnetwork/request-client.js": "0.53.0", + "@requestnetwork/types": "0.48.0", "@walletconnect/modal": "2.7.0", "ethers": "5.7.2" }, @@ -3829,11 +3923,11 @@ } }, "node_modules/@requestnetwork/multi-format": { - "version": "0.21.0", - "resolved": "https://registry.npmjs.org/@requestnetwork/multi-format/-/multi-format-0.21.0.tgz", - "integrity": "sha512-z0pc7PbsWOgDqxb4bi0OpBNBzshYP2imLIoYkEN6dogpGRuzmo0KyPKVyO6mheUSy5t/tMFRqxIJhsqXQoE4kg==", + "version": "0.22.0", + "resolved": "https://registry.npmjs.org/@requestnetwork/multi-format/-/multi-format-0.22.0.tgz", + "integrity": "sha512-wDXCuvuVw7sac8QjNDvq7U0qU9kfSkep91QixUoOnRJm4JYTAUAaka9bpNOrx05dw7xazxf+vd555tJ8NDF7Jg==", "dependencies": { - "@requestnetwork/types": "0.47.0", + "@requestnetwork/types": "0.48.0", "tslib": "2.5.0" }, "engines": { @@ -3841,14 +3935,14 @@ } }, "node_modules/@requestnetwork/payment-detection": { - "version": "0.47.0", - "resolved": "https://registry.npmjs.org/@requestnetwork/payment-detection/-/payment-detection-0.47.0.tgz", - "integrity": "sha512-tbkbH8Fat8ZiItEDj+X39m6P9iaEa1LBl8Dx5k30sUw0pS6W8fTVyFM4VYl1TaJJKYsUGoRPiS38ZWdBTXVEXg==", - "dependencies": { - "@requestnetwork/currency": "0.21.0", - "@requestnetwork/smart-contracts": "0.41.0", - "@requestnetwork/types": "0.47.0", - "@requestnetwork/utils": "0.47.0", + "version": "0.48.0", + "resolved": "https://registry.npmjs.org/@requestnetwork/payment-detection/-/payment-detection-0.48.0.tgz", + "integrity": "sha512-HAgoEjGjmH/4ivb0ZKfeYyWie0vQDqf36fSUgog8qNrg3Mx8t8viRZU0uXF+UtjwL6is0kQJU07frZNjQ7kAXg==", + "dependencies": { + "@requestnetwork/currency": "0.22.0", + "@requestnetwork/smart-contracts": "0.42.0", + "@requestnetwork/types": "0.48.0", + "@requestnetwork/utils": "0.48.0", "ethers": "5.7.2", "graphql": "16.8.1", "graphql-request": "6.1.0", @@ -3861,16 +3955,16 @@ } }, "node_modules/@requestnetwork/payment-processor": { - "version": "0.50.0", - "resolved": "https://registry.npmjs.org/@requestnetwork/payment-processor/-/payment-processor-0.50.0.tgz", - "integrity": "sha512-+vV7s/ykM84P6hdC0n3auY8LUw+ltiG0lfyi/gtbs4qZeo0ycRc1XKXCjEpUPS+iRiSYiquOhLgUw0RWU/1GdQ==", + "version": "0.51.0", + "resolved": "https://registry.npmjs.org/@requestnetwork/payment-processor/-/payment-processor-0.51.0.tgz", + "integrity": "sha512-Dcan5s1nG9MwuWsnpDjTReZHsezh7ooUF3a5OIxoLVmsuh+/cvY/24CK+IcpnrYSFoea3vn41zIfhgJGJEMlrw==", "dependencies": { "@openzeppelin/contracts": "4.9.6", - "@requestnetwork/currency": "0.21.0", - "@requestnetwork/payment-detection": "0.47.0", - "@requestnetwork/smart-contracts": "0.41.0", - "@requestnetwork/types": "0.47.0", - "@requestnetwork/utils": "0.47.0", + "@requestnetwork/currency": "0.22.0", + "@requestnetwork/payment-detection": "0.48.0", + "@requestnetwork/smart-contracts": "0.42.0", + "@requestnetwork/types": "0.48.0", + "@requestnetwork/utils": "0.48.0", "@superfluid-finance/sdk-core": "0.5.0", "ethers": "5.7.2", "near-api-js": "4.0.2", @@ -3881,22 +3975,22 @@ } }, "node_modules/@requestnetwork/request-client.js": { - "version": "0.52.0", - "resolved": "https://registry.npmjs.org/@requestnetwork/request-client.js/-/request-client.js-0.52.0.tgz", - "integrity": "sha512-CjcIOh9yUpRyknuB/kmrkjusQMpAOdpgj+FHkQ2jFEXCfCCmjyticly7XR0rieQob+kRqw9vdVbEEqcZDOZBAg==", - "dependencies": { - "@requestnetwork/advanced-logic": "0.47.0", - "@requestnetwork/currency": "0.21.0", - "@requestnetwork/data-access": "0.38.0", - "@requestnetwork/data-format": "0.19.3", - "@requestnetwork/epk-signature": "0.9.3", - "@requestnetwork/multi-format": "0.21.0", - "@requestnetwork/payment-detection": "0.47.0", - "@requestnetwork/request-logic": "0.37.0", - "@requestnetwork/smart-contracts": "0.41.0", - "@requestnetwork/transaction-manager": "0.38.0", - "@requestnetwork/types": "0.47.0", - "@requestnetwork/utils": "0.47.0", + "version": "0.53.0", + "resolved": "https://registry.npmjs.org/@requestnetwork/request-client.js/-/request-client.js-0.53.0.tgz", + "integrity": "sha512-mLbYobcjub0KDOMQyVuuIrvpjfZauxGY76n7OTkLyr9UhFV3RS+pEB7uZl1QlxubATAsMmFnxTB5yB2uoy8Xiw==", + "dependencies": { + "@requestnetwork/advanced-logic": "0.48.0", + "@requestnetwork/currency": "0.22.0", + "@requestnetwork/data-access": "0.39.0", + "@requestnetwork/data-format": "0.19.4", + "@requestnetwork/epk-signature": "0.9.4", + "@requestnetwork/multi-format": "0.22.0", + "@requestnetwork/payment-detection": "0.48.0", + "@requestnetwork/request-logic": "0.38.0", + "@requestnetwork/smart-contracts": "0.42.0", + "@requestnetwork/transaction-manager": "0.39.0", + "@requestnetwork/types": "0.48.0", + "@requestnetwork/utils": "0.48.0", "ethers": "5.7.2", "qs": "6.11.2", "tslib": "2.5.0" @@ -3906,14 +4000,14 @@ } }, "node_modules/@requestnetwork/request-logic": { - "version": "0.37.0", - "resolved": "https://registry.npmjs.org/@requestnetwork/request-logic/-/request-logic-0.37.0.tgz", - "integrity": "sha512-xc5hiPko11Oao9IGefiDS/l7Nm+F4kI0hsrH6itSoIcPSdH1snyrF1rrFzuWzoeM0G9LWfx0rSCzkFniujEFiw==", - "dependencies": { - "@requestnetwork/advanced-logic": "0.47.0", - "@requestnetwork/multi-format": "0.21.0", - "@requestnetwork/types": "0.47.0", - "@requestnetwork/utils": "0.47.0", + "version": "0.38.0", + "resolved": "https://registry.npmjs.org/@requestnetwork/request-logic/-/request-logic-0.38.0.tgz", + "integrity": "sha512-aKGOSoTflwmkdp40xzCtFKfheAVsrSFFoY3tBGJPqNDv33lLeHpF5G3VubL3SciGF8o+wLd6wvcwKNVgiEvwoA==", + "dependencies": { + "@requestnetwork/advanced-logic": "0.48.0", + "@requestnetwork/multi-format": "0.22.0", + "@requestnetwork/types": "0.48.0", + "@requestnetwork/utils": "0.48.0", "semver": "7.5.4", "tslib": "2.5.0" }, @@ -3922,9 +4016,9 @@ } }, "node_modules/@requestnetwork/smart-contracts": { - "version": "0.41.0", - "resolved": "https://registry.npmjs.org/@requestnetwork/smart-contracts/-/smart-contracts-0.41.0.tgz", - "integrity": "sha512-vCEKSeDt4ny1CDh1QJU6SesktgmvAULUl3IT3oBNz432jxYT334YeaT1daHEbBz1rBl8Cb/vmx7ONclQE9qwPQ==", + "version": "0.42.0", + "resolved": "https://registry.npmjs.org/@requestnetwork/smart-contracts/-/smart-contracts-0.42.0.tgz", + "integrity": "sha512-rFM3vxLztMVqLqkFyqR5xgwVxgtgqK67nPSxI4MCDCB7l7+tn3Nryk/RCzwgFFR+LEjYsotCWu1JiZwV6xQsmg==", "dependencies": { "tslib": "2.5.0" }, @@ -3933,13 +4027,13 @@ } }, "node_modules/@requestnetwork/transaction-manager": { - "version": "0.38.0", - "resolved": "https://registry.npmjs.org/@requestnetwork/transaction-manager/-/transaction-manager-0.38.0.tgz", - "integrity": "sha512-F8+w6NlVVSv9U0WG+cqKhgbSMAQGH12iLgtJYaWi4CZ+1eHe18yRwR6Emr7ZIWqcKaSMvzD+tWM4cgv3EPDWuA==", + "version": "0.39.0", + "resolved": "https://registry.npmjs.org/@requestnetwork/transaction-manager/-/transaction-manager-0.39.0.tgz", + "integrity": "sha512-4NhIMN0h0i8/OCVlsiMueEXz736vaikVKAb4UgNzrmM7r5LNJPsCLaSOpsefixQk07lqIpSbqAwjhhnvpqvUcw==", "dependencies": { - "@requestnetwork/multi-format": "0.21.0", - "@requestnetwork/types": "0.47.0", - "@requestnetwork/utils": "0.47.0", + "@requestnetwork/multi-format": "0.22.0", + "@requestnetwork/types": "0.48.0", + "@requestnetwork/utils": "0.48.0", "tslib": "2.5.0" }, "engines": { @@ -3947,11 +4041,11 @@ } }, "node_modules/@requestnetwork/types": { - "version": "0.47.0", - "resolved": "https://registry.npmjs.org/@requestnetwork/types/-/types-0.47.0.tgz", - "integrity": "sha512-Idb660yPs/dh6V97EboFdvaNORraR7EDBCLIRV1gly+rZlM1jQVHPW4Czm/j08RpSH0UhoN8aCetRB89yl+DDw==", + "version": "0.48.0", + "resolved": "https://registry.npmjs.org/@requestnetwork/types/-/types-0.48.0.tgz", + "integrity": "sha512-PEhs8nF9d3Jaqkbs7vPvl3UJ4ofWr1XBhailPjytswjcwu9VX0vS5izDjtGllZ7a/xqykUpZqnfdJ0ZEd/TwhQ==", "dependencies": { - "@lit-protocol/types": "7.0.0", + "@lit-protocol/types": "7.0.2", "ethers": "5.7.2" }, "engines": { @@ -3959,11 +4053,11 @@ } }, "node_modules/@requestnetwork/utils": { - "version": "0.47.0", - "resolved": "https://registry.npmjs.org/@requestnetwork/utils/-/utils-0.47.0.tgz", - "integrity": "sha512-DWjwX9QvTAb6wHnY9aP0Jc5FIZtGA8mL1MeCzW2V/QCPKPLtxP4i+396c5PYAqtICIRYTdQLyI4quazlGPP/mA==", + "version": "0.48.0", + "resolved": "https://registry.npmjs.org/@requestnetwork/utils/-/utils-0.48.0.tgz", + "integrity": "sha512-pe/L+5/RtZ8fHN/kkhDVwZsbUKKfKG4ObNB5SXofZ6emjyAxK0/Q3FZXYtz4iLCSARFid3nqhy+W8EyLIiEmvQ==", "dependencies": { - "@requestnetwork/types": "0.47.0", + "@requestnetwork/types": "0.48.0", "@toruslabs/eccrypto": "4.0.0", "ethers": "5.7.2", "secp256k1": "4.0.4", @@ -3974,12 +4068,12 @@ } }, "node_modules/@requestnetwork/web3-signature": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/@requestnetwork/web3-signature/-/web3-signature-0.8.3.tgz", - "integrity": "sha512-SyaPRsLcuOd1q7O7DCF/SJ8n5gwwUvJf9gcPyeGN2HCtIepeRWOIaSaI6I5igJOt1OaIxVkRbtgkCJtvjoL2LA==", + "version": "0.8.4", + "resolved": "https://registry.npmjs.org/@requestnetwork/web3-signature/-/web3-signature-0.8.4.tgz", + "integrity": "sha512-wO/y09CMsOsLRrYTcInfhdcQij6M5hbThoS81bzKqdCI2cR5lHOcmhFV4XsReyKRe6WXDz03eS2UZqgF5Eq9nQ==", "dependencies": { - "@requestnetwork/types": "0.47.0", - "@requestnetwork/utils": "0.47.0", + "@requestnetwork/types": "0.48.0", + "@requestnetwork/utils": "0.48.0", "ethers": "5.7.2", "tslib": "2.5.0" }, @@ -14161,6 +14255,12 @@ } } }, + "node_modules/web-vitals": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-3.5.2.tgz", + "integrity": "sha512-c0rhqNcHXRkY/ogGDJQxZ9Im9D19hDihbzSQJrsioex+KnFgmMzBiy57Z1EjkhX/+OjyBpclDCzz2ITtjokFmg==", + "peer": true + }, "node_modules/webauthn-p256": { "version": "0.0.10", "resolved": "https://registry.npmjs.org/webauthn-p256/-/webauthn-p256-0.0.10.tgz", diff --git a/package.json b/package.json index 66887f8..a911cde 100644 --- a/package.json +++ b/package.json @@ -9,15 +9,17 @@ "lint": "next lint" }, "dependencies": { + "@lit-protocol/constants": "7.0.2", + "@lit-protocol/lit-node-client": "7.0.2", "@next/third-parties": "^14.1.0", "@radix-ui/react-dialog": "^1.1.0", "@rainbow-me/rainbowkit": "^2.2.1", - "@requestnetwork/create-invoice-form": "0.11.8", - "@requestnetwork/invoice-dashboard": "0.11.5", - "@requestnetwork/lit-protocol-cipher": "0.3.0", - "@requestnetwork/payment-detection": "0.47.0", - "@requestnetwork/request-client.js": "0.52.0", - "@requestnetwork/web3-signature": "0.8.3", + "@requestnetwork/create-invoice-form": "0.11.9", + "@requestnetwork/invoice-dashboard": "^0.11.7", + "@requestnetwork/lit-protocol-cipher": "0.4.0", + "@requestnetwork/payment-detection": "0.48.0", + "@requestnetwork/request-client.js": "0.53.0", + "@requestnetwork/web3-signature": "0.8.4", "@tanstack/react-query": "^5.59.14", "@wagmi/core": "^2.15.2", "class-variance-authority": "^0.7.0", @@ -33,7 +35,8 @@ "wagmi": "^2.13.3" }, "devDependencies": { - "@requestnetwork/types": "^0.47.0", + "@lit-protocol/types": "7.0.2", + "@requestnetwork/types": "^0.48.0", "@types/node": "^20", "@types/react": "^18", "@types/react-dom": "^18", diff --git a/pages/index.tsx b/pages/index.tsx index 3fba823..4019c07 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -12,7 +12,7 @@ const InvoiceDashboard = dynamic( ); export default function InvoiceDashboardPage() { - const { requestNetwork, isDecryptionEnabled, enableDecryption } = useAppContext(); + const { requestNetwork } = useAppContext(); return ( <> @@ -24,8 +24,6 @@ export default function InvoiceDashboardPage() { currencies={currencies} requestNetwork={requestNetwork} wagmiConfig={wagmiConfig} - isDecryptionEnabled={isDecryptionEnabled} - enableDecryption={enableDecryption} /> diff --git a/types.d.ts b/types.d.ts index fa80525..2899da4 100644 --- a/types.d.ts +++ b/types.d.ts @@ -25,8 +25,6 @@ interface InvoiceDashboardProps extends HTMLElement { wagmiConfig: WagmiConfig; requestNetwork: RequestNetwork; currencies: CurrencyTypes.CurrencyInput[]; - isDecryptionEnabled: boolean; - enableDecryption: (option: boolean) => void; } interface CreateInvoiceFormProps extends HTMLElement { diff --git a/utils/context.tsx b/utils/context.tsx index d93d1e1..6c312f5 100644 --- a/utils/context.tsx +++ b/utils/context.tsx @@ -10,7 +10,10 @@ import { RequestNetwork } from '@requestnetwork/request-client.js'; import { Web3SignatureProvider } from '@requestnetwork/web3-signature'; import { getTheGraphClient } from '@requestnetwork/payment-detection'; import { useEthersSigner } from './ethers' - +import { LitNodeClient } from '@lit-protocol/lit-node-client'; +import { LitProtocolCipherProvider } from '@requestnetwork/lit-protocol-cipher'; +import { LIT_NETWORK } from '@lit-protocol/constants'; +import { LIT_NETWORKS_KEYS } from '@lit-protocol/types'; interface ContextType { requestNetwork: RequestNetwork | null; isWalletConnectedToCipherProvider: boolean; @@ -55,13 +58,11 @@ export const Provider = ({ children }: { children: ReactNode }) => { const instantiateCipherProvider = async () => { try { - if (typeof window !== 'undefined') { - // FIX: This is a temporary fix to import the LitProtocolProvider only in the browser - // TODO: Find a better way to handle this in the Request Network SDK - const { LitProtocolProvider } = await import('@requestnetwork/lit-protocol-cipher'); - const litCipherProvider = new LitProtocolProvider( - process.env.NEXT_PUBLIC_LIT_PROTOCOL_CHAIN || 'ethereum', - (process.env.NEXT_PUBLIC_LIT_PROTOCOL_NETWORK || 'datil') as 'datil', + const litNodeClient = new LitNodeClient({ + litNetwork: process.env.NEXT_PUBLIC_LIT_PROTOCOL_NETWORK as LIT_NETWORKS_KEYS || LIT_NETWORK.Datil, + }); + const litCipherProvider = new LitProtocolCipherProvider( + litNodeClient, { baseURL: process.env.NEXT_PUBLIC_REQUEST_NODE || @@ -71,17 +72,17 @@ export const Provider = ({ children }: { children: ReactNode }) => { ); litCipherProvider.initializeClient(); setCipherProvider(litCipherProvider); - } + } catch (error) { console.error('Failed to initialize Cipher Provider:', error); setCipherProvider(undefined); } }; - const initializeRequestNetwork = (walletClient: unknown) => { + const initializeRequestNetwork = (wallet: unknown) => { try { - if (walletClient) { - const web3SignatureProvider = new Web3SignatureProvider(walletClient); + if (wallet) { + const web3SignatureProvider = new Web3SignatureProvider(wallet); const requestNetwork = new RequestNetwork({ cipherProvider, From bb839c6c0ebb9efd23cd5baa605f3a749714f3d3 Mon Sep 17 00:00:00 2001 From: rodrigopavezi Date: Fri, 13 Dec 2024 17:54:50 -0300 Subject: [PATCH 02/28] fix: build issue --- utils/context.tsx | 49 +++++++++++++------------------------------ utils/litProvider.tsx | 40 +++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 34 deletions(-) create mode 100644 utils/litProvider.tsx diff --git a/utils/context.tsx b/utils/context.tsx index 6c312f5..1ee3c74 100644 --- a/utils/context.tsx +++ b/utils/context.tsx @@ -10,10 +10,13 @@ import { RequestNetwork } from '@requestnetwork/request-client.js'; import { Web3SignatureProvider } from '@requestnetwork/web3-signature'; import { getTheGraphClient } from '@requestnetwork/payment-detection'; import { useEthersSigner } from './ethers' -import { LitNodeClient } from '@lit-protocol/lit-node-client'; -import { LitProtocolCipherProvider } from '@requestnetwork/lit-protocol-cipher'; -import { LIT_NETWORK } from '@lit-protocol/constants'; -import { LIT_NETWORKS_KEYS } from '@lit-protocol/types'; +import dynamic from 'next/dynamic'; + +const DynamicLitProvider = dynamic( + () => import('./litProvider').then(mod => mod.LitProvider), + { ssr: false } +); + interface ContextType { requestNetwork: RequestNetwork | null; isWalletConnectedToCipherProvider: boolean; @@ -56,29 +59,6 @@ export const Provider = ({ children }: { children: ReactNode }) => { const [isDecryptionEnabled, setisDecryptionEnabled] = useState(getInitialState); - const instantiateCipherProvider = async () => { - try { - const litNodeClient = new LitNodeClient({ - litNetwork: process.env.NEXT_PUBLIC_LIT_PROTOCOL_NETWORK as LIT_NETWORKS_KEYS || LIT_NETWORK.Datil, - }); - const litCipherProvider = new LitProtocolCipherProvider( - litNodeClient, - { - baseURL: - process.env.NEXT_PUBLIC_REQUEST_NODE || - 'https://gnosis.gateway.request.network/', - headers: {} - }, - ); - litCipherProvider.initializeClient(); - setCipherProvider(litCipherProvider); - - } catch (error) { - console.error('Failed to initialize Cipher Provider:', error); - setCipherProvider(undefined); - } - }; - const initializeRequestNetwork = (wallet: unknown) => { try { if (wallet) { @@ -224,16 +204,10 @@ const enableDecryption = async (option: boolean) => { useEffect(() => { if (walletClient && isConnected && address && chainId) { - instantiateCipherProvider(); - } - }, [walletClient, chainId, address, isConnected]); - - useEffect(() => { - if (cipherProvider) { initializeRequestNetwork(walletClient); enableDecryption(isDecryptionEnabled) } - }, [cipherProvider, walletClient]); + }, [walletClient, chainId, address, isConnected]); useEffect(() => { localStorage.setItem('isDecryptionEnabled', JSON.stringify(isDecryptionEnabled)); @@ -250,6 +224,13 @@ const enableDecryption = async (option: boolean) => { enableDecryption: enableDecryption, }} > + {walletClient && isConnected && address && chainId && ( + { + setCipherProvider(provider); + }} + /> + )} {children} ); diff --git a/utils/litProvider.tsx b/utils/litProvider.tsx new file mode 100644 index 0000000..2e602ff --- /dev/null +++ b/utils/litProvider.tsx @@ -0,0 +1,40 @@ +import { LitNodeClient } from '@lit-protocol/lit-node-client'; +import { LitProtocolCipherProvider } from '@requestnetwork/lit-protocol-cipher'; +import { LIT_NETWORK } from '@lit-protocol/constants'; +import { LIT_NETWORKS_KEYS } from '@lit-protocol/types'; +import { useEffect } from 'react'; + +interface LitProviderProps { + onProviderReady: (provider: any) => void; +} + +export function LitProvider({ onProviderReady }: LitProviderProps) { + const initializeLit = async () => { + try { + const litNodeClient = new LitNodeClient({ + litNetwork: process.env.NEXT_PUBLIC_LIT_PROTOCOL_NETWORK as LIT_NETWORKS_KEYS || LIT_NETWORK.Datil, + }); + const litCipherProvider = new LitProtocolCipherProvider( + litNodeClient, + { + baseURL: + process.env.NEXT_PUBLIC_REQUEST_NODE || + 'https://gnosis.gateway.request.network/', + headers: {} + }, + ); + litCipherProvider.initializeClient(); + onProviderReady(litCipherProvider); + } catch (error) { + console.error('Failed to initialize Cipher Provider:', error); + onProviderReady(undefined); + } + }; + + // Initialize on mount + useEffect(() => { + initializeLit(); + }, []); + + return null; // This component doesn't render anything +} \ No newline at end of file From 295d6b42306fbe84fed9342da53429f5ae7b4738 Mon Sep 17 00:00:00 2001 From: rodrigopavezi Date: Sat, 14 Dec 2024 03:49:08 -0300 Subject: [PATCH 03/28] fix: pin version --- package-lock.json | 4 ++-- package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2268e32..886536d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "@radix-ui/react-dialog": "^1.1.0", "@rainbow-me/rainbowkit": "^2.2.1", "@requestnetwork/create-invoice-form": "0.11.9", - "@requestnetwork/invoice-dashboard": "^0.11.7", + "@requestnetwork/invoice-dashboard": "0.11.7", "@requestnetwork/lit-protocol-cipher": "0.4.0", "@requestnetwork/payment-detection": "0.48.0", "@requestnetwork/request-client.js": "0.53.0", @@ -35,7 +35,7 @@ }, "devDependencies": { "@lit-protocol/types": "7.0.2", - "@requestnetwork/types": "^0.48.0", + "@requestnetwork/types": "0.48.0", "@types/node": "^20", "@types/react": "^18", "@types/react-dom": "^18", diff --git a/package.json b/package.json index a911cde..52f97ae 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "@radix-ui/react-dialog": "^1.1.0", "@rainbow-me/rainbowkit": "^2.2.1", "@requestnetwork/create-invoice-form": "0.11.9", - "@requestnetwork/invoice-dashboard": "^0.11.7", + "@requestnetwork/invoice-dashboard": "0.11.7", "@requestnetwork/lit-protocol-cipher": "0.4.0", "@requestnetwork/payment-detection": "0.48.0", "@requestnetwork/request-client.js": "0.53.0", @@ -36,7 +36,7 @@ }, "devDependencies": { "@lit-protocol/types": "7.0.2", - "@requestnetwork/types": "^0.48.0", + "@requestnetwork/types": "0.48.0", "@types/node": "^20", "@types/react": "^18", "@types/react-dom": "^18", From a1a6713c36082190f5d89da81eae7b88fea1ccae Mon Sep 17 00:00:00 2001 From: rodrigopavezi Date: Sat, 14 Dec 2024 03:58:06 -0300 Subject: [PATCH 04/28] fix: per coderabitai review --- utils/litProvider.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/utils/litProvider.tsx b/utils/litProvider.tsx index 2e602ff..5721112 100644 --- a/utils/litProvider.tsx +++ b/utils/litProvider.tsx @@ -2,13 +2,15 @@ import { LitNodeClient } from '@lit-protocol/lit-node-client'; import { LitProtocolCipherProvider } from '@requestnetwork/lit-protocol-cipher'; import { LIT_NETWORK } from '@lit-protocol/constants'; import { LIT_NETWORKS_KEYS } from '@lit-protocol/types'; -import { useEffect } from 'react'; +import { useEffect, useRef } from 'react'; interface LitProviderProps { - onProviderReady: (provider: any) => void; + onProviderReady: (provider: LitProtocolCipherProvider | undefined) => void; } export function LitProvider({ onProviderReady }: LitProviderProps) { + const litProviderRef = useRef(null); + const initializeLit = async () => { try { const litNodeClient = new LitNodeClient({ @@ -24,6 +26,7 @@ export function LitProvider({ onProviderReady }: LitProviderProps) { }, ); litCipherProvider.initializeClient(); + litProviderRef.current = litCipherProvider; onProviderReady(litCipherProvider); } catch (error) { console.error('Failed to initialize Cipher Provider:', error); @@ -34,6 +37,9 @@ export function LitProvider({ onProviderReady }: LitProviderProps) { // Initialize on mount useEffect(() => { initializeLit(); + return () => { + litProviderRef.current?.disconnectClient?.(); + }; }, []); return null; // This component doesn't render anything From fc3e25138d1eedec9a539ca39fd41f81a8077898 Mon Sep 17 00:00:00 2001 From: rodrigopavezi Date: Sat, 14 Dec 2024 04:06:00 -0300 Subject: [PATCH 05/28] chore: upgrade nextjs --- package-lock.json | 599 ++++++++++++++++++++++++++++++++++++++++------ package.json | 4 +- 2 files changed, 523 insertions(+), 80 deletions(-) diff --git a/package-lock.json b/package-lock.json index 886536d..4577513 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "dependencies": { "@lit-protocol/constants": "7.0.2", "@lit-protocol/lit-node-client": "7.0.2", - "@next/third-parties": "^14.1.0", + "@next/third-parties": "^15.1.0", "@radix-ui/react-dialog": "^1.1.0", "@rainbow-me/rainbowkit": "^2.2.1", "@requestnetwork/create-invoice-form": "0.11.9", @@ -25,7 +25,7 @@ "clsx": "^2.1.1", "ethers": "^5.7.2", "lucide-react": "^0.395.0", - "next": "^14.1.0", + "next": "^15.1.0", "react": "^18", "react-dom": "^18", "tailwind-merge": "^2.3.0", @@ -118,6 +118,15 @@ "@noble/ciphers": "^1.0.0" } }, + "node_modules/@emnapi/runtime": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.3.1.tgz", + "integrity": "sha512-kEBmG8KyqtxJZv+ygbEim+KCGtIq1fC22Ms3S4ziXmYKm8uyoLX0MHONVKwp+9opg390VaKRNt4a7A9NwmpNhw==", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, "node_modules/@emotion/hash": { "version": "0.9.2", "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.9.2.tgz", @@ -1316,6 +1325,348 @@ "deprecated": "Use @eslint/object-schema instead", "dev": true }, + "node_modules/@img/sharp-darwin-arm64": { + "version": "0.33.5", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.33.5.tgz", + "integrity": "sha512-UT4p+iz/2H4twwAoLCqfA9UH5pI6DggwKEGuaPy7nCVQ8ZsiY5PIcrRvD1DzuY3qYL07NtIQcWnBSY/heikIFQ==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-darwin-arm64": "1.0.4" + } + }, + "node_modules/@img/sharp-darwin-x64": { + "version": "0.33.5", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.33.5.tgz", + "integrity": "sha512-fyHac4jIc1ANYGRDxtiqelIbdWkIuQaI84Mv45KvGRRxSAa7o7d1ZKAOBaYbnepLC1WqxfpimdeWfvqqSGwR2Q==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-darwin-x64": "1.0.4" + } + }, + "node_modules/@img/sharp-libvips-darwin-arm64": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.0.4.tgz", + "integrity": "sha512-XblONe153h0O2zuFfTAbQYAX2JhYmDHeWikp1LM9Hul9gVPjFY427k6dFEcOL72O01QxQsWi761svJ/ev9xEDg==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "darwin" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-darwin-x64": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.0.4.tgz", + "integrity": "sha512-xnGR8YuZYfJGmWPvmlunFaWJsb9T/AO2ykoP3Fz/0X5XV2aoYBPkX6xqCQvUTKKiLddarLaxpzNe+b1hjeWHAQ==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "darwin" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-arm": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.0.5.tgz", + "integrity": "sha512-gvcC4ACAOPRNATg/ov8/MnbxFDJqf/pDePbBnuBDcjsI8PssmjoKMAz4LtLaVi+OnSb5FK/yIOamqDwGmXW32g==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-arm64": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.0.4.tgz", + "integrity": "sha512-9B+taZ8DlyyqzZQnoeIvDVR/2F4EbMepXMc/NdVbkzsJbzkUjhXv/70GQJ7tdLA4YJgNP25zukcxpX2/SueNrA==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-s390x": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.0.4.tgz", + "integrity": "sha512-u7Wz6ntiSSgGSGcjZ55im6uvTrOxSIS8/dgoVMoiGE9I6JAfU50yH5BoDlYA1tcuGS7g/QNtetJnxA6QEsCVTA==", + "cpu": [ + "s390x" + ], + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-x64": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.0.4.tgz", + "integrity": "sha512-MmWmQ3iPFZr0Iev+BAgVMb3ZyC4KeFc3jFxnNbEPas60e1cIfevbtuyf9nDGIzOaW9PdnDciJm+wFFaTlj5xYw==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linuxmusl-arm64": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.0.4.tgz", + "integrity": "sha512-9Ti+BbTYDcsbp4wfYib8Ctm1ilkugkA/uscUn6UXK1ldpC1JjiXbLfFZtRlBhjPZ5o1NCLiDbg8fhUPKStHoTA==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linuxmusl-x64": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.0.4.tgz", + "integrity": "sha512-viYN1KX9m+/hGkJtvYYp+CCLgnJXwiQB39damAO7WMdKWlIhmYTfHjwSbQeUK/20vY154mwezd9HflVFM1wVSw==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-linux-arm": { + "version": "0.33.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.33.5.tgz", + "integrity": "sha512-JTS1eldqZbJxjvKaAkxhZmBqPRGmxgu+qFKSInv8moZ2AmT5Yib3EQ1c6gp493HvrvV8QgdOXdyaIBrhvFhBMQ==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-arm": "1.0.5" + } + }, + "node_modules/@img/sharp-linux-arm64": { + "version": "0.33.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.33.5.tgz", + "integrity": "sha512-JMVv+AMRyGOHtO1RFBiJy/MBsgz0x4AWrT6QoEVVTyh1E39TrCUpTRI7mx9VksGX4awWASxqCYLCV4wBZHAYxA==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-arm64": "1.0.4" + } + }, + "node_modules/@img/sharp-linux-s390x": { + "version": "0.33.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.33.5.tgz", + "integrity": "sha512-y/5PCd+mP4CA/sPDKl2961b+C9d+vPAveS33s6Z3zfASk2j5upL6fXVPZi7ztePZ5CuH+1kW8JtvxgbuXHRa4Q==", + "cpu": [ + "s390x" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-s390x": "1.0.4" + } + }, + "node_modules/@img/sharp-linux-x64": { + "version": "0.33.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.33.5.tgz", + "integrity": "sha512-opC+Ok5pRNAzuvq1AG0ar+1owsu842/Ab+4qvU879ippJBHvyY5n2mxF1izXqkPYlGuP/M556uh53jRLJmzTWA==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-x64": "1.0.4" + } + }, + "node_modules/@img/sharp-linuxmusl-arm64": { + "version": "0.33.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.33.5.tgz", + "integrity": "sha512-XrHMZwGQGvJg2V/oRSUfSAfjfPxO+4DkiRh6p2AFjLQztWUuY/o8Mq0eMQVIY7HJ1CDQUJlxGGZRw1a5bqmd1g==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linuxmusl-arm64": "1.0.4" + } + }, + "node_modules/@img/sharp-linuxmusl-x64": { + "version": "0.33.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.33.5.tgz", + "integrity": "sha512-WT+d/cgqKkkKySYmqoZ8y3pxx7lx9vVejxW/W4DOFMYVSkErR+w7mf2u8m/y4+xHe7yY9DAXQMWQhpnMuFfScw==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linuxmusl-x64": "1.0.4" + } + }, + "node_modules/@img/sharp-wasm32": { + "version": "0.33.5", + "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.33.5.tgz", + "integrity": "sha512-ykUW4LVGaMcU9lu9thv85CbRMAwfeadCJHRsg2GmeRa/cJxsVY9Rbd57JcMxBkKHag5U/x7TSBpScF4U8ElVzg==", + "cpu": [ + "wasm32" + ], + "optional": true, + "dependencies": { + "@emnapi/runtime": "^1.2.0" + }, + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-ia32": { + "version": "0.33.5", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.33.5.tgz", + "integrity": "sha512-T36PblLaTwuVJ/zw/LaH0PdZkRz5rd3SmMHX8GSmR7vtNSP5Z6bQkExdSK7xGWyxLw4sUknBuugTelgw2faBbQ==", + "cpu": [ + "ia32" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-x64": { + "version": "0.33.5", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.33.5.tgz", + "integrity": "sha512-MpY/o8/8kj+EcnxwvrP4aTJSWw/aZ7JIGR4aBeZkZw5B7/Jn+tY9/VNwtcoGmdT7GfggGIU4kygOMSbYnOrAbg==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, "node_modules/@isaacs/cliui": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", @@ -2840,9 +3191,9 @@ } }, "node_modules/@next/env": { - "version": "14.2.20", - "resolved": "https://registry.npmjs.org/@next/env/-/env-14.2.20.tgz", - "integrity": "sha512-JfDpuOCB0UBKlEgEy/H6qcBSzHimn/YWjUHzKl1jMeUO+QVRdzmTTl8gFJaNO87c8DXmVKhFCtwxQ9acqB3+Pw==" + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/@next/env/-/env-15.1.0.tgz", + "integrity": "sha512-UcCO481cROsqJuszPPXJnb7GGuLq617ve4xuAyyNG4VSSocJNtMU5Fsx+Lp6mlN8c7W58aZLc5y6D/2xNmaK+w==" }, "node_modules/@next/eslint-plugin-next": { "version": "14.1.0", @@ -2900,9 +3251,9 @@ } }, "node_modules/@next/swc-darwin-arm64": { - "version": "14.2.20", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.2.20.tgz", - "integrity": "sha512-WDfq7bmROa5cIlk6ZNonNdVhKmbCv38XteVFYsxea1vDJt3SnYGgxLGMTXQNfs5OkFvAhmfKKrwe7Y0Hs+rWOg==", + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-15.1.0.tgz", + "integrity": "sha512-ZU8d7xxpX14uIaFC3nsr4L++5ZS/AkWDm1PzPO6gD9xWhFkOj2hzSbSIxoncsnlJXB1CbLOfGVN4Zk9tg83PUw==", "cpu": [ "arm64" ], @@ -2915,9 +3266,9 @@ } }, "node_modules/@next/swc-darwin-x64": { - "version": "14.2.20", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.2.20.tgz", - "integrity": "sha512-XIQlC+NAmJPfa2hruLvr1H1QJJeqOTDV+v7tl/jIdoFvqhoihvSNykLU/G6NMgoeo+e/H7p/VeWSOvMUHKtTIg==", + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-15.1.0.tgz", + "integrity": "sha512-DQ3RiUoW2XC9FcSM4ffpfndq1EsLV0fj0/UY33i7eklW5akPUCo6OX2qkcLXZ3jyPdo4sf2flwAED3AAq3Om2Q==", "cpu": [ "x64" ], @@ -2930,9 +3281,9 @@ } }, "node_modules/@next/swc-linux-arm64-gnu": { - "version": "14.2.20", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.2.20.tgz", - "integrity": "sha512-pnzBrHTPXIMm5QX3QC8XeMkpVuoAYOmyfsO4VlPn+0NrHraNuWjdhe+3xLq01xR++iCvX+uoeZmJDKcOxI201Q==", + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-15.1.0.tgz", + "integrity": "sha512-M+vhTovRS2F//LMx9KtxbkWk627l5Q7AqXWWWrfIzNIaUFiz2/NkOFkxCFyNyGACi5YbA8aekzCLtbDyfF/v5Q==", "cpu": [ "arm64" ], @@ -2945,9 +3296,9 @@ } }, "node_modules/@next/swc-linux-arm64-musl": { - "version": "14.2.20", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.2.20.tgz", - "integrity": "sha512-WhJJAFpi6yqmUx1momewSdcm/iRXFQS0HU2qlUGlGE/+98eu7JWLD5AAaP/tkK1mudS/rH2f9E3WCEF2iYDydQ==", + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-15.1.0.tgz", + "integrity": "sha512-Qn6vOuwaTCx3pNwygpSGtdIu0TfS1KiaYLYXLH5zq1scoTXdwYfdZtwvJTpB1WrLgiQE2Ne2kt8MZok3HlFqmg==", "cpu": [ "arm64" ], @@ -2960,9 +3311,9 @@ } }, "node_modules/@next/swc-linux-x64-gnu": { - "version": "14.2.20", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.2.20.tgz", - "integrity": "sha512-ao5HCbw9+iG1Kxm8XsGa3X174Ahn17mSYBQlY6VGsdsYDAbz/ZP13wSLfvlYoIDn1Ger6uYA+yt/3Y9KTIupRg==", + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-15.1.0.tgz", + "integrity": "sha512-yeNh9ofMqzOZ5yTOk+2rwncBzucc6a1lyqtg8xZv0rH5znyjxHOWsoUtSq4cUTeeBIiXXX51QOOe+VoCjdXJRw==", "cpu": [ "x64" ], @@ -2975,9 +3326,9 @@ } }, "node_modules/@next/swc-linux-x64-musl": { - "version": "14.2.20", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.2.20.tgz", - "integrity": "sha512-CXm/kpnltKTT7945np6Td3w7shj/92TMRPyI/VvveFe8+YE+/YOJ5hyAWK5rpx711XO1jBCgXl211TWaxOtkaA==", + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-15.1.0.tgz", + "integrity": "sha512-t9IfNkHQs/uKgPoyEtU912MG6a1j7Had37cSUyLTKx9MnUpjj+ZDKw9OyqTI9OwIIv0wmkr1pkZy+3T5pxhJPg==", "cpu": [ "x64" ], @@ -2990,9 +3341,9 @@ } }, "node_modules/@next/swc-win32-arm64-msvc": { - "version": "14.2.20", - "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.2.20.tgz", - "integrity": "sha512-upJn2HGQgKNDbXVfIgmqT2BN8f3z/mX8ddoyi1I565FHbfowVK5pnMEwauvLvaJf4iijvuKq3kw/b6E9oIVRWA==", + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-15.1.0.tgz", + "integrity": "sha512-WEAoHyG14t5sTavZa1c6BnOIEukll9iqFRTavqRVPfYmfegOAd5MaZfXgOGG6kGo1RduyGdTHD4+YZQSdsNZXg==", "cpu": [ "arm64" ], @@ -3004,25 +3355,10 @@ "node": ">= 10" } }, - "node_modules/@next/swc-win32-ia32-msvc": { - "version": "14.2.20", - "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.2.20.tgz", - "integrity": "sha512-igQW/JWciTGJwj3G1ipalD2V20Xfx3ywQy17IV0ciOUBbFhNfyU1DILWsTi32c8KmqgIDviUEulW/yPb2FF90w==", - "cpu": [ - "ia32" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10" - } - }, "node_modules/@next/swc-win32-x64-msvc": { - "version": "14.2.20", - "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.2.20.tgz", - "integrity": "sha512-AFmqeLW6LtxeFTuoB+MXFeM5fm5052i3MU6xD0WzJDOwku6SkZaxb1bxjBaRC8uNqTRTSPl0yMFtjNowIVI67w==", + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-15.1.0.tgz", + "integrity": "sha512-J1YdKuJv9xcixzXR24Dv+4SaDKc2jj31IVUEMdO5xJivMTXuE6MAdIi4qPjSymHuFG8O5wbfWKnhJUcHHpj5CA==", "cpu": [ "x64" ], @@ -3035,15 +3371,15 @@ } }, "node_modules/@next/third-parties": { - "version": "14.2.20", - "resolved": "https://registry.npmjs.org/@next/third-parties/-/third-parties-14.2.20.tgz", - "integrity": "sha512-Fpoq6DK/IcblMri0PzLT4x/b8lljgm0D+FVcdbvqaV+JuUT1qJsFvo+2+a4adiabQsTOWP0h8Pq4IivBLUCJOQ==", + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/@next/third-parties/-/third-parties-15.1.0.tgz", + "integrity": "sha512-eiv8vTo5HJOE/LabnIjRNVpN0hvjXfqPrE7D/XecmWvHBs9KrIISxlb1NZizDMcvjGtnHkdupWsquM9ur25rYw==", "dependencies": { "third-party-capital": "1.0.20" }, "peerDependencies": { - "next": "^13.0.0 || ^14.0.0", - "react": "^18.2.0" + "next": "^13.0.0 || ^14.0.0 || ^15.0.0", + "react": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0" } }, "node_modules/@noble/ciphers": { @@ -4688,14 +5024,18 @@ "integrity": "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==" }, "node_modules/@swc/helpers": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.5.tgz", - "integrity": "sha512-KGYxvIOXcceOAbEk4bi/dVLEK9z8sZ0uBB3Il5b1rhfClSpcX0yfRO0KmTkqR2cnQDymwLB+25ZyMzICg/cm/A==", + "version": "0.5.15", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.15.tgz", + "integrity": "sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==", "dependencies": { - "@swc/counter": "^0.1.3", - "tslib": "^2.4.0" + "tslib": "^2.8.0" } }, + "node_modules/@swc/helpers/node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==" + }, "node_modules/@tanstack/query-core": { "version": "5.62.2", "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.62.2.tgz", @@ -6782,6 +7122,19 @@ "node": ">=6" } }, + "node_modules/color": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/color/-/color-4.2.3.tgz", + "integrity": "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==", + "optional": true, + "dependencies": { + "color-convert": "^2.0.1", + "color-string": "^1.9.0" + }, + "engines": { + "node": ">=12.5.0" + } + }, "node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", @@ -6798,6 +7151,16 @@ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, + "node_modules/color-string": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz", + "integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==", + "optional": true, + "dependencies": { + "color-name": "^1.0.0", + "simple-swizzle": "^0.2.2" + } + }, "node_modules/combine-source-map": { "version": "0.8.0", "resolved": "https://registry.npmjs.org/combine-source-map/-/combine-source-map-0.8.0.tgz", @@ -8893,7 +9256,8 @@ "node_modules/graceful-fs": { "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true }, "node_modules/graphemer": { "version": "1.4.0", @@ -10726,40 +11090,41 @@ } }, "node_modules/next": { - "version": "14.2.20", - "resolved": "https://registry.npmjs.org/next/-/next-14.2.20.tgz", - "integrity": "sha512-yPvIiWsiyVYqJlSQxwmzMIReXn5HxFNq4+tlVQ812N1FbvhmE+fDpIAD7bcS2mGYQwPJ5vAsQouyme2eKsxaug==", + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/next/-/next-15.1.0.tgz", + "integrity": "sha512-QKhzt6Y8rgLNlj30izdMbxAwjHMFANnLwDwZ+WQh5sMhyt4lEBqDK9QpvWHtIM4rINKPoJ8aiRZKg5ULSybVHw==", "dependencies": { - "@next/env": "14.2.20", - "@swc/helpers": "0.5.5", + "@next/env": "15.1.0", + "@swc/counter": "0.1.3", + "@swc/helpers": "0.5.15", "busboy": "1.6.0", "caniuse-lite": "^1.0.30001579", - "graceful-fs": "^4.2.11", "postcss": "8.4.31", - "styled-jsx": "5.1.1" + "styled-jsx": "5.1.6" }, "bin": { "next": "dist/bin/next" }, "engines": { - "node": ">=18.17.0" + "node": "^18.18.0 || ^19.8.0 || >= 20.0.0" }, "optionalDependencies": { - "@next/swc-darwin-arm64": "14.2.20", - "@next/swc-darwin-x64": "14.2.20", - "@next/swc-linux-arm64-gnu": "14.2.20", - "@next/swc-linux-arm64-musl": "14.2.20", - "@next/swc-linux-x64-gnu": "14.2.20", - "@next/swc-linux-x64-musl": "14.2.20", - "@next/swc-win32-arm64-msvc": "14.2.20", - "@next/swc-win32-ia32-msvc": "14.2.20", - "@next/swc-win32-x64-msvc": "14.2.20" + "@next/swc-darwin-arm64": "15.1.0", + "@next/swc-darwin-x64": "15.1.0", + "@next/swc-linux-arm64-gnu": "15.1.0", + "@next/swc-linux-arm64-musl": "15.1.0", + "@next/swc-linux-x64-gnu": "15.1.0", + "@next/swc-linux-x64-musl": "15.1.0", + "@next/swc-win32-arm64-msvc": "15.1.0", + "@next/swc-win32-x64-msvc": "15.1.0", + "sharp": "^0.33.5" }, "peerDependencies": { "@opentelemetry/api": "^1.1.0", "@playwright/test": "^1.41.2", - "react": "^18.2.0", - "react-dom": "^18.2.0", + "babel-plugin-react-compiler": "*", + "react": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0", + "react-dom": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0", "sass": "^1.3.0" }, "peerDependenciesMeta": { @@ -10769,6 +11134,9 @@ "@playwright/test": { "optional": true }, + "babel-plugin-react-compiler": { + "optional": true + }, "sass": { "optional": true } @@ -12510,6 +12878,66 @@ "sha.js": "bin.js" } }, + "node_modules/sharp": { + "version": "0.33.5", + "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.33.5.tgz", + "integrity": "sha512-haPVm1EkS9pgvHrQ/F3Xy+hgcuMV0Wm9vfIBSiwZ05k+xgb0PkBQpGsAA/oWdDobNaZTH5ppvHtzCFbnSEwHVw==", + "hasInstallScript": true, + "optional": true, + "dependencies": { + "color": "^4.2.3", + "detect-libc": "^2.0.3", + "semver": "^7.6.3" + }, + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-darwin-arm64": "0.33.5", + "@img/sharp-darwin-x64": "0.33.5", + "@img/sharp-libvips-darwin-arm64": "1.0.4", + "@img/sharp-libvips-darwin-x64": "1.0.4", + "@img/sharp-libvips-linux-arm": "1.0.5", + "@img/sharp-libvips-linux-arm64": "1.0.4", + "@img/sharp-libvips-linux-s390x": "1.0.4", + "@img/sharp-libvips-linux-x64": "1.0.4", + "@img/sharp-libvips-linuxmusl-arm64": "1.0.4", + "@img/sharp-libvips-linuxmusl-x64": "1.0.4", + "@img/sharp-linux-arm": "0.33.5", + "@img/sharp-linux-arm64": "0.33.5", + "@img/sharp-linux-s390x": "0.33.5", + "@img/sharp-linux-x64": "0.33.5", + "@img/sharp-linuxmusl-arm64": "0.33.5", + "@img/sharp-linuxmusl-x64": "0.33.5", + "@img/sharp-wasm32": "0.33.5", + "@img/sharp-win32-ia32": "0.33.5", + "@img/sharp-win32-x64": "0.33.5" + } + }, + "node_modules/sharp/node_modules/detect-libc": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.3.tgz", + "integrity": "sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/sharp/node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "optional": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/shasum-object": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/shasum-object/-/shasum-object-1.0.0.tgz", @@ -12595,6 +13023,21 @@ } ] }, + "node_modules/simple-swizzle": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz", + "integrity": "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==", + "optional": true, + "dependencies": { + "is-arrayish": "^0.3.1" + } + }, + "node_modules/simple-swizzle/node_modules/is-arrayish": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", + "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==", + "optional": true + }, "node_modules/siwe": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/siwe/-/siwe-2.3.2.tgz", @@ -13070,9 +13513,9 @@ } }, "node_modules/styled-jsx": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.1.1.tgz", - "integrity": "sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw==", + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.1.6.tgz", + "integrity": "sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA==", "dependencies": { "client-only": "0.0.1" }, @@ -13080,7 +13523,7 @@ "node": ">= 12.0.0" }, "peerDependencies": { - "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0" + "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0 || ^19.0.0-0" }, "peerDependenciesMeta": { "@babel/core": { diff --git a/package.json b/package.json index 52f97ae..06807a2 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "dependencies": { "@lit-protocol/constants": "7.0.2", "@lit-protocol/lit-node-client": "7.0.2", - "@next/third-parties": "^14.1.0", + "@next/third-parties": "^15.1.0", "@radix-ui/react-dialog": "^1.1.0", "@rainbow-me/rainbowkit": "^2.2.1", "@requestnetwork/create-invoice-form": "0.11.9", @@ -26,7 +26,7 @@ "clsx": "^2.1.1", "ethers": "^5.7.2", "lucide-react": "^0.395.0", - "next": "^14.1.0", + "next": "^15.1.0", "react": "^18", "react-dom": "^18", "tailwind-merge": "^2.3.0", From 9aec6eb60cfb25ae2bb5bd4d566ee8eaf3489ef2 Mon Sep 17 00:00:00 2001 From: rodrigopavezi Date: Sat, 14 Dec 2024 04:26:42 -0300 Subject: [PATCH 06/28] test: increase memory in ci build --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9522ffe..2b713e1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,3 +34,4 @@ jobs: run: npm run build env: NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID }} + NODE_OPTIONS: "--max_old_space_size=4096" From 0cfae04b6a45eadf36489876fa41d241b31328bd Mon Sep 17 00:00:00 2001 From: rodrigopavezi Date: Sat, 14 Dec 2024 04:30:33 -0300 Subject: [PATCH 07/28] chore: update node on github actions --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2b713e1..e7b926f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '18' + node-version: '22' cache: 'npm' - name: Install dependencies From e2dc21ec83f9c2b189b3b77b8b04157bb1b37d3f Mon Sep 17 00:00:00 2001 From: rodrigopavezi Date: Sat, 14 Dec 2024 04:43:56 -0300 Subject: [PATCH 08/28] fix: build by adding same envs as nixpacks --- .github/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e7b926f..781a3f7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -35,3 +35,6 @@ jobs: env: NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID }} NODE_OPTIONS: "--max_old_space_size=4096" + NEXT_TELEMETRY_DISABLED: "1" + NPM_CONFIG_PRODUCTION: "false" + NODE_ENV: "production" From 4e7316bafa2d8aba83c5ae025fb508ca310c1c6e Mon Sep 17 00:00:00 2001 From: rodrigopavezi Date: Sat, 14 Dec 2024 04:50:16 -0300 Subject: [PATCH 09/28] fix: build --- .github/workflows/build.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 781a3f7..11e6dbd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,14 +27,24 @@ jobs: node-version: '22' cache: 'npm' + - name: System information + run: | + free -h + df -h + node --version + npm --version + - name: Install dependencies - run: npm ci + run: | + npm cache clean --force + npm ci --prefer-offline --no-audit - name: Build run: npm run build env: NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID }} - NODE_OPTIONS: "--max_old_space_size=4096" + NODE_OPTIONS: "--max_old_space_size=6144" NEXT_TELEMETRY_DISABLED: "1" NPM_CONFIG_PRODUCTION: "false" NODE_ENV: "production" + CI: "true" From ced2e39999440e8ae0e8a09d79df56c05b644196 Mon Sep 17 00:00:00 2001 From: rodrigopavezi Date: Sat, 14 Dec 2024 04:53:37 -0300 Subject: [PATCH 10/28] fix: build --- .github/workflows/build.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 11e6dbd..1226cc4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,13 +37,14 @@ jobs: - name: Install dependencies run: | npm cache clean --force - npm ci --prefer-offline --no-audit + npm ci --prefer-offline --no-audit --maxsockets 1 - name: Build - run: npm run build + run: | + node --trace-deprecation node_modules/.bin/next build env: NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID }} - NODE_OPTIONS: "--max_old_space_size=6144" + NODE_OPTIONS: "--max_old_space_size=8192 --no-warnings" NEXT_TELEMETRY_DISABLED: "1" NPM_CONFIG_PRODUCTION: "false" NODE_ENV: "production" From 0c3d48547015a2c835b9868eed07e728e4d0ad8b Mon Sep 17 00:00:00 2001 From: rodrigopavezi Date: Sat, 14 Dec 2024 04:55:55 -0300 Subject: [PATCH 11/28] fix: build with tubo pack --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1226cc4..1241aba 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,7 +41,7 @@ jobs: - name: Build run: | - node --trace-deprecation node_modules/.bin/next build + node --trace-deprecation node_modules/.bin/next build --turbo env: NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID }} NODE_OPTIONS: "--max_old_space_size=8192 --no-warnings" From 7c0251fc4339547595ed4720fc46d297fe68d2c8 Mon Sep 17 00:00:00 2001 From: rodrigopavezi Date: Sat, 14 Dec 2024 04:58:56 -0300 Subject: [PATCH 12/28] test: turbo --- .github/workflows/build.yml | 3 ++- next.config.js | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 next.config.js diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1241aba..0cede23 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,7 +41,7 @@ jobs: - name: Build run: | - node --trace-deprecation node_modules/.bin/next build --turbo + node --trace-deprecation node_modules/.bin/next build env: NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID }} NODE_OPTIONS: "--max_old_space_size=8192 --no-warnings" @@ -49,3 +49,4 @@ jobs: NPM_CONFIG_PRODUCTION: "false" NODE_ENV: "production" CI: "true" + NEXT_TURBO: "1" diff --git a/next.config.js b/next.config.js new file mode 100644 index 0000000..543de39 --- /dev/null +++ b/next.config.js @@ -0,0 +1,8 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = { + experimental: { + turbo: true, + }, +} + +module.exports = nextConfig \ No newline at end of file From f1c0a60b905c9d2f4257c82210b05db135bd995f Mon Sep 17 00:00:00 2001 From: rodrigopavezi Date: Sat, 14 Dec 2024 05:07:11 -0300 Subject: [PATCH 13/28] fix: build --- .github/workflows/build.yml | 10 ++++++++-- utils/litProvider.tsx | 23 ++++++++++++++++++----- 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0cede23..fc858f6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,12 +41,18 @@ jobs: - name: Build run: | - node --trace-deprecation node_modules/.bin/next build + # Clear any cached data + rm -rf .next + # Run build with increased heap size and additional flags + node --trace-deprecation --max-old-space-size=8192 node_modules/.bin/next build env: NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID }} - NODE_OPTIONS: "--max_old_space_size=8192 --no-warnings" + NODE_OPTIONS: "--max_old_space_size=8192 --no-warnings --expose-gc" NEXT_TELEMETRY_DISABLED: "1" NPM_CONFIG_PRODUCTION: "false" NODE_ENV: "production" CI: "true" NEXT_TURBO: "1" + # Add memory management flags + GENERATE_SOURCEMAP: "false" + NEXT_MINIMAL: "1" diff --git a/utils/litProvider.tsx b/utils/litProvider.tsx index 5721112..98bff9a 100644 --- a/utils/litProvider.tsx +++ b/utils/litProvider.tsx @@ -15,6 +15,7 @@ export function LitProvider({ onProviderReady }: LitProviderProps) { try { const litNodeClient = new LitNodeClient({ litNetwork: process.env.NEXT_PUBLIC_LIT_PROTOCOL_NETWORK as LIT_NETWORKS_KEYS || LIT_NETWORK.Datil, + debug: false, }); const litCipherProvider = new LitProtocolCipherProvider( litNodeClient, @@ -25,7 +26,7 @@ export function LitProvider({ onProviderReady }: LitProviderProps) { headers: {} }, ); - litCipherProvider.initializeClient(); + await litCipherProvider.initializeClient(); litProviderRef.current = litCipherProvider; onProviderReady(litCipherProvider); } catch (error) { @@ -34,13 +35,25 @@ export function LitProvider({ onProviderReady }: LitProviderProps) { } }; - // Initialize on mount useEffect(() => { - initializeLit(); + let mounted = true; + + const init = async () => { + if (mounted) { + await initializeLit(); + } + }; + + init(); + return () => { - litProviderRef.current?.disconnectClient?.(); + mounted = false; + if (litProviderRef.current?.disconnectClient) { + litProviderRef.current.disconnectClient(); + litProviderRef.current = null; + } }; }, []); - return null; // This component doesn't render anything + return null; } \ No newline at end of file From 361c8aee01db65f6b8c2abaf7df503135ea77264 Mon Sep 17 00:00:00 2001 From: rodrigopavezi Date: Sat, 14 Dec 2024 05:09:49 -0300 Subject: [PATCH 14/28] fix: build --- .github/workflows/build.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fc858f6..7a96042 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -53,6 +53,3 @@ jobs: NODE_ENV: "production" CI: "true" NEXT_TURBO: "1" - # Add memory management flags - GENERATE_SOURCEMAP: "false" - NEXT_MINIMAL: "1" From 6864fc5c8e346075b1f420e22e185a8cb92dc027 Mon Sep 17 00:00:00 2001 From: rodrigopavezi Date: Sat, 14 Dec 2024 05:13:17 -0300 Subject: [PATCH 15/28] fix: build --- next.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/next.config.js b/next.config.js index 543de39..d3a78e4 100644 --- a/next.config.js +++ b/next.config.js @@ -1,8 +1,11 @@ /** @type {import('next').NextConfig} */ const nextConfig = { experimental: { - turbo: true, + // Modern options for Next.js optimization + optimizePackageImports: ['@lit-protocol/lit-node-client', '@requestnetwork/lit-protocol-cipher'], + serverActions: true, }, + // Add any other necessary configuration options } module.exports = nextConfig \ No newline at end of file From 540417c81dcf5f71493e502337425809f14a22ff Mon Sep 17 00:00:00 2001 From: rodrigopavezi Date: Sat, 14 Dec 2024 05:15:11 -0300 Subject: [PATCH 16/28] fix: build --- next.config.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/next.config.js b/next.config.js index d3a78e4..af33ccb 100644 --- a/next.config.js +++ b/next.config.js @@ -1,11 +1,8 @@ /** @type {import('next').NextConfig} */ const nextConfig = { experimental: { - // Modern options for Next.js optimization optimizePackageImports: ['@lit-protocol/lit-node-client', '@requestnetwork/lit-protocol-cipher'], - serverActions: true, }, - // Add any other necessary configuration options } module.exports = nextConfig \ No newline at end of file From 0017956ee28730bd6bdbef75bd08feb8efb19091 Mon Sep 17 00:00:00 2001 From: rodrigopavezi Date: Sat, 14 Dec 2024 05:21:55 -0300 Subject: [PATCH 17/28] fix: build --- .github/workflows/build.yml | 2 +- utils/litProvider.tsx | 21 ++++++++++++++++----- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7a96042..528568f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,7 +44,7 @@ jobs: # Clear any cached data rm -rf .next # Run build with increased heap size and additional flags - node --trace-deprecation --max-old-space-size=8192 node_modules/.bin/next build + NEXT_TELEMETRY_DISABLED=1 node --trace-deprecation --max-old-space-size=8192 node_modules/.bin/next build env: NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID }} NODE_OPTIONS: "--max_old_space_size=8192 --no-warnings --expose-gc" diff --git a/utils/litProvider.tsx b/utils/litProvider.tsx index 98bff9a..8960e9b 100644 --- a/utils/litProvider.tsx +++ b/utils/litProvider.tsx @@ -1,8 +1,6 @@ -import { LitNodeClient } from '@lit-protocol/lit-node-client'; -import { LitProtocolCipherProvider } from '@requestnetwork/lit-protocol-cipher'; -import { LIT_NETWORK } from '@lit-protocol/constants'; -import { LIT_NETWORKS_KEYS } from '@lit-protocol/types'; import { useEffect, useRef } from 'react'; +import type { LitProtocolCipherProvider } from '@requestnetwork/lit-protocol-cipher'; +import type { LIT_NETWORKS_KEYS } from '@lit-protocol/types'; interface LitProviderProps { onProviderReady: (provider: LitProtocolCipherProvider | undefined) => void; @@ -13,10 +11,22 @@ export function LitProvider({ onProviderReady }: LitProviderProps) { const initializeLit = async () => { try { + // Dynamic imports to reduce initial bundle size + const [ + { LitNodeClient }, + { LitProtocolCipherProvider }, + { LIT_NETWORK } + ] = await Promise.all([ + import('@lit-protocol/lit-node-client'), + import('@requestnetwork/lit-protocol-cipher'), + import('@lit-protocol/constants') + ]); + const litNodeClient = new LitNodeClient({ - litNetwork: process.env.NEXT_PUBLIC_LIT_PROTOCOL_NETWORK as LIT_NETWORKS_KEYS || LIT_NETWORK.Datil, + litNetwork: (process.env.NEXT_PUBLIC_LIT_PROTOCOL_NETWORK as LIT_NETWORKS_KEYS) || LIT_NETWORK.Datil, debug: false, }); + const litCipherProvider = new LitProtocolCipherProvider( litNodeClient, { @@ -26,6 +36,7 @@ export function LitProvider({ onProviderReady }: LitProviderProps) { headers: {} }, ); + await litCipherProvider.initializeClient(); litProviderRef.current = litCipherProvider; onProviderReady(litCipherProvider); From 94c1330b438f6e569287b3a8b221fbabf8932f64 Mon Sep 17 00:00:00 2001 From: rodrigopavezi Date: Sat, 14 Dec 2024 05:25:36 -0300 Subject: [PATCH 18/28] test: node 20 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 528568f..f694c60 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '22' + node-version: '20' cache: 'npm' - name: System information From fd8b0787c9ad0975f6d10c69203517d65a61a6b4 Mon Sep 17 00:00:00 2001 From: rodrigopavezi Date: Sat, 14 Dec 2024 05:31:36 -0300 Subject: [PATCH 19/28] fix: revert --- .github/workflows/build.yml | 25 +++---------------------- next.config.js | 8 -------- 2 files changed, 3 insertions(+), 30 deletions(-) delete mode 100644 next.config.js diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f694c60..9522ffe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,32 +24,13 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '20' + node-version: '18' cache: 'npm' - - name: System information - run: | - free -h - df -h - node --version - npm --version - - name: Install dependencies - run: | - npm cache clean --force - npm ci --prefer-offline --no-audit --maxsockets 1 + run: npm ci - name: Build - run: | - # Clear any cached data - rm -rf .next - # Run build with increased heap size and additional flags - NEXT_TELEMETRY_DISABLED=1 node --trace-deprecation --max-old-space-size=8192 node_modules/.bin/next build + run: npm run build env: NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID }} - NODE_OPTIONS: "--max_old_space_size=8192 --no-warnings --expose-gc" - NEXT_TELEMETRY_DISABLED: "1" - NPM_CONFIG_PRODUCTION: "false" - NODE_ENV: "production" - CI: "true" - NEXT_TURBO: "1" diff --git a/next.config.js b/next.config.js deleted file mode 100644 index af33ccb..0000000 --- a/next.config.js +++ /dev/null @@ -1,8 +0,0 @@ -/** @type {import('next').NextConfig} */ -const nextConfig = { - experimental: { - optimizePackageImports: ['@lit-protocol/lit-node-client', '@requestnetwork/lit-protocol-cipher'], - }, -} - -module.exports = nextConfig \ No newline at end of file From 9e471d5ca1bcc2bcadeefeb3d59b056398050bd3 Mon Sep 17 00:00:00 2001 From: rodrigopavezi Date: Sat, 14 Dec 2024 08:37:44 -0300 Subject: [PATCH 20/28] fix: build by increasing memory for github actions --- .github/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9522ffe..2834ea8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,6 +17,9 @@ concurrency: jobs: build: runs-on: ubuntu-latest + container: + image: node:22 + options: --memory=4g steps: - name: Checkout uses: actions/checkout@v4 @@ -24,7 +27,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '18' + node-version: '22' cache: 'npm' - name: Install dependencies From e3f2045a149e0aeb584ad6fb2e3a960c97b572ee Mon Sep 17 00:00:00 2001 From: rodrigopavezi Date: Sat, 14 Dec 2024 08:41:16 -0300 Subject: [PATCH 21/28] fix: build --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2834ea8..5fda250 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest container: image: node:22 - options: --memory=4g + options: --memory=2g steps: - name: Checkout uses: actions/checkout@v4 From 6e3721239a5aa03a7bad7e19de477f98863a3d4f Mon Sep 17 00:00:00 2001 From: rodrigopavezi Date: Sat, 14 Dec 2024 08:42:56 -0300 Subject: [PATCH 22/28] fix: build --- .github/workflows/build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5fda250..e8ab0b1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest container: image: node:22 - options: --memory=2g + options: --memory=4g steps: - name: Checkout uses: actions/checkout@v4 @@ -37,3 +37,9 @@ jobs: run: npm run build env: NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID }} + NODE_OPTIONS: "--max_old_space_size=4096 --no-warnings --expose-gc" + NEXT_TELEMETRY_DISABLED: "1" + NPM_CONFIG_PRODUCTION: "false" + NODE_ENV: "production" + CI: "true" + NEXT_TURBO: "1" From c6b010bc86fc1955b054b23add74cacba249c348 Mon Sep 17 00:00:00 2001 From: rodrigopavezi Date: Sat, 14 Dec 2024 08:47:41 -0300 Subject: [PATCH 23/28] fix: build --- .github/workflows/build.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e8ab0b1..e862e13 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,5 +41,3 @@ jobs: NEXT_TELEMETRY_DISABLED: "1" NPM_CONFIG_PRODUCTION: "false" NODE_ENV: "production" - CI: "true" - NEXT_TURBO: "1" From b3df1329414223d76fa805658ff7139330c956a3 Mon Sep 17 00:00:00 2001 From: rodrigopavezi Date: Sat, 14 Dec 2024 09:39:45 -0300 Subject: [PATCH 24/28] fix: build --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e862e13..4201595 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,7 +34,9 @@ jobs: run: npm ci - name: Build - run: npm run build + run: | + ulimit -c unlimited + npm run build env: NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID }} NODE_OPTIONS: "--max_old_space_size=4096 --no-warnings --expose-gc" From 511d864661712435e9a52f87f203a39af0c93516 Mon Sep 17 00:00:00 2001 From: rodrigopavezi Date: Sat, 14 Dec 2024 09:43:24 -0300 Subject: [PATCH 25/28] fix: build --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4201595..2b92772 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -35,7 +35,7 @@ jobs: - name: Build run: | - ulimit -c unlimited + ulimit -S -c unlimited npm run build env: NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID }} From 61ab0f1b8114a54c46f696131737dd399db0d8bd Mon Sep 17 00:00:00 2001 From: rodrigopavezi Date: Sat, 14 Dec 2024 09:50:07 -0300 Subject: [PATCH 26/28] fix: build --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2b92772..7b4bf94 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,7 @@ jobs: build: runs-on: ubuntu-latest container: - image: node:22 + image: node:18 options: --memory=4g steps: - name: Checkout @@ -27,11 +27,11 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '22' + node-version: '18' cache: 'npm' - name: Install dependencies - run: npm ci + run: npm --no-optional - name: Build run: | From 1c0a7ee4aebc38bef57e33a93311d5871aa17a1c Mon Sep 17 00:00:00 2001 From: rodrigopavezi Date: Sat, 14 Dec 2024 09:52:06 -0300 Subject: [PATCH 27/28] fix: build --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7b4bf94..f51d5c6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,7 +31,7 @@ jobs: cache: 'npm' - name: Install dependencies - run: npm --no-optional + run: npm install --no-optional - name: Build run: | From f2bd82005d86389c6b79b062dc1828adfc0fe131 Mon Sep 17 00:00:00 2001 From: rodrigopavezi Date: Sat, 14 Dec 2024 09:53:49 -0300 Subject: [PATCH 28/28] fix: build --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f51d5c6..6f31089 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,7 +31,7 @@ jobs: cache: 'npm' - name: Install dependencies - run: npm install --no-optional + run: npm install --omit=optional - name: Build run: | @@ -39,7 +39,7 @@ jobs: npm run build env: NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID }} - NODE_OPTIONS: "--max_old_space_size=4096 --no-warnings --expose-gc" + NODE_OPTIONS: "--max_old_space_size=4096 --no-warnings" NEXT_TELEMETRY_DISABLED: "1" NPM_CONFIG_PRODUCTION: "false" NODE_ENV: "production"