@solana/rpc-graphql 2.0.0-experimental.a48ebd2 → 2.0.0-experimental.a81a78e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.browser.cjs +363 -134
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.js +362 -133
- package/dist/index.browser.js.map +1 -1
- package/dist/index.native.js +362 -133
- package/dist/index.native.js.map +1 -1
- package/dist/index.node.cjs +363 -134
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.js +362 -133
- package/dist/index.node.js.map +1 -1
- package/dist/types/context.d.ts +9 -9
- package/dist/types/context.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/loaders/account.d.ts +11 -3
- package/dist/types/loaders/account.d.ts.map +1 -1
- package/dist/types/loaders/block.d.ts +10 -3
- package/dist/types/loaders/block.d.ts.map +1 -1
- package/dist/types/loaders/common/cache-key-fn.d.ts +2 -0
- package/dist/types/loaders/common/cache-key-fn.d.ts.map +1 -0
- package/dist/types/loaders/program-accounts.d.ts +14 -4
- package/dist/types/loaders/program-accounts.d.ts.map +1 -1
- package/dist/types/loaders/transaction.d.ts +9 -3
- 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 +3 -3
- package/dist/types/resolvers/account.d.ts.map +1 -1
- package/dist/types/rpc.d.ts +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 +15 -15
- package/dist/types/schema/program-accounts.d.ts +0 -12
- package/dist/types/schema/program-accounts.d.ts.map +0 -1
package/dist/index.native.js
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { graphql, Kind } from 'graphql';
|
|
2
2
|
import DataLoader from 'dataloader';
|
|
3
|
-
import
|
|
3
|
+
import stringify from 'json-stable-stringify';
|
|
4
4
|
import { makeExecutableSchema } from '@graphql-tools/schema';
|
|
5
5
|
|
|
6
6
|
// src/rpc.ts
|
|
7
|
+
function replacer(_, value) {
|
|
8
|
+
if (typeof value === "bigint") {
|
|
9
|
+
return value.toString() + "n";
|
|
10
|
+
}
|
|
11
|
+
return value;
|
|
12
|
+
}
|
|
13
|
+
var cacheKeyFn = (obj) => stringify(obj, { replacer });
|
|
7
14
|
|
|
8
15
|
// src/loaders/common/resolve-info.ts
|
|
9
16
|
function onlyPresentFieldRequested(fieldName, info) {
|
|
@@ -91,7 +98,7 @@ function createAccountBatchLoadFn(rpc) {
|
|
|
91
98
|
};
|
|
92
99
|
}
|
|
93
100
|
function createAccountLoader(rpc) {
|
|
94
|
-
const loader = new DataLoader(createAccountBatchLoadFn(rpc), { cacheKeyFn
|
|
101
|
+
const loader = new DataLoader(createAccountBatchLoadFn(rpc), { cacheKeyFn });
|
|
95
102
|
return {
|
|
96
103
|
load: async (args, info) => {
|
|
97
104
|
if (onlyPresentFieldRequested("address", info)) {
|
|
@@ -105,6 +112,11 @@ function createAccountLoader(rpc) {
|
|
|
105
112
|
// src/loaders/transformers/transaction.ts
|
|
106
113
|
function transformParsedInstruction(parsedInstruction) {
|
|
107
114
|
if ("parsed" in parsedInstruction) {
|
|
115
|
+
if (typeof parsedInstruction.parsed === "string" && parsedInstruction.program === "spl-memo") {
|
|
116
|
+
const { parsed: memo, program: programName2, programId: programId2 } = parsedInstruction;
|
|
117
|
+
const instructionType2 = "memo";
|
|
118
|
+
return { instructionType: instructionType2, memo, programId: programId2, programName: programName2 };
|
|
119
|
+
}
|
|
108
120
|
const {
|
|
109
121
|
parsed: { info: data, type: instructionType },
|
|
110
122
|
program: programName,
|
|
@@ -181,7 +193,11 @@ function normalizeArgs2({
|
|
|
181
193
|
};
|
|
182
194
|
}
|
|
183
195
|
async function loadBlock(rpc, { slot, ...config }) {
|
|
184
|
-
const block = await rpc.getBlock(
|
|
196
|
+
const block = await rpc.getBlock(
|
|
197
|
+
slot,
|
|
198
|
+
// @ts-expect-error FIXME: https://github.com/solana-labs/solana-web3.js/issues/1984
|
|
199
|
+
config
|
|
200
|
+
).send().catch((e) => {
|
|
185
201
|
throw e;
|
|
186
202
|
});
|
|
187
203
|
return block === null ? { slot } : transformLoadedBlock({ block, encoding: config.encoding, transactionDetails: config.transactionDetails });
|
|
@@ -193,7 +209,7 @@ function createBlockBatchLoadFn(rpc) {
|
|
|
193
209
|
};
|
|
194
210
|
}
|
|
195
211
|
function createBlockLoader(rpc) {
|
|
196
|
-
const loader = new DataLoader(createBlockBatchLoadFn(rpc), { cacheKeyFn
|
|
212
|
+
const loader = new DataLoader(createBlockBatchLoadFn(rpc), { cacheKeyFn });
|
|
197
213
|
return {
|
|
198
214
|
load: async (args, info) => {
|
|
199
215
|
if (onlyPresentFieldRequested("slot", info)) {
|
|
@@ -214,12 +230,7 @@ function normalizeArgs3({
|
|
|
214
230
|
return { commitment, dataSlice, encoding, filters, minContextSlot, programAddress };
|
|
215
231
|
}
|
|
216
232
|
async function loadProgramAccounts(rpc, { programAddress, ...config }) {
|
|
217
|
-
const programAccounts = await rpc.getProgramAccounts(programAddress, config).send().
|
|
218
|
-
if ("value" in res) {
|
|
219
|
-
return res.value;
|
|
220
|
-
}
|
|
221
|
-
return res;
|
|
222
|
-
}).catch((e) => {
|
|
233
|
+
const programAccounts = await rpc.getProgramAccounts(programAddress, config).send().catch((e) => {
|
|
223
234
|
throw e;
|
|
224
235
|
});
|
|
225
236
|
return programAccounts.map(
|
|
@@ -239,7 +250,7 @@ function createProgramAccountsBatchLoadFn(rpc) {
|
|
|
239
250
|
};
|
|
240
251
|
}
|
|
241
252
|
function createProgramAccountsLoader(rpc) {
|
|
242
|
-
const loader = new DataLoader(createProgramAccountsBatchLoadFn(rpc), { cacheKeyFn
|
|
253
|
+
const loader = new DataLoader(createProgramAccountsBatchLoadFn(rpc), { cacheKeyFn });
|
|
243
254
|
return {
|
|
244
255
|
load: async (args, info) => {
|
|
245
256
|
if (onlyPresentFieldRequested("programAddress", info)) {
|
|
@@ -260,19 +271,22 @@ function normalizeArgs4({ commitment = "confirmed", encoding = "jsonParsed", sig
|
|
|
260
271
|
}
|
|
261
272
|
async function loadTransaction(rpc, { signature, ...config }) {
|
|
262
273
|
const { encoding } = config;
|
|
263
|
-
const transaction = await
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
274
|
+
const [transaction, transactionJsonParsed] = await Promise.all([
|
|
275
|
+
rpc.getTransaction(
|
|
276
|
+
signature,
|
|
277
|
+
// @ts-expect-error FIXME: https://github.com/solana-labs/solana-web3.js/issues/1984
|
|
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) {
|
|
267
287
|
return null;
|
|
268
288
|
}
|
|
269
|
-
if (
|
|
270
|
-
const transactionJsonParsed = await rpc.getTransaction(signature, config).send().catch((e) => {
|
|
271
|
-
throw e;
|
|
272
|
-
});
|
|
273
|
-
if (transactionJsonParsed === null) {
|
|
274
|
-
return null;
|
|
275
|
-
}
|
|
289
|
+
if (transactionJsonParsed) {
|
|
276
290
|
transaction.meta = transactionJsonParsed.meta;
|
|
277
291
|
}
|
|
278
292
|
return transformLoadedTransaction({ encoding, transaction });
|
|
@@ -284,7 +298,7 @@ function createTransactionBatchLoadFn(rpc) {
|
|
|
284
298
|
};
|
|
285
299
|
}
|
|
286
300
|
function createTransactionLoader(rpc) {
|
|
287
|
-
const loader = new DataLoader(createTransactionBatchLoadFn(rpc), { cacheKeyFn
|
|
301
|
+
const loader = new DataLoader(createTransactionBatchLoadFn(rpc), { cacheKeyFn });
|
|
288
302
|
return {
|
|
289
303
|
load: async (args, info) => {
|
|
290
304
|
if (onlyPresentFieldRequested("signature", info)) {
|
|
@@ -317,7 +331,9 @@ var resolveAccount = (fieldName) => {
|
|
|
317
331
|
var accountTypeDefs = (
|
|
318
332
|
/* GraphQL */
|
|
319
333
|
`
|
|
320
|
-
|
|
334
|
+
"""
|
|
335
|
+
Account interface
|
|
336
|
+
"""
|
|
321
337
|
interface Account {
|
|
322
338
|
address: Address
|
|
323
339
|
executable: Boolean
|
|
@@ -327,7 +343,9 @@ var accountTypeDefs = (
|
|
|
327
343
|
rentEpoch: BigInt
|
|
328
344
|
}
|
|
329
345
|
|
|
330
|
-
|
|
346
|
+
"""
|
|
347
|
+
An account with base58 encoded data
|
|
348
|
+
"""
|
|
331
349
|
type AccountBase58 implements Account {
|
|
332
350
|
address: Address
|
|
333
351
|
data: Base58EncodedBytes
|
|
@@ -338,7 +356,9 @@ var accountTypeDefs = (
|
|
|
338
356
|
rentEpoch: BigInt
|
|
339
357
|
}
|
|
340
358
|
|
|
341
|
-
|
|
359
|
+
"""
|
|
360
|
+
An account with base64 encoded data
|
|
361
|
+
"""
|
|
342
362
|
type AccountBase64 implements Account {
|
|
343
363
|
address: Address
|
|
344
364
|
data: Base64EncodedBytes
|
|
@@ -349,7 +369,9 @@ var accountTypeDefs = (
|
|
|
349
369
|
rentEpoch: BigInt
|
|
350
370
|
}
|
|
351
371
|
|
|
352
|
-
|
|
372
|
+
"""
|
|
373
|
+
An account with base64+zstd encoded data
|
|
374
|
+
"""
|
|
353
375
|
type AccountBase64Zstd implements Account {
|
|
354
376
|
address: Address
|
|
355
377
|
data: Base64ZstdEncodedBytes
|
|
@@ -360,10 +382,12 @@ var accountTypeDefs = (
|
|
|
360
382
|
rentEpoch: BigInt
|
|
361
383
|
}
|
|
362
384
|
|
|
363
|
-
# A nonce account
|
|
364
385
|
type NonceAccountFeeCalculator {
|
|
365
386
|
lamportsPerSignature: String
|
|
366
387
|
}
|
|
388
|
+
"""
|
|
389
|
+
A nonce account
|
|
390
|
+
"""
|
|
367
391
|
type NonceAccount implements Account {
|
|
368
392
|
address: Address
|
|
369
393
|
executable: Boolean
|
|
@@ -376,7 +400,9 @@ var accountTypeDefs = (
|
|
|
376
400
|
feeCalculator: NonceAccountFeeCalculator
|
|
377
401
|
}
|
|
378
402
|
|
|
379
|
-
|
|
403
|
+
"""
|
|
404
|
+
A lookup table account
|
|
405
|
+
"""
|
|
380
406
|
type LookupTableAccount implements Account {
|
|
381
407
|
address: Address
|
|
382
408
|
executable: Boolean
|
|
@@ -391,7 +417,9 @@ var accountTypeDefs = (
|
|
|
391
417
|
lastExtendedSlotStartIndex: Int
|
|
392
418
|
}
|
|
393
419
|
|
|
394
|
-
|
|
420
|
+
"""
|
|
421
|
+
A mint account
|
|
422
|
+
"""
|
|
395
423
|
type MintAccount implements Account {
|
|
396
424
|
address: Address
|
|
397
425
|
executable: Boolean
|
|
@@ -406,7 +434,9 @@ var accountTypeDefs = (
|
|
|
406
434
|
supply: String
|
|
407
435
|
}
|
|
408
436
|
|
|
409
|
-
|
|
437
|
+
"""
|
|
438
|
+
A token account
|
|
439
|
+
"""
|
|
410
440
|
type TokenAccount implements Account {
|
|
411
441
|
address: Address
|
|
412
442
|
executable: Boolean
|
|
@@ -421,7 +451,6 @@ var accountTypeDefs = (
|
|
|
421
451
|
tokenAmount: TokenAmount
|
|
422
452
|
}
|
|
423
453
|
|
|
424
|
-
# A stake account
|
|
425
454
|
type StakeAccountDataMetaAuthorized {
|
|
426
455
|
staker: Account
|
|
427
456
|
withdrawer: Account
|
|
@@ -447,6 +476,9 @@ var accountTypeDefs = (
|
|
|
447
476
|
creditsObserved: BigInt
|
|
448
477
|
delegation: StakeAccountDataStakeDelegation
|
|
449
478
|
}
|
|
479
|
+
"""
|
|
480
|
+
A stake account
|
|
481
|
+
"""
|
|
450
482
|
type StakeAccount implements Account {
|
|
451
483
|
address: Address
|
|
452
484
|
executable: Boolean
|
|
@@ -458,7 +490,6 @@ var accountTypeDefs = (
|
|
|
458
490
|
stake: StakeAccountDataStake
|
|
459
491
|
}
|
|
460
492
|
|
|
461
|
-
# A vote account
|
|
462
493
|
type VoteAccountDataAuthorizedVoter {
|
|
463
494
|
authorizedVoter: Account
|
|
464
495
|
epoch: BigInt
|
|
@@ -476,6 +507,9 @@ var accountTypeDefs = (
|
|
|
476
507
|
confirmationCount: Int
|
|
477
508
|
slot: BigInt
|
|
478
509
|
}
|
|
510
|
+
"""
|
|
511
|
+
A vote account
|
|
512
|
+
"""
|
|
479
513
|
type VoteAccount implements Account {
|
|
480
514
|
address: Address
|
|
481
515
|
executable: Boolean
|
|
@@ -605,7 +639,9 @@ var blockTypeDefs = (
|
|
|
605
639
|
version: String
|
|
606
640
|
}
|
|
607
641
|
|
|
608
|
-
|
|
642
|
+
"""
|
|
643
|
+
Block interface
|
|
644
|
+
"""
|
|
609
645
|
interface Block {
|
|
610
646
|
blockhash: String
|
|
611
647
|
blockHeight: BigInt
|
|
@@ -616,7 +652,9 @@ var blockTypeDefs = (
|
|
|
616
652
|
transactionDetails: String
|
|
617
653
|
}
|
|
618
654
|
|
|
619
|
-
|
|
655
|
+
"""
|
|
656
|
+
A block with account transaction details
|
|
657
|
+
"""
|
|
620
658
|
type BlockWithAccounts implements Block {
|
|
621
659
|
blockhash: String
|
|
622
660
|
blockHeight: BigInt
|
|
@@ -628,7 +666,9 @@ var blockTypeDefs = (
|
|
|
628
666
|
transactionDetails: String
|
|
629
667
|
}
|
|
630
668
|
|
|
631
|
-
|
|
669
|
+
"""
|
|
670
|
+
A block with full transaction details
|
|
671
|
+
"""
|
|
632
672
|
type BlockWithFull implements Block {
|
|
633
673
|
blockhash: String
|
|
634
674
|
blockHeight: BigInt
|
|
@@ -640,7 +680,9 @@ var blockTypeDefs = (
|
|
|
640
680
|
transactionDetails: String
|
|
641
681
|
}
|
|
642
682
|
|
|
643
|
-
|
|
683
|
+
"""
|
|
684
|
+
A block with no transaction details
|
|
685
|
+
"""
|
|
644
686
|
type BlockWithNone implements Block {
|
|
645
687
|
blockhash: String
|
|
646
688
|
blockHeight: BigInt
|
|
@@ -651,7 +693,9 @@ var blockTypeDefs = (
|
|
|
651
693
|
transactionDetails: String
|
|
652
694
|
}
|
|
653
695
|
|
|
654
|
-
|
|
696
|
+
"""
|
|
697
|
+
A block with signature transaction details
|
|
698
|
+
"""
|
|
655
699
|
type BlockWithSignatures implements Block {
|
|
656
700
|
blockhash: String
|
|
657
701
|
blockHeight: BigInt
|
|
@@ -834,19 +878,25 @@ var commonResolvers = {
|
|
|
834
878
|
var instructionTypeDefs = (
|
|
835
879
|
/* GraphQL */
|
|
836
880
|
`
|
|
837
|
-
|
|
881
|
+
"""
|
|
882
|
+
Transaction instruction interface
|
|
883
|
+
"""
|
|
838
884
|
interface TransactionInstruction {
|
|
839
885
|
programId: Address
|
|
840
886
|
}
|
|
841
887
|
|
|
842
|
-
|
|
888
|
+
"""
|
|
889
|
+
Generic transaction instruction
|
|
890
|
+
"""
|
|
843
891
|
type GenericInstruction implements TransactionInstruction {
|
|
844
892
|
accounts: [Address]
|
|
845
893
|
data: Base64EncodedBytes
|
|
846
894
|
programId: Address
|
|
847
895
|
}
|
|
848
896
|
|
|
849
|
-
|
|
897
|
+
"""
|
|
898
|
+
AddressLookupTable: CreateLookupTable instruction
|
|
899
|
+
"""
|
|
850
900
|
type CreateLookupTableInstruction implements TransactionInstruction {
|
|
851
901
|
programId: Address
|
|
852
902
|
bumpSeed: BigInt # FIXME:*
|
|
@@ -857,7 +907,9 @@ var instructionTypeDefs = (
|
|
|
857
907
|
systemProgram: Account
|
|
858
908
|
}
|
|
859
909
|
|
|
860
|
-
|
|
910
|
+
"""
|
|
911
|
+
AddressLookupTable: ExtendLookupTable instruction
|
|
912
|
+
"""
|
|
861
913
|
type ExtendLookupTableInstruction implements TransactionInstruction {
|
|
862
914
|
programId: Address
|
|
863
915
|
lookupTableAccount: Account
|
|
@@ -867,21 +919,27 @@ var instructionTypeDefs = (
|
|
|
867
919
|
systemProgram: Account
|
|
868
920
|
}
|
|
869
921
|
|
|
870
|
-
|
|
922
|
+
"""
|
|
923
|
+
AddressLookupTable: FreezeLookupTable instruction
|
|
924
|
+
"""
|
|
871
925
|
type FreezeLookupTableInstruction implements TransactionInstruction {
|
|
872
926
|
programId: Address
|
|
873
927
|
lookupTableAccount: Account
|
|
874
928
|
lookupTableAuthority: Account
|
|
875
929
|
}
|
|
876
930
|
|
|
877
|
-
|
|
931
|
+
"""
|
|
932
|
+
AddressLookupTable: DeactivateLookupTable instruction
|
|
933
|
+
"""
|
|
878
934
|
type DeactivateLookupTableInstruction implements TransactionInstruction {
|
|
879
935
|
programId: Address
|
|
880
936
|
lookupTableAccount: Account
|
|
881
937
|
lookupTableAuthority: Account
|
|
882
938
|
}
|
|
883
939
|
|
|
884
|
-
|
|
940
|
+
"""
|
|
941
|
+
AddressLookupTable: CloseLookupTable instruction
|
|
942
|
+
"""
|
|
885
943
|
type CloseLookupTableInstruction implements TransactionInstruction {
|
|
886
944
|
programId: Address
|
|
887
945
|
lookupTableAccount: Account
|
|
@@ -889,7 +947,9 @@ var instructionTypeDefs = (
|
|
|
889
947
|
recipient: Account
|
|
890
948
|
}
|
|
891
949
|
|
|
892
|
-
|
|
950
|
+
"""
|
|
951
|
+
BpfLoader: Write instruction
|
|
952
|
+
"""
|
|
893
953
|
type BpfLoaderWriteInstruction implements TransactionInstruction {
|
|
894
954
|
programId: Address
|
|
895
955
|
account: Account
|
|
@@ -897,19 +957,25 @@ var instructionTypeDefs = (
|
|
|
897
957
|
offset: BigInt # FIXME:*
|
|
898
958
|
}
|
|
899
959
|
|
|
900
|
-
|
|
960
|
+
"""
|
|
961
|
+
BpfLoader: Finalize instruction
|
|
962
|
+
"""
|
|
901
963
|
type BpfLoaderFinalizeInstruction implements TransactionInstruction {
|
|
902
964
|
programId: Address
|
|
903
965
|
account: Account
|
|
904
966
|
}
|
|
905
967
|
|
|
906
|
-
|
|
968
|
+
"""
|
|
969
|
+
BpfUpgradeableLoader: InitializeBuffer instruction
|
|
970
|
+
"""
|
|
907
971
|
type BpfUpgradeableLoaderInitializeBufferInstruction implements TransactionInstruction {
|
|
908
972
|
programId: Address
|
|
909
973
|
account: Account
|
|
910
974
|
}
|
|
911
975
|
|
|
912
|
-
|
|
976
|
+
"""
|
|
977
|
+
BpfUpgradeableLoader: Write instruction
|
|
978
|
+
"""
|
|
913
979
|
type BpfUpgradeableLoaderWriteInstruction implements TransactionInstruction {
|
|
914
980
|
programId: Address
|
|
915
981
|
account: Account
|
|
@@ -918,7 +984,9 @@ var instructionTypeDefs = (
|
|
|
918
984
|
offset: BigInt # FIXME:*
|
|
919
985
|
}
|
|
920
986
|
|
|
921
|
-
|
|
987
|
+
"""
|
|
988
|
+
BpfUpgradeableLoader: DeployWithMaxDataLen instruction
|
|
989
|
+
"""
|
|
922
990
|
type BpfUpgradeableLoaderDeployWithMaxDataLenInstruction implements TransactionInstruction {
|
|
923
991
|
programId: Address
|
|
924
992
|
authority: Account
|
|
@@ -931,7 +999,9 @@ var instructionTypeDefs = (
|
|
|
931
999
|
rentSysvar: Address
|
|
932
1000
|
}
|
|
933
1001
|
|
|
934
|
-
|
|
1002
|
+
"""
|
|
1003
|
+
BpfUpgradeableLoader: Upgrade instruction
|
|
1004
|
+
"""
|
|
935
1005
|
type BpfUpgradeableLoaderUpgradeInstruction implements TransactionInstruction {
|
|
936
1006
|
programId: Address
|
|
937
1007
|
authority: Account
|
|
@@ -943,8 +1013,9 @@ var instructionTypeDefs = (
|
|
|
943
1013
|
spillAccount: Account
|
|
944
1014
|
}
|
|
945
1015
|
|
|
946
|
-
|
|
947
|
-
|
|
1016
|
+
"""
|
|
1017
|
+
BpfUpgradeableLoader: SetAuthority instruction
|
|
1018
|
+
"""
|
|
948
1019
|
type BpfUpgradeableLoaderSetAuthorityInstruction implements TransactionInstruction {
|
|
949
1020
|
programId: Address
|
|
950
1021
|
account: Account
|
|
@@ -952,7 +1023,9 @@ var instructionTypeDefs = (
|
|
|
952
1023
|
newAuthority: Account
|
|
953
1024
|
}
|
|
954
1025
|
|
|
955
|
-
|
|
1026
|
+
"""
|
|
1027
|
+
BpfUpgradeableLoader: SetAuthorityChecked instruction
|
|
1028
|
+
"""
|
|
956
1029
|
type BpfUpgradeableLoaderSetAuthorityCheckedInstruction implements TransactionInstruction {
|
|
957
1030
|
programId: Address
|
|
958
1031
|
account: Account
|
|
@@ -960,7 +1033,9 @@ var instructionTypeDefs = (
|
|
|
960
1033
|
newAuthority: Account
|
|
961
1034
|
}
|
|
962
1035
|
|
|
963
|
-
|
|
1036
|
+
"""
|
|
1037
|
+
BpfUpgradeableLoader: Close instruction
|
|
1038
|
+
"""
|
|
964
1039
|
type BpfUpgradeableLoaderCloseInstruction implements TransactionInstruction {
|
|
965
1040
|
programId: Address
|
|
966
1041
|
account: Account
|
|
@@ -969,7 +1044,9 @@ var instructionTypeDefs = (
|
|
|
969
1044
|
recipient: Account
|
|
970
1045
|
}
|
|
971
1046
|
|
|
972
|
-
|
|
1047
|
+
"""
|
|
1048
|
+
BpfUpgradeableLoader: ExtendProgram instruction
|
|
1049
|
+
"""
|
|
973
1050
|
type BpfUpgradeableLoaderExtendProgramInstruction implements TransactionInstruction {
|
|
974
1051
|
programId: Address
|
|
975
1052
|
additionalBytes: BigInt
|
|
@@ -979,7 +1056,9 @@ var instructionTypeDefs = (
|
|
|
979
1056
|
systemProgram: Account
|
|
980
1057
|
}
|
|
981
1058
|
|
|
982
|
-
|
|
1059
|
+
"""
|
|
1060
|
+
SplAssociatedTokenAccount: Create instruction
|
|
1061
|
+
"""
|
|
983
1062
|
type SplAssociatedTokenCreateInstruction implements TransactionInstruction {
|
|
984
1063
|
programId: Address
|
|
985
1064
|
account: Account
|
|
@@ -990,7 +1069,9 @@ var instructionTypeDefs = (
|
|
|
990
1069
|
wallet: Account
|
|
991
1070
|
}
|
|
992
1071
|
|
|
993
|
-
|
|
1072
|
+
"""
|
|
1073
|
+
SplAssociatedTokenAccount: CreateIdempotent instruction
|
|
1074
|
+
"""
|
|
994
1075
|
type SplAssociatedTokenCreateIdempotentInstruction implements TransactionInstruction {
|
|
995
1076
|
programId: Address
|
|
996
1077
|
account: Account
|
|
@@ -1001,7 +1082,9 @@ var instructionTypeDefs = (
|
|
|
1001
1082
|
wallet: Account
|
|
1002
1083
|
}
|
|
1003
1084
|
|
|
1004
|
-
|
|
1085
|
+
"""
|
|
1086
|
+
SplAssociatedTokenAccount: RecoverNested instruction
|
|
1087
|
+
"""
|
|
1005
1088
|
type SplAssociatedTokenRecoverNestedInstruction implements TransactionInstruction {
|
|
1006
1089
|
programId: Address
|
|
1007
1090
|
destination: Account
|
|
@@ -1013,13 +1096,17 @@ var instructionTypeDefs = (
|
|
|
1013
1096
|
wallet: Account
|
|
1014
1097
|
}
|
|
1015
1098
|
|
|
1016
|
-
|
|
1099
|
+
"""
|
|
1100
|
+
SplMemo instruction
|
|
1101
|
+
"""
|
|
1017
1102
|
type SplMemoInstruction implements TransactionInstruction {
|
|
1018
1103
|
programId: Address
|
|
1019
|
-
|
|
1104
|
+
memo: String
|
|
1020
1105
|
}
|
|
1021
1106
|
|
|
1022
|
-
|
|
1107
|
+
"""
|
|
1108
|
+
SplToken: InitializeMint instruction
|
|
1109
|
+
"""
|
|
1023
1110
|
type SplTokenInitializeMintInstruction implements TransactionInstruction {
|
|
1024
1111
|
programId: Address
|
|
1025
1112
|
decimals: BigInt # FIXME:*
|
|
@@ -1029,7 +1116,9 @@ var instructionTypeDefs = (
|
|
|
1029
1116
|
rentSysvar: Address
|
|
1030
1117
|
}
|
|
1031
1118
|
|
|
1032
|
-
|
|
1119
|
+
"""
|
|
1120
|
+
SplToken: InitializeMint2 instruction
|
|
1121
|
+
"""
|
|
1033
1122
|
type SplTokenInitializeMint2Instruction implements TransactionInstruction {
|
|
1034
1123
|
programId: Address
|
|
1035
1124
|
decimals: BigInt # FIXME:*
|
|
@@ -1038,7 +1127,9 @@ var instructionTypeDefs = (
|
|
|
1038
1127
|
mintAuthority: Account
|
|
1039
1128
|
}
|
|
1040
1129
|
|
|
1041
|
-
|
|
1130
|
+
"""
|
|
1131
|
+
SplToken: InitializeAccount instruction
|
|
1132
|
+
"""
|
|
1042
1133
|
type SplTokenInitializeAccountInstruction implements TransactionInstruction {
|
|
1043
1134
|
programId: Address
|
|
1044
1135
|
account: Account
|
|
@@ -1047,7 +1138,9 @@ var instructionTypeDefs = (
|
|
|
1047
1138
|
rentSysvar: Address
|
|
1048
1139
|
}
|
|
1049
1140
|
|
|
1050
|
-
|
|
1141
|
+
"""
|
|
1142
|
+
SplToken: InitializeAccount2 instruction
|
|
1143
|
+
"""
|
|
1051
1144
|
type SplTokenInitializeAccount2Instruction implements TransactionInstruction {
|
|
1052
1145
|
programId: Address
|
|
1053
1146
|
account: Account
|
|
@@ -1056,7 +1149,9 @@ var instructionTypeDefs = (
|
|
|
1056
1149
|
rentSysvar: Address
|
|
1057
1150
|
}
|
|
1058
1151
|
|
|
1059
|
-
|
|
1152
|
+
"""
|
|
1153
|
+
SplToken: InitializeAccount3 instruction
|
|
1154
|
+
"""
|
|
1060
1155
|
type SplTokenInitializeAccount3Instruction implements TransactionInstruction {
|
|
1061
1156
|
programId: Address
|
|
1062
1157
|
account: Account
|
|
@@ -1064,7 +1159,9 @@ var instructionTypeDefs = (
|
|
|
1064
1159
|
owner: Account
|
|
1065
1160
|
}
|
|
1066
1161
|
|
|
1067
|
-
|
|
1162
|
+
"""
|
|
1163
|
+
SplToken: InitializeMultisig instruction
|
|
1164
|
+
"""
|
|
1068
1165
|
type SplTokenInitializeMultisigInstruction implements TransactionInstruction {
|
|
1069
1166
|
programId: Address
|
|
1070
1167
|
m: BigInt # FIXME:*
|
|
@@ -1073,7 +1170,9 @@ var instructionTypeDefs = (
|
|
|
1073
1170
|
signers: [Address]
|
|
1074
1171
|
}
|
|
1075
1172
|
|
|
1076
|
-
|
|
1173
|
+
"""
|
|
1174
|
+
SplToken: InitializeMultisig2 instruction
|
|
1175
|
+
"""
|
|
1077
1176
|
type SplTokenInitializeMultisig2Instruction implements TransactionInstruction {
|
|
1078
1177
|
programId: Address
|
|
1079
1178
|
m: BigInt # FIXME:*
|
|
@@ -1081,7 +1180,9 @@ var instructionTypeDefs = (
|
|
|
1081
1180
|
signers: [Address]
|
|
1082
1181
|
}
|
|
1083
1182
|
|
|
1084
|
-
|
|
1183
|
+
"""
|
|
1184
|
+
SplToken: Transfer instruction
|
|
1185
|
+
"""
|
|
1085
1186
|
type SplTokenTransferInstruction implements TransactionInstruction {
|
|
1086
1187
|
programId: Address
|
|
1087
1188
|
amount: String
|
|
@@ -1091,7 +1192,9 @@ var instructionTypeDefs = (
|
|
|
1091
1192
|
source: Account
|
|
1092
1193
|
}
|
|
1093
1194
|
|
|
1094
|
-
|
|
1195
|
+
"""
|
|
1196
|
+
SplToken: Approve instruction
|
|
1197
|
+
"""
|
|
1095
1198
|
type SplTokenApproveInstruction implements TransactionInstruction {
|
|
1096
1199
|
programId: Address
|
|
1097
1200
|
amount: String
|
|
@@ -1101,7 +1204,9 @@ var instructionTypeDefs = (
|
|
|
1101
1204
|
source: Account
|
|
1102
1205
|
}
|
|
1103
1206
|
|
|
1104
|
-
|
|
1207
|
+
"""
|
|
1208
|
+
SplToken: Revoke instruction
|
|
1209
|
+
"""
|
|
1105
1210
|
type SplTokenRevokeInstruction implements TransactionInstruction {
|
|
1106
1211
|
programId: Address
|
|
1107
1212
|
multisigOwner: Account
|
|
@@ -1109,7 +1214,9 @@ var instructionTypeDefs = (
|
|
|
1109
1214
|
source: Account
|
|
1110
1215
|
}
|
|
1111
1216
|
|
|
1112
|
-
|
|
1217
|
+
"""
|
|
1218
|
+
SplToken: SetAuthority instruction
|
|
1219
|
+
"""
|
|
1113
1220
|
type SplTokenSetAuthorityInstruction implements TransactionInstruction {
|
|
1114
1221
|
programId: Address
|
|
1115
1222
|
authority: Account
|
|
@@ -1118,7 +1225,9 @@ var instructionTypeDefs = (
|
|
|
1118
1225
|
newAuthority: Account
|
|
1119
1226
|
}
|
|
1120
1227
|
|
|
1121
|
-
|
|
1228
|
+
"""
|
|
1229
|
+
SplToken: MintTo instruction
|
|
1230
|
+
"""
|
|
1122
1231
|
type SplTokenMintToInstruction implements TransactionInstruction {
|
|
1123
1232
|
programId: Address
|
|
1124
1233
|
account: Account
|
|
@@ -1129,7 +1238,9 @@ var instructionTypeDefs = (
|
|
|
1129
1238
|
multisigMintAuthority: Account
|
|
1130
1239
|
}
|
|
1131
1240
|
|
|
1132
|
-
|
|
1241
|
+
"""
|
|
1242
|
+
SplToken: Burn instruction
|
|
1243
|
+
"""
|
|
1133
1244
|
type SplTokenBurnInstruction implements TransactionInstruction {
|
|
1134
1245
|
programId: Address
|
|
1135
1246
|
account: Account
|
|
@@ -1139,7 +1250,9 @@ var instructionTypeDefs = (
|
|
|
1139
1250
|
multisigAuthority: Account
|
|
1140
1251
|
}
|
|
1141
1252
|
|
|
1142
|
-
|
|
1253
|
+
"""
|
|
1254
|
+
SplToken: CloseAccount instruction
|
|
1255
|
+
"""
|
|
1143
1256
|
type SplTokenCloseAccountInstruction implements TransactionInstruction {
|
|
1144
1257
|
programId: Address
|
|
1145
1258
|
account: Account
|
|
@@ -1148,7 +1261,9 @@ var instructionTypeDefs = (
|
|
|
1148
1261
|
owner: Account
|
|
1149
1262
|
}
|
|
1150
1263
|
|
|
1151
|
-
|
|
1264
|
+
"""
|
|
1265
|
+
SplToken: FreezeAccount instruction
|
|
1266
|
+
"""
|
|
1152
1267
|
type SplTokenFreezeAccountInstruction implements TransactionInstruction {
|
|
1153
1268
|
programId: Address
|
|
1154
1269
|
account: Account
|
|
@@ -1157,7 +1272,9 @@ var instructionTypeDefs = (
|
|
|
1157
1272
|
multisigFreezeAuthority: Account
|
|
1158
1273
|
}
|
|
1159
1274
|
|
|
1160
|
-
|
|
1275
|
+
"""
|
|
1276
|
+
SplToken: ThawAccount instruction
|
|
1277
|
+
"""
|
|
1161
1278
|
type SplTokenThawAccountInstruction implements TransactionInstruction {
|
|
1162
1279
|
programId: Address
|
|
1163
1280
|
account: Account
|
|
@@ -1166,7 +1283,9 @@ var instructionTypeDefs = (
|
|
|
1166
1283
|
multisigFreezeAuthority: Account
|
|
1167
1284
|
}
|
|
1168
1285
|
|
|
1169
|
-
|
|
1286
|
+
"""
|
|
1287
|
+
SplToken: TransferChecked instruction
|
|
1288
|
+
"""
|
|
1170
1289
|
type SplTokenTransferCheckedInstruction implements TransactionInstruction {
|
|
1171
1290
|
programId: Address
|
|
1172
1291
|
amount: String
|
|
@@ -1179,7 +1298,9 @@ var instructionTypeDefs = (
|
|
|
1179
1298
|
tokenAmount: String
|
|
1180
1299
|
}
|
|
1181
1300
|
|
|
1182
|
-
|
|
1301
|
+
"""
|
|
1302
|
+
SplToken: ApproveChecked instruction
|
|
1303
|
+
"""
|
|
1183
1304
|
type SplTokenApproveCheckedInstruction implements TransactionInstruction {
|
|
1184
1305
|
programId: Address
|
|
1185
1306
|
delegate: Account
|
|
@@ -1190,7 +1311,9 @@ var instructionTypeDefs = (
|
|
|
1190
1311
|
tokenAmount: String
|
|
1191
1312
|
}
|
|
1192
1313
|
|
|
1193
|
-
|
|
1314
|
+
"""
|
|
1315
|
+
SplToken: MintToChecked instruction
|
|
1316
|
+
"""
|
|
1194
1317
|
type SplTokenMintToCheckedInstruction implements TransactionInstruction {
|
|
1195
1318
|
programId: Address
|
|
1196
1319
|
account: Account
|
|
@@ -1201,7 +1324,9 @@ var instructionTypeDefs = (
|
|
|
1201
1324
|
tokenAmount: String
|
|
1202
1325
|
}
|
|
1203
1326
|
|
|
1204
|
-
|
|
1327
|
+
"""
|
|
1328
|
+
SplToken: BurnChecked instruction
|
|
1329
|
+
"""
|
|
1205
1330
|
type SplTokenBurnCheckedInstruction implements TransactionInstruction {
|
|
1206
1331
|
programId: Address
|
|
1207
1332
|
account: Account
|
|
@@ -1211,40 +1336,52 @@ var instructionTypeDefs = (
|
|
|
1211
1336
|
tokenAmount: String
|
|
1212
1337
|
}
|
|
1213
1338
|
|
|
1214
|
-
|
|
1339
|
+
"""
|
|
1340
|
+
SplToken: SyncNative instruction
|
|
1341
|
+
"""
|
|
1215
1342
|
type SplTokenSyncNativeInstruction implements TransactionInstruction {
|
|
1216
1343
|
programId: Address
|
|
1217
1344
|
account: Account
|
|
1218
1345
|
}
|
|
1219
1346
|
|
|
1220
|
-
|
|
1347
|
+
"""
|
|
1348
|
+
SplToken: GetAccountDataSize instruction
|
|
1349
|
+
"""
|
|
1221
1350
|
type SplTokenGetAccountDataSizeInstruction implements TransactionInstruction {
|
|
1222
1351
|
programId: Address
|
|
1223
1352
|
extensionTypes: [String]
|
|
1224
1353
|
mint: Account
|
|
1225
1354
|
}
|
|
1226
1355
|
|
|
1227
|
-
|
|
1356
|
+
"""
|
|
1357
|
+
SplToken: InitializeImmutableOwner instruction
|
|
1358
|
+
"""
|
|
1228
1359
|
type SplTokenInitializeImmutableOwnerInstruction implements TransactionInstruction {
|
|
1229
1360
|
programId: Address
|
|
1230
1361
|
account: Account
|
|
1231
1362
|
}
|
|
1232
1363
|
|
|
1233
|
-
|
|
1364
|
+
"""
|
|
1365
|
+
SplToken: AmountToUiAmount instruction
|
|
1366
|
+
"""
|
|
1234
1367
|
type SplTokenAmountToUiAmountInstruction implements TransactionInstruction {
|
|
1235
1368
|
programId: Address
|
|
1236
1369
|
amount: String
|
|
1237
1370
|
mint: Account
|
|
1238
1371
|
}
|
|
1239
1372
|
|
|
1240
|
-
|
|
1373
|
+
"""
|
|
1374
|
+
SplToken: UiAmountToAmount instruction
|
|
1375
|
+
"""
|
|
1241
1376
|
type SplTokenUiAmountToAmountInstruction implements TransactionInstruction {
|
|
1242
1377
|
programId: Address
|
|
1243
1378
|
mint: Account
|
|
1244
1379
|
uiAmount: String
|
|
1245
1380
|
}
|
|
1246
1381
|
|
|
1247
|
-
|
|
1382
|
+
"""
|
|
1383
|
+
SplToken: InitializeMintCloseAuthority instruction
|
|
1384
|
+
"""
|
|
1248
1385
|
type SplTokenInitializeMintCloseAuthorityInstruction implements TransactionInstruction {
|
|
1249
1386
|
programId: Address
|
|
1250
1387
|
mint: Account
|
|
@@ -1273,7 +1410,9 @@ var instructionTypeDefs = (
|
|
|
1273
1410
|
unixTimestamp: BigInt
|
|
1274
1411
|
}
|
|
1275
1412
|
|
|
1276
|
-
|
|
1413
|
+
"""
|
|
1414
|
+
Stake: Initialize instruction
|
|
1415
|
+
"""
|
|
1277
1416
|
type StakeInitializeInstructionDataAuthorized {
|
|
1278
1417
|
staker: Account
|
|
1279
1418
|
withdrawer: Account
|
|
@@ -1286,7 +1425,9 @@ var instructionTypeDefs = (
|
|
|
1286
1425
|
stakeAccount: Account
|
|
1287
1426
|
}
|
|
1288
1427
|
|
|
1289
|
-
|
|
1428
|
+
"""
|
|
1429
|
+
Stake: Authorize instruction
|
|
1430
|
+
"""
|
|
1290
1431
|
type StakeAuthorizeInstruction implements TransactionInstruction {
|
|
1291
1432
|
programId: Address
|
|
1292
1433
|
authority: Account
|
|
@@ -1297,7 +1438,9 @@ var instructionTypeDefs = (
|
|
|
1297
1438
|
stakeAccount: Account
|
|
1298
1439
|
}
|
|
1299
1440
|
|
|
1300
|
-
|
|
1441
|
+
"""
|
|
1442
|
+
Stake: DelegateStake instruction
|
|
1443
|
+
"""
|
|
1301
1444
|
type StakeDelegateStakeInstruction implements TransactionInstruction {
|
|
1302
1445
|
programId: Address
|
|
1303
1446
|
clockSysvar: Address
|
|
@@ -1308,7 +1451,9 @@ var instructionTypeDefs = (
|
|
|
1308
1451
|
voteAccount: Account
|
|
1309
1452
|
}
|
|
1310
1453
|
|
|
1311
|
-
|
|
1454
|
+
"""
|
|
1455
|
+
Stake: Split instruction
|
|
1456
|
+
"""
|
|
1312
1457
|
type StakeSplitInstruction implements TransactionInstruction {
|
|
1313
1458
|
programId: Address
|
|
1314
1459
|
lamports: BigInt
|
|
@@ -1317,7 +1462,9 @@ var instructionTypeDefs = (
|
|
|
1317
1462
|
stakeAuthority: Account
|
|
1318
1463
|
}
|
|
1319
1464
|
|
|
1320
|
-
|
|
1465
|
+
"""
|
|
1466
|
+
Stake: Withdraw instruction
|
|
1467
|
+
"""
|
|
1321
1468
|
type StakeWithdrawInstruction implements TransactionInstruction {
|
|
1322
1469
|
programId: Address
|
|
1323
1470
|
clockSysvar: Address
|
|
@@ -1327,7 +1474,9 @@ var instructionTypeDefs = (
|
|
|
1327
1474
|
withdrawAuthority: Account
|
|
1328
1475
|
}
|
|
1329
1476
|
|
|
1330
|
-
|
|
1477
|
+
"""
|
|
1478
|
+
Stake: Deactivate instruction
|
|
1479
|
+
"""
|
|
1331
1480
|
type StakeDeactivateInstruction implements TransactionInstruction {
|
|
1332
1481
|
programId: Address
|
|
1333
1482
|
clockSysvar: Address
|
|
@@ -1335,7 +1484,9 @@ var instructionTypeDefs = (
|
|
|
1335
1484
|
stakeAuthority: Account
|
|
1336
1485
|
}
|
|
1337
1486
|
|
|
1338
|
-
|
|
1487
|
+
"""
|
|
1488
|
+
Stake: SetLockup instruction
|
|
1489
|
+
"""
|
|
1339
1490
|
type StakeSetLockupInstruction implements TransactionInstruction {
|
|
1340
1491
|
programId: Address
|
|
1341
1492
|
custodian: Account
|
|
@@ -1343,7 +1494,9 @@ var instructionTypeDefs = (
|
|
|
1343
1494
|
stakeAccount: Account
|
|
1344
1495
|
}
|
|
1345
1496
|
|
|
1346
|
-
|
|
1497
|
+
"""
|
|
1498
|
+
Stake: Merge instruction
|
|
1499
|
+
"""
|
|
1347
1500
|
type StakeMergeInstruction implements TransactionInstruction {
|
|
1348
1501
|
programId: Address
|
|
1349
1502
|
clockSysvar: Address
|
|
@@ -1353,7 +1506,9 @@ var instructionTypeDefs = (
|
|
|
1353
1506
|
stakeHistorySysvar: Address
|
|
1354
1507
|
}
|
|
1355
1508
|
|
|
1356
|
-
|
|
1509
|
+
"""
|
|
1510
|
+
Stake: AuthorizeWithSeed instruction
|
|
1511
|
+
"""
|
|
1357
1512
|
type StakeAuthorizeWithSeedInstruction implements TransactionInstruction {
|
|
1358
1513
|
programId: Address
|
|
1359
1514
|
authorityBase: Account
|
|
@@ -1366,7 +1521,9 @@ var instructionTypeDefs = (
|
|
|
1366
1521
|
stakeAccount: Account
|
|
1367
1522
|
}
|
|
1368
1523
|
|
|
1369
|
-
|
|
1524
|
+
"""
|
|
1525
|
+
Stake: InitializeChecked instruction
|
|
1526
|
+
"""
|
|
1370
1527
|
type StakeInitializeCheckedInstructionDataAuthorized {
|
|
1371
1528
|
staker: Account
|
|
1372
1529
|
withdrawer: Account
|
|
@@ -1379,7 +1536,9 @@ var instructionTypeDefs = (
|
|
|
1379
1536
|
stakeAccount: Account
|
|
1380
1537
|
}
|
|
1381
1538
|
|
|
1382
|
-
|
|
1539
|
+
"""
|
|
1540
|
+
Stake: AuthorizeChecked instruction
|
|
1541
|
+
"""
|
|
1383
1542
|
type StakeAuthorizeCheckedInstruction implements TransactionInstruction {
|
|
1384
1543
|
programId: Address
|
|
1385
1544
|
authority: Account
|
|
@@ -1390,7 +1549,9 @@ var instructionTypeDefs = (
|
|
|
1390
1549
|
stakeAccount: Account
|
|
1391
1550
|
}
|
|
1392
1551
|
|
|
1393
|
-
|
|
1552
|
+
"""
|
|
1553
|
+
Stake: AuthorizeCheckedWithSeed instruction
|
|
1554
|
+
"""
|
|
1394
1555
|
type StakeAuthorizeCheckedWithSeedInstruction implements TransactionInstruction {
|
|
1395
1556
|
programId: Address
|
|
1396
1557
|
authorityBase: Account
|
|
@@ -1403,7 +1564,9 @@ var instructionTypeDefs = (
|
|
|
1403
1564
|
stakeAccount: Account
|
|
1404
1565
|
}
|
|
1405
1566
|
|
|
1406
|
-
|
|
1567
|
+
"""
|
|
1568
|
+
Stake: SetLockupChecked instruction
|
|
1569
|
+
"""
|
|
1407
1570
|
type StakeSetLockupCheckedInstruction implements TransactionInstruction {
|
|
1408
1571
|
programId: Address
|
|
1409
1572
|
custodian: Account
|
|
@@ -1411,7 +1574,9 @@ var instructionTypeDefs = (
|
|
|
1411
1574
|
stakeAccount: Account
|
|
1412
1575
|
}
|
|
1413
1576
|
|
|
1414
|
-
|
|
1577
|
+
"""
|
|
1578
|
+
Stake: DeactivateDelinquent instruction
|
|
1579
|
+
"""
|
|
1415
1580
|
type StakeDeactivateDelinquentInstruction implements TransactionInstruction {
|
|
1416
1581
|
programId: Address
|
|
1417
1582
|
referenceVoteAccount: Account
|
|
@@ -1419,7 +1584,9 @@ var instructionTypeDefs = (
|
|
|
1419
1584
|
voteAccount: Account
|
|
1420
1585
|
}
|
|
1421
1586
|
|
|
1422
|
-
|
|
1587
|
+
"""
|
|
1588
|
+
Stake: Redelegate instruction
|
|
1589
|
+
"""
|
|
1423
1590
|
type StakeRedelegateInstruction implements TransactionInstruction {
|
|
1424
1591
|
programId: Address
|
|
1425
1592
|
newStakeAccount: Account
|
|
@@ -1429,7 +1596,9 @@ var instructionTypeDefs = (
|
|
|
1429
1596
|
voteAccount: Account
|
|
1430
1597
|
}
|
|
1431
1598
|
|
|
1432
|
-
|
|
1599
|
+
"""
|
|
1600
|
+
System: CreateAccount instruction
|
|
1601
|
+
"""
|
|
1433
1602
|
type CreateAccountInstruction implements TransactionInstruction {
|
|
1434
1603
|
programId: Address
|
|
1435
1604
|
lamports: BigInt
|
|
@@ -1439,14 +1608,18 @@ var instructionTypeDefs = (
|
|
|
1439
1608
|
space: BigInt
|
|
1440
1609
|
}
|
|
1441
1610
|
|
|
1442
|
-
|
|
1611
|
+
"""
|
|
1612
|
+
System: Assign instruction
|
|
1613
|
+
"""
|
|
1443
1614
|
type AssignInstruction implements TransactionInstruction {
|
|
1444
1615
|
programId: Address
|
|
1445
1616
|
account: Account
|
|
1446
1617
|
owner: Account
|
|
1447
1618
|
}
|
|
1448
1619
|
|
|
1449
|
-
|
|
1620
|
+
"""
|
|
1621
|
+
System: Transfer instruction
|
|
1622
|
+
"""
|
|
1450
1623
|
type TransferInstruction implements TransactionInstruction {
|
|
1451
1624
|
programId: Address
|
|
1452
1625
|
destination: Account
|
|
@@ -1454,7 +1627,9 @@ var instructionTypeDefs = (
|
|
|
1454
1627
|
source: Account
|
|
1455
1628
|
}
|
|
1456
1629
|
|
|
1457
|
-
|
|
1630
|
+
"""
|
|
1631
|
+
System: CreateAccountWithSeed instruction
|
|
1632
|
+
"""
|
|
1458
1633
|
type CreateAccountWithSeedInstruction implements TransactionInstruction {
|
|
1459
1634
|
programId: Address
|
|
1460
1635
|
base: Account
|
|
@@ -1464,7 +1639,9 @@ var instructionTypeDefs = (
|
|
|
1464
1639
|
space: BigInt
|
|
1465
1640
|
}
|
|
1466
1641
|
|
|
1467
|
-
|
|
1642
|
+
"""
|
|
1643
|
+
System: AdvanceNonceAccount instruction
|
|
1644
|
+
"""
|
|
1468
1645
|
type AdvanceNonceAccountInstruction implements TransactionInstruction {
|
|
1469
1646
|
programId: Address
|
|
1470
1647
|
nonceAccount: Account
|
|
@@ -1472,7 +1649,9 @@ var instructionTypeDefs = (
|
|
|
1472
1649
|
recentBlockhashesSysvar: Address
|
|
1473
1650
|
}
|
|
1474
1651
|
|
|
1475
|
-
|
|
1652
|
+
"""
|
|
1653
|
+
System: WithdrawNonceAccount instruction
|
|
1654
|
+
"""
|
|
1476
1655
|
type WithdrawNonceAccountInstruction implements TransactionInstruction {
|
|
1477
1656
|
programId: Address
|
|
1478
1657
|
destination: Account
|
|
@@ -1483,7 +1662,9 @@ var instructionTypeDefs = (
|
|
|
1483
1662
|
rentSysvar: Address
|
|
1484
1663
|
}
|
|
1485
1664
|
|
|
1486
|
-
|
|
1665
|
+
"""
|
|
1666
|
+
System: InitializeNonceAccount instruction
|
|
1667
|
+
"""
|
|
1487
1668
|
type InitializeNonceAccountInstruction implements TransactionInstruction {
|
|
1488
1669
|
programId: Address
|
|
1489
1670
|
nonceAccount: Account
|
|
@@ -1492,7 +1673,9 @@ var instructionTypeDefs = (
|
|
|
1492
1673
|
rentSysvar: Address
|
|
1493
1674
|
}
|
|
1494
1675
|
|
|
1495
|
-
|
|
1676
|
+
"""
|
|
1677
|
+
System: AuthorizeNonceAccount instruction
|
|
1678
|
+
"""
|
|
1496
1679
|
type AuthorizeNonceAccountInstruction implements TransactionInstruction {
|
|
1497
1680
|
programId: Address
|
|
1498
1681
|
newAuthorized: Account
|
|
@@ -1500,21 +1683,27 @@ var instructionTypeDefs = (
|
|
|
1500
1683
|
nonceAuthority: Account
|
|
1501
1684
|
}
|
|
1502
1685
|
|
|
1503
|
-
|
|
1686
|
+
"""
|
|
1687
|
+
System: UpgradeNonceAccount instruction
|
|
1688
|
+
"""
|
|
1504
1689
|
type UpgradeNonceAccountInstruction implements TransactionInstruction {
|
|
1505
1690
|
programId: Address
|
|
1506
1691
|
nonceAccount: Account
|
|
1507
1692
|
nonceAuthority: Account
|
|
1508
1693
|
}
|
|
1509
1694
|
|
|
1510
|
-
|
|
1695
|
+
"""
|
|
1696
|
+
System: Allocate instruction
|
|
1697
|
+
"""
|
|
1511
1698
|
type AllocateInstruction implements TransactionInstruction {
|
|
1512
1699
|
programId: Address
|
|
1513
1700
|
account: Account
|
|
1514
1701
|
space: BigInt
|
|
1515
1702
|
}
|
|
1516
1703
|
|
|
1517
|
-
|
|
1704
|
+
"""
|
|
1705
|
+
System: AllocateWithSeed instruction
|
|
1706
|
+
"""
|
|
1518
1707
|
type AllocateWithSeedInstruction implements TransactionInstruction {
|
|
1519
1708
|
programId: Address
|
|
1520
1709
|
account: Account
|
|
@@ -1524,7 +1713,9 @@ var instructionTypeDefs = (
|
|
|
1524
1713
|
space: BigInt
|
|
1525
1714
|
}
|
|
1526
1715
|
|
|
1527
|
-
|
|
1716
|
+
"""
|
|
1717
|
+
System: AssignWithSeed instruction
|
|
1718
|
+
"""
|
|
1528
1719
|
type AssignWithSeedInstruction implements TransactionInstruction {
|
|
1529
1720
|
programId: Address
|
|
1530
1721
|
account: Account
|
|
@@ -1533,7 +1724,9 @@ var instructionTypeDefs = (
|
|
|
1533
1724
|
seed: String
|
|
1534
1725
|
}
|
|
1535
1726
|
|
|
1536
|
-
|
|
1727
|
+
"""
|
|
1728
|
+
System: TransferWithSeed instruction
|
|
1729
|
+
"""
|
|
1537
1730
|
type TransferWithSeedInstruction implements TransactionInstruction {
|
|
1538
1731
|
programId: Address
|
|
1539
1732
|
destination: Account
|
|
@@ -1544,7 +1737,9 @@ var instructionTypeDefs = (
|
|
|
1544
1737
|
sourceSeed: String
|
|
1545
1738
|
}
|
|
1546
1739
|
|
|
1547
|
-
|
|
1740
|
+
"""
|
|
1741
|
+
Vote: InitializeAccount instruction
|
|
1742
|
+
"""
|
|
1548
1743
|
type VoteInitializeAccountInstruction implements TransactionInstruction {
|
|
1549
1744
|
programId: Address
|
|
1550
1745
|
authorizedVoter: Account
|
|
@@ -1556,7 +1751,9 @@ var instructionTypeDefs = (
|
|
|
1556
1751
|
voteAccount: Account
|
|
1557
1752
|
}
|
|
1558
1753
|
|
|
1559
|
-
|
|
1754
|
+
"""
|
|
1755
|
+
Vote: Authorize instruction
|
|
1756
|
+
"""
|
|
1560
1757
|
type VoteAuthorizeInstruction implements TransactionInstruction {
|
|
1561
1758
|
programId: Address
|
|
1562
1759
|
authority: Account
|
|
@@ -1566,7 +1763,9 @@ var instructionTypeDefs = (
|
|
|
1566
1763
|
voteAccount: Account
|
|
1567
1764
|
}
|
|
1568
1765
|
|
|
1569
|
-
|
|
1766
|
+
"""
|
|
1767
|
+
Vote: AuthorizeWithSeed instruction
|
|
1768
|
+
"""
|
|
1570
1769
|
type VoteAuthorizeWithSeedInstruction implements TransactionInstruction {
|
|
1571
1770
|
programId: Address
|
|
1572
1771
|
authorityBaseKey: String
|
|
@@ -1578,7 +1777,9 @@ var instructionTypeDefs = (
|
|
|
1578
1777
|
voteAccount: Account
|
|
1579
1778
|
}
|
|
1580
1779
|
|
|
1581
|
-
|
|
1780
|
+
"""
|
|
1781
|
+
Vote: AuthorizeCheckedWithSeed instruction
|
|
1782
|
+
"""
|
|
1582
1783
|
type VoteAuthorizeCheckedWithSeedInstruction implements TransactionInstruction {
|
|
1583
1784
|
programId: Address
|
|
1584
1785
|
authorityBaseKey: String
|
|
@@ -1596,7 +1797,9 @@ var instructionTypeDefs = (
|
|
|
1596
1797
|
timestamp: BigInt
|
|
1597
1798
|
}
|
|
1598
1799
|
|
|
1599
|
-
|
|
1800
|
+
"""
|
|
1801
|
+
Vote: Vote instruction
|
|
1802
|
+
"""
|
|
1600
1803
|
type VoteVoteInstruction implements TransactionInstruction {
|
|
1601
1804
|
programId: Address
|
|
1602
1805
|
clockSysvar: Address
|
|
@@ -1617,7 +1820,9 @@ var instructionTypeDefs = (
|
|
|
1617
1820
|
timestamp: BigInt
|
|
1618
1821
|
}
|
|
1619
1822
|
|
|
1620
|
-
|
|
1823
|
+
"""
|
|
1824
|
+
Vote: UpdateVoteState instruction
|
|
1825
|
+
"""
|
|
1621
1826
|
type VoteUpdateVoteStateInstruction implements TransactionInstruction {
|
|
1622
1827
|
programId: Address
|
|
1623
1828
|
hash: String
|
|
@@ -1626,7 +1831,9 @@ var instructionTypeDefs = (
|
|
|
1626
1831
|
voteStateUpdate: VoteStateUpdate
|
|
1627
1832
|
}
|
|
1628
1833
|
|
|
1629
|
-
|
|
1834
|
+
"""
|
|
1835
|
+
Vote: UpdateVoteStateSwitch instruction
|
|
1836
|
+
"""
|
|
1630
1837
|
type VoteUpdateVoteStateSwitchInstruction implements TransactionInstruction {
|
|
1631
1838
|
programId: Address
|
|
1632
1839
|
hash: String
|
|
@@ -1635,7 +1842,9 @@ var instructionTypeDefs = (
|
|
|
1635
1842
|
voteStateUpdate: VoteStateUpdate
|
|
1636
1843
|
}
|
|
1637
1844
|
|
|
1638
|
-
|
|
1845
|
+
"""
|
|
1846
|
+
Vote: CompactUpdateVoteState instruction
|
|
1847
|
+
"""
|
|
1639
1848
|
type VoteCompactUpdateVoteStateInstruction implements TransactionInstruction {
|
|
1640
1849
|
programId: Address
|
|
1641
1850
|
hash: String
|
|
@@ -1644,7 +1853,9 @@ var instructionTypeDefs = (
|
|
|
1644
1853
|
voteStateUpdate: VoteStateUpdate
|
|
1645
1854
|
}
|
|
1646
1855
|
|
|
1647
|
-
|
|
1856
|
+
"""
|
|
1857
|
+
Vote: CompactUpdateVoteStateSwitch instruction
|
|
1858
|
+
"""
|
|
1648
1859
|
type VoteCompactUpdateVoteStateSwitchInstruction implements TransactionInstruction {
|
|
1649
1860
|
programId: Address
|
|
1650
1861
|
hash: String
|
|
@@ -1653,7 +1864,9 @@ var instructionTypeDefs = (
|
|
|
1653
1864
|
voteStateUpdate: VoteStateUpdate
|
|
1654
1865
|
}
|
|
1655
1866
|
|
|
1656
|
-
|
|
1867
|
+
"""
|
|
1868
|
+
Vote: Withdraw instruction
|
|
1869
|
+
"""
|
|
1657
1870
|
type VoteWithdrawInstruction implements TransactionInstruction {
|
|
1658
1871
|
programId: Address
|
|
1659
1872
|
destination: Account
|
|
@@ -1662,7 +1875,9 @@ var instructionTypeDefs = (
|
|
|
1662
1875
|
withdrawAuthority: Account
|
|
1663
1876
|
}
|
|
1664
1877
|
|
|
1665
|
-
|
|
1878
|
+
"""
|
|
1879
|
+
Vote: UpdateValidatorIdentity instruction
|
|
1880
|
+
"""
|
|
1666
1881
|
type VoteUpdateValidatorIdentityInstruction implements TransactionInstruction {
|
|
1667
1882
|
programId: Address
|
|
1668
1883
|
newValidatorIdentity: Account
|
|
@@ -1670,7 +1885,9 @@ var instructionTypeDefs = (
|
|
|
1670
1885
|
withdrawAuthority: Account
|
|
1671
1886
|
}
|
|
1672
1887
|
|
|
1673
|
-
|
|
1888
|
+
"""
|
|
1889
|
+
Vote: UpdateCommission instruction
|
|
1890
|
+
"""
|
|
1674
1891
|
type VoteUpdateCommissionInstruction implements TransactionInstruction {
|
|
1675
1892
|
programId: Address
|
|
1676
1893
|
commission: BigInt # FIXME:*
|
|
@@ -1678,7 +1895,9 @@ var instructionTypeDefs = (
|
|
|
1678
1895
|
withdrawAuthority: Account
|
|
1679
1896
|
}
|
|
1680
1897
|
|
|
1681
|
-
|
|
1898
|
+
"""
|
|
1899
|
+
Vote: VoteSwitch instruction
|
|
1900
|
+
"""
|
|
1682
1901
|
type VoteVoteSwitchInstruction implements TransactionInstruction {
|
|
1683
1902
|
programId: Address
|
|
1684
1903
|
clockSysvar: Address
|
|
@@ -1689,7 +1908,9 @@ var instructionTypeDefs = (
|
|
|
1689
1908
|
voteAuthority: Account
|
|
1690
1909
|
}
|
|
1691
1910
|
|
|
1692
|
-
|
|
1911
|
+
"""
|
|
1912
|
+
Vote: AuthorizeChecked instruction
|
|
1913
|
+
"""
|
|
1693
1914
|
type VoteAuthorizeCheckedInstruction implements TransactionInstruction {
|
|
1694
1915
|
programId: Address
|
|
1695
1916
|
authority: Account
|
|
@@ -2481,7 +2702,9 @@ var transactionTypeDefs = (
|
|
|
2481
2702
|
recentBlockhash: String
|
|
2482
2703
|
}
|
|
2483
2704
|
|
|
2484
|
-
|
|
2705
|
+
"""
|
|
2706
|
+
Transaction interface
|
|
2707
|
+
"""
|
|
2485
2708
|
interface Transaction {
|
|
2486
2709
|
blockTime: String
|
|
2487
2710
|
meta: TransactionMeta
|
|
@@ -2489,7 +2712,9 @@ var transactionTypeDefs = (
|
|
|
2489
2712
|
version: String
|
|
2490
2713
|
}
|
|
2491
2714
|
|
|
2492
|
-
|
|
2715
|
+
"""
|
|
2716
|
+
A transaction with base58 encoded data
|
|
2717
|
+
"""
|
|
2493
2718
|
type TransactionBase58 implements Transaction {
|
|
2494
2719
|
blockTime: String
|
|
2495
2720
|
data: Base58EncodedBytes
|
|
@@ -2498,7 +2723,9 @@ var transactionTypeDefs = (
|
|
|
2498
2723
|
version: String
|
|
2499
2724
|
}
|
|
2500
2725
|
|
|
2501
|
-
|
|
2726
|
+
"""
|
|
2727
|
+
A transaction with base64 encoded data
|
|
2728
|
+
"""
|
|
2502
2729
|
type TransactionBase64 implements Transaction {
|
|
2503
2730
|
blockTime: String
|
|
2504
2731
|
data: Base64EncodedBytes
|
|
@@ -2507,7 +2734,9 @@ var transactionTypeDefs = (
|
|
|
2507
2734
|
version: String
|
|
2508
2735
|
}
|
|
2509
2736
|
|
|
2510
|
-
|
|
2737
|
+
"""
|
|
2738
|
+
A transaction with JSON encoded data
|
|
2739
|
+
"""
|
|
2511
2740
|
type TransactionDataParsed {
|
|
2512
2741
|
message: TransactionMessage
|
|
2513
2742
|
signatures: [String]
|