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