From 2000ed4990eff28ccfb47dd834163bfd931bdff5 Mon Sep 17 00:00:00 2001 From: Sebastian Pape <0xneo11@gmail.com> Date: Tue, 10 Sep 2024 13:50:29 +0200 Subject: [PATCH] v10.18.14: fix CHUNK_SIZE (new 50) --- dist/esm/index.evm.js | 2 +- dist/esm/index.js | 4 ++-- dist/esm/index.solana.js | 2 +- dist/umd/index.evm.js | 2 +- dist/umd/index.js | 4 ++-- dist/umd/index.solana.js | 2 +- package.evm.json | 2 +- package.json | 2 +- package.solana.json | 2 +- src/clients/ethers/provider.js | 2 +- src/clients/solana/provider.js | 2 +- 11 files changed, 13 insertions(+), 13 deletions(-) diff --git a/dist/esm/index.evm.js b/dist/esm/index.evm.js index 8caa916..c892a79 100644 --- a/dist/esm/index.evm.js +++ b/dist/esm/index.evm.js @@ -85,7 +85,7 @@ const setConfiguration = (configuration) =>{ function _optionalChain$2(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } const BATCH_INTERVAL = 10; -const CHUNK_SIZE = 99; +const CHUNK_SIZE = 50; const MAX_RETRY = 5; class StaticJsonRpcBatchProvider extends ethers.providers.JsonRpcProvider { diff --git a/dist/esm/index.js b/dist/esm/index.js index 44be8f9..486caca 100644 --- a/dist/esm/index.js +++ b/dist/esm/index.js @@ -28,7 +28,7 @@ const setConfiguration = (configuration) =>{ function _optionalChain$5(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } const BATCH_INTERVAL$1 = 10; -const CHUNK_SIZE$1 = 99; +const CHUNK_SIZE$1 = 50; const MAX_RETRY$1 = 5; class StaticJsonRpcBatchProvider extends ethers.providers.JsonRpcProvider { @@ -281,7 +281,7 @@ var EVM = { function _optionalChain$3(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } const BATCH_INTERVAL = 10; -const CHUNK_SIZE = 99; +const CHUNK_SIZE = 50; const MAX_RETRY = 10; class StaticJsonRpcSequentialProvider extends Connection { diff --git a/dist/esm/index.solana.js b/dist/esm/index.solana.js index 17fb9b5..3dda765 100644 --- a/dist/esm/index.solana.js +++ b/dist/esm/index.solana.js @@ -28,7 +28,7 @@ const setConfiguration = (configuration) =>{ function _optionalChain$3(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } const BATCH_INTERVAL = 10; -const CHUNK_SIZE = 99; +const CHUNK_SIZE = 50; const MAX_RETRY = 10; class StaticJsonRpcSequentialProvider extends Connection { diff --git a/dist/umd/index.evm.js b/dist/umd/index.evm.js index 4dc1120..a7e2e5a 100644 --- a/dist/umd/index.evm.js +++ b/dist/umd/index.evm.js @@ -92,7 +92,7 @@ function _optionalChain$2(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } const BATCH_INTERVAL = 10; - const CHUNK_SIZE = 99; + const CHUNK_SIZE = 50; const MAX_RETRY = 5; class StaticJsonRpcBatchProvider extends ethers.ethers.providers.JsonRpcProvider { diff --git a/dist/umd/index.js b/dist/umd/index.js index 6a54990..3b50f81 100644 --- a/dist/umd/index.js +++ b/dist/umd/index.js @@ -34,7 +34,7 @@ function _optionalChain$5(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } const BATCH_INTERVAL$1 = 10; - const CHUNK_SIZE$1 = 99; + const CHUNK_SIZE$1 = 50; const MAX_RETRY$1 = 5; class StaticJsonRpcBatchProvider extends ethers.ethers.providers.JsonRpcProvider { @@ -287,7 +287,7 @@ function _optionalChain$3(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } const BATCH_INTERVAL = 10; - const CHUNK_SIZE = 99; + const CHUNK_SIZE = 50; const MAX_RETRY = 10; class StaticJsonRpcSequentialProvider extends solanaWeb3_js.Connection { diff --git a/dist/umd/index.solana.js b/dist/umd/index.solana.js index 48c51a2..6dcd62c 100644 --- a/dist/umd/index.solana.js +++ b/dist/umd/index.solana.js @@ -34,7 +34,7 @@ function _optionalChain$3(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } const BATCH_INTERVAL = 10; - const CHUNK_SIZE = 99; + const CHUNK_SIZE = 50; const MAX_RETRY = 10; class StaticJsonRpcSequentialProvider extends solanaWeb3_js.Connection { diff --git a/package.evm.json b/package.evm.json index 5a2b02a..4321df4 100644 --- a/package.evm.json +++ b/package.evm.json @@ -1,7 +1,7 @@ { "name": "@depay/web3-client-evm", "moduleName": "Web3Client", - "version": "10.18.13", + "version": "10.18.14", "description": "A web3 client to fetch blockchain data just like you are used to with HTTP clients.", "main": "dist/umd/index.evm.js", "module": "dist/esm/index.evm.js", diff --git a/package.json b/package.json index 7f57304..eafa3ff 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@depay/web3-client", "moduleName": "Web3Client", - "version": "10.18.13", + "version": "10.18.14", "description": "A web3 client to fetch blockchain data just like you are used to with HTTP clients.", "main": "dist/umd/index.js", "module": "dist/esm/index.js", diff --git a/package.solana.json b/package.solana.json index d3ea701..9933cbc 100644 --- a/package.solana.json +++ b/package.solana.json @@ -1,7 +1,7 @@ { "name": "@depay/web3-client-solana", "moduleName": "Web3Client", - "version": "10.18.13", + "version": "10.18.14", "description": "A web3 client to fetch blockchain data just like you are used to with HTTP clients.", "main": "dist/umd/index.solana.js", "module": "dist/esm/index.solana.js", diff --git a/src/clients/ethers/provider.js b/src/clients/ethers/provider.js index 2227e43..aee3602 100644 --- a/src/clients/ethers/provider.js +++ b/src/clients/ethers/provider.js @@ -3,7 +3,7 @@ import { ethers } from 'ethers' import { getConfiguration } from '../../configuration' const BATCH_INTERVAL = 10 -const CHUNK_SIZE = 99 +const CHUNK_SIZE = 50 const MAX_RETRY = 5 class StaticJsonRpcBatchProvider extends ethers.providers.JsonRpcProvider { diff --git a/src/clients/solana/provider.js b/src/clients/solana/provider.js index 6ac4c37..1f13ad5 100644 --- a/src/clients/solana/provider.js +++ b/src/clients/solana/provider.js @@ -2,7 +2,7 @@ import { Connection } from '@depay/solana-web3.js' import { getConfiguration } from '../../configuration' const BATCH_INTERVAL = 10 -const CHUNK_SIZE = 99 +const CHUNK_SIZE = 50 const MAX_RETRY = 10 class StaticJsonRpcSequentialProvider extends Connection {