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
init
* @description Perform one-time relayer init. Handle (for example) token approvals.
src/relayer/Relayer.ts:104
↓ 2 callers
Function
initLineaSdk
(l1ChainId: number, l2ChainId: number, signer: Signer)
src/finalizer/utils/linea/common.ts:43
↓ 2 callers
Function
initializeExchangeBreakdown
( candidate: GraphEdgeCandidate, pricingContext: RuntimePricingContext )
src/jussi/economics/edgeCosts.ts:563
↓ 2 callers
Method
initiateDepositV3
* v3 (upgradeable-counterfactual) deposit-execute path. The bot is a thin submitter: it relays * funding context to the quote-api execute endpoint,
src/deposit-address/DepositAddressHandler.ts:915
↓ 2 callers
Method
initiateFill
( deposit: RelayData & { destinationChainId: number }, originChainSpokePool: string )
src/gasless/GaslessRelayer.ts:938
↓ 2 callers
Function
isAllowedGaslessPair
( inputToken: Address | string, outputToken: Address | string, originChainId: number, destinationChain
src/utils/GaslessUtils.ts:115
↓ 2 callers
Function
isCCTPError
(error: unknown)
src/cctp-finalizer/errors.ts:99
↓ 2 callers
Function
isExclusivityRelative
(exclusivityParameter: number)
src/utils/GaslessUtils.ts:92
↓ 2 callers
Method
isHubChainContract
(address: EvmAddress)
src/adapter/bridges/OpStackWethBridge.ts:178
↓ 2 callers
Method
isL1OrL2Contract
(address: EvmAddress)
src/adapter/bridges/BinanceCEXBridge.ts:180
↓ 2 callers
Method
isL2ChainContract
(address: EvmAddress)
src/adapter/bridges/OpStackWethBridge.ts:181
↓ 2 callers
Function
isNetworkEnabledForDirection
(network: BinanceAssetNetwork, direction: "deposit" | "withdraw")
scripts/swapOnBinance.ts:1831
↓ 2 callers
Function
isPermit2NonceUsed
(permit2: Contract, owner: string, permitNonce: string)
src/utils/GaslessUtils.ts:388
↓ 2 callers
Function
isUnmeteredFastRebalance
(chainId: number, token: Address, hubChainId: number)
src/utils/FillUtils.ts:78
↓ 2 callers
Function
isWeekday
(now: Date = new Date())
src/utils/TimeUtils.ts:11
↓ 2 callers
Function
key
(event: Log)
src/libexec/RelayerSpokePoolListenerTVM.ts:49
↓ 2 callers
Method
l2TokenExistForL1Token
(l1Token: EvmAddress, l2ChainId: number)
src/clients/bridges/AdapterManager.ts:384
↓ 2 callers
Method
l2TokenForL1Token
(l1Token: EvmAddress, chainId: number)
src/clients/bridges/AdapterManager.ts:349
↓ 2 callers
Function
listPaxosTransitOrders
( client: PaxosTransitClient, userAddress: string, filter?: string )
src/utils/PaxosTransitUtils.ts:158
↓ 2 callers
Function
loadCumulativeModeBalances
( rebalancerConfig: RebalancerConfig, inventoryClient: InventoryClient )
src/rebalancer/index.ts:118
↓ 2 callers
Function
logProviderError
(providerName: string, err: unknown, backoffS: number)
src/libexec/RelayerSpokePoolListenerSVM.ts:134
↓ 2 callers
Function
makeDeposit
({ txId, status, network, coin }: { txId: string; status: number; network: string; coin: string })
test/swapOnBinance.ts:693
↓ 2 callers
Function
makeDepositMessage
* Build a GaslessDepositMessage with real USDC addresses. * Defaults: inputAmount == outputAmount == "1000000" (1 USDC).
test/GaslessRelayer.ts:190
↓ 2 callers
Function
makeHash
()
test/EventManager.ts:13
↓ 2 callers
Function
makeHash
()
test/RelayerSpokePoolListenerTVM.ts:7
↓ 2 callers
Function
makeHash
(seed?: number)
test/Relayer.IndexedSpokePoolClient.ts:45
↓ 2 callers
Function
makeSpokePoolClient
(chainId: number)
test/generic-adapters/SplitBridgeTracking.ts:111
↓ 2 callers
Function
makeStablecoinSymbol
()
test/BinanceUtils.ts:408
↓ 2 callers
Function
makeTestCctpMessage
(overrides?: Partial<GaslessDepositMessage["baseDepositData"]>)
test/GaslessRelayer.ts:587
↓ 2 callers
Function
makeWethUsdcSymbol
()
test/BinanceUtils.ts:420
↓ 2 callers
Function
makeWethUsdcSymbol
()
test/BinanceAdapter.helpers.ts:488
↓ 2 callers
Function
matchTokenSymbol
(tokenAddress: string, chainId: number)
src/utils/AddressUtils.ts:45
↓ 2 callers
Method
matchingPolicy
* Per-(token-pair) override: returns the first policy in the cached `RELAYER_POLICIES` registry * whose `DESTINATIONS_<srcSymbol>_<dstSymbol>` rout
src/clients/ProfitClient.ts:595
↓ 2 callers
Method
mintBond
(amount: BigNumber)
src/dataworker/Disputer.ts:114
↓ 2 callers
Method
multiCallTransactionCount
()
test/MultiCallerClient.ts:55
↓ 2 callers
Function
networkMatchesChain
(networkName: string, chainId: number)
scripts/swapOnBinance.ts:1805
↓ 2 callers
Function
networkRequiresMemo
(network: BinanceAssetNetwork)
scripts/swapOnBinance.ts:1838
↓ 2 callers
Function
normalizeBaseDepositData
* Normalizes BaseDepositData fields to match on-chain encoding. * This ensures consistent data representation between deposit submission and fill pat
src/utils/GaslessUtils.ts:263
↓ 2 callers
Function
normalizeNetworkName
(networkName: string)
scripts/swapOnBinance.ts:1801
↓ 2 callers
Function
normalizeSignature
(signature: string)
src/utils/GaslessUtils.ts:299
↓ 2 callers
Method
notifyIfUnknownCaller
(caller: string, action: BundleAction, txnRef: string)
src/monitor/Monitor.ts:1065
↓ 2 callers
Method
onBlock
(handler: (blockNumber: number, currentTime: number) => void)
src/clients/SpokePoolClient.ts:59
↓ 2 callers
Method
onEvents
( address: string, events: (string | AbiEvent)[], handler: (log: Log) => void, args?: Record<s
src/clients/EventListener.ts:107
↓ 2 callers
Function
optionalNumberFlag
(args: ParsedSwapArgs, flag: string, defaultValue: number)
scripts/swapOnBinance.ts:1057
↓ 2 callers
Function
paxosTransitOrderMatchesRoute
( order: PaxosTransitOrder, params: { wantAsset: string; sourceChainId: number; destinationCha
src/utils/PaxosTransitUtils.ts:141
↓ 2 callers
Function
persistArweaveTopicToCache
( topicCache: interfaces.CachingMechanismInterface | undefined, tag: string, data: Record<string, unknow
src/dataworker/DataworkerUtils.ts:572
↓ 2 callers
Function
prettyRelayerRefundLeaf
(leaves: RelayerRefundLeaf[])
scripts/constructEmergencyRoot.ts:16
↓ 2 callers
Function
processEndPollingLoop
( logger: winston.Logger, fileName: string, pollingDelay: number )
src/utils/ExecutionUtils.ts:8
↓ 2 callers
Method
publishJson
* Publishes a JSON-encoded message to `topicName`. Returns the GCP-assigned message id. * Throws if the client library exhausts its internal retrie
src/messaging/gcp/PubSub.ts:30
↓ 2 callers
Function
pushDirectedDifferentAssetRoutes
( routes: RebalanceRoute[], rule: DifferentAssetPairRule, sourceToken: SupportedToken, sourceChains: r
src/rebalancer/buildRebalanceRoutes.ts:181
↓ 2 callers
Method
putGraphBundle
(graphId: string, bundle: JussiPutGraphBundleRequest)
src/jussi/JussiApiClient.ts:35
↓ 2 callers
Function
putJsonWithTimeout
( url: string, body: unknown, headers: Record<string, string> = {}, timeoutMs = DEFAULT_JUSSI_API_TIME
src/jussi/JussiApiClient.ts:5
↓ 2 callers
Function
quoteLiveOftRouteTransfer
( candidate: GraphEdgeCandidate, amount: BigNumber, baseSigner: Signer, hubPoolChainId = DEFAULT_HUB_P
src/jussi/economics/quotes.ts:83
↓ 2 callers
Function
randomNumber
(ceil = 1_000_000)
test/Relayer.BasicFill.ts:267
↓ 2 callers
Function
readFile
(fileName: string)
src/utils/fsUtils.ts:15
↓ 2 callers
Function
readFileSync
(fileName: string)
src/utils/fsUtils.ts:5
↓ 2 callers
Function
readableBinanceWithdrawalStatus
(status?: number)
src/utils/BinanceUtils.ts:136
↓ 2 callers
Function
redisGetOrderDetailsForAdapter
( redisCache: RedisCache, adapterRedisPrefix: string, cloid: string, account: EvmAddress )
src/rebalancer/utils/utils.ts:114
↓ 2 callers
Method
refillBalances
()
src/refiller/Refiller.ts:122
↓ 2 callers
Function
removeEvent
(event: Log)
src/libexec/util/ipc.ts:52
↓ 2 callers
Method
renewPublishLockOrThrow
(token: string, lockTtlMs: number)
src/jussi/JussiGraphPublisher.ts:132
↓ 2 callers
Method
reportUnfilledDeposits
()
src/monitor/Monitor.ts:257
↓ 2 callers
Function
requireEnvironmentVariable
(name: string)
scripts/buildJussiGraph.ts:103
↓ 2 callers
Function
requiredChainFlag
(args: ParsedSwapArgs, flag: string)
scripts/swapOnBinance.ts:1022
↓ 2 callers
Method
requiredTokenApprovals
()
src/adapter/l2Bridges/OFTL2Bridge.ts:222
↓ 2 callers
Function
resolveBinanceCoinSymbol
(token: string)
src/jussi/topology/edges.ts:296
↓ 2 callers
Function
resolveCctpMaxSendAmountNative
(decimals: number)
src/jussi/economics/edgeCosts.ts:278
↓ 2 callers
Function
resolveChainIds
(chainIds: number[], fallback: number[] = [])
src/relayer/RelayerClientHelper.ts:157
↓ 2 callers
Function
resolveCrossChainTransferStructure
( finalizableMessage: PolygonTokensBridged, type: "misc" | "withdrawal", hubPoolClient: HubPoolClient )
src/finalizer/utils/polygon.ts:264
↓ 2 callers
Function
resolveHubChainId
(spokeChainId: number)
scripts/utils.ts:84
↓ 2 callers
Method
resolveL2TokenAddress
(_l1Token: EvmAddress)
src/adapter/bridges/SolanaUsdcCCTPBridge.ts:78
↓ 2 callers
Function
resolveNativePriceChainIdsForPrices
( graphJson: Pick<JussiGraphJson, "logical_assets" | "nodes"> )
scripts/buildJussiGraph.ts:186
↓ 2 callers
Method
resolveNativeToken
(chainId: number)
src/clients/ProfitClient.ts:226
↓ 2 callers
Function
resolveOftQuoteExtraOptions
(destinationChain: number)
src/jussi/economics/quotes.ts:33
↓ 2 callers
Function
resolveOftQuoteSendFeeAsset
(chainId: number)
src/jussi/economics/quotes.ts:23
↓ 2 callers
Function
resolvePositiveBinanceAmountNative
(value: string | undefined, decimals: number)
src/jussi/economics/edgeCosts.ts:267
↓ 2 callers
Method
resolveRemoteTokens
(chainId: number, hubPoolTokens: L1Token[])
src/clients/TokenClient.ts:240
↓ 2 callers
Function
resolveRequiredNativePriceChains
( logicalAssets: Record<string, JussiLogicalAssetDefinition>, nodeContexts: ManagedNodeContext[] )
src/jussi/topology/logicalAssets.ts:48
↓ 2 callers
Function
resolveSplitterBridgeMatch
( node: ManagedNodeContext, context: BridgeLookupContext, splitterBridges: { name: string }[] | undefine
src/jussi/topology/edges.ts:147
↓ 2 callers
Function
resolveSpokePoolActivationBlock
( chainId: number, hubPoolClient: HubPoolClient, blockNumber?: number )
src/common/ClientHelper.ts:65
↓ 2 callers
Function
resolveStepPrecision
(stepSize: string)
src/utils/BinanceUtils.ts:701
↓ 2 callers
Method
roundAmountToSend
* Rounds send amount so that dust doesn't get subtracted from it in the OFT contract. * @param amount amount to round * @returns amount rounded
src/adapter/bridges/OFTBridge.ts:96
↓ 2 callers
Method
routeEnabled
* @description Validate whether the origin and destination chain combination is permitted by relayer config. * @param originChainId chain ID for th
src/relayer/Relayer.ts:479
↓ 2 callers
Function
runPreparedFullBuild
( prepared: PreparedGraphTopology, logger: winston.Logger, graphId?: string )
scripts/buildJussiGraph.ts:278
↓ 2 callers
Method
runUpdateObservedCctpDeposits
(apiMessages: AnyGaslessDepositMessage[])
test/GaslessRelayer.ts:79
↓ 2 callers
Method
sAdd
(key: string, value: string)
src/cache/Redis.ts:109
↓ 2 callers
Method
sRem
(key: string, value: string)
src/cache/Redis.ts:117
↓ 2 callers
Function
schedule
()
src/utils/Tasks.ts:75
↓ 2 callers
Function
seedMocks
(seedBalances: { [chainId: string]: { [token: string]: BigNumber } })
test/InventoryClient.RefundChain.ts:139
↓ 2 callers
Function
serializeEdgeClassDefinition
( candidate: GraphEdgeCandidate, params: Pick<EdgePricingParams, "baseSigner" | "pricingContext" | "rebala
src/jussi/economics/rates.ts:31
↓ 2 callers
Method
setApprovals
()
src/rebalancer/utils/interfaces.ts:8
↓ 2 callers
Function
setBinanceDepositType
( depositChain: number, transactionHash: string, type: BinanceTransactionType, ttl?: number )
src/utils/BinanceUtils.ts:310
↓ 2 callers
Function
setBinanceWithdrawalType
( withdrawalChain: number, withdrawalId: string, type: BinanceTransactionType )
src/utils/BinanceUtils.ts:331
↓ 2 callers
Method
setBondTokenAllowance
()
src/clients/TokenClient.ts:212
↓ 2 callers
Method
setFillStatus
(deposit: Deposit, status: number)
src/relayer/Relayer.ts:1033
↓ 2 callers
Method
setGasCosts
(gasCosts: { [chainId: number]: TransactionCostEstimate })
test/mocks/MockProfitClient.ts:113
↓ 2 callers
Method
setGasMultiplier
(gasMultiplier: BigNumber)
test/mocks/MockProfitClient.ts:121
↓ 2 callers
Method
setHubPool
(address: string, hubPool: Contract)
test/generic-adapters/zkSync.ts:55
↓ 2 callers
Method
setL1Bridge
(address: string, bridge: Contract)
test/generic-adapters/Polygon.ts:33
↓ 2 callers
Method
setL1Bridge
(address: string, bridge: Contract)
test/generic-adapters/zkSync.ts:31
← previous
next →
901–1,000 of 2,347, ranked by callers