MCPcopy Create free account

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

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

↓ 740 callersMethodfrom
( evmSigner: Signer, provider: arch.svm.SVMProvider, chainId: number, logger: winston.Logger
src/clients/SvmFillerClient.ts:77
↓ 349 callersMethodupdate
()
test/mocks/MockProfitClient.ts:134
↓ 243 callersMethodlog
(level: "debug" | "info" | "warn", message: string, args: Record<string, unknown> = {})
src/gasless/GaslessRelayer.ts:596
↓ 232 callersMethodadd
* Record event reception. Retain a record of the providers that have reported each event. This applies a * rudimentary quorum system to the event a
src/utils/EventUtils.ts:137
↓ 205 callersFunctiondescribe
()
src/libexec/util/bootstrap.ts:41
↓ 162 callersFunctiontoAddress
(address: string)
test/generic-adapters/zkSync.ts:126
↓ 156 callersMethodsub
(channel: string, listener: (message: string, channel: string) => void)
src/messaging/redis/PubSub.ts:22
↓ 146 callersFunctionupdateAllClients
()
test/Relayer.SlowFill.ts:61
↓ 135 callersFunctiongetDefaultBlockRange
(toBlockOffset: number)
test/utils/utils.ts:469
↓ 97 callersFunctiontoAddress
(address: string)
test/generic-adapters/Polygon.ts:68
↓ 94 callersFunctiongetContractEntry
(chainId: number, name: string)
src/common/ContractAddresses.ts:1022
↓ 87 callersFunctiondepositV3
( spokePool: Contract, destinationChainId: number, signer: SignerWithAddress, inputToken: string, in
test/utils/utils.ts:270
↓ 71 callersFunctiongetProvider
( chainId: number, logger: winston.Logger = Logger, useCache = true, quorum?: number )
src/utils/ProviderUtils.ts:122
↓ 70 callersFunctionamount
(token: string, humanAmount: string)
test/RebalancerClient.cumulativeRebalancing.ts:38
↓ 69 callersMethodset
(key: string, val: T, expirySeconds = constants.DEFAULT_CACHING_TTL)
src/cache/Redis.ts:59
↓ 62 callersMethodsetTokenMapping
(tokenMapping: TokenMapping)
test/mocks/MockInventoryClient.ts:91
↓ 60 callersFunctiongetCurrentTime
(solanaClient: arch.svm.RpcClient)
test/utils/svm/utils.ts:213
↓ 54 callersMethod_getTokenInfo
(token: EvmAddress, chainId: number)
src/hyperliquid/HyperliquidExecutor.ts:591
↓ 54 callersFunctioncreateSpyLogger
()
test/utils/utils.ts:111
↓ 50 callersMethodtransactionCount
()
src/clients/MultiCallerClient.ts:113
↓ 50 callersFunctiontruncate
(number: number, decimals: number)
src/utils/NumberUtils.ts:8
↓ 47 callersMethodexecuteTxnQueues
(simulate = false, chainIds: number[] = [])
src/clients/MultiCallerClient.ts:130
↓ 47 callersFunctiongetRedisCache
( logger?: winston.Logger, url?: string, customNamespace?: string )
src/cache/Redis.ts:148
↓ 47 callersFunctiongetTokenInfoFromSymbol
(l1TokenSymbol: string, chainId: number)
src/utils/TokenUtils.ts:235
↓ 47 callersMethodqueryL1BridgeInitiationEvents
(l1Token: EvmAddress)
test/generic-adapters/SplitBridgeTracking.ts:149
↓ 47 callersMethodqueryL2BridgeFinalizationEvents
(l1Token: EvmAddress)
test/generic-adapters/SplitBridgeTracking.ts:156
↓ 46 callersFunctiontopicAddress
(address: string)
test/DepositAddressHandler.publish.ts:21
↓ 45 callersMethodcheckForUnfilledDepositsAndFill
(simulate = false)
src/relayer/Relayer.ts:913
↓ 44 callersMethodgetOutstandingCrossChainTransfers
( chainId: number, // eslint-disable-next-line @typescript-eslint/no-unused-vars _l1Tokens: string
test/mocks/MockAdapterManager.ts:51
↓ 44 callersMethodsetTokenData
(chainId: number, token: Address, balance: BigNumber, allowance: BigNumber = bnZero)
test/mocks/MockTokenClient.ts:13
↓ 44 callersFunctiontoAddress
(address: string)
test/generic-adapters/OpStack.ts:69
↓ 42 callersFunctionformatAmount
(amount: BigNumber, decimals: number)
scripts/swapOnBinance.ts:1119
↓ 41 callersMethoddetermineRefundChainId
(_deposit: Deposit)
test/mocks/MockInventoryClient.ts:51
↓ 41 callersMethodget
(key?: string)
src/cache/Redis.ts:48
↓ 39 callersFunctionbuildTarget
( token: string, targetBalance: string, thresholdBalance: string, priorityTier: number, ch
test/RebalancerClient.cumulativeRebalancing.ts:40
↓ 39 callersFunctionprocessEvent
(event: Log, amountField: string)
src/adapter/utils.ts:96
↓ 38 callersFunctionresolveAcrossToken
( symbol: string, chainId?: number, assertExists?: boolean )
src/utils/TokenUtils.ts:32
↓ 37 callersMethodenqueueTransaction
(txn: AugmentedTransaction)
src/clients/MultiCallerClient.ts:104
↓ 37 callersFunctiongenerateV3Deposit
(eventOverride?: Partial<interfaces.DepositWithBlock>)
test/Dataworker.loadData.fill.ts:187
↓ 36 callersFunctiongenerateV3FillFromDeposit
( deposit: interfaces.DepositWithBlock, fillEventOverride?: Partial<interfaces.FillWithBlock>,
test/Dataworker.loadData.fill.ts:203
↓ 36 callersFunctionupdateAllClients
()
test/Relayer.BasicFill.ts:93
↓ 35 callersFunctionfillV3Relay
( spokePool: Contract, deposit: Omit<Deposit, "destinationChainId">, signer: SignerWithAddress, repaym
test/utils/utils.ts:378
↓ 35 callersMethodproposeRootBundle
* @returns bundle data if new proposal transaction is enqueued, else undefined
src/dataworker/Dataworker.ts:437
↓ 34 callersFunctionhasRoute
( sourceChain: number, sourceToken: string, destinationChain: number, destinationToken
test/RebalancerClient.buildRebalanceRoutes.ts:158
↓ 34 callersMethodsetCurrentTime
(time: number)
test/mocks/MockHubPoolClient.ts:121
↓ 33 callersMethodapprove
(amount = bnUint256Max)
src/dataworker/Disputer.ts:96
↓ 33 callersFunctiondelay
(ms: number)
src/utils/TransactionUtils.ts:93
↓ 33 callersFunctiongetNativeTokenInfoForChain
( chainId: number, hubChainId = CHAIN_IDs.MAINNET )
src/utils/TokenUtils.ts:132
↓ 33 callersMethodmapTokenInfo
(address: Address, symbol: string, decimals?: number)
test/mocks/MockHubPoolClient.ts:47
↓ 32 callersMethodtestSetBalance
(chainId: number, token: Address, holder: Address, balance: BigNumber)
src/clients/BalanceAllocator.ts:140
↓ 31 callersMethodgetBalance
(chainId: number, token: Address)
src/clients/TokenClient.ts:76
↓ 31 callersMethodresolveL2TokenAddress
(l1Token: EvmAddress)
src/adapter/bridges/ZKStackBridge.ts:295
↓ 31 callersFunctiontoAddress
(address: string)
test/generic-adapters/BridgeApi.ts:53
↓ 30 callersFunctiongetEthersCompatibleAddress
(chainId: number, address: string)
src/utils/ContractUtils.ts:37
↓ 30 callersFunctiontoAddress
(address: string)
test/generic-adapters/USDC.ts:18
↓ 30 callersMethodupdate
* @description Perform per-loop updates. * @return True if all SpokePoolClients updated successfully, otherwise false.
src/relayer/Relayer.ts:129
↓ 28 callersMethodallowance
()
src/dataworker/Disputer.ts:91
↓ 28 callersFunctionfloatToBN
(float: string | number, precision: number)
src/utils/BNUtils.ts:31
↓ 28 callersFunctionmakeRoute
( sourceChain: number, destinationChain: number, sourceToken: string, destinationToken: string
test/RebalancerClient.cumulativeRebalancing.ts:55
↓ 28 callersFunctionmakeTestDepositMessage
( overrides?: Partial<GaslessDepositMessage["baseDepositData"]>, metadata?: GaslessDepositMetadata,
test/GaslessRelayer.ts:578
↓ 28 callersMethodsetLpTokenInfo
(l1Token: string, lastLpFeeUpdate: number, liquidReserves: BigNumber)
test/mocks/MockHubPoolClient.ts:43
↓ 27 callersFunctionsetupTokensForWallet
( contractToApprove: Contract, wallet: SignerWithAddress, tokens: Contract[], weth?: Contract, seedM
test/utils/utils.ts:91
↓ 26 callersFunctionfindExpectedNode
( nodeContexts: ManagedNodeContext[], predicate: (node: ManagedNodeContext) => boolean, description: str
test/JussiGraph.buildGraph.ts:54
↓ 26 callersFunctiongetBlockForTimestamp
( logger: winston.Logger, chainId: number, timestamp: number, blockFinder?: utils.BlockFinder<utils.Bl
src/utils/BlockUtils.ts:44
↓ 26 callersFunctionprintQuoteLine
(label: string, value: string, indentLevel = 0, emphasized = false)
scripts/swapOnBinance.ts:1123
↓ 25 callersFunctiontoAddress
(address: string)
test/generic-adapters/PaxosTransitBridge.ts:99
↓ 23 callersFunctiondeploySpokePoolWithToken
(fromChainId = 0)
test/utils/utils.ts:125
↓ 23 callersMethodgetBalanceOnChain
(chainId: number, l1Token: string, l2Token?: string)
test/mocks/MockInventoryClient.ts:87
↓ 23 callersFunctionresolveBinanceCoinSymbol
(token: string)
src/utils/BinanceUtils.ts:157
↓ 22 callersMethodgetCumulativeBalance
(l1Token: EvmAddress)
src/clients/InventoryClient.ts:231
↓ 22 callersMethodgetTokenInfo
(token: Address, chainId: number)
src/clients/InventoryClient.ts:182
↓ 22 callersMethodinitialize
(availableRoutes: RebalanceRoute[])
src/rebalancer/utils/interfaces.ts:7
↓ 21 callersMethodcreate
(options: BinanceClientOptions)
src/clients/BinanceClient.ts:35
↓ 21 callersFunctiondepositNonceFor
Derive the deposit nonce key for a message, matching the experimental handler's key construction.
test/GaslessRelayer.ts:245
↓ 21 callersFunctiongenerateV3Deposit
(eventOverride?: Partial<interfaces.DepositWithBlock>)
test/Dataworker.loadData.deposit.ts:116
↓ 21 callersFunctionrequestSlowFill
( spokePool: Contract, relayer: SignerWithAddress, deposit: Deposit )
test/utils/SpokePoolUtils.ts:28
↓ 20 callersFunctiondisconnectRedisClients
(logger?: winston.Logger)
src/utils/Redis.ts:149
↓ 20 callersMethodgetMessageState
(depositNonce: string)
test/GaslessRelayer.ts:94
↓ 20 callersMethodlog
(message: string, data?: AnyObject, level: DefaultLogLevels = "debug")
src/clients/InventoryClient.ts:1755
↓ 20 callersMethodsendTokenCrossChain
( _address: Address, chainId: number, l1Token: EvmAddress, amount: BigNumber )
test/mocks/MockAdapterManager.ts:28
↓ 19 callersFunctiongenerateV3Deposit
(eventOverride?: Partial<interfaces.DepositWithBlock>)
test/Dataworker.loadData.prefill.ts:185
↓ 19 callersMethodgetBalance
(chainId: number, token: Address)
test/mocks/MockTokenClient.ts:28
↓ 19 callersFunctionsubmitTransaction
( transaction: AugmentedTransaction, transactionClient: TransactionClient )
src/utils/TransactionUtils.ts:267
↓ 18 callersFunctioncreateClient
( cumulativeTargetBalances: CumulativeTargetBalanceConfig, adapters: { [name: string]: RebalancerAdapt
test/RebalancerClient.cumulativeRebalancing.ts:65
↓ 18 callersFunctionisFailedBinanceWithdrawal
(status?: number)
src/utils/BinanceUtils.ts:583
↓ 18 callersFunctiontoAddress
(address: string)
test/generic-l2-adapters/USDC.ts:19
↓ 17 callersMethod_getEntrypointNetwork
(chainId: number, token: string)
src/rebalancer/adapters/binance.ts:1062
↓ 17 callersFunctionbuildRelayerConfig
(optimismUsdcTargetPct = 8)
test/JussiGraph.buildGraph.ts:95
↓ 17 callersMethodgetL1Tokens
()
src/clients/InventoryClient.ts:465
↓ 17 callersFunctionisTerminalBinanceWithdrawal
(status?: number)
src/utils/BinanceUtils.ts:594
↓ 17 callersFunctiontoMegaWei
(num: string | number | BigNumber)
test/InventoryClient.InventoryRebalance.ts:38
↓ 16 callersFunctionaskYesNoQuestion
(query: string)
scripts/utils.ts:31
↓ 16 callersFunctionblockRangesAreInvalidForSpokeClients
( spokePoolClients: Record<number, SpokePoolClient>, blockRanges: number[][], chainIdListForBundleEvalua
src/dataworker/DataworkerUtils.ts:51
↓ 16 callersFunctionbuildManagedNodeTemplates
( inventoryConfig: InventoryConfig, hubChainId = DEFAULT_HUB_POOL_CHAIN_ID )
src/jussi/topology/nodes.ts:19
↓ 16 callersFunctiondeployConfigStore
( signer: SignerWithAddress, tokensToAdd: Contract[], maxL1TokensPerPoolRebalanceLeaf: number = MAX_L1_T
test/utils/utils.ts:137
↓ 16 callersMethodexecutePoolRebalanceLeaves
* @notice Executes outstanding pool rebalance leaves if they have passed the challenge window. Includes * exchange rate updates needed to execute l
src/dataworker/Dataworker.ts:1539
↓ 16 callersMethodgetPriceOfToken
* Return the cached price for token. * @param token Token identifier. May be a token symbol or token address on the HubPool chain. * @returns To
src/clients/ProfitClient.ts:279
↓ 16 callersMethodgetUsed
(chainId: number, token: Address, holder: Address)
src/clients/BalanceAllocator.ts:149
↓ 16 callersMethodminRelayerFeePct
* Allow the minimum relayer fee to be overridden per token/route: * 0.1bps on USDC from Optimism to Arbitrum: * - MIN_RELAYER_FEE_PCT_USDC_421
src/clients/ProfitClient.ts:439
↓ 16 callersMethodrebalanceInventoryIfNeeded
()
src/clients/InventoryClient.ts:941
next →1–100 of 2,347, ranked by callers