fix: mainnet oracles

This commit is contained in:
Danil Kovtonyuk 2022-03-18 05:19:29 +10:00
parent 4373641a30
commit be905f2b71
No known key found for this signature in database
GPG Key ID: E72A919BF08C3746
2 changed files with 24 additions and 24 deletions

@ -1,6 +1,6 @@
{ {
"name": "gas-price-oracle", "name": "gas-price-oracle",
"version": "0.4.4", "version": "0.4.5",
"description": "Gas Price Oracle library for Ethereum dApps.", "description": "Gas Price Oracle library for Ethereum dApps.",
"main": "lib/index.js", "main": "lib/index.js",
"homepage": "https://github.com/peppersec/gas-price-oracle", "homepage": "https://github.com/peppersec/gas-price-oracle",

@ -18,31 +18,31 @@ const etherchain: OffChainOracle = {
fastPropertyName: 'fast', fastPropertyName: 'fast',
standardPropertyName: 'standard', standardPropertyName: 'standard',
lowPropertyName: 'slow', lowPropertyName: 'slow',
denominator: 1, denominator: 1e9,
additionalDataProperty: 'data', additionalDataProperty: 'data',
}; };
const blockscout: OffChainOracle = { // const blockscout: OffChainOracle = {
name: 'blockscout', // name: 'blockscout',
url: 'https://blockscout.com/eth/mainnet/api/v1/gas-price-oracle', // url: 'https://blockscout.com/eth/mainnet/api/v1/gas-price-oracle',
instantPropertyName: 'fast', // instantPropertyName: 'fast',
fastPropertyName: 'average', // fastPropertyName: 'average',
standardPropertyName: 'slow', // standardPropertyName: 'slow',
lowPropertyName: 'slow', // lowPropertyName: 'slow',
denominator: 1, // denominator: 1,
additionalDataProperty: null, // additionalDataProperty: null,
}; // };
const anyblock: OffChainOracle = { // const anyblock: OffChainOracle = {
name: 'anyblock', // name: 'anyblock',
url: 'https://api.anyblock.tools/ethereum/latest-minimum-gasprice', // url: 'https://api.anyblock.tools/ethereum/latest-minimum-gasprice',
instantPropertyName: 'instant', // instantPropertyName: 'instant',
fastPropertyName: 'fast', // fastPropertyName: 'fast',
standardPropertyName: 'standard', // standardPropertyName: 'standard',
lowPropertyName: 'slow', // lowPropertyName: 'slow',
denominator: 1, // denominator: 1,
additionalDataProperty: null, // additionalDataProperty: null,
}; // };
const chainlink: OnChainOracle = { const chainlink: OnChainOracle = {
name: 'chainlink', name: 'chainlink',
@ -53,8 +53,8 @@ const chainlink: OnChainOracle = {
export const offChainOracles: OffChainOracles = { export const offChainOracles: OffChainOracles = {
ethgasstation, ethgasstation,
anyblock, // anyblock,
blockscout, // blockscout,
etherchain, etherchain,
}; };