Skip to content

Espace 1559 #1381

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

Merged
merged 2 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 6 additions & 0 deletions .yarn/versions/aa00b5c3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
releases:
"@fluent-wallet/eth_estimate-1559-fee": patch
"@fluent-wallet/eth_fee-history": patch

declined:
- helios-background
2 changes: 1 addition & 1 deletion packages/rpcs/eth_estimate1559Fee/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const permissions = {
//Gas station url for EIP1559
export const GAS_API_BASE_URL = 'https://gas-api.metaswap.codefi.network'
// How many blocks to consider for priority fee estimation
const FEE_HISTORY_BLOCKS = 5
const FEE_HISTORY_BLOCKS = '0x5'
// Levels of priority fee
const PRIORITY_LEVELS = ['low', 'medium', 'high']
const SETTINGS_BY_PRIORITY_LEVEL = {
Expand Down
3 changes: 2 additions & 1 deletion packages/rpcs/eth_feeHistory/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ import {
or,
zeroOrMore,
number,
string,
schema,
} from '@fluent-wallet/spec'

export const NAME = 'eth_feeHistory'
export const schemas = {
input: [
cat,
number,
string,
[or, blockRef, Uint],
[schema, [zeroOrMore, [number, {max: 100, min: 1}]]],
],
Expand Down
12 changes: 1 addition & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15046,7 +15046,7 @@ __metadata:
version: 1.4.2
resolution: "eth-sig-util@npm:1.4.2"
dependencies:
ethereumjs-abi: "git+https://github.com/ethereumjs/ethereumjs-abi.git"
ethereumjs-abi: ^0.6.8
ethereumjs-util: ^5.1.1
checksum: 578f5c571c1bb0a86dc1bd4a5b56b8073b37823496d7afa74d772cf91ae6860f91bafcbee931be39a3d13f0c195df9f026a27fce350605ad5d15901a5a4ea94a
languageName: node
Expand Down Expand Up @@ -15140,16 +15140,6 @@ __metadata:
languageName: node
linkType: hard

"ethereumjs-abi@git+https://github.com/ethereumjs/ethereumjs-abi.git":
version: 0.6.8
resolution: "ethereumjs-abi@https://github.com/ethereumjs/ethereumjs-abi.git#commit=ee3994657fa7a427238e6ba92a84d0b529bbcde0"
dependencies:
bn.js: ^4.11.8
ethereumjs-util: ^6.0.0
checksum: ae074be0bb012857ab5d3ae644d1163b908a48dd724b7d2567cfde309dc72222d460438f2411936a70dc949dc604ce1ef7118f7273bd525815579143c907e336
languageName: node
linkType: hard

"ethereumjs-abi@npm:0.6.5":
version: 0.6.5
resolution: "ethereumjs-abi@npm:0.6.5"
Expand Down
Loading