Skip to content

Commit

Permalink
refactor: removed code related to goverance.
Browse files Browse the repository at this point in the history
  • Loading branch information
mranilrai committed Sep 11, 2023
1 parent bcdbe1b commit c1f9873
Show file tree
Hide file tree
Showing 22 changed files with 0 additions and 1,322 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"class-validator": "^0.13.2",
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
"ethers-proxies": "^1.0.0",
"globby": "^12.0.2",
"graphql": "^16.1.0",
"graphql-request": "^3.7.0",
Expand Down
59 changes: 0 additions & 59 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ custom:
CYCLE_ANALYTICS_DATA: rewards-${self:custom.stage}
PROTOCOL_DATA: protocol-data-${self:custom.stage}
CHART_DATA: chart-data-${self:custom.stage}
GOVERNANCE_PROPOSALS_DATA: governance-proposals-data-${self:custom.stage}
INDEXING_META_DATA: indexing-meta-data-${self:custom.stage}

merkleProofs:
Expand Down Expand Up @@ -122,7 +121,6 @@ provider:
UNCLAIMED_SNAPSHOTS_DATA: ${self:custom.table.UNCLAIMED_SNAPSHOTS_DATA}
PROTOCOL_DATA: ${self:custom.table.PROTOCOL_DATA}
CHART_DATA: ${self:custom.table.CHART_DATA}
GOVERNANCE_PROPOSALS_DATA: ${self:custom.table.GOVERNANCE_PROPOSALS_DATA}
INDEXING_META_DATA: ${self:custom.table.INDEXING_META_DATA}
# General Defintions
REWARD_DATA: ${self:custom.merkleProofs.${self:custom.stage}}
Expand Down Expand Up @@ -446,45 +444,6 @@ resources:
- AttributeName: 'id'
AttributeType: 'S'

governanceProposalsData:
Type: AWS::DynamoDB::Table
Properties:
TableName: ${self:custom.table.GOVERNANCE_PROPOSALS_DATA}
BillingMode: PAY_PER_REQUEST
KeySchema:
- AttributeName: 'idx'
KeyType: 'HASH'
- AttributeName: 'creationBlock'
KeyType: 'RANGE'
AttributeDefinitions:
- AttributeName: 'idx'
AttributeType: 'S'
- AttributeName: 'creationBlock'
AttributeType: 'N'
- AttributeName: 'network'
AttributeType: 'S'
- AttributeName: 'updateBlock'
AttributeType: 'N'
- AttributeName: 'decodedCallData'
AttributeType: 'S'
GlobalSecondaryIndexes:
- IndexName: IndexGovernanceProposalsUpdateBlock
KeySchema:
- AttributeName: 'network'
KeyType: 'HASH'
- AttributeName: 'updateBlock'
KeyType: 'RANGE'
Projection:
ProjectionType: ALL
- IndexName: IndexGovernanceProposalsDecodedCallData
KeySchema:
- AttributeName: 'decodedCallData'
KeyType: 'HASH'
- AttributeName: 'updateBlock'
KeyType: 'RANGE'
Projection:
ProjectionType: ALL

indexingMetaData:
Type: AWS::DynamoDB::Table
Properties:
Expand Down Expand Up @@ -615,21 +574,3 @@ functions:
name: ${self:service}-${self:custom.stage}-index-protocol-metrics-snapshots
description: 'index protocol metrics'
rate: rate(1 day)

index-governance-proposals-events:
handler: src/indexers/governance-proposals-indexer.updateGovernanceProposals
timeout: 900
events:
- schedule:
name: ${self:service}-${self:custom.stage}-index-governance-proposals
description: 'index onchain governance proposals events'
rate: rate(20 minutes)

index-governance-proposals-calldata:
handler: src/indexers/governance-proposals-calldata-indexer.decodeGavernanceProposalsCallData
timeout: 900
events:
- schedule:
name: ${self:service}-${self:custom.stage}-index-governance-proposals-calldata
description: 'decoded indexed governance proposals calldata'
rate: rate(5 minutes)
33 changes: 0 additions & 33 deletions src/aws/models/governance-proposals-action.interface.ts

This file was deleted.

21 changes: 0 additions & 21 deletions src/aws/models/governance-proposals-disputes.interface.ts

This file was deleted.

27 changes: 0 additions & 27 deletions src/aws/models/governance-proposals-statuses.interface.ts

This file was deleted.

70 changes: 0 additions & 70 deletions src/aws/models/governance-proposals.model.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/config/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export const YIELD_ESTIMATES_DATA = getEnvVar('YIELD_ESTIMATES_DATA');
export const VAULT_YIELD_DATA = getEnvVar('VAULT_YIELD_DATA');
export const PROTOCOL_DATA = getEnvVar('PROTOCOL_DATA');
export const CHART_DATA = getEnvVar('CHART_DATA');
export const GOVERNANCE_PROPOSALS_DATA = getEnvVar('GOVERNANCE_PROPOSALS_DATA');
export const INDEXING_META_DATA = getEnvVar('INDEXING_META_DATA');
export const YIELD_PROJECTIONS_DATA = getEnvVar('YIELD_PROJECTIONS_DATA');

Expand Down
2 changes: 0 additions & 2 deletions src/controllers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { AccountsV3Controller } from './accounts/accounts.v3.controller';
import { ChartsController } from './charts/charts.controller';
import { DevelopmentController } from './dev/dev.controller';
import { GasController } from './gas/gas.controller';
import { GovernanceController } from './governance/governance.controller';
import { LeaderBoardsController } from './leaderboards/leaderboards.controller';
import { MetricsController } from './metrics/metrics.controller';
import { PricesController } from './prices/prices.controller';
Expand Down Expand Up @@ -45,7 +44,6 @@ export const V3_CONTROLLERS = [
MetricsController,
PricesController,
TokensController,
GovernanceController,

DevelopmentController,

Expand Down
2 changes: 0 additions & 2 deletions src/dev/dev.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Controller, Get, Inject, QueryParams, UseBefore } from '@tsed/common';
import { ContentType, Description, Hidden } from '@tsed/schema';

import DevelopmentFilter from '../common/filters/development-filter';
import { decodeGavernanceProposalsCallData } from '../indexers/governance-proposals-calldata-indexer';
import { DevelopmentService } from './dev.service';

@Controller('/dev')
Expand All @@ -16,7 +15,6 @@ export class DevelopmentController {
@ContentType('json')
@Description('Put any function that u want to test out')
async test(@QueryParams('param') param: string): Promise<string> {
await decodeGavernanceProposalsCallData();
return param;
}

Expand Down
8 changes: 0 additions & 8 deletions src/governance/governance.constants.ts

This file was deleted.

58 changes: 0 additions & 58 deletions src/governance/governance.controller.ts

This file was deleted.

Loading

0 comments on commit c1f9873

Please sign in to comment.