Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: replaced astrochain with uniswap sepolia #7853

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
44 changes: 22 additions & 22 deletions packages/uniswap/src/data/graphql/uniswap-data-api/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@
directive @defer on FIELD

"""
Tells the service this field/object has access authorized by an API key.
Tells the service this field/object has access authorized by an OIDC token.
"""
directive @aws_api_key on OBJECT | FIELD_DEFINITION
directive @aws_oidc on OBJECT | FIELD_DEFINITION

"""
Tells the service this field/object has access authorized by a Lambda Authorizer.
"""
directive @aws_lambda on OBJECT | FIELD_DEFINITION

"""
Tells the service which subscriptions will be published to when this mutation is
Expand All @@ -17,18 +22,16 @@ directive @aws_publish(
subscriptions: [String]
) on FIELD_DEFINITION

"""
Tells the service this field/object has access authorized by a Lambda Authorizer.
"""
directive @aws_lambda on OBJECT | FIELD_DEFINITION
"""Directs the schema to enforce authorization on a field"""
directive @aws_auth(
"""List of cognito user pool groups which have access on this field"""
cognito_groups: [String]
) on FIELD_DEFINITION

"""
Tells the service this field/object has access authorized by a Cognito User Pools token.
Tells the service this field/object has access authorized by sigv4 signing.
"""
directive @aws_cognito_user_pools(
"""List of cognito user pool groups which have access on this field"""
cognito_groups: [String]
) on OBJECT | FIELD_DEFINITION
directive @aws_iam on OBJECT | FIELD_DEFINITION

"""Tells the service which mutation triggers this subscription."""
directive @aws_subscribe(
Expand All @@ -39,20 +42,17 @@ directive @aws_subscribe(
) on FIELD_DEFINITION

"""
Tells the service this field/object has access authorized by sigv4 signing.
Tells the service this field/object has access authorized by a Cognito User Pools token.
"""
directive @aws_iam on OBJECT | FIELD_DEFINITION
directive @aws_cognito_user_pools(
"""List of cognito user pool groups which have access on this field"""
cognito_groups: [String]
) on OBJECT | FIELD_DEFINITION

"""
Tells the service this field/object has access authorized by an OIDC token.
Tells the service this field/object has access authorized by an API key.
"""
directive @aws_oidc on OBJECT | FIELD_DEFINITION

"""Directs the schema to enforce authorization on a field"""
directive @aws_auth(
"""List of cognito user pool groups which have access on this field"""
cognito_groups: [String]
) on FIELD_DEFINITION
directive @aws_api_key on OBJECT | FIELD_DEFINITION

"""
Types, unions, and inputs (alphabetized):
Expand Down Expand Up @@ -194,7 +194,7 @@ enum Chain {
ZORA
ZKSYNC
UNICHAIN
ASTROCHAIN_SEPOLIA
UNICHAIN_SEPOLIA
WORLDCHAIN
MONAD_TESTNET
ARBITRUM_SEPOLIA
Expand Down
6 changes: 3 additions & 3 deletions packages/uniswap/src/features/chains/chainInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ export const UNIVERSE_CHAIN_INFO: Record<UniverseChainId, UniverseChainInfo> = {
sdkId: UniswapSDKChainId.UNICHAIN_SEPOLIA,
assetRepoNetworkName: undefined,
backendChain: {
chain: BackendChainId.AstrochainSepolia as GqlChainId,
chain: BackendChainId.UnichainSepolia as GqlChainId,
backendSupported: true,
isSecondaryChain: false,
nativeTokenBackendAddress: undefined,
Expand All @@ -889,8 +889,8 @@ export const UNIVERSE_CHAIN_INFO: Record<UniverseChainId, UniverseChainInfo> = {
},
helpCenterUrl: undefined,
infoLink: 'https://app.uniswap.org/explore', // need
infuraPrefix: 'astrochain-sepolia',
interfaceName: 'astrochain',
infuraPrefix: 'unichain-sepolia',
interfaceName: 'unichain',
label: 'Unichain Sepolia',
logo: UNICHAIN_SEPOLIA_LOGO,
nativeCurrency: {
Expand Down
2 changes: 1 addition & 1 deletion packages/uniswap/src/features/chains/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ describe('getEnabledChains', () => {
}),
).toEqual({
chains: [UniverseChainId.Sepolia, UniverseChainId.UnichainSepolia, UniverseChainId.MonadTestnet],
gqlChains: [Chain.AstrochainSepolia, Chain.MonadTestnet, Chain.EthereumSepolia],
gqlChains: [Chain.UnichainSepolia, Chain.MonadTestnet, Chain.EthereumSepolia],
defaultChainId: UniverseChainId.Sepolia,
isTestnetModeEnabled: true,
})
Expand Down
6 changes: 3 additions & 3 deletions packages/uniswap/src/features/chains/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export function fromGraphQLChain(chain: Chain | string | undefined): UniverseCha
return UniverseChainId.Sepolia
case Chain.Unichain:
return UniverseChainId.Unichain
case Chain.AstrochainSepolia:
case Chain.UnichainSepolia:
return UniverseChainId.UnichainSepolia
case Chain.Worldchain:
return UniverseChainId.WorldChain
Expand Down Expand Up @@ -146,7 +146,7 @@ export function fromUniswapWebAppLink(network: string | null): UniverseChainId |
return UniverseChainId.Sepolia
case Chain.Unichain.toLowerCase():
return UniverseChainId.Unichain
case Chain.AstrochainSepolia.toLowerCase():
case Chain.UnichainSepolia.toLowerCase():
return UniverseChainId.UnichainSepolia
case Chain.Worldchain.toLowerCase():
return UniverseChainId.WorldChain
Expand Down Expand Up @@ -186,7 +186,7 @@ export function toUniswapWebAppLink(chainId: UniverseChainId): string | null {
case UniverseChainId.Unichain:
return Chain.Unichain.toLowerCase()
case UniverseChainId.UnichainSepolia:
return Chain.AstrochainSepolia.toLowerCase()
return Chain.UnichainSepolia.toLowerCase()
case UniverseChainId.WorldChain:
return Chain.Worldchain.toLowerCase()
case UniverseChainId.Zksync:
Expand Down