1. export const exchangeABI = [
    2. {
    3. 'constant': true,
    4. 'inputs': [],
    5. 'name': 'name',
    6. 'outputs': [
    7. {
    8. 'name': '',
    9. 'type': 'string',
    10. },
    11. ],
    12. 'payable': false,
    13. 'stateMutability': 'view',
    14. 'type': 'function',
    15. },
    16. {
    17. 'constant': true,
    18. 'inputs': [],
    19. 'name': 'tokenTransferProxy',
    20. 'outputs': [
    21. {
    22. 'name': '',
    23. 'type': 'address',
    24. },
    25. ],
    26. 'payable': false,
    27. 'stateMutability': 'view',
    28. 'type': 'function',
    29. },
    30. {
    31. 'constant': true,
    32. 'inputs': [
    33. {
    34. 'name': 'target',
    35. 'type': 'address',
    36. },
    37. {
    38. 'name': 'calldata',
    39. 'type': 'bytes',
    40. },
    41. {
    42. 'name': 'extradata',
    43. 'type': 'bytes',
    44. },
    45. ],
    46. 'name': 'staticCall',// 静态调用
    47. 'outputs': [
    48. {
    49. 'name': 'result',
    50. 'type': 'bool',
    51. },
    52. ],
    53. 'payable': false,
    54. 'stateMutability': 'view',
    55. 'type': 'function',
    56. },
    57. {
    58. 'constant': false,
    59. 'inputs': [
    60. {
    61. 'name': 'newMinimumMakerProtocolFee',
    62. 'type': 'uint256',
    63. },
    64. ],
    65. 'name': 'changeMinimumMakerProtocolFee',// 更改最低 Maker 协议费用
    66. 'outputs': [],
    67. 'payable': false,
    68. 'stateMutability': 'nonpayable',
    69. 'type': 'function',
    70. },
    71. {
    72. 'constant': false,
    73. 'inputs': [
    74. {
    75. 'name': 'newMinimumTakerProtocolFee',
    76. 'type': 'uint256',
    77. },
    78. ],
    79. 'name': 'changeMinimumTakerProtocolFee',// 更改最低接受者协议费用
    80. 'outputs': [],
    81. 'payable': false,
    82. 'stateMutability': 'nonpayable',
    83. 'type': 'function',
    84. },
    85. {
    86. 'constant': true,
    87. 'inputs': [
    88. {
    89. 'name': 'array',
    90. 'type': 'bytes',
    91. },
    92. {
    93. 'name': 'desired',
    94. 'type': 'bytes',
    95. },
    96. {
    97. 'name': 'mask',
    98. 'type': 'bytes',
    99. },
    100. ],
    101. 'name': 'guardedArrayReplace',// 边界守卫数组替换
    102. 'outputs': [
    103. {
    104. 'name': '',
    105. 'type': 'bytes',
    106. },
    107. ],
    108. 'payable': false,
    109. 'stateMutability': 'pure',
    110. 'type': 'function',
    111. },
    112. {
    113. 'constant': true,
    114. 'inputs': [],
    115. 'name': 'minimumTakerProtocolFee',// 最低收费标准
    116. 'outputs': [
    117. {
    118. 'name': '',
    119. 'type': 'uint256',
    120. },
    121. ],
    122. 'payable': false,
    123. 'stateMutability': 'view',
    124. 'type': 'function',
    125. },
    126. {
    127. 'constant': true,
    128. 'inputs': [],
    129. 'name': 'codename',// 代号
    130. 'outputs': [
    131. {
    132. 'name': '',
    133. 'type': 'string',
    134. },
    135. ],
    136. 'payable': false,
    137. 'stateMutability': 'view',
    138. 'type': 'function',
    139. },
    140. {
    141. 'constant': true,
    142. 'inputs': [
    143. {
    144. 'name': 'addrs',
    145. 'type': 'address[7]',
    146. },
    147. {
    148. 'name': 'uints',
    149. 'type': 'uint256[9]',
    150. },
    151. {
    152. 'name': 'feeMethod',
    153. 'type': 'uint8',
    154. },
    155. {
    156. 'name': 'side',
    157. 'type': 'uint8',
    158. },
    159. {
    160. 'name': 'saleKind',
    161. 'type': 'uint8',
    162. },
    163. {
    164. 'name': 'howToCall',
    165. 'type': 'uint8',
    166. },
    167. {
    168. 'name': 'calldata',
    169. 'type': 'bytes',
    170. },
    171. {
    172. 'name': 'replacementPattern',
    173. 'type': 'bytes',
    174. },
    175. {
    176. 'name': 'staticExtradata',
    177. 'type': 'bytes',
    178. },
    179. ],
    180. 'name': 'calculateCurrentPrice_',// 计算当前价格
    181. 'outputs': [
    182. {
    183. 'name': '',
    184. 'type': 'uint256',
    185. },
    186. ],
    187. 'payable': false,
    188. 'stateMutability': 'view',
    189. 'type': 'function',
    190. },
    191. {
    192. 'constant': false,
    193. 'inputs': [
    194. {
    195. 'name': 'newProtocolFeeRecipient',
    196. 'type': 'address',
    197. },
    198. ],
    199. 'name': 'changeProtocolFeeRecipient', // 改变协议费用收件人
    200. 'outputs': [],
    201. 'payable': false,
    202. 'stateMutability': 'nonpayable',
    203. 'type': 'function',
    204. },
    205. {
    206. 'constant': true,
    207. 'inputs': [],
    208. 'name': 'version',
    209. 'outputs': [
    210. {
    211. 'name': '',
    212. 'type': 'string',
    213. },
    214. ],
    215. 'payable': false,
    216. 'stateMutability': 'view',
    217. 'type': 'function',
    218. },
    219. {
    220. 'constant': true,
    221. 'inputs': [
    222. {
    223. 'name': 'buyCalldata',
    224. 'type': 'bytes',
    225. },
    226. {
    227. 'name': 'buyReplacementPattern',
    228. 'type': 'bytes',
    229. },
    230. {
    231. 'name': 'sellCalldata',
    232. 'type': 'bytes',
    233. },
    234. {
    235. 'name': 'sellReplacementPattern',
    236. 'type': 'bytes',
    237. },
    238. ],
    239. 'name': 'orderCalldataCanMatch',// 订单调用数据匹配
    240. 'outputs': [
    241. {
    242. 'name': '',
    243. 'type': 'bool',
    244. },
    245. ],
    246. 'payable': false,
    247. 'stateMutability': 'pure',
    248. 'type': 'function',
    249. },
    250. {
    251. 'constant': true,
    252. 'inputs': [
    253. {
    254. 'name': 'addrs',
    255. 'type': 'address[7]',
    256. },
    257. {
    258. 'name': 'uints',
    259. 'type': 'uint256[9]',
    260. },
    261. {
    262. 'name': 'feeMethod',
    263. 'type': 'uint8',
    264. },
    265. {
    266. 'name': 'side',
    267. 'type': 'uint8',
    268. },
    269. {
    270. 'name': 'saleKind',
    271. 'type': 'uint8',
    272. },
    273. {
    274. 'name': 'howToCall',
    275. 'type': 'uint8',
    276. },
    277. {
    278. 'name': 'calldata',
    279. 'type': 'bytes',
    280. },
    281. {
    282. 'name': 'replacementPattern',
    283. 'type': 'bytes',
    284. },
    285. {
    286. 'name': 'staticExtradata',
    287. 'type': 'bytes',
    288. },
    289. {
    290. 'name': 'v',
    291. 'type': 'uint8',
    292. },
    293. {
    294. 'name': 'r',
    295. 'type': 'bytes32',
    296. },
    297. {
    298. 'name': 's',
    299. 'type': 'bytes32',
    300. },
    301. ],
    302. 'name': 'validateOrder_',// 校验订单
    303. 'outputs': [
    304. {
    305. 'name': '',
    306. 'type': 'bool',
    307. },
    308. ],
    309. 'payable': false,
    310. 'stateMutability': 'view',
    311. 'type': 'function',
    312. },
    313. {
    314. 'constant': true,
    315. 'inputs': [
    316. {
    317. 'name': 'side',
    318. 'type': 'uint8',
    319. },
    320. {
    321. 'name': 'saleKind',
    322. 'type': 'uint8',
    323. },
    324. {
    325. 'name': 'basePrice',
    326. 'type': 'uint256',
    327. },
    328. {
    329. 'name': 'extra',
    330. 'type': 'uint256',
    331. },
    332. {
    333. 'name': 'listingTime',
    334. 'type': 'uint256',
    335. },
    336. {
    337. 'name': 'expirationTime',
    338. 'type': 'uint256',
    339. },
    340. ],
    341. 'name': 'calculateFinalPrice',// 计算最终的价格
    342. 'outputs': [
    343. {
    344. 'name': '',
    345. 'type': 'uint256',
    346. },
    347. ],
    348. 'payable': false,
    349. 'stateMutability': 'view',
    350. 'type': 'function',
    351. },
    352. {
    353. 'constant': true,
    354. 'inputs': [],
    355. 'name': 'protocolFeeRecipient',//协议费用收件人
    356. 'outputs': [
    357. {
    358. 'name': '',
    359. 'type': 'address',
    360. },
    361. ],
    362. 'payable': false,
    363. 'stateMutability': 'view',
    364. 'type': 'function',
    365. },
    366. {
    367. 'constant': true,
    368. 'inputs': [
    369. {
    370. 'name': 'addrs',
    371. 'type': 'address[7]',
    372. },
    373. {
    374. 'name': 'uints',
    375. 'type': 'uint256[9]',
    376. },
    377. {
    378. 'name': 'feeMethod',
    379. 'type': 'uint8',
    380. },
    381. {
    382. 'name': 'side',
    383. 'type': 'uint8',
    384. },
    385. {
    386. 'name': 'saleKind',
    387. 'type': 'uint8',
    388. },
    389. {
    390. 'name': 'howToCall',
    391. 'type': 'uint8',
    392. },
    393. {
    394. 'name': 'calldata',
    395. 'type': 'bytes',
    396. },
    397. {
    398. 'name': 'replacementPattern',
    399. 'type': 'bytes',
    400. },
    401. {
    402. 'name': 'staticExtradata',
    403. 'type': 'bytes',
    404. },
    405. ],
    406. 'name': 'hashOrder_',
    407. 'outputs': [
    408. {
    409. 'name': '',
    410. 'type': 'bytes32',
    411. },
    412. ],
    413. 'payable': false,
    414. 'stateMutability': 'pure',
    415. 'type': 'function',
    416. },
    417. {
    418. 'constant': true,
    419. 'inputs': [
    420. {
    421. 'name': 'addrs',
    422. 'type': 'address[14]',
    423. },
    424. {
    425. 'name': 'uints',
    426. 'type': 'uint256[18]',
    427. },
    428. {
    429. 'name': 'feeMethodsSidesKindsHowToCalls',
    430. 'type': 'uint8[8]',
    431. },
    432. {
    433. 'name': 'calldataBuy',
    434. 'type': 'bytes',
    435. },
    436. {
    437. 'name': 'calldataSell',
    438. 'type': 'bytes',
    439. },
    440. {
    441. 'name': 'replacementPatternBuy',
    442. 'type': 'bytes',
    443. },
    444. {
    445. 'name': 'replacementPatternSell',
    446. 'type': 'bytes',
    447. },
    448. {
    449. 'name': 'staticExtradataBuy',
    450. 'type': 'bytes',
    451. },
    452. {
    453. 'name': 'staticExtradataSell',
    454. 'type': 'bytes',
    455. },
    456. ],
    457. 'name': 'ordersCanMatch_', // 匹配订单
    458. 'outputs': [
    459. {
    460. 'name': '',
    461. 'type': 'bool',
    462. },
    463. ],
    464. 'payable': false,
    465. 'stateMutability': 'view',
    466. 'type': 'function',
    467. },
    468. {
    469. 'constant': false,
    470. 'inputs': [
    471. {
    472. 'name': 'addrs',
    473. 'type': 'address[7]',
    474. },
    475. {
    476. 'name': 'uints',
    477. 'type': 'uint256[9]',
    478. },
    479. {
    480. 'name': 'feeMethod',
    481. 'type': 'uint8',
    482. },
    483. {
    484. 'name': 'side',
    485. 'type': 'uint8',
    486. },
    487. {
    488. 'name': 'saleKind',
    489. 'type': 'uint8',
    490. },
    491. {
    492. 'name': 'howToCall',
    493. 'type': 'uint8',
    494. },
    495. {
    496. 'name': 'calldata',
    497. 'type': 'bytes',
    498. },
    499. {
    500. 'name': 'replacementPattern',
    501. 'type': 'bytes',
    502. },
    503. {
    504. 'name': 'staticExtradata',
    505. 'type': 'bytes',
    506. },
    507. {
    508. 'name': 'orderbookInclusionDesired',
    509. 'type': 'bool',
    510. },
    511. ],
    512. 'name': 'approveOrder_',// 审核订单
    513. 'outputs': [],
    514. 'payable': false,
    515. 'stateMutability': 'nonpayable',
    516. 'type': 'function',
    517. },
    518. {
    519. 'constant': true,
    520. 'inputs': [],
    521. 'name': 'registry',
    522. 'outputs': [
    523. {
    524. 'name': '',
    525. 'type': 'address',
    526. },
    527. ],
    528. 'payable': false,
    529. 'stateMutability': 'view',
    530. 'type': 'function',
    531. },
    532. {
    533. 'constant': true,
    534. 'inputs': [],
    535. 'name': 'minimumMakerProtocolFee',// 最低制造商协议费
    536. 'outputs': [
    537. {
    538. 'name': '',
    539. 'type': 'uint256',
    540. },
    541. ],
    542. 'payable': false,
    543. 'stateMutability': 'view',
    544. 'type': 'function',
    545. },
    546. {
    547. 'constant': true,
    548. 'inputs': [
    549. {
    550. 'name': '',
    551. 'type': 'bytes32',
    552. },
    553. ],
    554. 'name': 'cancelledOrFinalized', // 取消或者完成
    555. 'outputs': [
    556. {
    557. 'name': '',
    558. 'type': 'bool',
    559. },
    560. ],
    561. 'payable': false,
    562. 'stateMutability': 'view',
    563. 'type': 'function',
    564. },
    565. {
    566. 'constant': true,
    567. 'inputs': [],
    568. 'name': 'owner',
    569. 'outputs': [
    570. {
    571. 'name': '',
    572. 'type': 'address',
    573. },
    574. ],
    575. 'payable': false,
    576. 'stateMutability': 'view',
    577. 'type': 'function',
    578. },
    579. {
    580. 'constant': true,
    581. 'inputs': [],
    582. 'name': 'exchangeToken',// 交换Token
    583. 'outputs': [
    584. {
    585. 'name': '',
    586. 'type': 'address',
    587. },
    588. ],
    589. 'payable': false,
    590. 'stateMutability': 'view',
    591. 'type': 'function',
    592. },
    593. {
    594. 'constant': false,
    595. 'inputs': [
    596. {
    597. 'name': 'addrs',
    598. 'type': 'address[7]',
    599. },
    600. {
    601. 'name': 'uints',
    602. 'type': 'uint256[9]',
    603. },
    604. {
    605. 'name': 'feeMethod',
    606. 'type': 'uint8',
    607. },
    608. {
    609. 'name': 'side',
    610. 'type': 'uint8',
    611. },
    612. {
    613. 'name': 'saleKind',
    614. 'type': 'uint8',
    615. },
    616. {
    617. 'name': 'howToCall',
    618. 'type': 'uint8',
    619. },
    620. {
    621. 'name': 'calldata',
    622. 'type': 'bytes',
    623. },
    624. {
    625. 'name': 'replacementPattern',
    626. 'type': 'bytes',
    627. },
    628. {
    629. 'name': 'staticExtradata',
    630. 'type': 'bytes',
    631. },
    632. {
    633. 'name': 'v',
    634. 'type': 'uint8',
    635. },
    636. {
    637. 'name': 'r',
    638. 'type': 'bytes32',
    639. },
    640. {
    641. 'name': 's',
    642. 'type': 'bytes32',
    643. },
    644. ],
    645. 'name': 'cancelOrder_',// 取消订单
    646. 'outputs': [],
    647. 'payable': false,
    648. 'stateMutability': 'nonpayable',
    649. 'type': 'function',
    650. },
    651. {
    652. 'constant': false,
    653. 'inputs': [
    654. {
    655. 'name': 'addrs',
    656. 'type': 'address[14]',
    657. },
    658. {
    659. 'name': 'uints',
    660. 'type': 'uint256[18]',
    661. },
    662. {
    663. 'name': 'feeMethodsSidesKindsHowToCalls',
    664. 'type': 'uint8[8]',
    665. },
    666. {
    667. 'name': 'calldataBuy',
    668. 'type': 'bytes',
    669. },
    670. {
    671. 'name': 'calldataSell',
    672. 'type': 'bytes',
    673. },
    674. {
    675. 'name': 'replacementPatternBuy',
    676. 'type': 'bytes',
    677. },
    678. {
    679. 'name': 'replacementPatternSell',
    680. 'type': 'bytes',
    681. },
    682. {
    683. 'name': 'staticExtradataBuy',
    684. 'type': 'bytes',
    685. },
    686. {
    687. 'name': 'staticExtradataSell',
    688. 'type': 'bytes',
    689. },
    690. {
    691. 'name': 'vs',
    692. 'type': 'uint8[2]',
    693. },
    694. {
    695. 'name': 'rssMetadata',
    696. 'type': 'bytes32[5]',
    697. },
    698. ],
    699. 'name': 'atomicMatch_',// 原子化匹配、支付
    700. 'outputs': [],
    701. 'payable': true,
    702. 'stateMutability': 'payable',
    703. 'type': 'function',
    704. },
    705. {
    706. 'constant': true,
    707. 'inputs': [
    708. {
    709. 'name': 'addrs',
    710. 'type': 'address[7]',
    711. },
    712. {
    713. 'name': 'uints',
    714. 'type': 'uint256[9]',
    715. },
    716. {
    717. 'name': 'feeMethod',
    718. 'type': 'uint8',
    719. },
    720. {
    721. 'name': 'side',
    722. 'type': 'uint8',
    723. },
    724. {
    725. 'name': 'saleKind',
    726. 'type': 'uint8',
    727. },
    728. {
    729. 'name': 'howToCall',
    730. 'type': 'uint8',
    731. },
    732. {
    733. 'name': 'calldata',
    734. 'type': 'bytes',
    735. },
    736. {
    737. 'name': 'replacementPattern',
    738. 'type': 'bytes',
    739. },
    740. {
    741. 'name': 'staticExtradata',
    742. 'type': 'bytes',
    743. },
    744. ],
    745. 'name': 'validateOrderParameters_',// 校验订单参数
    746. 'outputs': [
    747. {
    748. 'name': '',
    749. 'type': 'bool',
    750. },
    751. ],
    752. 'payable': false,
    753. 'stateMutability': 'view',
    754. 'type': 'function',
    755. },
    756. {
    757. 'constant': true,
    758. 'inputs': [],
    759. 'name': 'INVERSE_BASIS_POINT',// 反基点
    760. 'outputs': [
    761. {
    762. 'name': '',
    763. 'type': 'uint256',
    764. },
    765. ],
    766. 'payable': false,
    767. 'stateMutability': 'view',
    768. 'type': 'function',
    769. },
    770. {
    771. 'constant': true,
    772. 'inputs': [
    773. {
    774. 'name': 'addrs',
    775. 'type': 'address[14]',
    776. },
    777. {
    778. 'name': 'uints',
    779. 'type': 'uint256[18]',
    780. },
    781. {
    782. 'name': 'feeMethodsSidesKindsHowToCalls',
    783. 'type': 'uint8[8]',
    784. },
    785. {
    786. 'name': 'calldataBuy',
    787. 'type': 'bytes',
    788. },
    789. {
    790. 'name': 'calldataSell',
    791. 'type': 'bytes',
    792. },
    793. {
    794. 'name': 'replacementPatternBuy',
    795. 'type': 'bytes',
    796. },
    797. {
    798. 'name': 'replacementPatternSell',
    799. 'type': 'bytes',
    800. },
    801. {
    802. 'name': 'staticExtradataBuy',
    803. 'type': 'bytes',
    804. },
    805. {
    806. 'name': 'staticExtradataSell',
    807. 'type': 'bytes',
    808. },
    809. ],
    810. 'name': 'calculateMatchPrice_',//计算匹配价格
    811. 'outputs': [
    812. {
    813. 'name': '',
    814. 'type': 'uint256',
    815. },
    816. ],
    817. 'payable': false,
    818. 'stateMutability': 'view',
    819. 'type': 'function',
    820. },
    821. {
    822. 'constant': true,
    823. 'inputs': [
    824. {
    825. 'name': '',
    826. 'type': 'bytes32',
    827. },
    828. ],
    829. 'name': 'approvedOrders',//批准的订单
    830. 'outputs': [
    831. {
    832. 'name': '',
    833. 'type': 'bool',
    834. },
    835. ],
    836. 'payable': false,
    837. 'stateMutability': 'view',
    838. 'type': 'function',
    839. },
    840. {
    841. 'constant': false,
    842. 'inputs': [
    843. {
    844. 'name': 'newOwner',
    845. 'type': 'address',
    846. },
    847. ],
    848. 'name': 'transferOwnership',// 所有权转让
    849. 'outputs': [],
    850. 'payable': false,
    851. 'stateMutability': 'nonpayable',
    852. 'type': 'function',
    853. },
    854. {
    855. 'inputs': [
    856. {
    857. 'name': 'registryAddress',
    858. 'type': 'address',
    859. },
    860. {
    861. 'name': 'tokenTransferProxyAddress',
    862. 'type': 'address',
    863. },
    864. {
    865. 'name': 'tokenAddress',
    866. 'type': 'address',
    867. },
    868. {
    869. 'name': 'protocolFeeAddress',
    870. 'type': 'address',
    871. },
    872. ],
    873. 'payable': false,
    874. 'stateMutability': 'nonpayable',
    875. 'type': 'constructor',
    876. },
    877. {
    878. 'anonymous': false,
    879. 'inputs': [
    880. {
    881. 'indexed': true,
    882. 'name': 'hash',
    883. 'type': 'bytes32',
    884. },
    885. {
    886. 'indexed': false,
    887. 'name': 'exchange',
    888. 'type': 'address',
    889. },
    890. {
    891. 'indexed': true,
    892. 'name': 'maker',
    893. 'type': 'address',
    894. },
    895. {
    896. 'indexed': false,
    897. 'name': 'taker',
    898. 'type': 'address',
    899. },
    900. {
    901. 'indexed': false,
    902. 'name': 'makerRelayerFee',
    903. 'type': 'uint256',
    904. },
    905. {
    906. 'indexed': false,
    907. 'name': 'takerRelayerFee',
    908. 'type': 'uint256',
    909. },
    910. {
    911. 'indexed': false,
    912. 'name': 'makerProtocolFee',
    913. 'type': 'uint256',
    914. },
    915. {
    916. 'indexed': false,
    917. 'name': 'takerProtocolFee',
    918. 'type': 'uint256',
    919. },
    920. {
    921. 'indexed': true,
    922. 'name': 'feeRecipient',
    923. 'type': 'address',
    924. },
    925. {
    926. 'indexed': false,
    927. 'name': 'feeMethod',
    928. 'type': 'uint8',
    929. },
    930. {
    931. 'indexed': false,
    932. 'name': 'side',
    933. 'type': 'uint8',
    934. },
    935. {
    936. 'indexed': false,
    937. 'name': 'saleKind',
    938. 'type': 'uint8',
    939. },
    940. {
    941. 'indexed': false,
    942. 'name': 'target',
    943. 'type': 'address',
    944. },
    945. ],
    946. 'name': 'OrderApprovedPartOne',//订单批准部分
    947. 'type': 'event',
    948. },
    949. {
    950. 'anonymous': false,
    951. 'inputs': [
    952. {
    953. 'indexed': true,
    954. 'name': 'hash',
    955. 'type': 'bytes32',
    956. },
    957. {
    958. 'indexed': false,
    959. 'name': 'howToCall',
    960. 'type': 'uint8',
    961. },
    962. {
    963. 'indexed': false,
    964. 'name': 'calldata',
    965. 'type': 'bytes',
    966. },
    967. {
    968. 'indexed': false,
    969. 'name': 'replacementPattern',
    970. 'type': 'bytes',
    971. },
    972. {
    973. 'indexed': false,
    974. 'name': 'staticTarget',
    975. 'type': 'address',
    976. },
    977. {
    978. 'indexed': false,
    979. 'name': 'staticExtradata',
    980. 'type': 'bytes',
    981. },
    982. {
    983. 'indexed': false,
    984. 'name': 'paymentToken',
    985. 'type': 'address',
    986. },
    987. {
    988. 'indexed': false,
    989. 'name': 'basePrice',
    990. 'type': 'uint256',
    991. },
    992. {
    993. 'indexed': false,
    994. 'name': 'extra',
    995. 'type': 'uint256',
    996. },
    997. {
    998. 'indexed': false,
    999. 'name': 'listingTime',
    1000. 'type': 'uint256',
    1001. },
    1002. {
    1003. 'indexed': false,
    1004. 'name': 'expirationTime',
    1005. 'type': 'uint256',
    1006. },
    1007. {
    1008. 'indexed': false,
    1009. 'name': 'salt',
    1010. 'type': 'uint256',
    1011. },
    1012. {
    1013. 'indexed': false,
    1014. 'name': 'orderbookInclusionDesired',
    1015. 'type': 'bool',
    1016. },
    1017. ],
    1018. 'name': 'OrderApprovedPartTwo',//订单批准第二部分
    1019. 'type': 'event',
    1020. },
    1021. {
    1022. 'anonymous': false,
    1023. 'inputs': [
    1024. {
    1025. 'indexed': true,
    1026. 'name': 'hash',
    1027. 'type': 'bytes32',
    1028. },
    1029. ],
    1030. 'name': 'OrderCancelled',// 订单取消
    1031. 'type': 'event',
    1032. },
    1033. {
    1034. 'anonymous': false,
    1035. 'inputs': [
    1036. {
    1037. 'indexed': false,
    1038. 'name': 'buyHash',
    1039. 'type': 'bytes32',
    1040. },
    1041. {
    1042. 'indexed': false,
    1043. 'name': 'sellHash',
    1044. 'type': 'bytes32',
    1045. },
    1046. {
    1047. 'indexed': true,
    1048. 'name': 'maker',
    1049. 'type': 'address',
    1050. },
    1051. {
    1052. 'indexed': true,
    1053. 'name': 'taker',
    1054. 'type': 'address',
    1055. },
    1056. {
    1057. 'indexed': false,
    1058. 'name': 'price',
    1059. 'type': 'uint256',
    1060. },
    1061. {
    1062. 'indexed': true,
    1063. 'name': 'metadata',
    1064. 'type': 'bytes32',
    1065. },
    1066. ],
    1067. 'name': 'OrdersMatched',//匹配订单
    1068. 'type': 'event',
    1069. },
    1070. {
    1071. 'anonymous': false,
    1072. 'inputs': [
    1073. {
    1074. 'indexed': true,
    1075. 'name': 'previousOwner',
    1076. 'type': 'address',
    1077. },
    1078. {
    1079. 'indexed': true,
    1080. 'name': 'newOwner',
    1081. 'type': 'address',
    1082. },
    1083. ],
    1084. 'name': 'OwnershipTransferred', // 所有权转让
    1085. 'type': 'event',
    1086. },
    1087. ];
    1088. // tslint:disable:max-file-line-count