Router.json 27 KB

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