Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/across-protocol/relayer
/ functions
Functions
2,347 in github.com/across-protocol/relayer
⨍
Functions
2,347
◇
Types & classes
456
↓ 740 callers
Method
from
( evmSigner: Signer, provider: arch.svm.SVMProvider, chainId: number, logger: winston.Logger
src/clients/SvmFillerClient.ts:77
↓ 349 callers
Method
update
()
test/mocks/MockProfitClient.ts:134
↓ 243 callers
Method
log
(level: "debug" | "info" | "warn", message: string, args: Record<string, unknown> = {})
src/gasless/GaslessRelayer.ts:596
↓ 232 callers
Method
add
* 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 callers
Function
describe
()
src/libexec/util/bootstrap.ts:41
↓ 162 callers
Function
toAddress
(address: string)
test/generic-adapters/zkSync.ts:126
↓ 156 callers
Method
sub
(channel: string, listener: (message: string, channel: string) => void)
src/messaging/redis/PubSub.ts:22
↓ 146 callers
Function
updateAllClients
()
test/Relayer.SlowFill.ts:61
↓ 135 callers
Function
getDefaultBlockRange
(toBlockOffset: number)
test/utils/utils.ts:469
↓ 97 callers
Function
toAddress
(address: string)
test/generic-adapters/Polygon.ts:68
↓ 94 callers
Function
getContractEntry
(chainId: number, name: string)
src/common/ContractAddresses.ts:1022
↓ 87 callers
Function
depositV3
( spokePool: Contract, destinationChainId: number, signer: SignerWithAddress, inputToken: string, in
test/utils/utils.ts:270
↓ 71 callers
Function
getProvider
( chainId: number, logger: winston.Logger = Logger, useCache = true, quorum?: number )
src/utils/ProviderUtils.ts:122
↓ 70 callers
Function
amount
(token: string, humanAmount: string)
test/RebalancerClient.cumulativeRebalancing.ts:38
↓ 69 callers
Method
set
(key: string, val: T, expirySeconds = constants.DEFAULT_CACHING_TTL)
src/cache/Redis.ts:59
↓ 62 callers
Method
setTokenMapping
(tokenMapping: TokenMapping)
test/mocks/MockInventoryClient.ts:91
↓ 60 callers
Function
getCurrentTime
(solanaClient: arch.svm.RpcClient)
test/utils/svm/utils.ts:213
↓ 54 callers
Method
_getTokenInfo
(token: EvmAddress, chainId: number)
src/hyperliquid/HyperliquidExecutor.ts:591
↓ 54 callers
Function
createSpyLogger
()
test/utils/utils.ts:111
↓ 50 callers
Method
transactionCount
()
src/clients/MultiCallerClient.ts:113
↓ 50 callers
Function
truncate
(number: number, decimals: number)
src/utils/NumberUtils.ts:8
↓ 47 callers
Method
executeTxnQueues
(simulate = false, chainIds: number[] = [])
src/clients/MultiCallerClient.ts:130
↓ 47 callers
Function
getRedisCache
( logger?: winston.Logger, url?: string, customNamespace?: string )
src/cache/Redis.ts:148
↓ 47 callers
Function
getTokenInfoFromSymbol
(l1TokenSymbol: string, chainId: number)
src/utils/TokenUtils.ts:235
↓ 47 callers
Method
queryL1BridgeInitiationEvents
(l1Token: EvmAddress)
test/generic-adapters/SplitBridgeTracking.ts:149
↓ 47 callers
Method
queryL2BridgeFinalizationEvents
(l1Token: EvmAddress)
test/generic-adapters/SplitBridgeTracking.ts:156
↓ 46 callers
Function
topicAddress
(address: string)
test/DepositAddressHandler.publish.ts:21
↓ 45 callers
Method
checkForUnfilledDepositsAndFill
(simulate = false)
src/relayer/Relayer.ts:913
↓ 44 callers
Method
getOutstandingCrossChainTransfers
( chainId: number, // eslint-disable-next-line @typescript-eslint/no-unused-vars _l1Tokens: string
test/mocks/MockAdapterManager.ts:51
↓ 44 callers
Method
setTokenData
(chainId: number, token: Address, balance: BigNumber, allowance: BigNumber = bnZero)
test/mocks/MockTokenClient.ts:13
↓ 44 callers
Function
toAddress
(address: string)
test/generic-adapters/OpStack.ts:69
↓ 42 callers
Function
formatAmount
(amount: BigNumber, decimals: number)
scripts/swapOnBinance.ts:1119
↓ 41 callers
Method
determineRefundChainId
(_deposit: Deposit)
test/mocks/MockInventoryClient.ts:51
↓ 41 callers
Method
get
(key?: string)
src/cache/Redis.ts:48
↓ 39 callers
Function
buildTarget
( token: string, targetBalance: string, thresholdBalance: string, priorityTier: number, ch
test/RebalancerClient.cumulativeRebalancing.ts:40
↓ 39 callers
Function
processEvent
(event: Log, amountField: string)
src/adapter/utils.ts:96
↓ 38 callers
Function
resolveAcrossToken
( symbol: string, chainId?: number, assertExists?: boolean )
src/utils/TokenUtils.ts:32
↓ 37 callers
Method
enqueueTransaction
(txn: AugmentedTransaction)
src/clients/MultiCallerClient.ts:104
↓ 37 callers
Function
generateV3Deposit
(eventOverride?: Partial<interfaces.DepositWithBlock>)
test/Dataworker.loadData.fill.ts:187
↓ 36 callers
Function
generateV3FillFromDeposit
( deposit: interfaces.DepositWithBlock, fillEventOverride?: Partial<interfaces.FillWithBlock>,
test/Dataworker.loadData.fill.ts:203
↓ 36 callers
Function
updateAllClients
()
test/Relayer.BasicFill.ts:93
↓ 35 callers
Function
fillV3Relay
( spokePool: Contract, deposit: Omit<Deposit, "destinationChainId">, signer: SignerWithAddress, repaym
test/utils/utils.ts:378
↓ 35 callers
Method
proposeRootBundle
* @returns bundle data if new proposal transaction is enqueued, else undefined
src/dataworker/Dataworker.ts:437
↓ 34 callers
Function
hasRoute
( sourceChain: number, sourceToken: string, destinationChain: number, destinationToken
test/RebalancerClient.buildRebalanceRoutes.ts:158
↓ 34 callers
Method
setCurrentTime
(time: number)
test/mocks/MockHubPoolClient.ts:121
↓ 33 callers
Method
approve
(amount = bnUint256Max)
src/dataworker/Disputer.ts:96
↓ 33 callers
Function
delay
(ms: number)
src/utils/TransactionUtils.ts:93
↓ 33 callers
Function
getNativeTokenInfoForChain
( chainId: number, hubChainId = CHAIN_IDs.MAINNET )
src/utils/TokenUtils.ts:132
↓ 33 callers
Method
mapTokenInfo
(address: Address, symbol: string, decimals?: number)
test/mocks/MockHubPoolClient.ts:47
↓ 32 callers
Method
testSetBalance
(chainId: number, token: Address, holder: Address, balance: BigNumber)
src/clients/BalanceAllocator.ts:140
↓ 31 callers
Method
getBalance
(chainId: number, token: Address)
src/clients/TokenClient.ts:76
↓ 31 callers
Method
resolveL2TokenAddress
(l1Token: EvmAddress)
src/adapter/bridges/ZKStackBridge.ts:295
↓ 31 callers
Function
toAddress
(address: string)
test/generic-adapters/BridgeApi.ts:53
↓ 30 callers
Function
getEthersCompatibleAddress
(chainId: number, address: string)
src/utils/ContractUtils.ts:37
↓ 30 callers
Function
toAddress
(address: string)
test/generic-adapters/USDC.ts:18
↓ 30 callers
Method
update
* @description Perform per-loop updates. * @return True if all SpokePoolClients updated successfully, otherwise false.
src/relayer/Relayer.ts:129
↓ 28 callers
Method
allowance
()
src/dataworker/Disputer.ts:91
↓ 28 callers
Function
floatToBN
(float: string | number, precision: number)
src/utils/BNUtils.ts:31
↓ 28 callers
Function
makeRoute
( sourceChain: number, destinationChain: number, sourceToken: string, destinationToken: string
test/RebalancerClient.cumulativeRebalancing.ts:55
↓ 28 callers
Function
makeTestDepositMessage
( overrides?: Partial<GaslessDepositMessage["baseDepositData"]>, metadata?: GaslessDepositMetadata,
test/GaslessRelayer.ts:578
↓ 28 callers
Method
setLpTokenInfo
(l1Token: string, lastLpFeeUpdate: number, liquidReserves: BigNumber)
test/mocks/MockHubPoolClient.ts:43
↓ 27 callers
Function
setupTokensForWallet
( contractToApprove: Contract, wallet: SignerWithAddress, tokens: Contract[], weth?: Contract, seedM
test/utils/utils.ts:91
↓ 26 callers
Function
findExpectedNode
( nodeContexts: ManagedNodeContext[], predicate: (node: ManagedNodeContext) => boolean, description: str
test/JussiGraph.buildGraph.ts:54
↓ 26 callers
Function
getBlockForTimestamp
( logger: winston.Logger, chainId: number, timestamp: number, blockFinder?: utils.BlockFinder<utils.Bl
src/utils/BlockUtils.ts:44
↓ 26 callers
Function
printQuoteLine
(label: string, value: string, indentLevel = 0, emphasized = false)
scripts/swapOnBinance.ts:1123
↓ 25 callers
Function
toAddress
(address: string)
test/generic-adapters/PaxosTransitBridge.ts:99
↓ 23 callers
Function
deploySpokePoolWithToken
(fromChainId = 0)
test/utils/utils.ts:125
↓ 23 callers
Method
getBalanceOnChain
(chainId: number, l1Token: string, l2Token?: string)
test/mocks/MockInventoryClient.ts:87
↓ 23 callers
Function
resolveBinanceCoinSymbol
(token: string)
src/utils/BinanceUtils.ts:157
↓ 22 callers
Method
getCumulativeBalance
(l1Token: EvmAddress)
src/clients/InventoryClient.ts:231
↓ 22 callers
Method
getTokenInfo
(token: Address, chainId: number)
src/clients/InventoryClient.ts:182
↓ 22 callers
Method
initialize
(availableRoutes: RebalanceRoute[])
src/rebalancer/utils/interfaces.ts:7
↓ 21 callers
Method
create
(options: BinanceClientOptions)
src/clients/BinanceClient.ts:35
↓ 21 callers
Function
depositNonceFor
Derive the deposit nonce key for a message, matching the experimental handler's key construction.
test/GaslessRelayer.ts:245
↓ 21 callers
Function
generateV3Deposit
(eventOverride?: Partial<interfaces.DepositWithBlock>)
test/Dataworker.loadData.deposit.ts:116
↓ 21 callers
Function
requestSlowFill
( spokePool: Contract, relayer: SignerWithAddress, deposit: Deposit )
test/utils/SpokePoolUtils.ts:28
↓ 20 callers
Function
disconnectRedisClients
(logger?: winston.Logger)
src/utils/Redis.ts:149
↓ 20 callers
Method
getMessageState
(depositNonce: string)
test/GaslessRelayer.ts:94
↓ 20 callers
Method
log
(message: string, data?: AnyObject, level: DefaultLogLevels = "debug")
src/clients/InventoryClient.ts:1755
↓ 20 callers
Method
sendTokenCrossChain
( _address: Address, chainId: number, l1Token: EvmAddress, amount: BigNumber )
test/mocks/MockAdapterManager.ts:28
↓ 19 callers
Function
generateV3Deposit
(eventOverride?: Partial<interfaces.DepositWithBlock>)
test/Dataworker.loadData.prefill.ts:185
↓ 19 callers
Method
getBalance
(chainId: number, token: Address)
test/mocks/MockTokenClient.ts:28
↓ 19 callers
Function
submitTransaction
( transaction: AugmentedTransaction, transactionClient: TransactionClient )
src/utils/TransactionUtils.ts:267
↓ 18 callers
Function
createClient
( cumulativeTargetBalances: CumulativeTargetBalanceConfig, adapters: { [name: string]: RebalancerAdapt
test/RebalancerClient.cumulativeRebalancing.ts:65
↓ 18 callers
Function
isFailedBinanceWithdrawal
(status?: number)
src/utils/BinanceUtils.ts:583
↓ 18 callers
Function
toAddress
(address: string)
test/generic-l2-adapters/USDC.ts:19
↓ 17 callers
Method
_getEntrypointNetwork
(chainId: number, token: string)
src/rebalancer/adapters/binance.ts:1062
↓ 17 callers
Function
buildRelayerConfig
(optimismUsdcTargetPct = 8)
test/JussiGraph.buildGraph.ts:95
↓ 17 callers
Method
getL1Tokens
()
src/clients/InventoryClient.ts:465
↓ 17 callers
Function
isTerminalBinanceWithdrawal
(status?: number)
src/utils/BinanceUtils.ts:594
↓ 17 callers
Function
toMegaWei
(num: string | number | BigNumber)
test/InventoryClient.InventoryRebalance.ts:38
↓ 16 callers
Function
askYesNoQuestion
(query: string)
scripts/utils.ts:31
↓ 16 callers
Function
blockRangesAreInvalidForSpokeClients
( spokePoolClients: Record<number, SpokePoolClient>, blockRanges: number[][], chainIdListForBundleEvalua
src/dataworker/DataworkerUtils.ts:51
↓ 16 callers
Function
buildManagedNodeTemplates
( inventoryConfig: InventoryConfig, hubChainId = DEFAULT_HUB_POOL_CHAIN_ID )
src/jussi/topology/nodes.ts:19
↓ 16 callers
Function
deployConfigStore
( signer: SignerWithAddress, tokensToAdd: Contract[], maxL1TokensPerPoolRebalanceLeaf: number = MAX_L1_T
test/utils/utils.ts:137
↓ 16 callers
Method
executePoolRebalanceLeaves
* @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 callers
Method
getPriceOfToken
* 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 callers
Method
getUsed
(chainId: number, token: Address, holder: Address)
src/clients/BalanceAllocator.ts:149
↓ 16 callers
Method
minRelayerFeePct
* 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 callers
Method
rebalanceInventoryIfNeeded
()
src/clients/InventoryClient.ts:941
next →
1–100 of 2,347, ranked by callers