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
↓ 6 callers
Method
processExecution
* Dispatches an indexer message to the deposit or refund-withdraw path based on its version and * classification: * - v3 correct_transfer: thi
src/deposit-address/DepositAddressHandler.ts:362
↓ 6 callers
Method
publishUpload
()
src/jussi/JussiGraphPublisher.ts:48
↓ 6 callers
Function
resolveExchangeLatencySeconds
(params: { family: Extract<EdgeFamily, "binance" | "hyperliquid">; sourceBridgeLatencySeconds?: number;
src/jussi/topology/latency.ts:59
↓ 6 callers
Function
resolveUsdNotionalInputNative
( logicalAsset: LogicalAsset, sourceDecimals: number, inputUsd: number, pricingContext: RuntimePricing
src/jussi/economics/rates.ts:290
↓ 6 callers
Method
sMembers
(key: string)
src/cache/Redis.ts:113
↓ 6 callers
Function
sendAndConfirmSolanaTransactionWithSlot
( unsignedTransaction: SolanaUnsignedTransaction, provider: SVMProvider, cycles = 25, pollingDelay = 6
src/utils/TransactionUtils.ts:143
↓ 6 callers
Method
set
(key: string, val: T, expirySeconds = 60)
test/JussiGraph.buildGraph.ts:225
↓ 6 callers
Method
setGasCost
(chainId: number, gas?: TransactionCostEstimate)
test/mocks/MockProfitClient.ts:105
↓ 6 callers
Method
setObservedDeposits
(deposits: { [chainId: number]: Set<string> })
test/GaslessRelayer.ts:85
↓ 6 callers
Method
setObservedFills
(fills: { [chainId: number]: Set<string> })
test/GaslessRelayer.ts:88
↓ 6 callers
Method
setRemoteTokens
(tokens: Contract[], remoteTokenContracts?: { [chainId: number]: Contract[] })
test/mocks/MockTokenClient.ts:49
↓ 6 callers
Method
submit
(chainId: number, txns: AugmentedTransaction[])
src/clients/TransactionClient.ts:186
↓ 6 callers
Method
subscribe
()
src/utils/InstanceCoordinator.ts:37
↓ 6 callers
Function
updateAllClients
()
test/TokenClient.BalanceAllowance.ts:28
↓ 6 callers
Function
updateClients
(clients: Clients, config: CommonConfig, logger: winston.Logger)
src/common/ClientHelper.ts:416
↓ 6 callers
Function
withdrawMessageV3
v3 mis_route message carrying a withdraw leaf, ready for the refund-withdraw path.
test/DepositAddressHandler.ts:92
↓ 5 callers
Method
_getEventSearchConfig
(chainId: number)
src/gasless/GaslessRelayer.ts:1208
↓ 5 callers
Method
_getLatestPrice
( sourceToken: string, destinationToken: string, sourceChain: number, amountToTransfer: BigNum
src/rebalancer/adapters/binance.ts:1242
↓ 5 callers
Method
_getMatchingFillForCloid
( cloid: string, account: EvmAddress )
src/rebalancer/adapters/binance.ts:1454
↓ 5 callers
Method
_getOrderBook
(symbol: string)
src/rebalancer/adapters/binance.ts:1281
↓ 5 callers
Function
_getRefundLeaves
( refunds: Refund, amountToReturn: BigNumber, repaymentChainId: number, l2TokenAddress: Address, max
src/dataworker/DataworkerUtils.ts:374
↓ 5 callers
Method
_getSpotMarketMetaForRoute
(sourceToken: string, destinationToken: string)
src/rebalancer/adapters/hyperliquid.ts:963
↓ 5 callers
Method
_updateExchangeRatesBeforeExecutingHubChainLeaves
( balanceAllocator: BalanceAllocator, poolRebalanceLeaf: Pick<PoolRebalanceLeaf, "netSendAmounts" | "l
src/dataworker/Dataworker.ts:2070
↓ 5 callers
Method
_updateOldExchangeRates
(l1Tokens: EvmAddress[])
src/dataworker/Dataworker.ts:2284
↓ 5 callers
Method
addUsed
(chainId: number, token: Address, holder: Address, amount: BigNumber)
src/clients/BalanceAllocator.ts:160
↓ 5 callers
Function
buildDepositExecutedPayload
( receipt: TransactionReceipt, depositMessage: DepositAddressMessageV3 )
src/deposit-address/withdrawPayload.ts:128
↓ 5 callers
Function
buildJussiTopologyArtifact
(prepared: PreparedGraphTopology)
src/jussi/topology/artifact.ts:7
↓ 5 callers
Function
buildSignableTx
()
test/TransactionUtils.svm.ts:21
↓ 5 callers
Method
buildSlowRelayRoot
( blockRangesForChains: number[][], spokePoolClients: { [chainId: number]: SpokePoolClient } )
src/dataworker/Dataworker.ts:217
↓ 5 callers
Method
computeOriginChainCommitment
* For a given origin chain block range, sum the USD value of any fills made by this relayer. * @param chainId Origin chain ID to inspect. * @par
src/relayer/Relayer.ts:541
↓ 5 callers
Function
constructRelayerClients
( logger: winston.Logger, config: RelayerConfig, baseSigner: Signer )
src/relayer/RelayerClientHelper.ts:108
↓ 5 callers
Function
constructSpokePoolClientsWithStartBlocks
( logger: winston.Logger, hubPoolClient: HubPoolClient, config: CommonConfig, baseSigner: Signer, st
src/common/ClientHelper.ts:202
↓ 5 callers
Function
depositMessage
()
test/DepositAddressHandler.publish.ts:25
↓ 5 callers
Function
executeResponse
(overrides: Partial<DepositAddressExecuteResponse> = {})
test/DepositAddressHandler.ts:450
↓ 5 callers
Method
executeSlowRelayLeaves
( spokePoolClients: { [chainId: number]: SpokePoolClient }, balanceAllocator: BalanceAllocator = new B
src/dataworker/Dataworker.ts:1153
↓ 5 callers
Function
expectRejected
(promise: Promise<T>, message: string)
test/swapOnBinance.ts:586
↓ 5 callers
Function
fail
(allOk: { v: boolean }, msg: string)
scripts/recoveries/2026-06-accounting/verify.ts:48
↓ 5 callers
Function
getAccountCoins
(binanceApi: BinanceApi)
src/utils/BinanceUtils.ts:472
↓ 5 callers
Method
getBalanceSubUsed
(chainId: number, token: Address, holder: Address)
src/clients/BalanceAllocator.ts:116
↓ 5 callers
Function
getBinanceApiClient
(url = "https://api.binance.com")
src/utils/BinanceUtils.ts:194
↓ 5 callers
Function
getBinanceWithdrawals
( binanceApi: BinanceApi, coin: string, startTime: number, maxRetries = 3, delayS = 2 )
src/utils/BinanceUtils.ts:420
↓ 5 callers
Method
getEventKey
(event: Log)
src/utils/EventUtils.ts:186
↓ 5 callers
Method
getFillAmountInUsd
( deposit: Pick<Deposit, "destinationChainId" | "outputToken" | "outputAmount"> )
src/clients/ProfitClient.ts:566
↓ 5 callers
Function
getGaslessPermitNonce
(depositMessage: AnyGaslessDepositMessage)
src/utils/GaslessUtils.ts:379
↓ 5 callers
Method
getL1TokenAddress
* Returns the L1 token address for a given L2 token address on a given chain. Returns undefined * if the l2 token and chain ID do not have a corre
src/clients/InventoryClient.ts:562
↓ 5 callers
Function
getPositivePendingRebalanceAmountsByBinanceCoin
(pendingRebalances: { [chainId: number]: { [token: string]: BigNumber }; })
src/finalizer/utils/binance.ts:342
↓ 5 callers
Function
getSolanaTokenBalance
( provider: SVMProvider, tokenMint: SvmAddress, walletAddress: SvmAddress )
src/utils/TokenUtils.ts:189
↓ 5 callers
Function
getSpokePoolAddress
(chainId: number)
src/utils/ContractUtils.ts:83
↓ 5 callers
Function
getSvmProvider
(rpcUrl: string)
src/cctp-finalizer/utils/svmUtils.ts:176
↓ 5 callers
Method
getTokenInfoForL1Token
(l1Token: EvmAddress)
test/mocks/MockHubPoolClient.ts:111
↓ 5 callers
Method
getTokenShortfall
()
src/clients/TokenClient.ts:133
↓ 5 callers
Method
getTokenSymbol
(token: Address, chainId: number)
src/clients/ProfitClient.ts:578
↓ 5 callers
Function
getUniqueLogIndex
(events: { txnRef: string }[])
src/utils/EventUtils.ts:66
↓ 5 callers
Function
internals
()
test/DepositAddressHandler.ts:513
↓ 5 callers
Method
loadCachedValue
(cache: Map<K, Promise<T>>, key: K, loader: () => Promise<T>)
src/jussi/economics/PricingContext.ts:324
↓ 5 callers
Function
makeConfirmationTxn
(chainId: number)
test/TransactionClient.ts:160
↓ 5 callers
Function
makeEvent
(blockNumber: number, blockHash = makeHash())
test/RelayerSpokePoolListenerTVM.ts:9
↓ 5 callers
Function
makeFakeProvider
(statusValueByPollCall: Array<unknown>, contextSlotByPollCall: Array<bigint> = [])
test/TransactionUtils.svm.ts:29
↓ 5 callers
Function
makeHubPoolClient
(opts: { proposals: { challengePeriodEndTimestamp: number; blockNumber: number }[]; executedLeafChainIds:
test/Finalizer.HeliosFilterRequiredActions.test.ts:31
↓ 5 callers
Function
makeInitializedAdapter
( route: RebalanceRoute, { cctpAdapter = {}, oftAdapter = {}, }: { cctpAdapter?: Intermediat
test/BinanceAdapter.conversions.ts:199
↓ 5 callers
Function
makeStablecoinMarketSymbol
()
test/swapOnBinance.ts:671
↓ 5 callers
Function
makeStablecoinRoute
(overrides: Partial<RebalanceRoute> = {})
test/BinanceAdapter.conversions.ts:224
↓ 5 callers
Function
mineRandomBlocks
(amount?: number)
test/utils/BlockchainUtils.ts:8
↓ 5 callers
Function
normalizeDepositAddressMessage
(message: DepositAddressMessage)
src/utils/DepositAddressUtils.ts:10
↓ 5 callers
Function
postBlock
(blockNumber: number, currentTime: number)
src/libexec/util/ipc.ts:11
↓ 5 callers
Function
printSection
(title: string)
scripts/sweepBinanceBalance.ts:371
↓ 5 callers
Function
randomNumber
(ceil = 1_000_000)
test/EventManager.ts:12
↓ 5 callers
Function
randomNumber
(ceil = 1_000_000)
test/Relayer.IndexedSpokePoolClient.ts:44
↓ 5 callers
Function
removeEvent
(event: Log)
test/Relayer.IndexedSpokePoolClient.ts:128
↓ 5 callers
Method
requestBalanceAllocation
( chainId: number, tokens: Address[], holder: Address, amount: BigNumber )
src/clients/BalanceAllocator.ts:107
↓ 5 callers
Function
requiredStringFlag
(args: ParsedSwapArgs, flag: string)
scripts/swapOnBinance.ts:1014
↓ 5 callers
Function
resolveBridgeLatencySeconds
( family: Extract<EdgeFamily, "cctp" | "oft">, sourceChain: number, logicalAsset: LogicalAsset )
src/jussi/topology/latency.ts:14
↓ 5 callers
Function
resolveEdgeClassId
(candidate: GraphEdgeCandidate)
src/jussi/topology/edges.ts:340
↓ 5 callers
Method
resolveTokenAddress
* Convenience function to resolve a token symbol to its underlying address. * @notice In case that an address is supplied, it will simply be return
src/clients/ProfitClient.ts:250
↓ 5 callers
Function
restructureGaslessDeposits
( depositMessages: APIGaslessDepositResponse[], logger: winston.Logger )
src/utils/GaslessUtils.ts:168
↓ 5 callers
Method
setBundleData
()
src/clients/InventoryClient.ts:485
↓ 5 callers
Method
setMatchingFillEvent
(deposit: DepositWithBlock, fill: FillWithBlock)
test/mocks/MockBundleDataClient.ts:27
↓ 5 callers
Method
setRelayFillStatus
(deposit: Deposit, fillStatus: interfaces.FillStatus)
test/mocks/MockSpokePoolClient.ts:38
↓ 5 callers
Function
sleepMs
(ms: number)
scripts/swapOnBinance.ts:1842
↓ 5 callers
Function
updateAllClients
()
test/Relayer.TokenShortfall.ts:68
↓ 5 callers
Function
updateDeposit
( spokePool: Contract, deposit: Deposit, depositor: SignerWithAddress )
test/utils/utils.ts:346
↓ 5 callers
Function
validate
(response: DepositAddressExecuteResponse)
test/DepositAddressHandler.ts:461
↓ 5 callers
Function
withBinanceInternals
(adapter: BinanceStablecoinSwapAdapter)
test/BinanceAdapter.conversions.ts:62
↓ 5 callers
Function
withFixedTokenPrices
(prices: Record<string, string>)
test/RebalancerClient.cumulativeRebalancing.ts:85
↓ 4 callers
Method
_findAuthorizationUsed
( originChainId: number, inputToken: Address, authorizer: string, nonce: string )
src/gasless/GaslessRelayer.ts:1113
↓ 4 callers
Method
_getSignedWithdrawV3
* Fetches v3 signed-withdraw calldata from the quote-api. Classifies failures: a terminal 422 * (`GAS_EXCEEDS_REFUND` / `UNPRICEABLE_REFUND_TOKEN`)
src/deposit-address/DepositAddressHandler.ts:1355
↓ 4 callers
Method
_getSymbol
(sourceToken: string, destinationToken: string)
src/rebalancer/adapters/binance.ts:1229
↓ 4 callers
Method
_getTradeFees
()
src/rebalancer/adapters/binance.ts:1444
↓ 4 callers
Method
_validateBlockRanges
( spokePoolClients: SpokePoolClientsByChain, blockRanges: number[][], chainIds: number[], earl
src/dataworker/Dataworker.ts:2984
↓ 4 callers
Method
_withdraw
( cloid: string, quantity: number, destinationToken: string, destinationChain: number )
src/rebalancer/adapters/binance.ts:1623
↓ 4 callers
Function
addBridgeLegToExchangeBreakdown
( state: ExchangeBreakdownState, candidate: GraphEdgeCandidate, amount: BigNumber, params: BridgeBreak
src/jussi/economics/edgeCosts.ts:576
↓ 4 callers
Function
asQuoteAdapter
(adapter: BinanceStablecoinSwapAdapter)
test/BinanceAdapter.quotes.ts:123
↓ 4 callers
Function
buildBridgeEdgeCandidates
( nodeContexts: ManagedNodeContext[], hubPoolChainId = DEFAULT_HUB_POOL_CHAIN_ID )
src/jussi/topology/edges.ts:27
↓ 4 callers
Function
buildJussiGraphEnvelope
(graph: BuiltJussiGraph)
src/jussi/serialize.ts:19
↓ 4 callers
Function
buildOrder
(overrides: Partial<PaxosTransitOrder>)
test/generic-adapters/PaxosTransitBridge.ts:351
↓ 4 callers
Function
buildRebalancerConfig
(targetBalance = "100")
test/JussiGraph.buildGraph.ts:138
↓ 4 callers
Function
buildRelayerRefundTree
(relayerRefundLeaves: RelayerRefundLeaf[])
src/utils/MerkleTreeUtils.ts:36
↓ 4 callers
Function
buildSweepPlan
(params: { destination: ResolvedBinanceAsset; freeBalance: BigNumber })
scripts/sweepBinanceBalance.ts:169
↓ 4 callers
Method
canIgnoreRevertReason
(txn: TransactionSimulationResult)
src/clients/MultiCallerClient.ts:480
↓ 4 callers
Method
canTakeDestinationChainRepayment
* @notice Returns true if the deposit has an output token PoolRebalanceRoute mapping equivalent to the input token's * PoolRebalanceRoute mapping.
src/clients/InventoryClient.ts:619
← previous
next →
301–400 of 2,347, ranked by callers