@@ -10,7 +10,7 @@ export interface paths {
10
10
* @description Bid on a specific permission key for a specific chain.
11
11
*
12
12
* Your bid will be simulated and verified by the server. Depending on the outcome of the auction, a transaction
13
- * containing the targetContract call will be sent to the blockchain expecting the bid amount to be paid after the call.
13
+ * containing the contract call will be sent to the blockchain expecting the bid amount to be paid after the call.
14
14
*/
15
15
post : operations [ "bid" ] ;
16
16
} ;
@@ -58,7 +58,7 @@ export interface components {
58
58
amount : string ;
59
59
/**
60
60
* @description The chain id to bid on.
61
- * @example sepolia
61
+ * @example op_sepolia
62
62
*/
63
63
chain_id : string ;
64
64
/**
@@ -67,12 +67,12 @@ export interface components {
67
67
*/
68
68
permission_key : string ;
69
69
/**
70
- * @description Calldata for the targetContract call.
70
+ * @description Calldata for the contract call.
71
71
* @example 0xdeadbeef
72
72
*/
73
73
target_calldata : string ;
74
74
/**
75
- * @description The targetContract address to call.
75
+ * @description The contract address to call.
76
76
* @example 0xcA11bde05977b3631167028862bE2a173976CA11
77
77
*/
78
78
target_contract : string ;
@@ -88,20 +88,24 @@ export interface components {
88
88
BidStatus :
89
89
| {
90
90
/** @enum {string} */
91
- status : "pending" ;
91
+ type : "pending" ;
92
92
}
93
93
| {
94
94
/**
95
- * @description The bid won the auction and was submitted to the chain in a transaction with the given hash
96
- * @example 0x103d4fbd777a36311b5161f2062490f761f25b67406badb2bace62bb170aa4e3
95
+ * Format: int32
96
+ * @example 1
97
97
*/
98
+ index : number ;
99
+ /** @example 0x103d4fbd777a36311b5161f2062490f761f25b67406badb2bace62bb170aa4e3 */
98
100
result : string ;
99
101
/** @enum {string} */
100
- status : "submitted" ;
102
+ type : "submitted" ;
101
103
}
102
104
| {
105
+ /** @example 0x103d4fbd777a36311b5161f2062490f761f25b67406badb2bace62bb170aa4e3 */
106
+ result : string ;
103
107
/** @enum {string} */
104
- status : "lost" ;
108
+ type : "lost" ;
105
109
} ;
106
110
BidStatusWithId : {
107
111
bid_status : components [ "schemas" ] [ "BidStatus" ] ;
@@ -174,14 +178,14 @@ export interface components {
174
178
/**
175
179
* @description Opportunity parameters needed for on-chain execution
176
180
* If a searcher signs the opportunity and have approved enough tokens to opportunity adapter,
177
- * by calling this target targetContract with the given target targetCalldata and structures, they will
181
+ * by calling this target contract with the given target calldata and structures, they will
178
182
* send the tokens specified in the sell_tokens field and receive the tokens specified in the buy_tokens field.
179
183
*/
180
184
OpportunityParamsV1 : {
181
185
buy_tokens : components [ "schemas" ] [ "TokenAmount" ] [ ] ;
182
186
/**
183
187
* @description The chain id where the opportunity will be executed.
184
- * @example sepolia
188
+ * @example op_sepolia
185
189
*/
186
190
chain_id : string ;
187
191
/**
@@ -191,17 +195,17 @@ export interface components {
191
195
permission_key : string ;
192
196
sell_tokens : components [ "schemas" ] [ "TokenAmount" ] [ ] ;
193
197
/**
194
- * @description The targetCallValue to send with the targetContract call.
198
+ * @description The value to send with the contract call.
195
199
* @example 1
196
200
*/
197
201
target_call_value : string ;
198
202
/**
199
- * @description Calldata for the target targetContract call.
203
+ * @description Calldata for the target contract call.
200
204
* @example 0xdeadbeef
201
205
*/
202
206
target_calldata : string ;
203
207
/**
204
- * @description The targetContract address to call for execution of the opportunity.
208
+ * @description The contract address to call for execution of the opportunity.
205
209
* @example 0xcA11bde05977b3631167028862bE2a173976CA11
206
210
*/
207
211
target_contract : string ;
@@ -212,9 +216,8 @@ export interface components {
212
216
version : "v1" ;
213
217
} ) & {
214
218
/**
215
- * Format: int64
216
- * @description Creation time of the opportunity
217
- * @example 1700000000
219
+ * @description Creation time of the opportunity (in microseconds since the Unix epoch)
220
+ * @example 1700000000000000
218
221
*/
219
222
creation_time : number ;
220
223
/**
@@ -260,7 +263,7 @@ export interface components {
260
263
*/
261
264
amount : string ;
262
265
/**
263
- * @description Token targetContract address
266
+ * @description Token contract address
264
267
* @example 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
265
268
*/
266
269
token : string ;
@@ -295,9 +298,8 @@ export interface components {
295
298
version : "v1" ;
296
299
} ) & {
297
300
/**
298
- * Format: int64
299
- * @description Creation time of the opportunity
300
- * @example 1700000000
301
+ * @description Creation time of the opportunity (in microseconds since the Unix epoch)
302
+ * @example 1700000000000000
301
303
*/
302
304
creation_time : number ;
303
305
/**
@@ -325,7 +327,7 @@ export interface operations {
325
327
* @description Bid on a specific permission key for a specific chain.
326
328
*
327
329
* Your bid will be simulated and verified by the server. Depending on the outcome of the auction, a transaction
328
- * containing the targetContract call will be sent to the blockchain expecting the bid amount to be paid after the call.
330
+ * containing the contract call will be sent to the blockchain expecting the bid amount to be paid after the call.
329
331
*/
330
332
bid : {
331
333
requestBody : {
@@ -383,7 +385,7 @@ export interface operations {
383
385
get_opportunities : {
384
386
parameters : {
385
387
query ?: {
386
- /** @example sepolia */
388
+ /** @example op_sepolia */
387
389
chain_id ?: string | null ;
388
390
} ;
389
391
} ;
0 commit comments