web3.js
web3.js copied to clipboard
Examples tx 0, 1 and 2
closing #5732
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% |
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 | β
<ΓΈ> (β
) |
@avkos this one looks better now!πͺ
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.
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.