@solana/rpc-graphql 2.0.0-experimental.0835c79 → 2.0.0-experimental.098806e
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.
- package/dist/index.browser.cjs +353 -139
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.js +353 -139
- package/dist/index.browser.js.map +1 -1
- package/dist/index.native.js +353 -139
- package/dist/index.native.js.map +1 -1
- package/dist/index.node.cjs +353 -139
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.js +353 -139
- package/dist/index.node.js.map +1 -1
- package/dist/types/context.d.ts +8 -8
- package/dist/types/context.d.ts.map +1 -1
- package/dist/types/loaders/account.d.ts +11 -2
- package/dist/types/loaders/account.d.ts.map +1 -1
- package/dist/types/loaders/block.d.ts +8 -2
- package/dist/types/loaders/block.d.ts.map +1 -1
- package/dist/types/loaders/program-accounts.d.ts +13 -3
- package/dist/types/loaders/program-accounts.d.ts.map +1 -1
- package/dist/types/loaders/transaction.d.ts +8 -2
- package/dist/types/loaders/transaction.d.ts.map +1 -1
- package/dist/types/loaders/transformers/account.d.ts +2 -2
- package/dist/types/loaders/transformers/account.d.ts.map +1 -1
- package/dist/types/loaders/transformers/transaction.d.ts.map +1 -1
- package/dist/types/resolvers/account.d.ts +2 -2
- package/dist/types/resolvers/account.d.ts.map +1 -1
- package/dist/types/rpc.d.ts +1 -1
- package/dist/types/rpc.d.ts.map +1 -1
- package/dist/types/schema/account.d.ts +45 -54
- package/dist/types/schema/account.d.ts.map +1 -1
- package/dist/types/schema/block.d.ts +1 -9
- package/dist/types/schema/block.d.ts.map +1 -1
- package/dist/types/schema/common/types.d.ts +2 -2
- package/dist/types/schema/index.d.ts.map +1 -1
- package/dist/types/schema/instruction.d.ts +256 -256
- package/dist/types/schema/instruction.d.ts.map +1 -1
- package/dist/types/schema/transaction.d.ts +1 -8
- package/dist/types/schema/transaction.d.ts.map +1 -1
- package/package.json +7 -7
- package/dist/types/schema/program-accounts.d.ts +0 -12
- package/dist/types/schema/program-accounts.d.ts.map +0 -1
package/dist/index.browser.js
CHANGED
|
@@ -112,6 +112,11 @@ function createAccountLoader(rpc) {
|
|
|
112
112
|
// src/loaders/transformers/transaction.ts
|
|
113
113
|
function transformParsedInstruction(parsedInstruction) {
|
|
114
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
|
+
}
|
|
115
120
|
const {
|
|
116
121
|
parsed: { info: data, type: instructionType },
|
|
117
122
|
program: programName,
|
|
@@ -266,28 +271,22 @@ function normalizeArgs4({ commitment = "confirmed", encoding = "jsonParsed", sig
|
|
|
266
271
|
}
|
|
267
272
|
async function loadTransaction(rpc, { signature, ...config }) {
|
|
268
273
|
const { encoding } = config;
|
|
269
|
-
const transaction = await
|
|
270
|
-
|
|
271
|
-
// @ts-expect-error FIXME: https://github.com/solana-labs/solana-web3.js/issues/1984
|
|
272
|
-
config
|
|
273
|
-
).send().catch((e) => {
|
|
274
|
-
throw e;
|
|
275
|
-
});
|
|
276
|
-
if (transaction === null) {
|
|
277
|
-
return null;
|
|
278
|
-
}
|
|
279
|
-
if (encoding !== "jsonParsed") {
|
|
280
|
-
const jsonParsedConfig = { ...config, encoding: "jsonParsed" };
|
|
281
|
-
const transactionJsonParsed = await rpc.getTransaction(
|
|
274
|
+
const [transaction, transactionJsonParsed] = await Promise.all([
|
|
275
|
+
rpc.getTransaction(
|
|
282
276
|
signature,
|
|
283
277
|
// @ts-expect-error FIXME: https://github.com/solana-labs/solana-web3.js/issues/1984
|
|
284
|
-
|
|
285
|
-
).send()
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
}
|
|
278
|
+
config
|
|
279
|
+
).send(),
|
|
280
|
+
(async () => {
|
|
281
|
+
if (encoding !== "jsonParsed") {
|
|
282
|
+
return await rpc.getTransaction(signature, { ...config, encoding: "jsonParsed" }).send();
|
|
283
|
+
}
|
|
284
|
+
})()
|
|
285
|
+
]);
|
|
286
|
+
if (!transaction) {
|
|
287
|
+
return null;
|
|
288
|
+
}
|
|
289
|
+
if (transactionJsonParsed) {
|
|
291
290
|
transaction.meta = transactionJsonParsed.meta;
|
|
292
291
|
}
|
|
293
292
|
return transformLoadedTransaction({ encoding, transaction });
|
|
@@ -332,7 +331,9 @@ var resolveAccount = (fieldName) => {
|
|
|
332
331
|
var accountTypeDefs = (
|
|
333
332
|
/* GraphQL */
|
|
334
333
|
`
|
|
335
|
-
|
|
334
|
+
"""
|
|
335
|
+
Account interface
|
|
336
|
+
"""
|
|
336
337
|
interface Account {
|
|
337
338
|
address: Address
|
|
338
339
|
executable: Boolean
|
|
@@ -342,7 +343,9 @@ var accountTypeDefs = (
|
|
|
342
343
|
rentEpoch: BigInt
|
|
343
344
|
}
|
|
344
345
|
|
|
345
|
-
|
|
346
|
+
"""
|
|
347
|
+
An account with base58 encoded data
|
|
348
|
+
"""
|
|
346
349
|
type AccountBase58 implements Account {
|
|
347
350
|
address: Address
|
|
348
351
|
data: Base58EncodedBytes
|
|
@@ -353,7 +356,9 @@ var accountTypeDefs = (
|
|
|
353
356
|
rentEpoch: BigInt
|
|
354
357
|
}
|
|
355
358
|
|
|
356
|
-
|
|
359
|
+
"""
|
|
360
|
+
An account with base64 encoded data
|
|
361
|
+
"""
|
|
357
362
|
type AccountBase64 implements Account {
|
|
358
363
|
address: Address
|
|
359
364
|
data: Base64EncodedBytes
|
|
@@ -364,7 +369,9 @@ var accountTypeDefs = (
|
|
|
364
369
|
rentEpoch: BigInt
|
|
365
370
|
}
|
|
366
371
|
|
|
367
|
-
|
|
372
|
+
"""
|
|
373
|
+
An account with base64+zstd encoded data
|
|
374
|
+
"""
|
|
368
375
|
type AccountBase64Zstd implements Account {
|
|
369
376
|
address: Address
|
|
370
377
|
data: Base64ZstdEncodedBytes
|
|
@@ -375,10 +382,12 @@ var accountTypeDefs = (
|
|
|
375
382
|
rentEpoch: BigInt
|
|
376
383
|
}
|
|
377
384
|
|
|
378
|
-
# A nonce account
|
|
379
385
|
type NonceAccountFeeCalculator {
|
|
380
386
|
lamportsPerSignature: String
|
|
381
387
|
}
|
|
388
|
+
"""
|
|
389
|
+
A nonce account
|
|
390
|
+
"""
|
|
382
391
|
type NonceAccount implements Account {
|
|
383
392
|
address: Address
|
|
384
393
|
executable: Boolean
|
|
@@ -391,7 +400,9 @@ var accountTypeDefs = (
|
|
|
391
400
|
feeCalculator: NonceAccountFeeCalculator
|
|
392
401
|
}
|
|
393
402
|
|
|
394
|
-
|
|
403
|
+
"""
|
|
404
|
+
A lookup table account
|
|
405
|
+
"""
|
|
395
406
|
type LookupTableAccount implements Account {
|
|
396
407
|
address: Address
|
|
397
408
|
executable: Boolean
|
|
@@ -406,7 +417,9 @@ var accountTypeDefs = (
|
|
|
406
417
|
lastExtendedSlotStartIndex: Int
|
|
407
418
|
}
|
|
408
419
|
|
|
409
|
-
|
|
420
|
+
"""
|
|
421
|
+
A mint account
|
|
422
|
+
"""
|
|
410
423
|
type MintAccount implements Account {
|
|
411
424
|
address: Address
|
|
412
425
|
executable: Boolean
|
|
@@ -421,7 +434,9 @@ var accountTypeDefs = (
|
|
|
421
434
|
supply: String
|
|
422
435
|
}
|
|
423
436
|
|
|
424
|
-
|
|
437
|
+
"""
|
|
438
|
+
A token account
|
|
439
|
+
"""
|
|
425
440
|
type TokenAccount implements Account {
|
|
426
441
|
address: Address
|
|
427
442
|
executable: Boolean
|
|
@@ -436,7 +451,6 @@ var accountTypeDefs = (
|
|
|
436
451
|
tokenAmount: TokenAmount
|
|
437
452
|
}
|
|
438
453
|
|
|
439
|
-
# A stake account
|
|
440
454
|
type StakeAccountDataMetaAuthorized {
|
|
441
455
|
staker: Account
|
|
442
456
|
withdrawer: Account
|
|
@@ -462,6 +476,9 @@ var accountTypeDefs = (
|
|
|
462
476
|
creditsObserved: BigInt
|
|
463
477
|
delegation: StakeAccountDataStakeDelegation
|
|
464
478
|
}
|
|
479
|
+
"""
|
|
480
|
+
A stake account
|
|
481
|
+
"""
|
|
465
482
|
type StakeAccount implements Account {
|
|
466
483
|
address: Address
|
|
467
484
|
executable: Boolean
|
|
@@ -473,7 +490,6 @@ var accountTypeDefs = (
|
|
|
473
490
|
stake: StakeAccountDataStake
|
|
474
491
|
}
|
|
475
492
|
|
|
476
|
-
# A vote account
|
|
477
493
|
type VoteAccountDataAuthorizedVoter {
|
|
478
494
|
authorizedVoter: Account
|
|
479
495
|
epoch: BigInt
|
|
@@ -491,6 +507,9 @@ var accountTypeDefs = (
|
|
|
491
507
|
confirmationCount: Int
|
|
492
508
|
slot: BigInt
|
|
493
509
|
}
|
|
510
|
+
"""
|
|
511
|
+
A vote account
|
|
512
|
+
"""
|
|
494
513
|
type VoteAccount implements Account {
|
|
495
514
|
address: Address
|
|
496
515
|
executable: Boolean
|
|
@@ -620,22 +639,26 @@ var blockTypeDefs = (
|
|
|
620
639
|
version: String
|
|
621
640
|
}
|
|
622
641
|
|
|
623
|
-
|
|
642
|
+
"""
|
|
643
|
+
Block interface
|
|
644
|
+
"""
|
|
624
645
|
interface Block {
|
|
625
646
|
blockhash: String
|
|
626
647
|
blockHeight: BigInt
|
|
627
|
-
blockTime:
|
|
648
|
+
blockTime: BigInt
|
|
628
649
|
parentSlot: BigInt
|
|
629
650
|
previousBlockhash: String
|
|
630
651
|
rewards: [Reward]
|
|
631
652
|
transactionDetails: String
|
|
632
653
|
}
|
|
633
654
|
|
|
634
|
-
|
|
655
|
+
"""
|
|
656
|
+
A block with account transaction details
|
|
657
|
+
"""
|
|
635
658
|
type BlockWithAccounts implements Block {
|
|
636
659
|
blockhash: String
|
|
637
660
|
blockHeight: BigInt
|
|
638
|
-
blockTime:
|
|
661
|
+
blockTime: BigInt
|
|
639
662
|
parentSlot: BigInt
|
|
640
663
|
previousBlockhash: String
|
|
641
664
|
rewards: [Reward]
|
|
@@ -643,11 +666,13 @@ var blockTypeDefs = (
|
|
|
643
666
|
transactionDetails: String
|
|
644
667
|
}
|
|
645
668
|
|
|
646
|
-
|
|
669
|
+
"""
|
|
670
|
+
A block with full transaction details
|
|
671
|
+
"""
|
|
647
672
|
type BlockWithFull implements Block {
|
|
648
673
|
blockhash: String
|
|
649
674
|
blockHeight: BigInt
|
|
650
|
-
blockTime:
|
|
675
|
+
blockTime: BigInt
|
|
651
676
|
parentSlot: BigInt
|
|
652
677
|
previousBlockhash: String
|
|
653
678
|
rewards: [Reward]
|
|
@@ -655,22 +680,26 @@ var blockTypeDefs = (
|
|
|
655
680
|
transactionDetails: String
|
|
656
681
|
}
|
|
657
682
|
|
|
658
|
-
|
|
683
|
+
"""
|
|
684
|
+
A block with no transaction details
|
|
685
|
+
"""
|
|
659
686
|
type BlockWithNone implements Block {
|
|
660
687
|
blockhash: String
|
|
661
688
|
blockHeight: BigInt
|
|
662
|
-
blockTime:
|
|
689
|
+
blockTime: BigInt
|
|
663
690
|
parentSlot: BigInt
|
|
664
691
|
previousBlockhash: String
|
|
665
692
|
rewards: [Reward]
|
|
666
693
|
transactionDetails: String
|
|
667
694
|
}
|
|
668
695
|
|
|
669
|
-
|
|
696
|
+
"""
|
|
697
|
+
A block with signature transaction details
|
|
698
|
+
"""
|
|
670
699
|
type BlockWithSignatures implements Block {
|
|
671
700
|
blockhash: String
|
|
672
701
|
blockHeight: BigInt
|
|
673
|
-
blockTime:
|
|
702
|
+
blockTime: BigInt
|
|
674
703
|
parentSlot: BigInt
|
|
675
704
|
previousBlockhash: String
|
|
676
705
|
rewards: [Reward]
|
|
@@ -849,19 +878,25 @@ var commonResolvers = {
|
|
|
849
878
|
var instructionTypeDefs = (
|
|
850
879
|
/* GraphQL */
|
|
851
880
|
`
|
|
852
|
-
|
|
881
|
+
"""
|
|
882
|
+
Transaction instruction interface
|
|
883
|
+
"""
|
|
853
884
|
interface TransactionInstruction {
|
|
854
885
|
programId: Address
|
|
855
886
|
}
|
|
856
887
|
|
|
857
|
-
|
|
888
|
+
"""
|
|
889
|
+
Generic transaction instruction
|
|
890
|
+
"""
|
|
858
891
|
type GenericInstruction implements TransactionInstruction {
|
|
859
892
|
accounts: [Address]
|
|
860
893
|
data: Base64EncodedBytes
|
|
861
894
|
programId: Address
|
|
862
895
|
}
|
|
863
896
|
|
|
864
|
-
|
|
897
|
+
"""
|
|
898
|
+
AddressLookupTable: CreateLookupTable instruction
|
|
899
|
+
"""
|
|
865
900
|
type CreateLookupTableInstruction implements TransactionInstruction {
|
|
866
901
|
programId: Address
|
|
867
902
|
bumpSeed: BigInt # FIXME:*
|
|
@@ -872,7 +907,9 @@ var instructionTypeDefs = (
|
|
|
872
907
|
systemProgram: Account
|
|
873
908
|
}
|
|
874
909
|
|
|
875
|
-
|
|
910
|
+
"""
|
|
911
|
+
AddressLookupTable: ExtendLookupTable instruction
|
|
912
|
+
"""
|
|
876
913
|
type ExtendLookupTableInstruction implements TransactionInstruction {
|
|
877
914
|
programId: Address
|
|
878
915
|
lookupTableAccount: Account
|
|
@@ -882,21 +919,27 @@ var instructionTypeDefs = (
|
|
|
882
919
|
systemProgram: Account
|
|
883
920
|
}
|
|
884
921
|
|
|
885
|
-
|
|
922
|
+
"""
|
|
923
|
+
AddressLookupTable: FreezeLookupTable instruction
|
|
924
|
+
"""
|
|
886
925
|
type FreezeLookupTableInstruction implements TransactionInstruction {
|
|
887
926
|
programId: Address
|
|
888
927
|
lookupTableAccount: Account
|
|
889
928
|
lookupTableAuthority: Account
|
|
890
929
|
}
|
|
891
930
|
|
|
892
|
-
|
|
931
|
+
"""
|
|
932
|
+
AddressLookupTable: DeactivateLookupTable instruction
|
|
933
|
+
"""
|
|
893
934
|
type DeactivateLookupTableInstruction implements TransactionInstruction {
|
|
894
935
|
programId: Address
|
|
895
936
|
lookupTableAccount: Account
|
|
896
937
|
lookupTableAuthority: Account
|
|
897
938
|
}
|
|
898
939
|
|
|
899
|
-
|
|
940
|
+
"""
|
|
941
|
+
AddressLookupTable: CloseLookupTable instruction
|
|
942
|
+
"""
|
|
900
943
|
type CloseLookupTableInstruction implements TransactionInstruction {
|
|
901
944
|
programId: Address
|
|
902
945
|
lookupTableAccount: Account
|
|
@@ -904,7 +947,9 @@ var instructionTypeDefs = (
|
|
|
904
947
|
recipient: Account
|
|
905
948
|
}
|
|
906
949
|
|
|
907
|
-
|
|
950
|
+
"""
|
|
951
|
+
BpfLoader: Write instruction
|
|
952
|
+
"""
|
|
908
953
|
type BpfLoaderWriteInstruction implements TransactionInstruction {
|
|
909
954
|
programId: Address
|
|
910
955
|
account: Account
|
|
@@ -912,19 +957,25 @@ var instructionTypeDefs = (
|
|
|
912
957
|
offset: BigInt # FIXME:*
|
|
913
958
|
}
|
|
914
959
|
|
|
915
|
-
|
|
960
|
+
"""
|
|
961
|
+
BpfLoader: Finalize instruction
|
|
962
|
+
"""
|
|
916
963
|
type BpfLoaderFinalizeInstruction implements TransactionInstruction {
|
|
917
964
|
programId: Address
|
|
918
965
|
account: Account
|
|
919
966
|
}
|
|
920
967
|
|
|
921
|
-
|
|
968
|
+
"""
|
|
969
|
+
BpfUpgradeableLoader: InitializeBuffer instruction
|
|
970
|
+
"""
|
|
922
971
|
type BpfUpgradeableLoaderInitializeBufferInstruction implements TransactionInstruction {
|
|
923
972
|
programId: Address
|
|
924
973
|
account: Account
|
|
925
974
|
}
|
|
926
975
|
|
|
927
|
-
|
|
976
|
+
"""
|
|
977
|
+
BpfUpgradeableLoader: Write instruction
|
|
978
|
+
"""
|
|
928
979
|
type BpfUpgradeableLoaderWriteInstruction implements TransactionInstruction {
|
|
929
980
|
programId: Address
|
|
930
981
|
account: Account
|
|
@@ -933,7 +984,9 @@ var instructionTypeDefs = (
|
|
|
933
984
|
offset: BigInt # FIXME:*
|
|
934
985
|
}
|
|
935
986
|
|
|
936
|
-
|
|
987
|
+
"""
|
|
988
|
+
BpfUpgradeableLoader: DeployWithMaxDataLen instruction
|
|
989
|
+
"""
|
|
937
990
|
type BpfUpgradeableLoaderDeployWithMaxDataLenInstruction implements TransactionInstruction {
|
|
938
991
|
programId: Address
|
|
939
992
|
authority: Account
|
|
@@ -946,7 +999,9 @@ var instructionTypeDefs = (
|
|
|
946
999
|
rentSysvar: Address
|
|
947
1000
|
}
|
|
948
1001
|
|
|
949
|
-
|
|
1002
|
+
"""
|
|
1003
|
+
BpfUpgradeableLoader: Upgrade instruction
|
|
1004
|
+
"""
|
|
950
1005
|
type BpfUpgradeableLoaderUpgradeInstruction implements TransactionInstruction {
|
|
951
1006
|
programId: Address
|
|
952
1007
|
authority: Account
|
|
@@ -958,8 +1013,9 @@ var instructionTypeDefs = (
|
|
|
958
1013
|
spillAccount: Account
|
|
959
1014
|
}
|
|
960
1015
|
|
|
961
|
-
|
|
962
|
-
|
|
1016
|
+
"""
|
|
1017
|
+
BpfUpgradeableLoader: SetAuthority instruction
|
|
1018
|
+
"""
|
|
963
1019
|
type BpfUpgradeableLoaderSetAuthorityInstruction implements TransactionInstruction {
|
|
964
1020
|
programId: Address
|
|
965
1021
|
account: Account
|
|
@@ -967,7 +1023,9 @@ var instructionTypeDefs = (
|
|
|
967
1023
|
newAuthority: Account
|
|
968
1024
|
}
|
|
969
1025
|
|
|
970
|
-
|
|
1026
|
+
"""
|
|
1027
|
+
BpfUpgradeableLoader: SetAuthorityChecked instruction
|
|
1028
|
+
"""
|
|
971
1029
|
type BpfUpgradeableLoaderSetAuthorityCheckedInstruction implements TransactionInstruction {
|
|
972
1030
|
programId: Address
|
|
973
1031
|
account: Account
|
|
@@ -975,7 +1033,9 @@ var instructionTypeDefs = (
|
|
|
975
1033
|
newAuthority: Account
|
|
976
1034
|
}
|
|
977
1035
|
|
|
978
|
-
|
|
1036
|
+
"""
|
|
1037
|
+
BpfUpgradeableLoader: Close instruction
|
|
1038
|
+
"""
|
|
979
1039
|
type BpfUpgradeableLoaderCloseInstruction implements TransactionInstruction {
|
|
980
1040
|
programId: Address
|
|
981
1041
|
account: Account
|
|
@@ -984,7 +1044,9 @@ var instructionTypeDefs = (
|
|
|
984
1044
|
recipient: Account
|
|
985
1045
|
}
|
|
986
1046
|
|
|
987
|
-
|
|
1047
|
+
"""
|
|
1048
|
+
BpfUpgradeableLoader: ExtendProgram instruction
|
|
1049
|
+
"""
|
|
988
1050
|
type BpfUpgradeableLoaderExtendProgramInstruction implements TransactionInstruction {
|
|
989
1051
|
programId: Address
|
|
990
1052
|
additionalBytes: BigInt
|
|
@@ -994,7 +1056,9 @@ var instructionTypeDefs = (
|
|
|
994
1056
|
systemProgram: Account
|
|
995
1057
|
}
|
|
996
1058
|
|
|
997
|
-
|
|
1059
|
+
"""
|
|
1060
|
+
SplAssociatedTokenAccount: Create instruction
|
|
1061
|
+
"""
|
|
998
1062
|
type SplAssociatedTokenCreateInstruction implements TransactionInstruction {
|
|
999
1063
|
programId: Address
|
|
1000
1064
|
account: Account
|
|
@@ -1005,7 +1069,9 @@ var instructionTypeDefs = (
|
|
|
1005
1069
|
wallet: Account
|
|
1006
1070
|
}
|
|
1007
1071
|
|
|
1008
|
-
|
|
1072
|
+
"""
|
|
1073
|
+
SplAssociatedTokenAccount: CreateIdempotent instruction
|
|
1074
|
+
"""
|
|
1009
1075
|
type SplAssociatedTokenCreateIdempotentInstruction implements TransactionInstruction {
|
|
1010
1076
|
programId: Address
|
|
1011
1077
|
account: Account
|
|
@@ -1016,7 +1082,9 @@ var instructionTypeDefs = (
|
|
|
1016
1082
|
wallet: Account
|
|
1017
1083
|
}
|
|
1018
1084
|
|
|
1019
|
-
|
|
1085
|
+
"""
|
|
1086
|
+
SplAssociatedTokenAccount: RecoverNested instruction
|
|
1087
|
+
"""
|
|
1020
1088
|
type SplAssociatedTokenRecoverNestedInstruction implements TransactionInstruction {
|
|
1021
1089
|
programId: Address
|
|
1022
1090
|
destination: Account
|
|
@@ -1028,13 +1096,17 @@ var instructionTypeDefs = (
|
|
|
1028
1096
|
wallet: Account
|
|
1029
1097
|
}
|
|
1030
1098
|
|
|
1031
|
-
|
|
1099
|
+
"""
|
|
1100
|
+
SplMemo instruction
|
|
1101
|
+
"""
|
|
1032
1102
|
type SplMemoInstruction implements TransactionInstruction {
|
|
1033
1103
|
programId: Address
|
|
1034
|
-
|
|
1104
|
+
memo: String
|
|
1035
1105
|
}
|
|
1036
1106
|
|
|
1037
|
-
|
|
1107
|
+
"""
|
|
1108
|
+
SplToken: InitializeMint instruction
|
|
1109
|
+
"""
|
|
1038
1110
|
type SplTokenInitializeMintInstruction implements TransactionInstruction {
|
|
1039
1111
|
programId: Address
|
|
1040
1112
|
decimals: BigInt # FIXME:*
|
|
@@ -1044,7 +1116,9 @@ var instructionTypeDefs = (
|
|
|
1044
1116
|
rentSysvar: Address
|
|
1045
1117
|
}
|
|
1046
1118
|
|
|
1047
|
-
|
|
1119
|
+
"""
|
|
1120
|
+
SplToken: InitializeMint2 instruction
|
|
1121
|
+
"""
|
|
1048
1122
|
type SplTokenInitializeMint2Instruction implements TransactionInstruction {
|
|
1049
1123
|
programId: Address
|
|
1050
1124
|
decimals: BigInt # FIXME:*
|
|
@@ -1053,7 +1127,9 @@ var instructionTypeDefs = (
|
|
|
1053
1127
|
mintAuthority: Account
|
|
1054
1128
|
}
|
|
1055
1129
|
|
|
1056
|
-
|
|
1130
|
+
"""
|
|
1131
|
+
SplToken: InitializeAccount instruction
|
|
1132
|
+
"""
|
|
1057
1133
|
type SplTokenInitializeAccountInstruction implements TransactionInstruction {
|
|
1058
1134
|
programId: Address
|
|
1059
1135
|
account: Account
|
|
@@ -1062,7 +1138,9 @@ var instructionTypeDefs = (
|
|
|
1062
1138
|
rentSysvar: Address
|
|
1063
1139
|
}
|
|
1064
1140
|
|
|
1065
|
-
|
|
1141
|
+
"""
|
|
1142
|
+
SplToken: InitializeAccount2 instruction
|
|
1143
|
+
"""
|
|
1066
1144
|
type SplTokenInitializeAccount2Instruction implements TransactionInstruction {
|
|
1067
1145
|
programId: Address
|
|
1068
1146
|
account: Account
|
|
@@ -1071,7 +1149,9 @@ var instructionTypeDefs = (
|
|
|
1071
1149
|
rentSysvar: Address
|
|
1072
1150
|
}
|
|
1073
1151
|
|
|
1074
|
-
|
|
1152
|
+
"""
|
|
1153
|
+
SplToken: InitializeAccount3 instruction
|
|
1154
|
+
"""
|
|
1075
1155
|
type SplTokenInitializeAccount3Instruction implements TransactionInstruction {
|
|
1076
1156
|
programId: Address
|
|
1077
1157
|
account: Account
|
|
@@ -1079,7 +1159,9 @@ var instructionTypeDefs = (
|
|
|
1079
1159
|
owner: Account
|
|
1080
1160
|
}
|
|
1081
1161
|
|
|
1082
|
-
|
|
1162
|
+
"""
|
|
1163
|
+
SplToken: InitializeMultisig instruction
|
|
1164
|
+
"""
|
|
1083
1165
|
type SplTokenInitializeMultisigInstruction implements TransactionInstruction {
|
|
1084
1166
|
programId: Address
|
|
1085
1167
|
m: BigInt # FIXME:*
|
|
@@ -1088,7 +1170,9 @@ var instructionTypeDefs = (
|
|
|
1088
1170
|
signers: [Address]
|
|
1089
1171
|
}
|
|
1090
1172
|
|
|
1091
|
-
|
|
1173
|
+
"""
|
|
1174
|
+
SplToken: InitializeMultisig2 instruction
|
|
1175
|
+
"""
|
|
1092
1176
|
type SplTokenInitializeMultisig2Instruction implements TransactionInstruction {
|
|
1093
1177
|
programId: Address
|
|
1094
1178
|
m: BigInt # FIXME:*
|
|
@@ -1096,7 +1180,9 @@ var instructionTypeDefs = (
|
|
|
1096
1180
|
signers: [Address]
|
|
1097
1181
|
}
|
|
1098
1182
|
|
|
1099
|
-
|
|
1183
|
+
"""
|
|
1184
|
+
SplToken: Transfer instruction
|
|
1185
|
+
"""
|
|
1100
1186
|
type SplTokenTransferInstruction implements TransactionInstruction {
|
|
1101
1187
|
programId: Address
|
|
1102
1188
|
amount: String
|
|
@@ -1106,7 +1192,9 @@ var instructionTypeDefs = (
|
|
|
1106
1192
|
source: Account
|
|
1107
1193
|
}
|
|
1108
1194
|
|
|
1109
|
-
|
|
1195
|
+
"""
|
|
1196
|
+
SplToken: Approve instruction
|
|
1197
|
+
"""
|
|
1110
1198
|
type SplTokenApproveInstruction implements TransactionInstruction {
|
|
1111
1199
|
programId: Address
|
|
1112
1200
|
amount: String
|
|
@@ -1116,7 +1204,9 @@ var instructionTypeDefs = (
|
|
|
1116
1204
|
source: Account
|
|
1117
1205
|
}
|
|
1118
1206
|
|
|
1119
|
-
|
|
1207
|
+
"""
|
|
1208
|
+
SplToken: Revoke instruction
|
|
1209
|
+
"""
|
|
1120
1210
|
type SplTokenRevokeInstruction implements TransactionInstruction {
|
|
1121
1211
|
programId: Address
|
|
1122
1212
|
multisigOwner: Account
|
|
@@ -1124,7 +1214,9 @@ var instructionTypeDefs = (
|
|
|
1124
1214
|
source: Account
|
|
1125
1215
|
}
|
|
1126
1216
|
|
|
1127
|
-
|
|
1217
|
+
"""
|
|
1218
|
+
SplToken: SetAuthority instruction
|
|
1219
|
+
"""
|
|
1128
1220
|
type SplTokenSetAuthorityInstruction implements TransactionInstruction {
|
|
1129
1221
|
programId: Address
|
|
1130
1222
|
authority: Account
|
|
@@ -1133,7 +1225,9 @@ var instructionTypeDefs = (
|
|
|
1133
1225
|
newAuthority: Account
|
|
1134
1226
|
}
|
|
1135
1227
|
|
|
1136
|
-
|
|
1228
|
+
"""
|
|
1229
|
+
SplToken: MintTo instruction
|
|
1230
|
+
"""
|
|
1137
1231
|
type SplTokenMintToInstruction implements TransactionInstruction {
|
|
1138
1232
|
programId: Address
|
|
1139
1233
|
account: Account
|
|
@@ -1144,7 +1238,9 @@ var instructionTypeDefs = (
|
|
|
1144
1238
|
multisigMintAuthority: Account
|
|
1145
1239
|
}
|
|
1146
1240
|
|
|
1147
|
-
|
|
1241
|
+
"""
|
|
1242
|
+
SplToken: Burn instruction
|
|
1243
|
+
"""
|
|
1148
1244
|
type SplTokenBurnInstruction implements TransactionInstruction {
|
|
1149
1245
|
programId: Address
|
|
1150
1246
|
account: Account
|
|
@@ -1154,7 +1250,9 @@ var instructionTypeDefs = (
|
|
|
1154
1250
|
multisigAuthority: Account
|
|
1155
1251
|
}
|
|
1156
1252
|
|
|
1157
|
-
|
|
1253
|
+
"""
|
|
1254
|
+
SplToken: CloseAccount instruction
|
|
1255
|
+
"""
|
|
1158
1256
|
type SplTokenCloseAccountInstruction implements TransactionInstruction {
|
|
1159
1257
|
programId: Address
|
|
1160
1258
|
account: Account
|
|
@@ -1163,7 +1261,9 @@ var instructionTypeDefs = (
|
|
|
1163
1261
|
owner: Account
|
|
1164
1262
|
}
|
|
1165
1263
|
|
|
1166
|
-
|
|
1264
|
+
"""
|
|
1265
|
+
SplToken: FreezeAccount instruction
|
|
1266
|
+
"""
|
|
1167
1267
|
type SplTokenFreezeAccountInstruction implements TransactionInstruction {
|
|
1168
1268
|
programId: Address
|
|
1169
1269
|
account: Account
|
|
@@ -1172,7 +1272,9 @@ var instructionTypeDefs = (
|
|
|
1172
1272
|
multisigFreezeAuthority: Account
|
|
1173
1273
|
}
|
|
1174
1274
|
|
|
1175
|
-
|
|
1275
|
+
"""
|
|
1276
|
+
SplToken: ThawAccount instruction
|
|
1277
|
+
"""
|
|
1176
1278
|
type SplTokenThawAccountInstruction implements TransactionInstruction {
|
|
1177
1279
|
programId: Address
|
|
1178
1280
|
account: Account
|
|
@@ -1181,7 +1283,9 @@ var instructionTypeDefs = (
|
|
|
1181
1283
|
multisigFreezeAuthority: Account
|
|
1182
1284
|
}
|
|
1183
1285
|
|
|
1184
|
-
|
|
1286
|
+
"""
|
|
1287
|
+
SplToken: TransferChecked instruction
|
|
1288
|
+
"""
|
|
1185
1289
|
type SplTokenTransferCheckedInstruction implements TransactionInstruction {
|
|
1186
1290
|
programId: Address
|
|
1187
1291
|
amount: String
|
|
@@ -1194,7 +1298,9 @@ var instructionTypeDefs = (
|
|
|
1194
1298
|
tokenAmount: String
|
|
1195
1299
|
}
|
|
1196
1300
|
|
|
1197
|
-
|
|
1301
|
+
"""
|
|
1302
|
+
SplToken: ApproveChecked instruction
|
|
1303
|
+
"""
|
|
1198
1304
|
type SplTokenApproveCheckedInstruction implements TransactionInstruction {
|
|
1199
1305
|
programId: Address
|
|
1200
1306
|
delegate: Account
|
|
@@ -1205,7 +1311,9 @@ var instructionTypeDefs = (
|
|
|
1205
1311
|
tokenAmount: String
|
|
1206
1312
|
}
|
|
1207
1313
|
|
|
1208
|
-
|
|
1314
|
+
"""
|
|
1315
|
+
SplToken: MintToChecked instruction
|
|
1316
|
+
"""
|
|
1209
1317
|
type SplTokenMintToCheckedInstruction implements TransactionInstruction {
|
|
1210
1318
|
programId: Address
|
|
1211
1319
|
account: Account
|
|
@@ -1216,7 +1324,9 @@ var instructionTypeDefs = (
|
|
|
1216
1324
|
tokenAmount: String
|
|
1217
1325
|
}
|
|
1218
1326
|
|
|
1219
|
-
|
|
1327
|
+
"""
|
|
1328
|
+
SplToken: BurnChecked instruction
|
|
1329
|
+
"""
|
|
1220
1330
|
type SplTokenBurnCheckedInstruction implements TransactionInstruction {
|
|
1221
1331
|
programId: Address
|
|
1222
1332
|
account: Account
|
|
@@ -1226,40 +1336,52 @@ var instructionTypeDefs = (
|
|
|
1226
1336
|
tokenAmount: String
|
|
1227
1337
|
}
|
|
1228
1338
|
|
|
1229
|
-
|
|
1339
|
+
"""
|
|
1340
|
+
SplToken: SyncNative instruction
|
|
1341
|
+
"""
|
|
1230
1342
|
type SplTokenSyncNativeInstruction implements TransactionInstruction {
|
|
1231
1343
|
programId: Address
|
|
1232
1344
|
account: Account
|
|
1233
1345
|
}
|
|
1234
1346
|
|
|
1235
|
-
|
|
1347
|
+
"""
|
|
1348
|
+
SplToken: GetAccountDataSize instruction
|
|
1349
|
+
"""
|
|
1236
1350
|
type SplTokenGetAccountDataSizeInstruction implements TransactionInstruction {
|
|
1237
1351
|
programId: Address
|
|
1238
1352
|
extensionTypes: [String]
|
|
1239
1353
|
mint: Account
|
|
1240
1354
|
}
|
|
1241
1355
|
|
|
1242
|
-
|
|
1356
|
+
"""
|
|
1357
|
+
SplToken: InitializeImmutableOwner instruction
|
|
1358
|
+
"""
|
|
1243
1359
|
type SplTokenInitializeImmutableOwnerInstruction implements TransactionInstruction {
|
|
1244
1360
|
programId: Address
|
|
1245
1361
|
account: Account
|
|
1246
1362
|
}
|
|
1247
1363
|
|
|
1248
|
-
|
|
1364
|
+
"""
|
|
1365
|
+
SplToken: AmountToUiAmount instruction
|
|
1366
|
+
"""
|
|
1249
1367
|
type SplTokenAmountToUiAmountInstruction implements TransactionInstruction {
|
|
1250
1368
|
programId: Address
|
|
1251
1369
|
amount: String
|
|
1252
1370
|
mint: Account
|
|
1253
1371
|
}
|
|
1254
1372
|
|
|
1255
|
-
|
|
1373
|
+
"""
|
|
1374
|
+
SplToken: UiAmountToAmount instruction
|
|
1375
|
+
"""
|
|
1256
1376
|
type SplTokenUiAmountToAmountInstruction implements TransactionInstruction {
|
|
1257
1377
|
programId: Address
|
|
1258
1378
|
mint: Account
|
|
1259
1379
|
uiAmount: String
|
|
1260
1380
|
}
|
|
1261
1381
|
|
|
1262
|
-
|
|
1382
|
+
"""
|
|
1383
|
+
SplToken: InitializeMintCloseAuthority instruction
|
|
1384
|
+
"""
|
|
1263
1385
|
type SplTokenInitializeMintCloseAuthorityInstruction implements TransactionInstruction {
|
|
1264
1386
|
programId: Address
|
|
1265
1387
|
mint: Account
|
|
@@ -1288,7 +1410,9 @@ var instructionTypeDefs = (
|
|
|
1288
1410
|
unixTimestamp: BigInt
|
|
1289
1411
|
}
|
|
1290
1412
|
|
|
1291
|
-
|
|
1413
|
+
"""
|
|
1414
|
+
Stake: Initialize instruction
|
|
1415
|
+
"""
|
|
1292
1416
|
type StakeInitializeInstructionDataAuthorized {
|
|
1293
1417
|
staker: Account
|
|
1294
1418
|
withdrawer: Account
|
|
@@ -1301,7 +1425,9 @@ var instructionTypeDefs = (
|
|
|
1301
1425
|
stakeAccount: Account
|
|
1302
1426
|
}
|
|
1303
1427
|
|
|
1304
|
-
|
|
1428
|
+
"""
|
|
1429
|
+
Stake: Authorize instruction
|
|
1430
|
+
"""
|
|
1305
1431
|
type StakeAuthorizeInstruction implements TransactionInstruction {
|
|
1306
1432
|
programId: Address
|
|
1307
1433
|
authority: Account
|
|
@@ -1312,7 +1438,9 @@ var instructionTypeDefs = (
|
|
|
1312
1438
|
stakeAccount: Account
|
|
1313
1439
|
}
|
|
1314
1440
|
|
|
1315
|
-
|
|
1441
|
+
"""
|
|
1442
|
+
Stake: DelegateStake instruction
|
|
1443
|
+
"""
|
|
1316
1444
|
type StakeDelegateStakeInstruction implements TransactionInstruction {
|
|
1317
1445
|
programId: Address
|
|
1318
1446
|
clockSysvar: Address
|
|
@@ -1323,7 +1451,9 @@ var instructionTypeDefs = (
|
|
|
1323
1451
|
voteAccount: Account
|
|
1324
1452
|
}
|
|
1325
1453
|
|
|
1326
|
-
|
|
1454
|
+
"""
|
|
1455
|
+
Stake: Split instruction
|
|
1456
|
+
"""
|
|
1327
1457
|
type StakeSplitInstruction implements TransactionInstruction {
|
|
1328
1458
|
programId: Address
|
|
1329
1459
|
lamports: BigInt
|
|
@@ -1332,7 +1462,9 @@ var instructionTypeDefs = (
|
|
|
1332
1462
|
stakeAuthority: Account
|
|
1333
1463
|
}
|
|
1334
1464
|
|
|
1335
|
-
|
|
1465
|
+
"""
|
|
1466
|
+
Stake: Withdraw instruction
|
|
1467
|
+
"""
|
|
1336
1468
|
type StakeWithdrawInstruction implements TransactionInstruction {
|
|
1337
1469
|
programId: Address
|
|
1338
1470
|
clockSysvar: Address
|
|
@@ -1342,7 +1474,9 @@ var instructionTypeDefs = (
|
|
|
1342
1474
|
withdrawAuthority: Account
|
|
1343
1475
|
}
|
|
1344
1476
|
|
|
1345
|
-
|
|
1477
|
+
"""
|
|
1478
|
+
Stake: Deactivate instruction
|
|
1479
|
+
"""
|
|
1346
1480
|
type StakeDeactivateInstruction implements TransactionInstruction {
|
|
1347
1481
|
programId: Address
|
|
1348
1482
|
clockSysvar: Address
|
|
@@ -1350,7 +1484,9 @@ var instructionTypeDefs = (
|
|
|
1350
1484
|
stakeAuthority: Account
|
|
1351
1485
|
}
|
|
1352
1486
|
|
|
1353
|
-
|
|
1487
|
+
"""
|
|
1488
|
+
Stake: SetLockup instruction
|
|
1489
|
+
"""
|
|
1354
1490
|
type StakeSetLockupInstruction implements TransactionInstruction {
|
|
1355
1491
|
programId: Address
|
|
1356
1492
|
custodian: Account
|
|
@@ -1358,7 +1494,9 @@ var instructionTypeDefs = (
|
|
|
1358
1494
|
stakeAccount: Account
|
|
1359
1495
|
}
|
|
1360
1496
|
|
|
1361
|
-
|
|
1497
|
+
"""
|
|
1498
|
+
Stake: Merge instruction
|
|
1499
|
+
"""
|
|
1362
1500
|
type StakeMergeInstruction implements TransactionInstruction {
|
|
1363
1501
|
programId: Address
|
|
1364
1502
|
clockSysvar: Address
|
|
@@ -1368,7 +1506,9 @@ var instructionTypeDefs = (
|
|
|
1368
1506
|
stakeHistorySysvar: Address
|
|
1369
1507
|
}
|
|
1370
1508
|
|
|
1371
|
-
|
|
1509
|
+
"""
|
|
1510
|
+
Stake: AuthorizeWithSeed instruction
|
|
1511
|
+
"""
|
|
1372
1512
|
type StakeAuthorizeWithSeedInstruction implements TransactionInstruction {
|
|
1373
1513
|
programId: Address
|
|
1374
1514
|
authorityBase: Account
|
|
@@ -1381,7 +1521,9 @@ var instructionTypeDefs = (
|
|
|
1381
1521
|
stakeAccount: Account
|
|
1382
1522
|
}
|
|
1383
1523
|
|
|
1384
|
-
|
|
1524
|
+
"""
|
|
1525
|
+
Stake: InitializeChecked instruction
|
|
1526
|
+
"""
|
|
1385
1527
|
type StakeInitializeCheckedInstructionDataAuthorized {
|
|
1386
1528
|
staker: Account
|
|
1387
1529
|
withdrawer: Account
|
|
@@ -1394,7 +1536,9 @@ var instructionTypeDefs = (
|
|
|
1394
1536
|
stakeAccount: Account
|
|
1395
1537
|
}
|
|
1396
1538
|
|
|
1397
|
-
|
|
1539
|
+
"""
|
|
1540
|
+
Stake: AuthorizeChecked instruction
|
|
1541
|
+
"""
|
|
1398
1542
|
type StakeAuthorizeCheckedInstruction implements TransactionInstruction {
|
|
1399
1543
|
programId: Address
|
|
1400
1544
|
authority: Account
|
|
@@ -1405,7 +1549,9 @@ var instructionTypeDefs = (
|
|
|
1405
1549
|
stakeAccount: Account
|
|
1406
1550
|
}
|
|
1407
1551
|
|
|
1408
|
-
|
|
1552
|
+
"""
|
|
1553
|
+
Stake: AuthorizeCheckedWithSeed instruction
|
|
1554
|
+
"""
|
|
1409
1555
|
type StakeAuthorizeCheckedWithSeedInstruction implements TransactionInstruction {
|
|
1410
1556
|
programId: Address
|
|
1411
1557
|
authorityBase: Account
|
|
@@ -1418,7 +1564,9 @@ var instructionTypeDefs = (
|
|
|
1418
1564
|
stakeAccount: Account
|
|
1419
1565
|
}
|
|
1420
1566
|
|
|
1421
|
-
|
|
1567
|
+
"""
|
|
1568
|
+
Stake: SetLockupChecked instruction
|
|
1569
|
+
"""
|
|
1422
1570
|
type StakeSetLockupCheckedInstruction implements TransactionInstruction {
|
|
1423
1571
|
programId: Address
|
|
1424
1572
|
custodian: Account
|
|
@@ -1426,7 +1574,9 @@ var instructionTypeDefs = (
|
|
|
1426
1574
|
stakeAccount: Account
|
|
1427
1575
|
}
|
|
1428
1576
|
|
|
1429
|
-
|
|
1577
|
+
"""
|
|
1578
|
+
Stake: DeactivateDelinquent instruction
|
|
1579
|
+
"""
|
|
1430
1580
|
type StakeDeactivateDelinquentInstruction implements TransactionInstruction {
|
|
1431
1581
|
programId: Address
|
|
1432
1582
|
referenceVoteAccount: Account
|
|
@@ -1434,7 +1584,9 @@ var instructionTypeDefs = (
|
|
|
1434
1584
|
voteAccount: Account
|
|
1435
1585
|
}
|
|
1436
1586
|
|
|
1437
|
-
|
|
1587
|
+
"""
|
|
1588
|
+
Stake: Redelegate instruction
|
|
1589
|
+
"""
|
|
1438
1590
|
type StakeRedelegateInstruction implements TransactionInstruction {
|
|
1439
1591
|
programId: Address
|
|
1440
1592
|
newStakeAccount: Account
|
|
@@ -1444,7 +1596,9 @@ var instructionTypeDefs = (
|
|
|
1444
1596
|
voteAccount: Account
|
|
1445
1597
|
}
|
|
1446
1598
|
|
|
1447
|
-
|
|
1599
|
+
"""
|
|
1600
|
+
System: CreateAccount instruction
|
|
1601
|
+
"""
|
|
1448
1602
|
type CreateAccountInstruction implements TransactionInstruction {
|
|
1449
1603
|
programId: Address
|
|
1450
1604
|
lamports: BigInt
|
|
@@ -1454,14 +1608,18 @@ var instructionTypeDefs = (
|
|
|
1454
1608
|
space: BigInt
|
|
1455
1609
|
}
|
|
1456
1610
|
|
|
1457
|
-
|
|
1611
|
+
"""
|
|
1612
|
+
System: Assign instruction
|
|
1613
|
+
"""
|
|
1458
1614
|
type AssignInstruction implements TransactionInstruction {
|
|
1459
1615
|
programId: Address
|
|
1460
1616
|
account: Account
|
|
1461
1617
|
owner: Account
|
|
1462
1618
|
}
|
|
1463
1619
|
|
|
1464
|
-
|
|
1620
|
+
"""
|
|
1621
|
+
System: Transfer instruction
|
|
1622
|
+
"""
|
|
1465
1623
|
type TransferInstruction implements TransactionInstruction {
|
|
1466
1624
|
programId: Address
|
|
1467
1625
|
destination: Account
|
|
@@ -1469,7 +1627,9 @@ var instructionTypeDefs = (
|
|
|
1469
1627
|
source: Account
|
|
1470
1628
|
}
|
|
1471
1629
|
|
|
1472
|
-
|
|
1630
|
+
"""
|
|
1631
|
+
System: CreateAccountWithSeed instruction
|
|
1632
|
+
"""
|
|
1473
1633
|
type CreateAccountWithSeedInstruction implements TransactionInstruction {
|
|
1474
1634
|
programId: Address
|
|
1475
1635
|
base: Account
|
|
@@ -1479,7 +1639,9 @@ var instructionTypeDefs = (
|
|
|
1479
1639
|
space: BigInt
|
|
1480
1640
|
}
|
|
1481
1641
|
|
|
1482
|
-
|
|
1642
|
+
"""
|
|
1643
|
+
System: AdvanceNonceAccount instruction
|
|
1644
|
+
"""
|
|
1483
1645
|
type AdvanceNonceAccountInstruction implements TransactionInstruction {
|
|
1484
1646
|
programId: Address
|
|
1485
1647
|
nonceAccount: Account
|
|
@@ -1487,7 +1649,9 @@ var instructionTypeDefs = (
|
|
|
1487
1649
|
recentBlockhashesSysvar: Address
|
|
1488
1650
|
}
|
|
1489
1651
|
|
|
1490
|
-
|
|
1652
|
+
"""
|
|
1653
|
+
System: WithdrawNonceAccount instruction
|
|
1654
|
+
"""
|
|
1491
1655
|
type WithdrawNonceAccountInstruction implements TransactionInstruction {
|
|
1492
1656
|
programId: Address
|
|
1493
1657
|
destination: Account
|
|
@@ -1498,7 +1662,9 @@ var instructionTypeDefs = (
|
|
|
1498
1662
|
rentSysvar: Address
|
|
1499
1663
|
}
|
|
1500
1664
|
|
|
1501
|
-
|
|
1665
|
+
"""
|
|
1666
|
+
System: InitializeNonceAccount instruction
|
|
1667
|
+
"""
|
|
1502
1668
|
type InitializeNonceAccountInstruction implements TransactionInstruction {
|
|
1503
1669
|
programId: Address
|
|
1504
1670
|
nonceAccount: Account
|
|
@@ -1507,7 +1673,9 @@ var instructionTypeDefs = (
|
|
|
1507
1673
|
rentSysvar: Address
|
|
1508
1674
|
}
|
|
1509
1675
|
|
|
1510
|
-
|
|
1676
|
+
"""
|
|
1677
|
+
System: AuthorizeNonceAccount instruction
|
|
1678
|
+
"""
|
|
1511
1679
|
type AuthorizeNonceAccountInstruction implements TransactionInstruction {
|
|
1512
1680
|
programId: Address
|
|
1513
1681
|
newAuthorized: Account
|
|
@@ -1515,21 +1683,27 @@ var instructionTypeDefs = (
|
|
|
1515
1683
|
nonceAuthority: Account
|
|
1516
1684
|
}
|
|
1517
1685
|
|
|
1518
|
-
|
|
1686
|
+
"""
|
|
1687
|
+
System: UpgradeNonceAccount instruction
|
|
1688
|
+
"""
|
|
1519
1689
|
type UpgradeNonceAccountInstruction implements TransactionInstruction {
|
|
1520
1690
|
programId: Address
|
|
1521
1691
|
nonceAccount: Account
|
|
1522
1692
|
nonceAuthority: Account
|
|
1523
1693
|
}
|
|
1524
1694
|
|
|
1525
|
-
|
|
1695
|
+
"""
|
|
1696
|
+
System: Allocate instruction
|
|
1697
|
+
"""
|
|
1526
1698
|
type AllocateInstruction implements TransactionInstruction {
|
|
1527
1699
|
programId: Address
|
|
1528
1700
|
account: Account
|
|
1529
1701
|
space: BigInt
|
|
1530
1702
|
}
|
|
1531
1703
|
|
|
1532
|
-
|
|
1704
|
+
"""
|
|
1705
|
+
System: AllocateWithSeed instruction
|
|
1706
|
+
"""
|
|
1533
1707
|
type AllocateWithSeedInstruction implements TransactionInstruction {
|
|
1534
1708
|
programId: Address
|
|
1535
1709
|
account: Account
|
|
@@ -1539,7 +1713,9 @@ var instructionTypeDefs = (
|
|
|
1539
1713
|
space: BigInt
|
|
1540
1714
|
}
|
|
1541
1715
|
|
|
1542
|
-
|
|
1716
|
+
"""
|
|
1717
|
+
System: AssignWithSeed instruction
|
|
1718
|
+
"""
|
|
1543
1719
|
type AssignWithSeedInstruction implements TransactionInstruction {
|
|
1544
1720
|
programId: Address
|
|
1545
1721
|
account: Account
|
|
@@ -1548,7 +1724,9 @@ var instructionTypeDefs = (
|
|
|
1548
1724
|
seed: String
|
|
1549
1725
|
}
|
|
1550
1726
|
|
|
1551
|
-
|
|
1727
|
+
"""
|
|
1728
|
+
System: TransferWithSeed instruction
|
|
1729
|
+
"""
|
|
1552
1730
|
type TransferWithSeedInstruction implements TransactionInstruction {
|
|
1553
1731
|
programId: Address
|
|
1554
1732
|
destination: Account
|
|
@@ -1559,7 +1737,9 @@ var instructionTypeDefs = (
|
|
|
1559
1737
|
sourceSeed: String
|
|
1560
1738
|
}
|
|
1561
1739
|
|
|
1562
|
-
|
|
1740
|
+
"""
|
|
1741
|
+
Vote: InitializeAccount instruction
|
|
1742
|
+
"""
|
|
1563
1743
|
type VoteInitializeAccountInstruction implements TransactionInstruction {
|
|
1564
1744
|
programId: Address
|
|
1565
1745
|
authorizedVoter: Account
|
|
@@ -1571,7 +1751,9 @@ var instructionTypeDefs = (
|
|
|
1571
1751
|
voteAccount: Account
|
|
1572
1752
|
}
|
|
1573
1753
|
|
|
1574
|
-
|
|
1754
|
+
"""
|
|
1755
|
+
Vote: Authorize instruction
|
|
1756
|
+
"""
|
|
1575
1757
|
type VoteAuthorizeInstruction implements TransactionInstruction {
|
|
1576
1758
|
programId: Address
|
|
1577
1759
|
authority: Account
|
|
@@ -1581,7 +1763,9 @@ var instructionTypeDefs = (
|
|
|
1581
1763
|
voteAccount: Account
|
|
1582
1764
|
}
|
|
1583
1765
|
|
|
1584
|
-
|
|
1766
|
+
"""
|
|
1767
|
+
Vote: AuthorizeWithSeed instruction
|
|
1768
|
+
"""
|
|
1585
1769
|
type VoteAuthorizeWithSeedInstruction implements TransactionInstruction {
|
|
1586
1770
|
programId: Address
|
|
1587
1771
|
authorityBaseKey: String
|
|
@@ -1593,7 +1777,9 @@ var instructionTypeDefs = (
|
|
|
1593
1777
|
voteAccount: Account
|
|
1594
1778
|
}
|
|
1595
1779
|
|
|
1596
|
-
|
|
1780
|
+
"""
|
|
1781
|
+
Vote: AuthorizeCheckedWithSeed instruction
|
|
1782
|
+
"""
|
|
1597
1783
|
type VoteAuthorizeCheckedWithSeedInstruction implements TransactionInstruction {
|
|
1598
1784
|
programId: Address
|
|
1599
1785
|
authorityBaseKey: String
|
|
@@ -1611,7 +1797,9 @@ var instructionTypeDefs = (
|
|
|
1611
1797
|
timestamp: BigInt
|
|
1612
1798
|
}
|
|
1613
1799
|
|
|
1614
|
-
|
|
1800
|
+
"""
|
|
1801
|
+
Vote: Vote instruction
|
|
1802
|
+
"""
|
|
1615
1803
|
type VoteVoteInstruction implements TransactionInstruction {
|
|
1616
1804
|
programId: Address
|
|
1617
1805
|
clockSysvar: Address
|
|
@@ -1632,7 +1820,9 @@ var instructionTypeDefs = (
|
|
|
1632
1820
|
timestamp: BigInt
|
|
1633
1821
|
}
|
|
1634
1822
|
|
|
1635
|
-
|
|
1823
|
+
"""
|
|
1824
|
+
Vote: UpdateVoteState instruction
|
|
1825
|
+
"""
|
|
1636
1826
|
type VoteUpdateVoteStateInstruction implements TransactionInstruction {
|
|
1637
1827
|
programId: Address
|
|
1638
1828
|
hash: String
|
|
@@ -1641,7 +1831,9 @@ var instructionTypeDefs = (
|
|
|
1641
1831
|
voteStateUpdate: VoteStateUpdate
|
|
1642
1832
|
}
|
|
1643
1833
|
|
|
1644
|
-
|
|
1834
|
+
"""
|
|
1835
|
+
Vote: UpdateVoteStateSwitch instruction
|
|
1836
|
+
"""
|
|
1645
1837
|
type VoteUpdateVoteStateSwitchInstruction implements TransactionInstruction {
|
|
1646
1838
|
programId: Address
|
|
1647
1839
|
hash: String
|
|
@@ -1650,7 +1842,9 @@ var instructionTypeDefs = (
|
|
|
1650
1842
|
voteStateUpdate: VoteStateUpdate
|
|
1651
1843
|
}
|
|
1652
1844
|
|
|
1653
|
-
|
|
1845
|
+
"""
|
|
1846
|
+
Vote: CompactUpdateVoteState instruction
|
|
1847
|
+
"""
|
|
1654
1848
|
type VoteCompactUpdateVoteStateInstruction implements TransactionInstruction {
|
|
1655
1849
|
programId: Address
|
|
1656
1850
|
hash: String
|
|
@@ -1659,7 +1853,9 @@ var instructionTypeDefs = (
|
|
|
1659
1853
|
voteStateUpdate: VoteStateUpdate
|
|
1660
1854
|
}
|
|
1661
1855
|
|
|
1662
|
-
|
|
1856
|
+
"""
|
|
1857
|
+
Vote: CompactUpdateVoteStateSwitch instruction
|
|
1858
|
+
"""
|
|
1663
1859
|
type VoteCompactUpdateVoteStateSwitchInstruction implements TransactionInstruction {
|
|
1664
1860
|
programId: Address
|
|
1665
1861
|
hash: String
|
|
@@ -1668,7 +1864,9 @@ var instructionTypeDefs = (
|
|
|
1668
1864
|
voteStateUpdate: VoteStateUpdate
|
|
1669
1865
|
}
|
|
1670
1866
|
|
|
1671
|
-
|
|
1867
|
+
"""
|
|
1868
|
+
Vote: Withdraw instruction
|
|
1869
|
+
"""
|
|
1672
1870
|
type VoteWithdrawInstruction implements TransactionInstruction {
|
|
1673
1871
|
programId: Address
|
|
1674
1872
|
destination: Account
|
|
@@ -1677,7 +1875,9 @@ var instructionTypeDefs = (
|
|
|
1677
1875
|
withdrawAuthority: Account
|
|
1678
1876
|
}
|
|
1679
1877
|
|
|
1680
|
-
|
|
1878
|
+
"""
|
|
1879
|
+
Vote: UpdateValidatorIdentity instruction
|
|
1880
|
+
"""
|
|
1681
1881
|
type VoteUpdateValidatorIdentityInstruction implements TransactionInstruction {
|
|
1682
1882
|
programId: Address
|
|
1683
1883
|
newValidatorIdentity: Account
|
|
@@ -1685,7 +1885,9 @@ var instructionTypeDefs = (
|
|
|
1685
1885
|
withdrawAuthority: Account
|
|
1686
1886
|
}
|
|
1687
1887
|
|
|
1688
|
-
|
|
1888
|
+
"""
|
|
1889
|
+
Vote: UpdateCommission instruction
|
|
1890
|
+
"""
|
|
1689
1891
|
type VoteUpdateCommissionInstruction implements TransactionInstruction {
|
|
1690
1892
|
programId: Address
|
|
1691
1893
|
commission: BigInt # FIXME:*
|
|
@@ -1693,7 +1895,9 @@ var instructionTypeDefs = (
|
|
|
1693
1895
|
withdrawAuthority: Account
|
|
1694
1896
|
}
|
|
1695
1897
|
|
|
1696
|
-
|
|
1898
|
+
"""
|
|
1899
|
+
Vote: VoteSwitch instruction
|
|
1900
|
+
"""
|
|
1697
1901
|
type VoteVoteSwitchInstruction implements TransactionInstruction {
|
|
1698
1902
|
programId: Address
|
|
1699
1903
|
clockSysvar: Address
|
|
@@ -1704,7 +1908,9 @@ var instructionTypeDefs = (
|
|
|
1704
1908
|
voteAuthority: Account
|
|
1705
1909
|
}
|
|
1706
1910
|
|
|
1707
|
-
|
|
1911
|
+
"""
|
|
1912
|
+
Vote: AuthorizeChecked instruction
|
|
1913
|
+
"""
|
|
1708
1914
|
type VoteAuthorizeCheckedInstruction implements TransactionInstruction {
|
|
1709
1915
|
programId: Address
|
|
1710
1916
|
authority: Account
|
|
@@ -2496,39 +2702,47 @@ var transactionTypeDefs = (
|
|
|
2496
2702
|
recentBlockhash: String
|
|
2497
2703
|
}
|
|
2498
2704
|
|
|
2499
|
-
|
|
2705
|
+
"""
|
|
2706
|
+
Transaction interface
|
|
2707
|
+
"""
|
|
2500
2708
|
interface Transaction {
|
|
2501
|
-
blockTime:
|
|
2709
|
+
blockTime: BigInt
|
|
2502
2710
|
meta: TransactionMeta
|
|
2503
2711
|
slot: BigInt
|
|
2504
2712
|
version: String
|
|
2505
2713
|
}
|
|
2506
2714
|
|
|
2507
|
-
|
|
2715
|
+
"""
|
|
2716
|
+
A transaction with base58 encoded data
|
|
2717
|
+
"""
|
|
2508
2718
|
type TransactionBase58 implements Transaction {
|
|
2509
|
-
blockTime:
|
|
2719
|
+
blockTime: BigInt
|
|
2510
2720
|
data: Base58EncodedBytes
|
|
2511
2721
|
meta: TransactionMeta
|
|
2512
2722
|
slot: BigInt
|
|
2513
2723
|
version: String
|
|
2514
2724
|
}
|
|
2515
2725
|
|
|
2516
|
-
|
|
2726
|
+
"""
|
|
2727
|
+
A transaction with base64 encoded data
|
|
2728
|
+
"""
|
|
2517
2729
|
type TransactionBase64 implements Transaction {
|
|
2518
|
-
blockTime:
|
|
2730
|
+
blockTime: BigInt
|
|
2519
2731
|
data: Base64EncodedBytes
|
|
2520
2732
|
meta: TransactionMeta
|
|
2521
2733
|
slot: BigInt
|
|
2522
2734
|
version: String
|
|
2523
2735
|
}
|
|
2524
2736
|
|
|
2525
|
-
|
|
2737
|
+
"""
|
|
2738
|
+
A transaction with JSON encoded data
|
|
2739
|
+
"""
|
|
2526
2740
|
type TransactionDataParsed {
|
|
2527
2741
|
message: TransactionMessage
|
|
2528
2742
|
signatures: [String]
|
|
2529
2743
|
}
|
|
2530
2744
|
type TransactionParsed implements Transaction {
|
|
2531
|
-
blockTime:
|
|
2745
|
+
blockTime: BigInt
|
|
2532
2746
|
data: TransactionDataParsed
|
|
2533
2747
|
meta: TransactionMeta
|
|
2534
2748
|
slot: BigInt
|