@kasarlabs/ask-starknet-core 0.1.1 → 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,3 @@
1
+ export declare const NEW_ERC20_ABI_SEPOLIA: any[];
2
+ export declare const NEW_ERC20_ABI_MAINNET: any[];
3
+ export declare const erc20Abi: any[];
@@ -0,0 +1,703 @@
1
+ export const NEW_ERC20_ABI_SEPOLIA = [
2
+ {
3
+ name: 'ERC20MixinImpl',
4
+ type: 'impl',
5
+ interface_name: 'openzeppelin_token::erc20::interface::IERC20Mixin',
6
+ },
7
+ {
8
+ name: 'core::integer::u256',
9
+ type: 'struct',
10
+ members: [
11
+ {
12
+ name: 'low',
13
+ type: 'core::integer::u128',
14
+ },
15
+ {
16
+ name: 'high',
17
+ type: 'core::integer::u128',
18
+ },
19
+ ],
20
+ },
21
+ {
22
+ name: 'core::bool',
23
+ type: 'enum',
24
+ variants: [
25
+ {
26
+ name: 'False',
27
+ type: '()',
28
+ },
29
+ {
30
+ name: 'True',
31
+ type: '()',
32
+ },
33
+ ],
34
+ },
35
+ {
36
+ name: 'core::byte_array::ByteArray',
37
+ type: 'struct',
38
+ members: [
39
+ {
40
+ name: 'data',
41
+ type: 'core::array::Array::<core::bytes_31::bytes31>',
42
+ },
43
+ {
44
+ name: 'pending_word',
45
+ type: 'core::felt252',
46
+ },
47
+ {
48
+ name: 'pending_word_len',
49
+ type: 'core::integer::u32',
50
+ },
51
+ ],
52
+ },
53
+ {
54
+ name: 'openzeppelin_token::erc20::interface::IERC20Mixin',
55
+ type: 'interface',
56
+ items: [
57
+ {
58
+ name: 'total_supply',
59
+ type: 'function',
60
+ inputs: [],
61
+ outputs: [
62
+ {
63
+ type: 'core::integer::u256',
64
+ },
65
+ ],
66
+ state_mutability: 'view',
67
+ },
68
+ {
69
+ name: 'balance_of',
70
+ type: 'function',
71
+ inputs: [
72
+ {
73
+ name: 'account',
74
+ type: 'core::starknet::contract_address::ContractAddress',
75
+ },
76
+ ],
77
+ outputs: [
78
+ {
79
+ type: 'core::integer::u256',
80
+ },
81
+ ],
82
+ state_mutability: 'view',
83
+ },
84
+ {
85
+ name: 'allowance',
86
+ type: 'function',
87
+ inputs: [
88
+ {
89
+ name: 'owner',
90
+ type: 'core::starknet::contract_address::ContractAddress',
91
+ },
92
+ {
93
+ name: 'spender',
94
+ type: 'core::starknet::contract_address::ContractAddress',
95
+ },
96
+ ],
97
+ outputs: [
98
+ {
99
+ type: 'core::integer::u256',
100
+ },
101
+ ],
102
+ state_mutability: 'view',
103
+ },
104
+ {
105
+ name: 'transfer',
106
+ type: 'function',
107
+ inputs: [
108
+ {
109
+ name: 'recipient',
110
+ type: 'core::starknet::contract_address::ContractAddress',
111
+ },
112
+ {
113
+ name: 'amount',
114
+ type: 'core::integer::u256',
115
+ },
116
+ ],
117
+ outputs: [
118
+ {
119
+ type: 'core::bool',
120
+ },
121
+ ],
122
+ state_mutability: 'external',
123
+ },
124
+ {
125
+ name: 'transfer_from',
126
+ type: 'function',
127
+ inputs: [
128
+ {
129
+ name: 'sender',
130
+ type: 'core::starknet::contract_address::ContractAddress',
131
+ },
132
+ {
133
+ name: 'recipient',
134
+ type: 'core::starknet::contract_address::ContractAddress',
135
+ },
136
+ {
137
+ name: 'amount',
138
+ type: 'core::integer::u256',
139
+ },
140
+ ],
141
+ outputs: [
142
+ {
143
+ type: 'core::bool',
144
+ },
145
+ ],
146
+ state_mutability: 'external',
147
+ },
148
+ {
149
+ name: 'approve',
150
+ type: 'function',
151
+ inputs: [
152
+ {
153
+ name: 'spender',
154
+ type: 'core::starknet::contract_address::ContractAddress',
155
+ },
156
+ {
157
+ name: 'amount',
158
+ type: 'core::integer::u256',
159
+ },
160
+ ],
161
+ outputs: [
162
+ {
163
+ type: 'core::bool',
164
+ },
165
+ ],
166
+ state_mutability: 'external',
167
+ },
168
+ {
169
+ name: 'name',
170
+ type: 'function',
171
+ inputs: [],
172
+ outputs: [
173
+ {
174
+ type: 'core::byte_array::ByteArray',
175
+ },
176
+ ],
177
+ state_mutability: 'view',
178
+ },
179
+ {
180
+ name: 'symbol',
181
+ type: 'function',
182
+ inputs: [],
183
+ outputs: [
184
+ {
185
+ type: 'core::byte_array::ByteArray',
186
+ },
187
+ ],
188
+ state_mutability: 'view',
189
+ },
190
+ {
191
+ name: 'decimals',
192
+ type: 'function',
193
+ inputs: [],
194
+ outputs: [
195
+ {
196
+ type: 'core::integer::u8',
197
+ },
198
+ ],
199
+ state_mutability: 'view',
200
+ },
201
+ {
202
+ name: 'totalSupply',
203
+ type: 'function',
204
+ inputs: [],
205
+ outputs: [
206
+ {
207
+ type: 'core::integer::u256',
208
+ },
209
+ ],
210
+ state_mutability: 'view',
211
+ },
212
+ {
213
+ name: 'balanceOf',
214
+ type: 'function',
215
+ inputs: [
216
+ {
217
+ name: 'account',
218
+ type: 'core::starknet::contract_address::ContractAddress',
219
+ },
220
+ ],
221
+ outputs: [
222
+ {
223
+ type: 'core::integer::u256',
224
+ },
225
+ ],
226
+ state_mutability: 'view',
227
+ },
228
+ {
229
+ name: 'transferFrom',
230
+ type: 'function',
231
+ inputs: [
232
+ {
233
+ name: 'sender',
234
+ type: 'core::starknet::contract_address::ContractAddress',
235
+ },
236
+ {
237
+ name: 'recipient',
238
+ type: 'core::starknet::contract_address::ContractAddress',
239
+ },
240
+ {
241
+ name: 'amount',
242
+ type: 'core::integer::u256',
243
+ },
244
+ ],
245
+ outputs: [
246
+ {
247
+ type: 'core::bool',
248
+ },
249
+ ],
250
+ state_mutability: 'external',
251
+ },
252
+ ],
253
+ },
254
+ {
255
+ name: 'constructor',
256
+ type: 'constructor',
257
+ inputs: [
258
+ {
259
+ name: 'name',
260
+ type: 'core::byte_array::ByteArray',
261
+ },
262
+ {
263
+ name: 'symbol',
264
+ type: 'core::byte_array::ByteArray',
265
+ },
266
+ {
267
+ name: 'fixed_supply',
268
+ type: 'core::integer::u256',
269
+ },
270
+ {
271
+ name: 'recipient',
272
+ type: 'core::starknet::contract_address::ContractAddress',
273
+ },
274
+ ],
275
+ },
276
+ {
277
+ kind: 'struct',
278
+ name: 'openzeppelin_token::erc20::erc20::ERC20Component::Transfer',
279
+ type: 'event',
280
+ members: [
281
+ {
282
+ kind: 'key',
283
+ name: 'from',
284
+ type: 'core::starknet::contract_address::ContractAddress',
285
+ },
286
+ {
287
+ kind: 'key',
288
+ name: 'to',
289
+ type: 'core::starknet::contract_address::ContractAddress',
290
+ },
291
+ {
292
+ kind: 'data',
293
+ name: 'value',
294
+ type: 'core::integer::u256',
295
+ },
296
+ ],
297
+ },
298
+ {
299
+ kind: 'struct',
300
+ name: 'openzeppelin_token::erc20::erc20::ERC20Component::Approval',
301
+ type: 'event',
302
+ members: [
303
+ {
304
+ kind: 'key',
305
+ name: 'owner',
306
+ type: 'core::starknet::contract_address::ContractAddress',
307
+ },
308
+ {
309
+ kind: 'key',
310
+ name: 'spender',
311
+ type: 'core::starknet::contract_address::ContractAddress',
312
+ },
313
+ {
314
+ kind: 'data',
315
+ name: 'value',
316
+ type: 'core::integer::u256',
317
+ },
318
+ ],
319
+ },
320
+ {
321
+ kind: 'enum',
322
+ name: 'openzeppelin_token::erc20::erc20::ERC20Component::Event',
323
+ type: 'event',
324
+ variants: [
325
+ {
326
+ kind: 'nested',
327
+ name: 'Transfer',
328
+ type: 'openzeppelin_token::erc20::erc20::ERC20Component::Transfer',
329
+ },
330
+ {
331
+ kind: 'nested',
332
+ name: 'Approval',
333
+ type: 'openzeppelin_token::erc20::erc20::ERC20Component::Approval',
334
+ },
335
+ ],
336
+ },
337
+ {
338
+ kind: 'enum',
339
+ name: 'token::erc20::ERC20Token::Event',
340
+ type: 'event',
341
+ variants: [
342
+ {
343
+ kind: 'flat',
344
+ name: 'ERC20Event',
345
+ type: 'openzeppelin_token::erc20::erc20::ERC20Component::Event',
346
+ },
347
+ ],
348
+ },
349
+ ];
350
+ export const NEW_ERC20_ABI_MAINNET = [
351
+ {
352
+ type: 'impl',
353
+ name: 'ERC20MetadataImpl',
354
+ interface_name: 'token::erc20::ERC20Token::IERC20Metadata',
355
+ },
356
+ {
357
+ type: 'struct',
358
+ name: 'core::byte_array::ByteArray',
359
+ members: [
360
+ { name: 'data', type: 'core::array::Array::<core::bytes_31::bytes31>' },
361
+ { name: 'pending_word', type: 'core::felt252' },
362
+ { name: 'pending_word_len', type: 'core::integer::u32' },
363
+ ],
364
+ },
365
+ {
366
+ type: 'interface',
367
+ name: 'token::erc20::ERC20Token::IERC20Metadata',
368
+ items: [
369
+ {
370
+ type: 'function',
371
+ name: 'name',
372
+ inputs: [],
373
+ outputs: [{ type: 'core::byte_array::ByteArray' }],
374
+ state_mutability: 'view',
375
+ },
376
+ {
377
+ type: 'function',
378
+ name: 'symbol',
379
+ inputs: [],
380
+ outputs: [{ type: 'core::byte_array::ByteArray' }],
381
+ state_mutability: 'view',
382
+ },
383
+ {
384
+ type: 'function',
385
+ name: 'decimals',
386
+ inputs: [],
387
+ outputs: [{ type: 'core::integer::u8' }],
388
+ state_mutability: 'view',
389
+ },
390
+ ],
391
+ },
392
+ {
393
+ type: 'impl',
394
+ name: 'ERC20MixinImpl',
395
+ interface_name: 'openzeppelin::token::erc20::interface::IERC20',
396
+ },
397
+ {
398
+ type: 'struct',
399
+ name: 'core::integer::u256',
400
+ members: [
401
+ { name: 'low', type: 'core::integer::u128' },
402
+ { name: 'high', type: 'core::integer::u128' },
403
+ ],
404
+ },
405
+ {
406
+ type: 'enum',
407
+ name: 'core::bool',
408
+ variants: [
409
+ { name: 'False', type: '()' },
410
+ { name: 'True', type: '()' },
411
+ ],
412
+ },
413
+ {
414
+ type: 'interface',
415
+ name: 'openzeppelin::token::erc20::interface::IERC20',
416
+ items: [
417
+ {
418
+ type: 'function',
419
+ name: 'total_supply',
420
+ inputs: [],
421
+ outputs: [{ type: 'core::integer::u256' }],
422
+ state_mutability: 'view',
423
+ },
424
+ {
425
+ type: 'function',
426
+ name: 'balance_of',
427
+ inputs: [
428
+ {
429
+ name: 'account',
430
+ type: 'core::starknet::contract_address::ContractAddress',
431
+ },
432
+ ],
433
+ outputs: [{ type: 'core::integer::u256' }],
434
+ state_mutability: 'view',
435
+ },
436
+ {
437
+ type: 'function',
438
+ name: 'allowance',
439
+ inputs: [
440
+ {
441
+ name: 'owner',
442
+ type: 'core::starknet::contract_address::ContractAddress',
443
+ },
444
+ {
445
+ name: 'spender',
446
+ type: 'core::starknet::contract_address::ContractAddress',
447
+ },
448
+ ],
449
+ outputs: [{ type: 'core::integer::u256' }],
450
+ state_mutability: 'view',
451
+ },
452
+ {
453
+ type: 'function',
454
+ name: 'transfer',
455
+ inputs: [
456
+ {
457
+ name: 'recipient',
458
+ type: 'core::starknet::contract_address::ContractAddress',
459
+ },
460
+ { name: 'amount', type: 'core::integer::u256' },
461
+ ],
462
+ outputs: [{ type: 'core::bool' }],
463
+ state_mutability: 'external',
464
+ },
465
+ {
466
+ type: 'function',
467
+ name: 'transfer_from',
468
+ inputs: [
469
+ {
470
+ name: 'sender',
471
+ type: 'core::starknet::contract_address::ContractAddress',
472
+ },
473
+ {
474
+ name: 'recipient',
475
+ type: 'core::starknet::contract_address::ContractAddress',
476
+ },
477
+ { name: 'amount', type: 'core::integer::u256' },
478
+ ],
479
+ outputs: [{ type: 'core::bool' }],
480
+ state_mutability: 'external',
481
+ },
482
+ {
483
+ type: 'function',
484
+ name: 'approve',
485
+ inputs: [
486
+ {
487
+ name: 'spender',
488
+ type: 'core::starknet::contract_address::ContractAddress',
489
+ },
490
+ { name: 'amount', type: 'core::integer::u256' },
491
+ ],
492
+ outputs: [{ type: 'core::bool' }],
493
+ state_mutability: 'external',
494
+ },
495
+ ],
496
+ },
497
+ {
498
+ type: 'constructor',
499
+ name: 'constructor',
500
+ inputs: [
501
+ { name: 'name', type: 'core::byte_array::ByteArray' },
502
+ { name: 'symbol', type: 'core::byte_array::ByteArray' },
503
+ { name: 'fixed_supply', type: 'core::integer::u256' },
504
+ {
505
+ name: 'recipient',
506
+ type: 'core::starknet::contract_address::ContractAddress',
507
+ },
508
+ ],
509
+ },
510
+ {
511
+ type: 'event',
512
+ name: 'openzeppelin::token::erc20::erc20::ERC20Component::Transfer',
513
+ kind: 'struct',
514
+ members: [
515
+ {
516
+ name: 'from',
517
+ type: 'core::starknet::contract_address::ContractAddress',
518
+ kind: 'key',
519
+ },
520
+ {
521
+ name: 'to',
522
+ type: 'core::starknet::contract_address::ContractAddress',
523
+ kind: 'key',
524
+ },
525
+ { name: 'value', type: 'core::integer::u256', kind: 'data' },
526
+ ],
527
+ },
528
+ {
529
+ type: 'event',
530
+ name: 'openzeppelin::token::erc20::erc20::ERC20Component::Approval',
531
+ kind: 'struct',
532
+ members: [
533
+ {
534
+ name: 'owner',
535
+ type: 'core::starknet::contract_address::ContractAddress',
536
+ kind: 'key',
537
+ },
538
+ {
539
+ name: 'spender',
540
+ type: 'core::starknet::contract_address::ContractAddress',
541
+ kind: 'key',
542
+ },
543
+ { name: 'value', type: 'core::integer::u256', kind: 'data' },
544
+ ],
545
+ },
546
+ {
547
+ type: 'event',
548
+ name: 'openzeppelin::token::erc20::erc20::ERC20Component::Event',
549
+ kind: 'enum',
550
+ variants: [
551
+ {
552
+ name: 'Transfer',
553
+ type: 'openzeppelin::token::erc20::erc20::ERC20Component::Transfer',
554
+ kind: 'nested',
555
+ },
556
+ {
557
+ name: 'Approval',
558
+ type: 'openzeppelin::token::erc20::erc20::ERC20Component::Approval',
559
+ kind: 'nested',
560
+ },
561
+ ],
562
+ },
563
+ {
564
+ type: 'event',
565
+ name: 'token::erc20::ERC20Token::Event',
566
+ kind: 'enum',
567
+ variants: [
568
+ {
569
+ name: 'ERC20Event',
570
+ type: 'openzeppelin::token::erc20::erc20::ERC20Component::Event',
571
+ kind: 'flat',
572
+ },
573
+ ],
574
+ },
575
+ ];
576
+ export const erc20Abi = [
577
+ {
578
+ type: 'function',
579
+ name: 'name',
580
+ inputs: [],
581
+ outputs: [
582
+ {
583
+ type: 'core::felt252',
584
+ },
585
+ ],
586
+ state_mutability: 'view',
587
+ },
588
+ {
589
+ type: 'function',
590
+ name: 'symbol',
591
+ inputs: [],
592
+ outputs: [
593
+ {
594
+ type: 'core::felt252',
595
+ },
596
+ ],
597
+ state_mutability: 'view',
598
+ },
599
+ {
600
+ type: 'function',
601
+ name: 'decimals',
602
+ inputs: [],
603
+ outputs: [
604
+ {
605
+ type: 'core::integer::u8',
606
+ },
607
+ ],
608
+ state_mutability: 'view',
609
+ },
610
+ {
611
+ type: 'function',
612
+ name: 'balance_of',
613
+ inputs: [
614
+ {
615
+ name: 'account',
616
+ type: 'core::starknet::contract_address::ContractAddress',
617
+ },
618
+ ],
619
+ outputs: [
620
+ {
621
+ type: 'core::integer::u256',
622
+ },
623
+ ],
624
+ state_mutability: 'view',
625
+ },
626
+ {
627
+ type: 'function',
628
+ name: 'balanceOf',
629
+ inputs: [
630
+ {
631
+ name: 'account',
632
+ type: 'core::starknet::contract_address::ContractAddress',
633
+ },
634
+ ],
635
+ outputs: [
636
+ {
637
+ type: 'core::integer::u256',
638
+ },
639
+ ],
640
+ state_mutability: 'view',
641
+ },
642
+ {
643
+ type: 'function',
644
+ name: 'allowance',
645
+ inputs: [
646
+ {
647
+ name: 'owner',
648
+ type: 'core::starknet::contract_address::ContractAddress',
649
+ },
650
+ {
651
+ name: 'spender',
652
+ type: 'core::starknet::contract_address::ContractAddress',
653
+ },
654
+ ],
655
+ outputs: [
656
+ {
657
+ type: 'core::integer::u256',
658
+ },
659
+ ],
660
+ state_mutability: 'view',
661
+ },
662
+ {
663
+ type: 'function',
664
+ name: 'approve',
665
+ inputs: [
666
+ {
667
+ name: 'spender',
668
+ type: 'core::starknet::contract_address::ContractAddress',
669
+ },
670
+ {
671
+ name: 'amount',
672
+ type: 'core::integer::u256',
673
+ },
674
+ ],
675
+ outputs: [
676
+ {
677
+ type: 'core::bool',
678
+ },
679
+ ],
680
+ state_mutability: 'external',
681
+ },
682
+ {
683
+ type: 'function',
684
+ name: 'transfer',
685
+ inputs: [
686
+ {
687
+ name: 'recipient',
688
+ type: 'core::starknet::contract_address::ContractAddress',
689
+ },
690
+ {
691
+ name: 'amount',
692
+ type: 'core::integer::u256',
693
+ },
694
+ ],
695
+ outputs: [
696
+ {
697
+ type: 'core::bool',
698
+ },
699
+ ],
700
+ state_mutability: 'external',
701
+ },
702
+ ];
703
+ //# sourceMappingURL=erc20-new.js.map