From d1c508d625935c1f38e0d81d2aac955bed8eb924 Mon Sep 17 00:00:00 2001 From: Tudor Morar Date: Thu, 24 Oct 2024 11:36:16 +0300 Subject: [PATCH] Update CHANGELOG (#35) --- CHANGELOG.md | 3 +++ package.json | 8 +++----- src/utils/getTransactionFee.ts | 3 +-- yarn.lock | 34 +++++++++++++++------------------- 4 files changed, 22 insertions(+), 26 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a05c245..cdd3df1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [[2.1.0](https://github.com/multiversx/mx-sdk-dapp-swap/pull/36)] - 2024-10-24 +- [Remove network-providers dependency](https://github.com/multiversx/mx-sdk-dapp-swap/pull/35) + ## [[2.1.0](https://github.com/multiversx/mx-sdk-dapp-swap/pull/34)] - 2024-10-21 - [Upgrade sdk-dapp](https://github.com/multiversx/mx-sdk-dapp-swap/pull/31) diff --git a/package.json b/package.json index 2208508..3029e4a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@multiversx/sdk-dapp-swap", - "version": "2.1.0", + "version": "2.1.1", "description": "A library to hold the main logic for swapping between tokens on the MultiversX blockchain", "author": "MultiversX", "license": "GPL-3.0-or-later", @@ -27,8 +27,7 @@ "devDependencies": { "@apollo/client": ">=3.8.6", "graphql": ">=16.9.0", - "@multiversx/sdk-network-providers": ">=2.8.0", - "@multiversx/sdk-core": ">=13.5.0", + "@multiversx/sdk-core": ">=13.12.0", "@multiversx/sdk-dapp": ">=3.0.0", "@size-limit/preset-small-lib": "7.0.8", "@testing-library/jest-dom": "5.16.4", @@ -89,10 +88,9 @@ "transaction" ], "peerDependencies": { - "@multiversx/sdk-core": ">=13.5.0", + "@multiversx/sdk-core": ">=13.12.0", "@multiversx/sdk-dapp": ">=3.0.0", "@apollo/client": ">=3.8.6", - "@multiversx/sdk-network-providers": ">=2.8.0", "react": ">=18", "react-dom": ">=18", "graphql": ">=16.9.0" diff --git a/src/utils/getTransactionFee.ts b/src/utils/getTransactionFee.ts index 712e51d..030a6c3 100644 --- a/src/utils/getTransactionFee.ts +++ b/src/utils/getTransactionFee.ts @@ -1,10 +1,9 @@ -import { IPlainTransactionObject } from '@multiversx/sdk-core'; +import { IPlainTransactionObject, NetworkConfig } from '@multiversx/sdk-core'; import { GAS_LIMIT, GAS_PER_DATA_BYTE, GAS_PRICE_MODIFIER } from '@multiversx/sdk-dapp/constants'; -import { NetworkConfig } from '@multiversx/sdk-network-providers'; import { createTransactionFromRaw } from './createTransactionFromRaw'; export const getTransactionFee = (rawTransaction: IPlainTransactionObject) => { diff --git a/yarn.lock b/yarn.lock index d341185..94d9c56 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2145,17 +2145,28 @@ resolved "https://registry.yarnpkg.com/@multiversx/sdk-bls-wasm/-/sdk-bls-wasm-0.3.5.tgz#2e83308fdc7a0928c6d5a7f910d796fd8eb2d90b" integrity sha512-c0tIdQUnbBLSt6NYU+OpeGPYdL0+GV547HeHT8Xc0BKQ7Cj0v82QUoA2QRtWrR1G4MNZmLsIacZSsf6DrIS2Bw== -"@multiversx/sdk-core@>=13.5.0": - version "13.9.0" - resolved "https://registry.yarnpkg.com/@multiversx/sdk-core/-/sdk-core-13.9.0.tgz#9a4cce2d355d376917fa78d05a515ee0bd8f3e96" - integrity sha512-WYA5fssMt/jTRTT+dkZW6V0ykCrkczhJ3BbZni6LhHjwFti7lMboVdoUMCIyPbecWZIEdmLq0OTcjOLy9tZX0g== +"@multiversx/sdk-core@>=13.12.0": + version "13.12.0" + resolved "https://registry.yarnpkg.com/@multiversx/sdk-core/-/sdk-core-13.12.0.tgz#0e5ab98c2f65cb7c6db78c3fd24660bee20d468d" + integrity sha512-mzXNQ5NJKQc2GqIy24zpoppbSF00JXGBI1HesQ15KvfH5w7qejceX4MSF58GBoqQ3v2cneeRB48DE4uY3RBnBA== dependencies: "@multiversx/sdk-transaction-decoder" "1.0.2" + "@noble/ed25519" "1.7.3" + "@noble/hashes" "1.3.0" bech32 "1.1.4" blake2b "2.1.3" buffer "6.0.3" + ed25519-hd-key "1.1.2" + ed2curve "0.3.0" json-bigint "1.0.0" keccak "3.0.2" + scryptsy "2.1.0" + tweetnacl "1.0.3" + uuid "8.3.2" + optionalDependencies: + "@multiversx/sdk-bls-wasm" "0.3.5" + axios "^1.7.4" + bip39 "3.1.0" "@multiversx/sdk-dapp-utils@1.0.0": version "1.0.0" @@ -2241,16 +2252,6 @@ dependencies: axios "^1.7.4" -"@multiversx/sdk-network-providers@>=2.8.0": - version "2.8.0" - resolved "https://registry.yarnpkg.com/@multiversx/sdk-network-providers/-/sdk-network-providers-2.8.0.tgz#549d19090c536c77f03951367d4da2a72b8486bc" - integrity sha512-p28NVS+uKpfPH4O0yR2LJtCNBHi1o95a3L51pCco1F4UN5seYEXYqOgP0GBxPd0WtajMXR1r5dnCrX9CFHDGcA== - dependencies: - bech32 "1.1.4" - bignumber.js "9.0.1" - buffer "6.0.3" - json-bigint "1.0.0" - "@multiversx/sdk-opera-provider@1.0.0-alpha.1": version "1.0.0-alpha.1" resolved "https://registry.yarnpkg.com/@multiversx/sdk-opera-provider/-/sdk-opera-provider-1.0.0-alpha.1.tgz#2beebd5423fdc2e667b33660f17cbff325449097" @@ -4763,11 +4764,6 @@ big.js@^5.2.2: resolved "https://registry.yarnpkg.com/big.js/-/big.js-5.2.2.tgz#65f0af382f578bcdc742bd9c281e9cb2d7768328" integrity sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ== -bignumber.js@9.0.1: - version "9.0.1" - resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-9.0.1.tgz#8d7ba124c882bfd8e43260c67475518d0689e4e5" - integrity sha512-IdZR9mh6ahOBv/hYGiXyVuyCetmGJhtYkqLBpTStdhEGjegpPlUawydyaF3pbIOFynJTpllEs+NP+CS9jKFLjA== - bignumber.js@9.x, bignumber.js@^9.0.0: version "9.1.2" resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-9.1.2.tgz#b7c4242259c008903b13707983b5f4bbd31eda0c"