diff --git a/apps/contracts/hardhat.config.ts b/apps/contracts/hardhat.config.ts index e86000d..769726d 100644 --- a/apps/contracts/hardhat.config.ts +++ b/apps/contracts/hardhat.config.ts @@ -2,8 +2,7 @@ import { HardhatUserConfig } from 'hardhat/config'; import '@nomicfoundation/hardhat-toolbox'; import '@nomiclabs/hardhat-truffle5'; -import '@vechain/hardhat-vechain'; -import '@vechain/hardhat-ethers'; +import '@vechain/sdk-hardhat-plugin'; import { VECHAIN_URL_SOLO } from '@vechain/hardhat-vechain'; require('dotenv').config(); diff --git a/apps/contracts/package.json b/apps/contracts/package.json index c38df3a..0ed604a 100644 --- a/apps/contracts/package.json +++ b/apps/contracts/package.json @@ -14,7 +14,6 @@ "solo-up": "make solo-up" }, "dependencies": { - "@repo/config-contract": "*", "@nomicfoundation/hardhat-chai-matchers": "^2.0.2", "@nomicfoundation/hardhat-ethers": "^3.0.4", "@nomicfoundation/hardhat-network-helpers": "^1.0.0", @@ -22,6 +21,7 @@ "@nomiclabs/hardhat-truffle5": "^2.0.7", "@nomiclabs/hardhat-web3": "^2.0.0", "@openzeppelin/contracts": "^5.0.1", + "@repo/config-contract": "*", "@typechain/hardhat": "^8.0.0", "@types/chai": "^4.2.0", "@types/mocha": ">=9.1.0", @@ -42,8 +42,9 @@ "@nomicfoundation/hardhat-toolbox": "^3.0.0", "@nomicfoundation/hardhat-verify": "^1.1.1", "@typechain/ethers-v6": "^0.4.3", + "@vechain/sdk-hardhat-plugin": "^1.0.0-beta.12", "ethers": "^6.7.1", "ganache-cli": "^6.12.2", "hardhat": "^2.19.1" } -} \ No newline at end of file +} diff --git a/yarn.lock b/yarn.lock index 6ecd2e8..e2cd1cd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2651,6 +2651,11 @@ multiformats "^9.5.4" murmurhash3js-revisited "^3.0.0" +"@noble/ciphers@^0.5.2": + version "0.5.3" + resolved "https://registry.yarnpkg.com/@noble/ciphers/-/ciphers-0.5.3.tgz#48b536311587125e0d0c1535f73ec8375cd76b23" + integrity sha512-B0+6IIHiqEs3BPMT0hcRmHvEj2QHOLu+uwt+tqDDeVd0oyVzh7BPrDcPjRnV1PV/5LaknXJJQvOuRGR0zQJz+w== + "@noble/curves@1.2.0", "@noble/curves@~1.2.0": version "1.2.0" resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.2.0.tgz#92d7e12e4e49b23105a2555c6984d41733d65c35" @@ -4720,6 +4725,24 @@ dependencies: mersenne-twister "^1.1.0" +"@vechain/sdk-core@1.0.0-beta.12": + version "1.0.0-beta.12" + resolved "https://registry.yarnpkg.com/@vechain/sdk-core/-/sdk-core-1.0.0-beta.12.tgz#b2909f2a0b6f532005b672a1e9ad3e6ba50670d3" + integrity sha512-JUKuamlOKI3cniy2U/pVIHUlX3OC3DZXfvl1wYIAVU4JIbqgSFA9I7164yIwPv1zqjK3+Drd36ezWA8V/F1XEw== + dependencies: + "@ethereumjs/rlp" "^5.0.2" + "@noble/ciphers" "^0.5.2" + "@scure/bip32" "^1.4.0" + "@scure/bip39" "^1.3.0" + "@types/elliptic" "^6.4.18" + "@vechain/sdk-errors" "1.0.0-beta.12" + "@vechain/sdk-logging" "1.0.0-beta.12" + bignumber.js "^9.1.2" + blakejs "^1.2.1" + elliptic "^6.5.5" + ethers "6.12.1" + fast-json-stable-stringify "^2.1.0" + "@vechain/sdk-core@1.0.0-beta.7", "@vechain/sdk-core@^1.0.0-beta.7": version "1.0.0-beta.7" resolved "https://registry.yarnpkg.com/@vechain/sdk-core/-/sdk-core-1.0.0-beta.7.tgz#e65d0c8b5ee27fb271be9cd16bb85c81b1706265" @@ -4737,11 +4760,39 @@ ethers "6.12.1" fast-json-stable-stringify "^2.1.0" +"@vechain/sdk-errors@1.0.0-beta.12": + version "1.0.0-beta.12" + resolved "https://registry.yarnpkg.com/@vechain/sdk-errors/-/sdk-errors-1.0.0-beta.12.tgz#5685740f6035a02c3585bbde9d3fe25164d9933b" + integrity sha512-Nn+cZYGiRKyYeaaAtiTO1L9tsT3aS18wl4JBUke+Tvo8v7VSt/PbDwhZNC4YNzgPtI0GzviIrnEymVu/XvEHig== + "@vechain/sdk-errors@1.0.0-beta.7": version "1.0.0-beta.7" resolved "https://registry.yarnpkg.com/@vechain/sdk-errors/-/sdk-errors-1.0.0-beta.7.tgz#699c71de6694770a56196bdcd3aab2ae34383da8" integrity sha512-TKQaUiC6eeUrva0oy80BfeXbmzW7MQlXQRQfxqaHngWfgbNIFUKtyHN40wvbv3V1gPyTTA8WE2X13LK/zsRaFw== +"@vechain/sdk-ethers-adapter@1.0.0-beta.12": + version "1.0.0-beta.12" + resolved "https://registry.yarnpkg.com/@vechain/sdk-ethers-adapter/-/sdk-ethers-adapter-1.0.0-beta.12.tgz#3631a2d14cda5bbb8f2f017a72688b69829d4567" + integrity sha512-hhwpTHzpjdlW89IUHAdegtPMazXAUJV1E6HVoNjbsKCcVpFH2XGbyxsJ4HC9gdBY5S7BhunUGhyGBToQzSMwpQ== + dependencies: + "@vechain/sdk-core" "1.0.0-beta.12" + "@vechain/sdk-network" "1.0.0-beta.12" + +"@vechain/sdk-hardhat-plugin@^1.0.0-beta.12": + version "1.0.0-beta.12" + resolved "https://registry.yarnpkg.com/@vechain/sdk-hardhat-plugin/-/sdk-hardhat-plugin-1.0.0-beta.12.tgz#15789ebdd792cef5722e30ed910bc130f621ec4a" + integrity sha512-fEYYWy9VkNxV5KSOnlj0Ggs23Onc/0n4dLUY9H05BcVMHkcvhEc4krYaiyd2SMD+ZZBXVlm374VA7jkzJsHxoA== + dependencies: + "@vechain/sdk-ethers-adapter" "1.0.0-beta.12" + "@vechain/sdk-network" "1.0.0-beta.12" + +"@vechain/sdk-logging@1.0.0-beta.12": + version "1.0.0-beta.12" + resolved "https://registry.yarnpkg.com/@vechain/sdk-logging/-/sdk-logging-1.0.0-beta.12.tgz#fa35b5a92d7797f020e034068ae0792069229a26" + integrity sha512-eUKMBqHF7d2wFupcg0LddB6V3PKOmmp+O+iyvk7sTqOyr+W1yWVlm3hViMpdSOdykaI6+h5o1aYk7NGTPSamKQ== + dependencies: + "@vechain/sdk-errors" "1.0.0-beta.12" + "@vechain/sdk-logging@1.0.0-beta.7": version "1.0.0-beta.7" resolved "https://registry.yarnpkg.com/@vechain/sdk-logging/-/sdk-logging-1.0.0-beta.7.tgz#1ab2b8fd976cb69d59df15b5538e6f06711357c3" @@ -4749,6 +4800,17 @@ dependencies: "@vechain/sdk-errors" "1.0.0-beta.7" +"@vechain/sdk-network@1.0.0-beta.12": + version "1.0.0-beta.12" + resolved "https://registry.yarnpkg.com/@vechain/sdk-network/-/sdk-network-1.0.0-beta.12.tgz#af950d98a4363c2831769f53649fc4d194a2da6d" + integrity sha512-EWJkI/kqpKlAIxQ89FcJgzsD4m1J8fjO07dSuVB895CtCGdP0Gu3Ovv5MI7/5/NVNuL9Btw+U3Vt4rfwp7qPKQ== + dependencies: + "@types/ws" "^8.5.10" + "@vechain/sdk-core" "1.0.0-beta.12" + "@vechain/sdk-errors" "1.0.0-beta.12" + "@vechain/sdk-logging" "1.0.0-beta.12" + axios "^1.7.2" + "@vechain/sdk-network@^1.0.0-beta.7": version "1.0.0-beta.7" resolved "https://registry.yarnpkg.com/@vechain/sdk-network/-/sdk-network-1.0.0-beta.7.tgz#b4cbc72564f2ba2fec8231d2fe46c9945a0ff308"