Guest User

idl-new

a guest
Mar 17th, 2025
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 52.56 KB | None | 0 0
  1. {
  2. "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P",
  3. "metadata": {
  4. "name": "pump",
  5. "version": "0.1.0",
  6. "spec": "0.1.0",
  7. "description": "Created with Anchor"
  8. },
  9. "instructions": [
  10. {
  11. "name": "buy",
  12. "docs": [
  13. "Buys tokens from a bonding curve."
  14. ],
  15. "discriminator": [
  16. 102,
  17. 6,
  18. 61,
  19. 18,
  20. 1,
  21. 218,
  22. 235,
  23. 234
  24. ],
  25. "accounts": [
  26. {
  27. "name": "global",
  28. "pda": {
  29. "seeds": [
  30. {
  31. "kind": "const",
  32. "value": [
  33. 103,
  34. 108,
  35. 111,
  36. 98,
  37. 97,
  38. 108
  39. ]
  40. }
  41. ]
  42. }
  43. },
  44. {
  45. "name": "fee_recipient",
  46. "writable": true
  47. },
  48. {
  49. "name": "mint"
  50. },
  51. {
  52. "name": "bonding_curve",
  53. "writable": true,
  54. "pda": {
  55. "seeds": [
  56. {
  57. "kind": "const",
  58. "value": [
  59. 98,
  60. 111,
  61. 110,
  62. 100,
  63. 105,
  64. 110,
  65. 103,
  66. 45,
  67. 99,
  68. 117,
  69. 114,
  70. 118,
  71. 101
  72. ]
  73. },
  74. {
  75. "kind": "account",
  76. "path": "mint"
  77. }
  78. ]
  79. }
  80. },
  81. {
  82. "name": "associated_bonding_curve",
  83. "writable": true,
  84. "pda": {
  85. "seeds": [
  86. {
  87. "kind": "account",
  88. "path": "bonding_curve"
  89. },
  90. {
  91. "kind": "const",
  92. "value": [
  93. 6,
  94. 221,
  95. 246,
  96. 225,
  97. 215,
  98. 101,
  99. 161,
  100. 147,
  101. 217,
  102. 203,
  103. 225,
  104. 70,
  105. 206,
  106. 235,
  107. 121,
  108. 172,
  109. 28,
  110. 180,
  111. 133,
  112. 237,
  113. 95,
  114. 91,
  115. 55,
  116. 145,
  117. 58,
  118. 140,
  119. 245,
  120. 133,
  121. 126,
  122. 255,
  123. 0,
  124. 169
  125. ]
  126. },
  127. {
  128. "kind": "account",
  129. "path": "mint"
  130. }
  131. ],
  132. "program": {
  133. "kind": "const",
  134. "value": [
  135. 140,
  136. 151,
  137. 37,
  138. 143,
  139. 78,
  140. 36,
  141. 137,
  142. 241,
  143. 187,
  144. 61,
  145. 16,
  146. 41,
  147. 20,
  148. 142,
  149. 13,
  150. 131,
  151. 11,
  152. 90,
  153. 19,
  154. 153,
  155. 218,
  156. 255,
  157. 16,
  158. 132,
  159. 4,
  160. 142,
  161. 123,
  162. 216,
  163. 219,
  164. 233,
  165. 248,
  166. 89
  167. ]
  168. }
  169. }
  170. },
  171. {
  172. "name": "associated_user",
  173. "writable": true
  174. },
  175. {
  176. "name": "user",
  177. "writable": true,
  178. "signer": true
  179. },
  180. {
  181. "name": "system_program",
  182. "address": "11111111111111111111111111111111"
  183. },
  184. {
  185. "name": "token_program",
  186. "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
  187. },
  188. {
  189. "name": "rent",
  190. "docs": [
  191. "Unused"
  192. ],
  193. "address": "SysvarRent111111111111111111111111111111111"
  194. },
  195. {
  196. "name": "event_authority",
  197. "pda": {
  198. "seeds": [
  199. {
  200. "kind": "const",
  201. "value": [
  202. 95,
  203. 95,
  204. 101,
  205. 118,
  206. 101,
  207. 110,
  208. 116,
  209. 95,
  210. 97,
  211. 117,
  212. 116,
  213. 104,
  214. 111,
  215. 114,
  216. 105,
  217. 116,
  218. 121
  219. ]
  220. }
  221. ]
  222. }
  223. },
  224. {
  225. "name": "program"
  226. }
  227. ],
  228. "args": [
  229. {
  230. "name": "amount",
  231. "type": "u64"
  232. },
  233. {
  234. "name": "max_sol_cost",
  235. "type": "u64"
  236. }
  237. ]
  238. },
  239. {
  240. "name": "create",
  241. "docs": [
  242. "Creates a new coin and bonding curve."
  243. ],
  244. "discriminator": [
  245. 24,
  246. 30,
  247. 200,
  248. 40,
  249. 5,
  250. 28,
  251. 7,
  252. 119
  253. ],
  254. "accounts": [
  255. {
  256. "name": "mint",
  257. "writable": true,
  258. "signer": true
  259. },
  260. {
  261. "name": "mint_authority",
  262. "pda": {
  263. "seeds": [
  264. {
  265. "kind": "const",
  266. "value": [
  267. 109,
  268. 105,
  269. 110,
  270. 116,
  271. 45,
  272. 97,
  273. 117,
  274. 116,
  275. 104,
  276. 111,
  277. 114,
  278. 105,
  279. 116,
  280. 121
  281. ]
  282. }
  283. ]
  284. }
  285. },
  286. {
  287. "name": "bonding_curve",
  288. "writable": true,
  289. "pda": {
  290. "seeds": [
  291. {
  292. "kind": "const",
  293. "value": [
  294. 98,
  295. 111,
  296. 110,
  297. 100,
  298. 105,
  299. 110,
  300. 103,
  301. 45,
  302. 99,
  303. 117,
  304. 114,
  305. 118,
  306. 101
  307. ]
  308. },
  309. {
  310. "kind": "account",
  311. "path": "mint"
  312. }
  313. ]
  314. }
  315. },
  316. {
  317. "name": "associated_bonding_curve",
  318. "writable": true,
  319. "pda": {
  320. "seeds": [
  321. {
  322. "kind": "account",
  323. "path": "bonding_curve"
  324. },
  325. {
  326. "kind": "const",
  327. "value": [
  328. 6,
  329. 221,
  330. 246,
  331. 225,
  332. 215,
  333. 101,
  334. 161,
  335. 147,
  336. 217,
  337. 203,
  338. 225,
  339. 70,
  340. 206,
  341. 235,
  342. 121,
  343. 172,
  344. 28,
  345. 180,
  346. 133,
  347. 237,
  348. 95,
  349. 91,
  350. 55,
  351. 145,
  352. 58,
  353. 140,
  354. 245,
  355. 133,
  356. 126,
  357. 255,
  358. 0,
  359. 169
  360. ]
  361. },
  362. {
  363. "kind": "account",
  364. "path": "mint"
  365. }
  366. ],
  367. "program": {
  368. "kind": "const",
  369. "value": [
  370. 140,
  371. 151,
  372. 37,
  373. 143,
  374. 78,
  375. 36,
  376. 137,
  377. 241,
  378. 187,
  379. 61,
  380. 16,
  381. 41,
  382. 20,
  383. 142,
  384. 13,
  385. 131,
  386. 11,
  387. 90,
  388. 19,
  389. 153,
  390. 218,
  391. 255,
  392. 16,
  393. 132,
  394. 4,
  395. 142,
  396. 123,
  397. 216,
  398. 219,
  399. 233,
  400. 248,
  401. 89
  402. ]
  403. }
  404. }
  405. },
  406. {
  407. "name": "global",
  408. "pda": {
  409. "seeds": [
  410. {
  411. "kind": "const",
  412. "value": [
  413. 103,
  414. 108,
  415. 111,
  416. 98,
  417. 97,
  418. 108
  419. ]
  420. }
  421. ]
  422. }
  423. },
  424. {
  425. "name": "mpl_token_metadata",
  426. "address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
  427. },
  428. {
  429. "name": "metadata",
  430. "writable": true,
  431. "pda": {
  432. "seeds": [
  433. {
  434. "kind": "const",
  435. "value": [
  436. 109,
  437. 101,
  438. 116,
  439. 97,
  440. 100,
  441. 97,
  442. 116,
  443. 97
  444. ]
  445. },
  446. {
  447. "kind": "const",
  448. "value": [
  449. 11,
  450. 112,
  451. 101,
  452. 177,
  453. 227,
  454. 209,
  455. 124,
  456. 69,
  457. 56,
  458. 157,
  459. 82,
  460. 127,
  461. 107,
  462. 4,
  463. 195,
  464. 205,
  465. 88,
  466. 184,
  467. 108,
  468. 115,
  469. 26,
  470. 160,
  471. 253,
  472. 181,
  473. 73,
  474. 182,
  475. 209,
  476. 188,
  477. 3,
  478. 248,
  479. 41,
  480. 70
  481. ]
  482. },
  483. {
  484. "kind": "account",
  485. "path": "mint"
  486. }
  487. ],
  488. "program": {
  489. "kind": "const",
  490. "value": [
  491. 11,
  492. 112,
  493. 101,
  494. 177,
  495. 227,
  496. 209,
  497. 124,
  498. 69,
  499. 56,
  500. 157,
  501. 82,
  502. 127,
  503. 107,
  504. 4,
  505. 195,
  506. 205,
  507. 88,
  508. 184,
  509. 108,
  510. 115,
  511. 26,
  512. 160,
  513. 253,
  514. 181,
  515. 73,
  516. 182,
  517. 209,
  518. 188,
  519. 3,
  520. 248,
  521. 41,
  522. 70
  523. ]
  524. }
  525. }
  526. },
  527. {
  528. "name": "user",
  529. "writable": true,
  530. "signer": true
  531. },
  532. {
  533. "name": "system_program",
  534. "address": "11111111111111111111111111111111"
  535. },
  536. {
  537. "name": "token_program",
  538. "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
  539. },
  540. {
  541. "name": "associated_token_program",
  542. "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
  543. },
  544. {
  545. "name": "rent",
  546. "address": "SysvarRent111111111111111111111111111111111"
  547. },
  548. {
  549. "name": "event_authority",
  550. "pda": {
  551. "seeds": [
  552. {
  553. "kind": "const",
  554. "value": [
  555. 95,
  556. 95,
  557. 101,
  558. 118,
  559. 101,
  560. 110,
  561. 116,
  562. 95,
  563. 97,
  564. 117,
  565. 116,
  566. 104,
  567. 111,
  568. 114,
  569. 105,
  570. 116,
  571. 121
  572. ]
  573. }
  574. ]
  575. }
  576. },
  577. {
  578. "name": "program"
  579. }
  580. ],
  581. "args": [
  582. {
  583. "name": "name",
  584. "type": "string"
  585. },
  586. {
  587. "name": "symbol",
  588. "type": "string"
  589. },
  590. {
  591. "name": "uri",
  592. "type": "string"
  593. },
  594. {
  595. "name": "creator",
  596. "type": "pubkey"
  597. }
  598. ]
  599. },
  600. {
  601. "name": "extend_account",
  602. "docs": [
  603. "Extends the size of program-owned accounts"
  604. ],
  605. "discriminator": [
  606. 234,
  607. 102,
  608. 194,
  609. 203,
  610. 150,
  611. 72,
  612. 62,
  613. 229
  614. ],
  615. "accounts": [
  616. {
  617. "name": "account",
  618. "writable": true
  619. },
  620. {
  621. "name": "user",
  622. "signer": true
  623. },
  624. {
  625. "name": "system_program",
  626. "address": "11111111111111111111111111111111"
  627. },
  628. {
  629. "name": "event_authority",
  630. "pda": {
  631. "seeds": [
  632. {
  633. "kind": "const",
  634. "value": [
  635. 95,
  636. 95,
  637. 101,
  638. 118,
  639. 101,
  640. 110,
  641. 116,
  642. 95,
  643. 97,
  644. 117,
  645. 116,
  646. 104,
  647. 111,
  648. 114,
  649. 105,
  650. 116,
  651. 121
  652. ]
  653. }
  654. ]
  655. }
  656. },
  657. {
  658. "name": "program"
  659. }
  660. ],
  661. "args": []
  662. },
  663. {
  664. "name": "initialize",
  665. "docs": [
  666. "Creates the global state."
  667. ],
  668. "discriminator": [
  669. 175,
  670. 175,
  671. 109,
  672. 31,
  673. 13,
  674. 152,
  675. 155,
  676. 237
  677. ],
  678. "accounts": [
  679. {
  680. "name": "global",
  681. "writable": true,
  682. "pda": {
  683. "seeds": [
  684. {
  685. "kind": "const",
  686. "value": [
  687. 103,
  688. 108,
  689. 111,
  690. 98,
  691. 97,
  692. 108
  693. ]
  694. }
  695. ]
  696. }
  697. },
  698. {
  699. "name": "user",
  700. "writable": true,
  701. "signer": true
  702. },
  703. {
  704. "name": "system_program",
  705. "address": "11111111111111111111111111111111"
  706. }
  707. ],
  708. "args": []
  709. },
  710. {
  711. "name": "migrate",
  712. "docs": [
  713. "Migrates liquidity to pump_amm if bonding curve is complete"
  714. ],
  715. "discriminator": [
  716. 155,
  717. 234,
  718. 231,
  719. 146,
  720. 236,
  721. 158,
  722. 162,
  723. 30
  724. ],
  725. "accounts": [
  726. {
  727. "name": "global",
  728. "pda": {
  729. "seeds": [
  730. {
  731. "kind": "const",
  732. "value": [
  733. 103,
  734. 108,
  735. 111,
  736. 98,
  737. 97,
  738. 108
  739. ]
  740. }
  741. ]
  742. }
  743. },
  744. {
  745. "name": "withdraw_authority",
  746. "writable": true,
  747. "relations": [
  748. "global"
  749. ]
  750. },
  751. {
  752. "name": "mint"
  753. },
  754. {
  755. "name": "bonding_curve",
  756. "writable": true,
  757. "pda": {
  758. "seeds": [
  759. {
  760. "kind": "const",
  761. "value": [
  762. 98,
  763. 111,
  764. 110,
  765. 100,
  766. 105,
  767. 110,
  768. 103,
  769. 45,
  770. 99,
  771. 117,
  772. 114,
  773. 118,
  774. 101
  775. ]
  776. },
  777. {
  778. "kind": "account",
  779. "path": "mint"
  780. }
  781. ]
  782. }
  783. },
  784. {
  785. "name": "associated_bonding_curve",
  786. "writable": true,
  787. "pda": {
  788. "seeds": [
  789. {
  790. "kind": "account",
  791. "path": "bonding_curve"
  792. },
  793. {
  794. "kind": "const",
  795. "value": [
  796. 6,
  797. 221,
  798. 246,
  799. 225,
  800. 215,
  801. 101,
  802. 161,
  803. 147,
  804. 217,
  805. 203,
  806. 225,
  807. 70,
  808. 206,
  809. 235,
  810. 121,
  811. 172,
  812. 28,
  813. 180,
  814. 133,
  815. 237,
  816. 95,
  817. 91,
  818. 55,
  819. 145,
  820. 58,
  821. 140,
  822. 245,
  823. 133,
  824. 126,
  825. 255,
  826. 0,
  827. 169
  828. ]
  829. },
  830. {
  831. "kind": "account",
  832. "path": "mint"
  833. }
  834. ],
  835. "program": {
  836. "kind": "const",
  837. "value": [
  838. 140,
  839. 151,
  840. 37,
  841. 143,
  842. 78,
  843. 36,
  844. 137,
  845. 241,
  846. 187,
  847. 61,
  848. 16,
  849. 41,
  850. 20,
  851. 142,
  852. 13,
  853. 131,
  854. 11,
  855. 90,
  856. 19,
  857. 153,
  858. 218,
  859. 255,
  860. 16,
  861. 132,
  862. 4,
  863. 142,
  864. 123,
  865. 216,
  866. 219,
  867. 233,
  868. 248,
  869. 89
  870. ]
  871. }
  872. }
  873. },
  874. {
  875. "name": "user",
  876. "signer": true
  877. },
  878. {
  879. "name": "system_program",
  880. "address": "11111111111111111111111111111111"
  881. },
  882. {
  883. "name": "token_program",
  884. "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
  885. },
  886. {
  887. "name": "metadata_account",
  888. "pda": {
  889. "seeds": [
  890. {
  891. "kind": "const",
  892. "value": [
  893. 109,
  894. 101,
  895. 116,
  896. 97,
  897. 100,
  898. 97,
  899. 116,
  900. 97
  901. ]
  902. },
  903. {
  904. "kind": "const",
  905. "value": [
  906. 11,
  907. 112,
  908. 101,
  909. 177,
  910. 227,
  911. 209,
  912. 124,
  913. 69,
  914. 56,
  915. 157,
  916. 82,
  917. 127,
  918. 107,
  919. 4,
  920. 195,
  921. 205,
  922. 88,
  923. 184,
  924. 108,
  925. 115,
  926. 26,
  927. 160,
  928. 253,
  929. 181,
  930. 73,
  931. 182,
  932. 209,
  933. 188,
  934. 3,
  935. 248,
  936. 41,
  937. 70
  938. ]
  939. },
  940. {
  941. "kind": "account",
  942. "path": "mint"
  943. }
  944. ],
  945. "program": {
  946. "kind": "const",
  947. "value": [
  948. 11,
  949. 112,
  950. 101,
  951. 177,
  952. 227,
  953. 209,
  954. 124,
  955. 69,
  956. 56,
  957. 157,
  958. 82,
  959. 127,
  960. 107,
  961. 4,
  962. 195,
  963. 205,
  964. 88,
  965. 184,
  966. 108,
  967. 115,
  968. 26,
  969. 160,
  970. 253,
  971. 181,
  972. 73,
  973. 182,
  974. 209,
  975. 188,
  976. 3,
  977. 248,
  978. 41,
  979. 70
  980. ]
  981. }
  982. }
  983. },
  984. {
  985. "name": "creator",
  986. "docs": [
  987. "metadata account creators only if creators is not None"
  988. ],
  989. "writable": true
  990. },
  991. {
  992. "name": "pump_amm",
  993. "address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"
  994. },
  995. {
  996. "name": "pool",
  997. "writable": true
  998. },
  999. {
  1000. "name": "pool_authority",
  1001. "writable": true,
  1002. "pda": {
  1003. "seeds": [
  1004. {
  1005. "kind": "const",
  1006. "value": [
  1007. 112,
  1008. 111,
  1009. 111,
  1010. 108,
  1011. 45,
  1012. 97,
  1013. 117,
  1014. 116,
  1015. 104,
  1016. 111,
  1017. 114,
  1018. 105,
  1019. 116,
  1020. 121
  1021. ]
  1022. },
  1023. {
  1024. "kind": "account",
  1025. "path": "mint"
  1026. }
  1027. ]
  1028. }
  1029. },
  1030. {
  1031. "name": "pool_authority_mint_account",
  1032. "writable": true
  1033. },
  1034. {
  1035. "name": "pool_authority_wsol_account",
  1036. "writable": true
  1037. },
  1038. {
  1039. "name": "amm_global_config"
  1040. },
  1041. {
  1042. "name": "wsol_mint",
  1043. "address": "So11111111111111111111111111111111111111112"
  1044. },
  1045. {
  1046. "name": "lp_mint",
  1047. "writable": true
  1048. },
  1049. {
  1050. "name": "user_pool_token_account",
  1051. "writable": true
  1052. },
  1053. {
  1054. "name": "pool_base_token_account",
  1055. "writable": true
  1056. },
  1057. {
  1058. "name": "pool_quote_token_account",
  1059. "writable": true
  1060. },
  1061. {
  1062. "name": "token_2022_program",
  1063. "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
  1064. },
  1065. {
  1066. "name": "associated_token_program",
  1067. "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
  1068. },
  1069. {
  1070. "name": "pump_amm_event_authority"
  1071. },
  1072. {
  1073. "name": "event_authority",
  1074. "pda": {
  1075. "seeds": [
  1076. {
  1077. "kind": "const",
  1078. "value": [
  1079. 95,
  1080. 95,
  1081. 101,
  1082. 118,
  1083. 101,
  1084. 110,
  1085. 116,
  1086. 95,
  1087. 97,
  1088. 117,
  1089. 116,
  1090. 104,
  1091. 111,
  1092. 114,
  1093. 105,
  1094. 116,
  1095. 121
  1096. ]
  1097. }
  1098. ]
  1099. }
  1100. },
  1101. {
  1102. "name": "program"
  1103. }
  1104. ],
  1105. "args": []
  1106. },
  1107. {
  1108. "name": "sell",
  1109. "docs": [
  1110. "Sells tokens into a bonding curve."
  1111. ],
  1112. "discriminator": [
  1113. 51,
  1114. 230,
  1115. 133,
  1116. 164,
  1117. 1,
  1118. 127,
  1119. 131,
  1120. 173
  1121. ],
  1122. "accounts": [
  1123. {
  1124. "name": "global",
  1125. "pda": {
  1126. "seeds": [
  1127. {
  1128. "kind": "const",
  1129. "value": [
  1130. 103,
  1131. 108,
  1132. 111,
  1133. 98,
  1134. 97,
  1135. 108
  1136. ]
  1137. }
  1138. ]
  1139. }
  1140. },
  1141. {
  1142. "name": "fee_recipient",
  1143. "writable": true
  1144. },
  1145. {
  1146. "name": "mint"
  1147. },
  1148. {
  1149. "name": "bonding_curve",
  1150. "writable": true,
  1151. "pda": {
  1152. "seeds": [
  1153. {
  1154. "kind": "const",
  1155. "value": [
  1156. 98,
  1157. 111,
  1158. 110,
  1159. 100,
  1160. 105,
  1161. 110,
  1162. 103,
  1163. 45,
  1164. 99,
  1165. 117,
  1166. 114,
  1167. 118,
  1168. 101
  1169. ]
  1170. },
  1171. {
  1172. "kind": "account",
  1173. "path": "mint"
  1174. }
  1175. ]
  1176. }
  1177. },
  1178. {
  1179. "name": "associated_bonding_curve",
  1180. "writable": true,
  1181. "pda": {
  1182. "seeds": [
  1183. {
  1184. "kind": "account",
  1185. "path": "bonding_curve"
  1186. },
  1187. {
  1188. "kind": "const",
  1189. "value": [
  1190. 6,
  1191. 221,
  1192. 246,
  1193. 225,
  1194. 215,
  1195. 101,
  1196. 161,
  1197. 147,
  1198. 217,
  1199. 203,
  1200. 225,
  1201. 70,
  1202. 206,
  1203. 235,
  1204. 121,
  1205. 172,
  1206. 28,
  1207. 180,
  1208. 133,
  1209. 237,
  1210. 95,
  1211. 91,
  1212. 55,
  1213. 145,
  1214. 58,
  1215. 140,
  1216. 245,
  1217. 133,
  1218. 126,
  1219. 255,
  1220. 0,
  1221. 169
  1222. ]
  1223. },
  1224. {
  1225. "kind": "account",
  1226. "path": "mint"
  1227. }
  1228. ],
  1229. "program": {
  1230. "kind": "const",
  1231. "value": [
  1232. 140,
  1233. 151,
  1234. 37,
  1235. 143,
  1236. 78,
  1237. 36,
  1238. 137,
  1239. 241,
  1240. 187,
  1241. 61,
  1242. 16,
  1243. 41,
  1244. 20,
  1245. 142,
  1246. 13,
  1247. 131,
  1248. 11,
  1249. 90,
  1250. 19,
  1251. 153,
  1252. 218,
  1253. 255,
  1254. 16,
  1255. 132,
  1256. 4,
  1257. 142,
  1258. 123,
  1259. 216,
  1260. 219,
  1261. 233,
  1262. 248,
  1263. 89
  1264. ]
  1265. }
  1266. }
  1267. },
  1268. {
  1269. "name": "associated_user",
  1270. "writable": true
  1271. },
  1272. {
  1273. "name": "user",
  1274. "writable": true,
  1275. "signer": true
  1276. },
  1277. {
  1278. "name": "system_program",
  1279. "address": "11111111111111111111111111111111"
  1280. },
  1281. {
  1282. "name": "associated_token_program",
  1283. "docs": [
  1284. "Unused"
  1285. ],
  1286. "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
  1287. },
  1288. {
  1289. "name": "token_program",
  1290. "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
  1291. },
  1292. {
  1293. "name": "event_authority",
  1294. "pda": {
  1295. "seeds": [
  1296. {
  1297. "kind": "const",
  1298. "value": [
  1299. 95,
  1300. 95,
  1301. 101,
  1302. 118,
  1303. 101,
  1304. 110,
  1305. 116,
  1306. 95,
  1307. 97,
  1308. 117,
  1309. 116,
  1310. 104,
  1311. 111,
  1312. 114,
  1313. 105,
  1314. 116,
  1315. 121
  1316. ]
  1317. }
  1318. ]
  1319. }
  1320. },
  1321. {
  1322. "name": "program"
  1323. }
  1324. ],
  1325. "args": [
  1326. {
  1327. "name": "amount",
  1328. "type": "u64"
  1329. },
  1330. {
  1331. "name": "min_sol_output",
  1332. "type": "u64"
  1333. }
  1334. ]
  1335. },
  1336. {
  1337. "name": "set_params",
  1338. "docs": [
  1339. "Sets the global state parameters."
  1340. ],
  1341. "discriminator": [
  1342. 27,
  1343. 234,
  1344. 178,
  1345. 52,
  1346. 147,
  1347. 2,
  1348. 187,
  1349. 141
  1350. ],
  1351. "accounts": [
  1352. {
  1353. "name": "global",
  1354. "writable": true,
  1355. "pda": {
  1356. "seeds": [
  1357. {
  1358. "kind": "const",
  1359. "value": [
  1360. 103,
  1361. 108,
  1362. 111,
  1363. 98,
  1364. 97,
  1365. 108
  1366. ]
  1367. }
  1368. ]
  1369. }
  1370. },
  1371. {
  1372. "name": "authority",
  1373. "writable": true,
  1374. "signer": true,
  1375. "relations": [
  1376. "global"
  1377. ]
  1378. },
  1379. {
  1380. "name": "event_authority",
  1381. "pda": {
  1382. "seeds": [
  1383. {
  1384. "kind": "const",
  1385. "value": [
  1386. 95,
  1387. 95,
  1388. 101,
  1389. 118,
  1390. 101,
  1391. 110,
  1392. 116,
  1393. 95,
  1394. 97,
  1395. 117,
  1396. 116,
  1397. 104,
  1398. 111,
  1399. 114,
  1400. 105,
  1401. 116,
  1402. 121
  1403. ]
  1404. }
  1405. ]
  1406. }
  1407. },
  1408. {
  1409. "name": "program"
  1410. }
  1411. ],
  1412. "args": [
  1413. {
  1414. "name": "initial_virtual_token_reserves",
  1415. "type": "u64"
  1416. },
  1417. {
  1418. "name": "initial_virtual_sol_reserves",
  1419. "type": "u64"
  1420. },
  1421. {
  1422. "name": "initial_real_token_reserves",
  1423. "type": "u64"
  1424. },
  1425. {
  1426. "name": "token_total_supply",
  1427. "type": "u64"
  1428. },
  1429. {
  1430. "name": "fee_basis_points",
  1431. "type": "u64"
  1432. },
  1433. {
  1434. "name": "withdraw_authority",
  1435. "type": "pubkey"
  1436. },
  1437. {
  1438. "name": "enable_migrate",
  1439. "type": "bool"
  1440. },
  1441. {
  1442. "name": "pool_migration_fee",
  1443. "type": "u64"
  1444. },
  1445. {
  1446. "name": "creator_fee",
  1447. "type": "u64"
  1448. }
  1449. ]
  1450. },
  1451. {
  1452. "name": "update_global_authority",
  1453. "discriminator": [
  1454. 227,
  1455. 181,
  1456. 74,
  1457. 196,
  1458. 208,
  1459. 21,
  1460. 97,
  1461. 213
  1462. ],
  1463. "accounts": [
  1464. {
  1465. "name": "global",
  1466. "writable": true,
  1467. "pda": {
  1468. "seeds": [
  1469. {
  1470. "kind": "const",
  1471. "value": [
  1472. 103,
  1473. 108,
  1474. 111,
  1475. 98,
  1476. 97,
  1477. 108
  1478. ]
  1479. }
  1480. ]
  1481. }
  1482. },
  1483. {
  1484. "name": "authority",
  1485. "signer": true,
  1486. "relations": [
  1487. "global"
  1488. ]
  1489. },
  1490. {
  1491. "name": "new_authority",
  1492. "signer": true
  1493. },
  1494. {
  1495. "name": "event_authority",
  1496. "pda": {
  1497. "seeds": [
  1498. {
  1499. "kind": "const",
  1500. "value": [
  1501. 95,
  1502. 95,
  1503. 101,
  1504. 118,
  1505. 101,
  1506. 110,
  1507. 116,
  1508. 95,
  1509. 97,
  1510. 117,
  1511. 116,
  1512. 104,
  1513. 111,
  1514. 114,
  1515. 105,
  1516. 116,
  1517. 121
  1518. ]
  1519. }
  1520. ]
  1521. }
  1522. },
  1523. {
  1524. "name": "program"
  1525. }
  1526. ],
  1527. "args": []
  1528. },
  1529. {
  1530. "name": "withdraw",
  1531. "docs": [
  1532. "Allows the admin to withdraw liquidity for a migration once the bonding curve completes"
  1533. ],
  1534. "discriminator": [
  1535. 183,
  1536. 18,
  1537. 70,
  1538. 156,
  1539. 148,
  1540. 109,
  1541. 161,
  1542. 34
  1543. ],
  1544. "accounts": [
  1545. {
  1546. "name": "global",
  1547. "pda": {
  1548. "seeds": [
  1549. {
  1550. "kind": "const",
  1551. "value": [
  1552. 103,
  1553. 108,
  1554. 111,
  1555. 98,
  1556. 97,
  1557. 108
  1558. ]
  1559. }
  1560. ]
  1561. }
  1562. },
  1563. {
  1564. "name": "last_withdraw",
  1565. "writable": true,
  1566. "pda": {
  1567. "seeds": [
  1568. {
  1569. "kind": "const",
  1570. "value": [
  1571. 108,
  1572. 97,
  1573. 115,
  1574. 116,
  1575. 45,
  1576. 119,
  1577. 105,
  1578. 116,
  1579. 104,
  1580. 100,
  1581. 114,
  1582. 97,
  1583. 119
  1584. ]
  1585. }
  1586. ]
  1587. }
  1588. },
  1589. {
  1590. "name": "mint"
  1591. },
  1592. {
  1593. "name": "bonding_curve",
  1594. "writable": true,
  1595. "pda": {
  1596. "seeds": [
  1597. {
  1598. "kind": "const",
  1599. "value": [
  1600. 98,
  1601. 111,
  1602. 110,
  1603. 100,
  1604. 105,
  1605. 110,
  1606. 103,
  1607. 45,
  1608. 99,
  1609. 117,
  1610. 114,
  1611. 118,
  1612. 101
  1613. ]
  1614. },
  1615. {
  1616. "kind": "account",
  1617. "path": "mint"
  1618. }
  1619. ]
  1620. }
  1621. },
  1622. {
  1623. "name": "associated_bonding_curve",
  1624. "writable": true,
  1625. "pda": {
  1626. "seeds": [
  1627. {
  1628. "kind": "account",
  1629. "path": "bonding_curve"
  1630. },
  1631. {
  1632. "kind": "const",
  1633. "value": [
  1634. 6,
  1635. 221,
  1636. 246,
  1637. 225,
  1638. 215,
  1639. 101,
  1640. 161,
  1641. 147,
  1642. 217,
  1643. 203,
  1644. 225,
  1645. 70,
  1646. 206,
  1647. 235,
  1648. 121,
  1649. 172,
  1650. 28,
  1651. 180,
  1652. 133,
  1653. 237,
  1654. 95,
  1655. 91,
  1656. 55,
  1657. 145,
  1658. 58,
  1659. 140,
  1660. 245,
  1661. 133,
  1662. 126,
  1663. 255,
  1664. 0,
  1665. 169
  1666. ]
  1667. },
  1668. {
  1669. "kind": "account",
  1670. "path": "mint"
  1671. }
  1672. ],
  1673. "program": {
  1674. "kind": "const",
  1675. "value": [
  1676. 140,
  1677. 151,
  1678. 37,
  1679. 143,
  1680. 78,
  1681. 36,
  1682. 137,
  1683. 241,
  1684. 187,
  1685. 61,
  1686. 16,
  1687. 41,
  1688. 20,
  1689. 142,
  1690. 13,
  1691. 131,
  1692. 11,
  1693. 90,
  1694. 19,
  1695. 153,
  1696. 218,
  1697. 255,
  1698. 16,
  1699. 132,
  1700. 4,
  1701. 142,
  1702. 123,
  1703. 216,
  1704. 219,
  1705. 233,
  1706. 248,
  1707. 89
  1708. ]
  1709. }
  1710. }
  1711. },
  1712. {
  1713. "name": "associated_user",
  1714. "writable": true
  1715. },
  1716. {
  1717. "name": "user",
  1718. "writable": true,
  1719. "signer": true
  1720. },
  1721. {
  1722. "name": "system_program",
  1723. "address": "11111111111111111111111111111111"
  1724. },
  1725. {
  1726. "name": "token_program",
  1727. "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
  1728. },
  1729. {
  1730. "name": "rent",
  1731. "docs": [
  1732. "Unused"
  1733. ],
  1734. "address": "SysvarRent111111111111111111111111111111111"
  1735. },
  1736. {
  1737. "name": "event_authority",
  1738. "pda": {
  1739. "seeds": [
  1740. {
  1741. "kind": "const",
  1742. "value": [
  1743. 95,
  1744. 95,
  1745. 101,
  1746. 118,
  1747. 101,
  1748. 110,
  1749. 116,
  1750. 95,
  1751. 97,
  1752. 117,
  1753. 116,
  1754. 104,
  1755. 111,
  1756. 114,
  1757. 105,
  1758. 116,
  1759. 121
  1760. ]
  1761. }
  1762. ]
  1763. }
  1764. },
  1765. {
  1766. "name": "program"
  1767. }
  1768. ],
  1769. "args": []
  1770. }
  1771. ],
  1772. "accounts": [
  1773. {
  1774. "name": "BondingCurve",
  1775. "discriminator": [
  1776. 23,
  1777. 183,
  1778. 248,
  1779. 55,
  1780. 96,
  1781. 216,
  1782. 172,
  1783. 96
  1784. ]
  1785. },
  1786. {
  1787. "name": "Global",
  1788. "discriminator": [
  1789. 167,
  1790. 232,
  1791. 232,
  1792. 177,
  1793. 200,
  1794. 108,
  1795. 114,
  1796. 127
  1797. ]
  1798. },
  1799. {
  1800. "name": "LastWithdraw",
  1801. "discriminator": [
  1802. 203,
  1803. 18,
  1804. 220,
  1805. 103,
  1806. 120,
  1807. 145,
  1808. 187,
  1809. 2
  1810. ]
  1811. }
  1812. ],
  1813. "events": [
  1814. {
  1815. "name": "CompleteEvent",
  1816. "discriminator": [
  1817. 95,
  1818. 114,
  1819. 97,
  1820. 156,
  1821. 212,
  1822. 46,
  1823. 152,
  1824. 8
  1825. ]
  1826. },
  1827. {
  1828. "name": "CompletePumpAmmMigrationEvent",
  1829. "discriminator": [
  1830. 189,
  1831. 233,
  1832. 93,
  1833. 185,
  1834. 92,
  1835. 148,
  1836. 234,
  1837. 148
  1838. ]
  1839. },
  1840. {
  1841. "name": "CreateEvent",
  1842. "discriminator": [
  1843. 27,
  1844. 114,
  1845. 169,
  1846. 77,
  1847. 222,
  1848. 235,
  1849. 99,
  1850. 118
  1851. ]
  1852. },
  1853. {
  1854. "name": "ExtendAccountEvent",
  1855. "discriminator": [
  1856. 97,
  1857. 97,
  1858. 215,
  1859. 144,
  1860. 93,
  1861. 146,
  1862. 22,
  1863. 124
  1864. ]
  1865. },
  1866. {
  1867. "name": "SetParamsEvent",
  1868. "discriminator": [
  1869. 223,
  1870. 195,
  1871. 159,
  1872. 246,
  1873. 62,
  1874. 48,
  1875. 143,
  1876. 131
  1877. ]
  1878. },
  1879. {
  1880. "name": "TradeEvent",
  1881. "discriminator": [
  1882. 189,
  1883. 219,
  1884. 127,
  1885. 211,
  1886. 78,
  1887. 230,
  1888. 97,
  1889. 238
  1890. ]
  1891. },
  1892. {
  1893. "name": "UpdateGlobalAuthorityEvent",
  1894. "discriminator": [
  1895. 182,
  1896. 195,
  1897. 137,
  1898. 42,
  1899. 35,
  1900. 206,
  1901. 207,
  1902. 247
  1903. ]
  1904. }
  1905. ],
  1906. "errors": [
  1907. {
  1908. "code": 6000,
  1909. "name": "NotAuthorized",
  1910. "msg": "The given account is not authorized to execute this instruction."
  1911. },
  1912. {
  1913. "code": 6001,
  1914. "name": "AlreadyInitialized",
  1915. "msg": "The program is already initialized."
  1916. },
  1917. {
  1918. "code": 6002,
  1919. "name": "TooMuchSolRequired",
  1920. "msg": "slippage: Too much SOL required to buy the given amount of tokens."
  1921. },
  1922. {
  1923. "code": 6003,
  1924. "name": "TooLittleSolReceived",
  1925. "msg": "slippage: Too little SOL received to sell the given amount of tokens."
  1926. },
  1927. {
  1928. "code": 6004,
  1929. "name": "MintDoesNotMatchBondingCurve",
  1930. "msg": "The mint does not match the bonding curve."
  1931. },
  1932. {
  1933. "code": 6005,
  1934. "name": "BondingCurveComplete",
  1935. "msg": "The bonding curve has completed and liquidity migrated to raydium."
  1936. },
  1937. {
  1938. "code": 6006,
  1939. "name": "BondingCurveNotComplete",
  1940. "msg": "The bonding curve has not completed."
  1941. },
  1942. {
  1943. "code": 6007,
  1944. "name": "NotInitialized",
  1945. "msg": "The program is not initialized."
  1946. },
  1947. {
  1948. "code": 6008,
  1949. "name": "WithdrawTooFrequent",
  1950. "msg": "Withdraw too frequent"
  1951. },
  1952. {
  1953. "code": 6009,
  1954. "name": "NewSizeShouldBeGreaterThanCurrentSize",
  1955. "msg": "new_size should be > current_size"
  1956. },
  1957. {
  1958. "code": 6010,
  1959. "name": "AccountTypeNotSupported",
  1960. "msg": "Account type not supported"
  1961. },
  1962. {
  1963. "code": 6011,
  1964. "name": "InitialRealTokenReservesShouldBeLessThanTokenTotalSupply",
  1965. "msg": "initial_real_token_reserves should be less than token_total_supply"
  1966. },
  1967. {
  1968. "code": 6012,
  1969. "name": "InitialVirtualTokenReservesShouldBeGreaterThanInitialRealTokenReserves",
  1970. "msg": "initial_virtual_token_reserves should be greater than initial_real_token_reserves"
  1971. },
  1972. {
  1973. "code": 6013,
  1974. "name": "FeeBasisPointsGreaterThanMaximum",
  1975. "msg": "fee_basis_points greater than maximum"
  1976. },
  1977. {
  1978. "code": 6014,
  1979. "name": "AllZerosWithdrawAuthority",
  1980. "msg": "Withdraw authority cannot be set to System Program ID"
  1981. },
  1982. {
  1983. "code": 6015,
  1984. "name": "PoolMigrationFeeShouldBeLessThanFinalRealSolReserves",
  1985. "msg": "pool_migration_fee should be less than final_real_sol_reserves"
  1986. },
  1987. {
  1988. "code": 6016,
  1989. "name": "PoolMigrationFeeShouldBeGreaterThanCreatorFeePlusMaxMigrateFees",
  1990. "msg": "pool_migration_fee should be greater than creator_fee + MAX_MIGRATE_FEES"
  1991. },
  1992. {
  1993. "code": 6017,
  1994. "name": "DisabledWithdraw",
  1995. "msg": "Migrate instruction is disabled"
  1996. },
  1997. {
  1998. "code": 6018,
  1999. "name": "DisabledMigrate",
  2000. "msg": "Migrate instruction is disabled"
  2001. },
  2002. {
  2003. "code": 6019,
  2004. "name": "InvalidCreator",
  2005. "msg": "Invalid creator pubkey"
  2006. },
  2007. {
  2008. "code": 6020,
  2009. "name": "BuyZeroAmount",
  2010. "msg": "Buy zero amount"
  2011. },
  2012. {
  2013. "code": 6021,
  2014. "name": "NotEnoughTokensToBuy",
  2015. "msg": "Not enough tokens to buy"
  2016. },
  2017. {
  2018. "code": 6022,
  2019. "name": "SellZeroAmount",
  2020. "msg": "Sell zero amount"
  2021. },
  2022. {
  2023. "code": 6023,
  2024. "name": "NotEnoughTokensToSell",
  2025. "msg": "Not enough tokens to sell"
  2026. },
  2027. {
  2028. "code": 6024,
  2029. "name": "Overflow",
  2030. "msg": "Overflow"
  2031. },
  2032. {
  2033. "code": 6025,
  2034. "name": "Truncation",
  2035. "msg": "Truncation"
  2036. },
  2037. {
  2038. "code": 6026,
  2039. "name": "DivisionByZero",
  2040. "msg": "Division by zero"
  2041. },
  2042. {
  2043. "code": 6027,
  2044. "name": "NotEnoughRemainingAccounts",
  2045. "msg": "Not enough remaining accounts"
  2046. },
  2047. {
  2048. "code": 6028,
  2049. "name": "AllFeeRecipientsShouldBeNonZero",
  2050. "msg": "All fee recipients should be non-zero"
  2051. },
  2052. {
  2053. "code": 6029,
  2054. "name": "UnsortedNotUniqueFeeRecipients",
  2055. "msg": "Unsorted or not unique fee recipients"
  2056. },
  2057. {
  2058. "code": 6030,
  2059. "name": "CreatorShouldNotBeZero",
  2060. "msg": "Creator should not be zero"
  2061. }
  2062. ],
  2063. "types": [
  2064. {
  2065. "name": "BondingCurve",
  2066. "type": {
  2067. "kind": "struct",
  2068. "fields": [
  2069. {
  2070. "name": "virtual_token_reserves",
  2071. "type": "u64"
  2072. },
  2073. {
  2074. "name": "virtual_sol_reserves",
  2075. "type": "u64"
  2076. },
  2077. {
  2078. "name": "real_token_reserves",
  2079. "type": "u64"
  2080. },
  2081. {
  2082. "name": "real_sol_reserves",
  2083. "type": "u64"
  2084. },
  2085. {
  2086. "name": "token_total_supply",
  2087. "type": "u64"
  2088. },
  2089. {
  2090. "name": "complete",
  2091. "type": "bool"
  2092. }
  2093. ]
  2094. }
  2095. },
  2096. {
  2097. "name": "CompleteEvent",
  2098. "type": {
  2099. "kind": "struct",
  2100. "fields": [
  2101. {
  2102. "name": "user",
  2103. "type": "pubkey"
  2104. },
  2105. {
  2106. "name": "mint",
  2107. "type": "pubkey"
  2108. },
  2109. {
  2110. "name": "bonding_curve",
  2111. "type": "pubkey"
  2112. },
  2113. {
  2114. "name": "timestamp",
  2115. "type": "i64"
  2116. }
  2117. ]
  2118. }
  2119. },
  2120. {
  2121. "name": "CompletePumpAmmMigrationEvent",
  2122. "type": {
  2123. "kind": "struct",
  2124. "fields": [
  2125. {
  2126. "name": "user",
  2127. "type": "pubkey"
  2128. },
  2129. {
  2130. "name": "mint",
  2131. "type": "pubkey"
  2132. },
  2133. {
  2134. "name": "creator",
  2135. "type": {
  2136. "option": "pubkey"
  2137. }
  2138. },
  2139. {
  2140. "name": "mint_amount",
  2141. "type": "u64"
  2142. },
  2143. {
  2144. "name": "sol_amount",
  2145. "type": "u64"
  2146. },
  2147. {
  2148. "name": "pool_migration_fee",
  2149. "type": "u64"
  2150. },
  2151. {
  2152. "name": "creator_fee",
  2153. "type": "u64"
  2154. },
  2155. {
  2156. "name": "bonding_curve",
  2157. "type": "pubkey"
  2158. },
  2159. {
  2160. "name": "timestamp",
  2161. "type": "i64"
  2162. },
  2163. {
  2164. "name": "pool",
  2165. "type": "pubkey"
  2166. }
  2167. ]
  2168. }
  2169. },
  2170. {
  2171. "name": "CreateEvent",
  2172. "type": {
  2173. "kind": "struct",
  2174. "fields": [
  2175. {
  2176. "name": "name",
  2177. "type": "string"
  2178. },
  2179. {
  2180. "name": "symbol",
  2181. "type": "string"
  2182. },
  2183. {
  2184. "name": "uri",
  2185. "type": "string"
  2186. },
  2187. {
  2188. "name": "mint",
  2189. "type": "pubkey"
  2190. },
  2191. {
  2192. "name": "bonding_curve",
  2193. "type": "pubkey"
  2194. },
  2195. {
  2196. "name": "user",
  2197. "type": "pubkey"
  2198. },
  2199. {
  2200. "name": "creator",
  2201. "type": "pubkey"
  2202. },
  2203. {
  2204. "name": "timestamp",
  2205. "type": "i64"
  2206. }
  2207. ]
  2208. }
  2209. },
  2210. {
  2211. "name": "ExtendAccountEvent",
  2212. "type": {
  2213. "kind": "struct",
  2214. "fields": [
  2215. {
  2216. "name": "account",
  2217. "type": "pubkey"
  2218. },
  2219. {
  2220. "name": "user",
  2221. "type": "pubkey"
  2222. },
  2223. {
  2224. "name": "current_size",
  2225. "type": "u64"
  2226. },
  2227. {
  2228. "name": "new_size",
  2229. "type": "u64"
  2230. },
  2231. {
  2232. "name": "timestamp",
  2233. "type": "i64"
  2234. }
  2235. ]
  2236. }
  2237. },
  2238. {
  2239. "name": "Global",
  2240. "type": {
  2241. "kind": "struct",
  2242. "fields": [
  2243. {
  2244. "name": "initialized",
  2245. "type": "bool"
  2246. },
  2247. {
  2248. "name": "authority",
  2249. "type": "pubkey"
  2250. },
  2251. {
  2252. "name": "fee_recipient",
  2253. "type": "pubkey"
  2254. },
  2255. {
  2256. "name": "initial_virtual_token_reserves",
  2257. "type": "u64"
  2258. },
  2259. {
  2260. "name": "initial_virtual_sol_reserves",
  2261. "type": "u64"
  2262. },
  2263. {
  2264. "name": "initial_real_token_reserves",
  2265. "type": "u64"
  2266. },
  2267. {
  2268. "name": "token_total_supply",
  2269. "type": "u64"
  2270. },
  2271. {
  2272. "name": "fee_basis_points",
  2273. "type": "u64"
  2274. },
  2275. {
  2276. "name": "withdraw_authority",
  2277. "type": "pubkey"
  2278. },
  2279. {
  2280. "name": "enable_migrate",
  2281. "type": "bool"
  2282. },
  2283. {
  2284. "name": "pool_migration_fee",
  2285. "type": "u64"
  2286. },
  2287. {
  2288. "name": "creator_fee",
  2289. "type": "u64"
  2290. },
  2291. {
  2292. "name": "fee_recipients",
  2293. "type": {
  2294. "array": [
  2295. "pubkey",
  2296. 7
  2297. ]
  2298. }
  2299. }
  2300. ]
  2301. }
  2302. },
  2303. {
  2304. "name": "LastWithdraw",
  2305. "type": {
  2306. "kind": "struct",
  2307. "fields": [
  2308. {
  2309. "name": "last_withdraw_timestamp",
  2310. "type": "i64"
  2311. }
  2312. ]
  2313. }
  2314. },
  2315. {
  2316. "name": "SetParamsEvent",
  2317. "type": {
  2318. "kind": "struct",
  2319. "fields": [
  2320. {
  2321. "name": "initial_virtual_token_reserves",
  2322. "type": "u64"
  2323. },
  2324. {
  2325. "name": "initial_virtual_sol_reserves",
  2326. "type": "u64"
  2327. },
  2328. {
  2329. "name": "initial_real_token_reserves",
  2330. "type": "u64"
  2331. },
  2332. {
  2333. "name": "final_real_sol_reserves",
  2334. "type": "u64"
  2335. },
  2336. {
  2337. "name": "token_total_supply",
  2338. "type": "u64"
  2339. },
  2340. {
  2341. "name": "fee_basis_points",
  2342. "type": "u64"
  2343. },
  2344. {
  2345. "name": "withdraw_authority",
  2346. "type": "pubkey"
  2347. },
  2348. {
  2349. "name": "enable_migrate",
  2350. "type": "bool"
  2351. },
  2352. {
  2353. "name": "pool_migration_fee",
  2354. "type": "u64"
  2355. },
  2356. {
  2357. "name": "creator_fee",
  2358. "type": "u64"
  2359. },
  2360. {
  2361. "name": "fee_recipients",
  2362. "type": {
  2363. "array": [
  2364. "pubkey",
  2365. 8
  2366. ]
  2367. }
  2368. },
  2369. {
  2370. "name": "timestamp",
  2371. "type": "i64"
  2372. }
  2373. ]
  2374. }
  2375. },
  2376. {
  2377. "name": "TradeEvent",
  2378. "type": {
  2379. "kind": "struct",
  2380. "fields": [
  2381. {
  2382. "name": "mint",
  2383. "type": "pubkey"
  2384. },
  2385. {
  2386. "name": "sol_amount",
  2387. "type": "u64"
  2388. },
  2389. {
  2390. "name": "token_amount",
  2391. "type": "u64"
  2392. },
  2393. {
  2394. "name": "is_buy",
  2395. "type": "bool"
  2396. },
  2397. {
  2398. "name": "user",
  2399. "type": "pubkey"
  2400. },
  2401. {
  2402. "name": "timestamp",
  2403. "type": "i64"
  2404. },
  2405. {
  2406. "name": "virtual_sol_reserves",
  2407. "type": "u64"
  2408. },
  2409. {
  2410. "name": "virtual_token_reserves",
  2411. "type": "u64"
  2412. },
  2413. {
  2414. "name": "real_sol_reserves",
  2415. "type": "u64"
  2416. },
  2417. {
  2418. "name": "real_token_reserves",
  2419. "type": "u64"
  2420. }
  2421. ]
  2422. }
  2423. },
  2424. {
  2425. "name": "UpdateGlobalAuthorityEvent",
  2426. "type": {
  2427. "kind": "struct",
  2428. "fields": [
  2429. {
  2430. "name": "global",
  2431. "type": "pubkey"
  2432. },
  2433. {
  2434. "name": "authority",
  2435. "type": "pubkey"
  2436. },
  2437. {
  2438. "name": "new_authority",
  2439. "type": "pubkey"
  2440. },
  2441. {
  2442. "name": "timestamp",
  2443. "type": "i64"
  2444. }
  2445. ]
  2446. }
  2447. }
  2448. ]
  2449. }
Advertisement
Add Comment
Please, Sign In to add comment