web3.js icon indicating copy to clipboard operation
web3.js copied to clipboard

Examples tx 0, 1 and 2

Open SantiagoDevRel opened this issue 1 year ago β€’ 4 comments

closing #5732

SantiagoDevRel avatar Apr 25 '24 14:04 SantiagoDevRel

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

Files count Total bundle size % Changed
10 623.22 kB β†’ 624.29 kB (+1.06 kB) +0.17%
Changeset
File Ξ” Size
../web3-eth/lib/commonjs/index.js πŸ“ˆ +980 B (+26.10%) 3.67 kB β†’ 4.62 kB
../web3-eth/lib/commonjs/utils/watch_transaction_for_confirmations.js πŸ“ˆ +240 B (+9.21%) 2.54 kB β†’ 2.78 kB
../web3-eth/lib/commonjs/utils/watch_transaction_by_polling.js πŸ“ˆ +152 B (+5.38%) 2.76 kB β†’ 2.91 kB
../web3-eth/lib/commonjs/utils/watch_transaction_by_subscription.js πŸ“ˆ +252 B (+5.25%) 4.69 kB β†’ 4.94 kB
../web3-eth/lib/commonjs/utils/wait_for_transaction_receipt.js πŸ“ˆ +137 B (+3.58%) 3.74 kB β†’ 3.87 kB
../web3-eth/lib/commonjs/utils/send_tx_helper.js πŸ“ˆ +64 B (+0.73%) 8.54 kB β†’ 8.6 kB
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

Asset File Size % Changed
web3.min.js 604.16 kB β†’ 604.99 kB (+852 B) +0.14%
../lib/commonjs/types.d.ts 2.45 kB β†’ 2.67 kB (+234 B) +9.34%

Smaller

No assets were smaller

Unchanged

Asset File Size % Changed
../lib/commonjs/index.d.ts 8.69 kB 0%
../lib/commonjs/accounts.d.ts 3.89 kB 0%
../lib/commonjs/web3.d.ts 1.35 kB 0%
../lib/commonjs/web3_eip6963.d.ts 1.2 kB 0%
../lib/commonjs/abi.d.ts 999 B 0%
../lib/commonjs/eth.exports.d.ts 280 B 0%
../lib/commonjs/providers.exports.d.ts 183 B 0%
../lib/commonjs/version.d.ts 60 B 0%

github-actions[bot] avatar Apr 25 '24 14:04 github-actions[bot]

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 91.98%. Comparing base (4358140) to head (1b0e82e). Report is 282 commits behind head on 4.x.

Additional details and impacted files
@@            Coverage Diff             @@
##              4.x    #7006      +/-   ##
==========================================
+ Coverage   87.37%   91.98%   +4.60%     
==========================================
  Files         197      215      +18     
  Lines        7548     8292     +744     
  Branches     2059     2277     +218     
==========================================
+ Hits         6595     7627    +1032     
+ Misses        953      665     -288     
Flag Coverage Ξ”
UnitTests 91.98% <ΓΈ> (+4.60%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Ξ”
web3 βˆ… <ΓΈ> (βˆ…)
web3-core βˆ… <ΓΈ> (βˆ…)
web3-errors βˆ… <ΓΈ> (βˆ…)
web3-eth βˆ… <ΓΈ> (βˆ…)
web3-eth-abi βˆ… <ΓΈ> (βˆ…)
web3-eth-accounts βˆ… <ΓΈ> (βˆ…)
web3-eth-contract βˆ… <ΓΈ> (βˆ…)
web3-eth-ens βˆ… <ΓΈ> (βˆ…)
web3-eth-iban βˆ… <ΓΈ> (βˆ…)
web3-eth-personal βˆ… <ΓΈ> (βˆ…)
web3-net βˆ… <ΓΈ> (βˆ…)
web3-providers-http βˆ… <ΓΈ> (βˆ…)
web3-providers-ipc βˆ… <ΓΈ> (βˆ…)
web3-providers-ws βˆ… <ΓΈ> (βˆ…)
web3-rpc-methods βˆ… <ΓΈ> (βˆ…)
web3-utils βˆ… <ΓΈ> (βˆ…)
web3-validator βˆ… <ΓΈ> (βˆ…)

codecov[bot] avatar Apr 25 '24 14:04 codecov[bot]

@avkos this one looks better now!πŸ’ͺ

SantiagoDevRel avatar Apr 26 '24 15:04 SantiagoDevRel

I think we already have example of all tx types. The question was to show how to send contract transaction with different types. For ex. Transfer ERC20 token using tx 0,1,2

lgtm, except Oleksii suggestion.

jdevcs avatar May 02 '24 16:05 jdevcs

This PR has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.

github-actions[bot] avatar Jul 07 '24 00:07 github-actions[bot]