diff --git a/README.md b/README.md index d3de0a0..bf86878 100644 --- a/README.md +++ b/README.md @@ -34,12 +34,6 @@ Current offchain list: - https://gasstation-mainnet.matic.network/ -### Avalanche Mainnet - -Current offchain list: - -- https://ztake.org/ - ## Installation `npm i gas-price-oracle` diff --git a/package.json b/package.json index 0a0d5e6..47c4a7e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gas-price-oracle", - "version": "0.4.6", + "version": "0.4.7", "description": "Gas Price Oracle library for Ethereum dApps.", "main": "lib/index.js", "homepage": "https://github.com/peppersec/gas-price-oracle", diff --git a/src/config/avalanche.ts b/src/config/avalanche.ts deleted file mode 100644 index f59029a..0000000 --- a/src/config/avalanche.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { OffChainOracle, OffChainOracles, OnChainOracles } from '../types'; - -const ztake: OffChainOracle = { - name: 'ztake', - url: 'https://blockchains.ztake.org/api/h6WnmwNqw9CAJHzej5W4gD6LZ9n7v8EK/gasprice/avax/', - instantPropertyName: 'percentile_90', - fastPropertyName: 'percentile_80', - standardPropertyName: 'percentile_60', - lowPropertyName: 'percentile_30', - denominator: 1, - additionalDataProperty: null, -}; - -export const offChainOracles: OffChainOracles = { - ztake, -}; - -export const onChainOracles: OnChainOracles = {}; - -export default { - offChainOracles, - onChainOracles, -}; diff --git a/src/config/index.ts b/src/config/index.ts index e410c50..d15bedb 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -4,14 +4,12 @@ import mainnetOracles from './mainnet'; import bscOracles from './bsc'; import xdaiOracles from './xdai'; import polygonOracles from './polygon'; -import avalancheOracles from './avalanche'; export enum ChainId { MAINNET = 1, BSC = 56, XDAI = 100, POLYGON = 137, - AVALANCHE = 43114, } export const NETWORKS: NetworkConfig = { @@ -19,5 +17,4 @@ export const NETWORKS: NetworkConfig = { [ChainId.BSC]: bscOracles, [ChainId.XDAI]: xdaiOracles, [ChainId.POLYGON]: polygonOracles, - [ChainId.AVALANCHE]: avalancheOracles, };