diff --git a/package.json b/package.json index 209283a2..2da0f56b 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "license": "Apache-2.0", "prettier": "@valora/prettier-config", "devDependencies": { - "@celo/contractkit": "^7.2.0", + "@celo/contractkit": "^10.0.3", "@types/jest": "^30.0.0", "@types/node": "^17.0.45", "@typescript-eslint/eslint-plugin": "^7.18.0", @@ -47,7 +47,7 @@ "dependencies": { "@celo/base": "^7.0.4", "@celo/identity": "^5.1.2", - "@celo/utils": "^7.0.0", + "@celo/utils": "^8.0.3", "@masa-finance/masa-sdk": "^4.7.4", "ethers": "^5.8.0", "viem": "^2.24.3" diff --git a/yarn.lock b/yarn.lock index 5bccee5b..4680e627 100644 --- a/yarn.lock +++ b/yarn.lock @@ -321,12 +321,17 @@ resolved "https://registry.yarnpkg.com/@celo/abis/-/abis-11.0.0.tgz#7f96b6142498662fdf36427afc8a4539c6db50e4" integrity sha512-rPjHQxHbWaKQU3MX6hE3A3xRkBFBphjFvfCs4t+19dqPPys6Q+cneHmRWGBX4NLiBh5BLZcNZjQoMf2jxRLMpg== -"@celo/base@^6.0.0", "@celo/base@^6.0.1", "@celo/base@^6.1.0": +"@celo/abis@13.0.0-post-audit.0": + version "13.0.0-post-audit.0" + resolved "https://registry.yarnpkg.com/@celo/abis/-/abis-13.0.0-post-audit.0.tgz#91b6c96f028b8c2dd51cb3d186c74f59d914f57a" + integrity sha512-kng2Dnx2pRUlCF1Ri71wfaJ/PnRkbVpwhTVOaIAEMDUwZ/WIiEXqRHddJupynXgLA9Sj2LkA+NXL83hSjRzcqg== + +"@celo/base@^6.0.0", "@celo/base@^6.0.1": version "6.1.0" resolved "https://registry.yarnpkg.com/@celo/base/-/base-6.1.0.tgz#58a7a7cfb5d47bc9e680fe2e0eee58c234cb570b" integrity sha512-R6ko2QCfEU32akBsaSNsDYduktgwIKHcJ61SbR7EsXA1VE31/44Qh8kMzfgeahyk375DUCe3pJIKwx5zg1tFHg== -"@celo/base@^7.0.4": +"@celo/base@^7.0.3", "@celo/base@^7.0.4": version "7.0.4" resolved "https://registry.yarnpkg.com/@celo/base/-/base-7.0.4.tgz#92b8c1ebf81a8500918458fcd5b0d0d9d77a00a1" integrity sha512-LUWVdqchXVKlp9h4Kh190wKE6DDy+zAREfVbKBIH/AWvrGv3EWQSUSDj3C8vrZjJ5wiCGt/ws+5+39Iao/W02Q== @@ -348,7 +353,43 @@ web3-eth "1.10.4" web3-eth-contract "1.10.4" -"@celo/contractkit@^7.1.0", "@celo/contractkit@^7.2.0": +"@celo/connect@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@celo/connect/-/connect-7.0.0.tgz#66d3a5b05991e95a0a76593efe9ce8e2c4f3ab88" + integrity sha512-c3Sd9algr28LnUmPE4EMMuuXz6WFKN7HtLuZ0gnXOcGqBI0FOJW06J+IHZTQUSMXNRIzmQDSgaD8+9iAFlMucQ== + dependencies: + "@celo/base" "^7.0.3" + "@celo/utils" "^8.0.3" + "@ethereumjs/util" "8.0.5" + "@types/debug" "^4.1.5" + "@types/utf8" "^2.1.6" + bignumber.js "^9.0.0" + debug "^4.1.1" + utf8 "3.0.0" + web3-core "1.10.4" + web3-eth "1.10.4" + web3-eth-contract "1.10.4" + +"@celo/contractkit@^10.0.3": + version "10.0.3" + resolved "https://registry.yarnpkg.com/@celo/contractkit/-/contractkit-10.0.3.tgz#e51efb4abad5c91e1a43bdba2bd7eb456d19adf4" + integrity sha512-cR6k83/mlB+zYNbonuGbRKQX2pC33jKACIlxyaShgCBJEKKyH7wy/odHh0RpLQif8kBdTeGTGbo2qDFJKVE5UA== + dependencies: + "@celo/abis" "13.0.0-post-audit.0" + "@celo/base" "^7.0.4" + "@celo/connect" "^7.0.0" + "@celo/utils" "^8.0.3" + "@celo/wallet-local" "^8.0.1" + "@types/bn.js" "^5.1.0" + "@types/debug" "^4.1.5" + bignumber.js "^9.0.0" + debug "^4.1.1" + fp-ts "2.16.9" + semver "^7.7.2" + web3 "1.10.4" + web3-core-helpers "1.10.4" + +"@celo/contractkit@^7.1.0": version "7.2.0" resolved "https://registry.yarnpkg.com/@celo/contractkit/-/contractkit-7.2.0.tgz#2502c78ce3214d8e753de7b0575c453e3e28d87f" integrity sha512-gUQQb3cJ0EO3XvLrX8UxWMH2dBQagBdmMrQFkfhBcgezMU2dhuFcnfpJ2dIwmuSiqFOuNezKb0v6cyHIUtw2sg== @@ -433,21 +474,21 @@ web3-eth-abi "1.10.4" web3-utils "1.10.4" -"@celo/utils@^7.0.0": - version "7.0.0" - resolved "https://registry.yarnpkg.com/@celo/utils/-/utils-7.0.0.tgz#76bf2576d74daf43ec3801fe45cf78b8e6eacff1" - integrity sha512-oxAMm19lMs3myhHt2BpuWm01mxZ9ZD73uydQFdgeVj5cNVRKumzMGSEfb0qCQ2hiCHL15R/lCtBqqiRy0wD1LA== +"@celo/utils@^8.0.3": + version "8.0.3" + resolved "https://registry.yarnpkg.com/@celo/utils/-/utils-8.0.3.tgz#918e5fc32668e6174da49f5f87fea7cda671332e" + integrity sha512-eHXSqRGWzXLGnfqq4eq37JAUnalqX5EIhlXyqSmxtIxc0Shkzlq7hrMpxI4diUS/T2zCcs9OQtr2ihjGxzqtqA== dependencies: - "@celo/base" "^6.1.0" + "@celo/base" "^7.0.3" "@ethereumjs/rlp" "^5.0.2" "@ethereumjs/util" "8.0.5" - "@noble/ciphers" "0.4.1" + "@noble/ciphers" "1.1.3" "@noble/curves" "1.3.0" "@noble/hashes" "1.3.3" "@types/bn.js" "^5.1.0" "@types/node" "^18.7.16" bignumber.js "^9.0.0" - fp-ts "2.1.1" + fp-ts "2.16.9" io-ts "2.0.1" web3-eth-abi "1.10.4" web3-utils "1.10.4" @@ -470,6 +511,23 @@ web3 "1.10.4" web3-eth-accounts "1.10.4" +"@celo/wallet-base@^8.0.3": + version "8.0.3" + resolved "https://registry.yarnpkg.com/@celo/wallet-base/-/wallet-base-8.0.3.tgz#acab0f639c77833258644ca7001c26ed31785f48" + integrity sha512-jFAImANzDaliOIBMeivh0DR4UwlU928HTXicz9eUJ/5vu0bmypOFk5IaAnKqQ23K0Gw2gt1BI4JHn+iu9TicJQ== + dependencies: + "@celo/base" "^7.0.3" + "@celo/connect" "^7.0.0" + "@celo/utils" "^8.0.3" + "@ethereumjs/rlp" "^5.0.2" + "@ethereumjs/util" "8.0.5" + "@noble/curves" "^1.3.0" + "@noble/hashes" "^1.3.3" + "@types/debug" "^4.1.5" + bignumber.js "^9.0.0" + debug "^4.1.1" + web3 "1.10.4" + "@celo/wallet-local@^5.1.3": version "5.2.0" resolved "https://registry.yarnpkg.com/@celo/wallet-local/-/wallet-local-5.2.0.tgz#3d56b359bc34838ce692514c5da490d4676b6819" @@ -481,6 +539,17 @@ "@ethereumjs/util" "8.0.5" eth-lib "^0.2.8" +"@celo/wallet-local@^8.0.1": + version "8.0.3" + resolved "https://registry.yarnpkg.com/@celo/wallet-local/-/wallet-local-8.0.3.tgz#21edf8fd1fb722892d96a8fff72986df1988099a" + integrity sha512-Ngo6fwUDmtQUuzFbgBOEmwkMP0DFVw/jQYPKRJLcvBYybjnKUOqSulHsyPAX5RmmjcemXMgrluktI6hj1LmCqQ== + dependencies: + "@celo/base" "^7.0.3" + "@celo/connect" "^7.0.0" + "@celo/utils" "^8.0.3" + "@celo/wallet-base" "^8.0.3" + "@ethereumjs/util" "8.0.5" + "@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" @@ -1742,10 +1811,10 @@ "@emnapi/runtime" "^1.4.3" "@tybys/wasm-util" "^0.9.0" -"@noble/ciphers@0.4.1": - version "0.4.1" - resolved "https://registry.yarnpkg.com/@noble/ciphers/-/ciphers-0.4.1.tgz#977fc35f563a4ca315ebbc4cbb1f9b670bd54456" - integrity sha512-QCOA9cgf3Rc33owG0AYBB9wszz+Ul2kramWN8tXG44Gyciud/tbkEqvxRF/IpqQaBpRBNi9f4jdNxqB2CQCIXg== +"@noble/ciphers@1.1.3": + version "1.1.3" + resolved "https://registry.yarnpkg.com/@noble/ciphers/-/ciphers-1.1.3.tgz#eb27085aa7ce94d8c6eaeb64299bab0589920ec1" + integrity sha512-Ygv6WnWJHLLiW4fnNDC1z+i13bud+enXOFRBlpxI+NJliPWx5wdR+oWlTjLuBPTqjUjtHXtjkU6w3kuuH6upZA== "@noble/ciphers@^1.3.0": version "1.3.0" @@ -1766,7 +1835,7 @@ dependencies: "@noble/hashes" "1.4.0" -"@noble/curves@1.9.1", "@noble/curves@~1.9.0": +"@noble/curves@1.9.1", "@noble/curves@^1.3.0", "@noble/curves@~1.9.0": version "1.9.1" resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.9.1.tgz#9654a0bc6c13420ae252ddcf975eaf0f58f0a35c" integrity sha512-k11yZxZg+t+gWvBbIswW0yoJlu8cHOC7dhunwOzoWH/mXGBiYyR4YY6hAEK/3EUs4UpB8la1RfdRpeGsFHkWsA== @@ -1788,7 +1857,7 @@ resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.4.0.tgz#45814aa329f30e4fe0ba49426f49dfccdd066426" integrity sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg== -"@noble/hashes@1.8.0", "@noble/hashes@^1.8.0", "@noble/hashes@~1.8.0": +"@noble/hashes@1.8.0", "@noble/hashes@^1.3.3", "@noble/hashes@^1.8.0", "@noble/hashes@~1.8.0": version "1.8.0" resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.8.0.tgz#cee43d801fcef9644b11b8194857695acd5f815a" integrity sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A== @@ -5580,6 +5649,11 @@ fp-ts@2.1.1: resolved "https://registry.yarnpkg.com/fp-ts/-/fp-ts-2.1.1.tgz#c910544499d7c959351bb4260ee7c44a544084c1" integrity sha512-YcWhMdDCFCja0MmaDroTgNu+NWWrrnUEn92nvDgrtVy9Z71YFnhNVIghoHPt8gs82ijoMzFGeWKvArbyICiJgw== +fp-ts@2.16.9: + version "2.16.9" + resolved "https://registry.yarnpkg.com/fp-ts/-/fp-ts-2.16.9.tgz#99628fc5e0bb3b432c4a16d8f4455247380bae8a" + integrity sha512-+I2+FnVB+tVaxcYyQkHUq7ZdKScaBlX53A41mxQtpIccsfyv8PzdzP7fzp2AY832T4aoK6UZ5WRX/ebGd8uZuQ== + fresh@0.5.2: version "0.5.2" resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7"