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