File tree Expand file tree Collapse file tree 2 files changed +0
-34
lines changed
server/routes/transaction Expand file tree Collapse file tree 2 files changed +0
-34
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,7 @@ import { StatusCodes } from "http-status-codes";
5
5
import { prisma } from "../../../db/client" ;
6
6
import { updateTx } from "../../../db/transactions/updateTx" ;
7
7
import { getSdk } from "../../../utils/cache/getSdk" ;
8
- import { msSince } from "../../../utils/date" ;
9
8
import { parseTxError } from "../../../utils/errors" ;
10
- import { UsageEventTxActionEnum , reportUsage } from "../../../utils/usage" ;
11
9
import { createCustomError } from "../../middleware/error" ;
12
10
import { standardResponseSchema } from "../../schemas/sharedApiSchemas" ;
13
11
import { TransactionStatus } from "../../schemas/transaction" ;
@@ -148,21 +146,6 @@ export async function syncRetryTransaction(fastify: FastifyInstance) {
148
146
sentAtBlockNumber : blockNumber ,
149
147
} ,
150
148
} ) ;
151
- reportUsage ( [
152
- {
153
- action : UsageEventTxActionEnum . SendTx ,
154
- input : {
155
- fromAddress : tx . fromAddress ,
156
- toAddress : tx . toAddress ,
157
- value : tx . value ,
158
- chainId : tx . chainId ,
159
- transactionHash,
160
- functionName : tx . functionName || undefined ,
161
- extension : tx . extension || undefined ,
162
- msSinceQueue : msSince ( new Date ( tx . queuedAt ) ) ,
163
- } ,
164
- } ,
165
- ] ) ;
166
149
167
150
reply . status ( StatusCodes . OK ) . send ( {
168
151
result : {
Original file line number Diff line number Diff line change @@ -125,23 +125,6 @@ export const retryTx = async () => {
125
125
} ,
126
126
} ) ;
127
127
128
- reportUsage ( [
129
- {
130
- input : {
131
- fromAddress : tx . fromAddress || undefined ,
132
- toAddress : tx . toAddress || undefined ,
133
- value : tx . value || undefined ,
134
- chainId : tx . chainId ,
135
- functionName : tx . functionName || undefined ,
136
- extension : tx . extension || undefined ,
137
- retryCount : tx . retryCount + 1 ,
138
- transactionHash : transactionResponse . hash || undefined ,
139
- provider : provider . connection . url ,
140
- } ,
141
- action : UsageEventTxActionEnum . SendTx ,
142
- } ,
143
- ] ) ;
144
-
145
128
logger ( {
146
129
service : "worker" ,
147
130
level : "info" ,
You can’t perform that action at this time.
0 commit comments