@warganetwork/sdk 0.0.0-stage → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,581 @@
1
+ [
2
+ {
3
+ "name": "EscrowLocked",
4
+ "inputs": [
5
+ {
6
+ "name": "order_id",
7
+ "type": "bytes32",
8
+ "indexed": true
9
+ },
10
+ {
11
+ "name": "buyer",
12
+ "type": "address",
13
+ "indexed": true
14
+ },
15
+ {
16
+ "name": "merchant",
17
+ "type": "address",
18
+ "indexed": true
19
+ },
20
+ {
21
+ "name": "amount",
22
+ "type": "uint256",
23
+ "indexed": false
24
+ },
25
+ {
26
+ "name": "expires_at",
27
+ "type": "uint256",
28
+ "indexed": false
29
+ }
30
+ ],
31
+ "anonymous": false,
32
+ "type": "event"
33
+ },
34
+ {
35
+ "name": "EscrowReleasedByBuyer",
36
+ "inputs": [
37
+ {
38
+ "name": "order_id",
39
+ "type": "bytes32",
40
+ "indexed": true
41
+ },
42
+ {
43
+ "name": "buyer",
44
+ "type": "address",
45
+ "indexed": true
46
+ },
47
+ {
48
+ "name": "merchant",
49
+ "type": "address",
50
+ "indexed": true
51
+ },
52
+ {
53
+ "name": "amount",
54
+ "type": "uint256",
55
+ "indexed": false
56
+ }
57
+ ],
58
+ "anonymous": false,
59
+ "type": "event"
60
+ },
61
+ {
62
+ "name": "EscrowRefundedByMerchant",
63
+ "inputs": [
64
+ {
65
+ "name": "order_id",
66
+ "type": "bytes32",
67
+ "indexed": true
68
+ },
69
+ {
70
+ "name": "merchant",
71
+ "type": "address",
72
+ "indexed": true
73
+ },
74
+ {
75
+ "name": "buyer",
76
+ "type": "address",
77
+ "indexed": true
78
+ },
79
+ {
80
+ "name": "amount",
81
+ "type": "uint256",
82
+ "indexed": false
83
+ },
84
+ {
85
+ "name": "reason",
86
+ "type": "string",
87
+ "indexed": false
88
+ }
89
+ ],
90
+ "anonymous": false,
91
+ "type": "event"
92
+ },
93
+ {
94
+ "name": "EscrowExpiredClaimed",
95
+ "inputs": [
96
+ {
97
+ "name": "order_id",
98
+ "type": "bytes32",
99
+ "indexed": true
100
+ },
101
+ {
102
+ "name": "buyer",
103
+ "type": "address",
104
+ "indexed": true
105
+ },
106
+ {
107
+ "name": "amount",
108
+ "type": "uint256",
109
+ "indexed": false
110
+ }
111
+ ],
112
+ "anonymous": false,
113
+ "type": "event"
114
+ },
115
+ {
116
+ "name": "EscrowDisputed",
117
+ "inputs": [
118
+ {
119
+ "name": "order_id",
120
+ "type": "bytes32",
121
+ "indexed": true
122
+ },
123
+ {
124
+ "name": "opened_by",
125
+ "type": "address",
126
+ "indexed": true
127
+ },
128
+ {
129
+ "name": "disputed_at",
130
+ "type": "uint256",
131
+ "indexed": false
132
+ },
133
+ {
134
+ "name": "reason",
135
+ "type": "string",
136
+ "indexed": false
137
+ }
138
+ ],
139
+ "anonymous": false,
140
+ "type": "event"
141
+ },
142
+ {
143
+ "name": "DisputeResolvedByOperator",
144
+ "inputs": [
145
+ {
146
+ "name": "order_id",
147
+ "type": "bytes32",
148
+ "indexed": true
149
+ },
150
+ {
151
+ "name": "operator",
152
+ "type": "address",
153
+ "indexed": true
154
+ },
155
+ {
156
+ "name": "recipient",
157
+ "type": "address",
158
+ "indexed": true
159
+ },
160
+ {
161
+ "name": "amount",
162
+ "type": "uint256",
163
+ "indexed": false
164
+ },
165
+ {
166
+ "name": "released_to_merchant",
167
+ "type": "bool",
168
+ "indexed": false
169
+ },
170
+ {
171
+ "name": "resolution_note",
172
+ "type": "string",
173
+ "indexed": false
174
+ }
175
+ ],
176
+ "anonymous": false,
177
+ "type": "event"
178
+ },
179
+ {
180
+ "name": "OperatorProposed",
181
+ "inputs": [
182
+ {
183
+ "name": "current_operator",
184
+ "type": "address",
185
+ "indexed": true
186
+ },
187
+ {
188
+ "name": "pending_operator",
189
+ "type": "address",
190
+ "indexed": true
191
+ }
192
+ ],
193
+ "anonymous": false,
194
+ "type": "event"
195
+ },
196
+ {
197
+ "name": "OperatorTransferred",
198
+ "inputs": [
199
+ {
200
+ "name": "previous_operator",
201
+ "type": "address",
202
+ "indexed": true
203
+ },
204
+ {
205
+ "name": "new_operator",
206
+ "type": "address",
207
+ "indexed": true
208
+ }
209
+ ],
210
+ "anonymous": false,
211
+ "type": "event"
212
+ },
213
+ {
214
+ "stateMutability": "nonpayable",
215
+ "type": "function",
216
+ "name": "lock_order",
217
+ "inputs": [
218
+ {
219
+ "name": "order_id",
220
+ "type": "bytes32"
221
+ },
222
+ {
223
+ "name": "merchant",
224
+ "type": "address"
225
+ },
226
+ {
227
+ "name": "amount",
228
+ "type": "uint256"
229
+ }
230
+ ],
231
+ "outputs": [
232
+ {
233
+ "name": "",
234
+ "type": "bool"
235
+ }
236
+ ]
237
+ },
238
+ {
239
+ "stateMutability": "nonpayable",
240
+ "type": "function",
241
+ "name": "lock_order_with_timeout",
242
+ "inputs": [
243
+ {
244
+ "name": "order_id",
245
+ "type": "bytes32"
246
+ },
247
+ {
248
+ "name": "merchant",
249
+ "type": "address"
250
+ },
251
+ {
252
+ "name": "amount",
253
+ "type": "uint256"
254
+ },
255
+ {
256
+ "name": "timeout_sec",
257
+ "type": "uint256"
258
+ }
259
+ ],
260
+ "outputs": [
261
+ {
262
+ "name": "",
263
+ "type": "bool"
264
+ }
265
+ ]
266
+ },
267
+ {
268
+ "stateMutability": "nonpayable",
269
+ "type": "function",
270
+ "name": "release_escrow",
271
+ "inputs": [
272
+ {
273
+ "name": "order_id",
274
+ "type": "bytes32"
275
+ }
276
+ ],
277
+ "outputs": [
278
+ {
279
+ "name": "",
280
+ "type": "bool"
281
+ }
282
+ ]
283
+ },
284
+ {
285
+ "stateMutability": "nonpayable",
286
+ "type": "function",
287
+ "name": "refund_escrow",
288
+ "inputs": [
289
+ {
290
+ "name": "order_id",
291
+ "type": "bytes32"
292
+ },
293
+ {
294
+ "name": "reason",
295
+ "type": "string"
296
+ }
297
+ ],
298
+ "outputs": [
299
+ {
300
+ "name": "",
301
+ "type": "bool"
302
+ }
303
+ ]
304
+ },
305
+ {
306
+ "stateMutability": "nonpayable",
307
+ "type": "function",
308
+ "name": "claim_expired_order",
309
+ "inputs": [
310
+ {
311
+ "name": "order_id",
312
+ "type": "bytes32"
313
+ }
314
+ ],
315
+ "outputs": [
316
+ {
317
+ "name": "",
318
+ "type": "bool"
319
+ }
320
+ ]
321
+ },
322
+ {
323
+ "stateMutability": "nonpayable",
324
+ "type": "function",
325
+ "name": "open_dispute",
326
+ "inputs": [
327
+ {
328
+ "name": "order_id",
329
+ "type": "bytes32"
330
+ },
331
+ {
332
+ "name": "reason",
333
+ "type": "string"
334
+ }
335
+ ],
336
+ "outputs": [
337
+ {
338
+ "name": "",
339
+ "type": "bool"
340
+ }
341
+ ]
342
+ },
343
+ {
344
+ "stateMutability": "nonpayable",
345
+ "type": "function",
346
+ "name": "resolve_dispute",
347
+ "inputs": [
348
+ {
349
+ "name": "order_id",
350
+ "type": "bytes32"
351
+ },
352
+ {
353
+ "name": "release_to_merchant",
354
+ "type": "bool"
355
+ },
356
+ {
357
+ "name": "resolution_note",
358
+ "type": "string"
359
+ }
360
+ ],
361
+ "outputs": [
362
+ {
363
+ "name": "",
364
+ "type": "bool"
365
+ }
366
+ ]
367
+ },
368
+ {
369
+ "stateMutability": "nonpayable",
370
+ "type": "function",
371
+ "name": "propose_operator",
372
+ "inputs": [
373
+ {
374
+ "name": "new_operator",
375
+ "type": "address"
376
+ }
377
+ ],
378
+ "outputs": [
379
+
380
+ ]
381
+ },
382
+ {
383
+ "stateMutability": "nonpayable",
384
+ "type": "function",
385
+ "name": "accept_operator",
386
+ "inputs": [
387
+
388
+ ],
389
+ "outputs": [
390
+
391
+ ]
392
+ },
393
+ {
394
+ "stateMutability": "nonpayable",
395
+ "type": "function",
396
+ "name": "recover_stray_token",
397
+ "inputs": [
398
+ {
399
+ "name": "token",
400
+ "type": "address"
401
+ },
402
+ {
403
+ "name": "to",
404
+ "type": "address"
405
+ },
406
+ {
407
+ "name": "amount",
408
+ "type": "uint256"
409
+ }
410
+ ],
411
+ "outputs": [
412
+
413
+ ]
414
+ },
415
+ {
416
+ "stateMutability": "view",
417
+ "type": "function",
418
+ "name": "MIN_TIMEOUT",
419
+ "inputs": [
420
+
421
+ ],
422
+ "outputs": [
423
+ {
424
+ "name": "",
425
+ "type": "uint256"
426
+ }
427
+ ]
428
+ },
429
+ {
430
+ "stateMutability": "view",
431
+ "type": "function",
432
+ "name": "DEFAULT_TIMEOUT",
433
+ "inputs": [
434
+
435
+ ],
436
+ "outputs": [
437
+ {
438
+ "name": "",
439
+ "type": "uint256"
440
+ }
441
+ ]
442
+ },
443
+ {
444
+ "stateMutability": "view",
445
+ "type": "function",
446
+ "name": "MAX_TIMEOUT",
447
+ "inputs": [
448
+
449
+ ],
450
+ "outputs": [
451
+ {
452
+ "name": "",
453
+ "type": "uint256"
454
+ }
455
+ ]
456
+ },
457
+ {
458
+ "stateMutability": "view",
459
+ "type": "function",
460
+ "name": "DISPUTE_TIMELOCK",
461
+ "inputs": [
462
+
463
+ ],
464
+ "outputs": [
465
+ {
466
+ "name": "",
467
+ "type": "uint256"
468
+ }
469
+ ]
470
+ },
471
+ {
472
+ "stateMutability": "view",
473
+ "type": "function",
474
+ "name": "orders",
475
+ "inputs": [
476
+ {
477
+ "name": "arg0",
478
+ "type": "bytes32"
479
+ }
480
+ ],
481
+ "outputs": [
482
+ {
483
+ "name": "",
484
+ "type": "tuple",
485
+ "components": [
486
+ {
487
+ "name": "buyer",
488
+ "type": "address"
489
+ },
490
+ {
491
+ "name": "merchant",
492
+ "type": "address"
493
+ },
494
+ {
495
+ "name": "amount",
496
+ "type": "uint256"
497
+ },
498
+ {
499
+ "name": "expires_at",
500
+ "type": "uint256"
501
+ },
502
+ {
503
+ "name": "disputed_at",
504
+ "type": "uint256"
505
+ },
506
+ {
507
+ "name": "is_active",
508
+ "type": "bool"
509
+ },
510
+ {
511
+ "name": "is_settled",
512
+ "type": "bool"
513
+ },
514
+ {
515
+ "name": "is_disputed",
516
+ "type": "bool"
517
+ }
518
+ ]
519
+ }
520
+ ]
521
+ },
522
+ {
523
+ "stateMutability": "view",
524
+ "type": "function",
525
+ "name": "settlement_token",
526
+ "inputs": [
527
+
528
+ ],
529
+ "outputs": [
530
+ {
531
+ "name": "",
532
+ "type": "address"
533
+ }
534
+ ]
535
+ },
536
+ {
537
+ "stateMutability": "view",
538
+ "type": "function",
539
+ "name": "operator",
540
+ "inputs": [
541
+
542
+ ],
543
+ "outputs": [
544
+ {
545
+ "name": "",
546
+ "type": "address"
547
+ }
548
+ ]
549
+ },
550
+ {
551
+ "stateMutability": "view",
552
+ "type": "function",
553
+ "name": "pending_operator",
554
+ "inputs": [
555
+
556
+ ],
557
+ "outputs": [
558
+ {
559
+ "name": "",
560
+ "type": "address"
561
+ }
562
+ ]
563
+ },
564
+ {
565
+ "stateMutability": "nonpayable",
566
+ "type": "constructor",
567
+ "inputs": [
568
+ {
569
+ "name": "_token",
570
+ "type": "address"
571
+ },
572
+ {
573
+ "name": "_operator",
574
+ "type": "address"
575
+ }
576
+ ],
577
+ "outputs": [
578
+
579
+ ]
580
+ }
581
+ ]