Guest User

Untitled

a guest
Oct 1st, 2021
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.10 KB | None | 0 0
  1. [
  2. {
  3. "inputs": [
  4. {
  5. "internalType": "string",
  6. "name": "_name",
  7. "type": "string"
  8. },
  9. {
  10. "internalType": "string",
  11. "name": "_symbol",
  12. "type": "string"
  13. },
  14. {
  15. "internalType": "contract IBarnStaking",
  16. "name": "_barnStaking",
  17. "type": "address"
  18. },
  19. {
  20. "internalType": "uint256[3]",
  21. "name": "_lengths",
  22. "type": "uint256[3]"
  23. },
  24. {
  25. "internalType": "uint256[2]",
  26. "name": "_premiums",
  27. "type": "uint256[2]"
  28. },
  29. {
  30. "internalType": "uint256",
  31. "name": "_hardcap",
  32. "type": "uint256"
  33. },
  34. {
  35. "internalType": "contract ERC20Detailed",
  36. "name": "_underlying",
  37. "type": "address"
  38. },
  39. {
  40. "internalType": "contract Registry",
  41. "name": "_opiumRegistry",
  42. "type": "address"
  43. },
  44. {
  45. "components": [
  46. {
  47. "internalType": "uint256",
  48. "name": "margin",
  49. "type": "uint256"
  50. },
  51. {
  52. "internalType": "uint256",
  53. "name": "endTime",
  54. "type": "uint256"
  55. },
  56. {
  57. "internalType": "uint256[]",
  58. "name": "params",
  59. "type": "uint256[]"
  60. },
  61. {
  62. "internalType": "address",
  63. "name": "oracleId",
  64. "type": "address"
  65. },
  66. {
  67. "internalType": "address",
  68. "name": "token",
  69. "type": "address"
  70. },
  71. {
  72. "internalType": "address",
  73. "name": "syntheticId",
  74. "type": "address"
  75. }
  76. ],
  77. "internalType": "struct LibDerivative.Derivative",
  78. "name": "_derivative",
  79. "type": "tuple"
  80. },
  81. {
  82. "internalType": "contract IFactoryOpiumERC20Position",
  83. "name": "_factoryLongPositionWrapper",
  84. "type": "address"
  85. }
  86. ],
  87. "payable": false,
  88. "stateMutability": "nonpayable",
  89. "type": "constructor"
  90. },
  91. {
  92. "anonymous": false,
  93. "inputs": [
  94. {
  95. "indexed": true,
  96. "internalType": "address",
  97. "name": "owner",
  98. "type": "address"
  99. },
  100. {
  101. "indexed": true,
  102. "internalType": "address",
  103. "name": "spender",
  104. "type": "address"
  105. },
  106. {
  107. "indexed": false,
  108. "internalType": "uint256",
  109. "name": "value",
  110. "type": "uint256"
  111. }
  112. ],
  113. "name": "Approval",
  114. "type": "event"
  115. },
  116. {
  117. "anonymous": false,
  118. "inputs": [
  119. {
  120. "indexed": true,
  121. "internalType": "address",
  122. "name": "user",
  123. "type": "address"
  124. },
  125. {
  126. "indexed": false,
  127. "internalType": "uint256",
  128. "name": "_amount",
  129. "type": "uint256"
  130. }
  131. ],
  132. "name": "Deposit",
  133. "type": "event"
  134. },
  135. {
  136. "anonymous": false,
  137. "inputs": [
  138. {
  139. "indexed": true,
  140. "internalType": "address",
  141. "name": "user",
  142. "type": "address"
  143. },
  144. {
  145. "indexed": false,
  146. "internalType": "uint256",
  147. "name": "_quantity",
  148. "type": "uint256"
  149. }
  150. ],
  151. "name": "Hedge",
  152. "type": "event"
  153. },
  154. {
  155. "anonymous": false,
  156. "inputs": [
  157. {
  158. "indexed": false,
  159. "internalType": "uint256",
  160. "name": "longTokenId",
  161. "type": "uint256"
  162. },
  163. {
  164. "indexed": false,
  165. "internalType": "address",
  166. "name": "wrapper",
  167. "type": "address"
  168. }
  169. ],
  170. "name": "LongPositionWrapper",
  171. "type": "event"
  172. },
  173. {
  174. "anonymous": false,
  175. "inputs": [
  176. {
  177. "indexed": true,
  178. "internalType": "address",
  179. "name": "from",
  180. "type": "address"
  181. },
  182. {
  183. "indexed": true,
  184. "internalType": "address",
  185. "name": "to",
  186. "type": "address"
  187. },
  188. {
  189. "indexed": false,
  190. "internalType": "uint256",
  191. "name": "value",
  192. "type": "uint256"
  193. }
  194. ],
  195. "name": "Transfer",
  196. "type": "event"
  197. },
  198. {
  199. "anonymous": false,
  200. "inputs": [
  201. {
  202. "indexed": true,
  203. "internalType": "address",
  204. "name": "user",
  205. "type": "address"
  206. },
  207. {
  208. "indexed": false,
  209. "internalType": "uint256",
  210. "name": "_amount",
  211. "type": "uint256"
  212. }
  213. ],
  214. "name": "Withdraw",
  215. "type": "event"
  216. },
  217. {
  218. "constant": true,
  219. "inputs": [],
  220. "name": "EPOCH",
  221. "outputs": [
  222. {
  223. "internalType": "uint256",
  224. "name": "",
  225. "type": "uint256"
  226. }
  227. ],
  228. "payable": false,
  229. "stateMutability": "view",
  230. "type": "function"
  231. },
  232. {
  233. "constant": true,
  234. "inputs": [],
  235. "name": "FEE_BASE",
  236. "outputs": [
  237. {
  238. "internalType": "uint256",
  239. "name": "",
  240. "type": "uint256"
  241. }
  242. ],
  243. "payable": false,
  244. "stateMutability": "view",
  245. "type": "function"
  246. },
  247. {
  248. "constant": true,
  249. "inputs": [],
  250. "name": "FEE_MAX",
  251. "outputs": [
  252. {
  253. "internalType": "uint256",
  254. "name": "",
  255. "type": "uint256"
  256. }
  257. ],
  258. "payable": false,
  259. "stateMutability": "view",
  260. "type": "function"
  261. },
  262. {
  263. "constant": true,
  264. "inputs": [],
  265. "name": "PERCENTAGE_BASE",
  266. "outputs": [
  267. {
  268. "internalType": "uint256",
  269. "name": "",
  270. "type": "uint256"
  271. }
  272. ],
  273. "payable": false,
  274. "stateMutability": "view",
  275. "type": "function"
  276. },
  277. {
  278. "constant": true,
  279. "inputs": [],
  280. "name": "STAKING_PHASE",
  281. "outputs": [
  282. {
  283. "internalType": "uint256",
  284. "name": "",
  285. "type": "uint256"
  286. }
  287. ],
  288. "payable": false,
  289. "stateMutability": "view",
  290. "type": "function"
  291. },
  292. {
  293. "constant": true,
  294. "inputs": [],
  295. "name": "TIME_DELTA",
  296. "outputs": [
  297. {
  298. "internalType": "uint256",
  299. "name": "",
  300. "type": "uint256"
  301. }
  302. ],
  303. "payable": false,
  304. "stateMutability": "view",
  305. "type": "function"
  306. },
  307. {
  308. "constant": true,
  309. "inputs": [],
  310. "name": "TRADING_PHASE",
  311. "outputs": [
  312. {
  313. "internalType": "uint256",
  314. "name": "",
  315. "type": "uint256"
  316. }
  317. ],
  318. "payable": false,
  319. "stateMutability": "view",
  320. "type": "function"
  321. },
  322. {
  323. "constant": true,
  324. "inputs": [],
  325. "name": "accumulatedOpiumFees",
  326. "outputs": [
  327. {
  328. "internalType": "uint256",
  329. "name": "",
  330. "type": "uint256"
  331. }
  332. ],
  333. "payable": false,
  334. "stateMutability": "view",
  335. "type": "function"
  336. },
  337. {
  338. "constant": true,
  339. "inputs": [
  340. {
  341. "internalType": "address",
  342. "name": "owner",
  343. "type": "address"
  344. },
  345. {
  346. "internalType": "address",
  347. "name": "spender",
  348. "type": "address"
  349. }
  350. ],
  351. "name": "allowance",
  352. "outputs": [
  353. {
  354. "internalType": "uint256",
  355. "name": "",
  356. "type": "uint256"
  357. }
  358. ],
  359. "payable": false,
  360. "stateMutability": "view",
  361. "type": "function"
  362. },
  363. {
  364. "constant": false,
  365. "inputs": [
  366. {
  367. "internalType": "address",
  368. "name": "spender",
  369. "type": "address"
  370. },
  371. {
  372. "internalType": "uint256",
  373. "name": "amount",
  374. "type": "uint256"
  375. }
  376. ],
  377. "name": "approve",
  378. "outputs": [
  379. {
  380. "internalType": "bool",
  381. "name": "",
  382. "type": "bool"
  383. }
  384. ],
  385. "payable": false,
  386. "stateMutability": "nonpayable",
  387. "type": "function"
  388. },
  389. {
  390. "constant": true,
  391. "inputs": [
  392. {
  393. "internalType": "address",
  394. "name": "account",
  395. "type": "address"
  396. }
  397. ],
  398. "name": "balanceOf",
  399. "outputs": [
  400. {
  401. "internalType": "uint256",
  402. "name": "",
  403. "type": "uint256"
  404. }
  405. ],
  406. "payable": false,
  407. "stateMutability": "view",
  408. "type": "function"
  409. },
  410. {
  411. "constant": true,
  412. "inputs": [],
  413. "name": "barnStaking",
  414. "outputs": [
  415. {
  416. "internalType": "contract IBarnStaking",
  417. "name": "",
  418. "type": "address"
  419. }
  420. ],
  421. "payable": false,
  422. "stateMutability": "view",
  423. "type": "function"
  424. },
  425. {
  426. "constant": true,
  427. "inputs": [
  428. {
  429. "internalType": "uint256",
  430. "name": "_amount",
  431. "type": "uint256"
  432. }
  433. ],
  434. "name": "calculateSharesToUnderlyingRatio",
  435. "outputs": [
  436. {
  437. "internalType": "uint256",
  438. "name": "",
  439. "type": "uint256"
  440. }
  441. ],
  442. "payable": false,
  443. "stateMutability": "view",
  444. "type": "function"
  445. },
  446. {
  447. "constant": true,
  448. "inputs": [
  449. {
  450. "internalType": "uint256",
  451. "name": "_amount",
  452. "type": "uint256"
  453. }
  454. ],
  455. "name": "calculateUnderlyingToSharesRatio",
  456. "outputs": [
  457. {
  458. "internalType": "uint256",
  459. "name": "",
  460. "type": "uint256"
  461. }
  462. ],
  463. "payable": false,
  464. "stateMutability": "view",
  465. "type": "function"
  466. },
  467. {
  468. "constant": false,
  469. "inputs": [],
  470. "name": "cancel",
  471. "outputs": [],
  472. "payable": false,
  473. "stateMutability": "nonpayable",
  474. "type": "function"
  475. },
  476. {
  477. "constant": true,
  478. "inputs": [],
  479. "name": "decimals",
  480. "outputs": [
  481. {
  482. "internalType": "uint8",
  483. "name": "",
  484. "type": "uint8"
  485. }
  486. ],
  487. "payable": false,
  488. "stateMutability": "view",
  489. "type": "function"
  490. },
  491. {
  492. "constant": false,
  493. "inputs": [
  494. {
  495. "internalType": "address",
  496. "name": "spender",
  497. "type": "address"
  498. },
  499. {
  500. "internalType": "uint256",
  501. "name": "subtractedValue",
  502. "type": "uint256"
  503. }
  504. ],
  505. "name": "decreaseAllowance",
  506. "outputs": [
  507. {
  508. "internalType": "bool",
  509. "name": "",
  510. "type": "bool"
  511. }
  512. ],
  513. "payable": false,
  514. "stateMutability": "nonpayable",
  515. "type": "function"
  516. },
  517. {
  518. "constant": false,
  519. "inputs": [
  520. {
  521. "internalType": "uint256",
  522. "name": "_amount",
  523. "type": "uint256"
  524. }
  525. ],
  526. "name": "deposit",
  527. "outputs": [],
  528. "payable": false,
  529. "stateMutability": "nonpayable",
  530. "type": "function"
  531. },
  532. {
  533. "constant": false,
  534. "inputs": [
  535. {
  536. "internalType": "uint256",
  537. "name": "_amount",
  538. "type": "uint256"
  539. }
  540. ],
  541. "name": "depositAndStake",
  542. "outputs": [],
  543. "payable": false,
  544. "stateMutability": "nonpayable",
  545. "type": "function"
  546. },
  547. {
  548. "constant": true,
  549. "inputs": [],
  550. "name": "derivative",
  551. "outputs": [
  552. {
  553. "internalType": "uint256",
  554. "name": "margin",
  555. "type": "uint256"
  556. },
  557. {
  558. "internalType": "uint256",
  559. "name": "endTime",
  560. "type": "uint256"
  561. },
  562. {
  563. "internalType": "address",
  564. "name": "oracleId",
  565. "type": "address"
  566. },
  567. {
  568. "internalType": "address",
  569. "name": "token",
  570. "type": "address"
  571. },
  572. {
  573. "internalType": "address",
  574. "name": "syntheticId",
  575. "type": "address"
  576. }
  577. ],
  578. "payable": false,
  579. "stateMutability": "view",
  580. "type": "function"
  581. },
  582. {
  583. "constant": false,
  584. "inputs": [],
  585. "name": "emergency",
  586. "outputs": [],
  587. "payable": false,
  588. "stateMutability": "nonpayable",
  589. "type": "function"
  590. },
  591. {
  592. "constant": false,
  593. "inputs": [],
  594. "name": "execute",
  595. "outputs": [],
  596. "payable": false,
  597. "stateMutability": "nonpayable",
  598. "type": "function"
  599. },
  600. {
  601. "constant": true,
  602. "inputs": [],
  603. "name": "factoryLongPositionWrapper",
  604. "outputs": [
  605. {
  606. "internalType": "contract IFactoryOpiumERC20Position",
  607. "name": "",
  608. "type": "address"
  609. }
  610. ],
  611. "payable": false,
  612. "stateMutability": "view",
  613. "type": "function"
  614. },
  615. {
  616. "constant": true,
  617. "inputs": [],
  618. "name": "getAvailableQuantity",
  619. "outputs": [
  620. {
  621. "internalType": "uint256",
  622. "name": "availableQuantity",
  623. "type": "uint256"
  624. },
  625. {
  626. "internalType": "uint256",
  627. "name": "buyerMargin",
  628. "type": "uint256"
  629. },
  630. {
  631. "internalType": "uint256",
  632. "name": "sellerMargin",
  633. "type": "uint256"
  634. }
  635. ],
  636. "payable": false,
  637. "stateMutability": "view",
  638. "type": "function"
  639. },
  640. {
  641. "constant": true,
  642. "inputs": [],
  643. "name": "getCurrentPoolSize",
  644. "outputs": [
  645. {
  646. "internalType": "uint256",
  647. "name": "",
  648. "type": "uint256"
  649. }
  650. ],
  651. "payable": false,
  652. "stateMutability": "view",
  653. "type": "function"
  654. },
  655. {
  656. "constant": true,
  657. "inputs": [
  658. {
  659. "components": [
  660. {
  661. "internalType": "uint256",
  662. "name": "margin",
  663. "type": "uint256"
  664. },
  665. {
  666. "internalType": "uint256",
  667. "name": "endTime",
  668. "type": "uint256"
  669. },
  670. {
  671. "internalType": "uint256[]",
  672. "name": "params",
  673. "type": "uint256[]"
  674. },
  675. {
  676. "internalType": "address",
  677. "name": "oracleId",
  678. "type": "address"
  679. },
  680. {
  681. "internalType": "address",
  682. "name": "token",
  683. "type": "address"
  684. },
  685. {
  686. "internalType": "address",
  687. "name": "syntheticId",
  688. "type": "address"
  689. }
  690. ],
  691. "internalType": "struct LibDerivative.Derivative",
  692. "name": "_derivative",
  693. "type": "tuple"
  694. }
  695. ],
  696. "name": "getDerivativeHash",
  697. "outputs": [
  698. {
  699. "internalType": "bytes32",
  700. "name": "derivativeHash",
  701. "type": "bytes32"
  702. }
  703. ],
  704. "payable": false,
  705. "stateMutability": "pure",
  706. "type": "function"
  707. },
  708. {
  709. "constant": true,
  710. "inputs": [],
  711. "name": "getDerivativeParams",
  712. "outputs": [
  713. {
  714. "internalType": "uint256[]",
  715. "name": "",
  716. "type": "uint256[]"
  717. }
  718. ],
  719. "payable": false,
  720. "stateMutability": "view",
  721. "type": "function"
  722. },
  723. {
  724. "constant": true,
  725. "inputs": [
  726. {
  727. "internalType": "bytes32",
  728. "name": "_hash",
  729. "type": "bytes32"
  730. }
  731. ],
  732. "name": "getLongTokenId",
  733. "outputs": [
  734. {
  735. "internalType": "uint256",
  736. "name": "tokenId",
  737. "type": "uint256"
  738. }
  739. ],
  740. "payable": false,
  741. "stateMutability": "pure",
  742. "type": "function"
  743. },
  744. {
  745. "constant": true,
  746. "inputs": [
  747. {
  748. "internalType": "uint256",
  749. "name": "_quantity",
  750. "type": "uint256"
  751. }
  752. ],
  753. "name": "getRequiredPremium",
  754. "outputs": [
  755. {
  756. "internalType": "uint256",
  757. "name": "",
  758. "type": "uint256"
  759. }
  760. ],
  761. "payable": false,
  762. "stateMutability": "view",
  763. "type": "function"
  764. },
  765. {
  766. "constant": true,
  767. "inputs": [
  768. {
  769. "internalType": "bytes32",
  770. "name": "_hash",
  771. "type": "bytes32"
  772. }
  773. ],
  774. "name": "getShortTokenId",
  775. "outputs": [
  776. {
  777. "internalType": "uint256",
  778. "name": "tokenId",
  779. "type": "uint256"
  780. }
  781. ],
  782. "payable": false,
  783. "stateMutability": "pure",
  784. "type": "function"
  785. },
  786. {
  787. "constant": true,
  788. "inputs": [],
  789. "name": "hardcap",
  790. "outputs": [
  791. {
  792. "internalType": "uint256",
  793. "name": "",
  794. "type": "uint256"
  795. }
  796. ],
  797. "payable": false,
  798. "stateMutability": "view",
  799. "type": "function"
  800. },
  801. {
  802. "constant": false,
  803. "inputs": [
  804. {
  805. "internalType": "uint256",
  806. "name": "_quantity",
  807. "type": "uint256"
  808. },
  809. {
  810. "internalType": "uint256",
  811. "name": "_maxPremium",
  812. "type": "uint256"
  813. }
  814. ],
  815. "name": "hedge",
  816. "outputs": [],
  817. "payable": false,
  818. "stateMutability": "nonpayable",
  819. "type": "function"
  820. },
  821. {
  822. "constant": true,
  823. "inputs": [],
  824. "name": "idleStakingTimeLimit",
  825. "outputs": [
  826. {
  827. "internalType": "uint256",
  828. "name": "",
  829. "type": "uint256"
  830. }
  831. ],
  832. "payable": false,
  833. "stateMutability": "view",
  834. "type": "function"
  835. },
  836. {
  837. "constant": false,
  838. "inputs": [
  839. {
  840. "internalType": "address",
  841. "name": "spender",
  842. "type": "address"
  843. },
  844. {
  845. "internalType": "uint256",
  846. "name": "addedValue",
  847. "type": "uint256"
  848. }
  849. ],
  850. "name": "increaseAllowance",
  851. "outputs": [
  852. {
  853. "internalType": "bool",
  854. "name": "",
  855. "type": "bool"
  856. }
  857. ],
  858. "payable": false,
  859. "stateMutability": "nonpayable",
  860. "type": "function"
  861. },
  862. {
  863. "constant": false,
  864. "inputs": [],
  865. "name": "initializeEpoch",
  866. "outputs": [],
  867. "payable": false,
  868. "stateMutability": "nonpayable",
  869. "type": "function"
  870. },
  871. {
  872. "constant": true,
  873. "inputs": [],
  874. "name": "isIdlePhase",
  875. "outputs": [
  876. {
  877. "internalType": "bool",
  878. "name": "",
  879. "type": "bool"
  880. }
  881. ],
  882. "payable": false,
  883. "stateMutability": "view",
  884. "type": "function"
  885. },
  886. {
  887. "constant": true,
  888. "inputs": [],
  889. "name": "isStakingPhase",
  890. "outputs": [
  891. {
  892. "internalType": "bool",
  893. "name": "",
  894. "type": "bool"
  895. }
  896. ],
  897. "payable": false,
  898. "stateMutability": "view",
  899. "type": "function"
  900. },
  901. {
  902. "constant": true,
  903. "inputs": [],
  904. "name": "isTradingPhase",
  905. "outputs": [
  906. {
  907. "internalType": "bool",
  908. "name": "",
  909. "type": "bool"
  910. }
  911. ],
  912. "payable": false,
  913. "stateMutability": "view",
  914. "type": "function"
  915. },
  916. {
  917. "constant": true,
  918. "inputs": [],
  919. "name": "isWithdrawalsEnabled",
  920. "outputs": [
  921. {
  922. "internalType": "bool",
  923. "name": "",
  924. "type": "bool"
  925. }
  926. ],
  927. "payable": false,
  928. "stateMutability": "view",
  929. "type": "function"
  930. },
  931. {
  932. "constant": true,
  933. "inputs": [],
  934. "name": "longPositionWrapper",
  935. "outputs": [
  936. {
  937. "internalType": "contract IOpiumERC20Position",
  938. "name": "",
  939. "type": "address"
  940. }
  941. ],
  942. "payable": false,
  943. "stateMutability": "view",
  944. "type": "function"
  945. },
  946. {
  947. "constant": true,
  948. "inputs": [],
  949. "name": "lpHardcap",
  950. "outputs": [
  951. {
  952. "internalType": "uint256",
  953. "name": "",
  954. "type": "uint256"
  955. }
  956. ],
  957. "payable": false,
  958. "stateMutability": "view",
  959. "type": "function"
  960. },
  961. {
  962. "constant": true,
  963. "inputs": [],
  964. "name": "name",
  965. "outputs": [
  966. {
  967. "internalType": "string",
  968. "name": "",
  969. "type": "string"
  970. }
  971. ],
  972. "payable": false,
  973. "stateMutability": "view",
  974. "type": "function"
  975. },
  976. {
  977. "constant": true,
  978. "inputs": [],
  979. "name": "nextFixedPremium",
  980. "outputs": [
  981. {
  982. "internalType": "uint256",
  983. "name": "",
  984. "type": "uint256"
  985. }
  986. ],
  987. "payable": false,
  988. "stateMutability": "view",
  989. "type": "function"
  990. },
  991. {
  992. "constant": true,
  993. "inputs": [],
  994. "name": "nextPremiumA",
  995. "outputs": [
  996. {
  997. "internalType": "uint256",
  998. "name": "",
  999. "type": "uint256"
  1000. }
  1001. ],
  1002. "payable": false,
  1003. "stateMutability": "view",
  1004. "type": "function"
  1005. },
  1006. {
  1007. "constant": true,
  1008. "inputs": [],
  1009. "name": "nextPremiumB",
  1010. "outputs": [
  1011. {
  1012. "internalType": "uint256",
  1013. "name": "",
  1014. "type": "uint256"
  1015. }
  1016. ],
  1017. "payable": false,
  1018. "stateMutability": "view",
  1019. "type": "function"
  1020. },
  1021. {
  1022. "constant": true,
  1023. "inputs": [],
  1024. "name": "nextStrikePrice",
  1025. "outputs": [
  1026. {
  1027. "internalType": "uint256",
  1028. "name": "",
  1029. "type": "uint256"
  1030. }
  1031. ],
  1032. "payable": false,
  1033. "stateMutability": "view",
  1034. "type": "function"
  1035. },
  1036. {
  1037. "constant": false,
  1038. "inputs": [
  1039. {
  1040. "internalType": "address",
  1041. "name": "_operator",
  1042. "type": "address"
  1043. },
  1044. {
  1045. "internalType": "address",
  1046. "name": "_from",
  1047. "type": "address"
  1048. },
  1049. {
  1050. "internalType": "uint256[]",
  1051. "name": "_tokenIds",
  1052. "type": "uint256[]"
  1053. },
  1054. {
  1055. "internalType": "uint256[]",
  1056. "name": "_amounts",
  1057. "type": "uint256[]"
  1058. },
  1059. {
  1060. "internalType": "bytes",
  1061. "name": "_data",
  1062. "type": "bytes"
  1063. }
  1064. ],
  1065. "name": "onERC721OBatchReceived",
  1066. "outputs": [
  1067. {
  1068. "internalType": "bytes4",
  1069. "name": "",
  1070. "type": "bytes4"
  1071. }
  1072. ],
  1073. "payable": false,
  1074. "stateMutability": "nonpayable",
  1075. "type": "function"
  1076. },
  1077. {
  1078. "constant": false,
  1079. "inputs": [
  1080. {
  1081. "internalType": "address",
  1082. "name": "_operator",
  1083. "type": "address"
  1084. },
  1085. {
  1086. "internalType": "address",
  1087. "name": "_from",
  1088. "type": "address"
  1089. },
  1090. {
  1091. "internalType": "uint256",
  1092. "name": "_tokenId",
  1093. "type": "uint256"
  1094. },
  1095. {
  1096. "internalType": "uint256",
  1097. "name": "_amount",
  1098. "type": "uint256"
  1099. },
  1100. {
  1101. "internalType": "bytes",
  1102. "name": "_data",
  1103. "type": "bytes"
  1104. }
  1105. ],
  1106. "name": "onERC721OReceived",
  1107. "outputs": [
  1108. {
  1109. "internalType": "bytes4",
  1110. "name": "",
  1111. "type": "bytes4"
  1112. }
  1113. ],
  1114. "payable": false,
  1115. "stateMutability": "nonpayable",
  1116. "type": "function"
  1117. },
  1118. {
  1119. "constant": true,
  1120. "inputs": [],
  1121. "name": "opiumAddress",
  1122. "outputs": [
  1123. {
  1124. "internalType": "address",
  1125. "name": "",
  1126. "type": "address"
  1127. }
  1128. ],
  1129. "payable": false,
  1130. "stateMutability": "view",
  1131. "type": "function"
  1132. },
  1133. {
  1134. "constant": true,
  1135. "inputs": [],
  1136. "name": "opiumFee",
  1137. "outputs": [
  1138. {
  1139. "internalType": "uint256",
  1140. "name": "",
  1141. "type": "uint256"
  1142. }
  1143. ],
  1144. "payable": false,
  1145. "stateMutability": "view",
  1146. "type": "function"
  1147. },
  1148. {
  1149. "constant": true,
  1150. "inputs": [],
  1151. "name": "opiumRegistry",
  1152. "outputs": [
  1153. {
  1154. "internalType": "contract Registry",
  1155. "name": "",
  1156. "type": "address"
  1157. }
  1158. ],
  1159. "payable": false,
  1160. "stateMutability": "view",
  1161. "type": "function"
  1162. },
  1163. {
  1164. "constant": true,
  1165. "inputs": [],
  1166. "name": "quantityHardcap",
  1167. "outputs": [
  1168. {
  1169. "internalType": "uint256",
  1170. "name": "",
  1171. "type": "uint256"
  1172. }
  1173. ],
  1174. "payable": false,
  1175. "stateMutability": "view",
  1176. "type": "function"
  1177. },
  1178. {
  1179. "constant": false,
  1180. "inputs": [
  1181. {
  1182. "internalType": "uint256",
  1183. "name": "_currentPremiumA",
  1184. "type": "uint256"
  1185. }
  1186. ],
  1187. "name": "setCurrentPremiumA",
  1188. "outputs": [],
  1189. "payable": false,
  1190. "stateMutability": "nonpayable",
  1191. "type": "function"
  1192. },
  1193. {
  1194. "constant": false,
  1195. "inputs": [
  1196. {
  1197. "internalType": "uint256",
  1198. "name": "_currentPremiumB",
  1199. "type": "uint256"
  1200. }
  1201. ],
  1202. "name": "setCurrentPremiumB",
  1203. "outputs": [],
  1204. "payable": false,
  1205. "stateMutability": "nonpayable",
  1206. "type": "function"
  1207. },
  1208. {
  1209. "constant": false,
  1210. "inputs": [
  1211. {
  1212. "internalType": "uint256",
  1213. "name": "_hardcap",
  1214. "type": "uint256"
  1215. }
  1216. ],
  1217. "name": "setHardcap",
  1218. "outputs": [],
  1219. "payable": false,
  1220. "stateMutability": "nonpayable",
  1221. "type": "function"
  1222. },
  1223. {
  1224. "constant": false,
  1225. "inputs": [
  1226. {
  1227. "internalType": "uint256",
  1228. "name": "_idleStakingTimeLimit",
  1229. "type": "uint256"
  1230. }
  1231. ],
  1232. "name": "setIdleStakingTimeLimit",
  1233. "outputs": [],
  1234. "payable": false,
  1235. "stateMutability": "nonpayable",
  1236. "type": "function"
  1237. },
  1238. {
  1239. "constant": false,
  1240. "inputs": [
  1241. {
  1242. "internalType": "uint256",
  1243. "name": "_lpHardcap",
  1244. "type": "uint256"
  1245. }
  1246. ],
  1247. "name": "setLPHardcap",
  1248. "outputs": [],
  1249. "payable": false,
  1250. "stateMutability": "nonpayable",
  1251. "type": "function"
  1252. },
  1253. {
  1254. "constant": false,
  1255. "inputs": [
  1256. {
  1257. "internalType": "uint256",
  1258. "name": "_nextFixedPremium",
  1259. "type": "uint256"
  1260. }
  1261. ],
  1262. "name": "setNextFixedPremium",
  1263. "outputs": [],
  1264. "payable": false,
  1265. "stateMutability": "nonpayable",
  1266. "type": "function"
  1267. },
  1268. {
  1269. "constant": false,
  1270. "inputs": [
  1271. {
  1272. "internalType": "uint256",
  1273. "name": "_nextPremiumA",
  1274. "type": "uint256"
  1275. }
  1276. ],
  1277. "name": "setNextPremiumA",
  1278. "outputs": [],
  1279. "payable": false,
  1280. "stateMutability": "nonpayable",
  1281. "type": "function"
  1282. },
  1283. {
  1284. "constant": false,
  1285. "inputs": [
  1286. {
  1287. "internalType": "uint256",
  1288. "name": "_nextPremiumB",
  1289. "type": "uint256"
  1290. }
  1291. ],
  1292. "name": "setNextPremiumB",
  1293. "outputs": [],
  1294. "payable": false,
  1295. "stateMutability": "nonpayable",
  1296. "type": "function"
  1297. },
  1298. {
  1299. "constant": false,
  1300. "inputs": [
  1301. {
  1302. "internalType": "uint256",
  1303. "name": "_nextStrikePrice",
  1304. "type": "uint256"
  1305. }
  1306. ],
  1307. "name": "setNextStrikePrice",
  1308. "outputs": [],
  1309. "payable": false,
  1310. "stateMutability": "nonpayable",
  1311. "type": "function"
  1312. },
  1313. {
  1314. "constant": false,
  1315. "inputs": [
  1316. {
  1317. "internalType": "address",
  1318. "name": "_opiumAddress",
  1319. "type": "address"
  1320. }
  1321. ],
  1322. "name": "setOpiumAddress",
  1323. "outputs": [],
  1324. "payable": false,
  1325. "stateMutability": "nonpayable",
  1326. "type": "function"
  1327. },
  1328. {
  1329. "constant": false,
  1330. "inputs": [
  1331. {
  1332. "internalType": "uint256",
  1333. "name": "_opiumFee",
  1334. "type": "uint256"
  1335. }
  1336. ],
  1337. "name": "setOpiumFees",
  1338. "outputs": [],
  1339. "payable": false,
  1340. "stateMutability": "nonpayable",
  1341. "type": "function"
  1342. },
  1343. {
  1344. "constant": false,
  1345. "inputs": [
  1346. {
  1347. "internalType": "contract Registry",
  1348. "name": "_opiumRegistry",
  1349. "type": "address"
  1350. }
  1351. ],
  1352. "name": "setOpiumRegistry",
  1353. "outputs": [],
  1354. "payable": false,
  1355. "stateMutability": "nonpayable",
  1356. "type": "function"
  1357. },
  1358. {
  1359. "constant": false,
  1360. "inputs": [
  1361. {
  1362. "internalType": "uint256",
  1363. "name": "_quantityHardcap",
  1364. "type": "uint256"
  1365. }
  1366. ],
  1367. "name": "setQuantityHardcap",
  1368. "outputs": [],
  1369. "payable": false,
  1370. "stateMutability": "nonpayable",
  1371. "type": "function"
  1372. },
  1373. {
  1374. "constant": false,
  1375. "inputs": [
  1376. {
  1377. "internalType": "bool",
  1378. "name": "_isWithdrawalsEnabled",
  1379. "type": "bool"
  1380. }
  1381. ],
  1382. "name": "setWithdrawalsEnabled",
  1383. "outputs": [],
  1384. "payable": false,
  1385. "stateMutability": "nonpayable",
  1386. "type": "function"
  1387. },
  1388. {
  1389. "constant": true,
  1390. "inputs": [],
  1391. "name": "shortTokenId",
  1392. "outputs": [
  1393. {
  1394. "internalType": "uint256",
  1395. "name": "",
  1396. "type": "uint256"
  1397. }
  1398. ],
  1399. "payable": false,
  1400. "stateMutability": "view",
  1401. "type": "function"
  1402. },
  1403. {
  1404. "constant": true,
  1405. "inputs": [],
  1406. "name": "symbol",
  1407. "outputs": [
  1408. {
  1409. "internalType": "string",
  1410. "name": "",
  1411. "type": "string"
  1412. }
  1413. ],
  1414. "payable": false,
  1415. "stateMutability": "view",
  1416. "type": "function"
  1417. },
  1418. {
  1419. "constant": true,
  1420. "inputs": [],
  1421. "name": "totalSupply",
  1422. "outputs": [
  1423. {
  1424. "internalType": "uint256",
  1425. "name": "",
  1426. "type": "uint256"
  1427. }
  1428. ],
  1429. "payable": false,
  1430. "stateMutability": "view",
  1431. "type": "function"
  1432. },
  1433. {
  1434. "constant": true,
  1435. "inputs": [],
  1436. "name": "tradingPhasePoolSize",
  1437. "outputs": [
  1438. {
  1439. "internalType": "uint256",
  1440. "name": "",
  1441. "type": "uint256"
  1442. }
  1443. ],
  1444. "payable": false,
  1445. "stateMutability": "view",
  1446. "type": "function"
  1447. },
  1448. {
  1449. "constant": true,
  1450. "inputs": [],
  1451. "name": "tradingPhaseTotalSupply",
  1452. "outputs": [
  1453. {
  1454. "internalType": "uint256",
  1455. "name": "",
  1456. "type": "uint256"
  1457. }
  1458. ],
  1459. "payable": false,
  1460. "stateMutability": "view",
  1461. "type": "function"
  1462. },
  1463. {
  1464. "constant": false,
  1465. "inputs": [
  1466. {
  1467. "internalType": "address",
  1468. "name": "recipient",
  1469. "type": "address"
  1470. },
  1471. {
  1472. "internalType": "uint256",
  1473. "name": "amount",
  1474. "type": "uint256"
  1475. }
  1476. ],
  1477. "name": "transfer",
  1478. "outputs": [
  1479. {
  1480. "internalType": "bool",
  1481. "name": "",
  1482. "type": "bool"
  1483. }
  1484. ],
  1485. "payable": false,
  1486. "stateMutability": "nonpayable",
  1487. "type": "function"
  1488. },
  1489. {
  1490. "constant": false,
  1491. "inputs": [
  1492. {
  1493. "internalType": "address",
  1494. "name": "sender",
  1495. "type": "address"
  1496. },
  1497. {
  1498. "internalType": "address",
  1499. "name": "recipient",
  1500. "type": "address"
  1501. },
  1502. {
  1503. "internalType": "uint256",
  1504. "name": "amount",
  1505. "type": "uint256"
  1506. }
  1507. ],
  1508. "name": "transferFrom",
  1509. "outputs": [
  1510. {
  1511. "internalType": "bool",
  1512. "name": "",
  1513. "type": "bool"
  1514. }
  1515. ],
  1516. "payable": false,
  1517. "stateMutability": "nonpayable",
  1518. "type": "function"
  1519. },
  1520. {
  1521. "constant": true,
  1522. "inputs": [],
  1523. "name": "underlying",
  1524. "outputs": [
  1525. {
  1526. "internalType": "contract ERC20Detailed",
  1527. "name": "",
  1528. "type": "address"
  1529. }
  1530. ],
  1531. "payable": false,
  1532. "stateMutability": "view",
  1533. "type": "function"
  1534. },
  1535. {
  1536. "constant": false,
  1537. "inputs": [
  1538. {
  1539. "internalType": "uint256",
  1540. "name": "_amount",
  1541. "type": "uint256"
  1542. }
  1543. ],
  1544. "name": "withdraw",
  1545. "outputs": [],
  1546. "payable": false,
  1547. "stateMutability": "nonpayable",
  1548. "type": "function"
  1549. },
  1550. {
  1551. "constant": false,
  1552. "inputs": [],
  1553. "name": "withdrawOpiumFees",
  1554. "outputs": [],
  1555. "payable": false,
  1556. "stateMutability": "nonpayable",
  1557. "type": "function"
  1558. }
  1559. ]
Add Comment
Please, Sign In to add comment