Skip to content

Commit

Permalink
feat(schema): metamask
Browse files Browse the repository at this point in the history
  • Loading branch information
sambacha authored Nov 24, 2024
1 parent 03ef7bd commit cdf54e7
Showing 1 changed file with 136 additions and 0 deletions.
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 cdf54e7

Please sign in to comment.