diff --git a/package-lock.json b/package-lock.json index b433401..fa8671c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,15 @@ { "name": "platform-tutorials", - "version": "1.4.1", + "version": "1.5.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "platform-tutorials", - "version": "1.4.1", + "version": "1.5.1", "license": "MIT", "dependencies": { - "dash": "~4.4.1" + "dash": "~4.5.1" }, "devDependencies": { "dotenv": "^16.0.0", @@ -35,12 +35,13 @@ } }, "node_modules/@babel/code-frame": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.25.7.tgz", - "integrity": "sha512-0xZJFNE5XMpENsgfHYTw8FbX4kv53mFLn2i3XPoq69LyhYSCBJtitaHx9QnsVTrsogI4Z3+HtEfZ2/GFPOtf5g==", + "version": "7.26.2", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.26.2.tgz", + "integrity": "sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==", "license": "MIT", "dependencies": { - "@babel/highlight": "^7.25.7", + "@babel/helper-validator-identifier": "^7.25.9", + "js-tokens": "^4.0.0", "picocolors": "^1.0.0" }, "engines": { @@ -48,100 +49,14 @@ } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.7.tgz", - "integrity": "sha512-AM6TzwYqGChO45oiuPqwL2t20/HdMC1rTPAesnBCgPCSF1x3oN9MVUwQV2iyz4xqWrctwK5RNC8LV22kaQCNYg==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz", + "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==", "license": "MIT", "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/highlight": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.25.7.tgz", - "integrity": "sha512-iYyACpW3iW8Fw+ZybQK+drQre+ns/tKpXbNESfrhNnPLIklLbXr7MYJ6gPEd0iETGLOK+SxMjVvKb/ffmk+FEw==", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.25.7", - "chalk": "^2.4.2", - "js-tokens": "^4.0.0", - "picocolors": "^1.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "license": "MIT", - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "license": "MIT", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "license": "MIT", - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/@babel/highlight/node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "license": "MIT" - }, - "node_modules/@babel/highlight/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "license": "MIT", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/@babel/highlight/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "license": "MIT", - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/@colors/colors": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.6.0.tgz", @@ -171,16 +86,16 @@ } }, "node_modules/@dashevo/dapi-client": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@dashevo/dapi-client/-/dapi-client-1.4.1.tgz", - "integrity": "sha512-Gsc9kSAl2X2d5GPbtQha8xMNNy/Lqq/ILvMYjtO9RBPls6+gd1K8rMZTXzWQuX/lIMxXUoldNBT/gzN5+h2aXw==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@dashevo/dapi-client/-/dapi-client-1.5.1.tgz", + "integrity": "sha512-oge1OUFkSqgp0Blfzc2zFDNC06rvVgz9lQN+Asc1xzndb+bigDViaz6nM0/5i7qZZnHSCh9sbfoOzkWXRfPujg==", "license": "MIT", "dependencies": { - "@dashevo/dapi-grpc": "1.4.1", - "@dashevo/dash-spv": "2.4.1", + "@dashevo/dapi-grpc": "1.5.1", + "@dashevo/dash-spv": "2.5.1", "@dashevo/dashcore-lib": "~0.22.0", - "@dashevo/grpc-common": "1.4.1", - "@dashevo/wasm-dpp": "1.4.1", + "@dashevo/grpc-common": "1.5.1", + "@dashevo/wasm-dpp": "1.5.1", "bs58": "^4.0.1", "cbor": "^8.0.0", "google-protobuf": "^3.12.2", @@ -192,12 +107,12 @@ } }, "node_modules/@dashevo/dapi-grpc": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@dashevo/dapi-grpc/-/dapi-grpc-1.4.1.tgz", - "integrity": "sha512-n6l3hFa61LjwjEvT6Bw2oMfz2p3uyh/K/3ffdx/KV0AO0Zm6c7PY0sgz81RdKE2BJPlw8Sjp2y0FhtLgIzVKCg==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@dashevo/dapi-grpc/-/dapi-grpc-1.5.1.tgz", + "integrity": "sha512-hlj7vkRcIdkwBznuVulxNCTA/huR1hwn5MRBZJtfyQnar290mATInuPTd2O/nIe52DBNXvFWVyrA6lVEvdOm2g==", "license": "MIT", "dependencies": { - "@dashevo/grpc-common": "1.4.1", + "@dashevo/grpc-common": "1.5.1", "@dashevo/protobufjs": "6.10.5", "@grpc/grpc-js": "1.4.4", "@improbable-eng/grpc-web": "^0.15.0", @@ -212,9 +127,9 @@ "license": "MIT" }, "node_modules/@dashevo/dash-spv": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@dashevo/dash-spv/-/dash-spv-2.4.1.tgz", - "integrity": "sha512-x2eVH5OocnOAdOez8BQV2CMYDfDRBlSfSCUocXyw4uSDV23cPw1+n83RW/mFee5grzTLGPjPK9HCv7051lzq3Q==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@dashevo/dash-spv/-/dash-spv-2.5.1.tgz", + "integrity": "sha512-vhyICeDrwfs8d2nNgyhHSwoPUXHN4Gkg+io9581WLFlLGBsxHl3vmCs7BfUJYu5lwcX7EvPZFhVI76k2e/2abg==", "license": "MIT", "dependencies": { "@dashevo/dark-gravity-wave": "^1.1.1", @@ -256,21 +171,21 @@ } }, "node_modules/@dashevo/dashpay-contract": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@dashevo/dashpay-contract/-/dashpay-contract-1.4.1.tgz", - "integrity": "sha512-hHHvobQ1T7DYe6TP6LOIxIZU2W4KSY/BmIpJGElVyY9NaxBOOXMzk/leZ37VUyk/NH9hWJyGBgbUsLTMg7MmVA==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@dashevo/dashpay-contract/-/dashpay-contract-1.5.1.tgz", + "integrity": "sha512-lX/o2wR7f5XJvTPfKQzcia329wqTK35l9nOgVbjsgor2ivsN+yngF/es98QxLrB2g3qTjsHvcclVXO597Z+VUw==", "license": "MIT" }, "node_modules/@dashevo/dpns-contract": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@dashevo/dpns-contract/-/dpns-contract-1.4.1.tgz", - "integrity": "sha512-68nHR1CVRo4J0m6dlK3Poowc6Nu2v4hzdoyiQjFupNNrT3239s47u8z/VUW5GwKmsgG0TmW5qL20MBSl2vz4hQ==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@dashevo/dpns-contract/-/dpns-contract-1.5.1.tgz", + "integrity": "sha512-HH16Me/g/3pska5NqaKibeyZFKaWjj8cxv/GXWcr4k70jO1pT7nkO7X6RnsyR06QfHv3PiqhleQc25nA4sHU3A==", "license": "MIT" }, "node_modules/@dashevo/grpc-common": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@dashevo/grpc-common/-/grpc-common-1.4.1.tgz", - "integrity": "sha512-KmVv3guHKOMmgXqSepqluPNKmn+xVHDZocLOH4dgcgB53OiVb+mNnfSaS9MwU3evv5B+R6LTpinIvPUzfFtZNA==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@dashevo/grpc-common/-/grpc-common-1.5.1.tgz", + "integrity": "sha512-7iXUB0Et0B9BwCf7gL6NvWKeYaUj4vIR3h7T1HjIcqGXWN9FUwKHIZoiSNm+hx8xddy5aHXbm/g38h1GINACyQ==", "license": "MIT", "dependencies": { "@dashevo/protobufjs": "6.10.5", @@ -283,9 +198,9 @@ } }, "node_modules/@dashevo/masternode-reward-shares-contract": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@dashevo/masternode-reward-shares-contract/-/masternode-reward-shares-contract-1.4.1.tgz", - "integrity": "sha512-fkVgeixDO0Ou4OoFjLIM75VS8L/YY034AJl+GFOFd8WYfWgliaMzt/kaeK3hCQJIo1HGYYxL8B6UQr8leTh6eQ==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@dashevo/masternode-reward-shares-contract/-/masternode-reward-shares-contract-1.5.1.tgz", + "integrity": "sha512-ilm8ohvR6vMFhV9VzlWntjeT7QMdyoLUS7AtXbvWVeLtDG8RS+AWBfoaeLjHPw9dCwnR9nOfUVYudp4KHc7ptw==", "license": "MIT" }, "node_modules/@dashevo/protobufjs": { @@ -327,15 +242,15 @@ "license": "Apache-2.0" }, "node_modules/@dashevo/wallet-lib": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/@dashevo/wallet-lib/-/wallet-lib-8.4.1.tgz", - "integrity": "sha512-TEAY4OI/6A4iprzSHLDmflfsu4AS0Uybrgnwsjwr7nIML9iXCgAZFnkFOAwJfLqGXNZb0x/2P/R2Lo7IA74rsQ==", + "version": "8.5.1", + "resolved": "https://registry.npmjs.org/@dashevo/wallet-lib/-/wallet-lib-8.5.1.tgz", + "integrity": "sha512-9zExxN0VouedgYyKG2CGT5uExGGEloSkvgIXhA4DPMk5GkeOlDxI0MIQZZrCDfNiDTfzish2o6R3kTMdYcp9sg==", "license": "MIT", "dependencies": { - "@dashevo/dapi-client": "1.4.1", + "@dashevo/dapi-client": "1.5.1", "@dashevo/dashcore-lib": "~0.22.0", - "@dashevo/grpc-common": "1.4.1", - "@dashevo/wasm-dpp": "1.4.1", + "@dashevo/grpc-common": "1.5.1", + "@dashevo/wasm-dpp": "1.5.1", "@yarnpkg/pnpify": "^4.0.0-rc.42", "cbor": "^8.0.0", "crypto-js": "^4.2.0", @@ -346,9 +261,9 @@ } }, "node_modules/@dashevo/wasm-dpp": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@dashevo/wasm-dpp/-/wasm-dpp-1.4.1.tgz", - "integrity": "sha512-JbUaAfyUd+HxI3naViqyWtzN3d3BwHqnzyG/OFf1M7jpY4/uzBNgPhGClyk2lC5cOCju02jBQE4U2AU6cjNdBw==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@dashevo/wasm-dpp/-/wasm-dpp-1.5.1.tgz", + "integrity": "sha512-l24x/C19CCfKGh+t7LMTExLrMfm13bpkDZzPcGfqbo9b4fBqwnH5rvVcbkHHL+mjIN9mt87aLGJ0wnS+hxX4Jw==", "license": "MIT", "dependencies": { "@dashevo/bls": "~1.2.9", @@ -358,9 +273,9 @@ } }, "node_modules/@dashevo/withdrawals-contract": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@dashevo/withdrawals-contract/-/withdrawals-contract-1.4.1.tgz", - "integrity": "sha512-WnrG2BrA4ovBqPi3Q8adekastZflnL+tcxvmhKChA5M/W+iMEe8uBOqdVH9aS/qcBTJqq78BL6S5Jjcvv9J4YA==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@dashevo/withdrawals-contract/-/withdrawals-contract-1.5.1.tgz", + "integrity": "sha512-0Xqw78qGJ1aXoreBUtStXXNwdsC5cgompGEvcbwdEJaf6RpijIu2CbfFSiVhxu5LsFT1EXonCbKrmLi37To2QQ==", "license": "MIT" }, "node_modules/@dashevo/x11-hash-js": { @@ -946,9 +861,9 @@ } }, "node_modules/@yarnpkg/pnp/node_modules/@types/node": { - "version": "18.19.57", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.57.tgz", - "integrity": "sha512-I2ioBd/IPrYDMv9UNR5NlPElOZ68QB7yY5V2EsLtSrTO0LM0PnCEFF9biLWHf5k+sIy4ohueCV9t4gk1AEdlVA==", + "version": "18.19.64", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.64.tgz", + "integrity": "sha512-955mDqvO2vFf/oL7V3WiUtiz+BugyX8uVbaT2H8oj3+8dRyH2FLiNdowe7eNqRM7IOIZvzDH76EoAT+gwm6aIQ==", "license": "MIT", "dependencies": { "undici-types": "~5.26.4" @@ -1547,22 +1462,22 @@ "license": "MIT" }, "node_modules/dash": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/dash/-/dash-4.4.1.tgz", - "integrity": "sha512-wK6h7km5yobze/yfwiOPdScuZnDx5oPmPxX7d5OvHjfUFRUM4WijFM0N7LS69G9PV9KgzTF/1dacZyQpMcVRzA==", + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/dash/-/dash-4.5.1.tgz", + "integrity": "sha512-2gwmcpH+lm9hrISpHT3TYZWa/ff+GfxhUxjCrgYIxPVAfK3w2XXKxxTI8teVMtijd+shaMBbl45y3UTTAp+OJQ==", "license": "MIT", "dependencies": { "@dashevo/bls": "~1.2.9", - "@dashevo/dapi-client": "1.4.1", - "@dashevo/dapi-grpc": "1.4.1", + "@dashevo/dapi-client": "1.5.1", + "@dashevo/dapi-grpc": "1.5.1", "@dashevo/dashcore-lib": "~0.22.0", - "@dashevo/dashpay-contract": "1.4.1", - "@dashevo/dpns-contract": "1.4.1", - "@dashevo/grpc-common": "1.4.1", - "@dashevo/masternode-reward-shares-contract": "1.4.1", - "@dashevo/wallet-lib": "8.4.1", - "@dashevo/wasm-dpp": "1.4.1", - "@dashevo/withdrawals-contract": "1.4.1", + "@dashevo/dashpay-contract": "1.5.1", + "@dashevo/dpns-contract": "1.5.1", + "@dashevo/grpc-common": "1.5.1", + "@dashevo/masternode-reward-shares-contract": "1.5.1", + "@dashevo/wallet-lib": "8.5.1", + "@dashevo/wasm-dpp": "1.5.1", + "@dashevo/withdrawals-contract": "1.5.1", "bs58": "^4.0.1", "node-inspect-extracted": "^1.0.8", "winston": "^3.2.1" @@ -1734,9 +1649,9 @@ } }, "node_modules/elliptic": { - "version": "6.5.7", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.7.tgz", - "integrity": "sha512-ESVCtTwiA+XhY3wyh24QqRGBoP3rEdDUl3EDUUo9tft074fi19IrdpH7hLCMMP3CIj7jb3W96rn8lt/BqIlt5Q==", + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.6.0.tgz", + "integrity": "sha512-dpwoQcLc/2WLQvJvLRHKZ+f9FgOdjnq11rurqwekGQygGPsYSK29OMMD2WalatiqQ+XGFDglTNixpPfI+lpaAA==", "license": "MIT", "dependencies": { "bn.js": "^4.11.9", @@ -3493,12 +3408,12 @@ } }, "node_modules/protobufjs/node_modules/@types/node": { - "version": "22.7.7", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.7.tgz", - "integrity": "sha512-SRxCrrg9CL/y54aiMCG3edPKdprgMVGDXjA3gB8UmmBW5TcXzRUYAh8EWzTnSJFAd1rgImPELza+A3bJ+qxz8Q==", + "version": "22.8.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.8.7.tgz", + "integrity": "sha512-LidcG+2UeYIWcMuMUpBKOnryBWG/rnmOHQR5apjn8myTQcx3rinFRn7DcIFhMnS0PPFSC6OafdIKEad0lj6U0Q==", "license": "MIT", "dependencies": { - "undici-types": "~6.19.2" + "undici-types": "~6.19.8" } }, "node_modules/protobufjs/node_modules/long": { @@ -4192,9 +4107,9 @@ } }, "node_modules/tslib": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.0.tgz", - "integrity": "sha512-jWVzBLplnCmoaTr13V9dYbiQ99wvZRd0vNWaDRg+aVYRcjDF3nDksxFDE/+fkXnKhpnUUkmx5pK/v8mCtLVqZA==", + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", "license": "0BSD" }, "node_modules/tunnel": { @@ -4322,9 +4237,9 @@ } }, "node_modules/winston": { - "version": "3.15.0", - "resolved": "https://registry.npmjs.org/winston/-/winston-3.15.0.tgz", - "integrity": "sha512-RhruH2Cj0bV0WgNL+lOfoUBI4DVfdUNjVnJGVovWZmrcKtrFTTRzgXYK2O9cymSGjrERCtaAeHwMNnUWXlwZow==", + "version": "3.16.0", + "resolved": "https://registry.npmjs.org/winston/-/winston-3.16.0.tgz", + "integrity": "sha512-xz7+cyGN5M+4CmmD4Npq1/4T+UZaz7HaeTlAruFUTjk79CNMq+P6H30vlE4z0qfqJ01VHYQwd7OZo03nYm/+lg==", "license": "MIT", "dependencies": { "@colors/colors": "^1.6.0", @@ -4499,80 +4414,19 @@ } }, "@babel/code-frame": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.25.7.tgz", - "integrity": "sha512-0xZJFNE5XMpENsgfHYTw8FbX4kv53mFLn2i3XPoq69LyhYSCBJtitaHx9QnsVTrsogI4Z3+HtEfZ2/GFPOtf5g==", + "version": "7.26.2", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.26.2.tgz", + "integrity": "sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==", "requires": { - "@babel/highlight": "^7.25.7", + "@babel/helper-validator-identifier": "^7.25.9", + "js-tokens": "^4.0.0", "picocolors": "^1.0.0" } }, "@babel/helper-validator-identifier": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.7.tgz", - "integrity": "sha512-AM6TzwYqGChO45oiuPqwL2t20/HdMC1rTPAesnBCgPCSF1x3oN9MVUwQV2iyz4xqWrctwK5RNC8LV22kaQCNYg==" - }, - "@babel/highlight": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.25.7.tgz", - "integrity": "sha512-iYyACpW3iW8Fw+ZybQK+drQre+ns/tKpXbNESfrhNnPLIklLbXr7MYJ6gPEd0iETGLOK+SxMjVvKb/ffmk+FEw==", - "requires": { - "@babel/helper-validator-identifier": "^7.25.7", - "chalk": "^2.4.2", - "js-tokens": "^4.0.0", - "picocolors": "^1.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==" - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==" - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "requires": { - "has-flag": "^3.0.0" - } - } - } + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz", + "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==" }, "@colors/colors": { "version": "1.6.0", @@ -4598,15 +4452,15 @@ } }, "@dashevo/dapi-client": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@dashevo/dapi-client/-/dapi-client-1.4.1.tgz", - "integrity": "sha512-Gsc9kSAl2X2d5GPbtQha8xMNNy/Lqq/ILvMYjtO9RBPls6+gd1K8rMZTXzWQuX/lIMxXUoldNBT/gzN5+h2aXw==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@dashevo/dapi-client/-/dapi-client-1.5.1.tgz", + "integrity": "sha512-oge1OUFkSqgp0Blfzc2zFDNC06rvVgz9lQN+Asc1xzndb+bigDViaz6nM0/5i7qZZnHSCh9sbfoOzkWXRfPujg==", "requires": { - "@dashevo/dapi-grpc": "1.4.1", - "@dashevo/dash-spv": "2.4.1", + "@dashevo/dapi-grpc": "1.5.1", + "@dashevo/dash-spv": "2.5.1", "@dashevo/dashcore-lib": "~0.22.0", - "@dashevo/grpc-common": "1.4.1", - "@dashevo/wasm-dpp": "1.4.1", + "@dashevo/grpc-common": "1.5.1", + "@dashevo/wasm-dpp": "1.5.1", "bs58": "^4.0.1", "cbor": "^8.0.0", "google-protobuf": "^3.12.2", @@ -4618,11 +4472,11 @@ } }, "@dashevo/dapi-grpc": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@dashevo/dapi-grpc/-/dapi-grpc-1.4.1.tgz", - "integrity": "sha512-n6l3hFa61LjwjEvT6Bw2oMfz2p3uyh/K/3ffdx/KV0AO0Zm6c7PY0sgz81RdKE2BJPlw8Sjp2y0FhtLgIzVKCg==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@dashevo/dapi-grpc/-/dapi-grpc-1.5.1.tgz", + "integrity": "sha512-hlj7vkRcIdkwBznuVulxNCTA/huR1hwn5MRBZJtfyQnar290mATInuPTd2O/nIe52DBNXvFWVyrA6lVEvdOm2g==", "requires": { - "@dashevo/grpc-common": "1.4.1", + "@dashevo/grpc-common": "1.5.1", "@dashevo/protobufjs": "6.10.5", "@grpc/grpc-js": "1.4.4", "@improbable-eng/grpc-web": "^0.15.0", @@ -4636,9 +4490,9 @@ "integrity": "sha512-rt0PzGzqplqERWVIMLlBxm4mJqjFTYNUFRhIccbfaF/MDyd0/585krGOWIhe0Sis9XQNA/FJlxxRjtPXIcyyCg==" }, "@dashevo/dash-spv": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@dashevo/dash-spv/-/dash-spv-2.4.1.tgz", - "integrity": "sha512-x2eVH5OocnOAdOez8BQV2CMYDfDRBlSfSCUocXyw4uSDV23cPw1+n83RW/mFee5grzTLGPjPK9HCv7051lzq3Q==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@dashevo/dash-spv/-/dash-spv-2.5.1.tgz", + "integrity": "sha512-vhyICeDrwfs8d2nNgyhHSwoPUXHN4Gkg+io9581WLFlLGBsxHl3vmCs7BfUJYu5lwcX7EvPZFhVI76k2e/2abg==", "requires": { "@dashevo/dark-gravity-wave": "^1.1.1", "@dashevo/dash-util": "^2.0.3", @@ -4677,19 +4531,19 @@ } }, "@dashevo/dashpay-contract": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@dashevo/dashpay-contract/-/dashpay-contract-1.4.1.tgz", - "integrity": "sha512-hHHvobQ1T7DYe6TP6LOIxIZU2W4KSY/BmIpJGElVyY9NaxBOOXMzk/leZ37VUyk/NH9hWJyGBgbUsLTMg7MmVA==" + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@dashevo/dashpay-contract/-/dashpay-contract-1.5.1.tgz", + "integrity": "sha512-lX/o2wR7f5XJvTPfKQzcia329wqTK35l9nOgVbjsgor2ivsN+yngF/es98QxLrB2g3qTjsHvcclVXO597Z+VUw==" }, "@dashevo/dpns-contract": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@dashevo/dpns-contract/-/dpns-contract-1.4.1.tgz", - "integrity": "sha512-68nHR1CVRo4J0m6dlK3Poowc6Nu2v4hzdoyiQjFupNNrT3239s47u8z/VUW5GwKmsgG0TmW5qL20MBSl2vz4hQ==" + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@dashevo/dpns-contract/-/dpns-contract-1.5.1.tgz", + "integrity": "sha512-HH16Me/g/3pska5NqaKibeyZFKaWjj8cxv/GXWcr4k70jO1pT7nkO7X6RnsyR06QfHv3PiqhleQc25nA4sHU3A==" }, "@dashevo/grpc-common": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@dashevo/grpc-common/-/grpc-common-1.4.1.tgz", - "integrity": "sha512-KmVv3guHKOMmgXqSepqluPNKmn+xVHDZocLOH4dgcgB53OiVb+mNnfSaS9MwU3evv5B+R6LTpinIvPUzfFtZNA==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@dashevo/grpc-common/-/grpc-common-1.5.1.tgz", + "integrity": "sha512-7iXUB0Et0B9BwCf7gL6NvWKeYaUj4vIR3h7T1HjIcqGXWN9FUwKHIZoiSNm+hx8xddy5aHXbm/g38h1GINACyQ==", "requires": { "@dashevo/protobufjs": "6.10.5", "@grpc/grpc-js": "1.4.4", @@ -4701,9 +4555,9 @@ } }, "@dashevo/masternode-reward-shares-contract": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@dashevo/masternode-reward-shares-contract/-/masternode-reward-shares-contract-1.4.1.tgz", - "integrity": "sha512-fkVgeixDO0Ou4OoFjLIM75VS8L/YY034AJl+GFOFd8WYfWgliaMzt/kaeK3hCQJIo1HGYYxL8B6UQr8leTh6eQ==" + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@dashevo/masternode-reward-shares-contract/-/masternode-reward-shares-contract-1.5.1.tgz", + "integrity": "sha512-ilm8ohvR6vMFhV9VzlWntjeT7QMdyoLUS7AtXbvWVeLtDG8RS+AWBfoaeLjHPw9dCwnR9nOfUVYudp4KHc7ptw==" }, "@dashevo/protobufjs": { "version": "6.10.5", @@ -4738,14 +4592,14 @@ } }, "@dashevo/wallet-lib": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/@dashevo/wallet-lib/-/wallet-lib-8.4.1.tgz", - "integrity": "sha512-TEAY4OI/6A4iprzSHLDmflfsu4AS0Uybrgnwsjwr7nIML9iXCgAZFnkFOAwJfLqGXNZb0x/2P/R2Lo7IA74rsQ==", + "version": "8.5.1", + "resolved": "https://registry.npmjs.org/@dashevo/wallet-lib/-/wallet-lib-8.5.1.tgz", + "integrity": "sha512-9zExxN0VouedgYyKG2CGT5uExGGEloSkvgIXhA4DPMk5GkeOlDxI0MIQZZrCDfNiDTfzish2o6R3kTMdYcp9sg==", "requires": { - "@dashevo/dapi-client": "1.4.1", + "@dashevo/dapi-client": "1.5.1", "@dashevo/dashcore-lib": "~0.22.0", - "@dashevo/grpc-common": "1.4.1", - "@dashevo/wasm-dpp": "1.4.1", + "@dashevo/grpc-common": "1.5.1", + "@dashevo/wasm-dpp": "1.5.1", "@yarnpkg/pnpify": "^4.0.0-rc.42", "cbor": "^8.0.0", "crypto-js": "^4.2.0", @@ -4756,9 +4610,9 @@ } }, "@dashevo/wasm-dpp": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@dashevo/wasm-dpp/-/wasm-dpp-1.4.1.tgz", - "integrity": "sha512-JbUaAfyUd+HxI3naViqyWtzN3d3BwHqnzyG/OFf1M7jpY4/uzBNgPhGClyk2lC5cOCju02jBQE4U2AU6cjNdBw==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@dashevo/wasm-dpp/-/wasm-dpp-1.5.1.tgz", + "integrity": "sha512-l24x/C19CCfKGh+t7LMTExLrMfm13bpkDZzPcGfqbo9b4fBqwnH5rvVcbkHHL+mjIN9mt87aLGJ0wnS+hxX4Jw==", "requires": { "@dashevo/bls": "~1.2.9", "bs58": "^4.0.1", @@ -4767,9 +4621,9 @@ } }, "@dashevo/withdrawals-contract": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@dashevo/withdrawals-contract/-/withdrawals-contract-1.4.1.tgz", - "integrity": "sha512-WnrG2BrA4ovBqPi3Q8adekastZflnL+tcxvmhKChA5M/W+iMEe8uBOqdVH9aS/qcBTJqq78BL6S5Jjcvv9J4YA==" + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@dashevo/withdrawals-contract/-/withdrawals-contract-1.5.1.tgz", + "integrity": "sha512-0Xqw78qGJ1aXoreBUtStXXNwdsC5cgompGEvcbwdEJaf6RpijIu2CbfFSiVhxu5LsFT1EXonCbKrmLi37To2QQ==" }, "@dashevo/x11-hash-js": { "version": "1.0.2", @@ -5215,9 +5069,9 @@ }, "dependencies": { "@types/node": { - "version": "18.19.57", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.57.tgz", - "integrity": "sha512-I2ioBd/IPrYDMv9UNR5NlPElOZ68QB7yY5V2EsLtSrTO0LM0PnCEFF9biLWHf5k+sIy4ohueCV9t4gk1AEdlVA==", + "version": "18.19.64", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.64.tgz", + "integrity": "sha512-955mDqvO2vFf/oL7V3WiUtiz+BugyX8uVbaT2H8oj3+8dRyH2FLiNdowe7eNqRM7IOIZvzDH76EoAT+gwm6aIQ==", "requires": { "undici-types": "~5.26.4" } @@ -5641,21 +5495,21 @@ "integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==" }, "dash": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/dash/-/dash-4.4.1.tgz", - "integrity": "sha512-wK6h7km5yobze/yfwiOPdScuZnDx5oPmPxX7d5OvHjfUFRUM4WijFM0N7LS69G9PV9KgzTF/1dacZyQpMcVRzA==", + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/dash/-/dash-4.5.1.tgz", + "integrity": "sha512-2gwmcpH+lm9hrISpHT3TYZWa/ff+GfxhUxjCrgYIxPVAfK3w2XXKxxTI8teVMtijd+shaMBbl45y3UTTAp+OJQ==", "requires": { "@dashevo/bls": "~1.2.9", - "@dashevo/dapi-client": "1.4.1", - "@dashevo/dapi-grpc": "1.4.1", + "@dashevo/dapi-client": "1.5.1", + "@dashevo/dapi-grpc": "1.5.1", "@dashevo/dashcore-lib": "~0.22.0", - "@dashevo/dashpay-contract": "1.4.1", - "@dashevo/dpns-contract": "1.4.1", - "@dashevo/grpc-common": "1.4.1", - "@dashevo/masternode-reward-shares-contract": "1.4.1", - "@dashevo/wallet-lib": "8.4.1", - "@dashevo/wasm-dpp": "1.4.1", - "@dashevo/withdrawals-contract": "1.4.1", + "@dashevo/dashpay-contract": "1.5.1", + "@dashevo/dpns-contract": "1.5.1", + "@dashevo/grpc-common": "1.5.1", + "@dashevo/masternode-reward-shares-contract": "1.5.1", + "@dashevo/wallet-lib": "8.5.1", + "@dashevo/wasm-dpp": "1.5.1", + "@dashevo/withdrawals-contract": "1.5.1", "bs58": "^4.0.1", "node-inspect-extracted": "^1.0.8", "winston": "^3.2.1" @@ -5766,9 +5620,9 @@ "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==" }, "elliptic": { - "version": "6.5.7", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.7.tgz", - "integrity": "sha512-ESVCtTwiA+XhY3wyh24QqRGBoP3rEdDUl3EDUUo9tft074fi19IrdpH7hLCMMP3CIj7jb3W96rn8lt/BqIlt5Q==", + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.6.0.tgz", + "integrity": "sha512-dpwoQcLc/2WLQvJvLRHKZ+f9FgOdjnq11rurqwekGQygGPsYSK29OMMD2WalatiqQ+XGFDglTNixpPfI+lpaAA==", "requires": { "bn.js": "^4.11.9", "brorand": "^1.1.0", @@ -7001,11 +6855,11 @@ }, "dependencies": { "@types/node": { - "version": "22.7.7", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.7.tgz", - "integrity": "sha512-SRxCrrg9CL/y54aiMCG3edPKdprgMVGDXjA3gB8UmmBW5TcXzRUYAh8EWzTnSJFAd1rgImPELza+A3bJ+qxz8Q==", + "version": "22.8.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.8.7.tgz", + "integrity": "sha512-LidcG+2UeYIWcMuMUpBKOnryBWG/rnmOHQR5apjn8myTQcx3rinFRn7DcIFhMnS0PPFSC6OafdIKEad0lj6U0Q==", "requires": { - "undici-types": "~6.19.2" + "undici-types": "~6.19.8" } }, "long": { @@ -7469,9 +7323,9 @@ } }, "tslib": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.0.tgz", - "integrity": "sha512-jWVzBLplnCmoaTr13V9dYbiQ99wvZRd0vNWaDRg+aVYRcjDF3nDksxFDE/+fkXnKhpnUUkmx5pK/v8mCtLVqZA==" + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==" }, "tunnel": { "version": "0.0.6", @@ -7564,9 +7418,9 @@ } }, "winston": { - "version": "3.15.0", - "resolved": "https://registry.npmjs.org/winston/-/winston-3.15.0.tgz", - "integrity": "sha512-RhruH2Cj0bV0WgNL+lOfoUBI4DVfdUNjVnJGVovWZmrcKtrFTTRzgXYK2O9cymSGjrERCtaAeHwMNnUWXlwZow==", + "version": "3.16.0", + "resolved": "https://registry.npmjs.org/winston/-/winston-3.16.0.tgz", + "integrity": "sha512-xz7+cyGN5M+4CmmD4Npq1/4T+UZaz7HaeTlAruFUTjk79CNMq+P6H30vlE4z0qfqJ01VHYQwd7OZo03nYm/+lg==", "requires": { "@colors/colors": "^1.6.0", "@dabh/diagnostics": "^2.0.2", diff --git a/package.json b/package.json index b3d420d..b68e5ba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "platform-tutorials", - "version": "1.4.1", + "version": "1.5.1", "description": "Tutorial code for https://docs.dash.org/platform", "main": "connect.js", "scripts": { @@ -19,7 +19,7 @@ }, "homepage": "https://github.com/dashpay/platform-tutorials#readme", "dependencies": { - "dash": "~4.4.1" + "dash": "~4.5.1" }, "devDependencies": { "dotenv": "^16.0.0", diff --git a/use-dapi-client-methods.js b/use-dapi-client-methods.js index 7f4f171..99176fc 100644 --- a/use-dapi-client-methods.js +++ b/use-dapi-client-methods.js @@ -6,7 +6,7 @@ const client = setupDashClient(); async function dapiClientMethods() { console.log(await client.getDAPIClient().core.getBlockHash(1)); - console.log(await client.getDAPIClient().core.getBestBlockHash()) + console.log(await client.getDAPIClient().core.getBestBlockHash()); // console.log(await client.getDAPIClient().core.getBlockByHeight(1)); // Disabled in Platform v1.0 console.log(await client.getDAPIClient().core.getBestBlockHeight()); // await client.getDAPIClient().core.getMasternodeStatus(); // Disabled in Platform v1.0