Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@sinclair/typebox": "^0.28",
"@t3-oss/env-core": "^0.6.0",
"@thirdweb-dev/chains": "^0.1.46",
"@thirdweb-dev/sdk": "3.10.59",
"@thirdweb-dev/sdk": "^3.10.60",
"@thirdweb-dev/service-utils": "^0.4.2",
"@thirdweb-dev/wallets": "^1.1.23",
"body-parser": "^1.20.2",
Expand Down
5 changes: 3 additions & 2 deletions worker/services/dbOperations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { TransactionSchema } from "../../server/schemas/transaction";

const TRANSACTIONS_TO_BATCH = env.TRANSACTIONS_TO_BATCH;
const MIN_TX_TO_CHECK_FOR_MINED_STATUS = env.MIN_TX_TO_CHECK_FOR_MINED_STATUS;
const MAX_RETRIES_FOR_TX = env.MAX_RETRIES_FOR_TX;

export const getWalletDetailsWithTransaction = async (
walletAddress: string,
Expand Down Expand Up @@ -163,7 +164,7 @@ export const getSubmittedTransactions = async (
and "txMined" = false
and "txErrored" = false
and "txHash" is not null
and "numberOfRetries" < 3
and "numberOfRetries" < ${MAX_RETRIES_FOR_TX}
order by "txSubmittedTimestamp" ASC
limit ${MIN_TX_TO_CHECK_FOR_MINED_STATUS}`,
);
Expand All @@ -182,7 +183,7 @@ export const getTransactionForRetry = async (
and "txMined" = false
and "txErrored" = false
and "txHash" is not null
and "numberOfRetries" < 3
and "numberOfRetries" < ${MAX_RETRIES_FOR_TX}
order by "txSubmittedTimestamp" ASC
limit 1
for update skip locked`,
Expand Down
46 changes: 46 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2778,6 +2778,11 @@
resolved "https://registry.yarnpkg.com/@thirdweb-dev/chains/-/chains-0.1.50.tgz#857ce24a30821497974e55d75e721905cb35ca33"
integrity sha512-0rpBdFVgTE5mjgbafoBkpUnq0izx9NZz0mfFammQXWb08eQZUueuBHOVNhK2pRQT346SpQLtf65Oqag82+zZoA==

"@thirdweb-dev/chains@0.1.51":
version "0.1.51"
resolved "https://registry.yarnpkg.com/@thirdweb-dev/chains/-/chains-0.1.51.tgz#daa8d7374a150fc2a62db4d410748ddb5c15e03b"
integrity sha512-kjz1suMgHAlLJAEcvY/1pJgeB4lI4Ngxa0G87MOj1dmU9bSZkl4cFdMGaPN7abBf3l/IVVvkPNl3nb9Dc0DfBA==

"@thirdweb-dev/chains@^0.1.46":
version "0.1.46"
resolved "https://registry.yarnpkg.com/@thirdweb-dev/chains/-/chains-0.1.46.tgz#d115c0b8efb02e74ee38ef8c1237bdf476e62717"
Expand All @@ -2790,6 +2795,24 @@
dependencies:
"@thirdweb-dev/contracts" "3.8.5"

"@thirdweb-dev/contracts-js@1.3.13":
version "1.3.13"
resolved "https://registry.yarnpkg.com/@thirdweb-dev/contracts-js/-/contracts-js-1.3.13.tgz#17b07f7ead147177aa979dd8f850030d4b31bc68"
integrity sha512-GKg3tqE7KZOApRBsK7F6YvP78TgcQR0p2u67tsdp8+bp7MYrJwLgGKTmsWMWo2lY+Tbu2y9Rj18Z2MZaoCuQTQ==
dependencies:
"@thirdweb-dev/contracts" "3.10.0"

"@thirdweb-dev/contracts@3.10.0":
version "3.10.0"
resolved "https://registry.yarnpkg.com/@thirdweb-dev/contracts/-/contracts-3.10.0.tgz#162d3b090ee576a18f530a3997f820600aab5f73"
integrity sha512-IGnFev/ooS4y/oh+wURuv0E32ztYDeZk7RdWO0si1YY5vDMSbVu/TBhlhmLPcfIZWs0IjCAoA6H/Zy5QV5mkhw==
dependencies:
"@chainlink/contracts" "^0.6.1"
"@openzeppelin/contracts" "4.7.3"
"@openzeppelin/contracts-upgradeable" "4.7.3"
"@thirdweb-dev/dynamic-contracts" "^1.1.2"
erc721a-upgradeable "^3.3.0"

"@thirdweb-dev/contracts@3.8.5":
version "3.8.5"
resolved "https://registry.yarnpkg.com/@thirdweb-dev/contracts/-/contracts-3.8.5.tgz#7c9e95808c74a43830408cb1c8a2f477c45cc371"
Expand Down Expand Up @@ -2834,6 +2857,29 @@
yaml "^2.3.1"
zod "^3.20.2"

"@thirdweb-dev/sdk@^3.10.60":
version "3.10.60"
resolved "https://registry.yarnpkg.com/@thirdweb-dev/sdk/-/sdk-3.10.60.tgz#89499f346b19d789557d77fa26187de4b04a6913"
integrity sha512-3a4XuZ2Q0eneRsrKUhSzKmxjaY+XMKm8q4RMnqrNiY6ENv8rEslNu/N0fP3JBcUFnnUKRKo0roBObjZgGIS4wQ==
dependencies:
"@thirdweb-dev/chains" "0.1.51"
"@thirdweb-dev/contracts-js" "1.3.13"
"@thirdweb-dev/generated-abis" "0.0.1"
"@thirdweb-dev/storage" "1.2.10"
abitype "^0.2.5"
bn.js "^5.2.1"
bs58 "^5.0.0"
buffer "^6.0.3"
cross-fetch "^3.1.8"
eventemitter3 "^5.0.1"
fast-deep-equal "^3.1.3"
merkletreejs "^0.2.24"
tiny-invariant "^1.2.0"
tweetnacl "^1.0.3"
uuid "^9.0.0"
yaml "^2.3.1"
zod "^3.20.2"

"@thirdweb-dev/service-utils@^0.4.2":
version "0.4.2"
resolved "https://registry.yarnpkg.com/@thirdweb-dev/service-utils/-/service-utils-0.4.2.tgz#bb22fcb38349bf4c5879cbfc105902d3cc32413a"
Expand Down