ERC20ABI.ts 26 KB

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