From c5a41b96098bba49d6ee385395760956cb6cc1f8 Mon Sep 17 00:00:00 2001 From: codercrane Date: Thu, 14 Dec 2023 16:55:44 +0800 Subject: [PATCH 01/13] fix: pancakeswap sdk version --- package.json | 2 +- src/connectors/pancakeswap/pancakeswap.ts | 39 +- src/services/common-interfaces.ts | 10 +- .../pancakeswap/pancakeswap.test.ts | 15 +- yarn.lock | 374 +++++++++--------- 5 files changed, 221 insertions(+), 219 deletions(-) diff --git a/package.json b/package.json index 5de6959cd5..538e9fb5b5 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "@harmony-js/core": "^0.1.57", "@harmony-js/utils": "^0.1.56", "@improbable-eng/grpc-web": "^0.13.0", - "@pancakeswap/sdk": "^2.4.5", + "@pancakeswap/sdk": "^4.0.0", "@pancakeswap/swap-sdk-core": "^1.0.0", "@pancakeswap/v3-core": "^1.0.2", "@pancakeswap/v3-periphery": "^1.0.2", diff --git a/src/connectors/pancakeswap/pancakeswap.ts b/src/connectors/pancakeswap/pancakeswap.ts index 0ea4ab6242..cb0b294dd8 100644 --- a/src/connectors/pancakeswap/pancakeswap.ts +++ b/src/connectors/pancakeswap/pancakeswap.ts @@ -1,12 +1,14 @@ import { + Currency, + CurrencyAmount, Fetcher, Pair, Percent, Router, SwapParameters, Token, - TokenAmount, Trade, + TradeType, } from '@pancakeswap/sdk'; import { BigNumber, @@ -167,10 +169,8 @@ export class PancakeSwap implements Uniswapish { amount: BigNumber, allowedSlippage?: string ): Promise { - const nativeTokenAmount: TokenAmount = new TokenAmount( - baseToken, - amount.toString() - ); + const nativeTokenAmount: CurrencyAmount = + CurrencyAmount.fromRawAmount(baseToken, amount.toString()); logger.info( `Fetching pair data for ${quoteToken.address}-${baseToken.address}.` ); @@ -179,12 +179,10 @@ export class PancakeSwap implements Uniswapish { baseToken, this.bsc.provider ); - const trades: Trade[] = Trade.bestTradeExactOut( - [pair], - quoteToken, - nativeTokenAmount, - { maxHops: 1 } - ); + const trades: Trade[] = + Trade.bestTradeExactOut([pair], quoteToken, nativeTokenAmount, { + maxHops: 5, + }); if (!trades || trades.length === 0) { throw new UniswapishPriceError( `priceSwapOut: no trade pair found for ${quoteToken.address} to ${baseToken.address}.` @@ -219,10 +217,9 @@ export class PancakeSwap implements Uniswapish { amount: BigNumber, allowedSlippage?: string ): Promise { - const nativeTokenAmount: TokenAmount = new TokenAmount( - baseToken, - amount.toString() - ); + const nativeTokenAmount: CurrencyAmount = + CurrencyAmount.fromRawAmount(baseToken, amount.toString()); + logger.info( `Fetching pair data for ${baseToken.address}-${quoteToken.address}.` ); @@ -232,12 +229,10 @@ export class PancakeSwap implements Uniswapish { quoteToken, this.bsc.provider ); - const trades: Trade[] = Trade.bestTradeExactIn( - [pair], - nativeTokenAmount, - quoteToken, - { maxHops: 1 } - ); + const trades: Trade[] = + Trade.bestTradeExactIn([pair], nativeTokenAmount, quoteToken, { + maxHops: 5, + }); if (!trades || trades.length === 0) { throw new UniswapishPriceError( `priceSwapIn: no trade pair found for ${baseToken} to ${quoteToken}.` @@ -271,7 +266,7 @@ export class PancakeSwap implements Uniswapish { */ async executeTrade( wallet: Wallet, - trade: Trade, + trade: Trade, gasPrice: number, pancakeswapRouter: string, ttl: number, diff --git a/src/services/common-interfaces.ts b/src/services/common-interfaces.ts index b42d0fc16d..01665be7d2 100644 --- a/src/services/common-interfaces.ts +++ b/src/services/common-interfaces.ts @@ -81,8 +81,10 @@ import { import { Token as PancakeSwapToken, CurrencyAmount as PancakeSwapCurrencyAmount, + TradeType as PancakeSwapTradeType, Trade as PancakeSwapTrade, Fraction as PancakeSwapFraction, + Currency as PancakeSwapCurrency, } from '@pancakeswap/sdk'; import { Token as TokenXsswap, @@ -141,7 +143,11 @@ export type UniswapishTrade = | TradeTraderjoe | SushiswapTrade | TradeUniswap - | PancakeSwapTrade + | PancakeSwapTrade< + PancakeSwapCurrency, + PancakeSwapCurrency, + PancakeSwapTradeType + > | MMFTrade | VVSTrade | TradeXsswap @@ -163,7 +169,7 @@ export type UniswapishAmount = | UniswapCoreCurrencyAmount | CurrencyAmountTraderjoe | SushiCurrencyAmount - | PancakeSwapCurrencyAmount + | PancakeSwapCurrencyAmount | CurrencyAmountMMF | CurrencyAmountVVS | CurrencyAmountXsswap diff --git a/test/connectors/pancakeswap/pancakeswap.test.ts b/test/connectors/pancakeswap/pancakeswap.test.ts index 61816d954e..61300e9a79 100644 --- a/test/connectors/pancakeswap/pancakeswap.test.ts +++ b/test/connectors/pancakeswap/pancakeswap.test.ts @@ -5,9 +5,10 @@ import { Percent, Route, Token, - TokenAmount, + CurrencyAmount, Trade, TradeType, + Currency, } from '@pancakeswap/sdk'; import { BigNumber } from 'ethers'; import { BinanceSmartChain } from '../../../src/chains/binance-smart-chain/binance-smart-chain'; @@ -51,8 +52,8 @@ afterAll(async () => { const patchFetchPairData = () => { patch(Fetcher, 'fetchPairData', () => { return new Pair( - new TokenAmount(WBNB, '2000000000000000000'), - new TokenAmount(DAI, '1000000000000000000') + CurrencyAmount.fromRawAmount(WBNB, '2000000000000000000'), + CurrencyAmount.fromRawAmount(DAI, '1000000000000000000') ); }); }; @@ -61,14 +62,14 @@ const patchTrade = (key: string, error?: Error) => { patch(Trade, key, () => { if (error) return []; const WBNB_DAI = new Pair( - new TokenAmount(WBNB, '2000000000000000000'), - new TokenAmount(DAI, '1000000000000000000') + CurrencyAmount.fromRawAmount(WBNB, '2000000000000000000'), + CurrencyAmount.fromRawAmount(DAI, '1000000000000000000') ); - const DAI_TO_WBNB = new Route([WBNB_DAI], DAI); + const DAI_TO_WBNB = new Route([WBNB_DAI], DAI, WBNB); return [ new Trade( DAI_TO_WBNB, - new TokenAmount(DAI, '1000000000000000'), + CurrencyAmount.fromRawAmount(DAI, '1000000000000000'), TradeType.EXACT_INPUT ), ]; diff --git a/yarn.lock b/yarn.lock index 8126ec3dd1..bc7f50c877 100644 --- a/yarn.lock +++ b/yarn.lock @@ -973,137 +973,137 @@ "@ethersproject-xdc/abi@file:vendor/@ethersproject-xdc/abi": version "5.7.0" dependencies: - "@ethersproject-xdc/address" "file:vendor/@ethersproject-xdc/address" - "@ethersproject-xdc/bignumber" "file:vendor/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" - "@ethersproject-xdc/constants" "file:vendor/@ethersproject-xdc/constants" - "@ethersproject-xdc/hash" "file:vendor/@ethersproject-xdc/hash" - "@ethersproject-xdc/keccak256" "file:vendor/@ethersproject-xdc/keccak256" - "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" - "@ethersproject-xdc/properties" "file:vendor/@ethersproject-xdc/properties" - "@ethersproject-xdc/strings" "file:vendor/@ethersproject-xdc/strings" + "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-26204d8c-d648-4b0b-819a-566e0a851ab6-1702543562571/node_modules/@ethersproject-xdc/address" + "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-26204d8c-d648-4b0b-819a-566e0a851ab6-1702543562571/node_modules/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-26204d8c-d648-4b0b-819a-566e0a851ab6-1702543562571/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/constants" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-26204d8c-d648-4b0b-819a-566e0a851ab6-1702543562571/node_modules/@ethersproject-xdc/constants" + "@ethersproject-xdc/hash" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-26204d8c-d648-4b0b-819a-566e0a851ab6-1702543562571/node_modules/@ethersproject-xdc/hash" + "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-26204d8c-d648-4b0b-819a-566e0a851ab6-1702543562571/node_modules/@ethersproject-xdc/keccak256" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-26204d8c-d648-4b0b-819a-566e0a851ab6-1702543562571/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-26204d8c-d648-4b0b-819a-566e0a851ab6-1702543562571/node_modules/@ethersproject-xdc/properties" + "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-26204d8c-d648-4b0b-819a-566e0a851ab6-1702543562571/node_modules/@ethersproject-xdc/strings" "@ethersproject-xdc/abstract-provider@file:vendor/@ethersproject-xdc/abstract-provider": version "5.7.0" dependencies: - "@ethersproject-xdc/bignumber" "file:vendor/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" - "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" - "@ethersproject-xdc/networks" "file:vendor/@ethersproject-xdc/networks" - "@ethersproject-xdc/properties" "file:vendor/@ethersproject-xdc/properties" - "@ethersproject-xdc/transactions" "file:vendor/@ethersproject-xdc/transactions" - "@ethersproject-xdc/web" "file:vendor/@ethersproject-xdc/web" + "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-provider-5.7.0-8fe16492-2234-4d94-b7dc-0fe5b8adee4d-1702543562570/node_modules/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-provider-5.7.0-8fe16492-2234-4d94-b7dc-0fe5b8adee4d-1702543562570/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-provider-5.7.0-8fe16492-2234-4d94-b7dc-0fe5b8adee4d-1702543562570/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/networks" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-provider-5.7.0-8fe16492-2234-4d94-b7dc-0fe5b8adee4d-1702543562570/node_modules/@ethersproject-xdc/networks" + "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-provider-5.7.0-8fe16492-2234-4d94-b7dc-0fe5b8adee4d-1702543562570/node_modules/@ethersproject-xdc/properties" + "@ethersproject-xdc/transactions" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-provider-5.7.0-8fe16492-2234-4d94-b7dc-0fe5b8adee4d-1702543562570/node_modules/@ethersproject-xdc/transactions" + "@ethersproject-xdc/web" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-provider-5.7.0-8fe16492-2234-4d94-b7dc-0fe5b8adee4d-1702543562570/node_modules/@ethersproject-xdc/web" "@ethersproject-xdc/abstract-signer@file:vendor/@ethersproject-xdc/abstract-signer": version "5.7.0" dependencies: - "@ethersproject-xdc/abstract-provider" "file:vendor/@ethersproject-xdc/abstract-provider" - "@ethersproject-xdc/bignumber" "file:vendor/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" - "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" - "@ethersproject-xdc/properties" "file:vendor/@ethersproject-xdc/properties" + "@ethersproject-xdc/abstract-provider" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-signer-5.7.0-62faef71-849f-4747-ad68-f3cd4f80615e-1702543562569/node_modules/@ethersproject-xdc/abstract-provider" + "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-signer-5.7.0-62faef71-849f-4747-ad68-f3cd4f80615e-1702543562569/node_modules/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-signer-5.7.0-62faef71-849f-4747-ad68-f3cd4f80615e-1702543562569/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-signer-5.7.0-62faef71-849f-4747-ad68-f3cd4f80615e-1702543562569/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-signer-5.7.0-62faef71-849f-4747-ad68-f3cd4f80615e-1702543562569/node_modules/@ethersproject-xdc/properties" "@ethersproject-xdc/address@file:vendor/@ethersproject-xdc/address": version "5.7.0" dependencies: - "@ethersproject-xdc/bignumber" "file:vendor/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" - "@ethersproject-xdc/keccak256" "file:vendor/@ethersproject-xdc/keccak256" - "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" - "@ethersproject-xdc/rlp" "file:vendor/@ethersproject-xdc/rlp" + "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-address-5.7.0-bcccaad4-fd65-4637-bc67-64aed991b926-1702543562572/node_modules/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-address-5.7.0-bcccaad4-fd65-4637-bc67-64aed991b926-1702543562572/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-address-5.7.0-bcccaad4-fd65-4637-bc67-64aed991b926-1702543562572/node_modules/@ethersproject-xdc/keccak256" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-address-5.7.0-bcccaad4-fd65-4637-bc67-64aed991b926-1702543562572/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/rlp" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-address-5.7.0-bcccaad4-fd65-4637-bc67-64aed991b926-1702543562572/node_modules/@ethersproject-xdc/rlp" "@ethersproject-xdc/base64@file:vendor/@ethersproject-xdc/base64": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-base64-5.7.0-767fffbb-c192-4a9a-bcfa-3fae4aeaf823-1702543562575/node_modules/@ethersproject-xdc/bytes" "@ethersproject-xdc/basex@file:vendor/@ethersproject-xdc/basex": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" - "@ethersproject-xdc/properties" "file:vendor/@ethersproject-xdc/properties" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-basex-5.7.0-d8a04177-1bbb-402e-8b3c-4a0b81e8461d-1702543562576/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-basex-5.7.0-d8a04177-1bbb-402e-8b3c-4a0b81e8461d-1702543562576/node_modules/@ethersproject-xdc/properties" "@ethersproject-xdc/bignumber@file:vendor/@ethersproject-xdc/bignumber": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" - "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-bignumber-5.7.0-79de70ae-e2d3-47bd-bb69-01b2847f9bf2-1702543562571/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-bignumber-5.7.0-79de70ae-e2d3-47bd-bb69-01b2847f9bf2-1702543562571/node_modules/@ethersproject-xdc/logger" bn.js "^5.2.1" "@ethersproject-xdc/bytes@file:vendor/@ethersproject-xdc/bytes": version "5.7.0" dependencies: - "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-bytes-5.7.0-368015bb-941c-4580-ad78-11e0766bcc39-1702543562599/node_modules/@ethersproject-xdc/logger" "@ethersproject-xdc/constants@file:vendor/@ethersproject-xdc/constants": version "5.7.0" dependencies: - "@ethersproject-xdc/bignumber" "file:vendor/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-constants-5.7.0-7ecab1b5-9e9f-478d-b6d6-eb4648ad6419-1702543562575/node_modules/@ethersproject-xdc/bignumber" "@ethersproject-xdc/contracts@file:vendor/@ethersproject-xdc/contracts": version "5.6.0" dependencies: - "@ethersproject-xdc/abi" "file:vendor/@ethersproject-xdc/abi" - "@ethersproject-xdc/abstract-provider" "file:vendor/@ethersproject-xdc/abstract-provider" - "@ethersproject-xdc/abstract-signer" "file:vendor/@ethersproject-xdc/abstract-signer" - "@ethersproject-xdc/address" "file:vendor/@ethersproject-xdc/address" - "@ethersproject-xdc/bignumber" "file:vendor/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" - "@ethersproject-xdc/constants" "file:vendor/@ethersproject-xdc/constants" - "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" - "@ethersproject-xdc/properties" "file:vendor/@ethersproject-xdc/properties" - "@ethersproject-xdc/transactions" "file:vendor/@ethersproject-xdc/transactions" + "@ethersproject-xdc/abi" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-7425d74e-fa38-4fcf-bf19-50b9e0cd5f75-1702543562577/node_modules/@ethersproject-xdc/abi" + "@ethersproject-xdc/abstract-provider" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-7425d74e-fa38-4fcf-bf19-50b9e0cd5f75-1702543562577/node_modules/@ethersproject-xdc/abstract-provider" + "@ethersproject-xdc/abstract-signer" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-7425d74e-fa38-4fcf-bf19-50b9e0cd5f75-1702543562577/node_modules/@ethersproject-xdc/abstract-signer" + "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-7425d74e-fa38-4fcf-bf19-50b9e0cd5f75-1702543562577/node_modules/@ethersproject-xdc/address" + "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-7425d74e-fa38-4fcf-bf19-50b9e0cd5f75-1702543562577/node_modules/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-7425d74e-fa38-4fcf-bf19-50b9e0cd5f75-1702543562577/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/constants" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-7425d74e-fa38-4fcf-bf19-50b9e0cd5f75-1702543562577/node_modules/@ethersproject-xdc/constants" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-7425d74e-fa38-4fcf-bf19-50b9e0cd5f75-1702543562577/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-7425d74e-fa38-4fcf-bf19-50b9e0cd5f75-1702543562577/node_modules/@ethersproject-xdc/properties" + "@ethersproject-xdc/transactions" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-7425d74e-fa38-4fcf-bf19-50b9e0cd5f75-1702543562577/node_modules/@ethersproject-xdc/transactions" "@ethersproject-xdc/hash@file:vendor/@ethersproject-xdc/hash": version "5.7.0" dependencies: - "@ethersproject-xdc/abstract-signer" "file:vendor/@ethersproject-xdc/abstract-signer" - "@ethersproject-xdc/address" "file:vendor/@ethersproject-xdc/address" - "@ethersproject-xdc/base64" "file:vendor/@ethersproject-xdc/base64" - "@ethersproject-xdc/bignumber" "file:vendor/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" - "@ethersproject-xdc/keccak256" "file:vendor/@ethersproject-xdc/keccak256" - "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" - "@ethersproject-xdc/properties" "file:vendor/@ethersproject-xdc/properties" - "@ethersproject-xdc/strings" "file:vendor/@ethersproject-xdc/strings" + "@ethersproject-xdc/abstract-signer" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-8e1dfc29-3fa4-4926-8909-f043b6fce293-1702543562573/node_modules/@ethersproject-xdc/abstract-signer" + "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-8e1dfc29-3fa4-4926-8909-f043b6fce293-1702543562573/node_modules/@ethersproject-xdc/address" + "@ethersproject-xdc/base64" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-8e1dfc29-3fa4-4926-8909-f043b6fce293-1702543562573/node_modules/@ethersproject-xdc/base64" + "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-8e1dfc29-3fa4-4926-8909-f043b6fce293-1702543562573/node_modules/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-8e1dfc29-3fa4-4926-8909-f043b6fce293-1702543562573/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-8e1dfc29-3fa4-4926-8909-f043b6fce293-1702543562573/node_modules/@ethersproject-xdc/keccak256" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-8e1dfc29-3fa4-4926-8909-f043b6fce293-1702543562573/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-8e1dfc29-3fa4-4926-8909-f043b6fce293-1702543562573/node_modules/@ethersproject-xdc/properties" + "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-8e1dfc29-3fa4-4926-8909-f043b6fce293-1702543562573/node_modules/@ethersproject-xdc/strings" "@ethersproject-xdc/hdnode@file:vendor/@ethersproject-xdc/hdnode": version "5.7.0" dependencies: - "@ethersproject-xdc/abstract-signer" "file:vendor/@ethersproject-xdc/abstract-signer" - "@ethersproject-xdc/basex" "file:vendor/@ethersproject-xdc/basex" - "@ethersproject-xdc/bignumber" "file:vendor/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" - "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" - "@ethersproject-xdc/pbkdf2" "file:vendor/@ethersproject-xdc/pbkdf2" - "@ethersproject-xdc/properties" "file:vendor/@ethersproject-xdc/properties" - "@ethersproject-xdc/sha2" "file:vendor/@ethersproject-xdc/sha2" - "@ethersproject-xdc/signing-key" "file:vendor/@ethersproject-xdc/signing-key" - "@ethersproject-xdc/strings" "file:vendor/@ethersproject-xdc/strings" - "@ethersproject-xdc/transactions" "file:vendor/@ethersproject-xdc/transactions" - "@ethersproject-xdc/wordlists" "file:vendor/@ethersproject-xdc/wordlists" + "@ethersproject-xdc/abstract-signer" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-f0f764ca-84dd-44c3-a6fd-b7783035a335-1702543562574/node_modules/@ethersproject-xdc/abstract-signer" + "@ethersproject-xdc/basex" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-f0f764ca-84dd-44c3-a6fd-b7783035a335-1702543562574/node_modules/@ethersproject-xdc/basex" + "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-f0f764ca-84dd-44c3-a6fd-b7783035a335-1702543562574/node_modules/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-f0f764ca-84dd-44c3-a6fd-b7783035a335-1702543562574/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-f0f764ca-84dd-44c3-a6fd-b7783035a335-1702543562574/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/pbkdf2" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-f0f764ca-84dd-44c3-a6fd-b7783035a335-1702543562574/node_modules/@ethersproject-xdc/pbkdf2" + "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-f0f764ca-84dd-44c3-a6fd-b7783035a335-1702543562574/node_modules/@ethersproject-xdc/properties" + "@ethersproject-xdc/sha2" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-f0f764ca-84dd-44c3-a6fd-b7783035a335-1702543562574/node_modules/@ethersproject-xdc/sha2" + "@ethersproject-xdc/signing-key" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-f0f764ca-84dd-44c3-a6fd-b7783035a335-1702543562574/node_modules/@ethersproject-xdc/signing-key" + "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-f0f764ca-84dd-44c3-a6fd-b7783035a335-1702543562574/node_modules/@ethersproject-xdc/strings" + "@ethersproject-xdc/transactions" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-f0f764ca-84dd-44c3-a6fd-b7783035a335-1702543562574/node_modules/@ethersproject-xdc/transactions" + "@ethersproject-xdc/wordlists" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-f0f764ca-84dd-44c3-a6fd-b7783035a335-1702543562574/node_modules/@ethersproject-xdc/wordlists" "@ethersproject-xdc/json-wallets@file:vendor/@ethersproject-xdc/json-wallets": version "5.6.0" dependencies: - "@ethersproject-xdc/abstract-signer" "file:vendor/@ethersproject-xdc/abstract-signer" - "@ethersproject-xdc/address" "file:vendor/@ethersproject-xdc/address" - "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" - "@ethersproject-xdc/hdnode" "file:vendor/@ethersproject-xdc/hdnode" - "@ethersproject-xdc/keccak256" "file:vendor/@ethersproject-xdc/keccak256" - "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" - "@ethersproject-xdc/pbkdf2" "file:vendor/@ethersproject-xdc/pbkdf2" - "@ethersproject-xdc/properties" "file:vendor/@ethersproject-xdc/properties" - "@ethersproject-xdc/random" "file:vendor/@ethersproject-xdc/random" - "@ethersproject-xdc/strings" "file:vendor/@ethersproject-xdc/strings" - "@ethersproject-xdc/transactions" "file:vendor/@ethersproject-xdc/transactions" + "@ethersproject-xdc/abstract-signer" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-5b377700-4757-468e-8c0c-440d6e8355bb-1702543562593/node_modules/@ethersproject-xdc/abstract-signer" + "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-5b377700-4757-468e-8c0c-440d6e8355bb-1702543562593/node_modules/@ethersproject-xdc/address" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-5b377700-4757-468e-8c0c-440d6e8355bb-1702543562593/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/hdnode" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-5b377700-4757-468e-8c0c-440d6e8355bb-1702543562593/node_modules/@ethersproject-xdc/hdnode" + "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-5b377700-4757-468e-8c0c-440d6e8355bb-1702543562593/node_modules/@ethersproject-xdc/keccak256" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-5b377700-4757-468e-8c0c-440d6e8355bb-1702543562593/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/pbkdf2" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-5b377700-4757-468e-8c0c-440d6e8355bb-1702543562593/node_modules/@ethersproject-xdc/pbkdf2" + "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-5b377700-4757-468e-8c0c-440d6e8355bb-1702543562593/node_modules/@ethersproject-xdc/properties" + "@ethersproject-xdc/random" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-5b377700-4757-468e-8c0c-440d6e8355bb-1702543562593/node_modules/@ethersproject-xdc/random" + "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-5b377700-4757-468e-8c0c-440d6e8355bb-1702543562593/node_modules/@ethersproject-xdc/strings" + "@ethersproject-xdc/transactions" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-5b377700-4757-468e-8c0c-440d6e8355bb-1702543562593/node_modules/@ethersproject-xdc/transactions" aes-js "3.0.0" scrypt-js "3.0.1" "@ethersproject-xdc/keccak256@file:vendor/@ethersproject-xdc/keccak256": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-keccak256-5.7.0-ea68ee2d-c6ec-4db5-b6c9-82e8c7e30b2f-1702543562576/node_modules/@ethersproject-xdc/bytes" js-sha3 "0.8.0" "@ethersproject-xdc/logger@file:vendor/@ethersproject-xdc/logger": @@ -1112,67 +1112,67 @@ "@ethersproject-xdc/networks@file:vendor/@ethersproject-xdc/networks": version "5.7.1" dependencies: - "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-networks-5.7.1-0245c4db-039f-4ca1-88f9-1f434596749a-1702543562576/node_modules/@ethersproject-xdc/logger" "@ethersproject-xdc/pbkdf2@file:vendor/@ethersproject-xdc/pbkdf2": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" - "@ethersproject-xdc/sha2" "file:vendor/@ethersproject-xdc/sha2" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-pbkdf2-5.7.0-6b19db25-ae5c-40d1-b0f4-05bdb8c02314-1702543562578/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/sha2" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-pbkdf2-5.7.0-6b19db25-ae5c-40d1-b0f4-05bdb8c02314-1702543562578/node_modules/@ethersproject-xdc/sha2" "@ethersproject-xdc/properties@file:vendor/@ethersproject-xdc/properties": version "5.7.0" dependencies: - "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-properties-5.7.0-e7d64dfb-4c36-425d-8756-cda40757bb4f-1702543562578/node_modules/@ethersproject-xdc/logger" "@ethersproject-xdc/providers@file:vendor/@ethersproject-xdc/providers": version "5.6.2" dependencies: - "@ethersproject-xdc/abstract-provider" "file:vendor/@ethersproject-xdc/abstract-provider" - "@ethersproject-xdc/abstract-signer" "file:vendor/@ethersproject-xdc/abstract-signer" - "@ethersproject-xdc/address" "file:vendor/@ethersproject-xdc/address" - "@ethersproject-xdc/basex" "file:vendor/@ethersproject-xdc/basex" - "@ethersproject-xdc/bignumber" "file:vendor/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" - "@ethersproject-xdc/constants" "file:vendor/@ethersproject-xdc/constants" - "@ethersproject-xdc/hash" "file:vendor/@ethersproject-xdc/hash" - "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" - "@ethersproject-xdc/networks" "file:vendor/@ethersproject-xdc/networks" - "@ethersproject-xdc/properties" "file:vendor/@ethersproject-xdc/properties" - "@ethersproject-xdc/random" "file:vendor/@ethersproject-xdc/random" - "@ethersproject-xdc/rlp" "file:vendor/@ethersproject-xdc/rlp" - "@ethersproject-xdc/sha2" "file:vendor/@ethersproject-xdc/sha2" - "@ethersproject-xdc/strings" "file:vendor/@ethersproject-xdc/strings" - "@ethersproject-xdc/transactions" "file:vendor/@ethersproject-xdc/transactions" - "@ethersproject-xdc/web" "file:vendor/@ethersproject-xdc/web" + "@ethersproject-xdc/abstract-provider" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/abstract-provider" + "@ethersproject-xdc/abstract-signer" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/abstract-signer" + "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/address" + "@ethersproject-xdc/basex" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/basex" + "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/constants" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/constants" + "@ethersproject-xdc/hash" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/hash" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/networks" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/networks" + "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/properties" + "@ethersproject-xdc/random" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/random" + "@ethersproject-xdc/rlp" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/rlp" + "@ethersproject-xdc/sha2" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/sha2" + "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/strings" + "@ethersproject-xdc/transactions" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/transactions" + "@ethersproject-xdc/web" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/web" bech32 "1.1.4" ws "7.4.6" "@ethersproject-xdc/random@file:vendor/@ethersproject-xdc/random": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" - "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-random-5.7.0-b779a428-b680-479f-81b3-e73c5ad97279-1702543562578/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-random-5.7.0-b779a428-b680-479f-81b3-e73c5ad97279-1702543562578/node_modules/@ethersproject-xdc/logger" "@ethersproject-xdc/rlp@file:vendor/@ethersproject-xdc/rlp": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" - "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-rlp-5.7.0-69b7f32f-3577-49b5-862b-74fe06b47b5d-1702543562577/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-rlp-5.7.0-69b7f32f-3577-49b5-862b-74fe06b47b5d-1702543562577/node_modules/@ethersproject-xdc/logger" "@ethersproject-xdc/sha2@file:vendor/@ethersproject-xdc/sha2": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" - "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-sha2-5.7.0-395575b3-67d9-4856-8662-56741cdcade4-1702543562585/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-sha2-5.7.0-395575b3-67d9-4856-8662-56741cdcade4-1702543562585/node_modules/@ethersproject-xdc/logger" hash.js "1.1.7" "@ethersproject-xdc/signing-key@file:vendor/@ethersproject-xdc/signing-key": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" - "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" - "@ethersproject-xdc/properties" "file:vendor/@ethersproject-xdc/properties" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-signing-key-5.7.0-3db6a683-1258-4e2c-98d1-03c7f0537f7a-1702543562580/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-signing-key-5.7.0-3db6a683-1258-4e2c-98d1-03c7f0537f7a-1702543562580/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-signing-key-5.7.0-3db6a683-1258-4e2c-98d1-03c7f0537f7a-1702543562580/node_modules/@ethersproject-xdc/properties" bn.js "^5.2.1" elliptic "6.5.4" hash.js "1.1.7" @@ -1180,76 +1180,76 @@ "@ethersproject-xdc/solidity@file:vendor/@ethersproject-xdc/solidity": version "5.6.0" dependencies: - "@ethersproject-xdc/bignumber" "file:vendor/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" - "@ethersproject-xdc/keccak256" "file:vendor/@ethersproject-xdc/keccak256" - "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" - "@ethersproject-xdc/sha2" "file:vendor/@ethersproject-xdc/sha2" - "@ethersproject-xdc/strings" "file:vendor/@ethersproject-xdc/strings" + "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-solidity-5.6.0-71db91c5-61dd-4096-b1f1-2bd08245fdfa-1702543562581/node_modules/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-solidity-5.6.0-71db91c5-61dd-4096-b1f1-2bd08245fdfa-1702543562581/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-solidity-5.6.0-71db91c5-61dd-4096-b1f1-2bd08245fdfa-1702543562581/node_modules/@ethersproject-xdc/keccak256" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-solidity-5.6.0-71db91c5-61dd-4096-b1f1-2bd08245fdfa-1702543562581/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/sha2" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-solidity-5.6.0-71db91c5-61dd-4096-b1f1-2bd08245fdfa-1702543562581/node_modules/@ethersproject-xdc/sha2" + "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-solidity-5.6.0-71db91c5-61dd-4096-b1f1-2bd08245fdfa-1702543562581/node_modules/@ethersproject-xdc/strings" "@ethersproject-xdc/strings@file:vendor/@ethersproject-xdc/strings": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" - "@ethersproject-xdc/constants" "file:vendor/@ethersproject-xdc/constants" - "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-strings-5.7.0-fba0081b-bb52-4ecb-a2cc-985b7ca9a082-1702543562592/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/constants" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-strings-5.7.0-fba0081b-bb52-4ecb-a2cc-985b7ca9a082-1702543562592/node_modules/@ethersproject-xdc/constants" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-strings-5.7.0-fba0081b-bb52-4ecb-a2cc-985b7ca9a082-1702543562592/node_modules/@ethersproject-xdc/logger" "@ethersproject-xdc/transactions@file:vendor/@ethersproject-xdc/transactions": version "5.7.0" dependencies: - "@ethersproject-xdc/address" "file:vendor/@ethersproject-xdc/address" - "@ethersproject-xdc/bignumber" "file:vendor/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" - "@ethersproject-xdc/constants" "file:vendor/@ethersproject-xdc/constants" - "@ethersproject-xdc/keccak256" "file:vendor/@ethersproject-xdc/keccak256" - "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" - "@ethersproject-xdc/properties" "file:vendor/@ethersproject-xdc/properties" - "@ethersproject-xdc/rlp" "file:vendor/@ethersproject-xdc/rlp" - "@ethersproject-xdc/signing-key" "file:vendor/@ethersproject-xdc/signing-key" + "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-136d9540-a925-4b01-8479-3fefaef00ae4-1702543562598/node_modules/@ethersproject-xdc/address" + "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-136d9540-a925-4b01-8479-3fefaef00ae4-1702543562598/node_modules/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-136d9540-a925-4b01-8479-3fefaef00ae4-1702543562598/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/constants" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-136d9540-a925-4b01-8479-3fefaef00ae4-1702543562598/node_modules/@ethersproject-xdc/constants" + "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-136d9540-a925-4b01-8479-3fefaef00ae4-1702543562598/node_modules/@ethersproject-xdc/keccak256" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-136d9540-a925-4b01-8479-3fefaef00ae4-1702543562598/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-136d9540-a925-4b01-8479-3fefaef00ae4-1702543562598/node_modules/@ethersproject-xdc/properties" + "@ethersproject-xdc/rlp" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-136d9540-a925-4b01-8479-3fefaef00ae4-1702543562598/node_modules/@ethersproject-xdc/rlp" + "@ethersproject-xdc/signing-key" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-136d9540-a925-4b01-8479-3fefaef00ae4-1702543562598/node_modules/@ethersproject-xdc/signing-key" "@ethersproject-xdc/units@file:vendor/@ethersproject-xdc/units": version "5.6.0" dependencies: - "@ethersproject-xdc/bignumber" "file:vendor/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/constants" "file:vendor/@ethersproject-xdc/constants" - "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" + "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-units-5.6.0-26c9d344-8c4c-461c-bbfe-854e38b88f09-1702543562593/node_modules/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/constants" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-units-5.6.0-26c9d344-8c4c-461c-bbfe-854e38b88f09-1702543562593/node_modules/@ethersproject-xdc/constants" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-units-5.6.0-26c9d344-8c4c-461c-bbfe-854e38b88f09-1702543562593/node_modules/@ethersproject-xdc/logger" "@ethersproject-xdc/wallet@file:vendor/@ethersproject-xdc/wallet": version "5.6.0" dependencies: - "@ethersproject-xdc/abstract-provider" "file:vendor/@ethersproject-xdc/abstract-provider" - "@ethersproject-xdc/abstract-signer" "file:vendor/@ethersproject-xdc/abstract-signer" - "@ethersproject-xdc/address" "file:vendor/@ethersproject-xdc/address" - "@ethersproject-xdc/bignumber" "file:vendor/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" - "@ethersproject-xdc/hash" "file:vendor/@ethersproject-xdc/hash" - "@ethersproject-xdc/hdnode" "file:vendor/@ethersproject-xdc/hdnode" - "@ethersproject-xdc/json-wallets" "file:vendor/@ethersproject-xdc/json-wallets" - "@ethersproject-xdc/keccak256" "file:vendor/@ethersproject-xdc/keccak256" - "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" - "@ethersproject-xdc/properties" "file:vendor/@ethersproject-xdc/properties" - "@ethersproject-xdc/random" "file:vendor/@ethersproject-xdc/random" - "@ethersproject-xdc/signing-key" "file:vendor/@ethersproject-xdc/signing-key" - "@ethersproject-xdc/transactions" "file:vendor/@ethersproject-xdc/transactions" - "@ethersproject-xdc/wordlists" "file:vendor/@ethersproject-xdc/wordlists" + "@ethersproject-xdc/abstract-provider" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-17ba88a4-914c-44e3-95d9-98b58e175bad-1702543562595/node_modules/@ethersproject-xdc/abstract-provider" + "@ethersproject-xdc/abstract-signer" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-17ba88a4-914c-44e3-95d9-98b58e175bad-1702543562595/node_modules/@ethersproject-xdc/abstract-signer" + "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-17ba88a4-914c-44e3-95d9-98b58e175bad-1702543562595/node_modules/@ethersproject-xdc/address" + "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-17ba88a4-914c-44e3-95d9-98b58e175bad-1702543562595/node_modules/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-17ba88a4-914c-44e3-95d9-98b58e175bad-1702543562595/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/hash" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-17ba88a4-914c-44e3-95d9-98b58e175bad-1702543562595/node_modules/@ethersproject-xdc/hash" + "@ethersproject-xdc/hdnode" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-17ba88a4-914c-44e3-95d9-98b58e175bad-1702543562595/node_modules/@ethersproject-xdc/hdnode" + "@ethersproject-xdc/json-wallets" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-17ba88a4-914c-44e3-95d9-98b58e175bad-1702543562595/node_modules/@ethersproject-xdc/json-wallets" + "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-17ba88a4-914c-44e3-95d9-98b58e175bad-1702543562595/node_modules/@ethersproject-xdc/keccak256" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-17ba88a4-914c-44e3-95d9-98b58e175bad-1702543562595/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-17ba88a4-914c-44e3-95d9-98b58e175bad-1702543562595/node_modules/@ethersproject-xdc/properties" + "@ethersproject-xdc/random" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-17ba88a4-914c-44e3-95d9-98b58e175bad-1702543562595/node_modules/@ethersproject-xdc/random" + "@ethersproject-xdc/signing-key" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-17ba88a4-914c-44e3-95d9-98b58e175bad-1702543562595/node_modules/@ethersproject-xdc/signing-key" + "@ethersproject-xdc/transactions" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-17ba88a4-914c-44e3-95d9-98b58e175bad-1702543562595/node_modules/@ethersproject-xdc/transactions" + "@ethersproject-xdc/wordlists" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-17ba88a4-914c-44e3-95d9-98b58e175bad-1702543562595/node_modules/@ethersproject-xdc/wordlists" "@ethersproject-xdc/web@file:vendor/@ethersproject-xdc/web": version "5.7.1" dependencies: - "@ethersproject-xdc/base64" "file:vendor/@ethersproject-xdc/base64" - "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" - "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" - "@ethersproject-xdc/properties" "file:vendor/@ethersproject-xdc/properties" - "@ethersproject-xdc/strings" "file:vendor/@ethersproject-xdc/strings" + "@ethersproject-xdc/base64" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-web-5.7.1-37abcc2b-b27e-4583-be04-ede2baf49d7a-1702543562597/node_modules/@ethersproject-xdc/base64" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-web-5.7.1-37abcc2b-b27e-4583-be04-ede2baf49d7a-1702543562597/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-web-5.7.1-37abcc2b-b27e-4583-be04-ede2baf49d7a-1702543562597/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-web-5.7.1-37abcc2b-b27e-4583-be04-ede2baf49d7a-1702543562597/node_modules/@ethersproject-xdc/properties" + "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-web-5.7.1-37abcc2b-b27e-4583-be04-ede2baf49d7a-1702543562597/node_modules/@ethersproject-xdc/strings" "@ethersproject-xdc/wordlists@file:vendor/@ethersproject-xdc/wordlists": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" - "@ethersproject-xdc/hash" "file:vendor/@ethersproject-xdc/hash" - "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" - "@ethersproject-xdc/properties" "file:vendor/@ethersproject-xdc/properties" - "@ethersproject-xdc/strings" "file:vendor/@ethersproject-xdc/strings" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wordlists-5.7.0-f86f2d9a-450e-4898-9ac5-5ff9fd3ad786-1702543562594/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/hash" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wordlists-5.7.0-f86f2d9a-450e-4898-9ac5-5ff9fd3ad786-1702543562594/node_modules/@ethersproject-xdc/hash" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wordlists-5.7.0-f86f2d9a-450e-4898-9ac5-5ff9fd3ad786-1702543562594/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wordlists-5.7.0-f86f2d9a-450e-4898-9ac5-5ff9fd3ad786-1702543562594/node_modules/@ethersproject-xdc/properties" + "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wordlists-5.7.0-f86f2d9a-450e-4898-9ac5-5ff9fd3ad786-1702543562594/node_modules/@ethersproject-xdc/strings" "@ethersproject/abi@5.7.0", "@ethersproject/abi@^5.0.12", "@ethersproject/abi@^5.1.2", "@ethersproject/abi@^5.4.0", "@ethersproject/abi@^5.5.0", "@ethersproject/abi@^5.6.3", "@ethersproject/abi@^5.7.0": version "5.7.0" @@ -2655,14 +2655,14 @@ toformat "^2.0.0" viem "1.19.9" -"@pancakeswap/sdk@^2.4.5": - version "2.4.5" - resolved "https://registry.yarnpkg.com/@pancakeswap/sdk/-/sdk-2.4.5.tgz#783c02efc7ca89d2297b0b07040639d90c3e610d" - integrity sha512-qfHOPGXitDQ5y1dmYloe6UQe/0Ki0enow4MLtr5W49Jl7ZXr8oB6XV7usYtT63R7vqLSKY83rd8Wyw18vxP7dA== +"@pancakeswap/sdk@^4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@pancakeswap/sdk/-/sdk-4.0.0.tgz#6068bf3c1b031ef13f4b223ee3cbeff7ddbb5d96" + integrity sha512-gUQr3svj/gk85ef7Dztu1itK0HqfUYDki8d4WM4SpkIeqebo3r9DFuBJ7G6tlQaefNthQF0Loi1HB+wLP+2o3w== dependencies: + "@pancakeswap/swap-sdk-core" "1.0.0" big.js "^5.2.2" decimal.js-light "^2.5.0" - jsbi "^3.1.4" tiny-invariant "^1.1.0" tiny-warning "^1.0.3" toformat "^2.0.0" @@ -7376,36 +7376,36 @@ ethereumjs-util@^6.0.0, ethereumjs-util@^6.2.1: "ethers-xdc@file:./vendor/ethers-xdc": version "5.7.2" dependencies: - "@ethersproject-xdc/abi" "file:vendor/@ethersproject-xdc/abi" - "@ethersproject-xdc/abstract-provider" "file:vendor/@ethersproject-xdc/abstract-provider" - "@ethersproject-xdc/abstract-signer" "file:vendor/@ethersproject-xdc/abstract-signer" - "@ethersproject-xdc/address" "file:vendor/@ethersproject-xdc/address" - "@ethersproject-xdc/base64" "file:vendor/@ethersproject-xdc/base64" - "@ethersproject-xdc/basex" "file:vendor/@ethersproject-xdc/basex" - "@ethersproject-xdc/bignumber" "file:vendor/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" - "@ethersproject-xdc/constants" "file:vendor/@ethersproject-xdc/constants" - "@ethersproject-xdc/contracts" "file:vendor/@ethersproject-xdc/contracts" - "@ethersproject-xdc/hash" "file:vendor/@ethersproject-xdc/hash" - "@ethersproject-xdc/hdnode" "file:vendor/@ethersproject-xdc/hdnode" - "@ethersproject-xdc/json-wallets" "file:vendor/@ethersproject-xdc/json-wallets" - "@ethersproject-xdc/keccak256" "file:vendor/@ethersproject-xdc/keccak256" - "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" - "@ethersproject-xdc/networks" "file:vendor/@ethersproject-xdc/networks" - "@ethersproject-xdc/pbkdf2" "file:vendor/@ethersproject-xdc/pbkdf2" - "@ethersproject-xdc/properties" "file:vendor/@ethersproject-xdc/properties" - "@ethersproject-xdc/providers" "file:vendor/@ethersproject-xdc/providers" - "@ethersproject-xdc/random" "file:vendor/@ethersproject-xdc/random" - "@ethersproject-xdc/rlp" "file:vendor/@ethersproject-xdc/rlp" - "@ethersproject-xdc/sha2" "file:vendor/@ethersproject-xdc/sha2" - "@ethersproject-xdc/signing-key" "file:vendor/@ethersproject-xdc/signing-key" - "@ethersproject-xdc/solidity" "file:vendor/@ethersproject-xdc/solidity" - "@ethersproject-xdc/strings" "file:vendor/@ethersproject-xdc/strings" - "@ethersproject-xdc/transactions" "file:vendor/@ethersproject-xdc/transactions" - "@ethersproject-xdc/units" "file:vendor/@ethersproject-xdc/units" - "@ethersproject-xdc/wallet" "file:vendor/@ethersproject-xdc/wallet" - "@ethersproject-xdc/web" "file:vendor/@ethersproject-xdc/web" - "@ethersproject-xdc/wordlists" "file:vendor/@ethersproject-xdc/wordlists" + "@ethersproject-xdc/abi" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/abi" + "@ethersproject-xdc/abstract-provider" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/abstract-provider" + "@ethersproject-xdc/abstract-signer" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/abstract-signer" + "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/address" + "@ethersproject-xdc/base64" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/base64" + "@ethersproject-xdc/basex" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/basex" + "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/constants" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/constants" + "@ethersproject-xdc/contracts" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/contracts" + "@ethersproject-xdc/hash" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/hash" + "@ethersproject-xdc/hdnode" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/hdnode" + "@ethersproject-xdc/json-wallets" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/json-wallets" + "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/keccak256" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/networks" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/networks" + "@ethersproject-xdc/pbkdf2" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/pbkdf2" + "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/properties" + "@ethersproject-xdc/providers" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/providers" + "@ethersproject-xdc/random" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/random" + "@ethersproject-xdc/rlp" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/rlp" + "@ethersproject-xdc/sha2" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/sha2" + "@ethersproject-xdc/signing-key" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/signing-key" + "@ethersproject-xdc/solidity" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/solidity" + "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/strings" + "@ethersproject-xdc/transactions" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/transactions" + "@ethersproject-xdc/units" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/units" + "@ethersproject-xdc/wallet" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/wallet" + "@ethersproject-xdc/web" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/web" + "@ethersproject-xdc/wordlists" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/wordlists" ethers@4.0.0-beta.3: version "4.0.0-beta.3" From f360f07f55dd61dc5cd8ff5cf2e0799b997ab167 Mon Sep 17 00:00:00 2001 From: codercrane Date: Fri, 15 Dec 2023 19:46:50 +0800 Subject: [PATCH 02/13] feat: support pancakeswap v3 --- package.json | 7 +- src/connectors/pancakeswap/pancakeswap.ts | 258 ++++++++++-- src/services/common-interfaces.ts | 8 + yarn.lock | 472 +++++++++++++--------- 4 files changed, 518 insertions(+), 227 deletions(-) diff --git a/package.json b/package.json index 538e9fb5b5..7d8b60c285 100644 --- a/package.json +++ b/package.json @@ -32,11 +32,13 @@ "@ethersproject/networks": "5.7.0", "@ethersproject/providers": "5.7.0", "@ethersproject/solidity": "5.7.0", - "@injectivelabs/sdk-ts": "^1.10.58", "@harmony-js/core": "^0.1.57", "@harmony-js/utils": "^0.1.56", "@improbable-eng/grpc-web": "^0.13.0", + "@injectivelabs/sdk-ts": "^1.10.58", "@pancakeswap/sdk": "^4.0.0", + "@pancakeswap/smart-router": "^4.2.1", + "@pancakeswap/tokens": "^0.1.6", "@pancakeswap/swap-sdk-core": "^1.0.0", "@pancakeswap/v3-core": "^1.0.2", "@pancakeswap/v3-periphery": "^1.0.2", @@ -77,6 +79,7 @@ "express": "^4.17.1", "express-winston": "^4.1.0", "fs-extra": "^10.0.0", + "graphql-request": "^6.1.0", "http-status-codes": "2.2.0", "immutable": "^4.2.4", "js-yaml": "^4.1.0", @@ -97,8 +100,8 @@ "web3": "^1.7.3", "winston": "^3.3.3", "winston-daily-rotate-file": "^4.5.5", - "xsswap-sdk": "^1.0.1", "xrpl": "^2.7.0", + "xsswap-sdk": "^1.0.1", "yarn": "^1.22.17" }, "devDependencies": { diff --git a/src/connectors/pancakeswap/pancakeswap.ts b/src/connectors/pancakeswap/pancakeswap.ts index cb0b294dd8..edc867a062 100644 --- a/src/connectors/pancakeswap/pancakeswap.ts +++ b/src/connectors/pancakeswap/pancakeswap.ts @@ -1,9 +1,11 @@ +/* eslint-disable @typescript-eslint/ban-ts-comment */ import { Currency, CurrencyAmount, Fetcher, Pair, Percent, + Price, Router, SwapParameters, Token, @@ -32,6 +34,10 @@ import { isFractionString } from '../../services/validators'; import { PancakeSwapConfig } from './pancakeswap.config'; import routerAbi from './pancakeswap_router_abi.json'; import { getAddress } from 'ethers/lib/utils'; +import { PublicClient, createPublicClient, http } from 'viem'; +import { GraphQLClient } from 'graphql-request'; +import { Pool, SmartRouter } from '@pancakeswap/smart-router'; +import { bsc, bscTestnet } from '@wagmi/chains'; export class PancakeSwap implements Uniswapish { private static _instances: { [name: string]: PancakeSwap }; @@ -43,9 +49,12 @@ export class PancakeSwap implements Uniswapish { private _routerAbi: ContractInterface; private _gasLimitEstimate: number; private _ttl: number; + private _maximumHops: number; private tokenList: Record = {}; private _ready: boolean = false; + private readonly _useRouter: boolean; + private constructor(chain: string, network: string) { const config = PancakeSwapConfig.config; this.bsc = BinanceSmartChain.getInstance(network); @@ -54,8 +63,15 @@ export class PancakeSwap implements Uniswapish { this._chain = chain; this._router = config.routerAddress(network); this._ttl = config.ttl; + this._maximumHops = config.maximumHops ?? 1; this._routerAbi = routerAbi.abi; this._gasLimitEstimate = config.gasLimitEstimate; + + if (config.useRouter === false && config.feeTier == null) { + throw new Error('Must specify fee tier if not using router'); + } + + this._useRouter = config.useRouter ?? true; } public static getInstance(chain: string, network: string): PancakeSwap { @@ -132,6 +148,13 @@ export class PancakeSwap implements Uniswapish { return this._ttl; } + /** + * Default maximum number of hops for to go through for a swap transactions. + */ + public get maximumHops(): number { + return this._maximumHops; + } + /** * Gets the allowed slippage percent from the optional parameter or the value * in the configuration. @@ -171,33 +194,82 @@ export class PancakeSwap implements Uniswapish { ): Promise { const nativeTokenAmount: CurrencyAmount = CurrencyAmount.fromRawAmount(baseToken, amount.toString()); + logger.info( `Fetching pair data for ${quoteToken.address}-${baseToken.address}.` ); - const pair: Pair = await Fetcher.fetchPairData( - quoteToken, - baseToken, - this.bsc.provider - ); - const trades: Trade[] = - Trade.bestTradeExactOut([pair], quoteToken, nativeTokenAmount, { - maxHops: 5, + + if (this._useRouter) { + const quoteProvider = SmartRouter.createQuoteProvider({ + // @ts-ignore + onChainProvider: () => this.createPublicClient(), }); - if (!trades || trades.length === 0) { - throw new UniswapishPriceError( - `priceSwapOut: no trade pair found for ${quoteToken.address} to ${baseToken.address}.` + const pools = await this.getPools(baseToken, quoteToken); + + const trade = await SmartRouter.getBestTrade( + nativeTokenAmount, + quoteToken, + TradeType.EXACT_OUTPUT, + { + gasPriceWei: () => this.createPublicClient().getGasPrice(), + maxHops: this.maximumHops, + maxSplits: 2, + poolProvider: SmartRouter.createStaticPoolProvider(pools), + quoteProvider, + quoterOptimization: true, + } ); - } - logger.info( - `Best trade for ${quoteToken.address}-${baseToken.address}: ` + - `${trades[0].executionPrice.invert().toFixed(6)} ` + - `${baseToken.name}.` - ); - const expectedAmount = trades[0].maximumAmountIn( - this.getAllowedSlippage(allowedSlippage) - ); - return { trade: trades[0], expectedAmount }; + if (!trade) { + throw new UniswapishPriceError( + `priceSwapOut: no trade pair found for ${baseToken.address} to ${quoteToken.address}.` + ); + } + logger.info( + `Best trade for ${baseToken.address}-${quoteToken.address}: ` + + `${trade.inputAmount.toExact()}` + + `${baseToken.symbol}.` + ); + + return { + trade: { + ...trade, + executionPrice: new Price( + trade.inputAmount.currency, + trade.outputAmount.currency, + trade.inputAmount.quotient, + trade.outputAmount.quotient + ), + }, + expectedAmount: trade.inputAmount, + }; + } else { + const pair: Pair = await Fetcher.fetchPairData( + quoteToken, + baseToken, + this.bsc.provider + ); + console.log(pair); + const trades: Trade[] = + Trade.bestTradeExactOut([pair], quoteToken, nativeTokenAmount, { + maxHops: this._maximumHops, + }); + if (!trades || trades.length === 0) { + throw new UniswapishPriceError( + `priceSwapOut: no trade pair found for ${quoteToken.address} to ${baseToken.address}.` + ); + } + logger.info( + `Best trade for ${quoteToken.address}-${baseToken.address}: ` + + `${trades[0].executionPrice.invert().toFixed(6)} ` + + `${baseToken.name}.` + ); + + const expectedAmount = trades[0].maximumAmountIn( + this.getAllowedSlippage(allowedSlippage) + ); + return { trade: trades[0], expectedAmount }; + } } /** @@ -224,29 +296,75 @@ export class PancakeSwap implements Uniswapish { `Fetching pair data for ${baseToken.address}-${quoteToken.address}.` ); - const pair: Pair = await Fetcher.fetchPairData( - baseToken, - quoteToken, - this.bsc.provider - ); - const trades: Trade[] = - Trade.bestTradeExactIn([pair], nativeTokenAmount, quoteToken, { - maxHops: 5, + if (this._useRouter) { + const quoteProvider = SmartRouter.createQuoteProvider({ + // @ts-ignore + onChainProvider: () => this.createPublicClient(), }); - if (!trades || trades.length === 0) { - throw new UniswapishPriceError( - `priceSwapIn: no trade pair found for ${baseToken} to ${quoteToken}.` + const pools = await this.getPools(baseToken, quoteToken); + + const trade = await SmartRouter.getBestTrade( + nativeTokenAmount, + quoteToken, + TradeType.EXACT_INPUT, + { + gasPriceWei: () => this.createPublicClient().getGasPrice(), + maxHops: this.maximumHops, + maxSplits: 2, + poolProvider: SmartRouter.createStaticPoolProvider(pools), + quoteProvider, + quoterOptimization: true, + } + ); + + if (!trade) { + throw new UniswapishPriceError( + `priceSwapIn: no trade pair found for ${baseToken.address} to ${quoteToken.address}.` + ); + } + logger.info( + `Best trade for ${baseToken.address}-${quoteToken.address}: ` + + `${trade.outputAmount.toExact()}` + + `${baseToken.symbol}.` + ); + + return { + trade: { + ...trade, + executionPrice: new Price( + trade.inputAmount.currency, + trade.outputAmount.currency, + trade.inputAmount.quotient, + trade.outputAmount.quotient + ), + }, + expectedAmount: trade.outputAmount, + }; + } else { + const pair: Pair = await Fetcher.fetchPairData( + baseToken, + quoteToken, + this.bsc.provider + ); + const trades: Trade[] = + Trade.bestTradeExactIn([pair], nativeTokenAmount, quoteToken, { + maxHops: 5, + }); + if (!trades || trades.length === 0) { + throw new UniswapishPriceError( + `priceSwapIn: no trade pair found for ${baseToken} to ${quoteToken}.` + ); + } + logger.info( + `Best trade for ${baseToken.address}-${quoteToken.address}: ` + + `${trades[0].executionPrice.toFixed(6)}` + + `${baseToken.name}.` + ); + const expectedAmount = trades[0].minimumAmountOut( + this.getAllowedSlippage(allowedSlippage) ); + return { trade: trades[0], expectedAmount }; } - logger.info( - `Best trade for ${baseToken.address}-${quoteToken.address}: ` + - `${trades[0].executionPrice.toFixed(6)}` + - `${baseToken.name}.` - ); - const expectedAmount = trades[0].minimumAmountOut( - this.getAllowedSlippage(allowedSlippage) - ); - return { trade: trades[0], expectedAmount }; } /** @@ -309,4 +427,62 @@ export class PancakeSwap implements Uniswapish { await this.bsc.nonceManager.commitNonce(wallet.address, nonce); return tx; } + + async getPools(currencyA: Currency, currencyB: Currency): Promise { + const v3SubgraphClient = new GraphQLClient( + 'https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-v3-bsc' + ); + const v2SubgraphClient = new GraphQLClient( + 'https://proxy-worker-api.pancakeswap.com/bsc-exchange' + ); + + const pairs = SmartRouter.getPairCombinations(currencyA, currencyB); + + const allPools = await Promise.allSettled([ + // @ts-ignore + SmartRouter.getStablePoolsOnChain(pairs, () => this.createPublicClient()), + SmartRouter.getV2CandidatePools({ + // @ts-ignore + onChainProvider: () => this.createPublicClient(), + // @ts-ignore + v2SubgraphProvider: () => v2SubgraphClient, + // @ts-ignore + v3SubgraphProvider: () => v3SubgraphClient, + currencyA, + currencyB, + }), + SmartRouter.getV3CandidatePools({ + // @ts-ignore + onChainProvider: () => this.createPublicClient(), + // @ts-ignore + subgraphProvider: () => v3SubgraphClient, + currencyA, + currencyB, + subgraphCacheFallback: false, + }), + ]); + + const fulfilledPools = allPools.reduce((acc, pool) => { + if (pool.status === 'fulfilled') { + return [...acc, ...pool.value]; + } + return acc; + }, [] as Pool[]); + + return fulfilledPools.flat(); + } + + private createPublicClient(): PublicClient { + const transportUrl = this.bsc.rpcUrl; + + return createPublicClient({ + chain: this.chainId === 56 ? bsc : bscTestnet, + transport: http(transportUrl), + batch: { + multicall: { + batchSize: 1024 * 200, + }, + }, + }); + } } diff --git a/src/services/common-interfaces.ts b/src/services/common-interfaces.ts index 01665be7d2..25e8ac78ce 100644 --- a/src/services/common-interfaces.ts +++ b/src/services/common-interfaces.ts @@ -85,7 +85,9 @@ import { Trade as PancakeSwapTrade, Fraction as PancakeSwapFraction, Currency as PancakeSwapCurrency, + Price as PancakeSwapPrice, } from '@pancakeswap/sdk'; +import { SmartRouterTrade as PancakeSwapSmartRouterTrade } from '@pancakeswap/smart-router'; import { Token as TokenXsswap, CurrencyAmount as CurrencyAmountXsswap, @@ -148,6 +150,12 @@ export type UniswapishTrade = PancakeSwapCurrency, PancakeSwapTradeType > + | (PancakeSwapSmartRouterTrade & { + executionPrice: PancakeSwapPrice< + PancakeSwapCurrency, + PancakeSwapCurrency + >; + }) | MMFTrade | VVSTrade | TradeXsswap diff --git a/yarn.lock b/yarn.lock index bc7f50c877..5f1b51b819 100644 --- a/yarn.lock +++ b/yarn.lock @@ -973,137 +973,137 @@ "@ethersproject-xdc/abi@file:vendor/@ethersproject-xdc/abi": version "5.7.0" dependencies: - "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-26204d8c-d648-4b0b-819a-566e0a851ab6-1702543562571/node_modules/@ethersproject-xdc/address" - "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-26204d8c-d648-4b0b-819a-566e0a851ab6-1702543562571/node_modules/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-26204d8c-d648-4b0b-819a-566e0a851ab6-1702543562571/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/constants" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-26204d8c-d648-4b0b-819a-566e0a851ab6-1702543562571/node_modules/@ethersproject-xdc/constants" - "@ethersproject-xdc/hash" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-26204d8c-d648-4b0b-819a-566e0a851ab6-1702543562571/node_modules/@ethersproject-xdc/hash" - "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-26204d8c-d648-4b0b-819a-566e0a851ab6-1702543562571/node_modules/@ethersproject-xdc/keccak256" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-26204d8c-d648-4b0b-819a-566e0a851ab6-1702543562571/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-26204d8c-d648-4b0b-819a-566e0a851ab6-1702543562571/node_modules/@ethersproject-xdc/properties" - "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-26204d8c-d648-4b0b-819a-566e0a851ab6-1702543562571/node_modules/@ethersproject-xdc/strings" + "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-d1008a09-f054-4696-98a8-9d508909ae1e-1702640118966/node_modules/@ethersproject-xdc/address" + "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-d1008a09-f054-4696-98a8-9d508909ae1e-1702640118966/node_modules/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-d1008a09-f054-4696-98a8-9d508909ae1e-1702640118966/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/constants" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-d1008a09-f054-4696-98a8-9d508909ae1e-1702640118966/node_modules/@ethersproject-xdc/constants" + "@ethersproject-xdc/hash" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-d1008a09-f054-4696-98a8-9d508909ae1e-1702640118966/node_modules/@ethersproject-xdc/hash" + "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-d1008a09-f054-4696-98a8-9d508909ae1e-1702640118966/node_modules/@ethersproject-xdc/keccak256" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-d1008a09-f054-4696-98a8-9d508909ae1e-1702640118966/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-d1008a09-f054-4696-98a8-9d508909ae1e-1702640118966/node_modules/@ethersproject-xdc/properties" + "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-d1008a09-f054-4696-98a8-9d508909ae1e-1702640118966/node_modules/@ethersproject-xdc/strings" "@ethersproject-xdc/abstract-provider@file:vendor/@ethersproject-xdc/abstract-provider": version "5.7.0" dependencies: - "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-provider-5.7.0-8fe16492-2234-4d94-b7dc-0fe5b8adee4d-1702543562570/node_modules/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-provider-5.7.0-8fe16492-2234-4d94-b7dc-0fe5b8adee4d-1702543562570/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-provider-5.7.0-8fe16492-2234-4d94-b7dc-0fe5b8adee4d-1702543562570/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/networks" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-provider-5.7.0-8fe16492-2234-4d94-b7dc-0fe5b8adee4d-1702543562570/node_modules/@ethersproject-xdc/networks" - "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-provider-5.7.0-8fe16492-2234-4d94-b7dc-0fe5b8adee4d-1702543562570/node_modules/@ethersproject-xdc/properties" - "@ethersproject-xdc/transactions" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-provider-5.7.0-8fe16492-2234-4d94-b7dc-0fe5b8adee4d-1702543562570/node_modules/@ethersproject-xdc/transactions" - "@ethersproject-xdc/web" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-provider-5.7.0-8fe16492-2234-4d94-b7dc-0fe5b8adee4d-1702543562570/node_modules/@ethersproject-xdc/web" + "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-provider-5.7.0-b402a4d7-9836-4407-b84e-f1b458dcbe98-1702640118971/node_modules/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-provider-5.7.0-b402a4d7-9836-4407-b84e-f1b458dcbe98-1702640118971/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-provider-5.7.0-b402a4d7-9836-4407-b84e-f1b458dcbe98-1702640118971/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/networks" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-provider-5.7.0-b402a4d7-9836-4407-b84e-f1b458dcbe98-1702640118971/node_modules/@ethersproject-xdc/networks" + "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-provider-5.7.0-b402a4d7-9836-4407-b84e-f1b458dcbe98-1702640118971/node_modules/@ethersproject-xdc/properties" + "@ethersproject-xdc/transactions" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-provider-5.7.0-b402a4d7-9836-4407-b84e-f1b458dcbe98-1702640118971/node_modules/@ethersproject-xdc/transactions" + "@ethersproject-xdc/web" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-provider-5.7.0-b402a4d7-9836-4407-b84e-f1b458dcbe98-1702640118971/node_modules/@ethersproject-xdc/web" "@ethersproject-xdc/abstract-signer@file:vendor/@ethersproject-xdc/abstract-signer": version "5.7.0" dependencies: - "@ethersproject-xdc/abstract-provider" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-signer-5.7.0-62faef71-849f-4747-ad68-f3cd4f80615e-1702543562569/node_modules/@ethersproject-xdc/abstract-provider" - "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-signer-5.7.0-62faef71-849f-4747-ad68-f3cd4f80615e-1702543562569/node_modules/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-signer-5.7.0-62faef71-849f-4747-ad68-f3cd4f80615e-1702543562569/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-signer-5.7.0-62faef71-849f-4747-ad68-f3cd4f80615e-1702543562569/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-signer-5.7.0-62faef71-849f-4747-ad68-f3cd4f80615e-1702543562569/node_modules/@ethersproject-xdc/properties" + "@ethersproject-xdc/abstract-provider" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-signer-5.7.0-d992b3cf-aa6d-41e3-9c8c-5195254c0f45-1702640118970/node_modules/@ethersproject-xdc/abstract-provider" + "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-signer-5.7.0-d992b3cf-aa6d-41e3-9c8c-5195254c0f45-1702640118970/node_modules/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-signer-5.7.0-d992b3cf-aa6d-41e3-9c8c-5195254c0f45-1702640118970/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-signer-5.7.0-d992b3cf-aa6d-41e3-9c8c-5195254c0f45-1702640118970/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-signer-5.7.0-d992b3cf-aa6d-41e3-9c8c-5195254c0f45-1702640118970/node_modules/@ethersproject-xdc/properties" "@ethersproject-xdc/address@file:vendor/@ethersproject-xdc/address": version "5.7.0" dependencies: - "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-address-5.7.0-bcccaad4-fd65-4637-bc67-64aed991b926-1702543562572/node_modules/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-address-5.7.0-bcccaad4-fd65-4637-bc67-64aed991b926-1702543562572/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-address-5.7.0-bcccaad4-fd65-4637-bc67-64aed991b926-1702543562572/node_modules/@ethersproject-xdc/keccak256" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-address-5.7.0-bcccaad4-fd65-4637-bc67-64aed991b926-1702543562572/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/rlp" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-address-5.7.0-bcccaad4-fd65-4637-bc67-64aed991b926-1702543562572/node_modules/@ethersproject-xdc/rlp" + "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-address-5.7.0-cf843b72-ad23-4b0f-b14d-2822e9a3f366-1702640118972/node_modules/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-address-5.7.0-cf843b72-ad23-4b0f-b14d-2822e9a3f366-1702640118972/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-address-5.7.0-cf843b72-ad23-4b0f-b14d-2822e9a3f366-1702640118972/node_modules/@ethersproject-xdc/keccak256" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-address-5.7.0-cf843b72-ad23-4b0f-b14d-2822e9a3f366-1702640118972/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/rlp" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-address-5.7.0-cf843b72-ad23-4b0f-b14d-2822e9a3f366-1702640118972/node_modules/@ethersproject-xdc/rlp" "@ethersproject-xdc/base64@file:vendor/@ethersproject-xdc/base64": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-base64-5.7.0-767fffbb-c192-4a9a-bcfa-3fae4aeaf823-1702543562575/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-base64-5.7.0-177f487d-77e9-4d75-814d-0901e1c8ef1a-1702640118974/node_modules/@ethersproject-xdc/bytes" "@ethersproject-xdc/basex@file:vendor/@ethersproject-xdc/basex": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-basex-5.7.0-d8a04177-1bbb-402e-8b3c-4a0b81e8461d-1702543562576/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-basex-5.7.0-d8a04177-1bbb-402e-8b3c-4a0b81e8461d-1702543562576/node_modules/@ethersproject-xdc/properties" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-basex-5.7.0-c36c20a1-2014-42b3-b5a2-0e916c379624-1702640118971/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-basex-5.7.0-c36c20a1-2014-42b3-b5a2-0e916c379624-1702640118971/node_modules/@ethersproject-xdc/properties" "@ethersproject-xdc/bignumber@file:vendor/@ethersproject-xdc/bignumber": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-bignumber-5.7.0-79de70ae-e2d3-47bd-bb69-01b2847f9bf2-1702543562571/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-bignumber-5.7.0-79de70ae-e2d3-47bd-bb69-01b2847f9bf2-1702543562571/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-bignumber-5.7.0-3b468a0d-2323-4f01-925b-055502243fdd-1702640118974/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-bignumber-5.7.0-3b468a0d-2323-4f01-925b-055502243fdd-1702640118974/node_modules/@ethersproject-xdc/logger" bn.js "^5.2.1" "@ethersproject-xdc/bytes@file:vendor/@ethersproject-xdc/bytes": version "5.7.0" dependencies: - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-bytes-5.7.0-368015bb-941c-4580-ad78-11e0766bcc39-1702543562599/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-bytes-5.7.0-f5d23fb6-a804-4a07-b41b-e1d5b1cd9d13-1702640118974/node_modules/@ethersproject-xdc/logger" "@ethersproject-xdc/constants@file:vendor/@ethersproject-xdc/constants": version "5.7.0" dependencies: - "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-constants-5.7.0-7ecab1b5-9e9f-478d-b6d6-eb4648ad6419-1702543562575/node_modules/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-constants-5.7.0-c51f03a7-0329-4279-bd50-a61a31d503ed-1702640118973/node_modules/@ethersproject-xdc/bignumber" "@ethersproject-xdc/contracts@file:vendor/@ethersproject-xdc/contracts": version "5.6.0" dependencies: - "@ethersproject-xdc/abi" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-7425d74e-fa38-4fcf-bf19-50b9e0cd5f75-1702543562577/node_modules/@ethersproject-xdc/abi" - "@ethersproject-xdc/abstract-provider" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-7425d74e-fa38-4fcf-bf19-50b9e0cd5f75-1702543562577/node_modules/@ethersproject-xdc/abstract-provider" - "@ethersproject-xdc/abstract-signer" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-7425d74e-fa38-4fcf-bf19-50b9e0cd5f75-1702543562577/node_modules/@ethersproject-xdc/abstract-signer" - "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-7425d74e-fa38-4fcf-bf19-50b9e0cd5f75-1702543562577/node_modules/@ethersproject-xdc/address" - "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-7425d74e-fa38-4fcf-bf19-50b9e0cd5f75-1702543562577/node_modules/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-7425d74e-fa38-4fcf-bf19-50b9e0cd5f75-1702543562577/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/constants" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-7425d74e-fa38-4fcf-bf19-50b9e0cd5f75-1702543562577/node_modules/@ethersproject-xdc/constants" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-7425d74e-fa38-4fcf-bf19-50b9e0cd5f75-1702543562577/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-7425d74e-fa38-4fcf-bf19-50b9e0cd5f75-1702543562577/node_modules/@ethersproject-xdc/properties" - "@ethersproject-xdc/transactions" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-7425d74e-fa38-4fcf-bf19-50b9e0cd5f75-1702543562577/node_modules/@ethersproject-xdc/transactions" + "@ethersproject-xdc/abi" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-519292fc-22ab-4669-bb3d-87ab1bfc9308-1702640118978/node_modules/@ethersproject-xdc/abi" + "@ethersproject-xdc/abstract-provider" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-519292fc-22ab-4669-bb3d-87ab1bfc9308-1702640118978/node_modules/@ethersproject-xdc/abstract-provider" + "@ethersproject-xdc/abstract-signer" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-519292fc-22ab-4669-bb3d-87ab1bfc9308-1702640118978/node_modules/@ethersproject-xdc/abstract-signer" + "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-519292fc-22ab-4669-bb3d-87ab1bfc9308-1702640118978/node_modules/@ethersproject-xdc/address" + "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-519292fc-22ab-4669-bb3d-87ab1bfc9308-1702640118978/node_modules/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-519292fc-22ab-4669-bb3d-87ab1bfc9308-1702640118978/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/constants" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-519292fc-22ab-4669-bb3d-87ab1bfc9308-1702640118978/node_modules/@ethersproject-xdc/constants" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-519292fc-22ab-4669-bb3d-87ab1bfc9308-1702640118978/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-519292fc-22ab-4669-bb3d-87ab1bfc9308-1702640118978/node_modules/@ethersproject-xdc/properties" + "@ethersproject-xdc/transactions" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-519292fc-22ab-4669-bb3d-87ab1bfc9308-1702640118978/node_modules/@ethersproject-xdc/transactions" "@ethersproject-xdc/hash@file:vendor/@ethersproject-xdc/hash": version "5.7.0" dependencies: - "@ethersproject-xdc/abstract-signer" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-8e1dfc29-3fa4-4926-8909-f043b6fce293-1702543562573/node_modules/@ethersproject-xdc/abstract-signer" - "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-8e1dfc29-3fa4-4926-8909-f043b6fce293-1702543562573/node_modules/@ethersproject-xdc/address" - "@ethersproject-xdc/base64" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-8e1dfc29-3fa4-4926-8909-f043b6fce293-1702543562573/node_modules/@ethersproject-xdc/base64" - "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-8e1dfc29-3fa4-4926-8909-f043b6fce293-1702543562573/node_modules/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-8e1dfc29-3fa4-4926-8909-f043b6fce293-1702543562573/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-8e1dfc29-3fa4-4926-8909-f043b6fce293-1702543562573/node_modules/@ethersproject-xdc/keccak256" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-8e1dfc29-3fa4-4926-8909-f043b6fce293-1702543562573/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-8e1dfc29-3fa4-4926-8909-f043b6fce293-1702543562573/node_modules/@ethersproject-xdc/properties" - "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-8e1dfc29-3fa4-4926-8909-f043b6fce293-1702543562573/node_modules/@ethersproject-xdc/strings" + "@ethersproject-xdc/abstract-signer" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-97008e15-1011-4c1d-9b6f-3ac15f9f5708-1702640118980/node_modules/@ethersproject-xdc/abstract-signer" + "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-97008e15-1011-4c1d-9b6f-3ac15f9f5708-1702640118980/node_modules/@ethersproject-xdc/address" + "@ethersproject-xdc/base64" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-97008e15-1011-4c1d-9b6f-3ac15f9f5708-1702640118980/node_modules/@ethersproject-xdc/base64" + "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-97008e15-1011-4c1d-9b6f-3ac15f9f5708-1702640118980/node_modules/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-97008e15-1011-4c1d-9b6f-3ac15f9f5708-1702640118980/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-97008e15-1011-4c1d-9b6f-3ac15f9f5708-1702640118980/node_modules/@ethersproject-xdc/keccak256" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-97008e15-1011-4c1d-9b6f-3ac15f9f5708-1702640118980/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-97008e15-1011-4c1d-9b6f-3ac15f9f5708-1702640118980/node_modules/@ethersproject-xdc/properties" + "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-97008e15-1011-4c1d-9b6f-3ac15f9f5708-1702640118980/node_modules/@ethersproject-xdc/strings" "@ethersproject-xdc/hdnode@file:vendor/@ethersproject-xdc/hdnode": version "5.7.0" dependencies: - "@ethersproject-xdc/abstract-signer" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-f0f764ca-84dd-44c3-a6fd-b7783035a335-1702543562574/node_modules/@ethersproject-xdc/abstract-signer" - "@ethersproject-xdc/basex" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-f0f764ca-84dd-44c3-a6fd-b7783035a335-1702543562574/node_modules/@ethersproject-xdc/basex" - "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-f0f764ca-84dd-44c3-a6fd-b7783035a335-1702543562574/node_modules/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-f0f764ca-84dd-44c3-a6fd-b7783035a335-1702543562574/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-f0f764ca-84dd-44c3-a6fd-b7783035a335-1702543562574/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/pbkdf2" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-f0f764ca-84dd-44c3-a6fd-b7783035a335-1702543562574/node_modules/@ethersproject-xdc/pbkdf2" - "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-f0f764ca-84dd-44c3-a6fd-b7783035a335-1702543562574/node_modules/@ethersproject-xdc/properties" - "@ethersproject-xdc/sha2" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-f0f764ca-84dd-44c3-a6fd-b7783035a335-1702543562574/node_modules/@ethersproject-xdc/sha2" - "@ethersproject-xdc/signing-key" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-f0f764ca-84dd-44c3-a6fd-b7783035a335-1702543562574/node_modules/@ethersproject-xdc/signing-key" - "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-f0f764ca-84dd-44c3-a6fd-b7783035a335-1702543562574/node_modules/@ethersproject-xdc/strings" - "@ethersproject-xdc/transactions" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-f0f764ca-84dd-44c3-a6fd-b7783035a335-1702543562574/node_modules/@ethersproject-xdc/transactions" - "@ethersproject-xdc/wordlists" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-f0f764ca-84dd-44c3-a6fd-b7783035a335-1702543562574/node_modules/@ethersproject-xdc/wordlists" + "@ethersproject-xdc/abstract-signer" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-79ba16b6-f657-4411-a4bc-7953b2e790b9-1702640118985/node_modules/@ethersproject-xdc/abstract-signer" + "@ethersproject-xdc/basex" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-79ba16b6-f657-4411-a4bc-7953b2e790b9-1702640118985/node_modules/@ethersproject-xdc/basex" + "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-79ba16b6-f657-4411-a4bc-7953b2e790b9-1702640118985/node_modules/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-79ba16b6-f657-4411-a4bc-7953b2e790b9-1702640118985/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-79ba16b6-f657-4411-a4bc-7953b2e790b9-1702640118985/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/pbkdf2" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-79ba16b6-f657-4411-a4bc-7953b2e790b9-1702640118985/node_modules/@ethersproject-xdc/pbkdf2" + "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-79ba16b6-f657-4411-a4bc-7953b2e790b9-1702640118985/node_modules/@ethersproject-xdc/properties" + "@ethersproject-xdc/sha2" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-79ba16b6-f657-4411-a4bc-7953b2e790b9-1702640118985/node_modules/@ethersproject-xdc/sha2" + "@ethersproject-xdc/signing-key" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-79ba16b6-f657-4411-a4bc-7953b2e790b9-1702640118985/node_modules/@ethersproject-xdc/signing-key" + "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-79ba16b6-f657-4411-a4bc-7953b2e790b9-1702640118985/node_modules/@ethersproject-xdc/strings" + "@ethersproject-xdc/transactions" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-79ba16b6-f657-4411-a4bc-7953b2e790b9-1702640118985/node_modules/@ethersproject-xdc/transactions" + "@ethersproject-xdc/wordlists" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-79ba16b6-f657-4411-a4bc-7953b2e790b9-1702640118985/node_modules/@ethersproject-xdc/wordlists" "@ethersproject-xdc/json-wallets@file:vendor/@ethersproject-xdc/json-wallets": version "5.6.0" dependencies: - "@ethersproject-xdc/abstract-signer" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-5b377700-4757-468e-8c0c-440d6e8355bb-1702543562593/node_modules/@ethersproject-xdc/abstract-signer" - "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-5b377700-4757-468e-8c0c-440d6e8355bb-1702543562593/node_modules/@ethersproject-xdc/address" - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-5b377700-4757-468e-8c0c-440d6e8355bb-1702543562593/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/hdnode" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-5b377700-4757-468e-8c0c-440d6e8355bb-1702543562593/node_modules/@ethersproject-xdc/hdnode" - "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-5b377700-4757-468e-8c0c-440d6e8355bb-1702543562593/node_modules/@ethersproject-xdc/keccak256" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-5b377700-4757-468e-8c0c-440d6e8355bb-1702543562593/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/pbkdf2" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-5b377700-4757-468e-8c0c-440d6e8355bb-1702543562593/node_modules/@ethersproject-xdc/pbkdf2" - "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-5b377700-4757-468e-8c0c-440d6e8355bb-1702543562593/node_modules/@ethersproject-xdc/properties" - "@ethersproject-xdc/random" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-5b377700-4757-468e-8c0c-440d6e8355bb-1702543562593/node_modules/@ethersproject-xdc/random" - "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-5b377700-4757-468e-8c0c-440d6e8355bb-1702543562593/node_modules/@ethersproject-xdc/strings" - "@ethersproject-xdc/transactions" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-5b377700-4757-468e-8c0c-440d6e8355bb-1702543562593/node_modules/@ethersproject-xdc/transactions" + "@ethersproject-xdc/abstract-signer" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-451c22d4-49a5-4541-9f9e-27f1aa5c5ccf-1702640118988/node_modules/@ethersproject-xdc/abstract-signer" + "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-451c22d4-49a5-4541-9f9e-27f1aa5c5ccf-1702640118988/node_modules/@ethersproject-xdc/address" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-451c22d4-49a5-4541-9f9e-27f1aa5c5ccf-1702640118988/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/hdnode" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-451c22d4-49a5-4541-9f9e-27f1aa5c5ccf-1702640118988/node_modules/@ethersproject-xdc/hdnode" + "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-451c22d4-49a5-4541-9f9e-27f1aa5c5ccf-1702640118988/node_modules/@ethersproject-xdc/keccak256" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-451c22d4-49a5-4541-9f9e-27f1aa5c5ccf-1702640118988/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/pbkdf2" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-451c22d4-49a5-4541-9f9e-27f1aa5c5ccf-1702640118988/node_modules/@ethersproject-xdc/pbkdf2" + "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-451c22d4-49a5-4541-9f9e-27f1aa5c5ccf-1702640118988/node_modules/@ethersproject-xdc/properties" + "@ethersproject-xdc/random" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-451c22d4-49a5-4541-9f9e-27f1aa5c5ccf-1702640118988/node_modules/@ethersproject-xdc/random" + "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-451c22d4-49a5-4541-9f9e-27f1aa5c5ccf-1702640118988/node_modules/@ethersproject-xdc/strings" + "@ethersproject-xdc/transactions" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-451c22d4-49a5-4541-9f9e-27f1aa5c5ccf-1702640118988/node_modules/@ethersproject-xdc/transactions" aes-js "3.0.0" scrypt-js "3.0.1" "@ethersproject-xdc/keccak256@file:vendor/@ethersproject-xdc/keccak256": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-keccak256-5.7.0-ea68ee2d-c6ec-4db5-b6c9-82e8c7e30b2f-1702543562576/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-keccak256-5.7.0-a0846b49-9817-41be-a361-743d53d67213-1702640118976/node_modules/@ethersproject-xdc/bytes" js-sha3 "0.8.0" "@ethersproject-xdc/logger@file:vendor/@ethersproject-xdc/logger": @@ -1112,67 +1112,67 @@ "@ethersproject-xdc/networks@file:vendor/@ethersproject-xdc/networks": version "5.7.1" dependencies: - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-networks-5.7.1-0245c4db-039f-4ca1-88f9-1f434596749a-1702543562576/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-networks-5.7.1-39bc77a8-6977-4703-a80b-5c1b6d00e989-1702640118986/node_modules/@ethersproject-xdc/logger" "@ethersproject-xdc/pbkdf2@file:vendor/@ethersproject-xdc/pbkdf2": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-pbkdf2-5.7.0-6b19db25-ae5c-40d1-b0f4-05bdb8c02314-1702543562578/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/sha2" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-pbkdf2-5.7.0-6b19db25-ae5c-40d1-b0f4-05bdb8c02314-1702543562578/node_modules/@ethersproject-xdc/sha2" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-pbkdf2-5.7.0-dfb74942-31d3-49d7-aebc-8712fa075dea-1702640118987/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/sha2" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-pbkdf2-5.7.0-dfb74942-31d3-49d7-aebc-8712fa075dea-1702640118987/node_modules/@ethersproject-xdc/sha2" "@ethersproject-xdc/properties@file:vendor/@ethersproject-xdc/properties": version "5.7.0" dependencies: - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-properties-5.7.0-e7d64dfb-4c36-425d-8756-cda40757bb4f-1702543562578/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-properties-5.7.0-58349482-5ec4-46f9-8dfa-f10ff1275e79-1702640118987/node_modules/@ethersproject-xdc/logger" "@ethersproject-xdc/providers@file:vendor/@ethersproject-xdc/providers": version "5.6.2" dependencies: - "@ethersproject-xdc/abstract-provider" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/abstract-provider" - "@ethersproject-xdc/abstract-signer" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/abstract-signer" - "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/address" - "@ethersproject-xdc/basex" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/basex" - "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/constants" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/constants" - "@ethersproject-xdc/hash" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/hash" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/networks" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/networks" - "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/properties" - "@ethersproject-xdc/random" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/random" - "@ethersproject-xdc/rlp" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/rlp" - "@ethersproject-xdc/sha2" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/sha2" - "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/strings" - "@ethersproject-xdc/transactions" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/transactions" - "@ethersproject-xdc/web" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-8edc4c3b-410e-45cc-96cc-81c92a04f6e5-1702543562591/node_modules/@ethersproject-xdc/web" + "@ethersproject-xdc/abstract-provider" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/abstract-provider" + "@ethersproject-xdc/abstract-signer" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/abstract-signer" + "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/address" + "@ethersproject-xdc/basex" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/basex" + "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/constants" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/constants" + "@ethersproject-xdc/hash" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/hash" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/networks" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/networks" + "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/properties" + "@ethersproject-xdc/random" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/random" + "@ethersproject-xdc/rlp" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/rlp" + "@ethersproject-xdc/sha2" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/sha2" + "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/strings" + "@ethersproject-xdc/transactions" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/transactions" + "@ethersproject-xdc/web" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/web" bech32 "1.1.4" ws "7.4.6" "@ethersproject-xdc/random@file:vendor/@ethersproject-xdc/random": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-random-5.7.0-b779a428-b680-479f-81b3-e73c5ad97279-1702543562578/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-random-5.7.0-b779a428-b680-479f-81b3-e73c5ad97279-1702543562578/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-random-5.7.0-80d46a5b-5310-4b0a-b1ee-0c957e87b772-1702640119077/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-random-5.7.0-80d46a5b-5310-4b0a-b1ee-0c957e87b772-1702640119077/node_modules/@ethersproject-xdc/logger" "@ethersproject-xdc/rlp@file:vendor/@ethersproject-xdc/rlp": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-rlp-5.7.0-69b7f32f-3577-49b5-862b-74fe06b47b5d-1702543562577/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-rlp-5.7.0-69b7f32f-3577-49b5-862b-74fe06b47b5d-1702543562577/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-rlp-5.7.0-cf0bf34b-b463-4bdc-b50b-03aa09d88f86-1702640118993/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-rlp-5.7.0-cf0bf34b-b463-4bdc-b50b-03aa09d88f86-1702640118993/node_modules/@ethersproject-xdc/logger" "@ethersproject-xdc/sha2@file:vendor/@ethersproject-xdc/sha2": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-sha2-5.7.0-395575b3-67d9-4856-8662-56741cdcade4-1702543562585/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-sha2-5.7.0-395575b3-67d9-4856-8662-56741cdcade4-1702543562585/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-sha2-5.7.0-5e6dfcb5-c5fb-4d9e-97f1-921aff889c1b-1702640119135/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-sha2-5.7.0-5e6dfcb5-c5fb-4d9e-97f1-921aff889c1b-1702640119135/node_modules/@ethersproject-xdc/logger" hash.js "1.1.7" "@ethersproject-xdc/signing-key@file:vendor/@ethersproject-xdc/signing-key": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-signing-key-5.7.0-3db6a683-1258-4e2c-98d1-03c7f0537f7a-1702543562580/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-signing-key-5.7.0-3db6a683-1258-4e2c-98d1-03c7f0537f7a-1702543562580/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-signing-key-5.7.0-3db6a683-1258-4e2c-98d1-03c7f0537f7a-1702543562580/node_modules/@ethersproject-xdc/properties" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-signing-key-5.7.0-efee3fd9-137c-48f9-a419-3ab7a0188303-1702640119002/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-signing-key-5.7.0-efee3fd9-137c-48f9-a419-3ab7a0188303-1702640119002/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-signing-key-5.7.0-efee3fd9-137c-48f9-a419-3ab7a0188303-1702640119002/node_modules/@ethersproject-xdc/properties" bn.js "^5.2.1" elliptic "6.5.4" hash.js "1.1.7" @@ -1180,76 +1180,76 @@ "@ethersproject-xdc/solidity@file:vendor/@ethersproject-xdc/solidity": version "5.6.0" dependencies: - "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-solidity-5.6.0-71db91c5-61dd-4096-b1f1-2bd08245fdfa-1702543562581/node_modules/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-solidity-5.6.0-71db91c5-61dd-4096-b1f1-2bd08245fdfa-1702543562581/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-solidity-5.6.0-71db91c5-61dd-4096-b1f1-2bd08245fdfa-1702543562581/node_modules/@ethersproject-xdc/keccak256" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-solidity-5.6.0-71db91c5-61dd-4096-b1f1-2bd08245fdfa-1702543562581/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/sha2" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-solidity-5.6.0-71db91c5-61dd-4096-b1f1-2bd08245fdfa-1702543562581/node_modules/@ethersproject-xdc/sha2" - "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-solidity-5.6.0-71db91c5-61dd-4096-b1f1-2bd08245fdfa-1702543562581/node_modules/@ethersproject-xdc/strings" + "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-solidity-5.6.0-1afc65b2-9ea7-45fa-ba26-814e45b36c92-1702640118994/node_modules/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-solidity-5.6.0-1afc65b2-9ea7-45fa-ba26-814e45b36c92-1702640118994/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-solidity-5.6.0-1afc65b2-9ea7-45fa-ba26-814e45b36c92-1702640118994/node_modules/@ethersproject-xdc/keccak256" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-solidity-5.6.0-1afc65b2-9ea7-45fa-ba26-814e45b36c92-1702640118994/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/sha2" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-solidity-5.6.0-1afc65b2-9ea7-45fa-ba26-814e45b36c92-1702640118994/node_modules/@ethersproject-xdc/sha2" + "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-solidity-5.6.0-1afc65b2-9ea7-45fa-ba26-814e45b36c92-1702640118994/node_modules/@ethersproject-xdc/strings" "@ethersproject-xdc/strings@file:vendor/@ethersproject-xdc/strings": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-strings-5.7.0-fba0081b-bb52-4ecb-a2cc-985b7ca9a082-1702543562592/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/constants" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-strings-5.7.0-fba0081b-bb52-4ecb-a2cc-985b7ca9a082-1702543562592/node_modules/@ethersproject-xdc/constants" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-strings-5.7.0-fba0081b-bb52-4ecb-a2cc-985b7ca9a082-1702543562592/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-strings-5.7.0-415c9bf3-c4b5-4bc6-8dec-f04d9c03464a-1702640119108/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/constants" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-strings-5.7.0-415c9bf3-c4b5-4bc6-8dec-f04d9c03464a-1702640119108/node_modules/@ethersproject-xdc/constants" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-strings-5.7.0-415c9bf3-c4b5-4bc6-8dec-f04d9c03464a-1702640119108/node_modules/@ethersproject-xdc/logger" "@ethersproject-xdc/transactions@file:vendor/@ethersproject-xdc/transactions": version "5.7.0" dependencies: - "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-136d9540-a925-4b01-8479-3fefaef00ae4-1702543562598/node_modules/@ethersproject-xdc/address" - "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-136d9540-a925-4b01-8479-3fefaef00ae4-1702543562598/node_modules/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-136d9540-a925-4b01-8479-3fefaef00ae4-1702543562598/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/constants" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-136d9540-a925-4b01-8479-3fefaef00ae4-1702543562598/node_modules/@ethersproject-xdc/constants" - "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-136d9540-a925-4b01-8479-3fefaef00ae4-1702543562598/node_modules/@ethersproject-xdc/keccak256" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-136d9540-a925-4b01-8479-3fefaef00ae4-1702543562598/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-136d9540-a925-4b01-8479-3fefaef00ae4-1702543562598/node_modules/@ethersproject-xdc/properties" - "@ethersproject-xdc/rlp" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-136d9540-a925-4b01-8479-3fefaef00ae4-1702543562598/node_modules/@ethersproject-xdc/rlp" - "@ethersproject-xdc/signing-key" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-136d9540-a925-4b01-8479-3fefaef00ae4-1702543562598/node_modules/@ethersproject-xdc/signing-key" + "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-5c01a6d7-96c4-4b56-9dac-c2078c5c6b52-1702640119140/node_modules/@ethersproject-xdc/address" + "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-5c01a6d7-96c4-4b56-9dac-c2078c5c6b52-1702640119140/node_modules/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-5c01a6d7-96c4-4b56-9dac-c2078c5c6b52-1702640119140/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/constants" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-5c01a6d7-96c4-4b56-9dac-c2078c5c6b52-1702640119140/node_modules/@ethersproject-xdc/constants" + "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-5c01a6d7-96c4-4b56-9dac-c2078c5c6b52-1702640119140/node_modules/@ethersproject-xdc/keccak256" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-5c01a6d7-96c4-4b56-9dac-c2078c5c6b52-1702640119140/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-5c01a6d7-96c4-4b56-9dac-c2078c5c6b52-1702640119140/node_modules/@ethersproject-xdc/properties" + "@ethersproject-xdc/rlp" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-5c01a6d7-96c4-4b56-9dac-c2078c5c6b52-1702640119140/node_modules/@ethersproject-xdc/rlp" + "@ethersproject-xdc/signing-key" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-5c01a6d7-96c4-4b56-9dac-c2078c5c6b52-1702640119140/node_modules/@ethersproject-xdc/signing-key" "@ethersproject-xdc/units@file:vendor/@ethersproject-xdc/units": version "5.6.0" dependencies: - "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-units-5.6.0-26c9d344-8c4c-461c-bbfe-854e38b88f09-1702543562593/node_modules/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/constants" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-units-5.6.0-26c9d344-8c4c-461c-bbfe-854e38b88f09-1702543562593/node_modules/@ethersproject-xdc/constants" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-units-5.6.0-26c9d344-8c4c-461c-bbfe-854e38b88f09-1702543562593/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-units-5.6.0-1ba3abf9-57f1-412c-8f5d-841ac3103fc7-1702640119137/node_modules/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/constants" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-units-5.6.0-1ba3abf9-57f1-412c-8f5d-841ac3103fc7-1702640119137/node_modules/@ethersproject-xdc/constants" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-units-5.6.0-1ba3abf9-57f1-412c-8f5d-841ac3103fc7-1702640119137/node_modules/@ethersproject-xdc/logger" "@ethersproject-xdc/wallet@file:vendor/@ethersproject-xdc/wallet": version "5.6.0" dependencies: - "@ethersproject-xdc/abstract-provider" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-17ba88a4-914c-44e3-95d9-98b58e175bad-1702543562595/node_modules/@ethersproject-xdc/abstract-provider" - "@ethersproject-xdc/abstract-signer" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-17ba88a4-914c-44e3-95d9-98b58e175bad-1702543562595/node_modules/@ethersproject-xdc/abstract-signer" - "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-17ba88a4-914c-44e3-95d9-98b58e175bad-1702543562595/node_modules/@ethersproject-xdc/address" - "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-17ba88a4-914c-44e3-95d9-98b58e175bad-1702543562595/node_modules/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-17ba88a4-914c-44e3-95d9-98b58e175bad-1702543562595/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/hash" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-17ba88a4-914c-44e3-95d9-98b58e175bad-1702543562595/node_modules/@ethersproject-xdc/hash" - "@ethersproject-xdc/hdnode" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-17ba88a4-914c-44e3-95d9-98b58e175bad-1702543562595/node_modules/@ethersproject-xdc/hdnode" - "@ethersproject-xdc/json-wallets" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-17ba88a4-914c-44e3-95d9-98b58e175bad-1702543562595/node_modules/@ethersproject-xdc/json-wallets" - "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-17ba88a4-914c-44e3-95d9-98b58e175bad-1702543562595/node_modules/@ethersproject-xdc/keccak256" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-17ba88a4-914c-44e3-95d9-98b58e175bad-1702543562595/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-17ba88a4-914c-44e3-95d9-98b58e175bad-1702543562595/node_modules/@ethersproject-xdc/properties" - "@ethersproject-xdc/random" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-17ba88a4-914c-44e3-95d9-98b58e175bad-1702543562595/node_modules/@ethersproject-xdc/random" - "@ethersproject-xdc/signing-key" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-17ba88a4-914c-44e3-95d9-98b58e175bad-1702543562595/node_modules/@ethersproject-xdc/signing-key" - "@ethersproject-xdc/transactions" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-17ba88a4-914c-44e3-95d9-98b58e175bad-1702543562595/node_modules/@ethersproject-xdc/transactions" - "@ethersproject-xdc/wordlists" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-17ba88a4-914c-44e3-95d9-98b58e175bad-1702543562595/node_modules/@ethersproject-xdc/wordlists" + "@ethersproject-xdc/abstract-provider" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-d9885aa7-c031-4d5d-9a45-357fda905c91-1702640119138/node_modules/@ethersproject-xdc/abstract-provider" + "@ethersproject-xdc/abstract-signer" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-d9885aa7-c031-4d5d-9a45-357fda905c91-1702640119138/node_modules/@ethersproject-xdc/abstract-signer" + "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-d9885aa7-c031-4d5d-9a45-357fda905c91-1702640119138/node_modules/@ethersproject-xdc/address" + "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-d9885aa7-c031-4d5d-9a45-357fda905c91-1702640119138/node_modules/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-d9885aa7-c031-4d5d-9a45-357fda905c91-1702640119138/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/hash" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-d9885aa7-c031-4d5d-9a45-357fda905c91-1702640119138/node_modules/@ethersproject-xdc/hash" + "@ethersproject-xdc/hdnode" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-d9885aa7-c031-4d5d-9a45-357fda905c91-1702640119138/node_modules/@ethersproject-xdc/hdnode" + "@ethersproject-xdc/json-wallets" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-d9885aa7-c031-4d5d-9a45-357fda905c91-1702640119138/node_modules/@ethersproject-xdc/json-wallets" + "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-d9885aa7-c031-4d5d-9a45-357fda905c91-1702640119138/node_modules/@ethersproject-xdc/keccak256" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-d9885aa7-c031-4d5d-9a45-357fda905c91-1702640119138/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-d9885aa7-c031-4d5d-9a45-357fda905c91-1702640119138/node_modules/@ethersproject-xdc/properties" + "@ethersproject-xdc/random" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-d9885aa7-c031-4d5d-9a45-357fda905c91-1702640119138/node_modules/@ethersproject-xdc/random" + "@ethersproject-xdc/signing-key" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-d9885aa7-c031-4d5d-9a45-357fda905c91-1702640119138/node_modules/@ethersproject-xdc/signing-key" + "@ethersproject-xdc/transactions" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-d9885aa7-c031-4d5d-9a45-357fda905c91-1702640119138/node_modules/@ethersproject-xdc/transactions" + "@ethersproject-xdc/wordlists" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-d9885aa7-c031-4d5d-9a45-357fda905c91-1702640119138/node_modules/@ethersproject-xdc/wordlists" "@ethersproject-xdc/web@file:vendor/@ethersproject-xdc/web": version "5.7.1" dependencies: - "@ethersproject-xdc/base64" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-web-5.7.1-37abcc2b-b27e-4583-be04-ede2baf49d7a-1702543562597/node_modules/@ethersproject-xdc/base64" - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-web-5.7.1-37abcc2b-b27e-4583-be04-ede2baf49d7a-1702543562597/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-web-5.7.1-37abcc2b-b27e-4583-be04-ede2baf49d7a-1702543562597/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-web-5.7.1-37abcc2b-b27e-4583-be04-ede2baf49d7a-1702543562597/node_modules/@ethersproject-xdc/properties" - "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-web-5.7.1-37abcc2b-b27e-4583-be04-ede2baf49d7a-1702543562597/node_modules/@ethersproject-xdc/strings" + "@ethersproject-xdc/base64" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-web-5.7.1-26249cd6-e913-490b-8c6f-f5da9621f2b5-1702640119143/node_modules/@ethersproject-xdc/base64" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-web-5.7.1-26249cd6-e913-490b-8c6f-f5da9621f2b5-1702640119143/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-web-5.7.1-26249cd6-e913-490b-8c6f-f5da9621f2b5-1702640119143/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-web-5.7.1-26249cd6-e913-490b-8c6f-f5da9621f2b5-1702640119143/node_modules/@ethersproject-xdc/properties" + "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-web-5.7.1-26249cd6-e913-490b-8c6f-f5da9621f2b5-1702640119143/node_modules/@ethersproject-xdc/strings" "@ethersproject-xdc/wordlists@file:vendor/@ethersproject-xdc/wordlists": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wordlists-5.7.0-f86f2d9a-450e-4898-9ac5-5ff9fd3ad786-1702543562594/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/hash" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wordlists-5.7.0-f86f2d9a-450e-4898-9ac5-5ff9fd3ad786-1702543562594/node_modules/@ethersproject-xdc/hash" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wordlists-5.7.0-f86f2d9a-450e-4898-9ac5-5ff9fd3ad786-1702543562594/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wordlists-5.7.0-f86f2d9a-450e-4898-9ac5-5ff9fd3ad786-1702543562594/node_modules/@ethersproject-xdc/properties" - "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wordlists-5.7.0-f86f2d9a-450e-4898-9ac5-5ff9fd3ad786-1702543562594/node_modules/@ethersproject-xdc/strings" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wordlists-5.7.0-6e79e209-b1f0-4c19-9188-659258bbbd75-1702640119141/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/hash" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wordlists-5.7.0-6e79e209-b1f0-4c19-9188-659258bbbd75-1702640119141/node_modules/@ethersproject-xdc/hash" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wordlists-5.7.0-6e79e209-b1f0-4c19-9188-659258bbbd75-1702640119141/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wordlists-5.7.0-6e79e209-b1f0-4c19-9188-659258bbbd75-1702640119141/node_modules/@ethersproject-xdc/properties" + "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wordlists-5.7.0-6e79e209-b1f0-4c19-9188-659258bbbd75-1702640119141/node_modules/@ethersproject-xdc/strings" "@ethersproject/abi@5.7.0", "@ethersproject/abi@^5.0.12", "@ethersproject/abi@^5.1.2", "@ethersproject/abi@^5.4.0", "@ethersproject/abi@^5.5.0", "@ethersproject/abi@^5.6.3", "@ethersproject/abi@^5.7.0": version "5.7.0" @@ -1725,7 +1725,7 @@ "@graphql-typed-document-node/core" "^3.1.1" tslib "^2.4.0" -"@graphql-typed-document-node/core@^3.1.1": +"@graphql-typed-document-node/core@^3.1.1", "@graphql-typed-document-node/core@^3.2.0": version "3.2.0" resolved "https://registry.yarnpkg.com/@graphql-typed-document-node/core/-/core-3.2.0.tgz#5f3d96ec6b2354ad6d8a28bf216a1d97b5426861" integrity sha512-mB9oAsNCm9aM3/SOv4YtBMqZbYj10R7dkq8byBqxGY/ncFwhf2oQzMV+LCRlWoDSEBJ3COiR1yeDvMtsoOsuFQ== @@ -2641,6 +2641,28 @@ resolved "https://registry.yarnpkg.com/@pancakeswap/chains/-/chains-0.3.0.tgz#e509dfd9c8387f76b893e3a0a5b835331752b32c" integrity sha512-a4U8pzfxQsnS0nUpvi8qL2X6l2C/IUTFJcmt3UNAQv2L2CPUSryt1rLarG91O1Bb/UMfv90UCPrXJcHWpaYSMg== +"@pancakeswap/multicall@3.3.2": + version "3.3.2" + resolved "https://registry.yarnpkg.com/@pancakeswap/multicall/-/multicall-3.3.2.tgz#deaf60cfa0c25b76fbbd0c38333cee5b0110849a" + integrity sha512-H4DOyTYEXs49tgR0QrxkjJmDImxSu5rTJyaRc2kEDluU1kDsFffPiX4nrnewEmmvYFxAfin5jn9sp6D7dV7jEg== + dependencies: + "@pancakeswap/chains" "0.3.0" + "@pancakeswap/sdk" "5.7.3" + viem "1.19.9" + +"@pancakeswap/sdk@5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@pancakeswap/sdk/-/sdk-5.1.0.tgz#ab15c565c081d62cf0d186d18c7fcac114a6b192" + integrity sha512-/vFAR8zzyWT9n0twC0MdnkV7QOr40IAgC48wkbL2S07Anjgkd38dkRfP8X3dYCsY8aGDT+c9cCJmGBdte82Lng== + dependencies: + "@pancakeswap/swap-sdk-core" "1.0.0" + big.js "^5.2.2" + decimal.js-light "^2.5.0" + tiny-invariant "^1.1.0" + tiny-warning "^1.0.3" + toformat "^2.0.0" + viem "^1.2.9" + "@pancakeswap/sdk@5.7.3": version "5.7.3" resolved "https://registry.yarnpkg.com/@pancakeswap/sdk/-/sdk-5.7.3.tgz#973ac77f0ac9920dea4c711f2bea396a88efdeb5" @@ -2667,6 +2689,29 @@ tiny-warning "^1.0.3" toformat "^2.0.0" +"@pancakeswap/smart-router@^4.2.1": + version "4.11.1" + resolved "https://registry.yarnpkg.com/@pancakeswap/smart-router/-/smart-router-4.11.1.tgz#e5a1055c5427f0e41bc3de454efd1044e0798826" + integrity sha512-9iqyk+5GaHLB3CqXtCYbJ6OpDfROcI2yukojzXKyngTR6IGfpUGh9Tg2Ggh6TOgwDCEqD3dhDc1BooAvkceOIA== + dependencies: + "@pancakeswap/chains" "0.3.0" + "@pancakeswap/multicall" "3.3.2" + "@pancakeswap/sdk" "5.7.3" + "@pancakeswap/swap-sdk-core" "1.0.0" + "@pancakeswap/token-lists" "0.0.9" + "@pancakeswap/tokens" "0.5.6" + "@pancakeswap/v3-sdk" "3.7.2" + async-retry "^1.3.1" + debug "^4.3.4" + graphql "^16.8.1" + graphql-request "5.0.0" + lodash "^4.17.21" + mnemonist "^0.38.3" + stats-lite "^2.2.0" + tiny-invariant "^1.3.0" + viem "1.19.9" + zod "^3.22.3" + "@pancakeswap/swap-sdk-core@1.0.0", "@pancakeswap/swap-sdk-core@^1.0.0": version "1.0.0" resolved "https://registry.yarnpkg.com/@pancakeswap/swap-sdk-core/-/swap-sdk-core-1.0.0.tgz#30ab333943ecca5484cd10cbc493841fb553728d" @@ -2678,6 +2723,15 @@ tiny-warning "^1.0.3" toformat "^2.0.0" +"@pancakeswap/token-lists@0.0.8": + version "0.0.8" + resolved "https://registry.yarnpkg.com/@pancakeswap/token-lists/-/token-lists-0.0.8.tgz#a168cb8cdc7bf224812cc0e7f0382c46f3b93166" + integrity sha512-KTq31adfPqwqpHBLZ/rRkVlFpVIehB8UcmsuZpY1hjXqdNXUf5lO/Kad4tIxYtIlx9nrWM6R1laYxfISGzAMYQ== + dependencies: + "@pancakeswap/swap-sdk-core" "1.0.0" + ajv "^6.12.3" + lodash "^4.17.21" + "@pancakeswap/token-lists@0.0.9": version "0.0.9" resolved "https://registry.yarnpkg.com/@pancakeswap/token-lists/-/token-lists-0.0.9.tgz#ffa2e7eb4e8d0ef1b8984b22d8b2fb529787693f" @@ -2696,6 +2750,14 @@ "@pancakeswap/sdk" "5.7.3" "@pancakeswap/token-lists" "0.0.9" +"@pancakeswap/tokens@^0.1.6": + version "0.1.6" + resolved "https://registry.yarnpkg.com/@pancakeswap/tokens/-/tokens-0.1.6.tgz#c6f59c246bdc9f37322101acc2be700aee9b584b" + integrity sha512-JrHNVyBIxSRD62Prn+yeMbxcZdLs5yFY1Y1Xaex6+kCxDz/WNAKI+/Q9WnJZ7m/jsfuB/vjJN89gqCxGAc/VVw== + dependencies: + "@pancakeswap/sdk" "5.1.0" + "@pancakeswap/token-lists" "0.0.8" + "@pancakeswap/v3-core@^1.0.2": version "1.0.2" resolved "https://registry.yarnpkg.com/@pancakeswap/v3-core/-/v3-core-1.0.2.tgz#f5abf6a98535f33edebbfc11ab40b4fdcee51420" @@ -2712,7 +2774,7 @@ "@uniswap/v2-core" "1.0.1" base64-sol "1.0.1" -"@pancakeswap/v3-sdk@^3.7.0": +"@pancakeswap/v3-sdk@3.7.2", "@pancakeswap/v3-sdk@^3.7.0": version "3.7.2" resolved "https://registry.yarnpkg.com/@pancakeswap/v3-sdk/-/v3-sdk-3.7.2.tgz#ce475303802ada6c9b7d6781529b0c23033f638c" integrity sha512-8uSMUaDo69zx+PhODH1TiTdPvuaTlLzyyudpODV8Ig6LKWO2owVIRuhXwQHKXE8N3/0j7JN6ejJrM/sbY3kadA== @@ -7376,36 +7438,36 @@ ethereumjs-util@^6.0.0, ethereumjs-util@^6.2.1: "ethers-xdc@file:./vendor/ethers-xdc": version "5.7.2" dependencies: - "@ethersproject-xdc/abi" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/abi" - "@ethersproject-xdc/abstract-provider" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/abstract-provider" - "@ethersproject-xdc/abstract-signer" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/abstract-signer" - "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/address" - "@ethersproject-xdc/base64" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/base64" - "@ethersproject-xdc/basex" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/basex" - "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/constants" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/constants" - "@ethersproject-xdc/contracts" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/contracts" - "@ethersproject-xdc/hash" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/hash" - "@ethersproject-xdc/hdnode" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/hdnode" - "@ethersproject-xdc/json-wallets" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/json-wallets" - "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/keccak256" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/networks" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/networks" - "@ethersproject-xdc/pbkdf2" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/pbkdf2" - "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/properties" - "@ethersproject-xdc/providers" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/providers" - "@ethersproject-xdc/random" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/random" - "@ethersproject-xdc/rlp" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/rlp" - "@ethersproject-xdc/sha2" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/sha2" - "@ethersproject-xdc/signing-key" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/signing-key" - "@ethersproject-xdc/solidity" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/solidity" - "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/strings" - "@ethersproject-xdc/transactions" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/transactions" - "@ethersproject-xdc/units" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/units" - "@ethersproject-xdc/wallet" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/wallet" - "@ethersproject-xdc/web" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/web" - "@ethersproject-xdc/wordlists" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-ede56daf-81f3-4151-86c5-cac959bd75e8-1702543562552/node_modules/@ethersproject-xdc/wordlists" + "@ethersproject-xdc/abi" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/abi" + "@ethersproject-xdc/abstract-provider" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/abstract-provider" + "@ethersproject-xdc/abstract-signer" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/abstract-signer" + "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/address" + "@ethersproject-xdc/base64" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/base64" + "@ethersproject-xdc/basex" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/basex" + "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/constants" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/constants" + "@ethersproject-xdc/contracts" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/contracts" + "@ethersproject-xdc/hash" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/hash" + "@ethersproject-xdc/hdnode" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/hdnode" + "@ethersproject-xdc/json-wallets" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/json-wallets" + "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/keccak256" + "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/networks" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/networks" + "@ethersproject-xdc/pbkdf2" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/pbkdf2" + "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/properties" + "@ethersproject-xdc/providers" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/providers" + "@ethersproject-xdc/random" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/random" + "@ethersproject-xdc/rlp" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/rlp" + "@ethersproject-xdc/sha2" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/sha2" + "@ethersproject-xdc/signing-key" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/signing-key" + "@ethersproject-xdc/solidity" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/solidity" + "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/strings" + "@ethersproject-xdc/transactions" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/transactions" + "@ethersproject-xdc/units" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/units" + "@ethersproject-xdc/wallet" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/wallet" + "@ethersproject-xdc/web" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/web" + "@ethersproject-xdc/wordlists" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/wordlists" ethers@4.0.0-beta.3: version "4.0.0-beta.3" @@ -8412,6 +8474,16 @@ graceful-fs@^4.1.10, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6 resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== +graphql-request@5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/graphql-request/-/graphql-request-5.0.0.tgz#7504a807d0e11be11a3c448e900f0cc316aa18ef" + integrity sha512-SpVEnIo2J5k2+Zf76cUkdvIRaq5FMZvGQYnA4lUWYbc99m+fHh4CZYRRO/Ff4tCLQ613fzCm3SiDT64ubW5Gyw== + dependencies: + "@graphql-typed-document-node/core" "^3.1.1" + cross-fetch "^3.1.5" + extract-files "^9.0.0" + form-data "^3.0.0" + graphql-request@^3.4.0: version "3.7.0" resolved "https://registry.yarnpkg.com/graphql-request/-/graphql-request-3.7.0.tgz#c7406e537084f8b9788541e3e6704340ca13055b" @@ -8421,6 +8493,14 @@ graphql-request@^3.4.0: extract-files "^9.0.0" form-data "^3.0.0" +graphql-request@^6.1.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/graphql-request/-/graphql-request-6.1.0.tgz#f4eb2107967af3c7a5907eb3131c671eac89be4f" + integrity sha512-p+XPfS4q7aIpKVcgmnZKhMNqhltk20hfXtkaIkTfjjmiKMJ5xrt5c743cL03y/K7y1rg3WrIC49xGiEQ4mxdNw== + dependencies: + "@graphql-typed-document-node/core" "^3.2.0" + cross-fetch "^3.1.5" + graphql-tag@^2.11.0, graphql-tag@^2.12.6: version "2.12.6" resolved "https://registry.yarnpkg.com/graphql-tag/-/graphql-tag-2.12.6.tgz#d441a569c1d2537ef10ca3d1633b48725329b5f1" @@ -8438,6 +8518,11 @@ graphql@^16.3.0: resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.6.0.tgz#c2dcffa4649db149f6282af726c8c83f1c7c5fdb" integrity sha512-KPIBPDlW7NxrbT/eh4qPXz5FiFdL5UbaA0XUNz2Rp3Z3hqBSkbj0GVjwFDztsWVauZUWsbKHgMg++sk8UX0bkw== +graphql@^16.8.1: + version "16.8.1" + resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.8.1.tgz#1930a965bef1170603702acdb68aedd3f3cf6f07" + integrity sha512-59LZHPdGZVh695Ud9lRzPBVTtlX9ZCV150Er2W43ro37wVof0ctenSaskPPjN7lVTIN8mSZt8PHUNKZuNQUuxw== + growl@1.10.3: version "1.10.3" resolved "https://registry.yarnpkg.com/growl/-/growl-1.10.3.tgz#1926ba90cf3edfe2adb4927f5880bc22c66c790f" @@ -14559,6 +14644,20 @@ viem@^0.3.x: isomorphic-ws "5.0.0" ws "8.12.0" +viem@^1.2.9: + version "1.19.15" + resolved "https://registry.yarnpkg.com/viem/-/viem-1.19.15.tgz#0f2307632fa0ef10dfab2d8fdd71fbb842a0a4f5" + integrity sha512-rc87AkyrUUsoOAgMNYP+X/wN4GYwbhP87DkmsqQCYKxxQyzTX0+yliKs6Bxljbjr8ybU72GOb12Oyus6393AjQ== + dependencies: + "@adraffy/ens-normalize" "1.10.0" + "@noble/curves" "1.2.0" + "@noble/hashes" "1.3.2" + "@scure/bip32" "1.3.2" + "@scure/bip39" "1.2.1" + abitype "0.9.8" + isows "1.0.3" + ws "8.13.0" + vlq@^2.0.4: version "2.0.4" resolved "https://registry.yarnpkg.com/vlq/-/vlq-2.0.4.tgz#6057b85729245b9829e3cc7755f95b228d4fe041" @@ -15533,3 +15632,8 @@ zen-observable@0.8.15: version "0.8.15" resolved "https://registry.yarnpkg.com/zen-observable/-/zen-observable-0.8.15.tgz#96415c512d8e3ffd920afd3889604e30b9eaac15" integrity sha512-PQ2PC7R9rslx84ndNBZB/Dkv8V8fZEpk83RLgXtYd0fwUgEjseMn1Dgajh2x6S8QbZAFa9p2qVCEuYZNgve0dQ== + +zod@^3.22.3: + version "3.22.4" + resolved "https://registry.yarnpkg.com/zod/-/zod-3.22.4.tgz#f31c3a9386f61b1f228af56faa9255e845cf3fff" + integrity sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg== From 64c8c59f11215633fecd423396df8eea56a7b767 Mon Sep 17 00:00:00 2001 From: codercrane Date: Fri, 15 Dec 2023 23:55:27 +0800 Subject: [PATCH 03/13] chore: remove console --- src/connectors/pancakeswap/pancakeswap.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/connectors/pancakeswap/pancakeswap.ts b/src/connectors/pancakeswap/pancakeswap.ts index edc867a062..71e19563d1 100644 --- a/src/connectors/pancakeswap/pancakeswap.ts +++ b/src/connectors/pancakeswap/pancakeswap.ts @@ -249,7 +249,6 @@ export class PancakeSwap implements Uniswapish { baseToken, this.bsc.provider ); - console.log(pair); const trades: Trade[] = Trade.bestTradeExactOut([pair], quoteToken, nativeTokenAmount, { maxHops: this._maximumHops, From a791d8347b8fd0a4191c2c0f8f40d23f7d2a3396 Mon Sep 17 00:00:00 2001 From: codercrane Date: Wed, 20 Dec 2023 01:53:56 +0800 Subject: [PATCH 04/13] fix: speed up --- src/connectors/pancakeswap/pancakeswap.ts | 57 +++++++++++++++++------ 1 file changed, 42 insertions(+), 15 deletions(-) diff --git a/src/connectors/pancakeswap/pancakeswap.ts b/src/connectors/pancakeswap/pancakeswap.ts index 71e19563d1..c1381e0a9d 100644 --- a/src/connectors/pancakeswap/pancakeswap.ts +++ b/src/connectors/pancakeswap/pancakeswap.ts @@ -6,22 +6,23 @@ import { Pair, Percent, Price, - Router, - SwapParameters, Token, Trade, TradeType, } from '@pancakeswap/sdk'; import { BigNumber, - Contract, ContractInterface, ContractTransaction, Transaction, Wallet, } from 'ethers'; import { BinanceSmartChain } from '../../chains/binance-smart-chain/binance-smart-chain'; -import { ExpectedTrade, Uniswapish } from '../../services/common-interfaces'; +import { + ExpectedTrade, + Uniswapish, + UniswapishTrade, +} from '../../services/common-interfaces'; import { percentRegexp } from '../../services/config-manager-v2'; import { InitializationError, @@ -33,11 +34,16 @@ import { logger } from '../../services/logger'; import { isFractionString } from '../../services/validators'; import { PancakeSwapConfig } from './pancakeswap.config'; import routerAbi from './pancakeswap_router_abi.json'; -import { getAddress } from 'ethers/lib/utils'; -import { PublicClient, createPublicClient, http } from 'viem'; +import { PublicClient, createPublicClient, http, getAddress } from 'viem'; import { GraphQLClient } from 'graphql-request'; -import { Pool, SmartRouter } from '@pancakeswap/smart-router'; +import { + Pool, + SmartRouter, + SmartRouterTrade, + SwapRouter, +} from '@pancakeswap/smart-router'; import { bsc, bscTestnet } from '@wagmi/chains'; +import { MethodParameters } from '@pancakeswap/v3-sdk'; export class PancakeSwap implements Uniswapish { private static _instances: { [name: string]: PancakeSwap }; @@ -212,8 +218,8 @@ export class PancakeSwap implements Uniswapish { TradeType.EXACT_OUTPUT, { gasPriceWei: () => this.createPublicClient().getGasPrice(), - maxHops: this.maximumHops, - maxSplits: 2, + maxHops: this._maximumHops, + maxSplits: 1, poolProvider: SmartRouter.createStaticPoolProvider(pools), quoteProvider, quoterOptimization: true, @@ -308,8 +314,8 @@ export class PancakeSwap implements Uniswapish { TradeType.EXACT_INPUT, { gasPriceWei: () => this.createPublicClient().getGasPrice(), - maxHops: this.maximumHops, - maxSplits: 2, + maxHops: this._maximumHops, + maxSplits: 1, poolProvider: SmartRouter.createStaticPoolProvider(pools), quoteProvider, quoterOptimization: true, @@ -347,7 +353,7 @@ export class PancakeSwap implements Uniswapish { ); const trades: Trade[] = Trade.bestTradeExactIn([pair], nativeTokenAmount, quoteToken, { - maxHops: 5, + maxHops: this._maximumHops, }); if (!trades || trades.length === 0) { throw new UniswapishPriceError( @@ -437,10 +443,31 @@ export class PancakeSwap implements Uniswapish { const pairs = SmartRouter.getPairCombinations(currencyA, currencyB); + // Create v2 candidate pool fetcher with your own on-chain fetcher + const getV2PoolsByCommonTokenPrices = + SmartRouter.createV2PoolsProviderByCommonTokenPrices( + SmartRouter.getCommonTokenPricesBySubgraph + ); + const getV2CandidatePools = SmartRouter.createGetV2CandidatePools( + getV2PoolsByCommonTokenPrices + ); + + // Define v3 pool on-chain fetcher with customized tvl references + const getV3CandidatePools = SmartRouter.createGetV3CandidatePools( + // Use your customized v3 pool fetcher by default + SmartRouter.getV3PoolsWithTvlFromOnChain, + { + fallbacks: [], + // In millisecond + // Will try fallback fetcher if the default doesn't respond in 2s + fallbackTimeout: 1500, + } + ); + const allPools = await Promise.allSettled([ // @ts-ignore SmartRouter.getStablePoolsOnChain(pairs, () => this.createPublicClient()), - SmartRouter.getV2CandidatePools({ + getV2CandidatePools({ // @ts-ignore onChainProvider: () => this.createPublicClient(), // @ts-ignore @@ -450,14 +477,14 @@ export class PancakeSwap implements Uniswapish { currencyA, currencyB, }), - SmartRouter.getV3CandidatePools({ + getV3CandidatePools({ // @ts-ignore onChainProvider: () => this.createPublicClient(), // @ts-ignore subgraphProvider: () => v3SubgraphClient, currencyA, currencyB, - subgraphCacheFallback: false, + subgraphCacheFallback: true, }), ]); From bac98fc69b2c79863cde18ef786b7a84517dee6e Mon Sep 17 00:00:00 2001 From: codercrane Date: Wed, 20 Dec 2023 01:55:23 +0800 Subject: [PATCH 05/13] fix: build --- src/connectors/pancakeswap/pancakeswap.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/connectors/pancakeswap/pancakeswap.ts b/src/connectors/pancakeswap/pancakeswap.ts index c1381e0a9d..876678b20c 100644 --- a/src/connectors/pancakeswap/pancakeswap.ts +++ b/src/connectors/pancakeswap/pancakeswap.ts @@ -6,12 +6,15 @@ import { Pair, Percent, Price, + Router, + SwapParameters, Token, Trade, TradeType, } from '@pancakeswap/sdk'; import { BigNumber, + Contract, ContractInterface, ContractTransaction, Transaction, From ea8cc3a840de50180790c7027ed6d47f91b9f410 Mon Sep 17 00:00:00 2001 From: codercrane Date: Wed, 20 Dec 2023 02:06:56 +0800 Subject: [PATCH 06/13] fix: execute trade for pancakeswap --- src/connectors/pancakeswap/pancakeswap.ts | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/connectors/pancakeswap/pancakeswap.ts b/src/connectors/pancakeswap/pancakeswap.ts index 876678b20c..99213db7cc 100644 --- a/src/connectors/pancakeswap/pancakeswap.ts +++ b/src/connectors/pancakeswap/pancakeswap.ts @@ -21,11 +21,7 @@ import { Wallet, } from 'ethers'; import { BinanceSmartChain } from '../../chains/binance-smart-chain/binance-smart-chain'; -import { - ExpectedTrade, - Uniswapish, - UniswapishTrade, -} from '../../services/common-interfaces'; +import { ExpectedTrade, Uniswapish } from '../../services/common-interfaces'; import { percentRegexp } from '../../services/config-manager-v2'; import { InitializationError, @@ -39,14 +35,8 @@ import { PancakeSwapConfig } from './pancakeswap.config'; import routerAbi from './pancakeswap_router_abi.json'; import { PublicClient, createPublicClient, http, getAddress } from 'viem'; import { GraphQLClient } from 'graphql-request'; -import { - Pool, - SmartRouter, - SmartRouterTrade, - SwapRouter, -} from '@pancakeswap/smart-router'; +import { Pool, SmartRouter } from '@pancakeswap/smart-router'; import { bsc, bscTestnet } from '@wagmi/chains'; -import { MethodParameters } from '@pancakeswap/v3-sdk'; export class PancakeSwap implements Uniswapish { private static _instances: { [name: string]: PancakeSwap }; From 5d0f25ad59c1e2ae0a2b57ae9e541365c814d531 Mon Sep 17 00:00:00 2001 From: codercrane Date: Thu, 21 Dec 2023 17:05:13 +0800 Subject: [PATCH 07/13] fix: use pancakeswap smart router address as default --- src/templates/pancakeswap.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/templates/pancakeswap.yml b/src/templates/pancakeswap.yml index d0f730c2d1..ec0a198055 100644 --- a/src/templates/pancakeswap.yml +++ b/src/templates/pancakeswap.yml @@ -25,12 +25,12 @@ feeTier: 'MEDIUM' contractAddresses: mainnet: - routerAddress: '0x10ED43C718714eb63d5aA57B78B54704E256024E' + routerAddress: '0x13f4EA83D0bd40E75C8222255bc855a974568Dd4' pancakeswapV3SmartOrderRouterAddress: '0x1b81D678ffb9C0263b24A97847620C99d213eB14' pancakeswapV3NftManagerAddress: '0x46A15B0b27311cedF172AB29E4f4766fbE7F4364' pancakeswapV3QuoterV2ContractAddress: '0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997' testnet: - routerAddress: '0xdc4904b5f716Ff30d8495e35dC99c109bb5eCf81' + routerAddress: '0x9a489505a00cE272eAa5e07Dba6491314CaE3796' pancakeswapV3SmartOrderRouterAddress: '0x1b81D678ffb9C0263b24A97847620C99d213eB14' pancakeswapV3NftManagerAddress: '0x427bF5b37357632377eCbEC9de3626C71A5396c1' pancakeswapV3QuoterV2ContractAddress: '0xbC203d7f83677c7ed3F7acEc959963E7F4ECC5C2' From bdcd07aaa21ddc009e8d311ab1306098e3d0588c Mon Sep 17 00:00:00 2001 From: codercrane Date: Thu, 21 Dec 2023 17:11:24 +0800 Subject: [PATCH 08/13] feat: execute trade works with pancakeswap v3 --- src/connectors/pancakeswap/pancakeswap.ts | 271 +++++++++------------- 1 file changed, 105 insertions(+), 166 deletions(-) diff --git a/src/connectors/pancakeswap/pancakeswap.ts b/src/connectors/pancakeswap/pancakeswap.ts index 99213db7cc..feb31bbaf0 100644 --- a/src/connectors/pancakeswap/pancakeswap.ts +++ b/src/connectors/pancakeswap/pancakeswap.ts @@ -2,26 +2,23 @@ import { Currency, CurrencyAmount, - Fetcher, - Pair, Percent, - Price, - Router, - SwapParameters, Token, - Trade, TradeType, } from '@pancakeswap/sdk'; import { BigNumber, - Contract, ContractInterface, ContractTransaction, Transaction, Wallet, } from 'ethers'; import { BinanceSmartChain } from '../../chains/binance-smart-chain/binance-smart-chain'; -import { ExpectedTrade, Uniswapish } from '../../services/common-interfaces'; +import { + ExpectedTrade, + Uniswapish, + UniswapishTrade, +} from '../../services/common-interfaces'; import { percentRegexp } from '../../services/config-manager-v2'; import { InitializationError, @@ -35,8 +32,14 @@ import { PancakeSwapConfig } from './pancakeswap.config'; import routerAbi from './pancakeswap_router_abi.json'; import { PublicClient, createPublicClient, http, getAddress } from 'viem'; import { GraphQLClient } from 'graphql-request'; -import { Pool, SmartRouter } from '@pancakeswap/smart-router'; +import { + Pool, + SmartRouter, + SmartRouterTrade, + SwapRouter, +} from '@pancakeswap/smart-router'; import { bsc, bscTestnet } from '@wagmi/chains'; +import { MethodParameters } from '@pancakeswap/v3-sdk'; export class PancakeSwap implements Uniswapish { private static _instances: { [name: string]: PancakeSwap }; @@ -52,8 +55,6 @@ export class PancakeSwap implements Uniswapish { private tokenList: Record = {}; private _ready: boolean = false; - private readonly _useRouter: boolean; - private constructor(chain: string, network: string) { const config = PancakeSwapConfig.config; this.bsc = BinanceSmartChain.getInstance(network); @@ -65,12 +66,6 @@ export class PancakeSwap implements Uniswapish { this._maximumHops = config.maximumHops ?? 1; this._routerAbi = routerAbi.abi; this._gasLimitEstimate = config.gasLimitEstimate; - - if (config.useRouter === false && config.feeTier == null) { - throw new Error('Must specify fee tier if not using router'); - } - - this._useRouter = config.useRouter ?? true; } public static getInstance(chain: string, network: string): PancakeSwap { @@ -183,13 +178,13 @@ export class PancakeSwap implements Uniswapish { * @param quoteToken Token input for the transaction * @param baseToken Token output from the transaction * @param amount Amount of `baseToken` desired from the transaction - * @param allowedSlippage (Optional) Fraction in string representing the allowed slippage for this transaction + * @param _allowedSlippage (Optional) Fraction in string representing the allowed slippage for this transaction */ async estimateBuyTrade( quoteToken: Token, baseToken: Token, amount: BigNumber, - allowedSlippage?: string + _allowedSlippage?: string ): Promise { const nativeTokenAmount: CurrencyAmount = CurrencyAmount.fromRawAmount(baseToken, amount.toString()); @@ -198,76 +193,44 @@ export class PancakeSwap implements Uniswapish { `Fetching pair data for ${quoteToken.address}-${baseToken.address}.` ); - if (this._useRouter) { - const quoteProvider = SmartRouter.createQuoteProvider({ - // @ts-ignore - onChainProvider: () => this.createPublicClient(), - }); - const pools = await this.getPools(baseToken, quoteToken); - - const trade = await SmartRouter.getBestTrade( - nativeTokenAmount, - quoteToken, - TradeType.EXACT_OUTPUT, - { - gasPriceWei: () => this.createPublicClient().getGasPrice(), - maxHops: this._maximumHops, - maxSplits: 1, - poolProvider: SmartRouter.createStaticPoolProvider(pools), - quoteProvider, - quoterOptimization: true, - } - ); - - if (!trade) { - throw new UniswapishPriceError( - `priceSwapOut: no trade pair found for ${baseToken.address} to ${quoteToken.address}.` - ); - } - logger.info( - `Best trade for ${baseToken.address}-${quoteToken.address}: ` + - `${trade.inputAmount.toExact()}` + - `${baseToken.symbol}.` - ); + const quoteProvider = SmartRouter.createQuoteProvider({ + // @ts-ignore + onChainProvider: () => this.createPublicClient(), + }); + const pools = await this.getPools(baseToken, quoteToken); - return { - trade: { - ...trade, - executionPrice: new Price( - trade.inputAmount.currency, - trade.outputAmount.currency, - trade.inputAmount.quotient, - trade.outputAmount.quotient - ), - }, - expectedAmount: trade.inputAmount, - }; - } else { - const pair: Pair = await Fetcher.fetchPairData( - quoteToken, - baseToken, - this.bsc.provider - ); - const trades: Trade[] = - Trade.bestTradeExactOut([pair], quoteToken, nativeTokenAmount, { - maxHops: this._maximumHops, - }); - if (!trades || trades.length === 0) { - throw new UniswapishPriceError( - `priceSwapOut: no trade pair found for ${quoteToken.address} to ${baseToken.address}.` - ); + const trade = await SmartRouter.getBestTrade( + nativeTokenAmount, + quoteToken, + TradeType.EXACT_OUTPUT, + { + gasPriceWei: () => this.createPublicClient().getGasPrice(), + maxHops: this._maximumHops, + maxSplits: 1, + poolProvider: SmartRouter.createStaticPoolProvider(pools), + quoteProvider, + quoterOptimization: true, } - logger.info( - `Best trade for ${quoteToken.address}-${baseToken.address}: ` + - `${trades[0].executionPrice.invert().toFixed(6)} ` + - `${baseToken.name}.` - ); + ); - const expectedAmount = trades[0].maximumAmountIn( - this.getAllowedSlippage(allowedSlippage) + if (!trade) { + throw new UniswapishPriceError( + `priceSwapOut: no trade pair found for ${baseToken.address} to ${quoteToken.address}.` ); - return { trade: trades[0], expectedAmount }; } + logger.info( + `Best trade for ${baseToken.address}-${quoteToken.address}: ` + + `${trade.inputAmount.toExact()}` + + `${baseToken.symbol}.` + ); + + return { + trade: { + ...trade, + executionPrice: SmartRouter.getExecutionPrice(trade)!, + }, + expectedAmount: trade.inputAmount, + }; } /** @@ -279,13 +242,13 @@ export class PancakeSwap implements Uniswapish { * @param baseToken Token input for the transaction * @param quoteToken Output from the transaction * @param amount Amount of `baseToken` to put into the transaction - * @param allowedSlippage (Optional) Fraction in string representing the allowed slippage for this transaction + * @param _allowedSlippage (Optional) Fraction in string representing the allowed slippage for this transaction */ async estimateSellTrade( baseToken: Token, quoteToken: Token, amount: BigNumber, - allowedSlippage?: string + _allowedSlippage?: string ): Promise { const nativeTokenAmount: CurrencyAmount = CurrencyAmount.fromRawAmount(baseToken, amount.toString()); @@ -294,75 +257,44 @@ export class PancakeSwap implements Uniswapish { `Fetching pair data for ${baseToken.address}-${quoteToken.address}.` ); - if (this._useRouter) { - const quoteProvider = SmartRouter.createQuoteProvider({ - // @ts-ignore - onChainProvider: () => this.createPublicClient(), - }); - const pools = await this.getPools(baseToken, quoteToken); - - const trade = await SmartRouter.getBestTrade( - nativeTokenAmount, - quoteToken, - TradeType.EXACT_INPUT, - { - gasPriceWei: () => this.createPublicClient().getGasPrice(), - maxHops: this._maximumHops, - maxSplits: 1, - poolProvider: SmartRouter.createStaticPoolProvider(pools), - quoteProvider, - quoterOptimization: true, - } - ); + const quoteProvider = SmartRouter.createQuoteProvider({ + // @ts-ignore + onChainProvider: () => this.createPublicClient(), + }); + const pools = await this.getPools(baseToken, quoteToken); - if (!trade) { - throw new UniswapishPriceError( - `priceSwapIn: no trade pair found for ${baseToken.address} to ${quoteToken.address}.` - ); + const trade = await SmartRouter.getBestTrade( + nativeTokenAmount, + quoteToken, + TradeType.EXACT_INPUT, + { + gasPriceWei: () => this.createPublicClient().getGasPrice(), + maxHops: this._maximumHops, + maxSplits: 1, + poolProvider: SmartRouter.createStaticPoolProvider(pools), + quoteProvider, + quoterOptimization: true, } - logger.info( - `Best trade for ${baseToken.address}-${quoteToken.address}: ` + - `${trade.outputAmount.toExact()}` + - `${baseToken.symbol}.` - ); + ); - return { - trade: { - ...trade, - executionPrice: new Price( - trade.inputAmount.currency, - trade.outputAmount.currency, - trade.inputAmount.quotient, - trade.outputAmount.quotient - ), - }, - expectedAmount: trade.outputAmount, - }; - } else { - const pair: Pair = await Fetcher.fetchPairData( - baseToken, - quoteToken, - this.bsc.provider + if (!trade) { + throw new UniswapishPriceError( + `priceSwapIn: no trade pair found for ${baseToken.address} to ${quoteToken.address}.` ); - const trades: Trade[] = - Trade.bestTradeExactIn([pair], nativeTokenAmount, quoteToken, { - maxHops: this._maximumHops, - }); - if (!trades || trades.length === 0) { - throw new UniswapishPriceError( - `priceSwapIn: no trade pair found for ${baseToken} to ${quoteToken}.` - ); - } - logger.info( - `Best trade for ${baseToken.address}-${quoteToken.address}: ` + - `${trades[0].executionPrice.toFixed(6)}` + - `${baseToken.name}.` - ); - const expectedAmount = trades[0].minimumAmountOut( - this.getAllowedSlippage(allowedSlippage) - ); - return { trade: trades[0], expectedAmount }; } + logger.info( + `Best trade for ${baseToken.address}-${quoteToken.address}: ` + + `${trade.outputAmount.toExact()}` + + `${baseToken.symbol}.` + ); + + return { + trade: { + ...trade, + executionPrice: SmartRouter.getExecutionPrice(trade)!, + }, + expectedAmount: trade.outputAmount, + }; } /** @@ -371,9 +303,9 @@ export class PancakeSwap implements Uniswapish { * @param wallet Wallet * @param trade Expected trade * @param gasPrice Base gas price, for pre-EIP1559 transactions - * @param pancakeswapRouter Router smart contract address + * @param pancakeswapRouter Smart Router smart contract address * @param ttl How long the swap is valid before expiry, in seconds - * @param abi Router contract ABI + * @param _abi Router contract ABI * @param gasLimit Gas limit * @param nonce (Optional) EVM transaction nonce * @param maxFeePerGas (Optional) Maximum total fee per gas you want to pay @@ -382,41 +314,48 @@ export class PancakeSwap implements Uniswapish { */ async executeTrade( wallet: Wallet, - trade: Trade, + trade: UniswapishTrade, gasPrice: number, pancakeswapRouter: string, ttl: number, - abi: ContractInterface, + _abi: ContractInterface, gasLimit: number, nonce?: number, maxFeePerGas?: BigNumber, maxPriorityFeePerGas?: BigNumber, allowedSlippage?: string ): Promise { - const result: SwapParameters = Router.swapCallParameters(trade, { - ttl, - recipient: wallet.address, - allowedSlippage: this.getAllowedSlippage(allowedSlippage), - }); + const methodParameters: MethodParameters = SwapRouter.swapCallParameters( + trade as SmartRouterTrade, + { + deadlineOrPreviousBlockhash: Math.floor(Date.now() / 1000 + ttl), + recipient: getAddress(wallet.address), + slippageTolerance: this.getAllowedSlippage(allowedSlippage), + } + ); - const contract: Contract = new Contract(pancakeswapRouter, abi, wallet); if (nonce === undefined) { nonce = await this.bsc.nonceManager.getNextNonce(wallet.address); } + let tx: ContractTransaction; - if (maxFeePerGas || maxPriorityFeePerGas) { - tx = await contract[result.methodName](...result.args, { - gasLimit: gasLimit, - value: result.value, + if (maxFeePerGas !== undefined || maxPriorityFeePerGas !== undefined) { + tx = await wallet.sendTransaction({ + data: methodParameters.calldata, + to: pancakeswapRouter, + gasLimit: gasLimit.toFixed(0), + value: methodParameters.value, nonce: nonce, maxFeePerGas, maxPriorityFeePerGas, }); } else { - tx = await contract[result.methodName](...result.args, { + tx = await wallet.sendTransaction({ + data: methodParameters.calldata, + to: pancakeswapRouter, gasPrice: (gasPrice * 1e9).toFixed(0), gasLimit: gasLimit.toFixed(0), - value: result.value, + value: methodParameters.value, nonce: nonce, }); } From 45052d988e03acba7b1cd21c5ad91787b51a28ec Mon Sep 17 00:00:00 2001 From: codercrane Date: Wed, 27 Dec 2023 11:25:40 +0800 Subject: [PATCH 09/13] fix: allowed pool types --- src/connectors/pancakeswap/pancakeswap.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/connectors/pancakeswap/pancakeswap.ts b/src/connectors/pancakeswap/pancakeswap.ts index feb31bbaf0..0b33e2b083 100644 --- a/src/connectors/pancakeswap/pancakeswap.ts +++ b/src/connectors/pancakeswap/pancakeswap.ts @@ -34,6 +34,7 @@ import { PublicClient, createPublicClient, http, getAddress } from 'viem'; import { GraphQLClient } from 'graphql-request'; import { Pool, + PoolType, SmartRouter, SmartRouterTrade, SwapRouter, @@ -210,6 +211,7 @@ export class PancakeSwap implements Uniswapish { poolProvider: SmartRouter.createStaticPoolProvider(pools), quoteProvider, quoterOptimization: true, + allowedPoolTypes: [PoolType.V2, PoolType.V3, PoolType.STABLE], } ); @@ -274,6 +276,7 @@ export class PancakeSwap implements Uniswapish { poolProvider: SmartRouter.createStaticPoolProvider(pools), quoteProvider, quoterOptimization: true, + allowedPoolTypes: [PoolType.V2, PoolType.V3, PoolType.STABLE], } ); From 0f1b6de6b2877b7a0ac6a3fb2d9aeadbdf532dcc Mon Sep 17 00:00:00 2001 From: 0xCodercrane <108444211+0xcodercrane@users.noreply.github.com> Date: Wed, 3 Jan 2024 20:17:49 +0800 Subject: [PATCH 10/13] chore: revert xdc dependencies --- yarn.lock | 364 +++++++++++++++++++++++++++--------------------------- 1 file changed, 182 insertions(+), 182 deletions(-) diff --git a/yarn.lock b/yarn.lock index 42d3e645fc..4968c37727 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1123,137 +1123,137 @@ "@ethersproject-xdc/abi@file:vendor/@ethersproject-xdc/abi": version "5.7.0" dependencies: - "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-d1008a09-f054-4696-98a8-9d508909ae1e-1702640118966/node_modules/@ethersproject-xdc/address" - "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-d1008a09-f054-4696-98a8-9d508909ae1e-1702640118966/node_modules/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-d1008a09-f054-4696-98a8-9d508909ae1e-1702640118966/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/constants" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-d1008a09-f054-4696-98a8-9d508909ae1e-1702640118966/node_modules/@ethersproject-xdc/constants" - "@ethersproject-xdc/hash" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-d1008a09-f054-4696-98a8-9d508909ae1e-1702640118966/node_modules/@ethersproject-xdc/hash" - "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-d1008a09-f054-4696-98a8-9d508909ae1e-1702640118966/node_modules/@ethersproject-xdc/keccak256" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-d1008a09-f054-4696-98a8-9d508909ae1e-1702640118966/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-d1008a09-f054-4696-98a8-9d508909ae1e-1702640118966/node_modules/@ethersproject-xdc/properties" - "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abi-5.7.0-d1008a09-f054-4696-98a8-9d508909ae1e-1702640118966/node_modules/@ethersproject-xdc/strings" + "@ethersproject-xdc/address" "file:vendor/@ethersproject-xdc/address" + "@ethersproject-xdc/bignumber" "file:vendor/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" + "@ethersproject-xdc/constants" "file:vendor/@ethersproject-xdc/constants" + "@ethersproject-xdc/hash" "file:vendor/@ethersproject-xdc/hash" + "@ethersproject-xdc/keccak256" "file:vendor/@ethersproject-xdc/keccak256" + "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" + "@ethersproject-xdc/properties" "file:vendor/@ethersproject-xdc/properties" + "@ethersproject-xdc/strings" "file:vendor/@ethersproject-xdc/strings" "@ethersproject-xdc/abstract-provider@file:vendor/@ethersproject-xdc/abstract-provider": version "5.7.0" dependencies: - "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-provider-5.7.0-b402a4d7-9836-4407-b84e-f1b458dcbe98-1702640118971/node_modules/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-provider-5.7.0-b402a4d7-9836-4407-b84e-f1b458dcbe98-1702640118971/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-provider-5.7.0-b402a4d7-9836-4407-b84e-f1b458dcbe98-1702640118971/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/networks" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-provider-5.7.0-b402a4d7-9836-4407-b84e-f1b458dcbe98-1702640118971/node_modules/@ethersproject-xdc/networks" - "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-provider-5.7.0-b402a4d7-9836-4407-b84e-f1b458dcbe98-1702640118971/node_modules/@ethersproject-xdc/properties" - "@ethersproject-xdc/transactions" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-provider-5.7.0-b402a4d7-9836-4407-b84e-f1b458dcbe98-1702640118971/node_modules/@ethersproject-xdc/transactions" - "@ethersproject-xdc/web" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-provider-5.7.0-b402a4d7-9836-4407-b84e-f1b458dcbe98-1702640118971/node_modules/@ethersproject-xdc/web" + "@ethersproject-xdc/bignumber" "file:vendor/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" + "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" + "@ethersproject-xdc/networks" "file:vendor/@ethersproject-xdc/networks" + "@ethersproject-xdc/properties" "file:vendor/@ethersproject-xdc/properties" + "@ethersproject-xdc/transactions" "file:vendor/@ethersproject-xdc/transactions" + "@ethersproject-xdc/web" "file:vendor/@ethersproject-xdc/web" "@ethersproject-xdc/abstract-signer@file:vendor/@ethersproject-xdc/abstract-signer": version "5.7.0" dependencies: - "@ethersproject-xdc/abstract-provider" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-signer-5.7.0-d992b3cf-aa6d-41e3-9c8c-5195254c0f45-1702640118970/node_modules/@ethersproject-xdc/abstract-provider" - "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-signer-5.7.0-d992b3cf-aa6d-41e3-9c8c-5195254c0f45-1702640118970/node_modules/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-signer-5.7.0-d992b3cf-aa6d-41e3-9c8c-5195254c0f45-1702640118970/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-signer-5.7.0-d992b3cf-aa6d-41e3-9c8c-5195254c0f45-1702640118970/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-abstract-signer-5.7.0-d992b3cf-aa6d-41e3-9c8c-5195254c0f45-1702640118970/node_modules/@ethersproject-xdc/properties" + "@ethersproject-xdc/abstract-provider" "file:vendor/@ethersproject-xdc/abstract-provider" + "@ethersproject-xdc/bignumber" "file:vendor/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" + "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" + "@ethersproject-xdc/properties" "file:vendor/@ethersproject-xdc/properties" "@ethersproject-xdc/address@file:vendor/@ethersproject-xdc/address": version "5.7.0" dependencies: - "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-address-5.7.0-cf843b72-ad23-4b0f-b14d-2822e9a3f366-1702640118972/node_modules/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-address-5.7.0-cf843b72-ad23-4b0f-b14d-2822e9a3f366-1702640118972/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-address-5.7.0-cf843b72-ad23-4b0f-b14d-2822e9a3f366-1702640118972/node_modules/@ethersproject-xdc/keccak256" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-address-5.7.0-cf843b72-ad23-4b0f-b14d-2822e9a3f366-1702640118972/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/rlp" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-address-5.7.0-cf843b72-ad23-4b0f-b14d-2822e9a3f366-1702640118972/node_modules/@ethersproject-xdc/rlp" + "@ethersproject-xdc/bignumber" "file:vendor/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" + "@ethersproject-xdc/keccak256" "file:vendor/@ethersproject-xdc/keccak256" + "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" + "@ethersproject-xdc/rlp" "file:vendor/@ethersproject-xdc/rlp" "@ethersproject-xdc/base64@file:vendor/@ethersproject-xdc/base64": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-base64-5.7.0-177f487d-77e9-4d75-814d-0901e1c8ef1a-1702640118974/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" "@ethersproject-xdc/basex@file:vendor/@ethersproject-xdc/basex": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-basex-5.7.0-c36c20a1-2014-42b3-b5a2-0e916c379624-1702640118971/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-basex-5.7.0-c36c20a1-2014-42b3-b5a2-0e916c379624-1702640118971/node_modules/@ethersproject-xdc/properties" + "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" + "@ethersproject-xdc/properties" "file:vendor/@ethersproject-xdc/properties" "@ethersproject-xdc/bignumber@file:vendor/@ethersproject-xdc/bignumber": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-bignumber-5.7.0-3b468a0d-2323-4f01-925b-055502243fdd-1702640118974/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-bignumber-5.7.0-3b468a0d-2323-4f01-925b-055502243fdd-1702640118974/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" + "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" bn.js "^5.2.1" "@ethersproject-xdc/bytes@file:vendor/@ethersproject-xdc/bytes": version "5.7.0" dependencies: - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-bytes-5.7.0-f5d23fb6-a804-4a07-b41b-e1d5b1cd9d13-1702640118974/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" "@ethersproject-xdc/constants@file:vendor/@ethersproject-xdc/constants": version "5.7.0" dependencies: - "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-constants-5.7.0-c51f03a7-0329-4279-bd50-a61a31d503ed-1702640118973/node_modules/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bignumber" "file:vendor/@ethersproject-xdc/bignumber" "@ethersproject-xdc/contracts@file:vendor/@ethersproject-xdc/contracts": version "5.6.0" dependencies: - "@ethersproject-xdc/abi" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-519292fc-22ab-4669-bb3d-87ab1bfc9308-1702640118978/node_modules/@ethersproject-xdc/abi" - "@ethersproject-xdc/abstract-provider" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-519292fc-22ab-4669-bb3d-87ab1bfc9308-1702640118978/node_modules/@ethersproject-xdc/abstract-provider" - "@ethersproject-xdc/abstract-signer" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-519292fc-22ab-4669-bb3d-87ab1bfc9308-1702640118978/node_modules/@ethersproject-xdc/abstract-signer" - "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-519292fc-22ab-4669-bb3d-87ab1bfc9308-1702640118978/node_modules/@ethersproject-xdc/address" - "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-519292fc-22ab-4669-bb3d-87ab1bfc9308-1702640118978/node_modules/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-519292fc-22ab-4669-bb3d-87ab1bfc9308-1702640118978/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/constants" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-519292fc-22ab-4669-bb3d-87ab1bfc9308-1702640118978/node_modules/@ethersproject-xdc/constants" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-519292fc-22ab-4669-bb3d-87ab1bfc9308-1702640118978/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-519292fc-22ab-4669-bb3d-87ab1bfc9308-1702640118978/node_modules/@ethersproject-xdc/properties" - "@ethersproject-xdc/transactions" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-contracts-5.6.0-519292fc-22ab-4669-bb3d-87ab1bfc9308-1702640118978/node_modules/@ethersproject-xdc/transactions" + "@ethersproject-xdc/abi" "file:vendor/@ethersproject-xdc/abi" + "@ethersproject-xdc/abstract-provider" "file:vendor/@ethersproject-xdc/abstract-provider" + "@ethersproject-xdc/abstract-signer" "file:vendor/@ethersproject-xdc/abstract-signer" + "@ethersproject-xdc/address" "file:vendor/@ethersproject-xdc/address" + "@ethersproject-xdc/bignumber" "file:vendor/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" + "@ethersproject-xdc/constants" "file:vendor/@ethersproject-xdc/constants" + "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" + "@ethersproject-xdc/properties" "file:vendor/@ethersproject-xdc/properties" + "@ethersproject-xdc/transactions" "file:vendor/@ethersproject-xdc/transactions" "@ethersproject-xdc/hash@file:vendor/@ethersproject-xdc/hash": version "5.7.0" dependencies: - "@ethersproject-xdc/abstract-signer" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-97008e15-1011-4c1d-9b6f-3ac15f9f5708-1702640118980/node_modules/@ethersproject-xdc/abstract-signer" - "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-97008e15-1011-4c1d-9b6f-3ac15f9f5708-1702640118980/node_modules/@ethersproject-xdc/address" - "@ethersproject-xdc/base64" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-97008e15-1011-4c1d-9b6f-3ac15f9f5708-1702640118980/node_modules/@ethersproject-xdc/base64" - "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-97008e15-1011-4c1d-9b6f-3ac15f9f5708-1702640118980/node_modules/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-97008e15-1011-4c1d-9b6f-3ac15f9f5708-1702640118980/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-97008e15-1011-4c1d-9b6f-3ac15f9f5708-1702640118980/node_modules/@ethersproject-xdc/keccak256" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-97008e15-1011-4c1d-9b6f-3ac15f9f5708-1702640118980/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-97008e15-1011-4c1d-9b6f-3ac15f9f5708-1702640118980/node_modules/@ethersproject-xdc/properties" - "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hash-5.7.0-97008e15-1011-4c1d-9b6f-3ac15f9f5708-1702640118980/node_modules/@ethersproject-xdc/strings" + "@ethersproject-xdc/abstract-signer" "file:vendor/@ethersproject-xdc/abstract-signer" + "@ethersproject-xdc/address" "file:vendor/@ethersproject-xdc/address" + "@ethersproject-xdc/base64" "file:vendor/@ethersproject-xdc/base64" + "@ethersproject-xdc/bignumber" "file:vendor/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" + "@ethersproject-xdc/keccak256" "file:vendor/@ethersproject-xdc/keccak256" + "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" + "@ethersproject-xdc/properties" "file:vendor/@ethersproject-xdc/properties" + "@ethersproject-xdc/strings" "file:vendor/@ethersproject-xdc/strings" "@ethersproject-xdc/hdnode@file:vendor/@ethersproject-xdc/hdnode": version "5.7.0" dependencies: - "@ethersproject-xdc/abstract-signer" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-79ba16b6-f657-4411-a4bc-7953b2e790b9-1702640118985/node_modules/@ethersproject-xdc/abstract-signer" - "@ethersproject-xdc/basex" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-79ba16b6-f657-4411-a4bc-7953b2e790b9-1702640118985/node_modules/@ethersproject-xdc/basex" - "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-79ba16b6-f657-4411-a4bc-7953b2e790b9-1702640118985/node_modules/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-79ba16b6-f657-4411-a4bc-7953b2e790b9-1702640118985/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-79ba16b6-f657-4411-a4bc-7953b2e790b9-1702640118985/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/pbkdf2" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-79ba16b6-f657-4411-a4bc-7953b2e790b9-1702640118985/node_modules/@ethersproject-xdc/pbkdf2" - "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-79ba16b6-f657-4411-a4bc-7953b2e790b9-1702640118985/node_modules/@ethersproject-xdc/properties" - "@ethersproject-xdc/sha2" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-79ba16b6-f657-4411-a4bc-7953b2e790b9-1702640118985/node_modules/@ethersproject-xdc/sha2" - "@ethersproject-xdc/signing-key" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-79ba16b6-f657-4411-a4bc-7953b2e790b9-1702640118985/node_modules/@ethersproject-xdc/signing-key" - "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-79ba16b6-f657-4411-a4bc-7953b2e790b9-1702640118985/node_modules/@ethersproject-xdc/strings" - "@ethersproject-xdc/transactions" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-79ba16b6-f657-4411-a4bc-7953b2e790b9-1702640118985/node_modules/@ethersproject-xdc/transactions" - "@ethersproject-xdc/wordlists" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-hdnode-5.7.0-79ba16b6-f657-4411-a4bc-7953b2e790b9-1702640118985/node_modules/@ethersproject-xdc/wordlists" + "@ethersproject-xdc/abstract-signer" "file:vendor/@ethersproject-xdc/abstract-signer" + "@ethersproject-xdc/basex" "file:vendor/@ethersproject-xdc/basex" + "@ethersproject-xdc/bignumber" "file:vendor/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" + "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" + "@ethersproject-xdc/pbkdf2" "file:vendor/@ethersproject-xdc/pbkdf2" + "@ethersproject-xdc/properties" "file:vendor/@ethersproject-xdc/properties" + "@ethersproject-xdc/sha2" "file:vendor/@ethersproject-xdc/sha2" + "@ethersproject-xdc/signing-key" "file:vendor/@ethersproject-xdc/signing-key" + "@ethersproject-xdc/strings" "file:vendor/@ethersproject-xdc/strings" + "@ethersproject-xdc/transactions" "file:vendor/@ethersproject-xdc/transactions" + "@ethersproject-xdc/wordlists" "file:vendor/@ethersproject-xdc/wordlists" "@ethersproject-xdc/json-wallets@file:vendor/@ethersproject-xdc/json-wallets": version "5.6.0" dependencies: - "@ethersproject-xdc/abstract-signer" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-451c22d4-49a5-4541-9f9e-27f1aa5c5ccf-1702640118988/node_modules/@ethersproject-xdc/abstract-signer" - "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-451c22d4-49a5-4541-9f9e-27f1aa5c5ccf-1702640118988/node_modules/@ethersproject-xdc/address" - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-451c22d4-49a5-4541-9f9e-27f1aa5c5ccf-1702640118988/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/hdnode" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-451c22d4-49a5-4541-9f9e-27f1aa5c5ccf-1702640118988/node_modules/@ethersproject-xdc/hdnode" - "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-451c22d4-49a5-4541-9f9e-27f1aa5c5ccf-1702640118988/node_modules/@ethersproject-xdc/keccak256" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-451c22d4-49a5-4541-9f9e-27f1aa5c5ccf-1702640118988/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/pbkdf2" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-451c22d4-49a5-4541-9f9e-27f1aa5c5ccf-1702640118988/node_modules/@ethersproject-xdc/pbkdf2" - "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-451c22d4-49a5-4541-9f9e-27f1aa5c5ccf-1702640118988/node_modules/@ethersproject-xdc/properties" - "@ethersproject-xdc/random" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-451c22d4-49a5-4541-9f9e-27f1aa5c5ccf-1702640118988/node_modules/@ethersproject-xdc/random" - "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-451c22d4-49a5-4541-9f9e-27f1aa5c5ccf-1702640118988/node_modules/@ethersproject-xdc/strings" - "@ethersproject-xdc/transactions" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-json-wallets-5.6.0-451c22d4-49a5-4541-9f9e-27f1aa5c5ccf-1702640118988/node_modules/@ethersproject-xdc/transactions" + "@ethersproject-xdc/abstract-signer" "file:vendor/@ethersproject-xdc/abstract-signer" + "@ethersproject-xdc/address" "file:vendor/@ethersproject-xdc/address" + "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" + "@ethersproject-xdc/hdnode" "file:vendor/@ethersproject-xdc/hdnode" + "@ethersproject-xdc/keccak256" "file:vendor/@ethersproject-xdc/keccak256" + "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" + "@ethersproject-xdc/pbkdf2" "file:vendor/@ethersproject-xdc/pbkdf2" + "@ethersproject-xdc/properties" "file:vendor/@ethersproject-xdc/properties" + "@ethersproject-xdc/random" "file:vendor/@ethersproject-xdc/random" + "@ethersproject-xdc/strings" "file:vendor/@ethersproject-xdc/strings" + "@ethersproject-xdc/transactions" "file:vendor/@ethersproject-xdc/transactions" aes-js "3.0.0" scrypt-js "3.0.1" "@ethersproject-xdc/keccak256@file:vendor/@ethersproject-xdc/keccak256": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-keccak256-5.7.0-a0846b49-9817-41be-a361-743d53d67213-1702640118976/node_modules/@ethersproject-xdc/bytes" + "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" js-sha3 "0.8.0" "@ethersproject-xdc/logger@file:vendor/@ethersproject-xdc/logger": @@ -1262,67 +1262,67 @@ "@ethersproject-xdc/networks@file:vendor/@ethersproject-xdc/networks": version "5.7.1" dependencies: - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-networks-5.7.1-39bc77a8-6977-4703-a80b-5c1b6d00e989-1702640118986/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" "@ethersproject-xdc/pbkdf2@file:vendor/@ethersproject-xdc/pbkdf2": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-pbkdf2-5.7.0-dfb74942-31d3-49d7-aebc-8712fa075dea-1702640118987/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/sha2" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-pbkdf2-5.7.0-dfb74942-31d3-49d7-aebc-8712fa075dea-1702640118987/node_modules/@ethersproject-xdc/sha2" + "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" + "@ethersproject-xdc/sha2" "file:vendor/@ethersproject-xdc/sha2" "@ethersproject-xdc/properties@file:vendor/@ethersproject-xdc/properties": version "5.7.0" dependencies: - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-properties-5.7.0-58349482-5ec4-46f9-8dfa-f10ff1275e79-1702640118987/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" "@ethersproject-xdc/providers@file:vendor/@ethersproject-xdc/providers": version "5.6.2" dependencies: - "@ethersproject-xdc/abstract-provider" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/abstract-provider" - "@ethersproject-xdc/abstract-signer" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/abstract-signer" - "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/address" - "@ethersproject-xdc/basex" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/basex" - "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/constants" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/constants" - "@ethersproject-xdc/hash" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/hash" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/networks" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/networks" - "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/properties" - "@ethersproject-xdc/random" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/random" - "@ethersproject-xdc/rlp" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/rlp" - "@ethersproject-xdc/sha2" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/sha2" - "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/strings" - "@ethersproject-xdc/transactions" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/transactions" - "@ethersproject-xdc/web" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-providers-5.6.2-65a25ca8-01f4-404a-aa75-663214642cdf-1702640119131/node_modules/@ethersproject-xdc/web" + "@ethersproject-xdc/abstract-provider" "file:vendor/@ethersproject-xdc/abstract-provider" + "@ethersproject-xdc/abstract-signer" "file:vendor/@ethersproject-xdc/abstract-signer" + "@ethersproject-xdc/address" "file:vendor/@ethersproject-xdc/address" + "@ethersproject-xdc/basex" "file:vendor/@ethersproject-xdc/basex" + "@ethersproject-xdc/bignumber" "file:vendor/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" + "@ethersproject-xdc/constants" "file:vendor/@ethersproject-xdc/constants" + "@ethersproject-xdc/hash" "file:vendor/@ethersproject-xdc/hash" + "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" + "@ethersproject-xdc/networks" "file:vendor/@ethersproject-xdc/networks" + "@ethersproject-xdc/properties" "file:vendor/@ethersproject-xdc/properties" + "@ethersproject-xdc/random" "file:vendor/@ethersproject-xdc/random" + "@ethersproject-xdc/rlp" "file:vendor/@ethersproject-xdc/rlp" + "@ethersproject-xdc/sha2" "file:vendor/@ethersproject-xdc/sha2" + "@ethersproject-xdc/strings" "file:vendor/@ethersproject-xdc/strings" + "@ethersproject-xdc/transactions" "file:vendor/@ethersproject-xdc/transactions" + "@ethersproject-xdc/web" "file:vendor/@ethersproject-xdc/web" bech32 "1.1.4" ws "7.4.6" "@ethersproject-xdc/random@file:vendor/@ethersproject-xdc/random": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-random-5.7.0-80d46a5b-5310-4b0a-b1ee-0c957e87b772-1702640119077/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-random-5.7.0-80d46a5b-5310-4b0a-b1ee-0c957e87b772-1702640119077/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" + "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" "@ethersproject-xdc/rlp@file:vendor/@ethersproject-xdc/rlp": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-rlp-5.7.0-cf0bf34b-b463-4bdc-b50b-03aa09d88f86-1702640118993/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-rlp-5.7.0-cf0bf34b-b463-4bdc-b50b-03aa09d88f86-1702640118993/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" + "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" "@ethersproject-xdc/sha2@file:vendor/@ethersproject-xdc/sha2": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-sha2-5.7.0-5e6dfcb5-c5fb-4d9e-97f1-921aff889c1b-1702640119135/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-sha2-5.7.0-5e6dfcb5-c5fb-4d9e-97f1-921aff889c1b-1702640119135/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" + "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" hash.js "1.1.7" "@ethersproject-xdc/signing-key@file:vendor/@ethersproject-xdc/signing-key": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-signing-key-5.7.0-efee3fd9-137c-48f9-a419-3ab7a0188303-1702640119002/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-signing-key-5.7.0-efee3fd9-137c-48f9-a419-3ab7a0188303-1702640119002/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-signing-key-5.7.0-efee3fd9-137c-48f9-a419-3ab7a0188303-1702640119002/node_modules/@ethersproject-xdc/properties" + "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" + "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" + "@ethersproject-xdc/properties" "file:vendor/@ethersproject-xdc/properties" bn.js "^5.2.1" elliptic "6.5.4" hash.js "1.1.7" @@ -1330,76 +1330,76 @@ "@ethersproject-xdc/solidity@file:vendor/@ethersproject-xdc/solidity": version "5.6.0" dependencies: - "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-solidity-5.6.0-1afc65b2-9ea7-45fa-ba26-814e45b36c92-1702640118994/node_modules/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-solidity-5.6.0-1afc65b2-9ea7-45fa-ba26-814e45b36c92-1702640118994/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-solidity-5.6.0-1afc65b2-9ea7-45fa-ba26-814e45b36c92-1702640118994/node_modules/@ethersproject-xdc/keccak256" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-solidity-5.6.0-1afc65b2-9ea7-45fa-ba26-814e45b36c92-1702640118994/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/sha2" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-solidity-5.6.0-1afc65b2-9ea7-45fa-ba26-814e45b36c92-1702640118994/node_modules/@ethersproject-xdc/sha2" - "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-solidity-5.6.0-1afc65b2-9ea7-45fa-ba26-814e45b36c92-1702640118994/node_modules/@ethersproject-xdc/strings" + "@ethersproject-xdc/bignumber" "file:vendor/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" + "@ethersproject-xdc/keccak256" "file:vendor/@ethersproject-xdc/keccak256" + "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" + "@ethersproject-xdc/sha2" "file:vendor/@ethersproject-xdc/sha2" + "@ethersproject-xdc/strings" "file:vendor/@ethersproject-xdc/strings" "@ethersproject-xdc/strings@file:vendor/@ethersproject-xdc/strings": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-strings-5.7.0-415c9bf3-c4b5-4bc6-8dec-f04d9c03464a-1702640119108/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/constants" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-strings-5.7.0-415c9bf3-c4b5-4bc6-8dec-f04d9c03464a-1702640119108/node_modules/@ethersproject-xdc/constants" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-strings-5.7.0-415c9bf3-c4b5-4bc6-8dec-f04d9c03464a-1702640119108/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" + "@ethersproject-xdc/constants" "file:vendor/@ethersproject-xdc/constants" + "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" "@ethersproject-xdc/transactions@file:vendor/@ethersproject-xdc/transactions": version "5.7.0" dependencies: - "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-5c01a6d7-96c4-4b56-9dac-c2078c5c6b52-1702640119140/node_modules/@ethersproject-xdc/address" - "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-5c01a6d7-96c4-4b56-9dac-c2078c5c6b52-1702640119140/node_modules/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-5c01a6d7-96c4-4b56-9dac-c2078c5c6b52-1702640119140/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/constants" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-5c01a6d7-96c4-4b56-9dac-c2078c5c6b52-1702640119140/node_modules/@ethersproject-xdc/constants" - "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-5c01a6d7-96c4-4b56-9dac-c2078c5c6b52-1702640119140/node_modules/@ethersproject-xdc/keccak256" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-5c01a6d7-96c4-4b56-9dac-c2078c5c6b52-1702640119140/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-5c01a6d7-96c4-4b56-9dac-c2078c5c6b52-1702640119140/node_modules/@ethersproject-xdc/properties" - "@ethersproject-xdc/rlp" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-5c01a6d7-96c4-4b56-9dac-c2078c5c6b52-1702640119140/node_modules/@ethersproject-xdc/rlp" - "@ethersproject-xdc/signing-key" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-transactions-5.7.0-5c01a6d7-96c4-4b56-9dac-c2078c5c6b52-1702640119140/node_modules/@ethersproject-xdc/signing-key" + "@ethersproject-xdc/address" "file:vendor/@ethersproject-xdc/address" + "@ethersproject-xdc/bignumber" "file:vendor/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" + "@ethersproject-xdc/constants" "file:vendor/@ethersproject-xdc/constants" + "@ethersproject-xdc/keccak256" "file:vendor/@ethersproject-xdc/keccak256" + "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" + "@ethersproject-xdc/properties" "file:vendor/@ethersproject-xdc/properties" + "@ethersproject-xdc/rlp" "file:vendor/@ethersproject-xdc/rlp" + "@ethersproject-xdc/signing-key" "file:vendor/@ethersproject-xdc/signing-key" "@ethersproject-xdc/units@file:vendor/@ethersproject-xdc/units": version "5.6.0" dependencies: - "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-units-5.6.0-1ba3abf9-57f1-412c-8f5d-841ac3103fc7-1702640119137/node_modules/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/constants" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-units-5.6.0-1ba3abf9-57f1-412c-8f5d-841ac3103fc7-1702640119137/node_modules/@ethersproject-xdc/constants" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-units-5.6.0-1ba3abf9-57f1-412c-8f5d-841ac3103fc7-1702640119137/node_modules/@ethersproject-xdc/logger" + "@ethersproject-xdc/bignumber" "file:vendor/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/constants" "file:vendor/@ethersproject-xdc/constants" + "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" "@ethersproject-xdc/wallet@file:vendor/@ethersproject-xdc/wallet": version "5.6.0" dependencies: - "@ethersproject-xdc/abstract-provider" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-d9885aa7-c031-4d5d-9a45-357fda905c91-1702640119138/node_modules/@ethersproject-xdc/abstract-provider" - "@ethersproject-xdc/abstract-signer" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-d9885aa7-c031-4d5d-9a45-357fda905c91-1702640119138/node_modules/@ethersproject-xdc/abstract-signer" - "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-d9885aa7-c031-4d5d-9a45-357fda905c91-1702640119138/node_modules/@ethersproject-xdc/address" - "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-d9885aa7-c031-4d5d-9a45-357fda905c91-1702640119138/node_modules/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-d9885aa7-c031-4d5d-9a45-357fda905c91-1702640119138/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/hash" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-d9885aa7-c031-4d5d-9a45-357fda905c91-1702640119138/node_modules/@ethersproject-xdc/hash" - "@ethersproject-xdc/hdnode" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-d9885aa7-c031-4d5d-9a45-357fda905c91-1702640119138/node_modules/@ethersproject-xdc/hdnode" - "@ethersproject-xdc/json-wallets" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-d9885aa7-c031-4d5d-9a45-357fda905c91-1702640119138/node_modules/@ethersproject-xdc/json-wallets" - "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-d9885aa7-c031-4d5d-9a45-357fda905c91-1702640119138/node_modules/@ethersproject-xdc/keccak256" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-d9885aa7-c031-4d5d-9a45-357fda905c91-1702640119138/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-d9885aa7-c031-4d5d-9a45-357fda905c91-1702640119138/node_modules/@ethersproject-xdc/properties" - "@ethersproject-xdc/random" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-d9885aa7-c031-4d5d-9a45-357fda905c91-1702640119138/node_modules/@ethersproject-xdc/random" - "@ethersproject-xdc/signing-key" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-d9885aa7-c031-4d5d-9a45-357fda905c91-1702640119138/node_modules/@ethersproject-xdc/signing-key" - "@ethersproject-xdc/transactions" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-d9885aa7-c031-4d5d-9a45-357fda905c91-1702640119138/node_modules/@ethersproject-xdc/transactions" - "@ethersproject-xdc/wordlists" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wallet-5.6.0-d9885aa7-c031-4d5d-9a45-357fda905c91-1702640119138/node_modules/@ethersproject-xdc/wordlists" + "@ethersproject-xdc/abstract-provider" "file:vendor/@ethersproject-xdc/abstract-provider" + "@ethersproject-xdc/abstract-signer" "file:vendor/@ethersproject-xdc/abstract-signer" + "@ethersproject-xdc/address" "file:vendor/@ethersproject-xdc/address" + "@ethersproject-xdc/bignumber" "file:vendor/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" + "@ethersproject-xdc/hash" "file:vendor/@ethersproject-xdc/hash" + "@ethersproject-xdc/hdnode" "file:vendor/@ethersproject-xdc/hdnode" + "@ethersproject-xdc/json-wallets" "file:vendor/@ethersproject-xdc/json-wallets" + "@ethersproject-xdc/keccak256" "file:vendor/@ethersproject-xdc/keccak256" + "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" + "@ethersproject-xdc/properties" "file:vendor/@ethersproject-xdc/properties" + "@ethersproject-xdc/random" "file:vendor/@ethersproject-xdc/random" + "@ethersproject-xdc/signing-key" "file:vendor/@ethersproject-xdc/signing-key" + "@ethersproject-xdc/transactions" "file:vendor/@ethersproject-xdc/transactions" + "@ethersproject-xdc/wordlists" "file:vendor/@ethersproject-xdc/wordlists" "@ethersproject-xdc/web@file:vendor/@ethersproject-xdc/web": version "5.7.1" dependencies: - "@ethersproject-xdc/base64" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-web-5.7.1-26249cd6-e913-490b-8c6f-f5da9621f2b5-1702640119143/node_modules/@ethersproject-xdc/base64" - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-web-5.7.1-26249cd6-e913-490b-8c6f-f5da9621f2b5-1702640119143/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-web-5.7.1-26249cd6-e913-490b-8c6f-f5da9621f2b5-1702640119143/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-web-5.7.1-26249cd6-e913-490b-8c6f-f5da9621f2b5-1702640119143/node_modules/@ethersproject-xdc/properties" - "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-web-5.7.1-26249cd6-e913-490b-8c6f-f5da9621f2b5-1702640119143/node_modules/@ethersproject-xdc/strings" + "@ethersproject-xdc/base64" "file:vendor/@ethersproject-xdc/base64" + "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" + "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" + "@ethersproject-xdc/properties" "file:vendor/@ethersproject-xdc/properties" + "@ethersproject-xdc/strings" "file:vendor/@ethersproject-xdc/strings" "@ethersproject-xdc/wordlists@file:vendor/@ethersproject-xdc/wordlists": version "5.7.0" dependencies: - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wordlists-5.7.0-6e79e209-b1f0-4c19-9188-659258bbbd75-1702640119141/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/hash" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wordlists-5.7.0-6e79e209-b1f0-4c19-9188-659258bbbd75-1702640119141/node_modules/@ethersproject-xdc/hash" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wordlists-5.7.0-6e79e209-b1f0-4c19-9188-659258bbbd75-1702640119141/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wordlists-5.7.0-6e79e209-b1f0-4c19-9188-659258bbbd75-1702640119141/node_modules/@ethersproject-xdc/properties" - "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-@ethersproject-xdc-wordlists-5.7.0-6e79e209-b1f0-4c19-9188-659258bbbd75-1702640119141/node_modules/@ethersproject-xdc/strings" + "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" + "@ethersproject-xdc/hash" "file:vendor/@ethersproject-xdc/hash" + "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" + "@ethersproject-xdc/properties" "file:vendor/@ethersproject-xdc/properties" + "@ethersproject-xdc/strings" "file:vendor/@ethersproject-xdc/strings" "@ethersproject/abi@5.7.0", "@ethersproject/abi@^5.0.12", "@ethersproject/abi@^5.1.2", "@ethersproject/abi@^5.4.0", "@ethersproject/abi@^5.5.0", "@ethersproject/abi@^5.6.3", "@ethersproject/abi@^5.7.0": version "5.7.0" @@ -7602,36 +7602,36 @@ ethereumjs-util@^6.0.0, ethereumjs-util@^6.2.1: "ethers-xdc@file:./vendor/ethers-xdc": version "5.7.2" dependencies: - "@ethersproject-xdc/abi" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/abi" - "@ethersproject-xdc/abstract-provider" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/abstract-provider" - "@ethersproject-xdc/abstract-signer" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/abstract-signer" - "@ethersproject-xdc/address" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/address" - "@ethersproject-xdc/base64" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/base64" - "@ethersproject-xdc/basex" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/basex" - "@ethersproject-xdc/bignumber" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/bignumber" - "@ethersproject-xdc/bytes" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/bytes" - "@ethersproject-xdc/constants" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/constants" - "@ethersproject-xdc/contracts" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/contracts" - "@ethersproject-xdc/hash" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/hash" - "@ethersproject-xdc/hdnode" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/hdnode" - "@ethersproject-xdc/json-wallets" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/json-wallets" - "@ethersproject-xdc/keccak256" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/keccak256" - "@ethersproject-xdc/logger" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/logger" - "@ethersproject-xdc/networks" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/networks" - "@ethersproject-xdc/pbkdf2" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/pbkdf2" - "@ethersproject-xdc/properties" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/properties" - "@ethersproject-xdc/providers" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/providers" - "@ethersproject-xdc/random" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/random" - "@ethersproject-xdc/rlp" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/rlp" - "@ethersproject-xdc/sha2" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/sha2" - "@ethersproject-xdc/signing-key" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/signing-key" - "@ethersproject-xdc/solidity" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/solidity" - "@ethersproject-xdc/strings" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/strings" - "@ethersproject-xdc/transactions" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/transactions" - "@ethersproject-xdc/units" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/units" - "@ethersproject-xdc/wallet" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/wallet" - "@ethersproject-xdc/web" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/web" - "@ethersproject-xdc/wordlists" "file:../../../Library/Caches/Yarn/v6/npm-ethers-xdc-5.7.2-677babfc-003f-452b-8bd5-ad22360f402c-1702640118935/node_modules/@ethersproject-xdc/wordlists" + "@ethersproject-xdc/abi" "file:vendor/@ethersproject-xdc/abi" + "@ethersproject-xdc/abstract-provider" "file:vendor/@ethersproject-xdc/abstract-provider" + "@ethersproject-xdc/abstract-signer" "file:vendor/@ethersproject-xdc/abstract-signer" + "@ethersproject-xdc/address" "file:vendor/@ethersproject-xdc/address" + "@ethersproject-xdc/base64" "file:vendor/@ethersproject-xdc/base64" + "@ethersproject-xdc/basex" "file:vendor/@ethersproject-xdc/basex" + "@ethersproject-xdc/bignumber" "file:vendor/@ethersproject-xdc/bignumber" + "@ethersproject-xdc/bytes" "file:vendor/@ethersproject-xdc/bytes" + "@ethersproject-xdc/constants" "file:vendor/@ethersproject-xdc/constants" + "@ethersproject-xdc/contracts" "file:vendor/@ethersproject-xdc/contracts" + "@ethersproject-xdc/hash" "file:vendor/@ethersproject-xdc/hash" + "@ethersproject-xdc/hdnode" "file:vendor/@ethersproject-xdc/hdnode" + "@ethersproject-xdc/json-wallets" "file:vendor/@ethersproject-xdc/json-wallets" + "@ethersproject-xdc/keccak256" "file:vendor/@ethersproject-xdc/keccak256" + "@ethersproject-xdc/logger" "file:vendor/@ethersproject-xdc/logger" + "@ethersproject-xdc/networks" "file:vendor/@ethersproject-xdc/networks" + "@ethersproject-xdc/pbkdf2" "file:vendor/@ethersproject-xdc/pbkdf2" + "@ethersproject-xdc/properties" "file:vendor/@ethersproject-xdc/properties" + "@ethersproject-xdc/providers" "file:vendor/@ethersproject-xdc/providers" + "@ethersproject-xdc/random" "file:vendor/@ethersproject-xdc/random" + "@ethersproject-xdc/rlp" "file:vendor/@ethersproject-xdc/rlp" + "@ethersproject-xdc/sha2" "file:vendor/@ethersproject-xdc/sha2" + "@ethersproject-xdc/signing-key" "file:vendor/@ethersproject-xdc/signing-key" + "@ethersproject-xdc/solidity" "file:vendor/@ethersproject-xdc/solidity" + "@ethersproject-xdc/strings" "file:vendor/@ethersproject-xdc/strings" + "@ethersproject-xdc/transactions" "file:vendor/@ethersproject-xdc/transactions" + "@ethersproject-xdc/units" "file:vendor/@ethersproject-xdc/units" + "@ethersproject-xdc/wallet" "file:vendor/@ethersproject-xdc/wallet" + "@ethersproject-xdc/web" "file:vendor/@ethersproject-xdc/web" + "@ethersproject-xdc/wordlists" "file:vendor/@ethersproject-xdc/wordlists" ethers@4.0.0-beta.3: version "4.0.0-beta.3" From d9e3f5e19b08365caf93aeb4247eebc33e7378fa Mon Sep 17 00:00:00 2001 From: 0xCodercrane <108444211+0xcodercrane@users.noreply.github.com> Date: Wed, 3 Jan 2024 22:12:51 +0800 Subject: [PATCH 11/13] ci(test): testnet to mainnet --- src/connectors/pancakeswap/pancakeswap.ts | 8 ++--- src/connectors/ref/ref.controllers.ts | 2 +- .../pancakeswap/pancakeswap.routes.test.ts | 32 +++++++++---------- .../pancakeswap/pancakeswap.test.ts | 13 ++++---- 4 files changed, 28 insertions(+), 27 deletions(-) diff --git a/src/connectors/pancakeswap/pancakeswap.ts b/src/connectors/pancakeswap/pancakeswap.ts index 0b33e2b083..47e202be87 100644 --- a/src/connectors/pancakeswap/pancakeswap.ts +++ b/src/connectors/pancakeswap/pancakeswap.ts @@ -222,8 +222,8 @@ export class PancakeSwap implements Uniswapish { } logger.info( `Best trade for ${baseToken.address}-${quoteToken.address}: ` + - `${trade.inputAmount.toExact()}` + - `${baseToken.symbol}.` + `${trade.inputAmount.toExact()}` + + `${baseToken.symbol}.` ); return { @@ -287,8 +287,8 @@ export class PancakeSwap implements Uniswapish { } logger.info( `Best trade for ${baseToken.address}-${quoteToken.address}: ` + - `${trade.outputAmount.toExact()}` + - `${baseToken.symbol}.` + `${trade.outputAmount.toExact()}` + + `${baseToken.symbol}.` ); return { diff --git a/src/connectors/ref/ref.controllers.ts b/src/connectors/ref/ref.controllers.ts index b82e104760..fd64d2027c 100644 --- a/src/connectors/ref/ref.controllers.ts +++ b/src/connectors/ref/ref.controllers.ts @@ -187,7 +187,7 @@ export async function trade( logger.info( `Expected execution price is ${estimatedPrice}, ` + - `limit price is ${limitPrice}.` + `limit price is ${limitPrice}.` ); if (req.side === 'BUY') { diff --git a/test/connectors/pancakeswap/pancakeswap.routes.test.ts b/test/connectors/pancakeswap/pancakeswap.routes.test.ts index 632bb73ee8..782010c3ca 100644 --- a/test/connectors/pancakeswap/pancakeswap.routes.test.ts +++ b/test/connectors/pancakeswap/pancakeswap.routes.test.ts @@ -156,7 +156,7 @@ describe('POST /amm/price', () => { .post(`/amm/price`) .send({ chain: 'binance-smart-chain', - network: 'testnet', + network: 'mainnet', connector: 'pancakeswap', quote: 'DAI', base: 'WBNB', @@ -185,7 +185,7 @@ describe('POST /amm/price', () => { .post(`/amm/price`) .send({ chain: 'binance-smart-chain', - network: 'testnet', + network: 'mainnet', connector: 'pancakeswap', quote: 'DAI', base: 'WBNB', @@ -222,7 +222,7 @@ describe('POST /amm/price', () => { .post(`/amm/price`) .send({ chain: 'binance-smart-chain', - network: 'testnet', + network: 'mainnet', connector: 'pancakeswap', quote: 'DOGE', base: 'WBNB', @@ -255,7 +255,7 @@ describe('POST /amm/price', () => { .post(`/amm/price`) .send({ chain: 'binance-smart-chain', - network: 'testnet', + network: 'mainnet', connector: 'pancakeswap', quote: 'DAI', base: 'SHIBA', @@ -284,7 +284,7 @@ describe('POST /amm/trade', () => { .post(`/amm/trade`) .send({ chain: 'binance-smart-chain', - network: 'testnet', + network: 'mainnet', connector: 'pancakeswap', quote: 'DAI', base: 'WBNB', @@ -306,7 +306,7 @@ describe('POST /amm/trade', () => { .post(`/amm/trade`) .send({ chain: 'binance-smart-chain', - network: 'testnet', + network: 'mainnet', connector: 'pancakeswap', quote: 'DAI', base: 'WBNB', @@ -324,7 +324,7 @@ describe('POST /amm/trade', () => { .post(`/amm/trade`) .send({ chain: 'binance-smart-chain', - network: 'testnet', + network: 'mainnet', connector: 'pancakeswap', quote: 'DAI', base: 'WBNB', @@ -355,7 +355,7 @@ describe('POST /amm/trade', () => { .post(`/amm/trade`) .send({ chain: 'binance-smart-chain', - network: 'testnet', + network: 'mainnet', connector: 'pancakeswap', quote: 'DAI', base: 'WBNB', @@ -377,7 +377,7 @@ describe('POST /amm/trade', () => { .post(`/amm/trade`) .send({ chain: 'binance-smart-chain', - network: 'testnet', + network: 'mainnet', connector: 'pancakeswap', quote: 'DAI', base: 'WBNB', @@ -397,7 +397,7 @@ describe('POST /amm/trade', () => { .post(`/amm/trade`) .send({ chain: 'binance-smart-chain', - network: 'testnet', + network: 'mainnet', connector: 'pancakeswap', quote: 'DAI', base: 'WBNB', @@ -429,7 +429,7 @@ describe('POST /amm/trade', () => { .post(`/amm/trade`) .send({ chain: 'binance-smart-chain', - network: 'testnet', + network: 'mainnet', connector: 'pancakeswap', quote: 'WBNB', base: 'BITCOIN', @@ -464,7 +464,7 @@ describe('POST /amm/trade', () => { .post(`/amm/trade`) .send({ chain: 'binance-smart-chain', - network: 'testnet', + network: 'mainnet', connector: 'pancakeswap', quote: 'BITCOIN', base: 'WBNB', @@ -485,7 +485,7 @@ describe('POST /amm/trade', () => { .post(`/amm/trade`) .send({ chain: 'binance-smart-chain', - network: 'testnet', + network: 'mainnet', connector: 'pancakeswap', quote: 'DAI', base: 'WBNB', @@ -505,7 +505,7 @@ describe('POST /amm/trade', () => { .post(`/amm/trade`) .send({ chain: 'binance-smart-chain', - network: 'testnet', + network: 'mainnet', connector: 'pancakeswap', quote: 'DAI', base: 'WBNB', @@ -525,7 +525,7 @@ describe('POST /amm/trade', () => { .post(`/amm/trade`) .send({ chain: 'binance-smart-chain', - network: 'testnet', + network: 'mainnet', connector: 'pancakeswap', quote: 'DAI', base: 'WBNB', @@ -545,7 +545,7 @@ describe('POST /amm/trade', () => { .post(`/amm/trade`) .send({ chain: 'binance-smart-chain', - network: 'testnet', + network: 'mainnet', connector: 'pancakeswap', quote: 'DAI', base: 'WBNB', diff --git a/test/connectors/pancakeswap/pancakeswap.test.ts b/test/connectors/pancakeswap/pancakeswap.test.ts index 61300e9a79..d9a18ecd15 100644 --- a/test/connectors/pancakeswap/pancakeswap.test.ts +++ b/test/connectors/pancakeswap/pancakeswap.test.ts @@ -21,23 +21,23 @@ let bsc: BinanceSmartChain; let pancakeswap: PancakeSwap; const WBNB = new Token( - 97, - '0xae13d989dac2f0debff460ac112a837c89baa7cd', + 56, + '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c', 18, 'WBNB' ); const DAI = new Token( - 97, - '0x8a9424745056Eb399FD19a0EC26A14316684e274', + 56, + '0x1AF3F329e8BE154074D8769D1FFa4eE058B1DBc3', 18, 'DAI' ); beforeAll(async () => { - bsc = BinanceSmartChain.getInstance('testnet'); + bsc = BinanceSmartChain.getInstance('mainnet'); patchEVMNonceManager(bsc.nonceManager); await bsc.init(); - pancakeswap = PancakeSwap.getInstance('binance-smart-chain', 'testnet'); + pancakeswap = PancakeSwap.getInstance('binance-smart-chain', 'mainnet'); await pancakeswap.init(); }); @@ -86,6 +86,7 @@ describe('verify PancakeSwap estimateSellTrade', () => { DAI, BigNumber.from(1) ); + expect(expectedTrade).toHaveProperty('trade'); expect(expectedTrade).toHaveProperty('expectedAmount'); }); From d5b1edb1f4426a19f0e74d6e912c8825b702ef50 Mon Sep 17 00:00:00 2001 From: 0xCodercrane <108444211+0xcodercrane@users.noreply.github.com> Date: Thu, 4 Jan 2024 21:50:31 +0800 Subject: [PATCH 12/13] chore: upgrade to mainnet --- src/templates/binance-smart-chain.yml | 2 +- .../pancakeswap/pancakeswap.routes.test.ts | 40 +++++++++---------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/templates/binance-smart-chain.yml b/src/templates/binance-smart-chain.yml index 7de9f60477..91a5c4646b 100644 --- a/src/templates/binance-smart-chain.yml +++ b/src/templates/binance-smart-chain.yml @@ -2,7 +2,7 @@ networks: mainnet: chainID: 56 - nodeURL: 'https://rpc.ankr.com/bsc' + nodeURL: 'https://binance.llamarpc.com' tokenListType: FILE tokenListSource: /home/gateway/conf/lists/bep20_tokens_mainnet.json nativeCurrencySymbol: 'BNB' diff --git a/test/connectors/pancakeswap/pancakeswap.routes.test.ts b/test/connectors/pancakeswap/pancakeswap.routes.test.ts index 782010c3ca..9cb341d4a0 100644 --- a/test/connectors/pancakeswap/pancakeswap.routes.test.ts +++ b/test/connectors/pancakeswap/pancakeswap.routes.test.ts @@ -9,10 +9,10 @@ let bsc: BinanceSmartChain; let pancakeswap: PancakeSwap; beforeAll(async () => { - bsc = BinanceSmartChain.getInstance('testnet'); + bsc = BinanceSmartChain.getInstance('mainnet'); patchEVMNonceManager(bsc.nonceManager); await bsc.init(); - pancakeswap = PancakeSwap.getInstance('binance-smart-chain', 'testnet'); + pancakeswap = PancakeSwap.getInstance('binance-smart-chain', 'mainnet'); await pancakeswap.init(); }); @@ -42,17 +42,17 @@ const patchStoredTokenList = () => { patch(bsc, 'tokenList', () => { return [ { - chainId: 97, + chainId: 56, name: 'WBNB', symbol: 'WBNB', - address: '0xae13d989dac2f0debff460ac112a837c89baa7cd', + address: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c', decimals: 18, }, { - chainId: 97, + chainId: 56, name: 'DAI', symbol: 'DAI', - address: '0x8a9424745056Eb399FD19a0EC26A14316684e274', + address: '0x1AF3F329e8BE154074D8769D1FFa4eE058B1DBc3', decimals: 18, }, ]; @@ -63,18 +63,18 @@ const patchGetTokenBySymbol = () => { patch(bsc, 'getTokenBySymbol', (symbol: string) => { if (symbol === 'WBNB') { return { - chainId: 97, + chainId: 56, name: 'WBNB', symbol: 'WBNB', - address: '0xae13d989dac2f0debff460ac112a837c89baa7cd', + address: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c', decimals: 18, }; } else { return { - chainId: 97, + chainId: 56, name: 'DAI', symbol: 'DAI', - address: '0x8a9424745056Eb399FD19a0EC26A14316684e274', + address: '0x1AF3F329e8BE154074D8769D1FFa4eE058B1DBc3', decimals: 18, }; } @@ -84,10 +84,10 @@ const patchGetTokenBySymbol = () => { const patchGetTokenByAddress = () => { patch(pancakeswap, 'getTokenByAddress', () => { return { - chainId: 97, + chainId: 56, name: 'WBNB', symbol: 'WBNB', - address: '0xae13d989dac2f0debff460ac112a837c89baa7cd', + address: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c', decimals: 18, }; }); @@ -206,10 +206,10 @@ describe('POST /amm/price', () => { patch(bsc, 'getTokenBySymbol', (symbol: string) => { if (symbol === 'WBNB') { return { - chainId: 97, + chainId: 56, name: 'WBNB', symbol: 'WBNB', - address: '0xae13d989dac2f0debff460ac112a837c89baa7cd', + address: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c', decimals: 18, }; } else { @@ -239,10 +239,10 @@ describe('POST /amm/price', () => { patch(bsc, 'getTokenBySymbol', (symbol: string) => { if (symbol === 'WBNB') { return { - chainId: 97, + chainId: 56, name: 'WBNB', symbol: 'WBNB', - address: '0xae13d989dac2f0debff460ac112a837c89baa7cd', + address: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c', decimals: 18, }; } else { @@ -414,10 +414,10 @@ describe('POST /amm/trade', () => { patch(bsc, 'getTokenBySymbol', (symbol: string) => { if (symbol === 'WBNB') { return { - chainId: 97, + chainId: 56, name: 'WBNB', symbol: 'WBNB', - address: '0xae13d989dac2f0debff460ac112a837c89baa7cd', + address: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c', decimals: 18, }; } else { @@ -449,10 +449,10 @@ describe('POST /amm/trade', () => { patch(bsc, 'getTokenBySymbol', (symbol: string) => { if (symbol === 'WBNB') { return { - chainId: 97, + chainId: 56, name: 'WBNB', symbol: 'WBNB', - address: '0xae13d989dac2f0debff460ac112a837c89baa7cd', + address: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c', decimals: 18, }; } else { From 595aae506df6ad9ab58741feff47be8b977cb599 Mon Sep 17 00:00:00 2001 From: 0xCodercrane <108444211+0xcodercrane@users.noreply.github.com> Date: Fri, 5 Jan 2024 17:58:52 +0800 Subject: [PATCH 13/13] ci(test): update for sdk v3 --- src/connectors/pancakeswap/pancakeswap.ts | 76 +++++++----------- .../pancakeswap/pancakeswap.test.ts | 79 +++++++++---------- 2 files changed, 69 insertions(+), 86 deletions(-) diff --git a/src/connectors/pancakeswap/pancakeswap.ts b/src/connectors/pancakeswap/pancakeswap.ts index 47e202be87..cfcb260fda 100644 --- a/src/connectors/pancakeswap/pancakeswap.ts +++ b/src/connectors/pancakeswap/pancakeswap.ts @@ -187,33 +187,11 @@ export class PancakeSwap implements Uniswapish { amount: BigNumber, _allowedSlippage?: string ): Promise { - const nativeTokenAmount: CurrencyAmount = - CurrencyAmount.fromRawAmount(baseToken, amount.toString()); - logger.info( `Fetching pair data for ${quoteToken.address}-${baseToken.address}.` ); - const quoteProvider = SmartRouter.createQuoteProvider({ - // @ts-ignore - onChainProvider: () => this.createPublicClient(), - }); - const pools = await this.getPools(baseToken, quoteToken); - - const trade = await SmartRouter.getBestTrade( - nativeTokenAmount, - quoteToken, - TradeType.EXACT_OUTPUT, - { - gasPriceWei: () => this.createPublicClient().getGasPrice(), - maxHops: this._maximumHops, - maxSplits: 1, - poolProvider: SmartRouter.createStaticPoolProvider(pools), - quoteProvider, - quoterOptimization: true, - allowedPoolTypes: [PoolType.V2, PoolType.V3, PoolType.STABLE], - } - ); + const trade = await this.getBestTrade(baseToken, quoteToken, amount, TradeType.EXACT_OUTPUT); if (!trade) { throw new UniswapishPriceError( @@ -252,33 +230,11 @@ export class PancakeSwap implements Uniswapish { amount: BigNumber, _allowedSlippage?: string ): Promise { - const nativeTokenAmount: CurrencyAmount = - CurrencyAmount.fromRawAmount(baseToken, amount.toString()); - logger.info( `Fetching pair data for ${baseToken.address}-${quoteToken.address}.` ); - const quoteProvider = SmartRouter.createQuoteProvider({ - // @ts-ignore - onChainProvider: () => this.createPublicClient(), - }); - const pools = await this.getPools(baseToken, quoteToken); - - const trade = await SmartRouter.getBestTrade( - nativeTokenAmount, - quoteToken, - TradeType.EXACT_INPUT, - { - gasPriceWei: () => this.createPublicClient().getGasPrice(), - maxHops: this._maximumHops, - maxSplits: 1, - poolProvider: SmartRouter.createStaticPoolProvider(pools), - quoteProvider, - quoterOptimization: true, - allowedPoolTypes: [PoolType.V2, PoolType.V3, PoolType.STABLE], - } - ); + const trade = await this.getBestTrade(baseToken, quoteToken, amount, TradeType.EXACT_INPUT); if (!trade) { throw new UniswapishPriceError( @@ -433,6 +389,34 @@ export class PancakeSwap implements Uniswapish { return fulfilledPools.flat(); } + async getBestTrade(baseToken: Token, quoteToken: Token, amount: BigNumber, tradeType: TradeType): Promise | null> { + const baseTokenAmount: CurrencyAmount = + CurrencyAmount.fromRawAmount(baseToken, amount.toString()); + + const quoteProvider = SmartRouter.createQuoteProvider({ + // @ts-ignore + onChainProvider: () => this.createPublicClient(), + }); + const pools = await this.getPools(baseToken, quoteToken); + + const trade = await SmartRouter.getBestTrade( + baseTokenAmount, + quoteToken, + tradeType, + { + gasPriceWei: () => this.createPublicClient().getGasPrice(), + maxHops: this._maximumHops, + maxSplits: 1, + poolProvider: SmartRouter.createStaticPoolProvider(pools), + quoteProvider, + quoterOptimization: true, + allowedPoolTypes: [PoolType.V2, PoolType.V3, PoolType.STABLE], + } + ); + + return trade; + } + private createPublicClient(): PublicClient { const transportUrl = this.bsc.rpcUrl; diff --git a/test/connectors/pancakeswap/pancakeswap.test.ts b/test/connectors/pancakeswap/pancakeswap.test.ts index d9a18ecd15..342443a1ad 100644 --- a/test/connectors/pancakeswap/pancakeswap.test.ts +++ b/test/connectors/pancakeswap/pancakeswap.test.ts @@ -1,14 +1,9 @@ jest.useFakeTimers(); import { - Fetcher, - Pair, Percent, - Route, Token, CurrencyAmount, - Trade, TradeType, - Currency, } from '@pancakeswap/sdk'; import { BigNumber } from 'ethers'; import { BinanceSmartChain } from '../../../src/chains/binance-smart-chain/binance-smart-chain'; @@ -49,51 +44,53 @@ afterAll(async () => { await bsc.close(); }); -const patchFetchPairData = () => { - patch(Fetcher, 'fetchPairData', () => { - return new Pair( - CurrencyAmount.fromRawAmount(WBNB, '2000000000000000000'), - CurrencyAmount.fromRawAmount(DAI, '1000000000000000000') - ); - }); -}; - -const patchTrade = (key: string, error?: Error) => { - patch(Trade, key, () => { - if (error) return []; - const WBNB_DAI = new Pair( - CurrencyAmount.fromRawAmount(WBNB, '2000000000000000000'), - CurrencyAmount.fromRawAmount(DAI, '1000000000000000000') - ); - const DAI_TO_WBNB = new Route([WBNB_DAI], DAI, WBNB); - return [ - new Trade( - DAI_TO_WBNB, - CurrencyAmount.fromRawAmount(DAI, '1000000000000000'), - TradeType.EXACT_INPUT - ), - ]; - }); -}; +// const patchFetchPairData = () => { +// patch(Fetcher, 'fetchPairData', () => { +// return new Pair( +// CurrencyAmount.fromRawAmount(WBNB, '2000000000000000000'), +// CurrencyAmount.fromRawAmount(DAI, '1000000000000000000') +// ); +// }); +// }; + +// const patchTrade = (key: string, error?: Error) => { +// patch(Trade, key, () => { +// if (error) return []; +// const WBNB_DAI = new Pair( +// CurrencyAmount.fromRawAmount(WBNB, '2000000000000000000'), +// CurrencyAmount.fromRawAmount(DAI, '1000000000000000000') +// ); +// const DAI_TO_WBNB = new Route([WBNB_DAI], DAI, WBNB); +// return [ +// new Trade( +// DAI_TO_WBNB, +// CurrencyAmount.fromRawAmount(DAI, '1000000000000000'), +// TradeType.EXACT_INPUT +// ), +// ]; +// }); +// }; describe('verify PancakeSwap estimateSellTrade', () => { it('Should return an ExpectedTrade when available', async () => { - patchFetchPairData(); - patchTrade('bestTradeExactIn'); + patch(pancakeswap, "getBestTrade", async () => { + return { tradeType: TradeType.EXACT_INPUT, inputAmount: CurrencyAmount.fromRawAmount(WBNB, "10000"), outputAmount: CurrencyAmount.fromRawAmount(DAI, "100000"), routes: [] }; + }) const expectedTrade = await pancakeswap.estimateSellTrade( WBNB, DAI, BigNumber.from(1) ); - expect(expectedTrade).toHaveProperty('trade'); expect(expectedTrade).toHaveProperty('expectedAmount'); }); it('Should throw an error if no pair is available', async () => { - patchFetchPairData(); - patchTrade('bestTradeExactIn', new Error('error getting trade')); + + patch(pancakeswap, "getBestTrade", async () => { + return null; + }) await expect(async () => { await pancakeswap.estimateSellTrade(WBNB, DAI, BigNumber.from(1)); @@ -103,8 +100,9 @@ describe('verify PancakeSwap estimateSellTrade', () => { describe('verify PancakeSwap estimateBuyTrade', () => { it('Should return an ExpectedTrade when available', async () => { - patchFetchPairData(); - patchTrade('bestTradeExactOut'); + patch(pancakeswap, "getBestTrade", async () => { + return { tradeType: TradeType.EXACT_OUTPUT, inputAmount: CurrencyAmount.fromRawAmount(WBNB, "10000"), outputAmount: CurrencyAmount.fromRawAmount(DAI, "100000"), routes: [] }; + }) const expectedTrade = await pancakeswap.estimateBuyTrade( WBNB, @@ -116,8 +114,9 @@ describe('verify PancakeSwap estimateBuyTrade', () => { }); it('Should return an error if no pair is available', async () => { - patchFetchPairData(); - patchTrade('bestTradeExactOut', new Error('error getting trade')); + patch(pancakeswap, "getBestTrade", async () => { + return null; + }) await expect(async () => { await pancakeswap.estimateBuyTrade(WBNB, DAI, BigNumber.from(1));