diff --git a/package.json b/package.json index 2cc66d2a6..926367699 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "@openzeppelin/contracts-upgradeable": "4.7.3", "@thirdweb-dev/chains": "^0.1.54", "@thirdweb-dev/dynamic-contracts": "^1.1.2", - "@thirdweb-dev/sdk": "^4.0.4", + "@thirdweb-dev/sdk": "^4.0.14", "@typechain/ethers-v5": "^10.0.0", "@types/fs-extra": "^9.0.13", "@types/mocha": "^9.1.0", diff --git a/yarn.lock b/yarn.lock index 747387e47..411d3d212 100644 --- a/yarn.lock +++ b/yarn.lock @@ -452,6 +452,11 @@ resolved "https://registry.yarnpkg.com/@multiformats/base-x/-/base-x-4.0.1.tgz#95ff0fa58711789d53aefb2590a8b7a4e715d121" integrity sha512-eMk0b9ReBbV23xXU693TAIrLyeO5iTgBZGSJfpqriG8UkYvr/hC9u9pyMlAakDNHWmbhMZCDs6KQO0jzKD8OTw== +"@noble/hashes@^1.3.2": + version "1.3.2" + resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.3.2.tgz#6f26dbc8fbc7205873ce3cee2f690eba0d421b39" + integrity sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ== + "@nodelib/fs.scandir@2.1.5": version "2.1.5" resolved "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz" @@ -515,7 +520,12 @@ dependencies: antlr4ts "^0.5.0-alpha.4" -"@thirdweb-dev/chains@0.1.54", "@thirdweb-dev/chains@^0.1.54": +"@thirdweb-dev/chains@0.1.58": + version "0.1.58" + resolved "https://registry.yarnpkg.com/@thirdweb-dev/chains/-/chains-0.1.58.tgz#5a26fe187ef39b7c6af87972166785d110cad53e" + integrity sha512-prSShAWoLODuZQcDBwNDqcXLzfevV2BOw54cDaHetSP+Sw/BP6SaPKIxojRQGsXARjn0JMWniG/NCtppUUHALQ== + +"@thirdweb-dev/chains@^0.1.54": version "0.1.54" resolved "https://registry.yarnpkg.com/@thirdweb-dev/chains/-/chains-0.1.54.tgz#90e5c372a1d9cd785c51715bfbeba276ca2a203f" integrity sha512-iCuKgtN2KIdfgqbIbZYgB8ObYdOJW9iXW9b5u+WKA4zyGApw1MTOSX0W2aPnadGen1z4iQfAuUDBYQ6JVqDOjg== @@ -538,6 +548,14 @@ "@thirdweb-dev/dynamic-contracts" "^1.1.2" erc721a-upgradeable "^3.3.0" +"@thirdweb-dev/crypto@0.2.0": + version "0.2.0" + resolved "https://registry.yarnpkg.com/@thirdweb-dev/crypto/-/crypto-0.2.0.tgz#ad629854107b58647101fc6f3d2bbe619ae34424" + integrity sha512-hQwSCL/imqSCcnUXlGqJi6dfs4UOcJ91Eq/t1cPXyAb6nwvyaePZPVFqGDglZMQvkS/NWZhifXZINRiCfazn2w== + dependencies: + "@noble/hashes" "^1.3.2" + js-sha3 "^0.9.2" + "@thirdweb-dev/dynamic-contracts@^1.1.2": version "1.2.1" resolved "https://registry.yarnpkg.com/@thirdweb-dev/dynamic-contracts/-/dynamic-contracts-1.2.1.tgz#7b677d3f46469e8b30600e090482bebda3241102" @@ -548,33 +566,45 @@ resolved "https://registry.yarnpkg.com/@thirdweb-dev/generated-abis/-/generated-abis-0.0.1.tgz#0d788d6aff0ac08f11e9eeb9ae4c8321845272a8" integrity sha512-vO9/3lSLO8smyyH1QVeYravSTzFwV1nf1C/Im1NBDPdH8//YvcbhtETGGiNfHWpyCvSi0vRYwvf+/7FKdwpDGQ== -"@thirdweb-dev/sdk@^4.0.4": - version "4.0.4" - resolved "https://registry.yarnpkg.com/@thirdweb-dev/sdk/-/sdk-4.0.4.tgz#bcc5c4a0b349fbf1255727444a77947c7264f591" - integrity sha512-iLHP44L2h4UG2u/DKNoSA4Os21d3Wm5Sc+PEOxF5+FLr+kkQe0dSVFq4w//r7t6sQIuA1nRTZEEObrdU1EtfLA== +"@thirdweb-dev/merkletree@0.2.0": + version "0.2.0" + resolved "https://registry.yarnpkg.com/@thirdweb-dev/merkletree/-/merkletree-0.2.0.tgz#b1f7275bd54b499bb0c98863692e77b146308eb4" + integrity sha512-4KoH2EOCWKiaHfhDO5Tnf1HjeCXKVfLt31y0kcSG5C0gCldnhm7i1fGUB8e0hW3trfyPQAuSgyP67Ep3UwzClg== + dependencies: + "@thirdweb-dev/crypto" "0.2.0" + buffer "^6.0.3" + buffer-reverse "^1.0.1" + treeify "^1.1.0" + +"@thirdweb-dev/sdk@^4.0.14": + version "4.0.14" + resolved "https://registry.yarnpkg.com/@thirdweb-dev/sdk/-/sdk-4.0.14.tgz#48cbea22d17f11fceb629adfe78a9930f949f643" + integrity sha512-gYMwNFw/LWZVBKGXMGstTV16t0d+p0mSE+7sCUua+iXvloGzcFR5hzy2QIk7p8SQi7Mkq7m49VI/K49SCi2wvQ== dependencies: - "@thirdweb-dev/chains" "0.1.54" + "@thirdweb-dev/chains" "0.1.58" "@thirdweb-dev/contracts-js" "1.3.16" + "@thirdweb-dev/crypto" "0.2.0" "@thirdweb-dev/generated-abis" "0.0.1" - "@thirdweb-dev/storage" "2.0.0" + "@thirdweb-dev/merkletree" "0.2.0" + "@thirdweb-dev/storage" "2.0.5" abitype "^0.2.5" bn.js "^5.2.1" bs58 "^5.0.0" buffer "^6.0.3" eventemitter3 "^5.0.1" fast-deep-equal "^3.1.3" - merkletreejs "^0.2.24" tiny-invariant "^1.2.0" tweetnacl "^1.0.3" uuid "^9.0.1" yaml "^2.3.1" zod "^3.22.3" -"@thirdweb-dev/storage@2.0.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@thirdweb-dev/storage/-/storage-2.0.0.tgz#b3e4a34bcbcdd3b2ce3171af76d69a56993e7fa0" - integrity sha512-pfTbiwgrp2N2lrTfa8nLt5E9V1+IGtYKtKU82ReOKKYkRTi0qkqI5ydNuzM2VUcwIyyPnlRR/W7NloHyyBW5/Q== +"@thirdweb-dev/storage@2.0.5": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@thirdweb-dev/storage/-/storage-2.0.5.tgz#e492923ca0037db7cd8f30572333a3bb2f67639e" + integrity sha512-I3DK/ZNWOMa/XE2hfJnGKVfc9INn5c3if1qavyK/1fjJBxhUiUXjT59UYbuoWhHLEq0rS/QZVOGS/9qcOs/DAQ== dependencies: + "@thirdweb-dev/crypto" "0.2.0" cid-tool "^3.0.0" form-data "^4.0.0" uuid "^9.0.1" @@ -2348,6 +2378,11 @@ js-sha3@0.8.0, js-sha3@^0.8.0: resolved "https://registry.yarnpkg.com/js-sha3/-/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840" integrity sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q== +js-sha3@^0.9.2: + version "0.9.2" + resolved "https://registry.yarnpkg.com/js-sha3/-/js-sha3-0.9.2.tgz#a5ba3967ddf5a095f7b3389ef14a6297b10d6409" + integrity sha512-8kgvwd03wNGQG1GRvl3yy1Yt40sICAcIMsDU2ZLgoL0Z6z9rkRmf9Vd+bi/gYSzgAqMUGl/jiDKu0J8AWFd+BQ== + js-tokens@^4.0.0: version "4.0.0" resolved "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz" @@ -2516,17 +2551,6 @@ merge2@^1.3.0, merge2@^1.4.1: resolved "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz" integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== -merkletreejs@^0.2.24: - version "0.2.32" - resolved "https://registry.yarnpkg.com/merkletreejs/-/merkletreejs-0.2.32.tgz#cf1c0760e2904e4a1cc269108d6009459fd06223" - integrity sha512-TostQBiwYRIwSE5++jGmacu3ODcKAgqb0Y/pnIohXS7sWxh1gCkSptbmF1a43faehRDpcHf7J/kv0Ml2D/zblQ== - dependencies: - bignumber.js "^9.0.1" - buffer-reverse "^1.0.1" - crypto-js "^3.1.9-1" - treeify "^1.1.0" - web3-utils "^1.3.4" - merkletreejs@^0.2.31: version "0.2.31" resolved "https://registry.npmjs.org/merkletreejs/-/merkletreejs-0.2.31.tgz"