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
↓ 2 callers
Method
_getSpokeBalanceForL2Tokens
( balanceAllocator: BalanceAllocator, chainId: number, token: Address, holder: Address )
src/dataworker/Dataworker.ts:2738
↓ 2 callers
Method
_getState
(depositKey: string)
src/gasless/GaslessRelayer.ts:1260
↓ 2 callers
Method
_getSwapApiQuote
( depositMessage: DepositAddressMessage, retriesRemaining = 3 )
src/deposit-address/DepositAddressHandler.ts:1455
↓ 2 callers
Method
_getTotalGasCost
(deposit: Deposit, relayer: Address)
src/clients/ProfitClient.ts:290
↓ 2 callers
Method
_getUserTakerFeePct
(skipCache = false)
src/rebalancer/adapters/hyperliquid.ts:853
↓ 2 callers
Method
_indexerUpdate
(rawMessage: unknown)
src/clients/SpokePoolClient.ts:62
↓ 2 callers
Function
_isRelevantCCTPEvent
( event: CCTPMessageEvent, sourceDomainId: number, destinationDomainId: number, senderAddresses: strin
src/utils/CCTPUtils.ts:525
↓ 2 callers
Method
_markFilledFromInitialObservation
* For each API message, set a terminal state when the deposit is already fully handled on-chain so * {@link evaluateApiSignatures} skips it. * -
src/gasless/GaslessRelayer.ts:542
↓ 2 callers
Method
_persistExecutedDepositsRedis
* Overwrites Redis key with the full executedDepositTxHashes set (single SET; value is JSON array). * Called at start of each poll (after filtering
src/deposit-address/DepositAddressHandler.ts:609
↓ 2 callers
Method
_persistWithdrawnKeysRedis
Same pattern as `_persistExecutedDepositsRedis` but for refund-withdraw deposit keys.
src/deposit-address/DepositAddressHandler.ts:617
↓ 2 callers
Method
_prettifyBundleBlockRanges
(chainIds: number[], blockRanges: number[][])
src/dataworker/Dataworker.ts:2998
↓ 2 callers
Method
_publishWithdrawExecuted
* Best-effort publish of a `withdraw_executed` lifecycle event to GCP Pub/Sub. Payload shape * is locked by the consumer (`isDepositAddressWithdraw
src/deposit-address/DepositAddressHandler.ts:641
↓ 2 callers
Method
_queryGaslessApi
(retriesRemaining = 0)
src/gasless/GaslessRelayer.ts:1042
↓ 2 callers
Method
_queryIndexerApi
(retriesRemaining = 3)
src/deposit-address/DepositAddressHandler.ts:1422
↓ 2 callers
Method
_readPoolRebalanceClaimedBitMap
()
src/dataworker/Dataworker.ts:2029
↓ 2 callers
Function
_readTransactionConfig
(chainId: number)
src/clients/TransactionClient.ts:553
↓ 2 callers
Function
_reconstructBundleData
* * @param bundle The bundle proposal we want to reconstruct bundle data for * @param olderBundle Some bundle older than `bundle` whose end bloc
src/scripts/validateRunningBalances.ts:538
↓ 2 callers
Method
_redisGetInitiatedWithdrawalId
(cloid: string)
src/rebalancer/adapters/binance.ts:1579
↓ 2 callers
Function
_sendAndPoll
( unsignedTransaction: SolanaUnsignedTransaction, provider: SVMProvider, cycles: number, pollingDelay:
src/utils/TransactionUtils.ts:86
↓ 2 callers
Method
_setCache
(key: string, object: T)
test/mocks/MockArweaveClient.ts:21
↓ 2 callers
Method
_validateExecuteResponse
* Sanity-checks an execute response before submission. Most importantly, the API's re-derived * deposit address must match the funded address from
src/deposit-address/DepositAddressHandler.ts:1056
↓ 2 callers
Method
_withdrawToHyperevm
( destinationToken: string, amountToWithdrawCorePrecision: BigNumber )
src/rebalancer/adapters/hyperliquid.ts:1160
↓ 2 callers
Method
acquireLock
(key: string, token: string, ttlMs: number)
src/cache/Redis.ts:10
↓ 2 callers
Method
addRelayerRefundExecution
(execution: RelayerRefundExecutionWithBlock)
test/mocks/MockSpokePoolClient.ts:30
↓ 2 callers
Function
alignTokenData
(data: TokenDataType)
test/TokenClient.BalanceAllowance.ts:130
↓ 2 callers
Method
anyCapturedUnprofitableFills
()
src/clients/ProfitClient.ts:772
↓ 2 callers
Function
approveTokens
( tokens: { token: ExpandedERC20; bridges: Address[] }[], approvalChainId: number, hubChainId: number,
src/adapter/utils.ts:41
↓ 2 callers
Method
batchComputeLpFees
* For an array of unfilled deposits, compute the applicable LP fee for each. Fees are computed for all possible * repayment chains which include or
src/relayer/Relayer.ts:862
↓ 2 callers
Function
boldText
(text: string)
scripts/swapOnBinance.ts:1128
↓ 2 callers
Function
boolToWord
(value: boolean | undefined)
scripts/inspectBinanceCoins.ts:183
↓ 2 callers
Function
buildAssetResolutionError
( side: "source" | "destination", tokenSymbol: string, chainId: number, direction: "deposit" | "withdr
scripts/swapOnBinance.ts:952
↓ 2 callers
Function
buildBridgeCandidate
( match: BridgeMatch | undefined, adapterOrBridgeName: string, from: ManagedNodeContext, to: ManagedNo
src/jussi/topology/edges.ts:136
↓ 2 callers
Function
buildBridgeLookupContext
( chainId: number, logicalAsset: LogicalAsset, adapterOrBridgeName: string, hubPoolChainId: number )
src/jussi/topology/edges.ts:118
↓ 2 callers
Function
buildCumulativeBalancePainDefinitions
( cumulativeBalancesByLogicalAsset: Record<LogicalAsset, BigNumber> )
src/jussi/economics/pain.ts:5
↓ 2 callers
Method
buildFillRelayTxPromises
* Returns promises that build the fillRelay transaction(s) for a deposit (single tx or multipart). * Callers can enqueue these via {@link enqueueFi
src/clients/SvmFillerClient.ts:93
↓ 2 callers
Function
buildJussiRateLimitBucketsJson
(graph: BuiltJussiGraph)
src/jussi/serialize.ts:37
↓ 2 callers
Function
buildLogicalAssetDefinitions
( nodeContexts: ManagedNodeContext[], hubPoolChainId = DEFAULT_HUB_POOL_CHAIN_ID )
src/jussi/topology/logicalAssets.ts:5
↓ 2 callers
Method
buildOftTransactionArgs
( toAddress: Address, l1Token: EvmAddress, amount: BigNumber )
src/adapter/bridges/OFTBridge.ts:102
↓ 2 callers
Function
buildPaxosTransitSubmitOrderTxn
( client: PaxosTransitClient, signer: Signer, params: { userAddress: string; offerAmount: BigNum
src/utils/PaxosTransitUtils.ts:424
↓ 2 callers
Function
buildPreparedArtifact
(targetBalance: string)
test/JussiGraph.buildGraph.ts:1437
↓ 2 callers
Function
buildSyntheticBridgeNode
(logicalAsset: LogicalAsset, chainId: number)
src/jussi/economics/edgeCosts.ts:547
↓ 2 callers
Function
buildSyntheticDeposit
(msg: GaslessDepositMessage)
src/utils/GaslessUtils.ts:609
↓ 2 callers
Function
buildSyntheticRebalancerConfig
()
test/RebalancerClient.buildRebalanceRoutes.ts:6
↓ 2 callers
Function
buildSyntheticRebalancerConfigWithMainnet
()
test/RebalancerClient.buildRebalanceRoutes.ts:46
↓ 2 callers
Function
buildV3SlowRelayLeaves
(deposits: Deposit[], lpFeePct: BigNumber)
test/utils/utils.ts:431
↓ 2 callers
Function
calculateHubPoolStoreStorageSlot
(nonce: BigNumber)
src/utils/UniversalUtils.ts:10
↓ 2 callers
Function
canIgnoreSvmFillError
(e: unknown)
src/clients/SvmFillerClient.ts:59
↓ 2 callers
Function
canProposeRootBundle
(chainId: number)
src/dataworker/index.ts:145
↓ 2 callers
Function
canonicalizeJson
(value: unknown)
src/jussi/serialize.ts:43
↓ 2 callers
Method
captureUnprofitableFill
( deposit: DepositWithBlock, lpFeePct: BigNumber, relayerFeePct: BigNumber, gasCost: BigNumber
src/clients/ProfitClient.ts:755
↓ 2 callers
Method
checkStuckRebalances
()
src/monitor/Monitor.ts:761
↓ 2 callers
Function
cleanKeysFromEnvironment
* Clears any instances of MNEMONIC, PRIVATE_KEY or SECRET from the env.
src/utils/SignerUtils.ts:162
↓ 2 callers
Method
clearSimulationFailures
()
test/TryMulticallClient.ts:35
↓ 2 callers
Method
clearSimulationFailures
()
test/MultiCallerClient.ts:42
↓ 2 callers
Method
clearTokenData
()
src/clients/TokenClient.ts:165
↓ 2 callers
Method
clearTokenShortfall
()
src/clients/TokenClient.ts:161
↓ 2 callers
Method
clearUnprofitableFills
()
src/clients/ProfitClient.ts:427
↓ 2 callers
Function
compareNormalizedAmounts
( excessA: ExcessOrDeficit, excessB: ExcessOrDeficit, tokenPricesUsd?: Map<string, BigNumber> )
src/rebalancer/utils/utils.ts:27
↓ 2 callers
Function
computeFeeDelta
(maxFeePerGas: BigNumber)
src/clients/TransactionClient.ts:524
↓ 2 callers
Method
computeFillLimits
* For all origin chains, map the relayer's deposit confirmation requirements to tiered USD amounts that can be * filled by this relayer. * @retu
src/relayer/Relayer.ts:621
↓ 2 callers
Method
computeStartingAndEndingBlock
( provider: providers.Provider, configuredStartingBlock: number | undefined, configuredEndingBlock
src/monitor/Monitor.ts:1145
↓ 2 callers
Function
configuredDirectBinanceChains
(token: SupportedToken)
src/rebalancer/buildRebalanceRoutes.ts:68
↓ 2 callers
Function
connectRedisClient
(logger?: winston.Logger, url = REDIS_URL)
src/utils/Redis.ts:11
↓ 2 callers
Function
constructCumulativeBalanceRebalancerClient
( logger: winston.Logger, baseSigner: Signer, rebalanceRoutesOverride?: RebalanceRoute[] )
src/rebalancer/RebalancerClientHelper.ts:54
↓ 2 callers
Function
constructHyperliquidExecutorClients
( config: HyperliquidExecutorConfig, logger: winston.Logger, baseSigner: Signer )
src/hyperliquid/HyperliquidExecutorClientHelper.ts:7
↓ 2 callers
Function
constructReadOnlyRebalancerClient
( logger: winston.Logger, baseSigner: Signer )
src/rebalancer/RebalancerClientHelper.ts:92
↓ 2 callers
Method
constructRelayFilledMrkdwn
( deposit: Deposit, repaymentChainId: number, realizedLpFeePct: BigNumber, totalUserFeePct: Bi
src/relayer/Relayer.ts:1603
↓ 2 callers
Function
constructSpokePoolClientsForFastDataworker
( logger: winston.Logger, hubPoolClient: HubPoolClient, config: DataworkerConfig, baseSigner: Signer,
src/dataworker/DataworkerClientHelper.ts:83
↓ 2 callers
Function
convertTokenAddressToSymbol
(chainId: number, tokenAddress: Address)
src/dataworker/PoolRebalanceUtils.ts:90
↓ 2 callers
Function
createPaxosTransitClient
(logger?: winston.Logger)
src/utils/PaxosTransitUtils.ts:350
↓ 2 callers
Method
createTransferRouteEscrowAddress
( toAddress: Address, _srcTokenSymbol: string, _dstTokenSymbol: string, normalizedAmount: stri
src/utils/BridgeUtils.ts:109
↓ 2 callers
Function
createViemCustomTransportFromEthersProvider
(providerChainId: number)
src/utils/ProviderUtils.ts:292
↓ 2 callers
Function
debugBuild
(message: string, extra: Record<string, unknown> = {})
src/jussi/economics/enrichEconomics.ts:54
↓ 2 callers
Function
decodeProofOutputs
(publicValuesBytes: string)
src/utils/ZkApiUtils.ts:33
↓ 2 callers
Function
decodeRelayData
(originChainId: number, destinationChainId: number, log: LogDescription)
scripts/spokepool.ts:79
↓ 2 callers
Function
dedupeGraphEdgeCandidates
(candidates: GraphEdgeCandidate[])
src/jussi/topology/edges.ts:324
↓ 2 callers
Method
defaultHeaders
()
src/utils/BridgeUtils.ts:219
↓ 2 callers
Function
describeBinanceDepositStatus
(status?: number)
scripts/swapOnBinance.ts:1846
↓ 2 callers
Method
dispute
()
src/dataworker/Disputer.ts:132
↓ 2 callers
Method
encodeSlowFillLeaf
( slowRelayTree: MerkleTree<SlowFillLeaf>, rootBundleId: number, leaf: SlowFillLeaf )
src/dataworker/Dataworker.ts:1508
↓ 2 callers
Method
enqueueFillRelayTxPromises
( txPromises: SvmFillRelayTxPromises, kind: SvmTxKind, message: string, mrkdwn: string )
src/clients/SvmFillerClient.ts:127
↓ 2 callers
Function
enrichPreparedTopology
( prepared: PreparedGraphTopologyForBuild, params: JussiGraphLiveDeps )
src/jussi/economics/enrichEconomics.ts:43
↓ 2 callers
Function
estimateCctpBreakdown
( candidate: GraphEdgeCandidate, amount: BigNumber, params: BridgeBreakdownParams )
src/jussi/economics/edgeCosts.ts:291
↓ 2 callers
Function
estimateDepositGasWithDeps
( depositPlan: DepositExecutionPlan, gasPricing: { priorityFeeScaler: number; maxFeePerGasScaler: number }
scripts/swapOnBinance.ts:690
↓ 2 callers
Function
estimateDirectionalBinanceMarginalOutputRate
( sourceToken: LogicalAsset, destinationToken: LogicalAsset, inputUsd: number, params: Pick<EdgePricin
src/jussi/economics/rates.ts:144
↓ 2 callers
Function
estimateDirectionalHyperliquidMarginalOutputRate
( sourceToken: LogicalAsset, destinationToken: LogicalAsset, inputUsd: number, params: Pick<EdgePricin
src/jussi/economics/rates.ts:214
↓ 2 callers
Function
estimateOftBreakdown
( candidate: GraphEdgeCandidate, amount: BigNumber, params: BridgeBreakdownParams )
src/jussi/economics/edgeCosts.ts:331
↓ 2 callers
Method
evaluateApiSignatures
()
src/gasless/GaslessRelayer.ts:573
↓ 2 callers
Function
expectCctpTransitions
(transitions: Array<{ from: MessageState; to: MessageState }>)
test/GaslessRelayer.ts:513
↓ 2 callers
Function
expectDepositsOnlyTransitions
(transitions: Array<{ from: MessageState; to: MessageState }>)
test/GaslessRelayer.ts:520
↓ 2 callers
Function
expectParseError
(args: string[], message: string)
test/JussiGraph.buildGraph.ts:85
↓ 2 callers
Function
familyForBridgeName
(bridgeName: string)
src/jussi/topology/edges.ts:374
↓ 2 callers
Method
fillImmediate
* Provide a simple yes/no on whether the deposit is eligible for an "instant fill". * @param deposit Deposit object to evaluate. * @todo Token p
src/gasless/GaslessRelayer.ts:423
↓ 2 callers
Function
fillIntoPrimitiveTypes
(fill: Fill)
test/utils/utils.ts:502
↓ 2 callers
Method
fillIsExclusive
(deposit: Deposit)
src/relayer/Relayer.ts:182
↓ 2 callers
Method
filterInitiatedTransfers
( deposits: BridgeResponse[], fromAddress: Address, eventConfig: EventSearchConfig, originProv
src/utils/BridgeUtils.ts:146
↓ 2 callers
Function
finalizeExchangeBreakdown
( state: ExchangeBreakdownState, family: Extract<EdgeFamily, "binance" | "hyperliquid"> )
src/jussi/economics/edgeCosts.ts:615
↓ 2 callers
Method
findEvent
* Use a number of key attributes from an Ethers event to find any corresponding stored event. Note that this does * not guarantee an exact 1:1 matc
src/utils/EventUtils.ts:105
↓ 2 callers
Function
findLastTransferFromDepositAddress
* Returns the last ERC20 `Transfer(address,address,uint256)` log in `receipt` whose `address` * matches `token` and whose `from` topic matches `depos
src/deposit-address/withdrawPayload.ts:48
↓ 2 callers
Function
findMessageSentEvents
( contract: Contract, senderAddresses: string[], searchConfig: EventSearchConfig )
src/finalizer/utils/linea/common.ts:265
← previous
next →
701–800 of 2,347, ranked by callers