diff --git a/webserver/server/app/controllers/DelegationForAddressController.ts b/webserver/server/app/controllers/DelegationForAddressController.ts index 5bd5f308..b12d3744 100644 --- a/webserver/server/app/controllers/DelegationForAddressController.ts +++ b/webserver/server/app/controllers/DelegationForAddressController.ts @@ -8,7 +8,7 @@ import { Errors } from '../../../shared/errors'; import type { EndpointTypes } from '../../../shared/routes'; import { Routes } from '../../../shared/routes'; import { delegationForAddress } from '../services/DelegationForAddress'; -import { DelegationForAddressResponse } from '../../../shared/models/DelegationForAddress'; +import type { DelegationForAddressResponse } from '../../../shared/models/DelegationForAddress'; import { Address } from '@dcspark/cardano-multiplatform-lib-nodejs'; const route = Routes.delegationForAddress; diff --git a/webserver/server/app/controllers/DelegationForPoolController.ts b/webserver/server/app/controllers/DelegationForPoolController.ts index 696fb6b4..3419dbcf 100644 --- a/webserver/server/app/controllers/DelegationForPoolController.ts +++ b/webserver/server/app/controllers/DelegationForPoolController.ts @@ -6,7 +6,7 @@ import { genErrorMessage, type ErrorShape, Errors } from '../../../shared/errors import type { EndpointTypes } from '../../../shared/routes'; import { Routes } from '../../../shared/routes'; import { delegationsForPool } from '../services/DelegationForPool'; -import { DelegationForPoolResponse } from '../../../shared/models/DelegationForPool'; +import type { DelegationForPoolResponse } from '../../../shared/models/DelegationForPool'; import { POOL_DELEGATION_LIMIT } from '../../../shared/constants'; const route = Routes.delegationForPool; diff --git a/webserver/server/app/services/DelegationForAddress.ts b/webserver/server/app/services/DelegationForAddress.ts index e4a9db2f..00bf7805 100644 --- a/webserver/server/app/services/DelegationForAddress.ts +++ b/webserver/server/app/services/DelegationForAddress.ts @@ -1,5 +1,6 @@ import type { PoolClient } from 'pg'; -import { ISqlStakeDelegationForAddressResult, sqlStakeDelegationForAddress } from '../models/delegation/delegationForAddress.queries'; +import type { ISqlStakeDelegationForAddressResult} from '../models/delegation/delegationForAddress.queries'; +import { sqlStakeDelegationForAddress } from '../models/delegation/delegationForAddress.queries'; export async function delegationForAddress(request: { address: Buffer, diff --git a/webserver/server/app/services/DelegationForPool.ts b/webserver/server/app/services/DelegationForPool.ts index fa43dd03..2854016b 100644 --- a/webserver/server/app/services/DelegationForPool.ts +++ b/webserver/server/app/services/DelegationForPool.ts @@ -1,6 +1,6 @@ import type { PoolClient } from 'pg'; -import { ISqlStakeDelegationByPoolResult, sqlStakeDelegationByPool } from '../models/delegation/delegationsForPool.queries'; - +import type { ISqlStakeDelegationByPoolResult} from '../models/delegation/delegationsForPool.queries'; +import { sqlStakeDelegationByPool } from '../models/delegation/delegationsForPool.queries'; export async function delegationsForPool(request: { range: { minSlot: number, maxSlot: number },