fix: clientId
update
diff --git a/packages/react-app/package.json b/packages/react-app/package.json
index d162134..cd1b5e6 100644
--- a/packages/react-app/package.json
+++ b/packages/react-app/package.json
@@ -15,9 +15,10 @@
"@headlessui/react": "^1.7.14",
"@heroicons/react": "^2.0.18",
"@rainbow-me/rainbowkit": "^1.0.2",
- "@thirdweb-dev/chains": "^0.1.27",
- "@thirdweb-dev/react": "^3.14.8",
- "@thirdweb-dev/sdk": "^3.10.28",
+ "@tanstack/react-query": "^4.35.0",
+ "@thirdweb-dev/chains": "^0.2.0-nightly-f5aed34d-20230829001006",
+ "@thirdweb-dev/react": "^3.14.40",
+ "@thirdweb-dev/sdk": "^3.10.59",
"axios": "^1.4.0",
"ethers": "^5.7.2",
"next": "^13.4.2",
diff --git a/packages/react-app/pages/_app.tsx b/packages/react-app/pages/_app.tsx
index 51c29ec..8d9f547 100644
--- a/packages/react-app/pages/_app.tsx
+++ b/packages/react-app/pages/_app.tsx
@@ -12,6 +12,7 @@ import { PaymasterAPI } from "@account-abstraction/sdk";
import { UserOperationStruct } from "@account-abstraction/contracts";
import axios from "axios";
import { Toaster } from "react-hot-toast";
+import { QueryClient } from "@tanstack/react-query";
const projectId = process.env.NEXT_PUBLIC_WC_PROJECT_ID as string; // get one at https://cloud.walletconnect.com/app
@@ -35,10 +36,14 @@ class AllowlistPaymasterAPI extends PaymasterAPI {
}
function App({ Component, pageProps }: AppProps) {
+ const queryClient = new QueryClient();
+
return (
<ThirdwebProvider
activeChain={activeChain}
supportedChains={[CeloAlfajoresTestnet]}
+ clientId={process.env.NEXT_PUBLIC_THIRDWEB_API_KEY}
+ queryClient={queryClient}
// Define that we only want to support Account Abstraction wallets aka Smart Wallets
supportedWallets={[
smartWallet({
@@ -51,8 +56,7 @@ function App({ Component, pageProps }: AppProps) {
gasless: true,
// API Key from the thirdweb dashboard. (You'll want to keep yours a secret)
- thirdwebApiKey: process.env
- .NEXT_PUBLIC_THIRDWEB_API_KEY as string,
+
personalWallets: [
walletConnect({
projectId,
diff --git a/packages/react-app/pages/index.tsx b/packages/react-app/pages/index.tsx
index 211c2a8..83fdddb 100644
--- a/packages/react-app/pages/index.tsx
+++ b/packages/react-app/pages/index.tsx
@@ -49,7 +49,7 @@ export default function Home() {
action={(contract) =>
// Call the "mintTo" function with the following metadata.
// Metadata is uploaded to IPFS and pinned before the transaction is sent.
- contract.erc721.claim(10)
+ contract.erc721.claim(1)
}
onSuccess={(result) => {
toast.success("NFT Minted!");
diff --git a/yarn.lock b/yarn.lock
index bd931fe..4c7d83f 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -83,11 +83,6 @@
resolved "https://registry.yarnpkg.com/@alloc/quick-lru/-/quick-lru-5.2.0.tgz#7bf68b20c0a350f936915fcae06f58e32007ce30"
integrity sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==
-"@assemblyscript/loader@^0.9.4":
- version "0.9.4"
- resolved "https://registry.yarnpkg.com/@assemblyscript/loader/-/loader-0.9.4.tgz#a483c54c1253656bb33babd464e3154a173e1577"
- integrity sha512-HazVq9zwTVwGmqdwYzu7WyQ6FQVZ7SwET0KKQuKm55jD0IfUpZgN0OPIiZG3zV1iSrVYcN0bdwLRXI/VNCYsUA==
-
"@babel/code-frame@^7.0.0":
version "7.22.5"
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.22.5.tgz#234d98e1551960604f1246e6475891a570ad5658"
@@ -137,6 +132,16 @@
"@babel/helper-validator-identifier" "^7.22.5"
to-fast-properties "^2.0.0"
+"@blocto/sdk@^0.5.4":
+ version "0.5.5"
+ resolved "https://registry.yarnpkg.com/@blocto/sdk/-/sdk-0.5.5.tgz#807b9eaeee924c3eb0c5517c6b32891025f1f6b0"
+ integrity sha512-u7bbAYmYDCf0QWvXleVOTeGFRbo8evT3uacsLJ6dv01HspmLDKZWjFyu7i3ARebJTpenHvwM78XHV7KTvBqTRg==
+ dependencies:
+ bs58 "^5.0.0"
+ buffer "^6.0.3"
+ eip1193-provider "^1.0.1"
+ js-sha3 "^0.8.0"
+
"@celo/base@1.5.2":
version "1.5.2"
resolved "https://registry.yarnpkg.com/@celo/base/-/base-1.5.2.tgz#168ab5e4e30b374079d8d139fafc52ca6bfd4100"
@@ -245,6 +250,16 @@
eth-lib "^0.2.8"
ethereumjs-util "^5.2.0"
+"@chainlink/contracts@^0.6.1":
+ version "0.6.1"
+ resolved "https://registry.yarnpkg.com/@chainlink/contracts/-/contracts-0.6.1.tgz#8842b57e755793cbdbcbc45277fb5d179c993e19"
+ integrity sha512-EuwijGexttw0UjfrW+HygwhQIrGAbqpf1ue28R55HhWMHBzphEH0PhWm8DQmFfj5OZNy8Io66N4L0nStkZ3QKQ==
+ dependencies:
+ "@eth-optimism/contracts" "^0.5.21"
+ "@openzeppelin/contracts" "~4.3.3"
+ "@openzeppelin/contracts-upgradeable" "^4.7.3"
+ "@openzeppelin/contracts-v0.7" "npm:@openzeppelin/contracts@v3.4.2"
+
"@chainsafe/as-sha256@^0.3.1":
version "0.3.1"
resolved "https://registry.yarnpkg.com/@chainsafe/as-sha256/-/as-sha256-0.3.1.tgz#3639df0e1435cab03f4d9870cc3ac079e57a6fc9"
@@ -455,6 +470,37 @@
resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.44.0.tgz#961a5903c74139390478bdc808bcde3fc45ab7af"
integrity sha512-Ag+9YM4ocKQx9AarydN0KY2j0ErMHNIocPDrVo8zAE44xLTjEtz81OdR68/cydGtk6m6jDb5Za3r2useMzYmSw==
+"@eth-optimism/contracts@^0.5.21":
+ version "0.5.40"
+ resolved "https://registry.yarnpkg.com/@eth-optimism/contracts/-/contracts-0.5.40.tgz#d13a04a15ea947a69055e6fc74d87e215d4c936a"
+ integrity sha512-MrzV0nvsymfO/fursTB7m/KunkPsCndltVgfdHaT1Aj5Vi6R/doKIGGkOofHX+8B6VMZpuZosKCMQ5lQuqjt8w==
+ dependencies:
+ "@eth-optimism/core-utils" "0.12.0"
+ "@ethersproject/abstract-provider" "^5.7.0"
+ "@ethersproject/abstract-signer" "^5.7.0"
+
+"@eth-optimism/core-utils@0.12.0":
+ version "0.12.0"
+ resolved "https://registry.yarnpkg.com/@eth-optimism/core-utils/-/core-utils-0.12.0.tgz#6337e4599a34de23f8eceb20378de2a2de82b0ea"
+ integrity sha512-qW+7LZYCz7i8dRa7SRlUKIo1VBU8lvN0HeXCxJR+z+xtMzMQpPds20XJNCMclszxYQHkXY00fOT6GvFw9ZL6nw==
+ dependencies:
+ "@ethersproject/abi" "^5.7.0"
+ "@ethersproject/abstract-provider" "^5.7.0"
+ "@ethersproject/address" "^5.7.0"
+ "@ethersproject/bignumber" "^5.7.0"
+ "@ethersproject/bytes" "^5.7.0"
+ "@ethersproject/constants" "^5.7.0"
+ "@ethersproject/contracts" "^5.7.0"
+ "@ethersproject/hash" "^5.7.0"
+ "@ethersproject/keccak256" "^5.7.0"
+ "@ethersproject/properties" "^5.7.0"
+ "@ethersproject/providers" "^5.7.0"
+ "@ethersproject/rlp" "^5.7.0"
+ "@ethersproject/transactions" "^5.7.0"
+ "@ethersproject/web" "^5.7.0"
+ bufio "^1.0.7"
+ chai "^4.3.4"
+
"@ethereumjs/common@2.5.0":
version "2.5.0"
resolved "https://registry.yarnpkg.com/@ethereumjs/common/-/common-2.5.0.tgz#ec61551b31bef7a69d1dc634d8932468866a4268"
@@ -952,6 +998,31 @@
"@jridgewell/resolve-uri" "3.1.0"
"@jridgewell/sourcemap-codec" "1.4.14"
+"@json-rpc-tools/provider@^1.5.5":
+ version "1.7.6"
+ resolved "https://registry.yarnpkg.com/@json-rpc-tools/provider/-/provider-1.7.6.tgz#8a17c34c493fa892632e278fd9331104e8491ec6"
+ integrity sha512-z7D3xvJ33UfCGv77n40lbzOYjZKVM3k2+5cV7xS8G6SCvKTzMkhkUYuD/qzQUNT4cG/lv0e9mRToweEEVLVVmA==
+ dependencies:
+ "@json-rpc-tools/utils" "^1.7.6"
+ axios "^0.21.0"
+ safe-json-utils "^1.1.1"
+ ws "^7.4.0"
+
+"@json-rpc-tools/types@^1.7.6":
+ version "1.7.6"
+ resolved "https://registry.yarnpkg.com/@json-rpc-tools/types/-/types-1.7.6.tgz#5abd5fde01364a130c46093b501715bcce5bdc0e"
+ integrity sha512-nDSqmyRNEqEK9TZHtM15uNnDljczhCUdBmRhpNZ95bIPKEDQ+nTDmGMFd2lLin3upc5h2VVVd9tkTDdbXUhDIQ==
+ dependencies:
+ keyvaluestorage-interface "^1.0.0"
+
+"@json-rpc-tools/utils@^1.7.6":
+ version "1.7.6"
[... diff too long, it was truncated ...]
GitHub
sha: be6b881dd345a50e87a73aaea1abf127d5a6a1aa