UNPKG

@flarenetwork/ftso_price_provider_kick_off_package

Version:

Kick of package for FTSO price providers. Includes user facing interfaces and mock contracts to test price provider pipeline.

19 lines (15 loc) 759 B
/** * Returns truncated file path. * @param file module filename * @returns file path from `test/` on, separated by `'/'` */ export function getTestFile(myFile: string) { return myFile.slice(myFile.replace(/\\/g, '/').indexOf("test/")); }; export const GOVERNANCE_GENESIS_ADDRESS = "0xfffEc6C83c8BF5c3F4AE0cCF8c45CE20E4560BD7"; export const STATE_CONNECTOR_ADDRESS = "0x1000000000000000000000000000000000000001"; export const FLARE_DAEMON_ADDRESS = "0x1000000000000000000000000000000000000002"; export const PRICE_SUBMITTER_ADDRESS = "0x1000000000000000000000000000000000000003"; export const MIN_RANDOM = web3.utils.toBN(2).pow(web3.utils.toBN(128)); export const defaultPriceEpochCyclicBufferSize = 39; export const ftsoRandomTestRuns = undefined;