@solana/rpc-graphql 2.0.0-experimental.ef2569b → 2.0.0-experimental.f2a2e5b

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 (40) hide show
  1. package/dist/index.browser.cjs +360 -125
  2. package/dist/index.browser.cjs.map +1 -1
  3. package/dist/index.browser.js +359 -124
  4. package/dist/index.browser.js.map +1 -1
  5. package/dist/index.native.js +359 -124
  6. package/dist/index.native.js.map +1 -1
  7. package/dist/index.node.cjs +360 -125
  8. package/dist/index.node.cjs.map +1 -1
  9. package/dist/index.node.js +359 -124
  10. package/dist/index.node.js.map +1 -1
  11. package/dist/types/context.d.ts +8 -8
  12. package/dist/types/context.d.ts.map +1 -1
  13. package/dist/types/loaders/account.d.ts +10 -2
  14. package/dist/types/loaders/account.d.ts.map +1 -1
  15. package/dist/types/loaders/block.d.ts +9 -2
  16. package/dist/types/loaders/block.d.ts.map +1 -1
  17. package/dist/types/loaders/common/cache-key-fn.d.ts +2 -0
  18. package/dist/types/loaders/common/cache-key-fn.d.ts.map +1 -0
  19. package/dist/types/loaders/program-accounts.d.ts +13 -3
  20. package/dist/types/loaders/program-accounts.d.ts.map +1 -1
  21. package/dist/types/loaders/transaction.d.ts +8 -2
  22. package/dist/types/loaders/transaction.d.ts.map +1 -1
  23. package/dist/types/loaders/transformers/account.d.ts +2 -2
  24. package/dist/types/loaders/transformers/account.d.ts.map +1 -1
  25. package/dist/types/loaders/transformers/transaction.d.ts.map +1 -1
  26. package/dist/types/resolvers/account.d.ts +2 -2
  27. package/dist/types/resolvers/account.d.ts.map +1 -1
  28. package/dist/types/schema/account.d.ts +45 -54
  29. package/dist/types/schema/account.d.ts.map +1 -1
  30. package/dist/types/schema/block.d.ts +1 -9
  31. package/dist/types/schema/block.d.ts.map +1 -1
  32. package/dist/types/schema/common/types.d.ts +2 -2
  33. package/dist/types/schema/index.d.ts.map +1 -1
  34. package/dist/types/schema/instruction.d.ts +256 -256
  35. package/dist/types/schema/instruction.d.ts.map +1 -1
  36. package/dist/types/schema/transaction.d.ts +1 -8
  37. package/dist/types/schema/transaction.d.ts.map +1 -1
  38. package/package.json +11 -11
  39. package/dist/types/schema/program-accounts.d.ts +0 -12
  40. package/dist/types/schema/program-accounts.d.ts.map +0 -1
@@ -1,9 +1,16 @@
1
1
  import { graphql, Kind } from 'graphql';
2
2
  import DataLoader from 'dataloader';
3
- import fastStableStringify from 'fast-stable-stringify';
3
+ import stringify from 'json-stable-stringify';
4
4
  import { makeExecutableSchema } from '@graphql-tools/schema';
5
5
 
6
6
  // src/rpc.ts
7
+ function replacer(_, value) {
8
+ if (typeof value === "bigint") {
9
+ return value.toString() + "n";
10
+ }
11
+ return value;
12
+ }
13
+ var cacheKeyFn = (obj) => stringify(obj, { replacer });
7
14
 
8
15
  // src/loaders/common/resolve-info.ts
9
16
  function onlyPresentFieldRequested(fieldName, info) {
@@ -91,7 +98,7 @@ function createAccountBatchLoadFn(rpc) {
91
98
  };
92
99
  }
93
100
  function createAccountLoader(rpc) {
94
- const loader = new DataLoader(createAccountBatchLoadFn(rpc), { cacheKeyFn: fastStableStringify });
101
+ const loader = new DataLoader(createAccountBatchLoadFn(rpc), { cacheKeyFn });
95
102
  return {
96
103
  load: async (args, info) => {
97
104
  if (onlyPresentFieldRequested("address", info)) {
@@ -105,6 +112,11 @@ function createAccountLoader(rpc) {
105
112
  // src/loaders/transformers/transaction.ts
106
113
  function transformParsedInstruction(parsedInstruction) {
107
114
  if ("parsed" in parsedInstruction) {
115
+ if (typeof parsedInstruction.parsed === "string" && parsedInstruction.program === "spl-memo") {
116
+ const { parsed: memo, program: programName2, programId: programId2 } = parsedInstruction;
117
+ const instructionType2 = "memo";
118
+ return { instructionType: instructionType2, memo, programId: programId2, programName: programName2 };
119
+ }
108
120
  const {
109
121
  parsed: { info: data, type: instructionType },
110
122
  program: programName,
@@ -181,7 +193,11 @@ function normalizeArgs2({
181
193
  };
182
194
  }
183
195
  async function loadBlock(rpc, { slot, ...config }) {
184
- const block = await rpc.getBlock(slot, config).send().catch((e) => {
196
+ const block = await rpc.getBlock(
197
+ slot,
198
+ // @ts-expect-error FIXME: https://github.com/solana-labs/solana-web3.js/issues/1984
199
+ config
200
+ ).send().catch((e) => {
185
201
  throw e;
186
202
  });
187
203
  return block === null ? { slot } : transformLoadedBlock({ block, encoding: config.encoding, transactionDetails: config.transactionDetails });
@@ -193,7 +209,7 @@ function createBlockBatchLoadFn(rpc) {
193
209
  };
194
210
  }
195
211
  function createBlockLoader(rpc) {
196
- const loader = new DataLoader(createBlockBatchLoadFn(rpc), { cacheKeyFn: fastStableStringify });
212
+ const loader = new DataLoader(createBlockBatchLoadFn(rpc), { cacheKeyFn });
197
213
  return {
198
214
  load: async (args, info) => {
199
215
  if (onlyPresentFieldRequested("slot", info)) {
@@ -214,12 +230,7 @@ function normalizeArgs3({
214
230
  return { commitment, dataSlice, encoding, filters, minContextSlot, programAddress };
215
231
  }
216
232
  async function loadProgramAccounts(rpc, { programAddress, ...config }) {
217
- const programAccounts = await rpc.getProgramAccounts(programAddress, config).send().then((res) => {
218
- if ("value" in res) {
219
- return res.value;
220
- }
221
- return res;
222
- }).catch((e) => {
233
+ const programAccounts = await rpc.getProgramAccounts(programAddress, config).send().catch((e) => {
223
234
  throw e;
224
235
  });
225
236
  return programAccounts.map(
@@ -239,7 +250,7 @@ function createProgramAccountsBatchLoadFn(rpc) {
239
250
  };
240
251
  }
241
252
  function createProgramAccountsLoader(rpc) {
242
- const loader = new DataLoader(createProgramAccountsBatchLoadFn(rpc), { cacheKeyFn: fastStableStringify });
253
+ const loader = new DataLoader(createProgramAccountsBatchLoadFn(rpc), { cacheKeyFn });
243
254
  return {
244
255
  load: async (args, info) => {
245
256
  if (onlyPresentFieldRequested("programAddress", info)) {
@@ -260,14 +271,23 @@ function normalizeArgs4({ commitment = "confirmed", encoding = "jsonParsed", sig
260
271
  }
261
272
  async function loadTransaction(rpc, { signature, ...config }) {
262
273
  const { encoding } = config;
263
- const transaction = await rpc.getTransaction(signature, config).send().catch((e) => {
274
+ const transaction = await rpc.getTransaction(
275
+ signature,
276
+ // @ts-expect-error FIXME: https://github.com/solana-labs/solana-web3.js/issues/1984
277
+ config
278
+ ).send().catch((e) => {
264
279
  throw e;
265
280
  });
266
281
  if (transaction === null) {
267
282
  return null;
268
283
  }
269
284
  if (encoding !== "jsonParsed") {
270
- const transactionJsonParsed = await rpc.getTransaction(signature, config).send().catch((e) => {
285
+ const jsonParsedConfig = { ...config, encoding: "jsonParsed" };
286
+ const transactionJsonParsed = await rpc.getTransaction(
287
+ signature,
288
+ // @ts-expect-error FIXME: https://github.com/solana-labs/solana-web3.js/issues/1984
289
+ jsonParsedConfig
290
+ ).send().catch((e) => {
271
291
  throw e;
272
292
  });
273
293
  if (transactionJsonParsed === null) {
@@ -284,7 +304,7 @@ function createTransactionBatchLoadFn(rpc) {
284
304
  };
285
305
  }
286
306
  function createTransactionLoader(rpc) {
287
- const loader = new DataLoader(createTransactionBatchLoadFn(rpc), { cacheKeyFn: fastStableStringify });
307
+ const loader = new DataLoader(createTransactionBatchLoadFn(rpc), { cacheKeyFn });
288
308
  return {
289
309
  load: async (args, info) => {
290
310
  if (onlyPresentFieldRequested("signature", info)) {
@@ -317,7 +337,9 @@ var resolveAccount = (fieldName) => {
317
337
  var accountTypeDefs = (
318
338
  /* GraphQL */
319
339
  `
320
- # Account interface
340
+ """
341
+ Account interface
342
+ """
321
343
  interface Account {
322
344
  address: Address
323
345
  executable: Boolean
@@ -327,7 +349,9 @@ var accountTypeDefs = (
327
349
  rentEpoch: BigInt
328
350
  }
329
351
 
330
- # An account with base58 encoded data
352
+ """
353
+ An account with base58 encoded data
354
+ """
331
355
  type AccountBase58 implements Account {
332
356
  address: Address
333
357
  data: Base58EncodedBytes
@@ -338,7 +362,9 @@ var accountTypeDefs = (
338
362
  rentEpoch: BigInt
339
363
  }
340
364
 
341
- # An account with base64 encoded data
365
+ """
366
+ An account with base64 encoded data
367
+ """
342
368
  type AccountBase64 implements Account {
343
369
  address: Address
344
370
  data: Base64EncodedBytes
@@ -349,7 +375,9 @@ var accountTypeDefs = (
349
375
  rentEpoch: BigInt
350
376
  }
351
377
 
352
- # An account with base64+zstd encoded data
378
+ """
379
+ An account with base64+zstd encoded data
380
+ """
353
381
  type AccountBase64Zstd implements Account {
354
382
  address: Address
355
383
  data: Base64ZstdEncodedBytes
@@ -360,10 +388,12 @@ var accountTypeDefs = (
360
388
  rentEpoch: BigInt
361
389
  }
362
390
 
363
- # A nonce account
364
391
  type NonceAccountFeeCalculator {
365
392
  lamportsPerSignature: String
366
393
  }
394
+ """
395
+ A nonce account
396
+ """
367
397
  type NonceAccount implements Account {
368
398
  address: Address
369
399
  executable: Boolean
@@ -376,7 +406,9 @@ var accountTypeDefs = (
376
406
  feeCalculator: NonceAccountFeeCalculator
377
407
  }
378
408
 
379
- # A lookup table account
409
+ """
410
+ A lookup table account
411
+ """
380
412
  type LookupTableAccount implements Account {
381
413
  address: Address
382
414
  executable: Boolean
@@ -391,7 +423,9 @@ var accountTypeDefs = (
391
423
  lastExtendedSlotStartIndex: Int
392
424
  }
393
425
 
394
- # A mint account
426
+ """
427
+ A mint account
428
+ """
395
429
  type MintAccount implements Account {
396
430
  address: Address
397
431
  executable: Boolean
@@ -406,7 +440,9 @@ var accountTypeDefs = (
406
440
  supply: String
407
441
  }
408
442
 
409
- # A token account
443
+ """
444
+ A token account
445
+ """
410
446
  type TokenAccount implements Account {
411
447
  address: Address
412
448
  executable: Boolean
@@ -421,7 +457,6 @@ var accountTypeDefs = (
421
457
  tokenAmount: TokenAmount
422
458
  }
423
459
 
424
- # A stake account
425
460
  type StakeAccountDataMetaAuthorized {
426
461
  staker: Account
427
462
  withdrawer: Account
@@ -447,6 +482,9 @@ var accountTypeDefs = (
447
482
  creditsObserved: BigInt
448
483
  delegation: StakeAccountDataStakeDelegation
449
484
  }
485
+ """
486
+ A stake account
487
+ """
450
488
  type StakeAccount implements Account {
451
489
  address: Address
452
490
  executable: Boolean
@@ -458,7 +496,6 @@ var accountTypeDefs = (
458
496
  stake: StakeAccountDataStake
459
497
  }
460
498
 
461
- # A vote account
462
499
  type VoteAccountDataAuthorizedVoter {
463
500
  authorizedVoter: Account
464
501
  epoch: BigInt
@@ -476,6 +513,9 @@ var accountTypeDefs = (
476
513
  confirmationCount: Int
477
514
  slot: BigInt
478
515
  }
516
+ """
517
+ A vote account
518
+ """
479
519
  type VoteAccount implements Account {
480
520
  address: Address
481
521
  executable: Boolean
@@ -605,7 +645,9 @@ var blockTypeDefs = (
605
645
  version: String
606
646
  }
607
647
 
608
- # Block interface
648
+ """
649
+ Block interface
650
+ """
609
651
  interface Block {
610
652
  blockhash: String
611
653
  blockHeight: BigInt
@@ -616,7 +658,9 @@ var blockTypeDefs = (
616
658
  transactionDetails: String
617
659
  }
618
660
 
619
- # A block with account transaction details
661
+ """
662
+ A block with account transaction details
663
+ """
620
664
  type BlockWithAccounts implements Block {
621
665
  blockhash: String
622
666
  blockHeight: BigInt
@@ -628,7 +672,9 @@ var blockTypeDefs = (
628
672
  transactionDetails: String
629
673
  }
630
674
 
631
- # A block with full transaction details
675
+ """
676
+ A block with full transaction details
677
+ """
632
678
  type BlockWithFull implements Block {
633
679
  blockhash: String
634
680
  blockHeight: BigInt
@@ -640,7 +686,9 @@ var blockTypeDefs = (
640
686
  transactionDetails: String
641
687
  }
642
688
 
643
- # A block with none transaction details
689
+ """
690
+ A block with no transaction details
691
+ """
644
692
  type BlockWithNone implements Block {
645
693
  blockhash: String
646
694
  blockHeight: BigInt
@@ -651,7 +699,9 @@ var blockTypeDefs = (
651
699
  transactionDetails: String
652
700
  }
653
701
 
654
- # A block with signature transaction details
702
+ """
703
+ A block with signature transaction details
704
+ """
655
705
  type BlockWithSignatures implements Block {
656
706
  blockhash: String
657
707
  blockHeight: BigInt
@@ -834,19 +884,25 @@ var commonResolvers = {
834
884
  var instructionTypeDefs = (
835
885
  /* GraphQL */
836
886
  `
837
- # Transaction instruction interface
887
+ """
888
+ Transaction instruction interface
889
+ """
838
890
  interface TransactionInstruction {
839
891
  programId: Address
840
892
  }
841
893
 
842
- # Generic transaction instruction
894
+ """
895
+ Generic transaction instruction
896
+ """
843
897
  type GenericInstruction implements TransactionInstruction {
844
898
  accounts: [Address]
845
899
  data: Base64EncodedBytes
846
900
  programId: Address
847
901
  }
848
902
 
849
- # AddressLookupTable: CreateLookupTable
903
+ """
904
+ AddressLookupTable: CreateLookupTable instruction
905
+ """
850
906
  type CreateLookupTableInstruction implements TransactionInstruction {
851
907
  programId: Address
852
908
  bumpSeed: BigInt # FIXME:*
@@ -857,7 +913,9 @@ var instructionTypeDefs = (
857
913
  systemProgram: Account
858
914
  }
859
915
 
860
- # AddressLookupTable: ExtendLookupTable
916
+ """
917
+ AddressLookupTable: ExtendLookupTable instruction
918
+ """
861
919
  type ExtendLookupTableInstruction implements TransactionInstruction {
862
920
  programId: Address
863
921
  lookupTableAccount: Account
@@ -867,21 +925,27 @@ var instructionTypeDefs = (
867
925
  systemProgram: Account
868
926
  }
869
927
 
870
- # AddressLookupTable: FreezeLookupTable
928
+ """
929
+ AddressLookupTable: FreezeLookupTable instruction
930
+ """
871
931
  type FreezeLookupTableInstruction implements TransactionInstruction {
872
932
  programId: Address
873
933
  lookupTableAccount: Account
874
934
  lookupTableAuthority: Account
875
935
  }
876
936
 
877
- # AddressLookupTable: DeactivateLookupTable
937
+ """
938
+ AddressLookupTable: DeactivateLookupTable instruction
939
+ """
878
940
  type DeactivateLookupTableInstruction implements TransactionInstruction {
879
941
  programId: Address
880
942
  lookupTableAccount: Account
881
943
  lookupTableAuthority: Account
882
944
  }
883
945
 
884
- # AddressLookupTable: CloseLookupTable
946
+ """
947
+ AddressLookupTable: CloseLookupTable instruction
948
+ """
885
949
  type CloseLookupTableInstruction implements TransactionInstruction {
886
950
  programId: Address
887
951
  lookupTableAccount: Account
@@ -889,7 +953,9 @@ var instructionTypeDefs = (
889
953
  recipient: Account
890
954
  }
891
955
 
892
- # BpfLoader: Write
956
+ """
957
+ BpfLoader: Write instruction
958
+ """
893
959
  type BpfLoaderWriteInstruction implements TransactionInstruction {
894
960
  programId: Address
895
961
  account: Account
@@ -897,19 +963,25 @@ var instructionTypeDefs = (
897
963
  offset: BigInt # FIXME:*
898
964
  }
899
965
 
900
- # BpfLoader: Finalize
966
+ """
967
+ BpfLoader: Finalize instruction
968
+ """
901
969
  type BpfLoaderFinalizeInstruction implements TransactionInstruction {
902
970
  programId: Address
903
971
  account: Account
904
972
  }
905
973
 
906
- # BpfUpgradeableLoader: InitializeBuffer
974
+ """
975
+ BpfUpgradeableLoader: InitializeBuffer instruction
976
+ """
907
977
  type BpfUpgradeableLoaderInitializeBufferInstruction implements TransactionInstruction {
908
978
  programId: Address
909
979
  account: Account
910
980
  }
911
981
 
912
- # BpfUpgradeableLoader: Write
982
+ """
983
+ BpfUpgradeableLoader: Write instruction
984
+ """
913
985
  type BpfUpgradeableLoaderWriteInstruction implements TransactionInstruction {
914
986
  programId: Address
915
987
  account: Account
@@ -918,7 +990,9 @@ var instructionTypeDefs = (
918
990
  offset: BigInt # FIXME:*
919
991
  }
920
992
 
921
- # BpfUpgradeableLoader: DeployWithMaxDataLen
993
+ """
994
+ BpfUpgradeableLoader: DeployWithMaxDataLen instruction
995
+ """
922
996
  type BpfUpgradeableLoaderDeployWithMaxDataLenInstruction implements TransactionInstruction {
923
997
  programId: Address
924
998
  authority: Account
@@ -931,7 +1005,9 @@ var instructionTypeDefs = (
931
1005
  rentSysvar: Address
932
1006
  }
933
1007
 
934
- # BpfUpgradeableLoader: Upgrade
1008
+ """
1009
+ BpfUpgradeableLoader: Upgrade instruction
1010
+ """
935
1011
  type BpfUpgradeableLoaderUpgradeInstruction implements TransactionInstruction {
936
1012
  programId: Address
937
1013
  authority: Account
@@ -943,8 +1019,9 @@ var instructionTypeDefs = (
943
1019
  spillAccount: Account
944
1020
  }
945
1021
 
946
- # BpfUpgradeableLoader: SetAuthority
947
-
1022
+ """
1023
+ BpfUpgradeableLoader: SetAuthority instruction
1024
+ """
948
1025
  type BpfUpgradeableLoaderSetAuthorityInstruction implements TransactionInstruction {
949
1026
  programId: Address
950
1027
  account: Account
@@ -952,7 +1029,9 @@ var instructionTypeDefs = (
952
1029
  newAuthority: Account
953
1030
  }
954
1031
 
955
- # BpfUpgradeableLoader: SetAuthorityChecked
1032
+ """
1033
+ BpfUpgradeableLoader: SetAuthorityChecked instruction
1034
+ """
956
1035
  type BpfUpgradeableLoaderSetAuthorityCheckedInstruction implements TransactionInstruction {
957
1036
  programId: Address
958
1037
  account: Account
@@ -960,7 +1039,9 @@ var instructionTypeDefs = (
960
1039
  newAuthority: Account
961
1040
  }
962
1041
 
963
- # BpfUpgradeableLoader: Close
1042
+ """
1043
+ BpfUpgradeableLoader: Close instruction
1044
+ """
964
1045
  type BpfUpgradeableLoaderCloseInstruction implements TransactionInstruction {
965
1046
  programId: Address
966
1047
  account: Account
@@ -969,7 +1050,9 @@ var instructionTypeDefs = (
969
1050
  recipient: Account
970
1051
  }
971
1052
 
972
- # BpfUpgradeableLoader: ExtendProgram
1053
+ """
1054
+ BpfUpgradeableLoader: ExtendProgram instruction
1055
+ """
973
1056
  type BpfUpgradeableLoaderExtendProgramInstruction implements TransactionInstruction {
974
1057
  programId: Address
975
1058
  additionalBytes: BigInt
@@ -979,7 +1062,9 @@ var instructionTypeDefs = (
979
1062
  systemProgram: Account
980
1063
  }
981
1064
 
982
- # SplAssociatedTokenAccount: Create
1065
+ """
1066
+ SplAssociatedTokenAccount: Create instruction
1067
+ """
983
1068
  type SplAssociatedTokenCreateInstruction implements TransactionInstruction {
984
1069
  programId: Address
985
1070
  account: Account
@@ -990,7 +1075,9 @@ var instructionTypeDefs = (
990
1075
  wallet: Account
991
1076
  }
992
1077
 
993
- # SplAssociatedTokenAccount: CreateIdempotent
1078
+ """
1079
+ SplAssociatedTokenAccount: CreateIdempotent instruction
1080
+ """
994
1081
  type SplAssociatedTokenCreateIdempotentInstruction implements TransactionInstruction {
995
1082
  programId: Address
996
1083
  account: Account
@@ -1001,7 +1088,9 @@ var instructionTypeDefs = (
1001
1088
  wallet: Account
1002
1089
  }
1003
1090
 
1004
- # SplAssociatedTokenAccount: RecoverNested
1091
+ """
1092
+ SplAssociatedTokenAccount: RecoverNested instruction
1093
+ """
1005
1094
  type SplAssociatedTokenRecoverNestedInstruction implements TransactionInstruction {
1006
1095
  programId: Address
1007
1096
  destination: Account
@@ -1013,13 +1102,17 @@ var instructionTypeDefs = (
1013
1102
  wallet: Account
1014
1103
  }
1015
1104
 
1016
- # SplMemo
1105
+ """
1106
+ SplMemo instruction
1107
+ """
1017
1108
  type SplMemoInstruction implements TransactionInstruction {
1018
1109
  programId: Address
1019
- data: String
1110
+ memo: String
1020
1111
  }
1021
1112
 
1022
- # SplToken: InitializeMint
1113
+ """
1114
+ SplToken: InitializeMint instruction
1115
+ """
1023
1116
  type SplTokenInitializeMintInstruction implements TransactionInstruction {
1024
1117
  programId: Address
1025
1118
  decimals: BigInt # FIXME:*
@@ -1029,7 +1122,9 @@ var instructionTypeDefs = (
1029
1122
  rentSysvar: Address
1030
1123
  }
1031
1124
 
1032
- # SplToken: InitializeMint2
1125
+ """
1126
+ SplToken: InitializeMint2 instruction
1127
+ """
1033
1128
  type SplTokenInitializeMint2Instruction implements TransactionInstruction {
1034
1129
  programId: Address
1035
1130
  decimals: BigInt # FIXME:*
@@ -1038,7 +1133,9 @@ var instructionTypeDefs = (
1038
1133
  mintAuthority: Account
1039
1134
  }
1040
1135
 
1041
- # SplToken: InitializeAccount
1136
+ """
1137
+ SplToken: InitializeAccount instruction
1138
+ """
1042
1139
  type SplTokenInitializeAccountInstruction implements TransactionInstruction {
1043
1140
  programId: Address
1044
1141
  account: Account
@@ -1047,7 +1144,9 @@ var instructionTypeDefs = (
1047
1144
  rentSysvar: Address
1048
1145
  }
1049
1146
 
1050
- # SplToken: InitializeAccount2
1147
+ """
1148
+ SplToken: InitializeAccount2 instruction
1149
+ """
1051
1150
  type SplTokenInitializeAccount2Instruction implements TransactionInstruction {
1052
1151
  programId: Address
1053
1152
  account: Account
@@ -1056,7 +1155,9 @@ var instructionTypeDefs = (
1056
1155
  rentSysvar: Address
1057
1156
  }
1058
1157
 
1059
- # SplToken: InitializeAccount3
1158
+ """
1159
+ SplToken: InitializeAccount3 instruction
1160
+ """
1060
1161
  type SplTokenInitializeAccount3Instruction implements TransactionInstruction {
1061
1162
  programId: Address
1062
1163
  account: Account
@@ -1064,7 +1165,9 @@ var instructionTypeDefs = (
1064
1165
  owner: Account
1065
1166
  }
1066
1167
 
1067
- # SplToken: InitializeMultisig
1168
+ """
1169
+ SplToken: InitializeMultisig instruction
1170
+ """
1068
1171
  type SplTokenInitializeMultisigInstruction implements TransactionInstruction {
1069
1172
  programId: Address
1070
1173
  m: BigInt # FIXME:*
@@ -1073,7 +1176,9 @@ var instructionTypeDefs = (
1073
1176
  signers: [Address]
1074
1177
  }
1075
1178
 
1076
- # SplToken: InitializeMultisig2
1179
+ """
1180
+ SplToken: InitializeMultisig2 instruction
1181
+ """
1077
1182
  type SplTokenInitializeMultisig2Instruction implements TransactionInstruction {
1078
1183
  programId: Address
1079
1184
  m: BigInt # FIXME:*
@@ -1081,7 +1186,9 @@ var instructionTypeDefs = (
1081
1186
  signers: [Address]
1082
1187
  }
1083
1188
 
1084
- # SplToken: Transfer
1189
+ """
1190
+ SplToken: Transfer instruction
1191
+ """
1085
1192
  type SplTokenTransferInstruction implements TransactionInstruction {
1086
1193
  programId: Address
1087
1194
  amount: String
@@ -1091,7 +1198,9 @@ var instructionTypeDefs = (
1091
1198
  source: Account
1092
1199
  }
1093
1200
 
1094
- # SplToken: Approve
1201
+ """
1202
+ SplToken: Approve instruction
1203
+ """
1095
1204
  type SplTokenApproveInstruction implements TransactionInstruction {
1096
1205
  programId: Address
1097
1206
  amount: String
@@ -1101,7 +1210,9 @@ var instructionTypeDefs = (
1101
1210
  source: Account
1102
1211
  }
1103
1212
 
1104
- # SplToken: Revoke
1213
+ """
1214
+ SplToken: Revoke instruction
1215
+ """
1105
1216
  type SplTokenRevokeInstruction implements TransactionInstruction {
1106
1217
  programId: Address
1107
1218
  multisigOwner: Account
@@ -1109,7 +1220,9 @@ var instructionTypeDefs = (
1109
1220
  source: Account
1110
1221
  }
1111
1222
 
1112
- # SplToken: SetAuthority
1223
+ """
1224
+ SplToken: SetAuthority instruction
1225
+ """
1113
1226
  type SplTokenSetAuthorityInstruction implements TransactionInstruction {
1114
1227
  programId: Address
1115
1228
  authority: Account
@@ -1118,7 +1231,9 @@ var instructionTypeDefs = (
1118
1231
  newAuthority: Account
1119
1232
  }
1120
1233
 
1121
- # SplToken: MintTo
1234
+ """
1235
+ SplToken: MintTo instruction
1236
+ """
1122
1237
  type SplTokenMintToInstruction implements TransactionInstruction {
1123
1238
  programId: Address
1124
1239
  account: Account
@@ -1129,7 +1244,9 @@ var instructionTypeDefs = (
1129
1244
  multisigMintAuthority: Account
1130
1245
  }
1131
1246
 
1132
- # SplToken: Burn
1247
+ """
1248
+ SplToken: Burn instruction
1249
+ """
1133
1250
  type SplTokenBurnInstruction implements TransactionInstruction {
1134
1251
  programId: Address
1135
1252
  account: Account
@@ -1139,7 +1256,9 @@ var instructionTypeDefs = (
1139
1256
  multisigAuthority: Account
1140
1257
  }
1141
1258
 
1142
- # SplToken: CloseAccount
1259
+ """
1260
+ SplToken: CloseAccount instruction
1261
+ """
1143
1262
  type SplTokenCloseAccountInstruction implements TransactionInstruction {
1144
1263
  programId: Address
1145
1264
  account: Account
@@ -1148,7 +1267,9 @@ var instructionTypeDefs = (
1148
1267
  owner: Account
1149
1268
  }
1150
1269
 
1151
- # SplToken: FreezeAccount
1270
+ """
1271
+ SplToken: FreezeAccount instruction
1272
+ """
1152
1273
  type SplTokenFreezeAccountInstruction implements TransactionInstruction {
1153
1274
  programId: Address
1154
1275
  account: Account
@@ -1157,7 +1278,9 @@ var instructionTypeDefs = (
1157
1278
  multisigFreezeAuthority: Account
1158
1279
  }
1159
1280
 
1160
- # SplToken: ThawAccount
1281
+ """
1282
+ SplToken: ThawAccount instruction
1283
+ """
1161
1284
  type SplTokenThawAccountInstruction implements TransactionInstruction {
1162
1285
  programId: Address
1163
1286
  account: Account
@@ -1166,7 +1289,9 @@ var instructionTypeDefs = (
1166
1289
  multisigFreezeAuthority: Account
1167
1290
  }
1168
1291
 
1169
- # SplToken: TransferChecked
1292
+ """
1293
+ SplToken: TransferChecked instruction
1294
+ """
1170
1295
  type SplTokenTransferCheckedInstruction implements TransactionInstruction {
1171
1296
  programId: Address
1172
1297
  amount: String
@@ -1179,7 +1304,9 @@ var instructionTypeDefs = (
1179
1304
  tokenAmount: String
1180
1305
  }
1181
1306
 
1182
- # SplToken: ApproveChecked
1307
+ """
1308
+ SplToken: ApproveChecked instruction
1309
+ """
1183
1310
  type SplTokenApproveCheckedInstruction implements TransactionInstruction {
1184
1311
  programId: Address
1185
1312
  delegate: Account
@@ -1190,7 +1317,9 @@ var instructionTypeDefs = (
1190
1317
  tokenAmount: String
1191
1318
  }
1192
1319
 
1193
- # SplToken: MintToChecked
1320
+ """
1321
+ SplToken: MintToChecked instruction
1322
+ """
1194
1323
  type SplTokenMintToCheckedInstruction implements TransactionInstruction {
1195
1324
  programId: Address
1196
1325
  account: Account
@@ -1201,7 +1330,9 @@ var instructionTypeDefs = (
1201
1330
  tokenAmount: String
1202
1331
  }
1203
1332
 
1204
- # SplToken: BurnChecked
1333
+ """
1334
+ SplToken: BurnChecked instruction
1335
+ """
1205
1336
  type SplTokenBurnCheckedInstruction implements TransactionInstruction {
1206
1337
  programId: Address
1207
1338
  account: Account
@@ -1211,40 +1342,52 @@ var instructionTypeDefs = (
1211
1342
  tokenAmount: String
1212
1343
  }
1213
1344
 
1214
- # SplToken: SyncNative
1345
+ """
1346
+ SplToken: SyncNative instruction
1347
+ """
1215
1348
  type SplTokenSyncNativeInstruction implements TransactionInstruction {
1216
1349
  programId: Address
1217
1350
  account: Account
1218
1351
  }
1219
1352
 
1220
- # SplToken: GetAccountDataSize
1353
+ """
1354
+ SplToken: GetAccountDataSize instruction
1355
+ """
1221
1356
  type SplTokenGetAccountDataSizeInstruction implements TransactionInstruction {
1222
1357
  programId: Address
1223
1358
  extensionTypes: [String]
1224
1359
  mint: Account
1225
1360
  }
1226
1361
 
1227
- # SplToken: InitializeImmutableOwner
1362
+ """
1363
+ SplToken: InitializeImmutableOwner instruction
1364
+ """
1228
1365
  type SplTokenInitializeImmutableOwnerInstruction implements TransactionInstruction {
1229
1366
  programId: Address
1230
1367
  account: Account
1231
1368
  }
1232
1369
 
1233
- # SplToken: AmountToUiAmount
1370
+ """
1371
+ SplToken: AmountToUiAmount instruction
1372
+ """
1234
1373
  type SplTokenAmountToUiAmountInstruction implements TransactionInstruction {
1235
1374
  programId: Address
1236
1375
  amount: String
1237
1376
  mint: Account
1238
1377
  }
1239
1378
 
1240
- # SplToken: UiAmountToAmount
1379
+ """
1380
+ SplToken: UiAmountToAmount instruction
1381
+ """
1241
1382
  type SplTokenUiAmountToAmountInstruction implements TransactionInstruction {
1242
1383
  programId: Address
1243
1384
  mint: Account
1244
1385
  uiAmount: String
1245
1386
  }
1246
1387
 
1247
- # SplToken: InitializeMintCloseAuthority
1388
+ """
1389
+ SplToken: InitializeMintCloseAuthority instruction
1390
+ """
1248
1391
  type SplTokenInitializeMintCloseAuthorityInstruction implements TransactionInstruction {
1249
1392
  programId: Address
1250
1393
  mint: Account
@@ -1273,7 +1416,9 @@ var instructionTypeDefs = (
1273
1416
  unixTimestamp: BigInt
1274
1417
  }
1275
1418
 
1276
- # Stake: Initialize
1419
+ """
1420
+ Stake: Initialize instruction
1421
+ """
1277
1422
  type StakeInitializeInstructionDataAuthorized {
1278
1423
  staker: Account
1279
1424
  withdrawer: Account
@@ -1286,7 +1431,9 @@ var instructionTypeDefs = (
1286
1431
  stakeAccount: Account
1287
1432
  }
1288
1433
 
1289
- # Stake: Authorize
1434
+ """
1435
+ Stake: Authorize instruction
1436
+ """
1290
1437
  type StakeAuthorizeInstruction implements TransactionInstruction {
1291
1438
  programId: Address
1292
1439
  authority: Account
@@ -1297,7 +1444,9 @@ var instructionTypeDefs = (
1297
1444
  stakeAccount: Account
1298
1445
  }
1299
1446
 
1300
- # Stake: DelegateStake
1447
+ """
1448
+ Stake: DelegateStake instruction
1449
+ """
1301
1450
  type StakeDelegateStakeInstruction implements TransactionInstruction {
1302
1451
  programId: Address
1303
1452
  clockSysvar: Address
@@ -1308,7 +1457,9 @@ var instructionTypeDefs = (
1308
1457
  voteAccount: Account
1309
1458
  }
1310
1459
 
1311
- # Stake: Split
1460
+ """
1461
+ Stake: Split instruction
1462
+ """
1312
1463
  type StakeSplitInstruction implements TransactionInstruction {
1313
1464
  programId: Address
1314
1465
  lamports: BigInt
@@ -1317,7 +1468,9 @@ var instructionTypeDefs = (
1317
1468
  stakeAuthority: Account
1318
1469
  }
1319
1470
 
1320
- # Stake: Withdraw
1471
+ """
1472
+ Stake: Withdraw instruction
1473
+ """
1321
1474
  type StakeWithdrawInstruction implements TransactionInstruction {
1322
1475
  programId: Address
1323
1476
  clockSysvar: Address
@@ -1327,7 +1480,9 @@ var instructionTypeDefs = (
1327
1480
  withdrawAuthority: Account
1328
1481
  }
1329
1482
 
1330
- # Stake: Deactivate
1483
+ """
1484
+ Stake: Deactivate instruction
1485
+ """
1331
1486
  type StakeDeactivateInstruction implements TransactionInstruction {
1332
1487
  programId: Address
1333
1488
  clockSysvar: Address
@@ -1335,7 +1490,9 @@ var instructionTypeDefs = (
1335
1490
  stakeAuthority: Account
1336
1491
  }
1337
1492
 
1338
- # Stake: SetLockup
1493
+ """
1494
+ Stake: SetLockup instruction
1495
+ """
1339
1496
  type StakeSetLockupInstruction implements TransactionInstruction {
1340
1497
  programId: Address
1341
1498
  custodian: Account
@@ -1343,7 +1500,9 @@ var instructionTypeDefs = (
1343
1500
  stakeAccount: Account
1344
1501
  }
1345
1502
 
1346
- # Stake: Merge
1503
+ """
1504
+ Stake: Merge instruction
1505
+ """
1347
1506
  type StakeMergeInstruction implements TransactionInstruction {
1348
1507
  programId: Address
1349
1508
  clockSysvar: Address
@@ -1353,7 +1512,9 @@ var instructionTypeDefs = (
1353
1512
  stakeHistorySysvar: Address
1354
1513
  }
1355
1514
 
1356
- # Stake: AuthorizeWithSeed
1515
+ """
1516
+ Stake: AuthorizeWithSeed instruction
1517
+ """
1357
1518
  type StakeAuthorizeWithSeedInstruction implements TransactionInstruction {
1358
1519
  programId: Address
1359
1520
  authorityBase: Account
@@ -1366,7 +1527,9 @@ var instructionTypeDefs = (
1366
1527
  stakeAccount: Account
1367
1528
  }
1368
1529
 
1369
- # Stake: InitializeChecked
1530
+ """
1531
+ Stake: InitializeChecked instruction
1532
+ """
1370
1533
  type StakeInitializeCheckedInstructionDataAuthorized {
1371
1534
  staker: Account
1372
1535
  withdrawer: Account
@@ -1379,7 +1542,9 @@ var instructionTypeDefs = (
1379
1542
  stakeAccount: Account
1380
1543
  }
1381
1544
 
1382
- # Stake: AuthorizeChecked
1545
+ """
1546
+ Stake: AuthorizeChecked instruction
1547
+ """
1383
1548
  type StakeAuthorizeCheckedInstruction implements TransactionInstruction {
1384
1549
  programId: Address
1385
1550
  authority: Account
@@ -1390,7 +1555,9 @@ var instructionTypeDefs = (
1390
1555
  stakeAccount: Account
1391
1556
  }
1392
1557
 
1393
- # Stake: AuthorizeCheckedWithSeed
1558
+ """
1559
+ Stake: AuthorizeCheckedWithSeed instruction
1560
+ """
1394
1561
  type StakeAuthorizeCheckedWithSeedInstruction implements TransactionInstruction {
1395
1562
  programId: Address
1396
1563
  authorityBase: Account
@@ -1403,7 +1570,9 @@ var instructionTypeDefs = (
1403
1570
  stakeAccount: Account
1404
1571
  }
1405
1572
 
1406
- # Stake: SetLockupChecked
1573
+ """
1574
+ Stake: SetLockupChecked instruction
1575
+ """
1407
1576
  type StakeSetLockupCheckedInstruction implements TransactionInstruction {
1408
1577
  programId: Address
1409
1578
  custodian: Account
@@ -1411,7 +1580,9 @@ var instructionTypeDefs = (
1411
1580
  stakeAccount: Account
1412
1581
  }
1413
1582
 
1414
- # Stake: DeactivateDelinquent
1583
+ """
1584
+ Stake: DeactivateDelinquent instruction
1585
+ """
1415
1586
  type StakeDeactivateDelinquentInstruction implements TransactionInstruction {
1416
1587
  programId: Address
1417
1588
  referenceVoteAccount: Account
@@ -1419,7 +1590,9 @@ var instructionTypeDefs = (
1419
1590
  voteAccount: Account
1420
1591
  }
1421
1592
 
1422
- # Stake: Redelegate
1593
+ """
1594
+ Stake: Redelegate instruction
1595
+ """
1423
1596
  type StakeRedelegateInstruction implements TransactionInstruction {
1424
1597
  programId: Address
1425
1598
  newStakeAccount: Account
@@ -1429,7 +1602,9 @@ var instructionTypeDefs = (
1429
1602
  voteAccount: Account
1430
1603
  }
1431
1604
 
1432
- # System: CreateAccount
1605
+ """
1606
+ System: CreateAccount instruction
1607
+ """
1433
1608
  type CreateAccountInstruction implements TransactionInstruction {
1434
1609
  programId: Address
1435
1610
  lamports: BigInt
@@ -1439,14 +1614,18 @@ var instructionTypeDefs = (
1439
1614
  space: BigInt
1440
1615
  }
1441
1616
 
1442
- # System: Assign
1617
+ """
1618
+ System: Assign instruction
1619
+ """
1443
1620
  type AssignInstruction implements TransactionInstruction {
1444
1621
  programId: Address
1445
1622
  account: Account
1446
1623
  owner: Account
1447
1624
  }
1448
1625
 
1449
- # System: Transfer
1626
+ """
1627
+ System: Transfer instruction
1628
+ """
1450
1629
  type TransferInstruction implements TransactionInstruction {
1451
1630
  programId: Address
1452
1631
  destination: Account
@@ -1454,7 +1633,9 @@ var instructionTypeDefs = (
1454
1633
  source: Account
1455
1634
  }
1456
1635
 
1457
- # System: CreateAccountWithSeed
1636
+ """
1637
+ System: CreateAccountWithSeed instruction
1638
+ """
1458
1639
  type CreateAccountWithSeedInstruction implements TransactionInstruction {
1459
1640
  programId: Address
1460
1641
  base: Account
@@ -1464,7 +1645,9 @@ var instructionTypeDefs = (
1464
1645
  space: BigInt
1465
1646
  }
1466
1647
 
1467
- # System: AdvanceNonceAccount
1648
+ """
1649
+ System: AdvanceNonceAccount instruction
1650
+ """
1468
1651
  type AdvanceNonceAccountInstruction implements TransactionInstruction {
1469
1652
  programId: Address
1470
1653
  nonceAccount: Account
@@ -1472,7 +1655,9 @@ var instructionTypeDefs = (
1472
1655
  recentBlockhashesSysvar: Address
1473
1656
  }
1474
1657
 
1475
- # System: WithdrawNonceAccount
1658
+ """
1659
+ System: WithdrawNonceAccount instruction
1660
+ """
1476
1661
  type WithdrawNonceAccountInstruction implements TransactionInstruction {
1477
1662
  programId: Address
1478
1663
  destination: Account
@@ -1483,7 +1668,9 @@ var instructionTypeDefs = (
1483
1668
  rentSysvar: Address
1484
1669
  }
1485
1670
 
1486
- # System: InitializeNonceAccount
1671
+ """
1672
+ System: InitializeNonceAccount instruction
1673
+ """
1487
1674
  type InitializeNonceAccountInstruction implements TransactionInstruction {
1488
1675
  programId: Address
1489
1676
  nonceAccount: Account
@@ -1492,7 +1679,9 @@ var instructionTypeDefs = (
1492
1679
  rentSysvar: Address
1493
1680
  }
1494
1681
 
1495
- # System: AuthorizeNonceAccount
1682
+ """
1683
+ System: AuthorizeNonceAccount instruction
1684
+ """
1496
1685
  type AuthorizeNonceAccountInstruction implements TransactionInstruction {
1497
1686
  programId: Address
1498
1687
  newAuthorized: Account
@@ -1500,21 +1689,27 @@ var instructionTypeDefs = (
1500
1689
  nonceAuthority: Account
1501
1690
  }
1502
1691
 
1503
- # System: UpgradeNonceAccount
1692
+ """
1693
+ System: UpgradeNonceAccount instruction
1694
+ """
1504
1695
  type UpgradeNonceAccountInstruction implements TransactionInstruction {
1505
1696
  programId: Address
1506
1697
  nonceAccount: Account
1507
1698
  nonceAuthority: Account
1508
1699
  }
1509
1700
 
1510
- # System: Allocate
1701
+ """
1702
+ System: Allocate instruction
1703
+ """
1511
1704
  type AllocateInstruction implements TransactionInstruction {
1512
1705
  programId: Address
1513
1706
  account: Account
1514
1707
  space: BigInt
1515
1708
  }
1516
1709
 
1517
- # System: AllocateWithSeed
1710
+ """
1711
+ System: AllocateWithSeed instruction
1712
+ """
1518
1713
  type AllocateWithSeedInstruction implements TransactionInstruction {
1519
1714
  programId: Address
1520
1715
  account: Account
@@ -1524,7 +1719,9 @@ var instructionTypeDefs = (
1524
1719
  space: BigInt
1525
1720
  }
1526
1721
 
1527
- # System: AssignWithSeed
1722
+ """
1723
+ System: AssignWithSeed instruction
1724
+ """
1528
1725
  type AssignWithSeedInstruction implements TransactionInstruction {
1529
1726
  programId: Address
1530
1727
  account: Account
@@ -1533,7 +1730,9 @@ var instructionTypeDefs = (
1533
1730
  seed: String
1534
1731
  }
1535
1732
 
1536
- # System: TransferWithSeed
1733
+ """
1734
+ System: TransferWithSeed instruction
1735
+ """
1537
1736
  type TransferWithSeedInstruction implements TransactionInstruction {
1538
1737
  programId: Address
1539
1738
  destination: Account
@@ -1544,7 +1743,9 @@ var instructionTypeDefs = (
1544
1743
  sourceSeed: String
1545
1744
  }
1546
1745
 
1547
- # Vote: InitializeAccount
1746
+ """
1747
+ Vote: InitializeAccount instruction
1748
+ """
1548
1749
  type VoteInitializeAccountInstruction implements TransactionInstruction {
1549
1750
  programId: Address
1550
1751
  authorizedVoter: Account
@@ -1556,7 +1757,9 @@ var instructionTypeDefs = (
1556
1757
  voteAccount: Account
1557
1758
  }
1558
1759
 
1559
- # Vote: Authorize
1760
+ """
1761
+ Vote: Authorize instruction
1762
+ """
1560
1763
  type VoteAuthorizeInstruction implements TransactionInstruction {
1561
1764
  programId: Address
1562
1765
  authority: Account
@@ -1566,7 +1769,9 @@ var instructionTypeDefs = (
1566
1769
  voteAccount: Account
1567
1770
  }
1568
1771
 
1569
- # Vote: AuthorizeWithSeed
1772
+ """
1773
+ Vote: AuthorizeWithSeed instruction
1774
+ """
1570
1775
  type VoteAuthorizeWithSeedInstruction implements TransactionInstruction {
1571
1776
  programId: Address
1572
1777
  authorityBaseKey: String
@@ -1578,7 +1783,9 @@ var instructionTypeDefs = (
1578
1783
  voteAccount: Account
1579
1784
  }
1580
1785
 
1581
- # Vote: AuthorizeCheckedWithSeed
1786
+ """
1787
+ Vote: AuthorizeCheckedWithSeed instruction
1788
+ """
1582
1789
  type VoteAuthorizeCheckedWithSeedInstruction implements TransactionInstruction {
1583
1790
  programId: Address
1584
1791
  authorityBaseKey: String
@@ -1596,7 +1803,9 @@ var instructionTypeDefs = (
1596
1803
  timestamp: BigInt
1597
1804
  }
1598
1805
 
1599
- # Vote: Vote
1806
+ """
1807
+ Vote: Vote instruction
1808
+ """
1600
1809
  type VoteVoteInstruction implements TransactionInstruction {
1601
1810
  programId: Address
1602
1811
  clockSysvar: Address
@@ -1617,7 +1826,9 @@ var instructionTypeDefs = (
1617
1826
  timestamp: BigInt
1618
1827
  }
1619
1828
 
1620
- # Vote: UpdateVoteState
1829
+ """
1830
+ Vote: UpdateVoteState instruction
1831
+ """
1621
1832
  type VoteUpdateVoteStateInstruction implements TransactionInstruction {
1622
1833
  programId: Address
1623
1834
  hash: String
@@ -1626,7 +1837,9 @@ var instructionTypeDefs = (
1626
1837
  voteStateUpdate: VoteStateUpdate
1627
1838
  }
1628
1839
 
1629
- # Vote: UpdateVoteStateSwitch
1840
+ """
1841
+ Vote: UpdateVoteStateSwitch instruction
1842
+ """
1630
1843
  type VoteUpdateVoteStateSwitchInstruction implements TransactionInstruction {
1631
1844
  programId: Address
1632
1845
  hash: String
@@ -1635,7 +1848,9 @@ var instructionTypeDefs = (
1635
1848
  voteStateUpdate: VoteStateUpdate
1636
1849
  }
1637
1850
 
1638
- # Vote: CompactUpdateVoteState
1851
+ """
1852
+ Vote: CompactUpdateVoteState instruction
1853
+ """
1639
1854
  type VoteCompactUpdateVoteStateInstruction implements TransactionInstruction {
1640
1855
  programId: Address
1641
1856
  hash: String
@@ -1644,7 +1859,9 @@ var instructionTypeDefs = (
1644
1859
  voteStateUpdate: VoteStateUpdate
1645
1860
  }
1646
1861
 
1647
- # Vote: CompactUpdateVoteStateSwitch
1862
+ """
1863
+ Vote: CompactUpdateVoteStateSwitch instruction
1864
+ """
1648
1865
  type VoteCompactUpdateVoteStateSwitchInstruction implements TransactionInstruction {
1649
1866
  programId: Address
1650
1867
  hash: String
@@ -1653,7 +1870,9 @@ var instructionTypeDefs = (
1653
1870
  voteStateUpdate: VoteStateUpdate
1654
1871
  }
1655
1872
 
1656
- # Vote: Withdraw
1873
+ """
1874
+ Vote: Withdraw instruction
1875
+ """
1657
1876
  type VoteWithdrawInstruction implements TransactionInstruction {
1658
1877
  programId: Address
1659
1878
  destination: Account
@@ -1662,7 +1881,9 @@ var instructionTypeDefs = (
1662
1881
  withdrawAuthority: Account
1663
1882
  }
1664
1883
 
1665
- # Vote: UpdateValidatorIdentity
1884
+ """
1885
+ Vote: UpdateValidatorIdentity instruction
1886
+ """
1666
1887
  type VoteUpdateValidatorIdentityInstruction implements TransactionInstruction {
1667
1888
  programId: Address
1668
1889
  newValidatorIdentity: Account
@@ -1670,7 +1891,9 @@ var instructionTypeDefs = (
1670
1891
  withdrawAuthority: Account
1671
1892
  }
1672
1893
 
1673
- # Vote: UpdateCommission
1894
+ """
1895
+ Vote: UpdateCommission instruction
1896
+ """
1674
1897
  type VoteUpdateCommissionInstruction implements TransactionInstruction {
1675
1898
  programId: Address
1676
1899
  commission: BigInt # FIXME:*
@@ -1678,7 +1901,9 @@ var instructionTypeDefs = (
1678
1901
  withdrawAuthority: Account
1679
1902
  }
1680
1903
 
1681
- # Vote: VoteSwitch
1904
+ """
1905
+ Vote: VoteSwitch instruction
1906
+ """
1682
1907
  type VoteVoteSwitchInstruction implements TransactionInstruction {
1683
1908
  programId: Address
1684
1909
  clockSysvar: Address
@@ -1689,7 +1914,9 @@ var instructionTypeDefs = (
1689
1914
  voteAuthority: Account
1690
1915
  }
1691
1916
 
1692
- # Vote: AuthorizeChecked
1917
+ """
1918
+ Vote: AuthorizeChecked instruction
1919
+ """
1693
1920
  type VoteAuthorizeCheckedInstruction implements TransactionInstruction {
1694
1921
  programId: Address
1695
1922
  authority: Account
@@ -2481,7 +2708,9 @@ var transactionTypeDefs = (
2481
2708
  recentBlockhash: String
2482
2709
  }
2483
2710
 
2484
- # Transaction interface
2711
+ """
2712
+ Transaction interface
2713
+ """
2485
2714
  interface Transaction {
2486
2715
  blockTime: String
2487
2716
  meta: TransactionMeta
@@ -2489,7 +2718,9 @@ var transactionTypeDefs = (
2489
2718
  version: String
2490
2719
  }
2491
2720
 
2492
- # A transaction with base58 encoded data
2721
+ """
2722
+ A transaction with base58 encoded data
2723
+ """
2493
2724
  type TransactionBase58 implements Transaction {
2494
2725
  blockTime: String
2495
2726
  data: Base58EncodedBytes
@@ -2498,7 +2729,9 @@ var transactionTypeDefs = (
2498
2729
  version: String
2499
2730
  }
2500
2731
 
2501
- # A transaction with base64 encoded data
2732
+ """
2733
+ A transaction with base64 encoded data
2734
+ """
2502
2735
  type TransactionBase64 implements Transaction {
2503
2736
  blockTime: String
2504
2737
  data: Base64EncodedBytes
@@ -2507,7 +2740,9 @@ var transactionTypeDefs = (
2507
2740
  version: String
2508
2741
  }
2509
2742
 
2510
- # A transaction with JSON encoded data
2743
+ """
2744
+ A transaction with JSON encoded data
2745
+ """
2511
2746
  type TransactionDataParsed {
2512
2747
  message: TransactionMessage
2513
2748
  signatures: [String]