From 0c5979e9fc4f78a3c6e54ab2796238ae994f2dd6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 8 Aug 2022 18:06:29 +0000 Subject: [PATCH] Version Packages (beta) --- .changeset/pre.json | 1 + demos/nextjs/package.json | 2 +- demos/parse-server/package.json | 4 ++-- demos/test-node/package.json | 2 +- packages/apiUtils/CHANGELOG.md | 21 +++++++++++++++++++++ packages/apiUtils/package.json | 4 ++-- packages/auth/CHANGELOG.md | 23 +++++++++++++++++++++++ packages/auth/package.json | 8 ++++---- packages/core/CHANGELOG.md | 16 ++++++++++++++++ packages/core/package.json | 2 +- packages/evmApi/CHANGELOG.md | 23 +++++++++++++++++++++++ packages/evmApi/package.json | 8 ++++---- packages/evmUtils/CHANGELOG.md | 21 +++++++++++++++++++++ packages/evmUtils/package.json | 4 ++-- packages/integration/package.json | 6 +++--- packages/moralis/CHANGELOG.md | 26 ++++++++++++++++++++++++++ packages/moralis/package.json | 14 +++++++------- packages/solApi/CHANGELOG.md | 23 +++++++++++++++++++++++ packages/solApi/package.json | 8 ++++---- packages/solUtils/CHANGELOG.md | 21 +++++++++++++++++++++ packages/solUtils/package.json | 4 ++-- 21 files changed, 208 insertions(+), 33 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index 0499e465d8..5fc7138f56 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -23,6 +23,7 @@ "chilly-chefs-sort", "curly-boats-stare", "early-points-hammer", + "flat-swans-type", "forty-yaks-tie", "green-avocados-hear", "itchy-feet-float", diff --git a/demos/nextjs/package.json b/demos/nextjs/package.json index 06cbcce311..1c97c6f40d 100644 --- a/demos/nextjs/package.json +++ b/demos/nextjs/package.json @@ -12,7 +12,7 @@ "next": "12.2.3", "react": "18.2.0", "react-dom": "18.2.0", - "moralis": "^2.0.0-beta.7", + "moralis": "^2.0.0-beta.8", "wagmi": "^0.5.11", "next-auth": "4.10.2", "axios": "^0.27.2", diff --git a/demos/parse-server/package.json b/demos/parse-server/package.json index bd23c1704a..2cef22728c 100644 --- a/demos/parse-server/package.json +++ b/demos/parse-server/package.json @@ -9,8 +9,8 @@ "express": "^4.18.1", "parse-dashboard": "^4.1.4", "parse-server": "^5.2.4", - "moralis": "^2.0.0-beta.7", - "@moralisweb3/core": "^2.0.0-beta.7" + "moralis": "^2.0.0-beta.8", + "@moralisweb3/core": "^2.0.0-beta.8" }, "devDependencies": { "mongodb-runner": "^4.9.0", diff --git a/demos/test-node/package.json b/demos/test-node/package.json index cde0405a2f..c501cfe355 100644 --- a/demos/test-node/package.json +++ b/demos/test-node/package.json @@ -11,7 +11,7 @@ "format:check": "prettier . \"src/**/*.+(js|ts|json)\" --check" }, "dependencies": { - "moralis": "^2.0.0-beta.7", + "moralis": "^2.0.0-beta.8", "dotenv": "^16.0.1" } } diff --git a/packages/apiUtils/CHANGELOG.md b/packages/apiUtils/CHANGELOG.md index 9ef4afb31b..3e0e85771a 100644 --- a/packages/apiUtils/CHANGELOG.md +++ b/packages/apiUtils/CHANGELOG.md @@ -1,5 +1,26 @@ # @moralisweb3/api-utils +## 2.0.0-beta.8 + +### Minor Changes + +- [#560](https://github.com/MoralisWeb3/Moralis-JS-SDK/pull/560) [`d413073`](https://github.com/MoralisWeb3/Moralis-JS-SDK/commit/d4130736a22b5e28da767864d57be8d2abcf5981) Thanks [@ErnoW](https://github.com/ErnoW)! - Improve Erc20Value logic by: + + - geters for Erc20 for: `token.decimals`, `token.name`, `token.symbol`, `token.contractAddress`, `token.chain`, `token.logo`, `token.logoHash` and `token.thumbnail`, + - adding an optional token reference for `Erc20Value`. This can be used by calling `Erc20Value.create(amount, { token })` + - fixes and additions for output of `Erc20Value`: + - `erc20Value.value` now returns the value in a decimal string `"123.567"` + - `erc20Value.amount` returns the Bignumber value withtout taking decimals into account + - `erc20Value.decimals` returns the decimals + - `erc20Value.toNumber()` returns the value in a decimal number (or throws an error if the value is too big): `123.456` + - `erc20Value.display()` returns the value in a readable string with the token symbol if available: `"123.456 LINK"` (or `"123.456"`) + - `Moralis.EvmApi.getTokenBalances()` now returns an `Erc20Value` object with associated token information. + +### Patch Changes + +- Updated dependencies [[`d413073`](https://github.com/MoralisWeb3/Moralis-JS-SDK/commit/d4130736a22b5e28da767864d57be8d2abcf5981)]: + - @moralisweb3/core@2.0.0-beta.8 + ## 2.0.0-beta.7 ### Patch Changes diff --git a/packages/apiUtils/package.json b/packages/apiUtils/package.json index 583d33a59a..f09f176253 100644 --- a/packages/apiUtils/package.json +++ b/packages/apiUtils/package.json @@ -1,7 +1,7 @@ { "name": "@moralisweb3/api-utils", "author": "Moralis", - "version": "2.0.0-beta.7", + "version": "2.0.0-beta.8", "license": "MIT", "private": false, "main": "./lib/index.js", @@ -26,6 +26,6 @@ "typescript": "^4.5.5" }, "dependencies": { - "@moralisweb3/core": "^2.0.0-beta.7" + "@moralisweb3/core": "^2.0.0-beta.8" } } diff --git a/packages/auth/CHANGELOG.md b/packages/auth/CHANGELOG.md index c68f360edc..83582d80a9 100644 --- a/packages/auth/CHANGELOG.md +++ b/packages/auth/CHANGELOG.md @@ -1,5 +1,28 @@ # @moralisweb3/auth +## 2.0.0-beta.8 + +### Minor Changes + +- [#560](https://github.com/MoralisWeb3/Moralis-JS-SDK/pull/560) [`d413073`](https://github.com/MoralisWeb3/Moralis-JS-SDK/commit/d4130736a22b5e28da767864d57be8d2abcf5981) Thanks [@ErnoW](https://github.com/ErnoW)! - Improve Erc20Value logic by: + + - geters for Erc20 for: `token.decimals`, `token.name`, `token.symbol`, `token.contractAddress`, `token.chain`, `token.logo`, `token.logoHash` and `token.thumbnail`, + - adding an optional token reference for `Erc20Value`. This can be used by calling `Erc20Value.create(amount, { token })` + - fixes and additions for output of `Erc20Value`: + - `erc20Value.value` now returns the value in a decimal string `"123.567"` + - `erc20Value.amount` returns the Bignumber value withtout taking decimals into account + - `erc20Value.decimals` returns the decimals + - `erc20Value.toNumber()` returns the value in a decimal number (or throws an error if the value is too big): `123.456` + - `erc20Value.display()` returns the value in a readable string with the token symbol if available: `"123.456 LINK"` (or `"123.456"`) + - `Moralis.EvmApi.getTokenBalances()` now returns an `Erc20Value` object with associated token information. + +### Patch Changes + +- Updated dependencies [[`d413073`](https://github.com/MoralisWeb3/Moralis-JS-SDK/commit/d4130736a22b5e28da767864d57be8d2abcf5981)]: + - @moralisweb3/api-utils@2.0.0-beta.8 + - @moralisweb3/core@2.0.0-beta.8 + - @moralisweb3/evm-utils@2.0.0-beta.8 + ## 2.0.0-beta.7 ### Patch Changes diff --git a/packages/auth/package.json b/packages/auth/package.json index 194c91efc4..5f9f3837c3 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -1,7 +1,7 @@ { "name": "@moralisweb3/auth", "author": "Moralis", - "version": "2.0.0-beta.7", + "version": "2.0.0-beta.8", "license": "MIT", "private": false, "main": "./lib/index.js", @@ -29,8 +29,8 @@ "openapi-typescript": "^5.2.0" }, "dependencies": { - "@moralisweb3/core": "^2.0.0-beta.7", - "@moralisweb3/api-utils": "^2.0.0-beta.7", - "@moralisweb3/evm-utils": "^2.0.0-beta.7" + "@moralisweb3/core": "^2.0.0-beta.8", + "@moralisweb3/api-utils": "^2.0.0-beta.8", + "@moralisweb3/evm-utils": "^2.0.0-beta.8" } } diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 59e454dc7e..6a75093fc2 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,21 @@ # @moralisweb3/core +## 2.0.0-beta.8 + +### Minor Changes + +- [#560](https://github.com/MoralisWeb3/Moralis-JS-SDK/pull/560) [`d413073`](https://github.com/MoralisWeb3/Moralis-JS-SDK/commit/d4130736a22b5e28da767864d57be8d2abcf5981) Thanks [@ErnoW](https://github.com/ErnoW)! - Improve Erc20Value logic by: + + - geters for Erc20 for: `token.decimals`, `token.name`, `token.symbol`, `token.contractAddress`, `token.chain`, `token.logo`, `token.logoHash` and `token.thumbnail`, + - adding an optional token reference for `Erc20Value`. This can be used by calling `Erc20Value.create(amount, { token })` + - fixes and additions for output of `Erc20Value`: + - `erc20Value.value` now returns the value in a decimal string `"123.567"` + - `erc20Value.amount` returns the Bignumber value withtout taking decimals into account + - `erc20Value.decimals` returns the decimals + - `erc20Value.toNumber()` returns the value in a decimal number (or throws an error if the value is too big): `123.456` + - `erc20Value.display()` returns the value in a readable string with the token symbol if available: `"123.456 LINK"` (or `"123.456"`) + - `Moralis.EvmApi.getTokenBalances()` now returns an `Erc20Value` object with associated token information. + ## 2.0.0-beta.7 ## 2.0.0-beta.6 diff --git a/packages/core/package.json b/packages/core/package.json index dc40671d3d..3a9964172e 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,7 +1,7 @@ { "name": "@moralisweb3/core", "author": "Moralis", - "version": "2.0.0-beta.7", + "version": "2.0.0-beta.8", "license": "MIT", "private": false, "main": "./lib/index.js", diff --git a/packages/evmApi/CHANGELOG.md b/packages/evmApi/CHANGELOG.md index 35a76393cf..65487eab60 100644 --- a/packages/evmApi/CHANGELOG.md +++ b/packages/evmApi/CHANGELOG.md @@ -1,5 +1,28 @@ # @moralisweb3/evm-api +## 2.0.0-beta.8 + +### Minor Changes + +- [#560](https://github.com/MoralisWeb3/Moralis-JS-SDK/pull/560) [`d413073`](https://github.com/MoralisWeb3/Moralis-JS-SDK/commit/d4130736a22b5e28da767864d57be8d2abcf5981) Thanks [@ErnoW](https://github.com/ErnoW)! - Improve Erc20Value logic by: + + - geters for Erc20 for: `token.decimals`, `token.name`, `token.symbol`, `token.contractAddress`, `token.chain`, `token.logo`, `token.logoHash` and `token.thumbnail`, + - adding an optional token reference for `Erc20Value`. This can be used by calling `Erc20Value.create(amount, { token })` + - fixes and additions for output of `Erc20Value`: + - `erc20Value.value` now returns the value in a decimal string `"123.567"` + - `erc20Value.amount` returns the Bignumber value withtout taking decimals into account + - `erc20Value.decimals` returns the decimals + - `erc20Value.toNumber()` returns the value in a decimal number (or throws an error if the value is too big): `123.456` + - `erc20Value.display()` returns the value in a readable string with the token symbol if available: `"123.456 LINK"` (or `"123.456"`) + - `Moralis.EvmApi.getTokenBalances()` now returns an `Erc20Value` object with associated token information. + +### Patch Changes + +- Updated dependencies [[`d413073`](https://github.com/MoralisWeb3/Moralis-JS-SDK/commit/d4130736a22b5e28da767864d57be8d2abcf5981)]: + - @moralisweb3/api-utils@2.0.0-beta.8 + - @moralisweb3/core@2.0.0-beta.8 + - @moralisweb3/evm-utils@2.0.0-beta.8 + ## 2.0.0-beta.7 ### Patch Changes diff --git a/packages/evmApi/package.json b/packages/evmApi/package.json index f6b78cf64b..a1d20940aa 100644 --- a/packages/evmApi/package.json +++ b/packages/evmApi/package.json @@ -1,7 +1,7 @@ { "name": "@moralisweb3/evm-api", "author": "Moralis", - "version": "2.0.0-beta.7", + "version": "2.0.0-beta.8", "license": "MIT", "private": false, "main": "./lib/index.js", @@ -28,8 +28,8 @@ "typescript": "^4.5.5" }, "dependencies": { - "@moralisweb3/api-utils": "^2.0.0-beta.7", - "@moralisweb3/core": "^2.0.0-beta.7", - "@moralisweb3/evm-utils": "^2.0.0-beta.7" + "@moralisweb3/api-utils": "^2.0.0-beta.8", + "@moralisweb3/core": "^2.0.0-beta.8", + "@moralisweb3/evm-utils": "^2.0.0-beta.8" } } diff --git a/packages/evmUtils/CHANGELOG.md b/packages/evmUtils/CHANGELOG.md index 3d355de87d..7a56d701ca 100644 --- a/packages/evmUtils/CHANGELOG.md +++ b/packages/evmUtils/CHANGELOG.md @@ -1,5 +1,26 @@ # @moralisweb3/evm-utils +## 2.0.0-beta.8 + +### Minor Changes + +- [#560](https://github.com/MoralisWeb3/Moralis-JS-SDK/pull/560) [`d413073`](https://github.com/MoralisWeb3/Moralis-JS-SDK/commit/d4130736a22b5e28da767864d57be8d2abcf5981) Thanks [@ErnoW](https://github.com/ErnoW)! - Improve Erc20Value logic by: + + - geters for Erc20 for: `token.decimals`, `token.name`, `token.symbol`, `token.contractAddress`, `token.chain`, `token.logo`, `token.logoHash` and `token.thumbnail`, + - adding an optional token reference for `Erc20Value`. This can be used by calling `Erc20Value.create(amount, { token })` + - fixes and additions for output of `Erc20Value`: + - `erc20Value.value` now returns the value in a decimal string `"123.567"` + - `erc20Value.amount` returns the Bignumber value withtout taking decimals into account + - `erc20Value.decimals` returns the decimals + - `erc20Value.toNumber()` returns the value in a decimal number (or throws an error if the value is too big): `123.456` + - `erc20Value.display()` returns the value in a readable string with the token symbol if available: `"123.456 LINK"` (or `"123.456"`) + - `Moralis.EvmApi.getTokenBalances()` now returns an `Erc20Value` object with associated token information. + +### Patch Changes + +- Updated dependencies [[`d413073`](https://github.com/MoralisWeb3/Moralis-JS-SDK/commit/d4130736a22b5e28da767864d57be8d2abcf5981)]: + - @moralisweb3/core@2.0.0-beta.8 + ## 2.0.0-beta.7 ### Patch Changes diff --git a/packages/evmUtils/package.json b/packages/evmUtils/package.json index 0e1d6c03c9..10405ec59c 100644 --- a/packages/evmUtils/package.json +++ b/packages/evmUtils/package.json @@ -1,7 +1,7 @@ { "name": "@moralisweb3/evm-utils", "author": "Moralis", - "version": "2.0.0-beta.7", + "version": "2.0.0-beta.8", "license": "MIT", "private": false, "main": "./lib/index.js", @@ -30,6 +30,6 @@ "dependencies": { "@ethersproject/address": "^5.6.0", "@ethersproject/transactions": "^5.6.0", - "@moralisweb3/core": "^2.0.0-beta.7" + "@moralisweb3/core": "^2.0.0-beta.8" } } diff --git a/packages/integration/package.json b/packages/integration/package.json index 8a2b06bbf7..148f1f7231 100644 --- a/packages/integration/package.json +++ b/packages/integration/package.json @@ -22,9 +22,9 @@ "typescript": "^4.5.5" }, "dependencies": { - "@moralisweb3/core": "^2.0.0-beta.7", - "@moralisweb3/evm-api": "^2.0.0-beta.7", - "@moralisweb3/evm-utils": "^2.0.0-beta.7", + "@moralisweb3/core": "^2.0.0-beta.8", + "@moralisweb3/evm-api": "^2.0.0-beta.8", + "@moralisweb3/evm-utils": "^2.0.0-beta.8", "eventemitter3": "^4.0.7" } } diff --git a/packages/moralis/CHANGELOG.md b/packages/moralis/CHANGELOG.md index 8e665b0cea..397dbb5fd9 100644 --- a/packages/moralis/CHANGELOG.md +++ b/packages/moralis/CHANGELOG.md @@ -1,5 +1,31 @@ # moralis +## 2.0.0-beta.8 + +### Minor Changes + +- [#560](https://github.com/MoralisWeb3/Moralis-JS-SDK/pull/560) [`d413073`](https://github.com/MoralisWeb3/Moralis-JS-SDK/commit/d4130736a22b5e28da767864d57be8d2abcf5981) Thanks [@ErnoW](https://github.com/ErnoW)! - Improve Erc20Value logic by: + + - geters for Erc20 for: `token.decimals`, `token.name`, `token.symbol`, `token.contractAddress`, `token.chain`, `token.logo`, `token.logoHash` and `token.thumbnail`, + - adding an optional token reference for `Erc20Value`. This can be used by calling `Erc20Value.create(amount, { token })` + - fixes and additions for output of `Erc20Value`: + - `erc20Value.value` now returns the value in a decimal string `"123.567"` + - `erc20Value.amount` returns the Bignumber value withtout taking decimals into account + - `erc20Value.decimals` returns the decimals + - `erc20Value.toNumber()` returns the value in a decimal number (or throws an error if the value is too big): `123.456` + - `erc20Value.display()` returns the value in a readable string with the token symbol if available: `"123.456 LINK"` (or `"123.456"`) + - `Moralis.EvmApi.getTokenBalances()` now returns an `Erc20Value` object with associated token information. + +### Patch Changes + +- Updated dependencies [[`d413073`](https://github.com/MoralisWeb3/Moralis-JS-SDK/commit/d4130736a22b5e28da767864d57be8d2abcf5981)]: + - @moralisweb3/api-utils@2.0.0-beta.8 + - @moralisweb3/auth@2.0.0-beta.8 + - @moralisweb3/core@2.0.0-beta.8 + - @moralisweb3/evm-api@2.0.0-beta.8 + - @moralisweb3/evm-utils@2.0.0-beta.8 + - @moralisweb3/sol-api@2.0.0-beta.8 + ## 2.0.0-beta.7 ### Patch Changes diff --git a/packages/moralis/package.json b/packages/moralis/package.json index 1920726941..ca44efa07a 100644 --- a/packages/moralis/package.json +++ b/packages/moralis/package.json @@ -1,7 +1,7 @@ { "name": "moralis", "author": "Moralis", - "version": "2.0.0-beta.7", + "version": "2.0.0-beta.8", "license": "MIT", "private": false, "main": "./lib/index.js", @@ -19,11 +19,11 @@ "dev": "tsc --watch" }, "dependencies": { - "@moralisweb3/auth": "^2.0.0-beta.7", - "@moralisweb3/core": "^2.0.0-beta.7", - "@moralisweb3/api-utils": "^2.0.0-beta.7", - "@moralisweb3/evm-api": "^2.0.0-beta.7", - "@moralisweb3/evm-utils": "^2.0.0-beta.7", - "@moralisweb3/sol-api": "^2.0.0-beta.7" + "@moralisweb3/auth": "^2.0.0-beta.8", + "@moralisweb3/core": "^2.0.0-beta.8", + "@moralisweb3/api-utils": "^2.0.0-beta.8", + "@moralisweb3/evm-api": "^2.0.0-beta.8", + "@moralisweb3/evm-utils": "^2.0.0-beta.8", + "@moralisweb3/sol-api": "^2.0.0-beta.8" } } diff --git a/packages/solApi/CHANGELOG.md b/packages/solApi/CHANGELOG.md index fd422009a0..3fec7cb7d6 100644 --- a/packages/solApi/CHANGELOG.md +++ b/packages/solApi/CHANGELOG.md @@ -1,5 +1,28 @@ # @moralisweb3/sol-api +## 2.0.0-beta.8 + +### Minor Changes + +- [#560](https://github.com/MoralisWeb3/Moralis-JS-SDK/pull/560) [`d413073`](https://github.com/MoralisWeb3/Moralis-JS-SDK/commit/d4130736a22b5e28da767864d57be8d2abcf5981) Thanks [@ErnoW](https://github.com/ErnoW)! - Improve Erc20Value logic by: + + - geters for Erc20 for: `token.decimals`, `token.name`, `token.symbol`, `token.contractAddress`, `token.chain`, `token.logo`, `token.logoHash` and `token.thumbnail`, + - adding an optional token reference for `Erc20Value`. This can be used by calling `Erc20Value.create(amount, { token })` + - fixes and additions for output of `Erc20Value`: + - `erc20Value.value` now returns the value in a decimal string `"123.567"` + - `erc20Value.amount` returns the Bignumber value withtout taking decimals into account + - `erc20Value.decimals` returns the decimals + - `erc20Value.toNumber()` returns the value in a decimal number (or throws an error if the value is too big): `123.456` + - `erc20Value.display()` returns the value in a readable string with the token symbol if available: `"123.456 LINK"` (or `"123.456"`) + - `Moralis.EvmApi.getTokenBalances()` now returns an `Erc20Value` object with associated token information. + +### Patch Changes + +- Updated dependencies [[`d413073`](https://github.com/MoralisWeb3/Moralis-JS-SDK/commit/d4130736a22b5e28da767864d57be8d2abcf5981)]: + - @moralisweb3/api-utils@2.0.0-beta.8 + - @moralisweb3/core@2.0.0-beta.8 + - @moralisweb3/sol-utils@2.0.0-beta.8 + ## 2.0.0-beta.7 ### Patch Changes diff --git a/packages/solApi/package.json b/packages/solApi/package.json index 6433e64e73..b7eec296aa 100644 --- a/packages/solApi/package.json +++ b/packages/solApi/package.json @@ -1,7 +1,7 @@ { "name": "@moralisweb3/sol-api", "author": "Moralis", - "version": "2.0.0-beta.7", + "version": "2.0.0-beta.8", "license": "MIT", "private": false, "main": "./lib/index.js", @@ -25,8 +25,8 @@ "typescript": "^4.5.5" }, "dependencies": { - "@moralisweb3/api-utils": "^2.0.0-beta.7", - "@moralisweb3/core": "^2.0.0-beta.7", - "@moralisweb3/sol-utils": "^2.0.0-beta.7" + "@moralisweb3/api-utils": "^2.0.0-beta.8", + "@moralisweb3/core": "^2.0.0-beta.8", + "@moralisweb3/sol-utils": "^2.0.0-beta.8" } } diff --git a/packages/solUtils/CHANGELOG.md b/packages/solUtils/CHANGELOG.md index cc0e945f87..ea86d2c424 100644 --- a/packages/solUtils/CHANGELOG.md +++ b/packages/solUtils/CHANGELOG.md @@ -1,5 +1,26 @@ # @moralisweb3/sol-utils +## 2.0.0-beta.8 + +### Minor Changes + +- [#560](https://github.com/MoralisWeb3/Moralis-JS-SDK/pull/560) [`d413073`](https://github.com/MoralisWeb3/Moralis-JS-SDK/commit/d4130736a22b5e28da767864d57be8d2abcf5981) Thanks [@ErnoW](https://github.com/ErnoW)! - Improve Erc20Value logic by: + + - geters for Erc20 for: `token.decimals`, `token.name`, `token.symbol`, `token.contractAddress`, `token.chain`, `token.logo`, `token.logoHash` and `token.thumbnail`, + - adding an optional token reference for `Erc20Value`. This can be used by calling `Erc20Value.create(amount, { token })` + - fixes and additions for output of `Erc20Value`: + - `erc20Value.value` now returns the value in a decimal string `"123.567"` + - `erc20Value.amount` returns the Bignumber value withtout taking decimals into account + - `erc20Value.decimals` returns the decimals + - `erc20Value.toNumber()` returns the value in a decimal number (or throws an error if the value is too big): `123.456` + - `erc20Value.display()` returns the value in a readable string with the token symbol if available: `"123.456 LINK"` (or `"123.456"`) + - `Moralis.EvmApi.getTokenBalances()` now returns an `Erc20Value` object with associated token information. + +### Patch Changes + +- Updated dependencies [[`d413073`](https://github.com/MoralisWeb3/Moralis-JS-SDK/commit/d4130736a22b5e28da767864d57be8d2abcf5981)]: + - @moralisweb3/core@2.0.0-beta.8 + ## 2.0.0-beta.7 ### Patch Changes diff --git a/packages/solUtils/package.json b/packages/solUtils/package.json index 63e9cac605..bff9063140 100644 --- a/packages/solUtils/package.json +++ b/packages/solUtils/package.json @@ -1,7 +1,7 @@ { "name": "@moralisweb3/sol-utils", "author": "Moralis", - "version": "2.0.0-beta.7", + "version": "2.0.0-beta.8", "license": "MIT", "private": false, "main": "./lib/index.js", @@ -28,6 +28,6 @@ "typescript": "^4.5.5" }, "dependencies": { - "@moralisweb3/core": "^2.0.0-beta.7" + "@moralisweb3/core": "^2.0.0-beta.8" } }