Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions lib/cron/cache-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ export const v4SubgraphUrlOverride = (chainId: ChainId) => {
return `https://api.aws-us-east-1.goldsky.com/c/uniswap2/gn/subgraphs/id/${process.env.GOLD_SKY_OPTIMISM_V4_ID}`
case ChainId.MONAD:
return `https://api.goldsky.com/api/private/${process.env.GOLD_SKY_API_KEY}/subgraphs/uniswap-v4-monad/prod/gn`
case ChainId.TEMPO:
return `https://api.goldsky.com/api/private/${process.env.GOLD_SKY_API_KEY}/subgraphs/uniswap-v4-tempo/prod/gn`
case ChainId.XLAYER:
return `https://gateway.thegraph.com/api/subgraphs/id/${process.env.GRAPH_XLAYER_V4_ID}`
case ChainId.AVALANCHE:
Expand Down Expand Up @@ -204,6 +206,8 @@ export const v3SubgraphUrlOverride = (chainId: ChainId) => {
return `https://api.aws-us-east-1.goldsky.com/c/uniswap2/gn/subgraphs/id/${process.env.GOLD_SKY_SONEIUM_V3_ID}`
case ChainId.MONAD:
return `https://api.goldsky.com/api/private/${process.env.GOLD_SKY_API_KEY}/subgraphs/uniswap-v3-monad/prod/gn`
case ChainId.TEMPO:
return `https://api.goldsky.com/api/private/${process.env.GOLD_SKY_API_KEY}/subgraphs/uniswap-v3-tempo/prod/gn`
case ChainId.XLAYER:
return `https://gateway.thegraph.com/api/subgraphs/id/${process.env.GRAPH_XLAYER_V3_ID}`
case ChainId.LINEA:
Expand Down Expand Up @@ -243,6 +247,8 @@ export const v2SubgraphUrlOverride = (chainId: ChainId) => {
return `https://api.aws-us-east-1.goldsky.com/c/uniswap/gn/subgraphs/id/${process.env.GOLD_SKY_SONEIUM_V2_ID}`
case ChainId.MONAD:
return `https://api.goldsky.com/api/private/${process.env.GOLD_SKY_API_KEY}/subgraphs/uniswap-v2-monad/prod/gn`
case ChainId.TEMPO:
return `https://api.goldsky.com/api/private/${process.env.GOLD_SKY_API_KEY}/subgraphs/uniswap-v2-tempo/prod/gn`
case ChainId.XLAYER:
return `https://gateway.thegraph.com/api/subgraphs/id/${process.env.GRAPH_XLAYER_V2_ID}`
case ChainId.LINEA:
Expand Down Expand Up @@ -473,6 +479,21 @@ export const chainProtocols = [
process.env.GOLD_SKY_BEARER_TOKEN
),
},
{
protocol: Protocol.V3,
chainId: ChainId.TEMPO,
timeout: 90000,
provider: new V3SubgraphProvider(
ChainId.TEMPO,
3,
90000,
true,
v3TrackedEthThreshold,
v3UntrackedUsdThreshold,
v3SubgraphUrlOverride(ChainId.TEMPO),
process.env.GOLD_SKY_BEARER_TOKEN
),
},
{
protocol: Protocol.V3,
chainId: ChainId.XLAYER,
Expand Down Expand Up @@ -700,6 +721,22 @@ export const chainProtocols = [
process.env.GOLD_SKY_BEARER_TOKEN
),
},
{
protocol: Protocol.V2,
chainId: ChainId.TEMPO,
timeout: 90000,
provider: new V2SubgraphProvider(
ChainId.TEMPO,
3,
90000,
true,
1000,
v2TrackedEthThreshold,
v2UntrackedUsdThreshold,
v2SubgraphUrlOverride(ChainId.TEMPO),
process.env.GOLD_SKY_BEARER_TOKEN
),
},
{
protocol: Protocol.V2,
chainId: ChainId.XLAYER,
Expand Down Expand Up @@ -957,6 +994,23 @@ export const chainProtocols = [
process.env.GOLD_SKY_BEARER_TOKEN
),
},
{
protocol: Protocol.V4,
chainId: ChainId.TEMPO,
timeout: 90000,
provider: new V4SubgraphProvider(
ChainId.TEMPO,
3,
90000,
true,
v4TrackedEthThreshold,
v4BaseZoraTrackedEthThreshold,
HOOKS_FOR_V4_SUBGRAPH_LOW_TVL_FILTERING,
v4UntrackedUsdThreshold,
v4SubgraphUrlOverride(ChainId.TEMPO),
process.env.GOLD_SKY_BEARER_TOKEN
),
},
{
protocol: Protocol.V4,
chainId: ChainId.XLAYER,
Expand Down
1 change: 1 addition & 0 deletions lib/util/defaultBlocksToLiveRoutesDB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,5 @@ export const DEFAULT_BLOCKS_TO_LIVE_ROUTES_DB: { [chain in ChainId]: number } =
[ChainId.SONEIUM]: 60,
[ChainId.XLAYER]: 60,
[ChainId.LINEA]: 60,
[ChainId.TEMPO]: 60,
}
1 change: 1 addition & 0 deletions lib/util/extraV4FeeTiersTickSpacingsHookAddresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,5 @@ export const EXTRA_V4_FEE_TICK_SPACINGS_HOOK_ADDRESSES: { [chain in ChainId]: Ar
[ChainId.SONEIUM]: emptyV4FeeTickSpacingsHookAddresses,
[ChainId.XLAYER]: emptyV4FeeTickSpacingsHookAddresses,
[ChainId.LINEA]: emptyV4FeeTickSpacingsHookAddresses,
[ChainId.TEMPO]: emptyV4FeeTickSpacingsHookAddresses,
}
1 change: 1 addition & 0 deletions lib/util/hooksAddressesAllowlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,4 +367,5 @@ export const HOOKS_ADDRESSES_ALLOWLIST: { [chain in ChainId]: Array<string> } =
[ChainId.SONEIUM]: [ADDRESS_ZERO],
[ChainId.XLAYER]: [ADDRESS_ZERO, AEGIS_V3],
[ChainId.LINEA]: [ADDRESS_ZERO],
[ChainId.TEMPO]: [ADDRESS_ZERO],
}
1 change: 1 addition & 0 deletions lib/util/newCachedRoutesRolloutPercent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ export const NEW_CACHED_ROUTES_ROLLOUT_PERCENT: { [chain in ChainId]: number } =
[ChainId.SONEIUM]: 100,
[ChainId.XLAYER]: 100,
[ChainId.LINEA]: 100,
[ChainId.TEMPO]: 100,
}
2 changes: 2 additions & 0 deletions lib/util/onChainQuoteProviderConfigs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1194,6 +1194,7 @@ export const NEW_QUOTER_DEPLOY_BLOCK: { [chainId in ChainId]: number } = {
[ChainId.SONEIUM]: -1,
[ChainId.XLAYER]: -1,
[ChainId.LINEA]: -1,
[ChainId.TEMPO]: -1,
}

// 0 threshold means it's not deployed yet
Expand Down Expand Up @@ -1231,6 +1232,7 @@ export const LIKELY_OUT_OF_GAS_THRESHOLD: { [chainId in ChainId]: number } = {
[ChainId.SONEIUM]: 0,
[ChainId.XLAYER]: 0,
[ChainId.LINEA]: 0,
[ChainId.TEMPO]: 0,
}

// TODO: Move this new addresses to SOR
Expand Down
1 change: 1 addition & 0 deletions lib/util/tenderlyNewEndpointRolloutPercent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ export const TENDERLY_NEW_ENDPOINT_ROLLOUT_PERCENT: { [chain in ChainId]: number
[ChainId.SONEIUM]: 100,
[ChainId.XLAYER]: 100,
[ChainId.LINEA]: 100,
[ChainId.TEMPO]: 100,
}
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"@uniswap/default-token-list": "^11.13.0",
"@uniswap/permit2-sdk": "^1.3.0",
"@uniswap/router-sdk": "^2.6.0",
"@uniswap/sdk-core": "^7.11.0",
"@uniswap/sdk-core": "^7.12.0",
"@uniswap/smart-order-router": "4.31.8",
"@uniswap/smart-wallet-sdk": "^2.1.1",
"@uniswap/token-lists": "^1.0.0-beta.33",
Expand Down
2 changes: 2 additions & 0 deletions test/mocha/e2e/quote.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3409,6 +3409,7 @@ describe('quote', function () {
[ChainId.SONEIUM]: () => USDC_ON(ChainId.SONEIUM),
[ChainId.XLAYER]: () => USDC_ON(ChainId.XLAYER),
[ChainId.LINEA]: () => null,
[ChainId.TEMPO]: () => null,
}

const TEST_ERC20_2: { [chainId in ChainId]: () => Token | null } = {
Expand Down Expand Up @@ -3446,6 +3447,7 @@ describe('quote', function () {
[ChainId.SONEIUM]: () => WNATIVE_ON(ChainId.SONEIUM),
[ChainId.XLAYER]: () => WNATIVE_ON(ChainId.XLAYER),
[ChainId.LINEA]: () => null,
[ChainId.TEMPO]: () => null,
}

// TODO: Find valid pools/tokens on optimistic kovan and polygon mumbai. We skip those tests for now.
Expand Down
Loading