Repository navigation
Expand file tree
/
Copy pathx402-0.6.0.cast
More file actions
300 lines (300 loc) · 8.49 KB
/
Copy pathx402-0.6.0.cast
File metadata and controls
300 lines (300 loc) · 8.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
{"version": 3, "term": {"cols": 105, "rows": 53, "theme": {"fg": "#e6e6e6", "bg": "#212733", "palette": "#35424b:#b45547:#6caa71:#c4ac62:#6d96b4:#bd7bcd:#7ccbce:#dee6ec:#465c6d:#e06c5a:#79be7e:#e5c872:#67b5ed:#d389e5:#84dee1:#e6eff6"}}, "timestamp": 1790851997, "idle_time_limit": 2.0, "command": "/private/tmp/claude-501/-Users-muhammaddzakwannajmi-Documents-project-stellar-instawards-wasit/b3c3c66e-89ef-4636-87d3-59abe7fdb3a2/scratchpad/cli-demo.sh", "title": "Wasit 0.6.0 — x402 checks", "env": {"SHELL": "/bin/zsh"}}
[0.391, "o", "\u001b[3J\u001b[H\u001b[2J"]
[0.000, "o", "\u001b[1;35mwasit\u001b[0m \u001b[2m%\u001b[0m "]
[0.609, "o", "n"]
[0.037, "o", "p"]
[0.038, "o", "x"]
[0.037, "o", " "]
[0.038, "o", "-"]
[0.035, "o", "y"]
[0.036, "o", " "]
[0.037, "o", "@"]
[0.036, "o", "w"]
[0.038, "o", "a"]
[0.039, "o", "s"]
[0.031, "o", "i"]
[0.037, "o", "t"]
[0.038, "o", "-"]
[0.036, "o", "d"]
[0.037, "o", "e"]
[0.037, "o", "v"]
[0.038, "o", "/"]
[0.033, "o", "c"]
[0.038, "o", "l"]
[0.038, "o", "i"]
[0.037, "o", "@"]
[0.037, "o", "0"]
[0.036, "o", "."]
[0.039, "o", "6"]
[0.040, "o", "."]
[0.036, "o", "0"]
[0.039, "o", " "]
[0.039, "o", "-"]
[0.041, "o", "-"]
[0.035, "o", "v"]
[0.037, "o", "e"]
[0.038, "o", "r"]
[0.036, "o", "s"]
[0.038, "o", "i"]
[0.038, "o", "o"]
[0.038, "o", "n"]
[0.395, "o", "\r\n"]
[0.602, "o", "0.6.0\r\n"]
[0.005, "o", "⠙"]
[0.000, "o", "\u001b[1G"]
[0.000, "o", "\u001b[0K"]
[1.608, "o", "\u001b[1;35mwasit\u001b[0m \u001b[2m%\u001b[0m "]
[0.610, "o", "n"]
[0.037, "o", "p"]
[0.038, "o", "x"]
[0.039, "o", " "]
[0.040, "o", "-"]
[0.040, "o", "y"]
[0.035, "o", " "]
[0.038, "o", "@"]
[0.036, "o", "w"]
[0.039, "o", "a"]
[0.039, "o", "s"]
[0.042, "o", "i"]
[0.039, "o", "t"]
[0.039, "o", "-"]
[0.035, "o", "d"]
[0.039, "o", "e"]
[0.036, "o", "v"]
[0.037, "o", "/"]
[0.038, "o", "c"]
[0.039, "o", "l"]
[0.034, "o", "i"]
[0.036, "o", "@"]
[0.040, "o", "0"]
[0.038, "o", "."]
[0.036, "o", "6"]
[0.034, "o", "."]
[0.035, "o", "0"]
[0.039, "o", " "]
[0.034, "o", "c"]
[0.036, "o", "h"]
[0.039, "o", "e"]
[0.040, "o", "c"]
[0.034, "o", "k"]
[0.037, "o", "s"]
[0.040, "o", " "]
[0.040, "o", "-"]
[0.036, "o", "-"]
[0.039, "o", "p"]
[0.039, "o", "r"]
[0.036, "o", "o"]
[0.040, "o", "t"]
[0.040, "o", "o"]
[0.037, "o", "c"]
[0.038, "o", "o"]
[0.040, "o", "l"]
[0.038, "o", " "]
[0.037, "o", "x"]
[0.035, "o", "4"]
[0.040, "o", "0"]
[0.037, "o", "2"]
[0.400, "o", "\r\n"]
[0.613, "o", "\r\nx402 (wasit test)\r\n"]
[0.000, "o", " X402-01 402 Response Status\r\n An unpaid request must be answered with status code 402.\r\n"]
[0.000, "o", " X402-02 Payment Header Present\r\n"]
[0.000, "o", " The 402 response must include a payment header.\r\n"]
[0.000, "o", " X402-03 Header Payload Decodable\r\n The header value must be valid base64 that decodes to JSON.\r\n"]
[0.000, "o", " X402-04 Required Fields Present\r\n"]
[0.000, "o", " The payload must include the core payment terms, under the field names its advertised version requires.\r\n"]
[0.000, "o", " X402-05 Network Identifier Valid\r\n"]
[0.000, "o", " The network identifier must follow CAIP-2 (stellar:testnet or stellar:pubnet).\r\n X402-06 Signature Resubmit Accepted [costs funds]\r\n"]
[0.000, "o", " A resubmitted request carrying a valid signature must be accepted.\r\n"]
[0.000, "o", " X402-07 Invalid Signature Rejected [negative, costs funds]\r\n A deliberately corrupted signature must be rejected, not accepted.\r\n\r\n7 checks.\r\n"]
[0.008, "o", "⠙"]
[0.001, "o", "\u001b[1G"]
[0.000, "o", "\u001b[0K"]
[1.611, "o", "\u001b[1;35mwasit\u001b[0m \u001b[2m%\u001b[0m "]
[0.610, "o", "n"]
[0.036, "o", "p"]
[0.036, "o", "x"]
[0.036, "o", " "]
[0.039, "o", "-"]
[0.037, "o", "y"]
[0.037, "o", " "]
[0.037, "o", "@"]
[0.039, "o", "w"]
[0.037, "o", "a"]
[0.037, "o", "s"]
[0.036, "o", "i"]
[0.037, "o", "t"]
[0.036, "o", "-"]
[0.038, "o", "d"]
[0.036, "o", "e"]
[0.035, "o", "v"]
[0.035, "o", "/"]
[0.035, "o", "c"]
[0.037, "o", "l"]
[0.037, "o", "i"]
[0.034, "o", "@"]
[0.034, "o", "0"]
[0.035, "o", "."]
[0.039, "o", "6"]
[0.035, "o", "."]
[0.036, "o", "0"]
[0.040, "o", " "]
[0.041, "o", "t"]
[0.039, "o", "e"]
[0.039, "o", "s"]
[0.033, "o", "t"]
[0.036, "o", " "]
[0.035, "o", "-"]
[0.035, "o", "-"]
[0.034, "o", "t"]
[0.037, "o", "a"]
[0.038, "o", "r"]
[0.036, "o", "g"]
[0.040, "o", "e"]
[0.038, "o", "t"]
[0.037, "o", " "]
[0.035, "o", "h"]
[0.039, "o", "t"]
[0.036, "o", "t"]
[0.040, "o", "p"]
[0.040, "o", ":"]
[0.036, "o", "/"]
[0.037, "o", "/"]
[0.039, "o", "l"]
[0.037, "o", "o"]
[0.037, "o", "c"]
[0.040, "o", "a"]
[0.038, "o", "l"]
[0.040, "o", "h"]
[0.037, "o", "o"]
[0.038, "o", "s"]
[0.039, "o", "t"]
[0.036, "o", ":"]
[0.039, "o", "3"]
[0.038, "o", "0"]
[0.036, "o", "0"]
[0.039, "o", "1"]
[0.040, "o", "/"]
[0.037, "o", "p"]
[0.036, "o", "r"]
[0.038, "o", "o"]
[0.036, "o", "t"]
[0.036, "o", "e"]
[0.039, "o", "c"]
[0.038, "o", "t"]
[0.043, "o", "e"]
[0.036, "o", "d"]
[0.038, "o", " "]
[0.040, "o", "-"]
[0.039, "o", "-"]
[0.041, "o", "r"]
[0.040, "o", "e"]
[0.036, "o", "a"]
[0.036, "o", "d"]
[0.040, "o", "-"]
[0.040, "o", "o"]
[0.040, "o", "n"]
[0.039, "o", "l"]
[0.038, "o", "y"]
[0.401, "o", "\r\n"]
[0.634, "o", "(--read-only set: skipping payment checks)\r\n\r\n"]
[0.000, "o", "PASS X402-01 402 Response Status\r\n Server responded with 402 as required.\r\n\r\n"]
[0.000, "o", "PASS X402-02 Payment Header Present\r\n"]
[0.000, "o", " Payment header found.\r\n\r\nPASS X402-03 Header Payload Decodable\r\n"]
[0.000, "o", " Header decoded to valid JSON.\r\n\r\n"]
[0.000, "o", "PASS X402-04 Required Fields Present\r\n"]
[0.000, "o", " All required v2 fields present.\r\n\r\n"]
[0.000, "o", "PASS X402-05 Network Identifier Valid\r\n Network identifier \"stellar:testnet\" is valid.\r\n\r\n"]
[0.000, "o", "5 passed.\r\n"]
[0.006, "o", "⠙"]
[0.001, "o", "\u001b[1G"]
[0.000, "o", "\u001b[0K"]
[1.611, "o", "\u001b[1;35mwasit\u001b[0m \u001b[2m%\u001b[0m "]
[0.608, "o", "n"]
[0.038, "o", "p"]
[0.035, "o", "x"]
[0.036, "o", " "]
[0.038, "o", "-"]
[0.040, "o", "y"]
[0.035, "o", " "]
[0.036, "o", "@"]
[0.039, "o", "w"]
[0.038, "o", "a"]
[0.040, "o", "s"]
[0.037, "o", "i"]
[0.042, "o", "t"]
[0.036, "o", "-"]
[0.036, "o", "d"]
[0.038, "o", "e"]
[0.034, "o", "v"]
[0.037, "o", "/"]
[0.037, "o", "c"]
[0.039, "o", "l"]
[0.041, "o", "i"]
[0.037, "o", "@"]
[0.040, "o", "0"]
[0.038, "o", "."]
[0.038, "o", "6"]
[0.033, "o", "."]
[0.035, "o", "0"]
[0.036, "o", " "]
[0.037, "o", "t"]
[0.039, "o", "e"]
[0.039, "o", "s"]
[0.035, "o", "t"]
[0.037, "o", " "]
[0.038, "o", "-"]
[0.041, "o", "-"]
[0.039, "o", "t"]
[0.037, "o", "a"]
[0.040, "o", "r"]
[0.035, "o", "g"]
[0.037, "o", "e"]
[0.036, "o", "t"]
[0.039, "o", " "]
[0.040, "o", "h"]
[0.034, "o", "t"]
[0.035, "o", "t"]
[0.038, "o", "p"]
[0.039, "o", ":"]
[0.040, "o", "/"]
[0.041, "o", "/"]
[0.038, "o", "l"]
[0.038, "o", "o"]
[0.037, "o", "c"]
[0.037, "o", "a"]
[0.035, "o", "l"]
[0.038, "o", "h"]
[0.040, "o", "o"]
[0.036, "o", "s"]
[0.039, "o", "t"]
[0.039, "o", ":"]
[0.039, "o", "3"]
[0.039, "o", "0"]
[0.035, "o", "0"]
[0.039, "o", "1"]
[0.040, "o", "/"]
[0.039, "o", "p"]
[0.035, "o", "r"]
[0.040, "o", "o"]
[0.038, "o", "t"]
[0.035, "o", "e"]
[0.040, "o", "c"]
[0.037, "o", "t"]
[0.038, "o", "e"]
[0.040, "o", "d"]
[0.392, "o", "\r\n"]
[0.635, "o", "X402-06 settles a real payment and X402-07 attempts one. Testnet funds will move.\r\n\r\n"]
[14.494, "o", "PASS X402-01 402 Response Status\r\n"]
[0.000, "o", " Server responded with 402 as required.\r\n\r\nPASS X402-02 Payment Header Present\r\n Payment header found.\r\n\r\nPASS X402-03 Header Payload Decodable\r\n Header decoded to valid JSON.\r\n\r\nPASS X402-04 Required Fields Present\r\n"]
[0.000, "o", " All required v2 fields present.\r\n\r\n"]
[0.000, "o", "PASS X402-05 Network Identifier Valid\r\n"]
[0.000, "o", " Network identifier \"stellar:testnet\" is valid.\r\n\r\n"]
[0.000, "o", "PASS X402-06 Signature Resubmit Accepted\r\n Valid payment accepted (HTTP 200) and settled on-chain for exactly the advertised 100000 base units of CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA to GDPAPDZWAKBXUPCNMI4YHAZ7DS7UOUTPGXAFDSWZG4URRMWHFSQTDQBM, verified from the transfer event (tx 56fd4bce7a2fc3ed8165de163dd7ef6fdfe7e96027dbd8f81430974b2145f3f7).\r\n\r\n"]
[0.000, "o", "PASS X402-07 Invalid Signature Rejected\r\n"]
[0.000, "o", " Payment with a corrupted authorization signature correctly rejected (HTTP 402).\r\n\r\n"]
[0.000, "o", "7 passed.\r\n"]
[0.021, "o", "⠙"]
[0.001, "o", "\u001b[1G"]
[0.000, "o", "\u001b[0K"]
[1.613, "o", "\u001b[1;35mwasit\u001b[0m \u001b[2m%\u001b[0m "]
[3.010, "x", "0"]