Skip to content

Commit

Permalink
update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Luu committed Feb 24, 2024
1 parent 79a25f2 commit fb28b3b
Showing 1 changed file with 113 additions and 0 deletions.
113 changes: 113 additions & 0 deletions packages/web3-core/test/unit/__snapshots__/web3_context.test.ts.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Web3Context getContextObject should return correct context object 1`] = `
{
"accountProvider": undefined,
"config": {
"blockHeaderTimeout": 10,
"contractDataInputFill": "data",
"defaultAccount": undefined,
"defaultBlock": "latest",
"defaultChain": "mainnet",
"defaultCommon": undefined,
"defaultHardfork": "london",
"defaultMaxPriorityFeePerGas": "0x9502f900",
"defaultNetworkId": undefined,
"defaultTransactionType": "0x2",
"enableExperimentalFeatures": {
"useRpcCallSpecification": false,
"useSubscriptionWhenCheckingBlockTimeout": false,
},
"handleRevert": false,
"maxListenersWarningThreshold": 100,
"transactionBlockTimeout": 50,
"transactionBuilder": undefined,
"transactionConfirmationBlocks": 24,
"transactionConfirmationPollingInterval": undefined,
"transactionPollingInterval": 1000,
"transactionPollingTimeout": 750000,
"transactionReceiptPollingInterval": undefined,
"transactionSendTimeout": 750000,
"transactionTypeParser": undefined,
},
"provider": HttpProvider {
"clientUrl": "http://test/abc",
"httpProviderOptions": undefined,
},
"providers": {
"HttpProvider": [Function],
"WebsocketProvider": [Function],
},
"registeredSubscriptions": {},
"requestManager": Web3RequestManager {
"_emitter": {
"_events": {
"BEFORE_PROVIDER_CHANGE": EE {
"context": EventEmitter {
"_events": [Circular],
"_eventsCount": 2,
"maxListeners": 9007199254740991,
},
"fn": [Function],
"once": false,
},
"PROVIDER_CHANGED": EE {
"context": EventEmitter {
"_events": [Circular],
"_eventsCount": 2,
"maxListeners": 9007199254740991,
},
"fn": [Function],
"once": false,
},
},
"_eventsCount": 2,
"maxListeners": 9007199254740991,
Symbol(shapeMode): false,
},
"_provider": HttpProvider {
"clientUrl": "http://test/abc",
"httpProviderOptions": undefined,
},
"useRpcCallSpecification": undefined,
},
"subscriptionManager": Web3SubscriptionManager {
"_subscriptions": Map {},
"registeredSubscriptions": {},
"requestManager": Web3RequestManager {
"_emitter": {
"_events": {
"BEFORE_PROVIDER_CHANGE": EE {
"context": EventEmitter {
"_events": [Circular],
"_eventsCount": 2,
"maxListeners": 9007199254740991,
},
"fn": [Function],
"once": false,
},
"PROVIDER_CHANGED": EE {
"context": EventEmitter {
"_events": [Circular],
"_eventsCount": 2,
"maxListeners": 9007199254740991,
},
"fn": [Function],
"once": false,
},
},
"_eventsCount": 2,
"maxListeners": 9007199254740991,
Symbol(shapeMode): false,
},
"_provider": HttpProvider {
"clientUrl": "http://test/abc",
"httpProviderOptions": undefined,
},
"useRpcCallSpecification": undefined,
},
"tolerateUnlinkedSubscription": false,
},
"wallet": undefined,
}
`;

1 comment on commit fb28b3b

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: fb28b3b Previous: 6c075db Ratio
processingTx 9408 ops/sec (±3.78%) 9301 ops/sec (±4.81%) 0.99
processingContractDeploy 38966 ops/sec (±7.43%) 39129 ops/sec (±7.62%) 1.00
processingContractMethodSend 18920 ops/sec (±7.14%) 19443 ops/sec (±5.19%) 1.03
processingContractMethodCall 38862 ops/sec (±5.40%) 38971 ops/sec (±6.34%) 1.00
abiEncode 44023 ops/sec (±6.35%) 44252 ops/sec (±6.92%) 1.01
abiDecode 31504 ops/sec (±7.05%) 30419 ops/sec (±8.89%) 0.97
sign 1653 ops/sec (±1.14%) 1656 ops/sec (±4.08%) 1.00
verify 372 ops/sec (±0.83%) 373 ops/sec (±0.78%) 1.00

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.