You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Added expires_at tag to track when pending orders should expire
2. Added expired as a new order status
3. Clarified the distinction between expires_at (for order expiration) and expiration (for relay deletion per NIP-40)
Copy file name to clipboardExpand all lines: src/order_event.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,8 @@ Events are [addressable events](https://github.com/nostr-protocol/nips/blob/mast
35
35
["name", "Nakamoto"],
36
36
["g", "<geohash>"],
37
37
["bond", "0"],
38
-
["expiration", "1719391096"],
38
+
["expires_at", "1719391096"],
39
+
["expiration", "1719995896"],
39
40
["y", "lnp2pbot"],
40
41
["z", "order"]
41
42
],
@@ -49,7 +50,7 @@ Events are [addressable events](https://github.com/nostr-protocol/nips/blob/mast
49
50
-`d` < Order ID >: A unique identifier for the order.
50
51
-`k` < Order type >: `sell` or `buy`. This specifies the type of transaction in terms of bitcoin. "sell" means selling bitcoin, while "buy" indicates buying bitcoin.
51
52
-`f` < Currency >: The fiat asset being traded, using the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) standard.
52
-
-`s` < Status >: `pending`, `canceled`, `in-progress`, `success`.
53
+
-`s` < Status >: `pending`, `canceled`, `in-progress`, `success`, `expired`.
53
54
-`amt` < Amount >: The amount of Bitcoin to be traded, the amount is defined in satoshis, if `0` means that the amount of satoshis will be obtained from a public API after the taker accepts the order.
54
55
-`fa` < Fiat amount >: The fiat amount being traded, for range orders two values are expected, the minimum and maximum amount.
55
56
-`pm` < Payment method >: The payment method used for the trade, if the order has multiple payment methods, they should be separated by a comma.
@@ -61,7 +62,8 @@ Events are [addressable events](https://github.com/nostr-protocol/nips/blob/mast
61
62
-`name`[Name]: The name of the maker.
62
63
-`g`[Geohash]: The geohash of the operation, it can be useful in a face to face trade.
63
64
-`bond`[Bond]: The bond amount, the bond is a security deposit that both parties must pay.
64
-
-`expiration` < Expiration\>: The expiration date of the order ([NIP-40](https://github.com/nostr-protocol/nips/blob/master/40.md)).
65
+
-`expires_at` < Expires At\>: The expiration date of the event being published in `pending` status, after this time the event status SHOULD be changed to `expired`.
66
+
-`expiration` < Expiration\>: The expiration date of the event, after this time the relay SHOULD delete it ([NIP-40](40.md)).
65
67
-`y` < Platform >: The platform that created the order.
66
68
-`z` < Document >: `order`.
67
69
@@ -74,6 +76,8 @@ Currently implemented on the following platforms:
0 commit comments