@the-situation/artifacts 0.5.0-alpha.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,595 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "name": "constructor",
5
+ "inputs": [
6
+ {
7
+ "name": "owner",
8
+ "type": "core::starknet::contract_address::ContractAddress"
9
+ },
10
+ {
11
+ "name": "amm_class_hash",
12
+ "type": "core::starknet::class_hash::ClassHash"
13
+ },
14
+ {
15
+ "name": "math_class_hash",
16
+ "type": "core::starknet::class_hash::ClassHash"
17
+ }
18
+ ]
19
+ },
20
+ {
21
+ "type": "function",
22
+ "name": "get_amm_class_hash",
23
+ "inputs": [],
24
+ "outputs": [
25
+ {
26
+ "type": "core::starknet::class_hash::ClassHash"
27
+ }
28
+ ],
29
+ "state_mutability": "view"
30
+ },
31
+ {
32
+ "type": "function",
33
+ "name": "get_owner",
34
+ "inputs": [],
35
+ "outputs": [
36
+ {
37
+ "type": "core::starknet::contract_address::ContractAddress"
38
+ }
39
+ ],
40
+ "state_mutability": "view"
41
+ },
42
+ {
43
+ "type": "enum",
44
+ "name": "core::bool",
45
+ "variants": [
46
+ {
47
+ "name": "False",
48
+ "type": "()"
49
+ },
50
+ {
51
+ "name": "True",
52
+ "type": "()"
53
+ }
54
+ ]
55
+ },
56
+ {
57
+ "type": "function",
58
+ "name": "is_paused",
59
+ "inputs": [],
60
+ "outputs": [
61
+ {
62
+ "type": "core::bool"
63
+ }
64
+ ],
65
+ "state_mutability": "view"
66
+ },
67
+ {
68
+ "type": "function",
69
+ "name": "get_math_class_hash",
70
+ "inputs": [],
71
+ "outputs": [
72
+ {
73
+ "type": "core::starknet::class_hash::ClassHash"
74
+ }
75
+ ],
76
+ "state_mutability": "view"
77
+ },
78
+ {
79
+ "type": "struct",
80
+ "name": "the_situation::types::sq128::types::SQ128x128Raw",
81
+ "members": [
82
+ {
83
+ "name": "limb0",
84
+ "type": "core::integer::u64"
85
+ },
86
+ {
87
+ "name": "limb1",
88
+ "type": "core::integer::u64"
89
+ },
90
+ {
91
+ "name": "limb2",
92
+ "type": "core::integer::u64"
93
+ },
94
+ {
95
+ "name": "limb3",
96
+ "type": "core::integer::u64"
97
+ },
98
+ {
99
+ "name": "neg",
100
+ "type": "core::bool"
101
+ }
102
+ ]
103
+ },
104
+ {
105
+ "type": "struct",
106
+ "name": "the_situation::types::normal_distribution::NormalDistributionRaw",
107
+ "members": [
108
+ {
109
+ "name": "mean",
110
+ "type": "the_situation::types::sq128::types::SQ128x128Raw"
111
+ },
112
+ {
113
+ "name": "variance",
114
+ "type": "the_situation::types::sq128::types::SQ128x128Raw"
115
+ },
116
+ {
117
+ "name": "sigma",
118
+ "type": "the_situation::types::sq128::types::SQ128x128Raw"
119
+ }
120
+ ]
121
+ },
122
+ {
123
+ "type": "struct",
124
+ "name": "the_situation::onchain::common::NormalSqrtHintsRaw",
125
+ "members": [
126
+ {
127
+ "name": "l2_norm_denom",
128
+ "type": "the_situation::types::sq128::types::SQ128x128Raw"
129
+ },
130
+ {
131
+ "name": "backing_denom",
132
+ "type": "the_situation::types::sq128::types::SQ128x128Raw"
133
+ }
134
+ ]
135
+ },
136
+ {
137
+ "type": "struct",
138
+ "name": "the_situation::onchain::common::FeeConfigRaw",
139
+ "members": [
140
+ {
141
+ "name": "lp_fee_bps",
142
+ "type": "core::integer::u16"
143
+ },
144
+ {
145
+ "name": "protocol_fee_bps",
146
+ "type": "core::integer::u16"
147
+ },
148
+ {
149
+ "name": "settlement_fee_bps",
150
+ "type": "core::integer::u16"
151
+ }
152
+ ]
153
+ },
154
+ {
155
+ "type": "function",
156
+ "name": "deploy_normal_market",
157
+ "inputs": [
158
+ {
159
+ "name": "salt",
160
+ "type": "core::felt252"
161
+ },
162
+ {
163
+ "name": "market_owner",
164
+ "type": "core::starknet::contract_address::ContractAddress"
165
+ },
166
+ {
167
+ "name": "market_admin",
168
+ "type": "core::starknet::contract_address::ContractAddress"
169
+ },
170
+ {
171
+ "name": "collateral_token",
172
+ "type": "core::starknet::contract_address::ContractAddress"
173
+ },
174
+ {
175
+ "name": "token_decimals",
176
+ "type": "core::integer::u8"
177
+ },
178
+ {
179
+ "name": "internal_decimals",
180
+ "type": "core::integer::u8"
181
+ },
182
+ {
183
+ "name": "initial_distribution",
184
+ "type": "the_situation::types::normal_distribution::NormalDistributionRaw"
185
+ },
186
+ {
187
+ "name": "k",
188
+ "type": "the_situation::types::sq128::types::SQ128x128Raw"
189
+ },
190
+ {
191
+ "name": "backing",
192
+ "type": "the_situation::types::sq128::types::SQ128x128Raw"
193
+ },
194
+ {
195
+ "name": "tolerance",
196
+ "type": "the_situation::types::sq128::types::SQ128x128Raw"
197
+ },
198
+ {
199
+ "name": "min_trade_collateral",
200
+ "type": "the_situation::types::sq128::types::SQ128x128Raw"
201
+ },
202
+ {
203
+ "name": "initial_hints",
204
+ "type": "the_situation::onchain::common::NormalSqrtHintsRaw"
205
+ },
206
+ {
207
+ "name": "fee_config",
208
+ "type": "the_situation::onchain::common::FeeConfigRaw"
209
+ },
210
+ {
211
+ "name": "extension",
212
+ "type": "core::starknet::contract_address::ContractAddress"
213
+ },
214
+ {
215
+ "name": "extension_call_points",
216
+ "type": "core::integer::u16"
217
+ },
218
+ {
219
+ "name": "metadata_hash",
220
+ "type": "core::felt252"
221
+ }
222
+ ],
223
+ "outputs": [
224
+ {
225
+ "type": "core::starknet::contract_address::ContractAddress"
226
+ }
227
+ ],
228
+ "state_mutability": "external"
229
+ },
230
+ {
231
+ "type": "function",
232
+ "name": "approve_extension",
233
+ "inputs": [
234
+ {
235
+ "name": "extension",
236
+ "type": "core::starknet::contract_address::ContractAddress"
237
+ }
238
+ ],
239
+ "outputs": [],
240
+ "state_mutability": "external"
241
+ },
242
+ {
243
+ "type": "function",
244
+ "name": "revoke_extension",
245
+ "inputs": [
246
+ {
247
+ "name": "extension",
248
+ "type": "core::starknet::contract_address::ContractAddress"
249
+ }
250
+ ],
251
+ "outputs": [],
252
+ "state_mutability": "external"
253
+ },
254
+ {
255
+ "type": "function",
256
+ "name": "is_extension_approved",
257
+ "inputs": [
258
+ {
259
+ "name": "extension",
260
+ "type": "core::starknet::contract_address::ContractAddress"
261
+ }
262
+ ],
263
+ "outputs": [
264
+ {
265
+ "type": "core::bool"
266
+ }
267
+ ],
268
+ "state_mutability": "view"
269
+ },
270
+ {
271
+ "type": "function",
272
+ "name": "update_class_hash",
273
+ "inputs": [
274
+ {
275
+ "name": "new_class_hash",
276
+ "type": "core::starknet::class_hash::ClassHash"
277
+ }
278
+ ],
279
+ "outputs": [],
280
+ "state_mutability": "external"
281
+ },
282
+ {
283
+ "type": "function",
284
+ "name": "update_math_class_hash",
285
+ "inputs": [
286
+ {
287
+ "name": "new_class_hash",
288
+ "type": "core::starknet::class_hash::ClassHash"
289
+ }
290
+ ],
291
+ "outputs": [],
292
+ "state_mutability": "external"
293
+ },
294
+ {
295
+ "type": "function",
296
+ "name": "transfer_ownership",
297
+ "inputs": [
298
+ {
299
+ "name": "new_owner",
300
+ "type": "core::starknet::contract_address::ContractAddress"
301
+ }
302
+ ],
303
+ "outputs": [],
304
+ "state_mutability": "external"
305
+ },
306
+ {
307
+ "type": "function",
308
+ "name": "pause",
309
+ "inputs": [],
310
+ "outputs": [],
311
+ "state_mutability": "external"
312
+ },
313
+ {
314
+ "type": "function",
315
+ "name": "unpause",
316
+ "inputs": [],
317
+ "outputs": [],
318
+ "state_mutability": "external"
319
+ },
320
+ {
321
+ "type": "struct",
322
+ "name": "core::integer::u256",
323
+ "members": [
324
+ {
325
+ "name": "low",
326
+ "type": "core::integer::u128"
327
+ },
328
+ {
329
+ "name": "high",
330
+ "type": "core::integer::u128"
331
+ }
332
+ ]
333
+ },
334
+ {
335
+ "type": "function",
336
+ "name": "withdraw_protocol_fees",
337
+ "inputs": [
338
+ {
339
+ "name": "market",
340
+ "type": "core::starknet::contract_address::ContractAddress"
341
+ }
342
+ ],
343
+ "outputs": [
344
+ {
345
+ "type": "core::integer::u256"
346
+ }
347
+ ],
348
+ "state_mutability": "external"
349
+ },
350
+ {
351
+ "type": "event",
352
+ "name": "the_situation::onchain::markets::normal::factory::normal_factory::MarketDeployed",
353
+ "kind": "struct",
354
+ "members": [
355
+ {
356
+ "name": "market",
357
+ "type": "core::starknet::contract_address::ContractAddress",
358
+ "kind": "key"
359
+ },
360
+ {
361
+ "name": "deployer",
362
+ "type": "core::starknet::contract_address::ContractAddress",
363
+ "kind": "data"
364
+ },
365
+ {
366
+ "name": "collateral_token",
367
+ "type": "core::starknet::contract_address::ContractAddress",
368
+ "kind": "data"
369
+ },
370
+ {
371
+ "name": "token_decimals",
372
+ "type": "core::integer::u8",
373
+ "kind": "data"
374
+ },
375
+ {
376
+ "name": "internal_decimals",
377
+ "type": "core::integer::u8",
378
+ "kind": "data"
379
+ },
380
+ {
381
+ "name": "initial_distribution",
382
+ "type": "the_situation::types::normal_distribution::NormalDistributionRaw",
383
+ "kind": "data"
384
+ },
385
+ {
386
+ "name": "k",
387
+ "type": "the_situation::types::sq128::types::SQ128x128Raw",
388
+ "kind": "data"
389
+ },
390
+ {
391
+ "name": "backing",
392
+ "type": "the_situation::types::sq128::types::SQ128x128Raw",
393
+ "kind": "data"
394
+ },
395
+ {
396
+ "name": "tolerance",
397
+ "type": "the_situation::types::sq128::types::SQ128x128Raw",
398
+ "kind": "data"
399
+ },
400
+ {
401
+ "name": "min_trade_collateral",
402
+ "type": "the_situation::types::sq128::types::SQ128x128Raw",
403
+ "kind": "data"
404
+ },
405
+ {
406
+ "name": "initial_hints",
407
+ "type": "the_situation::onchain::common::NormalSqrtHintsRaw",
408
+ "kind": "data"
409
+ },
410
+ {
411
+ "name": "fee_config",
412
+ "type": "the_situation::onchain::common::FeeConfigRaw",
413
+ "kind": "data"
414
+ },
415
+ {
416
+ "name": "extension",
417
+ "type": "core::starknet::contract_address::ContractAddress",
418
+ "kind": "data"
419
+ },
420
+ {
421
+ "name": "metadata_hash",
422
+ "type": "core::felt252",
423
+ "kind": "data"
424
+ }
425
+ ]
426
+ },
427
+ {
428
+ "type": "event",
429
+ "name": "the_situation::onchain::markets::normal::factory::normal_factory::ClassHashUpdated",
430
+ "kind": "struct",
431
+ "members": [
432
+ {
433
+ "name": "old_class_hash",
434
+ "type": "core::starknet::class_hash::ClassHash",
435
+ "kind": "data"
436
+ },
437
+ {
438
+ "name": "new_class_hash",
439
+ "type": "core::starknet::class_hash::ClassHash",
440
+ "kind": "data"
441
+ }
442
+ ]
443
+ },
444
+ {
445
+ "type": "event",
446
+ "name": "the_situation::onchain::markets::normal::factory::normal_factory::MathClassHashUpdated",
447
+ "kind": "struct",
448
+ "members": [
449
+ {
450
+ "name": "new_class_hash",
451
+ "type": "core::starknet::class_hash::ClassHash",
452
+ "kind": "data"
453
+ }
454
+ ]
455
+ },
456
+ {
457
+ "type": "event",
458
+ "name": "the_situation::onchain::markets::normal::factory::normal_factory::OwnerTransferred",
459
+ "kind": "struct",
460
+ "members": [
461
+ {
462
+ "name": "old_owner",
463
+ "type": "core::starknet::contract_address::ContractAddress",
464
+ "kind": "data"
465
+ },
466
+ {
467
+ "name": "new_owner",
468
+ "type": "core::starknet::contract_address::ContractAddress",
469
+ "kind": "data"
470
+ }
471
+ ]
472
+ },
473
+ {
474
+ "type": "event",
475
+ "name": "the_situation::onchain::markets::normal::factory::normal_factory::FactoryPaused",
476
+ "kind": "struct",
477
+ "members": [
478
+ {
479
+ "name": "by",
480
+ "type": "core::starknet::contract_address::ContractAddress",
481
+ "kind": "data"
482
+ }
483
+ ]
484
+ },
485
+ {
486
+ "type": "event",
487
+ "name": "the_situation::onchain::markets::normal::factory::normal_factory::FactoryUnpaused",
488
+ "kind": "struct",
489
+ "members": [
490
+ {
491
+ "name": "by",
492
+ "type": "core::starknet::contract_address::ContractAddress",
493
+ "kind": "data"
494
+ }
495
+ ]
496
+ },
497
+ {
498
+ "type": "event",
499
+ "name": "the_situation::onchain::markets::normal::factory::normal_factory::ProtocolFeesWithdrawn",
500
+ "kind": "struct",
501
+ "members": [
502
+ {
503
+ "name": "market",
504
+ "type": "core::starknet::contract_address::ContractAddress",
505
+ "kind": "key"
506
+ },
507
+ {
508
+ "name": "amount",
509
+ "type": "core::integer::u256",
510
+ "kind": "data"
511
+ },
512
+ {
513
+ "name": "by",
514
+ "type": "core::starknet::contract_address::ContractAddress",
515
+ "kind": "data"
516
+ }
517
+ ]
518
+ },
519
+ {
520
+ "type": "event",
521
+ "name": "the_situation::onchain::markets::normal::factory::normal_factory::ExtensionApproved",
522
+ "kind": "struct",
523
+ "members": [
524
+ {
525
+ "name": "extension",
526
+ "type": "core::starknet::contract_address::ContractAddress",
527
+ "kind": "key"
528
+ }
529
+ ]
530
+ },
531
+ {
532
+ "type": "event",
533
+ "name": "the_situation::onchain::markets::normal::factory::normal_factory::ExtensionRevoked",
534
+ "kind": "struct",
535
+ "members": [
536
+ {
537
+ "name": "extension",
538
+ "type": "core::starknet::contract_address::ContractAddress",
539
+ "kind": "key"
540
+ }
541
+ ]
542
+ },
543
+ {
544
+ "type": "event",
545
+ "name": "the_situation::onchain::markets::normal::factory::normal_factory::Event",
546
+ "kind": "enum",
547
+ "variants": [
548
+ {
549
+ "name": "MarketDeployed",
550
+ "type": "the_situation::onchain::markets::normal::factory::normal_factory::MarketDeployed",
551
+ "kind": "nested"
552
+ },
553
+ {
554
+ "name": "ClassHashUpdated",
555
+ "type": "the_situation::onchain::markets::normal::factory::normal_factory::ClassHashUpdated",
556
+ "kind": "nested"
557
+ },
558
+ {
559
+ "name": "MathClassHashUpdated",
560
+ "type": "the_situation::onchain::markets::normal::factory::normal_factory::MathClassHashUpdated",
561
+ "kind": "nested"
562
+ },
563
+ {
564
+ "name": "OwnerTransferred",
565
+ "type": "the_situation::onchain::markets::normal::factory::normal_factory::OwnerTransferred",
566
+ "kind": "nested"
567
+ },
568
+ {
569
+ "name": "FactoryPaused",
570
+ "type": "the_situation::onchain::markets::normal::factory::normal_factory::FactoryPaused",
571
+ "kind": "nested"
572
+ },
573
+ {
574
+ "name": "FactoryUnpaused",
575
+ "type": "the_situation::onchain::markets::normal::factory::normal_factory::FactoryUnpaused",
576
+ "kind": "nested"
577
+ },
578
+ {
579
+ "name": "ProtocolFeesWithdrawn",
580
+ "type": "the_situation::onchain::markets::normal::factory::normal_factory::ProtocolFeesWithdrawn",
581
+ "kind": "nested"
582
+ },
583
+ {
584
+ "name": "ExtensionApproved",
585
+ "type": "the_situation::onchain::markets::normal::factory::normal_factory::ExtensionApproved",
586
+ "kind": "nested"
587
+ },
588
+ {
589
+ "name": "ExtensionRevoked",
590
+ "type": "the_situation::onchain::markets::normal::factory::normal_factory::ExtensionRevoked",
591
+ "kind": "nested"
592
+ }
593
+ ]
594
+ }
595
+ ]