juice-shop

Форк
0
/
contractABIs.ts 
569 строк · 9.6 Кб
1
export const nftABI = [
2
  {
3
    inputs: [],
4
    stateMutability: 'nonpayable',
5
    type: 'constructor'
6
  },
7
  {
8
    anonymous: false,
9
    inputs: [
10
      {
11
        indexed: true,
12
        internalType: 'address',
13
        name: 'owner',
14
        type: 'address'
15
      },
16
      {
17
        indexed: true,
18
        internalType: 'address',
19
        name: 'approved',
20
        type: 'address'
21
      },
22
      {
23
        indexed: true,
24
        internalType: 'uint256',
25
        name: 'tokenId',
26
        type: 'uint256'
27
      }
28
    ],
29
    name: 'Approval',
30
    type: 'event'
31
  },
32
  {
33
    anonymous: false,
34
    inputs: [
35
      {
36
        indexed: true,
37
        internalType: 'address',
38
        name: 'owner',
39
        type: 'address'
40
      },
41
      {
42
        indexed: true,
43
        internalType: 'address',
44
        name: 'operator',
45
        type: 'address'
46
      },
47
      {
48
        indexed: false,
49
        internalType: 'bool',
50
        name: 'approved',
51
        type: 'bool'
52
      }
53
    ],
54
    name: 'ApprovalForAll',
55
    type: 'event'
56
  },
57
  {
58
    anonymous: false,
59
    inputs: [
60
      {
61
        indexed: true,
62
        internalType: 'address',
63
        name: 'owner',
64
        type: 'address'
65
      },
66
      {
67
        indexed: false,
68
        internalType: 'uint256',
69
        name: 'tokenId',
70
        type: 'uint256'
71
      }
72
    ],
73
    name: 'NFTMinted',
74
    type: 'event'
75
  },
76
  {
77
    anonymous: false,
78
    inputs: [
79
      {
80
        indexed: true,
81
        internalType: 'address',
82
        name: 'previousOwner',
83
        type: 'address'
84
      },
85
      {
86
        indexed: true,
87
        internalType: 'address',
88
        name: 'newOwner',
89
        type: 'address'
90
      }
91
    ],
92
    name: 'OwnershipTransferred',
93
    type: 'event'
94
  },
95
  {
96
    anonymous: false,
97
    inputs: [
98
      {
99
        indexed: true,
100
        internalType: 'address',
101
        name: 'from',
102
        type: 'address'
103
      },
104
      {
105
        indexed: true,
106
        internalType: 'address',
107
        name: 'to',
108
        type: 'address'
109
      },
110
      {
111
        indexed: true,
112
        internalType: 'uint256',
113
        name: 'tokenId',
114
        type: 'uint256'
115
      }
116
    ],
117
    name: 'Transfer',
118
    type: 'event'
119
  },
120
  {
121
    inputs: [
122
      {
123
        internalType: 'address',
124
        name: 'to',
125
        type: 'address'
126
      },
127
      {
128
        internalType: 'uint256',
129
        name: 'tokenId',
130
        type: 'uint256'
131
      }
132
    ],
133
    name: 'approve',
134
    outputs: [],
135
    stateMutability: 'nonpayable',
136
    type: 'function'
137
  },
138
  {
139
    inputs: [
140
      {
141
        internalType: 'address',
142
        name: 'owner',
143
        type: 'address'
144
      }
145
    ],
146
    name: 'balanceOf',
147
    outputs: [
148
      {
149
        internalType: 'uint256',
150
        name: '',
151
        type: 'uint256'
152
      }
153
    ],
154
    stateMutability: 'view',
155
    type: 'function'
156
  },
157
  {
158
    inputs: [],
159
    name: 'fixedMetadataHash',
160
    outputs: [
161
      {
162
        internalType: 'string',
163
        name: '',
164
        type: 'string'
165
      }
166
    ],
167
    stateMutability: 'view',
168
    type: 'function'
169
  },
170
  {
171
    inputs: [
172
      {
173
        internalType: 'uint256',
174
        name: 'tokenId',
175
        type: 'uint256'
176
      }
177
    ],
178
    name: 'getApproved',
179
    outputs: [
180
      {
181
        internalType: 'address',
182
        name: '',
183
        type: 'address'
184
      }
185
    ],
186
    stateMutability: 'view',
187
    type: 'function'
188
  },
189
  {
190
    inputs: [
191
      {
192
        internalType: 'address',
193
        name: 'owner',
194
        type: 'address'
195
      },
196
      {
197
        internalType: 'address',
198
        name: 'operator',
199
        type: 'address'
200
      }
201
    ],
202
    name: 'isApprovedForAll',
203
    outputs: [
204
      {
205
        internalType: 'bool',
206
        name: '',
207
        type: 'bool'
208
      }
209
    ],
210
    stateMutability: 'view',
211
    type: 'function'
212
  },
213
  {
214
    inputs: [],
215
    name: 'mintNFT',
216
    outputs: [],
217
    stateMutability: 'nonpayable',
218
    type: 'function'
219
  },
220
  {
221
    inputs: [],
222
    name: 'mintPrice',
223
    outputs: [
224
      {
225
        internalType: 'uint256',
226
        name: '',
227
        type: 'uint256'
228
      }
229
    ],
230
    stateMutability: 'view',
231
    type: 'function'
232
  },
233
  {
234
    inputs: [],
235
    name: 'name',
236
    outputs: [
237
      {
238
        internalType: 'string',
239
        name: '',
240
        type: 'string'
241
      }
242
    ],
243
    stateMutability: 'view',
244
    type: 'function'
245
  },
246
  {
247
    inputs: [],
248
    name: 'owner',
249
    outputs: [
250
      {
251
        internalType: 'address',
252
        name: '',
253
        type: 'address'
254
      }
255
    ],
256
    stateMutability: 'view',
257
    type: 'function'
258
  },
259
  {
260
    inputs: [
261
      {
262
        internalType: 'uint256',
263
        name: 'tokenId',
264
        type: 'uint256'
265
      }
266
    ],
267
    name: 'ownerOf',
268
    outputs: [
269
      {
270
        internalType: 'address',
271
        name: '',
272
        type: 'address'
273
      }
274
    ],
275
    stateMutability: 'view',
276
    type: 'function'
277
  },
278
  {
279
    inputs: [],
280
    name: 'renounceOwnership',
281
    outputs: [],
282
    stateMutability: 'nonpayable',
283
    type: 'function'
284
  },
285
  {
286
    inputs: [
287
      {
288
        internalType: 'address',
289
        name: 'from',
290
        type: 'address'
291
      },
292
      {
293
        internalType: 'address',
294
        name: 'to',
295
        type: 'address'
296
      },
297
      {
298
        internalType: 'uint256',
299
        name: 'tokenId',
300
        type: 'uint256'
301
      }
302
    ],
303
    name: 'safeTransferFrom',
304
    outputs: [],
305
    stateMutability: 'nonpayable',
306
    type: 'function'
307
  },
308
  {
309
    inputs: [
310
      {
311
        internalType: 'address',
312
        name: 'from',
313
        type: 'address'
314
      },
315
      {
316
        internalType: 'address',
317
        name: 'to',
318
        type: 'address'
319
      },
320
      {
321
        internalType: 'uint256',
322
        name: 'tokenId',
323
        type: 'uint256'
324
      },
325
      {
326
        internalType: 'bytes',
327
        name: 'data',
328
        type: 'bytes'
329
      }
330
    ],
331
    name: 'safeTransferFrom',
332
    outputs: [],
333
    stateMutability: 'nonpayable',
334
    type: 'function'
335
  },
336
  {
337
    inputs: [
338
      {
339
        internalType: 'address',
340
        name: 'operator',
341
        type: 'address'
342
      },
343
      {
344
        internalType: 'bool',
345
        name: 'approved',
346
        type: 'bool'
347
      }
348
    ],
349
    name: 'setApprovalForAll',
350
    outputs: [],
351
    stateMutability: 'nonpayable',
352
    type: 'function'
353
  },
354
  {
355
    inputs: [
356
      {
357
        internalType: 'bytes4',
358
        name: 'interfaceId',
359
        type: 'bytes4'
360
      }
361
    ],
362
    name: 'supportsInterface',
363
    outputs: [
364
      {
365
        internalType: 'bool',
366
        name: '',
367
        type: 'bool'
368
      }
369
    ],
370
    stateMutability: 'view',
371
    type: 'function'
372
  },
373
  {
374
    inputs: [],
375
    name: 'symbol',
376
    outputs: [
377
      {
378
        internalType: 'string',
379
        name: '',
380
        type: 'string'
381
      }
382
    ],
383
    stateMutability: 'view',
384
    type: 'function'
385
  },
386
  {
387
    inputs: [],
388
    name: 'token',
389
    outputs: [
390
      {
391
        internalType: 'contract IERC20',
392
        name: '',
393
        type: 'address'
394
      }
395
    ],
396
    stateMutability: 'view',
397
    type: 'function'
398
  },
399
  {
400
    inputs: [
401
      {
402
        internalType: 'uint256',
403
        name: 'tokenId',
404
        type: 'uint256'
405
      }
406
    ],
407
    name: 'tokenURI',
408
    outputs: [
409
      {
410
        internalType: 'string',
411
        name: '',
412
        type: 'string'
413
      }
414
    ],
415
    stateMutability: 'view',
416
    type: 'function'
417
  },
418
  {
419
    inputs: [],
420
    name: 'totalSupply',
421
    outputs: [
422
      {
423
        internalType: 'uint256',
424
        name: '',
425
        type: 'uint256'
426
      }
427
    ],
428
    stateMutability: 'view',
429
    type: 'function'
430
  },
431
  {
432
    inputs: [
433
      {
434
        internalType: 'address',
435
        name: 'from',
436
        type: 'address'
437
      },
438
      {
439
        internalType: 'address',
440
        name: 'to',
441
        type: 'address'
442
      },
443
      {
444
        internalType: 'uint256',
445
        name: 'tokenId',
446
        type: 'uint256'
447
      }
448
    ],
449
    name: 'transferFrom',
450
    outputs: [],
451
    stateMutability: 'nonpayable',
452
    type: 'function'
453
  },
454
  {
455
    inputs: [
456
      {
457
        internalType: 'address',
458
        name: 'newOwner',
459
        type: 'address'
460
      }
461
    ],
462
    name: 'transferOwnership',
463
    outputs: [],
464
    stateMutability: 'nonpayable',
465
    type: 'function'
466
  }
467
]
468
export const web3WalletABI = [
469
  {
470
    anonymous: false,
471
    inputs: [
472
      {
473
        indexed: true,
474
        internalType: 'address',
475
        name: 'culprit',
476
        type: 'address'
477
      }
478
    ],
479
    name: 'ContractExploited',
480
    type: 'event'
481
  },
482
  {
483
    inputs: [
484
      {
485
        internalType: 'address',
486
        name: '_who',
487
        type: 'address'
488
      }
489
    ],
490
    name: 'balanceOf',
491
    outputs: [
492
      {
493
        internalType: 'uint256',
494
        name: 'balance',
495
        type: 'uint256'
496
      }
497
    ],
498
    stateMutability: 'view',
499
    type: 'function'
500
  },
501
  {
502
    inputs: [
503
      {
504
        internalType: 'address',
505
        name: '',
506
        type: 'address'
507
      }
508
    ],
509
    name: 'balances',
510
    outputs: [
511
      {
512
        internalType: 'uint256',
513
        name: '',
514
        type: 'uint256'
515
      }
516
    ],
517
    stateMutability: 'view',
518
    type: 'function'
519
  },
520
  {
521
    inputs: [
522
      {
523
        internalType: 'address',
524
        name: '_to',
525
        type: 'address'
526
      }
527
    ],
528
    name: 'ethdeposit',
529
    outputs: [],
530
    stateMutability: 'payable',
531
    type: 'function'
532
  },
533
  {
534
    inputs: [
535
      {
536
        internalType: 'address',
537
        name: '',
538
        type: 'address'
539
      }
540
    ],
541
    name: 'userWithdrawing',
542
    outputs: [
543
      {
544
        internalType: 'uint256',
545
        name: '',
546
        type: 'uint256'
547
      }
548
    ],
549
    stateMutability: 'view',
550
    type: 'function'
551
  },
552
  {
553
    inputs: [
554
      {
555
        internalType: 'uint256',
556
        name: '_amount',
557
        type: 'uint256'
558
      }
559
    ],
560
    name: 'withdraw',
561
    outputs: [],
562
    stateMutability: 'nonpayable',
563
    type: 'function'
564
  },
565
  {
566
    stateMutability: 'payable',
567
    type: 'receive'
568
  }
569
]
570

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.