Skip to content

Commit 8307561

Browse files
committed
add failed
1 parent ec4ba01 commit 8307561

File tree

1 file changed

+35
-15
lines changed

1 file changed

+35
-15
lines changed

pages/express-relay/websocket-api-reference.mdx

Lines changed: 35 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,12 @@ Refer to the examples below, one for each of the status options in EVM and SVM:
218218
</Tabs.Tab>
219219

220220
<Tabs.Tab>
221-
<Tabs items={[`pending`, `submitted`, `lost`, `won`, `expired`]}>
221+
<Tabs items={[`pending`, `submitted`, `lost`, `won`, `failed`, `expired`]}>
222222
<Tabs.Tab>
223223
```json
224224
// pending
225-
// The temporary state, which means the auction for this bid is pending
225+
// The temporary state which means the auction for this bid is pending.
226+
// It will be updated to Lost or Submitted after the auction takes place.
226227
{
227228
"type": "bid_status_update",
228229
"status": {
@@ -237,8 +238,8 @@ Refer to the examples below, one for each of the status options in EVM and SVM:
237238
<Tabs.Tab>
238239
```json
239240
// submitted
240-
/// The bid is submitted to the chain, with the transaction with the signature.
241-
/// This state is temporary and will be updated to either lost or won after conclusion of the auction.
241+
// The bid won the auction and was submitted to the chain, with the signature of the corresponding transaction provided in the result field.
242+
// This state is temporary and will be updated to either Won or Failed after the transaction is included in a block, or Expired if the transaction expires before it is included.
242243
{
243244
"type": "bid_status_update",
244245
"status": {
@@ -247,7 +248,7 @@ Refer to the examples below, one for each of the status options in EVM and SVM:
247248
// the enum for the bid_status
248249
"type": "submitted",
249250
// the hash of the transaction that the bid's calldata was included in
250-
"result": "0xabc393b634fdf3eb45be8350fd16cd1b4add47b96059beacc1d8c20e51d75ec3"
251+
"result": "Jb2urXPyEh4xiBgzYvwEFe4q1iMxG1DNxWGGQg94AmKgqFTwLAiTiHrYiYxwHUB4DV8u5ahNEVtMMDm3sNSRdTg"
251252
}
252253
}
253254
}
@@ -256,17 +257,17 @@ Refer to the examples below, one for each of the status options in EVM and SVM:
256257
<Tabs.Tab>
257258
```json
258259
// lost
259-
/// The bid lost the auction.
260-
/// The result will be None if the auction was concluded off-chain and no auction was submitted to the chain.
261-
/// The result will be not None if another bid were selected for submission to the chain.
262-
/// The signature of the transaction for the submitted bid is the result value.
260+
// The bid lost the auction.
261+
// The result will be None if the auction had no winner (because all bids were found to be invalid).
262+
// The result will be Some if this bid lost to another bid.
263+
// The signature of the transaction for the submitted bid is the result value.
263264
{
264265
"type": "bid_status_update",
265266
"status": {
266267
"id": "beedbeed-0e42-400f-a8ef-d78aa5422252",
267268
"bid_status": {
268269
"type": "lost",
269-
"result": "0x99c2bf411330ae997632f88abe8f86c0d1f4c448f7d5061319d23814a0fb1135"
270+
"result": "Jb2urXPyEh4xiBgzYvwEFe4q1iMxG1DNxWGGQg94AmKgqFTwLAiTiHrYiYxwHUB4DV8u5ahNEVtMMDm3sNSRdTg"
270271
}
271272
}
272273
}
@@ -275,34 +276,53 @@ Refer to the examples below, one for each of the status options in EVM and SVM:
275276
<Tabs.Tab>
276277
```json
277278
// won
278-
/// The bid won the auction, with the transaction with the signature.
279+
// The bid won the auction and was included in a block successfully.
279280
{
280281
"type": "bid_status_update",
281282
"status": {
282283
"id": "beedbeed-0e42-400f-a8ef-d78aa5422252",
283284
"bid_status": {
284285
// the enum for the bid_status
285286
"type": "won",
286-
// the hash of the transaction that the bid's calldata was included in
287-
"result": "0xabc393b634fdf3eb45be8350fd16cd1b4add47b96059beacc1d8c20e51d75ec3"
287+
// the signature of the transaction that included the bid
288+
"result": "Jb2urXPyEh4xiBgzYvwEFe4q1iMxG1DNxWGGQg94AmKgqFTwLAiTiHrYiYxwHUB4DV8u5ahNEVtMMDm3sNSRdTg"
288289
}
289290
}
290291
}
291292
```
292293
</Tabs.Tab>
293294

295+
<Tabs.Tab>
296+
```json
297+
// failed
298+
// The bid was submitted on-chain, was included in a block, but resulted in a failed transaction.
299+
{
300+
"type": "bid_status_update",
301+
"status": {
302+
"id": "beedbeed-0e42-400f-a8ef-d78aa5422252",
303+
"bid_status": {
304+
// the enum for the bid_status
305+
"type": "failed",
306+
// the signature of the transaction that included the bid
307+
"result": "Jb2urXPyEh4xiBgzYvwEFe4q1iMxG1DNxWGGQg94AmKgqFTwLAiTiHrYiYxwHUB4DV8u5ahNEVtMMDm3sNSRdTg"
308+
}
309+
}
310+
}
311+
```
312+
</Tabs.Tab>
313+
294314
<Tabs.Tab>
295315
```json
296316
// expired
297-
// /// The bid expired without being submitted on chain.
317+
// The bid was submitted on-chain but expired before it was included in a block.
298318
{
299319
"type": "bid_status_update",
300320
"status": {
301321
"id": "beedbeed-0e42-400f-a8ef-d78aa5422252",
302322
"bid_status": {
303323
// the enum for the bid_status
304324
"type": "expired",
305-
// the hash of the transaction that the bid's calldata was included in
325+
// the signature of the transaction that included the bid
306326
"result": "Jb2urXPyEh4xiBgzYvwEFe4q1iMxG1DNxWGGQg94AmKgqFTwLAiTiHrYiYxwHUB4DV8u5ahNEVtMMDm3sNSRdTg",
307327
}
308328
}

0 commit comments

Comments
 (0)