MCPcopy Create free account

hub / github.com/across-protocol/relayer / functions

Functions2,347 in github.com/across-protocol/relayer

↓ 4 callersFunctioncctpV1L1toSvmL2Finalizer
( logger: winston.Logger, _signer: Signer, hubPoolClient: HubPoolClient, l2SpokePoolClient: SpokePoolC
src/finalizer/utils/cctp/l1ToSvmL2.ts:30
↓ 4 callersFunctionchainIsBlast
(chainId: OVM_CHAIN_ID)
src/finalizer/utils/opStack.ts:150
↓ 4 callersMethodcheckUnknownRootBundleCallers
()
src/monitor/Monitor.ts:178
↓ 4 callersFunctionconvertTokenListFromWei
(chainId: number, tokenAddresses: Address[], weiVals: string[])
src/dataworker/PoolRebalanceUtils.ts:75
↓ 4 callersFunctioncreateSlowFillLeaf
* @notice Returns dummy slow fill leaf that you can insert into a BundleSlowFills object. * @dev The leaf returned will not actually be executable
test/DataworkerUtils.ts:95
↓ 4 callersMethoddel
(key: string)
src/cache/Redis.ts:13
↓ 4 callersFunctiondeleteIgnoredKeys
* Deletes keys from an object and returns new copy of object without ignored keys * @param ignoredKeys * @param obj * @returns Objects with ignored
src/utils/ObjectUtils.ts:36
↓ 4 callersFunctiondepositMessageV3
()
test/DepositAddressHandler.publish.ts:64
↓ 4 callersFunctiondisconnectRedisClient
(client: RedisClient, logger?: winston.Logger)
src/utils/Redis.ts:115
↓ 4 callersFunctionencodeFunctionData
(_method: string, args: ReadonlyArray<unknown> = [])
test/MultiCallerClient.ts:68
↓ 4 callersMethodestimateFillCost
( deposit: Deposit )
src/clients/ProfitClient.ts:352
↓ 4 callersFunctionextractGaslessDepositFields
(depositMessage: AnyGaslessDepositMessage)
src/utils/GaslessUtils.ts:41
↓ 4 callersFunctionfindExpectedEdge
( edgeCandidates: GraphEdgeCandidate[], predicate: (candidate: GraphEdgeCandidate) => boolean, descripti
test/JussiGraph.buildGraph.ts:66
↓ 4 callersFunctionfireAndForget
(task: () => Promise<unknown>)
src/utils/Tasks.ts:6
↓ 4 callersMethodformatDepositForLog
(deposit: Deposit)
src/clients/ProfitClient.ts:1031
↓ 4 callersFunctionformatOtherKnownBalances
( chainId: number, signer: Signer, excludedSymbol: string, accountCoins: Coin[] )
scripts/swapOnBinance.ts:498
↓ 4 callersFunctiongenerateDeposit
( inputTokenSymbol: "USDC" | "WETH", inputChainId: number, inputAmount = toWei(1) )
test/BundleDataApproxClient.ts:179
↓ 4 callersFunctiongenerateSlowFillRequestFromDeposit
( deposit: interfaces.DepositWithBlock, fillEventOverride?: Partial<interfaces.FillWithBlock> )
test/Dataworker.loadData.unexecutableSlowFill.ts:116
↓ 4 callersFunctiongenerateSlowFillRequestFromDeposit
( deposit: interfaces.DepositWithBlock, fillEventOverride?: Partial<interfaces.FillWithBlock>
test/Dataworker.loadData.prefill.ts:234
↓ 4 callersFunctiongenerateV3FillFromDeposit
( deposit: interfaces.DepositWithBlock, fillEventOverride?: Partial<interfaces.FillWithBlock>, _re
test/Dataworker.loadData.unexecutableSlowFill.ts:81
↓ 4 callersFunctiongetAllUnfilledDeposits
( spokePoolClients: SpokePoolClientsByChain, hubPoolClient: HubPoolClient )
src/utils/FillUtils.ts:99
↓ 4 callersMethodgetAtomicDepositor
()
src/adapter/bridges/ZKStackWethBridge.ts:202
↓ 4 callersMethodgetBinanceClient
()
src/adapter/bridges/BinanceCEXBridge.ts:202
↓ 4 callersFunctiongetBinanceDeposits
( binanceApi: BinanceApi, startTime: number, maxRetries = 3, delayS = 2 )
src/utils/BinanceUtils.ts:396
↓ 4 callersFunctiongetBinanceTransactionTypeKey
(chainId: number, uniqueIdentifier: string)
src/utils/BinanceUtils.ts:293
↓ 4 callersFunctiongetCloidForAccount
(account: string)
src/rebalancer/utils/utils.ts:73
↓ 4 callersMethodgetDepositKey
(token: string, originChainId: number, depositId: string)
test/GaslessRelayer.ts:106
↓ 4 callersFunctiongetDisabledBlockRanges
()
test/utils/utils.ts:473
↓ 4 callersMethodgetExecuteContract
(address: string, originChainId: number, useDispatcher: boolean)
src/deposit-address/DepositAddressHandler.ts:1404
↓ 4 callersFunctiongetFillAmount
(relayData: RelayData, tokenPrice: BigNumber)
test/Relayer.BasicFill.ts:253
↓ 4 callersFunctiongetFillCommission
( binanceApi: BinanceTradeReader, spotMarketMeta: FillCommissionMarketMeta, orderId: number )
src/utils/BinanceUtils.ts:449
↓ 4 callersFunctiongetGckmsConfig
(keys: string[])
src/utils/GckmsUtils.ts:29
↓ 4 callersFunctiongetGcpPubSubPublisher
(logger?: winston.Logger, projectId?: string)
src/messaging/gcp/PubSub.ts:56
↓ 4 callersMethodgetL2PendingWithdrawalAmount
()
test/generic-adapters/SplitBridgeTracking.ts:177
↓ 4 callersMethodgetLatestPrice
( sourceBinanceCoin: string, destinationBinanceCoin: string, sourceTokenDecimals: number, sour
scripts/swapOnBinance.ts:1381
↓ 4 callersFunctiongetMainnetUsdgAddress
()
src/utils/PaxosTransitUtils.ts:22
↓ 4 callersMethodgetMulticaller
(chainId: number)
src/relayer/Relayer.ts:1658
↓ 4 callersFunctiongetNewBalanceAllocator
()
test/Dataworker.executePoolRebalanceUtils.ts:47
↓ 4 callersFunctiongetNewBalanceAllocator
()
test/Dataworker.executeRelayerRefunds.ts:27
↓ 4 callersFunctiongetOutstandingTransfersForTrackedBridge
( adapterName: PendingBridgeAdapterName, tokenSymbol: "USDT" | "USDC", initiationEvents: ReturnType<type
test/generic-adapters/SplitBridgeTracking.ts:71
↓ 4 callersMethodgetQuote
( source: ResolvedBinanceAsset, destination: ResolvedBinanceAsset, sourceAmount: BigNumber )
scripts/swapOnBinance.ts:1481
↓ 4 callersMethodgetRemoteTokensForL1Token
* From an L1Token and remote chain ID, resolve all supported corresponding tokens. * This should include at least the relevant repayment token on t
src/clients/InventoryClient.ts:428
↓ 4 callersMethodgetRpcUrlForChain
(chainId: number)
src/cctp-finalizer/services/cctpService.ts:326
↓ 4 callersFunctiongetSpokePool
(chainId: number, address?: string)
src/utils/ContractUtils.ts:64
↓ 4 callersFunctiongetTarget
(targetAddress: string)
src/utils/TransactionUtils.ts:251
↓ 4 callersFunctiongetUnfilledDeposits
( destinationSpokePoolClient: SpokePoolClient, originSpokePoolClients: SpokePoolClientsByChain, hubPoolC
src/utils/FillUtils.ts:38
↓ 4 callersMethodgetUpcomingRefunds
(chainId: number, l1Token: EvmAddress, relayer?: EvmAddress)
src/clients/InventoryClient.ts:489
↓ 4 callersMethodgetWithRetry
(endpoint: string, nRetries = this.nRetries)
src/utils/PaxosTransitUtils.ts:331
↓ 4 callersMethodgetWithdrawalLimits
()
src/clients/BinanceClient.ts:47
↓ 4 callersFunctiongetWrappedNativeTokenAddress
(chainId: number)
src/utils/TokenUtils.ts:156
↓ 4 callersFunctionincrementCounterThrowError
(errorIndex: number, returnValue = expectedReturnValue)
test/RetryUtils.ts:14
↓ 4 callersMethodinit
(opts: IndexerOpts)
src/clients/SpokePoolClient.ts:58
↓ 4 callersMethodinitToken
(erc20: Contract)
test/mocks/MockProfitClient.ts:78
↓ 4 callersMethodinitiateWithdrawV3
* v3 refund-withdraw path entry point. Gated behind config.enableV3Withdrawals and only reached * for `mis_route` classifications (see processExecu
src/deposit-address/DepositAddressHandler.ts:1157
↓ 4 callersFunctionisDepositAddressMessageV3
(message: AnyDepositAddressMessage)
src/interfaces/DepositAddress.ts:134
↓ 4 callersFunctionisErc2612PermitNonceConsumed
(params: { spokePoolPeriphery: Contract; owner: string; signedNonce: string; })
src/utils/GaslessUtils.ts:402
↓ 4 callersMethodisFillProfitable
( deposit: Deposit, lpFeePct: BigNumber, repaymentChainId: number )
src/clients/ProfitClient.ts:720
↓ 4 callersFunctionisJsonAbi
(value: unknown[])
src/common/ContractAddresses.ts:1014
↓ 4 callersFunctionisKeyOf
( input: V, obj: Record<T, unknown> )
src/utils/TypeGuards.ts:50
↓ 4 callersMethodisSupportedL2Bridge
(l1Token: EvmAddress)
src/adapter/BaseChainAdapter.ts:153
↓ 4 callersMethodisSupportedToken
* Determine whether this adapter supports an l1 token address * @param l1Token an address * @returns True if l1Token is supported
src/adapter/BaseChainAdapter.ts:147
↓ 4 callersMethodisSwapSupported
(inputToken: Address, outputToken: Address, inputChainId: number, outputChainId: number)
src/clients/InventoryClient.ts:211
↓ 4 callersMethodl2TokenHasPoolRebalanceRoute
(l2Token: Address, l2ChainId: number, hubPoolBlock: number)
test/mocks/MockHubPoolClient.ts:81
↓ 4 callersFunctionmakeAdapter
()
test/BinanceAdapter.quotes.ts:118
↓ 4 callersFunctionmakeDepositMessage
(overrides: Record<string, unknown> = {})
test/GaslessUtils.ts:20
↓ 4 callersFunctionmakeErc20Coin
( symbol: string, networks: Array<{ chainId: number; contractAddress?: string; }> )
test/swapOnBinance.ts:648
↓ 4 callersFunctionmakeEthersError
(code: string, extra: Record<string, unknown> = {})
test/TransactionClient.ts:156
↓ 4 callersFunctionmakeFakeBinanceClient
(opts: { isOperational?: boolean; canWithdraw?: boolean } = {})
test/InventoryClient.RefundChain.ts:66
↓ 4 callersFunctionmakeOrderBook
({ asks, bids, }: { asks: Array<{ price: string; quantity: string }>; bids: Array<{ price: string; qua
test/BinanceAdapter.quotes.ts:127
↓ 4 callersFunctionmakeOrderBook
({ asks, bids, }: { asks: Array<{ price: string; quantity: string }>; bids: Array<{ price: string; qua
test/swapOnBinance.ts:683
↓ 4 callersFunctionmakeSpokePoolPeripheryContract
()
test/GaslessUtils.ts:97
↓ 4 callersFunctionmakeSpotMeta
(isBuy: boolean, minimumOrderSize: number)
test/BinanceAdapter.conversions.ts:235
↓ 4 callersMethodmapToken
(symbol: string, address: string)
test/mocks/MockProfitClient.ts:84
↓ 4 callersMethodmapTokenInfo
(address: Address, symbol: string, decimals?: number)
test/mocks/MockHubPoolClient.ts:92
↓ 4 callersFunctionnormalizeSignatureBytes
(signature: string)
src/utils/GaslessUtils.ts:307
↓ 4 callersMethodonEvent
( address: string, event: string | AbiEvent, handler: (log: Log) => void, args?: Record<string
src/clients/EventListener.ts:98
↓ 4 callersFunctionparseAddressesOptional
(addressJson?: string)
src/monitor/MonitorConfig.ts:234
↓ 4 callersFunctionparseCoinBalance
(balance: string, decimals: number)
scripts/sweepBinanceBalance.ts:348
↓ 4 callersFunctionprepareGraphTopology
(params: { relayerConfig: RelayerConfig; rebalancerConfig: RebalancerConfig; })
src/jussi/prepareGraphTopology.ts:10
↓ 4 callersFunctionrateToDecimal
(rate: JussiRateDefinition)
src/jussi/economics/rates.ts:332
↓ 4 callersMethodrelayFillStatus
(relayData: interfaces.RelayData, blockTag?: number)
test/mocks/MockSpokePoolClient.ts:42
↓ 4 callersFunctionresolveOptionalTranslatedTokenAddress
( l1Token: EvmAddress, chainId: number, hubPoolChainId = DEFAULT_HUB_POOL_CHAIN_ID )
src/jussi/topology/edges.ts:100
↓ 4 callersFunctionresolveRateLimitBucketId
(family: EdgeFamily)
src/jussi/topology/edges.ts:356
↓ 4 callersFunctionretrieveGckmsKeys
(gckmsConfigs: KeyConfig[])
src/utils/GckmsUtils.ts:52
↓ 4 callersFunctionroundAmountToSend
(amount: BigNumber, tokenDecimals: number, sharedDecimals: number)
src/utils/OFTUtils.ts:121
↓ 4 callersMethodrunFilterDepositsByIntegratorId
(messages: AnyGaslessDepositMessage[])
test/GaslessRelayer.ts:181
↓ 4 callersMethodrunMarkFilledFromInitialObservation
(messages: AnyGaslessDepositMessage[])
test/GaslessRelayer.ts:177
↓ 4 callersFunctionscheduleTask
(task: () => Promise<unknown>, interval: number, signal: AbortSignal)
src/utils/Tasks.ts:38
↓ 4 callersMethodseedL1TokenPriceUsd
(l1Token: string, priceUsd: BigNumber)
test/mocks/MockInventoryClient.ts:59
↓ 4 callersFunctionsendAndConfirmMintOrThrow
( tx: Parameters<typeof sendAndConfirmSolanaTransactionWithSlot>[0], provider: SVMProvider, cycles?: num
src/cctp-finalizer/utils/svmUtils.ts:193
↓ 4 callersMethodsendTokenToTargetChain
* @notice Submits on-chain transaction to send tokens to the target chain. * @param address Address to send tokens to. * @param l1Token L1 token
src/adapter/BaseChainAdapter.ts:413
↓ 4 callersMethodsetBridge
(address: string, bridge: Contract)
test/generic-adapters/OpStack.ts:52
↓ 4 callersMethodsetEstimatedCost
(route: RebalanceRoute, cost: BigNumber)
test/RebalancerClient.cumulativeRebalancing.ts:823
↓ 4 callersMethodsetOriginTokenApprovals
()
src/clients/TokenClient.ts:169
↓ 4 callersFunctionstoredCallDataEvent
(overrides: Partial<StoredCallDataEvent> = {})
test/Finalizer.HeliosFilterRequiredActions.test.ts:12
↓ 4 callersFunctionsubmitBinanceWithdrawal
( binanceApi: BinanceApi, options: Parameters<BinanceApi["withdraw"]>[0] )
src/utils/BinanceUtils.ts:279
↓ 4 callersMethodsupportedChains
* @notice Returns list of chains we have adapters for * @returns list of chain IDs we have adapters for
src/clients/bridges/AdapterManager.ts:202
↓ 4 callersFunctiontronOriginIndexerMessage
Indexer API sample: Tron origin, Base destination, USDT correct_transfer.
test/DepositAddressUtils.ts:7
↓ 4 callersFunctionupdateAllClients
()
test/TokenClient.Approval.ts:37
↓ 4 callersFunctionupdateAndExecuteAction
(l1Event: StoredCallDataEvent)
test/Finalizer.HeliosFilterRequiredActions.test.ts:27
← previousnext →401–500 of 2,347, ranked by callers