Skip to content

Commit

Permalink
feat reference results(report): metamask_suggestedGasFees.json (#30)
Browse files Browse the repository at this point in the history
* feat reference results(report): metamask_suggestedGasFees.json

* feat(schema): metamask

source: <"https://gas.api.infura.io/networks/1/suggestedGasFees">
  • Loading branch information
sambacha authored Nov 24, 2024
1 parent 297e9aa commit ab900a6
Show file tree
Hide file tree
Showing 2 changed files with 137 additions and 0 deletions.
1 change: 1 addition & 0 deletions ref/metamask_suggestedGasFees.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"low":{"suggestedMaxPriorityFeePerGas":"0.008836","suggestedMaxFeePerGas":"7.508647438","minWaitTimeEstimate":15000,"maxWaitTimeEstimate":60000},"medium":{"suggestedMaxPriorityFeePerGas":"0.97","suggestedMaxFeePerGas":"11.694730357","minWaitTimeEstimate":15000,"maxWaitTimeEstimate":45000},"high":{"suggestedMaxPriorityFeePerGas":"2","suggestedMaxFeePerGas":"19.249566308","minWaitTimeEstimate":15000,"maxWaitTimeEstimate":30000},"estimatedBaseFee":"7.499811438","networkCongestion":0.0305,"latestPriorityFeeRange":["0.0094","5.249868006"],"historicalPriorityFeeRange":["0.000824616","269.34304631"],"historicalBaseFeeRange":["7.061724017","10.741515604"],"priorityFeeTrend":"up","baseFeeTrend":"up","version":"0.0.1"}
136 changes: 136 additions & 0 deletions src/schema/metamask/suggested_gas_fees.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"low": {
"type": "object",
"properties": {
"suggestedMaxPriorityFeePerGas": {
"type": "string"
},
"suggestedMaxFeePerGas": {
"type": "string"
},
"minWaitTimeEstimate": {
"type": "integer"
},
"maxWaitTimeEstimate": {
"type": "integer"
}
},
"required": [
"suggestedMaxPriorityFeePerGas",
"suggestedMaxFeePerGas",
"minWaitTimeEstimate",
"maxWaitTimeEstimate"
]
},
"medium": {
"type": "object",
"properties": {
"suggestedMaxPriorityFeePerGas": {
"type": "string"
},
"suggestedMaxFeePerGas": {
"type": "string"
},
"minWaitTimeEstimate": {
"type": "integer"
},
"maxWaitTimeEstimate": {
"type": "integer"
}
},
"required": [
"suggestedMaxPriorityFeePerGas",
"suggestedMaxFeePerGas",
"minWaitTimeEstimate",
"maxWaitTimeEstimate"
]
},
"high": {
"type": "object",
"properties": {
"suggestedMaxPriorityFeePerGas": {
"type": "string"
},
"suggestedMaxFeePerGas": {
"type": "string"
},
"minWaitTimeEstimate": {
"type": "integer"
},
"maxWaitTimeEstimate": {
"type": "integer"
}
},
"required": [
"suggestedMaxPriorityFeePerGas",
"suggestedMaxFeePerGas",
"minWaitTimeEstimate",
"maxWaitTimeEstimate"
]
},
"estimatedBaseFee": {
"type": "string"
},
"networkCongestion": {
"type": "number"
},
"latestPriorityFeeRange": {
"type": "array",
"items": [
{
"type": "string"
},
{
"type": "string"
}
]
},
"historicalPriorityFeeRange": {
"type": "array",
"items": [
{
"type": "string"
},
{
"type": "string"
}
]
},
"historicalBaseFeeRange": {
"type": "array",
"items": [
{
"type": "string"
},
{
"type": "string"
}
]
},
"priorityFeeTrend": {
"type": "string"
},
"baseFeeTrend": {
"type": "string"
},
"version": {
"type": "string"
}
},
"required": [
"low",
"medium",
"high",
"estimatedBaseFee",
"networkCongestion",
"latestPriorityFeeRange",
"historicalPriorityFeeRange",
"historicalBaseFeeRange",
"priorityFeeTrend",
"baseFeeTrend",
"version"
]
}

0 comments on commit ab900a6

Please sign in to comment.