fix: clientId
update
diff --git a/index.ts b/index.ts
index d792b32..a644c72 100644
--- a/index.ts
+++ b/index.ts
@@ -130,8 +130,8 @@ const main = async () => {
});
await localWallet.loadOrCreate({
- strategy: "mnemonic",
- encryption: false,
+ strategy: "encryptedJson",
+ password: "password",
});
const personalWalletAddress = await localWallet.getAddress();
@@ -143,8 +143,8 @@ const main = async () => {
chain,
gasless: true,
factoryAddress,
- thirdwebApiKey,
- paymasterAPI: new AllowlistPaymaster(allowList), // The Custom Paymaster API
+ clientId: "pk-0daa2929bd2c98c87cbe62029fd073e2422e77dac653670c",
+ // paymasterAPI: new AllowlistPaymaster(allowList), // The Custom Paymaster API
};
// Connect the smart wallet
diff --git a/package.json b/package.json
index 341e691..d007f1a 100644
--- a/package.json
+++ b/package.json
@@ -10,20 +10,16 @@
"author": "",
"license": "ISC",
"dependencies": {
+ "@account-abstraction/contracts": "^0.6.0",
"@account-abstraction/sdk": "^0.5.0",
+ "@openzeppelin/contracts": "^4.9.2",
"@thirdweb-dev/chains": "^0.1.11",
- "@thirdweb-dev/sdk": "0.0.0-dev-2067f33-20230609035419",
- "@thirdweb-dev/wallets": "0.0.0-dev-2067f33-20230609035419",
+ "@thirdweb-dev/sdk": "^3.10.59",
+ "@thirdweb-dev/wallets": "^1.1.23",
"dotenv": "^16.0.3",
- "ethers": "^5",
- "@account-abstraction/contracts": "^0.6.0",
- "@openzeppelin/contracts": "^4.9.2"
+ "ethers": "^5"
},
"devDependencies": {
- "@types/node": "^18.11.17",
- "ts-node": "^10.9.1",
- "typescript": "^4.9.4",
- "typechain": "^8.1.0",
"@nomicfoundation/hardhat-chai-matchers": "^1.0.0",
"@nomicfoundation/hardhat-network-helpers": "^1.0.0",
"@nomicfoundation/hardhat-toolbox": "^2.0.2",
@@ -33,10 +29,14 @@
"@typechain/hardhat": "^6.1.2",
"@types/chai": "^4.2.0",
"@types/mocha": ">=9.1.0",
+ "@types/node": "^18.11.17",
"chai": "^4.2.0",
"hardhat": "^2.16.1",
"hardhat-celo": "^0.0.4",
"hardhat-gas-reporter": "^1.0.8",
- "solidity-coverage": "^0.8.1"
+ "solidity-coverage": "^0.8.1",
+ "ts-node": "^10.9.1",
+ "typechain": "^8.1.0",
+ "typescript": "^4.9.4"
}
}
diff --git a/yarn.lock b/yarn.lock
index 6de8b9b..38415db 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -40,11 +40,6 @@
debug "^4.3.4"
ethers "^5.7.0"
-"@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/runtime@^7.12.5", "@babel/runtime@^7.17.2":
version "7.22.3"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.22.3.tgz#0a7fce51d43adbf0f7b517a71f4c3aaca92ebcbb"
@@ -52,6 +47,26 @@
dependencies:
regenerator-runtime "^0.13.11"
+"@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"
+
+"@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"
@@ -88,10 +103,10 @@
"@chainsafe/persistent-merkle-tree" "^0.4.2"
case "^1.6.3"
-"@coinbase/wallet-sdk@^3.6.3":
- version "3.6.6"
- resolved "https://registry.yarnpkg.com/@coinbase/wallet-sdk/-/wallet-sdk-3.6.6.tgz#4a0758fe0fe0ba3ed7e33b5bb6eb094ff8bd6c98"
- integrity sha512-vX+epj/Ttjo7XRwlr3TFUUfW5GTRMvORpERPwiu7z2jl3DSVL4rXLmHt5y6LDPlUVreas2gumdcFbu0fLRG9Jg==
+"@coinbase/wallet-sdk@^3.7.1":
+ version "3.7.1"
+ resolved "https://registry.yarnpkg.com/@coinbase/wallet-sdk/-/wallet-sdk-3.7.1.tgz#44b3b7a925ff5cc974e4cbf7a44199ffdcf03541"
+ integrity sha512-LjyoDCB+7p0waQXfK+fUgcAs3Ezk6S6e+LYaoFjpJ6c9VTop3NyZF40Pi7df4z7QJohCwzuIDjz0Rhtig6Y7Pg==
dependencies:
"@metamask/safe-event-emitter" "2.0.0"
"@solana/web3.js" "^1.70.1"
@@ -118,6 +133,37 @@
dependencies:
"@jridgewell/trace-mapping" "0.3.9"
+"@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.4.0":
version "2.6.5"
resolved "https://registry.yarnpkg.com/@ethereumjs/common/-/common-2.6.5.tgz#0a75a22a046272579d91919cb12d84f2756e8d30"
@@ -523,7 +569,7 @@
dependencies:
"@lit-labs/ssr-dom-shim" "^1.0.0"
-"@magic-ext/connect@^6.7.0":
+"@magic-ext/connect@^6.7.2":
version "6.7.2"
resolved "https://registry.yarnpkg.com/@magic-ext/connect/-/connect-6.7.2.tgz#9b479d2a3b0740e63915c7c7af461af5f3bfbf2a"
integrity sha512-b56mYYzgeXmRzZ8DgsUV6hFKFidaoRJvibUgcRwSuGElDdQxuhkz6FUyTLLS0zGbGdg4lfa7F1J/II1NrxA+lQ==
@@ -946,6 +992,26 @@
table "^6.8.0"
undici "^5.14.0"
+"@openzeppelin/contracts-upgradeable@4.7.3":
+ version "4.7.3"
+ resolved "https://registry.yarnpkg.com/@openzeppelin/contracts-upgradeable/-/contracts-upgradeable-4.7.3.tgz#f1d606e2827d409053f3e908ba4eb8adb1dd6995"
+ integrity sha512-+wuegAMaLcZnLCJIvrVUDzA9z/Wp93f0Dla/4jJvIhijRrPabjQbZe6fWiECLaJyfn5ci9fqf9vTw3xpQOad2A==
+
+"@openzeppelin/contracts-upgradeable@^4.4.2", "@openzeppelin/contracts-upgradeable@^4.7.3":
+ version "4.9.3"
+ resolved "https://registry.yarnpkg.com/@openzeppelin/contracts-upgradeable/-/contracts-upgradeable-4.9.3.tgz#ff17a80fb945f5102571f8efecb5ce5915cc4811"
+ integrity sha512-jjaHAVRMrE4UuZNfDwjlLGDxTHWIOwTJS2ldnc278a0gevfXfPr8hxKEVBGFBE96kl2G3VHDZhUimw/+G3TG2A==
+
+"@openzeppelin/contracts-v0.7@npm:@openzeppelin/contracts@v3.4.2":
+ version "3.4.2"
[... diff too long, it was truncated ...]
GitHub
sha: 393708e9218b2597976a6d4d40fe8f4f91c2f381