external.json 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  1. {
  2. "address": "Externa111111111111111111111111111111111111",
  3. "metadata": {
  4. "name": "external",
  5. "version": "0.1.0",
  6. "spec": "0.1.0",
  7. "description": "Created with Anchor"
  8. },
  9. "instructions": [
  10. {
  11. "name": "init",
  12. "discriminator": [
  13. 220,
  14. 59,
  15. 207,
  16. 236,
  17. 108,
  18. 250,
  19. 47,
  20. 100
  21. ],
  22. "accounts": [
  23. {
  24. "name": "authority",
  25. "writable": true,
  26. "signer": true
  27. },
  28. {
  29. "name": "my_account",
  30. "writable": true,
  31. "pda": {
  32. "seeds": [
  33. {
  34. "kind": "account",
  35. "path": "authority"
  36. }
  37. ]
  38. }
  39. },
  40. {
  41. "name": "system_program",
  42. "address": "11111111111111111111111111111111"
  43. }
  44. ],
  45. "args": []
  46. },
  47. {
  48. "name": "test_compilation_data_as_parameter_name",
  49. "discriminator": [
  50. 225,
  51. 145,
  52. 68,
  53. 92,
  54. 146,
  55. 206,
  56. 248,
  57. 206
  58. ],
  59. "accounts": [
  60. {
  61. "name": "signer",
  62. "signer": true
  63. }
  64. ],
  65. "args": [
  66. {
  67. "name": "data",
  68. "type": "bytes"
  69. }
  70. ]
  71. },
  72. {
  73. "name": "test_compilation_defined_type_param",
  74. "discriminator": [
  75. 61,
  76. 118,
  77. 87,
  78. 242,
  79. 137,
  80. 97,
  81. 90,
  82. 223
  83. ],
  84. "accounts": [
  85. {
  86. "name": "signer",
  87. "signer": true
  88. }
  89. ],
  90. "args": [
  91. {
  92. "name": "_my_account",
  93. "type": {
  94. "defined": {
  95. "name": "MyAccount"
  96. }
  97. }
  98. }
  99. ]
  100. },
  101. {
  102. "name": "test_compilation_no_accounts",
  103. "discriminator": [
  104. 194,
  105. 91,
  106. 205,
  107. 217,
  108. 51,
  109. 10,
  110. 247,
  111. 201
  112. ],
  113. "accounts": [],
  114. "args": []
  115. },
  116. {
  117. "name": "test_compilation_return_type",
  118. "discriminator": [
  119. 174,
  120. 51,
  121. 51,
  122. 121,
  123. 52,
  124. 61,
  125. 38,
  126. 28
  127. ],
  128. "accounts": [
  129. {
  130. "name": "signer",
  131. "signer": true
  132. }
  133. ],
  134. "args": [],
  135. "returns": "bool"
  136. },
  137. {
  138. "name": "update",
  139. "discriminator": [
  140. 219,
  141. 200,
  142. 88,
  143. 176,
  144. 158,
  145. 63,
  146. 253,
  147. 127
  148. ],
  149. "accounts": [
  150. {
  151. "name": "authority",
  152. "signer": true
  153. },
  154. {
  155. "name": "my_account",
  156. "writable": true,
  157. "pda": {
  158. "seeds": [
  159. {
  160. "kind": "account",
  161. "path": "authority"
  162. }
  163. ]
  164. }
  165. }
  166. ],
  167. "args": [
  168. {
  169. "name": "value",
  170. "type": "u32"
  171. }
  172. ]
  173. },
  174. {
  175. "name": "update_composite",
  176. "discriminator": [
  177. 26,
  178. 42,
  179. 201,
  180. 224,
  181. 121,
  182. 60,
  183. 188,
  184. 220
  185. ],
  186. "accounts": [
  187. {
  188. "name": "update",
  189. "accounts": [
  190. {
  191. "name": "authority",
  192. "signer": true
  193. },
  194. {
  195. "name": "my_account",
  196. "writable": true,
  197. "pda": {
  198. "seeds": [
  199. {
  200. "kind": "account",
  201. "path": "authority"
  202. }
  203. ]
  204. }
  205. }
  206. ]
  207. }
  208. ],
  209. "args": [
  210. {
  211. "name": "value",
  212. "type": "u32"
  213. }
  214. ]
  215. },
  216. {
  217. "name": "update_non_instruction_composite",
  218. "discriminator": [
  219. 49,
  220. 218,
  221. 69,
  222. 196,
  223. 204,
  224. 66,
  225. 36,
  226. 29
  227. ],
  228. "accounts": [
  229. {
  230. "name": "non_instruction_update",
  231. "accounts": [
  232. {
  233. "name": "authority",
  234. "signer": true
  235. },
  236. {
  237. "name": "my_account",
  238. "writable": true,
  239. "pda": {
  240. "seeds": [
  241. {
  242. "kind": "account",
  243. "path": "authority"
  244. }
  245. ]
  246. }
  247. },
  248. {
  249. "name": "program",
  250. "address": "Externa111111111111111111111111111111111111"
  251. }
  252. ]
  253. }
  254. ],
  255. "args": [
  256. {
  257. "name": "value",
  258. "type": "u32"
  259. }
  260. ]
  261. }
  262. ],
  263. "accounts": [
  264. {
  265. "name": "MyAccount",
  266. "discriminator": [
  267. 246,
  268. 28,
  269. 6,
  270. 87,
  271. 251,
  272. 45,
  273. 50,
  274. 42
  275. ]
  276. }
  277. ],
  278. "events": [
  279. {
  280. "name": "MyEvent",
  281. "discriminator": [
  282. 96,
  283. 184,
  284. 197,
  285. 243,
  286. 139,
  287. 2,
  288. 90,
  289. 148
  290. ]
  291. }
  292. ],
  293. "types": [
  294. {
  295. "name": "MyAccount",
  296. "type": {
  297. "kind": "struct",
  298. "fields": [
  299. {
  300. "name": "field",
  301. "type": "u32"
  302. }
  303. ]
  304. }
  305. },
  306. {
  307. "name": "MyEvent",
  308. "type": {
  309. "kind": "struct",
  310. "fields": [
  311. {
  312. "name": "value",
  313. "type": "u32"
  314. }
  315. ]
  316. }
  317. }
  318. ],
  319. "constants": [
  320. {
  321. "name": "MASTER_SEED",
  322. "docs": [
  323. "Master seed slice"
  324. ],
  325. "type": "bytes",
  326. "value": "[109, 97, 115, 116, 101, 114]"
  327. }
  328. ]
  329. }