@@ -173,32 +173,8 @@ func SponsorUserOperation(userOp *userop.UserOperation, mode string, token strin
173
173
userOpExpanded ,
174
174
payload ,
175
175
}
176
- case "zerodev" :
177
- method = "zd_sponsorUserOperation"
178
- var shouldOverrideFee bool
179
- var shouldConsume bool
180
-
181
- if mode == "sponsored" {
182
- shouldOverrideFee = true
183
- shouldConsume = false
184
- } else if mode == "erc20" {
185
- shouldOverrideFee = true
186
- shouldConsume = true
187
- } else {
188
- return fmt .Errorf ("invalid mode" )
189
- }
190
-
191
- requestParams = []interface {}{
192
- chainId ,
193
- userOpExpanded ,
194
- orderConf .EntryPointContractAddress .Hex (),
195
- map [string ]interface {}{
196
- "tokenAddress" : token ,
197
- },
198
- shouldOverrideFee ,
199
- shouldConsume ,
200
- }
201
176
case "pimlico" :
177
+ case "thirdweb" :
202
178
requestParams = []interface {}{
203
179
userOpExpanded ,
204
180
map [string ]interface {}{
@@ -247,13 +223,8 @@ func SponsorUserOperation(userOp *userop.UserOperation, mode string, token strin
247
223
userOp .VerificationGasLimit = decimal .NewFromFloat (response ["verificationGasLimit" ].(float64 )).BigInt ()
248
224
userOp .CallGasLimit = decimal .NewFromFloat (response ["callGasLimit" ].(float64 )).BigInt ()
249
225
250
- case "zerodev" :
251
- userOp .PaymasterAndData = common .FromHex (response ["paymasterAndData" ].(string ))
252
- userOp .PreVerificationGas , _ = new (big.Int ).SetString (response ["preVerificationGas" ].(string ), 0 )
253
- userOp .VerificationGasLimit = decimal .NewFromFloat (response ["verificationGasLimit" ].(float64 )).BigInt ()
254
- userOp .CallGasLimit = decimal .NewFromFloat (response ["callGasLimit" ].(float64 )).BigInt ()
255
-
256
226
case "pimlico" :
227
+ case "thirdweb" :
257
228
userOp .PaymasterAndData = common .FromHex (response ["paymasterAndData" ].(string ))
258
229
userOp .PreVerificationGas , _ = new (big.Int ).SetString (response ["preVerificationGas" ].(string ), 0 )
259
230
userOp .VerificationGasLimit = decimal .NewFromFloat (response ["verificationGasLimit" ].(float64 )).BigInt ()
@@ -309,14 +280,8 @@ func SendUserOperation(userOp *userop.UserOperation, chainId int64) (string, str
309
280
"simulation_type" : "validation_and_execution" ,
310
281
},
311
282
}
312
- case "zerodev" :
313
- method = "zd_sendUserOperation"
314
- requestParams = []interface {}{
315
- chainId ,
316
- userOp ,
317
- orderConf .EntryPointContractAddress .Hex (),
318
- }
319
283
case "pimlico" :
284
+ case "thirdweb" :
320
285
requestParams = []interface {}{
321
286
userOp ,
322
287
orderConf .EntryPointContractAddress .Hex (),
@@ -631,8 +596,8 @@ func detectAAService(url string) (string, error) {
631
596
return "biconomy" , nil
632
597
case strings .Contains (url , "api.pimlico.io" ):
633
598
return "pimlico" , nil
634
- case strings .Contains (url , "rpc.zerodev.app " ):
635
- return "zerodev " , nil
599
+ case strings .Contains (url , "thirdweb.com " ):
600
+ return "thirdweb " , nil
636
601
default :
637
602
return "" , fmt .Errorf ("unsupported AA service URL pattern: %s" , url )
638
603
}
0 commit comments