StargateFeeLibraryV07.json 23 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225
  1. [
  2. {
  3. "inputs": [
  4. {
  5. "internalType": "address",
  6. "name": "_factory",
  7. "type": "address"
  8. },
  9. {
  10. "internalType": "address",
  11. "name": "_endpoint",
  12. "type": "address"
  13. }
  14. ],
  15. "stateMutability": "nonpayable",
  16. "type": "constructor"
  17. },
  18. {
  19. "anonymous": false,
  20. "inputs": [
  21. {
  22. "indexed": true,
  23. "internalType": "address",
  24. "name": "previousOwner",
  25. "type": "address"
  26. },
  27. {
  28. "indexed": true,
  29. "internalType": "address",
  30. "name": "newOwner",
  31. "type": "address"
  32. }
  33. ],
  34. "name": "OwnershipTransferred",
  35. "type": "event"
  36. },
  37. {
  38. "anonymous": false,
  39. "inputs": [
  40. {
  41. "indexed": true,
  42. "internalType": "uint256",
  43. "name": "poolId",
  44. "type": "uint256"
  45. },
  46. {
  47. "indexed": false,
  48. "internalType": "uint256",
  49. "name": "priceSD",
  50. "type": "uint256"
  51. }
  52. ],
  53. "name": "PriceUpdated",
  54. "type": "event"
  55. },
  56. {
  57. "anonymous": false,
  58. "inputs": [
  59. {
  60. "indexed": false,
  61. "internalType": "uint16",
  62. "name": "_dstChainId",
  63. "type": "uint16"
  64. },
  65. {
  66. "indexed": false,
  67. "internalType": "uint16",
  68. "name": "_type",
  69. "type": "uint16"
  70. },
  71. {
  72. "indexed": false,
  73. "internalType": "uint256",
  74. "name": "_minDstGas",
  75. "type": "uint256"
  76. }
  77. ],
  78. "name": "SetMinDstGas",
  79. "type": "event"
  80. },
  81. {
  82. "anonymous": false,
  83. "inputs": [
  84. {
  85. "indexed": false,
  86. "internalType": "address",
  87. "name": "precrime",
  88. "type": "address"
  89. }
  90. ],
  91. "name": "SetPrecrime",
  92. "type": "event"
  93. },
  94. {
  95. "anonymous": false,
  96. "inputs": [
  97. {
  98. "indexed": false,
  99. "internalType": "uint16",
  100. "name": "_remoteChainId",
  101. "type": "uint16"
  102. },
  103. {
  104. "indexed": false,
  105. "internalType": "bytes",
  106. "name": "_path",
  107. "type": "bytes"
  108. }
  109. ],
  110. "name": "SetTrustedRemote",
  111. "type": "event"
  112. },
  113. {
  114. "anonymous": false,
  115. "inputs": [
  116. {
  117. "indexed": false,
  118. "internalType": "uint16",
  119. "name": "_remoteChainId",
  120. "type": "uint16"
  121. },
  122. {
  123. "indexed": false,
  124. "internalType": "bytes",
  125. "name": "_remoteAddress",
  126. "type": "bytes"
  127. }
  128. ],
  129. "name": "SetTrustedRemoteAddress",
  130. "type": "event"
  131. },
  132. {
  133. "inputs": [],
  134. "name": "DELTA_1",
  135. "outputs": [
  136. {
  137. "internalType": "uint256",
  138. "name": "",
  139. "type": "uint256"
  140. }
  141. ],
  142. "stateMutability": "view",
  143. "type": "function"
  144. },
  145. {
  146. "inputs": [],
  147. "name": "DELTA_2",
  148. "outputs": [
  149. {
  150. "internalType": "uint256",
  151. "name": "",
  152. "type": "uint256"
  153. }
  154. ],
  155. "stateMutability": "view",
  156. "type": "function"
  157. },
  158. {
  159. "inputs": [],
  160. "name": "DENOMINATOR",
  161. "outputs": [
  162. {
  163. "internalType": "uint256",
  164. "name": "",
  165. "type": "uint256"
  166. }
  167. ],
  168. "stateMutability": "view",
  169. "type": "function"
  170. },
  171. {
  172. "inputs": [],
  173. "name": "EQ_REWARD_THRESHOLD",
  174. "outputs": [
  175. {
  176. "internalType": "uint256",
  177. "name": "",
  178. "type": "uint256"
  179. }
  180. ],
  181. "stateMutability": "view",
  182. "type": "function"
  183. },
  184. {
  185. "inputs": [],
  186. "name": "LAMBDA_1",
  187. "outputs": [
  188. {
  189. "internalType": "uint256",
  190. "name": "",
  191. "type": "uint256"
  192. }
  193. ],
  194. "stateMutability": "view",
  195. "type": "function"
  196. },
  197. {
  198. "inputs": [],
  199. "name": "LAMBDA_2",
  200. "outputs": [
  201. {
  202. "internalType": "uint256",
  203. "name": "",
  204. "type": "uint256"
  205. }
  206. ],
  207. "stateMutability": "view",
  208. "type": "function"
  209. },
  210. {
  211. "inputs": [],
  212. "name": "LP_FEE",
  213. "outputs": [
  214. {
  215. "internalType": "uint256",
  216. "name": "",
  217. "type": "uint256"
  218. }
  219. ],
  220. "stateMutability": "view",
  221. "type": "function"
  222. },
  223. {
  224. "inputs": [],
  225. "name": "ONE_BPS_PRICE_CHANGE_THRESHOLD",
  226. "outputs": [
  227. {
  228. "internalType": "uint256",
  229. "name": "",
  230. "type": "uint256"
  231. }
  232. ],
  233. "stateMutability": "view",
  234. "type": "function"
  235. },
  236. {
  237. "inputs": [],
  238. "name": "PRICE_DEPEG_THRESHOLD",
  239. "outputs": [
  240. {
  241. "internalType": "uint256",
  242. "name": "",
  243. "type": "uint256"
  244. }
  245. ],
  246. "stateMutability": "view",
  247. "type": "function"
  248. },
  249. {
  250. "inputs": [],
  251. "name": "PRICE_DRIFT_THRESHOLD",
  252. "outputs": [
  253. {
  254. "internalType": "uint256",
  255. "name": "",
  256. "type": "uint256"
  257. }
  258. ],
  259. "stateMutability": "view",
  260. "type": "function"
  261. },
  262. {
  263. "inputs": [],
  264. "name": "PRICE_SHARED_DECIMALS",
  265. "outputs": [
  266. {
  267. "internalType": "uint8",
  268. "name": "",
  269. "type": "uint8"
  270. }
  271. ],
  272. "stateMutability": "view",
  273. "type": "function"
  274. },
  275. {
  276. "inputs": [],
  277. "name": "PROTOCOL_FEE",
  278. "outputs": [
  279. {
  280. "internalType": "uint256",
  281. "name": "",
  282. "type": "uint256"
  283. }
  284. ],
  285. "stateMutability": "view",
  286. "type": "function"
  287. },
  288. {
  289. "inputs": [],
  290. "name": "PROTOCOL_FEE_FOR_SAME_TOKEN",
  291. "outputs": [
  292. {
  293. "internalType": "uint256",
  294. "name": "",
  295. "type": "uint256"
  296. }
  297. ],
  298. "stateMutability": "view",
  299. "type": "function"
  300. },
  301. {
  302. "inputs": [],
  303. "name": "PROTOCOL_SUBSIDY",
  304. "outputs": [
  305. {
  306. "internalType": "uint256",
  307. "name": "",
  308. "type": "uint256"
  309. }
  310. ],
  311. "stateMutability": "view",
  312. "type": "function"
  313. },
  314. {
  315. "inputs": [
  316. {
  317. "internalType": "uint16",
  318. "name": "",
  319. "type": "uint16"
  320. }
  321. ],
  322. "name": "defaultAdapterParams",
  323. "outputs": [
  324. {
  325. "internalType": "bytes",
  326. "name": "",
  327. "type": "bytes"
  328. }
  329. ],
  330. "stateMutability": "view",
  331. "type": "function"
  332. },
  333. {
  334. "inputs": [],
  335. "name": "factory",
  336. "outputs": [
  337. {
  338. "internalType": "contract Factory",
  339. "name": "",
  340. "type": "address"
  341. }
  342. ],
  343. "stateMutability": "view",
  344. "type": "function"
  345. },
  346. {
  347. "inputs": [
  348. {
  349. "internalType": "uint16",
  350. "name": "_srcChainId",
  351. "type": "uint16"
  352. },
  353. {
  354. "internalType": "bytes",
  355. "name": "_srcAddress",
  356. "type": "bytes"
  357. }
  358. ],
  359. "name": "forceResumeReceive",
  360. "outputs": [],
  361. "stateMutability": "nonpayable",
  362. "type": "function"
  363. },
  364. {
  365. "inputs": [
  366. {
  367. "internalType": "uint16",
  368. "name": "_version",
  369. "type": "uint16"
  370. },
  371. {
  372. "internalType": "uint16",
  373. "name": "_chainId",
  374. "type": "uint16"
  375. },
  376. {
  377. "internalType": "address",
  378. "name": "",
  379. "type": "address"
  380. },
  381. {
  382. "internalType": "uint256",
  383. "name": "_configType",
  384. "type": "uint256"
  385. }
  386. ],
  387. "name": "getConfig",
  388. "outputs": [
  389. {
  390. "internalType": "bytes",
  391. "name": "",
  392. "type": "bytes"
  393. }
  394. ],
  395. "stateMutability": "view",
  396. "type": "function"
  397. },
  398. {
  399. "inputs": [
  400. {
  401. "internalType": "uint256",
  402. "name": "_srcPoolId",
  403. "type": "uint256"
  404. },
  405. {
  406. "internalType": "uint256",
  407. "name": "_dstPoolId",
  408. "type": "uint256"
  409. },
  410. {
  411. "internalType": "uint256",
  412. "name": "_amountSD",
  413. "type": "uint256"
  414. },
  415. {
  416. "internalType": "bool",
  417. "name": "_whitelisted",
  418. "type": "bool"
  419. }
  420. ],
  421. "name": "getDriftFee",
  422. "outputs": [
  423. {
  424. "internalType": "uint256",
  425. "name": "",
  426. "type": "uint256"
  427. }
  428. ],
  429. "stateMutability": "view",
  430. "type": "function"
  431. },
  432. {
  433. "inputs": [
  434. {
  435. "internalType": "uint256",
  436. "name": "_srcPoolId",
  437. "type": "uint256"
  438. },
  439. {
  440. "internalType": "uint256",
  441. "name": "_amountSD",
  442. "type": "uint256"
  443. },
  444. {
  445. "internalType": "bool",
  446. "name": "_whitelisted",
  447. "type": "bool"
  448. }
  449. ],
  450. "name": "getEqReward",
  451. "outputs": [
  452. {
  453. "internalType": "uint256",
  454. "name": "",
  455. "type": "uint256"
  456. }
  457. ],
  458. "stateMutability": "view",
  459. "type": "function"
  460. },
  461. {
  462. "inputs": [
  463. {
  464. "internalType": "uint256",
  465. "name": "srcPoolId",
  466. "type": "uint256"
  467. },
  468. {
  469. "internalType": "uint256",
  470. "name": "dstPoolId",
  471. "type": "uint256"
  472. },
  473. {
  474. "internalType": "uint16",
  475. "name": "dstChainId",
  476. "type": "uint16"
  477. },
  478. {
  479. "internalType": "uint256",
  480. "name": "amountSD",
  481. "type": "uint256"
  482. },
  483. {
  484. "internalType": "bool",
  485. "name": "whitelisted",
  486. "type": "bool"
  487. },
  488. {
  489. "internalType": "bool",
  490. "name": "hasEqReward",
  491. "type": "bool"
  492. }
  493. ],
  494. "name": "getEquilibriumFee",
  495. "outputs": [
  496. {
  497. "internalType": "uint256",
  498. "name": "",
  499. "type": "uint256"
  500. },
  501. {
  502. "internalType": "uint256",
  503. "name": "",
  504. "type": "uint256"
  505. }
  506. ],
  507. "stateMutability": "view",
  508. "type": "function"
  509. },
  510. {
  511. "inputs": [
  512. {
  513. "internalType": "uint256",
  514. "name": "_srcPoolId",
  515. "type": "uint256"
  516. },
  517. {
  518. "internalType": "uint256",
  519. "name": "_dstPoolId",
  520. "type": "uint256"
  521. },
  522. {
  523. "internalType": "uint16",
  524. "name": "_dstChainId",
  525. "type": "uint16"
  526. },
  527. {
  528. "internalType": "address",
  529. "name": "_from",
  530. "type": "address"
  531. },
  532. {
  533. "internalType": "uint256",
  534. "name": "_amountSD",
  535. "type": "uint256"
  536. }
  537. ],
  538. "name": "getFees",
  539. "outputs": [
  540. {
  541. "components": [
  542. {
  543. "internalType": "uint256",
  544. "name": "amount",
  545. "type": "uint256"
  546. },
  547. {
  548. "internalType": "uint256",
  549. "name": "eqFee",
  550. "type": "uint256"
  551. },
  552. {
  553. "internalType": "uint256",
  554. "name": "eqReward",
  555. "type": "uint256"
  556. },
  557. {
  558. "internalType": "uint256",
  559. "name": "lpFee",
  560. "type": "uint256"
  561. },
  562. {
  563. "internalType": "uint256",
  564. "name": "protocolFee",
  565. "type": "uint256"
  566. },
  567. {
  568. "internalType": "uint256",
  569. "name": "lkbRemove",
  570. "type": "uint256"
  571. }
  572. ],
  573. "internalType": "struct Pool.SwapObj",
  574. "name": "s",
  575. "type": "tuple"
  576. }
  577. ],
  578. "stateMutability": "view",
  579. "type": "function"
  580. },
  581. {
  582. "inputs": [
  583. {
  584. "internalType": "uint256",
  585. "name": "_srcPoolId",
  586. "type": "uint256"
  587. },
  588. {
  589. "internalType": "uint256",
  590. "name": "_dstPoolId",
  591. "type": "uint256"
  592. },
  593. {
  594. "internalType": "uint16",
  595. "name": "",
  596. "type": "uint16"
  597. },
  598. {
  599. "internalType": "uint256",
  600. "name": "_amountSD",
  601. "type": "uint256"
  602. },
  603. {
  604. "internalType": "uint256",
  605. "name": "_protocolSubsidy",
  606. "type": "uint256"
  607. },
  608. {
  609. "internalType": "bool",
  610. "name": "_whitelisted",
  611. "type": "bool"
  612. }
  613. ],
  614. "name": "getProtocolAndLpFee",
  615. "outputs": [
  616. {
  617. "internalType": "uint256",
  618. "name": "",
  619. "type": "uint256"
  620. },
  621. {
  622. "internalType": "uint256",
  623. "name": "",
  624. "type": "uint256"
  625. }
  626. ],
  627. "stateMutability": "view",
  628. "type": "function"
  629. },
  630. {
  631. "inputs": [
  632. {
  633. "internalType": "uint256",
  634. "name": "_poolId1",
  635. "type": "uint256"
  636. },
  637. {
  638. "internalType": "uint256",
  639. "name": "_poolId2",
  640. "type": "uint256"
  641. }
  642. ],
  643. "name": "getRemoteChains",
  644. "outputs": [
  645. {
  646. "internalType": "uint16[]",
  647. "name": "",
  648. "type": "uint16[]"
  649. }
  650. ],
  651. "stateMutability": "view",
  652. "type": "function"
  653. },
  654. {
  655. "inputs": [],
  656. "name": "getVersion",
  657. "outputs": [
  658. {
  659. "internalType": "string",
  660. "name": "",
  661. "type": "string"
  662. }
  663. ],
  664. "stateMutability": "pure",
  665. "type": "function"
  666. },
  667. {
  668. "inputs": [
  669. {
  670. "internalType": "uint256",
  671. "name": "_poolId",
  672. "type": "uint256"
  673. },
  674. {
  675. "internalType": "uint256",
  676. "name": "_priceSD",
  677. "type": "uint256"
  678. }
  679. ],
  680. "name": "initTokenPrice",
  681. "outputs": [],
  682. "stateMutability": "nonpayable",
  683. "type": "function"
  684. },
  685. {
  686. "inputs": [
  687. {
  688. "internalType": "uint16",
  689. "name": "_srcChainId",
  690. "type": "uint16"
  691. },
  692. {
  693. "internalType": "bytes",
  694. "name": "_srcAddress",
  695. "type": "bytes"
  696. }
  697. ],
  698. "name": "isTrustedRemote",
  699. "outputs": [
  700. {
  701. "internalType": "bool",
  702. "name": "",
  703. "type": "bool"
  704. }
  705. ],
  706. "stateMutability": "view",
  707. "type": "function"
  708. },
  709. {
  710. "inputs": [],
  711. "name": "lzEndpoint",
  712. "outputs": [
  713. {
  714. "internalType": "contract ILayerZeroEndpoint",
  715. "name": "",
  716. "type": "address"
  717. }
  718. ],
  719. "stateMutability": "view",
  720. "type": "function"
  721. },
  722. {
  723. "inputs": [
  724. {
  725. "internalType": "uint16",
  726. "name": "_srcChainId",
  727. "type": "uint16"
  728. },
  729. {
  730. "internalType": "bytes",
  731. "name": "_srcAddress",
  732. "type": "bytes"
  733. },
  734. {
  735. "internalType": "uint64",
  736. "name": "_nonce",
  737. "type": "uint64"
  738. },
  739. {
  740. "internalType": "bytes",
  741. "name": "_payload",
  742. "type": "bytes"
  743. }
  744. ],
  745. "name": "lzReceive",
  746. "outputs": [],
  747. "stateMutability": "nonpayable",
  748. "type": "function"
  749. },
  750. {
  751. "inputs": [
  752. {
  753. "internalType": "uint16",
  754. "name": "",
  755. "type": "uint16"
  756. },
  757. {
  758. "internalType": "uint16",
  759. "name": "",
  760. "type": "uint16"
  761. }
  762. ],
  763. "name": "minDstGasLookup",
  764. "outputs": [
  765. {
  766. "internalType": "uint256",
  767. "name": "",
  768. "type": "uint256"
  769. }
  770. ],
  771. "stateMutability": "view",
  772. "type": "function"
  773. },
  774. {
  775. "inputs": [],
  776. "name": "owner",
  777. "outputs": [
  778. {
  779. "internalType": "address",
  780. "name": "",
  781. "type": "address"
  782. }
  783. ],
  784. "stateMutability": "view",
  785. "type": "function"
  786. },
  787. {
  788. "inputs": [
  789. {
  790. "internalType": "uint256",
  791. "name": "",
  792. "type": "uint256"
  793. }
  794. ],
  795. "name": "poolIdToLpId",
  796. "outputs": [
  797. {
  798. "internalType": "uint256",
  799. "name": "",
  800. "type": "uint256"
  801. }
  802. ],
  803. "stateMutability": "view",
  804. "type": "function"
  805. },
  806. {
  807. "inputs": [
  808. {
  809. "internalType": "uint256",
  810. "name": "",
  811. "type": "uint256"
  812. }
  813. ],
  814. "name": "poolIdToPriceFeed",
  815. "outputs": [
  816. {
  817. "internalType": "address",
  818. "name": "",
  819. "type": "address"
  820. }
  821. ],
  822. "stateMutability": "view",
  823. "type": "function"
  824. },
  825. {
  826. "inputs": [
  827. {
  828. "internalType": "uint256",
  829. "name": "",
  830. "type": "uint256"
  831. }
  832. ],
  833. "name": "poolIdToPriceSD",
  834. "outputs": [
  835. {
  836. "internalType": "uint256",
  837. "name": "",
  838. "type": "uint256"
  839. }
  840. ],
  841. "stateMutability": "view",
  842. "type": "function"
  843. },
  844. {
  845. "inputs": [],
  846. "name": "precrime",
  847. "outputs": [
  848. {
  849. "internalType": "address",
  850. "name": "",
  851. "type": "address"
  852. }
  853. ],
  854. "stateMutability": "view",
  855. "type": "function"
  856. },
  857. {
  858. "inputs": [
  859. {
  860. "internalType": "uint256",
  861. "name": "_poolId1",
  862. "type": "uint256"
  863. },
  864. {
  865. "internalType": "uint256",
  866. "name": "_poolId2",
  867. "type": "uint256"
  868. }
  869. ],
  870. "name": "quoteFeeForPriceUpdate",
  871. "outputs": [
  872. {
  873. "internalType": "uint256",
  874. "name": "",
  875. "type": "uint256"
  876. }
  877. ],
  878. "stateMutability": "view",
  879. "type": "function"
  880. },
  881. {
  882. "inputs": [],
  883. "name": "renounceOwnership",
  884. "outputs": [],
  885. "stateMutability": "nonpayable",
  886. "type": "function"
  887. },
  888. {
  889. "inputs": [
  890. {
  891. "internalType": "uint16",
  892. "name": "_version",
  893. "type": "uint16"
  894. },
  895. {
  896. "internalType": "uint16",
  897. "name": "_chainId",
  898. "type": "uint16"
  899. },
  900. {
  901. "internalType": "uint256",
  902. "name": "_configType",
  903. "type": "uint256"
  904. },
  905. {
  906. "internalType": "bytes",
  907. "name": "_config",
  908. "type": "bytes"
  909. }
  910. ],
  911. "name": "setConfig",
  912. "outputs": [],
  913. "stateMutability": "nonpayable",
  914. "type": "function"
  915. },
  916. {
  917. "inputs": [
  918. {
  919. "internalType": "uint16",
  920. "name": "_remoteChainId",
  921. "type": "uint16"
  922. },
  923. {
  924. "internalType": "bytes",
  925. "name": "_adapterParams",
  926. "type": "bytes"
  927. }
  928. ],
  929. "name": "setDefaultAdapterParams",
  930. "outputs": [],
  931. "stateMutability": "nonpayable",
  932. "type": "function"
  933. },
  934. {
  935. "inputs": [
  936. {
  937. "internalType": "uint16",
  938. "name": "_dstChainId",
  939. "type": "uint16"
  940. },
  941. {
  942. "internalType": "uint16",
  943. "name": "_packetType",
  944. "type": "uint16"
  945. },
  946. {
  947. "internalType": "uint256",
  948. "name": "_minGas",
  949. "type": "uint256"
  950. }
  951. ],
  952. "name": "setMinDstGas",
  953. "outputs": [],
  954. "stateMutability": "nonpayable",
  955. "type": "function"
  956. },
  957. {
  958. "inputs": [
  959. {
  960. "internalType": "uint256",
  961. "name": "_poolId",
  962. "type": "uint256"
  963. },
  964. {
  965. "internalType": "uint256",
  966. "name": "_lpId",
  967. "type": "uint256"
  968. }
  969. ],
  970. "name": "setPoolToLpId",
  971. "outputs": [],
  972. "stateMutability": "nonpayable",
  973. "type": "function"
  974. },
  975. {
  976. "inputs": [
  977. {
  978. "internalType": "address",
  979. "name": "_precrime",
  980. "type": "address"
  981. }
  982. ],
  983. "name": "setPrecrime",
  984. "outputs": [],
  985. "stateMutability": "nonpayable",
  986. "type": "function"
  987. },
  988. {
  989. "inputs": [
  990. {
  991. "internalType": "uint16",
  992. "name": "_version",
  993. "type": "uint16"
  994. }
  995. ],
  996. "name": "setReceiveVersion",
  997. "outputs": [],
  998. "stateMutability": "nonpayable",
  999. "type": "function"
  1000. },
  1001. {
  1002. "inputs": [
  1003. {
  1004. "internalType": "uint256",
  1005. "name": "_poolId1",
  1006. "type": "uint256"
  1007. },
  1008. {
  1009. "internalType": "uint256",
  1010. "name": "_poolId2",
  1011. "type": "uint256"
  1012. },
  1013. {
  1014. "internalType": "uint16[]",
  1015. "name": "_remoteChainIds",
  1016. "type": "uint16[]"
  1017. }
  1018. ],
  1019. "name": "setRemoteChains",
  1020. "outputs": [],
  1021. "stateMutability": "nonpayable",
  1022. "type": "function"
  1023. },
  1024. {
  1025. "inputs": [
  1026. {
  1027. "internalType": "uint16",
  1028. "name": "_version",
  1029. "type": "uint16"
  1030. }
  1031. ],
  1032. "name": "setSendVersion",
  1033. "outputs": [],
  1034. "stateMutability": "nonpayable",
  1035. "type": "function"
  1036. },
  1037. {
  1038. "inputs": [
  1039. {
  1040. "internalType": "uint256",
  1041. "name": "_poolId",
  1042. "type": "uint256"
  1043. },
  1044. {
  1045. "internalType": "address",
  1046. "name": "_lpStaking",
  1047. "type": "address"
  1048. }
  1049. ],
  1050. "name": "setStargatePoolIdToLPStakingAddress",
  1051. "outputs": [],
  1052. "stateMutability": "nonpayable",
  1053. "type": "function"
  1054. },
  1055. {
  1056. "inputs": [
  1057. {
  1058. "internalType": "uint256",
  1059. "name": "_poolId",
  1060. "type": "uint256"
  1061. },
  1062. {
  1063. "internalType": "address",
  1064. "name": "_priceFeedAddress",
  1065. "type": "address"
  1066. }
  1067. ],
  1068. "name": "setTokenPriceFeed",
  1069. "outputs": [],
  1070. "stateMutability": "nonpayable",
  1071. "type": "function"
  1072. },
  1073. {
  1074. "inputs": [
  1075. {
  1076. "internalType": "uint16",
  1077. "name": "_srcChainId",
  1078. "type": "uint16"
  1079. },
  1080. {
  1081. "internalType": "bytes",
  1082. "name": "_path",
  1083. "type": "bytes"
  1084. }
  1085. ],
  1086. "name": "setTrustedRemote",
  1087. "outputs": [],
  1088. "stateMutability": "nonpayable",
  1089. "type": "function"
  1090. },
  1091. {
  1092. "inputs": [
  1093. {
  1094. "internalType": "uint256",
  1095. "name": "_poolId1",
  1096. "type": "uint256"
  1097. },
  1098. {
  1099. "internalType": "uint256",
  1100. "name": "_poolId2",
  1101. "type": "uint256"
  1102. }
  1103. ],
  1104. "name": "shouldCallUpdateTokenPrices",
  1105. "outputs": [
  1106. {
  1107. "internalType": "bool",
  1108. "name": "",
  1109. "type": "bool"
  1110. }
  1111. ],
  1112. "stateMutability": "view",
  1113. "type": "function"
  1114. },
  1115. {
  1116. "inputs": [
  1117. {
  1118. "internalType": "uint256",
  1119. "name": "",
  1120. "type": "uint256"
  1121. }
  1122. ],
  1123. "name": "stargatePoolIdToLPStaking",
  1124. "outputs": [
  1125. {
  1126. "internalType": "address",
  1127. "name": "",
  1128. "type": "address"
  1129. }
  1130. ],
  1131. "stateMutability": "view",
  1132. "type": "function"
  1133. },
  1134. {
  1135. "inputs": [
  1136. {
  1137. "internalType": "address",
  1138. "name": "newOwner",
  1139. "type": "address"
  1140. }
  1141. ],
  1142. "name": "transferOwnership",
  1143. "outputs": [],
  1144. "stateMutability": "nonpayable",
  1145. "type": "function"
  1146. },
  1147. {
  1148. "inputs": [
  1149. {
  1150. "internalType": "uint16",
  1151. "name": "",
  1152. "type": "uint16"
  1153. }
  1154. ],
  1155. "name": "trustedRemoteLookup",
  1156. "outputs": [
  1157. {
  1158. "internalType": "bytes",
  1159. "name": "",
  1160. "type": "bytes"
  1161. }
  1162. ],
  1163. "stateMutability": "view",
  1164. "type": "function"
  1165. },
  1166. {
  1167. "inputs": [
  1168. {
  1169. "internalType": "uint256",
  1170. "name": "_poolId1",
  1171. "type": "uint256"
  1172. },
  1173. {
  1174. "internalType": "uint256",
  1175. "name": "_poolId2",
  1176. "type": "uint256"
  1177. }
  1178. ],
  1179. "name": "updateTokenPrices",
  1180. "outputs": [],
  1181. "stateMutability": "payable",
  1182. "type": "function"
  1183. },
  1184. {
  1185. "inputs": [
  1186. {
  1187. "internalType": "address",
  1188. "name": "_from",
  1189. "type": "address"
  1190. },
  1191. {
  1192. "internalType": "bool",
  1193. "name": "_whiteListed",
  1194. "type": "bool"
  1195. }
  1196. ],
  1197. "name": "whiteList",
  1198. "outputs": [],
  1199. "stateMutability": "nonpayable",
  1200. "type": "function"
  1201. },
  1202. {
  1203. "inputs": [
  1204. {
  1205. "internalType": "address",
  1206. "name": "",
  1207. "type": "address"
  1208. }
  1209. ],
  1210. "name": "whitelist",
  1211. "outputs": [
  1212. {
  1213. "internalType": "bool",
  1214. "name": "",
  1215. "type": "bool"
  1216. }
  1217. ],
  1218. "stateMutability": "view",
  1219. "type": "function"
  1220. },
  1221. {
  1222. "stateMutability": "payable",
  1223. "type": "receive"
  1224. }
  1225. ]