From 63528042c79eb81c7c8ca2aea3cc806ce831865c Mon Sep 17 00:00:00 2001 From: Bayological <6872903+bayological@users.noreply.github.com> Date: Mon, 3 Jun 2024 14:14:51 +0100 Subject: [PATCH 1/2] feat: use latest sdk version --- package.json | 2 +- pnpm-lock.yaml | 23 +++++++---------------- 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index 6430b6ac..95d2cf12 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "@headlessui/react": "^1.7.18", "@hookform/resolvers": "^3.3.2", "@mdxeditor/editor": "^1.11.2", - "@mento-protocol/mento-sdk": "0.2.7", + "@mento-protocol/mento-sdk": "0.2.8", "@radix-ui/react-slider": "^1.1.2", "@radix-ui/react-scroll-area": "^1.0.5", "@rainbow-me/rainbowkit": "^2.0.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 40cda9a6..60b5925c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -24,8 +24,8 @@ importers: specifier: ^1.11.2 version: 1.14.3(@codemirror/language@6.10.1)(@lezer/common@1.2.1)(@lezer/highlight@1.2.0)(@types/react-dom@18.2.22)(@types/react@18.2.65)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(yjs@13.6.14) '@mento-protocol/mento-sdk': - specifier: 0.2.7 - version: 0.2.7(ethers@5.7.2(bufferutil@4.0.8)) + specifier: 0.2.8 + version: 0.2.8(ethers@5.7.2(bufferutil@4.0.8)) '@radix-ui/react-scroll-area': specifier: ^1.0.5 version: 1.0.5(@types/react-dom@18.2.22)(@types/react@18.2.65)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) @@ -1876,8 +1876,8 @@ packages: '@mento-protocol/mento-core-ts@0.2.2': resolution: {integrity: sha512-jrJdglXnTecveV0AUp9qoENXL0c7x/deNp4Abkyy7Flm0ChhyGd7qWd7W5djDIYpnPM5xzeQnsGg2b8jyNf2Xw==} - '@mento-protocol/mento-sdk@0.2.7': - resolution: {integrity: sha512-E3mWqwuDadRHM6XEq5AY7lXYoK+WjvOu86we0CXzF7F3T7RV5MXhpqNqsOJCyb44C1ybO44e8BIcqZ1HsnBvMA==} + '@mento-protocol/mento-sdk@0.2.8': + resolution: {integrity: sha512-/J/G6rFDUccBTI1YMHqk/y+ykxk1fziL8KbI7aqtsomWep066pWN5zCKqChfimnMJl8SBycZ9RI6G74paCMFug==} engines: {node: '>=14'} peerDependencies: ethers: ^5.7 @@ -6951,6 +6951,7 @@ packages: rimraf@2.6.3: resolution: {integrity: sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==} + deprecated: Rimraf versions prior to v4 are no longer supported hasBin: true rimraf@3.0.2: @@ -10775,7 +10776,7 @@ snapshots: '@mento-protocol/mento-core-ts@0.2.2': {} - '@mento-protocol/mento-sdk@0.2.7(ethers@5.7.2(bufferutil@4.0.8))': + '@mento-protocol/mento-sdk@0.2.8(ethers@5.7.2(bufferutil@4.0.8))': dependencies: '@mento-protocol/mento-core-ts': 0.2.2 ethers: 5.7.2(bufferutil@4.0.8) @@ -14114,16 +14115,6 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-module-utils@2.8.1(@typescript-eslint/parser@7.6.0(eslint@8.57.0)(typescript@5.4.2))(eslint-import-resolver-node@0.3.9)(eslint@8.57.0): - dependencies: - debug: 3.2.7 - optionalDependencies: - '@typescript-eslint/parser': 7.6.0(eslint@8.57.0)(typescript@5.4.2) - eslint: 8.57.0 - eslint-import-resolver-node: 0.3.9 - transitivePeerDependencies: - - supports-color - eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.6.0(eslint@8.57.0)(typescript@5.4.2))(eslint@8.57.0): dependencies: array-includes: 3.1.7 @@ -14134,7 +14125,7 @@ snapshots: doctrine: 2.1.0 eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.8.1(@typescript-eslint/parser@7.6.0(eslint@8.57.0)(typescript@5.4.2))(eslint-import-resolver-node@0.3.9)(eslint@8.57.0) + eslint-module-utils: 2.8.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.2))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1)(eslint@8.57.0))(eslint@8.57.0) hasown: 2.0.2 is-core-module: 2.13.1 is-glob: 4.0.3 From 7c1370fbc2f18ed6e826b8cd093de827ccfe81e7 Mon Sep 17 00:00:00 2001 From: Bayological <6872903+bayological@users.noreply.github.com> Date: Mon, 3 Jun 2024 14:15:11 +0100 Subject: [PATCH 2/2] feat: add mainnet subgraph --- .env | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.env b/.env index 41d7d1b8..45a49705 100644 --- a/.env +++ b/.env @@ -1,8 +1,7 @@ NEXT_PUBLIC_CELO_EXPLORER_API_URL=https://explorer.celo.org/mainnet/graphiql NEXT_PUBLIC_CELO_EXPLORER_API_URL_ALFAJORES=https://explorer.celo.org/alfajores/graphiql - -# TODO: Replace next line with the mainnet subgraph URL once it's deployed -NEXT_PUBLIC_SUBGRAPH_URL=https://api.studio.thegraph.com/query/67235/mento-alfajores/version/latest + +NEXT_PUBLIC_SUBGRAPH_URL=https://api.studio.thegraph.com/query/67235/mento-celo/version/latest NEXT_PUBLIC_SUBGRAPH_URL_ALFAJORES=https://api.studio.thegraph.com/query/67235/mento-alfajores/version/latest NEXT_PUBLIC_WALLET_CONNECT_ID=f6fc31fb4c4e660595895d3cca81d304