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",
"version": "0.4.4",
"version": "0.4.5",
"description": "Gas Price Oracle library for Ethereum dApps.",
"main": "lib/index.js",
"homepage": "https://github.com/peppersec/gas-price-oracle",

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