Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Add abiitem - #6778

Merged
luu-alex merged 7 commits into
4.xfrom
add-abiitem
Feb 6, 2024
Merged

Add abiitem#6778
luu-alex merged 7 commits into
4.xfrom
add-abiitem

Conversation

@luu-alex

@luu-alex luu-alex commented Jan 31, 2024

Copy link
Copy Markdown
Contributor

Description

Adds missing exported type from 1.x to v4 for compatabiltiy
(#6678 )
https://github.com/web3/web3.js/blob/1.x/packages/web3-utils/types/index.d.ts#L218

Please include a summary of the changes and be sure to follow our Contribution Guidelines.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • I have selected the correct base branch.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • Any dependent changes have been merged and published in downstream modules.
  • I ran npm run lint with success and extended the tests and types if necessary.
  • I ran npm run test:unit with success.
  • I ran npm run test:coverage and my test cases cover all the lines and branches of the added code.
  • I ran npm run build and tested dist/web3.min.js in a browser.
  • I have tested my code on the live network.
  • I have checked the Deploy Preview and it looks correct.
  • I have updated the CHANGELOG.md file in the root folder.
  • I have linked Issue(s) with this PR in "Linked Issues" menu.

@github-actions

Copy link
Copy Markdown

Bundle Stats

Hey there, this message comes from a github action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Asset Old size New size Diff Diff %
Total 618 KB 618 KB 0 0.00%
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

No assets were bigger

Smaller

No assets were smaller

Unchanged

Asset Old size New size Diff Diff %
web3.min.js 601 KB 601 KB 0 0.00%
../lib/commonjs/index.d.ts 8.63 KB 8.63 KB 0 0.00%
../lib/commonjs/accounts.d.ts 3.89 KB 3.89 KB 0 0.00%
../lib/commonjs/types.d.ts 2.45 KB 2.45 KB 0 0.00%
../lib/commonjs/web3.d.ts 1.14 KB 1.14 KB 0 0.00%
../lib/commonjs/abi.d.ts 999 bytes 999 bytes 0 0.00%
../lib/commonjs/eth.exports.d.ts 280 bytes 280 bytes 0 0.00%
../lib/commonjs/providers.exports.d.ts 148 bytes 148 bytes 0 0.00%
../lib/commonjs/version.d.ts 60 bytes 60 bytes 0 0.00%

@github-actions

github-actions Bot commented Jan 31, 2024

Copy link
Copy Markdown

Benchmark

Benchmark suite Current: 35f1282 Previous: 6c075db Ratio
processingTx 9301 ops/sec (±3.93%) 9301 ops/sec (±4.81%) 1
processingContractDeploy 39973 ops/sec (±7.44%) 39129 ops/sec (±7.62%) 0.98
processingContractMethodSend 19086 ops/sec (±7.42%) 19443 ops/sec (±5.19%) 1.02
processingContractMethodCall 39033 ops/sec (±5.48%) 38971 ops/sec (±6.34%) 1.00
abiEncode 45427 ops/sec (±6.48%) 44252 ops/sec (±6.92%) 0.97
abiDecode 31121 ops/sec (±8.78%) 30419 ops/sec (±8.89%) 0.98
sign 1647 ops/sec (±3.23%) 1656 ops/sec (±4.08%) 1.01
verify 381 ops/sec (±0.33%) 373 ops/sec (±0.78%) 0.98

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

Comment on lines +116 to +135
[{
anonymous: false,
constant: true,
inputs: [
{
name: 'testMe',
type: 'uint256[3]'
},
{
name: 'inputA',
type: 'tuple',
components: [
{
name: 'a',
type: 'uint8'
},
{
name: 'b',
type: 'uint8'
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'll suggest to move this in fixtures file

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants