@solana/rpc-graphql 2.0.0-experimental.5e737f9 → 2.0.0-experimental.62b6bd6

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 +359 -125
  2. package/dist/index.browser.cjs.map +1 -1
  3. package/dist/index.browser.js +358 -124
  4. package/dist/index.browser.js.map +1 -1
  5. package/dist/index.native.js +358 -124
  6. package/dist/index.native.js.map +1 -1
  7. package/dist/index.node.cjs +359 -125
  8. package/dist/index.node.cjs.map +1 -1
  9. package/dist/index.node.js +358 -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 +9 -9
  39. package/dist/types/schema/program-accounts.d.ts +0 -12
  40. 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,7 +278,11 @@ 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) => {
281
+ const transaction = await rpc.getTransaction(
282
+ signature,
283
+ // @ts-expect-error FIXME: https://github.com/solana-labs/solana-web3.js/issues/1984
284
+ config
285
+ ).send().catch((e) => {
271
286
  throw e;
272
287
  });
273
288
  if (transaction === null) {
@@ -275,7 +290,11 @@ async function loadTransaction(rpc, { signature, ...config }) {
275
290
  }
276
291
  if (encoding !== "jsonParsed") {
277
292
  const jsonParsedConfig = { ...config, encoding: "jsonParsed" };
278
- const transactionJsonParsed = await rpc.getTransaction(signature, jsonParsedConfig).send().catch((e) => {
293
+ const transactionJsonParsed = await rpc.getTransaction(
294
+ signature,
295
+ // @ts-expect-error FIXME: https://github.com/solana-labs/solana-web3.js/issues/1984
296
+ jsonParsedConfig
297
+ ).send().catch((e) => {
279
298
  throw e;
280
299
  });
281
300
  if (transactionJsonParsed === null) {
@@ -292,7 +311,7 @@ function createTransactionBatchLoadFn(rpc) {
292
311
  };
293
312
  }
294
313
  function createTransactionLoader(rpc) {
295
- const loader = new DataLoader__default.default(createTransactionBatchLoadFn(rpc), { cacheKeyFn: fastStableStringify__default.default });
314
+ const loader = new DataLoader__default.default(createTransactionBatchLoadFn(rpc), { cacheKeyFn });
296
315
  return {
297
316
  load: async (args, info) => {
298
317
  if (onlyPresentFieldRequested("signature", info)) {
@@ -325,7 +344,9 @@ var resolveAccount = (fieldName) => {
325
344
  var accountTypeDefs = (
326
345
  /* GraphQL */
327
346
  `
328
- # Account interface
347
+ """
348
+ Account interface
349
+ """
329
350
  interface Account {
330
351
  address: Address
331
352
  executable: Boolean
@@ -335,7 +356,9 @@ var accountTypeDefs = (
335
356
  rentEpoch: BigInt
336
357
  }
337
358
 
338
- # An account with base58 encoded data
359
+ """
360
+ An account with base58 encoded data
361
+ """
339
362
  type AccountBase58 implements Account {
340
363
  address: Address
341
364
  data: Base58EncodedBytes
@@ -346,7 +369,9 @@ var accountTypeDefs = (
346
369
  rentEpoch: BigInt
347
370
  }
348
371
 
349
- # An account with base64 encoded data
372
+ """
373
+ An account with base64 encoded data
374
+ """
350
375
  type AccountBase64 implements Account {
351
376
  address: Address
352
377
  data: Base64EncodedBytes
@@ -357,7 +382,9 @@ var accountTypeDefs = (
357
382
  rentEpoch: BigInt
358
383
  }
359
384
 
360
- # An account with base64+zstd encoded data
385
+ """
386
+ An account with base64+zstd encoded data
387
+ """
361
388
  type AccountBase64Zstd implements Account {
362
389
  address: Address
363
390
  data: Base64ZstdEncodedBytes
@@ -368,10 +395,12 @@ var accountTypeDefs = (
368
395
  rentEpoch: BigInt
369
396
  }
370
397
 
371
- # A nonce account
372
398
  type NonceAccountFeeCalculator {
373
399
  lamportsPerSignature: String
374
400
  }
401
+ """
402
+ A nonce account
403
+ """
375
404
  type NonceAccount implements Account {
376
405
  address: Address
377
406
  executable: Boolean
@@ -384,7 +413,9 @@ var accountTypeDefs = (
384
413
  feeCalculator: NonceAccountFeeCalculator
385
414
  }
386
415
 
387
- # A lookup table account
416
+ """
417
+ A lookup table account
418
+ """
388
419
  type LookupTableAccount implements Account {
389
420
  address: Address
390
421
  executable: Boolean
@@ -399,7 +430,9 @@ var accountTypeDefs = (
399
430
  lastExtendedSlotStartIndex: Int
400
431
  }
401
432
 
402
- # A mint account
433
+ """
434
+ A mint account
435
+ """
403
436
  type MintAccount implements Account {
404
437
  address: Address
405
438
  executable: Boolean
@@ -414,7 +447,9 @@ var accountTypeDefs = (
414
447
  supply: String
415
448
  }
416
449
 
417
- # A token account
450
+ """
451
+ A token account
452
+ """
418
453
  type TokenAccount implements Account {
419
454
  address: Address
420
455
  executable: Boolean
@@ -429,7 +464,6 @@ var accountTypeDefs = (
429
464
  tokenAmount: TokenAmount
430
465
  }
431
466
 
432
- # A stake account
433
467
  type StakeAccountDataMetaAuthorized {
434
468
  staker: Account
435
469
  withdrawer: Account
@@ -455,6 +489,9 @@ var accountTypeDefs = (
455
489
  creditsObserved: BigInt
456
490
  delegation: StakeAccountDataStakeDelegation
457
491
  }
492
+ """
493
+ A stake account
494
+ """
458
495
  type StakeAccount implements Account {
459
496
  address: Address
460
497
  executable: Boolean
@@ -466,7 +503,6 @@ var accountTypeDefs = (
466
503
  stake: StakeAccountDataStake
467
504
  }
468
505
 
469
- # A vote account
470
506
  type VoteAccountDataAuthorizedVoter {
471
507
  authorizedVoter: Account
472
508
  epoch: BigInt
@@ -484,6 +520,9 @@ var accountTypeDefs = (
484
520
  confirmationCount: Int
485
521
  slot: BigInt
486
522
  }
523
+ """
524
+ A vote account
525
+ """
487
526
  type VoteAccount implements Account {
488
527
  address: Address
489
528
  executable: Boolean
@@ -613,7 +652,9 @@ var blockTypeDefs = (
613
652
  version: String
614
653
  }
615
654
 
616
- # Block interface
655
+ """
656
+ Block interface
657
+ """
617
658
  interface Block {
618
659
  blockhash: String
619
660
  blockHeight: BigInt
@@ -624,7 +665,9 @@ var blockTypeDefs = (
624
665
  transactionDetails: String
625
666
  }
626
667
 
627
- # A block with account transaction details
668
+ """
669
+ A block with account transaction details
670
+ """
628
671
  type BlockWithAccounts implements Block {
629
672
  blockhash: String
630
673
  blockHeight: BigInt
@@ -636,7 +679,9 @@ var blockTypeDefs = (
636
679
  transactionDetails: String
637
680
  }
638
681
 
639
- # A block with full transaction details
682
+ """
683
+ A block with full transaction details
684
+ """
640
685
  type BlockWithFull implements Block {
641
686
  blockhash: String
642
687
  blockHeight: BigInt
@@ -648,7 +693,9 @@ var blockTypeDefs = (
648
693
  transactionDetails: String
649
694
  }
650
695
 
651
- # A block with none transaction details
696
+ """
697
+ A block with no transaction details
698
+ """
652
699
  type BlockWithNone implements Block {
653
700
  blockhash: String
654
701
  blockHeight: BigInt
@@ -659,7 +706,9 @@ var blockTypeDefs = (
659
706
  transactionDetails: String
660
707
  }
661
708
 
662
- # A block with signature transaction details
709
+ """
710
+ A block with signature transaction details
711
+ """
663
712
  type BlockWithSignatures implements Block {
664
713
  blockhash: String
665
714
  blockHeight: BigInt
@@ -842,19 +891,25 @@ var commonResolvers = {
842
891
  var instructionTypeDefs = (
843
892
  /* GraphQL */
844
893
  `
845
- # Transaction instruction interface
894
+ """
895
+ Transaction instruction interface
896
+ """
846
897
  interface TransactionInstruction {
847
898
  programId: Address
848
899
  }
849
900
 
850
- # Generic transaction instruction
901
+ """
902
+ Generic transaction instruction
903
+ """
851
904
  type GenericInstruction implements TransactionInstruction {
852
905
  accounts: [Address]
853
906
  data: Base64EncodedBytes
854
907
  programId: Address
855
908
  }
856
909
 
857
- # AddressLookupTable: CreateLookupTable
910
+ """
911
+ AddressLookupTable: CreateLookupTable instruction
912
+ """
858
913
  type CreateLookupTableInstruction implements TransactionInstruction {
859
914
  programId: Address
860
915
  bumpSeed: BigInt # FIXME:*
@@ -865,7 +920,9 @@ var instructionTypeDefs = (
865
920
  systemProgram: Account
866
921
  }
867
922
 
868
- # AddressLookupTable: ExtendLookupTable
923
+ """
924
+ AddressLookupTable: ExtendLookupTable instruction
925
+ """
869
926
  type ExtendLookupTableInstruction implements TransactionInstruction {
870
927
  programId: Address
871
928
  lookupTableAccount: Account
@@ -875,21 +932,27 @@ var instructionTypeDefs = (
875
932
  systemProgram: Account
876
933
  }
877
934
 
878
- # AddressLookupTable: FreezeLookupTable
935
+ """
936
+ AddressLookupTable: FreezeLookupTable instruction
937
+ """
879
938
  type FreezeLookupTableInstruction implements TransactionInstruction {
880
939
  programId: Address
881
940
  lookupTableAccount: Account
882
941
  lookupTableAuthority: Account
883
942
  }
884
943
 
885
- # AddressLookupTable: DeactivateLookupTable
944
+ """
945
+ AddressLookupTable: DeactivateLookupTable instruction
946
+ """
886
947
  type DeactivateLookupTableInstruction implements TransactionInstruction {
887
948
  programId: Address
888
949
  lookupTableAccount: Account
889
950
  lookupTableAuthority: Account
890
951
  }
891
952
 
892
- # AddressLookupTable: CloseLookupTable
953
+ """
954
+ AddressLookupTable: CloseLookupTable instruction
955
+ """
893
956
  type CloseLookupTableInstruction implements TransactionInstruction {
894
957
  programId: Address
895
958
  lookupTableAccount: Account
@@ -897,7 +960,9 @@ var instructionTypeDefs = (
897
960
  recipient: Account
898
961
  }
899
962
 
900
- # BpfLoader: Write
963
+ """
964
+ BpfLoader: Write instruction
965
+ """
901
966
  type BpfLoaderWriteInstruction implements TransactionInstruction {
902
967
  programId: Address
903
968
  account: Account
@@ -905,19 +970,25 @@ var instructionTypeDefs = (
905
970
  offset: BigInt # FIXME:*
906
971
  }
907
972
 
908
- # BpfLoader: Finalize
973
+ """
974
+ BpfLoader: Finalize instruction
975
+ """
909
976
  type BpfLoaderFinalizeInstruction implements TransactionInstruction {
910
977
  programId: Address
911
978
  account: Account
912
979
  }
913
980
 
914
- # BpfUpgradeableLoader: InitializeBuffer
981
+ """
982
+ BpfUpgradeableLoader: InitializeBuffer instruction
983
+ """
915
984
  type BpfUpgradeableLoaderInitializeBufferInstruction implements TransactionInstruction {
916
985
  programId: Address
917
986
  account: Account
918
987
  }
919
988
 
920
- # BpfUpgradeableLoader: Write
989
+ """
990
+ BpfUpgradeableLoader: Write instruction
991
+ """
921
992
  type BpfUpgradeableLoaderWriteInstruction implements TransactionInstruction {
922
993
  programId: Address
923
994
  account: Account
@@ -926,7 +997,9 @@ var instructionTypeDefs = (
926
997
  offset: BigInt # FIXME:*
927
998
  }
928
999
 
929
- # BpfUpgradeableLoader: DeployWithMaxDataLen
1000
+ """
1001
+ BpfUpgradeableLoader: DeployWithMaxDataLen instruction
1002
+ """
930
1003
  type BpfUpgradeableLoaderDeployWithMaxDataLenInstruction implements TransactionInstruction {
931
1004
  programId: Address
932
1005
  authority: Account
@@ -939,7 +1012,9 @@ var instructionTypeDefs = (
939
1012
  rentSysvar: Address
940
1013
  }
941
1014
 
942
- # BpfUpgradeableLoader: Upgrade
1015
+ """
1016
+ BpfUpgradeableLoader: Upgrade instruction
1017
+ """
943
1018
  type BpfUpgradeableLoaderUpgradeInstruction implements TransactionInstruction {
944
1019
  programId: Address
945
1020
  authority: Account
@@ -951,8 +1026,9 @@ var instructionTypeDefs = (
951
1026
  spillAccount: Account
952
1027
  }
953
1028
 
954
- # BpfUpgradeableLoader: SetAuthority
955
-
1029
+ """
1030
+ BpfUpgradeableLoader: SetAuthority instruction
1031
+ """
956
1032
  type BpfUpgradeableLoaderSetAuthorityInstruction implements TransactionInstruction {
957
1033
  programId: Address
958
1034
  account: Account
@@ -960,7 +1036,9 @@ var instructionTypeDefs = (
960
1036
  newAuthority: Account
961
1037
  }
962
1038
 
963
- # BpfUpgradeableLoader: SetAuthorityChecked
1039
+ """
1040
+ BpfUpgradeableLoader: SetAuthorityChecked instruction
1041
+ """
964
1042
  type BpfUpgradeableLoaderSetAuthorityCheckedInstruction implements TransactionInstruction {
965
1043
  programId: Address
966
1044
  account: Account
@@ -968,7 +1046,9 @@ var instructionTypeDefs = (
968
1046
  newAuthority: Account
969
1047
  }
970
1048
 
971
- # BpfUpgradeableLoader: Close
1049
+ """
1050
+ BpfUpgradeableLoader: Close instruction
1051
+ """
972
1052
  type BpfUpgradeableLoaderCloseInstruction implements TransactionInstruction {
973
1053
  programId: Address
974
1054
  account: Account
@@ -977,7 +1057,9 @@ var instructionTypeDefs = (
977
1057
  recipient: Account
978
1058
  }
979
1059
 
980
- # BpfUpgradeableLoader: ExtendProgram
1060
+ """
1061
+ BpfUpgradeableLoader: ExtendProgram instruction
1062
+ """
981
1063
  type BpfUpgradeableLoaderExtendProgramInstruction implements TransactionInstruction {
982
1064
  programId: Address
983
1065
  additionalBytes: BigInt
@@ -987,7 +1069,9 @@ var instructionTypeDefs = (
987
1069
  systemProgram: Account
988
1070
  }
989
1071
 
990
- # SplAssociatedTokenAccount: Create
1072
+ """
1073
+ SplAssociatedTokenAccount: Create instruction
1074
+ """
991
1075
  type SplAssociatedTokenCreateInstruction implements TransactionInstruction {
992
1076
  programId: Address
993
1077
  account: Account
@@ -998,7 +1082,9 @@ var instructionTypeDefs = (
998
1082
  wallet: Account
999
1083
  }
1000
1084
 
1001
- # SplAssociatedTokenAccount: CreateIdempotent
1085
+ """
1086
+ SplAssociatedTokenAccount: CreateIdempotent instruction
1087
+ """
1002
1088
  type SplAssociatedTokenCreateIdempotentInstruction implements TransactionInstruction {
1003
1089
  programId: Address
1004
1090
  account: Account
@@ -1009,7 +1095,9 @@ var instructionTypeDefs = (
1009
1095
  wallet: Account
1010
1096
  }
1011
1097
 
1012
- # SplAssociatedTokenAccount: RecoverNested
1098
+ """
1099
+ SplAssociatedTokenAccount: RecoverNested instruction
1100
+ """
1013
1101
  type SplAssociatedTokenRecoverNestedInstruction implements TransactionInstruction {
1014
1102
  programId: Address
1015
1103
  destination: Account
@@ -1021,13 +1109,17 @@ var instructionTypeDefs = (
1021
1109
  wallet: Account
1022
1110
  }
1023
1111
 
1024
- # SplMemo
1112
+ """
1113
+ SplMemo instruction
1114
+ """
1025
1115
  type SplMemoInstruction implements TransactionInstruction {
1026
1116
  programId: Address
1027
- data: String
1117
+ memo: String
1028
1118
  }
1029
1119
 
1030
- # SplToken: InitializeMint
1120
+ """
1121
+ SplToken: InitializeMint instruction
1122
+ """
1031
1123
  type SplTokenInitializeMintInstruction implements TransactionInstruction {
1032
1124
  programId: Address
1033
1125
  decimals: BigInt # FIXME:*
@@ -1037,7 +1129,9 @@ var instructionTypeDefs = (
1037
1129
  rentSysvar: Address
1038
1130
  }
1039
1131
 
1040
- # SplToken: InitializeMint2
1132
+ """
1133
+ SplToken: InitializeMint2 instruction
1134
+ """
1041
1135
  type SplTokenInitializeMint2Instruction implements TransactionInstruction {
1042
1136
  programId: Address
1043
1137
  decimals: BigInt # FIXME:*
@@ -1046,7 +1140,9 @@ var instructionTypeDefs = (
1046
1140
  mintAuthority: Account
1047
1141
  }
1048
1142
 
1049
- # SplToken: InitializeAccount
1143
+ """
1144
+ SplToken: InitializeAccount instruction
1145
+ """
1050
1146
  type SplTokenInitializeAccountInstruction implements TransactionInstruction {
1051
1147
  programId: Address
1052
1148
  account: Account
@@ -1055,7 +1151,9 @@ var instructionTypeDefs = (
1055
1151
  rentSysvar: Address
1056
1152
  }
1057
1153
 
1058
- # SplToken: InitializeAccount2
1154
+ """
1155
+ SplToken: InitializeAccount2 instruction
1156
+ """
1059
1157
  type SplTokenInitializeAccount2Instruction implements TransactionInstruction {
1060
1158
  programId: Address
1061
1159
  account: Account
@@ -1064,7 +1162,9 @@ var instructionTypeDefs = (
1064
1162
  rentSysvar: Address
1065
1163
  }
1066
1164
 
1067
- # SplToken: InitializeAccount3
1165
+ """
1166
+ SplToken: InitializeAccount3 instruction
1167
+ """
1068
1168
  type SplTokenInitializeAccount3Instruction implements TransactionInstruction {
1069
1169
  programId: Address
1070
1170
  account: Account
@@ -1072,7 +1172,9 @@ var instructionTypeDefs = (
1072
1172
  owner: Account
1073
1173
  }
1074
1174
 
1075
- # SplToken: InitializeMultisig
1175
+ """
1176
+ SplToken: InitializeMultisig instruction
1177
+ """
1076
1178
  type SplTokenInitializeMultisigInstruction implements TransactionInstruction {
1077
1179
  programId: Address
1078
1180
  m: BigInt # FIXME:*
@@ -1081,7 +1183,9 @@ var instructionTypeDefs = (
1081
1183
  signers: [Address]
1082
1184
  }
1083
1185
 
1084
- # SplToken: InitializeMultisig2
1186
+ """
1187
+ SplToken: InitializeMultisig2 instruction
1188
+ """
1085
1189
  type SplTokenInitializeMultisig2Instruction implements TransactionInstruction {
1086
1190
  programId: Address
1087
1191
  m: BigInt # FIXME:*
@@ -1089,7 +1193,9 @@ var instructionTypeDefs = (
1089
1193
  signers: [Address]
1090
1194
  }
1091
1195
 
1092
- # SplToken: Transfer
1196
+ """
1197
+ SplToken: Transfer instruction
1198
+ """
1093
1199
  type SplTokenTransferInstruction implements TransactionInstruction {
1094
1200
  programId: Address
1095
1201
  amount: String
@@ -1099,7 +1205,9 @@ var instructionTypeDefs = (
1099
1205
  source: Account
1100
1206
  }
1101
1207
 
1102
- # SplToken: Approve
1208
+ """
1209
+ SplToken: Approve instruction
1210
+ """
1103
1211
  type SplTokenApproveInstruction implements TransactionInstruction {
1104
1212
  programId: Address
1105
1213
  amount: String
@@ -1109,7 +1217,9 @@ var instructionTypeDefs = (
1109
1217
  source: Account
1110
1218
  }
1111
1219
 
1112
- # SplToken: Revoke
1220
+ """
1221
+ SplToken: Revoke instruction
1222
+ """
1113
1223
  type SplTokenRevokeInstruction implements TransactionInstruction {
1114
1224
  programId: Address
1115
1225
  multisigOwner: Account
@@ -1117,7 +1227,9 @@ var instructionTypeDefs = (
1117
1227
  source: Account
1118
1228
  }
1119
1229
 
1120
- # SplToken: SetAuthority
1230
+ """
1231
+ SplToken: SetAuthority instruction
1232
+ """
1121
1233
  type SplTokenSetAuthorityInstruction implements TransactionInstruction {
1122
1234
  programId: Address
1123
1235
  authority: Account
@@ -1126,7 +1238,9 @@ var instructionTypeDefs = (
1126
1238
  newAuthority: Account
1127
1239
  }
1128
1240
 
1129
- # SplToken: MintTo
1241
+ """
1242
+ SplToken: MintTo instruction
1243
+ """
1130
1244
  type SplTokenMintToInstruction implements TransactionInstruction {
1131
1245
  programId: Address
1132
1246
  account: Account
@@ -1137,7 +1251,9 @@ var instructionTypeDefs = (
1137
1251
  multisigMintAuthority: Account
1138
1252
  }
1139
1253
 
1140
- # SplToken: Burn
1254
+ """
1255
+ SplToken: Burn instruction
1256
+ """
1141
1257
  type SplTokenBurnInstruction implements TransactionInstruction {
1142
1258
  programId: Address
1143
1259
  account: Account
@@ -1147,7 +1263,9 @@ var instructionTypeDefs = (
1147
1263
  multisigAuthority: Account
1148
1264
  }
1149
1265
 
1150
- # SplToken: CloseAccount
1266
+ """
1267
+ SplToken: CloseAccount instruction
1268
+ """
1151
1269
  type SplTokenCloseAccountInstruction implements TransactionInstruction {
1152
1270
  programId: Address
1153
1271
  account: Account
@@ -1156,7 +1274,9 @@ var instructionTypeDefs = (
1156
1274
  owner: Account
1157
1275
  }
1158
1276
 
1159
- # SplToken: FreezeAccount
1277
+ """
1278
+ SplToken: FreezeAccount instruction
1279
+ """
1160
1280
  type SplTokenFreezeAccountInstruction implements TransactionInstruction {
1161
1281
  programId: Address
1162
1282
  account: Account
@@ -1165,7 +1285,9 @@ var instructionTypeDefs = (
1165
1285
  multisigFreezeAuthority: Account
1166
1286
  }
1167
1287
 
1168
- # SplToken: ThawAccount
1288
+ """
1289
+ SplToken: ThawAccount instruction
1290
+ """
1169
1291
  type SplTokenThawAccountInstruction implements TransactionInstruction {
1170
1292
  programId: Address
1171
1293
  account: Account
@@ -1174,7 +1296,9 @@ var instructionTypeDefs = (
1174
1296
  multisigFreezeAuthority: Account
1175
1297
  }
1176
1298
 
1177
- # SplToken: TransferChecked
1299
+ """
1300
+ SplToken: TransferChecked instruction
1301
+ """
1178
1302
  type SplTokenTransferCheckedInstruction implements TransactionInstruction {
1179
1303
  programId: Address
1180
1304
  amount: String
@@ -1187,7 +1311,9 @@ var instructionTypeDefs = (
1187
1311
  tokenAmount: String
1188
1312
  }
1189
1313
 
1190
- # SplToken: ApproveChecked
1314
+ """
1315
+ SplToken: ApproveChecked instruction
1316
+ """
1191
1317
  type SplTokenApproveCheckedInstruction implements TransactionInstruction {
1192
1318
  programId: Address
1193
1319
  delegate: Account
@@ -1198,7 +1324,9 @@ var instructionTypeDefs = (
1198
1324
  tokenAmount: String
1199
1325
  }
1200
1326
 
1201
- # SplToken: MintToChecked
1327
+ """
1328
+ SplToken: MintToChecked instruction
1329
+ """
1202
1330
  type SplTokenMintToCheckedInstruction implements TransactionInstruction {
1203
1331
  programId: Address
1204
1332
  account: Account
@@ -1209,7 +1337,9 @@ var instructionTypeDefs = (
1209
1337
  tokenAmount: String
1210
1338
  }
1211
1339
 
1212
- # SplToken: BurnChecked
1340
+ """
1341
+ SplToken: BurnChecked instruction
1342
+ """
1213
1343
  type SplTokenBurnCheckedInstruction implements TransactionInstruction {
1214
1344
  programId: Address
1215
1345
  account: Account
@@ -1219,40 +1349,52 @@ var instructionTypeDefs = (
1219
1349
  tokenAmount: String
1220
1350
  }
1221
1351
 
1222
- # SplToken: SyncNative
1352
+ """
1353
+ SplToken: SyncNative instruction
1354
+ """
1223
1355
  type SplTokenSyncNativeInstruction implements TransactionInstruction {
1224
1356
  programId: Address
1225
1357
  account: Account
1226
1358
  }
1227
1359
 
1228
- # SplToken: GetAccountDataSize
1360
+ """
1361
+ SplToken: GetAccountDataSize instruction
1362
+ """
1229
1363
  type SplTokenGetAccountDataSizeInstruction implements TransactionInstruction {
1230
1364
  programId: Address
1231
1365
  extensionTypes: [String]
1232
1366
  mint: Account
1233
1367
  }
1234
1368
 
1235
- # SplToken: InitializeImmutableOwner
1369
+ """
1370
+ SplToken: InitializeImmutableOwner instruction
1371
+ """
1236
1372
  type SplTokenInitializeImmutableOwnerInstruction implements TransactionInstruction {
1237
1373
  programId: Address
1238
1374
  account: Account
1239
1375
  }
1240
1376
 
1241
- # SplToken: AmountToUiAmount
1377
+ """
1378
+ SplToken: AmountToUiAmount instruction
1379
+ """
1242
1380
  type SplTokenAmountToUiAmountInstruction implements TransactionInstruction {
1243
1381
  programId: Address
1244
1382
  amount: String
1245
1383
  mint: Account
1246
1384
  }
1247
1385
 
1248
- # SplToken: UiAmountToAmount
1386
+ """
1387
+ SplToken: UiAmountToAmount instruction
1388
+ """
1249
1389
  type SplTokenUiAmountToAmountInstruction implements TransactionInstruction {
1250
1390
  programId: Address
1251
1391
  mint: Account
1252
1392
  uiAmount: String
1253
1393
  }
1254
1394
 
1255
- # SplToken: InitializeMintCloseAuthority
1395
+ """
1396
+ SplToken: InitializeMintCloseAuthority instruction
1397
+ """
1256
1398
  type SplTokenInitializeMintCloseAuthorityInstruction implements TransactionInstruction {
1257
1399
  programId: Address
1258
1400
  mint: Account
@@ -1281,7 +1423,9 @@ var instructionTypeDefs = (
1281
1423
  unixTimestamp: BigInt
1282
1424
  }
1283
1425
 
1284
- # Stake: Initialize
1426
+ """
1427
+ Stake: Initialize instruction
1428
+ """
1285
1429
  type StakeInitializeInstructionDataAuthorized {
1286
1430
  staker: Account
1287
1431
  withdrawer: Account
@@ -1294,7 +1438,9 @@ var instructionTypeDefs = (
1294
1438
  stakeAccount: Account
1295
1439
  }
1296
1440
 
1297
- # Stake: Authorize
1441
+ """
1442
+ Stake: Authorize instruction
1443
+ """
1298
1444
  type StakeAuthorizeInstruction implements TransactionInstruction {
1299
1445
  programId: Address
1300
1446
  authority: Account
@@ -1305,7 +1451,9 @@ var instructionTypeDefs = (
1305
1451
  stakeAccount: Account
1306
1452
  }
1307
1453
 
1308
- # Stake: DelegateStake
1454
+ """
1455
+ Stake: DelegateStake instruction
1456
+ """
1309
1457
  type StakeDelegateStakeInstruction implements TransactionInstruction {
1310
1458
  programId: Address
1311
1459
  clockSysvar: Address
@@ -1316,7 +1464,9 @@ var instructionTypeDefs = (
1316
1464
  voteAccount: Account
1317
1465
  }
1318
1466
 
1319
- # Stake: Split
1467
+ """
1468
+ Stake: Split instruction
1469
+ """
1320
1470
  type StakeSplitInstruction implements TransactionInstruction {
1321
1471
  programId: Address
1322
1472
  lamports: BigInt
@@ -1325,7 +1475,9 @@ var instructionTypeDefs = (
1325
1475
  stakeAuthority: Account
1326
1476
  }
1327
1477
 
1328
- # Stake: Withdraw
1478
+ """
1479
+ Stake: Withdraw instruction
1480
+ """
1329
1481
  type StakeWithdrawInstruction implements TransactionInstruction {
1330
1482
  programId: Address
1331
1483
  clockSysvar: Address
@@ -1335,7 +1487,9 @@ var instructionTypeDefs = (
1335
1487
  withdrawAuthority: Account
1336
1488
  }
1337
1489
 
1338
- # Stake: Deactivate
1490
+ """
1491
+ Stake: Deactivate instruction
1492
+ """
1339
1493
  type StakeDeactivateInstruction implements TransactionInstruction {
1340
1494
  programId: Address
1341
1495
  clockSysvar: Address
@@ -1343,7 +1497,9 @@ var instructionTypeDefs = (
1343
1497
  stakeAuthority: Account
1344
1498
  }
1345
1499
 
1346
- # Stake: SetLockup
1500
+ """
1501
+ Stake: SetLockup instruction
1502
+ """
1347
1503
  type StakeSetLockupInstruction implements TransactionInstruction {
1348
1504
  programId: Address
1349
1505
  custodian: Account
@@ -1351,7 +1507,9 @@ var instructionTypeDefs = (
1351
1507
  stakeAccount: Account
1352
1508
  }
1353
1509
 
1354
- # Stake: Merge
1510
+ """
1511
+ Stake: Merge instruction
1512
+ """
1355
1513
  type StakeMergeInstruction implements TransactionInstruction {
1356
1514
  programId: Address
1357
1515
  clockSysvar: Address
@@ -1361,7 +1519,9 @@ var instructionTypeDefs = (
1361
1519
  stakeHistorySysvar: Address
1362
1520
  }
1363
1521
 
1364
- # Stake: AuthorizeWithSeed
1522
+ """
1523
+ Stake: AuthorizeWithSeed instruction
1524
+ """
1365
1525
  type StakeAuthorizeWithSeedInstruction implements TransactionInstruction {
1366
1526
  programId: Address
1367
1527
  authorityBase: Account
@@ -1374,7 +1534,9 @@ var instructionTypeDefs = (
1374
1534
  stakeAccount: Account
1375
1535
  }
1376
1536
 
1377
- # Stake: InitializeChecked
1537
+ """
1538
+ Stake: InitializeChecked instruction
1539
+ """
1378
1540
  type StakeInitializeCheckedInstructionDataAuthorized {
1379
1541
  staker: Account
1380
1542
  withdrawer: Account
@@ -1387,7 +1549,9 @@ var instructionTypeDefs = (
1387
1549
  stakeAccount: Account
1388
1550
  }
1389
1551
 
1390
- # Stake: AuthorizeChecked
1552
+ """
1553
+ Stake: AuthorizeChecked instruction
1554
+ """
1391
1555
  type StakeAuthorizeCheckedInstruction implements TransactionInstruction {
1392
1556
  programId: Address
1393
1557
  authority: Account
@@ -1398,7 +1562,9 @@ var instructionTypeDefs = (
1398
1562
  stakeAccount: Account
1399
1563
  }
1400
1564
 
1401
- # Stake: AuthorizeCheckedWithSeed
1565
+ """
1566
+ Stake: AuthorizeCheckedWithSeed instruction
1567
+ """
1402
1568
  type StakeAuthorizeCheckedWithSeedInstruction implements TransactionInstruction {
1403
1569
  programId: Address
1404
1570
  authorityBase: Account
@@ -1411,7 +1577,9 @@ var instructionTypeDefs = (
1411
1577
  stakeAccount: Account
1412
1578
  }
1413
1579
 
1414
- # Stake: SetLockupChecked
1580
+ """
1581
+ Stake: SetLockupChecked instruction
1582
+ """
1415
1583
  type StakeSetLockupCheckedInstruction implements TransactionInstruction {
1416
1584
  programId: Address
1417
1585
  custodian: Account
@@ -1419,7 +1587,9 @@ var instructionTypeDefs = (
1419
1587
  stakeAccount: Account
1420
1588
  }
1421
1589
 
1422
- # Stake: DeactivateDelinquent
1590
+ """
1591
+ Stake: DeactivateDelinquent instruction
1592
+ """
1423
1593
  type StakeDeactivateDelinquentInstruction implements TransactionInstruction {
1424
1594
  programId: Address
1425
1595
  referenceVoteAccount: Account
@@ -1427,7 +1597,9 @@ var instructionTypeDefs = (
1427
1597
  voteAccount: Account
1428
1598
  }
1429
1599
 
1430
- # Stake: Redelegate
1600
+ """
1601
+ Stake: Redelegate instruction
1602
+ """
1431
1603
  type StakeRedelegateInstruction implements TransactionInstruction {
1432
1604
  programId: Address
1433
1605
  newStakeAccount: Account
@@ -1437,7 +1609,9 @@ var instructionTypeDefs = (
1437
1609
  voteAccount: Account
1438
1610
  }
1439
1611
 
1440
- # System: CreateAccount
1612
+ """
1613
+ System: CreateAccount instruction
1614
+ """
1441
1615
  type CreateAccountInstruction implements TransactionInstruction {
1442
1616
  programId: Address
1443
1617
  lamports: BigInt
@@ -1447,14 +1621,18 @@ var instructionTypeDefs = (
1447
1621
  space: BigInt
1448
1622
  }
1449
1623
 
1450
- # System: Assign
1624
+ """
1625
+ System: Assign instruction
1626
+ """
1451
1627
  type AssignInstruction implements TransactionInstruction {
1452
1628
  programId: Address
1453
1629
  account: Account
1454
1630
  owner: Account
1455
1631
  }
1456
1632
 
1457
- # System: Transfer
1633
+ """
1634
+ System: Transfer instruction
1635
+ """
1458
1636
  type TransferInstruction implements TransactionInstruction {
1459
1637
  programId: Address
1460
1638
  destination: Account
@@ -1462,7 +1640,9 @@ var instructionTypeDefs = (
1462
1640
  source: Account
1463
1641
  }
1464
1642
 
1465
- # System: CreateAccountWithSeed
1643
+ """
1644
+ System: CreateAccountWithSeed instruction
1645
+ """
1466
1646
  type CreateAccountWithSeedInstruction implements TransactionInstruction {
1467
1647
  programId: Address
1468
1648
  base: Account
@@ -1472,7 +1652,9 @@ var instructionTypeDefs = (
1472
1652
  space: BigInt
1473
1653
  }
1474
1654
 
1475
- # System: AdvanceNonceAccount
1655
+ """
1656
+ System: AdvanceNonceAccount instruction
1657
+ """
1476
1658
  type AdvanceNonceAccountInstruction implements TransactionInstruction {
1477
1659
  programId: Address
1478
1660
  nonceAccount: Account
@@ -1480,7 +1662,9 @@ var instructionTypeDefs = (
1480
1662
  recentBlockhashesSysvar: Address
1481
1663
  }
1482
1664
 
1483
- # System: WithdrawNonceAccount
1665
+ """
1666
+ System: WithdrawNonceAccount instruction
1667
+ """
1484
1668
  type WithdrawNonceAccountInstruction implements TransactionInstruction {
1485
1669
  programId: Address
1486
1670
  destination: Account
@@ -1491,7 +1675,9 @@ var instructionTypeDefs = (
1491
1675
  rentSysvar: Address
1492
1676
  }
1493
1677
 
1494
- # System: InitializeNonceAccount
1678
+ """
1679
+ System: InitializeNonceAccount instruction
1680
+ """
1495
1681
  type InitializeNonceAccountInstruction implements TransactionInstruction {
1496
1682
  programId: Address
1497
1683
  nonceAccount: Account
@@ -1500,7 +1686,9 @@ var instructionTypeDefs = (
1500
1686
  rentSysvar: Address
1501
1687
  }
1502
1688
 
1503
- # System: AuthorizeNonceAccount
1689
+ """
1690
+ System: AuthorizeNonceAccount instruction
1691
+ """
1504
1692
  type AuthorizeNonceAccountInstruction implements TransactionInstruction {
1505
1693
  programId: Address
1506
1694
  newAuthorized: Account
@@ -1508,21 +1696,27 @@ var instructionTypeDefs = (
1508
1696
  nonceAuthority: Account
1509
1697
  }
1510
1698
 
1511
- # System: UpgradeNonceAccount
1699
+ """
1700
+ System: UpgradeNonceAccount instruction
1701
+ """
1512
1702
  type UpgradeNonceAccountInstruction implements TransactionInstruction {
1513
1703
  programId: Address
1514
1704
  nonceAccount: Account
1515
1705
  nonceAuthority: Account
1516
1706
  }
1517
1707
 
1518
- # System: Allocate
1708
+ """
1709
+ System: Allocate instruction
1710
+ """
1519
1711
  type AllocateInstruction implements TransactionInstruction {
1520
1712
  programId: Address
1521
1713
  account: Account
1522
1714
  space: BigInt
1523
1715
  }
1524
1716
 
1525
- # System: AllocateWithSeed
1717
+ """
1718
+ System: AllocateWithSeed instruction
1719
+ """
1526
1720
  type AllocateWithSeedInstruction implements TransactionInstruction {
1527
1721
  programId: Address
1528
1722
  account: Account
@@ -1532,7 +1726,9 @@ var instructionTypeDefs = (
1532
1726
  space: BigInt
1533
1727
  }
1534
1728
 
1535
- # System: AssignWithSeed
1729
+ """
1730
+ System: AssignWithSeed instruction
1731
+ """
1536
1732
  type AssignWithSeedInstruction implements TransactionInstruction {
1537
1733
  programId: Address
1538
1734
  account: Account
@@ -1541,7 +1737,9 @@ var instructionTypeDefs = (
1541
1737
  seed: String
1542
1738
  }
1543
1739
 
1544
- # System: TransferWithSeed
1740
+ """
1741
+ System: TransferWithSeed instruction
1742
+ """
1545
1743
  type TransferWithSeedInstruction implements TransactionInstruction {
1546
1744
  programId: Address
1547
1745
  destination: Account
@@ -1552,7 +1750,9 @@ var instructionTypeDefs = (
1552
1750
  sourceSeed: String
1553
1751
  }
1554
1752
 
1555
- # Vote: InitializeAccount
1753
+ """
1754
+ Vote: InitializeAccount instruction
1755
+ """
1556
1756
  type VoteInitializeAccountInstruction implements TransactionInstruction {
1557
1757
  programId: Address
1558
1758
  authorizedVoter: Account
@@ -1564,7 +1764,9 @@ var instructionTypeDefs = (
1564
1764
  voteAccount: Account
1565
1765
  }
1566
1766
 
1567
- # Vote: Authorize
1767
+ """
1768
+ Vote: Authorize instruction
1769
+ """
1568
1770
  type VoteAuthorizeInstruction implements TransactionInstruction {
1569
1771
  programId: Address
1570
1772
  authority: Account
@@ -1574,7 +1776,9 @@ var instructionTypeDefs = (
1574
1776
  voteAccount: Account
1575
1777
  }
1576
1778
 
1577
- # Vote: AuthorizeWithSeed
1779
+ """
1780
+ Vote: AuthorizeWithSeed instruction
1781
+ """
1578
1782
  type VoteAuthorizeWithSeedInstruction implements TransactionInstruction {
1579
1783
  programId: Address
1580
1784
  authorityBaseKey: String
@@ -1586,7 +1790,9 @@ var instructionTypeDefs = (
1586
1790
  voteAccount: Account
1587
1791
  }
1588
1792
 
1589
- # Vote: AuthorizeCheckedWithSeed
1793
+ """
1794
+ Vote: AuthorizeCheckedWithSeed instruction
1795
+ """
1590
1796
  type VoteAuthorizeCheckedWithSeedInstruction implements TransactionInstruction {
1591
1797
  programId: Address
1592
1798
  authorityBaseKey: String
@@ -1604,7 +1810,9 @@ var instructionTypeDefs = (
1604
1810
  timestamp: BigInt
1605
1811
  }
1606
1812
 
1607
- # Vote: Vote
1813
+ """
1814
+ Vote: Vote instruction
1815
+ """
1608
1816
  type VoteVoteInstruction implements TransactionInstruction {
1609
1817
  programId: Address
1610
1818
  clockSysvar: Address
@@ -1625,7 +1833,9 @@ var instructionTypeDefs = (
1625
1833
  timestamp: BigInt
1626
1834
  }
1627
1835
 
1628
- # Vote: UpdateVoteState
1836
+ """
1837
+ Vote: UpdateVoteState instruction
1838
+ """
1629
1839
  type VoteUpdateVoteStateInstruction implements TransactionInstruction {
1630
1840
  programId: Address
1631
1841
  hash: String
@@ -1634,7 +1844,9 @@ var instructionTypeDefs = (
1634
1844
  voteStateUpdate: VoteStateUpdate
1635
1845
  }
1636
1846
 
1637
- # Vote: UpdateVoteStateSwitch
1847
+ """
1848
+ Vote: UpdateVoteStateSwitch instruction
1849
+ """
1638
1850
  type VoteUpdateVoteStateSwitchInstruction implements TransactionInstruction {
1639
1851
  programId: Address
1640
1852
  hash: String
@@ -1643,7 +1855,9 @@ var instructionTypeDefs = (
1643
1855
  voteStateUpdate: VoteStateUpdate
1644
1856
  }
1645
1857
 
1646
- # Vote: CompactUpdateVoteState
1858
+ """
1859
+ Vote: CompactUpdateVoteState instruction
1860
+ """
1647
1861
  type VoteCompactUpdateVoteStateInstruction implements TransactionInstruction {
1648
1862
  programId: Address
1649
1863
  hash: String
@@ -1652,7 +1866,9 @@ var instructionTypeDefs = (
1652
1866
  voteStateUpdate: VoteStateUpdate
1653
1867
  }
1654
1868
 
1655
- # Vote: CompactUpdateVoteStateSwitch
1869
+ """
1870
+ Vote: CompactUpdateVoteStateSwitch instruction
1871
+ """
1656
1872
  type VoteCompactUpdateVoteStateSwitchInstruction implements TransactionInstruction {
1657
1873
  programId: Address
1658
1874
  hash: String
@@ -1661,7 +1877,9 @@ var instructionTypeDefs = (
1661
1877
  voteStateUpdate: VoteStateUpdate
1662
1878
  }
1663
1879
 
1664
- # Vote: Withdraw
1880
+ """
1881
+ Vote: Withdraw instruction
1882
+ """
1665
1883
  type VoteWithdrawInstruction implements TransactionInstruction {
1666
1884
  programId: Address
1667
1885
  destination: Account
@@ -1670,7 +1888,9 @@ var instructionTypeDefs = (
1670
1888
  withdrawAuthority: Account
1671
1889
  }
1672
1890
 
1673
- # Vote: UpdateValidatorIdentity
1891
+ """
1892
+ Vote: UpdateValidatorIdentity instruction
1893
+ """
1674
1894
  type VoteUpdateValidatorIdentityInstruction implements TransactionInstruction {
1675
1895
  programId: Address
1676
1896
  newValidatorIdentity: Account
@@ -1678,7 +1898,9 @@ var instructionTypeDefs = (
1678
1898
  withdrawAuthority: Account
1679
1899
  }
1680
1900
 
1681
- # Vote: UpdateCommission
1901
+ """
1902
+ Vote: UpdateCommission instruction
1903
+ """
1682
1904
  type VoteUpdateCommissionInstruction implements TransactionInstruction {
1683
1905
  programId: Address
1684
1906
  commission: BigInt # FIXME:*
@@ -1686,7 +1908,9 @@ var instructionTypeDefs = (
1686
1908
  withdrawAuthority: Account
1687
1909
  }
1688
1910
 
1689
- # Vote: VoteSwitch
1911
+ """
1912
+ Vote: VoteSwitch instruction
1913
+ """
1690
1914
  type VoteVoteSwitchInstruction implements TransactionInstruction {
1691
1915
  programId: Address
1692
1916
  clockSysvar: Address
@@ -1697,7 +1921,9 @@ var instructionTypeDefs = (
1697
1921
  voteAuthority: Account
1698
1922
  }
1699
1923
 
1700
- # Vote: AuthorizeChecked
1924
+ """
1925
+ Vote: AuthorizeChecked instruction
1926
+ """
1701
1927
  type VoteAuthorizeCheckedInstruction implements TransactionInstruction {
1702
1928
  programId: Address
1703
1929
  authority: Account
@@ -2489,7 +2715,9 @@ var transactionTypeDefs = (
2489
2715
  recentBlockhash: String
2490
2716
  }
2491
2717
 
2492
- # Transaction interface
2718
+ """
2719
+ Transaction interface
2720
+ """
2493
2721
  interface Transaction {
2494
2722
  blockTime: String
2495
2723
  meta: TransactionMeta
@@ -2497,7 +2725,9 @@ var transactionTypeDefs = (
2497
2725
  version: String
2498
2726
  }
2499
2727
 
2500
- # A transaction with base58 encoded data
2728
+ """
2729
+ A transaction with base58 encoded data
2730
+ """
2501
2731
  type TransactionBase58 implements Transaction {
2502
2732
  blockTime: String
2503
2733
  data: Base58EncodedBytes
@@ -2506,7 +2736,9 @@ var transactionTypeDefs = (
2506
2736
  version: String
2507
2737
  }
2508
2738
 
2509
- # A transaction with base64 encoded data
2739
+ """
2740
+ A transaction with base64 encoded data
2741
+ """
2510
2742
  type TransactionBase64 implements Transaction {
2511
2743
  blockTime: String
2512
2744
  data: Base64EncodedBytes
@@ -2515,7 +2747,9 @@ var transactionTypeDefs = (
2515
2747
  version: String
2516
2748
  }
2517
2749
 
2518
- # A transaction with JSON encoded data
2750
+ """
2751
+ A transaction with JSON encoded data
2752
+ """
2519
2753
  type TransactionDataParsed {
2520
2754
  message: TransactionMessage
2521
2755
  signatures: [String]