From 36ddceb2882d7bb2c25478ec8e8985de4adbe333 Mon Sep 17 00:00:00 2001 From: BenRey Date: Wed, 14 Aug 2024 13:12:55 +0200 Subject: [PATCH] Update massa-web3 --- .../commands/init/package-lock.json | 41 +++++++++++++++++-- .../commands/init/src/deploy.ts | 2 +- 2 files changed, 38 insertions(+), 5 deletions(-) diff --git a/packages/sc-project-initializer/commands/init/package-lock.json b/packages/sc-project-initializer/commands/init/package-lock.json index c50ba43a..a39fd448 100644 --- a/packages/sc-project-initializer/commands/init/package-lock.json +++ b/packages/sc-project-initializer/commands/init/package-lock.json @@ -16,7 +16,7 @@ "@massalabs/massa-as-sdk": "^2.5.4", "@massalabs/massa-sc-compiler": "^0.2.1-dev", "@massalabs/massa-sc-deployer": "^1.3.0", - "@massalabs/massa-web3": "^5.0.0-next", + "@massalabs/massa-web3": "^5.0.0-next.20240812191059", "@massalabs/prettier-config-as": "^0.0.2", "@types/node": "^18.11.10", "assemblyscript": "^0.27.29", @@ -769,18 +769,20 @@ } }, "node_modules/@massalabs/massa-web3": { - "version": "5.0.0-next.20240725151224", + "version": "5.0.0-next.20240812191059", + "resolved": "https://registry.npmjs.org/@massalabs/massa-web3/-/massa-web3-5.0.0-next.20240812191059.tgz", + "integrity": "sha512-kZ84eIgbRKaENG8cDACKYuY7QkaUBRxFwNX9qJpZ+0LbmjMGP5UOyKGvEwB0SK6l/L7uhZpcAzQGbBZYzcnUtQ==", "dev": true, - "license": "MIT", "dependencies": { "@noble/ed25519": "^1.7.3", "@noble/hashes": "^1.2.0", "@open-rpc/client-js": "^1.8.1", "@open-rpc/schema-utils-js": "1.15.0", "big-varint": "^0.1.3", - "bs58check": "^3.0.1", + "bs58check": "^4.0.0", "decimal.js": "^10.4.3", "dotenv": "^16.0.3", + "lodash.isequal": "^4.5.0", "secure-random": "^1.1.2", "string_decoder": "^1.3.0", "tslib": "^2.5.2", @@ -791,6 +793,31 @@ "utf-8-validate": "^6.0.2" } }, + "node_modules/@massalabs/massa-web3/node_modules/base-x": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/base-x/-/base-x-5.0.0.tgz", + "integrity": "sha512-sMW3VGSX1QWVFA6l8U62MLKz29rRfpTlYdCqLdpLo1/Yd4zZwSbnUaDfciIAowAqvq7YFnWq9hrhdg1KYgc1lQ==", + "dev": true + }, + "node_modules/@massalabs/massa-web3/node_modules/bs58": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/bs58/-/bs58-6.0.0.tgz", + "integrity": "sha512-PD0wEnEYg6ijszw/u8s+iI3H17cTymlrwkKhDhPZq+Sokl3AU4htyBFTjAeNAlCCmg0f53g6ih3jATyCKftTfw==", + "dev": true, + "dependencies": { + "base-x": "^5.0.0" + } + }, + "node_modules/@massalabs/massa-web3/node_modules/bs58check": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/bs58check/-/bs58check-4.0.0.tgz", + "integrity": "sha512-FsGDOnFg9aVI9erdriULkd/JjEWONV/lQE5aYziB5PoBsXRind56lh8doIZIc9X4HoxT5x4bLjMWN1/NB8Zp5g==", + "dev": true, + "dependencies": { + "@noble/hashes": "^1.2.0", + "bs58": "^6.0.0" + } + }, "node_modules/@massalabs/prettier-config-as": { "version": "0.0.2", "dev": true, @@ -4085,6 +4112,12 @@ "dev": true, "license": "MIT" }, + "node_modules/lodash.isequal": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", + "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==", + "dev": true + }, "node_modules/lodash.merge": { "version": "4.6.2", "dev": true, diff --git a/packages/sc-project-initializer/commands/init/src/deploy.ts b/packages/sc-project-initializer/commands/init/src/deploy.ts index 2be65864..2dc23e0b 100644 --- a/packages/sc-project-initializer/commands/init/src/deploy.ts +++ b/packages/sc-project-initializer/commands/init/src/deploy.ts @@ -9,7 +9,7 @@ import { import { getScByteCode } from './utils'; const account = await Account.fromEnv(); -const provider = Web3Provider.newPublicBuildnetProvider(account); +const provider = Web3Provider.buildnet(account); console.log('Deploying contract...');