fix: mainnet oracles
This commit is contained in:
parent
4373641a30
commit
be905f2b71
@ -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,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user