This commit is contained in:
De Facto 2021-02-15 16:57:38 +08:00
parent 3da1ec3af4
commit 437ac51686
2 changed files with 4 additions and 4 deletions

View File

@ -28,8 +28,8 @@ import * as feed from "./feed"
const cli = new Command()
const FLUX_AGGREGATOR_SO = path.resolve(__dirname, "../build/flux_aggregator.so")
const network = (process.env.NETWORK || "local") as NetworkName
const conn = solana.connect(network)
export const network = (process.env.NETWORK || "local") as NetworkName
export const conn = solana.connect(network)
class AppContext {
@ -215,7 +215,7 @@ cli
const { feedAddress, oracleAddress } = opts
const { aggregator } = await AppContext.forAdmin()
await aggregator.removeOracle({
aggregator: new PublicKey(feedAddress),
oracle: new PublicKey(oracleAddress),

View File

@ -4,7 +4,7 @@ import WebSocket from "ws"
import { decodeOracleInfo, sleep } from "./utils"
import FluxAggregator from "./FluxAggregator"
import { conn } from "./context"
import { conn } from "./cli"
const submitInterval = 10 * 1000