wgtStt.json 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720
  1. [
  2. {
  3. "inputs": [
  4. {
  5. "internalType": "address",
  6. "name": "_feeAddress1",
  7. "type": "address"
  8. },
  9. {
  10. "internalType": "address",
  11. "name": "_feeAddress2",
  12. "type": "address"
  13. },
  14. {
  15. "internalType": "address",
  16. "name": "_feeAddress3",
  17. "type": "address"
  18. },
  19. {
  20. "internalType": "address",
  21. "name": "_trustedSigner",
  22. "type": "address"
  23. }
  24. ],
  25. "stateMutability": "nonpayable",
  26. "type": "constructor"
  27. },
  28. {
  29. "anonymous": false,
  30. "inputs": [
  31. {
  32. "indexed": true,
  33. "internalType": "address",
  34. "name": "buyer",
  35. "type": "address"
  36. },
  37. {
  38. "indexed": false,
  39. "internalType": "uint256",
  40. "name": "sttAmount",
  41. "type": "uint256"
  42. },
  43. {
  44. "indexed": false,
  45. "internalType": "uint256",
  46. "name": "wgtAmount",
  47. "type": "uint256"
  48. },
  49. {
  50. "indexed": false,
  51. "internalType": "address",
  52. "name": "sttReceiver",
  53. "type": "address"
  54. }
  55. ],
  56. "name": "BuyerDepositSTT",
  57. "type": "event"
  58. },
  59. {
  60. "anonymous": false,
  61. "inputs": [
  62. {
  63. "indexed": true,
  64. "internalType": "address",
  65. "name": "feeAddress",
  66. "type": "address"
  67. },
  68. {
  69. "indexed": false,
  70. "internalType": "uint256",
  71. "name": "amount",
  72. "type": "uint256"
  73. }
  74. ],
  75. "name": "FeeDistributed",
  76. "type": "event"
  77. },
  78. {
  79. "anonymous": false,
  80. "inputs": [
  81. {
  82. "indexed": true,
  83. "internalType": "address",
  84. "name": "owner",
  85. "type": "address"
  86. },
  87. {
  88. "indexed": false,
  89. "internalType": "uint256",
  90. "name": "amount",
  91. "type": "uint256"
  92. },
  93. {
  94. "indexed": false,
  95. "internalType": "address",
  96. "name": "to",
  97. "type": "address"
  98. }
  99. ],
  100. "name": "OwnerTransferSTT",
  101. "type": "event"
  102. },
  103. {
  104. "anonymous": false,
  105. "inputs": [
  106. {
  107. "indexed": true,
  108. "internalType": "address",
  109. "name": "owner",
  110. "type": "address"
  111. },
  112. {
  113. "indexed": false,
  114. "internalType": "uint256",
  115. "name": "amount",
  116. "type": "uint256"
  117. },
  118. {
  119. "indexed": false,
  120. "internalType": "address",
  121. "name": "to",
  122. "type": "address"
  123. }
  124. ],
  125. "name": "OwnerTransferWGT",
  126. "type": "event"
  127. },
  128. {
  129. "anonymous": false,
  130. "inputs": [
  131. {
  132. "indexed": true,
  133. "internalType": "address",
  134. "name": "previousOwner",
  135. "type": "address"
  136. },
  137. {
  138. "indexed": true,
  139. "internalType": "address",
  140. "name": "newOwner",
  141. "type": "address"
  142. }
  143. ],
  144. "name": "OwnershipTransferred",
  145. "type": "event"
  146. },
  147. {
  148. "anonymous": false,
  149. "inputs": [
  150. {
  151. "indexed": false,
  152. "internalType": "address",
  153. "name": "account",
  154. "type": "address"
  155. }
  156. ],
  157. "name": "Paused",
  158. "type": "event"
  159. },
  160. {
  161. "anonymous": false,
  162. "inputs": [
  163. {
  164. "indexed": true,
  165. "internalType": "address",
  166. "name": "seller",
  167. "type": "address"
  168. },
  169. {
  170. "indexed": false,
  171. "internalType": "uint256",
  172. "name": "amount",
  173. "type": "uint256"
  174. }
  175. ],
  176. "name": "SellerDepositWGT",
  177. "type": "event"
  178. },
  179. {
  180. "anonymous": false,
  181. "inputs": [
  182. {
  183. "indexed": true,
  184. "internalType": "address",
  185. "name": "seller",
  186. "type": "address"
  187. },
  188. {
  189. "indexed": false,
  190. "internalType": "uint256",
  191. "name": "amount",
  192. "type": "uint256"
  193. }
  194. ],
  195. "name": "SellerWithdrawWGT",
  196. "type": "event"
  197. },
  198. {
  199. "anonymous": false,
  200. "inputs": [
  201. {
  202. "indexed": false,
  203. "internalType": "address",
  204. "name": "account",
  205. "type": "address"
  206. }
  207. ],
  208. "name": "Unpaused",
  209. "type": "event"
  210. },
  211. {
  212. "anonymous": false,
  213. "inputs": [
  214. {
  215. "indexed": false,
  216. "internalType": "uint256",
  217. "name": "oldDuration",
  218. "type": "uint256"
  219. },
  220. {
  221. "indexed": false,
  222. "internalType": "uint256",
  223. "name": "newDuration",
  224. "type": "uint256"
  225. }
  226. ],
  227. "name": "ValidDurationUpdated",
  228. "type": "event"
  229. },
  230. {
  231. "inputs": [],
  232. "name": "FEE_RATE",
  233. "outputs": [
  234. {
  235. "internalType": "uint256",
  236. "name": "",
  237. "type": "uint256"
  238. }
  239. ],
  240. "stateMutability": "view",
  241. "type": "function"
  242. },
  243. {
  244. "inputs": [
  245. {
  246. "internalType": "uint256",
  247. "name": "_sttAmount",
  248. "type": "uint256"
  249. },
  250. {
  251. "internalType": "uint256",
  252. "name": "_wgtAmount",
  253. "type": "uint256"
  254. },
  255. {
  256. "internalType": "address",
  257. "name": "sttReceiver",
  258. "type": "address"
  259. },
  260. {
  261. "internalType": "uint256",
  262. "name": "_timestamp",
  263. "type": "uint256"
  264. },
  265. {
  266. "internalType": "uint256",
  267. "name": "_nonce",
  268. "type": "uint256"
  269. },
  270. {
  271. "internalType": "bytes",
  272. "name": "_signature",
  273. "type": "bytes"
  274. }
  275. ],
  276. "name": "buyerDepositSTT",
  277. "outputs": [],
  278. "stateMutability": "nonpayable",
  279. "type": "function"
  280. },
  281. {
  282. "inputs": [],
  283. "name": "feeAddress1",
  284. "outputs": [
  285. {
  286. "internalType": "address",
  287. "name": "",
  288. "type": "address"
  289. }
  290. ],
  291. "stateMutability": "view",
  292. "type": "function"
  293. },
  294. {
  295. "inputs": [],
  296. "name": "feeAddress2",
  297. "outputs": [
  298. {
  299. "internalType": "address",
  300. "name": "",
  301. "type": "address"
  302. }
  303. ],
  304. "stateMutability": "view",
  305. "type": "function"
  306. },
  307. {
  308. "inputs": [],
  309. "name": "feeAddress3",
  310. "outputs": [
  311. {
  312. "internalType": "address",
  313. "name": "",
  314. "type": "address"
  315. }
  316. ],
  317. "stateMutability": "view",
  318. "type": "function"
  319. },
  320. {
  321. "inputs": [
  322. {
  323. "internalType": "bytes32",
  324. "name": "_messageHash",
  325. "type": "bytes32"
  326. }
  327. ],
  328. "name": "getEthSignedMessageHash",
  329. "outputs": [
  330. {
  331. "internalType": "bytes32",
  332. "name": "",
  333. "type": "bytes32"
  334. }
  335. ],
  336. "stateMutability": "pure",
  337. "type": "function"
  338. },
  339. {
  340. "inputs": [
  341. {
  342. "internalType": "address",
  343. "name": "user",
  344. "type": "address"
  345. },
  346. {
  347. "internalType": "uint256",
  348. "name": "sttAmount",
  349. "type": "uint256"
  350. },
  351. {
  352. "internalType": "uint256",
  353. "name": "wgtAmount",
  354. "type": "uint256"
  355. },
  356. {
  357. "internalType": "uint256",
  358. "name": "timestamp",
  359. "type": "uint256"
  360. },
  361. {
  362. "internalType": "uint256",
  363. "name": "nonce",
  364. "type": "uint256"
  365. },
  366. {
  367. "internalType": "address",
  368. "name": "contractAddr",
  369. "type": "address"
  370. }
  371. ],
  372. "name": "getMessageHash",
  373. "outputs": [
  374. {
  375. "internalType": "bytes32",
  376. "name": "",
  377. "type": "bytes32"
  378. }
  379. ],
  380. "stateMutability": "pure",
  381. "type": "function"
  382. },
  383. {
  384. "inputs": [],
  385. "name": "getSttBalance",
  386. "outputs": [
  387. {
  388. "internalType": "uint256",
  389. "name": "",
  390. "type": "uint256"
  391. }
  392. ],
  393. "stateMutability": "view",
  394. "type": "function"
  395. },
  396. {
  397. "inputs": [],
  398. "name": "getWgtBalance",
  399. "outputs": [
  400. {
  401. "internalType": "uint256",
  402. "name": "",
  403. "type": "uint256"
  404. }
  405. ],
  406. "stateMutability": "view",
  407. "type": "function"
  408. },
  409. {
  410. "inputs": [],
  411. "name": "owner",
  412. "outputs": [
  413. {
  414. "internalType": "address",
  415. "name": "",
  416. "type": "address"
  417. }
  418. ],
  419. "stateMutability": "view",
  420. "type": "function"
  421. },
  422. {
  423. "inputs": [
  424. {
  425. "internalType": "uint256",
  426. "name": "_amount",
  427. "type": "uint256"
  428. }
  429. ],
  430. "name": "ownerDepositSTT",
  431. "outputs": [],
  432. "stateMutability": "nonpayable",
  433. "type": "function"
  434. },
  435. {
  436. "inputs": [
  437. {
  438. "internalType": "uint256",
  439. "name": "_amount",
  440. "type": "uint256"
  441. }
  442. ],
  443. "name": "ownerDepositWGT",
  444. "outputs": [],
  445. "stateMutability": "nonpayable",
  446. "type": "function"
  447. },
  448. {
  449. "inputs": [
  450. {
  451. "internalType": "uint256",
  452. "name": "_amount",
  453. "type": "uint256"
  454. },
  455. {
  456. "internalType": "address",
  457. "name": "_to",
  458. "type": "address"
  459. }
  460. ],
  461. "name": "ownerTransferSTT",
  462. "outputs": [],
  463. "stateMutability": "nonpayable",
  464. "type": "function"
  465. },
  466. {
  467. "inputs": [
  468. {
  469. "internalType": "uint256",
  470. "name": "_amount",
  471. "type": "uint256"
  472. },
  473. {
  474. "internalType": "address",
  475. "name": "_to",
  476. "type": "address"
  477. }
  478. ],
  479. "name": "ownerTransferWGT",
  480. "outputs": [],
  481. "stateMutability": "nonpayable",
  482. "type": "function"
  483. },
  484. {
  485. "inputs": [],
  486. "name": "pause",
  487. "outputs": [],
  488. "stateMutability": "nonpayable",
  489. "type": "function"
  490. },
  491. {
  492. "inputs": [],
  493. "name": "paused",
  494. "outputs": [
  495. {
  496. "internalType": "bool",
  497. "name": "",
  498. "type": "bool"
  499. }
  500. ],
  501. "stateMutability": "view",
  502. "type": "function"
  503. },
  504. {
  505. "inputs": [
  506. {
  507. "internalType": "bytes32",
  508. "name": "_ethSignedMessageHash",
  509. "type": "bytes32"
  510. },
  511. {
  512. "internalType": "bytes",
  513. "name": "_signature",
  514. "type": "bytes"
  515. }
  516. ],
  517. "name": "recoverSigner",
  518. "outputs": [
  519. {
  520. "internalType": "address",
  521. "name": "",
  522. "type": "address"
  523. }
  524. ],
  525. "stateMutability": "pure",
  526. "type": "function"
  527. },
  528. {
  529. "inputs": [],
  530. "name": "renounceOwnership",
  531. "outputs": [],
  532. "stateMutability": "nonpayable",
  533. "type": "function"
  534. },
  535. {
  536. "inputs": [
  537. {
  538. "internalType": "uint256",
  539. "name": "_amount",
  540. "type": "uint256"
  541. }
  542. ],
  543. "name": "sellerDepositWGT",
  544. "outputs": [],
  545. "stateMutability": "nonpayable",
  546. "type": "function"
  547. },
  548. {
  549. "inputs": [
  550. {
  551. "internalType": "address",
  552. "name": "",
  553. "type": "address"
  554. }
  555. ],
  556. "name": "sellerWGTDeposits",
  557. "outputs": [
  558. {
  559. "internalType": "uint256",
  560. "name": "",
  561. "type": "uint256"
  562. }
  563. ],
  564. "stateMutability": "view",
  565. "type": "function"
  566. },
  567. {
  568. "inputs": [
  569. {
  570. "internalType": "uint256",
  571. "name": "_amount",
  572. "type": "uint256"
  573. }
  574. ],
  575. "name": "sellerWithdrawWGT",
  576. "outputs": [],
  577. "stateMutability": "nonpayable",
  578. "type": "function"
  579. },
  580. {
  581. "inputs": [
  582. {
  583. "internalType": "address",
  584. "name": "_feeAddress1",
  585. "type": "address"
  586. },
  587. {
  588. "internalType": "address",
  589. "name": "_feeAddress2",
  590. "type": "address"
  591. },
  592. {
  593. "internalType": "address",
  594. "name": "_feeAddress3",
  595. "type": "address"
  596. }
  597. ],
  598. "name": "setFeeAddresses",
  599. "outputs": [],
  600. "stateMutability": "nonpayable",
  601. "type": "function"
  602. },
  603. {
  604. "inputs": [
  605. {
  606. "internalType": "address",
  607. "name": "_trustedSigner",
  608. "type": "address"
  609. }
  610. ],
  611. "name": "setTrustedSigner",
  612. "outputs": [],
  613. "stateMutability": "nonpayable",
  614. "type": "function"
  615. },
  616. {
  617. "inputs": [
  618. {
  619. "internalType": "uint256",
  620. "name": "_duration",
  621. "type": "uint256"
  622. }
  623. ],
  624. "name": "setValidDuration",
  625. "outputs": [],
  626. "stateMutability": "nonpayable",
  627. "type": "function"
  628. },
  629. {
  630. "inputs": [],
  631. "name": "sttToken",
  632. "outputs": [
  633. {
  634. "internalType": "contract IERC20",
  635. "name": "",
  636. "type": "address"
  637. }
  638. ],
  639. "stateMutability": "view",
  640. "type": "function"
  641. },
  642. {
  643. "inputs": [
  644. {
  645. "internalType": "address",
  646. "name": "newOwner",
  647. "type": "address"
  648. }
  649. ],
  650. "name": "transferOwnership",
  651. "outputs": [],
  652. "stateMutability": "nonpayable",
  653. "type": "function"
  654. },
  655. {
  656. "inputs": [],
  657. "name": "trustedSigner",
  658. "outputs": [
  659. {
  660. "internalType": "address",
  661. "name": "",
  662. "type": "address"
  663. }
  664. ],
  665. "stateMutability": "view",
  666. "type": "function"
  667. },
  668. {
  669. "inputs": [],
  670. "name": "unpause",
  671. "outputs": [],
  672. "stateMutability": "nonpayable",
  673. "type": "function"
  674. },
  675. {
  676. "inputs": [
  677. {
  678. "internalType": "uint256",
  679. "name": "",
  680. "type": "uint256"
  681. }
  682. ],
  683. "name": "usedNonces",
  684. "outputs": [
  685. {
  686. "internalType": "bool",
  687. "name": "",
  688. "type": "bool"
  689. }
  690. ],
  691. "stateMutability": "view",
  692. "type": "function"
  693. },
  694. {
  695. "inputs": [],
  696. "name": "validDuration",
  697. "outputs": [
  698. {
  699. "internalType": "uint256",
  700. "name": "",
  701. "type": "uint256"
  702. }
  703. ],
  704. "stateMutability": "view",
  705. "type": "function"
  706. },
  707. {
  708. "inputs": [],
  709. "name": "wgtToken",
  710. "outputs": [
  711. {
  712. "internalType": "contract IERC20",
  713. "name": "",
  714. "type": "address"
  715. }
  716. ],
  717. "stateMutability": "view",
  718. "type": "function"
  719. }
  720. ]