diff --git a/renamer.ts b/renamer.ts new file mode 100644 index 000000000..807ce8355 --- /dev/null +++ b/renamer.ts @@ -0,0 +1,145 @@ +import fs from "fs"; +import path from "path"; + +// Convert camelCase to kebab-case +function toKebabCase(filename: string): string { + return filename.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(); +} + +// Iteratively process files and directories +function processFilesAndFolders(rootDir: string) { + const queue: string[] = [rootDir]; + + while (queue.length > 0) { + const currentPath = queue.pop()!; + const entries = fs.readdirSync(currentPath, { withFileTypes: true }); + + for (const entry of entries) { + const fullPath = path.join(currentPath, entry.name); + + // Handle directories first + if (entry.isDirectory()) { + const newName = toKebabCase(entry.name); + if (newName !== entry.name) { + const newPath = path.join(currentPath, newName); + + if (fs.existsSync(newPath)) { + console.error( + `Conflict: ${newPath} already exists. Skipping ${fullPath}`, + ); + continue; + } + + console.log(`Renaming directory: ${fullPath} -> ${newPath}`); + fs.renameSync(fullPath, newPath); + + // Update imports after renaming + updateImports(fullPath, newPath); + + // Add the renamed directory back to the queue for further processing + queue.push(newPath); + } else { + queue.push(fullPath); // If no renaming, continue processing the directory + } + } else { + // Handle files + const newName = toKebabCase(entry.name); + if (newName !== entry.name) { + const newPath = path.join(currentPath, newName); + + if (fs.existsSync(newPath)) { + console.error( + `Conflict: ${newPath} already exists. Skipping ${fullPath}`, + ); + continue; + } + + console.log(`Renaming file: ${fullPath} -> ${newPath}`); + fs.renameSync(fullPath, newPath); + + // Update imports after renaming + updateImports(fullPath, newPath); + } + } + } + } +} + +// Corrected `updateImports` function +function updateImports(oldPath: string, newPath: string) { + const projectRoot = path.resolve("./"); // Adjust project root if needed + const allFiles = getAllFiles(projectRoot, /\.(ts|js|tsx|jsx)$/); + + const normalizedOldPath = normalizePath(oldPath); + const normalizedNewPath = normalizePath(newPath); + + for (const file of allFiles) { + let content = fs.readFileSync(file, "utf-8"); + + const relativeOldPath = normalizePath( + formatRelativePath(file, normalizedOldPath), + ); + const relativeNewPath = normalizePath( + formatRelativePath(file, normalizedNewPath), + ); + + const importRegex = new RegExp( + `(['"\`])(${escapeRegex(relativeOldPath)})(['"\`])`, + "g", + ); + + if (importRegex.test(content)) { + const updatedContent = content.replace( + importRegex, + `$1${relativeNewPath}$3`, + ); + fs.writeFileSync(file, updatedContent, "utf-8"); + console.log(`Updated imports in: ${file}`); + } + } +} + +// Normalize file paths for consistent imports +function normalizePath(p: string): string { + return p.replace(/\\/g, "/").replace(/\.[tj]sx?$/, ""); // Ensure forward slashes and remove extensions +} + +// Format paths as relative imports +function formatRelativePath(from: string, to: string): string { + const relativePath = path.relative(path.dirname(from), to); + return normalizePath( + relativePath.startsWith(".") ? relativePath : `./${relativePath}`, + ); // Ensure ./ prefix +} + +// Escape special regex characters in paths +function escapeRegex(string: string): string { + return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); +} + +// Get all project files iteratively +function getAllFiles(rootDir: string, extensions: RegExp): string[] { + const result: string[] = []; + const stack: string[] = [rootDir]; + + while (stack.length > 0) { + const currentDir = stack.pop()!; + const entries = fs.readdirSync(currentDir, { withFileTypes: true }); + + for (const entry of entries) { + const fullPath = path.join(currentDir, entry.name); + + if (entry.isDirectory() && !entry.name.startsWith(".")) { + stack.push(fullPath); + } else if (extensions.test(entry.name)) { + result.push(fullPath); + } + } + } + + return result; +} + +// Run the script +const projectRoot = path.resolve("./src/shared/utils"); // Change as needed +processFilesAndFolders(projectRoot); diff --git a/src/server/index.ts b/src/server/index.ts index a0a576dfc..995e93c38 100644 --- a/src/server/index.ts +++ b/src/server/index.ts @@ -3,7 +3,7 @@ import fastify, { type FastifyInstance } from "fastify"; import * as fs from "node:fs"; import path from "node:path"; import { URL } from "node:url"; -import { clearCacheCron } from "../shared/utils/cron/clearCacheCron"; +import { clearCacheCron } from "../shared/utils/cron/clear-cache-cron"; import { env } from "../shared/utils/env"; import { logger } from "../shared/utils/logger"; import { metricsServer } from "../shared/utils/prometheus"; diff --git a/src/server/middleware/auth.ts b/src/server/middleware/auth.ts index 022519a41..41ad84e0d 100644 --- a/src/server/middleware/auth.ts +++ b/src/server/middleware/auth.ts @@ -10,15 +10,15 @@ import type { FastifyInstance } from "fastify"; import type { FastifyRequest } from "fastify/types/request"; import jsonwebtoken, { type JwtPayload } from "jsonwebtoken"; import { validate as uuidValidate } from "uuid"; -import { getPermissions } from "../../shared/db/permissions/getPermissions"; -import { createToken } from "../../shared/db/tokens/createToken"; -import { revokeToken } from "../../shared/db/tokens/revokeToken"; +import { getPermissions } from "../../shared/db/permissions/get-permissions"; +import { createToken } from "../../shared/db/tokens/create-token"; +import { revokeToken } from "../../shared/db/tokens/revoke-token"; import { WebhooksEventTypes } from "../../shared/schemas/webhooks"; import { THIRDWEB_DASHBOARD_ISSUER, handleSiwe } from "../../shared/utils/auth"; -import { getAccessToken } from "../../shared/utils/cache/accessToken"; -import { getAuthWallet } from "../../shared/utils/cache/authWallet"; -import { getConfig } from "../../shared/utils/cache/getConfig"; -import { getWebhooksByEventType } from "../../shared/utils/cache/getWebhook"; +import { getAccessToken } from "../../shared/utils/cache/access-token"; +import { getAuthWallet } from "../../shared/utils/cache/auth-wallet"; +import { getConfig } from "../../shared/utils/cache/get-config"; +import { getWebhooksByEventType } from "../../shared/utils/cache/get-webhook"; import { getKeypair } from "../../shared/utils/cache/keypair"; import { env } from "../../shared/utils/env"; import { logger } from "../../shared/utils/logger"; diff --git a/src/server/middleware/cors.ts b/src/server/middleware/cors.ts index da81b02fa..62e074ee4 100644 --- a/src/server/middleware/cors.ts +++ b/src/server/middleware/cors.ts @@ -1,5 +1,5 @@ import type { FastifyInstance } from "fastify"; -import { getConfig } from "../../shared/utils/cache/getConfig"; +import { getConfig } from "../../shared/utils/cache/get-config"; import { ADMIN_QUEUES_BASEPATH } from "./adminRoutes"; const STANDARD_METHODS = "GET,POST,DELETE,PUT,PATCH,HEAD,PUT,PATCH,POST,DELETE"; diff --git a/src/server/routes/admin/nonces.ts b/src/server/routes/admin/nonces.ts index 75e109405..9d73da326 100644 --- a/src/server/routes/admin/nonces.ts +++ b/src/server/routes/admin/nonces.ts @@ -12,7 +12,7 @@ import { lastUsedNonceKey, recycledNoncesKey, sentNoncesKey, -} from "../../../shared/db/wallets/walletNonce"; +} from "../../../shared/db/wallets/wallet-nonce"; import { getChain } from "../../../shared/utils/chain"; import { redis } from "../../../shared/utils/redis/redis"; import { thirdwebClient } from "../../../shared/utils/sdk"; diff --git a/src/server/routes/admin/transaction.ts b/src/server/routes/admin/transaction.ts index d8eace0b7..4308a5390 100644 --- a/src/server/routes/admin/transaction.ts +++ b/src/server/routes/admin/transaction.ts @@ -4,8 +4,8 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { stringify } from "thirdweb/utils"; import { TransactionDB } from "../../../shared/db/transactions/db"; -import { getConfig } from "../../../shared/utils/cache/getConfig"; -import { maybeDate } from "../../../shared/utils/primitiveTypes"; +import { getConfig } from "../../../shared/utils/cache/get-config"; +import { maybeDate } from "../../../shared/utils/primitive-types"; import { redis } from "../../../shared/utils/redis/redis"; import { MineTransactionQueue } from "../../../worker/queues/mineTransactionQueue"; import { SendTransactionQueue } from "../../../worker/queues/sendTransactionQueue"; diff --git a/src/server/routes/auth/access-tokens/create.ts b/src/server/routes/auth/access-tokens/create.ts index b69b6cf20..c45931417 100644 --- a/src/server/routes/auth/access-tokens/create.ts +++ b/src/server/routes/auth/access-tokens/create.ts @@ -3,10 +3,10 @@ import { buildJWT } from "@thirdweb-dev/auth"; import { LocalWallet } from "@thirdweb-dev/wallets"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { updateConfiguration } from "../../../../shared/db/configuration/updateConfiguration"; -import { createToken } from "../../../../shared/db/tokens/createToken"; -import { accessTokenCache } from "../../../../shared/utils/cache/accessToken"; -import { getConfig } from "../../../../shared/utils/cache/getConfig"; +import { updateConfiguration } from "../../../../shared/db/configuration/update-configuration"; +import { createToken } from "../../../../shared/db/tokens/create-token"; +import { accessTokenCache } from "../../../../shared/utils/cache/access-token"; +import { getConfig } from "../../../../shared/utils/cache/get-config"; import { env } from "../../../../shared/utils/env"; import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; import { AccessTokenSchema } from "./getAll"; diff --git a/src/server/routes/auth/access-tokens/getAll.ts b/src/server/routes/auth/access-tokens/getAll.ts index 9cbe3646b..739cf96d4 100644 --- a/src/server/routes/auth/access-tokens/getAll.ts +++ b/src/server/routes/auth/access-tokens/getAll.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getAccessTokens } from "../../../../shared/db/tokens/getAccessTokens"; +import { getAccessTokens } from "../../../../shared/db/tokens/get-access-tokens"; import { AddressSchema } from "../../../schemas/address"; import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; diff --git a/src/server/routes/auth/access-tokens/revoke.ts b/src/server/routes/auth/access-tokens/revoke.ts index 39aad0a00..6c41a3c96 100644 --- a/src/server/routes/auth/access-tokens/revoke.ts +++ b/src/server/routes/auth/access-tokens/revoke.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { revokeToken } from "../../../../shared/db/tokens/revokeToken"; -import { accessTokenCache } from "../../../../shared/utils/cache/accessToken"; +import { revokeToken } from "../../../../shared/db/tokens/revoke-token"; +import { accessTokenCache } from "../../../../shared/utils/cache/access-token"; import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; const requestBodySchema = Type.Object({ diff --git a/src/server/routes/auth/access-tokens/update.ts b/src/server/routes/auth/access-tokens/update.ts index f09b5ce5f..0c0c178ee 100644 --- a/src/server/routes/auth/access-tokens/update.ts +++ b/src/server/routes/auth/access-tokens/update.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { updateToken } from "../../../../shared/db/tokens/updateToken"; -import { accessTokenCache } from "../../../../shared/utils/cache/accessToken"; +import { updateToken } from "../../../../shared/db/tokens/update-token"; +import { accessTokenCache } from "../../../../shared/utils/cache/access-token"; import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; const requestBodySchema = Type.Object({ diff --git a/src/server/routes/auth/permissions/grant.ts b/src/server/routes/auth/permissions/grant.ts index fcde00839..4f390e9d1 100644 --- a/src/server/routes/auth/permissions/grant.ts +++ b/src/server/routes/auth/permissions/grant.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { updatePermissions } from "../../../../shared/db/permissions/updatePermissions"; +import { updatePermissions } from "../../../../shared/db/permissions/update-permissions"; import { AddressSchema } from "../../../schemas/address"; import { permissionsSchema } from "../../../../shared/schemas/auth"; import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; diff --git a/src/server/routes/auth/permissions/revoke.ts b/src/server/routes/auth/permissions/revoke.ts index 6e72d7364..23dd4d8b9 100644 --- a/src/server/routes/auth/permissions/revoke.ts +++ b/src/server/routes/auth/permissions/revoke.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { deletePermissions } from "../../../../shared/db/permissions/deletePermissions"; +import { deletePermissions } from "../../../../shared/db/permissions/delete-permissions"; import { AddressSchema } from "../../../schemas/address"; import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; diff --git a/src/server/routes/backend-wallet/cancel-nonces.ts b/src/server/routes/backend-wallet/cancel-nonces.ts index 47803817c..89af789c0 100644 --- a/src/server/routes/backend-wallet/cancel-nonces.ts +++ b/src/server/routes/backend-wallet/cancel-nonces.ts @@ -5,7 +5,7 @@ import { eth_getTransactionCount, getRpcClient } from "thirdweb"; import { checksumAddress } from "thirdweb/utils"; import { getChain } from "../../../shared/utils/chain"; import { thirdwebClient } from "../../../shared/utils/sdk"; -import { sendCancellationTransaction } from "../../../shared/utils/transaction/cancelTransaction"; +import { sendCancellationTransaction } from "../../../shared/utils/transaction/cancel-transaction"; import { requestQuerystringSchema, standardResponseSchema, diff --git a/src/server/routes/backend-wallet/create.ts b/src/server/routes/backend-wallet/create.ts index 64162c5d0..2fc800361 100644 --- a/src/server/routes/backend-wallet/create.ts +++ b/src/server/routes/backend-wallet/create.ts @@ -7,7 +7,7 @@ import { ENTRYPOINT_ADDRESS_v0_7, } from "thirdweb/wallets/smart"; import { WalletType } from "../../../shared/schemas/wallet"; -import { getConfig } from "../../../shared/utils/cache/getConfig"; +import { getConfig } from "../../../shared/utils/cache/get-config"; import { createCustomError } from "../../middleware/error"; import { AddressSchema } from "../../schemas/address"; import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; diff --git a/src/server/routes/backend-wallet/getAll.ts b/src/server/routes/backend-wallet/getAll.ts index 0a2b0e36f..a9ba04a0f 100644 --- a/src/server/routes/backend-wallet/getAll.ts +++ b/src/server/routes/backend-wallet/getAll.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getAllWallets } from "../../../shared/db/wallets/getAllWallets"; +import { getAllWallets } from "../../../shared/db/wallets/get-all-wallets"; import { standardResponseSchema, walletDetailsSchema, diff --git a/src/server/routes/backend-wallet/getBalance.ts b/src/server/routes/backend-wallet/getBalance.ts index 01f262991..362a98909 100644 --- a/src/server/routes/backend-wallet/getBalance.ts +++ b/src/server/routes/backend-wallet/getBalance.ts @@ -1,7 +1,7 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getSdk } from "../../../shared/utils/cache/getSdk"; +import { getSdk } from "../../../shared/utils/cache/get-sdk"; import { AddressSchema } from "../../schemas/address"; import { currencyValueSchema, diff --git a/src/server/routes/backend-wallet/getNonce.ts b/src/server/routes/backend-wallet/getNonce.ts index f5ef87ac3..aedd1b86c 100644 --- a/src/server/routes/backend-wallet/getNonce.ts +++ b/src/server/routes/backend-wallet/getNonce.ts @@ -2,7 +2,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import type { Address } from "thirdweb"; -import { inspectNonce } from "../../../shared/db/wallets/walletNonce"; +import { inspectNonce } from "../../../shared/db/wallets/wallet-nonce"; import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; import { walletWithAddressParamSchema } from "../../schemas/wallet"; import { getChainIdFromChain } from "../../utils/chain"; diff --git a/src/server/routes/backend-wallet/getTransactionsByNonce.ts b/src/server/routes/backend-wallet/getTransactionsByNonce.ts index 0be1571d3..f60b6b30a 100644 --- a/src/server/routes/backend-wallet/getTransactionsByNonce.ts +++ b/src/server/routes/backend-wallet/getTransactionsByNonce.ts @@ -2,8 +2,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { TransactionDB } from "../../../shared/db/transactions/db"; -import { getNonceMap } from "../../../shared/db/wallets/nonceMap"; -import { normalizeAddress } from "../../../shared/utils/primitiveTypes"; +import { getNonceMap } from "../../../shared/db/wallets/nonce-map"; +import { normalizeAddress } from "../../../shared/utils/primitive-types"; import type { AnyTransaction } from "../../../shared/utils/transaction/types"; import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; import { diff --git a/src/server/routes/backend-wallet/import.ts b/src/server/routes/backend-wallet/import.ts index 88a93d48b..9d86902de 100644 --- a/src/server/routes/backend-wallet/import.ts +++ b/src/server/routes/backend-wallet/import.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getConfig } from "../../../shared/utils/cache/getConfig"; +import { getConfig } from "../../../shared/utils/cache/get-config"; import { createCustomError } from "../../middleware/error"; import { AddressSchema } from "../../schemas/address"; import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; diff --git a/src/server/routes/backend-wallet/remove.ts b/src/server/routes/backend-wallet/remove.ts index 9f57ace6c..0cbd94906 100644 --- a/src/server/routes/backend-wallet/remove.ts +++ b/src/server/routes/backend-wallet/remove.ts @@ -2,7 +2,7 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import type { Address } from "thirdweb"; -import { deleteWalletDetails } from "../../../shared/db/wallets/deleteWalletDetails"; +import { deleteWalletDetails } from "../../../shared/db/wallets/delete-wallet-details"; import { AddressSchema } from "../../schemas/address"; import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; diff --git a/src/server/routes/backend-wallet/reset-nonces.ts b/src/server/routes/backend-wallet/reset-nonces.ts index 3237a161a..2ecc66249 100644 --- a/src/server/routes/backend-wallet/reset-nonces.ts +++ b/src/server/routes/backend-wallet/reset-nonces.ts @@ -6,7 +6,7 @@ import { deleteNoncesForBackendWallets, getUsedBackendWallets, syncLatestNonceFromOnchain, -} from "../../../shared/db/wallets/walletNonce"; +} from "../../../shared/db/wallets/wallet-nonce"; import { AddressSchema } from "../../schemas/address"; import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; diff --git a/src/server/routes/backend-wallet/sendTransaction.ts b/src/server/routes/backend-wallet/sendTransaction.ts index d23add987..66d462482 100644 --- a/src/server/routes/backend-wallet/sendTransaction.ts +++ b/src/server/routes/backend-wallet/sendTransaction.ts @@ -2,7 +2,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import type { Address, Hex } from "thirdweb"; -import { insertTransaction } from "../../../shared/utils/transaction/insertTransaction"; +import { insertTransaction } from "../../../shared/utils/transaction/insert-transaction"; import { AddressSchema } from "../../schemas/address"; import { requestQuerystringSchema, diff --git a/src/server/routes/backend-wallet/sendTransactionBatch.ts b/src/server/routes/backend-wallet/sendTransactionBatch.ts index d887e9bed..92df6729c 100644 --- a/src/server/routes/backend-wallet/sendTransactionBatch.ts +++ b/src/server/routes/backend-wallet/sendTransactionBatch.ts @@ -2,7 +2,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import type { Address, Hex } from "thirdweb"; -import { insertTransaction } from "../../../shared/utils/transaction/insertTransaction"; +import { insertTransaction } from "../../../shared/utils/transaction/insert-transaction"; import { AddressSchema } from "../../schemas/address"; import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; import { txOverridesWithValueSchema } from "../../schemas/txOverrides"; diff --git a/src/server/routes/backend-wallet/signMessage.ts b/src/server/routes/backend-wallet/signMessage.ts index 45f9cb69d..a00e8a860 100644 --- a/src/server/routes/backend-wallet/signMessage.ts +++ b/src/server/routes/backend-wallet/signMessage.ts @@ -6,7 +6,7 @@ import { arbitrumSepolia } from "thirdweb/chains"; import { getWalletDetails, isSmartBackendWallet, -} from "../../../shared/db/wallets/getWalletDetails"; +} from "../../../shared/db/wallets/get-wallet-details"; import { walletDetailsToAccount } from "../../../shared/utils/account"; import { getChain } from "../../../shared/utils/chain"; import { createCustomError } from "../../middleware/error"; diff --git a/src/server/routes/backend-wallet/signTransaction.ts b/src/server/routes/backend-wallet/signTransaction.ts index 7af06715e..74eba697a 100644 --- a/src/server/routes/backend-wallet/signTransaction.ts +++ b/src/server/routes/backend-wallet/signTransaction.ts @@ -7,7 +7,7 @@ import { getChecksumAddress, maybeBigInt, maybeInt, -} from "../../../shared/utils/primitiveTypes"; +} from "../../../shared/utils/primitive-types"; import { toTransactionType } from "../../../shared/utils/sdk"; import { createCustomError } from "../../middleware/error"; import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; diff --git a/src/server/routes/backend-wallet/signTypedData.ts b/src/server/routes/backend-wallet/signTypedData.ts index 6033e309b..e1eee6e3b 100644 --- a/src/server/routes/backend-wallet/signTypedData.ts +++ b/src/server/routes/backend-wallet/signTypedData.ts @@ -2,7 +2,7 @@ import type { TypedDataSigner } from "@ethersproject/abstract-signer"; import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getWallet } from "../../../shared/utils/cache/getWallet"; +import { getWallet } from "../../../shared/utils/cache/get-wallet"; import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; import { walletHeaderSchema } from "../../schemas/wallet"; diff --git a/src/server/routes/backend-wallet/simulateTransaction.ts b/src/server/routes/backend-wallet/simulateTransaction.ts index eec049d0f..b8cee7866 100644 --- a/src/server/routes/backend-wallet/simulateTransaction.ts +++ b/src/server/routes/backend-wallet/simulateTransaction.ts @@ -3,7 +3,7 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { randomUUID } from "node:crypto"; import type { Address, Hex } from "thirdweb"; -import { doSimulateTransaction } from "../../../shared/utils/transaction/simulateQueuedTransaction"; +import { doSimulateTransaction } from "../../../shared/utils/transaction/simulate-queued-transaction"; import type { QueuedTransaction } from "../../../shared/utils/transaction/types"; import { createCustomError } from "../../middleware/error"; import { AddressSchema } from "../../schemas/address"; diff --git a/src/server/routes/backend-wallet/transfer.ts b/src/server/routes/backend-wallet/transfer.ts index 98a1f6fb4..042dde64a 100644 --- a/src/server/routes/backend-wallet/transfer.ts +++ b/src/server/routes/backend-wallet/transfer.ts @@ -11,9 +11,9 @@ import { import { transfer as transferERC20 } from "thirdweb/extensions/erc20"; import { isContractDeployed, resolvePromisedValue } from "thirdweb/utils"; import { getChain } from "../../../shared/utils/chain"; -import { normalizeAddress } from "../../../shared/utils/primitiveTypes"; +import { normalizeAddress } from "../../../shared/utils/primitive-types"; import { thirdwebClient } from "../../../shared/utils/sdk"; -import { insertTransaction } from "../../../shared/utils/transaction/insertTransaction"; +import { insertTransaction } from "../../../shared/utils/transaction/insert-transaction"; import type { InsertedTransaction } from "../../../shared/utils/transaction/types"; import { createCustomError } from "../../middleware/error"; import { AddressSchema } from "../../schemas/address"; diff --git a/src/server/routes/backend-wallet/update.ts b/src/server/routes/backend-wallet/update.ts index 8baabfacf..dca07493f 100644 --- a/src/server/routes/backend-wallet/update.ts +++ b/src/server/routes/backend-wallet/update.ts @@ -1,7 +1,7 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { updateWalletDetails } from "../../../shared/db/wallets/updateWalletDetails"; +import { updateWalletDetails } from "../../../shared/db/wallets/update-wallet-details"; import { AddressSchema } from "../../schemas/address"; import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; diff --git a/src/server/routes/backend-wallet/withdraw.ts b/src/server/routes/backend-wallet/withdraw.ts index 0cfe6fe36..50b27a87a 100644 --- a/src/server/routes/backend-wallet/withdraw.ts +++ b/src/server/routes/backend-wallet/withdraw.ts @@ -12,7 +12,7 @@ import { getWalletBalance } from "thirdweb/wallets"; import { getAccount } from "../../../shared/utils/account"; import { getChain } from "../../../shared/utils/chain"; import { logger } from "../../../shared/utils/logger"; -import { getChecksumAddress } from "../../../shared/utils/primitiveTypes"; +import { getChecksumAddress } from "../../../shared/utils/primitive-types"; import { thirdwebClient } from "../../../shared/utils/sdk"; import type { PopulatedTransaction } from "../../../shared/utils/transaction/types"; import { createCustomError } from "../../middleware/error"; diff --git a/src/server/routes/chain/getAll.ts b/src/server/routes/chain/getAll.ts index c5644f337..2f3efcda5 100644 --- a/src/server/routes/chain/getAll.ts +++ b/src/server/routes/chain/getAll.ts @@ -2,7 +2,7 @@ import { Type, type Static } from "@sinclair/typebox"; import { fetchChains } from "@thirdweb-dev/chains"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getConfig } from "../../../shared/utils/cache/getConfig"; +import { getConfig } from "../../../shared/utils/cache/get-config"; import { chainResponseSchema } from "../../schemas/chain"; import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; diff --git a/src/server/routes/configuration/auth/get.ts b/src/server/routes/configuration/auth/get.ts index 23163fa35..e8ff03db6 100644 --- a/src/server/routes/configuration/auth/get.ts +++ b/src/server/routes/configuration/auth/get.ts @@ -1,7 +1,7 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getConfig } from "../../../../shared/utils/cache/getConfig"; +import { getConfig } from "../../../../shared/utils/cache/get-config"; import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; export const responseBodySchema = Type.Object({ diff --git a/src/server/routes/configuration/auth/update.ts b/src/server/routes/configuration/auth/update.ts index 07ab148b3..518a8d1ac 100644 --- a/src/server/routes/configuration/auth/update.ts +++ b/src/server/routes/configuration/auth/update.ts @@ -1,8 +1,8 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { updateConfiguration } from "../../../../shared/db/configuration/updateConfiguration"; -import { getConfig } from "../../../../shared/utils/cache/getConfig"; +import { updateConfiguration } from "../../../../shared/db/configuration/update-configuration"; +import { getConfig } from "../../../../shared/utils/cache/get-config"; import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; import { responseBodySchema } from "./get"; diff --git a/src/server/routes/configuration/backend-wallet-balance/get.ts b/src/server/routes/configuration/backend-wallet-balance/get.ts index ab430ecc4..5f0fd671b 100644 --- a/src/server/routes/configuration/backend-wallet-balance/get.ts +++ b/src/server/routes/configuration/backend-wallet-balance/get.ts @@ -1,7 +1,7 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getConfig } from "../../../../shared/utils/cache/getConfig"; +import { getConfig } from "../../../../shared/utils/cache/get-config"; import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; export const responseBodySchema = Type.Object({ diff --git a/src/server/routes/configuration/backend-wallet-balance/update.ts b/src/server/routes/configuration/backend-wallet-balance/update.ts index e47a75af6..f4a71d569 100644 --- a/src/server/routes/configuration/backend-wallet-balance/update.ts +++ b/src/server/routes/configuration/backend-wallet-balance/update.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { updateConfiguration } from "../../../../shared/db/configuration/updateConfiguration"; -import { getConfig } from "../../../../shared/utils/cache/getConfig"; +import { updateConfiguration } from "../../../../shared/db/configuration/update-configuration"; +import { getConfig } from "../../../../shared/utils/cache/get-config"; import { WeiAmountStringSchema } from "../../../schemas/number"; import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; import { responseBodySchema } from "./get"; diff --git a/src/server/routes/configuration/cache/get.ts b/src/server/routes/configuration/cache/get.ts index 5ff178bd0..069517ad9 100644 --- a/src/server/routes/configuration/cache/get.ts +++ b/src/server/routes/configuration/cache/get.ts @@ -1,7 +1,7 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getConfig } from "../../../../shared/utils/cache/getConfig"; +import { getConfig } from "../../../../shared/utils/cache/get-config"; import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; export const responseBodySchema = Type.Object({ diff --git a/src/server/routes/configuration/cache/update.ts b/src/server/routes/configuration/cache/update.ts index a87ef1546..7abdeadfd 100644 --- a/src/server/routes/configuration/cache/update.ts +++ b/src/server/routes/configuration/cache/update.ts @@ -1,10 +1,10 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { updateConfiguration } from "../../../../shared/db/configuration/updateConfiguration"; -import { getConfig } from "../../../../shared/utils/cache/getConfig"; -import { clearCacheCron } from "../../../../shared/utils/cron/clearCacheCron"; -import { isValidCron } from "../../../../shared/utils/cron/isValidCron"; +import { updateConfiguration } from "../../../../shared/db/configuration/update-configuration"; +import { getConfig } from "../../../../shared/utils/cache/get-config"; +import { clearCacheCron } from "../../../../shared/utils/cron/clear-cache-cron"; +import { isValidCron } from "../../../../shared/utils/cron/is-valid-cron"; import { createCustomError } from "../../../middleware/error"; import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; import { responseBodySchema } from "./get"; diff --git a/src/server/routes/configuration/chains/get.ts b/src/server/routes/configuration/chains/get.ts index 6b38f9139..c217b9cbc 100644 --- a/src/server/routes/configuration/chains/get.ts +++ b/src/server/routes/configuration/chains/get.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getConfig } from "../../../../shared/utils/cache/getConfig"; +import { getConfig } from "../../../../shared/utils/cache/get-config"; import { chainResponseSchema } from "../../../schemas/chain"; import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; diff --git a/src/server/routes/configuration/chains/update.ts b/src/server/routes/configuration/chains/update.ts index 589eb0797..9b2c961de 100644 --- a/src/server/routes/configuration/chains/update.ts +++ b/src/server/routes/configuration/chains/update.ts @@ -1,9 +1,9 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { updateConfiguration } from "../../../../shared/db/configuration/updateConfiguration"; -import { getConfig } from "../../../../shared/utils/cache/getConfig"; -import { sdkCache } from "../../../../shared/utils/cache/getSdk"; +import { updateConfiguration } from "../../../../shared/db/configuration/update-configuration"; +import { getConfig } from "../../../../shared/utils/cache/get-config"; +import { sdkCache } from "../../../../shared/utils/cache/get-sdk"; import { chainResponseSchema } from "../../../schemas/chain"; import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; import { responseBodySchema } from "./get"; diff --git a/src/server/routes/configuration/contract-subscriptions/get.ts b/src/server/routes/configuration/contract-subscriptions/get.ts index ae6dc97dc..17bb61314 100644 --- a/src/server/routes/configuration/contract-subscriptions/get.ts +++ b/src/server/routes/configuration/contract-subscriptions/get.ts @@ -1,7 +1,7 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getConfig } from "../../../../shared/utils/cache/getConfig"; +import { getConfig } from "../../../../shared/utils/cache/get-config"; import { contractSubscriptionConfigurationSchema, standardResponseSchema, diff --git a/src/server/routes/configuration/contract-subscriptions/update.ts b/src/server/routes/configuration/contract-subscriptions/update.ts index fdc0897d0..1f56319da 100644 --- a/src/server/routes/configuration/contract-subscriptions/update.ts +++ b/src/server/routes/configuration/contract-subscriptions/update.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { updateConfiguration } from "../../../../shared/db/configuration/updateConfiguration"; -import { getConfig } from "../../../../shared/utils/cache/getConfig"; +import { updateConfiguration } from "../../../../shared/db/configuration/update-configuration"; +import { getConfig } from "../../../../shared/utils/cache/get-config"; import { createCustomError } from "../../../middleware/error"; import { contractSubscriptionConfigurationSchema, diff --git a/src/server/routes/configuration/cors/add.ts b/src/server/routes/configuration/cors/add.ts index 24d085d07..609d3b649 100644 --- a/src/server/routes/configuration/cors/add.ts +++ b/src/server/routes/configuration/cors/add.ts @@ -1,8 +1,8 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { updateConfiguration } from "../../../../shared/db/configuration/updateConfiguration"; -import { getConfig } from "../../../../shared/utils/cache/getConfig"; +import { updateConfiguration } from "../../../../shared/db/configuration/update-configuration"; +import { getConfig } from "../../../../shared/utils/cache/get-config"; import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; import { mandatoryAllowedCorsUrls } from "../../../utils/cors-urls"; import { responseBodySchema } from "./get"; diff --git a/src/server/routes/configuration/cors/get.ts b/src/server/routes/configuration/cors/get.ts index f5cbab52b..38ba869bd 100644 --- a/src/server/routes/configuration/cors/get.ts +++ b/src/server/routes/configuration/cors/get.ts @@ -1,7 +1,7 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getConfig } from "../../../../shared/utils/cache/getConfig"; +import { getConfig } from "../../../../shared/utils/cache/get-config"; import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; import { mandatoryAllowedCorsUrls } from "../../../utils/cors-urls"; diff --git a/src/server/routes/configuration/cors/remove.ts b/src/server/routes/configuration/cors/remove.ts index a1d4c7c98..a9ddabb6e 100644 --- a/src/server/routes/configuration/cors/remove.ts +++ b/src/server/routes/configuration/cors/remove.ts @@ -1,8 +1,8 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { updateConfiguration } from "../../../../shared/db/configuration/updateConfiguration"; -import { getConfig } from "../../../../shared/utils/cache/getConfig"; +import { updateConfiguration } from "../../../../shared/db/configuration/update-configuration"; +import { getConfig } from "../../../../shared/utils/cache/get-config"; import { createCustomError } from "../../../middleware/error"; import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; import { mandatoryAllowedCorsUrls } from "../../../utils/cors-urls"; diff --git a/src/server/routes/configuration/cors/set.ts b/src/server/routes/configuration/cors/set.ts index a1a7540bc..a6c7aaf06 100644 --- a/src/server/routes/configuration/cors/set.ts +++ b/src/server/routes/configuration/cors/set.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { updateConfiguration } from "../../../../shared/db/configuration/updateConfiguration"; -import { getConfig } from "../../../../shared/utils/cache/getConfig"; +import { updateConfiguration } from "../../../../shared/db/configuration/update-configuration"; +import { getConfig } from "../../../../shared/utils/cache/get-config"; import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; import { mandatoryAllowedCorsUrls } from "../../../utils/cors-urls"; import { responseBodySchema } from "./get"; diff --git a/src/server/routes/configuration/ip/get.ts b/src/server/routes/configuration/ip/get.ts index 1f916c14f..7d7b8d412 100644 --- a/src/server/routes/configuration/ip/get.ts +++ b/src/server/routes/configuration/ip/get.ts @@ -1,7 +1,7 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getConfig } from "../../../../shared/utils/cache/getConfig"; +import { getConfig } from "../../../../shared/utils/cache/get-config"; import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; export const responseBodySchema = Type.Object({ diff --git a/src/server/routes/configuration/ip/set.ts b/src/server/routes/configuration/ip/set.ts index 8dab64868..001c9debf 100644 --- a/src/server/routes/configuration/ip/set.ts +++ b/src/server/routes/configuration/ip/set.ts @@ -1,8 +1,8 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { updateConfiguration } from "../../../../shared/db/configuration/updateConfiguration"; -import { getConfig } from "../../../../shared/utils/cache/getConfig"; +import { updateConfiguration } from "../../../../shared/db/configuration/update-configuration"; +import { getConfig } from "../../../../shared/utils/cache/get-config"; import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; import { responseBodySchema } from "./get"; diff --git a/src/server/routes/configuration/transactions/get.ts b/src/server/routes/configuration/transactions/get.ts index c1d95ff5e..d94ebb09d 100644 --- a/src/server/routes/configuration/transactions/get.ts +++ b/src/server/routes/configuration/transactions/get.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getConfig } from "../../../../shared/utils/cache/getConfig"; +import { getConfig } from "../../../../shared/utils/cache/get-config"; import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; const responseBodySchema = Type.Object({ diff --git a/src/server/routes/configuration/transactions/update.ts b/src/server/routes/configuration/transactions/update.ts index c5322dca4..0965de34c 100644 --- a/src/server/routes/configuration/transactions/update.ts +++ b/src/server/routes/configuration/transactions/update.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { updateConfiguration } from "../../../../shared/db/configuration/updateConfiguration"; -import { getConfig } from "../../../../shared/utils/cache/getConfig"; +import { updateConfiguration } from "../../../../shared/db/configuration/update-configuration"; +import { getConfig } from "../../../../shared/utils/cache/get-config"; import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; const requestBodySchema = Type.Partial( diff --git a/src/server/routes/configuration/wallets/get.ts b/src/server/routes/configuration/wallets/get.ts index eded75a5e..635ea5223 100644 --- a/src/server/routes/configuration/wallets/get.ts +++ b/src/server/routes/configuration/wallets/get.ts @@ -2,7 +2,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { WalletType } from "../../../../shared/schemas/wallet"; -import { getConfig } from "../../../../shared/utils/cache/getConfig"; +import { getConfig } from "../../../../shared/utils/cache/get-config"; import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; export const responseBodySchema = Type.Object({ diff --git a/src/server/routes/configuration/wallets/update.ts b/src/server/routes/configuration/wallets/update.ts index 9b79e6146..f0e591038 100644 --- a/src/server/routes/configuration/wallets/update.ts +++ b/src/server/routes/configuration/wallets/update.ts @@ -1,9 +1,9 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { updateConfiguration } from "../../../../shared/db/configuration/updateConfiguration"; +import { updateConfiguration } from "../../../../shared/db/configuration/update-configuration"; import { WalletType } from "../../../../shared/schemas/wallet"; -import { getConfig } from "../../../../shared/utils/cache/getConfig"; +import { getConfig } from "../../../../shared/utils/cache/get-config"; import { createCustomError } from "../../../middleware/error"; import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; import { responseBodySchema } from "./get"; diff --git a/src/server/routes/contract/events/getAllEvents.ts b/src/server/routes/contract/events/getAllEvents.ts index 5d6150779..712d7ca06 100644 --- a/src/server/routes/contract/events/getAllEvents.ts +++ b/src/server/routes/contract/events/getAllEvents.ts @@ -1,7 +1,7 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../shared/utils/cache/get-contract"; import { contractEventSchema, eventsQuerystringSchema, diff --git a/src/server/routes/contract/events/getContractEventLogs.ts b/src/server/routes/contract/events/getContractEventLogs.ts index 47a12a269..a16266b8d 100644 --- a/src/server/routes/contract/events/getContractEventLogs.ts +++ b/src/server/routes/contract/events/getContractEventLogs.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContractEventLogsByBlockAndTopics } from "../../../../shared/db/contractEventLogs/getContractEventLogs"; -import { isContractSubscribed } from "../../../../shared/db/contractSubscriptions/getContractSubscriptions"; +import { getContractEventLogsByBlockAndTopics } from "../../../../shared/db/contract-event-logs/get-contract-event-logs"; +import { isContractSubscribed } from "../../../../shared/db/contract-subscriptions/get-contract-subscriptions"; import { createCustomError } from "../../../middleware/error"; import { AddressSchema, TransactionHashSchema } from "../../../schemas/address"; import { diff --git a/src/server/routes/contract/events/getEventLogsByTimestamp.ts b/src/server/routes/contract/events/getEventLogsByTimestamp.ts index 267ab1eb8..c93ffaa4d 100644 --- a/src/server/routes/contract/events/getEventLogsByTimestamp.ts +++ b/src/server/routes/contract/events/getEventLogsByTimestamp.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getEventLogsByBlockTimestamp } from "../../../../shared/db/contractEventLogs/getContractEventLogs"; +import { getEventLogsByBlockTimestamp } from "../../../../shared/db/contract-event-logs/get-contract-event-logs"; import { AddressSchema } from "../../../schemas/address"; import { eventLogSchema } from "../../../schemas/eventLog"; import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; diff --git a/src/server/routes/contract/events/getEvents.ts b/src/server/routes/contract/events/getEvents.ts index 69cabe01c..fa81a5739 100644 --- a/src/server/routes/contract/events/getEvents.ts +++ b/src/server/routes/contract/events/getEvents.ts @@ -1,7 +1,7 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../shared/utils/cache/get-contract"; import { contractEventSchema, eventsQuerystringSchema, diff --git a/src/server/routes/contract/events/paginateEventLogs.ts b/src/server/routes/contract/events/paginateEventLogs.ts index 1767a4c07..7a4cae470 100644 --- a/src/server/routes/contract/events/paginateEventLogs.ts +++ b/src/server/routes/contract/events/paginateEventLogs.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getConfiguration } from "../../../../shared/db/configuration/getConfiguration"; -import { getEventLogsByCursor } from "../../../../shared/db/contractEventLogs/getContractEventLogs"; +import { getConfiguration } from "../../../../shared/db/configuration/get-configuration"; +import { getEventLogsByCursor } from "../../../../shared/db/contract-event-logs/get-contract-event-logs"; import { AddressSchema } from "../../../schemas/address"; import { eventLogSchema, toEventLogSchema } from "../../../schemas/eventLog"; import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; diff --git a/src/server/routes/contract/extensions/account/read/getAllAdmins.ts b/src/server/routes/contract/extensions/account/read/getAllAdmins.ts index ea6428780..af130c242 100644 --- a/src/server/routes/contract/extensions/account/read/getAllAdmins.ts +++ b/src/server/routes/contract/extensions/account/read/getAllAdmins.ts @@ -1,7 +1,7 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { contractParamSchema, standardResponseSchema, diff --git a/src/server/routes/contract/extensions/account/read/getAllSessions.ts b/src/server/routes/contract/extensions/account/read/getAllSessions.ts index 68db22c51..13f1e91ae 100644 --- a/src/server/routes/contract/extensions/account/read/getAllSessions.ts +++ b/src/server/routes/contract/extensions/account/read/getAllSessions.ts @@ -1,7 +1,7 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { sessionSchema } from "../../../../../schemas/account"; import { contractParamSchema, diff --git a/src/server/routes/contract/extensions/account/write/grantAdmin.ts b/src/server/routes/contract/extensions/account/write/grantAdmin.ts index 2a7120ca8..d3ba73f78 100644 --- a/src/server/routes/contract/extensions/account/write/grantAdmin.ts +++ b/src/server/routes/contract/extensions/account/write/grantAdmin.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../../schemas/address"; import { contractParamSchema, diff --git a/src/server/routes/contract/extensions/account/write/grantSession.ts b/src/server/routes/contract/extensions/account/write/grantSession.ts index ab04cfcfa..832146226 100644 --- a/src/server/routes/contract/extensions/account/write/grantSession.ts +++ b/src/server/routes/contract/extensions/account/write/grantSession.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { sessionSchema } from "../../../../../schemas/account"; import { contractParamSchema, diff --git a/src/server/routes/contract/extensions/account/write/revokeAdmin.ts b/src/server/routes/contract/extensions/account/write/revokeAdmin.ts index 2b19ee104..7d26c96ed 100644 --- a/src/server/routes/contract/extensions/account/write/revokeAdmin.ts +++ b/src/server/routes/contract/extensions/account/write/revokeAdmin.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../../schemas/address"; import { contractParamSchema, diff --git a/src/server/routes/contract/extensions/account/write/revokeSession.ts b/src/server/routes/contract/extensions/account/write/revokeSession.ts index 58c74d8c7..bb6cf526a 100644 --- a/src/server/routes/contract/extensions/account/write/revokeSession.ts +++ b/src/server/routes/contract/extensions/account/write/revokeSession.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../../schemas/address"; import { contractParamSchema, diff --git a/src/server/routes/contract/extensions/account/write/updateSession.ts b/src/server/routes/contract/extensions/account/write/updateSession.ts index daade19b1..c7d5aaf38 100644 --- a/src/server/routes/contract/extensions/account/write/updateSession.ts +++ b/src/server/routes/contract/extensions/account/write/updateSession.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../../schemas/address"; import { contractParamSchema, diff --git a/src/server/routes/contract/extensions/accountFactory/read/getAllAccounts.ts b/src/server/routes/contract/extensions/accountFactory/read/getAllAccounts.ts index 7fd003c0d..99109fa48 100644 --- a/src/server/routes/contract/extensions/accountFactory/read/getAllAccounts.ts +++ b/src/server/routes/contract/extensions/accountFactory/read/getAllAccounts.ts @@ -1,7 +1,7 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { contractParamSchema, standardResponseSchema, diff --git a/src/server/routes/contract/extensions/accountFactory/read/getAssociatedAccounts.ts b/src/server/routes/contract/extensions/accountFactory/read/getAssociatedAccounts.ts index d3a9020cd..e6af059fc 100644 --- a/src/server/routes/contract/extensions/accountFactory/read/getAssociatedAccounts.ts +++ b/src/server/routes/contract/extensions/accountFactory/read/getAssociatedAccounts.ts @@ -1,7 +1,7 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../../schemas/address"; import { contractParamSchema, diff --git a/src/server/routes/contract/extensions/accountFactory/read/isAccountDeployed.ts b/src/server/routes/contract/extensions/accountFactory/read/isAccountDeployed.ts index bce8ff614..2f497bace 100644 --- a/src/server/routes/contract/extensions/accountFactory/read/isAccountDeployed.ts +++ b/src/server/routes/contract/extensions/accountFactory/read/isAccountDeployed.ts @@ -1,7 +1,7 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../../schemas/address"; import { contractParamSchema, diff --git a/src/server/routes/contract/extensions/accountFactory/read/predictAccountAddress.ts b/src/server/routes/contract/extensions/accountFactory/read/predictAccountAddress.ts index e540a46f0..fc3453f87 100644 --- a/src/server/routes/contract/extensions/accountFactory/read/predictAccountAddress.ts +++ b/src/server/routes/contract/extensions/accountFactory/read/predictAccountAddress.ts @@ -2,7 +2,7 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { predictAddress } from "thirdweb/wallets/smart"; -import { getContractV5 } from "../../../../../../shared/utils/cache/getContractv5"; +import { getContractV5 } from "../../../../../../shared/utils/cache/get-contractv5"; import { AddressSchema } from "../../../../../schemas/address"; import { contractParamSchema, diff --git a/src/server/routes/contract/extensions/accountFactory/write/createAccount.ts b/src/server/routes/contract/extensions/accountFactory/write/createAccount.ts index 1eb2a60b4..8cb672049 100644 --- a/src/server/routes/contract/extensions/accountFactory/write/createAccount.ts +++ b/src/server/routes/contract/extensions/accountFactory/write/createAccount.ts @@ -4,9 +4,9 @@ import { StatusCodes } from "http-status-codes"; import { createAccount as factoryCreateAccount } from "thirdweb/extensions/erc4337"; import { isHex, stringToHex } from "thirdweb/utils"; import { predictAddress } from "thirdweb/wallets/smart"; -import { getContractV5 } from "../../../../../../shared/utils/cache/getContractv5"; +import { getContractV5 } from "../../../../../../shared/utils/cache/get-contractv5"; import { redis } from "../../../../../../shared/utils/redis/redis"; -import { queueTransaction } from "../../../../../../shared/utils/transaction/queueTransation"; +import { queueTransaction } from "../../../../../../shared/utils/transaction/queue-transation"; import { AddressSchema } from "../../../../../schemas/address"; import { prebuiltDeployResponseSchema } from "../../../../../schemas/prebuilts"; import { diff --git a/src/server/routes/contract/extensions/erc1155/read/balanceOf.ts b/src/server/routes/contract/extensions/erc1155/read/balanceOf.ts index 2cfa5c07a..7559cfb2f 100644 --- a/src/server/routes/contract/extensions/erc1155/read/balanceOf.ts +++ b/src/server/routes/contract/extensions/erc1155/read/balanceOf.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../../schemas/address"; import { erc1155ContractParamSchema, diff --git a/src/server/routes/contract/extensions/erc1155/read/canClaim.ts b/src/server/routes/contract/extensions/erc1155/read/canClaim.ts index c5bcba524..54b8ad7a9 100644 --- a/src/server/routes/contract/extensions/erc1155/read/canClaim.ts +++ b/src/server/routes/contract/extensions/erc1155/read/canClaim.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { contractParamSchema, standardResponseSchema, diff --git a/src/server/routes/contract/extensions/erc1155/read/get.ts b/src/server/routes/contract/extensions/erc1155/read/get.ts index acb439591..95133aae6 100644 --- a/src/server/routes/contract/extensions/erc1155/read/get.ts +++ b/src/server/routes/contract/extensions/erc1155/read/get.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { nftSchema } from "../../../../../schemas/nft"; import { erc1155ContractParamSchema, diff --git a/src/server/routes/contract/extensions/erc1155/read/getActiveClaimConditions.ts b/src/server/routes/contract/extensions/erc1155/read/getActiveClaimConditions.ts index 739707d3c..69fb5b7c7 100644 --- a/src/server/routes/contract/extensions/erc1155/read/getActiveClaimConditions.ts +++ b/src/server/routes/contract/extensions/erc1155/read/getActiveClaimConditions.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { claimConditionOutputSchema } from "../../../../../schemas/claimConditions"; import { contractParamSchema, diff --git a/src/server/routes/contract/extensions/erc1155/read/getAll.ts b/src/server/routes/contract/extensions/erc1155/read/getAll.ts index 42b563c1f..18b0ee065 100644 --- a/src/server/routes/contract/extensions/erc1155/read/getAll.ts +++ b/src/server/routes/contract/extensions/erc1155/read/getAll.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { nftSchema } from "../../../../../schemas/nft"; import { erc1155ContractParamSchema, diff --git a/src/server/routes/contract/extensions/erc1155/read/getAllClaimConditions.ts b/src/server/routes/contract/extensions/erc1155/read/getAllClaimConditions.ts index 9003f2db4..7da7ed4e7 100644 --- a/src/server/routes/contract/extensions/erc1155/read/getAllClaimConditions.ts +++ b/src/server/routes/contract/extensions/erc1155/read/getAllClaimConditions.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { claimConditionOutputSchema } from "../../../../../schemas/claimConditions"; import { contractParamSchema, diff --git a/src/server/routes/contract/extensions/erc1155/read/getClaimIneligibilityReasons.ts b/src/server/routes/contract/extensions/erc1155/read/getClaimIneligibilityReasons.ts index 8b061be03..49a90d43e 100644 --- a/src/server/routes/contract/extensions/erc1155/read/getClaimIneligibilityReasons.ts +++ b/src/server/routes/contract/extensions/erc1155/read/getClaimIneligibilityReasons.ts @@ -2,7 +2,7 @@ import { Type, type Static } from "@sinclair/typebox"; import { ClaimEligibility } from "@thirdweb-dev/sdk"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../../schemas/address"; import { NumberStringSchema } from "../../../../../schemas/number"; import { diff --git a/src/server/routes/contract/extensions/erc1155/read/getClaimerProofs.ts b/src/server/routes/contract/extensions/erc1155/read/getClaimerProofs.ts index 05e53b95e..b8e3e0585 100644 --- a/src/server/routes/contract/extensions/erc1155/read/getClaimerProofs.ts +++ b/src/server/routes/contract/extensions/erc1155/read/getClaimerProofs.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../../schemas/address"; import { claimerProofSchema } from "../../../../../schemas/claimConditions"; import { diff --git a/src/server/routes/contract/extensions/erc1155/read/getOwned.ts b/src/server/routes/contract/extensions/erc1155/read/getOwned.ts index d4a8f08dc..2015d0fad 100644 --- a/src/server/routes/contract/extensions/erc1155/read/getOwned.ts +++ b/src/server/routes/contract/extensions/erc1155/read/getOwned.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../../schemas/address"; import { nftSchema } from "../../../../../schemas/nft"; import { diff --git a/src/server/routes/contract/extensions/erc1155/read/isApproved.ts b/src/server/routes/contract/extensions/erc1155/read/isApproved.ts index ac1fac7dd..1926e67c6 100644 --- a/src/server/routes/contract/extensions/erc1155/read/isApproved.ts +++ b/src/server/routes/contract/extensions/erc1155/read/isApproved.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { erc1155ContractParamSchema, standardResponseSchema, diff --git a/src/server/routes/contract/extensions/erc1155/read/signatureGenerate.ts b/src/server/routes/contract/extensions/erc1155/read/signatureGenerate.ts index ab95c40e3..936dfbc5d 100644 --- a/src/server/routes/contract/extensions/erc1155/read/signatureGenerate.ts +++ b/src/server/routes/contract/extensions/erc1155/read/signatureGenerate.ts @@ -5,9 +5,9 @@ import { getContract, type Address, type Hex } from "thirdweb"; import type { NFTInput } from "thirdweb/dist/types/utils/nft/parseNft"; import { generateMintSignature } from "thirdweb/extensions/erc1155"; import { getAccount } from "../../../../../../shared/utils/account"; -import { getContract as getContractV4 } from "../../../../../../shared/utils/cache/getContract"; +import { getContract as getContractV4 } from "../../../../../../shared/utils/cache/get-contract"; import { getChain } from "../../../../../../shared/utils/chain"; -import { maybeBigInt } from "../../../../../../shared/utils/primitiveTypes"; +import { maybeBigInt } from "../../../../../../shared/utils/primitive-types"; import { thirdwebClient } from "../../../../../../shared/utils/sdk"; import { createCustomError } from "../../../../../middleware/error"; import { thirdwebSdkVersionSchema } from "../../../../../schemas/httpHeaders/thirdwebSdkVersion"; diff --git a/src/server/routes/contract/extensions/erc1155/read/totalCount.ts b/src/server/routes/contract/extensions/erc1155/read/totalCount.ts index 21b24ad92..363772c4c 100644 --- a/src/server/routes/contract/extensions/erc1155/read/totalCount.ts +++ b/src/server/routes/contract/extensions/erc1155/read/totalCount.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { erc1155ContractParamSchema, standardResponseSchema, diff --git a/src/server/routes/contract/extensions/erc1155/read/totalSupply.ts b/src/server/routes/contract/extensions/erc1155/read/totalSupply.ts index e1dafd5cf..634249cd4 100644 --- a/src/server/routes/contract/extensions/erc1155/read/totalSupply.ts +++ b/src/server/routes/contract/extensions/erc1155/read/totalSupply.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { erc1155ContractParamSchema, standardResponseSchema, diff --git a/src/server/routes/contract/extensions/erc1155/write/airdrop.ts b/src/server/routes/contract/extensions/erc1155/write/airdrop.ts index 5164f0a83..4a80f051e 100644 --- a/src/server/routes/contract/extensions/erc1155/write/airdrop.ts +++ b/src/server/routes/contract/extensions/erc1155/write/airdrop.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../../schemas/address"; import { erc1155ContractParamSchema, diff --git a/src/server/routes/contract/extensions/erc1155/write/burn.ts b/src/server/routes/contract/extensions/erc1155/write/burn.ts index d01ea058d..a994f1e2e 100644 --- a/src/server/routes/contract/extensions/erc1155/write/burn.ts +++ b/src/server/routes/contract/extensions/erc1155/write/burn.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { erc1155ContractParamSchema, requestQuerystringSchema, diff --git a/src/server/routes/contract/extensions/erc1155/write/burnBatch.ts b/src/server/routes/contract/extensions/erc1155/write/burnBatch.ts index a78cb430c..a292bd2b4 100644 --- a/src/server/routes/contract/extensions/erc1155/write/burnBatch.ts +++ b/src/server/routes/contract/extensions/erc1155/write/burnBatch.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { erc1155ContractParamSchema, requestQuerystringSchema, diff --git a/src/server/routes/contract/extensions/erc1155/write/claimTo.ts b/src/server/routes/contract/extensions/erc1155/write/claimTo.ts index c716b1f61..9de1d79ed 100644 --- a/src/server/routes/contract/extensions/erc1155/write/claimTo.ts +++ b/src/server/routes/contract/extensions/erc1155/write/claimTo.ts @@ -3,8 +3,8 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import type { Address } from "thirdweb"; import { claimTo } from "thirdweb/extensions/erc1155"; -import { getContractV5 } from "../../../../../../shared/utils/cache/getContractv5"; -import { queueTransaction } from "../../../../../../shared/utils/transaction/queueTransation"; +import { getContractV5 } from "../../../../../../shared/utils/cache/get-contractv5"; +import { queueTransaction } from "../../../../../../shared/utils/transaction/queue-transation"; import { AddressSchema } from "../../../../../schemas/address"; import { erc1155ContractParamSchema, diff --git a/src/server/routes/contract/extensions/erc1155/write/lazyMint.ts b/src/server/routes/contract/extensions/erc1155/write/lazyMint.ts index b31c48bf1..8c5b2bd39 100644 --- a/src/server/routes/contract/extensions/erc1155/write/lazyMint.ts +++ b/src/server/routes/contract/extensions/erc1155/write/lazyMint.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { nftOrInputSchema } from "../../../../../schemas/nft"; import { erc1155ContractParamSchema, diff --git a/src/server/routes/contract/extensions/erc1155/write/mintAdditionalSupplyTo.ts b/src/server/routes/contract/extensions/erc1155/write/mintAdditionalSupplyTo.ts index 58fa670ab..34cf8dc40 100644 --- a/src/server/routes/contract/extensions/erc1155/write/mintAdditionalSupplyTo.ts +++ b/src/server/routes/contract/extensions/erc1155/write/mintAdditionalSupplyTo.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../../schemas/address"; import { erc1155ContractParamSchema, diff --git a/src/server/routes/contract/extensions/erc1155/write/mintBatchTo.ts b/src/server/routes/contract/extensions/erc1155/write/mintBatchTo.ts index e8776756a..e8bf3168e 100644 --- a/src/server/routes/contract/extensions/erc1155/write/mintBatchTo.ts +++ b/src/server/routes/contract/extensions/erc1155/write/mintBatchTo.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../../schemas/address"; import { nftAndSupplySchema } from "../../../../../schemas/nft"; import { diff --git a/src/server/routes/contract/extensions/erc1155/write/mintTo.ts b/src/server/routes/contract/extensions/erc1155/write/mintTo.ts index 20e1b01a6..cacee565b 100644 --- a/src/server/routes/contract/extensions/erc1155/write/mintTo.ts +++ b/src/server/routes/contract/extensions/erc1155/write/mintTo.ts @@ -6,7 +6,7 @@ import { mintTo } from "thirdweb/extensions/erc1155"; import type { NFTInput } from "thirdweb/utils"; import { getChain } from "../../../../../../shared/utils/chain"; import { thirdwebClient } from "../../../../../../shared/utils/sdk"; -import { queueTransaction } from "../../../../../../shared/utils/transaction/queueTransation"; +import { queueTransaction } from "../../../../../../shared/utils/transaction/queue-transation"; import { AddressSchema } from "../../../../../schemas/address"; import { nftAndSupplySchema } from "../../../../../schemas/nft"; import { diff --git a/src/server/routes/contract/extensions/erc1155/write/setApprovalForAll.ts b/src/server/routes/contract/extensions/erc1155/write/setApprovalForAll.ts index 510469914..2ad9d8f85 100644 --- a/src/server/routes/contract/extensions/erc1155/write/setApprovalForAll.ts +++ b/src/server/routes/contract/extensions/erc1155/write/setApprovalForAll.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { erc1155ContractParamSchema, requestQuerystringSchema, diff --git a/src/server/routes/contract/extensions/erc1155/write/setBatchClaimConditions.ts b/src/server/routes/contract/extensions/erc1155/write/setBatchClaimConditions.ts index 36e81475b..da40cd380 100644 --- a/src/server/routes/contract/extensions/erc1155/write/setBatchClaimConditions.ts +++ b/src/server/routes/contract/extensions/erc1155/write/setBatchClaimConditions.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { claimConditionInputSchema, type setBatchSantiziedClaimConditionsRequestSchema, diff --git a/src/server/routes/contract/extensions/erc1155/write/setClaimConditions.ts b/src/server/routes/contract/extensions/erc1155/write/setClaimConditions.ts index 6f3021397..6d3e9693b 100644 --- a/src/server/routes/contract/extensions/erc1155/write/setClaimConditions.ts +++ b/src/server/routes/contract/extensions/erc1155/write/setClaimConditions.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { claimConditionInputSchema, type sanitizedClaimConditionInputSchema, diff --git a/src/server/routes/contract/extensions/erc1155/write/signatureMint.ts b/src/server/routes/contract/extensions/erc1155/write/signatureMint.ts index b1e12fb4b..395939dc2 100644 --- a/src/server/routes/contract/extensions/erc1155/write/signatureMint.ts +++ b/src/server/routes/contract/extensions/erc1155/write/signatureMint.ts @@ -3,8 +3,8 @@ import type { SignedPayload1155 } from "@thirdweb-dev/sdk"; import { BigNumber } from "ethers"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { signature1155OutputSchema } from "../../../../../schemas/nft"; import { contractParamSchema, diff --git a/src/server/routes/contract/extensions/erc1155/write/transfer.ts b/src/server/routes/contract/extensions/erc1155/write/transfer.ts index 61d46227a..947918d67 100644 --- a/src/server/routes/contract/extensions/erc1155/write/transfer.ts +++ b/src/server/routes/contract/extensions/erc1155/write/transfer.ts @@ -4,9 +4,9 @@ import { StatusCodes } from "http-status-codes"; import { getContract, type Hex } from "thirdweb"; import { safeTransferFrom } from "thirdweb/extensions/erc1155"; import { getChain } from "../../../../../../shared/utils/chain"; -import { getChecksumAddress } from "../../../../../../shared/utils/primitiveTypes"; +import { getChecksumAddress } from "../../../../../../shared/utils/primitive-types"; import { thirdwebClient } from "../../../../../../shared/utils/sdk"; -import { queueTransaction } from "../../../../../../shared/utils/transaction/queueTransation"; +import { queueTransaction } from "../../../../../../shared/utils/transaction/queue-transation"; import { AddressSchema, HexSchema } from "../../../../../schemas/address"; import { NumberStringSchema } from "../../../../../schemas/number"; import { diff --git a/src/server/routes/contract/extensions/erc1155/write/transferFrom.ts b/src/server/routes/contract/extensions/erc1155/write/transferFrom.ts index 66229cc15..207029903 100644 --- a/src/server/routes/contract/extensions/erc1155/write/transferFrom.ts +++ b/src/server/routes/contract/extensions/erc1155/write/transferFrom.ts @@ -4,9 +4,9 @@ import { StatusCodes } from "http-status-codes"; import { getContract, type Hex } from "thirdweb"; import { safeTransferFrom } from "thirdweb/extensions/erc1155"; import { getChain } from "../../../../../../shared/utils/chain"; -import { getChecksumAddress } from "../../../../../../shared/utils/primitiveTypes"; +import { getChecksumAddress } from "../../../../../../shared/utils/primitive-types"; import { thirdwebClient } from "../../../../../../shared/utils/sdk"; -import { queueTransaction } from "../../../../../../shared/utils/transaction/queueTransation"; +import { queueTransaction } from "../../../../../../shared/utils/transaction/queue-transation"; import { AddressSchema, HexSchema } from "../../../../../schemas/address"; import { NumberStringSchema } from "../../../../../schemas/number"; import { diff --git a/src/server/routes/contract/extensions/erc1155/write/updateClaimConditions.ts b/src/server/routes/contract/extensions/erc1155/write/updateClaimConditions.ts index ce3e63e10..4496ec6cc 100644 --- a/src/server/routes/contract/extensions/erc1155/write/updateClaimConditions.ts +++ b/src/server/routes/contract/extensions/erc1155/write/updateClaimConditions.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { claimConditionInputSchema, type sanitizedClaimConditionInputSchema, diff --git a/src/server/routes/contract/extensions/erc1155/write/updateTokenMetadata.ts b/src/server/routes/contract/extensions/erc1155/write/updateTokenMetadata.ts index 0689517fa..822bd6ad6 100644 --- a/src/server/routes/contract/extensions/erc1155/write/updateTokenMetadata.ts +++ b/src/server/routes/contract/extensions/erc1155/write/updateTokenMetadata.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { nftMetadataInputSchema } from "../../../../../schemas/nft"; import { contractParamSchema, diff --git a/src/server/routes/contract/extensions/erc20/read/allowanceOf.ts b/src/server/routes/contract/extensions/erc20/read/allowanceOf.ts index 8386bc054..bd3d14636 100644 --- a/src/server/routes/contract/extensions/erc20/read/allowanceOf.ts +++ b/src/server/routes/contract/extensions/erc20/read/allowanceOf.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { erc20MetadataSchema } from "../../../../../schemas/erc20"; import { erc20ContractParamSchema, diff --git a/src/server/routes/contract/extensions/erc20/read/balanceOf.ts b/src/server/routes/contract/extensions/erc20/read/balanceOf.ts index 167ec4cf4..6f627f965 100644 --- a/src/server/routes/contract/extensions/erc20/read/balanceOf.ts +++ b/src/server/routes/contract/extensions/erc20/read/balanceOf.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../../schemas/address"; import { erc20MetadataSchema } from "../../../../../schemas/erc20"; import { diff --git a/src/server/routes/contract/extensions/erc20/read/canClaim.ts b/src/server/routes/contract/extensions/erc20/read/canClaim.ts index 078c8d7f2..962b16e4b 100644 --- a/src/server/routes/contract/extensions/erc20/read/canClaim.ts +++ b/src/server/routes/contract/extensions/erc20/read/canClaim.ts @@ -1,7 +1,7 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { contractParamSchema, standardResponseSchema, diff --git a/src/server/routes/contract/extensions/erc20/read/get.ts b/src/server/routes/contract/extensions/erc20/read/get.ts index 88f532f0b..ce429d099 100644 --- a/src/server/routes/contract/extensions/erc20/read/get.ts +++ b/src/server/routes/contract/extensions/erc20/read/get.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { erc20ContractParamSchema, standardResponseSchema, diff --git a/src/server/routes/contract/extensions/erc20/read/getActiveClaimConditions.ts b/src/server/routes/contract/extensions/erc20/read/getActiveClaimConditions.ts index 15a992342..b0813f15b 100644 --- a/src/server/routes/contract/extensions/erc20/read/getActiveClaimConditions.ts +++ b/src/server/routes/contract/extensions/erc20/read/getActiveClaimConditions.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { claimConditionOutputSchema } from "../../../../../schemas/claimConditions"; import { contractParamSchema, diff --git a/src/server/routes/contract/extensions/erc20/read/getAllClaimConditions.ts b/src/server/routes/contract/extensions/erc20/read/getAllClaimConditions.ts index 841ebcda3..8891c2e43 100644 --- a/src/server/routes/contract/extensions/erc20/read/getAllClaimConditions.ts +++ b/src/server/routes/contract/extensions/erc20/read/getAllClaimConditions.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { claimConditionOutputSchema } from "../../../../../schemas/claimConditions"; import { contractParamSchema, diff --git a/src/server/routes/contract/extensions/erc20/read/getClaimIneligibilityReasons.ts b/src/server/routes/contract/extensions/erc20/read/getClaimIneligibilityReasons.ts index 19b7a12de..4a920f618 100644 --- a/src/server/routes/contract/extensions/erc20/read/getClaimIneligibilityReasons.ts +++ b/src/server/routes/contract/extensions/erc20/read/getClaimIneligibilityReasons.ts @@ -2,7 +2,7 @@ import { Type, type Static } from "@sinclair/typebox"; import { ClaimEligibility } from "@thirdweb-dev/sdk"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { contractParamSchema, standardResponseSchema, diff --git a/src/server/routes/contract/extensions/erc20/read/getClaimerProofs.ts b/src/server/routes/contract/extensions/erc20/read/getClaimerProofs.ts index 0778a85ac..69ce75568 100644 --- a/src/server/routes/contract/extensions/erc20/read/getClaimerProofs.ts +++ b/src/server/routes/contract/extensions/erc20/read/getClaimerProofs.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../../schemas/address"; import { claimerProofSchema } from "../../../../../schemas/claimConditions"; import { diff --git a/src/server/routes/contract/extensions/erc20/read/signatureGenerate.ts b/src/server/routes/contract/extensions/erc20/read/signatureGenerate.ts index ae6ccff36..a35a2348d 100644 --- a/src/server/routes/contract/extensions/erc20/read/signatureGenerate.ts +++ b/src/server/routes/contract/extensions/erc20/read/signatureGenerate.ts @@ -4,9 +4,9 @@ import { StatusCodes } from "http-status-codes"; import { getContract, type Address, type Hex } from "thirdweb"; import { generateMintSignature } from "thirdweb/extensions/erc20"; import { getAccount } from "../../../../../../shared/utils/account"; -import { getContract as getContractV4 } from "../../../../../../shared/utils/cache/getContract"; +import { getContract as getContractV4 } from "../../../../../../shared/utils/cache/get-contract"; import { getChain } from "../../../../../../shared/utils/chain"; -import { maybeBigInt } from "../../../../../../shared/utils/primitiveTypes"; +import { maybeBigInt } from "../../../../../../shared/utils/primitive-types"; import { thirdwebClient } from "../../../../../../shared/utils/sdk"; import { createCustomError } from "../../../../../middleware/error"; import { diff --git a/src/server/routes/contract/extensions/erc20/read/totalSupply.ts b/src/server/routes/contract/extensions/erc20/read/totalSupply.ts index 06ee4548b..2146e939b 100644 --- a/src/server/routes/contract/extensions/erc20/read/totalSupply.ts +++ b/src/server/routes/contract/extensions/erc20/read/totalSupply.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { erc20MetadataSchema } from "../../../../../schemas/erc20"; import { erc20ContractParamSchema, diff --git a/src/server/routes/contract/extensions/erc20/write/burn.ts b/src/server/routes/contract/extensions/erc20/write/burn.ts index 7c9f093f7..a0d8758b1 100644 --- a/src/server/routes/contract/extensions/erc20/write/burn.ts +++ b/src/server/routes/contract/extensions/erc20/write/burn.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { erc20ContractParamSchema, requestQuerystringSchema, diff --git a/src/server/routes/contract/extensions/erc20/write/burnFrom.ts b/src/server/routes/contract/extensions/erc20/write/burnFrom.ts index ad5498414..5f111985c 100644 --- a/src/server/routes/contract/extensions/erc20/write/burnFrom.ts +++ b/src/server/routes/contract/extensions/erc20/write/burnFrom.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../../schemas/address"; import { erc20ContractParamSchema, diff --git a/src/server/routes/contract/extensions/erc20/write/claimTo.ts b/src/server/routes/contract/extensions/erc20/write/claimTo.ts index db7678729..548bf7c9c 100644 --- a/src/server/routes/contract/extensions/erc20/write/claimTo.ts +++ b/src/server/routes/contract/extensions/erc20/write/claimTo.ts @@ -3,8 +3,8 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import type { Address } from "thirdweb"; import { claimTo } from "thirdweb/extensions/erc20"; -import { getContractV5 } from "../../../../../../shared/utils/cache/getContractv5"; -import { queueTransaction } from "../../../../../../shared/utils/transaction/queueTransation"; +import { getContractV5 } from "../../../../../../shared/utils/cache/get-contractv5"; +import { queueTransaction } from "../../../../../../shared/utils/transaction/queue-transation"; import { erc20ContractParamSchema, requestQuerystringSchema, diff --git a/src/server/routes/contract/extensions/erc20/write/mintBatchTo.ts b/src/server/routes/contract/extensions/erc20/write/mintBatchTo.ts index dd3e4b601..5fa723b24 100644 --- a/src/server/routes/contract/extensions/erc20/write/mintBatchTo.ts +++ b/src/server/routes/contract/extensions/erc20/write/mintBatchTo.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../../schemas/address"; import { erc20ContractParamSchema, diff --git a/src/server/routes/contract/extensions/erc20/write/mintTo.ts b/src/server/routes/contract/extensions/erc20/write/mintTo.ts index ea2b170e4..282f213ca 100644 --- a/src/server/routes/contract/extensions/erc20/write/mintTo.ts +++ b/src/server/routes/contract/extensions/erc20/write/mintTo.ts @@ -5,7 +5,7 @@ import { getContract } from "thirdweb"; import { mintTo } from "thirdweb/extensions/erc20"; import { getChain } from "../../../../../../shared/utils/chain"; import { thirdwebClient } from "../../../../../../shared/utils/sdk"; -import { queueTransaction } from "../../../../../../shared/utils/transaction/queueTransation"; +import { queueTransaction } from "../../../../../../shared/utils/transaction/queue-transation"; import { AddressSchema } from "../../../../../schemas/address"; import { erc20ContractParamSchema, diff --git a/src/server/routes/contract/extensions/erc20/write/setAllowance.ts b/src/server/routes/contract/extensions/erc20/write/setAllowance.ts index 7cad12a44..a92410c90 100644 --- a/src/server/routes/contract/extensions/erc20/write/setAllowance.ts +++ b/src/server/routes/contract/extensions/erc20/write/setAllowance.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../../schemas/address"; import { erc20ContractParamSchema, diff --git a/src/server/routes/contract/extensions/erc20/write/setClaimConditions.ts b/src/server/routes/contract/extensions/erc20/write/setClaimConditions.ts index cc6ced02c..625c387ff 100644 --- a/src/server/routes/contract/extensions/erc20/write/setClaimConditions.ts +++ b/src/server/routes/contract/extensions/erc20/write/setClaimConditions.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { claimConditionInputSchema, type sanitizedClaimConditionInputSchema, diff --git a/src/server/routes/contract/extensions/erc20/write/signatureMint.ts b/src/server/routes/contract/extensions/erc20/write/signatureMint.ts index 182259b9b..07f544103 100644 --- a/src/server/routes/contract/extensions/erc20/write/signatureMint.ts +++ b/src/server/routes/contract/extensions/erc20/write/signatureMint.ts @@ -3,8 +3,8 @@ import type { SignedPayload20 } from "@thirdweb-dev/sdk"; import { BigNumber } from "ethers"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { signature20OutputSchema } from "../../../../../schemas/erc20"; import { contractParamSchema, diff --git a/src/server/routes/contract/extensions/erc20/write/transfer.ts b/src/server/routes/contract/extensions/erc20/write/transfer.ts index 75a3c2d14..807f0c43d 100644 --- a/src/server/routes/contract/extensions/erc20/write/transfer.ts +++ b/src/server/routes/contract/extensions/erc20/write/transfer.ts @@ -4,9 +4,9 @@ import { StatusCodes } from "http-status-codes"; import { getContract } from "thirdweb"; import { transfer } from "thirdweb/extensions/erc20"; import { getChain } from "../../../../../../shared/utils/chain"; -import { getChecksumAddress } from "../../../../../../shared/utils/primitiveTypes"; +import { getChecksumAddress } from "../../../../../../shared/utils/primitive-types"; import { thirdwebClient } from "../../../../../../shared/utils/sdk"; -import { queueTransaction } from "../../../../../../shared/utils/transaction/queueTransation"; +import { queueTransaction } from "../../../../../../shared/utils/transaction/queue-transation"; import { AddressSchema } from "../../../../../schemas/address"; import { TokenAmountStringSchema } from "../../../../../schemas/number"; import { diff --git a/src/server/routes/contract/extensions/erc20/write/transferFrom.ts b/src/server/routes/contract/extensions/erc20/write/transferFrom.ts index ec1c46403..071edddfc 100644 --- a/src/server/routes/contract/extensions/erc20/write/transferFrom.ts +++ b/src/server/routes/contract/extensions/erc20/write/transferFrom.ts @@ -4,9 +4,9 @@ import { StatusCodes } from "http-status-codes"; import { getContract } from "thirdweb"; import { transferFrom } from "thirdweb/extensions/erc20"; import { getChain } from "../../../../../../shared/utils/chain"; -import { getChecksumAddress } from "../../../../../../shared/utils/primitiveTypes"; +import { getChecksumAddress } from "../../../../../../shared/utils/primitive-types"; import { thirdwebClient } from "../../../../../../shared/utils/sdk"; -import { queueTransaction } from "../../../../../../shared/utils/transaction/queueTransation"; +import { queueTransaction } from "../../../../../../shared/utils/transaction/queue-transation"; import { AddressSchema } from "../../../../../schemas/address"; import { TokenAmountStringSchema } from "../../../../../schemas/number"; import { diff --git a/src/server/routes/contract/extensions/erc20/write/updateClaimConditions.ts b/src/server/routes/contract/extensions/erc20/write/updateClaimConditions.ts index 96ec7578d..9ee27d424 100644 --- a/src/server/routes/contract/extensions/erc20/write/updateClaimConditions.ts +++ b/src/server/routes/contract/extensions/erc20/write/updateClaimConditions.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { claimConditionInputSchema, type sanitizedClaimConditionInputSchema, diff --git a/src/server/routes/contract/extensions/erc721/read/balanceOf.ts b/src/server/routes/contract/extensions/erc721/read/balanceOf.ts index 1bad0235d..690a65d8a 100644 --- a/src/server/routes/contract/extensions/erc721/read/balanceOf.ts +++ b/src/server/routes/contract/extensions/erc721/read/balanceOf.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../../schemas/address"; import { erc721ContractParamSchema, diff --git a/src/server/routes/contract/extensions/erc721/read/canClaim.ts b/src/server/routes/contract/extensions/erc721/read/canClaim.ts index 6aa53c54d..06a4e4b8c 100644 --- a/src/server/routes/contract/extensions/erc721/read/canClaim.ts +++ b/src/server/routes/contract/extensions/erc721/read/canClaim.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { contractParamSchema, standardResponseSchema, diff --git a/src/server/routes/contract/extensions/erc721/read/get.ts b/src/server/routes/contract/extensions/erc721/read/get.ts index e5f332ab2..993184d7d 100644 --- a/src/server/routes/contract/extensions/erc721/read/get.ts +++ b/src/server/routes/contract/extensions/erc721/read/get.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { nftSchema } from "../../../../../schemas/nft"; import { contractParamSchema, diff --git a/src/server/routes/contract/extensions/erc721/read/getActiveClaimConditions.ts b/src/server/routes/contract/extensions/erc721/read/getActiveClaimConditions.ts index f24521b3d..e9f331e1b 100644 --- a/src/server/routes/contract/extensions/erc721/read/getActiveClaimConditions.ts +++ b/src/server/routes/contract/extensions/erc721/read/getActiveClaimConditions.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { claimConditionOutputSchema } from "../../../../../schemas/claimConditions"; import { contractParamSchema, diff --git a/src/server/routes/contract/extensions/erc721/read/getAll.ts b/src/server/routes/contract/extensions/erc721/read/getAll.ts index 4eb8bacab..20cec27c6 100644 --- a/src/server/routes/contract/extensions/erc721/read/getAll.ts +++ b/src/server/routes/contract/extensions/erc721/read/getAll.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { nftSchema } from "../../../../../schemas/nft"; import { contractParamSchema, diff --git a/src/server/routes/contract/extensions/erc721/read/getAllClaimConditions.ts b/src/server/routes/contract/extensions/erc721/read/getAllClaimConditions.ts index 8d4a62f0e..fd0678711 100644 --- a/src/server/routes/contract/extensions/erc721/read/getAllClaimConditions.ts +++ b/src/server/routes/contract/extensions/erc721/read/getAllClaimConditions.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { claimConditionOutputSchema } from "../../../../../schemas/claimConditions"; import { contractParamSchema, diff --git a/src/server/routes/contract/extensions/erc721/read/getClaimIneligibilityReasons.ts b/src/server/routes/contract/extensions/erc721/read/getClaimIneligibilityReasons.ts index 88d552910..f23ea7b9b 100644 --- a/src/server/routes/contract/extensions/erc721/read/getClaimIneligibilityReasons.ts +++ b/src/server/routes/contract/extensions/erc721/read/getClaimIneligibilityReasons.ts @@ -2,7 +2,7 @@ import { Type, type Static } from "@sinclair/typebox"; import { ClaimEligibility } from "@thirdweb-dev/sdk"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { contractParamSchema, standardResponseSchema, diff --git a/src/server/routes/contract/extensions/erc721/read/getClaimerProofs.ts b/src/server/routes/contract/extensions/erc721/read/getClaimerProofs.ts index d39672dac..7d9f4d8cb 100644 --- a/src/server/routes/contract/extensions/erc721/read/getClaimerProofs.ts +++ b/src/server/routes/contract/extensions/erc721/read/getClaimerProofs.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../../schemas/address"; import { claimerProofSchema } from "../../../../../schemas/claimConditions"; import { diff --git a/src/server/routes/contract/extensions/erc721/read/getOwned.ts b/src/server/routes/contract/extensions/erc721/read/getOwned.ts index 311ef318c..16bc18f24 100644 --- a/src/server/routes/contract/extensions/erc721/read/getOwned.ts +++ b/src/server/routes/contract/extensions/erc721/read/getOwned.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../../schemas/address"; import { nftSchema } from "../../../../../schemas/nft"; import { diff --git a/src/server/routes/contract/extensions/erc721/read/isApproved.ts b/src/server/routes/contract/extensions/erc721/read/isApproved.ts index 22d3cbecd..6462ccd2f 100644 --- a/src/server/routes/contract/extensions/erc721/read/isApproved.ts +++ b/src/server/routes/contract/extensions/erc721/read/isApproved.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { contractParamSchema, standardResponseSchema, diff --git a/src/server/routes/contract/extensions/erc721/read/signatureGenerate.ts b/src/server/routes/contract/extensions/erc721/read/signatureGenerate.ts index 281399a7e..1fc82b9f1 100644 --- a/src/server/routes/contract/extensions/erc721/read/signatureGenerate.ts +++ b/src/server/routes/contract/extensions/erc721/read/signatureGenerate.ts @@ -4,9 +4,9 @@ import { StatusCodes } from "http-status-codes"; import { getContract, type Address, type Hex } from "thirdweb"; import { generateMintSignature } from "thirdweb/extensions/erc721"; import { getAccount } from "../../../../../../shared/utils/account"; -import { getContract as getContractV4 } from "../../../../../../shared/utils/cache/getContract"; +import { getContract as getContractV4 } from "../../../../../../shared/utils/cache/get-contract"; import { getChain } from "../../../../../../shared/utils/chain"; -import { maybeBigInt } from "../../../../../../shared/utils/primitiveTypes"; +import { maybeBigInt } from "../../../../../../shared/utils/primitive-types"; import { thirdwebClient } from "../../../../../../shared/utils/sdk"; import { thirdwebSdkVersionSchema } from "../../../../../schemas/httpHeaders/thirdwebSdkVersion"; import { diff --git a/src/server/routes/contract/extensions/erc721/read/totalClaimedSupply.ts b/src/server/routes/contract/extensions/erc721/read/totalClaimedSupply.ts index 342f63448..03a62fcd1 100644 --- a/src/server/routes/contract/extensions/erc721/read/totalClaimedSupply.ts +++ b/src/server/routes/contract/extensions/erc721/read/totalClaimedSupply.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { contractParamSchema, standardResponseSchema, diff --git a/src/server/routes/contract/extensions/erc721/read/totalCount.ts b/src/server/routes/contract/extensions/erc721/read/totalCount.ts index 5a6cd5809..7c5bd1b3b 100644 --- a/src/server/routes/contract/extensions/erc721/read/totalCount.ts +++ b/src/server/routes/contract/extensions/erc721/read/totalCount.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { contractParamSchema, standardResponseSchema, diff --git a/src/server/routes/contract/extensions/erc721/read/totalUnclaimedSupply.ts b/src/server/routes/contract/extensions/erc721/read/totalUnclaimedSupply.ts index 88c4b12f8..6c914d841 100644 --- a/src/server/routes/contract/extensions/erc721/read/totalUnclaimedSupply.ts +++ b/src/server/routes/contract/extensions/erc721/read/totalUnclaimedSupply.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { contractParamSchema, standardResponseSchema, diff --git a/src/server/routes/contract/extensions/erc721/write/burn.ts b/src/server/routes/contract/extensions/erc721/write/burn.ts index 259ba1af1..10d9f4a57 100644 --- a/src/server/routes/contract/extensions/erc721/write/burn.ts +++ b/src/server/routes/contract/extensions/erc721/write/burn.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { contractParamSchema, requestQuerystringSchema, diff --git a/src/server/routes/contract/extensions/erc721/write/claimTo.ts b/src/server/routes/contract/extensions/erc721/write/claimTo.ts index 1366bb9cb..fdb553dea 100644 --- a/src/server/routes/contract/extensions/erc721/write/claimTo.ts +++ b/src/server/routes/contract/extensions/erc721/write/claimTo.ts @@ -3,8 +3,8 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import type { Address } from "thirdweb"; import { claimTo } from "thirdweb/extensions/erc721"; -import { getContractV5 } from "../../../../../../shared/utils/cache/getContractv5"; -import { queueTransaction } from "../../../../../../shared/utils/transaction/queueTransation"; +import { getContractV5 } from "../../../../../../shared/utils/cache/get-contractv5"; +import { queueTransaction } from "../../../../../../shared/utils/transaction/queue-transation"; import { AddressSchema } from "../../../../../schemas/address"; import { contractParamSchema, diff --git a/src/server/routes/contract/extensions/erc721/write/lazyMint.ts b/src/server/routes/contract/extensions/erc721/write/lazyMint.ts index 7f22c2eae..ac6283318 100644 --- a/src/server/routes/contract/extensions/erc721/write/lazyMint.ts +++ b/src/server/routes/contract/extensions/erc721/write/lazyMint.ts @@ -1,8 +1,8 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { nftOrInputSchema } from "../../../../../schemas/nft"; import { contractParamSchema, diff --git a/src/server/routes/contract/extensions/erc721/write/mintBatchTo.ts b/src/server/routes/contract/extensions/erc721/write/mintBatchTo.ts index 38e5aa299..9f29db2ab 100644 --- a/src/server/routes/contract/extensions/erc721/write/mintBatchTo.ts +++ b/src/server/routes/contract/extensions/erc721/write/mintBatchTo.ts @@ -1,8 +1,8 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../../schemas/address"; import { nftOrInputSchema } from "../../../../../schemas/nft"; import { diff --git a/src/server/routes/contract/extensions/erc721/write/mintTo.ts b/src/server/routes/contract/extensions/erc721/write/mintTo.ts index 7a70f011f..5ffb25a49 100644 --- a/src/server/routes/contract/extensions/erc721/write/mintTo.ts +++ b/src/server/routes/contract/extensions/erc721/write/mintTo.ts @@ -6,7 +6,7 @@ import { mintTo } from "thirdweb/extensions/erc721"; import type { NFTInput } from "thirdweb/utils"; import { getChain } from "../../../../../../shared/utils/chain"; import { thirdwebClient } from "../../../../../../shared/utils/sdk"; -import { queueTransaction } from "../../../../../../shared/utils/transaction/queueTransation"; +import { queueTransaction } from "../../../../../../shared/utils/transaction/queue-transation"; import { AddressSchema } from "../../../../../schemas/address"; import { nftOrInputSchema } from "../../../../../schemas/nft"; import { diff --git a/src/server/routes/contract/extensions/erc721/write/setApprovalForAll.ts b/src/server/routes/contract/extensions/erc721/write/setApprovalForAll.ts index 3f3c29c8f..08fc2cd68 100644 --- a/src/server/routes/contract/extensions/erc721/write/setApprovalForAll.ts +++ b/src/server/routes/contract/extensions/erc721/write/setApprovalForAll.ts @@ -1,8 +1,8 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { contractParamSchema, requestQuerystringSchema, diff --git a/src/server/routes/contract/extensions/erc721/write/setApprovalForToken.ts b/src/server/routes/contract/extensions/erc721/write/setApprovalForToken.ts index ad7fd5aa8..701d6dcb1 100644 --- a/src/server/routes/contract/extensions/erc721/write/setApprovalForToken.ts +++ b/src/server/routes/contract/extensions/erc721/write/setApprovalForToken.ts @@ -1,8 +1,8 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { contractParamSchema, requestQuerystringSchema, diff --git a/src/server/routes/contract/extensions/erc721/write/setClaimConditions.ts b/src/server/routes/contract/extensions/erc721/write/setClaimConditions.ts index 42afb844d..cae13f65f 100644 --- a/src/server/routes/contract/extensions/erc721/write/setClaimConditions.ts +++ b/src/server/routes/contract/extensions/erc721/write/setClaimConditions.ts @@ -1,8 +1,8 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { claimConditionInputSchema, type sanitizedClaimConditionInputSchema, diff --git a/src/server/routes/contract/extensions/erc721/write/signatureMint.ts b/src/server/routes/contract/extensions/erc721/write/signatureMint.ts index 808c14246..173b9208b 100644 --- a/src/server/routes/contract/extensions/erc721/write/signatureMint.ts +++ b/src/server/routes/contract/extensions/erc721/write/signatureMint.ts @@ -6,10 +6,10 @@ import { StatusCodes } from "http-status-codes"; import type { Address, Hex } from "thirdweb"; import { mintWithSignature } from "thirdweb/extensions/erc721"; import { resolvePromisedValue } from "thirdweb/utils"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; -import { getContractV5 } from "../../../../../../shared/utils/cache/getContractv5"; -import { insertTransaction } from "../../../../../../shared/utils/transaction/insertTransaction"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; +import { getContractV5 } from "../../../../../../shared/utils/cache/get-contractv5"; +import { insertTransaction } from "../../../../../../shared/utils/transaction/insert-transaction"; import type { thirdwebSdkVersionSchema } from "../../../../../schemas/httpHeaders/thirdwebSdkVersion"; import { signature721OutputSchema } from "../../../../../schemas/nft"; import { signature721OutputSchemaV5 } from "../../../../../schemas/nft/v5"; diff --git a/src/server/routes/contract/extensions/erc721/write/transfer.ts b/src/server/routes/contract/extensions/erc721/write/transfer.ts index 87835ca09..edbeb4243 100644 --- a/src/server/routes/contract/extensions/erc721/write/transfer.ts +++ b/src/server/routes/contract/extensions/erc721/write/transfer.ts @@ -4,9 +4,9 @@ import { StatusCodes } from "http-status-codes"; import { getContract } from "thirdweb"; import { transferFrom } from "thirdweb/extensions/erc721"; import { getChain } from "../../../../../../shared/utils/chain"; -import { getChecksumAddress } from "../../../../../../shared/utils/primitiveTypes"; +import { getChecksumAddress } from "../../../../../../shared/utils/primitive-types"; import { thirdwebClient } from "../../../../../../shared/utils/sdk"; -import { queueTransaction } from "../../../../../../shared/utils/transaction/queueTransation"; +import { queueTransaction } from "../../../../../../shared/utils/transaction/queue-transation"; import { AddressSchema } from "../../../../../schemas/address"; import { NumberStringSchema } from "../../../../../schemas/number"; import { diff --git a/src/server/routes/contract/extensions/erc721/write/transferFrom.ts b/src/server/routes/contract/extensions/erc721/write/transferFrom.ts index e19e8cb9d..8a6b87038 100644 --- a/src/server/routes/contract/extensions/erc721/write/transferFrom.ts +++ b/src/server/routes/contract/extensions/erc721/write/transferFrom.ts @@ -4,9 +4,9 @@ import { StatusCodes } from "http-status-codes"; import { getContract } from "thirdweb"; import { transferFrom } from "thirdweb/extensions/erc721"; import { getChain } from "../../../../../../shared/utils/chain"; -import { getChecksumAddress } from "../../../../../../shared/utils/primitiveTypes"; +import { getChecksumAddress } from "../../../../../../shared/utils/primitive-types"; import { thirdwebClient } from "../../../../../../shared/utils/sdk"; -import { queueTransaction } from "../../../../../../shared/utils/transaction/queueTransation"; +import { queueTransaction } from "../../../../../../shared/utils/transaction/queue-transation"; import { AddressSchema } from "../../../../../schemas/address"; import { NumberStringSchema } from "../../../../../schemas/number"; import { diff --git a/src/server/routes/contract/extensions/erc721/write/updateClaimConditions.ts b/src/server/routes/contract/extensions/erc721/write/updateClaimConditions.ts index d9c9fb6f7..4e32ebe1b 100644 --- a/src/server/routes/contract/extensions/erc721/write/updateClaimConditions.ts +++ b/src/server/routes/contract/extensions/erc721/write/updateClaimConditions.ts @@ -1,8 +1,8 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { claimConditionInputSchema, type sanitizedClaimConditionInputSchema, diff --git a/src/server/routes/contract/extensions/erc721/write/updateTokenMetadata.ts b/src/server/routes/contract/extensions/erc721/write/updateTokenMetadata.ts index c8a610821..08a14d3ca 100644 --- a/src/server/routes/contract/extensions/erc721/write/updateTokenMetadata.ts +++ b/src/server/routes/contract/extensions/erc721/write/updateTokenMetadata.ts @@ -1,8 +1,8 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { nftMetadataInputSchema } from "../../../../../schemas/nft"; import { contractParamSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/directListings/read/getAll.ts b/src/server/routes/contract/extensions/marketplaceV3/directListings/read/getAll.ts index 5debad7eb..c78203a7e 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/directListings/read/getAll.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/directListings/read/getAll.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { directListingV3OutputSchema } from "../../../../../../schemas/marketplaceV3/directListing"; import { marketplaceFilterSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/directListings/read/getAllValid.ts b/src/server/routes/contract/extensions/marketplaceV3/directListings/read/getAllValid.ts index a7e35ab5d..3f4a0b73f 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/directListings/read/getAllValid.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/directListings/read/getAllValid.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { directListingV3OutputSchema } from "../../../../../../schemas/marketplaceV3/directListing"; import { marketplaceFilterSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/directListings/read/getListing.ts b/src/server/routes/contract/extensions/marketplaceV3/directListings/read/getListing.ts index cd7b396bd..f7edbf985 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/directListings/read/getListing.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/directListings/read/getListing.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { directListingV3OutputSchema } from "../../../../../../schemas/marketplaceV3/directListing"; import { marketplaceV3ContractParamSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/directListings/read/getTotalCount.ts b/src/server/routes/contract/extensions/marketplaceV3/directListings/read/getTotalCount.ts index c46910f28..d621ea00b 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/directListings/read/getTotalCount.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/directListings/read/getTotalCount.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { marketplaceV3ContractParamSchema, standardResponseSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/directListings/read/isBuyerApprovedForListing.ts b/src/server/routes/contract/extensions/marketplaceV3/directListings/read/isBuyerApprovedForListing.ts index 4b261a5a3..40f28cbc0 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/directListings/read/isBuyerApprovedForListing.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/directListings/read/isBuyerApprovedForListing.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../../../schemas/address"; import { marketplaceV3ContractParamSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/directListings/read/isCurrencyApprovedForListing.ts b/src/server/routes/contract/extensions/marketplaceV3/directListings/read/isCurrencyApprovedForListing.ts index 3351dd6d7..00434d4b0 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/directListings/read/isCurrencyApprovedForListing.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/directListings/read/isCurrencyApprovedForListing.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../../../schemas/address"; import { marketplaceV3ContractParamSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/directListings/write/approveBuyerForReservedListing.ts b/src/server/routes/contract/extensions/marketplaceV3/directListings/write/approveBuyerForReservedListing.ts index f723caadc..8b4c731bc 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/directListings/write/approveBuyerForReservedListing.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/directListings/write/approveBuyerForReservedListing.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { marketplaceV3ContractParamSchema, requestQuerystringSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/directListings/write/buyFromListing.ts b/src/server/routes/contract/extensions/marketplaceV3/directListings/write/buyFromListing.ts index 37ab99780..b7f98a988 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/directListings/write/buyFromListing.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/directListings/write/buyFromListing.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { marketplaceV3ContractParamSchema, requestQuerystringSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/directListings/write/cancelListing.ts b/src/server/routes/contract/extensions/marketplaceV3/directListings/write/cancelListing.ts index af6a96951..c1f79318a 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/directListings/write/cancelListing.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/directListings/write/cancelListing.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { marketplaceV3ContractParamSchema, requestQuerystringSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/directListings/write/createListing.ts b/src/server/routes/contract/extensions/marketplaceV3/directListings/write/createListing.ts index 141feddad..8bd643da5 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/directListings/write/createListing.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/directListings/write/createListing.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { directListingV3InputSchema } from "../../../../../../schemas/marketplaceV3/directListing"; import { marketplaceV3ContractParamSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/directListings/write/revokeBuyerApprovalForReservedListing.ts b/src/server/routes/contract/extensions/marketplaceV3/directListings/write/revokeBuyerApprovalForReservedListing.ts index 607afb958..fa41b010a 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/directListings/write/revokeBuyerApprovalForReservedListing.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/directListings/write/revokeBuyerApprovalForReservedListing.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../../../schemas/address"; import { marketplaceV3ContractParamSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/directListings/write/revokeCurrencyApprovalForListing.ts b/src/server/routes/contract/extensions/marketplaceV3/directListings/write/revokeCurrencyApprovalForListing.ts index 705463bf4..864792849 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/directListings/write/revokeCurrencyApprovalForListing.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/directListings/write/revokeCurrencyApprovalForListing.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../../../schemas/address"; import { marketplaceV3ContractParamSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/directListings/write/updateListing.ts b/src/server/routes/contract/extensions/marketplaceV3/directListings/write/updateListing.ts index c58104607..f7ac3e544 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/directListings/write/updateListing.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/directListings/write/updateListing.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { directListingV3InputSchema } from "../../../../../../schemas/marketplaceV3/directListing"; import { marketplaceV3ContractParamSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getAll.ts b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getAll.ts index f7ebc52d2..ffc390271 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getAll.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getAll.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { englishAuctionOutputSchema } from "../../../../../../schemas/marketplaceV3/englishAuction"; import { marketplaceFilterSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getAllValid.ts b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getAllValid.ts index 25a65fcc1..3ad7cc021 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getAllValid.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getAllValid.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { englishAuctionOutputSchema } from "../../../../../../schemas/marketplaceV3/englishAuction"; import { marketplaceFilterSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getAuction.ts b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getAuction.ts index 53353271c..7b905ed9a 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getAuction.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getAuction.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { englishAuctionOutputSchema } from "../../../../../../schemas/marketplaceV3/englishAuction"; import { marketplaceV3ContractParamSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getBidBufferBps.ts b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getBidBufferBps.ts index de9247202..d757ce2a9 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getBidBufferBps.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getBidBufferBps.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { marketplaceV3ContractParamSchema, standardResponseSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getMinimumNextBid.ts b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getMinimumNextBid.ts index c02d495e9..8f4d75131 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getMinimumNextBid.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getMinimumNextBid.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { currencyValueSchema, marketplaceV3ContractParamSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getTotalCount.ts b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getTotalCount.ts index 4813b190c..6d9147582 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getTotalCount.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getTotalCount.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { marketplaceV3ContractParamSchema, standardResponseSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getWinner.ts b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getWinner.ts index 95d4e19ed..8d08adeb2 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getWinner.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getWinner.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { marketplaceV3ContractParamSchema, standardResponseSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getWinningBid.ts b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getWinningBid.ts index 6f839ff0c..6aa71c55c 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getWinningBid.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getWinningBid.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { bidSchema } from "../../../../../../schemas/marketplaceV3/englishAuction"; import { marketplaceV3ContractParamSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/isWinningBid.ts b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/isWinningBid.ts index a70f469a6..91d80a481 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/isWinningBid.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/isWinningBid.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { marketplaceV3ContractParamSchema, standardResponseSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/buyoutAuction.ts b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/buyoutAuction.ts index 142d5a6f3..2cd6ee1f9 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/buyoutAuction.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/buyoutAuction.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { marketplaceV3ContractParamSchema, requestQuerystringSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/cancelAuction.ts b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/cancelAuction.ts index dbcd85bec..8f80bd04a 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/cancelAuction.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/cancelAuction.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { marketplaceV3ContractParamSchema, requestQuerystringSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/closeAuctionForBidder.ts b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/closeAuctionForBidder.ts index f0131cb06..c24b9ab3d 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/closeAuctionForBidder.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/closeAuctionForBidder.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { marketplaceV3ContractParamSchema, requestQuerystringSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/closeAuctionForSeller.ts b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/closeAuctionForSeller.ts index 0485e4151..a76809151 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/closeAuctionForSeller.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/closeAuctionForSeller.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { marketplaceV3ContractParamSchema, requestQuerystringSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/createAuction.ts b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/createAuction.ts index f74f0ad23..ddf67ed63 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/createAuction.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/createAuction.ts @@ -1,8 +1,8 @@ import type { Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { englishAuctionInputSchema } from "../../../../../../schemas/marketplaceV3/englishAuction"; import { marketplaceV3ContractParamSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/executeSale.ts b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/executeSale.ts index 9770164ef..831bae33b 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/executeSale.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/executeSale.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { marketplaceV3ContractParamSchema, requestQuerystringSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/makeBid.ts b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/makeBid.ts index 8eabd7456..0f8d1aaac 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/makeBid.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/makeBid.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { marketplaceV3ContractParamSchema, requestQuerystringSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/offers/read/getAll.ts b/src/server/routes/contract/extensions/marketplaceV3/offers/read/getAll.ts index e4b9271c7..2e24eb416 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/offers/read/getAll.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/offers/read/getAll.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { OfferV3OutputSchema } from "../../../../../../schemas/marketplaceV3/offer"; import { marketplaceFilterSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/offers/read/getAllValid.ts b/src/server/routes/contract/extensions/marketplaceV3/offers/read/getAllValid.ts index 01c1b6bcd..3f93ef461 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/offers/read/getAllValid.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/offers/read/getAllValid.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { OfferV3OutputSchema } from "../../../../../../schemas/marketplaceV3/offer"; import { marketplaceFilterSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/offers/read/getOffer.ts b/src/server/routes/contract/extensions/marketplaceV3/offers/read/getOffer.ts index d752431fc..ab67a3570 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/offers/read/getOffer.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/offers/read/getOffer.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { OfferV3OutputSchema } from "../../../../../../schemas/marketplaceV3/offer"; import { marketplaceV3ContractParamSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/offers/read/getTotalCount.ts b/src/server/routes/contract/extensions/marketplaceV3/offers/read/getTotalCount.ts index ada1fb3e6..b8dc3259a 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/offers/read/getTotalCount.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/offers/read/getTotalCount.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { marketplaceV3ContractParamSchema, standardResponseSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/offers/write/acceptOffer.ts b/src/server/routes/contract/extensions/marketplaceV3/offers/write/acceptOffer.ts index 7eed54d24..8b5931680 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/offers/write/acceptOffer.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/offers/write/acceptOffer.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { marketplaceV3ContractParamSchema, requestQuerystringSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/offers/write/cancelOffer.ts b/src/server/routes/contract/extensions/marketplaceV3/offers/write/cancelOffer.ts index 0f81e3138..a663d0b3b 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/offers/write/cancelOffer.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/offers/write/cancelOffer.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { marketplaceV3ContractParamSchema, requestQuerystringSchema, diff --git a/src/server/routes/contract/extensions/marketplaceV3/offers/write/makeOffer.ts b/src/server/routes/contract/extensions/marketplaceV3/offers/write/makeOffer.ts index daa44c8c1..14c022b42 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/offers/write/makeOffer.ts +++ b/src/server/routes/contract/extensions/marketplaceV3/offers/write/makeOffer.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; import { OfferV3InputSchema } from "../../../../../../schemas/marketplaceV3/offer"; import { marketplaceV3ContractParamSchema, diff --git a/src/server/routes/contract/metadata/abi.ts b/src/server/routes/contract/metadata/abi.ts index f642809bf..ae16a2d0e 100644 --- a/src/server/routes/contract/metadata/abi.ts +++ b/src/server/routes/contract/metadata/abi.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../shared/utils/cache/get-contract"; import { abiSchema } from "../../../schemas/contract"; import { contractParamSchema, diff --git a/src/server/routes/contract/metadata/events.ts b/src/server/routes/contract/metadata/events.ts index f16d65e2f..aa5f5db05 100644 --- a/src/server/routes/contract/metadata/events.ts +++ b/src/server/routes/contract/metadata/events.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../shared/utils/cache/get-contract"; import { abiEventSchema } from "../../../schemas/contract"; import { contractParamSchema, diff --git a/src/server/routes/contract/metadata/extensions.ts b/src/server/routes/contract/metadata/extensions.ts index d4d553173..54fcfe539 100644 --- a/src/server/routes/contract/metadata/extensions.ts +++ b/src/server/routes/contract/metadata/extensions.ts @@ -2,7 +2,7 @@ import { type Static, Type } from "@sinclair/typebox"; import { getAllDetectedExtensionNames } from "@thirdweb-dev/sdk"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../shared/utils/cache/get-contract"; import { contractParamSchema, standardResponseSchema, diff --git a/src/server/routes/contract/metadata/functions.ts b/src/server/routes/contract/metadata/functions.ts index 3d45736ba..2c037b2b7 100644 --- a/src/server/routes/contract/metadata/functions.ts +++ b/src/server/routes/contract/metadata/functions.ts @@ -1,7 +1,7 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../shared/utils/cache/get-contract"; import { abiFunctionSchema } from "../../../schemas/contract"; import { contractParamSchema, diff --git a/src/server/routes/contract/read/read.ts b/src/server/routes/contract/read/read.ts index 81721a098..d2a58e2ad 100644 --- a/src/server/routes/contract/read/read.ts +++ b/src/server/routes/contract/read/read.ts @@ -1,7 +1,7 @@ import { Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../shared/utils/cache/get-contract"; import { prettifyError } from "../../../../shared/utils/error"; import { createCustomError } from "../../../middleware/error"; import { diff --git a/src/server/routes/contract/roles/read/get.ts b/src/server/routes/contract/roles/read/get.ts index f07c1479f..7e0edcb5f 100644 --- a/src/server/routes/contract/roles/read/get.ts +++ b/src/server/routes/contract/roles/read/get.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../shared/utils/cache/get-contract"; import { contractParamSchema, standardResponseSchema, diff --git a/src/server/routes/contract/roles/read/getAll.ts b/src/server/routes/contract/roles/read/getAll.ts index ee4a8d920..54b688b86 100644 --- a/src/server/routes/contract/roles/read/getAll.ts +++ b/src/server/routes/contract/roles/read/getAll.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../shared/utils/cache/get-contract"; import { rolesResponseSchema } from "../../../../schemas/contract"; import { contractParamSchema, diff --git a/src/server/routes/contract/roles/write/grant.ts b/src/server/routes/contract/roles/write/grant.ts index 538b2d869..d453d6f83 100644 --- a/src/server/routes/contract/roles/write/grant.ts +++ b/src/server/routes/contract/roles/write/grant.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../schemas/address"; import { contractParamSchema, diff --git a/src/server/routes/contract/roles/write/revoke.ts b/src/server/routes/contract/roles/write/revoke.ts index 063f9c8e1..908a1b7d5 100644 --- a/src/server/routes/contract/roles/write/revoke.ts +++ b/src/server/routes/contract/roles/write/revoke.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../schemas/address"; import { contractParamSchema, diff --git a/src/server/routes/contract/royalties/read/getDefaultRoyaltyInfo.ts b/src/server/routes/contract/royalties/read/getDefaultRoyaltyInfo.ts index ed85d8712..1aac3f328 100644 --- a/src/server/routes/contract/royalties/read/getDefaultRoyaltyInfo.ts +++ b/src/server/routes/contract/royalties/read/getDefaultRoyaltyInfo.ts @@ -1,7 +1,7 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../shared/utils/cache/get-contract"; import { royaltySchema } from "../../../../schemas/contract"; import { contractParamSchema, diff --git a/src/server/routes/contract/royalties/read/getTokenRoyaltyInfo.ts b/src/server/routes/contract/royalties/read/getTokenRoyaltyInfo.ts index 163ae5fee..4497ed123 100644 --- a/src/server/routes/contract/royalties/read/getTokenRoyaltyInfo.ts +++ b/src/server/routes/contract/royalties/read/getTokenRoyaltyInfo.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContract } from "../../../../../shared/utils/cache/getContract"; +import { getContract } from "../../../../../shared/utils/cache/get-contract"; import { royaltySchema } from "../../../../schemas/contract"; import { contractParamSchema, diff --git a/src/server/routes/contract/royalties/write/setDefaultRoyaltyInfo.ts b/src/server/routes/contract/royalties/write/setDefaultRoyaltyInfo.ts index 239c08778..37b670021 100644 --- a/src/server/routes/contract/royalties/write/setDefaultRoyaltyInfo.ts +++ b/src/server/routes/contract/royalties/write/setDefaultRoyaltyInfo.ts @@ -1,8 +1,8 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../shared/utils/cache/get-contract"; import { royaltySchema } from "../../../../schemas/contract"; import { contractParamSchema, diff --git a/src/server/routes/contract/royalties/write/setTokenRoyaltyInfo.ts b/src/server/routes/contract/royalties/write/setTokenRoyaltyInfo.ts index 6ff5d09c2..c7f3c7d6b 100644 --- a/src/server/routes/contract/royalties/write/setTokenRoyaltyInfo.ts +++ b/src/server/routes/contract/royalties/write/setTokenRoyaltyInfo.ts @@ -1,8 +1,8 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { queueTx } from "../../../../../shared/db/transactions/queueTx"; -import { getContract } from "../../../../../shared/utils/cache/getContract"; +import { queueTx } from "../../../../../shared/db/transactions/queue-tx"; +import { getContract } from "../../../../../shared/utils/cache/get-contract"; import { royaltySchema } from "../../../../schemas/contract"; import { contractParamSchema, diff --git a/src/server/routes/contract/subscriptions/addContractSubscription.ts b/src/server/routes/contract/subscriptions/addContractSubscription.ts index 05637d75f..7807b1731 100644 --- a/src/server/routes/contract/subscriptions/addContractSubscription.ts +++ b/src/server/routes/contract/subscriptions/addContractSubscription.ts @@ -3,12 +3,12 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { getContract } from "thirdweb"; import { isContractDeployed } from "thirdweb/utils"; -import { upsertChainIndexer } from "../../../../shared/db/chainIndexers/upsertChainIndexer"; -import { createContractSubscription } from "../../../../shared/db/contractSubscriptions/createContractSubscription"; -import { getContractSubscriptionsUniqueChainIds } from "../../../../shared/db/contractSubscriptions/getContractSubscriptions"; -import { insertWebhook } from "../../../../shared/db/webhooks/createWebhook"; +import { upsertChainIndexer } from "../../../../shared/db/chain-indexers/upsert-chain-indexer"; +import { createContractSubscription } from "../../../../shared/db/contract-subscriptions/create-contract-subscription"; +import { getContractSubscriptionsUniqueChainIds } from "../../../../shared/db/contract-subscriptions/get-contract-subscriptions"; +import { insertWebhook } from "../../../../shared/db/webhooks/create-webhook"; import { WebhooksEventTypes } from "../../../../shared/schemas/webhooks"; -import { getSdk } from "../../../../shared/utils/cache/getSdk"; +import { getSdk } from "../../../../shared/utils/cache/get-sdk"; import { getChain } from "../../../../shared/utils/chain"; import { thirdwebClient } from "../../../../shared/utils/sdk"; import { createCustomError } from "../../../middleware/error"; diff --git a/src/server/routes/contract/subscriptions/getContractIndexedBlockRange.ts b/src/server/routes/contract/subscriptions/getContractIndexedBlockRange.ts index 66a5f0cb8..1d72bd12b 100644 --- a/src/server/routes/contract/subscriptions/getContractIndexedBlockRange.ts +++ b/src/server/routes/contract/subscriptions/getContractIndexedBlockRange.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getContractEventLogsIndexedBlockRange } from "../../../../shared/db/contractEventLogs/getContractEventLogs"; +import { getContractEventLogsIndexedBlockRange } from "../../../../shared/db/contract-event-logs/get-contract-event-logs"; import { createCustomError } from "../../../middleware/error"; import { AddressSchema } from "../../../schemas/address"; import { chainIdOrSlugSchema } from "../../../schemas/chain"; diff --git a/src/server/routes/contract/subscriptions/getContractSubscriptions.ts b/src/server/routes/contract/subscriptions/getContractSubscriptions.ts index d542ee9a2..e825b437d 100644 --- a/src/server/routes/contract/subscriptions/getContractSubscriptions.ts +++ b/src/server/routes/contract/subscriptions/getContractSubscriptions.ts @@ -1,7 +1,7 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getAllContractSubscriptions } from "../../../../shared/db/contractSubscriptions/getContractSubscriptions"; +import { getAllContractSubscriptions } from "../../../../shared/db/contract-subscriptions/get-contract-subscriptions"; import { contractSubscriptionSchema, toContractSubscriptionSchema, diff --git a/src/server/routes/contract/subscriptions/getLatestBlock.ts b/src/server/routes/contract/subscriptions/getLatestBlock.ts index 1cea5a453..38f308b2b 100644 --- a/src/server/routes/contract/subscriptions/getLatestBlock.ts +++ b/src/server/routes/contract/subscriptions/getLatestBlock.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getLastIndexedBlock } from "../../../../shared/db/chainIndexers/getChainIndexer"; +import { getLastIndexedBlock } from "../../../../shared/db/chain-indexers/get-chain-indexer"; import { chainRequestQuerystringSchema } from "../../../schemas/chain"; import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; import { getChainIdFromChain } from "../../../utils/chain"; diff --git a/src/server/routes/contract/subscriptions/removeContractSubscription.ts b/src/server/routes/contract/subscriptions/removeContractSubscription.ts index 488b2d68c..e7ebfcb4a 100644 --- a/src/server/routes/contract/subscriptions/removeContractSubscription.ts +++ b/src/server/routes/contract/subscriptions/removeContractSubscription.ts @@ -1,8 +1,8 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { deleteContractSubscription } from "../../../../shared/db/contractSubscriptions/deleteContractSubscription"; -import { deleteWebhook } from "../../../../shared/db/webhooks/revokeWebhook"; +import { deleteContractSubscription } from "../../../../shared/db/contract-subscriptions/delete-contract-subscription"; +import { deleteWebhook } from "../../../../shared/db/webhooks/revoke-webhook"; import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; const bodySchema = Type.Object({ diff --git a/src/server/routes/contract/transactions/getTransactionReceipts.ts b/src/server/routes/contract/transactions/getTransactionReceipts.ts index d0267226d..8822c46f0 100644 --- a/src/server/routes/contract/transactions/getTransactionReceipts.ts +++ b/src/server/routes/contract/transactions/getTransactionReceipts.ts @@ -1,8 +1,8 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { isContractSubscribed } from "../../../../shared/db/contractSubscriptions/getContractSubscriptions"; -import { getContractTransactionReceiptsByBlock } from "../../../../shared/db/contractTransactionReceipts/getContractTransactionReceipts"; +import { isContractSubscribed } from "../../../../shared/db/contract-subscriptions/get-contract-subscriptions"; +import { getContractTransactionReceiptsByBlock } from "../../../../shared/db/contract-transaction-receipts/get-contract-transaction-receipts"; import { createCustomError } from "../../../middleware/error"; import { contractParamSchema, diff --git a/src/server/routes/contract/transactions/getTransactionReceiptsByTimestamp.ts b/src/server/routes/contract/transactions/getTransactionReceiptsByTimestamp.ts index 5a9f55393..6db81d04e 100644 --- a/src/server/routes/contract/transactions/getTransactionReceiptsByTimestamp.ts +++ b/src/server/routes/contract/transactions/getTransactionReceiptsByTimestamp.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getTransactionReceiptsByBlockTimestamp } from "../../../../shared/db/contractTransactionReceipts/getContractTransactionReceipts"; +import { getTransactionReceiptsByBlockTimestamp } from "../../../../shared/db/contract-transaction-receipts/get-contract-transaction-receipts"; import { AddressSchema } from "../../../schemas/address"; import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; import { transactionReceiptSchema } from "../../../schemas/transactionReceipt"; diff --git a/src/server/routes/contract/transactions/paginateTransactionReceipts.ts b/src/server/routes/contract/transactions/paginateTransactionReceipts.ts index 6aca2a842..b9db6ec49 100644 --- a/src/server/routes/contract/transactions/paginateTransactionReceipts.ts +++ b/src/server/routes/contract/transactions/paginateTransactionReceipts.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getConfiguration } from "../../../../shared/db/configuration/getConfiguration"; -import { getTransactionReceiptsByCursor } from "../../../../shared/db/contractTransactionReceipts/getContractTransactionReceipts"; +import { getConfiguration } from "../../../../shared/db/configuration/get-configuration"; +import { getTransactionReceiptsByCursor } from "../../../../shared/db/contract-transaction-receipts/get-contract-transaction-receipts"; import { AddressSchema } from "../../../schemas/address"; import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; import { diff --git a/src/server/routes/contract/write/write.ts b/src/server/routes/contract/write/write.ts index 3f928832f..c3ea10a25 100644 --- a/src/server/routes/contract/write/write.ts +++ b/src/server/routes/contract/write/write.ts @@ -3,9 +3,9 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { prepareContractCall, resolveMethod } from "thirdweb"; import { parseAbiParams, type AbiFunction } from "thirdweb/utils"; -import { getContractV5 } from "../../../../shared/utils/cache/getContractv5"; +import { getContractV5 } from "../../../../shared/utils/cache/get-contractv5"; import { prettifyError } from "../../../../shared/utils/error"; -import { queueTransaction } from "../../../../shared/utils/transaction/queueTransation"; +import { queueTransaction } from "../../../../shared/utils/transaction/queue-transation"; import { createCustomError } from "../../../middleware/error"; import { abiArraySchema } from "../../../schemas/contract"; import { diff --git a/src/server/routes/deploy/prebuilt.ts b/src/server/routes/deploy/prebuilt.ts index 271d298b7..abb97673e 100644 --- a/src/server/routes/deploy/prebuilt.ts +++ b/src/server/routes/deploy/prebuilt.ts @@ -2,8 +2,8 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import type { Address } from "thirdweb"; -import { queueTx } from "../../../shared/db/transactions/queueTx"; -import { getSdk } from "../../../shared/utils/cache/getSdk"; +import { queueTx } from "../../../shared/db/transactions/queue-tx"; +import { getSdk } from "../../../shared/utils/cache/get-sdk"; import { AddressSchema } from "../../schemas/address"; import { contractDeployBasicSchema } from "../../schemas/contract"; import { diff --git a/src/server/routes/deploy/prebuilts/edition.ts b/src/server/routes/deploy/prebuilts/edition.ts index 611437a7b..d4da4fe9f 100644 --- a/src/server/routes/deploy/prebuilts/edition.ts +++ b/src/server/routes/deploy/prebuilts/edition.ts @@ -2,8 +2,8 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import type { Address } from "thirdweb"; -import { queueTx } from "../../../../shared/db/transactions/queueTx"; -import { getSdk } from "../../../../shared/utils/cache/getSdk"; +import { queueTx } from "../../../../shared/db/transactions/queue-tx"; +import { getSdk } from "../../../../shared/utils/cache/get-sdk"; import { contractDeployBasicSchema } from "../../../schemas/contract"; import { commonContractSchema, diff --git a/src/server/routes/deploy/prebuilts/editionDrop.ts b/src/server/routes/deploy/prebuilts/editionDrop.ts index 8ffa11299..0e264fa14 100644 --- a/src/server/routes/deploy/prebuilts/editionDrop.ts +++ b/src/server/routes/deploy/prebuilts/editionDrop.ts @@ -2,8 +2,8 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import type { Address } from "thirdweb"; -import { queueTx } from "../../../../shared/db/transactions/queueTx"; -import { getSdk } from "../../../../shared/utils/cache/getSdk"; +import { queueTx } from "../../../../shared/db/transactions/queue-tx"; +import { getSdk } from "../../../../shared/utils/cache/get-sdk"; import { contractDeployBasicSchema } from "../../../schemas/contract"; import { commonContractSchema, diff --git a/src/server/routes/deploy/prebuilts/marketplaceV3.ts b/src/server/routes/deploy/prebuilts/marketplaceV3.ts index 8d70769a9..a087d7ca0 100644 --- a/src/server/routes/deploy/prebuilts/marketplaceV3.ts +++ b/src/server/routes/deploy/prebuilts/marketplaceV3.ts @@ -2,8 +2,8 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import type { Address } from "thirdweb"; -import { queueTx } from "../../../../shared/db/transactions/queueTx"; -import { getSdk } from "../../../../shared/utils/cache/getSdk"; +import { queueTx } from "../../../../shared/db/transactions/queue-tx"; +import { getSdk } from "../../../../shared/utils/cache/get-sdk"; import { contractDeployBasicSchema } from "../../../schemas/contract"; import { commonContractSchema, diff --git a/src/server/routes/deploy/prebuilts/multiwrap.ts b/src/server/routes/deploy/prebuilts/multiwrap.ts index beb778bda..48c2e0406 100644 --- a/src/server/routes/deploy/prebuilts/multiwrap.ts +++ b/src/server/routes/deploy/prebuilts/multiwrap.ts @@ -2,8 +2,8 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import type { Address } from "thirdweb"; -import { queueTx } from "../../../../shared/db/transactions/queueTx"; -import { getSdk } from "../../../../shared/utils/cache/getSdk"; +import { queueTx } from "../../../../shared/db/transactions/queue-tx"; +import { getSdk } from "../../../../shared/utils/cache/get-sdk"; import { contractDeployBasicSchema } from "../../../schemas/contract"; import { commonContractSchema, diff --git a/src/server/routes/deploy/prebuilts/nftCollection.ts b/src/server/routes/deploy/prebuilts/nftCollection.ts index d12c2ec63..4856e9c79 100644 --- a/src/server/routes/deploy/prebuilts/nftCollection.ts +++ b/src/server/routes/deploy/prebuilts/nftCollection.ts @@ -2,8 +2,8 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import type { Address } from "thirdweb"; -import { queueTx } from "../../../../shared/db/transactions/queueTx"; -import { getSdk } from "../../../../shared/utils/cache/getSdk"; +import { queueTx } from "../../../../shared/db/transactions/queue-tx"; +import { getSdk } from "../../../../shared/utils/cache/get-sdk"; import { contractDeployBasicSchema } from "../../../schemas/contract"; import { commonContractSchema, diff --git a/src/server/routes/deploy/prebuilts/nftDrop.ts b/src/server/routes/deploy/prebuilts/nftDrop.ts index 19ca2a2f2..71b3b0ebf 100644 --- a/src/server/routes/deploy/prebuilts/nftDrop.ts +++ b/src/server/routes/deploy/prebuilts/nftDrop.ts @@ -2,8 +2,8 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import type { Address } from "thirdweb"; -import { queueTx } from "../../../../shared/db/transactions/queueTx"; -import { getSdk } from "../../../../shared/utils/cache/getSdk"; +import { queueTx } from "../../../../shared/db/transactions/queue-tx"; +import { getSdk } from "../../../../shared/utils/cache/get-sdk"; import { contractDeployBasicSchema } from "../../../schemas/contract"; import { commonContractSchema, diff --git a/src/server/routes/deploy/prebuilts/pack.ts b/src/server/routes/deploy/prebuilts/pack.ts index 9e5eedbec..e65685990 100644 --- a/src/server/routes/deploy/prebuilts/pack.ts +++ b/src/server/routes/deploy/prebuilts/pack.ts @@ -2,8 +2,8 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import type { Address } from "thirdweb"; -import { queueTx } from "../../../../shared/db/transactions/queueTx"; -import { getSdk } from "../../../../shared/utils/cache/getSdk"; +import { queueTx } from "../../../../shared/db/transactions/queue-tx"; +import { getSdk } from "../../../../shared/utils/cache/get-sdk"; import { contractDeployBasicSchema } from "../../../schemas/contract"; import { commonContractSchema, diff --git a/src/server/routes/deploy/prebuilts/signatureDrop.ts b/src/server/routes/deploy/prebuilts/signatureDrop.ts index f7a4a6290..05bb9c0a9 100644 --- a/src/server/routes/deploy/prebuilts/signatureDrop.ts +++ b/src/server/routes/deploy/prebuilts/signatureDrop.ts @@ -2,8 +2,8 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import type { Address } from "thirdweb"; -import { queueTx } from "../../../../shared/db/transactions/queueTx"; -import { getSdk } from "../../../../shared/utils/cache/getSdk"; +import { queueTx } from "../../../../shared/db/transactions/queue-tx"; +import { getSdk } from "../../../../shared/utils/cache/get-sdk"; import { contractDeployBasicSchema } from "../../../schemas/contract"; import { commonContractSchema, diff --git a/src/server/routes/deploy/prebuilts/split.ts b/src/server/routes/deploy/prebuilts/split.ts index 8184c0699..b0e1f15c9 100644 --- a/src/server/routes/deploy/prebuilts/split.ts +++ b/src/server/routes/deploy/prebuilts/split.ts @@ -2,8 +2,8 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import type { Address } from "thirdweb"; -import { queueTx } from "../../../../shared/db/transactions/queueTx"; -import { getSdk } from "../../../../shared/utils/cache/getSdk"; +import { queueTx } from "../../../../shared/db/transactions/queue-tx"; +import { getSdk } from "../../../../shared/utils/cache/get-sdk"; import { contractDeployBasicSchema } from "../../../schemas/contract"; import { commonContractSchema, diff --git a/src/server/routes/deploy/prebuilts/token.ts b/src/server/routes/deploy/prebuilts/token.ts index 50fde94fb..ae2ffbb7e 100644 --- a/src/server/routes/deploy/prebuilts/token.ts +++ b/src/server/routes/deploy/prebuilts/token.ts @@ -2,8 +2,8 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import type { Address } from "thirdweb"; -import { queueTx } from "../../../../shared/db/transactions/queueTx"; -import { getSdk } from "../../../../shared/utils/cache/getSdk"; +import { queueTx } from "../../../../shared/db/transactions/queue-tx"; +import { getSdk } from "../../../../shared/utils/cache/get-sdk"; import { contractDeployBasicSchema } from "../../../schemas/contract"; import { commonContractSchema, diff --git a/src/server/routes/deploy/prebuilts/tokenDrop.ts b/src/server/routes/deploy/prebuilts/tokenDrop.ts index 73f55b682..b14b9f9cd 100644 --- a/src/server/routes/deploy/prebuilts/tokenDrop.ts +++ b/src/server/routes/deploy/prebuilts/tokenDrop.ts @@ -2,8 +2,8 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import type { Address } from "thirdweb"; -import { queueTx } from "../../../../shared/db/transactions/queueTx"; -import { getSdk } from "../../../../shared/utils/cache/getSdk"; +import { queueTx } from "../../../../shared/db/transactions/queue-tx"; +import { getSdk } from "../../../../shared/utils/cache/get-sdk"; import { contractDeployBasicSchema } from "../../../schemas/contract"; import { commonContractSchema, diff --git a/src/server/routes/deploy/prebuilts/vote.ts b/src/server/routes/deploy/prebuilts/vote.ts index fce36471f..292a1c151 100644 --- a/src/server/routes/deploy/prebuilts/vote.ts +++ b/src/server/routes/deploy/prebuilts/vote.ts @@ -2,8 +2,8 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import type { Address } from "thirdweb"; -import { queueTx } from "../../../../shared/db/transactions/queueTx"; -import { getSdk } from "../../../../shared/utils/cache/getSdk"; +import { queueTx } from "../../../../shared/db/transactions/queue-tx"; +import { getSdk } from "../../../../shared/utils/cache/get-sdk"; import { contractDeployBasicSchema } from "../../../schemas/contract"; import { commonContractSchema, diff --git a/src/server/routes/deploy/published.ts b/src/server/routes/deploy/published.ts index 13a313541..41bcb0f30 100644 --- a/src/server/routes/deploy/published.ts +++ b/src/server/routes/deploy/published.ts @@ -2,8 +2,8 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { isAddress } from "thirdweb"; -import { queueTx } from "../../../shared/db/transactions/queueTx"; -import { getSdk } from "../../../shared/utils/cache/getSdk"; +import { queueTx } from "../../../shared/db/transactions/queue-tx"; +import { getSdk } from "../../../shared/utils/cache/get-sdk"; import { contractDeployBasicSchema } from "../../schemas/contract"; import { publishedDeployParamSchema, diff --git a/src/server/routes/relayer/index.ts b/src/server/routes/relayer/index.ts index 604a0774d..a624ce74d 100644 --- a/src/server/routes/relayer/index.ts +++ b/src/server/routes/relayer/index.ts @@ -9,9 +9,9 @@ import { ForwarderAbiEIP712ChainlessDomain, NativeMetaTransaction, } from "../../../shared/schemas/relayer"; -import { getRelayerById } from "../../../shared/db/relayer/getRelayerById"; -import { queueTx } from "../../../shared/db/transactions/queueTx"; -import { getSdk } from "../../../shared/utils/cache/getSdk"; +import { getRelayerById } from "../../../shared/db/relayer/get-relayer-by-id"; +import { queueTx } from "../../../shared/db/transactions/queue-tx"; +import { getSdk } from "../../../shared/utils/cache/get-sdk"; import { AddressSchema } from "../../schemas/address"; import { standardResponseSchema, diff --git a/src/server/routes/transaction/cancel.ts b/src/server/routes/transaction/cancel.ts index cb49beb59..cd06f9354 100644 --- a/src/server/routes/transaction/cancel.ts +++ b/src/server/routes/transaction/cancel.ts @@ -3,10 +3,10 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { TransactionDB } from "../../../shared/db/transactions/db"; import { getBlockNumberish } from "../../../shared/utils/block"; -import { getConfig } from "../../../shared/utils/cache/getConfig"; +import { getConfig } from "../../../shared/utils/cache/get-config"; import { getChain } from "../../../shared/utils/chain"; import { msSince } from "../../../shared/utils/date"; -import { sendCancellationTransaction } from "../../../shared/utils/transaction/cancelTransaction"; +import { sendCancellationTransaction } from "../../../shared/utils/transaction/cancel-transaction"; import type { CancelledTransaction } from "../../../shared/utils/transaction/types"; import { enqueueTransactionWebhook } from "../../../shared/utils/transaction/webhook"; import { reportUsage } from "../../../shared/utils/usage"; diff --git a/src/server/routes/transaction/retry.ts b/src/server/routes/transaction/retry.ts index affd9a88c..21743f725 100644 --- a/src/server/routes/transaction/retry.ts +++ b/src/server/routes/transaction/retry.ts @@ -2,7 +2,7 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { TransactionDB } from "../../../shared/db/transactions/db"; -import { maybeBigInt } from "../../../shared/utils/primitiveTypes"; +import { maybeBigInt } from "../../../shared/utils/primitive-types"; import type { SentTransaction } from "../../../shared/utils/transaction/types"; import { SendTransactionQueue } from "../../../worker/queues/sendTransactionQueue"; import { createCustomError } from "../../middleware/error"; diff --git a/src/server/routes/transaction/sync-retry.ts b/src/server/routes/transaction/sync-retry.ts index e6ef887c4..b0b45b8a6 100644 --- a/src/server/routes/transaction/sync-retry.ts +++ b/src/server/routes/transaction/sync-retry.ts @@ -10,7 +10,7 @@ import { getChain } from "../../../shared/utils/chain"; import { getChecksumAddress, maybeBigInt, -} from "../../../shared/utils/primitiveTypes"; +} from "../../../shared/utils/primitive-types"; import { thirdwebClient } from "../../../shared/utils/sdk"; import type { SentTransaction } from "../../../shared/utils/transaction/types"; import { enqueueTransactionWebhook } from "../../../shared/utils/transaction/webhook"; diff --git a/src/server/routes/webhooks/create.ts b/src/server/routes/webhooks/create.ts index b9e71f2a9..986fa6743 100644 --- a/src/server/routes/webhooks/create.ts +++ b/src/server/routes/webhooks/create.ts @@ -1,7 +1,7 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { insertWebhook } from "../../../shared/db/webhooks/createWebhook"; +import { insertWebhook } from "../../../shared/db/webhooks/create-webhook"; import { WebhooksEventTypes } from "../../../shared/schemas/webhooks"; import { createCustomError } from "../../middleware/error"; import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; diff --git a/src/server/routes/webhooks/getAll.ts b/src/server/routes/webhooks/getAll.ts index 1c3c26149..5b342cd7a 100644 --- a/src/server/routes/webhooks/getAll.ts +++ b/src/server/routes/webhooks/getAll.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getAllWebhooks } from "../../../shared/db/webhooks/getAllWebhooks"; +import { getAllWebhooks } from "../../../shared/db/webhooks/get-all-webhooks"; import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; import { WebhookSchema, toWebhookSchema } from "../../schemas/webhook"; diff --git a/src/server/routes/webhooks/revoke.ts b/src/server/routes/webhooks/revoke.ts index e3b220442..de943d16d 100644 --- a/src/server/routes/webhooks/revoke.ts +++ b/src/server/routes/webhooks/revoke.ts @@ -1,8 +1,8 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getWebhook } from "../../../shared/db/webhooks/getWebhook"; -import { deleteWebhook } from "../../../shared/db/webhooks/revokeWebhook"; +import { getWebhook } from "../../../shared/db/webhooks/get-webhook"; +import { deleteWebhook } from "../../../shared/db/webhooks/revoke-webhook"; import { createCustomError } from "../../middleware/error"; import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; diff --git a/src/server/routes/webhooks/test.ts b/src/server/routes/webhooks/test.ts index c70bbb5de..0031a7580 100644 --- a/src/server/routes/webhooks/test.ts +++ b/src/server/routes/webhooks/test.ts @@ -1,7 +1,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { getWebhook } from "../../../shared/db/webhooks/getWebhook"; +import { getWebhook } from "../../../shared/db/webhooks/get-webhook"; import { sendWebhookRequest } from "../../../shared/utils/webhook"; import { createCustomError } from "../../middleware/error"; import { NumberStringSchema } from "../../schemas/number"; diff --git a/src/server/utils/transactionOverrides.ts b/src/server/utils/transactionOverrides.ts index 83f728024..d7c8e9fcf 100644 --- a/src/server/utils/transactionOverrides.ts +++ b/src/server/utils/transactionOverrides.ts @@ -1,5 +1,5 @@ import type { Static } from "@sinclair/typebox"; -import { maybeBigInt } from "../../shared/utils/primitiveTypes"; +import { maybeBigInt } from "../../shared/utils/primitive-types"; import type { InsertedTransaction } from "../../shared/utils/transaction/types"; import type { txOverridesSchema, diff --git a/src/server/utils/wallets/createGcpKmsWallet.ts b/src/server/utils/wallets/createGcpKmsWallet.ts index bf4a249a2..d45fd0835 100644 --- a/src/server/utils/wallets/createGcpKmsWallet.ts +++ b/src/server/utils/wallets/createGcpKmsWallet.ts @@ -1,5 +1,5 @@ import { KeyManagementServiceClient } from "@google-cloud/kms"; -import { createWalletDetails } from "../../../shared/db/wallets/createWalletDetails"; +import { createWalletDetails } from "../../../shared/db/wallets/create-wallet-details"; import { WalletType } from "../../../shared/schemas/wallet"; import { thirdwebClient } from "../../../shared/utils/sdk"; import { diff --git a/src/server/utils/wallets/createLocalWallet.ts b/src/server/utils/wallets/createLocalWallet.ts index c8b187171..2a1d3d7bd 100644 --- a/src/server/utils/wallets/createLocalWallet.ts +++ b/src/server/utils/wallets/createLocalWallet.ts @@ -1,7 +1,7 @@ import { encryptKeystore } from "@ethersproject/json-wallets"; import { privateKeyToAccount } from "thirdweb/wallets"; import { generatePrivateKey } from "viem/accounts"; -import { createWalletDetails } from "../../../shared/db/wallets/createWalletDetails"; +import { createWalletDetails } from "../../../shared/db/wallets/create-wallet-details"; import { env } from "../../../shared/utils/env"; import { thirdwebClient } from "../../../shared/utils/sdk"; diff --git a/src/server/utils/wallets/createSmartWallet.ts b/src/server/utils/wallets/createSmartWallet.ts index 263c60f03..d2e45a166 100644 --- a/src/server/utils/wallets/createSmartWallet.ts +++ b/src/server/utils/wallets/createSmartWallet.ts @@ -1,6 +1,6 @@ import { defineChain, type Address, type Chain } from "thirdweb"; import { smartWallet, type Account } from "thirdweb/wallets"; -import { createWalletDetails } from "../../../shared/db/wallets/createWalletDetails"; +import { createWalletDetails } from "../../../shared/db/wallets/create-wallet-details"; import { WalletType } from "../../../shared/schemas/wallet"; import { thirdwebClient } from "../../../shared/utils/sdk"; import { splitAwsKmsArn } from "./awsKmsArn"; diff --git a/src/server/utils/wallets/fetchAwsKmsWalletParams.ts b/src/server/utils/wallets/fetchAwsKmsWalletParams.ts index eea36e9ca..0b0f46ef5 100644 --- a/src/server/utils/wallets/fetchAwsKmsWalletParams.ts +++ b/src/server/utils/wallets/fetchAwsKmsWalletParams.ts @@ -1,4 +1,4 @@ -import { getConfig } from "../../../shared/utils/cache/getConfig"; +import { getConfig } from "../../../shared/utils/cache/get-config"; export type AwsKmsWalletParams = { awsAccessKeyId: string; diff --git a/src/server/utils/wallets/fetchGcpKmsWalletParams.ts b/src/server/utils/wallets/fetchGcpKmsWalletParams.ts index a5f6de90b..4d2fc84da 100644 --- a/src/server/utils/wallets/fetchGcpKmsWalletParams.ts +++ b/src/server/utils/wallets/fetchGcpKmsWalletParams.ts @@ -1,4 +1,4 @@ -import { getConfig } from "../../../shared/utils/cache/getConfig"; +import { getConfig } from "../../../shared/utils/cache/get-config"; export type GcpKmsWalletParams = { gcpApplicationCredentialEmail: string; diff --git a/src/server/utils/wallets/getLocalWallet.ts b/src/server/utils/wallets/getLocalWallet.ts index dd078f4e4..ec4756789 100644 --- a/src/server/utils/wallets/getLocalWallet.ts +++ b/src/server/utils/wallets/getLocalWallet.ts @@ -3,7 +3,7 @@ import { Wallet } from "ethers"; import type { Address } from "thirdweb"; import { getChainMetadata } from "thirdweb/chains"; import { privateKeyToAccount, type Account } from "thirdweb/wallets"; -import { getWalletDetails } from "../../../shared/db/wallets/getWalletDetails"; +import { getWalletDetails } from "../../../shared/db/wallets/get-wallet-details"; import { getChain } from "../../../shared/utils/chain"; import { env } from "../../../shared/utils/env"; import { logger } from "../../../shared/utils/logger"; diff --git a/src/server/utils/wallets/getSmartWallet.ts b/src/server/utils/wallets/getSmartWallet.ts index 67db9f1d1..1b512361d 100644 --- a/src/server/utils/wallets/getSmartWallet.ts +++ b/src/server/utils/wallets/getSmartWallet.ts @@ -1,5 +1,5 @@ import { SmartWallet, type EVMWallet } from "@thirdweb-dev/wallets"; -import { getContract } from "../../../shared/utils/cache/getContract"; +import { getContract } from "../../../shared/utils/cache/get-contract"; import { env } from "../../../shared/utils/env"; import { redis } from "../../../shared/utils/redis/redis"; diff --git a/src/server/utils/wallets/importAwsKmsWallet.ts b/src/server/utils/wallets/importAwsKmsWallet.ts index 82d3969b4..da394e32e 100644 --- a/src/server/utils/wallets/importAwsKmsWallet.ts +++ b/src/server/utils/wallets/importAwsKmsWallet.ts @@ -1,4 +1,4 @@ -import { createWalletDetails } from "../../../shared/db/wallets/createWalletDetails"; +import { createWalletDetails } from "../../../shared/db/wallets/create-wallet-details"; import { WalletType } from "../../../shared/schemas/wallet"; import { thirdwebClient } from "../../../shared/utils/sdk"; import { splitAwsKmsArn } from "./awsKmsArn"; diff --git a/src/server/utils/wallets/importGcpKmsWallet.ts b/src/server/utils/wallets/importGcpKmsWallet.ts index d34d1f865..57246ca78 100644 --- a/src/server/utils/wallets/importGcpKmsWallet.ts +++ b/src/server/utils/wallets/importGcpKmsWallet.ts @@ -1,4 +1,4 @@ -import { createWalletDetails } from "../../../shared/db/wallets/createWalletDetails"; +import { createWalletDetails } from "../../../shared/db/wallets/create-wallet-details"; import { WalletType } from "../../../shared/schemas/wallet"; import { thirdwebClient } from "../../../shared/utils/sdk"; import { getGcpKmsAccount } from "./getGcpKmsAccount"; diff --git a/src/shared/db/chainIndexers/getChainIndexer.ts b/src/shared/db/chain-indexers/get-chain-indexer.ts similarity index 100% rename from src/shared/db/chainIndexers/getChainIndexer.ts rename to src/shared/db/chain-indexers/get-chain-indexer.ts diff --git a/src/shared/db/chainIndexers/upsertChainIndexer.ts b/src/shared/db/chain-indexers/upsert-chain-indexer.ts similarity index 100% rename from src/shared/db/chainIndexers/upsertChainIndexer.ts rename to src/shared/db/chain-indexers/upsert-chain-indexer.ts diff --git a/src/shared/db/configuration/getConfiguration.ts b/src/shared/db/configuration/get-configuration.ts similarity index 99% rename from src/shared/db/configuration/getConfiguration.ts rename to src/shared/db/configuration/get-configuration.ts index 5d1698ccd..ee46e3a3b 100644 --- a/src/shared/db/configuration/getConfiguration.ts +++ b/src/shared/db/configuration/get-configuration.ts @@ -10,12 +10,12 @@ import type { } from "../../schemas/config"; import { WalletType } from "../../schemas/wallet"; import { mandatoryAllowedCorsUrls } from "../../../server/utils/cors-urls"; -import type { networkResponseSchema } from "../../utils/cache/getSdk"; +import type { networkResponseSchema } from "../../utils/cache/get-sdk"; import { decrypt } from "../../utils/crypto"; import { env } from "../../utils/env"; import { logger } from "../../utils/logger"; import { prisma } from "../client"; -import { updateConfiguration } from "./updateConfiguration"; +import { updateConfiguration } from "./update-configuration"; const toParsedConfig = async (config: Configuration): Promise => { // We destructure the config to omit wallet related fields to prevent direct access diff --git a/src/shared/db/configuration/updateConfiguration.ts b/src/shared/db/configuration/update-configuration.ts similarity index 100% rename from src/shared/db/configuration/updateConfiguration.ts rename to src/shared/db/configuration/update-configuration.ts diff --git a/src/shared/db/contractEventLogs/createContractEventLogs.ts b/src/shared/db/contract-event-logs/create-contract-event-logs.ts similarity index 100% rename from src/shared/db/contractEventLogs/createContractEventLogs.ts rename to src/shared/db/contract-event-logs/create-contract-event-logs.ts diff --git a/src/shared/db/contractEventLogs/deleteContractEventLogs.ts b/src/shared/db/contract-event-logs/delete-contract-event-logs.ts similarity index 100% rename from src/shared/db/contractEventLogs/deleteContractEventLogs.ts rename to src/shared/db/contract-event-logs/delete-contract-event-logs.ts diff --git a/src/shared/db/contractEventLogs/getContractEventLogs.ts b/src/shared/db/contract-event-logs/get-contract-event-logs.ts similarity index 100% rename from src/shared/db/contractEventLogs/getContractEventLogs.ts rename to src/shared/db/contract-event-logs/get-contract-event-logs.ts diff --git a/src/shared/db/contractSubscriptions/createContractSubscription.ts b/src/shared/db/contract-subscriptions/create-contract-subscription.ts similarity index 100% rename from src/shared/db/contractSubscriptions/createContractSubscription.ts rename to src/shared/db/contract-subscriptions/create-contract-subscription.ts diff --git a/src/shared/db/contractSubscriptions/deleteContractSubscription.ts b/src/shared/db/contract-subscriptions/delete-contract-subscription.ts similarity index 100% rename from src/shared/db/contractSubscriptions/deleteContractSubscription.ts rename to src/shared/db/contract-subscriptions/delete-contract-subscription.ts diff --git a/src/shared/db/contractSubscriptions/getContractSubscriptions.ts b/src/shared/db/contract-subscriptions/get-contract-subscriptions.ts similarity index 100% rename from src/shared/db/contractSubscriptions/getContractSubscriptions.ts rename to src/shared/db/contract-subscriptions/get-contract-subscriptions.ts diff --git a/src/shared/db/contractTransactionReceipts/createContractTransactionReceipts.ts b/src/shared/db/contract-transaction-receipts/create-contract-transaction-receipts.ts similarity index 100% rename from src/shared/db/contractTransactionReceipts/createContractTransactionReceipts.ts rename to src/shared/db/contract-transaction-receipts/create-contract-transaction-receipts.ts diff --git a/src/shared/db/contractTransactionReceipts/deleteContractTransactionReceipts.ts b/src/shared/db/contract-transaction-receipts/delete-contract-transaction-receipts.ts similarity index 100% rename from src/shared/db/contractTransactionReceipts/deleteContractTransactionReceipts.ts rename to src/shared/db/contract-transaction-receipts/delete-contract-transaction-receipts.ts diff --git a/src/shared/db/contractTransactionReceipts/getContractTransactionReceipts.ts b/src/shared/db/contract-transaction-receipts/get-contract-transaction-receipts.ts similarity index 100% rename from src/shared/db/contractTransactionReceipts/getContractTransactionReceipts.ts rename to src/shared/db/contract-transaction-receipts/get-contract-transaction-receipts.ts diff --git a/src/shared/db/permissions/deletePermissions.ts b/src/shared/db/permissions/delete-permissions.ts similarity index 100% rename from src/shared/db/permissions/deletePermissions.ts rename to src/shared/db/permissions/delete-permissions.ts diff --git a/src/shared/db/permissions/getPermissions.ts b/src/shared/db/permissions/get-permissions.ts similarity index 100% rename from src/shared/db/permissions/getPermissions.ts rename to src/shared/db/permissions/get-permissions.ts diff --git a/src/shared/db/permissions/updatePermissions.ts b/src/shared/db/permissions/update-permissions.ts similarity index 100% rename from src/shared/db/permissions/updatePermissions.ts rename to src/shared/db/permissions/update-permissions.ts diff --git a/src/shared/db/relayer/getRelayerById.ts b/src/shared/db/relayer/get-relayer-by-id.ts similarity index 100% rename from src/shared/db/relayer/getRelayerById.ts rename to src/shared/db/relayer/get-relayer-by-id.ts diff --git a/src/shared/db/tokens/createToken.ts b/src/shared/db/tokens/create-token.ts similarity index 100% rename from src/shared/db/tokens/createToken.ts rename to src/shared/db/tokens/create-token.ts diff --git a/src/shared/db/tokens/getAccessTokens.ts b/src/shared/db/tokens/get-access-tokens.ts similarity index 100% rename from src/shared/db/tokens/getAccessTokens.ts rename to src/shared/db/tokens/get-access-tokens.ts diff --git a/src/shared/db/tokens/getToken.ts b/src/shared/db/tokens/get-token.ts similarity index 100% rename from src/shared/db/tokens/getToken.ts rename to src/shared/db/tokens/get-token.ts diff --git a/src/shared/db/tokens/revokeToken.ts b/src/shared/db/tokens/revoke-token.ts similarity index 100% rename from src/shared/db/tokens/revokeToken.ts rename to src/shared/db/tokens/revoke-token.ts diff --git a/src/shared/db/tokens/updateToken.ts b/src/shared/db/tokens/update-token.ts similarity index 100% rename from src/shared/db/tokens/updateToken.ts rename to src/shared/db/tokens/update-token.ts diff --git a/src/shared/db/transactions/queueTx.ts b/src/shared/db/transactions/queue-tx.ts similarity index 99% rename from src/shared/db/transactions/queueTx.ts rename to src/shared/db/transactions/queue-tx.ts index 4c12eeae0..181142fa8 100644 --- a/src/shared/db/transactions/queueTx.ts +++ b/src/shared/db/transactions/queue-tx.ts @@ -2,8 +2,8 @@ import type { DeployTransaction, Transaction } from "@thirdweb-dev/sdk"; import type { ERC4337EthersSigner } from "@thirdweb-dev/wallets/dist/declarations/src/evm/connectors/smart-wallet/lib/erc4337-signer"; import { ZERO_ADDRESS, type Address } from "thirdweb"; import type { ContractExtension } from "../../schemas/extension"; -import { maybeBigInt, normalizeAddress } from "../../utils/primitiveTypes"; -import { insertTransaction } from "../../utils/transaction/insertTransaction"; +import { maybeBigInt, normalizeAddress } from "../../utils/primitive-types"; +import { insertTransaction } from "../../utils/transaction/insert-transaction"; import type { InsertedTransaction } from "../../utils/transaction/types"; import { parseTransactionOverrides } from "../../../server/utils/transactionOverrides"; diff --git a/src/shared/db/wallets/createWalletDetails.ts b/src/shared/db/wallets/create-wallet-details.ts similarity index 100% rename from src/shared/db/wallets/createWalletDetails.ts rename to src/shared/db/wallets/create-wallet-details.ts diff --git a/src/shared/db/wallets/deleteWalletDetails.ts b/src/shared/db/wallets/delete-wallet-details.ts similarity index 100% rename from src/shared/db/wallets/deleteWalletDetails.ts rename to src/shared/db/wallets/delete-wallet-details.ts diff --git a/src/shared/db/wallets/getAllWallets.ts b/src/shared/db/wallets/get-all-wallets.ts similarity index 100% rename from src/shared/db/wallets/getAllWallets.ts rename to src/shared/db/wallets/get-all-wallets.ts diff --git a/src/shared/db/wallets/getWalletDetails.ts b/src/shared/db/wallets/get-wallet-details.ts similarity index 99% rename from src/shared/db/wallets/getWalletDetails.ts rename to src/shared/db/wallets/get-wallet-details.ts index fcbc8e9d6..eaa475143 100644 --- a/src/shared/db/wallets/getWalletDetails.ts +++ b/src/shared/db/wallets/get-wallet-details.ts @@ -1,7 +1,7 @@ import { getAddress } from "thirdweb"; import { z } from "zod"; import type { PrismaTransaction } from "../../schemas/prisma"; -import { getConfig } from "../../utils/cache/getConfig"; +import { getConfig } from "../../utils/cache/get-config"; import { decrypt } from "../../utils/crypto"; import { env } from "../../utils/env"; import { getPrismaWithPostgresTx } from "../client"; diff --git a/src/shared/db/wallets/nonceMap.ts b/src/shared/db/wallets/nonce-map.ts similarity index 97% rename from src/shared/db/wallets/nonceMap.ts rename to src/shared/db/wallets/nonce-map.ts index aac67c2be..5c8bab836 100644 --- a/src/shared/db/wallets/nonceMap.ts +++ b/src/shared/db/wallets/nonce-map.ts @@ -1,6 +1,6 @@ import type { Address } from "thirdweb"; import { env } from "../../utils/env"; -import { normalizeAddress } from "../../utils/primitiveTypes"; +import { normalizeAddress } from "../../utils/primitive-types"; import { redis } from "../../utils/redis/redis"; /** diff --git a/src/shared/db/wallets/updateWalletDetails.ts b/src/shared/db/wallets/update-wallet-details.ts similarity index 100% rename from src/shared/db/wallets/updateWalletDetails.ts rename to src/shared/db/wallets/update-wallet-details.ts diff --git a/src/shared/db/wallets/walletNonce.ts b/src/shared/db/wallets/wallet-nonce.ts similarity index 98% rename from src/shared/db/wallets/walletNonce.ts rename to src/shared/db/wallets/wallet-nonce.ts index 1d7124bd8..c730533ce 100644 --- a/src/shared/db/wallets/walletNonce.ts +++ b/src/shared/db/wallets/wallet-nonce.ts @@ -6,10 +6,10 @@ import { } from "thirdweb"; import { getChain } from "../../utils/chain"; import { logger } from "../../utils/logger"; -import { normalizeAddress } from "../../utils/primitiveTypes"; +import { normalizeAddress } from "../../utils/primitive-types"; import { redis } from "../../utils/redis/redis"; import { thirdwebClient } from "../../utils/sdk"; -import { updateNonceMap } from "./nonceMap"; +import { updateNonceMap } from "./nonce-map"; /** * Get all used backend wallets. diff --git a/src/shared/db/webhooks/createWebhook.ts b/src/shared/db/webhooks/create-webhook.ts similarity index 100% rename from src/shared/db/webhooks/createWebhook.ts rename to src/shared/db/webhooks/create-webhook.ts diff --git a/src/shared/db/webhooks/getAllWebhooks.ts b/src/shared/db/webhooks/get-all-webhooks.ts similarity index 100% rename from src/shared/db/webhooks/getAllWebhooks.ts rename to src/shared/db/webhooks/get-all-webhooks.ts diff --git a/src/shared/db/webhooks/getWebhook.ts b/src/shared/db/webhooks/get-webhook.ts similarity index 100% rename from src/shared/db/webhooks/getWebhook.ts rename to src/shared/db/webhooks/get-webhook.ts diff --git a/src/shared/db/webhooks/revokeWebhook.ts b/src/shared/db/webhooks/revoke-webhook.ts similarity index 100% rename from src/shared/db/webhooks/revokeWebhook.ts rename to src/shared/db/webhooks/revoke-webhook.ts diff --git a/src/shared/utils/account.ts b/src/shared/utils/account.ts index ef3d83e68..72126e9e7 100644 --- a/src/shared/utils/account.ts +++ b/src/shared/utils/account.ts @@ -5,7 +5,7 @@ import { getWalletDetails, isSmartBackendWallet, type ParsedWalletDetails, -} from "../db/wallets/getWalletDetails"; +} from "../db/wallets/get-wallet-details"; import { WalletType } from "../schemas/wallet"; import { splitAwsKmsArn } from "../../server/utils/wallets/awsKmsArn"; import { getConnectedSmartWallet } from "../../server/utils/wallets/createSmartWallet"; @@ -15,7 +15,7 @@ import { encryptedJsonToAccount, getLocalWalletAccount, } from "../../server/utils/wallets/getLocalWallet"; -import { getSmartWalletV5 } from "./cache/getSmartWalletV5"; +import { getSmartWalletV5 } from "./cache/get-smart-wallet-v5"; import { getChain } from "./chain"; import { thirdwebClient } from "./sdk"; diff --git a/src/shared/utils/cache/accessToken.ts b/src/shared/utils/cache/access-token.ts similarity index 91% rename from src/shared/utils/cache/accessToken.ts rename to src/shared/utils/cache/access-token.ts index 992e25ee9..139f16013 100644 --- a/src/shared/utils/cache/accessToken.ts +++ b/src/shared/utils/cache/access-token.ts @@ -1,6 +1,6 @@ import type { Tokens } from "@prisma/client"; import LRUMap from "mnemonist/lru-map"; -import { getToken } from "../../db/tokens/getToken"; +import { getToken } from "../../db/tokens/get-token"; // Cache an access token JWT to the token object, or null if not found. export const accessTokenCache = new LRUMap(2048); diff --git a/src/shared/utils/cache/authWallet.ts b/src/shared/utils/cache/auth-wallet.ts similarity index 95% rename from src/shared/utils/cache/authWallet.ts rename to src/shared/utils/cache/auth-wallet.ts index 8af853198..0da2eb19e 100644 --- a/src/shared/utils/cache/authWallet.ts +++ b/src/shared/utils/cache/auth-wallet.ts @@ -1,8 +1,8 @@ import { LocalWallet } from "@thirdweb-dev/wallets"; -import { updateConfiguration } from "../../db/configuration/updateConfiguration"; +import { updateConfiguration } from "../../db/configuration/update-configuration"; import { env } from "../env"; import { logger } from "../logger"; -import { getConfig } from "./getConfig"; +import { getConfig } from "./get-config"; let authWallet: LocalWallet | undefined; diff --git a/src/shared/utils/cache/clearCache.ts b/src/shared/utils/cache/clear-cache.ts similarity index 58% rename from src/shared/utils/cache/clearCache.ts rename to src/shared/utils/cache/clear-cache.ts index 870561b26..3a8cc423d 100644 --- a/src/shared/utils/cache/clearCache.ts +++ b/src/shared/utils/cache/clear-cache.ts @@ -1,9 +1,9 @@ import type { env } from "../env"; -import { accessTokenCache } from "./accessToken"; -import { invalidateConfig } from "./getConfig"; -import { sdkCache } from "./getSdk"; -import { walletsCache } from "./getWallet"; -import { webhookCache } from "./getWebhook"; +import { accessTokenCache } from "./access-token"; +import { invalidateConfig } from "./get-config"; +import { sdkCache } from "./get-sdk"; +import { walletsCache } from "./get-wallet"; +import { webhookCache } from "./get-webhook"; import { keypairCache } from "./keypair"; export const clearCache = async ( diff --git a/src/shared/utils/cache/getConfig.ts b/src/shared/utils/cache/get-config.ts similarity index 82% rename from src/shared/utils/cache/getConfig.ts rename to src/shared/utils/cache/get-config.ts index f18937576..f88dd75c1 100644 --- a/src/shared/utils/cache/getConfig.ts +++ b/src/shared/utils/cache/get-config.ts @@ -1,4 +1,4 @@ -import { getConfiguration } from "../../db/configuration/getConfiguration"; +import { getConfiguration } from "../../db/configuration/get-configuration"; import type { ParsedConfig } from "../../schemas/config"; let _config: ParsedConfig | null = null; diff --git a/src/shared/utils/cache/getContract.ts b/src/shared/utils/cache/get-contract.ts similarity index 96% rename from src/shared/utils/cache/getContract.ts rename to src/shared/utils/cache/get-contract.ts index b9b4dcb51..c590434d0 100644 --- a/src/shared/utils/cache/getContract.ts +++ b/src/shared/utils/cache/get-contract.ts @@ -2,7 +2,7 @@ import { type Static, Type } from "@sinclair/typebox"; import { StatusCodes } from "http-status-codes"; import { createCustomError } from "../../../server/middleware/error"; import { abiSchema } from "../../../server/schemas/contract"; -import { getSdk } from "./getSdk"; +import { getSdk } from "./get-sdk"; const abiArraySchema = Type.Array(abiSchema); diff --git a/src/shared/utils/cache/getContractv5.ts b/src/shared/utils/cache/get-contractv5.ts similarity index 100% rename from src/shared/utils/cache/getContractv5.ts rename to src/shared/utils/cache/get-contractv5.ts diff --git a/src/shared/utils/cache/getSdk.ts b/src/shared/utils/cache/get-sdk.ts similarity index 98% rename from src/shared/utils/cache/getSdk.ts rename to src/shared/utils/cache/get-sdk.ts index f15781715..92f80472b 100644 --- a/src/shared/utils/cache/getSdk.ts +++ b/src/shared/utils/cache/get-sdk.ts @@ -5,7 +5,7 @@ import { getChainMetadata } from "thirdweb/chains"; import { badChainError } from "../../../server/middleware/error"; import { getChain } from "../chain"; import { env } from "../env"; -import { getWallet } from "./getWallet"; +import { getWallet } from "./get-wallet"; export const sdkCache = new LRUMap(2048); diff --git a/src/shared/utils/cache/getSmartWalletV5.ts b/src/shared/utils/cache/get-smart-wallet-v5.ts similarity index 100% rename from src/shared/utils/cache/getSmartWalletV5.ts rename to src/shared/utils/cache/get-smart-wallet-v5.ts diff --git a/src/shared/utils/cache/getWallet.ts b/src/shared/utils/cache/get-wallet.ts similarity index 99% rename from src/shared/utils/cache/getWallet.ts rename to src/shared/utils/cache/get-wallet.ts index 520cf924f..7ad7cdecb 100644 --- a/src/shared/utils/cache/getWallet.ts +++ b/src/shared/utils/cache/get-wallet.ts @@ -6,7 +6,7 @@ import { WalletDetailsError, getWalletDetails, type ParsedWalletDetails, -} from "../../db/wallets/getWalletDetails"; +} from "../../db/wallets/get-wallet-details"; import type { PrismaTransaction } from "../../schemas/prisma"; import { WalletType } from "../../schemas/wallet"; import { createCustomError } from "../../../server/middleware/error"; diff --git a/src/shared/utils/cache/getWebhook.ts b/src/shared/utils/cache/get-webhook.ts similarity index 90% rename from src/shared/utils/cache/getWebhook.ts rename to src/shared/utils/cache/get-webhook.ts index 1ed9df187..51326d569 100644 --- a/src/shared/utils/cache/getWebhook.ts +++ b/src/shared/utils/cache/get-webhook.ts @@ -1,6 +1,6 @@ import type { Webhooks } from "@prisma/client"; import LRUMap from "mnemonist/lru-map"; -import { getAllWebhooks } from "../../db/webhooks/getAllWebhooks"; +import { getAllWebhooks } from "../../db/webhooks/get-all-webhooks"; import type { WebhooksEventTypes } from "../../schemas/webhooks"; export const webhookCache = new LRUMap(2048); diff --git a/src/shared/utils/chain.ts b/src/shared/utils/chain.ts index 0b15e27cd..c0c581dad 100644 --- a/src/shared/utils/chain.ts +++ b/src/shared/utils/chain.ts @@ -1,5 +1,5 @@ import { defineChain, type Chain } from "thirdweb"; -import { getConfig } from "./cache/getConfig"; +import { getConfig } from "./cache/get-config"; /** * Get the chain for thirdweb v5 SDK. Supports chain overrides. diff --git a/src/shared/utils/cron/clearCacheCron.ts b/src/shared/utils/cron/clear-cache-cron.ts similarity index 80% rename from src/shared/utils/cron/clearCacheCron.ts rename to src/shared/utils/cron/clear-cache-cron.ts index c6bf0f0b3..71c620862 100644 --- a/src/shared/utils/cron/clearCacheCron.ts +++ b/src/shared/utils/cron/clear-cache-cron.ts @@ -1,6 +1,6 @@ import cron from "node-cron"; -import { clearCache } from "../cache/clearCache"; -import { getConfig } from "../cache/getConfig"; +import { clearCache } from "../cache/clear-cache"; +import { getConfig } from "../cache/get-config"; import { env } from "../env"; let task: cron.ScheduledTask; diff --git a/src/shared/utils/cron/isValidCron.ts b/src/shared/utils/cron/is-valid-cron.ts similarity index 100% rename from src/shared/utils/cron/isValidCron.ts rename to src/shared/utils/cron/is-valid-cron.ts diff --git a/src/shared/utils/indexer/getBlockTime.ts b/src/shared/utils/indexer/get-block-time.ts similarity index 100% rename from src/shared/utils/indexer/getBlockTime.ts rename to src/shared/utils/indexer/get-block-time.ts diff --git a/src/shared/utils/primitiveTypes.ts b/src/shared/utils/primitive-types.ts similarity index 100% rename from src/shared/utils/primitiveTypes.ts rename to src/shared/utils/primitive-types.ts diff --git a/src/shared/utils/prometheus.ts b/src/shared/utils/prometheus.ts index dbada9ad4..21b99132f 100644 --- a/src/shared/utils/prometheus.ts +++ b/src/shared/utils/prometheus.ts @@ -1,6 +1,6 @@ import fastify from "fastify"; import { Counter, Gauge, Histogram, Registry } from "prom-client"; -import { getUsedBackendWallets, inspectNonce } from "../db/wallets/walletNonce"; +import { getUsedBackendWallets, inspectNonce } from "../db/wallets/wallet-nonce"; import { getLastUsedOnchainNonce } from "../../server/routes/admin/nonces"; const nonceMetrics = new Gauge({ diff --git a/src/shared/utils/transaction/cancelTransaction.ts b/src/shared/utils/transaction/cancel-transaction.ts similarity index 95% rename from src/shared/utils/transaction/cancelTransaction.ts rename to src/shared/utils/transaction/cancel-transaction.ts index 29ee5fc66..d2dda52c6 100644 --- a/src/shared/utils/transaction/cancelTransaction.ts +++ b/src/shared/utils/transaction/cancel-transaction.ts @@ -1,7 +1,7 @@ import { Address, toSerializableTransaction } from "thirdweb"; import { getAccount } from "../account"; import { getChain } from "../chain"; -import { getChecksumAddress } from "../primitiveTypes"; +import { getChecksumAddress } from "../primitive-types"; import { thirdwebClient } from "../sdk"; interface CancellableTransaction { diff --git a/src/shared/utils/transaction/insertTransaction.ts b/src/shared/utils/transaction/insert-transaction.ts similarity index 96% rename from src/shared/utils/transaction/insertTransaction.ts rename to src/shared/utils/transaction/insert-transaction.ts index 5d4f33da4..69737784f 100644 --- a/src/shared/utils/transaction/insertTransaction.ts +++ b/src/shared/utils/transaction/insert-transaction.ts @@ -5,14 +5,14 @@ import { getWalletDetails, isSmartBackendWallet, type ParsedWalletDetails, -} from "../../../shared/db/wallets/getWalletDetails"; +} from "../../../shared/db/wallets/get-wallet-details"; import { doesChainSupportService } from "../../lib/chain/chain-capabilities"; import { createCustomError } from "../../../server/middleware/error"; import { SendTransactionQueue } from "../../../worker/queues/sendTransactionQueue"; -import { getChecksumAddress } from "../primitiveTypes"; +import { getChecksumAddress } from "../primitive-types"; import { recordMetrics } from "../prometheus"; import { reportUsage } from "../usage"; -import { doSimulateTransaction } from "./simulateQueuedTransaction"; +import { doSimulateTransaction } from "./simulate-queued-transaction"; import type { InsertedTransaction, QueuedTransaction } from "./types"; interface InsertTransactionData { diff --git a/src/shared/utils/transaction/queueTransation.ts b/src/shared/utils/transaction/queue-transation.ts similarity index 97% rename from src/shared/utils/transaction/queueTransation.ts rename to src/shared/utils/transaction/queue-transation.ts index e883a83aa..c19ddbc30 100644 --- a/src/shared/utils/transaction/queueTransation.ts +++ b/src/shared/utils/transaction/queue-transation.ts @@ -11,7 +11,7 @@ import { createCustomError } from "../../../server/middleware/error"; import type { txOverridesWithValueSchema } from "../../../server/schemas/txOverrides"; import { parseTransactionOverrides } from "../../../server/utils/transactionOverrides"; import { prettifyError } from "../error"; -import { insertTransaction } from "./insertTransaction"; +import { insertTransaction } from "./insert-transaction"; import type { InsertedTransaction } from "./types"; export type QueuedTransactionParams = { diff --git a/src/shared/utils/transaction/simulateQueuedTransaction.ts b/src/shared/utils/transaction/simulate-queued-transaction.ts similarity index 96% rename from src/shared/utils/transaction/simulateQueuedTransaction.ts rename to src/shared/utils/transaction/simulate-queued-transaction.ts index 5b94db96f..2a39a8575 100644 --- a/src/shared/utils/transaction/simulateQueuedTransaction.ts +++ b/src/shared/utils/transaction/simulate-queued-transaction.ts @@ -6,7 +6,7 @@ import { import { stringify } from "thirdweb/utils"; import type { Account } from "thirdweb/wallets"; import { getAccount } from "../account"; -import { getSmartWalletV5 } from "../cache/getSmartWalletV5"; +import { getSmartWalletV5 } from "../cache/get-smart-wallet-v5"; import { getChain } from "../chain"; import { thirdwebClient } from "../sdk"; import type { AnyTransaction } from "./types"; diff --git a/src/worker/indexers/chainIndexerRegistry.ts b/src/worker/indexers/chainIndexerRegistry.ts index 760b556f1..d8d540535 100644 --- a/src/worker/indexers/chainIndexerRegistry.ts +++ b/src/worker/indexers/chainIndexerRegistry.ts @@ -1,5 +1,5 @@ import cron from "node-cron"; -import { getBlockTimeSeconds } from "../../shared/utils/indexer/getBlockTime"; +import { getBlockTimeSeconds } from "../../shared/utils/indexer/get-block-time"; import { logger } from "../../shared/utils/logger"; import { handleContractSubscriptions } from "../tasks/chainIndexer"; diff --git a/src/worker/listeners/chainIndexerListener.ts b/src/worker/listeners/chainIndexerListener.ts index 186aee895..a9f08a55f 100644 --- a/src/worker/listeners/chainIndexerListener.ts +++ b/src/worker/listeners/chainIndexerListener.ts @@ -1,5 +1,5 @@ import cron from "node-cron"; -import { getConfig } from "../../shared/utils/cache/getConfig"; +import { getConfig } from "../../shared/utils/cache/get-config"; import { logger } from "../../shared/utils/logger"; import { manageChainIndexers } from "../tasks/manageChainIndexers"; diff --git a/src/worker/listeners/configListener.ts b/src/worker/listeners/configListener.ts index 62594280d..fd4aa331d 100644 --- a/src/worker/listeners/configListener.ts +++ b/src/worker/listeners/configListener.ts @@ -1,6 +1,6 @@ import { knex } from "../../shared/db/client"; -import { getConfig } from "../../shared/utils/cache/getConfig"; -import { clearCacheCron } from "../../shared/utils/cron/clearCacheCron"; +import { getConfig } from "../../shared/utils/cache/get-config"; +import { clearCacheCron } from "../../shared/utils/cron/clear-cache-cron"; import { logger } from "../../shared/utils/logger"; import { chainIndexerListener } from "./chainIndexerListener"; diff --git a/src/worker/listeners/webhookListener.ts b/src/worker/listeners/webhookListener.ts index d1ab64e18..fd1197cb2 100644 --- a/src/worker/listeners/webhookListener.ts +++ b/src/worker/listeners/webhookListener.ts @@ -1,5 +1,5 @@ import { knex } from "../../shared/db/client"; -import { webhookCache } from "../../shared/utils/cache/getWebhook"; +import { webhookCache } from "../../shared/utils/cache/get-webhook"; import { logger } from "../../shared/utils/logger"; export const newWebhooksListener = async (): Promise => { diff --git a/src/worker/queues/processEventLogsQueue.ts b/src/worker/queues/processEventLogsQueue.ts index de3c97a0d..499a73940 100644 --- a/src/worker/queues/processEventLogsQueue.ts +++ b/src/worker/queues/processEventLogsQueue.ts @@ -1,7 +1,7 @@ import { Queue } from "bullmq"; import SuperJSON from "superjson"; import type { Address } from "thirdweb"; -import { getConfig } from "../../shared/utils/cache/getConfig"; +import { getConfig } from "../../shared/utils/cache/get-config"; import { redis } from "../../shared/utils/redis/redis"; import { defaultJobOptions } from "./queues"; diff --git a/src/worker/queues/processTransactionReceiptsQueue.ts b/src/worker/queues/processTransactionReceiptsQueue.ts index 6ee7c7557..946e1eb1a 100644 --- a/src/worker/queues/processTransactionReceiptsQueue.ts +++ b/src/worker/queues/processTransactionReceiptsQueue.ts @@ -1,7 +1,7 @@ import { Queue } from "bullmq"; import superjson from "superjson"; import type { Address } from "thirdweb"; -import { getConfig } from "../../shared/utils/cache/getConfig"; +import { getConfig } from "../../shared/utils/cache/get-config"; import { redis } from "../../shared/utils/redis/redis"; import { defaultJobOptions } from "./queues"; diff --git a/src/worker/queues/sendWebhookQueue.ts b/src/worker/queues/sendWebhookQueue.ts index a39bb7468..273e2827e 100644 --- a/src/worker/queues/sendWebhookQueue.ts +++ b/src/worker/queues/sendWebhookQueue.ts @@ -9,7 +9,7 @@ import { WebhooksEventTypes, type BackendWalletBalanceWebhookParams, } from "../../shared/schemas/webhooks"; -import { getWebhooksByEventType } from "../../shared/utils/cache/getWebhook"; +import { getWebhooksByEventType } from "../../shared/utils/cache/get-webhook"; import { logger } from "../../shared/utils/logger"; import { redis } from "../../shared/utils/redis/redis"; import { defaultJobOptions } from "./queues"; diff --git a/src/worker/tasks/cancelRecycledNoncesWorker.ts b/src/worker/tasks/cancelRecycledNoncesWorker.ts index 2fa58212a..0ac34b2a1 100644 --- a/src/worker/tasks/cancelRecycledNoncesWorker.ts +++ b/src/worker/tasks/cancelRecycledNoncesWorker.ts @@ -1,10 +1,10 @@ import { type Job, type Processor, Worker } from "bullmq"; import type { Address } from "thirdweb"; -import { recycleNonce } from "../../shared/db/wallets/walletNonce"; +import { recycleNonce } from "../../shared/db/wallets/wallet-nonce"; import { isNonceAlreadyUsedError } from "../../shared/utils/error"; import { logger } from "../../shared/utils/logger"; import { redis } from "../../shared/utils/redis/redis"; -import { sendCancellationTransaction } from "../../shared/utils/transaction/cancelTransaction"; +import { sendCancellationTransaction } from "../../shared/utils/transaction/cancel-transaction"; import { CancelRecycledNoncesQueue } from "../queues/cancelRecycledNoncesQueue"; import { logWorkerExceptions } from "../queues/queues"; diff --git a/src/worker/tasks/chainIndexer.ts b/src/worker/tasks/chainIndexer.ts index 41bf92288..ee29f88d2 100644 --- a/src/worker/tasks/chainIndexer.ts +++ b/src/worker/tasks/chainIndexer.ts @@ -4,10 +4,10 @@ import { getRpcClient, type Address, } from "thirdweb"; -import { getBlockForIndexing } from "../../shared/db/chainIndexers/getChainIndexer"; -import { upsertChainIndexer } from "../../shared/db/chainIndexers/upsertChainIndexer"; +import { getBlockForIndexing } from "../../shared/db/chain-indexers/get-chain-indexer"; +import { upsertChainIndexer } from "../../shared/db/chain-indexers/upsert-chain-indexer"; import { prisma } from "../../shared/db/client"; -import { getContractSubscriptionsByChainId } from "../../shared/db/contractSubscriptions/getContractSubscriptions"; +import { getContractSubscriptionsByChainId } from "../../shared/db/contract-subscriptions/get-contract-subscriptions"; import { getChain } from "../../shared/utils/chain"; import { logger } from "../../shared/utils/logger"; import { thirdwebClient } from "../../shared/utils/sdk"; diff --git a/src/worker/tasks/manageChainIndexers.ts b/src/worker/tasks/manageChainIndexers.ts index 787f88116..ef13d227f 100644 --- a/src/worker/tasks/manageChainIndexers.ts +++ b/src/worker/tasks/manageChainIndexers.ts @@ -1,4 +1,4 @@ -import { getContractSubscriptionsUniqueChainIds } from "../../shared/db/contractSubscriptions/getContractSubscriptions"; +import { getContractSubscriptionsUniqueChainIds } from "../../shared/db/contract-subscriptions/get-contract-subscriptions"; import { INDEXER_REGISTRY, addChainIndexer, diff --git a/src/worker/tasks/mineTransactionWorker.ts b/src/worker/tasks/mineTransactionWorker.ts index a9d09edc5..11440400c 100644 --- a/src/worker/tasks/mineTransactionWorker.ts +++ b/src/worker/tasks/mineTransactionWorker.ts @@ -14,15 +14,15 @@ import { TransactionDB } from "../../shared/db/transactions/db"; import { recycleNonce, removeSentNonce, -} from "../../shared/db/wallets/walletNonce"; +} from "../../shared/db/wallets/wallet-nonce"; import { getReceiptForEOATransaction, getReceiptForUserOp, } from "../../shared/lib/transaction/get-transaction-receipt"; import { WebhooksEventTypes } from "../../shared/schemas/webhooks"; import { getBlockNumberish } from "../../shared/utils/block"; -import { getConfig } from "../../shared/utils/cache/getConfig"; -import { getWebhooksByEventType } from "../../shared/utils/cache/getWebhook"; +import { getConfig } from "../../shared/utils/cache/get-config"; +import { getWebhooksByEventType } from "../../shared/utils/cache/get-webhook"; import { getChain } from "../../shared/utils/chain"; import { msSince } from "../../shared/utils/date"; import { env } from "../../shared/utils/env"; diff --git a/src/worker/tasks/nonceHealthCheckWorker.ts b/src/worker/tasks/nonceHealthCheckWorker.ts index 2c2ab63a3..0032dec6c 100644 --- a/src/worker/tasks/nonceHealthCheckWorker.ts +++ b/src/worker/tasks/nonceHealthCheckWorker.ts @@ -3,7 +3,7 @@ import { getAddress, type Address } from "thirdweb"; import { getUsedBackendWallets, inspectNonce, -} from "../../shared/db/wallets/walletNonce"; +} from "../../shared/db/wallets/wallet-nonce"; import { getLastUsedOnchainNonce } from "../../server/routes/admin/nonces"; import { logger } from "../../shared/utils/logger"; import { redis } from "../../shared/utils/redis/redis"; diff --git a/src/worker/tasks/nonceResyncWorker.ts b/src/worker/tasks/nonceResyncWorker.ts index 144390076..da4dffacc 100644 --- a/src/worker/tasks/nonceResyncWorker.ts +++ b/src/worker/tasks/nonceResyncWorker.ts @@ -5,8 +5,8 @@ import { isSentNonce, recycleNonce, splitSentNoncesKey, -} from "../../shared/db/wallets/walletNonce"; -import { getConfig } from "../../shared/utils/cache/getConfig"; +} from "../../shared/db/wallets/wallet-nonce"; +import { getConfig } from "../../shared/utils/cache/get-config"; import { getChain } from "../../shared/utils/chain"; import { prettifyError } from "../../shared/utils/error"; import { logger } from "../../shared/utils/logger"; diff --git a/src/worker/tasks/processEventLogsWorker.ts b/src/worker/tasks/processEventLogsWorker.ts index b1fd0c357..3b56d9621 100644 --- a/src/worker/tasks/processEventLogsWorker.ts +++ b/src/worker/tasks/processEventLogsWorker.ts @@ -15,12 +15,12 @@ import { type ThirdwebContract, } from "thirdweb"; import { resolveContractAbi } from "thirdweb/contract"; -import { bulkInsertContractEventLogs } from "../../shared/db/contractEventLogs/createContractEventLogs"; -import { getContractSubscriptionsByChainId } from "../../shared/db/contractSubscriptions/getContractSubscriptions"; +import { bulkInsertContractEventLogs } from "../../shared/db/contract-event-logs/create-contract-event-logs"; +import { getContractSubscriptionsByChainId } from "../../shared/db/contract-subscriptions/get-contract-subscriptions"; import { WebhooksEventTypes } from "../../shared/schemas/webhooks"; import { getChain } from "../../shared/utils/chain"; import { logger } from "../../shared/utils/logger"; -import { normalizeAddress } from "../../shared/utils/primitiveTypes"; +import { normalizeAddress } from "../../shared/utils/primitive-types"; import { redis } from "../../shared/utils/redis/redis"; import { thirdwebClient } from "../../shared/utils/sdk"; import { diff --git a/src/worker/tasks/processTransactionReceiptsWorker.ts b/src/worker/tasks/processTransactionReceiptsWorker.ts index 5bfb4e5a0..620b316f2 100644 --- a/src/worker/tasks/processTransactionReceiptsWorker.ts +++ b/src/worker/tasks/processTransactionReceiptsWorker.ts @@ -12,11 +12,11 @@ import { } from "thirdweb"; import { resolveContractAbi } from "thirdweb/contract"; import { decodeFunctionData, type Abi, type Hash } from "viem"; -import { bulkInsertContractTransactionReceipts } from "../../shared/db/contractTransactionReceipts/createContractTransactionReceipts"; +import { bulkInsertContractTransactionReceipts } from "../../shared/db/contract-transaction-receipts/create-contract-transaction-receipts"; import { WebhooksEventTypes } from "../../shared/schemas/webhooks"; import { getChain } from "../../shared/utils/chain"; import { logger } from "../../shared/utils/logger"; -import { normalizeAddress } from "../../shared/utils/primitiveTypes"; +import { normalizeAddress } from "../../shared/utils/primitive-types"; import { redis } from "../../shared/utils/redis/redis"; import { thirdwebClient } from "../../shared/utils/sdk"; import { diff --git a/src/worker/tasks/pruneTransactionsWorker.ts b/src/worker/tasks/pruneTransactionsWorker.ts index d736c23f3..190622969 100644 --- a/src/worker/tasks/pruneTransactionsWorker.ts +++ b/src/worker/tasks/pruneTransactionsWorker.ts @@ -1,6 +1,6 @@ import { Worker, type Job, type Processor } from "bullmq"; import { TransactionDB } from "../../shared/db/transactions/db"; -import { pruneNonceMaps } from "../../shared/db/wallets/nonceMap"; +import { pruneNonceMaps } from "../../shared/db/wallets/nonce-map"; import { env } from "../../shared/utils/env"; import { redis } from "../../shared/utils/redis/redis"; import { PruneTransactionsQueue } from "../queues/pruneTransactionsQueue"; diff --git a/src/worker/tasks/sendTransactionWorker.ts b/src/worker/tasks/sendTransactionWorker.ts index 6a340b691..8c662f7e7 100644 --- a/src/worker/tasks/sendTransactionWorker.ts +++ b/src/worker/tasks/sendTransactionWorker.ts @@ -24,7 +24,7 @@ import { addSentNonce, recycleNonce, syncLatestNonceFromOnchainIfHigher, -} from "../../shared/db/wallets/walletNonce"; +} from "../../shared/db/wallets/wallet-nonce"; import { getAccount, getSmartBackendWalletAdminAccount, @@ -40,7 +40,7 @@ import { wrapError, } from "../../shared/utils/error"; import { BigIntMath } from "../../shared/utils/math"; -import { getChecksumAddress } from "../../shared/utils/primitiveTypes"; +import { getChecksumAddress } from "../../shared/utils/primitive-types"; import { recordMetrics } from "../../shared/utils/prometheus"; import { redis } from "../../shared/utils/redis/redis"; import { thirdwebClient } from "../../shared/utils/sdk"; diff --git a/tests/unit/auth.test.ts b/tests/unit/auth.test.ts index 7ea7ab5f2..c7597e08d 100644 --- a/tests/unit/auth.test.ts +++ b/tests/unit/auth.test.ts @@ -3,17 +3,17 @@ import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import { LocalWallet } from "@thirdweb-dev/wallets"; import type { FastifyRequest } from "fastify/types/request"; import jsonwebtoken from "jsonwebtoken"; -import { getPermissions } from "../../src/shared/db/permissions/getPermissions"; +import { getPermissions } from "../../src/shared/db/permissions/get-permissions"; import { WebhooksEventTypes } from "../../src/shared/schemas/webhooks"; import { onRequest } from "../../src/server/middleware/auth"; import { THIRDWEB_DASHBOARD_ISSUER, handleSiwe, } from "../../src/shared/utils/auth"; -import { getAccessToken } from "../../src/shared/utils/cache/accessToken"; -import { getAuthWallet } from "../../src/shared/utils/cache/authWallet"; -import { getConfig } from "../../src/shared/utils/cache/getConfig"; -import { getWebhooksByEventType } from "../../src/shared/utils/cache/getWebhook"; +import { getAccessToken } from "../../src/shared/utils/cache/access-token"; +import { getAuthWallet } from "../../src/shared/utils/cache/auth-wallet"; +import { getConfig } from "../../src/shared/utils/cache/get-config"; +import { getWebhooksByEventType } from "../../src/shared/utils/cache/get-webhook"; import { getKeypair } from "../../src/shared/utils/cache/keypair"; import { sendWebhookRequest } from "../../src/shared/utils/webhook"; import { Permission } from "../../src/shared/schemas"; diff --git a/tests/unit/chain.test.ts b/tests/unit/chain.test.ts index dff36db94..9db0fca24 100644 --- a/tests/unit/chain.test.ts +++ b/tests/unit/chain.test.ts @@ -4,7 +4,7 @@ import { } from "@thirdweb-dev/chains"; import { beforeEach, describe, expect, it, vi } from "vitest"; import { getChainIdFromChain } from "../../src/server/utils/chain"; -import { getConfig } from "../../src/shared/utils/cache/getConfig"; +import { getConfig } from "../../src/shared/utils/cache/get-config"; // Mock the external dependencies vi.mock("../utils/cache/getConfig");