Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lightweight dApp Development Guide #7364

Merged
merged 3 commits into from
Nov 4, 2024
Merged

Conversation

danforbes
Copy link
Contributor

Closes #7300

Copy link

github-actions bot commented Oct 29, 2024

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 646.7 kB → 646.77 kB (+67 B) +0.01%
Changeset
File Δ Size
../web3-eth/lib/commonjs/web3_eth.js 📈 +915 B (+0.98%) 91.29 kB → 92.18 kB
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

Asset File Size % Changed
web3.min.js 627.18 kB → 627.24 kB (+67 B) +0.01%

Smaller

No assets were smaller

Unchanged

Asset File Size % Changed
../lib/commonjs/index.d.ts 8.72 kB 0%
../lib/commonjs/accounts.d.ts 3.89 kB 0%
../lib/commonjs/types.d.ts 2.67 kB 0%
../lib/commonjs/web3.d.ts 1.38 kB 0%
../lib/commonjs/web3_eip6963.d.ts 1.28 kB 0%
../lib/commonjs/abi.d.ts 1.06 kB 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%

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Benchmark

Benchmark suite Current: 4cdf9dd Previous: 95b4bab Ratio
processingTx 22787 ops/sec (±8.92%) 21855 ops/sec (±6.97%) 0.96
processingContractDeploy 39391 ops/sec (±6.85%) 39254 ops/sec (±7.93%) 1.00
processingContractMethodSend 15888 ops/sec (±7.17%) 15819 ops/sec (±7.30%) 1.00
processingContractMethodCall 27918 ops/sec (±6.48%) 27336 ops/sec (±7.42%) 0.98
abiEncode 43335 ops/sec (±8.48%) 44297 ops/sec (±7.25%) 1.02
abiDecode 30837 ops/sec (±7.57%) 30746 ops/sec (±6.13%) 1.00
sign 1543 ops/sec (±0.82%) 1531 ops/sec (±0.76%) 0.99
verify 367 ops/sec (±0.63%) 358 ops/sec (±0.58%) 0.98

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

Copy link

codecov bot commented Oct 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.50%. Comparing base (efac906) to head (4cdf9dd).
Report is 5 commits behind head on 4.x.

Additional details and impacted files
@@            Coverage Diff             @@
##              4.x    #7364      +/-   ##
==========================================
- Coverage   94.50%   94.50%   -0.01%     
==========================================
  Files         217      217              
  Lines        8487     8491       +4     
  Branches     2343     2345       +2     
==========================================
+ Hits         8021     8024       +3     
- Misses        466      467       +1     
Flag Coverage Δ
UnitTests 94.50% <ø> (-0.01%) ⬇️

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

5. Use only necessary packages and analyze the result

:::tip
If you encounter any issues while following this guide or have any questions, don't hesitate to seek assistance. Our friendly community is ready to help you out! Join our [Discord](https://discord.gg/F4NUfaCC) server and head to the **#web3js-general** channel to connect with other developers and get the support you need.
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch 🙏🏻 I've updated this in all the guides/tutorials.

danforbes and others added 2 commits October 30, 2024 07:13
Co-authored-by: Junaid <86780488+jdevcs@users.noreply.github.com>

```console
npm install -g create-web3js-dapp
npx create-web3js-dapp --framework react --template minimal
Copy link
Contributor

Choose a reason for hiding this comment

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

I thought the whole idea of npx is that there is no need to install a package globally

@danforbes danforbes merged commit d446838 into 4.x Nov 4, 2024
54 checks passed
@danforbes danforbes deleted the feat/docs/lightweight-dapp branch November 4, 2024 19:57
@luu-alex luu-alex mentioned this pull request Nov 6, 2024
17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a new Guide about Building Light Weight dApps
4 participants