Skip to content

Commit

Permalink
web3 v4 playground (#6945)
Browse files Browse the repository at this point in the history
* web3 playground

* menu update

* playground on max screen

* updated style file

* 80% width
  • Loading branch information
jdevcs authored Apr 4, 2024
1 parent 5341c3a commit 67d8a74
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/docs/web3_playground.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: 'Web3.js Playground'
---

<iframe height="700px" id="playground-iframe" width="80%"
max-width="80%" src="https://stackblitz.com/edit/web3jsplayground?embed=1&file=index.ts&hideNavigation=0&view=editor&hideExplorer=0&showSidebar=1"></iframe>
6 changes: 6 additions & 0 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,12 @@ const config = {
label: 'Glossary',
position: 'left',
},
{
to: '/web3_playground',
activeBasePath: '/',
label: 'Playground',
position: 'right',
},
{
href: 'https://github.com/ChainSafe/web3.js/tree/4.x/',
label: 'GitHub',
Expand Down
11 changes: 10 additions & 1 deletion docs/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,13 @@ li[role="tab"] {

.tabs-container .margin-top--md {
margin-top: 0px !important;
}
}



#playground-iframe {
width: 92vw; /* 92% of viewport width */
height: 700px; /* Adjust height as needed */
margin: 0; /* Remove any default margins */
padding: 0; /* Remove any default padding */
}

1 comment on commit 67d8a74

@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: 67d8a74 Previous: 6c075db Ratio
processingTx 9462 ops/sec (±3.41%) 9301 ops/sec (±4.81%) 0.98
processingContractDeploy 39332 ops/sec (±6.47%) 39129 ops/sec (±7.62%) 0.99
processingContractMethodSend 18390 ops/sec (±7.76%) 19443 ops/sec (±5.19%) 1.06
processingContractMethodCall 38270 ops/sec (±5.78%) 38971 ops/sec (±6.34%) 1.02
abiEncode 43547 ops/sec (±7.19%) 44252 ops/sec (±6.92%) 1.02
abiDecode 30500 ops/sec (±7.97%) 30419 ops/sec (±8.89%) 1.00
sign 1587 ops/sec (±3.01%) 1656 ops/sec (±4.08%) 1.04
verify 381 ops/sec (±0.46%) 373 ops/sec (±0.78%) 0.98

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

Please sign in to comment.