idl.json 30 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054
  1. {
  2. "kind": "rootNode",
  3. "program": {
  4. "kind": "programNode",
  5. "pdas": [],
  6. "accounts": [
  7. {
  8. "kind": "accountNode",
  9. "data": {
  10. "kind": "structTypeNode",
  11. "fields": [
  12. {
  13. "kind": "structFieldTypeNode",
  14. "name": "version",
  15. "type": { "kind": "definedTypeLinkNode", "name": "nonceVersion" },
  16. "docs": []
  17. },
  18. {
  19. "kind": "structFieldTypeNode",
  20. "name": "state",
  21. "type": { "kind": "definedTypeLinkNode", "name": "nonceState" },
  22. "docs": []
  23. },
  24. {
  25. "kind": "structFieldTypeNode",
  26. "name": "authority",
  27. "type": { "kind": "publicKeyTypeNode" },
  28. "docs": []
  29. },
  30. {
  31. "kind": "structFieldTypeNode",
  32. "name": "blockhash",
  33. "type": { "kind": "publicKeyTypeNode" },
  34. "docs": []
  35. },
  36. {
  37. "kind": "structFieldTypeNode",
  38. "name": "lamportsPerSignature",
  39. "type": {
  40. "kind": "numberTypeNode",
  41. "format": "u64",
  42. "endian": "le"
  43. },
  44. "docs": []
  45. }
  46. ]
  47. },
  48. "name": "nonce",
  49. "idlName": "Nonce",
  50. "docs": [],
  51. "size": 80
  52. }
  53. ],
  54. "instructions": [
  55. {
  56. "kind": "instructionNode",
  57. "accounts": [
  58. {
  59. "kind": "instructionAccountNode",
  60. "name": "payer",
  61. "isWritable": true,
  62. "isSigner": true,
  63. "isOptional": false,
  64. "docs": [],
  65. "defaultValue": { "kind": "payerValueNode" }
  66. },
  67. {
  68. "kind": "instructionAccountNode",
  69. "name": "newAccount",
  70. "isWritable": true,
  71. "isSigner": true,
  72. "isOptional": false,
  73. "docs": []
  74. }
  75. ],
  76. "arguments": [
  77. {
  78. "kind": "instructionArgumentNode",
  79. "name": "discriminator",
  80. "type": {
  81. "kind": "numberTypeNode",
  82. "format": "u32",
  83. "endian": "le"
  84. },
  85. "docs": [],
  86. "defaultValue": { "kind": "numberValueNode", "number": 0 },
  87. "defaultValueStrategy": "omitted"
  88. },
  89. {
  90. "kind": "instructionArgumentNode",
  91. "name": "lamports",
  92. "type": {
  93. "kind": "numberTypeNode",
  94. "format": "u64",
  95. "endian": "le"
  96. },
  97. "docs": []
  98. },
  99. {
  100. "kind": "instructionArgumentNode",
  101. "name": "space",
  102. "type": {
  103. "kind": "numberTypeNode",
  104. "format": "u64",
  105. "endian": "le"
  106. },
  107. "docs": []
  108. },
  109. {
  110. "kind": "instructionArgumentNode",
  111. "name": "programAddress",
  112. "type": { "kind": "publicKeyTypeNode" },
  113. "docs": []
  114. }
  115. ],
  116. "byteDeltas": [
  117. {
  118. "kind": "instructionByteDeltaNode",
  119. "value": { "kind": "argumentValueNode", "name": "space" },
  120. "withHeader": true
  121. }
  122. ],
  123. "discriminators": [
  124. {
  125. "kind": "fieldDiscriminatorNode",
  126. "name": "discriminator",
  127. "offset": 0
  128. }
  129. ],
  130. "name": "createAccount",
  131. "idlName": "CreateAccount",
  132. "docs": [],
  133. "optionalAccountStrategy": "omitted"
  134. },
  135. {
  136. "kind": "instructionNode",
  137. "accounts": [
  138. {
  139. "kind": "instructionAccountNode",
  140. "name": "account",
  141. "isWritable": true,
  142. "isSigner": true,
  143. "isOptional": false,
  144. "docs": []
  145. }
  146. ],
  147. "arguments": [
  148. {
  149. "kind": "instructionArgumentNode",
  150. "name": "discriminator",
  151. "type": {
  152. "kind": "numberTypeNode",
  153. "format": "u32",
  154. "endian": "le"
  155. },
  156. "docs": [],
  157. "defaultValue": { "kind": "numberValueNode", "number": 1 },
  158. "defaultValueStrategy": "omitted"
  159. },
  160. {
  161. "kind": "instructionArgumentNode",
  162. "name": "programAddress",
  163. "type": { "kind": "publicKeyTypeNode" },
  164. "docs": []
  165. }
  166. ],
  167. "discriminators": [
  168. {
  169. "kind": "fieldDiscriminatorNode",
  170. "name": "discriminator",
  171. "offset": 0
  172. }
  173. ],
  174. "name": "assign",
  175. "idlName": "Assign",
  176. "docs": [],
  177. "optionalAccountStrategy": "omitted"
  178. },
  179. {
  180. "kind": "instructionNode",
  181. "accounts": [
  182. {
  183. "kind": "instructionAccountNode",
  184. "name": "source",
  185. "isWritable": true,
  186. "isSigner": true,
  187. "isOptional": false,
  188. "docs": []
  189. },
  190. {
  191. "kind": "instructionAccountNode",
  192. "name": "destination",
  193. "isWritable": true,
  194. "isSigner": false,
  195. "isOptional": false,
  196. "docs": []
  197. }
  198. ],
  199. "arguments": [
  200. {
  201. "kind": "instructionArgumentNode",
  202. "name": "discriminator",
  203. "type": {
  204. "kind": "numberTypeNode",
  205. "format": "u32",
  206. "endian": "le"
  207. },
  208. "docs": [],
  209. "defaultValue": { "kind": "numberValueNode", "number": 2 },
  210. "defaultValueStrategy": "omitted"
  211. },
  212. {
  213. "kind": "instructionArgumentNode",
  214. "name": "amount",
  215. "type": {
  216. "kind": "numberTypeNode",
  217. "format": "u64",
  218. "endian": "le"
  219. },
  220. "docs": []
  221. }
  222. ],
  223. "discriminators": [
  224. {
  225. "kind": "fieldDiscriminatorNode",
  226. "name": "discriminator",
  227. "offset": 0
  228. }
  229. ],
  230. "name": "transferSol",
  231. "idlName": "TransferSol",
  232. "docs": [],
  233. "optionalAccountStrategy": "omitted"
  234. },
  235. {
  236. "kind": "instructionNode",
  237. "accounts": [
  238. {
  239. "kind": "instructionAccountNode",
  240. "name": "payer",
  241. "isWritable": true,
  242. "isSigner": true,
  243. "isOptional": false,
  244. "docs": [],
  245. "defaultValue": { "kind": "payerValueNode" }
  246. },
  247. {
  248. "kind": "instructionAccountNode",
  249. "name": "newAccount",
  250. "isWritable": true,
  251. "isSigner": false,
  252. "isOptional": false,
  253. "docs": []
  254. },
  255. {
  256. "kind": "instructionAccountNode",
  257. "name": "baseAccount",
  258. "isWritable": false,
  259. "isSigner": true,
  260. "isOptional": true,
  261. "docs": []
  262. }
  263. ],
  264. "arguments": [
  265. {
  266. "kind": "instructionArgumentNode",
  267. "name": "discriminator",
  268. "type": {
  269. "kind": "numberTypeNode",
  270. "format": "u32",
  271. "endian": "le"
  272. },
  273. "docs": [],
  274. "defaultValue": { "kind": "numberValueNode", "number": 3 },
  275. "defaultValueStrategy": "omitted"
  276. },
  277. {
  278. "kind": "instructionArgumentNode",
  279. "name": "base",
  280. "type": { "kind": "publicKeyTypeNode" },
  281. "docs": []
  282. },
  283. {
  284. "kind": "instructionArgumentNode",
  285. "name": "seed",
  286. "type": {
  287. "kind": "sizePrefixTypeNode",
  288. "type": { "kind": "stringTypeNode", "encoding": "utf8" },
  289. "prefix": {
  290. "kind": "numberTypeNode",
  291. "format": "u64",
  292. "endian": "le"
  293. }
  294. },
  295. "docs": []
  296. },
  297. {
  298. "kind": "instructionArgumentNode",
  299. "name": "amount",
  300. "type": {
  301. "kind": "numberTypeNode",
  302. "format": "u64",
  303. "endian": "le"
  304. },
  305. "docs": []
  306. },
  307. {
  308. "kind": "instructionArgumentNode",
  309. "name": "space",
  310. "type": {
  311. "kind": "numberTypeNode",
  312. "format": "u64",
  313. "endian": "le"
  314. },
  315. "docs": []
  316. },
  317. {
  318. "kind": "instructionArgumentNode",
  319. "name": "programAddress",
  320. "type": { "kind": "publicKeyTypeNode" },
  321. "docs": []
  322. }
  323. ],
  324. "discriminators": [
  325. {
  326. "kind": "fieldDiscriminatorNode",
  327. "name": "discriminator",
  328. "offset": 0
  329. }
  330. ],
  331. "name": "createAccountWithSeed",
  332. "idlName": "CreateAccountWithSeed",
  333. "docs": [],
  334. "optionalAccountStrategy": "omitted"
  335. },
  336. {
  337. "kind": "instructionNode",
  338. "accounts": [
  339. {
  340. "kind": "instructionAccountNode",
  341. "name": "nonceAccount",
  342. "isWritable": true,
  343. "isSigner": false,
  344. "isOptional": false,
  345. "docs": []
  346. },
  347. {
  348. "kind": "instructionAccountNode",
  349. "name": "recentBlockhashesSysvar",
  350. "isWritable": false,
  351. "isSigner": false,
  352. "isOptional": false,
  353. "docs": [],
  354. "defaultValue": {
  355. "kind": "publicKeyValueNode",
  356. "publicKey": "SysvarRecentB1ockHashes11111111111111111111"
  357. }
  358. },
  359. {
  360. "kind": "instructionAccountNode",
  361. "name": "nonceAuthority",
  362. "isWritable": false,
  363. "isSigner": true,
  364. "isOptional": false,
  365. "docs": []
  366. }
  367. ],
  368. "arguments": [
  369. {
  370. "kind": "instructionArgumentNode",
  371. "name": "discriminator",
  372. "type": {
  373. "kind": "numberTypeNode",
  374. "format": "u32",
  375. "endian": "le"
  376. },
  377. "docs": [],
  378. "defaultValue": { "kind": "numberValueNode", "number": 4 },
  379. "defaultValueStrategy": "omitted"
  380. }
  381. ],
  382. "discriminators": [
  383. {
  384. "kind": "fieldDiscriminatorNode",
  385. "name": "discriminator",
  386. "offset": 0
  387. }
  388. ],
  389. "name": "advanceNonceAccount",
  390. "idlName": "AdvanceNonceAccount",
  391. "docs": [],
  392. "optionalAccountStrategy": "omitted"
  393. },
  394. {
  395. "kind": "instructionNode",
  396. "accounts": [
  397. {
  398. "kind": "instructionAccountNode",
  399. "name": "nonceAccount",
  400. "isWritable": true,
  401. "isSigner": false,
  402. "isOptional": false,
  403. "docs": []
  404. },
  405. {
  406. "kind": "instructionAccountNode",
  407. "name": "recipientAccount",
  408. "isWritable": true,
  409. "isSigner": false,
  410. "isOptional": false,
  411. "docs": []
  412. },
  413. {
  414. "kind": "instructionAccountNode",
  415. "name": "recentBlockhashesSysvar",
  416. "isWritable": false,
  417. "isSigner": false,
  418. "isOptional": false,
  419. "docs": [],
  420. "defaultValue": {
  421. "kind": "publicKeyValueNode",
  422. "publicKey": "SysvarRecentB1ockHashes11111111111111111111"
  423. }
  424. },
  425. {
  426. "kind": "instructionAccountNode",
  427. "name": "rentSysvar",
  428. "isWritable": false,
  429. "isSigner": false,
  430. "isOptional": false,
  431. "docs": [],
  432. "defaultValue": {
  433. "kind": "publicKeyValueNode",
  434. "publicKey": "SysvarRent111111111111111111111111111111111"
  435. }
  436. },
  437. {
  438. "kind": "instructionAccountNode",
  439. "name": "nonceAuthority",
  440. "isWritable": false,
  441. "isSigner": true,
  442. "isOptional": false,
  443. "docs": []
  444. }
  445. ],
  446. "arguments": [
  447. {
  448. "kind": "instructionArgumentNode",
  449. "name": "discriminator",
  450. "type": {
  451. "kind": "numberTypeNode",
  452. "format": "u32",
  453. "endian": "le"
  454. },
  455. "docs": [],
  456. "defaultValue": { "kind": "numberValueNode", "number": 5 },
  457. "defaultValueStrategy": "omitted"
  458. },
  459. {
  460. "kind": "instructionArgumentNode",
  461. "name": "withdrawAmount",
  462. "type": {
  463. "kind": "numberTypeNode",
  464. "format": "u64",
  465. "endian": "le"
  466. },
  467. "docs": []
  468. }
  469. ],
  470. "discriminators": [
  471. {
  472. "kind": "fieldDiscriminatorNode",
  473. "name": "discriminator",
  474. "offset": 0
  475. }
  476. ],
  477. "name": "withdrawNonceAccount",
  478. "idlName": "WithdrawNonceAccount",
  479. "docs": [],
  480. "optionalAccountStrategy": "omitted"
  481. },
  482. {
  483. "kind": "instructionNode",
  484. "accounts": [
  485. {
  486. "kind": "instructionAccountNode",
  487. "name": "nonceAccount",
  488. "isWritable": true,
  489. "isSigner": false,
  490. "isOptional": false,
  491. "docs": []
  492. },
  493. {
  494. "kind": "instructionAccountNode",
  495. "name": "recentBlockhashesSysvar",
  496. "isWritable": false,
  497. "isSigner": false,
  498. "isOptional": false,
  499. "docs": [],
  500. "defaultValue": {
  501. "kind": "publicKeyValueNode",
  502. "publicKey": "SysvarRecentB1ockHashes11111111111111111111"
  503. }
  504. },
  505. {
  506. "kind": "instructionAccountNode",
  507. "name": "rentSysvar",
  508. "isWritable": false,
  509. "isSigner": false,
  510. "isOptional": false,
  511. "docs": [],
  512. "defaultValue": {
  513. "kind": "publicKeyValueNode",
  514. "publicKey": "SysvarRent111111111111111111111111111111111"
  515. }
  516. }
  517. ],
  518. "arguments": [
  519. {
  520. "kind": "instructionArgumentNode",
  521. "name": "discriminator",
  522. "type": {
  523. "kind": "numberTypeNode",
  524. "format": "u32",
  525. "endian": "le"
  526. },
  527. "docs": [],
  528. "defaultValue": { "kind": "numberValueNode", "number": 6 },
  529. "defaultValueStrategy": "omitted"
  530. },
  531. {
  532. "kind": "instructionArgumentNode",
  533. "name": "nonceAuthority",
  534. "type": { "kind": "publicKeyTypeNode" },
  535. "docs": []
  536. }
  537. ],
  538. "discriminators": [
  539. {
  540. "kind": "fieldDiscriminatorNode",
  541. "name": "discriminator",
  542. "offset": 0
  543. }
  544. ],
  545. "name": "initializeNonceAccount",
  546. "idlName": "InitializeNonceAccount",
  547. "docs": [],
  548. "optionalAccountStrategy": "omitted"
  549. },
  550. {
  551. "kind": "instructionNode",
  552. "accounts": [
  553. {
  554. "kind": "instructionAccountNode",
  555. "name": "nonceAccount",
  556. "isWritable": true,
  557. "isSigner": false,
  558. "isOptional": false,
  559. "docs": []
  560. },
  561. {
  562. "kind": "instructionAccountNode",
  563. "name": "nonceAuthority",
  564. "isWritable": false,
  565. "isSigner": true,
  566. "isOptional": false,
  567. "docs": []
  568. }
  569. ],
  570. "arguments": [
  571. {
  572. "kind": "instructionArgumentNode",
  573. "name": "discriminator",
  574. "type": {
  575. "kind": "numberTypeNode",
  576. "format": "u32",
  577. "endian": "le"
  578. },
  579. "docs": [],
  580. "defaultValue": { "kind": "numberValueNode", "number": 7 },
  581. "defaultValueStrategy": "omitted"
  582. },
  583. {
  584. "kind": "instructionArgumentNode",
  585. "name": "newNonceAuthority",
  586. "type": { "kind": "publicKeyTypeNode" },
  587. "docs": []
  588. }
  589. ],
  590. "discriminators": [
  591. {
  592. "kind": "fieldDiscriminatorNode",
  593. "name": "discriminator",
  594. "offset": 0
  595. }
  596. ],
  597. "name": "authorizeNonceAccount",
  598. "idlName": "AuthorizeNonceAccount",
  599. "docs": [],
  600. "optionalAccountStrategy": "omitted"
  601. },
  602. {
  603. "kind": "instructionNode",
  604. "accounts": [
  605. {
  606. "kind": "instructionAccountNode",
  607. "name": "newAccount",
  608. "isWritable": true,
  609. "isSigner": true,
  610. "isOptional": false,
  611. "docs": []
  612. }
  613. ],
  614. "arguments": [
  615. {
  616. "kind": "instructionArgumentNode",
  617. "name": "discriminator",
  618. "type": {
  619. "kind": "numberTypeNode",
  620. "format": "u32",
  621. "endian": "le"
  622. },
  623. "docs": [],
  624. "defaultValue": { "kind": "numberValueNode", "number": 8 },
  625. "defaultValueStrategy": "omitted"
  626. },
  627. {
  628. "kind": "instructionArgumentNode",
  629. "name": "space",
  630. "type": {
  631. "kind": "numberTypeNode",
  632. "format": "u64",
  633. "endian": "le"
  634. },
  635. "docs": []
  636. }
  637. ],
  638. "discriminators": [
  639. {
  640. "kind": "fieldDiscriminatorNode",
  641. "name": "discriminator",
  642. "offset": 0
  643. }
  644. ],
  645. "name": "allocate",
  646. "idlName": "Allocate",
  647. "docs": [],
  648. "optionalAccountStrategy": "omitted"
  649. },
  650. {
  651. "kind": "instructionNode",
  652. "accounts": [
  653. {
  654. "kind": "instructionAccountNode",
  655. "name": "newAccount",
  656. "isWritable": true,
  657. "isSigner": false,
  658. "isOptional": false,
  659. "docs": []
  660. },
  661. {
  662. "kind": "instructionAccountNode",
  663. "name": "baseAccount",
  664. "isWritable": false,
  665. "isSigner": true,
  666. "isOptional": false,
  667. "docs": []
  668. }
  669. ],
  670. "arguments": [
  671. {
  672. "kind": "instructionArgumentNode",
  673. "name": "discriminator",
  674. "type": {
  675. "kind": "numberTypeNode",
  676. "format": "u32",
  677. "endian": "le"
  678. },
  679. "docs": [],
  680. "defaultValue": { "kind": "numberValueNode", "number": 9 },
  681. "defaultValueStrategy": "omitted"
  682. },
  683. {
  684. "kind": "instructionArgumentNode",
  685. "name": "base",
  686. "type": { "kind": "publicKeyTypeNode" },
  687. "docs": []
  688. },
  689. {
  690. "kind": "instructionArgumentNode",
  691. "name": "seed",
  692. "type": {
  693. "kind": "sizePrefixTypeNode",
  694. "type": { "kind": "stringTypeNode", "encoding": "utf8" },
  695. "prefix": {
  696. "kind": "numberTypeNode",
  697. "format": "u64",
  698. "endian": "le"
  699. }
  700. },
  701. "docs": []
  702. },
  703. {
  704. "kind": "instructionArgumentNode",
  705. "name": "space",
  706. "type": {
  707. "kind": "numberTypeNode",
  708. "format": "u64",
  709. "endian": "le"
  710. },
  711. "docs": []
  712. },
  713. {
  714. "kind": "instructionArgumentNode",
  715. "name": "programAddress",
  716. "type": { "kind": "publicKeyTypeNode" },
  717. "docs": []
  718. }
  719. ],
  720. "discriminators": [
  721. {
  722. "kind": "fieldDiscriminatorNode",
  723. "name": "discriminator",
  724. "offset": 0
  725. }
  726. ],
  727. "name": "allocateWithSeed",
  728. "idlName": "AllocateWithSeed",
  729. "docs": [],
  730. "optionalAccountStrategy": "omitted"
  731. },
  732. {
  733. "kind": "instructionNode",
  734. "accounts": [
  735. {
  736. "kind": "instructionAccountNode",
  737. "name": "account",
  738. "isWritable": true,
  739. "isSigner": false,
  740. "isOptional": false,
  741. "docs": []
  742. },
  743. {
  744. "kind": "instructionAccountNode",
  745. "name": "baseAccount",
  746. "isWritable": false,
  747. "isSigner": true,
  748. "isOptional": false,
  749. "docs": []
  750. }
  751. ],
  752. "arguments": [
  753. {
  754. "kind": "instructionArgumentNode",
  755. "name": "discriminator",
  756. "type": {
  757. "kind": "numberTypeNode",
  758. "format": "u32",
  759. "endian": "le"
  760. },
  761. "docs": [],
  762. "defaultValue": { "kind": "numberValueNode", "number": 10 },
  763. "defaultValueStrategy": "omitted"
  764. },
  765. {
  766. "kind": "instructionArgumentNode",
  767. "name": "base",
  768. "type": { "kind": "publicKeyTypeNode" },
  769. "docs": []
  770. },
  771. {
  772. "kind": "instructionArgumentNode",
  773. "name": "seed",
  774. "type": {
  775. "kind": "sizePrefixTypeNode",
  776. "type": { "kind": "stringTypeNode", "encoding": "utf8" },
  777. "prefix": {
  778. "kind": "numberTypeNode",
  779. "format": "u64",
  780. "endian": "le"
  781. }
  782. },
  783. "docs": []
  784. },
  785. {
  786. "kind": "instructionArgumentNode",
  787. "name": "programAddress",
  788. "type": { "kind": "publicKeyTypeNode" },
  789. "docs": []
  790. }
  791. ],
  792. "discriminators": [
  793. {
  794. "kind": "fieldDiscriminatorNode",
  795. "name": "discriminator",
  796. "offset": 0
  797. }
  798. ],
  799. "name": "assignWithSeed",
  800. "idlName": "AssignWithSeed",
  801. "docs": [],
  802. "optionalAccountStrategy": "omitted"
  803. },
  804. {
  805. "kind": "instructionNode",
  806. "accounts": [
  807. {
  808. "kind": "instructionAccountNode",
  809. "name": "source",
  810. "isWritable": true,
  811. "isSigner": false,
  812. "isOptional": false,
  813. "docs": []
  814. },
  815. {
  816. "kind": "instructionAccountNode",
  817. "name": "baseAccount",
  818. "isWritable": false,
  819. "isSigner": true,
  820. "isOptional": false,
  821. "docs": []
  822. },
  823. {
  824. "kind": "instructionAccountNode",
  825. "name": "destination",
  826. "isWritable": true,
  827. "isSigner": false,
  828. "isOptional": false,
  829. "docs": []
  830. }
  831. ],
  832. "arguments": [
  833. {
  834. "kind": "instructionArgumentNode",
  835. "name": "discriminator",
  836. "type": {
  837. "kind": "numberTypeNode",
  838. "format": "u32",
  839. "endian": "le"
  840. },
  841. "docs": [],
  842. "defaultValue": { "kind": "numberValueNode", "number": 11 },
  843. "defaultValueStrategy": "omitted"
  844. },
  845. {
  846. "kind": "instructionArgumentNode",
  847. "name": "amount",
  848. "type": {
  849. "kind": "numberTypeNode",
  850. "format": "u64",
  851. "endian": "le"
  852. },
  853. "docs": []
  854. },
  855. {
  856. "kind": "instructionArgumentNode",
  857. "name": "fromSeed",
  858. "type": {
  859. "kind": "sizePrefixTypeNode",
  860. "type": { "kind": "stringTypeNode", "encoding": "utf8" },
  861. "prefix": {
  862. "kind": "numberTypeNode",
  863. "format": "u64",
  864. "endian": "le"
  865. }
  866. },
  867. "docs": []
  868. },
  869. {
  870. "kind": "instructionArgumentNode",
  871. "name": "fromOwner",
  872. "type": { "kind": "publicKeyTypeNode" },
  873. "docs": []
  874. }
  875. ],
  876. "discriminators": [
  877. {
  878. "kind": "fieldDiscriminatorNode",
  879. "name": "discriminator",
  880. "offset": 0
  881. }
  882. ],
  883. "name": "transferSolWithSeed",
  884. "idlName": "TransferSolWithSeed",
  885. "docs": [],
  886. "optionalAccountStrategy": "omitted"
  887. },
  888. {
  889. "kind": "instructionNode",
  890. "accounts": [
  891. {
  892. "kind": "instructionAccountNode",
  893. "name": "nonceAccount",
  894. "isWritable": true,
  895. "isSigner": false,
  896. "isOptional": false,
  897. "docs": []
  898. }
  899. ],
  900. "arguments": [
  901. {
  902. "kind": "instructionArgumentNode",
  903. "name": "discriminator",
  904. "type": {
  905. "kind": "numberTypeNode",
  906. "format": "u32",
  907. "endian": "le"
  908. },
  909. "docs": [],
  910. "defaultValue": { "kind": "numberValueNode", "number": 12 },
  911. "defaultValueStrategy": "omitted"
  912. }
  913. ],
  914. "discriminators": [
  915. {
  916. "kind": "fieldDiscriminatorNode",
  917. "name": "discriminator",
  918. "offset": 0
  919. }
  920. ],
  921. "name": "upgradeNonceAccount",
  922. "idlName": "UpgradeNonceAccount",
  923. "docs": [],
  924. "optionalAccountStrategy": "omitted"
  925. }
  926. ],
  927. "definedTypes": [
  928. {
  929. "kind": "definedTypeNode",
  930. "name": "nonceVersion",
  931. "type": {
  932. "kind": "enumTypeNode",
  933. "variants": [
  934. { "kind": "enumEmptyVariantTypeNode", "name": "legacy" },
  935. { "kind": "enumEmptyVariantTypeNode", "name": "current" }
  936. ],
  937. "size": { "kind": "numberTypeNode", "format": "u32", "endian": "le" }
  938. },
  939. "idlName": "NonceVersion",
  940. "docs": []
  941. },
  942. {
  943. "kind": "definedTypeNode",
  944. "name": "nonceState",
  945. "type": {
  946. "kind": "enumTypeNode",
  947. "variants": [
  948. { "kind": "enumEmptyVariantTypeNode", "name": "uninitialized" },
  949. { "kind": "enumEmptyVariantTypeNode", "name": "initialized" }
  950. ],
  951. "size": { "kind": "numberTypeNode", "format": "u32", "endian": "le" }
  952. },
  953. "idlName": "NonceState",
  954. "docs": []
  955. }
  956. ],
  957. "errors": [
  958. {
  959. "kind": "errorNode",
  960. "name": "accountAlreadyInUse",
  961. "idlName": "AccountAlreadyInUse",
  962. "code": 0,
  963. "message": "an account with the same address already exists",
  964. "docs": [
  965. "AccountAlreadyInUse: an account with the same address already exists"
  966. ]
  967. },
  968. {
  969. "kind": "errorNode",
  970. "name": "resultWithNegativeLamports",
  971. "idlName": "ResultWithNegativeLamports",
  972. "code": 1,
  973. "message": "account does not have enough SOL to perform the operation",
  974. "docs": [
  975. "ResultWithNegativeLamports: account does not have enough SOL to perform the operation"
  976. ]
  977. },
  978. {
  979. "kind": "errorNode",
  980. "name": "invalidProgramId",
  981. "idlName": "InvalidProgramId",
  982. "code": 2,
  983. "message": "cannot assign account to this program id",
  984. "docs": ["InvalidProgramId: cannot assign account to this program id"]
  985. },
  986. {
  987. "kind": "errorNode",
  988. "name": "invalidAccountDataLength",
  989. "idlName": "InvalidAccountDataLength",
  990. "code": 3,
  991. "message": "cannot allocate account data of this length",
  992. "docs": [
  993. "InvalidAccountDataLength: cannot allocate account data of this length"
  994. ]
  995. },
  996. {
  997. "kind": "errorNode",
  998. "name": "maxSeedLengthExceeded",
  999. "idlName": "MaxSeedLengthExceeded",
  1000. "code": 4,
  1001. "message": "length of requested seed is too long",
  1002. "docs": ["MaxSeedLengthExceeded: length of requested seed is too long"]
  1003. },
  1004. {
  1005. "kind": "errorNode",
  1006. "name": "addressWithSeedMismatch",
  1007. "idlName": "AddressWithSeedMismatch",
  1008. "code": 5,
  1009. "message": "provided address does not match addressed derived from seed",
  1010. "docs": [
  1011. "AddressWithSeedMismatch: provided address does not match addressed derived from seed"
  1012. ]
  1013. },
  1014. {
  1015. "kind": "errorNode",
  1016. "name": "nonceNoRecentBlockhashes",
  1017. "idlName": "NonceNoRecentBlockhashes",
  1018. "code": 6,
  1019. "message": "advancing stored nonce requires a populated RecentBlockhashes sysvar",
  1020. "docs": [
  1021. "NonceNoRecentBlockhashes: advancing stored nonce requires a populated RecentBlockhashes sysvar"
  1022. ]
  1023. },
  1024. {
  1025. "kind": "errorNode",
  1026. "name": "nonceBlockhashNotExpired",
  1027. "idlName": "NonceBlockhashNotExpired",
  1028. "code": 7,
  1029. "message": "stored nonce is still in recent_blockhashes",
  1030. "docs": [
  1031. "NonceBlockhashNotExpired: stored nonce is still in recent_blockhashes"
  1032. ]
  1033. },
  1034. {
  1035. "kind": "errorNode",
  1036. "name": "nonceUnexpectedBlockhashValue",
  1037. "idlName": "NonceUnexpectedBlockhashValue",
  1038. "code": 8,
  1039. "message": "specified nonce does not match stored nonce",
  1040. "docs": [
  1041. "NonceUnexpectedBlockhashValue: specified nonce does not match stored nonce"
  1042. ]
  1043. }
  1044. ],
  1045. "name": "system",
  1046. "prefix": "",
  1047. "publicKey": "11111111111111111111111111111111",
  1048. "version": "0.0.1",
  1049. "origin": "shank"
  1050. },
  1051. "additionalPrograms": [],
  1052. "standard": "codama",
  1053. "version": "1.0.0"
  1054. }