remove Avalanche

This commit is contained in:
Danil Kovtonyuk 2022-05-23 20:26:11 +10:00
parent d65b3dfe6c
commit 85ca7000bc
No known key found for this signature in database
GPG Key ID: E72A919BF08C3746
4 changed files with 1 additions and 33 deletions

@ -34,12 +34,6 @@ Current offchain list:
- https://gasstation-mainnet.matic.network/ - https://gasstation-mainnet.matic.network/
### Avalanche Mainnet
Current offchain list:
- https://ztake.org/
## Installation ## Installation
`npm i gas-price-oracle` `npm i gas-price-oracle`

@ -1,6 +1,6 @@
{ {
"name": "gas-price-oracle", "name": "gas-price-oracle",
"version": "0.4.6", "version": "0.4.7",
"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",

@ -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,
};

@ -4,14 +4,12 @@ import mainnetOracles from './mainnet';
import bscOracles from './bsc'; import bscOracles from './bsc';
import xdaiOracles from './xdai'; import xdaiOracles from './xdai';
import polygonOracles from './polygon'; import polygonOracles from './polygon';
import avalancheOracles from './avalanche';
export enum ChainId { export enum ChainId {
MAINNET = 1, MAINNET = 1,
BSC = 56, BSC = 56,
XDAI = 100, XDAI = 100,
POLYGON = 137, POLYGON = 137,
AVALANCHE = 43114,
} }
export const NETWORKS: NetworkConfig = { export const NETWORKS: NetworkConfig = {
@ -19,5 +17,4 @@ export const NETWORKS: NetworkConfig = {
[ChainId.BSC]: bscOracles, [ChainId.BSC]: bscOracles,
[ChainId.XDAI]: xdaiOracles, [ChainId.XDAI]: xdaiOracles,
[ChainId.POLYGON]: polygonOracles, [ChainId.POLYGON]: polygonOracles,
[ChainId.AVALANCHE]: avalancheOracles,
}; };