Skip to content

Commit

Permalink
Revert "feat: Introduce GraphQLTokenFeeFetcher (no traffic)" (#747)
Browse files Browse the repository at this point in the history
Revert "feat: Introduce `GraphQLTokenFeeFetcher` (no traffic) (#736)"

This reverts commit 4bbc535.
  • Loading branch information
xrsv authored Jun 17, 2024
1 parent 4bbc535 commit 6445fd7
Show file tree
Hide file tree
Showing 13 changed files with 1 addition and 479 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ jobs:
test:
name: Run tests
runs-on: ubuntu-latest
env:
UNI_GRAPHQL_ENDPOINT: ${{ secrets.UNI_GRAPHQL_ENDPOINT }}
UNI_GRAPHQL_HEADER_ORIGIN: ${{ secrets.UNI_GRAPHQL_HEADER_ORIGIN }}

steps:
- name: Checkout Repo
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ The best way to develop and test the API is to deploy your own instance to AWS.
TENDERLY_PROJECT = '' # For enabling Tenderly simulations
TENDERLY_ACCESS_KEY = '' # For enabling Tenderly simulations
TENDERLY_NODE_API_KEY = '' # For enabling Tenderly node-level RPC access
ALCHEMY_QUERY_KEY = '' # For Alchemy subgraph query access
UNI_GRAPHQL_ENDPOINT = '' # For Uniswap graphql query access
UNI_GRAPHQL_HEADER_ORIGIN = '' # For Uniswap graphql query access
ALCHEMY_QUERY_KEY = '' For Alchemy subgraph query access
```
3. Install and build the package
```
Expand Down
12 changes: 0 additions & 12 deletions bin/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ export class RoutingAPIStage extends Stage {
unicornSecret: string
alchemyQueryKey?: string
decentralizedNetworkApiKey?: string
uniGraphQLEndpoint: string
uniGraphQLHeaderOrigin: string
}
) {
super(scope, id, props)
Expand All @@ -62,8 +60,6 @@ export class RoutingAPIStage extends Stage {
unicornSecret,
alchemyQueryKey,
decentralizedNetworkApiKey,
uniGraphQLEndpoint,
uniGraphQLHeaderOrigin,
} = props

const { url } = new RoutingAPIStack(this, 'RoutingAPI', {
Expand All @@ -84,8 +80,6 @@ export class RoutingAPIStage extends Stage {
unicornSecret,
alchemyQueryKey,
decentralizedNetworkApiKey,
uniGraphQLEndpoint,
uniGraphQLHeaderOrigin,
})
this.url = url
}
Expand Down Expand Up @@ -261,8 +255,6 @@ export class RoutingAPIPipeline extends Stack {
unicornSecret: unicornSecrets.secretValueFromJson('debug-config-unicorn-key').toString(),
alchemyQueryKey: routingApiNewSecrets.secretValueFromJson('alchemy-query-key').toString(),
decentralizedNetworkApiKey: routingApiNewSecrets.secretValueFromJson('decentralized-network-api-key').toString(),
uniGraphQLEndpoint: routingApiNewSecrets.secretValueFromJson('uni-graphql-endpoint').toString(),
uniGraphQLHeaderOrigin: routingApiNewSecrets.secretValueFromJson('uni-graphql-header-origin').toString(),
})

const betaUsEast2AppStage = pipeline.addStage(betaUsEast2Stage)
Expand All @@ -289,8 +281,6 @@ export class RoutingAPIPipeline extends Stack {
unicornSecret: unicornSecrets.secretValueFromJson('debug-config-unicorn-key').toString(),
alchemyQueryKey: routingApiNewSecrets.secretValueFromJson('alchemy-query-key').toString(),
decentralizedNetworkApiKey: routingApiNewSecrets.secretValueFromJson('decentralized-network-api-key').toString(),
uniGraphQLEndpoint: routingApiNewSecrets.secretValueFromJson('uni-graphql-endpoint').toString(),
uniGraphQLHeaderOrigin: routingApiNewSecrets.secretValueFromJson('uni-graphql-header-origin').toString(),
})

const prodUsEast2AppStage = pipeline.addStage(prodUsEast2Stage)
Expand Down Expand Up @@ -427,8 +417,6 @@ new RoutingAPIStack(app, 'RoutingAPIStack', {
tenderlyAccessKey: process.env.TENDERLY_ACCESS_KEY!,
tenderlyNodeApiKey: process.env.TENDERLY_NODE_API_KEY!,
unicornSecret: process.env.UNICORN_SECRET!,
uniGraphQLEndpoint: process.env.UNI_GRAPHQL_ENDPOINT!,
uniGraphQLHeaderOrigin: process.env.UNI_GRAPHQL_HEADER_ORIGIN!,
})

new RoutingAPIPipeline(app, 'RoutingAPIPipelineStack', {
Expand Down
6 changes: 0 additions & 6 deletions bin/stacks/routing-api-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ export class RoutingAPIStack extends cdk.Stack {
unicornSecret: string
alchemyQueryKey?: string
decentralizedNetworkApiKey?: string
uniGraphQLEndpoint: string
uniGraphQLHeaderOrigin: string
}
) {
super(parent, name, props)
Expand All @@ -74,8 +72,6 @@ export class RoutingAPIStack extends cdk.Stack {
unicornSecret,
alchemyQueryKey,
decentralizedNetworkApiKey,
uniGraphQLEndpoint,
uniGraphQLHeaderOrigin,
} = props

const {
Expand Down Expand Up @@ -133,8 +129,6 @@ export class RoutingAPIStack extends cdk.Stack {
tokenPropertiesCachingDynamoDb,
rpcProviderHealthStateDynamoDb,
unicornSecret,
uniGraphQLEndpoint,
uniGraphQLHeaderOrigin,
})

const accessLogGroup = new aws_logs.LogGroup(this, 'RoutingAPIGAccessLogs')
Expand Down
6 changes: 0 additions & 6 deletions bin/stacks/routing-lambda-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ export interface RoutingLambdaStackProps extends cdk.NestedStackProps {
tokenPropertiesCachingDynamoDb: aws_dynamodb.Table
rpcProviderHealthStateDynamoDb: aws_dynamodb.Table
unicornSecret: string
uniGraphQLEndpoint: string
uniGraphQLHeaderOrigin: string
}
export class RoutingLambdaStack extends cdk.NestedStack {
public readonly routingLambda: aws_lambda_nodejs.NodejsFunction
Expand Down Expand Up @@ -71,8 +69,6 @@ export class RoutingLambdaStack extends cdk.NestedStack {
tokenPropertiesCachingDynamoDb,
rpcProviderHealthStateDynamoDb,
unicornSecret,
uniGraphQLEndpoint,
uniGraphQLHeaderOrigin,
} = props

new CfnOutput(this, 'jsonRpcProviders', {
Expand Down Expand Up @@ -154,8 +150,6 @@ export class RoutingLambdaStack extends cdk.NestedStack {
// we will start using the correct ones going forward
TOKEN_PROPERTIES_CACHING_TABLE_NAME: tokenPropertiesCachingDynamoDb.tableName,
UNICORN_SECRET: unicornSecret,
UNI_GRAPHQL_ENDPOINT: uniGraphQLEndpoint,
UNI_GRAPHQL_HEADER_ORIGIN: uniGraphQLHeaderOrigin,
...jsonRpcProviders,
},
layers: [
Expand Down
38 changes: 0 additions & 38 deletions lib/graphql/graphql-client.ts

This file was deleted.

61 changes: 0 additions & 61 deletions lib/graphql/graphql-provider.ts

This file was deleted.

35 changes: 0 additions & 35 deletions lib/graphql/graphql-queries.ts

This file was deleted.

25 changes: 0 additions & 25 deletions lib/graphql/graphql-schemas.ts

This file was deleted.

75 changes: 0 additions & 75 deletions lib/graphql/graphql-token-fee-fetcher.ts

This file was deleted.

Loading

0 comments on commit 6445fd7

Please sign in to comment.