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
↓ 16 callers
Function
resolveBinanceAsset
(params: { accountCoins: Coin[]; tokenSymbol: string; chainId: number; direction: "deposit" | "withdra
scripts/swapOnBinance.ts:1215
↓ 16 callers
Method
resolveGasMultiplier
(deposit: Deposit)
src/clients/ProfitClient.ts:196
↓ 16 callers
Method
runEvaluateApiSignatures
()
test/GaslessRelayer.ts:63
↓ 16 callers
Function
startupLogLevel
(config: { pollingDelay: number })
src/utils/ExecutionUtils.ts:23
↓ 16 callers
Function
tokenAddress
(symbol: string, chainId: number)
test/swapOnBinance.ts:28
↓ 16 callers
Method
validatePendingRootBundle
( spokePoolClients: { [chainId: number]: SpokePoolClient }, earliestBlocksInSpokePoolClients: { [chain
src/dataworker/Dataworker.ts:605
↓ 15 callers
Method
buildPoolRebalanceRoot
( blockRangesForChains: number[][], spokePoolClients: SpokePoolClientsByChain, latestMainnetBlock?
src/dataworker/Dataworker.ts:259
↓ 15 callers
Function
generateSlowFillRequestFromDeposit
( deposit: interfaces.DepositWithBlock, fillEventOverride?: Partial<interfaces.FillWithBlock> )
test/Dataworker.loadData.slowFill.ts:104
↓ 15 callers
Function
generateV3Deposit
(eventOverride?: Partial<interfaces.DepositWithBlock>)
test/Dataworker.loadData.slowFill.ts:58
↓ 15 callers
Function
getContractAddress
(chainId: number, name: string)
src/common/ContractAddresses.ts:1045
↓ 15 callers
Function
getNativeTokenAddressForChain
(chainId: number)
src/utils/TokenUtils.ts:128
↓ 15 callers
Method
getQueuedTransactions
(chainId: number)
src/clients/MultiCallerClient.ts:92
↓ 15 callers
Method
getTokenInfoForAddress
(address: Address, _chainId: number)
test/mocks/MockHubPoolClient.ts:56
↓ 15 callers
Function
makeResolvedAsset
({ tokenSymbol, chainId, binanceCoin, contractAddress, withdrawFee = "0.1", }: { tokenSymbol: stri
test/swapOnBinance.ts:595
↓ 15 callers
Function
materializeNodeDefinitions
(templates: ManagedNodeTemplate[])
src/jussi/topology/nodes.ts:83
↓ 15 callers
Function
printLine
(label: string, value: string, indentLevel = 0, emphasized = false)
scripts/sweepBinanceBalance.ts:375
↓ 15 callers
Method
rebalanceInventory
()
test/mocks/MockRebalancerClient.ts:16
↓ 15 callers
Function
retrieveSignerFromCLIArgs
()
src/utils/CLIUtils.ts:13
↓ 15 callers
Function
setupDataworker
( ethers: EthersTestLibrary, maxRefundPerRelayerRefundLeaf: number, maxL1TokensPerPoolRebalanceLeaf: num
test/fixtures/Dataworker.Fixture.ts:61
↓ 15 callers
Function
stringifyThrownValue
(value: unknown)
src/utils/LogUtils.ts:5
↓ 15 callers
Method
submit
(txn: AugmentedTransaction)
src/dataworker/Disputer.ts:155
↓ 14 callers
Function
assertPromiseError
(promise: Promise<T>, errMessage?: string)
test/utils/utils.ts:75
↓ 14 callers
Function
buildEntry
(token: string, chainId: number, amount: BigNumber, priorityTier: number)
test/RebalancerClient.utils.ts:8
↓ 14 callers
Function
getRemoteTokenForL1Token
( _l1Token: EvmAddress, remoteChainId: number, hubChainId: number )
src/utils/TokenUtils.ts:50
↓ 14 callers
Function
makeDeposit
(network: string, amount: number, insertTime: number)
test/BinanceUtils.ts:31
↓ 14 callers
Method
testFillImmediate
( deposit: Pick<RelayData, "originChainId" | "outputToken" | "outputAmount"> & { destinationChainId:
test/GaslessRelayer.ts:97
↓ 14 callers
Function
toAddress
(address: string)
test/generic-adapters/Linea.ts:32
↓ 13 callers
Method
_routeRequiresSwap
(sourceToken: string, destinationToken: string)
src/rebalancer/adapters/binance.ts:1484
↓ 13 callers
Function
formatAmount
(amount: BigNumber, decimals: number)
scripts/sweepBinanceBalance.ts:367
↓ 13 callers
Method
log
(message: string, data?: AnyObject, level: DefaultLogLevels = "debug", fnName?: string)
src/adapter/BaseChainAdapter.ts:98
↓ 13 callers
Function
makeReceipt
Minimal transaction receipt that looks successful.
test/GaslessRelayer.ts:410
↓ 12 callers
Function
buildClient
()
test/ProfitClient.ConsiderProfitability.ts:688
↓ 12 callers
Method
fillRelay
( deposit: Deposit, repaymentChainId: number, realizedLpFeePct: BigNumber, totalUserFeePct: Bi
src/relayer/Relayer.ts:1119
↓ 12 callers
Function
generateV3FillFromDeposit
( deposit: interfaces.DepositWithBlock, fillEventOverride?: Partial<interfaces.FillWithBlock>,
test/Dataworker.loadData.prefill.ts:199
↓ 12 callers
Method
getEstimatedCost
(rebalanceRoute: RebalanceRoute, amountToTransfer: BigNumber, debugLog: boolean)
src/rebalancer/utils/interfaces.ts:17
↓ 12 callers
Method
getNamespacedKey
(key: string)
src/cache/Redis.ts:40
↓ 12 callers
Function
getNewBalanceAllocator
()
test/Dataworker.executePoolRebalances.ts:55
↓ 12 callers
Method
getUpcomingRefunds
(chainId: number, l1Token: EvmAddress)
test/mocks/MockInventoryClient.ts:63
↓ 12 callers
Function
makeEnv
(overrides: Record<string, string | undefined> = {})
test/RebalancerConfig.ts:10
↓ 12 callers
Function
makeFakeDepositEvent
Fake deposit event data returned by _extractDepositFromTransactionReceipt / _findDeposit.
test/GaslessRelayer.ts:433
↓ 12 callers
Function
normalizeIntegratorId
(integratorId: string)
src/utils/GaslessUtils.ts:141
↓ 12 callers
Method
setUpcomingRefunds
(l1Token: string, refunds: { [chainId: number]: BigNumber })
test/mocks/MockInventoryClient.ts:67
↓ 12 callers
Function
supportsBinanceIntermediateBridgeToken
(token: string)
src/utils/BinanceUtils.ts:610
↓ 12 callers
Function
toAddress
(address: string)
test/generic-adapters/Arbitrum.ts:45
↓ 12 callers
Function
toMegaWei
(num: string | number | BigNumber)
test/InventoryClient.RefundChain.ts:94
↓ 11 callers
Method
buildMultiSenderBundle
(transactions: AugmentedTransaction[])
src/clients/MultiCallerClient.ts:265
↓ 11 callers
Function
buildNoopLogger
()
test/JussiGraph.buildGraph.ts:159
↓ 11 callers
Function
clearEnv
()
test/ProfitClient.ConsiderProfitability.ts:675
↓ 11 callers
Function
depositForcesOriginChainRepayment
( deposit: Pick<DepositWithBlock, "inputToken" | "originChainId" | "fromLiteChain">, hubPoolClient: HubPoo
src/utils/FillUtils.ts:90
↓ 11 callers
Function
getLastBlockTime
(provider: providers.Provider)
test/utils/utils.ts:266
↓ 11 callers
Method
getOutstandingCrossChainTransferAmount
( address: Address, chainId: number, l1Token: EvmAddress, l2Token?: Address )
src/clients/bridges/CrossChainTransferClient.ts:15
↓ 11 callers
Function
getSvmProvider
( redisClient: CachingMechanismInterface | undefined = undefined, logger: winston.Logger = Logger, chain
src/utils/ProviderUtils.ts:336
↓ 11 callers
Function
isSignerWallet
(signer: Signer)
src/utils/SignerUtils.ts:175
↓ 11 callers
Method
setMockedOutstandingCrossChainTransfers
( chainId: number, address: Address, l1Token: EvmAddress, amount: BigNumber, l2Token?: Add
test/mocks/MockAdapterManager.ts:59
↓ 11 callers
Method
simulate
(txns: AugmentedTransaction[])
src/clients/TransactionClient.ts:103
↓ 11 callers
Function
updateAllClients
()
test/Relayer.UnfilledDeposits.ts:86
↓ 10 callers
Method
_executePoolLeavesAndSyncL1Tokens
( spokePoolClients: { [chainId: number]: SpokePoolClient }, balanceAllocator: BalanceAllocator, po
src/dataworker/Dataworker.ts:1669
↓ 10 callers
Method
_getAccountCoins
(symbol: string, skipCache = false)
src/rebalancer/adapters/binance.ts:1038
↓ 10 callers
Method
_getSpotMarketMetaForRoute
(sourceToken: string, destinationToken: string)
src/rebalancer/adapters/binance.ts:1357
↓ 10 callers
Method
_getTokenMeta
(token: string)
src/rebalancer/adapters/hyperliquid.ts:1031
↓ 10 callers
Method
_updateExchangeRatesBeforeExecutingNonHubChainLeaves
( latestLiquidReserves: Record<string, BigNumber>, balanceAllocator: BalanceAllocator, poolRebalan
src/dataworker/Dataworker.ts:2146
↓ 10 callers
Method
constructL1ToL2Txn
()
test/generic-adapters/SplitBridgeTracking.ts:145
↓ 10 callers
Function
deployMulticall3
(signer: SignerWithAddress)
test/utils/utils.ts:133
↓ 10 callers
Function
depositMessage
* EVM-origin correct_transfer message; `materials` overrides the counterfactualMaterials leaves and * `integrator` overrides the optional integrator
test/DepositAddressHandler.ts:37
↓ 10 callers
Function
depositMessageV3
v3 correct_transfer message mirroring the indexer's DepositAddressTransferItemV3 projection.
test/DepositAddressHandler.ts:102
↓ 10 callers
Function
deriveBinanceSpotMarketMeta
( sourceToken: string, destinationToken: string, symbol: Symbol<OrderType_LT> )
src/utils/BinanceUtils.ts:651
↓ 10 callers
Function
getCachedProvider
(chainId: number, redisEnabled = true)
src/utils/ProviderUtils.ts:32
↓ 10 callers
Method
getEnabledChains
()
src/clients/InventoryClient.ts:456
↓ 10 callers
Method
getLPFeeKey
* For a given deposit, map its relevant attributes to a string to be used as a lookup into the LP fee structure. * @param relayData An object consi
src/relayer/Relayer.ts:831
↓ 10 callers
Function
getNodeUrlList
( chainId: number, quorum = 1, transport: sdkProviders.RPCTransport = "https" )
src/utils/ProviderUtils.ts:368
↓ 10 callers
Function
getOutstandingBinanceDeposits
( deposits: BinanceDeposit[], withdrawals: BinanceWithdrawal[], depositNetwork: string )
src/utils/BinanceUtils.ts:525
↓ 10 callers
Function
getPendingBridgeStatusSetKey
(redisPrefix: string, status: STATUS, account: string)
src/rebalancer/utils/utils.ts:89
↓ 10 callers
Method
getPendingRebalances
(account: EvmAddress)
src/rebalancer/utils/interfaces.ts:29
↓ 10 callers
Method
getPossibleRepaymentChainIds
(deposit: Deposit)
src/clients/InventoryClient.ts:528
↓ 10 callers
Method
isInventoryManagementEnabled
()
src/clients/InventoryClient.ts:1673
↓ 10 callers
Function
spokePoolClientsToProviders
(spokePoolClients: { [chainId: number]: SpokePoolClient })
src/common/ClientHelper.ts:421
↓ 9 callers
Function
V3FillFromDeposit
( deposit: DepositWithBlock, relayer: string, repaymentChainId?: number, fillType = FillType.FastFill
test/utils/SpokePoolUtils.ts:6
↓ 9 callers
Method
buildMultiCallBundles
( txns: AugmentedTransaction[], chunkSize = DEFAULT_MULTICALL_CHUNK_SIZE )
src/clients/MultiCallerClient.ts:371
↓ 9 callers
Function
buildRebalanceRoutes
(rebalancerConfig: RebalancerConfig)
src/rebalancer/buildRebalanceRoutes.ts:225
↓ 9 callers
Method
calculateFillProfitability
* @param deposit Deposit object. * @param lpFeePct Predetermined LP fee as a multiplier of the deposit inputAmount. * @param minRelayerFeePct Re
src/clients/ProfitClient.ts:479
↓ 9 callers
Method
clearTransactionQueue
(chainId: number | null = null)
src/clients/SvmFillerClient.ts:295
↓ 9 callers
Method
computeOriginChainLimits
* For a given origin chain, map the relayer's deposit confirmation requirements to tiered USD amounts that can be * filled by this relayer. * @p
src/relayer/Relayer.ts:567
↓ 9 callers
Function
convertBinanceRouteAmount
(params: { amount: BigNumber; sourceTokenDecimals: number; destinationTokenDecimals: number; isBuy: bo
src/utils/BinanceUtils.ts:678
↓ 9 callers
Function
deployAndConfigureHubPool
( signer: SignerWithAddress, spokePools: { l2ChainId: number; spokePool: Contract }[], finderAddress: st
test/utils/utils.ts:176
↓ 9 callers
Function
depositIntoPrimitiveTypes
(deposit: Deposit)
test/utils/utils.ts:572
↓ 9 callers
Function
fakeReceipt
(logs: Array<Partial<TransactionReceipt["logs"][number]>>)
test/DepositAddressHandler.publish.ts:96
↓ 9 callers
Function
getContractAbi
(chainId: number, name: string)
src/common/ContractAddresses.ts:1033
↓ 9 callers
Function
getDeployedContract
(contractName: string, networkId: number, signer?: Signer)
src/utils/ContractUtils.ts:45
↓ 9 callers
Function
getDepositKey
(depositMessage: AnyDepositAddressMessage)
src/utils/DepositAddressUtils.ts:81
↓ 9 callers
Function
getInventoryEquivalentL1TokenAddress
( l2Token: Address, chainId: number, hubChainId = CHAIN_IDs.MAINNET )
src/utils/TokenUtils.ts:71
↓ 9 callers
Method
getValidatedRootBundles
()
test/mocks/MockHubPoolClient.ts:29
↓ 9 callers
Function
hasNode
(chainId: number, symbol: string)
test/JussiGraph.buildGraph.ts:334
↓ 9 callers
Function
isCompletedBinanceWithdrawal
(status?: number)
src/utils/BinanceUtils.ts:388
↓ 9 callers
Function
isSvmLeafAlreadyClaimedError
(err: unknown)
src/utils/LogUtils.ts:104
↓ 9 callers
Function
makeBridgeEvent
(amount: BigNumber, txnRef: string)
test/generic-adapters/SplitBridgeTracking.ts:119
↓ 9 callers
Function
reconcileWindow
( current: Log[], posted: Map<string, Log>, windowStart: number )
src/libexec/RelayerSpokePoolListenerTVM.ts:44
↓ 9 callers
Function
setFillImmediateThreshold
* Helper to set fillImmediate threshold dynamically based on a message's outputAmount. * Validates that the output token is a stablecoin before setti
test/GaslessRelayer.ts:548
↓ 9 callers
Method
setMockBalances
(chainId: number, token: Address, holder: Address, balance?: BigNumber)
test/BalanceAllocator.ts:12
↓ 9 callers
Function
tagIntegratorId
(txData: string, integratorId: string)
src/utils/GaslessUtils.ts:154
↓ 8 callers
Method
_convertSourceToDestination
( sourceToken: string, sourceChain: number, destinationToken: string, destinationChain: number
src/rebalancer/adapters/binance.ts:1380
← previous
next →
101–200 of 2,347, ranked by callers