From 8546212638428fd5bef64f8c7c019b346303b4e7 Mon Sep 17 00:00:00 2001 From: dydxwill <119354122+dydxwill@users.noreply.github.com> Date: Fri, 28 Jun 2024 16:26:00 -0400 Subject: [PATCH] Revert "[OTE-419] Add GB_GEO to compliance reasons (backport #1697) (#1717)" This reverts commit f542b8b91b2bcb11fb9d59474e2f2e1e51f67221. --- ...0613174832_add_gb_to_compliance_reasons.ts | 19 ------------------- .../src/types/compliance-status-types.ts | 1 - .../comlink/public/api-documentation.md | 1 - indexer/services/comlink/public/swagger.json | 1 - .../helpers/compliance/compliance-utils.ts | 2 -- 5 files changed, 24 deletions(-) delete mode 100644 indexer/packages/postgres/src/db/migrations/migration_files/20240613174832_add_gb_to_compliance_reasons.ts diff --git a/indexer/packages/postgres/src/db/migrations/migration_files/20240613174832_add_gb_to_compliance_reasons.ts b/indexer/packages/postgres/src/db/migrations/migration_files/20240613174832_add_gb_to_compliance_reasons.ts deleted file mode 100644 index c83af715f3..0000000000 --- a/indexer/packages/postgres/src/db/migrations/migration_files/20240613174832_add_gb_to_compliance_reasons.ts +++ /dev/null @@ -1,19 +0,0 @@ -import * as Knex from 'knex'; - -import { formatAlterTableEnumSql } from '../helpers'; - -export async function up(knex: Knex): Promise { - return knex.raw(formatAlterTableEnumSql( - 'compliance_status', - 'reason', - ['MANUAL', 'US_GEO', 'CA_GEO', 'GB_GEO', 'SANCTIONED_GEO', 'COMPLIANCE_PROVIDER'], - )); -} - -export async function down(knex: Knex): Promise { - return knex.raw(formatAlterTableEnumSql( - 'compliance_status', - 'reason', - ['MANUAL', 'US_GEO', 'CA_GEO', 'SANCTIONED_GEO', 'COMPLIANCE_PROVIDER'], - )); -} diff --git a/indexer/packages/postgres/src/types/compliance-status-types.ts b/indexer/packages/postgres/src/types/compliance-status-types.ts index e5099ff073..2c2927da2f 100644 --- a/indexer/packages/postgres/src/types/compliance-status-types.ts +++ b/indexer/packages/postgres/src/types/compliance-status-types.ts @@ -6,7 +6,6 @@ export enum ComplianceReason { MANUAL = 'MANUAL', US_GEO = 'US_GEO', CA_GEO = 'CA_GEO', - GB_GEO = 'GB_GEO', SANCTIONED_GEO = 'SANCTIONED_GEO', COMPLIANCE_PROVIDER = 'COMPLIANCE_PROVIDER', } diff --git a/indexer/services/comlink/public/api-documentation.md b/indexer/services/comlink/public/api-documentation.md index f9b455aeb9..1f6e18ae63 100644 --- a/indexer/services/comlink/public/api-documentation.md +++ b/indexer/services/comlink/public/api-documentation.md @@ -3397,7 +3397,6 @@ This operation does not require authentication |*anonymous*|MANUAL| |*anonymous*|US_GEO| |*anonymous*|CA_GEO| -|*anonymous*|GB_GEO| |*anonymous*|SANCTIONED_GEO| |*anonymous*|COMPLIANCE_PROVIDER| diff --git a/indexer/services/comlink/public/swagger.json b/indexer/services/comlink/public/swagger.json index dd2b159ada..f5fdebe38f 100644 --- a/indexer/services/comlink/public/swagger.json +++ b/indexer/services/comlink/public/swagger.json @@ -369,7 +369,6 @@ "MANUAL", "US_GEO", "CA_GEO", - "GB_GEO", "SANCTIONED_GEO", "COMPLIANCE_PROVIDER" ], diff --git a/indexer/services/comlink/src/helpers/compliance/compliance-utils.ts b/indexer/services/comlink/src/helpers/compliance/compliance-utils.ts index 09d25949e0..7aead50b20 100644 --- a/indexer/services/comlink/src/helpers/compliance/compliance-utils.ts +++ b/indexer/services/comlink/src/helpers/compliance/compliance-utils.ts @@ -10,8 +10,6 @@ export function getGeoComplianceReason( return ComplianceReason.US_GEO; } else if (country === 'CA') { return ComplianceReason.CA_GEO; - } else if (country === 'GB') { - return ComplianceReason.GB_GEO; } else { return ComplianceReason.SANCTIONED_GEO; }