Skip to content

Commit 4d3b359

Browse files
authored
Updated sdk to 3.10.60 & used retry var (#129)
1 parent 868c26d commit 4d3b359

File tree

3 files changed

+50
-3
lines changed

3 files changed

+50
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"@sinclair/typebox": "^0.28",
4040
"@t3-oss/env-core": "^0.6.0",
4141
"@thirdweb-dev/chains": "^0.1.46",
42-
"@thirdweb-dev/sdk": "3.10.59",
42+
"@thirdweb-dev/sdk": "^3.10.60",
4343
"@thirdweb-dev/service-utils": "^0.4.2",
4444
"@thirdweb-dev/wallets": "^1.1.23",
4545
"body-parser": "^1.20.2",

worker/services/dbOperations.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { TransactionSchema } from "../../server/schemas/transaction";
55

66
const TRANSACTIONS_TO_BATCH = env.TRANSACTIONS_TO_BATCH;
77
const MIN_TX_TO_CHECK_FOR_MINED_STATUS = env.MIN_TX_TO_CHECK_FOR_MINED_STATUS;
8+
const MAX_RETRIES_FOR_TX = env.MAX_RETRIES_FOR_TX;
89

910
export const getWalletDetailsWithTransaction = async (
1011
walletAddress: string,
@@ -163,7 +164,7 @@ export const getSubmittedTransactions = async (
163164
and "txMined" = false
164165
and "txErrored" = false
165166
and "txHash" is not null
166-
and "numberOfRetries" < 3
167+
and "numberOfRetries" < ${MAX_RETRIES_FOR_TX}
167168
order by "txSubmittedTimestamp" ASC
168169
limit ${MIN_TX_TO_CHECK_FOR_MINED_STATUS}`,
169170
);
@@ -182,7 +183,7 @@ export const getTransactionForRetry = async (
182183
and "txMined" = false
183184
and "txErrored" = false
184185
and "txHash" is not null
185-
and "numberOfRetries" < 3
186+
and "numberOfRetries" < ${MAX_RETRIES_FOR_TX}
186187
order by "txSubmittedTimestamp" ASC
187188
limit 1
188189
for update skip locked`,

yarn.lock

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2778,6 +2778,11 @@
27782778
resolved "https://registry.yarnpkg.com/@thirdweb-dev/chains/-/chains-0.1.50.tgz#857ce24a30821497974e55d75e721905cb35ca33"
27792779
integrity sha512-0rpBdFVgTE5mjgbafoBkpUnq0izx9NZz0mfFammQXWb08eQZUueuBHOVNhK2pRQT346SpQLtf65Oqag82+zZoA==
27802780

2781+
"@thirdweb-dev/chains@0.1.51":
2782+
version "0.1.51"
2783+
resolved "https://registry.yarnpkg.com/@thirdweb-dev/chains/-/chains-0.1.51.tgz#daa8d7374a150fc2a62db4d410748ddb5c15e03b"
2784+
integrity sha512-kjz1suMgHAlLJAEcvY/1pJgeB4lI4Ngxa0G87MOj1dmU9bSZkl4cFdMGaPN7abBf3l/IVVvkPNl3nb9Dc0DfBA==
2785+
27812786
"@thirdweb-dev/chains@^0.1.46":
27822787
version "0.1.46"
27832788
resolved "https://registry.yarnpkg.com/@thirdweb-dev/chains/-/chains-0.1.46.tgz#d115c0b8efb02e74ee38ef8c1237bdf476e62717"
@@ -2790,6 +2795,24 @@
27902795
dependencies:
27912796
"@thirdweb-dev/contracts" "3.8.5"
27922797

2798+
"@thirdweb-dev/contracts-js@1.3.13":
2799+
version "1.3.13"
2800+
resolved "https://registry.yarnpkg.com/@thirdweb-dev/contracts-js/-/contracts-js-1.3.13.tgz#17b07f7ead147177aa979dd8f850030d4b31bc68"
2801+
integrity sha512-GKg3tqE7KZOApRBsK7F6YvP78TgcQR0p2u67tsdp8+bp7MYrJwLgGKTmsWMWo2lY+Tbu2y9Rj18Z2MZaoCuQTQ==
2802+
dependencies:
2803+
"@thirdweb-dev/contracts" "3.10.0"
2804+
2805+
"@thirdweb-dev/contracts@3.10.0":
2806+
version "3.10.0"
2807+
resolved "https://registry.yarnpkg.com/@thirdweb-dev/contracts/-/contracts-3.10.0.tgz#162d3b090ee576a18f530a3997f820600aab5f73"
2808+
integrity sha512-IGnFev/ooS4y/oh+wURuv0E32ztYDeZk7RdWO0si1YY5vDMSbVu/TBhlhmLPcfIZWs0IjCAoA6H/Zy5QV5mkhw==
2809+
dependencies:
2810+
"@chainlink/contracts" "^0.6.1"
2811+
"@openzeppelin/contracts" "4.7.3"
2812+
"@openzeppelin/contracts-upgradeable" "4.7.3"
2813+
"@thirdweb-dev/dynamic-contracts" "^1.1.2"
2814+
erc721a-upgradeable "^3.3.0"
2815+
27932816
"@thirdweb-dev/contracts@3.8.5":
27942817
version "3.8.5"
27952818
resolved "https://registry.yarnpkg.com/@thirdweb-dev/contracts/-/contracts-3.8.5.tgz#7c9e95808c74a43830408cb1c8a2f477c45cc371"
@@ -2834,6 +2857,29 @@
28342857
yaml "^2.3.1"
28352858
zod "^3.20.2"
28362859

2860+
"@thirdweb-dev/sdk@^3.10.60":
2861+
version "3.10.60"
2862+
resolved "https://registry.yarnpkg.com/@thirdweb-dev/sdk/-/sdk-3.10.60.tgz#89499f346b19d789557d77fa26187de4b04a6913"
2863+
integrity sha512-3a4XuZ2Q0eneRsrKUhSzKmxjaY+XMKm8q4RMnqrNiY6ENv8rEslNu/N0fP3JBcUFnnUKRKo0roBObjZgGIS4wQ==
2864+
dependencies:
2865+
"@thirdweb-dev/chains" "0.1.51"
2866+
"@thirdweb-dev/contracts-js" "1.3.13"
2867+
"@thirdweb-dev/generated-abis" "0.0.1"
2868+
"@thirdweb-dev/storage" "1.2.10"
2869+
abitype "^0.2.5"
2870+
bn.js "^5.2.1"
2871+
bs58 "^5.0.0"
2872+
buffer "^6.0.3"
2873+
cross-fetch "^3.1.8"
2874+
eventemitter3 "^5.0.1"
2875+
fast-deep-equal "^3.1.3"
2876+
merkletreejs "^0.2.24"
2877+
tiny-invariant "^1.2.0"
2878+
tweetnacl "^1.0.3"
2879+
uuid "^9.0.0"
2880+
yaml "^2.3.1"
2881+
zod "^3.20.2"
2882+
28372883
"@thirdweb-dev/service-utils@^0.4.2":
28382884
version "0.4.2"
28392885
resolved "https://registry.yarnpkg.com/@thirdweb-dev/service-utils/-/service-utils-0.4.2.tgz#bb22fcb38349bf4c5879cbfc105902d3cc32413a"

0 commit comments

Comments
 (0)