ERC721.ts 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458
  1. export const ERC721ABI = [
  2. {
  3. "inputs": [
  4. {
  5. "internalType": "address",
  6. "name": "sender",
  7. "type": "address"
  8. },
  9. {
  10. "internalType": "uint256",
  11. "name": "tokenId",
  12. "type": "uint256"
  13. },
  14. {
  15. "internalType": "address",
  16. "name": "owner",
  17. "type": "address"
  18. }
  19. ],
  20. "name": "ERC721IncorrectOwner",
  21. "type": "error"
  22. },
  23. {
  24. "inputs": [
  25. {
  26. "internalType": "address",
  27. "name": "operator",
  28. "type": "address"
  29. },
  30. {
  31. "internalType": "uint256",
  32. "name": "tokenId",
  33. "type": "uint256"
  34. }
  35. ],
  36. "name": "ERC721InsufficientApproval",
  37. "type": "error"
  38. },
  39. {
  40. "inputs": [
  41. {
  42. "internalType": "address",
  43. "name": "approver",
  44. "type": "address"
  45. }
  46. ],
  47. "name": "ERC721InvalidApprover",
  48. "type": "error"
  49. },
  50. {
  51. "inputs": [
  52. {
  53. "internalType": "address",
  54. "name": "operator",
  55. "type": "address"
  56. }
  57. ],
  58. "name": "ERC721InvalidOperator",
  59. "type": "error"
  60. },
  61. {
  62. "inputs": [
  63. {
  64. "internalType": "address",
  65. "name": "owner",
  66. "type": "address"
  67. }
  68. ],
  69. "name": "ERC721InvalidOwner",
  70. "type": "error"
  71. },
  72. {
  73. "inputs": [
  74. {
  75. "internalType": "address",
  76. "name": "receiver",
  77. "type": "address"
  78. }
  79. ],
  80. "name": "ERC721InvalidReceiver",
  81. "type": "error"
  82. },
  83. {
  84. "inputs": [
  85. {
  86. "internalType": "address",
  87. "name": "sender",
  88. "type": "address"
  89. }
  90. ],
  91. "name": "ERC721InvalidSender",
  92. "type": "error"
  93. },
  94. {
  95. "inputs": [
  96. {
  97. "internalType": "uint256",
  98. "name": "tokenId",
  99. "type": "uint256"
  100. }
  101. ],
  102. "name": "ERC721NonexistentToken",
  103. "type": "error"
  104. },
  105. {
  106. "anonymous": false,
  107. "inputs": [
  108. {
  109. "indexed": true,
  110. "internalType": "address",
  111. "name": "owner",
  112. "type": "address"
  113. },
  114. {
  115. "indexed": true,
  116. "internalType": "address",
  117. "name": "approved",
  118. "type": "address"
  119. },
  120. {
  121. "indexed": true,
  122. "internalType": "uint256",
  123. "name": "tokenId",
  124. "type": "uint256"
  125. }
  126. ],
  127. "name": "Approval",
  128. "type": "event"
  129. },
  130. {
  131. "anonymous": false,
  132. "inputs": [
  133. {
  134. "indexed": true,
  135. "internalType": "address",
  136. "name": "owner",
  137. "type": "address"
  138. },
  139. {
  140. "indexed": true,
  141. "internalType": "address",
  142. "name": "operator",
  143. "type": "address"
  144. },
  145. {
  146. "indexed": false,
  147. "internalType": "bool",
  148. "name": "approved",
  149. "type": "bool"
  150. }
  151. ],
  152. "name": "ApprovalForAll",
  153. "type": "event"
  154. },
  155. {
  156. "anonymous": false,
  157. "inputs": [
  158. {
  159. "indexed": true,
  160. "internalType": "address",
  161. "name": "from",
  162. "type": "address"
  163. },
  164. {
  165. "indexed": true,
  166. "internalType": "address",
  167. "name": "to",
  168. "type": "address"
  169. },
  170. {
  171. "indexed": true,
  172. "internalType": "uint256",
  173. "name": "tokenId",
  174. "type": "uint256"
  175. }
  176. ],
  177. "name": "Transfer",
  178. "type": "event"
  179. },
  180. {
  181. "inputs": [
  182. {
  183. "internalType": "address",
  184. "name": "from",
  185. "type": "address"
  186. },
  187. {
  188. "internalType": "address",
  189. "name": "to",
  190. "type": "address"
  191. },
  192. {
  193. "internalType": "uint256",
  194. "name": "tokenId",
  195. "type": "uint256"
  196. }
  197. ],
  198. "name": "_beforeTransfer",
  199. "outputs": [],
  200. "stateMutability": "nonpayable",
  201. "type": "function"
  202. },
  203. {
  204. "inputs": [
  205. {
  206. "internalType": "address",
  207. "name": "to",
  208. "type": "address"
  209. },
  210. {
  211. "internalType": "uint256",
  212. "name": "tokenId",
  213. "type": "uint256"
  214. }
  215. ],
  216. "name": "approve",
  217. "outputs": [],
  218. "stateMutability": "nonpayable",
  219. "type": "function"
  220. },
  221. {
  222. "inputs": [
  223. {
  224. "internalType": "address",
  225. "name": "owner",
  226. "type": "address"
  227. }
  228. ],
  229. "name": "balanceOf",
  230. "outputs": [
  231. {
  232. "internalType": "uint256",
  233. "name": "",
  234. "type": "uint256"
  235. }
  236. ],
  237. "stateMutability": "view",
  238. "type": "function"
  239. },
  240. {
  241. "inputs": [
  242. {
  243. "internalType": "uint256",
  244. "name": "tokenId",
  245. "type": "uint256"
  246. }
  247. ],
  248. "name": "getApproved",
  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": "address",
  263. "name": "owner",
  264. "type": "address"
  265. },
  266. {
  267. "internalType": "address",
  268. "name": "operator",
  269. "type": "address"
  270. }
  271. ],
  272. "name": "isApprovedForAll",
  273. "outputs": [
  274. {
  275. "internalType": "bool",
  276. "name": "",
  277. "type": "bool"
  278. }
  279. ],
  280. "stateMutability": "view",
  281. "type": "function"
  282. },
  283. {
  284. "inputs": [],
  285. "name": "name",
  286. "outputs": [
  287. {
  288. "internalType": "string",
  289. "name": "",
  290. "type": "string"
  291. }
  292. ],
  293. "stateMutability": "view",
  294. "type": "function"
  295. },
  296. {
  297. "inputs": [
  298. {
  299. "internalType": "uint256",
  300. "name": "tokenId",
  301. "type": "uint256"
  302. }
  303. ],
  304. "name": "ownerOf",
  305. "outputs": [
  306. {
  307. "internalType": "address",
  308. "name": "",
  309. "type": "address"
  310. }
  311. ],
  312. "stateMutability": "view",
  313. "type": "function"
  314. },
  315. {
  316. "inputs": [
  317. {
  318. "internalType": "address",
  319. "name": "from",
  320. "type": "address"
  321. },
  322. {
  323. "internalType": "address",
  324. "name": "to",
  325. "type": "address"
  326. },
  327. {
  328. "internalType": "uint256",
  329. "name": "tokenId",
  330. "type": "uint256"
  331. }
  332. ],
  333. "name": "safeTransferFrom",
  334. "outputs": [],
  335. "stateMutability": "nonpayable",
  336. "type": "function"
  337. },
  338. {
  339. "inputs": [
  340. {
  341. "internalType": "address",
  342. "name": "from",
  343. "type": "address"
  344. },
  345. {
  346. "internalType": "address",
  347. "name": "to",
  348. "type": "address"
  349. },
  350. {
  351. "internalType": "uint256",
  352. "name": "tokenId",
  353. "type": "uint256"
  354. },
  355. {
  356. "internalType": "bytes",
  357. "name": "data",
  358. "type": "bytes"
  359. }
  360. ],
  361. "name": "safeTransferFrom",
  362. "outputs": [],
  363. "stateMutability": "nonpayable",
  364. "type": "function"
  365. },
  366. {
  367. "inputs": [
  368. {
  369. "internalType": "address",
  370. "name": "operator",
  371. "type": "address"
  372. },
  373. {
  374. "internalType": "bool",
  375. "name": "approved",
  376. "type": "bool"
  377. }
  378. ],
  379. "name": "setApprovalForAll",
  380. "outputs": [],
  381. "stateMutability": "nonpayable",
  382. "type": "function"
  383. },
  384. {
  385. "inputs": [
  386. {
  387. "internalType": "bytes4",
  388. "name": "interfaceId",
  389. "type": "bytes4"
  390. }
  391. ],
  392. "name": "supportsInterface",
  393. "outputs": [
  394. {
  395. "internalType": "bool",
  396. "name": "",
  397. "type": "bool"
  398. }
  399. ],
  400. "stateMutability": "view",
  401. "type": "function"
  402. },
  403. {
  404. "inputs": [],
  405. "name": "symbol",
  406. "outputs": [
  407. {
  408. "internalType": "string",
  409. "name": "",
  410. "type": "string"
  411. }
  412. ],
  413. "stateMutability": "view",
  414. "type": "function"
  415. },
  416. {
  417. "inputs": [
  418. {
  419. "internalType": "uint256",
  420. "name": "tokenId",
  421. "type": "uint256"
  422. }
  423. ],
  424. "name": "tokenURI",
  425. "outputs": [
  426. {
  427. "internalType": "string",
  428. "name": "",
  429. "type": "string"
  430. }
  431. ],
  432. "stateMutability": "view",
  433. "type": "function"
  434. },
  435. {
  436. "inputs": [
  437. {
  438. "internalType": "address",
  439. "name": "from",
  440. "type": "address"
  441. },
  442. {
  443. "internalType": "address",
  444. "name": "to",
  445. "type": "address"
  446. },
  447. {
  448. "internalType": "uint256",
  449. "name": "tokenId",
  450. "type": "uint256"
  451. }
  452. ],
  453. "name": "transferFrom",
  454. "outputs": [],
  455. "stateMutability": "nonpayable",
  456. "type": "function"
  457. }
  458. ]