@kasarlabs/ask-starknet-core 0.1.2 → 0.1.3

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.
Files changed (70) hide show
  1. package/build/constants/abis/erc20-new.d.ts +3 -0
  2. package/build/constants/abis/erc20-new.js +703 -0
  3. package/build/constants/abis/erc20-new.js.map +1 -0
  4. package/build/constants/abis/erc20-old.d.ts +122 -0
  5. package/build/constants/abis/erc20-old.js +1030 -0
  6. package/build/constants/abis/erc20-old.js.map +1 -0
  7. package/build/constants/abis/ethereum/index.d.ts +6 -0
  8. package/build/constants/abis/ethereum/index.js +7 -0
  9. package/build/constants/abis/ethereum/index.js.map +1 -0
  10. package/build/constants/abis/ethereum/strk-token-ethereum-abi.d.ts +55 -0
  11. package/build/constants/abis/ethereum/strk-token-ethereum-abi.js +436 -0
  12. package/build/constants/abis/ethereum/strk-token-ethereum-abi.js.map +1 -0
  13. package/build/constants/abis/ethereum/swss-token-ethereum-abi.d.ts +46 -0
  14. package/build/constants/abis/ethereum/swss-token-ethereum-abi.js +233 -0
  15. package/build/constants/abis/ethereum/swss-token-ethereum-abi.js.map +1 -0
  16. package/build/constants/abis/ethereum/token-abi-map.d.ts +3 -0
  17. package/build/constants/abis/ethereum/token-abi-map.js +20 -0
  18. package/build/constants/abis/ethereum/token-abi-map.js.map +1 -0
  19. package/build/constants/abis/ethereum/usdc-token-ethereum-abi.d.ts +28 -0
  20. package/build/constants/abis/ethereum/usdc-token-ethereum-abi.js +754 -0
  21. package/build/constants/abis/ethereum/usdc-token-ethereum-abi.js.map +1 -0
  22. package/build/constants/abis/ethereum/usdt-token-ethereum-abi.d.ts +41 -0
  23. package/build/constants/abis/ethereum/usdt-token-ethereum-abi.js +391 -0
  24. package/build/constants/abis/ethereum/usdt-token-ethereum-abi.js.map +1 -0
  25. package/build/constants/abis/ethereum/wbtc-token-ethereum-abi.d.ts +29 -0
  26. package/build/constants/abis/ethereum/wbtc-token-ethereum-abi.js +297 -0
  27. package/build/constants/abis/ethereum/wbtc-token-ethereum-abi.js.map +1 -0
  28. package/build/constants/abis/index.d.ts +4 -0
  29. package/build/constants/abis/index.js +5 -0
  30. package/build/constants/abis/index.js.map +1 -0
  31. package/build/constants/abis/starknet/eth-token-starknet-abi.d.ts +122 -0
  32. package/build/constants/abis/starknet/eth-token-starknet-abi.js +1030 -0
  33. package/build/constants/abis/starknet/eth-token-starknet-abi.js.map +1 -0
  34. package/build/constants/abis/starknet/index.d.ts +7 -0
  35. package/build/constants/abis/starknet/index.js +8 -0
  36. package/build/constants/abis/starknet/index.js.map +1 -0
  37. package/build/constants/abis/starknet/strk-token-starknet-abi.d.ts +122 -0
  38. package/build/constants/abis/starknet/strk-token-starknet-abi.js +1123 -0
  39. package/build/constants/abis/starknet/strk-token-starknet-abi.js.map +1 -0
  40. package/build/constants/abis/starknet/swss-token-starknet-abi.d.ts +122 -0
  41. package/build/constants/abis/starknet/swss-token-starknet-abi.js +1030 -0
  42. package/build/constants/abis/starknet/swss-token-starknet-abi.js.map +1 -0
  43. package/build/constants/abis/starknet/token-abi-map.d.ts +3 -0
  44. package/build/constants/abis/starknet/token-abi-map.js +22 -0
  45. package/build/constants/abis/starknet/token-abi-map.js.map +1 -0
  46. package/build/constants/abis/starknet/usdc-token-starknet-abi.d.ts +122 -0
  47. package/build/constants/abis/starknet/usdc-token-starknet-abi.js +1030 -0
  48. package/build/constants/abis/starknet/usdc-token-starknet-abi.js.map +1 -0
  49. package/build/constants/abis/starknet/usdt-token-starknet-abi.d.ts +122 -0
  50. package/build/constants/abis/starknet/usdt-token-starknet-abi.js +1030 -0
  51. package/build/constants/abis/starknet/usdt-token-starknet-abi.js.map +1 -0
  52. package/build/constants/abis/starknet/wbtc-token-starknet-abi.d.ts +122 -0
  53. package/build/constants/abis/starknet/wbtc-token-starknet-abi.js +1030 -0
  54. package/build/constants/abis/starknet/wbtc-token-starknet-abi.js.map +1 -0
  55. package/build/constants/contracts/erc20.classhash.d.ts +2 -0
  56. package/build/constants/contracts/erc20.classhash.js +3 -0
  57. package/build/constants/contracts/erc20.classhash.js.map +1 -0
  58. package/build/constants/contracts/index.d.ts +2 -0
  59. package/build/constants/contracts/index.js +3 -0
  60. package/build/constants/contracts/index.js.map +1 -0
  61. package/build/constants/contracts/token-addresses.d.ts +6 -0
  62. package/build/constants/contracts/token-addresses.js +44 -0
  63. package/build/constants/contracts/token-addresses.js.map +1 -0
  64. package/build/index.d.ts +2 -0
  65. package/build/index.js +2 -0
  66. package/build/index.js.map +1 -1
  67. package/build/interfaces/index.d.ts +5 -0
  68. package/build/utils/index.js +19 -18
  69. package/build/utils/index.js.map +1 -1
  70. package/package.json +3 -3
@@ -0,0 +1,1123 @@
1
+ export const STRK_TOKEN_STARKNET_ABI = [
2
+ {
3
+ name: 'LockingContract',
4
+ type: 'impl',
5
+ interface_name: 'src::mintable_lock_interface::ILockingContract',
6
+ },
7
+ {
8
+ name: 'src::mintable_lock_interface::ILockingContract',
9
+ type: 'interface',
10
+ items: [
11
+ {
12
+ name: 'set_locking_contract',
13
+ type: 'function',
14
+ inputs: [
15
+ {
16
+ name: 'locking_contract',
17
+ type: 'core::starknet::contract_address::ContractAddress',
18
+ },
19
+ ],
20
+ outputs: [],
21
+ state_mutability: 'external',
22
+ },
23
+ {
24
+ name: 'get_locking_contract',
25
+ type: 'function',
26
+ inputs: [],
27
+ outputs: [
28
+ {
29
+ type: 'core::starknet::contract_address::ContractAddress',
30
+ },
31
+ ],
32
+ state_mutability: 'view',
33
+ },
34
+ ],
35
+ },
36
+ {
37
+ name: 'LockAndDelegate',
38
+ type: 'impl',
39
+ interface_name: 'src::mintable_lock_interface::ILockAndDelegate',
40
+ },
41
+ {
42
+ name: 'core::integer::u256',
43
+ type: 'struct',
44
+ members: [
45
+ {
46
+ name: 'low',
47
+ type: 'core::integer::u128',
48
+ },
49
+ {
50
+ name: 'high',
51
+ type: 'core::integer::u128',
52
+ },
53
+ ],
54
+ },
55
+ {
56
+ name: 'src::mintable_lock_interface::ILockAndDelegate',
57
+ type: 'interface',
58
+ items: [
59
+ {
60
+ name: 'lock_and_delegate',
61
+ type: 'function',
62
+ inputs: [
63
+ {
64
+ name: 'delegatee',
65
+ type: 'core::starknet::contract_address::ContractAddress',
66
+ },
67
+ {
68
+ name: 'amount',
69
+ type: 'core::integer::u256',
70
+ },
71
+ ],
72
+ outputs: [],
73
+ state_mutability: 'external',
74
+ },
75
+ {
76
+ name: 'lock_and_delegate_by_sig',
77
+ type: 'function',
78
+ inputs: [
79
+ {
80
+ name: 'account',
81
+ type: 'core::starknet::contract_address::ContractAddress',
82
+ },
83
+ {
84
+ name: 'delegatee',
85
+ type: 'core::starknet::contract_address::ContractAddress',
86
+ },
87
+ {
88
+ name: 'amount',
89
+ type: 'core::integer::u256',
90
+ },
91
+ {
92
+ name: 'nonce',
93
+ type: 'core::felt252',
94
+ },
95
+ {
96
+ name: 'expiry',
97
+ type: 'core::integer::u64',
98
+ },
99
+ {
100
+ name: 'signature',
101
+ type: 'core::array::Array::<core::felt252>',
102
+ },
103
+ ],
104
+ outputs: [],
105
+ state_mutability: 'external',
106
+ },
107
+ ],
108
+ },
109
+ {
110
+ name: 'MintableToken',
111
+ type: 'impl',
112
+ interface_name: 'src::mintable_token_interface::IMintableToken',
113
+ },
114
+ {
115
+ name: 'src::mintable_token_interface::IMintableToken',
116
+ type: 'interface',
117
+ items: [
118
+ {
119
+ name: 'permissioned_mint',
120
+ type: 'function',
121
+ inputs: [
122
+ {
123
+ name: 'account',
124
+ type: 'core::starknet::contract_address::ContractAddress',
125
+ },
126
+ {
127
+ name: 'amount',
128
+ type: 'core::integer::u256',
129
+ },
130
+ ],
131
+ outputs: [],
132
+ state_mutability: 'external',
133
+ },
134
+ {
135
+ name: 'permissioned_burn',
136
+ type: 'function',
137
+ inputs: [
138
+ {
139
+ name: 'account',
140
+ type: 'core::starknet::contract_address::ContractAddress',
141
+ },
142
+ {
143
+ name: 'amount',
144
+ type: 'core::integer::u256',
145
+ },
146
+ ],
147
+ outputs: [],
148
+ state_mutability: 'external',
149
+ },
150
+ ],
151
+ },
152
+ {
153
+ name: 'MintableTokenCamelImpl',
154
+ type: 'impl',
155
+ interface_name: 'src::mintable_token_interface::IMintableTokenCamel',
156
+ },
157
+ {
158
+ name: 'src::mintable_token_interface::IMintableTokenCamel',
159
+ type: 'interface',
160
+ items: [
161
+ {
162
+ name: 'permissionedMint',
163
+ type: 'function',
164
+ inputs: [
165
+ {
166
+ name: 'account',
167
+ type: 'core::starknet::contract_address::ContractAddress',
168
+ },
169
+ {
170
+ name: 'amount',
171
+ type: 'core::integer::u256',
172
+ },
173
+ ],
174
+ outputs: [],
175
+ state_mutability: 'external',
176
+ },
177
+ {
178
+ name: 'permissionedBurn',
179
+ type: 'function',
180
+ inputs: [
181
+ {
182
+ name: 'account',
183
+ type: 'core::starknet::contract_address::ContractAddress',
184
+ },
185
+ {
186
+ name: 'amount',
187
+ type: 'core::integer::u256',
188
+ },
189
+ ],
190
+ outputs: [],
191
+ state_mutability: 'external',
192
+ },
193
+ ],
194
+ },
195
+ {
196
+ name: 'Replaceable',
197
+ type: 'impl',
198
+ interface_name: 'src::replaceability_interface::IReplaceable',
199
+ },
200
+ {
201
+ name: 'core::array::Span::<core::felt252>',
202
+ type: 'struct',
203
+ members: [
204
+ {
205
+ name: 'snapshot',
206
+ type: '@core::array::Array::<core::felt252>',
207
+ },
208
+ ],
209
+ },
210
+ {
211
+ name: 'src::replaceability_interface::EICData',
212
+ type: 'struct',
213
+ members: [
214
+ {
215
+ name: 'eic_hash',
216
+ type: 'core::starknet::class_hash::ClassHash',
217
+ },
218
+ {
219
+ name: 'eic_init_data',
220
+ type: 'core::array::Span::<core::felt252>',
221
+ },
222
+ ],
223
+ },
224
+ {
225
+ name: 'core::option::Option::<src::replaceability_interface::EICData>',
226
+ type: 'enum',
227
+ variants: [
228
+ {
229
+ name: 'Some',
230
+ type: 'src::replaceability_interface::EICData',
231
+ },
232
+ {
233
+ name: 'None',
234
+ type: '()',
235
+ },
236
+ ],
237
+ },
238
+ {
239
+ name: 'core::bool',
240
+ type: 'enum',
241
+ variants: [
242
+ {
243
+ name: 'False',
244
+ type: '()',
245
+ },
246
+ {
247
+ name: 'True',
248
+ type: '()',
249
+ },
250
+ ],
251
+ },
252
+ {
253
+ name: 'src::replaceability_interface::ImplementationData',
254
+ type: 'struct',
255
+ members: [
256
+ {
257
+ name: 'impl_hash',
258
+ type: 'core::starknet::class_hash::ClassHash',
259
+ },
260
+ {
261
+ name: 'eic_data',
262
+ type: 'core::option::Option::<src::replaceability_interface::EICData>',
263
+ },
264
+ {
265
+ name: 'final',
266
+ type: 'core::bool',
267
+ },
268
+ ],
269
+ },
270
+ {
271
+ name: 'src::replaceability_interface::IReplaceable',
272
+ type: 'interface',
273
+ items: [
274
+ {
275
+ name: 'get_upgrade_delay',
276
+ type: 'function',
277
+ inputs: [],
278
+ outputs: [
279
+ {
280
+ type: 'core::integer::u64',
281
+ },
282
+ ],
283
+ state_mutability: 'view',
284
+ },
285
+ {
286
+ name: 'get_impl_activation_time',
287
+ type: 'function',
288
+ inputs: [
289
+ {
290
+ name: 'implementation_data',
291
+ type: 'src::replaceability_interface::ImplementationData',
292
+ },
293
+ ],
294
+ outputs: [
295
+ {
296
+ type: 'core::integer::u64',
297
+ },
298
+ ],
299
+ state_mutability: 'view',
300
+ },
301
+ {
302
+ name: 'add_new_implementation',
303
+ type: 'function',
304
+ inputs: [
305
+ {
306
+ name: 'implementation_data',
307
+ type: 'src::replaceability_interface::ImplementationData',
308
+ },
309
+ ],
310
+ outputs: [],
311
+ state_mutability: 'external',
312
+ },
313
+ {
314
+ name: 'remove_implementation',
315
+ type: 'function',
316
+ inputs: [
317
+ {
318
+ name: 'implementation_data',
319
+ type: 'src::replaceability_interface::ImplementationData',
320
+ },
321
+ ],
322
+ outputs: [],
323
+ state_mutability: 'external',
324
+ },
325
+ {
326
+ name: 'replace_to',
327
+ type: 'function',
328
+ inputs: [
329
+ {
330
+ name: 'implementation_data',
331
+ type: 'src::replaceability_interface::ImplementationData',
332
+ },
333
+ ],
334
+ outputs: [],
335
+ state_mutability: 'external',
336
+ },
337
+ ],
338
+ },
339
+ {
340
+ name: 'AccessControlImplExternal',
341
+ type: 'impl',
342
+ interface_name: 'src::access_control_interface::IAccessControl',
343
+ },
344
+ {
345
+ name: 'src::access_control_interface::IAccessControl',
346
+ type: 'interface',
347
+ items: [
348
+ {
349
+ name: 'has_role',
350
+ type: 'function',
351
+ inputs: [
352
+ {
353
+ name: 'role',
354
+ type: 'core::felt252',
355
+ },
356
+ {
357
+ name: 'account',
358
+ type: 'core::starknet::contract_address::ContractAddress',
359
+ },
360
+ ],
361
+ outputs: [
362
+ {
363
+ type: 'core::bool',
364
+ },
365
+ ],
366
+ state_mutability: 'view',
367
+ },
368
+ {
369
+ name: 'get_role_admin',
370
+ type: 'function',
371
+ inputs: [
372
+ {
373
+ name: 'role',
374
+ type: 'core::felt252',
375
+ },
376
+ ],
377
+ outputs: [
378
+ {
379
+ type: 'core::felt252',
380
+ },
381
+ ],
382
+ state_mutability: 'view',
383
+ },
384
+ ],
385
+ },
386
+ {
387
+ name: 'RolesImpl',
388
+ type: 'impl',
389
+ interface_name: 'src::roles_interface::IMinimalRoles',
390
+ },
391
+ {
392
+ name: 'src::roles_interface::IMinimalRoles',
393
+ type: 'interface',
394
+ items: [
395
+ {
396
+ name: 'is_governance_admin',
397
+ type: 'function',
398
+ inputs: [
399
+ {
400
+ name: 'account',
401
+ type: 'core::starknet::contract_address::ContractAddress',
402
+ },
403
+ ],
404
+ outputs: [
405
+ {
406
+ type: 'core::bool',
407
+ },
408
+ ],
409
+ state_mutability: 'view',
410
+ },
411
+ {
412
+ name: 'is_upgrade_governor',
413
+ type: 'function',
414
+ inputs: [
415
+ {
416
+ name: 'account',
417
+ type: 'core::starknet::contract_address::ContractAddress',
418
+ },
419
+ ],
420
+ outputs: [
421
+ {
422
+ type: 'core::bool',
423
+ },
424
+ ],
425
+ state_mutability: 'view',
426
+ },
427
+ {
428
+ name: 'register_governance_admin',
429
+ type: 'function',
430
+ inputs: [
431
+ {
432
+ name: 'account',
433
+ type: 'core::starknet::contract_address::ContractAddress',
434
+ },
435
+ ],
436
+ outputs: [],
437
+ state_mutability: 'external',
438
+ },
439
+ {
440
+ name: 'remove_governance_admin',
441
+ type: 'function',
442
+ inputs: [
443
+ {
444
+ name: 'account',
445
+ type: 'core::starknet::contract_address::ContractAddress',
446
+ },
447
+ ],
448
+ outputs: [],
449
+ state_mutability: 'external',
450
+ },
451
+ {
452
+ name: 'register_upgrade_governor',
453
+ type: 'function',
454
+ inputs: [
455
+ {
456
+ name: 'account',
457
+ type: 'core::starknet::contract_address::ContractAddress',
458
+ },
459
+ ],
460
+ outputs: [],
461
+ state_mutability: 'external',
462
+ },
463
+ {
464
+ name: 'remove_upgrade_governor',
465
+ type: 'function',
466
+ inputs: [
467
+ {
468
+ name: 'account',
469
+ type: 'core::starknet::contract_address::ContractAddress',
470
+ },
471
+ ],
472
+ outputs: [],
473
+ state_mutability: 'external',
474
+ },
475
+ {
476
+ name: 'renounce',
477
+ type: 'function',
478
+ inputs: [
479
+ {
480
+ name: 'role',
481
+ type: 'core::felt252',
482
+ },
483
+ ],
484
+ outputs: [],
485
+ state_mutability: 'external',
486
+ },
487
+ ],
488
+ },
489
+ {
490
+ name: 'ERC20Impl',
491
+ type: 'impl',
492
+ interface_name: 'openzeppelin::token::erc20::interface::IERC20',
493
+ },
494
+ {
495
+ name: 'openzeppelin::token::erc20::interface::IERC20',
496
+ type: 'interface',
497
+ items: [
498
+ {
499
+ name: 'name',
500
+ type: 'function',
501
+ inputs: [],
502
+ outputs: [
503
+ {
504
+ type: 'core::felt252',
505
+ },
506
+ ],
507
+ state_mutability: 'view',
508
+ },
509
+ {
510
+ name: 'symbol',
511
+ type: 'function',
512
+ inputs: [],
513
+ outputs: [
514
+ {
515
+ type: 'core::felt252',
516
+ },
517
+ ],
518
+ state_mutability: 'view',
519
+ },
520
+ {
521
+ name: 'decimals',
522
+ type: 'function',
523
+ inputs: [],
524
+ outputs: [
525
+ {
526
+ type: 'core::integer::u8',
527
+ },
528
+ ],
529
+ state_mutability: 'view',
530
+ },
531
+ {
532
+ name: 'total_supply',
533
+ type: 'function',
534
+ inputs: [],
535
+ outputs: [
536
+ {
537
+ type: 'core::integer::u256',
538
+ },
539
+ ],
540
+ state_mutability: 'view',
541
+ },
542
+ {
543
+ name: 'balance_of',
544
+ type: 'function',
545
+ inputs: [
546
+ {
547
+ name: 'account',
548
+ type: 'core::starknet::contract_address::ContractAddress',
549
+ },
550
+ ],
551
+ outputs: [
552
+ {
553
+ type: 'core::integer::u256',
554
+ },
555
+ ],
556
+ state_mutability: 'view',
557
+ },
558
+ {
559
+ name: 'allowance',
560
+ type: 'function',
561
+ inputs: [
562
+ {
563
+ name: 'owner',
564
+ type: 'core::starknet::contract_address::ContractAddress',
565
+ },
566
+ {
567
+ name: 'spender',
568
+ type: 'core::starknet::contract_address::ContractAddress',
569
+ },
570
+ ],
571
+ outputs: [
572
+ {
573
+ type: 'core::integer::u256',
574
+ },
575
+ ],
576
+ state_mutability: 'view',
577
+ },
578
+ {
579
+ name: 'transfer',
580
+ type: 'function',
581
+ inputs: [
582
+ {
583
+ name: 'recipient',
584
+ type: 'core::starknet::contract_address::ContractAddress',
585
+ },
586
+ {
587
+ name: 'amount',
588
+ type: 'core::integer::u256',
589
+ },
590
+ ],
591
+ outputs: [
592
+ {
593
+ type: 'core::bool',
594
+ },
595
+ ],
596
+ state_mutability: 'external',
597
+ },
598
+ {
599
+ name: 'transfer_from',
600
+ type: 'function',
601
+ inputs: [
602
+ {
603
+ name: 'sender',
604
+ type: 'core::starknet::contract_address::ContractAddress',
605
+ },
606
+ {
607
+ name: 'recipient',
608
+ type: 'core::starknet::contract_address::ContractAddress',
609
+ },
610
+ {
611
+ name: 'amount',
612
+ type: 'core::integer::u256',
613
+ },
614
+ ],
615
+ outputs: [
616
+ {
617
+ type: 'core::bool',
618
+ },
619
+ ],
620
+ state_mutability: 'external',
621
+ },
622
+ {
623
+ name: 'approve',
624
+ type: 'function',
625
+ inputs: [
626
+ {
627
+ name: 'spender',
628
+ type: 'core::starknet::contract_address::ContractAddress',
629
+ },
630
+ {
631
+ name: 'amount',
632
+ type: 'core::integer::u256',
633
+ },
634
+ ],
635
+ outputs: [
636
+ {
637
+ type: 'core::bool',
638
+ },
639
+ ],
640
+ state_mutability: 'external',
641
+ },
642
+ ],
643
+ },
644
+ {
645
+ name: 'ERC20CamelOnlyImpl',
646
+ type: 'impl',
647
+ interface_name: 'openzeppelin::token::erc20::interface::IERC20CamelOnly',
648
+ },
649
+ {
650
+ name: 'openzeppelin::token::erc20::interface::IERC20CamelOnly',
651
+ type: 'interface',
652
+ items: [
653
+ {
654
+ name: 'totalSupply',
655
+ type: 'function',
656
+ inputs: [],
657
+ outputs: [
658
+ {
659
+ type: 'core::integer::u256',
660
+ },
661
+ ],
662
+ state_mutability: 'view',
663
+ },
664
+ {
665
+ name: 'balanceOf',
666
+ type: 'function',
667
+ inputs: [
668
+ {
669
+ name: 'account',
670
+ type: 'core::starknet::contract_address::ContractAddress',
671
+ },
672
+ ],
673
+ outputs: [
674
+ {
675
+ type: 'core::integer::u256',
676
+ },
677
+ ],
678
+ state_mutability: 'view',
679
+ },
680
+ {
681
+ name: 'transferFrom',
682
+ type: 'function',
683
+ inputs: [
684
+ {
685
+ name: 'sender',
686
+ type: 'core::starknet::contract_address::ContractAddress',
687
+ },
688
+ {
689
+ name: 'recipient',
690
+ type: 'core::starknet::contract_address::ContractAddress',
691
+ },
692
+ {
693
+ name: 'amount',
694
+ type: 'core::integer::u256',
695
+ },
696
+ ],
697
+ outputs: [
698
+ {
699
+ type: 'core::bool',
700
+ },
701
+ ],
702
+ state_mutability: 'external',
703
+ },
704
+ ],
705
+ },
706
+ {
707
+ name: 'constructor',
708
+ type: 'constructor',
709
+ inputs: [
710
+ {
711
+ name: 'name',
712
+ type: 'core::felt252',
713
+ },
714
+ {
715
+ name: 'symbol',
716
+ type: 'core::felt252',
717
+ },
718
+ {
719
+ name: 'decimals',
720
+ type: 'core::integer::u8',
721
+ },
722
+ {
723
+ name: 'initial_supply',
724
+ type: 'core::integer::u256',
725
+ },
726
+ {
727
+ name: 'recipient',
728
+ type: 'core::starknet::contract_address::ContractAddress',
729
+ },
730
+ {
731
+ name: 'permitted_minter',
732
+ type: 'core::starknet::contract_address::ContractAddress',
733
+ },
734
+ {
735
+ name: 'provisional_governance_admin',
736
+ type: 'core::starknet::contract_address::ContractAddress',
737
+ },
738
+ {
739
+ name: 'upgrade_delay',
740
+ type: 'core::integer::u64',
741
+ },
742
+ ],
743
+ },
744
+ {
745
+ name: 'increase_allowance',
746
+ type: 'function',
747
+ inputs: [
748
+ {
749
+ name: 'spender',
750
+ type: 'core::starknet::contract_address::ContractAddress',
751
+ },
752
+ {
753
+ name: 'added_value',
754
+ type: 'core::integer::u256',
755
+ },
756
+ ],
757
+ outputs: [
758
+ {
759
+ type: 'core::bool',
760
+ },
761
+ ],
762
+ state_mutability: 'external',
763
+ },
764
+ {
765
+ name: 'decrease_allowance',
766
+ type: 'function',
767
+ inputs: [
768
+ {
769
+ name: 'spender',
770
+ type: 'core::starknet::contract_address::ContractAddress',
771
+ },
772
+ {
773
+ name: 'subtracted_value',
774
+ type: 'core::integer::u256',
775
+ },
776
+ ],
777
+ outputs: [
778
+ {
779
+ type: 'core::bool',
780
+ },
781
+ ],
782
+ state_mutability: 'external',
783
+ },
784
+ {
785
+ name: 'increaseAllowance',
786
+ type: 'function',
787
+ inputs: [
788
+ {
789
+ name: 'spender',
790
+ type: 'core::starknet::contract_address::ContractAddress',
791
+ },
792
+ {
793
+ name: 'addedValue',
794
+ type: 'core::integer::u256',
795
+ },
796
+ ],
797
+ outputs: [
798
+ {
799
+ type: 'core::bool',
800
+ },
801
+ ],
802
+ state_mutability: 'external',
803
+ },
804
+ {
805
+ name: 'decreaseAllowance',
806
+ type: 'function',
807
+ inputs: [
808
+ {
809
+ name: 'spender',
810
+ type: 'core::starknet::contract_address::ContractAddress',
811
+ },
812
+ {
813
+ name: 'subtractedValue',
814
+ type: 'core::integer::u256',
815
+ },
816
+ ],
817
+ outputs: [
818
+ {
819
+ type: 'core::bool',
820
+ },
821
+ ],
822
+ state_mutability: 'external',
823
+ },
824
+ {
825
+ kind: 'struct',
826
+ name: 'src::strk::erc20_lockable::ERC20Lockable::Transfer',
827
+ type: 'event',
828
+ members: [
829
+ {
830
+ kind: 'data',
831
+ name: 'from',
832
+ type: 'core::starknet::contract_address::ContractAddress',
833
+ },
834
+ {
835
+ kind: 'data',
836
+ name: 'to',
837
+ type: 'core::starknet::contract_address::ContractAddress',
838
+ },
839
+ {
840
+ kind: 'data',
841
+ name: 'value',
842
+ type: 'core::integer::u256',
843
+ },
844
+ ],
845
+ },
846
+ {
847
+ kind: 'struct',
848
+ name: 'src::strk::erc20_lockable::ERC20Lockable::Approval',
849
+ type: 'event',
850
+ members: [
851
+ {
852
+ kind: 'data',
853
+ name: 'owner',
854
+ type: 'core::starknet::contract_address::ContractAddress',
855
+ },
856
+ {
857
+ kind: 'data',
858
+ name: 'spender',
859
+ type: 'core::starknet::contract_address::ContractAddress',
860
+ },
861
+ {
862
+ kind: 'data',
863
+ name: 'value',
864
+ type: 'core::integer::u256',
865
+ },
866
+ ],
867
+ },
868
+ {
869
+ kind: 'struct',
870
+ name: 'src::replaceability_interface::ImplementationAdded',
871
+ type: 'event',
872
+ members: [
873
+ {
874
+ kind: 'data',
875
+ name: 'implementation_data',
876
+ type: 'src::replaceability_interface::ImplementationData',
877
+ },
878
+ ],
879
+ },
880
+ {
881
+ kind: 'struct',
882
+ name: 'src::replaceability_interface::ImplementationRemoved',
883
+ type: 'event',
884
+ members: [
885
+ {
886
+ kind: 'data',
887
+ name: 'implementation_data',
888
+ type: 'src::replaceability_interface::ImplementationData',
889
+ },
890
+ ],
891
+ },
892
+ {
893
+ kind: 'struct',
894
+ name: 'src::replaceability_interface::ImplementationReplaced',
895
+ type: 'event',
896
+ members: [
897
+ {
898
+ kind: 'data',
899
+ name: 'implementation_data',
900
+ type: 'src::replaceability_interface::ImplementationData',
901
+ },
902
+ ],
903
+ },
904
+ {
905
+ kind: 'struct',
906
+ name: 'src::replaceability_interface::ImplementationFinalized',
907
+ type: 'event',
908
+ members: [
909
+ {
910
+ kind: 'data',
911
+ name: 'impl_hash',
912
+ type: 'core::starknet::class_hash::ClassHash',
913
+ },
914
+ ],
915
+ },
916
+ {
917
+ kind: 'struct',
918
+ name: 'src::access_control_interface::RoleGranted',
919
+ type: 'event',
920
+ members: [
921
+ {
922
+ kind: 'data',
923
+ name: 'role',
924
+ type: 'core::felt252',
925
+ },
926
+ {
927
+ kind: 'data',
928
+ name: 'account',
929
+ type: 'core::starknet::contract_address::ContractAddress',
930
+ },
931
+ {
932
+ kind: 'data',
933
+ name: 'sender',
934
+ type: 'core::starknet::contract_address::ContractAddress',
935
+ },
936
+ ],
937
+ },
938
+ {
939
+ kind: 'struct',
940
+ name: 'src::access_control_interface::RoleRevoked',
941
+ type: 'event',
942
+ members: [
943
+ {
944
+ kind: 'data',
945
+ name: 'role',
946
+ type: 'core::felt252',
947
+ },
948
+ {
949
+ kind: 'data',
950
+ name: 'account',
951
+ type: 'core::starknet::contract_address::ContractAddress',
952
+ },
953
+ {
954
+ kind: 'data',
955
+ name: 'sender',
956
+ type: 'core::starknet::contract_address::ContractAddress',
957
+ },
958
+ ],
959
+ },
960
+ {
961
+ kind: 'struct',
962
+ name: 'src::access_control_interface::RoleAdminChanged',
963
+ type: 'event',
964
+ members: [
965
+ {
966
+ kind: 'data',
967
+ name: 'role',
968
+ type: 'core::felt252',
969
+ },
970
+ {
971
+ kind: 'data',
972
+ name: 'previous_admin_role',
973
+ type: 'core::felt252',
974
+ },
975
+ {
976
+ kind: 'data',
977
+ name: 'new_admin_role',
978
+ type: 'core::felt252',
979
+ },
980
+ ],
981
+ },
982
+ {
983
+ kind: 'struct',
984
+ name: 'src::roles_interface::GovernanceAdminAdded',
985
+ type: 'event',
986
+ members: [
987
+ {
988
+ kind: 'data',
989
+ name: 'added_account',
990
+ type: 'core::starknet::contract_address::ContractAddress',
991
+ },
992
+ {
993
+ kind: 'data',
994
+ name: 'added_by',
995
+ type: 'core::starknet::contract_address::ContractAddress',
996
+ },
997
+ ],
998
+ },
999
+ {
1000
+ kind: 'struct',
1001
+ name: 'src::roles_interface::GovernanceAdminRemoved',
1002
+ type: 'event',
1003
+ members: [
1004
+ {
1005
+ kind: 'data',
1006
+ name: 'removed_account',
1007
+ type: 'core::starknet::contract_address::ContractAddress',
1008
+ },
1009
+ {
1010
+ kind: 'data',
1011
+ name: 'removed_by',
1012
+ type: 'core::starknet::contract_address::ContractAddress',
1013
+ },
1014
+ ],
1015
+ },
1016
+ {
1017
+ kind: 'struct',
1018
+ name: 'src::roles_interface::UpgradeGovernorAdded',
1019
+ type: 'event',
1020
+ members: [
1021
+ {
1022
+ kind: 'data',
1023
+ name: 'added_account',
1024
+ type: 'core::starknet::contract_address::ContractAddress',
1025
+ },
1026
+ {
1027
+ kind: 'data',
1028
+ name: 'added_by',
1029
+ type: 'core::starknet::contract_address::ContractAddress',
1030
+ },
1031
+ ],
1032
+ },
1033
+ {
1034
+ kind: 'struct',
1035
+ name: 'src::roles_interface::UpgradeGovernorRemoved',
1036
+ type: 'event',
1037
+ members: [
1038
+ {
1039
+ kind: 'data',
1040
+ name: 'removed_account',
1041
+ type: 'core::starknet::contract_address::ContractAddress',
1042
+ },
1043
+ {
1044
+ kind: 'data',
1045
+ name: 'removed_by',
1046
+ type: 'core::starknet::contract_address::ContractAddress',
1047
+ },
1048
+ ],
1049
+ },
1050
+ {
1051
+ kind: 'enum',
1052
+ name: 'src::strk::erc20_lockable::ERC20Lockable::Event',
1053
+ type: 'event',
1054
+ variants: [
1055
+ {
1056
+ kind: 'nested',
1057
+ name: 'Transfer',
1058
+ type: 'src::strk::erc20_lockable::ERC20Lockable::Transfer',
1059
+ },
1060
+ {
1061
+ kind: 'nested',
1062
+ name: 'Approval',
1063
+ type: 'src::strk::erc20_lockable::ERC20Lockable::Approval',
1064
+ },
1065
+ {
1066
+ kind: 'nested',
1067
+ name: 'ImplementationAdded',
1068
+ type: 'src::replaceability_interface::ImplementationAdded',
1069
+ },
1070
+ {
1071
+ kind: 'nested',
1072
+ name: 'ImplementationRemoved',
1073
+ type: 'src::replaceability_interface::ImplementationRemoved',
1074
+ },
1075
+ {
1076
+ kind: 'nested',
1077
+ name: 'ImplementationReplaced',
1078
+ type: 'src::replaceability_interface::ImplementationReplaced',
1079
+ },
1080
+ {
1081
+ kind: 'nested',
1082
+ name: 'ImplementationFinalized',
1083
+ type: 'src::replaceability_interface::ImplementationFinalized',
1084
+ },
1085
+ {
1086
+ kind: 'nested',
1087
+ name: 'RoleGranted',
1088
+ type: 'src::access_control_interface::RoleGranted',
1089
+ },
1090
+ {
1091
+ kind: 'nested',
1092
+ name: 'RoleRevoked',
1093
+ type: 'src::access_control_interface::RoleRevoked',
1094
+ },
1095
+ {
1096
+ kind: 'nested',
1097
+ name: 'RoleAdminChanged',
1098
+ type: 'src::access_control_interface::RoleAdminChanged',
1099
+ },
1100
+ {
1101
+ kind: 'nested',
1102
+ name: 'GovernanceAdminAdded',
1103
+ type: 'src::roles_interface::GovernanceAdminAdded',
1104
+ },
1105
+ {
1106
+ kind: 'nested',
1107
+ name: 'GovernanceAdminRemoved',
1108
+ type: 'src::roles_interface::GovernanceAdminRemoved',
1109
+ },
1110
+ {
1111
+ kind: 'nested',
1112
+ name: 'UpgradeGovernorAdded',
1113
+ type: 'src::roles_interface::UpgradeGovernorAdded',
1114
+ },
1115
+ {
1116
+ kind: 'nested',
1117
+ name: 'UpgradeGovernorRemoved',
1118
+ type: 'src::roles_interface::UpgradeGovernorRemoved',
1119
+ },
1120
+ ],
1121
+ },
1122
+ ];
1123
+ //# sourceMappingURL=strk-token-starknet-abi.js.map