-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update http quicknode rpc-provider (#7102)
* update http * update changelog * update web3-rpc-providers * update * update * update * update tests * remove quicknode errors * update imports * change return type of request * update changelog --------- Co-authored-by: Alex Luu <[email protected]>
- Loading branch information
Showing
6 changed files
with
80 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
This file is part of web3.js. | ||
web3.js is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Lesser General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
web3.js is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public License | ||
along with web3.js. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
import { BaseWeb3Error } from 'web3-errors'; | ||
import { } from 'web3-types'; | ||
|
||
const ERR_QUICK_NODE_RATE_LIMIT = 1300; | ||
export class QuickNodeRateLimitError extends BaseWeb3Error { | ||
public code = ERR_QUICK_NODE_RATE_LIMIT; | ||
|
||
public constructor() { | ||
super(`Too many requests, Quicknode has reached its rate limit.`); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89711ab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark
processingTx
9435
ops/sec (±3.67%
)9231
ops/sec (±4.50%
)0.98
processingContractDeploy
40686
ops/sec (±6.96%
)41209
ops/sec (±6.76%
)1.01
processingContractMethodSend
16574
ops/sec (±8.48%
)17267
ops/sec (±7.07%
)1.04
processingContractMethodCall
28430
ops/sec (±6.15%
)27522
ops/sec (±7.88%
)0.97
abiEncode
45419
ops/sec (±7.37%
)45151
ops/sec (±6.90%
)0.99
abiDecode
31557
ops/sec (±7.64%
)30258
ops/sec (±7.82%
)0.96
sign
1572
ops/sec (±3.54%
)1598
ops/sec (±0.81%
)1.02
verify
375
ops/sec (±0.51%
)375
ops/sec (±0.45%
)1
This comment was automatically generated by workflow using github-action-benchmark.