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