Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] Transaction workers to Redis (thirdweb-dev#554)
* wip * WIP: transaction workers in Redis * webhooks and usage tracking * wip * remove prepare worker * multiple transaction hashes * updates to allow all POST end-point to work with new flow * transaction db updates * purge worker * db update * add queued txs * UserOps Updates * build fixes * Error Handling update * updates for errors * simplify purge logic * wip * add getChain * support get all tx by wallet * fix sent redis * updated error handling * wip * separate helper funcs for userOps * typing... * remove env debug * update ttl seconds * fix build, add nonce helpers * update: added implementation to retrieve the contract-address * updates for deployedContractAddress * fixed createAccount build issue * unused nonces worker * unused nonces * send-transaction userOp update * add pretty error message back * Add openapi.json to gitignore * remove debug line * unused nonce * reuse rpc request * remove simulation in send eoa transaction * update sdk, undo rpc client caching * remove unused env var * cleanup and comments * log released nonces * handle resend rpc errors * explicitly list attempts/backoff * fix mine worker bug * better handle rpc error * prune transaction lists and details * prune tx by count * wip * explicit worker init step * add basic auth to queues management * migrate postgres tx * add migration worker * updates for value override, simulation + send Tx/UserOps using data * tx details debug endpoint * Remove debug line * fix example * fix: bullboard not working in prod * move cron init workers * bugfix: account created from ethers signer need provider * Add test suite * bugfix: remove hardcoded anvil chain * fix: only connect provider to aws signer * fix: removed logs * fix: remove debug test values * fix: pass wallet label in test * Updates: Removed logs + queuedAt indexed * Fk/extend ph worker (thirdweb-dev#595) * Update: Added nonce rebase with blockchain logic * removed logs * updates * AWS & GCP KMS provider fix * updated rebaseNonce * feat: take file as arg * chore: update anvil installation instructions in e2e README * Updates: v2 Nonce (thirdweb-dev#597) * Updates * updates * cleaned logs * updates * updated recycleNonce to check if isNan * comments updated * chore: expose NonceResyncQueue to bullboard * Convert nonce-recycled to set and add nonce-sent set helpers * fix: handle removing from sent nonces in fail handler * chore: Remove commented out code in setup.ts file * Update nonceResyncWorker to use stricter wildcard pattern for redis keys * Add isSentNonce helper function for checking if a nonce is in the sent nonces set * refactor and solve nonce resynchronization logic bugs and nits in nonceResyncWorker * chore: Refactor cancelRecycledNoncesWorker to use SMEMBERS instead of LRANGE for retrieving unused nonces * treat `ReplacementGasFeeTowLow` as `NonceAlreadyUsed` * updated logs & removeSentNonce --------- Co-authored-by: Prithvish Baidya <[email protected]> * yarn lock * queue latency metrics * use v5 for local wallets on EOA * handle rpc errors better * fix: batch ioredis operations * updated isReplacementGasFeeTooLow check * graceful shutdown, use multi instead of lua script * add backoff on SendTransactionQueue * fix: default REDIS_MAXMEMORY = 0 * lua script default to 0 * fix queued tx cancel * default concurrency 200 * updated wallet_address -> walletAddress, erc20 balance-of * reverting changes. will move it to a breaking updates PR * checksum addresses to RPC * fix build * use checksumAddress * Make effective gas price optional * set onchainStatus for userop * allow replaying failed txs * always query latest block tag for tx count * fix: regex address validation * Updates: Claim-to using v5 SDK (thirdweb-dev#618) * Updates: Claim-to using v5 SDK * updates * removed caching for getContractV5 --------- Co-authored-by: farhanW3 <[email protected]> Co-authored-by: Prithvish Baidya <[email protected]> Co-authored-by: Farhan Khwaja <[email protected]>
- Loading branch information