MCPcopy Create free account

hub / github.com/Uniswap/v4-subgraph / functions

Functions60 in github.com/Uniswap/v4-subgraph

↓ 38 callersFunctionassertObjectMatches
(entityType: string, id: string, obj: string[][])
tests/handlers/constants.ts:306
↓ 22 callersFunctionhexToBigInt
(hex: string)
src/utils/index.ts:25
↓ 19 callersFunctionmulShift
(val: BigInt, mulBy: BigInt)
src/utils/liquidityMath/tickMath.ts:8
↓ 16 callersFunctionconvertTokenToDecimal
(tokenAmount: BigInt, exchangeDecimals: BigInt)
src/utils/index.ts:73
↓ 14 callersFunctionfindNativePerToken
( token: Token, wrappedNativeAddress: string, stablecoinAddresses: string[], minimumNativeLocked: BigD
src/utils/pricing.ts:48
↓ 14 callersFunctionsafeDiv
(amount0: BigDecimal, amount1: BigDecimal)
src/utils/index.ts:17
↓ 9 callersFunctioncreateAndStoreTestToken
(tokenFixture: TokenFixture)
tests/handlers/constants.ts:283
↓ 7 callersFunctiongetNativePriceInUSD
(stablecoinWrappedNativePoolId: string, stablecoinIsToken0: boolean)
src/utils/pricing.ts:29
↓ 7 callersFunctionsqrtPriceX96ToTokenPrices
( sqrtPriceX96: BigInt, token0: Token, token1: Token, nativeTokenDetails: NativeTokenDetails, )
src/utils/pricing.ts:9
↓ 6 callersFunctiongetAmount0
( tickLower: i32, tickUpper: i32, currTick: i32, amount: BigInt, currSqrtPriceX96: BigInt, )
src/utils/liquidityMath/liquidityAmounts.ts:8
↓ 6 callersFunctiongetAmount1
( tickLower: i32, tickUpper: i32, currTick: i32, amount: BigInt, currSqrtPriceX96: BigInt, )
src/utils/liquidityMath/liquidityAmounts.ts:32
↓ 6 callersFunctionloadTransaction
(event: ethereum.Event)
src/utils/index.ts:80
↓ 6 callersFunctionupdateTokenDayData
(token: Token, event: ethereum.Event)
src/utils/intervalUpdates.ts:125
↓ 6 callersFunctionupdateTokenHourData
(token: Token, event: ethereum.Event)
src/utils/intervalUpdates.ts:165
↓ 5 callersFunctionfastExponentiation
(value: BigDecimal, power: i32)
src/utils/index.ts:41
↓ 5 callersFunctionhandleModifyLiquidityHelper
( event: ModifyLiquidityEvent, subgraphConfig: SubgraphConfig = getSubgraphConfig(), )
src/mappings/modifyLiquidity.ts:24
↓ 4 callersFunctioncalculateAmountUSD
( amount0: BigDecimal, amount1: BigDecimal, token0DerivedETH: BigDecimal, token1DerivedETH: BigDecimal
src/utils/pricing.ts:143
↓ 4 callersFunctionfetchTokenDecimals
( tokenAddress: Address, tokenOverrides: StaticTokenDefinition[], nativeTokenDetails: NativeTokenDetails
src/utils/token.ts:94
↓ 4 callersFunctionfetchTokenName
( tokenAddress: Address, tokenOverrides: StaticTokenDefinition[], nativeTokenDetails: NativeTokenDetails
src/utils/token.ts:46
↓ 4 callersFunctionfetchTokenSymbol
( tokenAddress: Address, tokenOverrides: StaticTokenDefinition[], nativeTokenDetails: NativeTokenDetails
src/utils/token.ts:11
↓ 4 callersFunctiongetUSDStableStableHookAddresses
()
src/utils/chains.ts:856
↓ 4 callersFunctionupdatePoolDayData
(poolId: string, event: ethereum.Event)
src/utils/intervalUpdates.ts:40
↓ 4 callersFunctionupdatePoolHourData
(poolId: string, event: ethereum.Event)
src/utils/intervalUpdates.ts:82
↓ 3 callersFunctioncreateAndStoreTestPool
(poolFixture: PoolFixture)
tests/handlers/constants.ts:240
↓ 3 callersFunctioneventId
(transactionHash: Bytes, logIndex: BigInt)
src/utils/id.ts:7
↓ 3 callersFunctionexponentToBigDecimal
(decimals: BigInt)
src/utils/index.ts:6
↓ 3 callersFunctionfetchTokenTotalSupply
(tokenAddress: Address)
src/utils/token.ts:81
↓ 3 callersFunctiongetStaticDefinition
( tokenAddress: Address, staticDefinitions: Array<StaticTokenDefinition>, )
src/utils/staticTokenDefinition.ts:11
↓ 3 callersFunctiongetSubgraphConfig
()
src/utils/chains.ts:81
↓ 3 callersFunctionhandleInitializeHelper
( event: InitializeEvent, subgraphConfig: SubgraphConfig = getSubgraphConfig(), )
src/mappings/poolManager.ts:23
↓ 3 callersFunctionhandleTransferHelper
(event: TransferEvent)
src/mappings/transfer.ts:12
↓ 3 callersFunctionisNullEthValue
(value: string)
src/utils/index.ts:70
↓ 3 callersFunctionpositionId
(tokenId: BigInt)
src/utils/id.ts:3
↓ 2 callersFunctioncreateTick
(tickId: string, tickIdx: i32, poolId: string, event: ModifyLiquidity)
src/utils/tick.ts:8
↓ 2 callersFunctiongetTokenFixture
(tokenAddress: string)
tests/handlers/constants.ts:83
↓ 2 callersFunctiongetTrackedAmountUSD
( tokenAmount0: BigDecimal, token0: Token, tokenAmount1: BigDecimal, token1: Token, whitelistTokens:
src/utils/pricing.ts:113
↓ 2 callersFunctionhandleSubscriptionHelper
(event: SubscriptionEvent)
src/mappings/subscribe.ts:12
↓ 2 callersFunctionhandleSwapHelper
(event: SwapEvent, subgraphConfig: SubgraphConfig = getSubgraphConfig())
src/mappings/swap.ts:149
↓ 2 callersFunctionhandleUnsubscriptionHelper
(event: UnsubscriptionEvent)
src/mappings/unsubscribe.ts:12
↓ 2 callersFunctioninvokePoolCreatedWithMockedEthCalls
( mockEvent: ethereum.Event, subgraphConfig: SubgraphConfig, )
tests/handlers/constants.ts:177
↓ 2 callersFunctionupdateUniswapDayData
(event: ethereum.Event, poolId: string)
src/utils/intervalUpdates.ts:20
↓ 1 callersFunctiongenerateSubgraphConfig
(network: string, networkConfig: NetworkConfig)
scripts/generate-subgraph.ts:150
↓ 1 callersFunctiongetPoolFixture
(poolAddress: string)
tests/handlers/constants.ts:154
↓ 1 callersFunctiongetStaticNativePriceUSD
()
src/utils/chains.ts:865
↓ 1 callersFunctionmain
()
scripts/generate-subgraph.ts:177
FunctiongetAmount0Delta
( sqrtRatioAX96: BigInt, sqrtRatioBX96: BigInt, liquidity: BigInt, roundUp: boolean, )
src/utils/liquidityMath/sqrtPriceMath.ts:8
FunctiongetAmount1Delta
( sqrtRatioAX96: BigInt, sqrtRatioBX96: BigInt, liquidity: BigInt, roundUp: boolean, )
src/utils/liquidityMath/sqrtPriceMath.ts:32
FunctiongetSqrtRatioAtTick
* Returns the sqrt ratio as a Q64.96 for the given tick. The sqrt ratio is computed as sqrt(1.0001)^tick * @param tick the tick for which to comput
src/utils/liquidityMath/tickMath.ts:35
FunctionhandleArrakisHookDeployed
(event: LogCreatePrivateHook)
src/mappings/arrakis.ts:4
FunctionhandleHookDeployed
(event: HookDeployedEvent)
src/mappings/euler.ts:9
FunctionhandleHookSwap
(event: HookSwapEvent)
src/mappings/swap.ts:27
FunctionhandleHookUninstalled
(event: HookUninstalledEvent)
src/mappings/euler.ts:36
FunctionhandleInitialize
(event: InitializeEvent)
src/mappings/poolManager.ts:19
FunctionhandleModifyLiquidity
(event: ModifyLiquidityEvent)
src/mappings/modifyLiquidity.ts:20
FunctionhandleSubscription
(event: SubscriptionEvent)
src/mappings/subscribe.ts:8
FunctionhandleSwap
(event: SwapEvent)
src/mappings/swap.ts:23
FunctionhandleTransfer
(event: TransferEvent)
src/mappings/transfer.ts:8
FunctionhandleUnsubscription
(event: UnsubscriptionEvent)
src/mappings/unsubscribe.ts:8
FunctionmulDivRoundingUp
(a: BigInt, b: BigInt, denominator: BigInt)
src/utils/liquidityMath/fullMath.ts:6
FunctionpoolKeyId
(token0: Address, token1: Address, fee: BigInt, tickSpacing: BigInt, hooks: Address)
src/utils/id.ts:11