thirdweb-dev / engine

The most powerful backend engine for web3 apps.
https://thirdweb.com/engine
Apache License 2.0
152 stars 59 forks source link

[WIP] Transaction workers to Redis #554

Closed arcoraven closed 2 months ago

arcoraven commented 4 months ago

PR-Codex overview

This PR focuses on optimizing SDK configurations, updating dependencies, adding new queue classes, improving address schema, and enhancing authentication middleware.

Detailed summary

The following files were skipped due to too many changes: src/server/routes/deploy/prebuilts/nftDrop.ts, src/utils/cache/getContractv5.ts, src/server/routes/deploy/prebuilts/multiwrap.ts, src/server/routes/deploy/prebuilts/editionDrop.ts, src/server/routes/deploy/prebuilts/marketplaceV3.ts, src/server/routes/deploy/prebuilts/nftCollection.ts, test/e2e/utils/statistics.ts, src/utils/transaction/webhook.ts, src/server/routes/deploy/prebuilts/vote.ts, src/server/routes/deploy/prebuilts/token.ts, src/server/routes/deploy/prebuilts/split.ts, src/server/routes/deploy/prebuilts/tokenDrop.ts, src/server/routes/deploy/prebuilts/signatureDrop.ts, src/worker/listeners/configListener.ts, src/server/routes/contract/extensions/accountFactory/write/createAccount.ts, src/server/listeners/updateTxListener.ts, test/e2e/tests/smoke.test.ts, src/server/index.ts, src/worker/listeners/retryTxListener.ts, test/e2e/scripts/counter.ts, package.json, src/server/routes/relayer/create.ts, src/utils/cache/getConfig.ts, src/utils/block.ts, src/worker/listeners/minedTxListener.ts, src/utils/redis/redis.ts, src/server/routes/backend-wallet/resetNonces.ts, src/worker/tasks/pruneTransactionsWorker.ts, src/worker/tasks/chainIndexer.ts, src/server/routes/backend-wallet/getBalance.ts, src/worker/queues/queues.ts, test/e2e/README.md, src/worker/queues/sendTransactionQueue.ts, test/e2e/config.ts, src/server/routes/system/health.ts, src/utils/ethers.ts, src/worker/queues/mineTransactionQueue.ts, src/server/utils/wallets/getLocalWallet.ts, test/e2e/tests/setup.ts, src/server/routes/transaction/blockchain/sendSignedUserOp.ts, src/utils/transaction/cancelTransaction.ts, src/server/routes/contract/extensions/erc20/read/signatureGenerate.ts, src/server/routes/contract/extensions/erc721/read/signatureGenerate.ts, src/utils/primitiveTypes.ts, src/server/routes/index.ts, src/utils/cache/getSmartWalletV5.ts, test/e2e/utils/anvil.ts, src/utils/webhook.ts, src/server/routes/contract/extensions/erc1155/read/signatureGenerate.ts, src/utils/error.ts, src/utils/transaction/simulateQueuedTransaction.ts, src/index.ts, src/server/routes/transaction/blockchain/sendSignedTx.ts, src/server/middleware/error.ts, src/server/utils/websocket.ts, src/server/routes/backend-wallet/getTransactions.ts, test/e2e/utils/engine.ts, src/utils/env.ts, src/server/routes/transaction/status.ts, src/utils/account.ts, src/server/routes/transaction/retry.ts, test/e2e/utils/transactions.ts, src/worker/tasks/sendWebhookWorker.ts, src/utils/transaction/insertTransaction.ts, test/e2e/tests/extensions.test.ts, test/e2e/.gitignore, src/server/routes/backend-wallet/getNonce.ts, src/worker/index.ts, src/utils/transaction/types.ts, src/server/routes/contract/extensions/erc20/write/claimTo.ts, src/server/routes/contract/extensions/erc721/write/claimTo.ts, src/worker/queues/processEventLogsQueue.ts, src/server/routes/contract/extensions/erc1155/write/claimTo.ts, src/server/schemas/wallet/index.ts, src/worker/tasks/cancelRecycledNoncesWorker.ts, src/server/routes/transaction/getAll.ts, src/server/routes/system/queue.ts, src/worker/queues/processTransactionReceiptsQueue.ts, test/e2e/tests/load.test.ts, src/server/routes/transaction/getAllDeployedContracts.ts, src/utils/transaction/userOperation.ts, src/server/middleware/adminRoutes.ts, src/db/configuration/getConfiguration.ts, src/server/routes/backend-wallet/sendTransactionBatch.ts, src/server/routes/backend-wallet/sendTransaction.ts, src/worker/tasks/processEventLogsWorker.ts, src/worker/tasks/processTransactionReceiptsWorker.ts, src/server/routes/transaction/cancel.ts, src/worker/tasks/nonceResyncWorker.ts, src/server/routes/backend-wallet/simulateTransaction.ts, src/server/routes/backend-wallet/withdraw.ts, src/server/routes/admin/transaction.ts, src/db/transactions/queueTx.ts, src/db/transactions/db.ts, src/server/routes/transaction/syncRetry.ts, src/db/wallets/walletNonce.ts, src/utils/usage.ts, src/server/routes/backend-wallet/transfer.ts, src/server/schemas/transaction/index.ts, src/worker/queues/sendWebhookQueue.ts, src/worker/tasks/migratePostgresTransactionsWorker.ts, src/worker/tasks/mineTransactionWorker.ts, src/worker/tasks/sendTransactionWorker.ts, yarn.lock

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

socket-security[bot] commented 4 months ago

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@bull-board/api@5.21.1 eval 0 63.8 kB felixmosh
npm/@bull-board/fastify@5.21.1 None 0 12.5 kB felixmosh
npm/@bull-board/ui@5.21.1 None 0 3.34 MB felixmosh
npm/@fastify/accept-negotiator@1.1.0 None 0 8.2 kB eomm
npm/@fastify/basic-auth@5.1.1 None 0 49.9 kB eomm
npm/@fastify/send@2.1.0 network 0 139 kB eomm
npm/@fastify/static@6.12.0 None 0 411 kB eomm
npm/@fastify/view@8.2.0 environment 0 327 kB matteo.collina
npm/@lukeed/ms@2.0.2 None 0 9.39 kB lukeed
npm/@types/bun@1.1.6 None +2 2.43 MB types
npm/bullmq@5.11.0 environment, filesystem, network, shell 0 1.62 MB manast
npm/chalk@4.1.2 None 0 35 kB sindresorhus
npm/ejs@3.1.10 eval, filesystem 0 143 kB mde
npm/filelist@1.0.4 filesystem 0 18.6 kB mde
npm/glob@8.1.0 filesystem 0 56.2 kB isaacs
npm/has-flag@4.0.0 None 0 4.42 kB sindresorhus
npm/hashlru@2.3.0 None 0 8.63 kB dominictarr
npm/jake@10.9.2 environment, filesystem, shell 0 175 kB mde
npm/mime@3.0.0 None 0 60.1 kB broofa
npm/redis-info@3.1.0 None 0 21.2 kB fgribreau
npm/supports-color@7.2.0 None 0 7.04 kB sindresorhus
npm/tsup@8.2.4 eval, filesystem Transitive: environment, network, shell, unsafe +91 287 MB egoist
npm/viem@2.10.9 network 0 12.2 MB jmoxey

🚮 Removed packages: npm/bullmq@5.7.14), npm/mime@1.6.0), npm/viem@1.21.4)

View full report↗︎