From 55dbc58c0cb101ee17518f85b20d34791ab929a5 Mon Sep 17 00:00:00 2001 From: Phillip Ho Date: Tue, 10 Dec 2024 16:33:27 +0800 Subject: [PATCH] chore(refactor): kebab-case /worker folder (#804) * chore(refactor): kebab-case /shared/db * all shared folder * chore(refactor): Rename /worker folder to kebab-case * chore(refactor): kebab-case /server folder --- renamer.ts | 2 +- src/index.ts | 16 ++-- src/server/index.ts | 12 +-- ...ateTxListener.ts => update-tx-listener.ts} | 0 .../{adminRoutes.ts => admin-routes.ts} | 18 ++-- src/server/middleware/auth.ts | 4 +- src/server/middleware/cors.ts | 2 +- .../{engineMode.ts => engine-mode.ts} | 0 src/server/middleware/logs.ts | 4 +- .../middleware/{openApi.ts => open-api.ts} | 0 .../{rateLimit.ts => rate-limit.ts} | 2 +- ...securityHeaders.ts => security-headers.ts} | 0 src/server/routes/admin/nonces.ts | 2 +- src/server/routes/admin/transaction.ts | 6 +- .../routes/auth/access-tokens/create.ts | 4 +- .../access-tokens/{getAll.ts => get-all.ts} | 2 +- .../routes/auth/access-tokens/revoke.ts | 2 +- .../routes/auth/access-tokens/update.ts | 2 +- src/server/routes/auth/keypair/add.ts | 2 +- src/server/routes/auth/keypair/list.ts | 2 +- src/server/routes/auth/keypair/remove.ts | 2 +- .../permissions/{getAll.ts => get-all.ts} | 2 +- src/server/routes/auth/permissions/grant.ts | 2 +- src/server/routes/auth/permissions/revoke.ts | 2 +- .../routes/backend-wallet/cancel-nonces.ts | 2 +- src/server/routes/backend-wallet/create.ts | 10 +- .../backend-wallet/{getAll.ts => get-all.ts} | 2 +- .../{getBalance.ts => get-balance.ts} | 2 +- .../{getNonce.ts => get-nonce.ts} | 2 +- ...yNonce.ts => get-transactions-by-nonce.ts} | 2 +- ...getTransactions.ts => get-transactions.ts} | 2 +- src/server/routes/backend-wallet/import.ts | 10 +- src/server/routes/backend-wallet/remove.ts | 2 +- .../routes/backend-wallet/reset-nonces.ts | 2 +- ...tionBatch.ts => send-transaction-batch.ts} | 6 +- ...sendTransaction.ts => send-transaction.ts} | 6 +- .../{signMessage.ts => sign-message.ts} | 2 +- ...signTransaction.ts => sign-transaction.ts} | 2 +- .../{signTypedData.ts => sign-typed-data.ts} | 2 +- ...Transaction.ts => simulate-transaction.ts} | 2 +- src/server/routes/backend-wallet/transfer.ts | 6 +- src/server/routes/backend-wallet/update.ts | 2 +- src/server/routes/backend-wallet/withdraw.ts | 6 +- .../routes/chain/{getAll.ts => get-all.ts} | 2 +- src/server/routes/chain/get.ts | 2 +- src/server/routes/configuration/auth/get.ts | 2 +- .../routes/configuration/auth/update.ts | 2 +- .../backend-wallet-balance/get.ts | 2 +- .../backend-wallet-balance/update.ts | 2 +- src/server/routes/configuration/cache/get.ts | 2 +- .../routes/configuration/cache/update.ts | 2 +- src/server/routes/configuration/chains/get.ts | 2 +- .../routes/configuration/chains/update.ts | 2 +- .../contract-subscriptions/get.ts | 2 +- .../contract-subscriptions/update.ts | 2 +- src/server/routes/configuration/cors/add.ts | 2 +- src/server/routes/configuration/cors/get.ts | 2 +- .../routes/configuration/cors/remove.ts | 2 +- src/server/routes/configuration/cors/set.ts | 2 +- src/server/routes/configuration/ip/get.ts | 2 +- src/server/routes/configuration/ip/set.ts | 2 +- .../routes/configuration/transactions/get.ts | 2 +- .../configuration/transactions/update.ts | 2 +- .../routes/configuration/wallets/get.ts | 2 +- .../routes/configuration/wallets/update.ts | 2 +- .../{getAllEvents.ts => get-all-events.ts} | 2 +- ...ventLogs.ts => get-contract-event-logs.ts} | 2 +- ...tamp.ts => get-event-logs-by-timestamp.ts} | 4 +- .../events/{getEvents.ts => get-events.ts} | 2 +- ...ateEventLogs.ts => paginate-event-logs.ts} | 4 +- .../index.ts | 10 +- .../read/get-all-accounts.ts} | 2 +- .../read/get-associated-accounts.ts} | 2 +- .../read/is-account-deployed.ts} | 2 +- .../read/predict-account-address.ts} | 2 +- .../write/create-account.ts} | 4 +- .../contract/extensions/account/index.ts | 14 +-- .../{getAllAdmins.ts => get-all-admins.ts} | 2 +- ...{getAllSessions.ts => get-all-sessions.ts} | 2 +- .../write/{grantAdmin.ts => grant-admin.ts} | 4 +- .../{grantSession.ts => grant-session.ts} | 4 +- .../write/{revokeAdmin.ts => revoke-admin.ts} | 4 +- .../{revokeSession.ts => revoke-session.ts} | 4 +- .../{updateSession.ts => update-session.ts} | 4 +- .../contract/extensions/erc1155/index.ts | 50 +++++----- .../read/{balanceOf.ts => balance-of.ts} | 2 +- .../read/{canClaim.ts => can-claim.ts} | 2 +- ...ions.ts => get-active-claim-conditions.ts} | 4 +- ...ditions.ts => get-all-claim-conditions.ts} | 4 +- .../erc1155/read/{getAll.ts => get-all.ts} | 2 +- ....ts => get-claim-ineligibility-reasons.ts} | 2 +- ...ClaimerProofs.ts => get-claimer-proofs.ts} | 4 +- .../read/{getOwned.ts => get-owned.ts} | 2 +- .../contract/extensions/erc1155/read/get.ts | 2 +- .../read/{isApproved.ts => is-approved.ts} | 2 +- ...atureGenerate.ts => signature-generate.ts} | 4 +- .../read/{totalCount.ts => total-count.ts} | 2 +- .../read/{totalSupply.ts => total-supply.ts} | 2 +- .../extensions/erc1155/write/airdrop.ts | 4 +- .../write/{burnBatch.ts => burn-batch.ts} | 4 +- .../contract/extensions/erc1155/write/burn.ts | 4 +- .../erc1155/write/{claimTo.ts => claim-to.ts} | 4 +- .../write/{lazyMint.ts => lazy-mint.ts} | 4 +- ...pplyTo.ts => mint-additional-supply-to.ts} | 4 +- .../{mintBatchTo.ts => mint-batch-to.ts} | 4 +- .../erc1155/write/{mintTo.ts => mint-to.ts} | 4 +- ...rovalForAll.ts => set-approval-for-all.ts} | 4 +- ...tions.ts => set-batch-claim-conditions.ts} | 6 +- ...mConditions.ts => set-claim-conditions.ts} | 6 +- .../{signatureMint.ts => signature-mint.ts} | 4 +- .../{transferFrom.ts => transfer-from.ts} | 4 +- .../extensions/erc1155/write/transfer.ts | 4 +- ...nditions.ts => update-claim-conditions.ts} | 6 +- ...enMetadata.ts => update-token-metadata.ts} | 4 +- .../routes/contract/extensions/erc20/index.ts | 36 +++---- .../read/{allowanceOf.ts => allowance-of.ts} | 2 +- .../read/{balanceOf.ts => balance-of.ts} | 2 +- .../erc20/read/{canClaim.ts => can-claim.ts} | 2 +- ...ions.ts => get-active-claim-conditions.ts} | 4 +- ...ditions.ts => get-all-claim-conditions.ts} | 4 +- ....ts => get-claim-ineligibility-reasons.ts} | 2 +- ...ClaimerProofs.ts => get-claimer-proofs.ts} | 4 +- .../contract/extensions/erc20/read/get.ts | 2 +- ...atureGenerate.ts => signature-generate.ts} | 4 +- .../read/{totalSupply.ts => total-supply.ts} | 2 +- .../erc20/write/{burnFrom.ts => burn-from.ts} | 4 +- .../contract/extensions/erc20/write/burn.ts | 4 +- .../erc20/write/{claimTo.ts => claim-to.ts} | 4 +- .../{mintBatchTo.ts => mint-batch-to.ts} | 4 +- .../erc20/write/{mintTo.ts => mint-to.ts} | 4 +- .../{setAllowance.ts => set-allowance.ts} | 4 +- ...mConditions.ts => set-claim-conditions.ts} | 6 +- .../{signatureMint.ts => signature-mint.ts} | 4 +- .../{transferFrom.ts => transfer-from.ts} | 4 +- .../extensions/erc20/write/transfer.ts | 4 +- ...nditions.ts => update-claim-conditions.ts} | 6 +- .../contract/extensions/erc721/index.ts | 50 +++++----- .../read/{balanceOf.ts => balance-of.ts} | 2 +- .../erc721/read/{canClaim.ts => can-claim.ts} | 2 +- ...ions.ts => get-active-claim-conditions.ts} | 4 +- ...ditions.ts => get-all-claim-conditions.ts} | 4 +- .../erc721/read/{getAll.ts => get-all.ts} | 2 +- ....ts => get-claim-ineligibility-reasons.ts} | 2 +- ...ClaimerProofs.ts => get-claimer-proofs.ts} | 4 +- .../erc721/read/{getOwned.ts => get-owned.ts} | 2 +- .../contract/extensions/erc721/read/get.ts | 2 +- .../read/{isApproved.ts => is-approved.ts} | 2 +- ...atureGenerate.ts => signature-generate.ts} | 4 +- ...gnaturePrepare.ts => signature-prepare.ts} | 2 +- ...aimedSupply.ts => total-claimed-supply.ts} | 2 +- .../read/{totalCount.ts => total-count.ts} | 2 +- ...medSupply.ts => total-unclaimed-supply.ts} | 2 +- .../contract/extensions/erc721/write/burn.ts | 4 +- .../erc721/write/{claimTo.ts => claim-to.ts} | 4 +- .../write/{lazyMint.ts => lazy-mint.ts} | 4 +- .../{mintBatchTo.ts => mint-batch-to.ts} | 4 +- .../erc721/write/{mintTo.ts => mint-to.ts} | 4 +- ...rovalForAll.ts => set-approval-for-all.ts} | 4 +- ...lForToken.ts => set-approval-for-token.ts} | 4 +- ...mConditions.ts => set-claim-conditions.ts} | 6 +- .../{signatureMint.ts => signature-mint.ts} | 8 +- .../{transferFrom.ts => transfer-from.ts} | 4 +- .../extensions/erc721/write/transfer.ts | 4 +- ...nditions.ts => update-claim-conditions.ts} | 6 +- ...enMetadata.ts => update-token-metadata.ts} | 4 +- .../direct-listings/read/get-all-valid.ts} | 6 +- .../direct-listings/read/get-all.ts} | 6 +- .../direct-listings/read/get-listing.ts} | 6 +- .../direct-listings/read/get-total-count.ts} | 2 +- .../read/is-buyer-approved-for-listing.ts} | 2 +- .../read/is-currency-approved-for-listing.ts} | 2 +- .../approve-buyer-for-reserved-listing.ts} | 4 +- .../write/buy-from-listing.ts} | 4 +- .../direct-listings/write/cancel-listing.ts} | 4 +- .../direct-listings/write/create-listing.ts} | 6 +- ...ke-buyer-approval-for-reserved-listing.ts} | 4 +- .../revoke-currency-approval-for-listing.ts} | 4 +- .../direct-listings/write/update-listing.ts} | 6 +- .../english-auctions/read/get-all-valid.ts} | 6 +- .../english-auctions/read/get-all.ts} | 6 +- .../english-auctions/read/get-auction.ts} | 6 +- .../read/get-bid-buffer-bps.ts} | 2 +- .../read/get-minimum-next-bid.ts} | 2 +- .../english-auctions/read/get-total-count.ts} | 2 +- .../english-auctions/read/get-winner.ts} | 2 +- .../english-auctions/read/get-winning-bid.ts} | 4 +- .../english-auctions/read/is-winning-bid.ts} | 2 +- .../english-auctions/write/buyout-auction.ts} | 2 +- .../english-auctions/write/cancel-auction.ts} | 2 +- .../write/close-auction-for-bidder.ts} | 2 +- .../write/close-auction-for-seller.ts} | 2 +- .../english-auctions/write/create-auction.ts} | 4 +- .../english-auctions/write/execute-sale.ts} | 2 +- .../english-auctions/write/make-bid.ts} | 2 +- .../extensions/marketplace-v3/index.ts | 93 +++++++++++++++++++ .../offers/read/get-all-valid.ts} | 6 +- .../offers/read/get-all.ts} | 6 +- .../offers/read/get-offer.ts} | 6 +- .../offers/read/get-total-count.ts} | 2 +- .../offers/write/accept-offer.ts} | 4 +- .../offers/write/cancel-offer.ts} | 4 +- .../offers/write/make-offer.ts} | 6 +- .../extensions/marketplaceV3/index.ts | 93 ------------------- src/server/routes/contract/metadata/abi.ts | 2 +- src/server/routes/contract/metadata/events.ts | 2 +- .../routes/contract/metadata/extensions.ts | 2 +- .../routes/contract/metadata/functions.ts | 2 +- src/server/routes/contract/read/read.ts | 2 +- .../roles/read/{getAll.ts => get-all.ts} | 2 +- src/server/routes/contract/roles/read/get.ts | 2 +- .../routes/contract/roles/write/grant.ts | 4 +- .../routes/contract/roles/write/revoke.ts | 4 +- ...ltyInfo.ts => get-default-royalty-info.ts} | 2 +- ...yaltyInfo.ts => get-token-royalty-info.ts} | 2 +- ...ltyInfo.ts => set-default-royalty-info.ts} | 4 +- ...yaltyInfo.ts => set-token-royalty-info.ts} | 4 +- ...iption.ts => add-contract-subscription.ts} | 4 +- ...ts => get-contract-indexed-block-range.ts} | 2 +- ...tions.ts => get-contract-subscriptions.ts} | 4 +- ...{getLatestBlock.ts => get-latest-block.ts} | 2 +- ...ion.ts => remove-contract-subscription.ts} | 2 +- ... get-transaction-receipts-by-timestamp.ts} | 4 +- ...eceipts.ts => get-transaction-receipts.ts} | 4 +- ...ts.ts => paginate-transaction-receipts.ts} | 4 +- src/server/routes/contract/write/write.ts | 6 +- .../{contractTypes.ts => contract-types.ts} | 2 +- src/server/routes/deploy/index.ts | 14 +-- src/server/routes/deploy/prebuilt.ts | 4 +- .../{editionDrop.ts => edition-drop.ts} | 4 +- src/server/routes/deploy/prebuilts/edition.ts | 4 +- .../{marketplaceV3.ts => marketplace-v3.ts} | 4 +- .../routes/deploy/prebuilts/multiwrap.ts | 4 +- .../{nftCollection.ts => nft-collection.ts} | 4 +- .../prebuilts/{nftDrop.ts => nft-drop.ts} | 4 +- src/server/routes/deploy/prebuilts/pack.ts | 4 +- .../{signatureDrop.ts => signature-drop.ts} | 4 +- src/server/routes/deploy/prebuilts/split.ts | 4 +- .../prebuilts/{tokenDrop.ts => token-drop.ts} | 4 +- src/server/routes/deploy/prebuilts/token.ts | 4 +- src/server/routes/deploy/prebuilts/vote.ts | 4 +- src/server/routes/deploy/published.ts | 4 +- src/server/routes/index.ts | 86 ++++++++--------- src/server/routes/relayer/create.ts | 2 +- .../routes/relayer/{getAll.ts => get-all.ts} | 2 +- src/server/routes/relayer/index.ts | 2 +- src/server/routes/relayer/revoke.ts | 2 +- src/server/routes/relayer/update.ts | 2 +- src/server/routes/system/queue.ts | 6 +- .../blockchain/{getLogs.ts => get-logs.ts} | 2 +- .../{getReceipt.ts => get-receipt.ts} | 2 +- ...serOpReceipt.ts => get-user-op-receipt.ts} | 2 +- .../{sendSignedTx.ts => send-signed-tx.ts} | 2 +- ...SignedUserOp.ts => send-signed-user-op.ts} | 2 +- src/server/routes/transaction/cancel.ts | 4 +- ...racts.ts => get-all-deployed-contracts.ts} | 2 +- .../transaction/{getAll.ts => get-all.ts} | 2 +- src/server/routes/transaction/retry-failed.ts | 6 +- src/server/routes/transaction/retry.ts | 4 +- src/server/routes/transaction/status.ts | 2 +- src/server/routes/transaction/sync-retry.ts | 4 +- src/server/routes/webhooks/create.ts | 2 +- src/server/routes/webhooks/events.ts | 2 +- .../routes/webhooks/{getAll.ts => get-all.ts} | 2 +- src/server/routes/webhooks/revoke.ts | 2 +- src/server/routes/webhooks/test.ts | 2 +- .../index.ts | 2 +- ...bscription.ts => contract-subscription.ts} | 0 src/server/schemas/contract/index.ts | 2 +- .../schemas/{eventLog.ts => event-log.ts} | 0 .../thirdweb-sdk-version.ts} | 0 .../direct-listing}/index.ts | 2 +- .../english-auction}/index.ts | 2 +- .../offer/index.ts | 2 +- ...redApiSchemas.ts => shared-api-schemas.ts} | 0 ...ctionReceipt.ts => transaction-receipt.ts} | 0 .../{txOverrides.ts => tx-overrides.ts} | 0 .../{marketplaceV3.ts => marketplace-v3.ts} | 0 .../{localStorage.ts => local-storage.ts} | 0 ...nOverrides.ts => transaction-overrides.ts} | 2 +- .../wallets/{awsKmsArn.ts => aws-kms-arn.ts} | 0 ...sKmsWallet.ts => create-aws-kms-wallet.ts} | 4 +- ...pKmsWallet.ts => create-gcp-kms-wallet.ts} | 6 +- ...eLocalWallet.ts => create-local-wallet.ts} | 0 ...eSmartWallet.ts => create-smart-wallet.ts} | 12 +-- ...rams.ts => fetch-aws-kms-wallet-params.ts} | 0 ...rams.ts => fetch-gcp-kms-wallet-params.ts} | 0 ...sourcePath.ts => gcp-kms-resource-path.ts} | 0 ...wsKmsAccount.ts => get-aws-kms-account.ts} | 0 ...cpKmsAccount.ts => get-gcp-kms-account.ts} | 0 ...{getLocalWallet.ts => get-local-wallet.ts} | 2 +- ...{getSmartWallet.ts => get-smart-wallet.ts} | 0 ...sKmsWallet.ts => import-aws-kms-wallet.ts} | 4 +- ...pKmsWallet.ts => import-gcp-kms-wallet.ts} | 2 +- ...tLocalWallet.ts => import-local-wallet.ts} | 2 +- src/shared/db/transactions/queue-tx.ts | 2 +- src/shared/utils/account.ts | 10 +- src/shared/utils/cache/get-wallet.ts | 8 +- .../utils/transaction/insert-transaction.ts | 2 +- .../utils/transaction/queue-transation.ts | 4 +- src/shared/utils/transaction/webhook.ts | 2 +- src/shared/utils/usage.ts | 6 +- src/worker/index.ts | 24 ++--- ...rRegistry.ts => chain-indexer-registry.ts} | 2 +- ...rListener.ts => chain-indexer-listener.ts} | 2 +- .../{configListener.ts => config-listener.ts} | 2 +- ...webhookListener.ts => webhook-listener.ts} | 0 ...eue.ts => cancel-recycled-nonces-queue.ts} | 0 ...tionQueue.ts => mine-transaction-queue.ts} | 0 ...ckQueue.ts => nonce-health-check-queue.ts} | 0 ...ceResyncQueue.ts => nonce-resync-queue.ts} | 0 ...gsQueue.ts => process-event-logs-queue.ts} | 0 ... => process-transaction-receipts-queue.ts} | 0 ...nsQueue.ts => prune-transactions-queue.ts} | 0 ...tionQueue.ts => send-transaction-queue.ts} | 0 ...dWebhookQueue.ts => send-webhook-queue.ts} | 0 ...er.ts => cancel-recycled-nonces-worker.ts} | 2 +- .../{chainIndexer.ts => chain-indexer.ts} | 4 +- ...inIndexers.ts => manage-chain-indexers.ts} | 2 +- ...onWorker.ts => mine-transaction-worker.ts} | 6 +- ...Worker.ts => nonce-health-check-worker.ts} | 2 +- ...ResyncWorker.ts => nonce-resync-worker.ts} | 2 +- ...Worker.ts => process-event-logs-worker.ts} | 4 +- ...=> process-transaction-receipts-worker.ts} | 6 +- ...Worker.ts => prune-transactions-worker.ts} | 2 +- ...onWorker.ts => send-transaction-worker.ts} | 4 +- ...ebhookWorker.ts => send-webhook-worker.ts} | 6 +- tests/unit/aws-arn.test.ts | 2 +- tests/unit/aws-kms.test.ts | 2 +- tests/unit/gcp-kms.test.ts | 2 +- tests/unit/gcp-resource-path.test.ts | 2 +- 330 files changed, 728 insertions(+), 728 deletions(-) rename src/server/listeners/{updateTxListener.ts => update-tx-listener.ts} (100%) rename src/server/middleware/{adminRoutes.ts => admin-routes.ts} (87%) rename src/server/middleware/{engineMode.ts => engine-mode.ts} (100%) rename src/server/middleware/{openApi.ts => open-api.ts} (100%) rename src/server/middleware/{rateLimit.ts => rate-limit.ts} (95%) rename src/server/middleware/{securityHeaders.ts => security-headers.ts} (100%) rename src/server/routes/auth/access-tokens/{getAll.ts => get-all.ts} (94%) rename src/server/routes/auth/permissions/{getAll.ts => get-all.ts} (93%) rename src/server/routes/backend-wallet/{getAll.ts => get-all.ts} (97%) rename src/server/routes/backend-wallet/{getBalance.ts => get-balance.ts} (97%) rename src/server/routes/backend-wallet/{getNonce.ts => get-nonce.ts} (95%) rename src/server/routes/backend-wallet/{getTransactionsByNonce.ts => get-transactions-by-nonce.ts} (97%) rename src/server/routes/backend-wallet/{getTransactions.ts => get-transactions.ts} (97%) rename src/server/routes/backend-wallet/{sendTransactionBatch.ts => send-transaction-batch.ts} (94%) rename src/server/routes/backend-wallet/{sendTransaction.ts => send-transaction.ts} (97%) rename src/server/routes/backend-wallet/{signMessage.ts => sign-message.ts} (97%) rename src/server/routes/backend-wallet/{signTransaction.ts => sign-transaction.ts} (97%) rename src/server/routes/backend-wallet/{signTypedData.ts => sign-typed-data.ts} (95%) rename src/server/routes/backend-wallet/{simulateTransaction.ts => simulate-transaction.ts} (98%) rename src/server/routes/chain/{getAll.ts => get-all.ts} (97%) rename src/server/routes/contract/events/{getAllEvents.ts => get-all-events.ts} (98%) rename src/server/routes/contract/events/{getContractEventLogs.ts => get-contract-event-logs.ts} (99%) rename src/server/routes/contract/events/{getEventLogsByTimestamp.ts => get-event-logs-by-timestamp.ts} (96%) rename src/server/routes/contract/events/{getEvents.ts => get-events.ts} (98%) rename src/server/routes/contract/events/{paginateEventLogs.ts => paginate-event-logs.ts} (97%) rename src/server/routes/contract/extensions/{accountFactory => account-factory}/index.ts (53%) rename src/server/routes/contract/extensions/{accountFactory/read/getAllAccounts.ts => account-factory/read/get-all-accounts.ts} (96%) rename src/server/routes/contract/extensions/{accountFactory/read/getAssociatedAccounts.ts => account-factory/read/get-associated-accounts.ts} (97%) rename src/server/routes/contract/extensions/{accountFactory/read/isAccountDeployed.ts => account-factory/read/is-account-deployed.ts} (97%) rename src/server/routes/contract/extensions/{accountFactory/read/predictAccountAddress.ts => account-factory/read/predict-account-address.ts} (97%) rename src/server/routes/contract/extensions/{accountFactory/write/createAccount.ts => account-factory/write/create-account.ts} (98%) rename src/server/routes/contract/extensions/account/read/{getAllAdmins.ts => get-all-admins.ts} (96%) rename src/server/routes/contract/extensions/account/read/{getAllSessions.ts => get-all-sessions.ts} (97%) rename src/server/routes/contract/extensions/account/write/{grantAdmin.ts => grant-admin.ts} (97%) rename src/server/routes/contract/extensions/account/write/{grantSession.ts => grant-session.ts} (97%) rename src/server/routes/contract/extensions/account/write/{revokeAdmin.ts => revoke-admin.ts} (97%) rename src/server/routes/contract/extensions/account/write/{revokeSession.ts => revoke-session.ts} (97%) rename src/server/routes/contract/extensions/account/write/{updateSession.ts => update-session.ts} (98%) rename src/server/routes/contract/extensions/erc1155/read/{balanceOf.ts => balance-of.ts} (97%) rename src/server/routes/contract/extensions/erc1155/read/{canClaim.ts => can-claim.ts} (97%) rename src/server/routes/contract/extensions/erc1155/read/{getActiveClaimConditions.ts => get-active-claim-conditions.ts} (97%) rename src/server/routes/contract/extensions/erc1155/read/{getAllClaimConditions.ts => get-all-claim-conditions.ts} (97%) rename src/server/routes/contract/extensions/erc1155/read/{getAll.ts => get-all.ts} (98%) rename src/server/routes/contract/extensions/erc1155/read/{getClaimIneligibilityReasons.ts => get-claim-ineligibility-reasons.ts} (98%) rename src/server/routes/contract/extensions/erc1155/read/{getClaimerProofs.ts => get-claimer-proofs.ts} (97%) rename src/server/routes/contract/extensions/erc1155/read/{getOwned.ts => get-owned.ts} (98%) rename src/server/routes/contract/extensions/erc1155/read/{isApproved.ts => is-approved.ts} (97%) rename src/server/routes/contract/extensions/erc1155/read/{signatureGenerate.ts => signature-generate.ts} (98%) rename src/server/routes/contract/extensions/erc1155/read/{totalCount.ts => total-count.ts} (96%) rename src/server/routes/contract/extensions/erc1155/read/{totalSupply.ts => total-supply.ts} (97%) rename src/server/routes/contract/extensions/erc1155/write/{burnBatch.ts => burn-batch.ts} (97%) rename src/server/routes/contract/extensions/erc1155/write/{claimTo.ts => claim-to.ts} (98%) rename src/server/routes/contract/extensions/erc1155/write/{lazyMint.ts => lazy-mint.ts} (97%) rename src/server/routes/contract/extensions/erc1155/write/{mintAdditionalSupplyTo.ts => mint-additional-supply-to.ts} (97%) rename src/server/routes/contract/extensions/erc1155/write/{mintBatchTo.ts => mint-batch-to.ts} (98%) rename src/server/routes/contract/extensions/erc1155/write/{mintTo.ts => mint-to.ts} (98%) rename src/server/routes/contract/extensions/erc1155/write/{setApprovalForAll.ts => set-approval-for-all.ts} (97%) rename src/server/routes/contract/extensions/erc1155/write/{setBatchClaimConditions.ts => set-batch-claim-conditions.ts} (97%) rename src/server/routes/contract/extensions/erc1155/write/{setClaimConditions.ts => set-claim-conditions.ts} (97%) rename src/server/routes/contract/extensions/erc1155/write/{signatureMint.ts => signature-mint.ts} (97%) rename src/server/routes/contract/extensions/erc1155/write/{transferFrom.ts => transfer-from.ts} (98%) rename src/server/routes/contract/extensions/erc1155/write/{updateClaimConditions.ts => update-claim-conditions.ts} (97%) rename src/server/routes/contract/extensions/erc1155/write/{updateTokenMetadata.ts => update-token-metadata.ts} (97%) rename src/server/routes/contract/extensions/erc20/read/{allowanceOf.ts => allowance-of.ts} (98%) rename src/server/routes/contract/extensions/erc20/read/{balanceOf.ts => balance-of.ts} (97%) rename src/server/routes/contract/extensions/erc20/read/{canClaim.ts => can-claim.ts} (97%) rename src/server/routes/contract/extensions/erc20/read/{getActiveClaimConditions.ts => get-active-claim-conditions.ts} (96%) rename src/server/routes/contract/extensions/erc20/read/{getAllClaimConditions.ts => get-all-claim-conditions.ts} (97%) rename src/server/routes/contract/extensions/erc20/read/{getClaimIneligibilityReasons.ts => get-claim-ineligibility-reasons.ts} (97%) rename src/server/routes/contract/extensions/erc20/read/{getClaimerProofs.ts => get-claimer-proofs.ts} (96%) rename src/server/routes/contract/extensions/erc20/read/{signatureGenerate.ts => signature-generate.ts} (98%) rename src/server/routes/contract/extensions/erc20/read/{totalSupply.ts => total-supply.ts} (97%) rename src/server/routes/contract/extensions/erc20/write/{burnFrom.ts => burn-from.ts} (97%) rename src/server/routes/contract/extensions/erc20/write/{claimTo.ts => claim-to.ts} (98%) rename src/server/routes/contract/extensions/erc20/write/{mintBatchTo.ts => mint-batch-to.ts} (97%) rename src/server/routes/contract/extensions/erc20/write/{mintTo.ts => mint-to.ts} (98%) rename src/server/routes/contract/extensions/erc20/write/{setAllowance.ts => set-allowance.ts} (97%) rename src/server/routes/contract/extensions/erc20/write/{setClaimConditions.ts => set-claim-conditions.ts} (96%) rename src/server/routes/contract/extensions/erc20/write/{signatureMint.ts => signature-mint.ts} (97%) rename src/server/routes/contract/extensions/erc20/write/{transferFrom.ts => transfer-from.ts} (98%) rename src/server/routes/contract/extensions/erc20/write/{updateClaimConditions.ts => update-claim-conditions.ts} (97%) rename src/server/routes/contract/extensions/erc721/read/{balanceOf.ts => balance-of.ts} (97%) rename src/server/routes/contract/extensions/erc721/read/{canClaim.ts => can-claim.ts} (97%) rename src/server/routes/contract/extensions/erc721/read/{getActiveClaimConditions.ts => get-active-claim-conditions.ts} (96%) rename src/server/routes/contract/extensions/erc721/read/{getAllClaimConditions.ts => get-all-claim-conditions.ts} (97%) rename src/server/routes/contract/extensions/erc721/read/{getAll.ts => get-all.ts} (97%) rename src/server/routes/contract/extensions/erc721/read/{getClaimIneligibilityReasons.ts => get-claim-ineligibility-reasons.ts} (97%) rename src/server/routes/contract/extensions/erc721/read/{getClaimerProofs.ts => get-claimer-proofs.ts} (96%) rename src/server/routes/contract/extensions/erc721/read/{getOwned.ts => get-owned.ts} (98%) rename src/server/routes/contract/extensions/erc721/read/{isApproved.ts => is-approved.ts} (97%) rename src/server/routes/contract/extensions/erc721/read/{signatureGenerate.ts => signature-generate.ts} (98%) rename src/server/routes/contract/extensions/erc721/read/{signaturePrepare.ts => signature-prepare.ts} (99%) rename src/server/routes/contract/extensions/erc721/read/{totalClaimedSupply.ts => total-claimed-supply.ts} (96%) rename src/server/routes/contract/extensions/erc721/read/{totalCount.ts => total-count.ts} (96%) rename src/server/routes/contract/extensions/erc721/read/{totalUnclaimedSupply.ts => total-unclaimed-supply.ts} (96%) rename src/server/routes/contract/extensions/erc721/write/{claimTo.ts => claim-to.ts} (98%) rename src/server/routes/contract/extensions/erc721/write/{lazyMint.ts => lazy-mint.ts} (97%) rename src/server/routes/contract/extensions/erc721/write/{mintBatchTo.ts => mint-batch-to.ts} (97%) rename src/server/routes/contract/extensions/erc721/write/{mintTo.ts => mint-to.ts} (98%) rename src/server/routes/contract/extensions/erc721/write/{setApprovalForAll.ts => set-approval-for-all.ts} (97%) rename src/server/routes/contract/extensions/erc721/write/{setApprovalForToken.ts => set-approval-for-token.ts} (97%) rename src/server/routes/contract/extensions/erc721/write/{setClaimConditions.ts => set-claim-conditions.ts} (96%) rename src/server/routes/contract/extensions/erc721/write/{signatureMint.ts => signature-mint.ts} (98%) rename src/server/routes/contract/extensions/erc721/write/{transferFrom.ts => transfer-from.ts} (98%) rename src/server/routes/contract/extensions/erc721/write/{updateClaimConditions.ts => update-claim-conditions.ts} (97%) rename src/server/routes/contract/extensions/erc721/write/{updateTokenMetadata.ts => update-token-metadata.ts} (97%) rename src/server/routes/contract/extensions/{marketplaceV3/directListings/read/getAllValid.ts => marketplace-v3/direct-listings/read/get-all-valid.ts} (96%) rename src/server/routes/contract/extensions/{marketplaceV3/directListings/read/getAll.ts => marketplace-v3/direct-listings/read/get-all.ts} (96%) rename src/server/routes/contract/extensions/{marketplaceV3/directListings/read/getListing.ts => marketplace-v3/direct-listings/read/get-listing.ts} (95%) rename src/server/routes/contract/extensions/{marketplaceV3/directListings/read/getTotalCount.ts => marketplace-v3/direct-listings/read/get-total-count.ts} (96%) rename src/server/routes/contract/extensions/{marketplaceV3/directListings/read/isBuyerApprovedForListing.ts => marketplace-v3/direct-listings/read/is-buyer-approved-for-listing.ts} (97%) rename src/server/routes/contract/extensions/{marketplaceV3/directListings/read/isCurrencyApprovedForListing.ts => marketplace-v3/direct-listings/read/is-currency-approved-for-listing.ts} (97%) rename src/server/routes/contract/extensions/{marketplaceV3/directListings/write/approveBuyerForReservedListing.ts => marketplace-v3/direct-listings/write/approve-buyer-for-reserved-listing.ts} (97%) rename src/server/routes/contract/extensions/{marketplaceV3/directListings/write/buyFromListing.ts => marketplace-v3/direct-listings/write/buy-from-listing.ts} (97%) rename src/server/routes/contract/extensions/{marketplaceV3/directListings/write/cancelListing.ts => marketplace-v3/direct-listings/write/cancel-listing.ts} (97%) rename src/server/routes/contract/extensions/{marketplaceV3/directListings/write/createListing.ts => marketplace-v3/direct-listings/write/create-listing.ts} (96%) rename src/server/routes/contract/extensions/{marketplaceV3/directListings/write/revokeBuyerApprovalForReservedListing.ts => marketplace-v3/direct-listings/write/revoke-buyer-approval-for-reserved-listing.ts} (97%) rename src/server/routes/contract/extensions/{marketplaceV3/directListings/write/revokeCurrencyApprovalForListing.ts => marketplace-v3/direct-listings/write/revoke-currency-approval-for-listing.ts} (97%) rename src/server/routes/contract/extensions/{marketplaceV3/directListings/write/updateListing.ts => marketplace-v3/direct-listings/write/update-listing.ts} (96%) rename src/server/routes/contract/extensions/{marketplaceV3/englishAuctions/read/getAllValid.ts => marketplace-v3/english-auctions/read/get-all-valid.ts} (96%) rename src/server/routes/contract/extensions/{marketplaceV3/englishAuctions/read/getAll.ts => marketplace-v3/english-auctions/read/get-all.ts} (96%) rename src/server/routes/contract/extensions/{marketplaceV3/englishAuctions/read/getAuction.ts => marketplace-v3/english-auctions/read/get-auction.ts} (95%) rename src/server/routes/contract/extensions/{marketplaceV3/englishAuctions/read/getBidBufferBps.ts => marketplace-v3/english-auctions/read/get-bid-buffer-bps.ts} (97%) rename src/server/routes/contract/extensions/{marketplaceV3/englishAuctions/read/getMinimumNextBid.ts => marketplace-v3/english-auctions/read/get-minimum-next-bid.ts} (97%) rename src/server/routes/contract/extensions/{marketplaceV3/englishAuctions/read/getTotalCount.ts => marketplace-v3/english-auctions/read/get-total-count.ts} (96%) rename src/server/routes/contract/extensions/{marketplaceV3/englishAuctions/read/getWinner.ts => marketplace-v3/english-auctions/read/get-winner.ts} (97%) rename src/server/routes/contract/extensions/{marketplaceV3/englishAuctions/read/getWinningBid.ts => marketplace-v3/english-auctions/read/get-winning-bid.ts} (96%) rename src/server/routes/contract/extensions/{marketplaceV3/englishAuctions/read/isWinningBid.ts => marketplace-v3/english-auctions/read/is-winning-bid.ts} (97%) rename src/server/routes/contract/extensions/{marketplaceV3/englishAuctions/write/buyoutAuction.ts => marketplace-v3/english-auctions/write/buyout-auction.ts} (97%) rename src/server/routes/contract/extensions/{marketplaceV3/englishAuctions/write/cancelAuction.ts => marketplace-v3/english-auctions/write/cancel-auction.ts} (97%) rename src/server/routes/contract/extensions/{marketplaceV3/englishAuctions/write/closeAuctionForBidder.ts => marketplace-v3/english-auctions/write/close-auction-for-bidder.ts} (98%) rename src/server/routes/contract/extensions/{marketplaceV3/englishAuctions/write/closeAuctionForSeller.ts => marketplace-v3/english-auctions/write/close-auction-for-seller.ts} (98%) rename src/server/routes/contract/extensions/{marketplaceV3/englishAuctions/write/createAuction.ts => marketplace-v3/english-auctions/write/create-auction.ts} (97%) rename src/server/routes/contract/extensions/{marketplaceV3/englishAuctions/write/executeSale.ts => marketplace-v3/english-auctions/write/execute-sale.ts} (98%) rename src/server/routes/contract/extensions/{marketplaceV3/englishAuctions/write/makeBid.ts => marketplace-v3/english-auctions/write/make-bid.ts} (98%) create mode 100644 src/server/routes/contract/extensions/marketplace-v3/index.ts rename src/server/routes/contract/extensions/{marketplaceV3/offers/read/getAllValid.ts => marketplace-v3/offers/read/get-all-valid.ts} (97%) rename src/server/routes/contract/extensions/{marketplaceV3/offers/read/getAll.ts => marketplace-v3/offers/read/get-all.ts} (97%) rename src/server/routes/contract/extensions/{marketplaceV3/offers/read/getOffer.ts => marketplace-v3/offers/read/get-offer.ts} (96%) rename src/server/routes/contract/extensions/{marketplaceV3/offers/read/getTotalCount.ts => marketplace-v3/offers/read/get-total-count.ts} (96%) rename src/server/routes/contract/extensions/{marketplaceV3/offers/write/acceptOffer.ts => marketplace-v3/offers/write/accept-offer.ts} (97%) rename src/server/routes/contract/extensions/{marketplaceV3/offers/write/cancelOffer.ts => marketplace-v3/offers/write/cancel-offer.ts} (97%) rename src/server/routes/contract/extensions/{marketplaceV3/offers/write/makeOffer.ts => marketplace-v3/offers/write/make-offer.ts} (97%) delete mode 100644 src/server/routes/contract/extensions/marketplaceV3/index.ts rename src/server/routes/contract/roles/read/{getAll.ts => get-all.ts} (97%) rename src/server/routes/contract/royalties/read/{getDefaultRoyaltyInfo.ts => get-default-royalty-info.ts} (97%) rename src/server/routes/contract/royalties/read/{getTokenRoyaltyInfo.ts => get-token-royalty-info.ts} (97%) rename src/server/routes/contract/royalties/write/{setDefaultRoyaltyInfo.ts => set-default-royalty-info.ts} (97%) rename src/server/routes/contract/royalties/write/{setTokenRoyaltyInfo.ts => set-token-royalty-info.ts} (98%) rename src/server/routes/contract/subscriptions/{addContractSubscription.ts => add-contract-subscription.ts} (97%) rename src/server/routes/contract/subscriptions/{getContractIndexedBlockRange.ts => get-contract-indexed-block-range.ts} (98%) rename src/server/routes/contract/subscriptions/{getContractSubscriptions.ts => get-contract-subscriptions.ts} (91%) rename src/server/routes/contract/subscriptions/{getLatestBlock.ts => get-latest-block.ts} (95%) rename src/server/routes/contract/subscriptions/{removeContractSubscription.ts => remove-contract-subscription.ts} (95%) rename src/server/routes/contract/transactions/{getTransactionReceiptsByTimestamp.ts => get-transaction-receipts-by-timestamp.ts} (97%) rename src/server/routes/contract/transactions/{getTransactionReceipts.ts => get-transaction-receipts.ts} (98%) rename src/server/routes/contract/transactions/{paginateTransactionReceipts.ts => paginate-transaction-receipts.ts} (96%) rename src/server/routes/deploy/{contractTypes.ts => contract-types.ts} (92%) rename src/server/routes/deploy/prebuilts/{editionDrop.ts => edition-drop.ts} (95%) rename src/server/routes/deploy/prebuilts/{marketplaceV3.ts => marketplace-v3.ts} (95%) rename src/server/routes/deploy/prebuilts/{nftCollection.ts => nft-collection.ts} (95%) rename src/server/routes/deploy/prebuilts/{nftDrop.ts => nft-drop.ts} (95%) rename src/server/routes/deploy/prebuilts/{signatureDrop.ts => signature-drop.ts} (95%) rename src/server/routes/deploy/prebuilts/{tokenDrop.ts => token-drop.ts} (95%) rename src/server/routes/relayer/{getAll.ts => get-all.ts} (95%) rename src/server/routes/transaction/blockchain/{getLogs.ts => get-logs.ts} (98%) rename src/server/routes/transaction/blockchain/{getReceipt.ts => get-receipt.ts} (98%) rename src/server/routes/transaction/blockchain/{getUserOpReceipt.ts => get-user-op-receipt.ts} (98%) rename src/server/routes/transaction/blockchain/{sendSignedTx.ts => send-signed-tx.ts} (96%) rename src/server/routes/transaction/blockchain/{sendSignedUserOp.ts => send-signed-user-op.ts} (97%) rename src/server/routes/transaction/{getAllDeployedContracts.ts => get-all-deployed-contracts.ts} (98%) rename src/server/routes/transaction/{getAll.ts => get-all.ts} (98%) rename src/server/routes/webhooks/{getAll.ts => get-all.ts} (93%) rename src/server/schemas/{claimConditions => claim-conditions}/index.ts (98%) rename src/server/schemas/{contractSubscription.ts => contract-subscription.ts} (100%) rename src/server/schemas/{eventLog.ts => event-log.ts} (100%) rename src/server/schemas/{httpHeaders/thirdwebSdkVersion.ts => http-headers/thirdweb-sdk-version.ts} (100%) rename src/server/schemas/{marketplaceV3/directListing => marketplace-v3/direct-listing}/index.ts (97%) rename src/server/schemas/{marketplaceV3/englishAuction => marketplace-v3/english-auction}/index.ts (98%) rename src/server/schemas/{marketplaceV3 => marketplace-v3}/offer/index.ts (97%) rename src/server/schemas/{sharedApiSchemas.ts => shared-api-schemas.ts} (100%) rename src/server/schemas/{transactionReceipt.ts => transaction-receipt.ts} (100%) rename src/server/schemas/{txOverrides.ts => tx-overrides.ts} (100%) rename src/server/utils/{marketplaceV3.ts => marketplace-v3.ts} (100%) rename src/server/utils/storage/{localStorage.ts => local-storage.ts} (100%) rename src/server/utils/{transactionOverrides.ts => transaction-overrides.ts} (96%) rename src/server/utils/wallets/{awsKmsArn.ts => aws-kms-arn.ts} (100%) rename src/server/utils/wallets/{createAwsKmsWallet.ts => create-aws-kms-wallet.ts} (95%) rename src/server/utils/wallets/{createGcpKmsWallet.ts => create-gcp-kms-wallet.ts} (95%) rename src/server/utils/wallets/{createLocalWallet.ts => create-local-wallet.ts} (100%) rename src/server/utils/wallets/{createSmartWallet.ts => create-smart-wallet.ts} (93%) rename src/server/utils/wallets/{fetchAwsKmsWalletParams.ts => fetch-aws-kms-wallet-params.ts} (100%) rename src/server/utils/wallets/{fetchGcpKmsWalletParams.ts => fetch-gcp-kms-wallet-params.ts} (100%) rename src/server/utils/wallets/{gcpKmsResourcePath.ts => gcp-kms-resource-path.ts} (100%) rename src/server/utils/wallets/{getAwsKmsAccount.ts => get-aws-kms-account.ts} (100%) rename src/server/utils/wallets/{getGcpKmsAccount.ts => get-gcp-kms-account.ts} (100%) rename src/server/utils/wallets/{getLocalWallet.ts => get-local-wallet.ts} (97%) rename src/server/utils/wallets/{getSmartWallet.ts => get-smart-wallet.ts} (100%) rename src/server/utils/wallets/{importAwsKmsWallet.ts => import-aws-kms-wallet.ts} (91%) rename src/server/utils/wallets/{importGcpKmsWallet.ts => import-gcp-kms-wallet.ts} (95%) rename src/server/utils/wallets/{importLocalWallet.ts => import-local-wallet.ts} (95%) rename src/worker/indexers/{chainIndexerRegistry.ts => chain-indexer-registry.ts} (96%) rename src/worker/listeners/{chainIndexerListener.ts => chain-indexer-listener.ts} (92%) rename src/worker/listeners/{configListener.ts => config-listener.ts} (97%) rename src/worker/listeners/{webhookListener.ts => webhook-listener.ts} (100%) rename src/worker/queues/{cancelRecycledNoncesQueue.ts => cancel-recycled-nonces-queue.ts} (100%) rename src/worker/queues/{mineTransactionQueue.ts => mine-transaction-queue.ts} (100%) rename src/worker/queues/{nonceHealthCheckQueue.ts => nonce-health-check-queue.ts} (100%) rename src/worker/queues/{nonceResyncQueue.ts => nonce-resync-queue.ts} (100%) rename src/worker/queues/{processEventLogsQueue.ts => process-event-logs-queue.ts} (100%) rename src/worker/queues/{processTransactionReceiptsQueue.ts => process-transaction-receipts-queue.ts} (100%) rename src/worker/queues/{pruneTransactionsQueue.ts => prune-transactions-queue.ts} (100%) rename src/worker/queues/{sendTransactionQueue.ts => send-transaction-queue.ts} (100%) rename src/worker/queues/{sendWebhookQueue.ts => send-webhook-queue.ts} (100%) rename src/worker/tasks/{cancelRecycledNoncesWorker.ts => cancel-recycled-nonces-worker.ts} (97%) rename src/worker/tasks/{chainIndexer.ts => chain-indexer.ts} (97%) rename src/worker/tasks/{manageChainIndexers.ts => manage-chain-indexers.ts} (93%) rename src/worker/tasks/{mineTransactionWorker.ts => mine-transaction-worker.ts} (98%) rename src/worker/tasks/{nonceHealthCheckWorker.ts => nonce-health-check-worker.ts} (98%) rename src/worker/tasks/{nonceResyncWorker.ts => nonce-resync-worker.ts} (97%) rename src/worker/tasks/{processEventLogsWorker.ts => process-event-logs-worker.ts} (98%) rename src/worker/tasks/{processTransactionReceiptsWorker.ts => process-transaction-receipts-worker.ts} (97%) rename src/worker/tasks/{pruneTransactionsWorker.ts => prune-transactions-worker.ts} (93%) rename src/worker/tasks/{sendTransactionWorker.ts => send-transaction-worker.ts} (99%) rename src/worker/tasks/{sendWebhookWorker.ts => send-webhook-worker.ts} (96%) diff --git a/renamer.ts b/renamer.ts index 807ce8355..97c3206e3 100644 --- a/renamer.ts +++ b/renamer.ts @@ -141,5 +141,5 @@ function getAllFiles(rootDir: string, extensions: RegExp): string[] { } // Run the script -const projectRoot = path.resolve("./src/shared/utils"); // Change as needed +const projectRoot = path.resolve("./src/server"); // Change as needed processFilesAndFolders(projectRoot); diff --git a/src/index.ts b/src/index.ts index 9e2ea9b37..81f647e57 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,14 +5,14 @@ import { initServer } from "./server"; import { env } from "./shared/utils/env"; import { logger } from "./shared/utils/logger"; import { initWorker } from "./worker"; -import { CancelRecycledNoncesQueue } from "./worker/queues/cancelRecycledNoncesQueue"; -import { MineTransactionQueue } from "./worker/queues/mineTransactionQueue"; -import { NonceResyncQueue } from "./worker/queues/nonceResyncQueue"; -import { ProcessEventsLogQueue } from "./worker/queues/processEventLogsQueue"; -import { ProcessTransactionReceiptsQueue } from "./worker/queues/processTransactionReceiptsQueue"; -import { PruneTransactionsQueue } from "./worker/queues/pruneTransactionsQueue"; -import { SendTransactionQueue } from "./worker/queues/sendTransactionQueue"; -import { SendWebhookQueue } from "./worker/queues/sendWebhookQueue"; +import { CancelRecycledNoncesQueue } from "./worker/queues/cancel-recycled-nonces-queue"; +import { MineTransactionQueue } from "./worker/queues/mine-transaction-queue"; +import { NonceResyncQueue } from "./worker/queues/nonce-resync-queue"; +import { ProcessEventsLogQueue } from "./worker/queues/process-event-logs-queue"; +import { ProcessTransactionReceiptsQueue } from "./worker/queues/process-transaction-receipts-queue"; +import { PruneTransactionsQueue } from "./worker/queues/prune-transactions-queue"; +import { SendTransactionQueue } from "./worker/queues/send-transaction-queue"; +import { SendWebhookQueue } from "./worker/queues/send-webhook-queue"; const main = async () => { if (env.ENGINE_MODE === "server_only") { diff --git a/src/server/index.ts b/src/server/index.ts index 995e93c38..2628edbae 100644 --- a/src/server/index.ts +++ b/src/server/index.ts @@ -8,17 +8,17 @@ import { env } from "../shared/utils/env"; import { logger } from "../shared/utils/logger"; import { metricsServer } from "../shared/utils/prometheus"; import { withServerUsageReporting } from "../shared/utils/usage"; -import { updateTxListener } from "./listeners/updateTxListener"; -import { withAdminRoutes } from "./middleware/adminRoutes"; +import { updateTxListener } from "./listeners/update-tx-listener"; +import { withAdminRoutes } from "./middleware/admin-routes"; import { withAuth } from "./middleware/auth"; import { withCors } from "./middleware/cors"; -import { withEnforceEngineMode } from "./middleware/engineMode"; +import { withEnforceEngineMode } from "./middleware/engine-mode"; import { withErrorHandler } from "./middleware/error"; import { withRequestLogs } from "./middleware/logs"; -import { withOpenApi } from "./middleware/openApi"; +import { withOpenApi } from "./middleware/open-api"; import { withPrometheus } from "./middleware/prometheus"; -import { withRateLimit } from "./middleware/rateLimit"; -import { withSecurityHeaders } from "./middleware/securityHeaders"; +import { withRateLimit } from "./middleware/rate-limit"; +import { withSecurityHeaders } from "./middleware/security-headers"; import { withWebSocket } from "./middleware/websocket"; import { withRoutes } from "./routes"; import { writeOpenApiToFile } from "./utils/openapi"; diff --git a/src/server/listeners/updateTxListener.ts b/src/server/listeners/update-tx-listener.ts similarity index 100% rename from src/server/listeners/updateTxListener.ts rename to src/server/listeners/update-tx-listener.ts diff --git a/src/server/middleware/adminRoutes.ts b/src/server/middleware/admin-routes.ts similarity index 87% rename from src/server/middleware/adminRoutes.ts rename to src/server/middleware/admin-routes.ts index 6f577d22c..f503a5b9b 100644 --- a/src/server/middleware/adminRoutes.ts +++ b/src/server/middleware/admin-routes.ts @@ -6,15 +6,15 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { timingSafeEqual } from "node:crypto"; import { env } from "../../shared/utils/env"; -import { CancelRecycledNoncesQueue } from "../../worker/queues/cancelRecycledNoncesQueue"; -import { MineTransactionQueue } from "../../worker/queues/mineTransactionQueue"; -import { NonceHealthCheckQueue } from "../../worker/queues/nonceHealthCheckQueue"; -import { NonceResyncQueue } from "../../worker/queues/nonceResyncQueue"; -import { ProcessEventsLogQueue } from "../../worker/queues/processEventLogsQueue"; -import { ProcessTransactionReceiptsQueue } from "../../worker/queues/processTransactionReceiptsQueue"; -import { PruneTransactionsQueue } from "../../worker/queues/pruneTransactionsQueue"; -import { SendTransactionQueue } from "../../worker/queues/sendTransactionQueue"; -import { SendWebhookQueue } from "../../worker/queues/sendWebhookQueue"; +import { CancelRecycledNoncesQueue } from "../../worker/queues/cancel-recycled-nonces-queue"; +import { MineTransactionQueue } from "../../worker/queues/mine-transaction-queue"; +import { NonceHealthCheckQueue } from "../../worker/queues/nonce-health-check-queue"; +import { NonceResyncQueue } from "../../worker/queues/nonce-resync-queue"; +import { ProcessEventsLogQueue } from "../../worker/queues/process-event-logs-queue"; +import { ProcessTransactionReceiptsQueue } from "../../worker/queues/process-transaction-receipts-queue"; +import { PruneTransactionsQueue } from "../../worker/queues/prune-transactions-queue"; +import { SendTransactionQueue } from "../../worker/queues/send-transaction-queue"; +import { SendWebhookQueue } from "../../worker/queues/send-webhook-queue"; export const ADMIN_QUEUES_BASEPATH = "/admin/queues"; const ADMIN_ROUTES_USERNAME = "admin"; diff --git a/src/server/middleware/auth.ts b/src/server/middleware/auth.ts index 41ad84e0d..79690e376 100644 --- a/src/server/middleware/auth.ts +++ b/src/server/middleware/auth.ts @@ -24,8 +24,8 @@ import { env } from "../../shared/utils/env"; import { logger } from "../../shared/utils/logger"; import { sendWebhookRequest } from "../../shared/utils/webhook"; import { Permission } from "../../shared/schemas/auth"; -import { ADMIN_QUEUES_BASEPATH } from "./adminRoutes"; -import { OPENAPI_ROUTES } from "./openApi"; +import { ADMIN_QUEUES_BASEPATH } from "./admin-routes"; +import { OPENAPI_ROUTES } from "./open-api"; export type TAuthData = never; export type TAuthSession = { permissions: string }; diff --git a/src/server/middleware/cors.ts b/src/server/middleware/cors.ts index 62e074ee4..de7e15231 100644 --- a/src/server/middleware/cors.ts +++ b/src/server/middleware/cors.ts @@ -1,6 +1,6 @@ import type { FastifyInstance } from "fastify"; import { getConfig } from "../../shared/utils/cache/get-config"; -import { ADMIN_QUEUES_BASEPATH } from "./adminRoutes"; +import { ADMIN_QUEUES_BASEPATH } from "./admin-routes"; const STANDARD_METHODS = "GET,POST,DELETE,PUT,PATCH,HEAD,PUT,PATCH,POST,DELETE"; const DEFAULT_ALLOWED_HEADERS = [ diff --git a/src/server/middleware/engineMode.ts b/src/server/middleware/engine-mode.ts similarity index 100% rename from src/server/middleware/engineMode.ts rename to src/server/middleware/engine-mode.ts diff --git a/src/server/middleware/logs.ts b/src/server/middleware/logs.ts index 3ba0cfaf7..b0c494343 100644 --- a/src/server/middleware/logs.ts +++ b/src/server/middleware/logs.ts @@ -1,8 +1,8 @@ import type { FastifyInstance } from "fastify"; import { stringify } from "thirdweb/utils"; import { logger } from "../../shared/utils/logger"; -import { ADMIN_QUEUES_BASEPATH } from "./adminRoutes"; -import { OPENAPI_ROUTES } from "./openApi"; +import { ADMIN_QUEUES_BASEPATH } from "./admin-routes"; +import { OPENAPI_ROUTES } from "./open-api"; const SKIP_LOG_PATHS = new Set([ "", diff --git a/src/server/middleware/openApi.ts b/src/server/middleware/open-api.ts similarity index 100% rename from src/server/middleware/openApi.ts rename to src/server/middleware/open-api.ts diff --git a/src/server/middleware/rateLimit.ts b/src/server/middleware/rate-limit.ts similarity index 95% rename from src/server/middleware/rateLimit.ts rename to src/server/middleware/rate-limit.ts index 96911855a..67cda82c7 100644 --- a/src/server/middleware/rateLimit.ts +++ b/src/server/middleware/rate-limit.ts @@ -3,7 +3,7 @@ import { StatusCodes } from "http-status-codes"; import { env } from "../../shared/utils/env"; import { redis } from "../../shared/utils/redis/redis"; import { createCustomError } from "./error"; -import { OPENAPI_ROUTES } from "./openApi"; +import { OPENAPI_ROUTES } from "./open-api"; const SKIP_RATELIMIT_PATHS = ["/", ...OPENAPI_ROUTES]; diff --git a/src/server/middleware/securityHeaders.ts b/src/server/middleware/security-headers.ts similarity index 100% rename from src/server/middleware/securityHeaders.ts rename to src/server/middleware/security-headers.ts diff --git a/src/server/routes/admin/nonces.ts b/src/server/routes/admin/nonces.ts index 9d73da326..5408dc403 100644 --- a/src/server/routes/admin/nonces.ts +++ b/src/server/routes/admin/nonces.ts @@ -17,7 +17,7 @@ import { getChain } from "../../../shared/utils/chain"; import { redis } from "../../../shared/utils/redis/redis"; import { thirdwebClient } from "../../../shared/utils/sdk"; import { AddressSchema } from "../../schemas/address"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; import { walletWithAddressParamSchema } from "../../schemas/wallet"; export const responseBodySchema = Type.Object({ diff --git a/src/server/routes/admin/transaction.ts b/src/server/routes/admin/transaction.ts index 4308a5390..ea317ebd6 100644 --- a/src/server/routes/admin/transaction.ts +++ b/src/server/routes/admin/transaction.ts @@ -7,10 +7,10 @@ import { TransactionDB } from "../../../shared/db/transactions/db"; 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"; +import { MineTransactionQueue } from "../../../worker/queues/mine-transaction-queue"; +import { SendTransactionQueue } from "../../../worker/queues/send-transaction-queue"; import { createCustomError } from "../../middleware/error"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; const requestSchema = Type.Object({ queueId: Type.String({ diff --git a/src/server/routes/auth/access-tokens/create.ts b/src/server/routes/auth/access-tokens/create.ts index c45931417..53502150d 100644 --- a/src/server/routes/auth/access-tokens/create.ts +++ b/src/server/routes/auth/access-tokens/create.ts @@ -8,8 +8,8 @@ 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"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; +import { AccessTokenSchema } from "./get-all"; const requestBodySchema = Type.Object({ label: Type.Optional(Type.String()), diff --git a/src/server/routes/auth/access-tokens/getAll.ts b/src/server/routes/auth/access-tokens/get-all.ts similarity index 94% rename from src/server/routes/auth/access-tokens/getAll.ts rename to src/server/routes/auth/access-tokens/get-all.ts index 739cf96d4..d1a274833 100644 --- a/src/server/routes/auth/access-tokens/getAll.ts +++ b/src/server/routes/auth/access-tokens/get-all.ts @@ -3,7 +3,7 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { getAccessTokens } from "../../../../shared/db/tokens/get-access-tokens"; import { AddressSchema } from "../../../schemas/address"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; export const AccessTokenSchema = Type.Object({ id: Type.String(), diff --git a/src/server/routes/auth/access-tokens/revoke.ts b/src/server/routes/auth/access-tokens/revoke.ts index 6c41a3c96..5f1bc10da 100644 --- a/src/server/routes/auth/access-tokens/revoke.ts +++ b/src/server/routes/auth/access-tokens/revoke.ts @@ -3,7 +3,7 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { revokeToken } from "../../../../shared/db/tokens/revoke-token"; import { accessTokenCache } from "../../../../shared/utils/cache/access-token"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; const requestBodySchema = Type.Object({ id: Type.String(), diff --git a/src/server/routes/auth/access-tokens/update.ts b/src/server/routes/auth/access-tokens/update.ts index 0c0c178ee..9f9fe0cbf 100644 --- a/src/server/routes/auth/access-tokens/update.ts +++ b/src/server/routes/auth/access-tokens/update.ts @@ -3,7 +3,7 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { updateToken } from "../../../../shared/db/tokens/update-token"; import { accessTokenCache } from "../../../../shared/utils/cache/access-token"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; const requestBodySchema = Type.Object({ id: Type.String(), diff --git a/src/server/routes/auth/keypair/add.ts b/src/server/routes/auth/keypair/add.ts index 2aab345ba..b2af520b4 100644 --- a/src/server/routes/auth/keypair/add.ts +++ b/src/server/routes/auth/keypair/add.ts @@ -10,7 +10,7 @@ import { KeypairSchema, toKeypairSchema, } from "../../../../shared/schemas/keypair"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; const requestBodySchema = Type.Object({ publicKey: Type.String({ diff --git a/src/server/routes/auth/keypair/list.ts b/src/server/routes/auth/keypair/list.ts index 81fab4e68..b5df85979 100644 --- a/src/server/routes/auth/keypair/list.ts +++ b/src/server/routes/auth/keypair/list.ts @@ -6,7 +6,7 @@ import { KeypairSchema, toKeypairSchema, } from "../../../../shared/schemas/keypair"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; const responseBodySchema = Type.Object({ result: Type.Array(KeypairSchema), diff --git a/src/server/routes/auth/keypair/remove.ts b/src/server/routes/auth/keypair/remove.ts index 6cc65f2ff..e7d4f7b54 100644 --- a/src/server/routes/auth/keypair/remove.ts +++ b/src/server/routes/auth/keypair/remove.ts @@ -3,7 +3,7 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { deleteKeypair } from "../../../../shared/db/keypair/delete"; import { keypairCache } from "../../../../shared/utils/cache/keypair"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; const requestBodySchema = Type.Object({ hash: Type.String(), diff --git a/src/server/routes/auth/permissions/getAll.ts b/src/server/routes/auth/permissions/get-all.ts similarity index 93% rename from src/server/routes/auth/permissions/getAll.ts rename to src/server/routes/auth/permissions/get-all.ts index 22e4b1478..737c195f6 100644 --- a/src/server/routes/auth/permissions/getAll.ts +++ b/src/server/routes/auth/permissions/get-all.ts @@ -3,7 +3,7 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { prisma } from "../../../../shared/db/client"; import { AddressSchema } from "../../../schemas/address"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; const responseBodySchema = Type.Object({ result: Type.Array( diff --git a/src/server/routes/auth/permissions/grant.ts b/src/server/routes/auth/permissions/grant.ts index 4f390e9d1..d524a6b65 100644 --- a/src/server/routes/auth/permissions/grant.ts +++ b/src/server/routes/auth/permissions/grant.ts @@ -4,7 +4,7 @@ import { StatusCodes } from "http-status-codes"; import { updatePermissions } from "../../../../shared/db/permissions/update-permissions"; import { AddressSchema } from "../../../schemas/address"; import { permissionsSchema } from "../../../../shared/schemas/auth"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; const requestBodySchema = Type.Object({ walletAddress: AddressSchema, diff --git a/src/server/routes/auth/permissions/revoke.ts b/src/server/routes/auth/permissions/revoke.ts index 23dd4d8b9..acea77853 100644 --- a/src/server/routes/auth/permissions/revoke.ts +++ b/src/server/routes/auth/permissions/revoke.ts @@ -3,7 +3,7 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { deletePermissions } from "../../../../shared/db/permissions/delete-permissions"; import { AddressSchema } from "../../../schemas/address"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; const requestBodySchema = Type.Object({ walletAddress: AddressSchema, diff --git a/src/server/routes/backend-wallet/cancel-nonces.ts b/src/server/routes/backend-wallet/cancel-nonces.ts index 89af789c0..1627aeced 100644 --- a/src/server/routes/backend-wallet/cancel-nonces.ts +++ b/src/server/routes/backend-wallet/cancel-nonces.ts @@ -9,7 +9,7 @@ import { sendCancellationTransaction } from "../../../shared/utils/transaction/c import { requestQuerystringSchema, standardResponseSchema, -} from "../../schemas/sharedApiSchemas"; +} from "../../schemas/shared-api-schemas"; import { walletChainParamSchema, walletHeaderSchema, diff --git a/src/server/routes/backend-wallet/create.ts b/src/server/routes/backend-wallet/create.ts index 2fc800361..707616b47 100644 --- a/src/server/routes/backend-wallet/create.ts +++ b/src/server/routes/backend-wallet/create.ts @@ -10,21 +10,21 @@ import { WalletType } from "../../../shared/schemas/wallet"; import { getConfig } from "../../../shared/utils/cache/get-config"; import { createCustomError } from "../../middleware/error"; import { AddressSchema } from "../../schemas/address"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; import { CreateAwsKmsWalletError, createAwsKmsWalletDetails, -} from "../../utils/wallets/createAwsKmsWallet"; +} from "../../utils/wallets/create-aws-kms-wallet"; import { CreateGcpKmsWalletError, createGcpKmsWalletDetails, -} from "../../utils/wallets/createGcpKmsWallet"; -import { createLocalWalletDetails } from "../../utils/wallets/createLocalWallet"; +} from "../../utils/wallets/create-gcp-kms-wallet"; +import { createLocalWalletDetails } from "../../utils/wallets/create-local-wallet"; import { createSmartAwsWalletDetails, createSmartGcpWalletDetails, createSmartLocalWalletDetails, -} from "../../utils/wallets/createSmartWallet"; +} from "../../utils/wallets/create-smart-wallet"; const requestBodySchema = Type.Object({ label: Type.Optional(Type.String()), diff --git a/src/server/routes/backend-wallet/getAll.ts b/src/server/routes/backend-wallet/get-all.ts similarity index 97% rename from src/server/routes/backend-wallet/getAll.ts rename to src/server/routes/backend-wallet/get-all.ts index a9ba04a0f..1ae8e26b4 100644 --- a/src/server/routes/backend-wallet/getAll.ts +++ b/src/server/routes/backend-wallet/get-all.ts @@ -5,7 +5,7 @@ import { getAllWallets } from "../../../shared/db/wallets/get-all-wallets"; import { standardResponseSchema, walletDetailsSchema, -} from "../../schemas/sharedApiSchemas"; +} from "../../schemas/shared-api-schemas"; const QuerySchema = Type.Object({ page: Type.Integer({ diff --git a/src/server/routes/backend-wallet/getBalance.ts b/src/server/routes/backend-wallet/get-balance.ts similarity index 97% rename from src/server/routes/backend-wallet/getBalance.ts rename to src/server/routes/backend-wallet/get-balance.ts index 362a98909..609d6a744 100644 --- a/src/server/routes/backend-wallet/getBalance.ts +++ b/src/server/routes/backend-wallet/get-balance.ts @@ -6,7 +6,7 @@ import { AddressSchema } from "../../schemas/address"; import { currencyValueSchema, standardResponseSchema, -} from "../../schemas/sharedApiSchemas"; +} from "../../schemas/shared-api-schemas"; import { walletWithAddressParamSchema } from "../../schemas/wallet"; import { getChainIdFromChain } from "../../utils/chain"; diff --git a/src/server/routes/backend-wallet/getNonce.ts b/src/server/routes/backend-wallet/get-nonce.ts similarity index 95% rename from src/server/routes/backend-wallet/getNonce.ts rename to src/server/routes/backend-wallet/get-nonce.ts index aedd1b86c..f6ef216b3 100644 --- a/src/server/routes/backend-wallet/getNonce.ts +++ b/src/server/routes/backend-wallet/get-nonce.ts @@ -3,7 +3,7 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import type { Address } from "thirdweb"; import { inspectNonce } from "../../../shared/db/wallets/wallet-nonce"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; 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/get-transactions-by-nonce.ts similarity index 97% rename from src/server/routes/backend-wallet/getTransactionsByNonce.ts rename to src/server/routes/backend-wallet/get-transactions-by-nonce.ts index f60b6b30a..2dd31196b 100644 --- a/src/server/routes/backend-wallet/getTransactionsByNonce.ts +++ b/src/server/routes/backend-wallet/get-transactions-by-nonce.ts @@ -5,7 +5,7 @@ import { TransactionDB } from "../../../shared/db/transactions/db"; 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 { standardResponseSchema } from "../../schemas/shared-api-schemas"; import { TransactionSchema, toTransactionSchema, diff --git a/src/server/routes/backend-wallet/getTransactions.ts b/src/server/routes/backend-wallet/get-transactions.ts similarity index 97% rename from src/server/routes/backend-wallet/getTransactions.ts rename to src/server/routes/backend-wallet/get-transactions.ts index 24a215697..2ee855562 100644 --- a/src/server/routes/backend-wallet/getTransactions.ts +++ b/src/server/routes/backend-wallet/get-transactions.ts @@ -4,7 +4,7 @@ import { StatusCodes } from "http-status-codes"; import { getAddress } from "thirdweb"; import { TransactionDB } from "../../../shared/db/transactions/db"; import { PaginationSchema } from "../../schemas/pagination"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; import { TransactionSchema, toTransactionSchema, diff --git a/src/server/routes/backend-wallet/import.ts b/src/server/routes/backend-wallet/import.ts index 9d86902de..a683bb6c7 100644 --- a/src/server/routes/backend-wallet/import.ts +++ b/src/server/routes/backend-wallet/import.ts @@ -4,11 +4,11 @@ import { StatusCodes } from "http-status-codes"; import { getConfig } from "../../../shared/utils/cache/get-config"; import { createCustomError } from "../../middleware/error"; import { AddressSchema } from "../../schemas/address"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; -import { getGcpKmsResourcePath } from "../../utils/wallets/gcpKmsResourcePath"; -import { importAwsKmsWallet } from "../../utils/wallets/importAwsKmsWallet"; -import { importGcpKmsWallet } from "../../utils/wallets/importGcpKmsWallet"; -import { importLocalWallet } from "../../utils/wallets/importLocalWallet"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; +import { getGcpKmsResourcePath } from "../../utils/wallets/gcp-kms-resource-path"; +import { importAwsKmsWallet } from "../../utils/wallets/import-aws-kms-wallet"; +import { importGcpKmsWallet } from "../../utils/wallets/import-gcp-kms-wallet"; +import { importLocalWallet } from "../../utils/wallets/import-local-wallet"; const RequestBodySchema = Type.Intersect([ Type.Object({ diff --git a/src/server/routes/backend-wallet/remove.ts b/src/server/routes/backend-wallet/remove.ts index 0cbd94906..ab4cf4752 100644 --- a/src/server/routes/backend-wallet/remove.ts +++ b/src/server/routes/backend-wallet/remove.ts @@ -4,7 +4,7 @@ import { StatusCodes } from "http-status-codes"; import type { Address } from "thirdweb"; import { deleteWalletDetails } from "../../../shared/db/wallets/delete-wallet-details"; import { AddressSchema } from "../../schemas/address"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; const requestParamSchema = Type.Object({ walletAddress: AddressSchema, diff --git a/src/server/routes/backend-wallet/reset-nonces.ts b/src/server/routes/backend-wallet/reset-nonces.ts index 2ecc66249..f94be5b69 100644 --- a/src/server/routes/backend-wallet/reset-nonces.ts +++ b/src/server/routes/backend-wallet/reset-nonces.ts @@ -8,7 +8,7 @@ import { syncLatestNonceFromOnchain, } from "../../../shared/db/wallets/wallet-nonce"; import { AddressSchema } from "../../schemas/address"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; const requestBodySchema = Type.Object({ chainId: Type.Optional( diff --git a/src/server/routes/backend-wallet/sendTransactionBatch.ts b/src/server/routes/backend-wallet/send-transaction-batch.ts similarity index 94% rename from src/server/routes/backend-wallet/sendTransactionBatch.ts rename to src/server/routes/backend-wallet/send-transaction-batch.ts index 92df6729c..513f4a4ac 100644 --- a/src/server/routes/backend-wallet/sendTransactionBatch.ts +++ b/src/server/routes/backend-wallet/send-transaction-batch.ts @@ -4,14 +4,14 @@ import { StatusCodes } from "http-status-codes"; import type { Address, Hex } from "thirdweb"; import { insertTransaction } from "../../../shared/utils/transaction/insert-transaction"; import { AddressSchema } from "../../schemas/address"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../schemas/txOverrides"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../schemas/tx-overrides"; import { walletChainParamSchema, walletHeaderSchema, } from "../../schemas/wallet"; import { getChainIdFromChain } from "../../utils/chain"; -import { parseTransactionOverrides } from "../../utils/transactionOverrides"; +import { parseTransactionOverrides } from "../../utils/transaction-overrides"; const requestBodySchema = Type.Array( Type.Object({ diff --git a/src/server/routes/backend-wallet/sendTransaction.ts b/src/server/routes/backend-wallet/send-transaction.ts similarity index 97% rename from src/server/routes/backend-wallet/sendTransaction.ts rename to src/server/routes/backend-wallet/send-transaction.ts index 66d462482..e1dff9a2a 100644 --- a/src/server/routes/backend-wallet/sendTransaction.ts +++ b/src/server/routes/backend-wallet/send-transaction.ts @@ -8,15 +8,15 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../schemas/sharedApiSchemas"; -import { txOverridesSchema } from "../../schemas/txOverrides"; +} from "../../schemas/shared-api-schemas"; +import { txOverridesSchema } from "../../schemas/tx-overrides"; import { maybeAddress, walletChainParamSchema, walletWithAAHeaderSchema, } from "../../schemas/wallet"; import { getChainIdFromChain } from "../../utils/chain"; -import { parseTransactionOverrides } from "../../utils/transactionOverrides"; +import { parseTransactionOverrides } from "../../utils/transaction-overrides"; const requestBodySchema = Type.Object({ toAddress: Type.Optional(AddressSchema), diff --git a/src/server/routes/backend-wallet/signMessage.ts b/src/server/routes/backend-wallet/sign-message.ts similarity index 97% rename from src/server/routes/backend-wallet/signMessage.ts rename to src/server/routes/backend-wallet/sign-message.ts index a00e8a860..fa3bb0cfe 100644 --- a/src/server/routes/backend-wallet/signMessage.ts +++ b/src/server/routes/backend-wallet/sign-message.ts @@ -10,7 +10,7 @@ import { import { walletDetailsToAccount } from "../../../shared/utils/account"; import { getChain } from "../../../shared/utils/chain"; import { createCustomError } from "../../middleware/error"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; import { walletHeaderSchema } from "../../schemas/wallet"; const requestBodySchema = Type.Object({ diff --git a/src/server/routes/backend-wallet/signTransaction.ts b/src/server/routes/backend-wallet/sign-transaction.ts similarity index 97% rename from src/server/routes/backend-wallet/signTransaction.ts rename to src/server/routes/backend-wallet/sign-transaction.ts index 74eba697a..fbdf1bec4 100644 --- a/src/server/routes/backend-wallet/signTransaction.ts +++ b/src/server/routes/backend-wallet/sign-transaction.ts @@ -10,7 +10,7 @@ import { } from "../../../shared/utils/primitive-types"; import { toTransactionType } from "../../../shared/utils/sdk"; import { createCustomError } from "../../middleware/error"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; import { walletHeaderSchema } from "../../schemas/wallet"; const requestBodySchema = Type.Object({ diff --git a/src/server/routes/backend-wallet/signTypedData.ts b/src/server/routes/backend-wallet/sign-typed-data.ts similarity index 95% rename from src/server/routes/backend-wallet/signTypedData.ts rename to src/server/routes/backend-wallet/sign-typed-data.ts index e1eee6e3b..d668f60ed 100644 --- a/src/server/routes/backend-wallet/signTypedData.ts +++ b/src/server/routes/backend-wallet/sign-typed-data.ts @@ -3,7 +3,7 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { getWallet } from "../../../shared/utils/cache/get-wallet"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; import { walletHeaderSchema } from "../../schemas/wallet"; const requestBodySchema = Type.Object({ diff --git a/src/server/routes/backend-wallet/simulateTransaction.ts b/src/server/routes/backend-wallet/simulate-transaction.ts similarity index 98% rename from src/server/routes/backend-wallet/simulateTransaction.ts rename to src/server/routes/backend-wallet/simulate-transaction.ts index b8cee7866..cffec3f82 100644 --- a/src/server/routes/backend-wallet/simulateTransaction.ts +++ b/src/server/routes/backend-wallet/simulate-transaction.ts @@ -10,7 +10,7 @@ import { AddressSchema } from "../../schemas/address"; import { simulateResponseSchema, standardResponseSchema, -} from "../../schemas/sharedApiSchemas"; +} from "../../schemas/shared-api-schemas"; import { walletChainParamSchema, walletWithAAHeaderSchema, diff --git a/src/server/routes/backend-wallet/transfer.ts b/src/server/routes/backend-wallet/transfer.ts index 042dde64a..48a1daaeb 100644 --- a/src/server/routes/backend-wallet/transfer.ts +++ b/src/server/routes/backend-wallet/transfer.ts @@ -22,14 +22,14 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../schemas/txOverrides"; +} from "../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../schemas/tx-overrides"; import { walletHeaderSchema, walletWithAddressParamSchema, } from "../../schemas/wallet"; import { getChainIdFromChain } from "../../utils/chain"; -import { parseTransactionOverrides } from "../../utils/transactionOverrides"; +import { parseTransactionOverrides } from "../../utils/transaction-overrides"; const requestSchema = Type.Omit(walletWithAddressParamSchema, [ "walletAddress", diff --git a/src/server/routes/backend-wallet/update.ts b/src/server/routes/backend-wallet/update.ts index dca07493f..8a021084b 100644 --- a/src/server/routes/backend-wallet/update.ts +++ b/src/server/routes/backend-wallet/update.ts @@ -3,7 +3,7 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { updateWalletDetails } from "../../../shared/db/wallets/update-wallet-details"; import { AddressSchema } from "../../schemas/address"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; const requestBodySchema = Type.Object({ walletAddress: AddressSchema, diff --git a/src/server/routes/backend-wallet/withdraw.ts b/src/server/routes/backend-wallet/withdraw.ts index 50b27a87a..c5e233d23 100644 --- a/src/server/routes/backend-wallet/withdraw.ts +++ b/src/server/routes/backend-wallet/withdraw.ts @@ -21,14 +21,14 @@ import { TokenAmountStringSchema } from "../../schemas/number"; import { requestQuerystringSchema, standardResponseSchema, -} from "../../schemas/sharedApiSchemas"; -import { txOverridesSchema } from "../../schemas/txOverrides"; +} from "../../schemas/shared-api-schemas"; +import { txOverridesSchema } from "../../schemas/tx-overrides"; import { walletHeaderSchema, walletWithAddressParamSchema, } from "../../schemas/wallet"; import { getChainIdFromChain } from "../../utils/chain"; -import { parseTransactionOverrides } from "../../utils/transactionOverrides"; +import { parseTransactionOverrides } from "../../utils/transaction-overrides"; const ParamsSchema = Type.Omit(walletWithAddressParamSchema, ["walletAddress"]); diff --git a/src/server/routes/chain/getAll.ts b/src/server/routes/chain/get-all.ts similarity index 97% rename from src/server/routes/chain/getAll.ts rename to src/server/routes/chain/get-all.ts index 2f3efcda5..c508739d7 100644 --- a/src/server/routes/chain/getAll.ts +++ b/src/server/routes/chain/get-all.ts @@ -4,7 +4,7 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { getConfig } from "../../../shared/utils/cache/get-config"; import { chainResponseSchema } from "../../schemas/chain"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; // OUTPUT const responseSchema = Type.Object({ diff --git a/src/server/routes/chain/get.ts b/src/server/routes/chain/get.ts index c271613a3..d77f59710 100644 --- a/src/server/routes/chain/get.ts +++ b/src/server/routes/chain/get.ts @@ -7,7 +7,7 @@ import { chainRequestQuerystringSchema, chainResponseSchema, } from "../../schemas/chain"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../utils/chain"; // OUTPUT diff --git a/src/server/routes/configuration/auth/get.ts b/src/server/routes/configuration/auth/get.ts index e8ff03db6..29c174b4f 100644 --- a/src/server/routes/configuration/auth/get.ts +++ b/src/server/routes/configuration/auth/get.ts @@ -2,7 +2,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/get-config"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; export const responseBodySchema = Type.Object({ result: Type.Object({ diff --git a/src/server/routes/configuration/auth/update.ts b/src/server/routes/configuration/auth/update.ts index 518a8d1ac..50d88a49d 100644 --- a/src/server/routes/configuration/auth/update.ts +++ b/src/server/routes/configuration/auth/update.ts @@ -3,7 +3,7 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { updateConfiguration } from "../../../../shared/db/configuration/update-configuration"; import { getConfig } from "../../../../shared/utils/cache/get-config"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; import { responseBodySchema } from "./get"; export const requestBodySchema = Type.Object({ diff --git a/src/server/routes/configuration/backend-wallet-balance/get.ts b/src/server/routes/configuration/backend-wallet-balance/get.ts index 5f0fd671b..c547b40a5 100644 --- a/src/server/routes/configuration/backend-wallet-balance/get.ts +++ b/src/server/routes/configuration/backend-wallet-balance/get.ts @@ -2,7 +2,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/get-config"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; export const responseBodySchema = Type.Object({ result: 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 f4a71d569..842fef403 100644 --- a/src/server/routes/configuration/backend-wallet-balance/update.ts +++ b/src/server/routes/configuration/backend-wallet-balance/update.ts @@ -4,7 +4,7 @@ import { StatusCodes } from "http-status-codes"; 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 { standardResponseSchema } from "../../../schemas/shared-api-schemas"; import { responseBodySchema } from "./get"; const requestBodySchema = Type.Partial( diff --git a/src/server/routes/configuration/cache/get.ts b/src/server/routes/configuration/cache/get.ts index 069517ad9..986decc8a 100644 --- a/src/server/routes/configuration/cache/get.ts +++ b/src/server/routes/configuration/cache/get.ts @@ -2,7 +2,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/get-config"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; export const responseBodySchema = Type.Object({ result: Type.Object({ diff --git a/src/server/routes/configuration/cache/update.ts b/src/server/routes/configuration/cache/update.ts index 7abdeadfd..5ea2c035e 100644 --- a/src/server/routes/configuration/cache/update.ts +++ b/src/server/routes/configuration/cache/update.ts @@ -6,7 +6,7 @@ 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 { standardResponseSchema } from "../../../schemas/shared-api-schemas"; import { responseBodySchema } from "./get"; const requestBodySchema = Type.Object({ diff --git a/src/server/routes/configuration/chains/get.ts b/src/server/routes/configuration/chains/get.ts index c217b9cbc..1c39b7827 100644 --- a/src/server/routes/configuration/chains/get.ts +++ b/src/server/routes/configuration/chains/get.ts @@ -3,7 +3,7 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { getConfig } from "../../../../shared/utils/cache/get-config"; import { chainResponseSchema } from "../../../schemas/chain"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; export const responseBodySchema = Type.Object({ result: Type.Array(chainResponseSchema), diff --git a/src/server/routes/configuration/chains/update.ts b/src/server/routes/configuration/chains/update.ts index 9b2c961de..ab053a5b9 100644 --- a/src/server/routes/configuration/chains/update.ts +++ b/src/server/routes/configuration/chains/update.ts @@ -5,7 +5,7 @@ import { updateConfiguration } from "../../../../shared/db/configuration/update- 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 { standardResponseSchema } from "../../../schemas/shared-api-schemas"; import { responseBodySchema } from "./get"; const requestBodySchema = Type.Object({ diff --git a/src/server/routes/configuration/contract-subscriptions/get.ts b/src/server/routes/configuration/contract-subscriptions/get.ts index 17bb61314..b80669d37 100644 --- a/src/server/routes/configuration/contract-subscriptions/get.ts +++ b/src/server/routes/configuration/contract-subscriptions/get.ts @@ -5,7 +5,7 @@ import { getConfig } from "../../../../shared/utils/cache/get-config"; import { contractSubscriptionConfigurationSchema, standardResponseSchema, -} from "../../../schemas/sharedApiSchemas"; +} from "../../../schemas/shared-api-schemas"; const responseSchema = Type.Object({ result: contractSubscriptionConfigurationSchema, diff --git a/src/server/routes/configuration/contract-subscriptions/update.ts b/src/server/routes/configuration/contract-subscriptions/update.ts index 1f56319da..ee971de01 100644 --- a/src/server/routes/configuration/contract-subscriptions/update.ts +++ b/src/server/routes/configuration/contract-subscriptions/update.ts @@ -7,7 +7,7 @@ import { createCustomError } from "../../../middleware/error"; import { contractSubscriptionConfigurationSchema, standardResponseSchema, -} from "../../../schemas/sharedApiSchemas"; +} from "../../../schemas/shared-api-schemas"; const requestBodySchema = Type.Object({ maxBlocksToIndex: Type.Optional(Type.Integer({ minimum: 1, maximum: 100 })), diff --git a/src/server/routes/configuration/cors/add.ts b/src/server/routes/configuration/cors/add.ts index 609d3b649..818d81ac3 100644 --- a/src/server/routes/configuration/cors/add.ts +++ b/src/server/routes/configuration/cors/add.ts @@ -3,7 +3,7 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { updateConfiguration } from "../../../../shared/db/configuration/update-configuration"; import { getConfig } from "../../../../shared/utils/cache/get-config"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; 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 38ba869bd..fef2c9834 100644 --- a/src/server/routes/configuration/cors/get.ts +++ b/src/server/routes/configuration/cors/get.ts @@ -2,7 +2,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/get-config"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; import { mandatoryAllowedCorsUrls } from "../../../utils/cors-urls"; export const responseBodySchema = Type.Object({ diff --git a/src/server/routes/configuration/cors/remove.ts b/src/server/routes/configuration/cors/remove.ts index a9ddabb6e..35f3edec4 100644 --- a/src/server/routes/configuration/cors/remove.ts +++ b/src/server/routes/configuration/cors/remove.ts @@ -4,7 +4,7 @@ import { StatusCodes } from "http-status-codes"; 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 { standardResponseSchema } from "../../../schemas/shared-api-schemas"; import { mandatoryAllowedCorsUrls } from "../../../utils/cors-urls"; import { responseBodySchema } from "./get"; diff --git a/src/server/routes/configuration/cors/set.ts b/src/server/routes/configuration/cors/set.ts index a6c7aaf06..529a35111 100644 --- a/src/server/routes/configuration/cors/set.ts +++ b/src/server/routes/configuration/cors/set.ts @@ -3,7 +3,7 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { updateConfiguration } from "../../../../shared/db/configuration/update-configuration"; import { getConfig } from "../../../../shared/utils/cache/get-config"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; 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 7d7b8d412..de3d71c58 100644 --- a/src/server/routes/configuration/ip/get.ts +++ b/src/server/routes/configuration/ip/get.ts @@ -2,7 +2,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/get-config"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; export const responseBodySchema = Type.Object({ result: Type.Array(Type.String()), diff --git a/src/server/routes/configuration/ip/set.ts b/src/server/routes/configuration/ip/set.ts index 001c9debf..f960ba615 100644 --- a/src/server/routes/configuration/ip/set.ts +++ b/src/server/routes/configuration/ip/set.ts @@ -3,7 +3,7 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { updateConfiguration } from "../../../../shared/db/configuration/update-configuration"; import { getConfig } from "../../../../shared/utils/cache/get-config"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; import { responseBodySchema } from "./get"; const requestBodySchema = Type.Object({ diff --git a/src/server/routes/configuration/transactions/get.ts b/src/server/routes/configuration/transactions/get.ts index d94ebb09d..9e40d0479 100644 --- a/src/server/routes/configuration/transactions/get.ts +++ b/src/server/routes/configuration/transactions/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 { getConfig } from "../../../../shared/utils/cache/get-config"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; const responseBodySchema = Type.Object({ result: Type.Object({ diff --git a/src/server/routes/configuration/transactions/update.ts b/src/server/routes/configuration/transactions/update.ts index 0965de34c..801956841 100644 --- a/src/server/routes/configuration/transactions/update.ts +++ b/src/server/routes/configuration/transactions/update.ts @@ -3,7 +3,7 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { updateConfiguration } from "../../../../shared/db/configuration/update-configuration"; import { getConfig } from "../../../../shared/utils/cache/get-config"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; const requestBodySchema = Type.Partial( Type.Object({ diff --git a/src/server/routes/configuration/wallets/get.ts b/src/server/routes/configuration/wallets/get.ts index 635ea5223..b3f87ce62 100644 --- a/src/server/routes/configuration/wallets/get.ts +++ b/src/server/routes/configuration/wallets/get.ts @@ -3,7 +3,7 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { WalletType } from "../../../../shared/schemas/wallet"; import { getConfig } from "../../../../shared/utils/cache/get-config"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; export const responseBodySchema = Type.Object({ result: Type.Object({ diff --git a/src/server/routes/configuration/wallets/update.ts b/src/server/routes/configuration/wallets/update.ts index f0e591038..dd4ed2b96 100644 --- a/src/server/routes/configuration/wallets/update.ts +++ b/src/server/routes/configuration/wallets/update.ts @@ -5,7 +5,7 @@ import { updateConfiguration } from "../../../../shared/db/configuration/update- import { WalletType } from "../../../../shared/schemas/wallet"; import { getConfig } from "../../../../shared/utils/cache/get-config"; import { createCustomError } from "../../../middleware/error"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; import { responseBodySchema } from "./get"; const requestBodySchema = Type.Union([ diff --git a/src/server/routes/contract/events/getAllEvents.ts b/src/server/routes/contract/events/get-all-events.ts similarity index 98% rename from src/server/routes/contract/events/getAllEvents.ts rename to src/server/routes/contract/events/get-all-events.ts index 712d7ca06..240bc0f55 100644 --- a/src/server/routes/contract/events/getAllEvents.ts +++ b/src/server/routes/contract/events/get-all-events.ts @@ -9,7 +9,7 @@ import { import { contractParamSchema, standardResponseSchema, -} from "../../../schemas/sharedApiSchemas"; +} from "../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../utils/chain"; const requestSchema = contractParamSchema; diff --git a/src/server/routes/contract/events/getContractEventLogs.ts b/src/server/routes/contract/events/get-contract-event-logs.ts similarity index 99% rename from src/server/routes/contract/events/getContractEventLogs.ts rename to src/server/routes/contract/events/get-contract-event-logs.ts index a16266b8d..afba2f28f 100644 --- a/src/server/routes/contract/events/getContractEventLogs.ts +++ b/src/server/routes/contract/events/get-contract-event-logs.ts @@ -8,7 +8,7 @@ import { AddressSchema, TransactionHashSchema } from "../../../schemas/address"; import { contractParamSchema, standardResponseSchema, -} from "../../../schemas/sharedApiSchemas"; +} from "../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../utils/chain"; const requestQuerySchema = Type.Object({ diff --git a/src/server/routes/contract/events/getEventLogsByTimestamp.ts b/src/server/routes/contract/events/get-event-logs-by-timestamp.ts similarity index 96% rename from src/server/routes/contract/events/getEventLogsByTimestamp.ts rename to src/server/routes/contract/events/get-event-logs-by-timestamp.ts index c93ffaa4d..9c8ebb57c 100644 --- a/src/server/routes/contract/events/getEventLogsByTimestamp.ts +++ b/src/server/routes/contract/events/get-event-logs-by-timestamp.ts @@ -3,8 +3,8 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; 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"; +import { eventLogSchema } from "../../../schemas/event-log"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; const requestQuerySchema = Type.Object({ contractAddresses: Type.Optional(Type.Array(AddressSchema)), diff --git a/src/server/routes/contract/events/getEvents.ts b/src/server/routes/contract/events/get-events.ts similarity index 98% rename from src/server/routes/contract/events/getEvents.ts rename to src/server/routes/contract/events/get-events.ts index fa81a5739..f3a2d77b2 100644 --- a/src/server/routes/contract/events/getEvents.ts +++ b/src/server/routes/contract/events/get-events.ts @@ -9,7 +9,7 @@ import { import { contractParamSchema, standardResponseSchema, -} from "../../../schemas/sharedApiSchemas"; +} from "../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../utils/chain"; const requestSchema = contractParamSchema; diff --git a/src/server/routes/contract/events/paginateEventLogs.ts b/src/server/routes/contract/events/paginate-event-logs.ts similarity index 97% rename from src/server/routes/contract/events/paginateEventLogs.ts rename to src/server/routes/contract/events/paginate-event-logs.ts index 7a4cae470..cc566aee5 100644 --- a/src/server/routes/contract/events/paginateEventLogs.ts +++ b/src/server/routes/contract/events/paginate-event-logs.ts @@ -4,8 +4,8 @@ import { StatusCodes } from "http-status-codes"; 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"; +import { eventLogSchema, toEventLogSchema } from "../../../schemas/event-log"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; const requestQuerySchema = Type.Object({ cursor: Type.Optional(Type.String()), diff --git a/src/server/routes/contract/extensions/accountFactory/index.ts b/src/server/routes/contract/extensions/account-factory/index.ts similarity index 53% rename from src/server/routes/contract/extensions/accountFactory/index.ts rename to src/server/routes/contract/extensions/account-factory/index.ts index 1f10720bf..dae7263fc 100644 --- a/src/server/routes/contract/extensions/accountFactory/index.ts +++ b/src/server/routes/contract/extensions/account-factory/index.ts @@ -1,9 +1,9 @@ import { FastifyInstance } from "fastify"; -import { getAllAccounts } from "./read/getAllAccounts"; -import { getAssociatedAccounts } from "./read/getAssociatedAccounts"; -import { isAccountDeployed } from "./read/isAccountDeployed"; -import { predictAccountAddress } from "./read/predictAccountAddress"; -import { createAccount } from "./write/createAccount"; +import { getAllAccounts } from "./read/get-all-accounts"; +import { getAssociatedAccounts } from "./read/get-associated-accounts"; +import { isAccountDeployed } from "./read/is-account-deployed"; +import { predictAccountAddress } from "./read/predict-account-address"; +import { createAccount } from "./write/create-account"; export const accountFactoryRoutes = async (fastify: FastifyInstance) => { // GET diff --git a/src/server/routes/contract/extensions/accountFactory/read/getAllAccounts.ts b/src/server/routes/contract/extensions/account-factory/read/get-all-accounts.ts similarity index 96% rename from src/server/routes/contract/extensions/accountFactory/read/getAllAccounts.ts rename to src/server/routes/contract/extensions/account-factory/read/get-all-accounts.ts index 99109fa48..b445ee240 100644 --- a/src/server/routes/contract/extensions/accountFactory/read/getAllAccounts.ts +++ b/src/server/routes/contract/extensions/account-factory/read/get-all-accounts.ts @@ -5,7 +5,7 @@ import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { contractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; const responseBodySchema = Type.Object({ diff --git a/src/server/routes/contract/extensions/accountFactory/read/getAssociatedAccounts.ts b/src/server/routes/contract/extensions/account-factory/read/get-associated-accounts.ts similarity index 97% rename from src/server/routes/contract/extensions/accountFactory/read/getAssociatedAccounts.ts rename to src/server/routes/contract/extensions/account-factory/read/get-associated-accounts.ts index e6af059fc..31380e7d9 100644 --- a/src/server/routes/contract/extensions/accountFactory/read/getAssociatedAccounts.ts +++ b/src/server/routes/contract/extensions/account-factory/read/get-associated-accounts.ts @@ -6,7 +6,7 @@ import { AddressSchema } from "../../../../../schemas/address"; import { contractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; const responseBodySchema = Type.Object({ diff --git a/src/server/routes/contract/extensions/accountFactory/read/isAccountDeployed.ts b/src/server/routes/contract/extensions/account-factory/read/is-account-deployed.ts similarity index 97% rename from src/server/routes/contract/extensions/accountFactory/read/isAccountDeployed.ts rename to src/server/routes/contract/extensions/account-factory/read/is-account-deployed.ts index 2f497bace..1588f95a6 100644 --- a/src/server/routes/contract/extensions/accountFactory/read/isAccountDeployed.ts +++ b/src/server/routes/contract/extensions/account-factory/read/is-account-deployed.ts @@ -6,7 +6,7 @@ import { AddressSchema } from "../../../../../schemas/address"; import { contractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; const responseBodySchema = Type.Object({ diff --git a/src/server/routes/contract/extensions/accountFactory/read/predictAccountAddress.ts b/src/server/routes/contract/extensions/account-factory/read/predict-account-address.ts similarity index 97% rename from src/server/routes/contract/extensions/accountFactory/read/predictAccountAddress.ts rename to src/server/routes/contract/extensions/account-factory/read/predict-account-address.ts index fc3453f87..546932cd8 100644 --- a/src/server/routes/contract/extensions/accountFactory/read/predictAccountAddress.ts +++ b/src/server/routes/contract/extensions/account-factory/read/predict-account-address.ts @@ -7,7 +7,7 @@ import { AddressSchema } from "../../../../../schemas/address"; import { contractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; const responseBodySchema = Type.Object({ diff --git a/src/server/routes/contract/extensions/accountFactory/write/createAccount.ts b/src/server/routes/contract/extensions/account-factory/write/create-account.ts similarity index 98% rename from src/server/routes/contract/extensions/accountFactory/write/createAccount.ts rename to src/server/routes/contract/extensions/account-factory/write/create-account.ts index 8cb672049..6ae22e694 100644 --- a/src/server/routes/contract/extensions/accountFactory/write/createAccount.ts +++ b/src/server/routes/contract/extensions/account-factory/write/create-account.ts @@ -13,8 +13,8 @@ import { contractParamSchema, requestQuerystringSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { maybeAddress, requiredAddress, diff --git a/src/server/routes/contract/extensions/account/index.ts b/src/server/routes/contract/extensions/account/index.ts index 23ba14c0d..fc5ed960d 100644 --- a/src/server/routes/contract/extensions/account/index.ts +++ b/src/server/routes/contract/extensions/account/index.ts @@ -1,11 +1,11 @@ import { FastifyInstance } from "fastify"; -import { getAllAdmins } from "./read/getAllAdmins"; -import { getAllSessions } from "./read/getAllSessions"; -import { grantAdmin } from "./write/grantAdmin"; -import { grantSession } from "./write/grantSession"; -import { revokeAdmin } from "./write/revokeAdmin"; -import { revokeSession } from "./write/revokeSession"; -import { updateSession } from "./write/updateSession"; +import { getAllAdmins } from "./read/get-all-admins"; +import { getAllSessions } from "./read/get-all-sessions"; +import { grantAdmin } from "./write/grant-admin"; +import { grantSession } from "./write/grant-session"; +import { revokeAdmin } from "./write/revoke-admin"; +import { revokeSession } from "./write/revoke-session"; +import { updateSession } from "./write/update-session"; export const accountRoutes = async (fastify: FastifyInstance) => { // GET diff --git a/src/server/routes/contract/extensions/account/read/getAllAdmins.ts b/src/server/routes/contract/extensions/account/read/get-all-admins.ts similarity index 96% rename from src/server/routes/contract/extensions/account/read/getAllAdmins.ts rename to src/server/routes/contract/extensions/account/read/get-all-admins.ts index af130c242..4bfe3f3b0 100644 --- a/src/server/routes/contract/extensions/account/read/getAllAdmins.ts +++ b/src/server/routes/contract/extensions/account/read/get-all-admins.ts @@ -5,7 +5,7 @@ import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { contractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; const responseBodySchema = Type.Object({ diff --git a/src/server/routes/contract/extensions/account/read/getAllSessions.ts b/src/server/routes/contract/extensions/account/read/get-all-sessions.ts similarity index 97% rename from src/server/routes/contract/extensions/account/read/getAllSessions.ts rename to src/server/routes/contract/extensions/account/read/get-all-sessions.ts index 13f1e91ae..4da9384ff 100644 --- a/src/server/routes/contract/extensions/account/read/getAllSessions.ts +++ b/src/server/routes/contract/extensions/account/read/get-all-sessions.ts @@ -6,7 +6,7 @@ import { sessionSchema } from "../../../../../schemas/account"; import { contractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; const responseBodySchema = Type.Object({ diff --git a/src/server/routes/contract/extensions/account/write/grantAdmin.ts b/src/server/routes/contract/extensions/account/write/grant-admin.ts similarity index 97% rename from src/server/routes/contract/extensions/account/write/grantAdmin.ts rename to src/server/routes/contract/extensions/account/write/grant-admin.ts index d3ba73f78..38efdb3d7 100644 --- a/src/server/routes/contract/extensions/account/write/grantAdmin.ts +++ b/src/server/routes/contract/extensions/account/write/grant-admin.ts @@ -9,8 +9,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/account/write/grantSession.ts b/src/server/routes/contract/extensions/account/write/grant-session.ts similarity index 97% rename from src/server/routes/contract/extensions/account/write/grantSession.ts rename to src/server/routes/contract/extensions/account/write/grant-session.ts index 832146226..90f5a1153 100644 --- a/src/server/routes/contract/extensions/account/write/grantSession.ts +++ b/src/server/routes/contract/extensions/account/write/grant-session.ts @@ -9,8 +9,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/account/write/revokeAdmin.ts b/src/server/routes/contract/extensions/account/write/revoke-admin.ts similarity index 97% rename from src/server/routes/contract/extensions/account/write/revokeAdmin.ts rename to src/server/routes/contract/extensions/account/write/revoke-admin.ts index 7d26c96ed..1fec31058 100644 --- a/src/server/routes/contract/extensions/account/write/revokeAdmin.ts +++ b/src/server/routes/contract/extensions/account/write/revoke-admin.ts @@ -9,8 +9,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/account/write/revokeSession.ts b/src/server/routes/contract/extensions/account/write/revoke-session.ts similarity index 97% rename from src/server/routes/contract/extensions/account/write/revokeSession.ts rename to src/server/routes/contract/extensions/account/write/revoke-session.ts index bb6cf526a..82727db79 100644 --- a/src/server/routes/contract/extensions/account/write/revokeSession.ts +++ b/src/server/routes/contract/extensions/account/write/revoke-session.ts @@ -9,8 +9,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/account/write/updateSession.ts b/src/server/routes/contract/extensions/account/write/update-session.ts similarity index 98% rename from src/server/routes/contract/extensions/account/write/updateSession.ts rename to src/server/routes/contract/extensions/account/write/update-session.ts index c7d5aaf38..418c6d6d3 100644 --- a/src/server/routes/contract/extensions/account/write/updateSession.ts +++ b/src/server/routes/contract/extensions/account/write/update-session.ts @@ -9,8 +9,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/erc1155/index.ts b/src/server/routes/contract/extensions/erc1155/index.ts index 04fdab2da..16b23032e 100644 --- a/src/server/routes/contract/extensions/erc1155/index.ts +++ b/src/server/routes/contract/extensions/erc1155/index.ts @@ -1,33 +1,33 @@ import type { FastifyInstance } from "fastify"; -import { erc1155BalanceOf } from "./read/balanceOf"; -import { erc1155CanClaim } from "./read/canClaim"; +import { erc1155BalanceOf } from "./read/balance-of"; +import { erc1155CanClaim } from "./read/can-claim"; import { erc1155Get } from "./read/get"; -import { erc1155GetActiveClaimConditions } from "./read/getActiveClaimConditions"; -import { erc1155GetAll } from "./read/getAll"; -import { erc1155GetAllClaimConditions } from "./read/getAllClaimConditions"; -import { erc1155GetClaimIneligibilityReasons } from "./read/getClaimIneligibilityReasons"; -import { erc1155GetClaimerProofs } from "./read/getClaimerProofs"; -import { erc1155GetOwned } from "./read/getOwned"; -import { erc1155IsApproved } from "./read/isApproved"; -import { erc1155SignatureGenerate } from "./read/signatureGenerate"; -import { erc1155TotalCount } from "./read/totalCount"; -import { erc1155TotalSupply } from "./read/totalSupply"; +import { erc1155GetActiveClaimConditions } from "./read/get-active-claim-conditions"; +import { erc1155GetAll } from "./read/get-all"; +import { erc1155GetAllClaimConditions } from "./read/get-all-claim-conditions"; +import { erc1155GetClaimIneligibilityReasons } from "./read/get-claim-ineligibility-reasons"; +import { erc1155GetClaimerProofs } from "./read/get-claimer-proofs"; +import { erc1155GetOwned } from "./read/get-owned"; +import { erc1155IsApproved } from "./read/is-approved"; +import { erc1155SignatureGenerate } from "./read/signature-generate"; +import { erc1155TotalCount } from "./read/total-count"; +import { erc1155TotalSupply } from "./read/total-supply"; import { erc1155airdrop } from "./write/airdrop"; import { erc1155burn } from "./write/burn"; -import { erc1155burnBatch } from "./write/burnBatch"; -import { erc1155claimTo } from "./write/claimTo"; -import { erc1155lazyMint } from "./write/lazyMint"; -import { erc1155mintAdditionalSupplyTo } from "./write/mintAdditionalSupplyTo"; -import { erc1155mintBatchTo } from "./write/mintBatchTo"; -import { erc1155mintTo } from "./write/mintTo"; -import { erc1155SetApprovalForAll } from "./write/setApprovalForAll"; -import { erc1155SetBatchClaimConditions } from "./write/setBatchClaimConditions"; -import { erc1155SetClaimCondition } from "./write/setClaimConditions"; -import { erc1155SignatureMint } from "./write/signatureMint"; +import { erc1155burnBatch } from "./write/burn-batch"; +import { erc1155claimTo } from "./write/claim-to"; +import { erc1155lazyMint } from "./write/lazy-mint"; +import { erc1155mintAdditionalSupplyTo } from "./write/mint-additional-supply-to"; +import { erc1155mintBatchTo } from "./write/mint-batch-to"; +import { erc1155mintTo } from "./write/mint-to"; +import { erc1155SetApprovalForAll } from "./write/set-approval-for-all"; +import { erc1155SetBatchClaimConditions } from "./write/set-batch-claim-conditions"; +import { erc1155SetClaimCondition } from "./write/set-claim-conditions"; +import { erc1155SignatureMint } from "./write/signature-mint"; import { erc1155transfer } from "./write/transfer"; -import { erc1155transferFrom } from "./write/transferFrom"; -import { erc1155UpdateClaimConditions } from "./write/updateClaimConditions"; -import { erc1155UpdateTokenMetadata } from "./write/updateTokenMetadata"; +import { erc1155transferFrom } from "./write/transfer-from"; +import { erc1155UpdateClaimConditions } from "./write/update-claim-conditions"; +import { erc1155UpdateTokenMetadata } from "./write/update-token-metadata"; export const erc1155Routes = async (fastify: FastifyInstance) => { // GET diff --git a/src/server/routes/contract/extensions/erc1155/read/balanceOf.ts b/src/server/routes/contract/extensions/erc1155/read/balance-of.ts similarity index 97% rename from src/server/routes/contract/extensions/erc1155/read/balanceOf.ts rename to src/server/routes/contract/extensions/erc1155/read/balance-of.ts index 7559cfb2f..82ce95c12 100644 --- a/src/server/routes/contract/extensions/erc1155/read/balanceOf.ts +++ b/src/server/routes/contract/extensions/erc1155/read/balance-of.ts @@ -6,7 +6,7 @@ import { AddressSchema } from "../../../../../schemas/address"; import { erc1155ContractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUTS diff --git a/src/server/routes/contract/extensions/erc1155/read/canClaim.ts b/src/server/routes/contract/extensions/erc1155/read/can-claim.ts similarity index 97% rename from src/server/routes/contract/extensions/erc1155/read/canClaim.ts rename to src/server/routes/contract/extensions/erc1155/read/can-claim.ts index 54b8ad7a9..459990ad4 100644 --- a/src/server/routes/contract/extensions/erc1155/read/canClaim.ts +++ b/src/server/routes/contract/extensions/erc1155/read/can-claim.ts @@ -5,7 +5,7 @@ import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { contractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/erc1155/read/getActiveClaimConditions.ts b/src/server/routes/contract/extensions/erc1155/read/get-active-claim-conditions.ts similarity index 97% rename from src/server/routes/contract/extensions/erc1155/read/getActiveClaimConditions.ts rename to src/server/routes/contract/extensions/erc1155/read/get-active-claim-conditions.ts index 69fb5b7c7..bb83ab1e6 100644 --- a/src/server/routes/contract/extensions/erc1155/read/getActiveClaimConditions.ts +++ b/src/server/routes/contract/extensions/erc1155/read/get-active-claim-conditions.ts @@ -2,11 +2,11 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { getContract } from "../../../../../../shared/utils/cache/get-contract"; -import { claimConditionOutputSchema } from "../../../../../schemas/claimConditions"; +import { claimConditionOutputSchema } from "../../../../../schemas/claim-conditions"; import { contractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/erc1155/read/getAllClaimConditions.ts b/src/server/routes/contract/extensions/erc1155/read/get-all-claim-conditions.ts similarity index 97% rename from src/server/routes/contract/extensions/erc1155/read/getAllClaimConditions.ts rename to src/server/routes/contract/extensions/erc1155/read/get-all-claim-conditions.ts index 7da7ed4e7..845e6d21c 100644 --- a/src/server/routes/contract/extensions/erc1155/read/getAllClaimConditions.ts +++ b/src/server/routes/contract/extensions/erc1155/read/get-all-claim-conditions.ts @@ -2,11 +2,11 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { getContract } from "../../../../../../shared/utils/cache/get-contract"; -import { claimConditionOutputSchema } from "../../../../../schemas/claimConditions"; +import { claimConditionOutputSchema } from "../../../../../schemas/claim-conditions"; import { contractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/erc1155/read/getAll.ts b/src/server/routes/contract/extensions/erc1155/read/get-all.ts similarity index 98% rename from src/server/routes/contract/extensions/erc1155/read/getAll.ts rename to src/server/routes/contract/extensions/erc1155/read/get-all.ts index 18b0ee065..b3deb9017 100644 --- a/src/server/routes/contract/extensions/erc1155/read/getAll.ts +++ b/src/server/routes/contract/extensions/erc1155/read/get-all.ts @@ -6,7 +6,7 @@ import { nftSchema } from "../../../../../schemas/nft"; import { erc1155ContractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/erc1155/read/getClaimIneligibilityReasons.ts b/src/server/routes/contract/extensions/erc1155/read/get-claim-ineligibility-reasons.ts similarity index 98% rename from src/server/routes/contract/extensions/erc1155/read/getClaimIneligibilityReasons.ts rename to src/server/routes/contract/extensions/erc1155/read/get-claim-ineligibility-reasons.ts index 49a90d43e..af758f40a 100644 --- a/src/server/routes/contract/extensions/erc1155/read/getClaimIneligibilityReasons.ts +++ b/src/server/routes/contract/extensions/erc1155/read/get-claim-ineligibility-reasons.ts @@ -8,7 +8,7 @@ import { NumberStringSchema } from "../../../../../schemas/number"; import { contractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/erc1155/read/getClaimerProofs.ts b/src/server/routes/contract/extensions/erc1155/read/get-claimer-proofs.ts similarity index 97% rename from src/server/routes/contract/extensions/erc1155/read/getClaimerProofs.ts rename to src/server/routes/contract/extensions/erc1155/read/get-claimer-proofs.ts index b8e3e0585..d1cd466ce 100644 --- a/src/server/routes/contract/extensions/erc1155/read/getClaimerProofs.ts +++ b/src/server/routes/contract/extensions/erc1155/read/get-claimer-proofs.ts @@ -3,11 +3,11 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../../schemas/address"; -import { claimerProofSchema } from "../../../../../schemas/claimConditions"; +import { claimerProofSchema } from "../../../../../schemas/claim-conditions"; import { contractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/erc1155/read/getOwned.ts b/src/server/routes/contract/extensions/erc1155/read/get-owned.ts similarity index 98% rename from src/server/routes/contract/extensions/erc1155/read/getOwned.ts rename to src/server/routes/contract/extensions/erc1155/read/get-owned.ts index 2015d0fad..ab056da46 100644 --- a/src/server/routes/contract/extensions/erc1155/read/getOwned.ts +++ b/src/server/routes/contract/extensions/erc1155/read/get-owned.ts @@ -7,7 +7,7 @@ import { nftSchema } from "../../../../../schemas/nft"; import { erc1155ContractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/erc1155/read/get.ts b/src/server/routes/contract/extensions/erc1155/read/get.ts index 95133aae6..2f5b7cb9c 100644 --- a/src/server/routes/contract/extensions/erc1155/read/get.ts +++ b/src/server/routes/contract/extensions/erc1155/read/get.ts @@ -6,7 +6,7 @@ import { nftSchema } from "../../../../../schemas/nft"; import { erc1155ContractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/erc1155/read/isApproved.ts b/src/server/routes/contract/extensions/erc1155/read/is-approved.ts similarity index 97% rename from src/server/routes/contract/extensions/erc1155/read/isApproved.ts rename to src/server/routes/contract/extensions/erc1155/read/is-approved.ts index 1926e67c6..495bd8dc3 100644 --- a/src/server/routes/contract/extensions/erc1155/read/isApproved.ts +++ b/src/server/routes/contract/extensions/erc1155/read/is-approved.ts @@ -5,7 +5,7 @@ import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { erc1155ContractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUTS diff --git a/src/server/routes/contract/extensions/erc1155/read/signatureGenerate.ts b/src/server/routes/contract/extensions/erc1155/read/signature-generate.ts similarity index 98% rename from src/server/routes/contract/extensions/erc1155/read/signatureGenerate.ts rename to src/server/routes/contract/extensions/erc1155/read/signature-generate.ts index 936dfbc5d..ab2c14ebd 100644 --- a/src/server/routes/contract/extensions/erc1155/read/signatureGenerate.ts +++ b/src/server/routes/contract/extensions/erc1155/read/signature-generate.ts @@ -10,7 +10,7 @@ import { getChain } from "../../../../../../shared/utils/chain"; import { maybeBigInt } from "../../../../../../shared/utils/primitive-types"; import { thirdwebClient } from "../../../../../../shared/utils/sdk"; import { createCustomError } from "../../../../../middleware/error"; -import { thirdwebSdkVersionSchema } from "../../../../../schemas/httpHeaders/thirdwebSdkVersion"; +import { thirdwebSdkVersionSchema } from "../../../../../schemas/http-headers/thirdweb-sdk-version"; import { nftInputSchema, signature1155InputSchema, @@ -24,7 +24,7 @@ import { import { erc1155ContractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; import { checkAndReturnNFTSignaturePayload } from "../../../../../utils/validator"; diff --git a/src/server/routes/contract/extensions/erc1155/read/totalCount.ts b/src/server/routes/contract/extensions/erc1155/read/total-count.ts similarity index 96% rename from src/server/routes/contract/extensions/erc1155/read/totalCount.ts rename to src/server/routes/contract/extensions/erc1155/read/total-count.ts index 363772c4c..8855ea0dd 100644 --- a/src/server/routes/contract/extensions/erc1155/read/totalCount.ts +++ b/src/server/routes/contract/extensions/erc1155/read/total-count.ts @@ -5,7 +5,7 @@ import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { erc1155ContractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/erc1155/read/totalSupply.ts b/src/server/routes/contract/extensions/erc1155/read/total-supply.ts similarity index 97% rename from src/server/routes/contract/extensions/erc1155/read/totalSupply.ts rename to src/server/routes/contract/extensions/erc1155/read/total-supply.ts index 634249cd4..c38c68e0d 100644 --- a/src/server/routes/contract/extensions/erc1155/read/totalSupply.ts +++ b/src/server/routes/contract/extensions/erc1155/read/total-supply.ts @@ -5,7 +5,7 @@ import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { erc1155ContractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/erc1155/write/airdrop.ts b/src/server/routes/contract/extensions/erc1155/write/airdrop.ts index 4a80f051e..255e7a639 100644 --- a/src/server/routes/contract/extensions/erc1155/write/airdrop.ts +++ b/src/server/routes/contract/extensions/erc1155/write/airdrop.ts @@ -9,8 +9,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/erc1155/write/burnBatch.ts b/src/server/routes/contract/extensions/erc1155/write/burn-batch.ts similarity index 97% rename from src/server/routes/contract/extensions/erc1155/write/burnBatch.ts rename to src/server/routes/contract/extensions/erc1155/write/burn-batch.ts index a292bd2b4..192a77dc6 100644 --- a/src/server/routes/contract/extensions/erc1155/write/burnBatch.ts +++ b/src/server/routes/contract/extensions/erc1155/write/burn-batch.ts @@ -8,8 +8,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/erc1155/write/burn.ts b/src/server/routes/contract/extensions/erc1155/write/burn.ts index a994f1e2e..839b18eb9 100644 --- a/src/server/routes/contract/extensions/erc1155/write/burn.ts +++ b/src/server/routes/contract/extensions/erc1155/write/burn.ts @@ -8,8 +8,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/erc1155/write/claimTo.ts b/src/server/routes/contract/extensions/erc1155/write/claim-to.ts similarity index 98% rename from src/server/routes/contract/extensions/erc1155/write/claimTo.ts rename to src/server/routes/contract/extensions/erc1155/write/claim-to.ts index 9de1d79ed..6b38e9e0b 100644 --- a/src/server/routes/contract/extensions/erc1155/write/claimTo.ts +++ b/src/server/routes/contract/extensions/erc1155/write/claim-to.ts @@ -11,8 +11,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { maybeAddress, requiredAddress, diff --git a/src/server/routes/contract/extensions/erc1155/write/lazyMint.ts b/src/server/routes/contract/extensions/erc1155/write/lazy-mint.ts similarity index 97% rename from src/server/routes/contract/extensions/erc1155/write/lazyMint.ts rename to src/server/routes/contract/extensions/erc1155/write/lazy-mint.ts index 8c5b2bd39..787684276 100644 --- a/src/server/routes/contract/extensions/erc1155/write/lazyMint.ts +++ b/src/server/routes/contract/extensions/erc1155/write/lazy-mint.ts @@ -9,8 +9,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/erc1155/write/mintAdditionalSupplyTo.ts b/src/server/routes/contract/extensions/erc1155/write/mint-additional-supply-to.ts similarity index 97% rename from src/server/routes/contract/extensions/erc1155/write/mintAdditionalSupplyTo.ts rename to src/server/routes/contract/extensions/erc1155/write/mint-additional-supply-to.ts index 34cf8dc40..33ad86da6 100644 --- a/src/server/routes/contract/extensions/erc1155/write/mintAdditionalSupplyTo.ts +++ b/src/server/routes/contract/extensions/erc1155/write/mint-additional-supply-to.ts @@ -9,8 +9,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/erc1155/write/mintBatchTo.ts b/src/server/routes/contract/extensions/erc1155/write/mint-batch-to.ts similarity index 98% rename from src/server/routes/contract/extensions/erc1155/write/mintBatchTo.ts rename to src/server/routes/contract/extensions/erc1155/write/mint-batch-to.ts index e8bf3168e..0fae47ad0 100644 --- a/src/server/routes/contract/extensions/erc1155/write/mintBatchTo.ts +++ b/src/server/routes/contract/extensions/erc1155/write/mint-batch-to.ts @@ -10,8 +10,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/erc1155/write/mintTo.ts b/src/server/routes/contract/extensions/erc1155/write/mint-to.ts similarity index 98% rename from src/server/routes/contract/extensions/erc1155/write/mintTo.ts rename to src/server/routes/contract/extensions/erc1155/write/mint-to.ts index cacee565b..d1f2c5781 100644 --- a/src/server/routes/contract/extensions/erc1155/write/mintTo.ts +++ b/src/server/routes/contract/extensions/erc1155/write/mint-to.ts @@ -14,8 +14,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { maybeAddress, requiredAddress, diff --git a/src/server/routes/contract/extensions/erc1155/write/setApprovalForAll.ts b/src/server/routes/contract/extensions/erc1155/write/set-approval-for-all.ts similarity index 97% rename from src/server/routes/contract/extensions/erc1155/write/setApprovalForAll.ts rename to src/server/routes/contract/extensions/erc1155/write/set-approval-for-all.ts index 2ad9d8f85..091fe875c 100644 --- a/src/server/routes/contract/extensions/erc1155/write/setApprovalForAll.ts +++ b/src/server/routes/contract/extensions/erc1155/write/set-approval-for-all.ts @@ -8,8 +8,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/erc1155/write/setBatchClaimConditions.ts b/src/server/routes/contract/extensions/erc1155/write/set-batch-claim-conditions.ts similarity index 97% rename from src/server/routes/contract/extensions/erc1155/write/setBatchClaimConditions.ts rename to src/server/routes/contract/extensions/erc1155/write/set-batch-claim-conditions.ts index da40cd380..c019767de 100644 --- a/src/server/routes/contract/extensions/erc1155/write/setBatchClaimConditions.ts +++ b/src/server/routes/contract/extensions/erc1155/write/set-batch-claim-conditions.ts @@ -6,14 +6,14 @@ import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { claimConditionInputSchema, type setBatchSantiziedClaimConditionsRequestSchema, -} from "../../../../../schemas/claimConditions"; +} from "../../../../../schemas/claim-conditions"; import { contractParamSchema, requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; import { isUnixEpochTimestamp } from "../../../../../utils/validator"; diff --git a/src/server/routes/contract/extensions/erc1155/write/setClaimConditions.ts b/src/server/routes/contract/extensions/erc1155/write/set-claim-conditions.ts similarity index 97% rename from src/server/routes/contract/extensions/erc1155/write/setClaimConditions.ts rename to src/server/routes/contract/extensions/erc1155/write/set-claim-conditions.ts index 6d3e9693b..047b77757 100644 --- a/src/server/routes/contract/extensions/erc1155/write/setClaimConditions.ts +++ b/src/server/routes/contract/extensions/erc1155/write/set-claim-conditions.ts @@ -6,14 +6,14 @@ import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { claimConditionInputSchema, type sanitizedClaimConditionInputSchema, -} from "../../../../../schemas/claimConditions"; +} from "../../../../../schemas/claim-conditions"; import { contractParamSchema, requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; import { isUnixEpochTimestamp } from "../../../../../utils/validator"; diff --git a/src/server/routes/contract/extensions/erc1155/write/signatureMint.ts b/src/server/routes/contract/extensions/erc1155/write/signature-mint.ts similarity index 97% rename from src/server/routes/contract/extensions/erc1155/write/signatureMint.ts rename to src/server/routes/contract/extensions/erc1155/write/signature-mint.ts index 395939dc2..946d9050a 100644 --- a/src/server/routes/contract/extensions/erc1155/write/signatureMint.ts +++ b/src/server/routes/contract/extensions/erc1155/write/signature-mint.ts @@ -11,8 +11,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/erc1155/write/transferFrom.ts b/src/server/routes/contract/extensions/erc1155/write/transfer-from.ts similarity index 98% rename from src/server/routes/contract/extensions/erc1155/write/transferFrom.ts rename to src/server/routes/contract/extensions/erc1155/write/transfer-from.ts index 207029903..a7930d941 100644 --- a/src/server/routes/contract/extensions/erc1155/write/transferFrom.ts +++ b/src/server/routes/contract/extensions/erc1155/write/transfer-from.ts @@ -14,8 +14,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/erc1155/write/transfer.ts b/src/server/routes/contract/extensions/erc1155/write/transfer.ts index 947918d67..4b02fff40 100644 --- a/src/server/routes/contract/extensions/erc1155/write/transfer.ts +++ b/src/server/routes/contract/extensions/erc1155/write/transfer.ts @@ -14,8 +14,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/erc1155/write/updateClaimConditions.ts b/src/server/routes/contract/extensions/erc1155/write/update-claim-conditions.ts similarity index 97% rename from src/server/routes/contract/extensions/erc1155/write/updateClaimConditions.ts rename to src/server/routes/contract/extensions/erc1155/write/update-claim-conditions.ts index 4496ec6cc..0643daca7 100644 --- a/src/server/routes/contract/extensions/erc1155/write/updateClaimConditions.ts +++ b/src/server/routes/contract/extensions/erc1155/write/update-claim-conditions.ts @@ -6,14 +6,14 @@ import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { claimConditionInputSchema, type sanitizedClaimConditionInputSchema, -} from "../../../../../schemas/claimConditions"; +} from "../../../../../schemas/claim-conditions"; import { contractParamSchema, requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; import { isUnixEpochTimestamp } from "../../../../../utils/validator"; diff --git a/src/server/routes/contract/extensions/erc1155/write/updateTokenMetadata.ts b/src/server/routes/contract/extensions/erc1155/write/update-token-metadata.ts similarity index 97% rename from src/server/routes/contract/extensions/erc1155/write/updateTokenMetadata.ts rename to src/server/routes/contract/extensions/erc1155/write/update-token-metadata.ts index 822bd6ad6..724ec1d31 100644 --- a/src/server/routes/contract/extensions/erc1155/write/updateTokenMetadata.ts +++ b/src/server/routes/contract/extensions/erc1155/write/update-token-metadata.ts @@ -9,8 +9,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/erc20/index.ts b/src/server/routes/contract/extensions/erc20/index.ts index 7fffe048c..c0cc43892 100644 --- a/src/server/routes/contract/extensions/erc20/index.ts +++ b/src/server/routes/contract/extensions/erc20/index.ts @@ -1,25 +1,25 @@ import type { FastifyInstance } from "fastify"; -import { erc20AllowanceOf } from "./read/allowanceOf"; -import { erc20BalanceOf } from "./read/balanceOf"; -import { erc20CanClaim } from "./read/canClaim"; +import { erc20AllowanceOf } from "./read/allowance-of"; +import { erc20BalanceOf } from "./read/balance-of"; +import { erc20CanClaim } from "./read/can-claim"; import { erc20GetMetadata } from "./read/get"; -import { erc20GetActiveClaimConditions } from "./read/getActiveClaimConditions"; -import { erc20GetAllClaimConditions } from "./read/getAllClaimConditions"; -import { erc20GetClaimIneligibilityReasons } from "./read/getClaimIneligibilityReasons"; -import { erc20GetClaimerProofs } from "./read/getClaimerProofs"; -import { erc20SignatureGenerate } from "./read/signatureGenerate"; -import { erc20TotalSupply } from "./read/totalSupply"; +import { erc20GetActiveClaimConditions } from "./read/get-active-claim-conditions"; +import { erc20GetAllClaimConditions } from "./read/get-all-claim-conditions"; +import { erc20GetClaimIneligibilityReasons } from "./read/get-claim-ineligibility-reasons"; +import { erc20GetClaimerProofs } from "./read/get-claimer-proofs"; +import { erc20SignatureGenerate } from "./read/signature-generate"; +import { erc20TotalSupply } from "./read/total-supply"; import { erc20burn } from "./write/burn"; -import { erc20burnFrom } from "./write/burnFrom"; -import { erc20claimTo } from "./write/claimTo"; -import { erc20mintBatchTo } from "./write/mintBatchTo"; -import { erc20mintTo } from "./write/mintTo"; -import { erc20SetAlowance } from "./write/setAllowance"; -import { erc20SetClaimConditions } from "./write/setClaimConditions"; -import { erc20SignatureMint } from "./write/signatureMint"; +import { erc20burnFrom } from "./write/burn-from"; +import { erc20claimTo } from "./write/claim-to"; +import { erc20mintBatchTo } from "./write/mint-batch-to"; +import { erc20mintTo } from "./write/mint-to"; +import { erc20SetAlowance } from "./write/set-allowance"; +import { erc20SetClaimConditions } from "./write/set-claim-conditions"; +import { erc20SignatureMint } from "./write/signature-mint"; import { erc20Transfer } from "./write/transfer"; -import { erc20TransferFrom } from "./write/transferFrom"; -import { erc20UpdateClaimConditions } from "./write/updateClaimConditions"; +import { erc20TransferFrom } from "./write/transfer-from"; +import { erc20UpdateClaimConditions } from "./write/update-claim-conditions"; export const erc20Routes = async (fastify: FastifyInstance) => { // GET diff --git a/src/server/routes/contract/extensions/erc20/read/allowanceOf.ts b/src/server/routes/contract/extensions/erc20/read/allowance-of.ts similarity index 98% rename from src/server/routes/contract/extensions/erc20/read/allowanceOf.ts rename to src/server/routes/contract/extensions/erc20/read/allowance-of.ts index bd3d14636..cb8b8a53b 100644 --- a/src/server/routes/contract/extensions/erc20/read/allowanceOf.ts +++ b/src/server/routes/contract/extensions/erc20/read/allowance-of.ts @@ -6,7 +6,7 @@ import { erc20MetadataSchema } from "../../../../../schemas/erc20"; import { erc20ContractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUTS diff --git a/src/server/routes/contract/extensions/erc20/read/balanceOf.ts b/src/server/routes/contract/extensions/erc20/read/balance-of.ts similarity index 97% rename from src/server/routes/contract/extensions/erc20/read/balanceOf.ts rename to src/server/routes/contract/extensions/erc20/read/balance-of.ts index 6f627f965..e0350946d 100644 --- a/src/server/routes/contract/extensions/erc20/read/balanceOf.ts +++ b/src/server/routes/contract/extensions/erc20/read/balance-of.ts @@ -7,7 +7,7 @@ import { erc20MetadataSchema } from "../../../../../schemas/erc20"; import { erc20ContractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUTS diff --git a/src/server/routes/contract/extensions/erc20/read/canClaim.ts b/src/server/routes/contract/extensions/erc20/read/can-claim.ts similarity index 97% rename from src/server/routes/contract/extensions/erc20/read/canClaim.ts rename to src/server/routes/contract/extensions/erc20/read/can-claim.ts index 962b16e4b..413b24cca 100644 --- a/src/server/routes/contract/extensions/erc20/read/canClaim.ts +++ b/src/server/routes/contract/extensions/erc20/read/can-claim.ts @@ -5,7 +5,7 @@ import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { contractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/erc20/read/getActiveClaimConditions.ts b/src/server/routes/contract/extensions/erc20/read/get-active-claim-conditions.ts similarity index 96% rename from src/server/routes/contract/extensions/erc20/read/getActiveClaimConditions.ts rename to src/server/routes/contract/extensions/erc20/read/get-active-claim-conditions.ts index b0813f15b..97c1b1ea3 100644 --- a/src/server/routes/contract/extensions/erc20/read/getActiveClaimConditions.ts +++ b/src/server/routes/contract/extensions/erc20/read/get-active-claim-conditions.ts @@ -2,11 +2,11 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { getContract } from "../../../../../../shared/utils/cache/get-contract"; -import { claimConditionOutputSchema } from "../../../../../schemas/claimConditions"; +import { claimConditionOutputSchema } from "../../../../../schemas/claim-conditions"; import { contractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/erc20/read/getAllClaimConditions.ts b/src/server/routes/contract/extensions/erc20/read/get-all-claim-conditions.ts similarity index 97% rename from src/server/routes/contract/extensions/erc20/read/getAllClaimConditions.ts rename to src/server/routes/contract/extensions/erc20/read/get-all-claim-conditions.ts index 8891c2e43..f6bf68f94 100644 --- a/src/server/routes/contract/extensions/erc20/read/getAllClaimConditions.ts +++ b/src/server/routes/contract/extensions/erc20/read/get-all-claim-conditions.ts @@ -2,11 +2,11 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { getContract } from "../../../../../../shared/utils/cache/get-contract"; -import { claimConditionOutputSchema } from "../../../../../schemas/claimConditions"; +import { claimConditionOutputSchema } from "../../../../../schemas/claim-conditions"; import { contractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/erc20/read/getClaimIneligibilityReasons.ts b/src/server/routes/contract/extensions/erc20/read/get-claim-ineligibility-reasons.ts similarity index 97% rename from src/server/routes/contract/extensions/erc20/read/getClaimIneligibilityReasons.ts rename to src/server/routes/contract/extensions/erc20/read/get-claim-ineligibility-reasons.ts index 4a920f618..40629cbba 100644 --- a/src/server/routes/contract/extensions/erc20/read/getClaimIneligibilityReasons.ts +++ b/src/server/routes/contract/extensions/erc20/read/get-claim-ineligibility-reasons.ts @@ -6,7 +6,7 @@ import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { contractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/erc20/read/getClaimerProofs.ts b/src/server/routes/contract/extensions/erc20/read/get-claimer-proofs.ts similarity index 96% rename from src/server/routes/contract/extensions/erc20/read/getClaimerProofs.ts rename to src/server/routes/contract/extensions/erc20/read/get-claimer-proofs.ts index 69ce75568..d68a11cb4 100644 --- a/src/server/routes/contract/extensions/erc20/read/getClaimerProofs.ts +++ b/src/server/routes/contract/extensions/erc20/read/get-claimer-proofs.ts @@ -3,11 +3,11 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../../schemas/address"; -import { claimerProofSchema } from "../../../../../schemas/claimConditions"; +import { claimerProofSchema } from "../../../../../schemas/claim-conditions"; import { contractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/erc20/read/get.ts b/src/server/routes/contract/extensions/erc20/read/get.ts index ce429d099..d2e783afd 100644 --- a/src/server/routes/contract/extensions/erc20/read/get.ts +++ b/src/server/routes/contract/extensions/erc20/read/get.ts @@ -5,7 +5,7 @@ import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { erc20ContractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/erc20/read/signatureGenerate.ts b/src/server/routes/contract/extensions/erc20/read/signature-generate.ts similarity index 98% rename from src/server/routes/contract/extensions/erc20/read/signatureGenerate.ts rename to src/server/routes/contract/extensions/erc20/read/signature-generate.ts index a35a2348d..352e0738a 100644 --- a/src/server/routes/contract/extensions/erc20/read/signatureGenerate.ts +++ b/src/server/routes/contract/extensions/erc20/read/signature-generate.ts @@ -14,11 +14,11 @@ import { signature20OutputSchema, type erc20ResponseType, } from "../../../../../schemas/erc20"; -import { thirdwebSdkVersionSchema } from "../../../../../schemas/httpHeaders/thirdwebSdkVersion"; +import { thirdwebSdkVersionSchema } from "../../../../../schemas/http-headers/thirdweb-sdk-version"; import { erc20ContractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; import { checkAndReturnERC20SignaturePayload } from "../../../../../utils/validator"; diff --git a/src/server/routes/contract/extensions/erc20/read/totalSupply.ts b/src/server/routes/contract/extensions/erc20/read/total-supply.ts similarity index 97% rename from src/server/routes/contract/extensions/erc20/read/totalSupply.ts rename to src/server/routes/contract/extensions/erc20/read/total-supply.ts index 2146e939b..cefccf0c6 100644 --- a/src/server/routes/contract/extensions/erc20/read/totalSupply.ts +++ b/src/server/routes/contract/extensions/erc20/read/total-supply.ts @@ -6,7 +6,7 @@ import { erc20MetadataSchema } from "../../../../../schemas/erc20"; import { erc20ContractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/erc20/write/burnFrom.ts b/src/server/routes/contract/extensions/erc20/write/burn-from.ts similarity index 97% rename from src/server/routes/contract/extensions/erc20/write/burnFrom.ts rename to src/server/routes/contract/extensions/erc20/write/burn-from.ts index 5f111985c..d0c9cffcd 100644 --- a/src/server/routes/contract/extensions/erc20/write/burnFrom.ts +++ b/src/server/routes/contract/extensions/erc20/write/burn-from.ts @@ -9,8 +9,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/erc20/write/burn.ts b/src/server/routes/contract/extensions/erc20/write/burn.ts index a0d8758b1..392e5ab89 100644 --- a/src/server/routes/contract/extensions/erc20/write/burn.ts +++ b/src/server/routes/contract/extensions/erc20/write/burn.ts @@ -8,8 +8,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/erc20/write/claimTo.ts b/src/server/routes/contract/extensions/erc20/write/claim-to.ts similarity index 98% rename from src/server/routes/contract/extensions/erc20/write/claimTo.ts rename to src/server/routes/contract/extensions/erc20/write/claim-to.ts index 548bf7c9c..11d5ca69d 100644 --- a/src/server/routes/contract/extensions/erc20/write/claimTo.ts +++ b/src/server/routes/contract/extensions/erc20/write/claim-to.ts @@ -10,8 +10,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { maybeAddress, requiredAddress, diff --git a/src/server/routes/contract/extensions/erc20/write/mintBatchTo.ts b/src/server/routes/contract/extensions/erc20/write/mint-batch-to.ts similarity index 97% rename from src/server/routes/contract/extensions/erc20/write/mintBatchTo.ts rename to src/server/routes/contract/extensions/erc20/write/mint-batch-to.ts index 5fa723b24..256289397 100644 --- a/src/server/routes/contract/extensions/erc20/write/mintBatchTo.ts +++ b/src/server/routes/contract/extensions/erc20/write/mint-batch-to.ts @@ -9,8 +9,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/erc20/write/mintTo.ts b/src/server/routes/contract/extensions/erc20/write/mint-to.ts similarity index 98% rename from src/server/routes/contract/extensions/erc20/write/mintTo.ts rename to src/server/routes/contract/extensions/erc20/write/mint-to.ts index 282f213ca..3d59cf544 100644 --- a/src/server/routes/contract/extensions/erc20/write/mintTo.ts +++ b/src/server/routes/contract/extensions/erc20/write/mint-to.ts @@ -12,8 +12,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { maybeAddress, requiredAddress, diff --git a/src/server/routes/contract/extensions/erc20/write/setAllowance.ts b/src/server/routes/contract/extensions/erc20/write/set-allowance.ts similarity index 97% rename from src/server/routes/contract/extensions/erc20/write/setAllowance.ts rename to src/server/routes/contract/extensions/erc20/write/set-allowance.ts index a92410c90..33f094bc9 100644 --- a/src/server/routes/contract/extensions/erc20/write/setAllowance.ts +++ b/src/server/routes/contract/extensions/erc20/write/set-allowance.ts @@ -9,8 +9,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/erc20/write/setClaimConditions.ts b/src/server/routes/contract/extensions/erc20/write/set-claim-conditions.ts similarity index 96% rename from src/server/routes/contract/extensions/erc20/write/setClaimConditions.ts rename to src/server/routes/contract/extensions/erc20/write/set-claim-conditions.ts index 625c387ff..0a0fa544c 100644 --- a/src/server/routes/contract/extensions/erc20/write/setClaimConditions.ts +++ b/src/server/routes/contract/extensions/erc20/write/set-claim-conditions.ts @@ -6,14 +6,14 @@ import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { claimConditionInputSchema, type sanitizedClaimConditionInputSchema, -} from "../../../../../schemas/claimConditions"; +} from "../../../../../schemas/claim-conditions"; import { contractParamSchema, requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; import { isUnixEpochTimestamp } from "../../../../../utils/validator"; diff --git a/src/server/routes/contract/extensions/erc20/write/signatureMint.ts b/src/server/routes/contract/extensions/erc20/write/signature-mint.ts similarity index 97% rename from src/server/routes/contract/extensions/erc20/write/signatureMint.ts rename to src/server/routes/contract/extensions/erc20/write/signature-mint.ts index 07f544103..742ba25f7 100644 --- a/src/server/routes/contract/extensions/erc20/write/signatureMint.ts +++ b/src/server/routes/contract/extensions/erc20/write/signature-mint.ts @@ -11,8 +11,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/erc20/write/transferFrom.ts b/src/server/routes/contract/extensions/erc20/write/transfer-from.ts similarity index 98% rename from src/server/routes/contract/extensions/erc20/write/transferFrom.ts rename to src/server/routes/contract/extensions/erc20/write/transfer-from.ts index 071edddfc..5751b264a 100644 --- a/src/server/routes/contract/extensions/erc20/write/transferFrom.ts +++ b/src/server/routes/contract/extensions/erc20/write/transfer-from.ts @@ -14,8 +14,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/erc20/write/transfer.ts b/src/server/routes/contract/extensions/erc20/write/transfer.ts index 807f0c43d..2218f1193 100644 --- a/src/server/routes/contract/extensions/erc20/write/transfer.ts +++ b/src/server/routes/contract/extensions/erc20/write/transfer.ts @@ -14,8 +14,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/erc20/write/updateClaimConditions.ts b/src/server/routes/contract/extensions/erc20/write/update-claim-conditions.ts similarity index 97% rename from src/server/routes/contract/extensions/erc20/write/updateClaimConditions.ts rename to src/server/routes/contract/extensions/erc20/write/update-claim-conditions.ts index 9ee27d424..1e78c9387 100644 --- a/src/server/routes/contract/extensions/erc20/write/updateClaimConditions.ts +++ b/src/server/routes/contract/extensions/erc20/write/update-claim-conditions.ts @@ -6,14 +6,14 @@ import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { claimConditionInputSchema, type sanitizedClaimConditionInputSchema, -} from "../../../../../schemas/claimConditions"; +} from "../../../../../schemas/claim-conditions"; import { contractParamSchema, requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; import { isUnixEpochTimestamp } from "../../../../../utils/validator"; diff --git a/src/server/routes/contract/extensions/erc721/index.ts b/src/server/routes/contract/extensions/erc721/index.ts index 812c045c9..3b8d75107 100644 --- a/src/server/routes/contract/extensions/erc721/index.ts +++ b/src/server/routes/contract/extensions/erc721/index.ts @@ -1,32 +1,32 @@ import type { FastifyInstance } from "fastify"; -import { erc721BalanceOf } from "./read/balanceOf"; -import { erc721CanClaim } from "./read/canClaim"; +import { erc721BalanceOf } from "./read/balance-of"; +import { erc721CanClaim } from "./read/can-claim"; import { erc721Get } from "./read/get"; -import { erc721GetActiveClaimConditions } from "./read/getActiveClaimConditions"; -import { erc721GetAll } from "./read/getAll"; -import { erc721GetAllClaimConditions } from "./read/getAllClaimConditions"; -import { erc721GetClaimIneligibilityReasons } from "./read/getClaimIneligibilityReasons"; -import { erc721GetClaimerProofs } from "./read/getClaimerProofs"; -import { erc721GetOwned } from "./read/getOwned"; -import { erc721IsApproved } from "./read/isApproved"; -import { erc721SignatureGenerate } from "./read/signatureGenerate"; -import { erc721SignaturePrepare } from "./read/signaturePrepare"; -import { erc721TotalClaimedSupply } from "./read/totalClaimedSupply"; -import { erc721TotalCount } from "./read/totalCount"; -import { erc721TotalUnclaimedSupply } from "./read/totalUnclaimedSupply"; +import { erc721GetActiveClaimConditions } from "./read/get-active-claim-conditions"; +import { erc721GetAll } from "./read/get-all"; +import { erc721GetAllClaimConditions } from "./read/get-all-claim-conditions"; +import { erc721GetClaimIneligibilityReasons } from "./read/get-claim-ineligibility-reasons"; +import { erc721GetClaimerProofs } from "./read/get-claimer-proofs"; +import { erc721GetOwned } from "./read/get-owned"; +import { erc721IsApproved } from "./read/is-approved"; +import { erc721SignatureGenerate } from "./read/signature-generate"; +import { erc721SignaturePrepare } from "./read/signature-prepare"; +import { erc721TotalClaimedSupply } from "./read/total-claimed-supply"; +import { erc721TotalCount } from "./read/total-count"; +import { erc721TotalUnclaimedSupply } from "./read/total-unclaimed-supply"; import { erc721burn } from "./write/burn"; -import { erc721claimTo } from "./write/claimTo"; -import { erc721lazyMint } from "./write/lazyMint"; -import { erc721mintBatchTo } from "./write/mintBatchTo"; -import { erc721mintTo } from "./write/mintTo"; -import { erc721SetApprovalForAll } from "./write/setApprovalForAll"; -import { erc721SetApprovalForToken } from "./write/setApprovalForToken"; -import { erc721SetClaimConditions } from "./write/setClaimConditions"; -import { erc721SignatureMint } from "./write/signatureMint"; +import { erc721claimTo } from "./write/claim-to"; +import { erc721lazyMint } from "./write/lazy-mint"; +import { erc721mintBatchTo } from "./write/mint-batch-to"; +import { erc721mintTo } from "./write/mint-to"; +import { erc721SetApprovalForAll } from "./write/set-approval-for-all"; +import { erc721SetApprovalForToken } from "./write/set-approval-for-token"; +import { erc721SetClaimConditions } from "./write/set-claim-conditions"; +import { erc721SignatureMint } from "./write/signature-mint"; import { erc721transfer } from "./write/transfer"; -import { erc721transferFrom } from "./write/transferFrom"; -import { erc721UpdateClaimConditions } from "./write/updateClaimConditions"; -import { erc721UpdateTokenMetadata } from "./write/updateTokenMetadata"; +import { erc721transferFrom } from "./write/transfer-from"; +import { erc721UpdateClaimConditions } from "./write/update-claim-conditions"; +import { erc721UpdateTokenMetadata } from "./write/update-token-metadata"; export const erc721Routes = async (fastify: FastifyInstance) => { // GET diff --git a/src/server/routes/contract/extensions/erc721/read/balanceOf.ts b/src/server/routes/contract/extensions/erc721/read/balance-of.ts similarity index 97% rename from src/server/routes/contract/extensions/erc721/read/balanceOf.ts rename to src/server/routes/contract/extensions/erc721/read/balance-of.ts index 690a65d8a..33333c5af 100644 --- a/src/server/routes/contract/extensions/erc721/read/balanceOf.ts +++ b/src/server/routes/contract/extensions/erc721/read/balance-of.ts @@ -6,7 +6,7 @@ import { AddressSchema } from "../../../../../schemas/address"; import { erc721ContractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUTS diff --git a/src/server/routes/contract/extensions/erc721/read/canClaim.ts b/src/server/routes/contract/extensions/erc721/read/can-claim.ts similarity index 97% rename from src/server/routes/contract/extensions/erc721/read/canClaim.ts rename to src/server/routes/contract/extensions/erc721/read/can-claim.ts index 06a4e4b8c..3ea49992c 100644 --- a/src/server/routes/contract/extensions/erc721/read/canClaim.ts +++ b/src/server/routes/contract/extensions/erc721/read/can-claim.ts @@ -5,7 +5,7 @@ import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { contractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/erc721/read/getActiveClaimConditions.ts b/src/server/routes/contract/extensions/erc721/read/get-active-claim-conditions.ts similarity index 96% rename from src/server/routes/contract/extensions/erc721/read/getActiveClaimConditions.ts rename to src/server/routes/contract/extensions/erc721/read/get-active-claim-conditions.ts index e9f331e1b..91a7879ec 100644 --- a/src/server/routes/contract/extensions/erc721/read/getActiveClaimConditions.ts +++ b/src/server/routes/contract/extensions/erc721/read/get-active-claim-conditions.ts @@ -2,11 +2,11 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { getContract } from "../../../../../../shared/utils/cache/get-contract"; -import { claimConditionOutputSchema } from "../../../../../schemas/claimConditions"; +import { claimConditionOutputSchema } from "../../../../../schemas/claim-conditions"; import { contractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/erc721/read/getAllClaimConditions.ts b/src/server/routes/contract/extensions/erc721/read/get-all-claim-conditions.ts similarity index 97% rename from src/server/routes/contract/extensions/erc721/read/getAllClaimConditions.ts rename to src/server/routes/contract/extensions/erc721/read/get-all-claim-conditions.ts index fd0678711..e0ffab452 100644 --- a/src/server/routes/contract/extensions/erc721/read/getAllClaimConditions.ts +++ b/src/server/routes/contract/extensions/erc721/read/get-all-claim-conditions.ts @@ -2,11 +2,11 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { getContract } from "../../../../../../shared/utils/cache/get-contract"; -import { claimConditionOutputSchema } from "../../../../../schemas/claimConditions"; +import { claimConditionOutputSchema } from "../../../../../schemas/claim-conditions"; import { contractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/erc721/read/getAll.ts b/src/server/routes/contract/extensions/erc721/read/get-all.ts similarity index 97% rename from src/server/routes/contract/extensions/erc721/read/getAll.ts rename to src/server/routes/contract/extensions/erc721/read/get-all.ts index 20cec27c6..d83515470 100644 --- a/src/server/routes/contract/extensions/erc721/read/getAll.ts +++ b/src/server/routes/contract/extensions/erc721/read/get-all.ts @@ -6,7 +6,7 @@ import { nftSchema } from "../../../../../schemas/nft"; import { contractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/erc721/read/getClaimIneligibilityReasons.ts b/src/server/routes/contract/extensions/erc721/read/get-claim-ineligibility-reasons.ts similarity index 97% rename from src/server/routes/contract/extensions/erc721/read/getClaimIneligibilityReasons.ts rename to src/server/routes/contract/extensions/erc721/read/get-claim-ineligibility-reasons.ts index f23ea7b9b..8c3d3efb8 100644 --- a/src/server/routes/contract/extensions/erc721/read/getClaimIneligibilityReasons.ts +++ b/src/server/routes/contract/extensions/erc721/read/get-claim-ineligibility-reasons.ts @@ -6,7 +6,7 @@ import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { contractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/erc721/read/getClaimerProofs.ts b/src/server/routes/contract/extensions/erc721/read/get-claimer-proofs.ts similarity index 96% rename from src/server/routes/contract/extensions/erc721/read/getClaimerProofs.ts rename to src/server/routes/contract/extensions/erc721/read/get-claimer-proofs.ts index 7d9f4d8cb..315a79e65 100644 --- a/src/server/routes/contract/extensions/erc721/read/getClaimerProofs.ts +++ b/src/server/routes/contract/extensions/erc721/read/get-claimer-proofs.ts @@ -3,11 +3,11 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { AddressSchema } from "../../../../../schemas/address"; -import { claimerProofSchema } from "../../../../../schemas/claimConditions"; +import { claimerProofSchema } from "../../../../../schemas/claim-conditions"; import { contractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/erc721/read/getOwned.ts b/src/server/routes/contract/extensions/erc721/read/get-owned.ts similarity index 98% rename from src/server/routes/contract/extensions/erc721/read/getOwned.ts rename to src/server/routes/contract/extensions/erc721/read/get-owned.ts index 16bc18f24..6b577e263 100644 --- a/src/server/routes/contract/extensions/erc721/read/getOwned.ts +++ b/src/server/routes/contract/extensions/erc721/read/get-owned.ts @@ -7,7 +7,7 @@ import { nftSchema } from "../../../../../schemas/nft"; import { contractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/erc721/read/get.ts b/src/server/routes/contract/extensions/erc721/read/get.ts index 993184d7d..1a58d5e7d 100644 --- a/src/server/routes/contract/extensions/erc721/read/get.ts +++ b/src/server/routes/contract/extensions/erc721/read/get.ts @@ -6,7 +6,7 @@ import { nftSchema } from "../../../../../schemas/nft"; import { contractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/erc721/read/isApproved.ts b/src/server/routes/contract/extensions/erc721/read/is-approved.ts similarity index 97% rename from src/server/routes/contract/extensions/erc721/read/isApproved.ts rename to src/server/routes/contract/extensions/erc721/read/is-approved.ts index 6462ccd2f..5afcdfa36 100644 --- a/src/server/routes/contract/extensions/erc721/read/isApproved.ts +++ b/src/server/routes/contract/extensions/erc721/read/is-approved.ts @@ -5,7 +5,7 @@ import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { contractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUTS diff --git a/src/server/routes/contract/extensions/erc721/read/signatureGenerate.ts b/src/server/routes/contract/extensions/erc721/read/signature-generate.ts similarity index 98% rename from src/server/routes/contract/extensions/erc721/read/signatureGenerate.ts rename to src/server/routes/contract/extensions/erc721/read/signature-generate.ts index 1fc82b9f1..1540bb756 100644 --- a/src/server/routes/contract/extensions/erc721/read/signatureGenerate.ts +++ b/src/server/routes/contract/extensions/erc721/read/signature-generate.ts @@ -8,7 +8,7 @@ import { getContract as getContractV4 } from "../../../../../../shared/utils/cac import { getChain } from "../../../../../../shared/utils/chain"; import { maybeBigInt } from "../../../../../../shared/utils/primitive-types"; import { thirdwebClient } from "../../../../../../shared/utils/sdk"; -import { thirdwebSdkVersionSchema } from "../../../../../schemas/httpHeaders/thirdwebSdkVersion"; +import { thirdwebSdkVersionSchema } from "../../../../../schemas/http-headers/thirdweb-sdk-version"; import { signature721InputSchema, signature721OutputSchema, @@ -21,7 +21,7 @@ import { import { erc721ContractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; import { checkAndReturnNFTSignaturePayload } from "../../../../../utils/validator"; diff --git a/src/server/routes/contract/extensions/erc721/read/signaturePrepare.ts b/src/server/routes/contract/extensions/erc721/read/signature-prepare.ts similarity index 99% rename from src/server/routes/contract/extensions/erc721/read/signaturePrepare.ts rename to src/server/routes/contract/extensions/erc721/read/signature-prepare.ts index 5cb0d632f..6cde4c604 100644 --- a/src/server/routes/contract/extensions/erc721/read/signaturePrepare.ts +++ b/src/server/routes/contract/extensions/erc721/read/signature-prepare.ts @@ -28,7 +28,7 @@ import { import { erc721ContractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; const requestSchema = erc721ContractParamSchema; diff --git a/src/server/routes/contract/extensions/erc721/read/totalClaimedSupply.ts b/src/server/routes/contract/extensions/erc721/read/total-claimed-supply.ts similarity index 96% rename from src/server/routes/contract/extensions/erc721/read/totalClaimedSupply.ts rename to src/server/routes/contract/extensions/erc721/read/total-claimed-supply.ts index 03a62fcd1..720fcc5e3 100644 --- a/src/server/routes/contract/extensions/erc721/read/totalClaimedSupply.ts +++ b/src/server/routes/contract/extensions/erc721/read/total-claimed-supply.ts @@ -5,7 +5,7 @@ import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { contractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/erc721/read/totalCount.ts b/src/server/routes/contract/extensions/erc721/read/total-count.ts similarity index 96% rename from src/server/routes/contract/extensions/erc721/read/totalCount.ts rename to src/server/routes/contract/extensions/erc721/read/total-count.ts index 7c5bd1b3b..2c4f0a6a0 100644 --- a/src/server/routes/contract/extensions/erc721/read/totalCount.ts +++ b/src/server/routes/contract/extensions/erc721/read/total-count.ts @@ -5,7 +5,7 @@ import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { contractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/erc721/read/totalUnclaimedSupply.ts b/src/server/routes/contract/extensions/erc721/read/total-unclaimed-supply.ts similarity index 96% rename from src/server/routes/contract/extensions/erc721/read/totalUnclaimedSupply.ts rename to src/server/routes/contract/extensions/erc721/read/total-unclaimed-supply.ts index 6c914d841..d4fec394c 100644 --- a/src/server/routes/contract/extensions/erc721/read/totalUnclaimedSupply.ts +++ b/src/server/routes/contract/extensions/erc721/read/total-unclaimed-supply.ts @@ -5,7 +5,7 @@ import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { contractParamSchema, standardResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; +} from "../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/erc721/write/burn.ts b/src/server/routes/contract/extensions/erc721/write/burn.ts index 10d9f4a57..4d0ec40f2 100644 --- a/src/server/routes/contract/extensions/erc721/write/burn.ts +++ b/src/server/routes/contract/extensions/erc721/write/burn.ts @@ -8,8 +8,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/erc721/write/claimTo.ts b/src/server/routes/contract/extensions/erc721/write/claim-to.ts similarity index 98% rename from src/server/routes/contract/extensions/erc721/write/claimTo.ts rename to src/server/routes/contract/extensions/erc721/write/claim-to.ts index fdb553dea..58e257191 100644 --- a/src/server/routes/contract/extensions/erc721/write/claimTo.ts +++ b/src/server/routes/contract/extensions/erc721/write/claim-to.ts @@ -11,8 +11,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { maybeAddress, requiredAddress, diff --git a/src/server/routes/contract/extensions/erc721/write/lazyMint.ts b/src/server/routes/contract/extensions/erc721/write/lazy-mint.ts similarity index 97% rename from src/server/routes/contract/extensions/erc721/write/lazyMint.ts rename to src/server/routes/contract/extensions/erc721/write/lazy-mint.ts index ac6283318..ad103c268 100644 --- a/src/server/routes/contract/extensions/erc721/write/lazyMint.ts +++ b/src/server/routes/contract/extensions/erc721/write/lazy-mint.ts @@ -9,8 +9,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/erc721/write/mintBatchTo.ts b/src/server/routes/contract/extensions/erc721/write/mint-batch-to.ts similarity index 97% rename from src/server/routes/contract/extensions/erc721/write/mintBatchTo.ts rename to src/server/routes/contract/extensions/erc721/write/mint-batch-to.ts index 9f29db2ab..49c1c5bec 100644 --- a/src/server/routes/contract/extensions/erc721/write/mintBatchTo.ts +++ b/src/server/routes/contract/extensions/erc721/write/mint-batch-to.ts @@ -10,8 +10,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/erc721/write/mintTo.ts b/src/server/routes/contract/extensions/erc721/write/mint-to.ts similarity index 98% rename from src/server/routes/contract/extensions/erc721/write/mintTo.ts rename to src/server/routes/contract/extensions/erc721/write/mint-to.ts index 5ffb25a49..ac71f4315 100644 --- a/src/server/routes/contract/extensions/erc721/write/mintTo.ts +++ b/src/server/routes/contract/extensions/erc721/write/mint-to.ts @@ -14,8 +14,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { maybeAddress, requiredAddress, diff --git a/src/server/routes/contract/extensions/erc721/write/setApprovalForAll.ts b/src/server/routes/contract/extensions/erc721/write/set-approval-for-all.ts similarity index 97% rename from src/server/routes/contract/extensions/erc721/write/setApprovalForAll.ts rename to src/server/routes/contract/extensions/erc721/write/set-approval-for-all.ts index 08fc2cd68..7674f7dc0 100644 --- a/src/server/routes/contract/extensions/erc721/write/setApprovalForAll.ts +++ b/src/server/routes/contract/extensions/erc721/write/set-approval-for-all.ts @@ -8,8 +8,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/erc721/write/setApprovalForToken.ts b/src/server/routes/contract/extensions/erc721/write/set-approval-for-token.ts similarity index 97% rename from src/server/routes/contract/extensions/erc721/write/setApprovalForToken.ts rename to src/server/routes/contract/extensions/erc721/write/set-approval-for-token.ts index 701d6dcb1..7b12719f2 100644 --- a/src/server/routes/contract/extensions/erc721/write/setApprovalForToken.ts +++ b/src/server/routes/contract/extensions/erc721/write/set-approval-for-token.ts @@ -8,8 +8,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/erc721/write/setClaimConditions.ts b/src/server/routes/contract/extensions/erc721/write/set-claim-conditions.ts similarity index 96% rename from src/server/routes/contract/extensions/erc721/write/setClaimConditions.ts rename to src/server/routes/contract/extensions/erc721/write/set-claim-conditions.ts index cae13f65f..4060fe9e7 100644 --- a/src/server/routes/contract/extensions/erc721/write/setClaimConditions.ts +++ b/src/server/routes/contract/extensions/erc721/write/set-claim-conditions.ts @@ -6,14 +6,14 @@ import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { claimConditionInputSchema, type sanitizedClaimConditionInputSchema, -} from "../../../../../schemas/claimConditions"; +} from "../../../../../schemas/claim-conditions"; import { contractParamSchema, requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; import { isUnixEpochTimestamp } from "../../../../../utils/validator"; diff --git a/src/server/routes/contract/extensions/erc721/write/signatureMint.ts b/src/server/routes/contract/extensions/erc721/write/signature-mint.ts similarity index 98% rename from src/server/routes/contract/extensions/erc721/write/signatureMint.ts rename to src/server/routes/contract/extensions/erc721/write/signature-mint.ts index 173b9208b..7dcf26dd3 100644 --- a/src/server/routes/contract/extensions/erc721/write/signatureMint.ts +++ b/src/server/routes/contract/extensions/erc721/write/signature-mint.ts @@ -10,7 +10,7 @@ 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 type { thirdwebSdkVersionSchema } from "../../../../../schemas/http-headers/thirdweb-sdk-version"; import { signature721OutputSchema } from "../../../../../schemas/nft"; import { signature721OutputSchemaV5 } from "../../../../../schemas/nft/v5"; import { @@ -18,11 +18,11 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; -import { parseTransactionOverrides } from "../../../../../utils/transactionOverrides"; +import { parseTransactionOverrides } from "../../../../../utils/transaction-overrides"; // INPUTS const requestSchema = contractParamSchema; diff --git a/src/server/routes/contract/extensions/erc721/write/transferFrom.ts b/src/server/routes/contract/extensions/erc721/write/transfer-from.ts similarity index 98% rename from src/server/routes/contract/extensions/erc721/write/transferFrom.ts rename to src/server/routes/contract/extensions/erc721/write/transfer-from.ts index 8a6b87038..bf52718be 100644 --- a/src/server/routes/contract/extensions/erc721/write/transferFrom.ts +++ b/src/server/routes/contract/extensions/erc721/write/transfer-from.ts @@ -14,8 +14,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/erc721/write/transfer.ts b/src/server/routes/contract/extensions/erc721/write/transfer.ts index edbeb4243..4b450ed33 100644 --- a/src/server/routes/contract/extensions/erc721/write/transfer.ts +++ b/src/server/routes/contract/extensions/erc721/write/transfer.ts @@ -14,8 +14,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/erc721/write/updateClaimConditions.ts b/src/server/routes/contract/extensions/erc721/write/update-claim-conditions.ts similarity index 97% rename from src/server/routes/contract/extensions/erc721/write/updateClaimConditions.ts rename to src/server/routes/contract/extensions/erc721/write/update-claim-conditions.ts index 4e32ebe1b..311d3d839 100644 --- a/src/server/routes/contract/extensions/erc721/write/updateClaimConditions.ts +++ b/src/server/routes/contract/extensions/erc721/write/update-claim-conditions.ts @@ -6,14 +6,14 @@ import { getContract } from "../../../../../../shared/utils/cache/get-contract"; import { claimConditionInputSchema, type sanitizedClaimConditionInputSchema, -} from "../../../../../schemas/claimConditions"; +} from "../../../../../schemas/claim-conditions"; import { contractParamSchema, requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; import { isUnixEpochTimestamp } from "../../../../../utils/validator"; diff --git a/src/server/routes/contract/extensions/erc721/write/updateTokenMetadata.ts b/src/server/routes/contract/extensions/erc721/write/update-token-metadata.ts similarity index 97% rename from src/server/routes/contract/extensions/erc721/write/updateTokenMetadata.ts rename to src/server/routes/contract/extensions/erc721/write/update-token-metadata.ts index 08a14d3ca..8818f5489 100644 --- a/src/server/routes/contract/extensions/erc721/write/updateTokenMetadata.ts +++ b/src/server/routes/contract/extensions/erc721/write/update-token-metadata.ts @@ -9,8 +9,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../schemas/txOverrides"; +} from "../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/marketplaceV3/directListings/read/getAllValid.ts b/src/server/routes/contract/extensions/marketplace-v3/direct-listings/read/get-all-valid.ts similarity index 96% rename from src/server/routes/contract/extensions/marketplaceV3/directListings/read/getAllValid.ts rename to src/server/routes/contract/extensions/marketplace-v3/direct-listings/read/get-all-valid.ts index 3f4a0b73f..a9c0e87f1 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/directListings/read/getAllValid.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/direct-listings/read/get-all-valid.ts @@ -2,14 +2,14 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; -import { directListingV3OutputSchema } from "../../../../../../schemas/marketplaceV3/directListing"; +import { directListingV3OutputSchema } from "../../../../../../schemas/marketplace-v3/direct-listing"; import { marketplaceFilterSchema, marketplaceV3ContractParamSchema, standardResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; +} from "../../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../../utils/chain"; -import { formatDirectListingV3Result } from "../../../../../../utils/marketplaceV3"; +import { formatDirectListingV3Result } from "../../../../../../utils/marketplace-v3"; // INPUT const requestSchema = marketplaceV3ContractParamSchema; diff --git a/src/server/routes/contract/extensions/marketplaceV3/directListings/read/getAll.ts b/src/server/routes/contract/extensions/marketplace-v3/direct-listings/read/get-all.ts similarity index 96% rename from src/server/routes/contract/extensions/marketplaceV3/directListings/read/getAll.ts rename to src/server/routes/contract/extensions/marketplace-v3/direct-listings/read/get-all.ts index c78203a7e..098a1c0b1 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/directListings/read/getAll.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/direct-listings/read/get-all.ts @@ -2,14 +2,14 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; -import { directListingV3OutputSchema } from "../../../../../../schemas/marketplaceV3/directListing"; +import { directListingV3OutputSchema } from "../../../../../../schemas/marketplace-v3/direct-listing"; import { marketplaceFilterSchema, marketplaceV3ContractParamSchema, standardResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; +} from "../../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../../utils/chain"; -import { formatDirectListingV3Result } from "../../../../../../utils/marketplaceV3"; +import { formatDirectListingV3Result } from "../../../../../../utils/marketplace-v3"; // INPUT const requestSchema = marketplaceV3ContractParamSchema; diff --git a/src/server/routes/contract/extensions/marketplaceV3/directListings/read/getListing.ts b/src/server/routes/contract/extensions/marketplace-v3/direct-listings/read/get-listing.ts similarity index 95% rename from src/server/routes/contract/extensions/marketplaceV3/directListings/read/getListing.ts rename to src/server/routes/contract/extensions/marketplace-v3/direct-listings/read/get-listing.ts index f7edbf985..dcf842531 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/directListings/read/getListing.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/direct-listings/read/get-listing.ts @@ -2,13 +2,13 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; -import { directListingV3OutputSchema } from "../../../../../../schemas/marketplaceV3/directListing"; +import { directListingV3OutputSchema } from "../../../../../../schemas/marketplace-v3/direct-listing"; import { marketplaceV3ContractParamSchema, standardResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; +} from "../../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../../utils/chain"; -import { formatDirectListingV3Result } from "../../../../../../utils/marketplaceV3"; +import { formatDirectListingV3Result } from "../../../../../../utils/marketplace-v3"; // INPUT const requestSchema = marketplaceV3ContractParamSchema; diff --git a/src/server/routes/contract/extensions/marketplaceV3/directListings/read/getTotalCount.ts b/src/server/routes/contract/extensions/marketplace-v3/direct-listings/read/get-total-count.ts similarity index 96% rename from src/server/routes/contract/extensions/marketplaceV3/directListings/read/getTotalCount.ts rename to src/server/routes/contract/extensions/marketplace-v3/direct-listings/read/get-total-count.ts index d621ea00b..3a41ecf0a 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/directListings/read/getTotalCount.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/direct-listings/read/get-total-count.ts @@ -5,7 +5,7 @@ import { getContract } from "../../../../../../../shared/utils/cache/get-contrac import { marketplaceV3ContractParamSchema, standardResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; +} from "../../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/marketplaceV3/directListings/read/isBuyerApprovedForListing.ts b/src/server/routes/contract/extensions/marketplace-v3/direct-listings/read/is-buyer-approved-for-listing.ts similarity index 97% rename from src/server/routes/contract/extensions/marketplaceV3/directListings/read/isBuyerApprovedForListing.ts rename to src/server/routes/contract/extensions/marketplace-v3/direct-listings/read/is-buyer-approved-for-listing.ts index 40f28cbc0..5ff4ece65 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/directListings/read/isBuyerApprovedForListing.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/direct-listings/read/is-buyer-approved-for-listing.ts @@ -6,7 +6,7 @@ import { AddressSchema } from "../../../../../../schemas/address"; import { marketplaceV3ContractParamSchema, standardResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; +} from "../../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/marketplaceV3/directListings/read/isCurrencyApprovedForListing.ts b/src/server/routes/contract/extensions/marketplace-v3/direct-listings/read/is-currency-approved-for-listing.ts similarity index 97% rename from src/server/routes/contract/extensions/marketplaceV3/directListings/read/isCurrencyApprovedForListing.ts rename to src/server/routes/contract/extensions/marketplace-v3/direct-listings/read/is-currency-approved-for-listing.ts index 00434d4b0..b6decb98e 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/directListings/read/isCurrencyApprovedForListing.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/direct-listings/read/is-currency-approved-for-listing.ts @@ -6,7 +6,7 @@ import { AddressSchema } from "../../../../../../schemas/address"; import { marketplaceV3ContractParamSchema, standardResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; +} from "../../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/marketplaceV3/directListings/write/approveBuyerForReservedListing.ts b/src/server/routes/contract/extensions/marketplace-v3/direct-listings/write/approve-buyer-for-reserved-listing.ts similarity index 97% rename from src/server/routes/contract/extensions/marketplaceV3/directListings/write/approveBuyerForReservedListing.ts rename to src/server/routes/contract/extensions/marketplace-v3/direct-listings/write/approve-buyer-for-reserved-listing.ts index 8b4c731bc..516f80d2f 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/directListings/write/approveBuyerForReservedListing.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/direct-listings/write/approve-buyer-for-reserved-listing.ts @@ -8,8 +8,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../../schemas/txOverrides"; +} from "../../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/marketplaceV3/directListings/write/buyFromListing.ts b/src/server/routes/contract/extensions/marketplace-v3/direct-listings/write/buy-from-listing.ts similarity index 97% rename from src/server/routes/contract/extensions/marketplaceV3/directListings/write/buyFromListing.ts rename to src/server/routes/contract/extensions/marketplace-v3/direct-listings/write/buy-from-listing.ts index b7f98a988..2fdbd5fde 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/directListings/write/buyFromListing.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/direct-listings/write/buy-from-listing.ts @@ -8,8 +8,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../../schemas/txOverrides"; +} from "../../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/marketplaceV3/directListings/write/cancelListing.ts b/src/server/routes/contract/extensions/marketplace-v3/direct-listings/write/cancel-listing.ts similarity index 97% rename from src/server/routes/contract/extensions/marketplaceV3/directListings/write/cancelListing.ts rename to src/server/routes/contract/extensions/marketplace-v3/direct-listings/write/cancel-listing.ts index c1f79318a..1a713919c 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/directListings/write/cancelListing.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/direct-listings/write/cancel-listing.ts @@ -8,8 +8,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../../schemas/txOverrides"; +} from "../../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/marketplaceV3/directListings/write/createListing.ts b/src/server/routes/contract/extensions/marketplace-v3/direct-listings/write/create-listing.ts similarity index 96% rename from src/server/routes/contract/extensions/marketplaceV3/directListings/write/createListing.ts rename to src/server/routes/contract/extensions/marketplace-v3/direct-listings/write/create-listing.ts index 8bd643da5..839614c83 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/directListings/write/createListing.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/direct-listings/write/create-listing.ts @@ -3,14 +3,14 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { queueTx } from "../../../../../../../shared/db/transactions/queue-tx"; import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; -import { directListingV3InputSchema } from "../../../../../../schemas/marketplaceV3/directListing"; +import { directListingV3InputSchema } from "../../../../../../schemas/marketplace-v3/direct-listing"; import { marketplaceV3ContractParamSchema, requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../../schemas/txOverrides"; +} from "../../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/marketplaceV3/directListings/write/revokeBuyerApprovalForReservedListing.ts b/src/server/routes/contract/extensions/marketplace-v3/direct-listings/write/revoke-buyer-approval-for-reserved-listing.ts similarity index 97% rename from src/server/routes/contract/extensions/marketplaceV3/directListings/write/revokeBuyerApprovalForReservedListing.ts rename to src/server/routes/contract/extensions/marketplace-v3/direct-listings/write/revoke-buyer-approval-for-reserved-listing.ts index fa41b010a..8441a26f6 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/directListings/write/revokeBuyerApprovalForReservedListing.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/direct-listings/write/revoke-buyer-approval-for-reserved-listing.ts @@ -9,8 +9,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../../schemas/txOverrides"; +} from "../../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/marketplaceV3/directListings/write/revokeCurrencyApprovalForListing.ts b/src/server/routes/contract/extensions/marketplace-v3/direct-listings/write/revoke-currency-approval-for-listing.ts similarity index 97% rename from src/server/routes/contract/extensions/marketplaceV3/directListings/write/revokeCurrencyApprovalForListing.ts rename to src/server/routes/contract/extensions/marketplace-v3/direct-listings/write/revoke-currency-approval-for-listing.ts index 864792849..173ae8b38 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/directListings/write/revokeCurrencyApprovalForListing.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/direct-listings/write/revoke-currency-approval-for-listing.ts @@ -9,8 +9,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../../schemas/txOverrides"; +} from "../../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/marketplaceV3/directListings/write/updateListing.ts b/src/server/routes/contract/extensions/marketplace-v3/direct-listings/write/update-listing.ts similarity index 96% rename from src/server/routes/contract/extensions/marketplaceV3/directListings/write/updateListing.ts rename to src/server/routes/contract/extensions/marketplace-v3/direct-listings/write/update-listing.ts index f7ac3e544..e58fb3ed6 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/directListings/write/updateListing.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/direct-listings/write/update-listing.ts @@ -3,14 +3,14 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { queueTx } from "../../../../../../../shared/db/transactions/queue-tx"; import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; -import { directListingV3InputSchema } from "../../../../../../schemas/marketplaceV3/directListing"; +import { directListingV3InputSchema } from "../../../../../../schemas/marketplace-v3/direct-listing"; import { marketplaceV3ContractParamSchema, requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../../schemas/txOverrides"; +} from "../../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getAllValid.ts b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/read/get-all-valid.ts similarity index 96% rename from src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getAllValid.ts rename to src/server/routes/contract/extensions/marketplace-v3/english-auctions/read/get-all-valid.ts index 3ad7cc021..1f52bacc9 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getAllValid.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/read/get-all-valid.ts @@ -2,14 +2,14 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; -import { englishAuctionOutputSchema } from "../../../../../../schemas/marketplaceV3/englishAuction"; +import { englishAuctionOutputSchema } from "../../../../../../schemas/marketplace-v3/english-auction"; import { marketplaceFilterSchema, marketplaceV3ContractParamSchema, standardResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; +} from "../../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../../utils/chain"; -import { formatEnglishAuctionResult } from "../../../../../../utils/marketplaceV3"; +import { formatEnglishAuctionResult } from "../../../../../../utils/marketplace-v3"; // INPUT const requestSchema = marketplaceV3ContractParamSchema; diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getAll.ts b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/read/get-all.ts similarity index 96% rename from src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getAll.ts rename to src/server/routes/contract/extensions/marketplace-v3/english-auctions/read/get-all.ts index ffc390271..489f8fc1c 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getAll.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/read/get-all.ts @@ -2,14 +2,14 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; -import { englishAuctionOutputSchema } from "../../../../../../schemas/marketplaceV3/englishAuction"; +import { englishAuctionOutputSchema } from "../../../../../../schemas/marketplace-v3/english-auction"; import { marketplaceFilterSchema, marketplaceV3ContractParamSchema, standardResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; +} from "../../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../../utils/chain"; -import { formatEnglishAuctionResult } from "../../../../../../utils/marketplaceV3"; +import { formatEnglishAuctionResult } from "../../../../../../utils/marketplace-v3"; // INPUT const requestSchema = marketplaceV3ContractParamSchema; diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getAuction.ts b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/read/get-auction.ts similarity index 95% rename from src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getAuction.ts rename to src/server/routes/contract/extensions/marketplace-v3/english-auctions/read/get-auction.ts index 7b905ed9a..fd8bcce4b 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getAuction.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/read/get-auction.ts @@ -2,13 +2,13 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; -import { englishAuctionOutputSchema } from "../../../../../../schemas/marketplaceV3/englishAuction"; +import { englishAuctionOutputSchema } from "../../../../../../schemas/marketplace-v3/english-auction"; import { marketplaceV3ContractParamSchema, standardResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; +} from "../../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../../utils/chain"; -import { formatEnglishAuctionResult } from "../../../../../../utils/marketplaceV3"; +import { formatEnglishAuctionResult } from "../../../../../../utils/marketplace-v3"; // INPUT const requestSchema = marketplaceV3ContractParamSchema; diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getBidBufferBps.ts b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/read/get-bid-buffer-bps.ts similarity index 97% rename from src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getBidBufferBps.ts rename to src/server/routes/contract/extensions/marketplace-v3/english-auctions/read/get-bid-buffer-bps.ts index d757ce2a9..31a67e00f 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getBidBufferBps.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/read/get-bid-buffer-bps.ts @@ -5,7 +5,7 @@ import { getContract } from "../../../../../../../shared/utils/cache/get-contrac import { marketplaceV3ContractParamSchema, standardResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; +} from "../../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getMinimumNextBid.ts b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/read/get-minimum-next-bid.ts similarity index 97% rename from src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getMinimumNextBid.ts rename to src/server/routes/contract/extensions/marketplace-v3/english-auctions/read/get-minimum-next-bid.ts index 8f4d75131..d0e572161 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getMinimumNextBid.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/read/get-minimum-next-bid.ts @@ -6,7 +6,7 @@ import { currencyValueSchema, marketplaceV3ContractParamSchema, standardResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; +} from "../../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getTotalCount.ts b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/read/get-total-count.ts similarity index 96% rename from src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getTotalCount.ts rename to src/server/routes/contract/extensions/marketplace-v3/english-auctions/read/get-total-count.ts index 6d9147582..abeadd297 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getTotalCount.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/read/get-total-count.ts @@ -5,7 +5,7 @@ import { getContract } from "../../../../../../../shared/utils/cache/get-contrac import { marketplaceV3ContractParamSchema, standardResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; +} from "../../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getWinner.ts b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/read/get-winner.ts similarity index 97% rename from src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getWinner.ts rename to src/server/routes/contract/extensions/marketplace-v3/english-auctions/read/get-winner.ts index 8d08adeb2..fbad3aa62 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getWinner.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/read/get-winner.ts @@ -5,7 +5,7 @@ import { getContract } from "../../../../../../../shared/utils/cache/get-contrac import { marketplaceV3ContractParamSchema, standardResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; +} from "../../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getWinningBid.ts b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/read/get-winning-bid.ts similarity index 96% rename from src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getWinningBid.ts rename to src/server/routes/contract/extensions/marketplace-v3/english-auctions/read/get-winning-bid.ts index 6aa71c55c..ec8ad5859 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/getWinningBid.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/read/get-winning-bid.ts @@ -2,11 +2,11 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; -import { bidSchema } from "../../../../../../schemas/marketplaceV3/englishAuction"; +import { bidSchema } from "../../../../../../schemas/marketplace-v3/english-auction"; import { marketplaceV3ContractParamSchema, standardResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; +} from "../../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/isWinningBid.ts b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/read/is-winning-bid.ts similarity index 97% rename from src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/isWinningBid.ts rename to src/server/routes/contract/extensions/marketplace-v3/english-auctions/read/is-winning-bid.ts index 91d80a481..71ffb1df5 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/read/isWinningBid.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/read/is-winning-bid.ts @@ -5,7 +5,7 @@ import { getContract } from "../../../../../../../shared/utils/cache/get-contrac import { marketplaceV3ContractParamSchema, standardResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; +} from "../../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/buyoutAuction.ts b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/write/buyout-auction.ts similarity index 97% rename from src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/buyoutAuction.ts rename to src/server/routes/contract/extensions/marketplace-v3/english-auctions/write/buyout-auction.ts index 2cd6ee1f9..f034b5d34 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/buyoutAuction.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/write/buyout-auction.ts @@ -8,7 +8,7 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; +} from "../../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/cancelAuction.ts b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/write/cancel-auction.ts similarity index 97% rename from src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/cancelAuction.ts rename to src/server/routes/contract/extensions/marketplace-v3/english-auctions/write/cancel-auction.ts index 8f80bd04a..1de125d87 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/cancelAuction.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/write/cancel-auction.ts @@ -8,7 +8,7 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; +} from "../../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/closeAuctionForBidder.ts b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/write/close-auction-for-bidder.ts similarity index 98% rename from src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/closeAuctionForBidder.ts rename to src/server/routes/contract/extensions/marketplace-v3/english-auctions/write/close-auction-for-bidder.ts index c24b9ab3d..6cadc15b4 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/closeAuctionForBidder.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/write/close-auction-for-bidder.ts @@ -8,7 +8,7 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; +} from "../../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/closeAuctionForSeller.ts b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/write/close-auction-for-seller.ts similarity index 98% rename from src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/closeAuctionForSeller.ts rename to src/server/routes/contract/extensions/marketplace-v3/english-auctions/write/close-auction-for-seller.ts index a76809151..043e7b95f 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/closeAuctionForSeller.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/write/close-auction-for-seller.ts @@ -8,7 +8,7 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; +} from "../../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/createAuction.ts b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/write/create-auction.ts similarity index 97% rename from src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/createAuction.ts rename to src/server/routes/contract/extensions/marketplace-v3/english-auctions/write/create-auction.ts index ddf67ed63..d138acd2a 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/createAuction.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/write/create-auction.ts @@ -3,13 +3,13 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { queueTx } from "../../../../../../../shared/db/transactions/queue-tx"; import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; -import { englishAuctionInputSchema } from "../../../../../../schemas/marketplaceV3/englishAuction"; +import { englishAuctionInputSchema } from "../../../../../../schemas/marketplace-v3/english-auction"; import { marketplaceV3ContractParamSchema, requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; +} from "../../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/executeSale.ts b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/write/execute-sale.ts similarity index 98% rename from src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/executeSale.ts rename to src/server/routes/contract/extensions/marketplace-v3/english-auctions/write/execute-sale.ts index 831bae33b..355241e40 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/executeSale.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/write/execute-sale.ts @@ -8,7 +8,7 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; +} from "../../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/makeBid.ts b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/write/make-bid.ts similarity index 98% rename from src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/makeBid.ts rename to src/server/routes/contract/extensions/marketplace-v3/english-auctions/write/make-bid.ts index 0f8d1aaac..a9b254b35 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/englishAuctions/write/makeBid.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/english-auctions/write/make-bid.ts @@ -8,7 +8,7 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; +} from "../../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/marketplace-v3/index.ts b/src/server/routes/contract/extensions/marketplace-v3/index.ts new file mode 100644 index 000000000..cbddf19e3 --- /dev/null +++ b/src/server/routes/contract/extensions/marketplace-v3/index.ts @@ -0,0 +1,93 @@ +import type { FastifyInstance } from "fastify"; +import { directListingsGetAll } from "./direct-listings/read/get-all"; +import { directListingsGetAllValid } from "./direct-listings/read/get-all-valid"; +import { directListingsGetListing } from "./direct-listings/read/get-listing"; +import { directListingsGetTotalCount } from "./direct-listings/read/get-total-count"; +import { directListingsIsBuyerApprovedForListing } from "./direct-listings/read/is-buyer-approved-for-listing"; +import { directListingsIsCurrencyApprovedForListing } from "./direct-listings/read/is-currency-approved-for-listing"; +import { directListingsApproveBuyerForReservedListing } from "./direct-listings/write/approve-buyer-for-reserved-listing"; +import { directListingsBuyFromListing } from "./direct-listings/write/buy-from-listing"; +import { directListingsCancelListing } from "./direct-listings/write/cancel-listing"; +import { directListingsCreateListing } from "./direct-listings/write/create-listing"; +import { directListingsRevokeBuyerApprovalForReservedListing } from "./direct-listings/write/revoke-buyer-approval-for-reserved-listing"; +import { directListingsRevokeCurrencyApprovalForListing } from "./direct-listings/write/revoke-currency-approval-for-listing"; +import { directListingsUpdateListing } from "./direct-listings/write/update-listing"; + +import { englishAuctionsGetAll } from "./english-auctions/read/get-all"; +import { englishAuctionsGetAllValid } from "./english-auctions/read/get-all-valid"; +import { englishAuctionsGetAuction } from "./english-auctions/read/get-auction"; +import { englishAuctionsGetBidBufferBps } from "./english-auctions/read/get-bid-buffer-bps"; +import { englishAuctionsGetMinimumNextBid } from "./english-auctions/read/get-minimum-next-bid"; +import { englishAuctionsGetTotalCount } from "./english-auctions/read/get-total-count"; +import { englishAuctionsGetWinningBid } from "./english-auctions/read/get-winning-bid"; +import { englishAuctionsIsWinningBid } from "./english-auctions/read/is-winning-bid"; +import { englishAuctionsBuyoutAuction } from "./english-auctions/write/buyout-auction"; +import { englishAuctionsCancelAuction } from "./english-auctions/write/cancel-auction"; +import { englishAuctionsCloseAuctionForBidder } from "./english-auctions/write/close-auction-for-bidder"; +import { englishAuctionsCloseAuctionForSeller } from "./english-auctions/write/close-auction-for-seller"; +import { englishAuctionsCreateAuction } from "./english-auctions/write/create-auction"; +import { englishAuctionsExecuteSale } from "./english-auctions/write/execute-sale"; +import { englishAuctionsMakeBid } from "./english-auctions/write/make-bid"; + +import { englishAuctionsGetWinner } from "./english-auctions/read/get-winner"; +import { offersGetAll } from "./offers/read/get-all"; +import { offersGetAllValid } from "./offers/read/get-all-valid"; +import { offersGetOffer } from "./offers/read/get-offer"; +import { offersGetTotalCount } from "./offers/read/get-total-count"; +import { offersAcceptOffer } from "./offers/write/accept-offer"; +import { offersCancelOffer } from "./offers/write/cancel-offer"; +import { offersMakeOffer } from "./offers/write/make-offer"; + +export const marketplaceV3Routes = async (fastify: FastifyInstance) => { + // READ + + // Direct Listings + await fastify.register(directListingsGetAll); + await fastify.register(directListingsGetAllValid); + await fastify.register(directListingsGetListing); + await fastify.register(directListingsIsBuyerApprovedForListing); + await fastify.register(directListingsIsCurrencyApprovedForListing); + await fastify.register(directListingsGetTotalCount); + + // English Auctions + await fastify.register(englishAuctionsGetAll); + await fastify.register(englishAuctionsGetAllValid); + await fastify.register(englishAuctionsGetAuction); + await fastify.register(englishAuctionsGetBidBufferBps); + await fastify.register(englishAuctionsGetMinimumNextBid); + await fastify.register(englishAuctionsGetWinningBid); + await fastify.register(englishAuctionsGetTotalCount); + await fastify.register(englishAuctionsIsWinningBid); + await fastify.register(englishAuctionsGetWinner); + + // Offers + await fastify.register(offersGetAll); + await fastify.register(offersGetAllValid); + await fastify.register(offersGetOffer); + await fastify.register(offersGetTotalCount); + + // WRITE + + // Direct Listings + await fastify.register(directListingsCreateListing); + await fastify.register(directListingsUpdateListing); + await fastify.register(directListingsBuyFromListing); + await fastify.register(directListingsApproveBuyerForReservedListing); + await fastify.register(directListingsRevokeBuyerApprovalForReservedListing); + await fastify.register(directListingsRevokeCurrencyApprovalForListing); + await fastify.register(directListingsCancelListing); + + // English Auctions + await fastify.register(englishAuctionsBuyoutAuction); + await fastify.register(englishAuctionsCancelAuction); + await fastify.register(englishAuctionsCreateAuction); + await fastify.register(englishAuctionsCloseAuctionForBidder); + await fastify.register(englishAuctionsCloseAuctionForSeller); + await fastify.register(englishAuctionsExecuteSale); + await fastify.register(englishAuctionsMakeBid); + + // Offers + await fastify.register(offersMakeOffer); + await fastify.register(offersCancelOffer); + await fastify.register(offersAcceptOffer); +}; diff --git a/src/server/routes/contract/extensions/marketplaceV3/offers/read/getAllValid.ts b/src/server/routes/contract/extensions/marketplace-v3/offers/read/get-all-valid.ts similarity index 97% rename from src/server/routes/contract/extensions/marketplaceV3/offers/read/getAllValid.ts rename to src/server/routes/contract/extensions/marketplace-v3/offers/read/get-all-valid.ts index 3f93ef461..ee0eafbe8 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/offers/read/getAllValid.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/offers/read/get-all-valid.ts @@ -2,14 +2,14 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; -import { OfferV3OutputSchema } from "../../../../../../schemas/marketplaceV3/offer"; +import { OfferV3OutputSchema } from "../../../../../../schemas/marketplace-v3/offer"; import { marketplaceFilterSchema, marketplaceV3ContractParamSchema, standardResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; +} from "../../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../../utils/chain"; -import { formatOffersV3Result } from "../../../../../../utils/marketplaceV3"; +import { formatOffersV3Result } from "../../../../../../utils/marketplace-v3"; // INPUT const requestSchema = marketplaceV3ContractParamSchema; diff --git a/src/server/routes/contract/extensions/marketplaceV3/offers/read/getAll.ts b/src/server/routes/contract/extensions/marketplace-v3/offers/read/get-all.ts similarity index 97% rename from src/server/routes/contract/extensions/marketplaceV3/offers/read/getAll.ts rename to src/server/routes/contract/extensions/marketplace-v3/offers/read/get-all.ts index 2e24eb416..c6fc6d0cf 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/offers/read/getAll.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/offers/read/get-all.ts @@ -2,14 +2,14 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; -import { OfferV3OutputSchema } from "../../../../../../schemas/marketplaceV3/offer"; +import { OfferV3OutputSchema } from "../../../../../../schemas/marketplace-v3/offer"; import { marketplaceFilterSchema, marketplaceV3ContractParamSchema, standardResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; +} from "../../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../../utils/chain"; -import { formatOffersV3Result } from "../../../../../../utils/marketplaceV3"; +import { formatOffersV3Result } from "../../../../../../utils/marketplace-v3"; // INPUT const requestSchema = marketplaceV3ContractParamSchema; diff --git a/src/server/routes/contract/extensions/marketplaceV3/offers/read/getOffer.ts b/src/server/routes/contract/extensions/marketplace-v3/offers/read/get-offer.ts similarity index 96% rename from src/server/routes/contract/extensions/marketplaceV3/offers/read/getOffer.ts rename to src/server/routes/contract/extensions/marketplace-v3/offers/read/get-offer.ts index ab67a3570..d1bca7099 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/offers/read/getOffer.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/offers/read/get-offer.ts @@ -2,13 +2,13 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; -import { OfferV3OutputSchema } from "../../../../../../schemas/marketplaceV3/offer"; +import { OfferV3OutputSchema } from "../../../../../../schemas/marketplace-v3/offer"; import { marketplaceV3ContractParamSchema, standardResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; +} from "../../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../../utils/chain"; -import { formatOffersV3Result } from "../../../../../../utils/marketplaceV3"; +import { formatOffersV3Result } from "../../../../../../utils/marketplace-v3"; // INPUT const requestSchema = marketplaceV3ContractParamSchema; diff --git a/src/server/routes/contract/extensions/marketplaceV3/offers/read/getTotalCount.ts b/src/server/routes/contract/extensions/marketplace-v3/offers/read/get-total-count.ts similarity index 96% rename from src/server/routes/contract/extensions/marketplaceV3/offers/read/getTotalCount.ts rename to src/server/routes/contract/extensions/marketplace-v3/offers/read/get-total-count.ts index b8dc3259a..6a2758d11 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/offers/read/getTotalCount.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/offers/read/get-total-count.ts @@ -5,7 +5,7 @@ import { getContract } from "../../../../../../../shared/utils/cache/get-contrac import { marketplaceV3ContractParamSchema, standardResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; +} from "../../../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../../../utils/chain"; // INPUT diff --git a/src/server/routes/contract/extensions/marketplaceV3/offers/write/acceptOffer.ts b/src/server/routes/contract/extensions/marketplace-v3/offers/write/accept-offer.ts similarity index 97% rename from src/server/routes/contract/extensions/marketplaceV3/offers/write/acceptOffer.ts rename to src/server/routes/contract/extensions/marketplace-v3/offers/write/accept-offer.ts index 8b5931680..7941ce97e 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/offers/write/acceptOffer.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/offers/write/accept-offer.ts @@ -8,8 +8,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../../schemas/txOverrides"; +} from "../../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/marketplaceV3/offers/write/cancelOffer.ts b/src/server/routes/contract/extensions/marketplace-v3/offers/write/cancel-offer.ts similarity index 97% rename from src/server/routes/contract/extensions/marketplaceV3/offers/write/cancelOffer.ts rename to src/server/routes/contract/extensions/marketplace-v3/offers/write/cancel-offer.ts index a663d0b3b..e8528703f 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/offers/write/cancelOffer.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/offers/write/cancel-offer.ts @@ -8,8 +8,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../../schemas/txOverrides"; +} from "../../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/marketplaceV3/offers/write/makeOffer.ts b/src/server/routes/contract/extensions/marketplace-v3/offers/write/make-offer.ts similarity index 97% rename from src/server/routes/contract/extensions/marketplaceV3/offers/write/makeOffer.ts rename to src/server/routes/contract/extensions/marketplace-v3/offers/write/make-offer.ts index 14c022b42..828b4173a 100644 --- a/src/server/routes/contract/extensions/marketplaceV3/offers/write/makeOffer.ts +++ b/src/server/routes/contract/extensions/marketplace-v3/offers/write/make-offer.ts @@ -3,14 +3,14 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { queueTx } from "../../../../../../../shared/db/transactions/queue-tx"; import { getContract } from "../../../../../../../shared/utils/cache/get-contract"; -import { OfferV3InputSchema } from "../../../../../../schemas/marketplaceV3/offer"; +import { OfferV3InputSchema } from "../../../../../../schemas/marketplace-v3/offer"; import { marketplaceV3ContractParamSchema, requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../../../schemas/txOverrides"; +} from "../../../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../../../utils/chain"; diff --git a/src/server/routes/contract/extensions/marketplaceV3/index.ts b/src/server/routes/contract/extensions/marketplaceV3/index.ts deleted file mode 100644 index aa637a707..000000000 --- a/src/server/routes/contract/extensions/marketplaceV3/index.ts +++ /dev/null @@ -1,93 +0,0 @@ -import { FastifyInstance } from "fastify"; -import { directListingsGetAll } from "./directListings/read/getAll"; -import { directListingsGetAllValid } from "./directListings/read/getAllValid"; -import { directListingsGetListing } from "./directListings/read/getListing"; -import { directListingsGetTotalCount } from "./directListings/read/getTotalCount"; -import { directListingsIsBuyerApprovedForListing } from "./directListings/read/isBuyerApprovedForListing"; -import { directListingsIsCurrencyApprovedForListing } from "./directListings/read/isCurrencyApprovedForListing"; -import { directListingsApproveBuyerForReservedListing } from "./directListings/write/approveBuyerForReservedListing"; -import { directListingsBuyFromListing } from "./directListings/write/buyFromListing"; -import { directListingsCancelListing } from "./directListings/write/cancelListing"; -import { directListingsCreateListing } from "./directListings/write/createListing"; -import { directListingsRevokeBuyerApprovalForReservedListing } from "./directListings/write/revokeBuyerApprovalForReservedListing"; -import { directListingsRevokeCurrencyApprovalForListing } from "./directListings/write/revokeCurrencyApprovalForListing"; -import { directListingsUpdateListing } from "./directListings/write/updateListing"; - -import { englishAuctionsGetAll } from "./englishAuctions/read/getAll"; -import { englishAuctionsGetAllValid } from "./englishAuctions/read/getAllValid"; -import { englishAuctionsGetAuction } from "./englishAuctions/read/getAuction"; -import { englishAuctionsGetBidBufferBps } from "./englishAuctions/read/getBidBufferBps"; -import { englishAuctionsGetMinimumNextBid } from "./englishAuctions/read/getMinimumNextBid"; -import { englishAuctionsGetTotalCount } from "./englishAuctions/read/getTotalCount"; -import { englishAuctionsGetWinningBid } from "./englishAuctions/read/getWinningBid"; -import { englishAuctionsIsWinningBid } from "./englishAuctions/read/isWinningBid"; -import { englishAuctionsBuyoutAuction } from "./englishAuctions/write/buyoutAuction"; -import { englishAuctionsCancelAuction } from "./englishAuctions/write/cancelAuction"; -import { englishAuctionsCloseAuctionForBidder } from "./englishAuctions/write/closeAuctionForBidder"; -import { englishAuctionsCloseAuctionForSeller } from "./englishAuctions/write/closeAuctionForSeller"; -import { englishAuctionsCreateAuction } from "./englishAuctions/write/createAuction"; -import { englishAuctionsExecuteSale } from "./englishAuctions/write/executeSale"; -import { englishAuctionsMakeBid } from "./englishAuctions/write/makeBid"; - -import { englishAuctionsGetWinner } from "./englishAuctions/read/getWinner"; -import { offersGetAll } from "./offers/read/getAll"; -import { offersGetAllValid } from "./offers/read/getAllValid"; -import { offersGetOffer } from "./offers/read/getOffer"; -import { offersGetTotalCount } from "./offers/read/getTotalCount"; -import { offersAcceptOffer } from "./offers/write/acceptOffer"; -import { offersCancelOffer } from "./offers/write/cancelOffer"; -import { offersMakeOffer } from "./offers/write/makeOffer"; - -export const marketplaceV3Routes = async (fastify: FastifyInstance) => { - // READ - - // Direct Listings - await fastify.register(directListingsGetAll); - await fastify.register(directListingsGetAllValid); - await fastify.register(directListingsGetListing); - await fastify.register(directListingsIsBuyerApprovedForListing); - await fastify.register(directListingsIsCurrencyApprovedForListing); - await fastify.register(directListingsGetTotalCount); - - // English Auctions - await fastify.register(englishAuctionsGetAll); - await fastify.register(englishAuctionsGetAllValid); - await fastify.register(englishAuctionsGetAuction); - await fastify.register(englishAuctionsGetBidBufferBps); - await fastify.register(englishAuctionsGetMinimumNextBid); - await fastify.register(englishAuctionsGetWinningBid); - await fastify.register(englishAuctionsGetTotalCount); - await fastify.register(englishAuctionsIsWinningBid); - await fastify.register(englishAuctionsGetWinner); - - // Offers - await fastify.register(offersGetAll); - await fastify.register(offersGetAllValid); - await fastify.register(offersGetOffer); - await fastify.register(offersGetTotalCount); - - // WRITE - - // Direct Listings - await fastify.register(directListingsCreateListing); - await fastify.register(directListingsUpdateListing); - await fastify.register(directListingsBuyFromListing); - await fastify.register(directListingsApproveBuyerForReservedListing); - await fastify.register(directListingsRevokeBuyerApprovalForReservedListing); - await fastify.register(directListingsRevokeCurrencyApprovalForListing); - await fastify.register(directListingsCancelListing); - - // English Auctions - await fastify.register(englishAuctionsBuyoutAuction); - await fastify.register(englishAuctionsCancelAuction); - await fastify.register(englishAuctionsCreateAuction); - await fastify.register(englishAuctionsCloseAuctionForBidder); - await fastify.register(englishAuctionsCloseAuctionForSeller); - await fastify.register(englishAuctionsExecuteSale); - await fastify.register(englishAuctionsMakeBid); - - // Offers - await fastify.register(offersMakeOffer); - await fastify.register(offersCancelOffer); - await fastify.register(offersAcceptOffer); -}; diff --git a/src/server/routes/contract/metadata/abi.ts b/src/server/routes/contract/metadata/abi.ts index ae16a2d0e..1a89be573 100644 --- a/src/server/routes/contract/metadata/abi.ts +++ b/src/server/routes/contract/metadata/abi.ts @@ -6,7 +6,7 @@ import { abiSchema } from "../../../schemas/contract"; import { contractParamSchema, standardResponseSchema, -} from "../../../schemas/sharedApiSchemas"; +} from "../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../utils/chain"; const requestSchema = contractParamSchema; diff --git a/src/server/routes/contract/metadata/events.ts b/src/server/routes/contract/metadata/events.ts index aa5f5db05..65183b070 100644 --- a/src/server/routes/contract/metadata/events.ts +++ b/src/server/routes/contract/metadata/events.ts @@ -6,7 +6,7 @@ import { abiEventSchema } from "../../../schemas/contract"; import { contractParamSchema, standardResponseSchema, -} from "../../../schemas/sharedApiSchemas"; +} from "../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../utils/chain"; const requestSchema = contractParamSchema; diff --git a/src/server/routes/contract/metadata/extensions.ts b/src/server/routes/contract/metadata/extensions.ts index 54fcfe539..91937dd74 100644 --- a/src/server/routes/contract/metadata/extensions.ts +++ b/src/server/routes/contract/metadata/extensions.ts @@ -6,7 +6,7 @@ import { getContract } from "../../../../shared/utils/cache/get-contract"; import { contractParamSchema, standardResponseSchema, -} from "../../../schemas/sharedApiSchemas"; +} from "../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../utils/chain"; const requestSchema = contractParamSchema; diff --git a/src/server/routes/contract/metadata/functions.ts b/src/server/routes/contract/metadata/functions.ts index 2c037b2b7..59dd6356a 100644 --- a/src/server/routes/contract/metadata/functions.ts +++ b/src/server/routes/contract/metadata/functions.ts @@ -6,7 +6,7 @@ import { abiFunctionSchema } from "../../../schemas/contract"; import { contractParamSchema, standardResponseSchema, -} from "../../../schemas/sharedApiSchemas"; +} from "../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../utils/chain"; const requestSchema = contractParamSchema; diff --git a/src/server/routes/contract/read/read.ts b/src/server/routes/contract/read/read.ts index d2a58e2ad..c84610df8 100644 --- a/src/server/routes/contract/read/read.ts +++ b/src/server/routes/contract/read/read.ts @@ -11,7 +11,7 @@ import { import { partialRouteSchema, standardResponseSchema, -} from "../../../schemas/sharedApiSchemas"; +} from "../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../utils/chain"; import { bigNumberReplacer } from "../../../utils/convertor"; diff --git a/src/server/routes/contract/roles/read/getAll.ts b/src/server/routes/contract/roles/read/get-all.ts similarity index 97% rename from src/server/routes/contract/roles/read/getAll.ts rename to src/server/routes/contract/roles/read/get-all.ts index 54b688b86..feb579acb 100644 --- a/src/server/routes/contract/roles/read/getAll.ts +++ b/src/server/routes/contract/roles/read/get-all.ts @@ -6,7 +6,7 @@ import { rolesResponseSchema } from "../../../../schemas/contract"; import { contractParamSchema, standardResponseSchema, -} from "../../../../schemas/sharedApiSchemas"; +} from "../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../utils/chain"; const requestSchema = contractParamSchema; diff --git a/src/server/routes/contract/roles/read/get.ts b/src/server/routes/contract/roles/read/get.ts index 7e0edcb5f..398686032 100644 --- a/src/server/routes/contract/roles/read/get.ts +++ b/src/server/routes/contract/roles/read/get.ts @@ -5,7 +5,7 @@ import { getContract } from "../../../../../shared/utils/cache/get-contract"; import { contractParamSchema, standardResponseSchema, -} from "../../../../schemas/sharedApiSchemas"; +} from "../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../utils/chain"; const requestSchema = contractParamSchema; diff --git a/src/server/routes/contract/roles/write/grant.ts b/src/server/routes/contract/roles/write/grant.ts index d453d6f83..9735ffc8b 100644 --- a/src/server/routes/contract/roles/write/grant.ts +++ b/src/server/routes/contract/roles/write/grant.ts @@ -9,8 +9,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../schemas/txOverrides"; +} from "../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../utils/chain"; diff --git a/src/server/routes/contract/roles/write/revoke.ts b/src/server/routes/contract/roles/write/revoke.ts index 908a1b7d5..b9dd3fa47 100644 --- a/src/server/routes/contract/roles/write/revoke.ts +++ b/src/server/routes/contract/roles/write/revoke.ts @@ -9,8 +9,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../schemas/txOverrides"; +} from "../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../utils/chain"; diff --git a/src/server/routes/contract/royalties/read/getDefaultRoyaltyInfo.ts b/src/server/routes/contract/royalties/read/get-default-royalty-info.ts similarity index 97% rename from src/server/routes/contract/royalties/read/getDefaultRoyaltyInfo.ts rename to src/server/routes/contract/royalties/read/get-default-royalty-info.ts index 1aac3f328..1bdcd69d8 100644 --- a/src/server/routes/contract/royalties/read/getDefaultRoyaltyInfo.ts +++ b/src/server/routes/contract/royalties/read/get-default-royalty-info.ts @@ -6,7 +6,7 @@ import { royaltySchema } from "../../../../schemas/contract"; import { contractParamSchema, standardResponseSchema, -} from "../../../../schemas/sharedApiSchemas"; +} from "../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../utils/chain"; const requestSchema = contractParamSchema; diff --git a/src/server/routes/contract/royalties/read/getTokenRoyaltyInfo.ts b/src/server/routes/contract/royalties/read/get-token-royalty-info.ts similarity index 97% rename from src/server/routes/contract/royalties/read/getTokenRoyaltyInfo.ts rename to src/server/routes/contract/royalties/read/get-token-royalty-info.ts index 4497ed123..33f23cae0 100644 --- a/src/server/routes/contract/royalties/read/getTokenRoyaltyInfo.ts +++ b/src/server/routes/contract/royalties/read/get-token-royalty-info.ts @@ -6,7 +6,7 @@ import { royaltySchema } from "../../../../schemas/contract"; import { contractParamSchema, standardResponseSchema, -} from "../../../../schemas/sharedApiSchemas"; +} from "../../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../../utils/chain"; const requestSchema = Type.Object({ diff --git a/src/server/routes/contract/royalties/write/setDefaultRoyaltyInfo.ts b/src/server/routes/contract/royalties/write/set-default-royalty-info.ts similarity index 97% rename from src/server/routes/contract/royalties/write/setDefaultRoyaltyInfo.ts rename to src/server/routes/contract/royalties/write/set-default-royalty-info.ts index 37b670021..44d80ca7c 100644 --- a/src/server/routes/contract/royalties/write/setDefaultRoyaltyInfo.ts +++ b/src/server/routes/contract/royalties/write/set-default-royalty-info.ts @@ -9,8 +9,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../schemas/txOverrides"; +} from "../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../utils/chain"; diff --git a/src/server/routes/contract/royalties/write/setTokenRoyaltyInfo.ts b/src/server/routes/contract/royalties/write/set-token-royalty-info.ts similarity index 98% rename from src/server/routes/contract/royalties/write/setTokenRoyaltyInfo.ts rename to src/server/routes/contract/royalties/write/set-token-royalty-info.ts index c7f3c7d6b..df1d2b0a3 100644 --- a/src/server/routes/contract/royalties/write/setTokenRoyaltyInfo.ts +++ b/src/server/routes/contract/royalties/write/set-token-royalty-info.ts @@ -9,8 +9,8 @@ import { requestQuerystringSchema, standardResponseSchema, transactionWritesResponseSchema, -} from "../../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../../schemas/txOverrides"; +} from "../../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../../schemas/wallet"; import { getChainIdFromChain } from "../../../../utils/chain"; diff --git a/src/server/routes/contract/subscriptions/addContractSubscription.ts b/src/server/routes/contract/subscriptions/add-contract-subscription.ts similarity index 97% rename from src/server/routes/contract/subscriptions/addContractSubscription.ts rename to src/server/routes/contract/subscriptions/add-contract-subscription.ts index 7807b1731..c890b2479 100644 --- a/src/server/routes/contract/subscriptions/addContractSubscription.ts +++ b/src/server/routes/contract/subscriptions/add-contract-subscription.ts @@ -17,8 +17,8 @@ import { chainIdOrSlugSchema } from "../../../schemas/chain"; import { contractSubscriptionSchema, toContractSubscriptionSchema, -} from "../../../schemas/contractSubscription"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +} from "../../../schemas/contract-subscription"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../utils/chain"; import { isValidWebhookUrl } from "../../../utils/validator"; diff --git a/src/server/routes/contract/subscriptions/getContractIndexedBlockRange.ts b/src/server/routes/contract/subscriptions/get-contract-indexed-block-range.ts similarity index 98% rename from src/server/routes/contract/subscriptions/getContractIndexedBlockRange.ts rename to src/server/routes/contract/subscriptions/get-contract-indexed-block-range.ts index 1d72bd12b..770b89a5e 100644 --- a/src/server/routes/contract/subscriptions/getContractIndexedBlockRange.ts +++ b/src/server/routes/contract/subscriptions/get-contract-indexed-block-range.ts @@ -8,7 +8,7 @@ import { chainIdOrSlugSchema } from "../../../schemas/chain"; import { contractParamSchema, standardResponseSchema, -} from "../../../schemas/sharedApiSchemas"; +} from "../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../utils/chain"; const responseSchema = Type.Object({ diff --git a/src/server/routes/contract/subscriptions/getContractSubscriptions.ts b/src/server/routes/contract/subscriptions/get-contract-subscriptions.ts similarity index 91% rename from src/server/routes/contract/subscriptions/getContractSubscriptions.ts rename to src/server/routes/contract/subscriptions/get-contract-subscriptions.ts index e825b437d..562097770 100644 --- a/src/server/routes/contract/subscriptions/getContractSubscriptions.ts +++ b/src/server/routes/contract/subscriptions/get-contract-subscriptions.ts @@ -5,8 +5,8 @@ import { getAllContractSubscriptions } from "../../../../shared/db/contract-subs import { contractSubscriptionSchema, toContractSubscriptionSchema, -} from "../../../schemas/contractSubscription"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +} from "../../../schemas/contract-subscription"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; const responseSchema = Type.Object({ result: Type.Array(contractSubscriptionSchema), diff --git a/src/server/routes/contract/subscriptions/getLatestBlock.ts b/src/server/routes/contract/subscriptions/get-latest-block.ts similarity index 95% rename from src/server/routes/contract/subscriptions/getLatestBlock.ts rename to src/server/routes/contract/subscriptions/get-latest-block.ts index 38f308b2b..3bfb99024 100644 --- a/src/server/routes/contract/subscriptions/getLatestBlock.ts +++ b/src/server/routes/contract/subscriptions/get-latest-block.ts @@ -3,7 +3,7 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { getLastIndexedBlock } from "../../../../shared/db/chain-indexers/get-chain-indexer"; import { chainRequestQuerystringSchema } from "../../../schemas/chain"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../utils/chain"; const responseSchema = Type.Object({ diff --git a/src/server/routes/contract/subscriptions/removeContractSubscription.ts b/src/server/routes/contract/subscriptions/remove-contract-subscription.ts similarity index 95% rename from src/server/routes/contract/subscriptions/removeContractSubscription.ts rename to src/server/routes/contract/subscriptions/remove-contract-subscription.ts index e7ebfcb4a..ef1c4d06c 100644 --- a/src/server/routes/contract/subscriptions/removeContractSubscription.ts +++ b/src/server/routes/contract/subscriptions/remove-contract-subscription.ts @@ -3,7 +3,7 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { deleteContractSubscription } from "../../../../shared/db/contract-subscriptions/delete-contract-subscription"; import { deleteWebhook } from "../../../../shared/db/webhooks/revoke-webhook"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; const bodySchema = Type.Object({ contractSubscriptionId: Type.String({ diff --git a/src/server/routes/contract/transactions/getTransactionReceiptsByTimestamp.ts b/src/server/routes/contract/transactions/get-transaction-receipts-by-timestamp.ts similarity index 97% rename from src/server/routes/contract/transactions/getTransactionReceiptsByTimestamp.ts rename to src/server/routes/contract/transactions/get-transaction-receipts-by-timestamp.ts index 6db81d04e..2b6136353 100644 --- a/src/server/routes/contract/transactions/getTransactionReceiptsByTimestamp.ts +++ b/src/server/routes/contract/transactions/get-transaction-receipts-by-timestamp.ts @@ -3,8 +3,8 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; 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"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; +import { transactionReceiptSchema } from "../../../schemas/transaction-receipt"; const requestQuerySchema = Type.Object({ contractAddresses: Type.Optional(Type.Array(AddressSchema)), diff --git a/src/server/routes/contract/transactions/getTransactionReceipts.ts b/src/server/routes/contract/transactions/get-transaction-receipts.ts similarity index 98% rename from src/server/routes/contract/transactions/getTransactionReceipts.ts rename to src/server/routes/contract/transactions/get-transaction-receipts.ts index 8822c46f0..4dcc02616 100644 --- a/src/server/routes/contract/transactions/getTransactionReceipts.ts +++ b/src/server/routes/contract/transactions/get-transaction-receipts.ts @@ -7,8 +7,8 @@ import { createCustomError } from "../../../middleware/error"; import { contractParamSchema, standardResponseSchema, -} from "../../../schemas/sharedApiSchemas"; -import { transactionReceiptSchema } from "../../../schemas/transactionReceipt"; +} from "../../../schemas/shared-api-schemas"; +import { transactionReceiptSchema } from "../../../schemas/transaction-receipt"; import { getChainIdFromChain } from "../../../utils/chain"; const requestQuerySchema = Type.Object({ diff --git a/src/server/routes/contract/transactions/paginateTransactionReceipts.ts b/src/server/routes/contract/transactions/paginate-transaction-receipts.ts similarity index 96% rename from src/server/routes/contract/transactions/paginateTransactionReceipts.ts rename to src/server/routes/contract/transactions/paginate-transaction-receipts.ts index b9db6ec49..162ef3260 100644 --- a/src/server/routes/contract/transactions/paginateTransactionReceipts.ts +++ b/src/server/routes/contract/transactions/paginate-transaction-receipts.ts @@ -4,11 +4,11 @@ import { StatusCodes } from "http-status-codes"; 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 { standardResponseSchema } from "../../../schemas/shared-api-schemas"; import { toTransactionReceiptSchema, transactionReceiptSchema, -} from "../../../schemas/transactionReceipt"; +} from "../../../schemas/transaction-receipt"; /* Consider moving all cursor logic inside db file */ diff --git a/src/server/routes/contract/write/write.ts b/src/server/routes/contract/write/write.ts index c3ea10a25..fd5d6e99e 100644 --- a/src/server/routes/contract/write/write.ts +++ b/src/server/routes/contract/write/write.ts @@ -12,8 +12,8 @@ import { contractParamSchema, requestQuerystringSchema, transactionWritesResponseSchema, -} from "../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../schemas/txOverrides"; +} from "../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../schemas/tx-overrides"; import { maybeAddress, requiredAddress, @@ -21,7 +21,7 @@ import { } from "../../../schemas/wallet"; import { sanitizeAbi, sanitizeFunctionName } from "../../../utils/abi"; import { getChainIdFromChain } from "../../../utils/chain"; -import { parseTransactionOverrides } from "../../../utils/transactionOverrides"; +import { parseTransactionOverrides } from "../../../utils/transaction-overrides"; // INPUT const writeRequestBodySchema = Type.Object({ diff --git a/src/server/routes/deploy/contractTypes.ts b/src/server/routes/deploy/contract-types.ts similarity index 92% rename from src/server/routes/deploy/contractTypes.ts rename to src/server/routes/deploy/contract-types.ts index 9340bbb23..7944aa585 100644 --- a/src/server/routes/deploy/contractTypes.ts +++ b/src/server/routes/deploy/contract-types.ts @@ -2,7 +2,7 @@ import { Static, Type } from "@sinclair/typebox"; import { PREBUILT_CONTRACTS_MAP } from "@thirdweb-dev/sdk"; import { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; // OUTPUT export const responseBodySchema = Type.Object({ diff --git a/src/server/routes/deploy/index.ts b/src/server/routes/deploy/index.ts index 15301f23b..7815ec974 100644 --- a/src/server/routes/deploy/index.ts +++ b/src/server/routes/deploy/index.ts @@ -1,19 +1,19 @@ import { FastifyInstance } from "fastify"; import { deployPrebuiltEdition } from "./prebuilts/edition"; -import { deployPrebuiltEditionDrop } from "./prebuilts/editionDrop"; -import { deployPrebuiltMarketplaceV3 } from "./prebuilts/marketplaceV3"; +import { deployPrebuiltEditionDrop } from "./prebuilts/edition-drop"; +import { deployPrebuiltMarketplaceV3 } from "./prebuilts/marketplace-v3"; import { deployPrebuiltMultiwrap } from "./prebuilts/multiwrap"; -import { deployPrebuiltNFTCollection } from "./prebuilts/nftCollection"; -import { deployPrebuiltNFTDrop } from "./prebuilts/nftDrop"; +import { deployPrebuiltNFTCollection } from "./prebuilts/nft-collection"; +import { deployPrebuiltNFTDrop } from "./prebuilts/nft-drop"; import { deployPrebuiltPack } from "./prebuilts/pack"; -import { deployPrebuiltSignatureDrop } from "./prebuilts/signatureDrop"; +import { deployPrebuiltSignatureDrop } from "./prebuilts/signature-drop"; import { deployPrebuiltSplit } from "./prebuilts/split"; import { deployPrebuiltToken } from "./prebuilts/token"; -import { deployPrebuiltTokenDrop } from "./prebuilts/tokenDrop"; +import { deployPrebuiltTokenDrop } from "./prebuilts/token-drop"; import { deployPrebuiltVote } from "./prebuilts/vote"; import { deployPrebuilt } from "./prebuilt"; import { deployPublished } from "./published"; -import { contractTypes } from "./contractTypes"; +import { contractTypes } from "./contract-types"; export const prebuiltsRoutes = async (fastify: FastifyInstance) => { await fastify.register(deployPrebuiltEdition); diff --git a/src/server/routes/deploy/prebuilt.ts b/src/server/routes/deploy/prebuilt.ts index abb97673e..00b159b47 100644 --- a/src/server/routes/deploy/prebuilt.ts +++ b/src/server/routes/deploy/prebuilt.ts @@ -9,8 +9,8 @@ import { contractDeployBasicSchema } from "../../schemas/contract"; import { prebuiltDeployParamSchema, standardResponseSchema, -} from "../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../schemas/txOverrides"; +} from "../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../schemas/wallet"; import { getChainIdFromChain } from "../../utils/chain"; diff --git a/src/server/routes/deploy/prebuilts/editionDrop.ts b/src/server/routes/deploy/prebuilts/edition-drop.ts similarity index 95% rename from src/server/routes/deploy/prebuilts/editionDrop.ts rename to src/server/routes/deploy/prebuilts/edition-drop.ts index 0e264fa14..cd20d61e7 100644 --- a/src/server/routes/deploy/prebuilts/editionDrop.ts +++ b/src/server/routes/deploy/prebuilts/edition-drop.ts @@ -16,8 +16,8 @@ import { prebuiltDeployContractParamSchema, prebuiltDeployResponseSchema, } from "../../../schemas/prebuilts"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../schemas/txOverrides"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../schemas/wallet"; import { getChainIdFromChain } from "../../../utils/chain"; diff --git a/src/server/routes/deploy/prebuilts/edition.ts b/src/server/routes/deploy/prebuilts/edition.ts index d4da4fe9f..c81807151 100644 --- a/src/server/routes/deploy/prebuilts/edition.ts +++ b/src/server/routes/deploy/prebuilts/edition.ts @@ -15,8 +15,8 @@ import { prebuiltDeployContractParamSchema, prebuiltDeployResponseSchema, } from "../../../schemas/prebuilts/index"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../schemas/txOverrides"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../schemas/wallet"; import { getChainIdFromChain } from "../../../utils/chain"; diff --git a/src/server/routes/deploy/prebuilts/marketplaceV3.ts b/src/server/routes/deploy/prebuilts/marketplace-v3.ts similarity index 95% rename from src/server/routes/deploy/prebuilts/marketplaceV3.ts rename to src/server/routes/deploy/prebuilts/marketplace-v3.ts index a087d7ca0..c01e93121 100644 --- a/src/server/routes/deploy/prebuilts/marketplaceV3.ts +++ b/src/server/routes/deploy/prebuilts/marketplace-v3.ts @@ -12,8 +12,8 @@ import { prebuiltDeployContractParamSchema, prebuiltDeployResponseSchema, } from "../../../schemas/prebuilts"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../schemas/txOverrides"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../schemas/wallet"; import { getChainIdFromChain } from "../../../utils/chain"; diff --git a/src/server/routes/deploy/prebuilts/multiwrap.ts b/src/server/routes/deploy/prebuilts/multiwrap.ts index 48c2e0406..42f295d90 100644 --- a/src/server/routes/deploy/prebuilts/multiwrap.ts +++ b/src/server/routes/deploy/prebuilts/multiwrap.ts @@ -13,8 +13,8 @@ import { prebuiltDeployContractParamSchema, prebuiltDeployResponseSchema, } from "../../../schemas/prebuilts"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../schemas/txOverrides"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../schemas/wallet"; import { getChainIdFromChain } from "../../../utils/chain"; diff --git a/src/server/routes/deploy/prebuilts/nftCollection.ts b/src/server/routes/deploy/prebuilts/nft-collection.ts similarity index 95% rename from src/server/routes/deploy/prebuilts/nftCollection.ts rename to src/server/routes/deploy/prebuilts/nft-collection.ts index 4856e9c79..43d5c330a 100644 --- a/src/server/routes/deploy/prebuilts/nftCollection.ts +++ b/src/server/routes/deploy/prebuilts/nft-collection.ts @@ -15,8 +15,8 @@ import { prebuiltDeployContractParamSchema, prebuiltDeployResponseSchema, } from "../../../schemas/prebuilts"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../schemas/txOverrides"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../schemas/wallet"; import { getChainIdFromChain } from "../../../utils/chain"; diff --git a/src/server/routes/deploy/prebuilts/nftDrop.ts b/src/server/routes/deploy/prebuilts/nft-drop.ts similarity index 95% rename from src/server/routes/deploy/prebuilts/nftDrop.ts rename to src/server/routes/deploy/prebuilts/nft-drop.ts index 71b3b0ebf..2c33ddff1 100644 --- a/src/server/routes/deploy/prebuilts/nftDrop.ts +++ b/src/server/routes/deploy/prebuilts/nft-drop.ts @@ -16,8 +16,8 @@ import { prebuiltDeployContractParamSchema, prebuiltDeployResponseSchema, } from "../../../schemas/prebuilts"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../schemas/txOverrides"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../schemas/wallet"; import { getChainIdFromChain } from "../../../utils/chain"; diff --git a/src/server/routes/deploy/prebuilts/pack.ts b/src/server/routes/deploy/prebuilts/pack.ts index e65685990..009ee543b 100644 --- a/src/server/routes/deploy/prebuilts/pack.ts +++ b/src/server/routes/deploy/prebuilts/pack.ts @@ -14,8 +14,8 @@ import { prebuiltDeployContractParamSchema, prebuiltDeployResponseSchema, } from "../../../schemas/prebuilts"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../schemas/txOverrides"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../schemas/wallet"; import { getChainIdFromChain } from "../../../utils/chain"; diff --git a/src/server/routes/deploy/prebuilts/signatureDrop.ts b/src/server/routes/deploy/prebuilts/signature-drop.ts similarity index 95% rename from src/server/routes/deploy/prebuilts/signatureDrop.ts rename to src/server/routes/deploy/prebuilts/signature-drop.ts index 05bb9c0a9..3656ae887 100644 --- a/src/server/routes/deploy/prebuilts/signatureDrop.ts +++ b/src/server/routes/deploy/prebuilts/signature-drop.ts @@ -16,8 +16,8 @@ import { prebuiltDeployContractParamSchema, prebuiltDeployResponseSchema, } from "../../../schemas/prebuilts"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../schemas/txOverrides"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../schemas/wallet"; import { getChainIdFromChain } from "../../../utils/chain"; diff --git a/src/server/routes/deploy/prebuilts/split.ts b/src/server/routes/deploy/prebuilts/split.ts index b0e1f15c9..8d81f2c6a 100644 --- a/src/server/routes/deploy/prebuilts/split.ts +++ b/src/server/routes/deploy/prebuilts/split.ts @@ -12,8 +12,8 @@ import { prebuiltDeployResponseSchema, splitRecipientInputSchema, } from "../../../schemas/prebuilts"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../schemas/txOverrides"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../schemas/wallet"; import { getChainIdFromChain } from "../../../utils/chain"; diff --git a/src/server/routes/deploy/prebuilts/tokenDrop.ts b/src/server/routes/deploy/prebuilts/token-drop.ts similarity index 95% rename from src/server/routes/deploy/prebuilts/tokenDrop.ts rename to src/server/routes/deploy/prebuilts/token-drop.ts index b14b9f9cd..891ac65de 100644 --- a/src/server/routes/deploy/prebuilts/tokenDrop.ts +++ b/src/server/routes/deploy/prebuilts/token-drop.ts @@ -15,8 +15,8 @@ import { prebuiltDeployContractParamSchema, prebuiltDeployResponseSchema, } from "../../../schemas/prebuilts"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../schemas/txOverrides"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../schemas/wallet"; import { getChainIdFromChain } from "../../../utils/chain"; diff --git a/src/server/routes/deploy/prebuilts/token.ts b/src/server/routes/deploy/prebuilts/token.ts index ae2ffbb7e..f965aeef4 100644 --- a/src/server/routes/deploy/prebuilts/token.ts +++ b/src/server/routes/deploy/prebuilts/token.ts @@ -14,8 +14,8 @@ import { prebuiltDeployContractParamSchema, prebuiltDeployResponseSchema, } from "../../../schemas/prebuilts"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../schemas/txOverrides"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../schemas/wallet"; import { getChainIdFromChain } from "../../../utils/chain"; diff --git a/src/server/routes/deploy/prebuilts/vote.ts b/src/server/routes/deploy/prebuilts/vote.ts index 292a1c151..87f50daae 100644 --- a/src/server/routes/deploy/prebuilts/vote.ts +++ b/src/server/routes/deploy/prebuilts/vote.ts @@ -12,8 +12,8 @@ import { prebuiltDeployResponseSchema, voteSettingsInputSchema, } from "../../../schemas/prebuilts"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../../schemas/txOverrides"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../../schemas/wallet"; import { getChainIdFromChain } from "../../../utils/chain"; diff --git a/src/server/routes/deploy/published.ts b/src/server/routes/deploy/published.ts index 41bcb0f30..a4bcc9274 100644 --- a/src/server/routes/deploy/published.ts +++ b/src/server/routes/deploy/published.ts @@ -8,8 +8,8 @@ import { contractDeployBasicSchema } from "../../schemas/contract"; import { publishedDeployParamSchema, standardResponseSchema, -} from "../../schemas/sharedApiSchemas"; -import { txOverridesWithValueSchema } from "../../schemas/txOverrides"; +} from "../../schemas/shared-api-schemas"; +import { txOverridesWithValueSchema } from "../../schemas/tx-overrides"; import { walletWithAAHeaderSchema } from "../../schemas/wallet"; import { getChainIdFromChain } from "../../utils/chain"; diff --git a/src/server/routes/index.ts b/src/server/routes/index.ts index 173698fea..b02317213 100644 --- a/src/server/routes/index.ts +++ b/src/server/routes/index.ts @@ -2,36 +2,36 @@ import type { FastifyInstance } from "fastify"; import { getNonceDetailsRoute } from "./admin/nonces"; import { getTransactionDetails } from "./admin/transaction"; import { createAccessToken } from "./auth/access-tokens/create"; -import { getAllAccessTokens } from "./auth/access-tokens/getAll"; +import { getAllAccessTokens } from "./auth/access-tokens/get-all"; import { revokeAccessToken } from "./auth/access-tokens/revoke"; import { updateAccessToken } from "./auth/access-tokens/update"; import { addKeypair } from "./auth/keypair/add"; import { listPublicKeys } from "./auth/keypair/list"; import { removePublicKey } from "./auth/keypair/remove"; -import { getAllPermissions } from "./auth/permissions/getAll"; +import { getAllPermissions } from "./auth/permissions/get-all"; import { grantPermissions } from "./auth/permissions/grant"; import { revokePermissions } from "./auth/permissions/revoke"; import { cancelBackendWalletNoncesRoute } from "./backend-wallet/cancel-nonces"; import { createBackendWallet } from "./backend-wallet/create"; -import { getAll } from "./backend-wallet/getAll"; -import { getBalance } from "./backend-wallet/getBalance"; -import { getBackendWalletNonce } from "./backend-wallet/getNonce"; -import { getTransactionsForBackendWallet } from "./backend-wallet/getTransactions"; -import { getTransactionsForBackendWalletByNonce } from "./backend-wallet/getTransactionsByNonce"; +import { getAll } from "./backend-wallet/get-all"; +import { getBalance } from "./backend-wallet/get-balance"; +import { getBackendWalletNonce } from "./backend-wallet/get-nonce"; +import { getTransactionsForBackendWallet } from "./backend-wallet/get-transactions"; +import { getTransactionsForBackendWalletByNonce } from "./backend-wallet/get-transactions-by-nonce"; import { importBackendWallet } from "./backend-wallet/import"; import { removeBackendWallet } from "./backend-wallet/remove"; import { resetBackendWalletNoncesRoute } from "./backend-wallet/reset-nonces"; -import { sendTransaction } from "./backend-wallet/sendTransaction"; -import { sendTransactionBatch } from "./backend-wallet/sendTransactionBatch"; -import { signMessageRoute } from "./backend-wallet/signMessage"; -import { signTransaction } from "./backend-wallet/signTransaction"; -import { signTypedData } from "./backend-wallet/signTypedData"; -import { simulateTransaction } from "./backend-wallet/simulateTransaction"; +import { sendTransaction } from "./backend-wallet/send-transaction"; +import { sendTransactionBatch } from "./backend-wallet/send-transaction-batch"; +import { signMessageRoute } from "./backend-wallet/sign-message"; +import { signTransaction } from "./backend-wallet/sign-transaction"; +import { signTypedData } from "./backend-wallet/sign-typed-data"; +import { simulateTransaction } from "./backend-wallet/simulate-transaction"; import { transfer } from "./backend-wallet/transfer"; import { updateBackendWallet } from "./backend-wallet/update"; import { withdraw } from "./backend-wallet/withdraw"; import { getChainData } from "./chain/get"; -import { getAllChainData } from "./chain/getAll"; +import { getAllChainData } from "./chain/get-all"; import { getAuthConfiguration } from "./configuration/auth/get"; import { updateAuthConfiguration } from "./configuration/auth/update"; import { getBackendWalletBalanceConfiguration } from "./configuration/backend-wallet-balance/get"; @@ -52,63 +52,63 @@ import { getTransactionConfiguration } from "./configuration/transactions/get"; import { updateTransactionConfiguration } from "./configuration/transactions/update"; import { getWalletsConfiguration } from "./configuration/wallets/get"; import { updateWalletsConfiguration } from "./configuration/wallets/update"; -import { getAllEvents } from "./contract/events/getAllEvents"; -import { getContractEventLogs } from "./contract/events/getContractEventLogs"; -import { getEventLogs } from "./contract/events/getEventLogsByTimestamp"; -import { getEvents } from "./contract/events/getEvents"; -import { pageEventLogs } from "./contract/events/paginateEventLogs"; +import { getAllEvents } from "./contract/events/get-all-events"; +import { getContractEventLogs } from "./contract/events/get-contract-event-logs"; +import { getEventLogs } from "./contract/events/get-event-logs-by-timestamp"; +import { getEvents } from "./contract/events/get-events"; +import { pageEventLogs } from "./contract/events/paginate-event-logs"; import { accountRoutes } from "./contract/extensions/account"; -import { accountFactoryRoutes } from "./contract/extensions/accountFactory"; +import { accountFactoryRoutes } from "./contract/extensions/account-factory"; import { erc1155Routes } from "./contract/extensions/erc1155"; import { erc20Routes } from "./contract/extensions/erc20"; import { erc721Routes } from "./contract/extensions/erc721"; -import { marketplaceV3Routes } from "./contract/extensions/marketplaceV3/index"; +import { marketplaceV3Routes } from "./contract/extensions/marketplace-v3/index"; import { getABI } from "./contract/metadata/abi"; import { extractEvents } from "./contract/metadata/events"; import { getContractExtensions } from "./contract/metadata/extensions"; import { extractFunctions } from "./contract/metadata/functions"; import { readContract } from "./contract/read/read"; import { getRoles } from "./contract/roles/read/get"; -import { getAllRoles } from "./contract/roles/read/getAll"; +import { getAllRoles } from "./contract/roles/read/get-all"; import { grantRole } from "./contract/roles/write/grant"; import { revokeRole } from "./contract/roles/write/revoke"; -import { getDefaultRoyaltyInfo } from "./contract/royalties/read/getDefaultRoyaltyInfo"; -import { getTokenRoyaltyInfo } from "./contract/royalties/read/getTokenRoyaltyInfo"; -import { setDefaultRoyaltyInfo } from "./contract/royalties/write/setDefaultRoyaltyInfo"; -import { setTokenRoyaltyInfo } from "./contract/royalties/write/setTokenRoyaltyInfo"; -import { addContractSubscription } from "./contract/subscriptions/addContractSubscription"; -import { getContractIndexedBlockRange } from "./contract/subscriptions/getContractIndexedBlockRange"; -import { getContractSubscriptions } from "./contract/subscriptions/getContractSubscriptions"; -import { getLatestBlock } from "./contract/subscriptions/getLatestBlock"; -import { removeContractSubscription } from "./contract/subscriptions/removeContractSubscription"; -import { getContractTransactionReceipts } from "./contract/transactions/getTransactionReceipts"; -import { getContractTransactionReceiptsByTimestamp } from "./contract/transactions/getTransactionReceiptsByTimestamp"; -import { pageTransactionReceipts } from "./contract/transactions/paginateTransactionReceipts"; +import { getDefaultRoyaltyInfo } from "./contract/royalties/read/get-default-royalty-info"; +import { getTokenRoyaltyInfo } from "./contract/royalties/read/get-token-royalty-info"; +import { setDefaultRoyaltyInfo } from "./contract/royalties/write/set-default-royalty-info"; +import { setTokenRoyaltyInfo } from "./contract/royalties/write/set-token-royalty-info"; +import { addContractSubscription } from "./contract/subscriptions/add-contract-subscription"; +import { getContractIndexedBlockRange } from "./contract/subscriptions/get-contract-indexed-block-range"; +import { getContractSubscriptions } from "./contract/subscriptions/get-contract-subscriptions"; +import { getLatestBlock } from "./contract/subscriptions/get-latest-block"; +import { removeContractSubscription } from "./contract/subscriptions/remove-contract-subscription"; +import { getContractTransactionReceipts } from "./contract/transactions/get-transaction-receipts"; +import { getContractTransactionReceiptsByTimestamp } from "./contract/transactions/get-transaction-receipts-by-timestamp"; +import { pageTransactionReceipts } from "./contract/transactions/paginate-transaction-receipts"; import { writeToContract } from "./contract/write/write"; import { prebuiltsRoutes } from "./deploy"; import { home } from "./home"; import { relayTransaction } from "./relayer"; import { createRelayer } from "./relayer/create"; -import { getAllRelayers } from "./relayer/getAll"; +import { getAllRelayers } from "./relayer/get-all"; import { revokeRelayer } from "./relayer/revoke"; import { updateRelayer } from "./relayer/update"; import { healthCheck } from "./system/health"; import { queueStatus } from "./system/queue"; -import { getTransactionLogs } from "./transaction/blockchain/getLogs"; -import { getTransactionReceipt } from "./transaction/blockchain/getReceipt"; -import { getUserOpReceipt } from "./transaction/blockchain/getUserOpReceipt"; -import { sendSignedTransaction } from "./transaction/blockchain/sendSignedTx"; -import { sendSignedUserOp } from "./transaction/blockchain/sendSignedUserOp"; +import { getTransactionLogs } from "./transaction/blockchain/get-logs"; +import { getTransactionReceipt } from "./transaction/blockchain/get-receipt"; +import { getUserOpReceipt } from "./transaction/blockchain/get-user-op-receipt"; +import { sendSignedTransaction } from "./transaction/blockchain/send-signed-tx"; +import { sendSignedUserOp } from "./transaction/blockchain/send-signed-user-op"; import { cancelTransaction } from "./transaction/cancel"; -import { getAllTransactions } from "./transaction/getAll"; -import { getAllDeployedContracts } from "./transaction/getAllDeployedContracts"; +import { getAllTransactions } from "./transaction/get-all"; +import { getAllDeployedContracts } from "./transaction/get-all-deployed-contracts"; import { retryTransaction } from "./transaction/retry"; import { retryFailedTransactionRoute } from "./transaction/retry-failed"; import { checkTxStatus } from "./transaction/status"; import { syncRetryTransactionRoute } from "./transaction/sync-retry"; import { createWebhookRoute } from "./webhooks/create"; import { getWebhooksEventTypes } from "./webhooks/events"; -import { getAllWebhooksData } from "./webhooks/getAll"; +import { getAllWebhooksData } from "./webhooks/get-all"; import { revokeWebhook } from "./webhooks/revoke"; import { testWebhookRoute } from "./webhooks/test"; diff --git a/src/server/routes/relayer/create.ts b/src/server/routes/relayer/create.ts index f7b34d05f..975a93c12 100644 --- a/src/server/routes/relayer/create.ts +++ b/src/server/routes/relayer/create.ts @@ -4,7 +4,7 @@ import { StatusCodes } from "http-status-codes"; import { prisma } from "../../../shared/db/client"; import { AddressSchema } from "../../schemas/address"; import { chainIdOrSlugSchema } from "../../schemas/chain"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../utils/chain"; const requestBodySchema = Type.Object({ diff --git a/src/server/routes/relayer/getAll.ts b/src/server/routes/relayer/get-all.ts similarity index 95% rename from src/server/routes/relayer/getAll.ts rename to src/server/routes/relayer/get-all.ts index 3798b5e67..59ce734b7 100644 --- a/src/server/routes/relayer/getAll.ts +++ b/src/server/routes/relayer/get-all.ts @@ -3,7 +3,7 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { prisma } from "../../../shared/db/client"; import { AddressSchema } from "../../schemas/address"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; const responseBodySchema = Type.Object({ result: Type.Array( diff --git a/src/server/routes/relayer/index.ts b/src/server/routes/relayer/index.ts index a624ce74d..c93e22077 100644 --- a/src/server/routes/relayer/index.ts +++ b/src/server/routes/relayer/index.ts @@ -16,7 +16,7 @@ import { AddressSchema } from "../../schemas/address"; import { standardResponseSchema, transactionWritesResponseSchema, -} from "../../schemas/sharedApiSchemas"; +} from "../../schemas/shared-api-schemas"; const ParamsSchema = Type.Object({ relayerId: Type.String(), diff --git a/src/server/routes/relayer/revoke.ts b/src/server/routes/relayer/revoke.ts index aa84eb1ad..3ceedb940 100644 --- a/src/server/routes/relayer/revoke.ts +++ b/src/server/routes/relayer/revoke.ts @@ -2,7 +2,7 @@ import { Type, type Static } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { prisma } from "../../../shared/db/client"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; const requestBodySchema = Type.Object({ id: Type.String(), diff --git a/src/server/routes/relayer/update.ts b/src/server/routes/relayer/update.ts index 421ac46af..ed55603ef 100644 --- a/src/server/routes/relayer/update.ts +++ b/src/server/routes/relayer/update.ts @@ -4,7 +4,7 @@ import { StatusCodes } from "http-status-codes"; import { prisma } from "../../../shared/db/client"; import { AddressSchema } from "../../schemas/address"; import { chainIdOrSlugSchema } from "../../schemas/chain"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../utils/chain"; const requestBodySchema = Type.Object({ diff --git a/src/server/routes/system/queue.ts b/src/server/routes/system/queue.ts index 8c01d2302..38b1c52e4 100644 --- a/src/server/routes/system/queue.ts +++ b/src/server/routes/system/queue.ts @@ -4,9 +4,9 @@ import { StatusCodes } from "http-status-codes"; import { TransactionDB } from "../../../shared/db/transactions/db"; import { getPercentile } from "../../../shared/utils/math"; import type { MinedTransaction } from "../../../shared/utils/transaction/types"; -import { MineTransactionQueue } from "../../../worker/queues/mineTransactionQueue"; -import { SendTransactionQueue } from "../../../worker/queues/sendTransactionQueue"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; +import { MineTransactionQueue } from "../../../worker/queues/mine-transaction-queue"; +import { SendTransactionQueue } from "../../../worker/queues/send-transaction-queue"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; const responseBodySchema = Type.Object({ result: Type.Object({ diff --git a/src/server/routes/transaction/blockchain/getLogs.ts b/src/server/routes/transaction/blockchain/get-logs.ts similarity index 98% rename from src/server/routes/transaction/blockchain/getLogs.ts rename to src/server/routes/transaction/blockchain/get-logs.ts index 099dc246d..171e1262d 100644 --- a/src/server/routes/transaction/blockchain/getLogs.ts +++ b/src/server/routes/transaction/blockchain/get-logs.ts @@ -19,7 +19,7 @@ import { thirdwebClient } from "../../../../shared/utils/sdk"; import { createCustomError } from "../../../middleware/error"; import { AddressSchema, TransactionHashSchema } from "../../../schemas/address"; import { chainIdOrSlugSchema } from "../../../schemas/chain"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../utils/chain"; // INPUT diff --git a/src/server/routes/transaction/blockchain/getReceipt.ts b/src/server/routes/transaction/blockchain/get-receipt.ts similarity index 98% rename from src/server/routes/transaction/blockchain/getReceipt.ts rename to src/server/routes/transaction/blockchain/get-receipt.ts index b5d3c4378..e3473026b 100644 --- a/src/server/routes/transaction/blockchain/getReceipt.ts +++ b/src/server/routes/transaction/blockchain/get-receipt.ts @@ -18,7 +18,7 @@ import { import { createCustomError } from "../../../middleware/error"; import { AddressSchema, TransactionHashSchema } from "../../../schemas/address"; import { chainIdOrSlugSchema } from "../../../schemas/chain"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../utils/chain"; // INPUT diff --git a/src/server/routes/transaction/blockchain/getUserOpReceipt.ts b/src/server/routes/transaction/blockchain/get-user-op-receipt.ts similarity index 98% rename from src/server/routes/transaction/blockchain/getUserOpReceipt.ts rename to src/server/routes/transaction/blockchain/get-user-op-receipt.ts index 220add1ae..8851a252a 100644 --- a/src/server/routes/transaction/blockchain/getUserOpReceipt.ts +++ b/src/server/routes/transaction/blockchain/get-user-op-receipt.ts @@ -5,7 +5,7 @@ import { env } from "../../../../shared/utils/env"; import { createCustomError } from "../../../middleware/error"; import { TransactionHashSchema } from "../../../schemas/address"; import { chainIdOrSlugSchema } from "../../../schemas/chain"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; import { getChainIdFromChain } from "../../../utils/chain"; // INPUT diff --git a/src/server/routes/transaction/blockchain/sendSignedTx.ts b/src/server/routes/transaction/blockchain/send-signed-tx.ts similarity index 96% rename from src/server/routes/transaction/blockchain/sendSignedTx.ts rename to src/server/routes/transaction/blockchain/send-signed-tx.ts index fe7e1ac83..862fc261b 100644 --- a/src/server/routes/transaction/blockchain/sendSignedTx.ts +++ b/src/server/routes/transaction/blockchain/send-signed-tx.ts @@ -6,7 +6,7 @@ import { getChain } from "../../../../shared/utils/chain"; import { thirdwebClient } from "../../../../shared/utils/sdk"; import { createCustomError } from "../../../middleware/error"; import { TransactionHashSchema } from "../../../schemas/address"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; import { walletChainParamSchema } from "../../../schemas/wallet"; import { getChainIdFromChain } from "../../../utils/chain"; diff --git a/src/server/routes/transaction/blockchain/sendSignedUserOp.ts b/src/server/routes/transaction/blockchain/send-signed-user-op.ts similarity index 97% rename from src/server/routes/transaction/blockchain/sendSignedUserOp.ts rename to src/server/routes/transaction/blockchain/send-signed-user-op.ts index 8db91f8e3..cdccaf42d 100644 --- a/src/server/routes/transaction/blockchain/sendSignedUserOp.ts +++ b/src/server/routes/transaction/blockchain/send-signed-user-op.ts @@ -5,7 +5,7 @@ import { StatusCodes } from "http-status-codes"; import { env } from "../../../../shared/utils/env"; import { thirdwebClientId } from "../../../../shared/utils/sdk"; import { TransactionHashSchema } from "../../../schemas/address"; -import { standardResponseSchema } from "../../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../../schemas/shared-api-schemas"; import { walletChainParamSchema } from "../../../schemas/wallet"; import { getChainIdFromChain } from "../../../utils/chain"; diff --git a/src/server/routes/transaction/cancel.ts b/src/server/routes/transaction/cancel.ts index cd06f9354..9db14dd39 100644 --- a/src/server/routes/transaction/cancel.ts +++ b/src/server/routes/transaction/cancel.ts @@ -10,10 +10,10 @@ import { sendCancellationTransaction } from "../../../shared/utils/transaction/c import type { CancelledTransaction } from "../../../shared/utils/transaction/types"; import { enqueueTransactionWebhook } from "../../../shared/utils/transaction/webhook"; import { reportUsage } from "../../../shared/utils/usage"; -import { SendTransactionQueue } from "../../../worker/queues/sendTransactionQueue"; +import { SendTransactionQueue } from "../../../worker/queues/send-transaction-queue"; import { createCustomError } from "../../middleware/error"; import { TransactionHashSchema } from "../../schemas/address"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; // INPUT const requestBodySchema = Type.Object({ diff --git a/src/server/routes/transaction/getAllDeployedContracts.ts b/src/server/routes/transaction/get-all-deployed-contracts.ts similarity index 98% rename from src/server/routes/transaction/getAllDeployedContracts.ts rename to src/server/routes/transaction/get-all-deployed-contracts.ts index d4745f9ad..11802e01d 100644 --- a/src/server/routes/transaction/getAllDeployedContracts.ts +++ b/src/server/routes/transaction/get-all-deployed-contracts.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 { standardResponseSchema } from "../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; import { TransactionSchema, toTransactionSchema, diff --git a/src/server/routes/transaction/getAll.ts b/src/server/routes/transaction/get-all.ts similarity index 98% rename from src/server/routes/transaction/getAll.ts rename to src/server/routes/transaction/get-all.ts index 6243e0fc7..c18e875dd 100644 --- a/src/server/routes/transaction/getAll.ts +++ b/src/server/routes/transaction/get-all.ts @@ -3,7 +3,7 @@ import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { TransactionDB } from "../../../shared/db/transactions/db"; import { PaginationSchema } from "../../schemas/pagination"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; import { TransactionSchema, toTransactionSchema, diff --git a/src/server/routes/transaction/retry-failed.ts b/src/server/routes/transaction/retry-failed.ts index 1550a97ca..cf42c54b4 100644 --- a/src/server/routes/transaction/retry-failed.ts +++ b/src/server/routes/transaction/retry-failed.ts @@ -7,10 +7,10 @@ import { getReceiptForUserOp, } from "../../../shared/lib/transaction/get-transaction-receipt"; import type { QueuedTransaction } from "../../../shared/utils/transaction/types"; -import { MineTransactionQueue } from "../../../worker/queues/mineTransactionQueue"; -import { SendTransactionQueue } from "../../../worker/queues/sendTransactionQueue"; +import { MineTransactionQueue } from "../../../worker/queues/mine-transaction-queue"; +import { SendTransactionQueue } from "../../../worker/queues/send-transaction-queue"; import { createCustomError } from "../../middleware/error"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; const requestBodySchema = Type.Object({ queueId: Type.String({ diff --git a/src/server/routes/transaction/retry.ts b/src/server/routes/transaction/retry.ts index 21743f725..8d058a95e 100644 --- a/src/server/routes/transaction/retry.ts +++ b/src/server/routes/transaction/retry.ts @@ -4,9 +4,9 @@ import { StatusCodes } from "http-status-codes"; import { TransactionDB } from "../../../shared/db/transactions/db"; import { maybeBigInt } from "../../../shared/utils/primitive-types"; import type { SentTransaction } from "../../../shared/utils/transaction/types"; -import { SendTransactionQueue } from "../../../worker/queues/sendTransactionQueue"; +import { SendTransactionQueue } from "../../../worker/queues/send-transaction-queue"; import { createCustomError } from "../../middleware/error"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; const requestBodySchema = Type.Object({ queueId: Type.String({ diff --git a/src/server/routes/transaction/status.ts b/src/server/routes/transaction/status.ts index 616009cbf..d597de3df 100644 --- a/src/server/routes/transaction/status.ts +++ b/src/server/routes/transaction/status.ts @@ -5,7 +5,7 @@ import { StatusCodes } from "http-status-codes"; import { TransactionDB } from "../../../shared/db/transactions/db"; import { logger } from "../../../shared/utils/logger"; import { createCustomError } from "../../middleware/error"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; import { TransactionSchema, toTransactionSchema, diff --git a/src/server/routes/transaction/sync-retry.ts b/src/server/routes/transaction/sync-retry.ts index b0b45b8a6..e212afc9a 100644 --- a/src/server/routes/transaction/sync-retry.ts +++ b/src/server/routes/transaction/sync-retry.ts @@ -14,10 +14,10 @@ import { import { thirdwebClient } from "../../../shared/utils/sdk"; import type { SentTransaction } from "../../../shared/utils/transaction/types"; import { enqueueTransactionWebhook } from "../../../shared/utils/transaction/webhook"; -import { MineTransactionQueue } from "../../../worker/queues/mineTransactionQueue"; +import { MineTransactionQueue } from "../../../worker/queues/mine-transaction-queue"; import { createCustomError } from "../../middleware/error"; import { TransactionHashSchema } from "../../schemas/address"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; const requestBodySchema = Type.Object({ queueId: Type.String({ diff --git a/src/server/routes/webhooks/create.ts b/src/server/routes/webhooks/create.ts index 986fa6743..3d18768f8 100644 --- a/src/server/routes/webhooks/create.ts +++ b/src/server/routes/webhooks/create.ts @@ -4,7 +4,7 @@ import { StatusCodes } from "http-status-codes"; import { insertWebhook } from "../../../shared/db/webhooks/create-webhook"; import { WebhooksEventTypes } from "../../../shared/schemas/webhooks"; import { createCustomError } from "../../middleware/error"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; import { WebhookSchema, toWebhookSchema } from "../../schemas/webhook"; import { isValidWebhookUrl } from "../../utils/validator"; diff --git a/src/server/routes/webhooks/events.ts b/src/server/routes/webhooks/events.ts index 35f636d0b..4ad95e28a 100644 --- a/src/server/routes/webhooks/events.ts +++ b/src/server/routes/webhooks/events.ts @@ -2,7 +2,7 @@ import { type Static, Type } from "@sinclair/typebox"; import type { FastifyInstance } from "fastify"; import { StatusCodes } from "http-status-codes"; import { WebhooksEventTypes } from "../../../shared/schemas/webhooks"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; export const responseBodySchema = Type.Object({ result: Type.Array(Type.Enum(WebhooksEventTypes)), diff --git a/src/server/routes/webhooks/getAll.ts b/src/server/routes/webhooks/get-all.ts similarity index 93% rename from src/server/routes/webhooks/getAll.ts rename to src/server/routes/webhooks/get-all.ts index 5b342cd7a..a30a56194 100644 --- a/src/server/routes/webhooks/getAll.ts +++ b/src/server/routes/webhooks/get-all.ts @@ -2,7 +2,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/get-all-webhooks"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; import { WebhookSchema, toWebhookSchema } from "../../schemas/webhook"; const responseBodySchema = Type.Object({ diff --git a/src/server/routes/webhooks/revoke.ts b/src/server/routes/webhooks/revoke.ts index de943d16d..6e38245de 100644 --- a/src/server/routes/webhooks/revoke.ts +++ b/src/server/routes/webhooks/revoke.ts @@ -4,7 +4,7 @@ import { StatusCodes } from "http-status-codes"; 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"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; const requestBodySchema = Type.Object({ id: Type.Integer({ minimum: 0 }), diff --git a/src/server/routes/webhooks/test.ts b/src/server/routes/webhooks/test.ts index 0031a7580..d61861f0f 100644 --- a/src/server/routes/webhooks/test.ts +++ b/src/server/routes/webhooks/test.ts @@ -5,7 +5,7 @@ import { getWebhook } from "../../../shared/db/webhooks/get-webhook"; import { sendWebhookRequest } from "../../../shared/utils/webhook"; import { createCustomError } from "../../middleware/error"; import { NumberStringSchema } from "../../schemas/number"; -import { standardResponseSchema } from "../../schemas/sharedApiSchemas"; +import { standardResponseSchema } from "../../schemas/shared-api-schemas"; import type { TransactionSchema } from "../../schemas/transaction"; const paramsSchema = Type.Object({ diff --git a/src/server/schemas/claimConditions/index.ts b/src/server/schemas/claim-conditions/index.ts similarity index 98% rename from src/server/schemas/claimConditions/index.ts rename to src/server/schemas/claim-conditions/index.ts index d316654bd..11b867a10 100644 --- a/src/server/schemas/claimConditions/index.ts +++ b/src/server/schemas/claim-conditions/index.ts @@ -1,6 +1,6 @@ import { Type } from "@sinclair/typebox"; import { AddressSchema } from "../address"; -import { currencyValueSchema } from "../sharedApiSchemas"; +import { currencyValueSchema } from "../shared-api-schemas"; export const claimConditionInputSchema = Type.Object({ maxClaimableSupply: Type.Optional( diff --git a/src/server/schemas/contractSubscription.ts b/src/server/schemas/contract-subscription.ts similarity index 100% rename from src/server/schemas/contractSubscription.ts rename to src/server/schemas/contract-subscription.ts diff --git a/src/server/schemas/contract/index.ts b/src/server/schemas/contract/index.ts index ed27ac8e6..d6abd42eb 100644 --- a/src/server/schemas/contract/index.ts +++ b/src/server/schemas/contract/index.ts @@ -1,6 +1,6 @@ import { Type, type Static } from "@sinclair/typebox"; import { AddressSchema } from "../address"; -import type { contractSchemaTypes } from "../sharedApiSchemas"; +import type { contractSchemaTypes } from "../shared-api-schemas"; /** * Basic schema for all Request Query String diff --git a/src/server/schemas/eventLog.ts b/src/server/schemas/event-log.ts similarity index 100% rename from src/server/schemas/eventLog.ts rename to src/server/schemas/event-log.ts diff --git a/src/server/schemas/httpHeaders/thirdwebSdkVersion.ts b/src/server/schemas/http-headers/thirdweb-sdk-version.ts similarity index 100% rename from src/server/schemas/httpHeaders/thirdwebSdkVersion.ts rename to src/server/schemas/http-headers/thirdweb-sdk-version.ts diff --git a/src/server/schemas/marketplaceV3/directListing/index.ts b/src/server/schemas/marketplace-v3/direct-listing/index.ts similarity index 97% rename from src/server/schemas/marketplaceV3/directListing/index.ts rename to src/server/schemas/marketplace-v3/direct-listing/index.ts index 317b4c4de..bbd2b3f0b 100644 --- a/src/server/schemas/marketplaceV3/directListing/index.ts +++ b/src/server/schemas/marketplace-v3/direct-listing/index.ts @@ -1,7 +1,7 @@ import { Type } from "@sinclair/typebox"; import { AddressSchema } from "../../address"; import { nftMetadataSchema } from "../../nft"; -import { Status, currencyValueSchema } from "../../sharedApiSchemas"; +import { Status, currencyValueSchema } from "../../shared-api-schemas"; export const directListingV3InputSchema = Type.Object({ assetContractAddress: { diff --git a/src/server/schemas/marketplaceV3/englishAuction/index.ts b/src/server/schemas/marketplace-v3/english-auction/index.ts similarity index 98% rename from src/server/schemas/marketplaceV3/englishAuction/index.ts rename to src/server/schemas/marketplace-v3/english-auction/index.ts index e2298d686..59263451a 100644 --- a/src/server/schemas/marketplaceV3/englishAuction/index.ts +++ b/src/server/schemas/marketplace-v3/english-auction/index.ts @@ -1,7 +1,7 @@ import { Type } from "@sinclair/typebox"; import { AddressSchema } from "../../address"; import { nftMetadataSchema } from "../../nft"; -import { Status } from "../../sharedApiSchemas"; +import { Status } from "../../shared-api-schemas"; const currencyValueSchema = Type.Object({ name: Type.Optional(Type.String()), diff --git a/src/server/schemas/marketplaceV3/offer/index.ts b/src/server/schemas/marketplace-v3/offer/index.ts similarity index 97% rename from src/server/schemas/marketplaceV3/offer/index.ts rename to src/server/schemas/marketplace-v3/offer/index.ts index 7454cad3b..0d7a2834a 100644 --- a/src/server/schemas/marketplaceV3/offer/index.ts +++ b/src/server/schemas/marketplace-v3/offer/index.ts @@ -1,7 +1,7 @@ import { Type } from "@sinclair/typebox"; import { AddressSchema } from "../../address"; import { nftMetadataSchema } from "../../nft"; -import { Status, currencyValueSchema } from "../../sharedApiSchemas"; +import { Status, currencyValueSchema } from "../../shared-api-schemas"; export const OfferV3InputSchema = Type.Object({ assetContractAddress: { diff --git a/src/server/schemas/sharedApiSchemas.ts b/src/server/schemas/shared-api-schemas.ts similarity index 100% rename from src/server/schemas/sharedApiSchemas.ts rename to src/server/schemas/shared-api-schemas.ts diff --git a/src/server/schemas/transactionReceipt.ts b/src/server/schemas/transaction-receipt.ts similarity index 100% rename from src/server/schemas/transactionReceipt.ts rename to src/server/schemas/transaction-receipt.ts diff --git a/src/server/schemas/txOverrides.ts b/src/server/schemas/tx-overrides.ts similarity index 100% rename from src/server/schemas/txOverrides.ts rename to src/server/schemas/tx-overrides.ts diff --git a/src/server/utils/marketplaceV3.ts b/src/server/utils/marketplace-v3.ts similarity index 100% rename from src/server/utils/marketplaceV3.ts rename to src/server/utils/marketplace-v3.ts diff --git a/src/server/utils/storage/localStorage.ts b/src/server/utils/storage/local-storage.ts similarity index 100% rename from src/server/utils/storage/localStorage.ts rename to src/server/utils/storage/local-storage.ts diff --git a/src/server/utils/transactionOverrides.ts b/src/server/utils/transaction-overrides.ts similarity index 96% rename from src/server/utils/transactionOverrides.ts rename to src/server/utils/transaction-overrides.ts index d7c8e9fcf..443758ef0 100644 --- a/src/server/utils/transactionOverrides.ts +++ b/src/server/utils/transaction-overrides.ts @@ -4,7 +4,7 @@ import type { InsertedTransaction } from "../../shared/utils/transaction/types"; import type { txOverridesSchema, txOverridesWithValueSchema, -} from "../schemas/txOverrides"; +} from "../schemas/tx-overrides"; export const parseTransactionOverrides = ( overrides: diff --git a/src/server/utils/wallets/awsKmsArn.ts b/src/server/utils/wallets/aws-kms-arn.ts similarity index 100% rename from src/server/utils/wallets/awsKmsArn.ts rename to src/server/utils/wallets/aws-kms-arn.ts diff --git a/src/server/utils/wallets/createAwsKmsWallet.ts b/src/server/utils/wallets/create-aws-kms-wallet.ts similarity index 95% rename from src/server/utils/wallets/createAwsKmsWallet.ts rename to src/server/utils/wallets/create-aws-kms-wallet.ts index 1d4b75b50..1398db8c0 100644 --- a/src/server/utils/wallets/createAwsKmsWallet.ts +++ b/src/server/utils/wallets/create-aws-kms-wallet.ts @@ -3,8 +3,8 @@ import { FetchAwsKmsWalletParamsError, fetchAwsKmsWalletParams, type AwsKmsWalletParams, -} from "./fetchAwsKmsWalletParams"; -import { importAwsKmsWallet } from "./importAwsKmsWallet"; +} from "./fetch-aws-kms-wallet-params"; +import { importAwsKmsWallet } from "./import-aws-kms-wallet"; export type CreateAwsKmsWalletParams = { label?: string; diff --git a/src/server/utils/wallets/createGcpKmsWallet.ts b/src/server/utils/wallets/create-gcp-kms-wallet.ts similarity index 95% rename from src/server/utils/wallets/createGcpKmsWallet.ts rename to src/server/utils/wallets/create-gcp-kms-wallet.ts index d45fd0835..7a040f760 100644 --- a/src/server/utils/wallets/createGcpKmsWallet.ts +++ b/src/server/utils/wallets/create-gcp-kms-wallet.ts @@ -6,9 +6,9 @@ import { FetchGcpKmsWalletParamsError, fetchGcpKmsWalletParams, type GcpKmsWalletParams, -} from "./fetchGcpKmsWalletParams"; -import { getGcpKmsResourcePath } from "./gcpKmsResourcePath"; -import { getGcpKmsAccount } from "./getGcpKmsAccount"; +} from "./fetch-gcp-kms-wallet-params"; +import { getGcpKmsResourcePath } from "./gcp-kms-resource-path"; +import { getGcpKmsAccount } from "./get-gcp-kms-account"; export type CreateGcpKmsWalletParams = { label?: string; diff --git a/src/server/utils/wallets/createLocalWallet.ts b/src/server/utils/wallets/create-local-wallet.ts similarity index 100% rename from src/server/utils/wallets/createLocalWallet.ts rename to src/server/utils/wallets/create-local-wallet.ts diff --git a/src/server/utils/wallets/createSmartWallet.ts b/src/server/utils/wallets/create-smart-wallet.ts similarity index 93% rename from src/server/utils/wallets/createSmartWallet.ts rename to src/server/utils/wallets/create-smart-wallet.ts index d2e45a166..555f6e70f 100644 --- a/src/server/utils/wallets/createSmartWallet.ts +++ b/src/server/utils/wallets/create-smart-wallet.ts @@ -3,18 +3,18 @@ import { smartWallet, type Account } from "thirdweb/wallets"; 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"; +import { splitAwsKmsArn } from "./aws-kms-arn"; import { createAwsKmsKey, type CreateAwsKmsWalletParams, -} from "./createAwsKmsWallet"; +} from "./create-aws-kms-wallet"; import { createGcpKmsKey, type CreateGcpKmsWalletParams, -} from "./createGcpKmsWallet"; -import { generateLocalWallet } from "./createLocalWallet"; -import { getAwsKmsAccount } from "./getAwsKmsAccount"; -import { getGcpKmsAccount } from "./getGcpKmsAccount"; +} from "./create-gcp-kms-wallet"; +import { generateLocalWallet } from "./create-local-wallet"; +import { getAwsKmsAccount } from "./get-aws-kms-account"; +import { getGcpKmsAccount } from "./get-gcp-kms-account"; /** * Get a smart wallet address for a given admin account diff --git a/src/server/utils/wallets/fetchAwsKmsWalletParams.ts b/src/server/utils/wallets/fetch-aws-kms-wallet-params.ts similarity index 100% rename from src/server/utils/wallets/fetchAwsKmsWalletParams.ts rename to src/server/utils/wallets/fetch-aws-kms-wallet-params.ts diff --git a/src/server/utils/wallets/fetchGcpKmsWalletParams.ts b/src/server/utils/wallets/fetch-gcp-kms-wallet-params.ts similarity index 100% rename from src/server/utils/wallets/fetchGcpKmsWalletParams.ts rename to src/server/utils/wallets/fetch-gcp-kms-wallet-params.ts diff --git a/src/server/utils/wallets/gcpKmsResourcePath.ts b/src/server/utils/wallets/gcp-kms-resource-path.ts similarity index 100% rename from src/server/utils/wallets/gcpKmsResourcePath.ts rename to src/server/utils/wallets/gcp-kms-resource-path.ts diff --git a/src/server/utils/wallets/getAwsKmsAccount.ts b/src/server/utils/wallets/get-aws-kms-account.ts similarity index 100% rename from src/server/utils/wallets/getAwsKmsAccount.ts rename to src/server/utils/wallets/get-aws-kms-account.ts diff --git a/src/server/utils/wallets/getGcpKmsAccount.ts b/src/server/utils/wallets/get-gcp-kms-account.ts similarity index 100% rename from src/server/utils/wallets/getGcpKmsAccount.ts rename to src/server/utils/wallets/get-gcp-kms-account.ts diff --git a/src/server/utils/wallets/getLocalWallet.ts b/src/server/utils/wallets/get-local-wallet.ts similarity index 97% rename from src/server/utils/wallets/getLocalWallet.ts rename to src/server/utils/wallets/get-local-wallet.ts index ec4756789..1a9d4e040 100644 --- a/src/server/utils/wallets/getLocalWallet.ts +++ b/src/server/utils/wallets/get-local-wallet.ts @@ -9,7 +9,7 @@ import { env } from "../../../shared/utils/env"; import { logger } from "../../../shared/utils/logger"; import { thirdwebClient } from "../../../shared/utils/sdk"; import { badChainError } from "../../middleware/error"; -import { LocalFileStorage } from "../storage/localStorage"; +import { LocalFileStorage } from "../storage/local-storage"; interface GetLocalWalletParams { chainId: number; diff --git a/src/server/utils/wallets/getSmartWallet.ts b/src/server/utils/wallets/get-smart-wallet.ts similarity index 100% rename from src/server/utils/wallets/getSmartWallet.ts rename to src/server/utils/wallets/get-smart-wallet.ts diff --git a/src/server/utils/wallets/importAwsKmsWallet.ts b/src/server/utils/wallets/import-aws-kms-wallet.ts similarity index 91% rename from src/server/utils/wallets/importAwsKmsWallet.ts rename to src/server/utils/wallets/import-aws-kms-wallet.ts index da394e32e..364a2c0af 100644 --- a/src/server/utils/wallets/importAwsKmsWallet.ts +++ b/src/server/utils/wallets/import-aws-kms-wallet.ts @@ -1,8 +1,8 @@ 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"; -import { getAwsKmsAccount } from "./getAwsKmsAccount"; +import { splitAwsKmsArn } from "./aws-kms-arn"; +import { getAwsKmsAccount } from "./get-aws-kms-account"; interface ImportAwsKmsWalletParams { awsKmsArn: string; diff --git a/src/server/utils/wallets/importGcpKmsWallet.ts b/src/server/utils/wallets/import-gcp-kms-wallet.ts similarity index 95% rename from src/server/utils/wallets/importGcpKmsWallet.ts rename to src/server/utils/wallets/import-gcp-kms-wallet.ts index 57246ca78..5925ba503 100644 --- a/src/server/utils/wallets/importGcpKmsWallet.ts +++ b/src/server/utils/wallets/import-gcp-kms-wallet.ts @@ -1,7 +1,7 @@ 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"; +import { getGcpKmsAccount } from "./get-gcp-kms-account"; interface ImportGcpKmsWalletParams { gcpKmsResourcePath: string; diff --git a/src/server/utils/wallets/importLocalWallet.ts b/src/server/utils/wallets/import-local-wallet.ts similarity index 95% rename from src/server/utils/wallets/importLocalWallet.ts rename to src/server/utils/wallets/import-local-wallet.ts index a917c484f..38762f559 100644 --- a/src/server/utils/wallets/importLocalWallet.ts +++ b/src/server/utils/wallets/import-local-wallet.ts @@ -1,6 +1,6 @@ import { LocalWallet } from "@thirdweb-dev/wallets"; import { env } from "../../../shared/utils/env"; -import { LocalFileStorage } from "../storage/localStorage"; +import { LocalFileStorage } from "../storage/local-storage"; type ImportLocalWalletParams = | { diff --git a/src/shared/db/transactions/queue-tx.ts b/src/shared/db/transactions/queue-tx.ts index 181142fa8..e6a63843b 100644 --- a/src/shared/db/transactions/queue-tx.ts +++ b/src/shared/db/transactions/queue-tx.ts @@ -5,7 +5,7 @@ import type { ContractExtension } from "../../schemas/extension"; 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"; +import { parseTransactionOverrides } from "../../../server/utils/transaction-overrides"; interface QueueTxParams { // we should move away from Transaction type (v4 SDK) diff --git a/src/shared/utils/account.ts b/src/shared/utils/account.ts index 72126e9e7..496071e3d 100644 --- a/src/shared/utils/account.ts +++ b/src/shared/utils/account.ts @@ -7,14 +7,14 @@ import { type ParsedWalletDetails, } 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"; -import { getAwsKmsAccount } from "../../server/utils/wallets/getAwsKmsAccount"; -import { getGcpKmsAccount } from "../../server/utils/wallets/getGcpKmsAccount"; +import { splitAwsKmsArn } from "../../server/utils/wallets/aws-kms-arn"; +import { getConnectedSmartWallet } from "../../server/utils/wallets/create-smart-wallet"; +import { getAwsKmsAccount } from "../../server/utils/wallets/get-aws-kms-account"; +import { getGcpKmsAccount } from "../../server/utils/wallets/get-gcp-kms-account"; import { encryptedJsonToAccount, getLocalWalletAccount, -} from "../../server/utils/wallets/getLocalWallet"; +} from "../../server/utils/wallets/get-local-wallet"; import { getSmartWalletV5 } from "./cache/get-smart-wallet-v5"; import { getChain } from "./chain"; import { thirdwebClient } from "./sdk"; diff --git a/src/shared/utils/cache/get-wallet.ts b/src/shared/utils/cache/get-wallet.ts index 7ad7cdecb..4f3533410 100644 --- a/src/shared/utils/cache/get-wallet.ts +++ b/src/shared/utils/cache/get-wallet.ts @@ -10,10 +10,10 @@ import { import type { PrismaTransaction } from "../../schemas/prisma"; import { WalletType } from "../../schemas/wallet"; import { createCustomError } from "../../../server/middleware/error"; -import { splitAwsKmsArn } from "../../../server/utils/wallets/awsKmsArn"; -import { splitGcpKmsResourcePath } from "../../../server/utils/wallets/gcpKmsResourcePath"; -import { getLocalWallet } from "../../../server/utils/wallets/getLocalWallet"; -import { getSmartWallet } from "../../../server/utils/wallets/getSmartWallet"; +import { splitAwsKmsArn } from "../../../server/utils/wallets/aws-kms-arn"; +import { splitGcpKmsResourcePath } from "../../../server/utils/wallets/gcp-kms-resource-path"; +import { getLocalWallet } from "../../../server/utils/wallets/get-local-wallet"; +import { getSmartWallet } from "../../../server/utils/wallets/get-smart-wallet"; export const walletsCache = new LRUMap(2048); diff --git a/src/shared/utils/transaction/insert-transaction.ts b/src/shared/utils/transaction/insert-transaction.ts index 69737784f..625088a30 100644 --- a/src/shared/utils/transaction/insert-transaction.ts +++ b/src/shared/utils/transaction/insert-transaction.ts @@ -8,7 +8,7 @@ import { } 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 { SendTransactionQueue } from "../../../worker/queues/send-transaction-queue"; import { getChecksumAddress } from "../primitive-types"; import { recordMetrics } from "../prometheus"; import { reportUsage } from "../usage"; diff --git a/src/shared/utils/transaction/queue-transation.ts b/src/shared/utils/transaction/queue-transation.ts index c19ddbc30..b84a44515 100644 --- a/src/shared/utils/transaction/queue-transation.ts +++ b/src/shared/utils/transaction/queue-transation.ts @@ -8,8 +8,8 @@ import { } from "thirdweb"; import { resolvePromisedValue } from "thirdweb/utils"; import { createCustomError } from "../../../server/middleware/error"; -import type { txOverridesWithValueSchema } from "../../../server/schemas/txOverrides"; -import { parseTransactionOverrides } from "../../../server/utils/transactionOverrides"; +import type { txOverridesWithValueSchema } from "../../../server/schemas/tx-overrides"; +import { parseTransactionOverrides } from "../../../server/utils/transaction-overrides"; import { prettifyError } from "../error"; import { insertTransaction } from "./insert-transaction"; import type { InsertedTransaction } from "./types"; diff --git a/src/shared/utils/transaction/webhook.ts b/src/shared/utils/transaction/webhook.ts index 159844a9d..305a94c9e 100644 --- a/src/shared/utils/transaction/webhook.ts +++ b/src/shared/utils/transaction/webhook.ts @@ -1,5 +1,5 @@ import { WebhooksEventTypes } from "../../schemas/webhooks"; -import { SendWebhookQueue } from "../../../worker/queues/sendWebhookQueue"; +import { SendWebhookQueue } from "../../../worker/queues/send-webhook-queue"; import type { AnyTransaction } from "./types"; export const enqueueTransactionWebhook = async ( diff --git a/src/shared/utils/usage.ts b/src/shared/utils/usage.ts index 97de003e3..957ac669a 100644 --- a/src/shared/utils/usage.ts +++ b/src/shared/utils/usage.ts @@ -2,9 +2,9 @@ import type { Static } from "@sinclair/typebox"; import type { UsageEvent } from "@thirdweb-dev/service-utils/cf-worker"; import type { FastifyInstance } from "fastify"; import type { Address, Hex } from "thirdweb"; -import { ADMIN_QUEUES_BASEPATH } from "../../server/middleware/adminRoutes"; -import { OPENAPI_ROUTES } from "../../server/middleware/openApi"; -import type { contractParamSchema } from "../../server/schemas/sharedApiSchemas"; +import { ADMIN_QUEUES_BASEPATH } from "../../server/middleware/admin-routes"; +import { OPENAPI_ROUTES } from "../../server/middleware/open-api"; +import type { contractParamSchema } from "../../server/schemas/shared-api-schemas"; import type { walletWithAddressParamSchema } from "../../server/schemas/wallet"; import { getChainIdFromChain } from "../../server/utils/chain"; import { env } from "./env"; diff --git a/src/worker/index.ts b/src/worker/index.ts index cd9867a25..dce96767f 100644 --- a/src/worker/index.ts +++ b/src/worker/index.ts @@ -1,21 +1,21 @@ -import { chainIndexerListener } from "./listeners/chainIndexerListener"; +import { chainIndexerListener } from "./listeners/chain-indexer-listener"; import { newConfigurationListener, updatedConfigurationListener, -} from "./listeners/configListener"; +} from "./listeners/config-listener"; import { newWebhooksListener, updatedWebhooksListener, -} from "./listeners/webhookListener"; -import { initCancelRecycledNoncesWorker } from "./tasks/cancelRecycledNoncesWorker"; -import { initMineTransactionWorker } from "./tasks/mineTransactionWorker"; -import { initNonceHealthCheckWorker } from "./tasks/nonceHealthCheckWorker"; -import { initNonceResyncWorker } from "./tasks/nonceResyncWorker"; -import { initProcessEventLogsWorker } from "./tasks/processEventLogsWorker"; -import { initProcessTransactionReceiptsWorker } from "./tasks/processTransactionReceiptsWorker"; -import { initPruneTransactionsWorker } from "./tasks/pruneTransactionsWorker"; -import { initSendTransactionWorker } from "./tasks/sendTransactionWorker"; -import { initSendWebhookWorker } from "./tasks/sendWebhookWorker"; +} from "./listeners/webhook-listener"; +import { initCancelRecycledNoncesWorker } from "./tasks/cancel-recycled-nonces-worker"; +import { initMineTransactionWorker } from "./tasks/mine-transaction-worker"; +import { initNonceHealthCheckWorker } from "./tasks/nonce-health-check-worker"; +import { initNonceResyncWorker } from "./tasks/nonce-resync-worker"; +import { initProcessEventLogsWorker } from "./tasks/process-event-logs-worker"; +import { initProcessTransactionReceiptsWorker } from "./tasks/process-transaction-receipts-worker"; +import { initPruneTransactionsWorker } from "./tasks/prune-transactions-worker"; +import { initSendTransactionWorker } from "./tasks/send-transaction-worker"; +import { initSendWebhookWorker } from "./tasks/send-webhook-worker"; export const initWorker = async () => { initCancelRecycledNoncesWorker(); diff --git a/src/worker/indexers/chainIndexerRegistry.ts b/src/worker/indexers/chain-indexer-registry.ts similarity index 96% rename from src/worker/indexers/chainIndexerRegistry.ts rename to src/worker/indexers/chain-indexer-registry.ts index d8d540535..ed091e288 100644 --- a/src/worker/indexers/chainIndexerRegistry.ts +++ b/src/worker/indexers/chain-indexer-registry.ts @@ -1,7 +1,7 @@ import cron from "node-cron"; import { getBlockTimeSeconds } from "../../shared/utils/indexer/get-block-time"; import { logger } from "../../shared/utils/logger"; -import { handleContractSubscriptions } from "../tasks/chainIndexer"; +import { handleContractSubscriptions } from "../tasks/chain-indexer"; // @TODO: Move all worker logic to Bullmq to better handle multiple hosts. export const INDEXER_REGISTRY = {} as Record; diff --git a/src/worker/listeners/chainIndexerListener.ts b/src/worker/listeners/chain-indexer-listener.ts similarity index 92% rename from src/worker/listeners/chainIndexerListener.ts rename to src/worker/listeners/chain-indexer-listener.ts index a9f08a55f..f2c05e6e0 100644 --- a/src/worker/listeners/chainIndexerListener.ts +++ b/src/worker/listeners/chain-indexer-listener.ts @@ -1,7 +1,7 @@ import cron from "node-cron"; import { getConfig } from "../../shared/utils/cache/get-config"; import { logger } from "../../shared/utils/logger"; -import { manageChainIndexers } from "../tasks/manageChainIndexers"; +import { manageChainIndexers } from "../tasks/manage-chain-indexers"; let processChainIndexerStarted = false; let task: cron.ScheduledTask; diff --git a/src/worker/listeners/configListener.ts b/src/worker/listeners/config-listener.ts similarity index 97% rename from src/worker/listeners/configListener.ts rename to src/worker/listeners/config-listener.ts index fd4aa331d..a52483bad 100644 --- a/src/worker/listeners/configListener.ts +++ b/src/worker/listeners/config-listener.ts @@ -2,7 +2,7 @@ import { knex } from "../../shared/db/client"; 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"; +import { chainIndexerListener } from "./chain-indexer-listener"; export const newConfigurationListener = async (): Promise => { logger({ diff --git a/src/worker/listeners/webhookListener.ts b/src/worker/listeners/webhook-listener.ts similarity index 100% rename from src/worker/listeners/webhookListener.ts rename to src/worker/listeners/webhook-listener.ts diff --git a/src/worker/queues/cancelRecycledNoncesQueue.ts b/src/worker/queues/cancel-recycled-nonces-queue.ts similarity index 100% rename from src/worker/queues/cancelRecycledNoncesQueue.ts rename to src/worker/queues/cancel-recycled-nonces-queue.ts diff --git a/src/worker/queues/mineTransactionQueue.ts b/src/worker/queues/mine-transaction-queue.ts similarity index 100% rename from src/worker/queues/mineTransactionQueue.ts rename to src/worker/queues/mine-transaction-queue.ts diff --git a/src/worker/queues/nonceHealthCheckQueue.ts b/src/worker/queues/nonce-health-check-queue.ts similarity index 100% rename from src/worker/queues/nonceHealthCheckQueue.ts rename to src/worker/queues/nonce-health-check-queue.ts diff --git a/src/worker/queues/nonceResyncQueue.ts b/src/worker/queues/nonce-resync-queue.ts similarity index 100% rename from src/worker/queues/nonceResyncQueue.ts rename to src/worker/queues/nonce-resync-queue.ts diff --git a/src/worker/queues/processEventLogsQueue.ts b/src/worker/queues/process-event-logs-queue.ts similarity index 100% rename from src/worker/queues/processEventLogsQueue.ts rename to src/worker/queues/process-event-logs-queue.ts diff --git a/src/worker/queues/processTransactionReceiptsQueue.ts b/src/worker/queues/process-transaction-receipts-queue.ts similarity index 100% rename from src/worker/queues/processTransactionReceiptsQueue.ts rename to src/worker/queues/process-transaction-receipts-queue.ts diff --git a/src/worker/queues/pruneTransactionsQueue.ts b/src/worker/queues/prune-transactions-queue.ts similarity index 100% rename from src/worker/queues/pruneTransactionsQueue.ts rename to src/worker/queues/prune-transactions-queue.ts diff --git a/src/worker/queues/sendTransactionQueue.ts b/src/worker/queues/send-transaction-queue.ts similarity index 100% rename from src/worker/queues/sendTransactionQueue.ts rename to src/worker/queues/send-transaction-queue.ts diff --git a/src/worker/queues/sendWebhookQueue.ts b/src/worker/queues/send-webhook-queue.ts similarity index 100% rename from src/worker/queues/sendWebhookQueue.ts rename to src/worker/queues/send-webhook-queue.ts diff --git a/src/worker/tasks/cancelRecycledNoncesWorker.ts b/src/worker/tasks/cancel-recycled-nonces-worker.ts similarity index 97% rename from src/worker/tasks/cancelRecycledNoncesWorker.ts rename to src/worker/tasks/cancel-recycled-nonces-worker.ts index 0ac34b2a1..50a27cbc6 100644 --- a/src/worker/tasks/cancelRecycledNoncesWorker.ts +++ b/src/worker/tasks/cancel-recycled-nonces-worker.ts @@ -5,7 +5,7 @@ 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/cancel-transaction"; -import { CancelRecycledNoncesQueue } from "../queues/cancelRecycledNoncesQueue"; +import { CancelRecycledNoncesQueue } from "../queues/cancel-recycled-nonces-queue"; import { logWorkerExceptions } from "../queues/queues"; // Must be explicitly called for the worker to run on this host. diff --git a/src/worker/tasks/chainIndexer.ts b/src/worker/tasks/chain-indexer.ts similarity index 97% rename from src/worker/tasks/chainIndexer.ts rename to src/worker/tasks/chain-indexer.ts index ee29f88d2..c318aa3ef 100644 --- a/src/worker/tasks/chainIndexer.ts +++ b/src/worker/tasks/chain-indexer.ts @@ -11,8 +11,8 @@ import { getContractSubscriptionsByChainId } from "../../shared/db/contract-subs import { getChain } from "../../shared/utils/chain"; import { logger } from "../../shared/utils/logger"; import { thirdwebClient } from "../../shared/utils/sdk"; -import { ProcessEventsLogQueue } from "../queues/processEventLogsQueue"; -import { ProcessTransactionReceiptsQueue } from "../queues/processTransactionReceiptsQueue"; +import { ProcessEventsLogQueue } from "../queues/process-event-logs-queue"; +import { ProcessTransactionReceiptsQueue } from "../queues/process-transaction-receipts-queue"; // A reasonable block range that is within RPC limits. // The minimum job time is 1 second, so this value should higher than the # blocks per second diff --git a/src/worker/tasks/manageChainIndexers.ts b/src/worker/tasks/manage-chain-indexers.ts similarity index 93% rename from src/worker/tasks/manageChainIndexers.ts rename to src/worker/tasks/manage-chain-indexers.ts index ef13d227f..84724e916 100644 --- a/src/worker/tasks/manageChainIndexers.ts +++ b/src/worker/tasks/manage-chain-indexers.ts @@ -3,7 +3,7 @@ import { INDEXER_REGISTRY, addChainIndexer, removeChainIndexer, -} from "../indexers/chainIndexerRegistry"; +} from "../indexers/chain-indexer-registry"; export const manageChainIndexers = async () => { const chainIdsToIndex = await getContractSubscriptionsUniqueChainIds(); diff --git a/src/worker/tasks/mineTransactionWorker.ts b/src/worker/tasks/mine-transaction-worker.ts similarity index 98% rename from src/worker/tasks/mineTransactionWorker.ts rename to src/worker/tasks/mine-transaction-worker.ts index 11440400c..9d3dd8d3c 100644 --- a/src/worker/tasks/mineTransactionWorker.ts +++ b/src/worker/tasks/mine-transaction-worker.ts @@ -41,9 +41,9 @@ import { reportUsage } from "../../shared/utils/usage"; import { MineTransactionQueue, type MineTransactionData, -} from "../queues/mineTransactionQueue"; -import { SendTransactionQueue } from "../queues/sendTransactionQueue"; -import { SendWebhookQueue } from "../queues/sendWebhookQueue"; +} from "../queues/mine-transaction-queue"; +import { SendTransactionQueue } from "../queues/send-transaction-queue"; +import { SendWebhookQueue } from "../queues/send-webhook-queue"; /** * Check if the submitted transaction or userOp is mined onchain. diff --git a/src/worker/tasks/nonceHealthCheckWorker.ts b/src/worker/tasks/nonce-health-check-worker.ts similarity index 98% rename from src/worker/tasks/nonceHealthCheckWorker.ts rename to src/worker/tasks/nonce-health-check-worker.ts index 0032dec6c..839fb794b 100644 --- a/src/worker/tasks/nonceHealthCheckWorker.ts +++ b/src/worker/tasks/nonce-health-check-worker.ts @@ -7,7 +7,7 @@ import { import { getLastUsedOnchainNonce } from "../../server/routes/admin/nonces"; import { logger } from "../../shared/utils/logger"; import { redis } from "../../shared/utils/redis/redis"; -import { NonceHealthCheckQueue } from "../queues/nonceHealthCheckQueue"; +import { NonceHealthCheckQueue } from "../queues/nonce-health-check-queue"; import { logWorkerExceptions } from "../queues/queues"; // Configuration diff --git a/src/worker/tasks/nonceResyncWorker.ts b/src/worker/tasks/nonce-resync-worker.ts similarity index 97% rename from src/worker/tasks/nonceResyncWorker.ts rename to src/worker/tasks/nonce-resync-worker.ts index da4dffacc..d7ccfe553 100644 --- a/src/worker/tasks/nonceResyncWorker.ts +++ b/src/worker/tasks/nonce-resync-worker.ts @@ -12,7 +12,7 @@ import { prettifyError } from "../../shared/utils/error"; import { logger } from "../../shared/utils/logger"; import { redis } from "../../shared/utils/redis/redis"; import { thirdwebClient } from "../../shared/utils/sdk"; -import { NonceResyncQueue } from "../queues/nonceResyncQueue"; +import { NonceResyncQueue } from "../queues/nonce-resync-queue"; import { logWorkerExceptions } from "../queues/queues"; // Must be explicitly called for the worker to run on this host. diff --git a/src/worker/tasks/processEventLogsWorker.ts b/src/worker/tasks/process-event-logs-worker.ts similarity index 98% rename from src/worker/tasks/processEventLogsWorker.ts rename to src/worker/tasks/process-event-logs-worker.ts index 3b56d9621..e4e43bfd2 100644 --- a/src/worker/tasks/processEventLogsWorker.ts +++ b/src/worker/tasks/process-event-logs-worker.ts @@ -26,9 +26,9 @@ import { thirdwebClient } from "../../shared/utils/sdk"; import { type EnqueueProcessEventLogsData, ProcessEventsLogQueue, -} from "../queues/processEventLogsQueue"; +} from "../queues/process-event-logs-queue"; import { logWorkerExceptions } from "../queues/queues"; -import { SendWebhookQueue } from "../queues/sendWebhookQueue"; +import { SendWebhookQueue } from "../queues/send-webhook-queue"; const handler: Processor = async (job: Job) => { const { diff --git a/src/worker/tasks/processTransactionReceiptsWorker.ts b/src/worker/tasks/process-transaction-receipts-worker.ts similarity index 97% rename from src/worker/tasks/processTransactionReceiptsWorker.ts rename to src/worker/tasks/process-transaction-receipts-worker.ts index 620b316f2..8605cb257 100644 --- a/src/worker/tasks/processTransactionReceiptsWorker.ts +++ b/src/worker/tasks/process-transaction-receipts-worker.ts @@ -22,10 +22,10 @@ import { thirdwebClient } from "../../shared/utils/sdk"; import { ProcessTransactionReceiptsQueue, type EnqueueProcessTransactionReceiptsData, -} from "../queues/processTransactionReceiptsQueue"; +} from "../queues/process-transaction-receipts-queue"; import { logWorkerExceptions } from "../queues/queues"; -import { SendWebhookQueue } from "../queues/sendWebhookQueue"; -import { getWebhooksByContractAddresses } from "./processEventLogsWorker"; +import { SendWebhookQueue } from "../queues/send-webhook-queue"; +import { getWebhooksByContractAddresses } from "./process-event-logs-worker"; const handler: Processor = async (job: Job) => { const { diff --git a/src/worker/tasks/pruneTransactionsWorker.ts b/src/worker/tasks/prune-transactions-worker.ts similarity index 93% rename from src/worker/tasks/pruneTransactionsWorker.ts rename to src/worker/tasks/prune-transactions-worker.ts index 190622969..160f70e02 100644 --- a/src/worker/tasks/pruneTransactionsWorker.ts +++ b/src/worker/tasks/prune-transactions-worker.ts @@ -3,7 +3,7 @@ import { TransactionDB } from "../../shared/db/transactions/db"; 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"; +import { PruneTransactionsQueue } from "../queues/prune-transactions-queue"; import { logWorkerExceptions } from "../queues/queues"; const handler: Processor = async (job: Job) => { diff --git a/src/worker/tasks/sendTransactionWorker.ts b/src/worker/tasks/send-transaction-worker.ts similarity index 99% rename from src/worker/tasks/sendTransactionWorker.ts rename to src/worker/tasks/send-transaction-worker.ts index 8c662f7e7..feee2b500 100644 --- a/src/worker/tasks/sendTransactionWorker.ts +++ b/src/worker/tasks/send-transaction-worker.ts @@ -52,12 +52,12 @@ import type { } from "../../shared/utils/transaction/types"; import { enqueueTransactionWebhook } from "../../shared/utils/transaction/webhook"; import { reportUsage } from "../../shared/utils/usage"; -import { MineTransactionQueue } from "../queues/mineTransactionQueue"; +import { MineTransactionQueue } from "../queues/mine-transaction-queue"; import { logWorkerExceptions } from "../queues/queues"; import { SendTransactionQueue, type SendTransactionData, -} from "../queues/sendTransactionQueue"; +} from "../queues/send-transaction-queue"; /** * Submit a transaction to RPC (EOA transactions) or bundler (userOps). diff --git a/src/worker/tasks/sendWebhookWorker.ts b/src/worker/tasks/send-webhook-worker.ts similarity index 96% rename from src/worker/tasks/sendWebhookWorker.ts rename to src/worker/tasks/send-webhook-worker.ts index bd62edc40..b2bcf5147 100644 --- a/src/worker/tasks/sendWebhookWorker.ts +++ b/src/worker/tasks/send-webhook-worker.ts @@ -6,19 +6,19 @@ import { WebhooksEventTypes, type BackendWalletBalanceWebhookParams, } from "../../shared/schemas/webhooks"; -import { toEventLogSchema } from "../../server/schemas/eventLog"; +import { toEventLogSchema } from "../../server/schemas/event-log"; import { toTransactionSchema, type TransactionSchema, } from "../../server/schemas/transaction"; -import { toTransactionReceiptSchema } from "../../server/schemas/transactionReceipt"; +import { toTransactionReceiptSchema } from "../../server/schemas/transaction-receipt"; import { logger } from "../../shared/utils/logger"; import { redis } from "../../shared/utils/redis/redis"; import { sendWebhookRequest, type WebhookResponse, } from "../../shared/utils/webhook"; -import { SendWebhookQueue, type WebhookJob } from "../queues/sendWebhookQueue"; +import { SendWebhookQueue, type WebhookJob } from "../queues/send-webhook-queue"; const handler: Processor = async (job: Job) => { const { data, webhook } = superjson.parse(job.data); diff --git a/tests/unit/aws-arn.test.ts b/tests/unit/aws-arn.test.ts index 8b46025f3..90bafed78 100644 --- a/tests/unit/aws-arn.test.ts +++ b/tests/unit/aws-arn.test.ts @@ -2,7 +2,7 @@ import { describe, expect, it } from "vitest"; import { getAwsKmsArn, splitAwsKmsArn, -} from "../../src/server/utils/wallets/awsKmsArn"; +} from "../../src/server/utils/wallets/aws-kms-arn"; describe("splitAwsKmsArn", () => { it("should correctly split a valid AWS KMS ARN", () => { diff --git a/tests/unit/aws-kms.test.ts b/tests/unit/aws-kms.test.ts index b02c4e28a..d4d95322b 100644 --- a/tests/unit/aws-kms.test.ts +++ b/tests/unit/aws-kms.test.ts @@ -11,7 +11,7 @@ import { import { toUnits, toWei } from "thirdweb/utils"; import { getWalletBalance } from "thirdweb/wallets"; import { TEST_CLIENT } from "../shared/client.ts"; -import { getAwsKmsAccount } from "../../src/server/utils/wallets/getAwsKmsAccount"; +import { getAwsKmsAccount } from "../../src/server/utils/wallets/get-aws-kms-account"; import { TEST_AWS_KMS_CONFIG } from "../shared/aws-kms.ts"; let account: Awaited>; diff --git a/tests/unit/gcp-kms.test.ts b/tests/unit/gcp-kms.test.ts index 1f2d183cc..fbb71bff8 100644 --- a/tests/unit/gcp-kms.test.ts +++ b/tests/unit/gcp-kms.test.ts @@ -10,7 +10,7 @@ import { } from "thirdweb/transaction"; import { toUnits, toWei } from "thirdweb/utils"; import { getWalletBalance } from "thirdweb/wallets"; -import { getGcpKmsAccount } from "../../src/server/utils/wallets/getGcpKmsAccount"; +import { getGcpKmsAccount } from "../../src/server/utils/wallets/get-gcp-kms-account"; import { TEST_GCP_KMS_CONFIG } from "../shared/gcp-kms"; import { TEST_CLIENT } from "../shared/client"; diff --git a/tests/unit/gcp-resource-path.test.ts b/tests/unit/gcp-resource-path.test.ts index 52a497d2a..c7097868c 100644 --- a/tests/unit/gcp-resource-path.test.ts +++ b/tests/unit/gcp-resource-path.test.ts @@ -2,7 +2,7 @@ import { describe, expect, it } from "vitest"; import { getGcpKmsResourcePath, splitGcpKmsResourcePath, -} from "../../src/server/utils/wallets/gcpKmsResourcePath"; +} from "../../src/server/utils/wallets/gcp-kms-resource-path"; describe("splitGcpKmsResourcePath", () => { it("should correctly split a valid GCP KMS resource path", () => {