@solana/rpc-graphql 2.0.0-experimental.a7c51e0 → 2.0.0-experimental.a81a78e

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/index.browser.cjs +363 -134
  2. package/dist/index.browser.cjs.map +1 -1
  3. package/dist/index.browser.js +362 -133
  4. package/dist/index.browser.js.map +1 -1
  5. package/dist/index.native.js +362 -133
  6. package/dist/index.native.js.map +1 -1
  7. package/dist/index.node.cjs +363 -134
  8. package/dist/index.node.cjs.map +1 -1
  9. package/dist/index.node.js +362 -133
  10. package/dist/index.node.js.map +1 -1
  11. package/dist/types/context.d.ts +9 -9
  12. package/dist/types/context.d.ts.map +1 -1
  13. package/dist/types/index.d.ts +1 -1
  14. package/dist/types/loaders/account.d.ts +11 -3
  15. package/dist/types/loaders/account.d.ts.map +1 -1
  16. package/dist/types/loaders/block.d.ts +10 -3
  17. package/dist/types/loaders/block.d.ts.map +1 -1
  18. package/dist/types/loaders/common/cache-key-fn.d.ts +2 -0
  19. package/dist/types/loaders/common/cache-key-fn.d.ts.map +1 -0
  20. package/dist/types/loaders/program-accounts.d.ts +14 -4
  21. package/dist/types/loaders/program-accounts.d.ts.map +1 -1
  22. package/dist/types/loaders/transaction.d.ts +9 -3
  23. package/dist/types/loaders/transaction.d.ts.map +1 -1
  24. package/dist/types/loaders/transformers/account.d.ts +2 -2
  25. package/dist/types/loaders/transformers/account.d.ts.map +1 -1
  26. package/dist/types/loaders/transformers/transaction.d.ts.map +1 -1
  27. package/dist/types/resolvers/account.d.ts +3 -3
  28. package/dist/types/resolvers/account.d.ts.map +1 -1
  29. package/dist/types/rpc.d.ts +1 -1
  30. package/dist/types/schema/account.d.ts +45 -54
  31. package/dist/types/schema/account.d.ts.map +1 -1
  32. package/dist/types/schema/block.d.ts +1 -9
  33. package/dist/types/schema/block.d.ts.map +1 -1
  34. package/dist/types/schema/common/types.d.ts +2 -2
  35. package/dist/types/schema/index.d.ts.map +1 -1
  36. package/dist/types/schema/instruction.d.ts +256 -256
  37. package/dist/types/schema/instruction.d.ts.map +1 -1
  38. package/dist/types/schema/transaction.d.ts +1 -8
  39. package/dist/types/schema/transaction.d.ts.map +1 -1
  40. package/package.json +14 -14
  41. package/dist/types/schema/program-accounts.d.ts +0 -12
  42. package/dist/types/schema/program-accounts.d.ts.map +0 -1
@@ -2,15 +2,22 @@
2
2
 
3
3
  var graphql = require('graphql');
4
4
  var DataLoader = require('dataloader');
5
- var fastStableStringify = require('fast-stable-stringify');
5
+ var stringify = require('json-stable-stringify');
6
6
  var schema = require('@graphql-tools/schema');
7
7
 
8
8
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
9
9
 
10
10
  var DataLoader__default = /*#__PURE__*/_interopDefault(DataLoader);
11
- var fastStableStringify__default = /*#__PURE__*/_interopDefault(fastStableStringify);
11
+ var stringify__default = /*#__PURE__*/_interopDefault(stringify);
12
12
 
13
13
  // src/rpc.ts
14
+ function replacer(_, value) {
15
+ if (typeof value === "bigint") {
16
+ return value.toString() + "n";
17
+ }
18
+ return value;
19
+ }
20
+ var cacheKeyFn = (obj) => stringify__default.default(obj, { replacer });
14
21
 
15
22
  // src/loaders/common/resolve-info.ts
16
23
  function onlyPresentFieldRequested(fieldName, info) {
@@ -98,7 +105,7 @@ function createAccountBatchLoadFn(rpc) {
98
105
  };
99
106
  }
100
107
  function createAccountLoader(rpc) {
101
- const loader = new DataLoader__default.default(createAccountBatchLoadFn(rpc), { cacheKeyFn: fastStableStringify__default.default });
108
+ const loader = new DataLoader__default.default(createAccountBatchLoadFn(rpc), { cacheKeyFn });
102
109
  return {
103
110
  load: async (args, info) => {
104
111
  if (onlyPresentFieldRequested("address", info)) {
@@ -112,6 +119,11 @@ function createAccountLoader(rpc) {
112
119
  // src/loaders/transformers/transaction.ts
113
120
  function transformParsedInstruction(parsedInstruction) {
114
121
  if ("parsed" in parsedInstruction) {
122
+ if (typeof parsedInstruction.parsed === "string" && parsedInstruction.program === "spl-memo") {
123
+ const { parsed: memo, program: programName2, programId: programId2 } = parsedInstruction;
124
+ const instructionType2 = "memo";
125
+ return { instructionType: instructionType2, memo, programId: programId2, programName: programName2 };
126
+ }
115
127
  const {
116
128
  parsed: { info: data, type: instructionType },
117
129
  program: programName,
@@ -188,7 +200,11 @@ function normalizeArgs2({
188
200
  };
189
201
  }
190
202
  async function loadBlock(rpc, { slot, ...config }) {
191
- const block = await rpc.getBlock(slot, config).send().catch((e) => {
203
+ const block = await rpc.getBlock(
204
+ slot,
205
+ // @ts-expect-error FIXME: https://github.com/solana-labs/solana-web3.js/issues/1984
206
+ config
207
+ ).send().catch((e) => {
192
208
  throw e;
193
209
  });
194
210
  return block === null ? { slot } : transformLoadedBlock({ block, encoding: config.encoding, transactionDetails: config.transactionDetails });
@@ -200,7 +216,7 @@ function createBlockBatchLoadFn(rpc) {
200
216
  };
201
217
  }
202
218
  function createBlockLoader(rpc) {
203
- const loader = new DataLoader__default.default(createBlockBatchLoadFn(rpc), { cacheKeyFn: fastStableStringify__default.default });
219
+ const loader = new DataLoader__default.default(createBlockBatchLoadFn(rpc), { cacheKeyFn });
204
220
  return {
205
221
  load: async (args, info) => {
206
222
  if (onlyPresentFieldRequested("slot", info)) {
@@ -221,12 +237,7 @@ function normalizeArgs3({
221
237
  return { commitment, dataSlice, encoding, filters, minContextSlot, programAddress };
222
238
  }
223
239
  async function loadProgramAccounts(rpc, { programAddress, ...config }) {
224
- const programAccounts = await rpc.getProgramAccounts(programAddress, config).send().then((res) => {
225
- if ("value" in res) {
226
- return res.value;
227
- }
228
- return res;
229
- }).catch((e) => {
240
+ const programAccounts = await rpc.getProgramAccounts(programAddress, config).send().catch((e) => {
230
241
  throw e;
231
242
  });
232
243
  return programAccounts.map(
@@ -246,7 +257,7 @@ function createProgramAccountsBatchLoadFn(rpc) {
246
257
  };
247
258
  }
248
259
  function createProgramAccountsLoader(rpc) {
249
- const loader = new DataLoader__default.default(createProgramAccountsBatchLoadFn(rpc), { cacheKeyFn: fastStableStringify__default.default });
260
+ const loader = new DataLoader__default.default(createProgramAccountsBatchLoadFn(rpc), { cacheKeyFn });
250
261
  return {
251
262
  load: async (args, info) => {
252
263
  if (onlyPresentFieldRequested("programAddress", info)) {
@@ -267,19 +278,22 @@ function normalizeArgs4({ commitment = "confirmed", encoding = "jsonParsed", sig
267
278
  }
268
279
  async function loadTransaction(rpc, { signature, ...config }) {
269
280
  const { encoding } = config;
270
- const transaction = await rpc.getTransaction(signature, config).send().catch((e) => {
271
- throw e;
272
- });
273
- if (transaction === null) {
281
+ const [transaction, transactionJsonParsed] = await Promise.all([
282
+ rpc.getTransaction(
283
+ signature,
284
+ // @ts-expect-error FIXME: https://github.com/solana-labs/solana-web3.js/issues/1984
285
+ config
286
+ ).send(),
287
+ (async () => {
288
+ if (encoding !== "jsonParsed") {
289
+ return await rpc.getTransaction(signature, { ...config, encoding: "jsonParsed" }).send();
290
+ }
291
+ })()
292
+ ]);
293
+ if (!transaction) {
274
294
  return null;
275
295
  }
276
- if (encoding !== "jsonParsed") {
277
- const transactionJsonParsed = await rpc.getTransaction(signature, config).send().catch((e) => {
278
- throw e;
279
- });
280
- if (transactionJsonParsed === null) {
281
- return null;
282
- }
296
+ if (transactionJsonParsed) {
283
297
  transaction.meta = transactionJsonParsed.meta;
284
298
  }
285
299
  return transformLoadedTransaction({ encoding, transaction });
@@ -291,7 +305,7 @@ function createTransactionBatchLoadFn(rpc) {
291
305
  };
292
306
  }
293
307
  function createTransactionLoader(rpc) {
294
- const loader = new DataLoader__default.default(createTransactionBatchLoadFn(rpc), { cacheKeyFn: fastStableStringify__default.default });
308
+ const loader = new DataLoader__default.default(createTransactionBatchLoadFn(rpc), { cacheKeyFn });
295
309
  return {
296
310
  load: async (args, info) => {
297
311
  if (onlyPresentFieldRequested("signature", info)) {
@@ -324,7 +338,9 @@ var resolveAccount = (fieldName) => {
324
338
  var accountTypeDefs = (
325
339
  /* GraphQL */
326
340
  `
327
- # Account interface
341
+ """
342
+ Account interface
343
+ """
328
344
  interface Account {
329
345
  address: Address
330
346
  executable: Boolean
@@ -334,7 +350,9 @@ var accountTypeDefs = (
334
350
  rentEpoch: BigInt
335
351
  }
336
352
 
337
- # An account with base58 encoded data
353
+ """
354
+ An account with base58 encoded data
355
+ """
338
356
  type AccountBase58 implements Account {
339
357
  address: Address
340
358
  data: Base58EncodedBytes
@@ -345,7 +363,9 @@ var accountTypeDefs = (
345
363
  rentEpoch: BigInt
346
364
  }
347
365
 
348
- # An account with base64 encoded data
366
+ """
367
+ An account with base64 encoded data
368
+ """
349
369
  type AccountBase64 implements Account {
350
370
  address: Address
351
371
  data: Base64EncodedBytes
@@ -356,7 +376,9 @@ var accountTypeDefs = (
356
376
  rentEpoch: BigInt
357
377
  }
358
378
 
359
- # An account with base64+zstd encoded data
379
+ """
380
+ An account with base64+zstd encoded data
381
+ """
360
382
  type AccountBase64Zstd implements Account {
361
383
  address: Address
362
384
  data: Base64ZstdEncodedBytes
@@ -367,10 +389,12 @@ var accountTypeDefs = (
367
389
  rentEpoch: BigInt
368
390
  }
369
391
 
370
- # A nonce account
371
392
  type NonceAccountFeeCalculator {
372
393
  lamportsPerSignature: String
373
394
  }
395
+ """
396
+ A nonce account
397
+ """
374
398
  type NonceAccount implements Account {
375
399
  address: Address
376
400
  executable: Boolean
@@ -383,7 +407,9 @@ var accountTypeDefs = (
383
407
  feeCalculator: NonceAccountFeeCalculator
384
408
  }
385
409
 
386
- # A lookup table account
410
+ """
411
+ A lookup table account
412
+ """
387
413
  type LookupTableAccount implements Account {
388
414
  address: Address
389
415
  executable: Boolean
@@ -398,7 +424,9 @@ var accountTypeDefs = (
398
424
  lastExtendedSlotStartIndex: Int
399
425
  }
400
426
 
401
- # A mint account
427
+ """
428
+ A mint account
429
+ """
402
430
  type MintAccount implements Account {
403
431
  address: Address
404
432
  executable: Boolean
@@ -413,7 +441,9 @@ var accountTypeDefs = (
413
441
  supply: String
414
442
  }
415
443
 
416
- # A token account
444
+ """
445
+ A token account
446
+ """
417
447
  type TokenAccount implements Account {
418
448
  address: Address
419
449
  executable: Boolean
@@ -428,7 +458,6 @@ var accountTypeDefs = (
428
458
  tokenAmount: TokenAmount
429
459
  }
430
460
 
431
- # A stake account
432
461
  type StakeAccountDataMetaAuthorized {
433
462
  staker: Account
434
463
  withdrawer: Account
@@ -454,6 +483,9 @@ var accountTypeDefs = (
454
483
  creditsObserved: BigInt
455
484
  delegation: StakeAccountDataStakeDelegation
456
485
  }
486
+ """
487
+ A stake account
488
+ """
457
489
  type StakeAccount implements Account {
458
490
  address: Address
459
491
  executable: Boolean
@@ -465,7 +497,6 @@ var accountTypeDefs = (
465
497
  stake: StakeAccountDataStake
466
498
  }
467
499
 
468
- # A vote account
469
500
  type VoteAccountDataAuthorizedVoter {
470
501
  authorizedVoter: Account
471
502
  epoch: BigInt
@@ -483,6 +514,9 @@ var accountTypeDefs = (
483
514
  confirmationCount: Int
484
515
  slot: BigInt
485
516
  }
517
+ """
518
+ A vote account
519
+ """
486
520
  type VoteAccount implements Account {
487
521
  address: Address
488
522
  executable: Boolean
@@ -612,7 +646,9 @@ var blockTypeDefs = (
612
646
  version: String
613
647
  }
614
648
 
615
- # Block interface
649
+ """
650
+ Block interface
651
+ """
616
652
  interface Block {
617
653
  blockhash: String
618
654
  blockHeight: BigInt
@@ -623,7 +659,9 @@ var blockTypeDefs = (
623
659
  transactionDetails: String
624
660
  }
625
661
 
626
- # A block with account transaction details
662
+ """
663
+ A block with account transaction details
664
+ """
627
665
  type BlockWithAccounts implements Block {
628
666
  blockhash: String
629
667
  blockHeight: BigInt
@@ -635,7 +673,9 @@ var blockTypeDefs = (
635
673
  transactionDetails: String
636
674
  }
637
675
 
638
- # A block with full transaction details
676
+ """
677
+ A block with full transaction details
678
+ """
639
679
  type BlockWithFull implements Block {
640
680
  blockhash: String
641
681
  blockHeight: BigInt
@@ -647,7 +687,9 @@ var blockTypeDefs = (
647
687
  transactionDetails: String
648
688
  }
649
689
 
650
- # A block with none transaction details
690
+ """
691
+ A block with no transaction details
692
+ """
651
693
  type BlockWithNone implements Block {
652
694
  blockhash: String
653
695
  blockHeight: BigInt
@@ -658,7 +700,9 @@ var blockTypeDefs = (
658
700
  transactionDetails: String
659
701
  }
660
702
 
661
- # A block with signature transaction details
703
+ """
704
+ A block with signature transaction details
705
+ """
662
706
  type BlockWithSignatures implements Block {
663
707
  blockhash: String
664
708
  blockHeight: BigInt
@@ -841,19 +885,25 @@ var commonResolvers = {
841
885
  var instructionTypeDefs = (
842
886
  /* GraphQL */
843
887
  `
844
- # Transaction instruction interface
888
+ """
889
+ Transaction instruction interface
890
+ """
845
891
  interface TransactionInstruction {
846
892
  programId: Address
847
893
  }
848
894
 
849
- # Generic transaction instruction
895
+ """
896
+ Generic transaction instruction
897
+ """
850
898
  type GenericInstruction implements TransactionInstruction {
851
899
  accounts: [Address]
852
900
  data: Base64EncodedBytes
853
901
  programId: Address
854
902
  }
855
903
 
856
- # AddressLookupTable: CreateLookupTable
904
+ """
905
+ AddressLookupTable: CreateLookupTable instruction
906
+ """
857
907
  type CreateLookupTableInstruction implements TransactionInstruction {
858
908
  programId: Address
859
909
  bumpSeed: BigInt # FIXME:*
@@ -864,7 +914,9 @@ var instructionTypeDefs = (
864
914
  systemProgram: Account
865
915
  }
866
916
 
867
- # AddressLookupTable: ExtendLookupTable
917
+ """
918
+ AddressLookupTable: ExtendLookupTable instruction
919
+ """
868
920
  type ExtendLookupTableInstruction implements TransactionInstruction {
869
921
  programId: Address
870
922
  lookupTableAccount: Account
@@ -874,21 +926,27 @@ var instructionTypeDefs = (
874
926
  systemProgram: Account
875
927
  }
876
928
 
877
- # AddressLookupTable: FreezeLookupTable
929
+ """
930
+ AddressLookupTable: FreezeLookupTable instruction
931
+ """
878
932
  type FreezeLookupTableInstruction implements TransactionInstruction {
879
933
  programId: Address
880
934
  lookupTableAccount: Account
881
935
  lookupTableAuthority: Account
882
936
  }
883
937
 
884
- # AddressLookupTable: DeactivateLookupTable
938
+ """
939
+ AddressLookupTable: DeactivateLookupTable instruction
940
+ """
885
941
  type DeactivateLookupTableInstruction implements TransactionInstruction {
886
942
  programId: Address
887
943
  lookupTableAccount: Account
888
944
  lookupTableAuthority: Account
889
945
  }
890
946
 
891
- # AddressLookupTable: CloseLookupTable
947
+ """
948
+ AddressLookupTable: CloseLookupTable instruction
949
+ """
892
950
  type CloseLookupTableInstruction implements TransactionInstruction {
893
951
  programId: Address
894
952
  lookupTableAccount: Account
@@ -896,7 +954,9 @@ var instructionTypeDefs = (
896
954
  recipient: Account
897
955
  }
898
956
 
899
- # BpfLoader: Write
957
+ """
958
+ BpfLoader: Write instruction
959
+ """
900
960
  type BpfLoaderWriteInstruction implements TransactionInstruction {
901
961
  programId: Address
902
962
  account: Account
@@ -904,19 +964,25 @@ var instructionTypeDefs = (
904
964
  offset: BigInt # FIXME:*
905
965
  }
906
966
 
907
- # BpfLoader: Finalize
967
+ """
968
+ BpfLoader: Finalize instruction
969
+ """
908
970
  type BpfLoaderFinalizeInstruction implements TransactionInstruction {
909
971
  programId: Address
910
972
  account: Account
911
973
  }
912
974
 
913
- # BpfUpgradeableLoader: InitializeBuffer
975
+ """
976
+ BpfUpgradeableLoader: InitializeBuffer instruction
977
+ """
914
978
  type BpfUpgradeableLoaderInitializeBufferInstruction implements TransactionInstruction {
915
979
  programId: Address
916
980
  account: Account
917
981
  }
918
982
 
919
- # BpfUpgradeableLoader: Write
983
+ """
984
+ BpfUpgradeableLoader: Write instruction
985
+ """
920
986
  type BpfUpgradeableLoaderWriteInstruction implements TransactionInstruction {
921
987
  programId: Address
922
988
  account: Account
@@ -925,7 +991,9 @@ var instructionTypeDefs = (
925
991
  offset: BigInt # FIXME:*
926
992
  }
927
993
 
928
- # BpfUpgradeableLoader: DeployWithMaxDataLen
994
+ """
995
+ BpfUpgradeableLoader: DeployWithMaxDataLen instruction
996
+ """
929
997
  type BpfUpgradeableLoaderDeployWithMaxDataLenInstruction implements TransactionInstruction {
930
998
  programId: Address
931
999
  authority: Account
@@ -938,7 +1006,9 @@ var instructionTypeDefs = (
938
1006
  rentSysvar: Address
939
1007
  }
940
1008
 
941
- # BpfUpgradeableLoader: Upgrade
1009
+ """
1010
+ BpfUpgradeableLoader: Upgrade instruction
1011
+ """
942
1012
  type BpfUpgradeableLoaderUpgradeInstruction implements TransactionInstruction {
943
1013
  programId: Address
944
1014
  authority: Account
@@ -950,8 +1020,9 @@ var instructionTypeDefs = (
950
1020
  spillAccount: Account
951
1021
  }
952
1022
 
953
- # BpfUpgradeableLoader: SetAuthority
954
-
1023
+ """
1024
+ BpfUpgradeableLoader: SetAuthority instruction
1025
+ """
955
1026
  type BpfUpgradeableLoaderSetAuthorityInstruction implements TransactionInstruction {
956
1027
  programId: Address
957
1028
  account: Account
@@ -959,7 +1030,9 @@ var instructionTypeDefs = (
959
1030
  newAuthority: Account
960
1031
  }
961
1032
 
962
- # BpfUpgradeableLoader: SetAuthorityChecked
1033
+ """
1034
+ BpfUpgradeableLoader: SetAuthorityChecked instruction
1035
+ """
963
1036
  type BpfUpgradeableLoaderSetAuthorityCheckedInstruction implements TransactionInstruction {
964
1037
  programId: Address
965
1038
  account: Account
@@ -967,7 +1040,9 @@ var instructionTypeDefs = (
967
1040
  newAuthority: Account
968
1041
  }
969
1042
 
970
- # BpfUpgradeableLoader: Close
1043
+ """
1044
+ BpfUpgradeableLoader: Close instruction
1045
+ """
971
1046
  type BpfUpgradeableLoaderCloseInstruction implements TransactionInstruction {
972
1047
  programId: Address
973
1048
  account: Account
@@ -976,7 +1051,9 @@ var instructionTypeDefs = (
976
1051
  recipient: Account
977
1052
  }
978
1053
 
979
- # BpfUpgradeableLoader: ExtendProgram
1054
+ """
1055
+ BpfUpgradeableLoader: ExtendProgram instruction
1056
+ """
980
1057
  type BpfUpgradeableLoaderExtendProgramInstruction implements TransactionInstruction {
981
1058
  programId: Address
982
1059
  additionalBytes: BigInt
@@ -986,7 +1063,9 @@ var instructionTypeDefs = (
986
1063
  systemProgram: Account
987
1064
  }
988
1065
 
989
- # SplAssociatedTokenAccount: Create
1066
+ """
1067
+ SplAssociatedTokenAccount: Create instruction
1068
+ """
990
1069
  type SplAssociatedTokenCreateInstruction implements TransactionInstruction {
991
1070
  programId: Address
992
1071
  account: Account
@@ -997,7 +1076,9 @@ var instructionTypeDefs = (
997
1076
  wallet: Account
998
1077
  }
999
1078
 
1000
- # SplAssociatedTokenAccount: CreateIdempotent
1079
+ """
1080
+ SplAssociatedTokenAccount: CreateIdempotent instruction
1081
+ """
1001
1082
  type SplAssociatedTokenCreateIdempotentInstruction implements TransactionInstruction {
1002
1083
  programId: Address
1003
1084
  account: Account
@@ -1008,7 +1089,9 @@ var instructionTypeDefs = (
1008
1089
  wallet: Account
1009
1090
  }
1010
1091
 
1011
- # SplAssociatedTokenAccount: RecoverNested
1092
+ """
1093
+ SplAssociatedTokenAccount: RecoverNested instruction
1094
+ """
1012
1095
  type SplAssociatedTokenRecoverNestedInstruction implements TransactionInstruction {
1013
1096
  programId: Address
1014
1097
  destination: Account
@@ -1020,13 +1103,17 @@ var instructionTypeDefs = (
1020
1103
  wallet: Account
1021
1104
  }
1022
1105
 
1023
- # SplMemo
1106
+ """
1107
+ SplMemo instruction
1108
+ """
1024
1109
  type SplMemoInstruction implements TransactionInstruction {
1025
1110
  programId: Address
1026
- data: String
1111
+ memo: String
1027
1112
  }
1028
1113
 
1029
- # SplToken: InitializeMint
1114
+ """
1115
+ SplToken: InitializeMint instruction
1116
+ """
1030
1117
  type SplTokenInitializeMintInstruction implements TransactionInstruction {
1031
1118
  programId: Address
1032
1119
  decimals: BigInt # FIXME:*
@@ -1036,7 +1123,9 @@ var instructionTypeDefs = (
1036
1123
  rentSysvar: Address
1037
1124
  }
1038
1125
 
1039
- # SplToken: InitializeMint2
1126
+ """
1127
+ SplToken: InitializeMint2 instruction
1128
+ """
1040
1129
  type SplTokenInitializeMint2Instruction implements TransactionInstruction {
1041
1130
  programId: Address
1042
1131
  decimals: BigInt # FIXME:*
@@ -1045,7 +1134,9 @@ var instructionTypeDefs = (
1045
1134
  mintAuthority: Account
1046
1135
  }
1047
1136
 
1048
- # SplToken: InitializeAccount
1137
+ """
1138
+ SplToken: InitializeAccount instruction
1139
+ """
1049
1140
  type SplTokenInitializeAccountInstruction implements TransactionInstruction {
1050
1141
  programId: Address
1051
1142
  account: Account
@@ -1054,7 +1145,9 @@ var instructionTypeDefs = (
1054
1145
  rentSysvar: Address
1055
1146
  }
1056
1147
 
1057
- # SplToken: InitializeAccount2
1148
+ """
1149
+ SplToken: InitializeAccount2 instruction
1150
+ """
1058
1151
  type SplTokenInitializeAccount2Instruction implements TransactionInstruction {
1059
1152
  programId: Address
1060
1153
  account: Account
@@ -1063,7 +1156,9 @@ var instructionTypeDefs = (
1063
1156
  rentSysvar: Address
1064
1157
  }
1065
1158
 
1066
- # SplToken: InitializeAccount3
1159
+ """
1160
+ SplToken: InitializeAccount3 instruction
1161
+ """
1067
1162
  type SplTokenInitializeAccount3Instruction implements TransactionInstruction {
1068
1163
  programId: Address
1069
1164
  account: Account
@@ -1071,7 +1166,9 @@ var instructionTypeDefs = (
1071
1166
  owner: Account
1072
1167
  }
1073
1168
 
1074
- # SplToken: InitializeMultisig
1169
+ """
1170
+ SplToken: InitializeMultisig instruction
1171
+ """
1075
1172
  type SplTokenInitializeMultisigInstruction implements TransactionInstruction {
1076
1173
  programId: Address
1077
1174
  m: BigInt # FIXME:*
@@ -1080,7 +1177,9 @@ var instructionTypeDefs = (
1080
1177
  signers: [Address]
1081
1178
  }
1082
1179
 
1083
- # SplToken: InitializeMultisig2
1180
+ """
1181
+ SplToken: InitializeMultisig2 instruction
1182
+ """
1084
1183
  type SplTokenInitializeMultisig2Instruction implements TransactionInstruction {
1085
1184
  programId: Address
1086
1185
  m: BigInt # FIXME:*
@@ -1088,7 +1187,9 @@ var instructionTypeDefs = (
1088
1187
  signers: [Address]
1089
1188
  }
1090
1189
 
1091
- # SplToken: Transfer
1190
+ """
1191
+ SplToken: Transfer instruction
1192
+ """
1092
1193
  type SplTokenTransferInstruction implements TransactionInstruction {
1093
1194
  programId: Address
1094
1195
  amount: String
@@ -1098,7 +1199,9 @@ var instructionTypeDefs = (
1098
1199
  source: Account
1099
1200
  }
1100
1201
 
1101
- # SplToken: Approve
1202
+ """
1203
+ SplToken: Approve instruction
1204
+ """
1102
1205
  type SplTokenApproveInstruction implements TransactionInstruction {
1103
1206
  programId: Address
1104
1207
  amount: String
@@ -1108,7 +1211,9 @@ var instructionTypeDefs = (
1108
1211
  source: Account
1109
1212
  }
1110
1213
 
1111
- # SplToken: Revoke
1214
+ """
1215
+ SplToken: Revoke instruction
1216
+ """
1112
1217
  type SplTokenRevokeInstruction implements TransactionInstruction {
1113
1218
  programId: Address
1114
1219
  multisigOwner: Account
@@ -1116,7 +1221,9 @@ var instructionTypeDefs = (
1116
1221
  source: Account
1117
1222
  }
1118
1223
 
1119
- # SplToken: SetAuthority
1224
+ """
1225
+ SplToken: SetAuthority instruction
1226
+ """
1120
1227
  type SplTokenSetAuthorityInstruction implements TransactionInstruction {
1121
1228
  programId: Address
1122
1229
  authority: Account
@@ -1125,7 +1232,9 @@ var instructionTypeDefs = (
1125
1232
  newAuthority: Account
1126
1233
  }
1127
1234
 
1128
- # SplToken: MintTo
1235
+ """
1236
+ SplToken: MintTo instruction
1237
+ """
1129
1238
  type SplTokenMintToInstruction implements TransactionInstruction {
1130
1239
  programId: Address
1131
1240
  account: Account
@@ -1136,7 +1245,9 @@ var instructionTypeDefs = (
1136
1245
  multisigMintAuthority: Account
1137
1246
  }
1138
1247
 
1139
- # SplToken: Burn
1248
+ """
1249
+ SplToken: Burn instruction
1250
+ """
1140
1251
  type SplTokenBurnInstruction implements TransactionInstruction {
1141
1252
  programId: Address
1142
1253
  account: Account
@@ -1146,7 +1257,9 @@ var instructionTypeDefs = (
1146
1257
  multisigAuthority: Account
1147
1258
  }
1148
1259
 
1149
- # SplToken: CloseAccount
1260
+ """
1261
+ SplToken: CloseAccount instruction
1262
+ """
1150
1263
  type SplTokenCloseAccountInstruction implements TransactionInstruction {
1151
1264
  programId: Address
1152
1265
  account: Account
@@ -1155,7 +1268,9 @@ var instructionTypeDefs = (
1155
1268
  owner: Account
1156
1269
  }
1157
1270
 
1158
- # SplToken: FreezeAccount
1271
+ """
1272
+ SplToken: FreezeAccount instruction
1273
+ """
1159
1274
  type SplTokenFreezeAccountInstruction implements TransactionInstruction {
1160
1275
  programId: Address
1161
1276
  account: Account
@@ -1164,7 +1279,9 @@ var instructionTypeDefs = (
1164
1279
  multisigFreezeAuthority: Account
1165
1280
  }
1166
1281
 
1167
- # SplToken: ThawAccount
1282
+ """
1283
+ SplToken: ThawAccount instruction
1284
+ """
1168
1285
  type SplTokenThawAccountInstruction implements TransactionInstruction {
1169
1286
  programId: Address
1170
1287
  account: Account
@@ -1173,7 +1290,9 @@ var instructionTypeDefs = (
1173
1290
  multisigFreezeAuthority: Account
1174
1291
  }
1175
1292
 
1176
- # SplToken: TransferChecked
1293
+ """
1294
+ SplToken: TransferChecked instruction
1295
+ """
1177
1296
  type SplTokenTransferCheckedInstruction implements TransactionInstruction {
1178
1297
  programId: Address
1179
1298
  amount: String
@@ -1186,7 +1305,9 @@ var instructionTypeDefs = (
1186
1305
  tokenAmount: String
1187
1306
  }
1188
1307
 
1189
- # SplToken: ApproveChecked
1308
+ """
1309
+ SplToken: ApproveChecked instruction
1310
+ """
1190
1311
  type SplTokenApproveCheckedInstruction implements TransactionInstruction {
1191
1312
  programId: Address
1192
1313
  delegate: Account
@@ -1197,7 +1318,9 @@ var instructionTypeDefs = (
1197
1318
  tokenAmount: String
1198
1319
  }
1199
1320
 
1200
- # SplToken: MintToChecked
1321
+ """
1322
+ SplToken: MintToChecked instruction
1323
+ """
1201
1324
  type SplTokenMintToCheckedInstruction implements TransactionInstruction {
1202
1325
  programId: Address
1203
1326
  account: Account
@@ -1208,7 +1331,9 @@ var instructionTypeDefs = (
1208
1331
  tokenAmount: String
1209
1332
  }
1210
1333
 
1211
- # SplToken: BurnChecked
1334
+ """
1335
+ SplToken: BurnChecked instruction
1336
+ """
1212
1337
  type SplTokenBurnCheckedInstruction implements TransactionInstruction {
1213
1338
  programId: Address
1214
1339
  account: Account
@@ -1218,40 +1343,52 @@ var instructionTypeDefs = (
1218
1343
  tokenAmount: String
1219
1344
  }
1220
1345
 
1221
- # SplToken: SyncNative
1346
+ """
1347
+ SplToken: SyncNative instruction
1348
+ """
1222
1349
  type SplTokenSyncNativeInstruction implements TransactionInstruction {
1223
1350
  programId: Address
1224
1351
  account: Account
1225
1352
  }
1226
1353
 
1227
- # SplToken: GetAccountDataSize
1354
+ """
1355
+ SplToken: GetAccountDataSize instruction
1356
+ """
1228
1357
  type SplTokenGetAccountDataSizeInstruction implements TransactionInstruction {
1229
1358
  programId: Address
1230
1359
  extensionTypes: [String]
1231
1360
  mint: Account
1232
1361
  }
1233
1362
 
1234
- # SplToken: InitializeImmutableOwner
1363
+ """
1364
+ SplToken: InitializeImmutableOwner instruction
1365
+ """
1235
1366
  type SplTokenInitializeImmutableOwnerInstruction implements TransactionInstruction {
1236
1367
  programId: Address
1237
1368
  account: Account
1238
1369
  }
1239
1370
 
1240
- # SplToken: AmountToUiAmount
1371
+ """
1372
+ SplToken: AmountToUiAmount instruction
1373
+ """
1241
1374
  type SplTokenAmountToUiAmountInstruction implements TransactionInstruction {
1242
1375
  programId: Address
1243
1376
  amount: String
1244
1377
  mint: Account
1245
1378
  }
1246
1379
 
1247
- # SplToken: UiAmountToAmount
1380
+ """
1381
+ SplToken: UiAmountToAmount instruction
1382
+ """
1248
1383
  type SplTokenUiAmountToAmountInstruction implements TransactionInstruction {
1249
1384
  programId: Address
1250
1385
  mint: Account
1251
1386
  uiAmount: String
1252
1387
  }
1253
1388
 
1254
- # SplToken: InitializeMintCloseAuthority
1389
+ """
1390
+ SplToken: InitializeMintCloseAuthority instruction
1391
+ """
1255
1392
  type SplTokenInitializeMintCloseAuthorityInstruction implements TransactionInstruction {
1256
1393
  programId: Address
1257
1394
  mint: Account
@@ -1280,7 +1417,9 @@ var instructionTypeDefs = (
1280
1417
  unixTimestamp: BigInt
1281
1418
  }
1282
1419
 
1283
- # Stake: Initialize
1420
+ """
1421
+ Stake: Initialize instruction
1422
+ """
1284
1423
  type StakeInitializeInstructionDataAuthorized {
1285
1424
  staker: Account
1286
1425
  withdrawer: Account
@@ -1293,7 +1432,9 @@ var instructionTypeDefs = (
1293
1432
  stakeAccount: Account
1294
1433
  }
1295
1434
 
1296
- # Stake: Authorize
1435
+ """
1436
+ Stake: Authorize instruction
1437
+ """
1297
1438
  type StakeAuthorizeInstruction implements TransactionInstruction {
1298
1439
  programId: Address
1299
1440
  authority: Account
@@ -1304,7 +1445,9 @@ var instructionTypeDefs = (
1304
1445
  stakeAccount: Account
1305
1446
  }
1306
1447
 
1307
- # Stake: DelegateStake
1448
+ """
1449
+ Stake: DelegateStake instruction
1450
+ """
1308
1451
  type StakeDelegateStakeInstruction implements TransactionInstruction {
1309
1452
  programId: Address
1310
1453
  clockSysvar: Address
@@ -1315,7 +1458,9 @@ var instructionTypeDefs = (
1315
1458
  voteAccount: Account
1316
1459
  }
1317
1460
 
1318
- # Stake: Split
1461
+ """
1462
+ Stake: Split instruction
1463
+ """
1319
1464
  type StakeSplitInstruction implements TransactionInstruction {
1320
1465
  programId: Address
1321
1466
  lamports: BigInt
@@ -1324,7 +1469,9 @@ var instructionTypeDefs = (
1324
1469
  stakeAuthority: Account
1325
1470
  }
1326
1471
 
1327
- # Stake: Withdraw
1472
+ """
1473
+ Stake: Withdraw instruction
1474
+ """
1328
1475
  type StakeWithdrawInstruction implements TransactionInstruction {
1329
1476
  programId: Address
1330
1477
  clockSysvar: Address
@@ -1334,7 +1481,9 @@ var instructionTypeDefs = (
1334
1481
  withdrawAuthority: Account
1335
1482
  }
1336
1483
 
1337
- # Stake: Deactivate
1484
+ """
1485
+ Stake: Deactivate instruction
1486
+ """
1338
1487
  type StakeDeactivateInstruction implements TransactionInstruction {
1339
1488
  programId: Address
1340
1489
  clockSysvar: Address
@@ -1342,7 +1491,9 @@ var instructionTypeDefs = (
1342
1491
  stakeAuthority: Account
1343
1492
  }
1344
1493
 
1345
- # Stake: SetLockup
1494
+ """
1495
+ Stake: SetLockup instruction
1496
+ """
1346
1497
  type StakeSetLockupInstruction implements TransactionInstruction {
1347
1498
  programId: Address
1348
1499
  custodian: Account
@@ -1350,7 +1501,9 @@ var instructionTypeDefs = (
1350
1501
  stakeAccount: Account
1351
1502
  }
1352
1503
 
1353
- # Stake: Merge
1504
+ """
1505
+ Stake: Merge instruction
1506
+ """
1354
1507
  type StakeMergeInstruction implements TransactionInstruction {
1355
1508
  programId: Address
1356
1509
  clockSysvar: Address
@@ -1360,7 +1513,9 @@ var instructionTypeDefs = (
1360
1513
  stakeHistorySysvar: Address
1361
1514
  }
1362
1515
 
1363
- # Stake: AuthorizeWithSeed
1516
+ """
1517
+ Stake: AuthorizeWithSeed instruction
1518
+ """
1364
1519
  type StakeAuthorizeWithSeedInstruction implements TransactionInstruction {
1365
1520
  programId: Address
1366
1521
  authorityBase: Account
@@ -1373,7 +1528,9 @@ var instructionTypeDefs = (
1373
1528
  stakeAccount: Account
1374
1529
  }
1375
1530
 
1376
- # Stake: InitializeChecked
1531
+ """
1532
+ Stake: InitializeChecked instruction
1533
+ """
1377
1534
  type StakeInitializeCheckedInstructionDataAuthorized {
1378
1535
  staker: Account
1379
1536
  withdrawer: Account
@@ -1386,7 +1543,9 @@ var instructionTypeDefs = (
1386
1543
  stakeAccount: Account
1387
1544
  }
1388
1545
 
1389
- # Stake: AuthorizeChecked
1546
+ """
1547
+ Stake: AuthorizeChecked instruction
1548
+ """
1390
1549
  type StakeAuthorizeCheckedInstruction implements TransactionInstruction {
1391
1550
  programId: Address
1392
1551
  authority: Account
@@ -1397,7 +1556,9 @@ var instructionTypeDefs = (
1397
1556
  stakeAccount: Account
1398
1557
  }
1399
1558
 
1400
- # Stake: AuthorizeCheckedWithSeed
1559
+ """
1560
+ Stake: AuthorizeCheckedWithSeed instruction
1561
+ """
1401
1562
  type StakeAuthorizeCheckedWithSeedInstruction implements TransactionInstruction {
1402
1563
  programId: Address
1403
1564
  authorityBase: Account
@@ -1410,7 +1571,9 @@ var instructionTypeDefs = (
1410
1571
  stakeAccount: Account
1411
1572
  }
1412
1573
 
1413
- # Stake: SetLockupChecked
1574
+ """
1575
+ Stake: SetLockupChecked instruction
1576
+ """
1414
1577
  type StakeSetLockupCheckedInstruction implements TransactionInstruction {
1415
1578
  programId: Address
1416
1579
  custodian: Account
@@ -1418,7 +1581,9 @@ var instructionTypeDefs = (
1418
1581
  stakeAccount: Account
1419
1582
  }
1420
1583
 
1421
- # Stake: DeactivateDelinquent
1584
+ """
1585
+ Stake: DeactivateDelinquent instruction
1586
+ """
1422
1587
  type StakeDeactivateDelinquentInstruction implements TransactionInstruction {
1423
1588
  programId: Address
1424
1589
  referenceVoteAccount: Account
@@ -1426,7 +1591,9 @@ var instructionTypeDefs = (
1426
1591
  voteAccount: Account
1427
1592
  }
1428
1593
 
1429
- # Stake: Redelegate
1594
+ """
1595
+ Stake: Redelegate instruction
1596
+ """
1430
1597
  type StakeRedelegateInstruction implements TransactionInstruction {
1431
1598
  programId: Address
1432
1599
  newStakeAccount: Account
@@ -1436,7 +1603,9 @@ var instructionTypeDefs = (
1436
1603
  voteAccount: Account
1437
1604
  }
1438
1605
 
1439
- # System: CreateAccount
1606
+ """
1607
+ System: CreateAccount instruction
1608
+ """
1440
1609
  type CreateAccountInstruction implements TransactionInstruction {
1441
1610
  programId: Address
1442
1611
  lamports: BigInt
@@ -1446,14 +1615,18 @@ var instructionTypeDefs = (
1446
1615
  space: BigInt
1447
1616
  }
1448
1617
 
1449
- # System: Assign
1618
+ """
1619
+ System: Assign instruction
1620
+ """
1450
1621
  type AssignInstruction implements TransactionInstruction {
1451
1622
  programId: Address
1452
1623
  account: Account
1453
1624
  owner: Account
1454
1625
  }
1455
1626
 
1456
- # System: Transfer
1627
+ """
1628
+ System: Transfer instruction
1629
+ """
1457
1630
  type TransferInstruction implements TransactionInstruction {
1458
1631
  programId: Address
1459
1632
  destination: Account
@@ -1461,7 +1634,9 @@ var instructionTypeDefs = (
1461
1634
  source: Account
1462
1635
  }
1463
1636
 
1464
- # System: CreateAccountWithSeed
1637
+ """
1638
+ System: CreateAccountWithSeed instruction
1639
+ """
1465
1640
  type CreateAccountWithSeedInstruction implements TransactionInstruction {
1466
1641
  programId: Address
1467
1642
  base: Account
@@ -1471,7 +1646,9 @@ var instructionTypeDefs = (
1471
1646
  space: BigInt
1472
1647
  }
1473
1648
 
1474
- # System: AdvanceNonceAccount
1649
+ """
1650
+ System: AdvanceNonceAccount instruction
1651
+ """
1475
1652
  type AdvanceNonceAccountInstruction implements TransactionInstruction {
1476
1653
  programId: Address
1477
1654
  nonceAccount: Account
@@ -1479,7 +1656,9 @@ var instructionTypeDefs = (
1479
1656
  recentBlockhashesSysvar: Address
1480
1657
  }
1481
1658
 
1482
- # System: WithdrawNonceAccount
1659
+ """
1660
+ System: WithdrawNonceAccount instruction
1661
+ """
1483
1662
  type WithdrawNonceAccountInstruction implements TransactionInstruction {
1484
1663
  programId: Address
1485
1664
  destination: Account
@@ -1490,7 +1669,9 @@ var instructionTypeDefs = (
1490
1669
  rentSysvar: Address
1491
1670
  }
1492
1671
 
1493
- # System: InitializeNonceAccount
1672
+ """
1673
+ System: InitializeNonceAccount instruction
1674
+ """
1494
1675
  type InitializeNonceAccountInstruction implements TransactionInstruction {
1495
1676
  programId: Address
1496
1677
  nonceAccount: Account
@@ -1499,7 +1680,9 @@ var instructionTypeDefs = (
1499
1680
  rentSysvar: Address
1500
1681
  }
1501
1682
 
1502
- # System: AuthorizeNonceAccount
1683
+ """
1684
+ System: AuthorizeNonceAccount instruction
1685
+ """
1503
1686
  type AuthorizeNonceAccountInstruction implements TransactionInstruction {
1504
1687
  programId: Address
1505
1688
  newAuthorized: Account
@@ -1507,21 +1690,27 @@ var instructionTypeDefs = (
1507
1690
  nonceAuthority: Account
1508
1691
  }
1509
1692
 
1510
- # System: UpgradeNonceAccount
1693
+ """
1694
+ System: UpgradeNonceAccount instruction
1695
+ """
1511
1696
  type UpgradeNonceAccountInstruction implements TransactionInstruction {
1512
1697
  programId: Address
1513
1698
  nonceAccount: Account
1514
1699
  nonceAuthority: Account
1515
1700
  }
1516
1701
 
1517
- # System: Allocate
1702
+ """
1703
+ System: Allocate instruction
1704
+ """
1518
1705
  type AllocateInstruction implements TransactionInstruction {
1519
1706
  programId: Address
1520
1707
  account: Account
1521
1708
  space: BigInt
1522
1709
  }
1523
1710
 
1524
- # System: AllocateWithSeed
1711
+ """
1712
+ System: AllocateWithSeed instruction
1713
+ """
1525
1714
  type AllocateWithSeedInstruction implements TransactionInstruction {
1526
1715
  programId: Address
1527
1716
  account: Account
@@ -1531,7 +1720,9 @@ var instructionTypeDefs = (
1531
1720
  space: BigInt
1532
1721
  }
1533
1722
 
1534
- # System: AssignWithSeed
1723
+ """
1724
+ System: AssignWithSeed instruction
1725
+ """
1535
1726
  type AssignWithSeedInstruction implements TransactionInstruction {
1536
1727
  programId: Address
1537
1728
  account: Account
@@ -1540,7 +1731,9 @@ var instructionTypeDefs = (
1540
1731
  seed: String
1541
1732
  }
1542
1733
 
1543
- # System: TransferWithSeed
1734
+ """
1735
+ System: TransferWithSeed instruction
1736
+ """
1544
1737
  type TransferWithSeedInstruction implements TransactionInstruction {
1545
1738
  programId: Address
1546
1739
  destination: Account
@@ -1551,7 +1744,9 @@ var instructionTypeDefs = (
1551
1744
  sourceSeed: String
1552
1745
  }
1553
1746
 
1554
- # Vote: InitializeAccount
1747
+ """
1748
+ Vote: InitializeAccount instruction
1749
+ """
1555
1750
  type VoteInitializeAccountInstruction implements TransactionInstruction {
1556
1751
  programId: Address
1557
1752
  authorizedVoter: Account
@@ -1563,7 +1758,9 @@ var instructionTypeDefs = (
1563
1758
  voteAccount: Account
1564
1759
  }
1565
1760
 
1566
- # Vote: Authorize
1761
+ """
1762
+ Vote: Authorize instruction
1763
+ """
1567
1764
  type VoteAuthorizeInstruction implements TransactionInstruction {
1568
1765
  programId: Address
1569
1766
  authority: Account
@@ -1573,7 +1770,9 @@ var instructionTypeDefs = (
1573
1770
  voteAccount: Account
1574
1771
  }
1575
1772
 
1576
- # Vote: AuthorizeWithSeed
1773
+ """
1774
+ Vote: AuthorizeWithSeed instruction
1775
+ """
1577
1776
  type VoteAuthorizeWithSeedInstruction implements TransactionInstruction {
1578
1777
  programId: Address
1579
1778
  authorityBaseKey: String
@@ -1585,7 +1784,9 @@ var instructionTypeDefs = (
1585
1784
  voteAccount: Account
1586
1785
  }
1587
1786
 
1588
- # Vote: AuthorizeCheckedWithSeed
1787
+ """
1788
+ Vote: AuthorizeCheckedWithSeed instruction
1789
+ """
1589
1790
  type VoteAuthorizeCheckedWithSeedInstruction implements TransactionInstruction {
1590
1791
  programId: Address
1591
1792
  authorityBaseKey: String
@@ -1603,7 +1804,9 @@ var instructionTypeDefs = (
1603
1804
  timestamp: BigInt
1604
1805
  }
1605
1806
 
1606
- # Vote: Vote
1807
+ """
1808
+ Vote: Vote instruction
1809
+ """
1607
1810
  type VoteVoteInstruction implements TransactionInstruction {
1608
1811
  programId: Address
1609
1812
  clockSysvar: Address
@@ -1624,7 +1827,9 @@ var instructionTypeDefs = (
1624
1827
  timestamp: BigInt
1625
1828
  }
1626
1829
 
1627
- # Vote: UpdateVoteState
1830
+ """
1831
+ Vote: UpdateVoteState instruction
1832
+ """
1628
1833
  type VoteUpdateVoteStateInstruction implements TransactionInstruction {
1629
1834
  programId: Address
1630
1835
  hash: String
@@ -1633,7 +1838,9 @@ var instructionTypeDefs = (
1633
1838
  voteStateUpdate: VoteStateUpdate
1634
1839
  }
1635
1840
 
1636
- # Vote: UpdateVoteStateSwitch
1841
+ """
1842
+ Vote: UpdateVoteStateSwitch instruction
1843
+ """
1637
1844
  type VoteUpdateVoteStateSwitchInstruction implements TransactionInstruction {
1638
1845
  programId: Address
1639
1846
  hash: String
@@ -1642,7 +1849,9 @@ var instructionTypeDefs = (
1642
1849
  voteStateUpdate: VoteStateUpdate
1643
1850
  }
1644
1851
 
1645
- # Vote: CompactUpdateVoteState
1852
+ """
1853
+ Vote: CompactUpdateVoteState instruction
1854
+ """
1646
1855
  type VoteCompactUpdateVoteStateInstruction implements TransactionInstruction {
1647
1856
  programId: Address
1648
1857
  hash: String
@@ -1651,7 +1860,9 @@ var instructionTypeDefs = (
1651
1860
  voteStateUpdate: VoteStateUpdate
1652
1861
  }
1653
1862
 
1654
- # Vote: CompactUpdateVoteStateSwitch
1863
+ """
1864
+ Vote: CompactUpdateVoteStateSwitch instruction
1865
+ """
1655
1866
  type VoteCompactUpdateVoteStateSwitchInstruction implements TransactionInstruction {
1656
1867
  programId: Address
1657
1868
  hash: String
@@ -1660,7 +1871,9 @@ var instructionTypeDefs = (
1660
1871
  voteStateUpdate: VoteStateUpdate
1661
1872
  }
1662
1873
 
1663
- # Vote: Withdraw
1874
+ """
1875
+ Vote: Withdraw instruction
1876
+ """
1664
1877
  type VoteWithdrawInstruction implements TransactionInstruction {
1665
1878
  programId: Address
1666
1879
  destination: Account
@@ -1669,7 +1882,9 @@ var instructionTypeDefs = (
1669
1882
  withdrawAuthority: Account
1670
1883
  }
1671
1884
 
1672
- # Vote: UpdateValidatorIdentity
1885
+ """
1886
+ Vote: UpdateValidatorIdentity instruction
1887
+ """
1673
1888
  type VoteUpdateValidatorIdentityInstruction implements TransactionInstruction {
1674
1889
  programId: Address
1675
1890
  newValidatorIdentity: Account
@@ -1677,7 +1892,9 @@ var instructionTypeDefs = (
1677
1892
  withdrawAuthority: Account
1678
1893
  }
1679
1894
 
1680
- # Vote: UpdateCommission
1895
+ """
1896
+ Vote: UpdateCommission instruction
1897
+ """
1681
1898
  type VoteUpdateCommissionInstruction implements TransactionInstruction {
1682
1899
  programId: Address
1683
1900
  commission: BigInt # FIXME:*
@@ -1685,7 +1902,9 @@ var instructionTypeDefs = (
1685
1902
  withdrawAuthority: Account
1686
1903
  }
1687
1904
 
1688
- # Vote: VoteSwitch
1905
+ """
1906
+ Vote: VoteSwitch instruction
1907
+ """
1689
1908
  type VoteVoteSwitchInstruction implements TransactionInstruction {
1690
1909
  programId: Address
1691
1910
  clockSysvar: Address
@@ -1696,7 +1915,9 @@ var instructionTypeDefs = (
1696
1915
  voteAuthority: Account
1697
1916
  }
1698
1917
 
1699
- # Vote: AuthorizeChecked
1918
+ """
1919
+ Vote: AuthorizeChecked instruction
1920
+ """
1700
1921
  type VoteAuthorizeCheckedInstruction implements TransactionInstruction {
1701
1922
  programId: Address
1702
1923
  authority: Account
@@ -2488,7 +2709,9 @@ var transactionTypeDefs = (
2488
2709
  recentBlockhash: String
2489
2710
  }
2490
2711
 
2491
- # Transaction interface
2712
+ """
2713
+ Transaction interface
2714
+ """
2492
2715
  interface Transaction {
2493
2716
  blockTime: String
2494
2717
  meta: TransactionMeta
@@ -2496,7 +2719,9 @@ var transactionTypeDefs = (
2496
2719
  version: String
2497
2720
  }
2498
2721
 
2499
- # A transaction with base58 encoded data
2722
+ """
2723
+ A transaction with base58 encoded data
2724
+ """
2500
2725
  type TransactionBase58 implements Transaction {
2501
2726
  blockTime: String
2502
2727
  data: Base58EncodedBytes
@@ -2505,7 +2730,9 @@ var transactionTypeDefs = (
2505
2730
  version: String
2506
2731
  }
2507
2732
 
2508
- # A transaction with base64 encoded data
2733
+ """
2734
+ A transaction with base64 encoded data
2735
+ """
2509
2736
  type TransactionBase64 implements Transaction {
2510
2737
  blockTime: String
2511
2738
  data: Base64EncodedBytes
@@ -2514,7 +2741,9 @@ var transactionTypeDefs = (
2514
2741
  version: String
2515
2742
  }
2516
2743
 
2517
- # A transaction with JSON encoded data
2744
+ """
2745
+ A transaction with JSON encoded data
2746
+ """
2518
2747
  type TransactionDataParsed {
2519
2748
  message: TransactionMessage
2520
2749
  signatures: [String]