@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,768 @@
1
+ [
2
+ {
3
+ "name": "Transfer",
4
+ "inputs": [
5
+ {
6
+ "name": "sender",
7
+ "type": "address",
8
+ "indexed": true
9
+ },
10
+ {
11
+ "name": "receiver",
12
+ "type": "address",
13
+ "indexed": true
14
+ },
15
+ {
16
+ "name": "value",
17
+ "type": "uint256",
18
+ "indexed": false
19
+ }
20
+ ],
21
+ "anonymous": false,
22
+ "type": "event"
23
+ },
24
+ {
25
+ "name": "Approval",
26
+ "inputs": [
27
+ {
28
+ "name": "owner",
29
+ "type": "address",
30
+ "indexed": true
31
+ },
32
+ {
33
+ "name": "spender",
34
+ "type": "address",
35
+ "indexed": true
36
+ },
37
+ {
38
+ "name": "value",
39
+ "type": "uint256",
40
+ "indexed": false
41
+ }
42
+ ],
43
+ "anonymous": false,
44
+ "type": "event"
45
+ },
46
+ {
47
+ "name": "LiquidityAdded",
48
+ "inputs": [
49
+ {
50
+ "name": "provider",
51
+ "type": "address",
52
+ "indexed": true
53
+ },
54
+ {
55
+ "name": "recipient",
56
+ "type": "address",
57
+ "indexed": true
58
+ },
59
+ {
60
+ "name": "amount0",
61
+ "type": "uint256",
62
+ "indexed": false
63
+ },
64
+ {
65
+ "name": "amount1",
66
+ "type": "uint256",
67
+ "indexed": false
68
+ },
69
+ {
70
+ "name": "liquidity",
71
+ "type": "uint256",
72
+ "indexed": false
73
+ }
74
+ ],
75
+ "anonymous": false,
76
+ "type": "event"
77
+ },
78
+ {
79
+ "name": "LiquidityRemoved",
80
+ "inputs": [
81
+ {
82
+ "name": "provider",
83
+ "type": "address",
84
+ "indexed": true
85
+ },
86
+ {
87
+ "name": "recipient",
88
+ "type": "address",
89
+ "indexed": true
90
+ },
91
+ {
92
+ "name": "amount0",
93
+ "type": "uint256",
94
+ "indexed": false
95
+ },
96
+ {
97
+ "name": "amount1",
98
+ "type": "uint256",
99
+ "indexed": false
100
+ },
101
+ {
102
+ "name": "liquidity",
103
+ "type": "uint256",
104
+ "indexed": false
105
+ }
106
+ ],
107
+ "anonymous": false,
108
+ "type": "event"
109
+ },
110
+ {
111
+ "name": "Swap",
112
+ "inputs": [
113
+ {
114
+ "name": "sender",
115
+ "type": "address",
116
+ "indexed": true
117
+ },
118
+ {
119
+ "name": "recipient",
120
+ "type": "address",
121
+ "indexed": true
122
+ },
123
+ {
124
+ "name": "tokenIn",
125
+ "type": "address",
126
+ "indexed": true
127
+ },
128
+ {
129
+ "name": "amountIn",
130
+ "type": "uint256",
131
+ "indexed": false
132
+ },
133
+ {
134
+ "name": "amountOut",
135
+ "type": "uint256",
136
+ "indexed": false
137
+ }
138
+ ],
139
+ "anonymous": false,
140
+ "type": "event"
141
+ },
142
+ {
143
+ "name": "Sync",
144
+ "inputs": [
145
+ {
146
+ "name": "reserve0",
147
+ "type": "uint256",
148
+ "indexed": false
149
+ },
150
+ {
151
+ "name": "reserve1",
152
+ "type": "uint256",
153
+ "indexed": false
154
+ }
155
+ ],
156
+ "anonymous": false,
157
+ "type": "event"
158
+ },
159
+ {
160
+ "name": "PoolPauseToggled",
161
+ "inputs": [
162
+ {
163
+ "name": "paused",
164
+ "type": "bool",
165
+ "indexed": false
166
+ }
167
+ ],
168
+ "anonymous": false,
169
+ "type": "event"
170
+ },
171
+ {
172
+ "name": "OwnerProposed",
173
+ "inputs": [
174
+ {
175
+ "name": "currentOwner",
176
+ "type": "address",
177
+ "indexed": true
178
+ },
179
+ {
180
+ "name": "pendingOwner",
181
+ "type": "address",
182
+ "indexed": true
183
+ }
184
+ ],
185
+ "anonymous": false,
186
+ "type": "event"
187
+ },
188
+ {
189
+ "name": "OwnerTransferred",
190
+ "inputs": [
191
+ {
192
+ "name": "previousOwner",
193
+ "type": "address",
194
+ "indexed": true
195
+ },
196
+ {
197
+ "name": "newOwner",
198
+ "type": "address",
199
+ "indexed": true
200
+ }
201
+ ],
202
+ "anonymous": false,
203
+ "type": "event"
204
+ },
205
+ {
206
+ "stateMutability": "nonpayable",
207
+ "type": "function",
208
+ "name": "transfer",
209
+ "inputs": [
210
+ {
211
+ "name": "to",
212
+ "type": "address"
213
+ },
214
+ {
215
+ "name": "amount",
216
+ "type": "uint256"
217
+ }
218
+ ],
219
+ "outputs": [
220
+ {
221
+ "name": "",
222
+ "type": "bool"
223
+ }
224
+ ]
225
+ },
226
+ {
227
+ "stateMutability": "nonpayable",
228
+ "type": "function",
229
+ "name": "approve",
230
+ "inputs": [
231
+ {
232
+ "name": "spender",
233
+ "type": "address"
234
+ },
235
+ {
236
+ "name": "amount",
237
+ "type": "uint256"
238
+ }
239
+ ],
240
+ "outputs": [
241
+ {
242
+ "name": "",
243
+ "type": "bool"
244
+ }
245
+ ]
246
+ },
247
+ {
248
+ "stateMutability": "nonpayable",
249
+ "type": "function",
250
+ "name": "transferFrom",
251
+ "inputs": [
252
+ {
253
+ "name": "src",
254
+ "type": "address"
255
+ },
256
+ {
257
+ "name": "dst",
258
+ "type": "address"
259
+ },
260
+ {
261
+ "name": "amount",
262
+ "type": "uint256"
263
+ }
264
+ ],
265
+ "outputs": [
266
+ {
267
+ "name": "",
268
+ "type": "bool"
269
+ }
270
+ ]
271
+ },
272
+ {
273
+ "stateMutability": "view",
274
+ "type": "function",
275
+ "name": "lp_balance",
276
+ "inputs": [
277
+ {
278
+ "name": "account",
279
+ "type": "address"
280
+ }
281
+ ],
282
+ "outputs": [
283
+ {
284
+ "name": "",
285
+ "type": "uint256"
286
+ }
287
+ ]
288
+ },
289
+ {
290
+ "stateMutability": "view",
291
+ "type": "function",
292
+ "name": "total_supply",
293
+ "inputs": [
294
+
295
+ ],
296
+ "outputs": [
297
+ {
298
+ "name": "",
299
+ "type": "uint256"
300
+ }
301
+ ]
302
+ },
303
+ {
304
+ "stateMutability": "view",
305
+ "type": "function",
306
+ "name": "get_reserves",
307
+ "inputs": [
308
+
309
+ ],
310
+ "outputs": [
311
+ {
312
+ "name": "",
313
+ "type": "uint256"
314
+ },
315
+ {
316
+ "name": "",
317
+ "type": "uint256"
318
+ }
319
+ ]
320
+ },
321
+ {
322
+ "stateMutability": "view",
323
+ "type": "function",
324
+ "name": "get_amount_out",
325
+ "inputs": [
326
+ {
327
+ "name": "token_in",
328
+ "type": "address"
329
+ },
330
+ {
331
+ "name": "amount_in",
332
+ "type": "uint256"
333
+ }
334
+ ],
335
+ "outputs": [
336
+ {
337
+ "name": "",
338
+ "type": "uint256"
339
+ }
340
+ ]
341
+ },
342
+ {
343
+ "stateMutability": "nonpayable",
344
+ "type": "function",
345
+ "name": "add_liquidity",
346
+ "inputs": [
347
+ {
348
+ "name": "amount0_desired",
349
+ "type": "uint256"
350
+ },
351
+ {
352
+ "name": "amount1_desired",
353
+ "type": "uint256"
354
+ },
355
+ {
356
+ "name": "amount0_min",
357
+ "type": "uint256"
358
+ },
359
+ {
360
+ "name": "amount1_min",
361
+ "type": "uint256"
362
+ },
363
+ {
364
+ "name": "recipient",
365
+ "type": "address"
366
+ }
367
+ ],
368
+ "outputs": [
369
+ {
370
+ "name": "",
371
+ "type": "uint256"
372
+ },
373
+ {
374
+ "name": "",
375
+ "type": "uint256"
376
+ },
377
+ {
378
+ "name": "",
379
+ "type": "uint256"
380
+ }
381
+ ]
382
+ },
383
+ {
384
+ "stateMutability": "nonpayable",
385
+ "type": "function",
386
+ "name": "remove_liquidity",
387
+ "inputs": [
388
+ {
389
+ "name": "liquidity",
390
+ "type": "uint256"
391
+ },
392
+ {
393
+ "name": "amount0_min",
394
+ "type": "uint256"
395
+ },
396
+ {
397
+ "name": "amount1_min",
398
+ "type": "uint256"
399
+ },
400
+ {
401
+ "name": "recipient",
402
+ "type": "address"
403
+ }
404
+ ],
405
+ "outputs": [
406
+ {
407
+ "name": "",
408
+ "type": "uint256"
409
+ },
410
+ {
411
+ "name": "",
412
+ "type": "uint256"
413
+ }
414
+ ]
415
+ },
416
+ {
417
+ "stateMutability": "nonpayable",
418
+ "type": "function",
419
+ "name": "swap",
420
+ "inputs": [
421
+ {
422
+ "name": "token_in",
423
+ "type": "address"
424
+ },
425
+ {
426
+ "name": "amount_in",
427
+ "type": "uint256"
428
+ },
429
+ {
430
+ "name": "min_amount_out",
431
+ "type": "uint256"
432
+ },
433
+ {
434
+ "name": "recipient",
435
+ "type": "address"
436
+ }
437
+ ],
438
+ "outputs": [
439
+ {
440
+ "name": "",
441
+ "type": "uint256"
442
+ }
443
+ ]
444
+ },
445
+ {
446
+ "stateMutability": "nonpayable",
447
+ "type": "function",
448
+ "name": "toggle_pause",
449
+ "inputs": [
450
+
451
+ ],
452
+ "outputs": [
453
+
454
+ ]
455
+ },
456
+ {
457
+ "stateMutability": "nonpayable",
458
+ "type": "function",
459
+ "name": "propose_owner",
460
+ "inputs": [
461
+ {
462
+ "name": "new_owner",
463
+ "type": "address"
464
+ }
465
+ ],
466
+ "outputs": [
467
+
468
+ ]
469
+ },
470
+ {
471
+ "stateMutability": "nonpayable",
472
+ "type": "function",
473
+ "name": "accept_owner",
474
+ "inputs": [
475
+
476
+ ],
477
+ "outputs": [
478
+
479
+ ]
480
+ },
481
+ {
482
+ "stateMutability": "nonpayable",
483
+ "type": "function",
484
+ "name": "recover_stray_token",
485
+ "inputs": [
486
+ {
487
+ "name": "token",
488
+ "type": "address"
489
+ },
490
+ {
491
+ "name": "to",
492
+ "type": "address"
493
+ },
494
+ {
495
+ "name": "amount",
496
+ "type": "uint256"
497
+ }
498
+ ],
499
+ "outputs": [
500
+
501
+ ]
502
+ },
503
+ {
504
+ "stateMutability": "view",
505
+ "type": "function",
506
+ "name": "FEE_BPS",
507
+ "inputs": [
508
+
509
+ ],
510
+ "outputs": [
511
+ {
512
+ "name": "",
513
+ "type": "uint256"
514
+ }
515
+ ]
516
+ },
517
+ {
518
+ "stateMutability": "view",
519
+ "type": "function",
520
+ "name": "BPS_DENOM",
521
+ "inputs": [
522
+
523
+ ],
524
+ "outputs": [
525
+ {
526
+ "name": "",
527
+ "type": "uint256"
528
+ }
529
+ ]
530
+ },
531
+ {
532
+ "stateMutability": "view",
533
+ "type": "function",
534
+ "name": "MINIMUM_LIQUIDITY",
535
+ "inputs": [
536
+
537
+ ],
538
+ "outputs": [
539
+ {
540
+ "name": "",
541
+ "type": "uint256"
542
+ }
543
+ ]
544
+ },
545
+ {
546
+ "stateMutability": "view",
547
+ "type": "function",
548
+ "name": "DEAD_ADDRESS",
549
+ "inputs": [
550
+
551
+ ],
552
+ "outputs": [
553
+ {
554
+ "name": "",
555
+ "type": "address"
556
+ }
557
+ ]
558
+ },
559
+ {
560
+ "stateMutability": "view",
561
+ "type": "function",
562
+ "name": "name",
563
+ "inputs": [
564
+
565
+ ],
566
+ "outputs": [
567
+ {
568
+ "name": "",
569
+ "type": "string"
570
+ }
571
+ ]
572
+ },
573
+ {
574
+ "stateMutability": "view",
575
+ "type": "function",
576
+ "name": "symbol",
577
+ "inputs": [
578
+
579
+ ],
580
+ "outputs": [
581
+ {
582
+ "name": "",
583
+ "type": "string"
584
+ }
585
+ ]
586
+ },
587
+ {
588
+ "stateMutability": "view",
589
+ "type": "function",
590
+ "name": "decimals",
591
+ "inputs": [
592
+
593
+ ],
594
+ "outputs": [
595
+ {
596
+ "name": "",
597
+ "type": "uint8"
598
+ }
599
+ ]
600
+ },
601
+ {
602
+ "stateMutability": "view",
603
+ "type": "function",
604
+ "name": "totalSupply",
605
+ "inputs": [
606
+
607
+ ],
608
+ "outputs": [
609
+ {
610
+ "name": "",
611
+ "type": "uint256"
612
+ }
613
+ ]
614
+ },
615
+ {
616
+ "stateMutability": "view",
617
+ "type": "function",
618
+ "name": "balanceOf",
619
+ "inputs": [
620
+ {
621
+ "name": "arg0",
622
+ "type": "address"
623
+ }
624
+ ],
625
+ "outputs": [
626
+ {
627
+ "name": "",
628
+ "type": "uint256"
629
+ }
630
+ ]
631
+ },
632
+ {
633
+ "stateMutability": "view",
634
+ "type": "function",
635
+ "name": "allowance",
636
+ "inputs": [
637
+ {
638
+ "name": "arg0",
639
+ "type": "address"
640
+ },
641
+ {
642
+ "name": "arg1",
643
+ "type": "address"
644
+ }
645
+ ],
646
+ "outputs": [
647
+ {
648
+ "name": "",
649
+ "type": "uint256"
650
+ }
651
+ ]
652
+ },
653
+ {
654
+ "stateMutability": "view",
655
+ "type": "function",
656
+ "name": "token0",
657
+ "inputs": [
658
+
659
+ ],
660
+ "outputs": [
661
+ {
662
+ "name": "",
663
+ "type": "address"
664
+ }
665
+ ]
666
+ },
667
+ {
668
+ "stateMutability": "view",
669
+ "type": "function",
670
+ "name": "token1",
671
+ "inputs": [
672
+
673
+ ],
674
+ "outputs": [
675
+ {
676
+ "name": "",
677
+ "type": "address"
678
+ }
679
+ ]
680
+ },
681
+ {
682
+ "stateMutability": "view",
683
+ "type": "function",
684
+ "name": "reserve0",
685
+ "inputs": [
686
+
687
+ ],
688
+ "outputs": [
689
+ {
690
+ "name": "",
691
+ "type": "uint256"
692
+ }
693
+ ]
694
+ },
695
+ {
696
+ "stateMutability": "view",
697
+ "type": "function",
698
+ "name": "reserve1",
699
+ "inputs": [
700
+
701
+ ],
702
+ "outputs": [
703
+ {
704
+ "name": "",
705
+ "type": "uint256"
706
+ }
707
+ ]
708
+ },
709
+ {
710
+ "stateMutability": "view",
711
+ "type": "function",
712
+ "name": "owner",
713
+ "inputs": [
714
+
715
+ ],
716
+ "outputs": [
717
+ {
718
+ "name": "",
719
+ "type": "address"
720
+ }
721
+ ]
722
+ },
723
+ {
724
+ "stateMutability": "view",
725
+ "type": "function",
726
+ "name": "pending_owner",
727
+ "inputs": [
728
+
729
+ ],
730
+ "outputs": [
731
+ {
732
+ "name": "",
733
+ "type": "address"
734
+ }
735
+ ]
736
+ },
737
+ {
738
+ "stateMutability": "view",
739
+ "type": "function",
740
+ "name": "paused",
741
+ "inputs": [
742
+
743
+ ],
744
+ "outputs": [
745
+ {
746
+ "name": "",
747
+ "type": "bool"
748
+ }
749
+ ]
750
+ },
751
+ {
752
+ "stateMutability": "nonpayable",
753
+ "type": "constructor",
754
+ "inputs": [
755
+ {
756
+ "name": "_token0",
757
+ "type": "address"
758
+ },
759
+ {
760
+ "name": "_token1",
761
+ "type": "address"
762
+ }
763
+ ],
764
+ "outputs": [
765
+
766
+ ]
767
+ }
768
+ ]