Skip to content

Commit

Permalink
Remove Eth Gas station witness
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelBCarter committed Jul 27, 2023
1 parent 33d0f29 commit 0cfd621
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 38 deletions.
1 change: 0 additions & 1 deletion packages/automation-witness-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
"@xyo-network/etherchain-ethereum-gas-v2-plugin": "workspace:~",
"@xyo-network/ethers-ethereum-gas-plugin": "workspace:~",
"@xyo-network/etherscan-ethereum-gas-plugin": "workspace:~",
"@xyo-network/ethgasstation-ethereum-gas-plugin": "workspace:~",
"@xyo-network/gas-price-payload-plugin": "workspace:~",
"@xyo-network/gas-price-plugin": "workspace:~",
"@xyo-network/http-bridge": "workspace:~",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { EthereumGasBlocknativeWitness, EthereumGasBlocknativeWitnessConfigSchem
import { EtherchainEthereumGasWitnessV2, EthereumGasEtherchainV2WitnessConfigSchema } from '@xyo-network/etherchain-ethereum-gas-v2-plugin'
import { EthereumGasEthersWitness, EthereumGasEthersWitnessConfigSchema } from '@xyo-network/ethers-ethereum-gas-plugin'
import { EthereumGasEtherscanWitness, EthereumGasEtherscanWitnessConfigSchema } from '@xyo-network/etherscan-ethereum-gas-plugin'
import { EthereumGasEthgasstationWitness, EthereumGasEthgasstationWitnessConfigSchema } from '@xyo-network/ethgasstation-ethereum-gas-plugin'
import { WitnessInstance } from '@xyo-network/witness'

import { getAccount, WalletPaths } from '../Account'
Expand Down Expand Up @@ -31,12 +30,6 @@ export const getEthereumGasWitness: WitnessProvider<Provider> = async (provider
},
provider,
}),
await EthereumGasEthgasstationWitness.create({
account: await getAccount(WalletPaths.EthereumGas.Witness.Ethgasstation),
config: {
schema: EthereumGasEthgasstationWitnessConfigSchema,
},
}),
]
if (canUseEtherscanProvider()) {
const apiKey = getEtherscanProviderConfig()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { EthereumGasBlocknativeWitness, EthereumGasBlocknativeWitnessConfigSchem
import { EtherchainEthereumGasWitnessV2, EthereumGasEtherchainV2WitnessConfigSchema } from '@xyo-network/etherchain-gas-ethereum-blockchain-plugins'
import { EthereumGasEthersWitness, EthereumGasEthersWitnessConfigSchema } from '@xyo-network/ethers-ethereum-gas-plugin'
import { EthereumGasEtherscanWitness, EthereumGasEtherscanWitnessConfigSchema } from '@xyo-network/etherscan-ethereum-gas-plugin'
import { EthereumGasEthgasstationWitness, EthereumGasEthgasstationWitnessConfigSchema } from '@xyo-network/ethgasstation-ethereum-gas-plugin'
import { EthereumGasPayload, EthereumGasSchema } from '@xyo-network/gas-price-payload-plugin'
import { Payload } from '@xyo-network/payload-model'

Expand Down Expand Up @@ -81,17 +80,8 @@ describe('Diviner', () => {
})
).observe()
)?.[0]
const ethgasstationGas = (
await (
await EthereumGasEthgasstationWitness.create({
account: await HDWallet.random(),
config: {
schema: EthereumGasEthgasstationWitnessConfigSchema,
},
})
).observe()
)?.[0]
const observations: Payload[] = [blocknativeGas, etherchainGasV2, etherscanGas, ethersGas, ethgasstationGas]

const observations: Payload[] = [blocknativeGas, etherchainGasV2, etherscanGas, ethersGas]

const diviner = await EthereumGasDiviner.create({ account: await HDWallet.random() })

Expand Down
18 changes: 0 additions & 18 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5733,7 +5733,6 @@ __metadata:
"@xyo-network/etherchain-ethereum-gas-v2-plugin": "workspace:~"
"@xyo-network/ethers-ethereum-gas-plugin": "workspace:~"
"@xyo-network/etherscan-ethereum-gas-plugin": "workspace:~"
"@xyo-network/ethgasstation-ethereum-gas-plugin": "workspace:~"
"@xyo-network/gas-price-payload-plugin": "workspace:~"
"@xyo-network/gas-price-plugin": "workspace:~"
"@xyo-network/http-bridge": "workspace:~"
Expand Down Expand Up @@ -7335,23 +7334,6 @@ __metadata:
languageName: unknown
linkType: soft

"@xyo-network/ethgasstation-ethereum-gas-plugin@workspace:packages/plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/ethgasstation, @xyo-network/ethgasstation-ethereum-gas-plugin@workspace:~":
version: 0.0.0-use.local
resolution: "@xyo-network/ethgasstation-ethereum-gas-plugin@workspace:packages/plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/ethgasstation"
dependencies:
"@xylabs/ts-scripts-yarn3": ^2.19.0
"@xylabs/tsconfig": ^2.19.0
"@xyo-network/axios": "workspace:~"
"@xyo-network/ethgasstation-ethereum-gas-payload-plugin": "workspace:~"
"@xyo-network/module": "workspace:~"
"@xyo-network/payload-builder": "workspace:~"
"@xyo-network/payload-model": "workspace:~"
"@xyo-network/payloadset-plugin": "workspace:~"
"@xyo-network/witness": "workspace:~"
typescript: ^5.1.6
languageName: unknown
linkType: soft

"@xyo-network/express-node-dependencies@workspace:packages/node/packages/express/packages/dependencies, @xyo-network/express-node-dependencies@workspace:~":
version: 0.0.0-use.local
resolution: "@xyo-network/express-node-dependencies@workspace:packages/node/packages/express/packages/dependencies"
Expand Down

0 comments on commit 0cfd621

Please sign in to comment.