MCPcopy Create free account

hub / github.com/compound-finance/open-oracle / functions

Functions95 in github.com/compound-finance/open-oracle

↓ 43 callersFunctionaddress
(n)
tests/Helpers.js:18
↓ 40 callersFunctionkeccak256
(str)
tests/Helpers.js:14
↓ 33 callersFunctionaddress
(n)
tests/UniswapConfigTest.js:1
↓ 30 callersFunctionaddress
(n)
tests/NonReporterPricesTest.js:3
↓ 24 callersFunctionpostPrices
(timestamp, prices2dArr, symbols, signer=reporter)
tests/UniswapAnchoredViewTest.js:62
↓ 24 callersFunctionuint
(n)
tests/Helpers.js:10
↓ 20 callersFunctionsendRPC
(web3_, method, params)
tests/Helpers.js:48
↓ 20 callersFunctiontime
()
tests/Helpers.js:38
↓ 16 callersFunctionsign
(messages: string | string[], privateKey: string)
sdk/javascript/src/reporter.ts:81
↓ 16 callersFunctionuint
(n)
tests/NonReporterPricesTest.js:11
↓ 15 callersFunctionfixed
tests/Helpers.js:6
↓ 11 callersFunctiongetCumulativePrice
(pair, timestamp, isReversedMarket = false)
tests/PostRealWorldPricesTest.js:163
↓ 11 callersFunctioninDeltaRange
(delta: number, price: number, prevPrice: number)
poster/src/poster.ts:121
↓ 10 callersFunctioncalculateTWAP
(priceCumulativeOld, priceCumulativeNew, timestampOld, timestampNew)
tests/PostRealWorldPricesTest.js:183
↓ 10 callersFunctionencode
(sig: string, args: any[])
poster/src/util.ts:32
↓ 9 callersFunctionkeccak256
(str)
tests/NonReporterPricesTest.js:7
↓ 5 callersFunctionfilterPayloads
( payloads: OpenPriceFeedPayload[], viewAddress: string, supportedAssets: string[], deltas,
poster/src/poster.ts:65
↓ 5 callersFunctionkeccak256
(str)
tests/UniswapConfigTest.js:5
↓ 5 callersFunctionnumToHex
(num)
tests/Helpers.js:30
↓ 5 callersFunctionread
(address: string, sig: string, args: any[], returns: string, web3: Web3)
poster/src/util.ts:38
↓ 5 callersFunctionsetup
({isMockedView, freeze})
tests/UniswapAnchoredViewTest.js:13
↓ 5 callersFunctionuint
(n)
tests/UniswapConfigTest.js:9
↓ 4 callersFunctionmockMessages
(messages: {[message: string]: DecodedMessage})
poster/tests/poster_test.ts:171
↓ 4 callersFunctionmockPrevPrices
(prevPrices={})
poster/tests/poster_test.ts:158
↓ 4 callersFunctiontransformPayloads
(payloads)
poster/tests/poster_test.ts:179
↓ 3 callersFunctionencode
(kind: string, timestamp: number, pairs: [any, any][] | object)
sdk/javascript/src/reporter.ts:67
↓ 3 callersFunctionencodeFull
(sig: string, args: any[])
poster/src/util.ts:22
↓ 2 callersFunctionbuildTrxData
(feedItems: OpenPriceFeedItem[], functionSig: string)
poster/src/poster.ts:183
↓ 2 callersFunctionbytes
(str)
tests/Helpers.js:22
↓ 2 callersFunctionencodeRotationMessage
(rotationTarget: string)
sdk/javascript/src/reporter.ts:77
↓ 2 callersFunctionendpoint
( privateKey: string, getter: (now: UnixT) => Promise<[UnixT, Pairs]>, filter: (pairs: Pairs, query: Que
sdk/javascript/src/express_endpoint.ts:34
↓ 2 callersFunctionexp
(a, b)
tests/UniswapAnchoredViewTest.js:391
↓ 2 callersFunctionfancyParameterDecoder
(paramType: string)
sdk/javascript/src/reporter.ts:21
↓ 2 callersFunctionfancyParameterEncoder
(paramType: string)
sdk/javascript/src/reporter.ts:49
↓ 2 callersFunctionfetchGasPrice
(fetchFn = fetch)
poster/src/poster.ts:172
↓ 2 callersFunctionfetchPayloads
(sources: string[], fetchFn=fetch)
poster/src/poster.ts:133
↓ 2 callersFunctiongetKeyAndValueType
(kind: string)
sdk/javascript/src/reporter.ts:12
↓ 2 callersFunctionisReversedMarket
(name)
tests/PostRealWorldPricesTest.js:138
↓ 2 callersFunctionmockFetch
(responses)
poster/tests/poster_test.ts:48
↓ 2 callersFunctionpostWithRetries
(transaction: TransactionConfig, signerKey: string, web3: Web3, retries: number = RETRIES, attempt: number = 0
poster/src/post_with_retries.ts:35
↓ 2 callersFunctionsignAndSend
(transaction: TransactionConfig, signerKey: string, web3: Web3)
poster/src/post_with_retries.ts:72
↓ 2 callersFunctionupper
(str: string)
sdk/javascript/src/express_endpoint.ts:14
↓ 1 callersFunctionbuildTrxData
(reserve0, reserve1, blockTimestampLast, price0, price1, functionSig)
poster/src/mainnet_uniswap_mocker.ts:37
↓ 1 callersFunctioncurrentBlockTimestamp
()
tests/PostRealWorldPricesTest.js:147
↓ 1 callersFunctioncurrentCumulativePrice
(pair, isReversedMarket = false)
tests/PostRealWorldPricesTest.js:153
↓ 1 callersFunctioncurrentCumulativePriceDelta
(pair, timeElapsed, isReversedMarket = false)
tests/PostRealWorldPricesTest.js:158
↓ 1 callersFunctiondecode
(price)
tests/PostRealWorldPricesTest.js:179
↓ 1 callersFunctiondecode
(kind: string, messages: string[])
sdk/javascript/src/reporter.ts:37
↓ 1 callersFunctiondecodeMessage
(message: string, web3: Web3)
poster/src/util.ts:5
↓ 1 callersFunctionensureHex
(val: string, type: string)
poster/src/post_with_retries.ts:5
↓ 1 callersFunctionfindTypes
(functionSig: string)
poster/src/util.ts:78
↓ 1 callersFunctionflatStringList
(param: string | string[])
sdk/javascript/src/express_endpoint.ts:8
↓ 1 callersFunctiongetCumulativePrices
(pair: string)
poster/src/mainnet_uniswap_mocker.ts:18
↓ 1 callersFunctiongetDataAddress
(viewAddress: string, web3: Web3)
poster/src/prev_price.ts:14
↓ 1 callersFunctiongetPreviousPrice
(sourceAddress: string, asset: string, dataAddress: string, web3: Web3)
poster/src/prev_price.ts:4
↓ 1 callersFunctiongetReserves
(pair: string)
poster/src/mainnet_uniswap_mocker.ts:8
↓ 1 callersFunctiongetSourceAddress
(dataAddress: string, message: string, signature: string, web3 : Web3)
poster/src/prev_price.ts:24
↓ 1 callersFunctionmain
( sources: string[], senderKey: string, viewAddress: string, functionSig: string, gas: num
poster/src/poster.ts:18
↓ 1 callersFunctionmockUniswapTokenPair
(symbol: string, senderKey: string, pairs, gas: number, gasPrice: number, web3: Web3)
poster/src/mainnet_uniswap_mocker.ts:44
↓ 1 callersFunctionmockUniswapTokenPairs
(assets: string[], senderKey: string, pairs, gas: number, gasPrice: number, web3: Web3)
poster/src/mainnet_uniswap_mocker.ts:70
↓ 1 callersFunctionparse
(json)
poster/src/poster.ts:134
↓ 1 callersFunctionparseSignature
(sig)
poster/src/util.ts:81
↓ 1 callersFunctionreadCoinbasePayload
(config: CoinbaseConfig, fetchFn)
poster/src/sources/coinbase.ts:11
↓ 1 callersFunctionreadMany
(address: string, sig: string, args: any[], returns: string[], web3: Web3)
poster/src/util.ts:57
↓ 1 callersFunctionrun
()
poster/src/index.ts:6
↓ 1 callersMethodsend
(payload, callback)
tests/DockerProvider.js:16
↓ 1 callersFunctionsetup
()
tests/PostRealWorldPricesTest.js:134
↓ 1 callersFunctionsetupTokenPairs
()
tests/PostRealWorldPricesTest.js:10
↓ 1 callersFunctionsetupUniswapAnchoredView
(pairs)
tests/PostRealWorldPricesTest.js:107
↓ 1 callersFunctionsignWith
(messages: string | string[], signer: (string) => Promise<{r: string, s: string, v: string}>)
sdk/javascript/src/reporter.ts:92
↓ 1 callersFunctionsigner
(hash)
sdk/javascript/tests/reporter_test.ts:45
↓ 1 callersFunctionstart
( port: number, privateKey: string, script: string, filter: string, kind: string, path: string )
sdk/javascript/src/cli.ts:31
↓ 1 callersFunctionzip
(arr1: T[], arr2: U[])
poster/src/util.ts:114
FunctionactualParamDec
(x)
sdk/javascript/src/reporter.ts:22
FunctionactualParamEnc
(x)
sdk/javascript/src/reporter.ts:50
FunctionaddrEquals
(actual, expected)
tests/Matchers.js:4
FunctionallSuccesses
(promises: Promise<T>[])
poster/src/util.ts:130
FunctionasyncFilter
(arr: T[], f: ((T) => Promise<boolean>))
poster/src/util.ts:118
Methodconstructor
(endpoint, service)
tests/DockerProvider.js:11
FunctioncurrentBlockTimestamp
(web3_)
tests/Helpers.js:42
Methoddisconnect
()
tests/DockerProvider.js:37
FunctionfetchEnv
(name: string)
sdk/javascript/src/cli.ts:23
FunctionfetchPrices
()
sdk/javascript/tests/express_endpoint_test.ts:8
Functionfraction
(numerator, denominator)
tests/PostRealWorldPricesTest.js:142
FunctiongreaterThan
(actual, expected)
tests/Matchers.js:20
FunctionisTimeout
(e)
poster/src/post_with_retries.ts:22
FunctionisUnderpriced
(e)
poster/src/post_with_retries.ts:18
FunctionloadKey
(key: string | undefined)
sdk/javascript/src/key.ts:4
FunctionmaybeIsOutOfGas
(e)
poster/src/post_with_retries.ts:26
FunctionmockPreviousPrice
(_sourceAddress, asset, _dataAddress, _web3)
poster/tests/poster_test.ts:159
FunctionnumEquals
(actual, expected)
tests/Matchers.js:11
FunctionnumToBigNum
(num)
tests/Helpers.js:34
FunctiontoBeWithinRange
(received, floor, ceiling)
tests/Matchers.js:38
FunctiontoRevert
(actual, msg='revert')
tests/Matchers.js:29
Functionuint256
(int)
tests/Helpers.js:26