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

feat: Implement eth.calculateFeeData #6795

Merged
merged 25 commits into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
0563919
add getMaxPriorityFeePerGas method
Muhammad-Altabba Jan 23, 2024
db81ec2
update CHANGELOG.md files
Muhammad-Altabba Jan 23, 2024
3281621
Merge branch '4.x' into 4195-plans-to-support-eth_maxpriorityfeeperga…
Muhammad-Altabba Jan 24, 2024
c1acca7
remove unnecessary cleaning step at github workflows
Muhammad-Altabba Jan 24, 2024
d7ffa4d
Merge remote-tracking branch 'origin/4.x' into 4195-plans-to-support-…
Muhammad-Altabba Jan 25, 2024
a6bc23d
revert unneeded changes
Muhammad-Altabba Jan 25, 2024
585510d
implement and test `calculateFeeData`
Muhammad-Altabba Jan 30, 2024
66a6933
Merge branch '4195-plans-to-support-eth_maxpriorityfeepergas-method' …
Muhammad-Altabba Jan 30, 2024
d3f97d8
fix lint issues
Muhammad-Altabba Jan 30, 2024
cee695a
update a test snapshot
Muhammad-Altabba Jan 30, 2024
7d83d96
Merge branch '4195-plans-to-support-eth_maxpriorityfeepergas-method' …
Muhammad-Altabba Jan 30, 2024
9cb1a3f
resolve snapshot issue between node 18 vs 20 & 21
Muhammad-Altabba Feb 7, 2024
efc14de
Merge branch '4.x' into 6599-implement-providergetfeedata
Muhammad-Altabba Feb 7, 2024
3aecfa4
update a comment
Muhammad-Altabba Feb 7, 2024
d2fb9d3
Merge branch '6756-web3-core-snapshot-issue' into 6599-implement-prov…
Muhammad-Altabba Feb 7, 2024
fc3d121
disable a ts error
Muhammad-Altabba Feb 7, 2024
bf7c170
fix linting issues
Muhammad-Altabba Feb 7, 2024
9b5b2ec
update test file name
Muhammad-Altabba Feb 7, 2024
0ca633f
update a test snapshot
Muhammad-Altabba Feb 7, 2024
0b28bb8
Merge branch '4.x' into 6599-implement-providergetfeedata
Muhammad-Altabba Feb 7, 2024
8077bce
Merge branch '4.x' into 6599-implement-providergetfeedata
Muhammad-Altabba Feb 13, 2024
140194a
add integration test for `calculateFeeData`
Muhammad-Altabba Feb 13, 2024
bb035dd
update CHANGELOG.md file
Muhammad-Altabba Feb 13, 2024
d9bb9f7
Merge branch '4.x' into 6599-implement-providergetfeedata
Muhammad-Altabba Feb 15, 2024
f51e94b
Merge branch '4.x' into 6599-implement-providergetfeedata
Muhammad-Altabba Feb 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/web3-eth/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,3 +220,7 @@ Documentation:
- Catch `TransactionPollingTimeoutError` was added to send transaction events (#6623)

## [Unreleased]

### Added

- Added `eth.getMaxPriorityFeePerGas` method (#6748)
12 changes: 12 additions & 0 deletions packages/web3-eth/src/rpc_method_wrappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,18 @@ export async function getGasPrice<ReturnFormat extends DataFormat>(
return format({ format: 'uint' }, response as Numbers, returnFormat);
}

/**
* View additional documentations here: {@link Web3Eth.getMaxPriorityFeePerGas}
* @param web3Context ({@link Web3Context}) Web3 configuration object that contains things such as the provider, request manager, wallet, etc.
*/
export async function getMaxPriorityFeePerGas<ReturnFormat extends DataFormat>(
web3Context: Web3Context<EthExecutionAPI>,
returnFormat: ReturnFormat,
) {
const response = await ethRpcMethods.getMaxPriorityFeePerGas(web3Context.requestManager);

return format({ format: 'uint' }, response as Numbers, returnFormat);
}
/**
* View additional documentations here: {@link Web3Eth.getBlockNumber}
* @param web3Context ({@link Web3Context}) Web3 configuration object that contains things such as the provider, request manager, wallet, etc.
Expand Down
Loading
Loading