external.json 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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": "update",
  49. "discriminator": [
  50. 219,
  51. 200,
  52. 88,
  53. 176,
  54. 158,
  55. 63,
  56. 253,
  57. 127
  58. ],
  59. "accounts": [
  60. {
  61. "name": "authority",
  62. "signer": true
  63. },
  64. {
  65. "name": "my_account",
  66. "writable": true,
  67. "pda": {
  68. "seeds": [
  69. {
  70. "kind": "account",
  71. "path": "authority"
  72. }
  73. ]
  74. }
  75. }
  76. ],
  77. "args": [
  78. {
  79. "name": "value",
  80. "type": "u32"
  81. }
  82. ]
  83. }
  84. ],
  85. "accounts": [
  86. {
  87. "name": "MyAccount",
  88. "discriminator": [
  89. 246,
  90. 28,
  91. 6,
  92. 87,
  93. 251,
  94. 45,
  95. 50,
  96. 42
  97. ]
  98. }
  99. ],
  100. "types": [
  101. {
  102. "name": "MyAccount",
  103. "type": {
  104. "kind": "struct",
  105. "fields": [
  106. {
  107. "name": "field",
  108. "type": "u32"
  109. }
  110. ]
  111. }
  112. }
  113. ]
  114. }