From 03cb45147d1997c758a17d84876aceb885e09318 Mon Sep 17 00:00:00 2001 From: Senji888 <44082144+Ben-Rey@users.noreply.github.com> Date: Thu, 24 Aug 2023 10:58:34 +0200 Subject: [PATCH] Patch version buildnet (#462) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add max_coins (#233) * little style fix (#234) * removing esmify (#236) * update version (#241) * improved error message (#245) * 243 testnet 23 objects format changes (#246) * first changements * some fixes * fix buyrolls * clean * update version for testnet 23 (#248) * remove env variables (#244) * fix powered-by.yml (#239) * remove fee from IReadData (#253) * adding EventEmitter polyfill (#265) * adding EventEmitter polyfill * handling support of StringDecoder in both browser and node.js * Generate coverage badge * [CLEAN] Remove unnecessary else * [CLEAN] suspend job temporarily --------- Co-authored-by: massabot Co-authored-by: Ben * 261 setup test environment (#262) Co-authored-by: massabot Co-authored-by: Senji888 <44082144+Ben-Rey@users.noreply.github.com> * 269 test getBaseAccount, getWalletAccounts (#271) Co-authored-by: massabot * 251 refactor code for testnet 23 (#256) Co-authored-by: Grégory Libert * 273 fix ci (#274) * Generate coverage badge * fix ci (Smart contract example Deploy and Smart contract example Deploy) --------- Co-authored-by: massabot * tests getWalletAccountByAddress, addsecretkeystowallet (#272) * Generate powered-by * add u128, u256 serializers (#278) * add u128, u256 serializers * Generate coverage badge * add u128, u256 args support * Generate coverage badge * review changes --------- Co-authored-by: massabot * 269 test walletGenerateNewAccount & getAccountFromSecretKey (#279) * tests walletSignMessage & signMessage (#280) * walletInfo, removeAddressesFromWallet, cleanWallet (#281) * walletInfo, removeAddressesFromWallet, cleanWallet * ci rpc url * Generate coverage badge * removing useless test * fix conflicts * Generate coverage badge --------- Co-authored-by: massabot * 269 tests getAccountBalance and verifySignature (#282) * verifySignature test, fix verifySignature and names * fix signMessage and verifySignature interfaces * getAccountBalance test * mock on console.log * [TEST] skip node dependent test * Generate coverage badge --------- Co-authored-by: Ben Co-authored-by: massabot * add the "getProtoFiles" method to the SmartContractsClient class (#267) * Generate coverage badge * Delete test-wallet-example.yml (#289) * update readSmartContract documentation (#255) Co-authored-by: Senji888 <44082144+Ben-Rey@users.noreply.github.com> * 284 tests baseclient setProviders, getPrivateProviders & getPublicProviders (#285) Co-authored-by: Grégory Libert * 292 clientFactory unit tests (#294) * defaultClient factory * customClientFactory * Generate coverage badge * fix sonarcloud --------- Co-authored-by: massabot * 295 unit tests eventpoller (#296) * setup * pollEvents test * emit massa_event_error test * Generate coverage badge * timeout test * fix ci * setup * pollEvents test * emit massa_event_error test * timeout test * fix ci * Generate coverage badge * Generate coverage badge * Add console error mock * Generate coverage badge * remove useless code mock * Generate coverage badge --------- Co-authored-by: massabot Co-authored-by: Ben * 284 tests baseclient sendJsonRPCRequest (#287) * getprivateproviders ok * getpublicproviders ok * put public fonction instead of protected * fix setProviders when empty array provided * setProviders * Generate coverage badge * ci testing api * getProviderForRpcMethod * put getProviderForRpcMethod public (for testing purpose) * Generate coverage badge * adding nock to mock http request * promisifyJsonRpcCall needs to be fixed * handle errors from rpc * fix urls * Generate coverage badge * remove old tests which are in other pr * Generate coverage badge * fix period offset * testing protected functions * Generate coverage badge * put back protected/private sig * new tests with private functions * private signatures for functions * removing nock * remove old tests * api urls * Generate coverage badge * private sig * fix describe name * add tests missing for coverage * Generate coverage badge * mock console.error * resolve conflicts * Generate coverage badge * adding https * Generate coverage badge * export requestHeaders --------- Co-authored-by: massabot * Tests walletclient sendtransaction (#311) * Generate coverage badge * Generate coverage badge * add support for u128 and u256 arrays (#299) * add support for u128 and u256 arrays * add missing exports * Generate coverage badge --------- Co-authored-by: massabot * 297 tests eventPoller: startPolling, stopPolling & compareByThreadAndPeriod (#301) Co-authored-by: Grégory Libert * Generate coverage badge * 313 tests walletclient buyrolls sellrolls (#314) * feat(proto): modifed proto fetcher to generate files in place (#309) Co-authored-by: Grégory Libert * Generate coverage badge * Test public api client (#319) * 322 test smartContractsClient: deploySmartcontract (#325) * 307 tests walletclient addaccountstowallet getwalletaddressesinfo getthreadnumber (#310) * tests addAccountsToWallet * Generate coverage badge * add a waletinfo test * Generate coverage badge * getThreadNumber test * Generate coverage badge * add tests to walletInfo * add getwalletaddressesinfo test + clean ts exception * add final test to getwalletaddressesinfo * mockData to pass ci * Generate coverage badge * fixing conflicts with main * Generate coverage badge * Generate coverage badge * fix retryStrategyOn test * fix code smell * fix unnecessary await * fix test because of code smell changes * solve conflicts * Generate coverage badge * Generate coverage badge --------- Co-authored-by: massabot * 322 test smartContractsClient: callSmartContract (#328) * fix serialization of string arrays (#316) * fix serialization of string arrays * Generate coverage badge * Generate coverage badge --------- Co-authored-by: massabot * 322 test smartContractsClient: ReadSmartContract (#329) * ci: support publish for multiple networks (#326) * fix ci missing branch name (#340) * fix ci release (#347) * 322 test smartcontractsclient: getContractBalance & getFilteredScOutputEvents (#330) * tests smartContractsClient: awaitRequiredOperationStatus (#338) Co-authored-by: Grégory Libert * Remove DS_Store and add to gitignore (#351) * unit tests for time.ts (#312) * unit tests for time.ts * fix --------- Co-authored-by: massabot * clean ci (#355) * clean ci * trigger only on main and buildnet * commit only on main --------- Co-authored-by: julienbrs <106234742+julienbrs@users.noreply.github.com> * fix skipped tests (#356) * fix skipped tests --------- Co-authored-by: massabot * 346 tests privateapiclient (#348) Co-authored-by: Grégory Libert * encode_decode unit tests (#321) * encode_decode unit tests --------- Co-authored-by: massabot * tests for client.ts (#353) Co-authored-by: julienbrs <106234742+julienbrs@users.noreply.github.com> Co-authored-by: Grégory Libert * 302 unit tests retry execute function (#305) * added unit tests for retryExecuteFunction.ts * adding console error mock * add missing args parameter tests * fix lint --------- Co-authored-by: julienbrs <106234742+julienbrs@users.noreply.github.com> * Generate coverage badge * update version (#357) * SmartContractsClient.ts : getOperationStatus test (#334) * 358 test smartcontractsclient executereadonlysmartcontract (#359) Co-authored-by: Grégory Libert * Generate coverage badge * clean SmartContractClient.spec.ts (#364) * remove warnings * validSignature mock data * cleaning * clean * add test * clean mock data * add tests (#366) * 370 add more tests for number.ts (#371) * add tests to catch errors * fix tests * fix sonarcloud on privateApiClient spec (#361) * add tests arrayToBytes & bytesToArray (#369) * 360 mock tests getaccountbalance + small additional tests (#362) * Generate coverage badge * add buildnet in defaultProvider (#372) * add buildnet in defaultProvider * add new providers --------- Co-authored-by: julienbrs <106234742+julienbrs@users.noreply.github.com> * add tests (#368) * fix (and remake) getProtoFiles (#379) * fix smells and set getProtoFiles to static (#381) * export PROTO_FILE_SEPARATOR and MASSA_PROTOFILE_KEY (#383) * add keyAndAddresses test (#385) * simplify getProtofiles (#388) * fixed (#389) * Refactor verifySignature code (#378) Co-authored-by: Senji888 <44082144+Ben-Rey@users.noreply.github.com> Co-authored-by: Grégory Libert * fix rpc uint8array buffer instanciation (#396) * update getBlocks documentation (#403) * delete duplicate mock data file (#394) * delete useless file * transfer content of deleted file * new test of wallet operations * comment rolls test * Revert "new test of wallet operations" This reverts commit ad3c880f27232de22425b9f3a92d2c531887baf1. * remove getProtoFile (and move it to proto-cli) (#406) * remove getProtoFile * Delete MassaProtoFile.ts * Generate coverage badge * update version minor (#407) * update version major (#408) * fix rpc uint8array buffer instanciation (#413) * add some serializer tests (#414) * 374 update readme for testnet 23 (#375) * add getDatastoreEntries remark * update Readme * update README * update readme * purge readme useless informations * update readme * Convert datastore entries to real uint8Array (#416) * Convert datastore entries to real uint8Array * Refactor datastore entries conversion to use map * Refactor the conversion of datastore entries to use map * Change entry to e * Remove as cast on datastore entries * update url of readme (#419) * update url * fix url * add a readSmartContract method (#418) * add a readSmartContract method that could be called without initiating a smartContractClient * Update src/web3/SmartContractsClient.ts Co-authored-by: Senji888 <44082144+Ben-Rey@users.noreply.github.com> * fix code smell --------- Co-authored-by: Senji888 <44082144+Ben-Rey@users.noreply.github.com> * Generate coverage badge * 420 reorganizing typescript doc (#421) * removing xbqcrypto and time from typedoc modules * removing time and xbqcrypto from modules sidebar * adding navigation link + sidebar links * fix links * fix typo (#410) * Bump word-wrap from 1.2.3 to 1.2.4 (#405) Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4. - [Release notes](https://github.com/jonschlinkert/word-wrap/releases) - [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4) --- updated-dependencies: - dependency-name: word-wrap dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump tough-cookie from 4.1.2 to 4.1.3 (#391) Bumps [tough-cookie](https://github.com/salesforce/tough-cookie) from 4.1.2 to 4.1.3. - [Release notes](https://github.com/salesforce/tough-cookie/releases) - [Changelog](https://github.com/salesforce/tough-cookie/blob/master/CHANGELOG.md) - [Commits](https://github.com/salesforce/tough-cookie/compare/v4.1.2...v4.1.3) --- updated-dependencies: - dependency-name: tough-cookie dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Introduce wallet provider (#423) * Use wallet provider in massa-web3 * Remove constraint private provider * Remove test on constraint private API and fix parameters format in call sc using wallet providers. * Remove duplicate readsmart contract * Rework client initialization * Generate powered-by * Update package json (#425) * Remove args and use web3-utils * Update version * update p json --------- Co-authored-by: AurelienFT * Generate powered-by * export withTimeoutRejection (#431) * Update index.ts * export Web3Account and WalletProviderAccount * test fix example (#429) * test fix example * fix example smart contract * fix wallet example * remove slice * try fix wallet example * fix test-example * clean console.log --------- Co-authored-by: julienbrs <106234742+julienbrs@users.noreply.github.com> * attempt to fix sourcemap error (#432) * move some interfaces to web3-utils (#434) * move some interfaces to web3-utils * update web3-utils * Generate powered-by * adding errors (#438) * adding errors * fixing some mockData * adding errors throw * Update src/web3/SmartContractsClient.ts * use getContractBalance instead (#441) * update to latest version of axios (#446) * Generate powered-by * add Args support for callSmartContract (#449) * add Args support for callSmartContract * update web3-utils import * fix ci * fix ci * fix tests * Generate powered-by * Revert "update to latest version of axios (#446)" (#450) This reverts commit 4a6b2c6ed24c350d730cbfebc053b85352c17b04. * Generate powered-by * fix args bearby (#451) * fix args bearby * update version web3-utils * patch web3-utils * Generate powered-by * readOnly accept Args (#452) * 444 make coins field optional (#445) * coins is 0 by default and optional * unit test * new EOperationStatus (#448) * new eoperationStatus * all tests ok except included_pending * update web3 utils version * retrocompatibility * Generate powered-by * add string and uint8Array support for sign function (#454) * Generate coverage badge * Fix sign method (#455) * fix sign * fix sign * return publicKey in Isignature * fix tests * update verifySignature * fix tests * update wallet pro (#458) * update wallet pro * update version minor * Generate powered-by * fix test (#459) * fix signature from wallet pro (#461) * fix signature from wallet pro * fix wallet pro version * patch * update package-lock.json * export IBaseAccount * patch --------- Signed-off-by: dependabot[bot] Co-authored-by: julienbrs <106234742+julienbrs@users.noreply.github.com> Co-authored-by: Adrian C <92168447+windushka@users.noreply.github.com> Co-authored-by: Nathan HERVIER <113121626+Elli610@users.noreply.github.com> Co-authored-by: massabot Co-authored-by: Grégory Libert Co-authored-by: Grégory Libert Co-authored-by: Pierre Seznec <34547263+peterjah@users.noreply.github.com> Co-authored-by: 0xSwapFeeder <72012341+0xSwapFeeder@users.noreply.github.com> Co-authored-by: Adrien LF Co-authored-by: c1tt1 Co-authored-by: AurelienFT <32803821+AurelienFT@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: AurelienFT --- README.md | 2 +- package-lock.json | 350 ++++++++++++--------- package.json | 4 +- powered-by.md | 5 +- src/index.ts | 2 + src/web3/accounts/WalletProviderAccount.ts | 7 +- 6 files changed, 210 insertions(+), 160 deletions(-) diff --git a/README.md b/README.md index 8759dfb3..3a30b48a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # massa-web3 ![Node CI](https://github.com/massalabs/massa-web3/workflows/Node.js%20CI/badge.svg) -![check-code-coverage](https://img.shields.io/badge/coverage-59.37%25-red) +![check-code-coverage](https://img.shields.io/badge/coverage-95.25%25-green) > **PREREQUISITES:** > diff --git a/package-lock.json b/package-lock.json index a608f71e..0b8dc7db 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,15 @@ { "name": "@massalabs/massa-web3", - "version": "1.24.0", + "version": "1.24.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@massalabs/massa-web3", - "version": "1.24.0", + "version": "1.24.1", "license": "(MIT AND Apache-2.0)", "dependencies": { - "@massalabs/wallet-provider": "^1.3.2", + "@massalabs/wallet-provider": "^1.3.3", "@noble/ed25519": "^1.7.3", "@noble/hashes": "^1.2.0", "@types/ws": "^8.5.4", @@ -106,16 +106,81 @@ "dev": true }, "node_modules/@babel/code-frame": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.5.tgz", - "integrity": "sha512-Xmwn266vad+6DAqEB2A6V/CcZVp62BbwVmcOJc2RPuwih1kw02TjQvWVWlcKGbBPd+8/0V5DEkOcizRGYsspYQ==", + "version": "7.22.10", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.10.tgz", + "integrity": "sha512-/KKIMG4UEL35WmI9OlvMhurwtytjvXoFcGNrOvyG9zIzA8YmPjVtIZUf7b05+TPO7G7/GEmLHDaoCgACHl9hhA==", "dependencies": { - "@babel/highlight": "^7.22.5" + "@babel/highlight": "^7.22.10", + "chalk": "^2.4.2" }, "engines": { "node": ">=6.9.0" } }, + "node_modules/@babel/code-frame/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==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/code-frame/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==", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/code-frame/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==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/code-frame/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==" + }, + "node_modules/@babel/code-frame/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==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@babel/code-frame/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==", + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/code-frame/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==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/@babel/compat-data": { "version": "7.22.9", "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.9.tgz", @@ -125,20 +190,20 @@ } }, "node_modules/@babel/core": { - "version": "7.22.9", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.9.tgz", - "integrity": "sha512-G2EgeufBcYw27U4hhoIwFcgc1XU7TlXJ3mv04oOv1WCuo900U/anZSPzEqNjwdjgffkk2Gs0AN0dW1CKVLcG7w==", + "version": "7.22.10", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.10.tgz", + "integrity": "sha512-fTmqbbUBAwCcre6zPzNngvsI0aNrPZe77AeqvDxWM9Nm+04RrJ3CAmGHA9f7lJQY6ZMhRztNemy4uslDxTX4Qw==", "dependencies": { "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.22.5", - "@babel/generator": "^7.22.9", - "@babel/helper-compilation-targets": "^7.22.9", + "@babel/code-frame": "^7.22.10", + "@babel/generator": "^7.22.10", + "@babel/helper-compilation-targets": "^7.22.10", "@babel/helper-module-transforms": "^7.22.9", - "@babel/helpers": "^7.22.6", - "@babel/parser": "^7.22.7", + "@babel/helpers": "^7.22.10", + "@babel/parser": "^7.22.10", "@babel/template": "^7.22.5", - "@babel/traverse": "^7.22.8", - "@babel/types": "^7.22.5", + "@babel/traverse": "^7.22.10", + "@babel/types": "^7.22.10", "convert-source-map": "^1.7.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -153,11 +218,6 @@ "url": "https://opencollective.com/babel" } }, - "node_modules/@babel/core/node_modules/convert-source-map": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", - "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==" - }, "node_modules/@babel/core/node_modules/semver": { "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", @@ -167,11 +227,11 @@ } }, "node_modules/@babel/generator": { - "version": "7.22.9", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.9.tgz", - "integrity": "sha512-KtLMbmicyuK2Ak/FTCJVbDnkN1SlT8/kceFTiuDiiRUUSMnHMidxSCdG4ndkTOHHpoomWe/4xkvHkEOncwjYIw==", + "version": "7.22.10", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.10.tgz", + "integrity": "sha512-79KIf7YiWjjdZ81JnLujDRApWtl7BxTqWD88+FFdQEIOG8LJ0etDOM7CXuIgGJa55sGOwZVwuEsaLEm0PJ5/+A==", "dependencies": { - "@babel/types": "^7.22.5", + "@babel/types": "^7.22.10", "@jridgewell/gen-mapping": "^0.3.2", "@jridgewell/trace-mapping": "^0.3.17", "jsesc": "^2.5.1" @@ -181,9 +241,9 @@ } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.22.9", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.9.tgz", - "integrity": "sha512-7qYrNM6HjpnPHJbopxmb8hSPoZ0gsX8IvUS32JGVoy+pU9e5N0nLr1VjJoR6kA4d9dmGLxNYOjeB8sUDal2WMw==", + "version": "7.22.10", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.10.tgz", + "integrity": "sha512-JMSwHD4J7SLod0idLq5PKgI+6g/hLD/iuWBq08ZX49xE14VpVEojJ5rHWptpirV2j020MvypRLAXAO50igCJ5Q==", "dependencies": { "@babel/compat-data": "^7.22.9", "@babel/helper-validator-option": "^7.22.5", @@ -193,9 +253,6 @@ }, "engines": { "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" } }, "node_modules/@babel/helper-compilation-targets/node_modules/semver": { @@ -321,25 +378,25 @@ } }, "node_modules/@babel/helpers": { - "version": "7.22.6", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.22.6.tgz", - "integrity": "sha512-YjDs6y/fVOYFV8hAf1rxd1QvR9wJe1pDBZ2AREKq/SDayfPzgk0PBnVuTCE5X1acEpMMNOVUqoe+OwiZGJ+OaA==", + "version": "7.22.10", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.22.10.tgz", + "integrity": "sha512-a41J4NW8HyZa1I1vAndrraTlPZ/eZoga2ZgS7fEr0tZJGVU4xqdE80CEm0CcNjha5EZ8fTBYLKHF0kqDUuAwQw==", "dependencies": { "@babel/template": "^7.22.5", - "@babel/traverse": "^7.22.6", - "@babel/types": "^7.22.5" + "@babel/traverse": "^7.22.10", + "@babel/types": "^7.22.10" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/highlight": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.5.tgz", - "integrity": "sha512-BSKlD1hgnedS5XRnGOljZawtag7H1yPfQp0tdNJCHoH6AZ+Pcm9VvkrK59/Yy593Ypg0zMxH2BxD1VPYUQ7UIw==", + "version": "7.22.10", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.10.tgz", + "integrity": "sha512-78aUtVcT7MUscr0K5mIEnkwxPE0MaxkR5RxRwuHaQ+JuU5AmTPhY+do2mdzVTnIJJpyBglql2pehuBIWHug+WQ==", "dependencies": { "@babel/helper-validator-identifier": "^7.22.5", - "chalk": "^2.0.0", + "chalk": "^2.4.2", "js-tokens": "^4.0.0" }, "engines": { @@ -411,9 +468,9 @@ } }, "node_modules/@babel/parser": { - "version": "7.22.7", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.7.tgz", - "integrity": "sha512-7NF8pOkHP5o2vpmGgNGcfAeCvOYhGLyA3Z4eBQkT1RJlWu47n63bCs93QfJ2hIAFCil7L5P2IWhs1oToVgrL0Q==", + "version": "7.22.10", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.10.tgz", + "integrity": "sha512-lNbdGsQb9ekfsnjFGhEiF4hfFqGgfOP3H3d27re3n+CGhNuTSUEQdfWk556sTLNTloczcdM5TYF2LhzmDQKyvQ==", "bin": { "parser": "bin/babel-parser.js" }, @@ -585,9 +642,9 @@ } }, "node_modules/@babel/runtime": { - "version": "7.22.6", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.6.tgz", - "integrity": "sha512-wDb5pWm4WDdF6LFUde3Jl8WzPA+3ZbxYqkC6xAXuD3irdEHN1k0NfTRrJD8ZD378SJ61miMLCqIOXYhd8x+AJQ==", + "version": "7.22.10", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.10.tgz", + "integrity": "sha512-21t/fkKLMZI4pqP2wlmsQAWnYW1PDyKyyUV4vCi+B25ydmdaYTKXPwCj0BzSUnZf4seIiYvSA3jcZ3gdsMFkLQ==", "dev": true, "dependencies": { "regenerator-runtime": "^0.14.0" @@ -596,6 +653,12 @@ "node": ">=6.9.0" } }, + "node_modules/@babel/runtime/node_modules/regenerator-runtime": { + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.0.tgz", + "integrity": "sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA==", + "dev": true + }, "node_modules/@babel/template": { "version": "7.22.5", "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.5.tgz", @@ -610,18 +673,18 @@ } }, "node_modules/@babel/traverse": { - "version": "7.22.8", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.8.tgz", - "integrity": "sha512-y6LPR+wpM2I3qJrsheCTwhIinzkETbplIgPBbwvqPKc+uljeA5gP+3nP8irdYt1mjQaDnlIcG+dw8OjAco4GXw==", + "version": "7.22.10", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.10.tgz", + "integrity": "sha512-Q/urqV4pRByiNNpb/f5OSv28ZlGJiFiiTh+GAHktbIrkPhPbl90+uW6SmpoLyZqutrg9AEaEf3Q/ZBRHBXgxig==", "dependencies": { - "@babel/code-frame": "^7.22.5", - "@babel/generator": "^7.22.7", + "@babel/code-frame": "^7.22.10", + "@babel/generator": "^7.22.10", "@babel/helper-environment-visitor": "^7.22.5", "@babel/helper-function-name": "^7.22.5", "@babel/helper-hoist-variables": "^7.22.5", "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/parser": "^7.22.7", - "@babel/types": "^7.22.5", + "@babel/parser": "^7.22.10", + "@babel/types": "^7.22.10", "debug": "^4.1.0", "globals": "^11.1.0" }, @@ -638,9 +701,9 @@ } }, "node_modules/@babel/types": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.5.tgz", - "integrity": "sha512-zo3MIHGOkPOfoRXitsgHLjEXmlDaD/5KU1Uzuc9GNiZPhSqVxVRtxuPaSBZDsYZ9qV88AjtMtWW7ww98loJ9KA==", + "version": "7.22.10", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.10.tgz", + "integrity": "sha512-obaoigiLrlDZ7TUQln/8m4mSqIW2QFeOrCQc9r+xsaHGNoplVNYlRVpsfE8Vj35GEm2ZH4ZhrNYogs/3fj85kg==", "dependencies": { "@babel/helper-string-parser": "^7.22.5", "@babel/helper-validator-identifier": "^7.22.5", @@ -722,9 +785,9 @@ } }, "node_modules/@eslint/eslintrc": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.0.tgz", - "integrity": "sha512-Lj7DECXqIVCqnqjjHMPna4vn6GJcMgul/wuS0je9OZ9gsL0zzDpKPVtcG1HaDVc+9y+qgXneTeUMbCqXJNpH1A==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.1.tgz", + "integrity": "sha512-9t7ZA7NGGK8ckelF0PQCfcxIUzs1Md5rrO6U/c+FIQNanea5UZC0wqKXH4vHBccmu4ZJgZ2idtPeW7+Q2npOEA==", "dev": true, "dependencies": { "ajv": "^6.12.4", @@ -745,9 +808,9 @@ } }, "node_modules/@eslint/js": { - "version": "8.44.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.44.0.tgz", - "integrity": "sha512-Ag+9YM4ocKQx9AarydN0KY2j0ErMHNIocPDrVo8zAE44xLTjEtz81OdR68/cydGtk6m6jDb5Za3r2useMzYmSw==", + "version": "8.46.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.46.0.tgz", + "integrity": "sha512-a8TLtmPi8xzPkCbp/OGFUo5yhRkHM2Ko9kOWP4znJr0WAhWyThaw3PnwX4vOTWOAMsV2uRt32PPDcEz63esSaA==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -1257,6 +1320,11 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "node_modules/@jest/transform/node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==" + }, "node_modules/@jest/types": { "version": "29.6.1", "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.1.tgz", @@ -1403,9 +1471,9 @@ } }, "node_modules/@massalabs/wallet-provider": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@massalabs/wallet-provider/-/wallet-provider-1.3.2.tgz", - "integrity": "sha512-aqQTueogva2viRDR5kEZU4ePmyix7F84Z0HvpwbXA7Rzx01aq5pnhMuMmBIdHyViN2B+zOQvtKYmepEv/NkvBg==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@massalabs/wallet-provider/-/wallet-provider-1.3.3.tgz", + "integrity": "sha512-43yix68rJPrNBl8T8cnYFLhX0WI+jIKMLjC5Bp+PEyl0y1jQh4bUg7jY/vocFdlBkD5MaxUQ55rAoIlOLLmPAA==", "dependencies": { "@hicaru/bearby.js": "^0.4.7", "@massalabs/web3-utils": "^1.4.1", @@ -1669,9 +1737,9 @@ } }, "node_modules/@types/eslint": { - "version": "8.44.1", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.44.1.tgz", - "integrity": "sha512-XpNDc4Z5Tb4x+SW1MriMVeIsMoONHCkWFMkR/aPJbzEsxqHy+4Glu/BqTdPrApfDeMaXbtNh6bseNgl5KaWrSg==", + "version": "8.44.2", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.44.2.tgz", + "integrity": "sha512-sdPRb9K6iL5XZOmBubg8yiFp5yS/JdUDQsq5e6h95km91MCYMuvp7mh1fjPEYUhvHepKpZOjnEaMBR4PxjWDzg==", "dependencies": { "@types/estree": "*", "@types/json-schema": "*" @@ -1768,9 +1836,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "18.17.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.17.1.tgz", - "integrity": "sha512-xlR1jahfizdplZYRU59JlUx9uzF1ARa8jbhM11ccpCJya8kvos5jwdm2ZAgxSCwOl0fq21svP18EVwPBXMQudw==" + "version": "18.17.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.17.4.tgz", + "integrity": "sha512-ATL4WLgr7/W40+Sp1WnNTSKbgVn6Pvhc/2RHAdt8fl6NsQyp4oPCi2eKcGOvA494bwf1K/W6nGgZ9TwDqvpjdw==" }, "node_modules/@types/prettier": { "version": "2.7.3", @@ -2578,9 +2646,9 @@ } }, "node_modules/assemblyscript": { - "version": "0.27.6", - "resolved": "https://registry.npmjs.org/assemblyscript/-/assemblyscript-0.27.6.tgz", - "integrity": "sha512-KYY2lJEYX97vR/8specAbIrWoEXf05bYhKM2iOiqZxOmpr87KVSpbzv70Q+CBV4Ug7mT6zIyOZr1SBXxE3tM/g==", + "version": "0.27.8", + "resolved": "https://registry.npmjs.org/assemblyscript/-/assemblyscript-0.27.8.tgz", + "integrity": "sha512-hsop84YxUiaz84YykRrxMke+0RmFAyclqKnZXd0bYp48+mMbnVZup/LJPKVeIk1KVzRneo1xzbnEu7fCS3aVsw==", "dev": true, "peer": true, "dependencies": { @@ -2873,9 +2941,9 @@ } }, "node_modules/browserslist": { - "version": "4.21.9", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.9.tgz", - "integrity": "sha512-M0MFoZzbUrRU4KNfCrDLnvyE7gub+peetoTid3TBIqtunaDJyXlwhakT+/VkvSXcfIzFfK/nkCs4nmyTmxdNSg==", + "version": "4.21.10", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.10.tgz", + "integrity": "sha512-bipEBdZfVH5/pwrvqc+Ub0kUPVfGUhlKxbvfD+z1BDnPEO/X98ruXGA1WP5ASpAFKan7Qr6j736IacbZQuAlKQ==", "funding": [ { "type": "opencollective", @@ -2891,9 +2959,9 @@ } ], "dependencies": { - "caniuse-lite": "^1.0.30001503", - "electron-to-chromium": "^1.4.431", - "node-releases": "^2.0.12", + "caniuse-lite": "^1.0.30001517", + "electron-to-chromium": "^1.4.477", + "node-releases": "^2.0.13", "update-browserslist-db": "^1.0.11" }, "bin": { @@ -3052,9 +3120,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001517", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001517.tgz", - "integrity": "sha512-Vdhm5S11DaFVLlyiKu4hiUTkpZu+y1KA/rZZqVQfOD5YdDT/eQKlkt7NaE0WGOFgX32diqt9MiP9CAiFeRklaA==", + "version": "1.0.30001519", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001519.tgz", + "integrity": "sha512-0QHgqR+Jv4bxHMp8kZ1Kn8CH55OikjKJ6JmKkZYP1F3D7w+lnFXF70nG5eNfsZS89jadi5Ywy5UCSKLAglIRkg==", "funding": [ { "type": "opencollective", @@ -3450,9 +3518,9 @@ "dev": true }, "node_modules/convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==" + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==" }, "node_modules/cosmiconfig": { "version": "5.2.1", @@ -3617,9 +3685,9 @@ "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==" }, "node_modules/dedent": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.2.0.tgz", - "integrity": "sha512-i4tcg0ClgvMUSxwHpt+NHQ01ZJmAkl6eBvDNrSZG9e+oLRTCSHv0wpr/Bzjpf6CwKeIHGevE1M34Y1Axdms5VQ==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.1.tgz", + "integrity": "sha512-+LxW+KLWxu3HW3M2w2ympwtqPrqYRzU8fqi6Fhd18fBALe15blJPI/I4+UHveMVG6lJqB4JNd4UG0S5cnVHwIg==", "peerDependencies": { "babel-plugin-macros": "^3.1.0" }, @@ -3865,9 +3933,9 @@ "dev": true }, "node_modules/electron-to-chromium": { - "version": "1.4.473", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.473.tgz", - "integrity": "sha512-aVfC8+440vGfl06l8HKKn8/PD5jRfSnLkTTD65EFvU46igbpQRri1gxSzW9/+TeUlwYzrXk1sw867T96zlyECA==" + "version": "1.4.490", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.490.tgz", + "integrity": "sha512-6s7NVJz+sATdYnIwhdshx/N/9O6rvMxmhVoDSDFdj6iA45gHR8EQje70+RYsF4GeB+k0IeNSBnP7yG9ZXJFr7A==" }, "node_modules/elegant-spinner": { "version": "1.0.1", @@ -4089,15 +4157,15 @@ } }, "node_modules/eslint": { - "version": "8.45.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.45.0.tgz", - "integrity": "sha512-pd8KSxiQpdYRfYa9Wufvdoct3ZPQQuVuU5O6scNgMuOMYuxvH0IGaYK0wUFjo4UYYQQCUndlXiMbnxopwvvTiw==", + "version": "8.46.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.46.0.tgz", + "integrity": "sha512-cIO74PvbW0qU8e0mIvk5IV3ToWdCq5FYG6gWPHHkx6gNdjlbAYvtfHmlCMXxjcoVaIdwy/IAt3+mDkZkfvb2Dg==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.4.0", - "@eslint/eslintrc": "^2.1.0", - "@eslint/js": "8.44.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.1", + "@eslint/js": "^8.46.0", "@humanwhocodes/config-array": "^0.11.10", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", @@ -4107,9 +4175,9 @@ "debug": "^4.3.2", "doctrine": "^3.0.0", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.0", - "eslint-visitor-keys": "^3.4.1", - "espree": "^9.6.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.2", + "espree": "^9.6.1", "esquery": "^1.4.2", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", @@ -4183,9 +4251,9 @@ } }, "node_modules/eslint-config-prettier": { - "version": "8.9.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.9.0.tgz", - "integrity": "sha512-+sbni7NfVXnOpnRadUA8S28AUlsZt9GjgFvABIRL9Hkn8KqNzOp+7Lw4QWtrwn20KzU3wqu1QoOj2m+7rKRqkA==", + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.10.0.tgz", + "integrity": "sha512-SM8AMJdeQqRYT9O9zguiruQZaN7+z+E4eAP9oiLNGKMtomwaB1E9dcgUD6ZAn/eQAb52USbvezbiljfZUhbJcg==", "dev": true, "bin": { "eslint-config-prettier": "bin/cli.js" @@ -4530,9 +4598,9 @@ } }, "node_modules/eslint/node_modules/eslint-scope": { - "version": "7.2.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.1.tgz", - "integrity": "sha512-CvefSOsDdaYYvxChovdrPo/ZGt8d5lrJWleAc1diXRKhHGiTYEI26cvo8Kle/wGnsizoCJjK73FMg1/IkIwiNA==", + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", "dev": true, "dependencies": { "esrecurse": "^4.3.0", @@ -4963,9 +5031,9 @@ } }, "node_modules/foreground-child/node_modules/signal-exit": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.0.2.tgz", - "integrity": "sha512-MY2/qGx4enyjprQnFaZsHib3Yadh3IXyV2C321GY0pjGfVBu4un0uDJkwgdxqO+Rdx8JMT8IfJIRwbYVz3Ob3Q==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", "engines": { "node": ">=14" }, @@ -6120,11 +6188,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==" - }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", @@ -6214,9 +6277,9 @@ "dev": true }, "node_modules/jackspeak": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.2.2.tgz", - "integrity": "sha512-mgNtVv4vUuaKA97yxUHoA3+FkuhtxkjdXEWOyB/N76fjy0FjezEt34oy3epBtvCvS+7DyKwqCFWx/oJLV5+kCg==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.2.3.tgz", + "integrity": "sha512-pF0kfjmg8DJLxDrizHoCZGUFz4P4czQ3HyfW4BU0ffebYkzAVlBywp5zaxW/TM+r0sGbmrQdi8EQQVTJFxnGsQ==", "dependencies": { "@isaacs/cliui": "^8.0.2" }, @@ -8116,9 +8179,9 @@ } }, "node_modules/node-ts/node_modules/@types/node": { - "version": "16.18.39", - "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.39.tgz", - "integrity": "sha512-8q9ZexmdYYyc5/cfujaXb4YOucpQxAV4RMG0himLyDUOEr8Mr79VrqsFI+cQ2M2h89YIuy95lbxuYjxT4Hk4kQ==", + "version": "16.18.40", + "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.40.tgz", + "integrity": "sha512-+yno3ItTEwGxXiS/75Q/aHaa5srkpnJaH+kdkTVJ3DtJEwv92itpKbxU+FjPoh2m/5G9zmUQfrL4A4C13c+iGA==", "dev": true }, "node_modules/normalize-package-data": { @@ -8676,9 +8739,9 @@ } }, "node_modules/path-scurry/node_modules/lru-cache": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.0.0.tgz", - "integrity": "sha512-svTf/fzsKHffP42sujkO/Rjs37BCIsQVRCeNYIm9WN8rgT7ffoUnRtZCqU+6BqcSBdv8gwJeTz8knJpgACeQMw==", + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.0.1.tgz", + "integrity": "sha512-IJ4uwUTi2qCccrioU6g9g/5rvvVl13bsdczUUcqbciD9iLr095yj8DQKdObriEvuNSx325N1rV1O0sJFszx75g==", "engines": { "node": "14 || >=16.14" } @@ -10167,12 +10230,6 @@ "node": ">= 10.13.0" } }, - "node_modules/regenerator-runtime": { - "version": "0.14.0", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.0.tgz", - "integrity": "sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA==", - "dev": true - }, "node_modules/regexp-util": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/regexp-util/-/regexp-util-1.2.2.tgz", @@ -10490,24 +10547,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/safe-array-concat/node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==" + }, "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" }, "node_modules/safe-regex-test": { "version": "1.0.0", @@ -12125,9 +12173,9 @@ } }, "node_modules/vue-eslint-parser/node_modules/eslint-scope": { - "version": "7.2.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.1.tgz", - "integrity": "sha512-CvefSOsDdaYYvxChovdrPo/ZGt8d5lrJWleAc1diXRKhHGiTYEI26cvo8Kle/wGnsizoCJjK73FMg1/IkIwiNA==", + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", "dev": true, "dependencies": { "esrecurse": "^4.3.0", diff --git a/package.json b/package.json index e9014868..8cd56fbd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@massalabs/massa-web3", - "version": "1.24.0", + "version": "1.24.1", "description": "massa's web3 sdk client", "main": "dist/cmd/index.js", "module": "dist/esm/index.js", @@ -58,7 +58,7 @@ "bundle.min.js" ], "dependencies": { - "@massalabs/wallet-provider": "^1.3.2", + "@massalabs/wallet-provider": "^1.3.3", "@noble/ed25519": "^1.7.3", "@noble/hashes": "^1.2.0", "@types/ws": "^8.5.4", diff --git a/powered-by.md b/powered-by.md index 2cf50f8b..1b2843e6 100644 --- a/powered-by.md +++ b/powered-by.md @@ -189,7 +189,8 @@ The following is a list of all the dependencies of this project: **License:** MIT - perpetual -**Used version:** 18.17.1 + +**Used version:** 18.17.4 **Many thanks to:** n/a @@ -229,7 +230,7 @@ The following is a list of all the dependencies of this project: **License:** MIT - perpetual -**Used version:** 8.45.0 +**Used version:** 8.46.0 **Many thanks to:** [Nicholas C. Zakas](nicholas+npm@nczconsulting.com) diff --git a/src/index.ts b/src/index.ts index 3184c9c3..c3b56337 100644 --- a/src/index.ts +++ b/src/index.ts @@ -42,6 +42,8 @@ export { IExecuteReadOnlyData } from './interfaces/IExecuteReadOnlyData'; export { IExecuteReadOnlyResponse } from './interfaces/IExecuteReadOnlyResponse'; export { JsonRpcResponseData } from './interfaces/JsonRpcResponseData'; export { EOperationStatus } from './interfaces/EOperationStatus'; +export { IBaseAccount } from './interfaces/IBaseAccount'; + export { ITransactionOpType, IRollBuyOpType, diff --git a/src/web3/accounts/WalletProviderAccount.ts b/src/web3/accounts/WalletProviderAccount.ts index df0b3cc9..6f5e7a91 100644 --- a/src/web3/accounts/WalletProviderAccount.ts +++ b/src/web3/accounts/WalletProviderAccount.ts @@ -1,6 +1,5 @@ import { IBaseAccount } from '../../interfaces/IBaseAccount'; import { IAccount } from '@massalabs/wallet-provider'; -import { base58Encode } from '../../utils/Xbqcrypto'; import { ISignature } from '../../interfaces/ISignature'; import { IRollsData } from '../../interfaces/IRollsData'; import { ITransactionData } from '../../interfaces/ITransactionData'; @@ -18,12 +17,12 @@ export class WalletProviderAccount implements IBaseAccount { if (data instanceof Uint8Array) { data = Buffer.from(data); } + const signatureData = await this.account.sign(data); - let bytes_signature = signatureData.signature; - const base58Encoded = base58Encode(bytes_signature); + return { publicKey: signatureData.publicKey, - base58Encoded, + base58Encoded: signatureData.base58Encoded, }; }