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

Commit 56d4aec

Browse files
authored
Replaces #7390, #7391, & #7400 (#7401)
1 parent 6379aa8 commit 56d4aec

File tree

5 files changed

+30
-29
lines changed

5 files changed

+30
-29
lines changed

RELEASE.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ Further details about versioning can be found in the [semver 2.0.0 specification
3636
- `bumped-version` of release branch should be of main web3 package.
3737
3. `yarn`: Verify all dependencies have been installed
3838
4. Bump packages version numbers using `lerna version --no-push --no-private --no-git-tag-version` . This will update package versions and also run lifecycle scripts.
39-
- It will prompt for new version , modify package metadata and run life cycle scripts (in our case `version`), for bootstrapping lerna will use underlying yarn.
40-
5. Update each package's and also root `CHANGELOG.md`:
39+
- It will prompt for new version , modify package metadata and run lifecycle scripts (in our case `version`), for bootstrapping lerna will use underlying yarn.
40+
5. Update each package's and also root `CHANGELOG.md`:
4141

4242
5.A. If there are any changes in package during release PR e.g. dependency updated that effects package, add entry in changelog under `## [Unreleased]` of that package's changelog.
4343

@@ -61,19 +61,20 @@ Further details about versioning can be found in the [semver 2.0.0 specification
6161
- In the release description, copy all entries in `CHANGELOG.md` for the version being released
6262

6363
- Click `Save draft`
64-
64+
6565
12. Open pull request to merge branch created in `Step 2` (`release/bumped-version`) into `4.x`
6666
13. Wait for all tests to pass in github CI/CD , If there are any unusual warnings or errors in logs, discuss with team
6767
14. When sufficient approvals have been met, publish draft release created in `Step 11`
6868
15. Publish on NPM.
69+
6970
- login in NPM and verify you are logged in with right user and in right dir
70-
71+
7172
- If you want to publish `latest` tag release, run `npx lerna publish from-package --ignore-scripts` in the root directory to publish packages to NPM.
72-
73-
- If you want to publish any other tag, run `npx lerna publish from-package --ignore-scripts --dist-tag <<TAG>>` in the root directory e.g. `rc`
74-
73+
74+
- If you want to publish any other tag, run `npx lerna publish from-package --ignore-scripts --dist-tag <<TAG>>` in the root directory e.g. `rc`
75+
7576
IMPORTANT: Replace `<<TAG>>` with required tag in above command, e.g. if publishing `RC`, use following command:
76-
`npx lerna publish from-package --ignore-scripts --dist-tag rc`
77+
`npx lerna publish from-package --ignore-scripts --dist-tag rc`
7778

7879
- lerna will not invoke life cycle scripts before publishing and this will publish all packages to NPM public registry.
7980

docs/docs/glossary/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The `Contract` class is an important class in the `web3-eth-contract` package, a
2424

2525
The JSON interface is a `JSON` object describing the [Application Binary Interface (ABI)](https://docs.soliditylang.org/en/develop/abi-spec.html) for an Ethereum smart contract.
2626

27-
Using this JSON interface, web3.js is able to create a JavaScript object representing the smart contract , its methods and events using the `web3.eth.Contract` object.
27+
Using this JSON interface, web3.js is able to create a JavaScript object representing the smart contract, its methods and events using the `web3.eth.Contract` object.
2828

2929
### Functions
3030

docs/docs/guides/02_web3_providers_guide/events_listening.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sidebar_label: 'Providers Events Listening'
55

66
# Providers Events Listening
77

8-
Some providers are, by design, always connected. Therefor, they can communicate changes with the user through events. Actually, among the 3 providers, `HttpProvider` is the only one that does not support event. And the other 2:
8+
Some providers are, by design, always connected. Therefore, they can communicate changes with the user through events. Actually, among the 3 providers, `HttpProvider` is the only one that does not support event. And the other 2:
99
[WebSocketProvider](/api/web3-providers-ws/class/WebSocketProvider) and [IpcProvider](/api/web3-providers-ipc/class/IpcProvider) enable the user to listen to emitted events.
1010

1111
Actually, the events can be categorized as follows ([according to EIP 1193](https://eips.ethereum.org/EIPS/eip-1193#rationale)):

docs/docs/guides/05_smart_contracts/tips_and_tricks.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The Solidity code:
3939
4040
pragma solidity >=0.8.20 <0.9.0;
4141
42-
contract TestOverlading {
42+
contract TestOverloading {
4343
function funcWithParamsOverloading(uint256 userId) public pure returns (string memory) {
4444
return "called for the parameter with the type 'uint256'";
4545
}
@@ -138,6 +138,6 @@ Multiple methods found that are compatible with the given inputs. Found 2 compat
138138
139139
Future releases of web3.js, specifically version 5.x, will replace the warning with an error whenever multiple methods match a call without explicit overloading. This aims to foster greater precision in method invocation.
140140
141-
### Key Takeaway for function overlading: Method Specification
141+
### Key Takeaway for function overloading: Method Specification
142142
143143
When working with overloaded smart contract methods, it's imperative to specify the intended method by appending its parameter types within parentheses, such as `funcWithParamsOverloading(address)` versus `funcWithParamsOverloading(uint256)`. This ensures the accuracy of method invocation, leading to more efficient and clearer contract interactions.

docs/docs/guides/06_events_subscriptions/index.md

+17-17
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_position: 1
3-
sidebar_label: 'Mastering Events Subcriptions'
3+
sidebar_label: 'Mastering Events Subscriptions'
44
---
55

66
# Events Subscription
@@ -46,25 +46,25 @@ If you are the developer who provides custom subscriptions to users. We encourag
4646
- `on("data")` - Fires on each incoming log with the log object as argument.
4747

4848
```ts
49-
subcription.on('data', data => console.log(data));
49+
subscription.on('data', data => console.log(data));
5050
```
5151

5252
- `on("changed")` - Fires on each log which was removed from the blockchain. The log will have the additional property "removed: true".
5353

5454
```ts
55-
subcription.on('changed', changed => console.log(changed));
55+
subscription.on('changed', changed => console.log(changed));
5656
```
5757

5858
- `on("error")` - Fires when an error in the subscription occurs.
5959

6060
```ts
61-
subcription.on('error', error => console.log(error));
61+
subscription.on('error', error => console.log(error));
6262
```
6363

6464
- `on("connected")` - Fires once after the subscription successfully connected. Returns the subscription id.
6565

6666
```ts
67-
subcription.on('connected', connected => console.log(connected));
67+
subscription.on('connected', connected => console.log(connected));
6868
```
6969

7070
### Logs
@@ -77,11 +77,11 @@ import { Web3 } from 'web3';
7777
const web3 = new Web3('wss://ethereum-rpc.publicnode.com');
7878

7979
async function subscribe() {
80-
//create subcription
81-
const subcription = await web3.eth.subscribe('logs');
80+
//create subscription
81+
const subscription = await web3.eth.subscribe('logs');
8282

8383
//print logs of the latest mined block
84-
subcription.on('data', data => console.log(data));
84+
subscription.on('data', data => console.log(data));
8585
}
8686

8787
// function to unsubscribe from a subscription
@@ -104,11 +104,11 @@ import { Web3 } from 'web3';
104104
const web3 = new Web3('wss://ethereum-rpc.publicnode.com');
105105

106106
async function subscribe() {
107-
//create subcription
108-
const subcription = await web3.eth.subscribe('pendingTransactions'); //or ("newPendingTransactions")
107+
//create subscription
108+
const subscription = await web3.eth.subscribe('pendingTransactions'); //or ("newPendingTransactions")
109109

110110
//print tx hashs of pending transactions
111-
subcription.on('data', data => console.log(data));
111+
subscription.on('data', data => console.log(data));
112112
}
113113

114114
// function to unsubscribe from a subscription
@@ -131,11 +131,11 @@ import { Web3 } from 'web3';
131131
const web3 = new Web3('wss://ethereum-rpc.publicnode.com');
132132

133133
async function subscribe() {
134-
//create subcription
135-
const subcription = await web3.eth.subscribe('newBlockHeaders'); //or ("newHeads")
134+
//create subscription
135+
const subscription = await web3.eth.subscribe('newBlockHeaders'); //or ("newHeads")
136136

137137
//print block header everytime a block is mined
138-
subcription.on('data', data => console.log(data));
138+
subscription.on('data', data => console.log(data));
139139
}
140140

141141
// function to unsubscribe from a subscription
@@ -157,12 +157,12 @@ import { Web3 } from 'web3';
157157
const web3 = new Web3('wss://ethereum-rpc.publicnode.com');
158158

159159
async function subscribe() {
160-
//create subcription
161-
const subcription = await web3.eth.subscribe('syncing');
160+
//create subscription
161+
const subscription = await web3.eth.subscribe('syncing');
162162

163163
//this will return `true` when the node is syncing
164164
//when it’s finished syncing will return `false`, for the `changed` event.
165-
subcription.on('data', data => console.log(data));
165+
subscription.on('data', data => console.log(data));
166166
}
167167

168168
// function to unsubscribe from a subscription

0 commit comments

Comments
 (0)