@solana/rpc-graphql 2.0.0-experimental.2e4b8c7 → 2.0.0-experimental.35de86b

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/index.browser.cjs +952 -1146
  2. package/dist/index.browser.cjs.map +1 -1
  3. package/dist/index.browser.js +951 -1145
  4. package/dist/index.browser.js.map +1 -1
  5. package/dist/index.native.js +951 -1145
  6. package/dist/index.native.js.map +1 -1
  7. package/dist/index.node.cjs +952 -1146
  8. package/dist/index.node.cjs.map +1 -1
  9. package/dist/index.node.js +951 -1145
  10. package/dist/index.node.js.map +1 -1
  11. package/dist/types/context.d.ts +9 -9
  12. package/dist/types/context.d.ts.map +1 -0
  13. package/dist/types/index.d.ts +1 -1
  14. package/dist/types/index.d.ts.map +1 -0
  15. package/dist/types/loaders/account.d.ts +10 -22
  16. package/dist/types/loaders/account.d.ts.map +1 -0
  17. package/dist/types/loaders/block.d.ts +8 -11
  18. package/dist/types/loaders/block.d.ts.map +1 -0
  19. package/dist/types/loaders/common/cache-key-fn.d.ts +2 -0
  20. package/dist/types/loaders/common/cache-key-fn.d.ts.map +1 -0
  21. package/dist/types/loaders/common/resolve-info.d.ts.map +1 -0
  22. package/dist/types/loaders/program-accounts.d.ts +13 -22
  23. package/dist/types/loaders/program-accounts.d.ts.map +1 -0
  24. package/dist/types/loaders/transaction.d.ts +8 -34
  25. package/dist/types/loaders/transaction.d.ts.map +1 -0
  26. package/dist/types/loaders/transformers/account.d.ts +8 -0
  27. package/dist/types/loaders/transformers/account.d.ts.map +1 -0
  28. package/dist/types/loaders/transformers/block.d.ts +6 -0
  29. package/dist/types/loaders/transformers/block.d.ts.map +1 -0
  30. package/dist/types/loaders/transformers/transaction.d.ts +5 -0
  31. package/dist/types/loaders/transformers/transaction.d.ts.map +1 -0
  32. package/dist/types/resolvers/account.d.ts +3 -3
  33. package/dist/types/resolvers/account.d.ts.map +1 -0
  34. package/dist/types/rpc.d.ts +3 -6
  35. package/dist/types/rpc.d.ts.map +1 -0
  36. package/dist/types/schema/account.d.ts +60 -81
  37. package/dist/types/schema/account.d.ts.map +1 -0
  38. package/dist/types/schema/block.d.ts +1 -9
  39. package/dist/types/schema/block.d.ts.map +1 -0
  40. package/dist/types/schema/common/inputs.d.ts.map +1 -0
  41. package/dist/types/schema/common/scalars.d.ts.map +1 -0
  42. package/dist/types/schema/common/types.d.ts +2 -2
  43. package/dist/types/schema/common/types.d.ts.map +1 -0
  44. package/dist/types/schema/index.d.ts.map +1 -0
  45. package/dist/types/schema/instruction.d.ts +342 -347
  46. package/dist/types/schema/instruction.d.ts.map +1 -0
  47. package/dist/types/schema/transaction.d.ts +1 -8
  48. package/dist/types/schema/transaction.d.ts.map +1 -0
  49. package/package.json +13 -13
  50. package/dist/types/schema/program-accounts.d.ts +0 -12
@@ -1,9 +1,16 @@
1
1
  import { graphql, Kind } from 'graphql';
2
2
  import DataLoader from 'dataloader';
3
- import fastStableStringify from 'fast-stable-stringify';
3
+ import stringify from 'json-stable-stringify';
4
4
  import { makeExecutableSchema } from '@graphql-tools/schema';
5
5
 
6
6
  // src/rpc.ts
7
+ function replacer(_, value) {
8
+ if (typeof value === "bigint") {
9
+ return value.toString() + "n";
10
+ }
11
+ return value;
12
+ }
13
+ var cacheKeyFn = (obj) => stringify(obj, { replacer });
7
14
 
8
15
  // src/loaders/common/resolve-info.ts
9
16
  function onlyPresentFieldRequested(fieldName, info) {
@@ -22,51 +29,67 @@ function onlyPresentFieldRequested(fieldName, info) {
22
29
  return false;
23
30
  }
24
31
 
25
- // src/loaders/account.ts
26
- function normalizeArgs(args) {
27
- const { address, commitment, dataSlice, encoding, minContextSlot } = args;
28
- return {
29
- address,
30
- commitment: commitment ?? "confirmed",
31
- dataSlice,
32
- encoding: encoding ?? "jsonParsed",
33
- minContextSlot
34
- };
35
- }
36
- function refineJsonParsedAccountData(jsonParsedAccountData) {
37
- const meta = {
38
- program: jsonParsedAccountData.program,
39
- space: jsonParsedAccountData.space,
40
- type: jsonParsedAccountData.parsed.type
41
- };
42
- const data = jsonParsedAccountData.parsed.info;
43
- return { data, meta };
32
+ // src/loaders/transformers/account.ts
33
+ function transformParsedAccountData(parsedAccountData) {
34
+ const {
35
+ parsed: { info: result, type: accountType },
36
+ program: programName,
37
+ programId
38
+ } = parsedAccountData;
39
+ result.accountType = accountType;
40
+ result.programId = programId;
41
+ result.programName = programName;
42
+ return result;
44
43
  }
45
- function processQueryResponse({ address, account, encoding }) {
46
- const [refinedData, responseEncoding] = Array.isArray(account.data) ? encoding === "jsonParsed" ? [account.data[0], "base64"] : [account.data[0], encoding] : [refineJsonParsedAccountData(account.data), "jsonParsed"];
47
- const responseBase = {
44
+ function transformLoadedAccount({
45
+ account,
46
+ address,
47
+ encoding
48
+ }) {
49
+ const [
50
+ // The account's data, either encoded or parsed.
51
+ data,
52
+ // Tells GraphQL which encoding has been returned
53
+ // by the RPC.
54
+ responseEncoding
55
+ ] = Array.isArray(account.data) ? encoding === "jsonParsed" ? (
56
+ // The requested encoding is jsonParsed,
57
+ // but the data could not be parsed.
58
+ // Defaults to base64 encoding.
59
+ [{ data: account.data[0] }, "base64"]
60
+ ) : (
61
+ // The requested encoding is base58,
62
+ // base64, or base64+zstd.
63
+ [{ data: account.data[0] }, encoding]
64
+ ) : (
65
+ // The account data was returned as an object,
66
+ // so it was parsed successfully.
67
+ [transformParsedAccountData(account.data), "jsonParsed"]
68
+ );
69
+ account.address = address;
70
+ account.encoding = responseEncoding;
71
+ account.ownerProgram = account.owner;
72
+ return {
48
73
  ...account,
49
- address,
50
- encoding: responseEncoding
51
- };
52
- return typeof refinedData === "object" && "meta" in refinedData ? {
53
- ...responseBase,
54
- data: refinedData.data,
55
- meta: refinedData.meta
56
- } : {
57
- ...responseBase,
58
- data: refinedData
74
+ ...data
59
75
  };
60
76
  }
77
+
78
+ // src/loaders/account.ts
79
+ function normalizeArgs({
80
+ address,
81
+ commitment = "confirmed",
82
+ dataSlice,
83
+ encoding = "jsonParsed",
84
+ minContextSlot
85
+ }) {
86
+ return { address, commitment, dataSlice, encoding, minContextSlot };
87
+ }
61
88
  async function loadAccount(rpc, { address, ...config }) {
62
- const { encoding } = config;
63
89
  const account = await rpc.getAccountInfo(address, config).send().then((res) => res.value).catch((e) => {
64
90
  throw e;
65
91
  });
66
- if (account === null) {
67
- return { address };
68
- }
69
- return processQueryResponse({ account, address, encoding });
92
+ return account === null ? { address } : transformLoadedAccount({ account, address, encoding: config.encoding });
70
93
  }
71
94
  function createAccountBatchLoadFn(rpc) {
72
95
  const resolveAccountUsingRpc = loadAccount.bind(null, rpc);
@@ -75,7 +98,7 @@ function createAccountBatchLoadFn(rpc) {
75
98
  };
76
99
  }
77
100
  function createAccountLoader(rpc) {
78
- const loader = new DataLoader(createAccountBatchLoadFn(rpc), { cacheKeyFn: fastStableStringify });
101
+ const loader = new DataLoader(createAccountBatchLoadFn(rpc), { cacheKeyFn });
79
102
  return {
80
103
  load: async (args, info) => {
81
104
  if (onlyPresentFieldRequested("address", info)) {
@@ -85,161 +108,99 @@ function createAccountLoader(rpc) {
85
108
  }
86
109
  };
87
110
  }
88
- function normalizeArgs2(args) {
89
- const { commitment, encoding, signature } = args;
90
- return {
91
- commitment: commitment ?? "confirmed",
92
- encoding: encoding ?? "jsonParsed",
93
- // Always use 0 to avoid silly errors
94
- maxSupportedTransactionVersion: 0,
95
- signature
96
- };
97
- }
98
- function refineJsonParsedInstructionData(jsonParsedInstructionData) {
99
- if ("parsed" in jsonParsedInstructionData) {
100
- const meta = {
101
- program: jsonParsedInstructionData.program,
102
- type: jsonParsedInstructionData.parsed.type
103
- };
104
- const programId = jsonParsedInstructionData.programId;
105
- const data = jsonParsedInstructionData.parsed.info;
106
- return { data, meta, programId };
111
+
112
+ // src/loaders/transformers/transaction.ts
113
+ function transformParsedInstruction(parsedInstruction) {
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
+ }
120
+ const {
121
+ parsed: { info: data, type: instructionType },
122
+ program: programName,
123
+ programId
124
+ } = parsedInstruction;
125
+ return { instructionType, programId, programName, ...data };
107
126
  } else {
108
- return jsonParsedInstructionData;
127
+ return parsedInstruction;
109
128
  }
110
129
  }
111
- function refineJsonParsedTransactionData(jsonParsedTransactionData) {
112
- const refinedInstructions = jsonParsedTransactionData.message.instructions.map(
113
- (instruction) => refineJsonParsedInstructionData(instruction)
114
- );
115
- const message = {
116
- ...jsonParsedTransactionData.message,
117
- instructions: refinedInstructions
118
- };
119
- return { message, signatures: jsonParsedTransactionData.signatures };
120
- }
121
- function refineJsonParsedTransactionMeta(jsonParsedTransactionMeta) {
122
- const refinedInnerInstructions = jsonParsedTransactionMeta.innerInstructions.map(
123
- ({ index, instructions }) => {
124
- return {
125
- index,
126
- instructions: instructions.map((instruction) => refineJsonParsedInstructionData(instruction))
127
- };
128
- }
129
- );
130
- return {
131
- ...jsonParsedTransactionMeta,
132
- innerInstructions: refinedInnerInstructions
133
- };
134
- }
135
- function refineJsonParsedTransaction({ encoding, transaction }) {
136
- const [transactionData, transactionMeta] = Array.isArray(transaction.transaction) ? [transaction.transaction[0], transaction.meta] : [refineJsonParsedTransactionData(transaction.transaction), refineJsonParsedTransactionMeta(transaction.meta)];
137
- return {
138
- data: transactionData,
139
- encoding,
140
- meta: transactionMeta,
141
- slot: transaction.slot,
142
- version: transaction.version
143
- };
144
- }
145
- function processQueryResponse2({ encoding, transaction }) {
146
- return refineJsonParsedTransaction({ encoding, transaction });
147
- }
148
- async function loadTransaction(rpc, { signature, ...config }) {
149
- const { encoding } = config;
150
- let transaction = await rpc.getTransaction(signature, config).send().catch((e) => {
151
- throw e;
130
+ function transformParsedTransaction(parsedTransaction) {
131
+ const transactionData = parsedTransaction.transaction;
132
+ const transactionMeta = parsedTransaction.meta;
133
+ transactionData.message.instructions = transactionData.message.instructions.map(transformParsedInstruction);
134
+ transactionMeta.innerInstructions = transactionMeta.innerInstructions.map((innerInstruction) => {
135
+ innerInstruction.instructions = innerInstruction.instructions.map(transformParsedInstruction);
136
+ return innerInstruction;
152
137
  });
153
- if (transaction === null) {
154
- return null;
155
- }
156
- if (encoding !== "jsonParsed") {
157
- const transactionJsonParsed = await rpc.getTransaction(signature, config).send().catch((e) => {
158
- throw e;
159
- });
160
- if (transactionJsonParsed === null) {
161
- return null;
162
- }
163
- transaction = {
164
- ...transaction,
165
- meta: transactionJsonParsed.meta
166
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
167
- };
168
- }
169
- const queryResponse = processQueryResponse2({ encoding, transaction });
170
- return queryResponse;
138
+ return [transactionData, transactionMeta];
171
139
  }
172
- function createTransactionBatchLoadFn(rpc) {
173
- const resolveTransactionUsingRpc = loadTransaction.bind(null, rpc);
174
- return async (transactionQueryArgs) => {
175
- return await Promise.all(transactionQueryArgs.map(async (args) => await resolveTransactionUsingRpc(args)));
176
- };
177
- }
178
- function createTransactionLoader(rpc) {
179
- const loader = new DataLoader(createTransactionBatchLoadFn(rpc), { cacheKeyFn: fastStableStringify });
180
- return {
181
- load: async (args, info) => {
182
- if (onlyPresentFieldRequested("signature", info)) {
183
- return { signature: args.signature };
184
- }
185
- return loader.load(normalizeArgs2(args));
186
- }
187
- };
140
+ function transformLoadedTransaction({ encoding, transaction }) {
141
+ const [transactionData, transactionMeta] = Array.isArray(transaction.transaction) ? (
142
+ // The requested encoding is base58 or base64.
143
+ [transaction.transaction[0], transaction.meta]
144
+ ) : (
145
+ // The transaction was either partially parsed or
146
+ // fully JSON-parsed, which will be sorted later.
147
+ transformParsedTransaction(transaction)
148
+ );
149
+ transaction.data = transactionData;
150
+ transaction.encoding = encoding;
151
+ transaction.meta = transactionMeta;
152
+ return transaction;
188
153
  }
189
154
 
190
- // src/loaders/block.ts
191
- function normalizeArgs3(args) {
192
- const { commitment, encoding, slot, transactionDetails } = args;
193
- return {
194
- commitment: commitment ?? "confirmed",
195
- encoding: encoding ?? "jsonParsed",
196
- // Always use 0 to avoid silly errors
197
- maxSupportedTransactionVersion: 0,
198
- slot,
199
- transactionDetails: transactionDetails ?? "full"
200
- };
201
- }
202
- function refineJsonParsedTransactionForAccounts({ transaction }) {
203
- return {
204
- data: transaction.transaction,
205
- meta: transaction.meta,
206
- version: transaction.version
207
- };
208
- }
209
- function processQueryResponse3({
155
+ // src/loaders/transformers/block.ts
156
+ function transformLoadedBlock({
210
157
  encoding,
211
158
  block,
212
159
  transactionDetails
213
160
  }) {
214
161
  if (typeof block === "object" && "transactions" in block) {
215
- const refinedBlock = {
216
- ...block,
217
- transactions: block.transactions.map((transaction) => {
218
- if (transactionDetails === "accounts") {
219
- return refineJsonParsedTransactionForAccounts({ transaction });
220
- } else {
221
- return refineJsonParsedTransaction({ encoding, transaction });
222
- }
223
- })
224
- };
225
- block = refinedBlock;
162
+ block.transactions = block.transactions.map((transaction) => {
163
+ if (transactionDetails === "accounts") {
164
+ return {
165
+ data: transaction.transaction,
166
+ meta: transaction.meta,
167
+ version: transaction.version
168
+ };
169
+ } else {
170
+ return transformLoadedTransaction({ encoding, transaction });
171
+ }
172
+ });
226
173
  }
174
+ block.encoding = encoding;
175
+ block.transactionDetails = transactionDetails;
176
+ return block;
177
+ }
178
+
179
+ // src/loaders/block.ts
180
+ function normalizeArgs2({
181
+ commitment = "confirmed",
182
+ encoding = "jsonParsed",
183
+ slot,
184
+ transactionDetails = "full"
185
+ }) {
227
186
  return {
228
- ...block,
187
+ commitment,
229
188
  encoding,
189
+ // Always use 0 to avoid silly errors
190
+ maxSupportedTransactionVersion: 0,
191
+ slot,
230
192
  transactionDetails
231
193
  };
232
194
  }
233
195
  async function loadBlock(rpc, { slot, ...config }) {
234
- const { encoding, transactionDetails } = config;
235
- const block = await rpc.getBlock(slot, config).send().catch((e) => {
196
+ const block = await rpc.getBlock(
197
+ slot,
198
+ // @ts-expect-error FIXME: https://github.com/solana-labs/solana-web3.js/issues/1984
199
+ config
200
+ ).send().catch((e) => {
236
201
  throw e;
237
202
  });
238
- if (block === null) {
239
- return { slot };
240
- }
241
- const queryResponse = processQueryResponse3({ block, encoding, transactionDetails });
242
- return queryResponse;
203
+ return block === null ? { slot } : transformLoadedBlock({ block, encoding: config.encoding, transactionDetails: config.transactionDetails });
243
204
  }
244
205
  function createBlockBatchLoadFn(rpc) {
245
206
  const resolveBlockUsingRpc = loadBlock.bind(null, rpc);
@@ -248,58 +209,37 @@ function createBlockBatchLoadFn(rpc) {
248
209
  };
249
210
  }
250
211
  function createBlockLoader(rpc) {
251
- const loader = new DataLoader(createBlockBatchLoadFn(rpc), { cacheKeyFn: fastStableStringify });
212
+ const loader = new DataLoader(createBlockBatchLoadFn(rpc), { cacheKeyFn });
252
213
  return {
253
214
  load: async (args, info) => {
254
215
  if (onlyPresentFieldRequested("slot", info)) {
255
216
  return { slot: args.slot };
256
217
  }
257
- return loader.load(normalizeArgs3(args));
218
+ return loader.load(normalizeArgs2(args));
258
219
  }
259
220
  };
260
221
  }
261
- function normalizeArgs4(args) {
262
- const { commitment, dataSlice, encoding, filters, minContextSlot, programAddress } = args;
263
- return {
264
- commitment: commitment ?? "confirmed",
265
- dataSlice,
266
- encoding: encoding ?? "jsonParsed",
267
- filters,
268
- minContextSlot,
269
- programAddress
270
- };
271
- }
272
- function processQueryResponse4({ encoding, programAccounts }) {
273
- return programAccounts.map((programAccount) => {
274
- const [refinedData, responseEncoding] = Array.isArray(programAccount.account.data) ? encoding === "jsonParsed" ? [programAccount.account.data[0], "base64"] : [programAccount.account.data[0], encoding] : [refineJsonParsedAccountData(programAccount.account.data), "jsonParsed"];
275
- const pubkey = programAccount.pubkey;
276
- const responseBase = {
277
- ...programAccount.account,
278
- address: pubkey,
279
- encoding: responseEncoding
280
- };
281
- return typeof refinedData === "object" && "meta" in refinedData ? {
282
- ...responseBase,
283
- data: refinedData.data,
284
- meta: refinedData.meta
285
- } : {
286
- ...responseBase,
287
- data: refinedData
288
- };
289
- });
222
+ function normalizeArgs3({
223
+ commitment = "confirmed",
224
+ dataSlice,
225
+ encoding = "jsonParsed",
226
+ filters,
227
+ minContextSlot,
228
+ programAddress
229
+ }) {
230
+ return { commitment, dataSlice, encoding, filters, minContextSlot, programAddress };
290
231
  }
291
232
  async function loadProgramAccounts(rpc, { programAddress, ...config }) {
292
- const { encoding } = config;
293
- const programAccounts = await rpc.getProgramAccounts(programAddress, config).send().then((res) => {
294
- if ("value" in res) {
295
- return res.value;
296
- }
297
- return res;
298
- }).catch((e) => {
233
+ const programAccounts = await rpc.getProgramAccounts(programAddress, config).send().catch((e) => {
299
234
  throw e;
300
235
  });
301
- const queryResponse = processQueryResponse4({ encoding, programAccounts });
302
- return queryResponse;
236
+ return programAccounts.map(
237
+ (programAccount) => transformLoadedAccount({
238
+ account: programAccount.account,
239
+ address: programAccount.pubkey,
240
+ encoding: config.encoding
241
+ })
242
+ );
303
243
  }
304
244
  function createProgramAccountsBatchLoadFn(rpc) {
305
245
  const resolveProgramAccountsUsingRpc = loadProgramAccounts.bind(null, rpc);
@@ -310,12 +250,60 @@ function createProgramAccountsBatchLoadFn(rpc) {
310
250
  };
311
251
  }
312
252
  function createProgramAccountsLoader(rpc) {
313
- const loader = new DataLoader(createProgramAccountsBatchLoadFn(rpc), { cacheKeyFn: fastStableStringify });
253
+ const loader = new DataLoader(createProgramAccountsBatchLoadFn(rpc), { cacheKeyFn });
314
254
  return {
315
255
  load: async (args, info) => {
316
256
  if (onlyPresentFieldRequested("programAddress", info)) {
317
257
  return { programAddress: args.programAddress };
318
258
  }
259
+ return loader.load(normalizeArgs3(args));
260
+ }
261
+ };
262
+ }
263
+ function normalizeArgs4({ commitment = "confirmed", encoding = "jsonParsed", signature }) {
264
+ return {
265
+ commitment,
266
+ encoding,
267
+ // Always use 0 to avoid silly errors
268
+ maxSupportedTransactionVersion: 0,
269
+ signature
270
+ };
271
+ }
272
+ async function loadTransaction(rpc, { signature, ...config }) {
273
+ const { encoding } = config;
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) {
287
+ return null;
288
+ }
289
+ if (transactionJsonParsed) {
290
+ transaction.meta = transactionJsonParsed.meta;
291
+ }
292
+ return transformLoadedTransaction({ encoding, transaction });
293
+ }
294
+ function createTransactionBatchLoadFn(rpc) {
295
+ const resolveTransactionUsingRpc = loadTransaction.bind(null, rpc);
296
+ return async (transactionQueryArgs) => {
297
+ return await Promise.all(transactionQueryArgs.map(async (args) => await resolveTransactionUsingRpc(args)));
298
+ };
299
+ }
300
+ function createTransactionLoader(rpc) {
301
+ const loader = new DataLoader(createTransactionBatchLoadFn(rpc), { cacheKeyFn });
302
+ return {
303
+ load: async (args, info) => {
304
+ if (onlyPresentFieldRequested("signature", info)) {
305
+ return { signature: args.signature };
306
+ }
319
307
  return loader.load(normalizeArgs4(args));
320
308
  }
321
309
  };
@@ -343,137 +331,126 @@ var resolveAccount = (fieldName) => {
343
331
  var accountTypeDefs = (
344
332
  /* GraphQL */
345
333
  `
346
- # Account interface
334
+ """
335
+ Account interface
336
+ """
347
337
  interface Account {
348
338
  address: Address
349
- encoding: AccountEncoding
350
339
  executable: Boolean
351
340
  lamports: BigInt
352
- owner: Account
341
+ ownerProgram: Account
342
+ space: BigInt
353
343
  rentEpoch: BigInt
354
344
  }
355
345
 
356
- # An account with base58 encoded data
346
+ """
347
+ An account with base58 encoded data
348
+ """
357
349
  type AccountBase58 implements Account {
358
350
  address: Address
359
351
  data: Base58EncodedBytes
360
- encoding: AccountEncoding
361
352
  executable: Boolean
362
353
  lamports: BigInt
363
- owner: Account
354
+ ownerProgram: Account
355
+ space: BigInt
364
356
  rentEpoch: BigInt
365
357
  }
366
358
 
367
- # An account with base64 encoded data
359
+ """
360
+ An account with base64 encoded data
361
+ """
368
362
  type AccountBase64 implements Account {
369
363
  address: Address
370
364
  data: Base64EncodedBytes
371
- encoding: AccountEncoding
372
365
  executable: Boolean
373
366
  lamports: BigInt
374
- owner: Account
367
+ ownerProgram: Account
368
+ space: BigInt
375
369
  rentEpoch: BigInt
376
370
  }
377
371
 
378
- # An account with base64+zstd encoded data
372
+ """
373
+ An account with base64+zstd encoded data
374
+ """
379
375
  type AccountBase64Zstd implements Account {
380
376
  address: Address
381
377
  data: Base64ZstdEncodedBytes
382
- encoding: AccountEncoding
383
378
  executable: Boolean
384
379
  lamports: BigInt
385
- owner: Account
386
- rentEpoch: BigInt
387
- }
388
-
389
- # Interface for JSON-parsed meta
390
- type JsonParsedAccountMeta {
391
- program: String
380
+ ownerProgram: Account
392
381
  space: BigInt
393
- type: String
394
- }
395
- interface AccountJsonParsed {
396
- meta: JsonParsedAccountMeta
382
+ rentEpoch: BigInt
397
383
  }
398
384
 
399
- # A nonce account
400
385
  type NonceAccountFeeCalculator {
401
386
  lamportsPerSignature: String
402
387
  }
403
- type NonceAccountData {
388
+ """
389
+ A nonce account
390
+ """
391
+ type NonceAccount implements Account {
392
+ address: Address
393
+ executable: Boolean
394
+ lamports: BigInt
395
+ ownerProgram: Account
396
+ space: BigInt
397
+ rentEpoch: BigInt
404
398
  authority: Account
405
399
  blockhash: String
406
400
  feeCalculator: NonceAccountFeeCalculator
407
401
  }
408
- type NonceAccount implements Account & AccountJsonParsed {
402
+
403
+ """
404
+ A lookup table account
405
+ """
406
+ type LookupTableAccount implements Account {
409
407
  address: Address
410
- data: NonceAccountData
411
- encoding: AccountEncoding
412
408
  executable: Boolean
413
409
  lamports: BigInt
414
- meta: JsonParsedAccountMeta
415
- owner: Account
410
+ ownerProgram: Account
411
+ space: BigInt
416
412
  rentEpoch: BigInt
417
- }
418
-
419
- # A lookup table account
420
- type LookupTableAccountData {
421
- addresses: [String]
413
+ addresses: [Address]
422
414
  authority: Account
423
415
  deactivationSlot: String
424
416
  lastExtendedSlot: String
425
417
  lastExtendedSlotStartIndex: Int
426
418
  }
427
- type LookupTableAccount implements Account & AccountJsonParsed {
419
+
420
+ """
421
+ A mint account
422
+ """
423
+ type MintAccount implements Account {
428
424
  address: Address
429
- data: LookupTableAccountData
430
- encoding: AccountEncoding
431
425
  executable: Boolean
432
426
  lamports: BigInt
433
- meta: JsonParsedAccountMeta
434
- owner: Account
427
+ ownerProgram: Account
428
+ space: BigInt
435
429
  rentEpoch: BigInt
436
- }
437
-
438
- # A mint account
439
- type MintAccountData {
440
430
  decimals: Int
441
431
  freezeAuthority: Account
442
432
  isInitialized: Boolean
443
433
  mintAuthority: Account
444
434
  supply: String
445
435
  }
446
- type MintAccount implements Account & AccountJsonParsed {
436
+
437
+ """
438
+ A token account
439
+ """
440
+ type TokenAccount implements Account {
447
441
  address: Address
448
- data: MintAccountData
449
- encoding: AccountEncoding
450
442
  executable: Boolean
451
443
  lamports: BigInt
452
- meta: JsonParsedAccountMeta
453
- owner: Account
444
+ ownerProgram: Account
445
+ space: BigInt
454
446
  rentEpoch: BigInt
455
- }
456
-
457
- # A token account
458
- type TokenAccountData {
459
447
  isNative: Boolean
460
448
  mint: Account
461
449
  owner: Account
462
450
  state: String
463
451
  tokenAmount: TokenAmount
464
452
  }
465
- type TokenAccount implements Account & AccountJsonParsed {
466
- address: Address
467
- data: TokenAccountData
468
- encoding: AccountEncoding
469
- executable: Boolean
470
- lamports: BigInt
471
- meta: JsonParsedAccountMeta
472
- owner: Account
473
- rentEpoch: BigInt
474
- }
475
453
 
476
- # A stake account
477
454
  type StakeAccountDataMetaAuthorized {
478
455
  staker: Account
479
456
  withdrawer: Account
@@ -499,22 +476,20 @@ var accountTypeDefs = (
499
476
  creditsObserved: BigInt
500
477
  delegation: StakeAccountDataStakeDelegation
501
478
  }
502
- type StakeAccountData {
503
- meta: StakeAccountDataMeta
504
- stake: StakeAccountDataStake
505
- }
506
- type StakeAccount implements Account & AccountJsonParsed {
479
+ """
480
+ A stake account
481
+ """
482
+ type StakeAccount implements Account {
507
483
  address: Address
508
- data: StakeAccountData
509
- encoding: AccountEncoding
510
484
  executable: Boolean
511
485
  lamports: BigInt
512
- meta: JsonParsedAccountMeta
513
- owner: Account
486
+ ownerProgram: Account
487
+ space: BigInt
514
488
  rentEpoch: BigInt
489
+ meta: StakeAccountDataMeta
490
+ stake: StakeAccountDataStake
515
491
  }
516
492
 
517
- # A vote account
518
493
  type VoteAccountDataAuthorizedVoter {
519
494
  authorizedVoter: Account
520
495
  epoch: BigInt
@@ -532,27 +507,26 @@ var accountTypeDefs = (
532
507
  confirmationCount: Int
533
508
  slot: BigInt
534
509
  }
535
- type VoteAccountData {
510
+ """
511
+ A vote account
512
+ """
513
+ type VoteAccount implements Account {
514
+ address: Address
515
+ executable: Boolean
516
+ lamports: BigInt
517
+ ownerProgram: Account
518
+ space: BigInt
519
+ rentEpoch: BigInt
536
520
  authorizedVoters: [VoteAccountDataAuthorizedVoter]
537
521
  authorizedWithdrawer: Account
538
522
  commission: Int
539
523
  epochCredits: [VoteAccountDataEpochCredit]
540
524
  lastTimestamp: VoteAccountDataLastTimestamp
541
525
  node: Account
542
- priorVoters: [String]
526
+ priorVoters: [Address]
543
527
  rootSlot: BigInt
544
528
  votes: [VoteAccountDataVote]
545
529
  }
546
- type VoteAccount implements Account & AccountJsonParsed {
547
- address: Address
548
- data: VoteAccountData
549
- encoding: AccountEncoding
550
- executable: Boolean
551
- lamports: BigInt
552
- meta: JsonParsedAccountMeta
553
- owner: Account
554
- rentEpoch: BigInt
555
- }
556
530
  `
557
531
  );
558
532
  var accountResolvers = {
@@ -568,22 +542,22 @@ var accountResolvers = {
568
542
  return "AccountBase64Zstd";
569
543
  }
570
544
  if (account.encoding === "jsonParsed") {
571
- if (account.meta.program === "nonce") {
545
+ if (account.programName === "nonce") {
572
546
  return "NonceAccount";
573
547
  }
574
- if (account.meta.type === "mint" && account.meta.program === "spl-token") {
548
+ if (account.accountType === "mint" && account.programName === "spl-token") {
575
549
  return "MintAccount";
576
550
  }
577
- if (account.meta.type === "account" && account.meta.program === "spl-token") {
551
+ if (account.accountType === "account" && account.programName === "spl-token") {
578
552
  return "TokenAccount";
579
553
  }
580
- if (account.meta.program === "stake") {
554
+ if (account.programName === "stake") {
581
555
  return "StakeAccount";
582
556
  }
583
- if (account.meta.type === "vote" && account.meta.program === "vote") {
557
+ if (account.accountType === "vote" && account.programName === "vote") {
584
558
  return "VoteAccount";
585
559
  }
586
- if (account.meta.type === "lookupTable" && account.meta.program === "address-lookup-table") {
560
+ if (account.accountType === "lookupTable" && account.programName === "address-lookup-table") {
587
561
  return "LookupTableAccount";
588
562
  }
589
563
  }
@@ -591,39 +565,31 @@ var accountResolvers = {
591
565
  }
592
566
  },
593
567
  AccountBase58: {
594
- owner: resolveAccount("owner")
568
+ ownerProgram: resolveAccount("ownerProgram")
595
569
  },
596
570
  AccountBase64: {
597
- owner: resolveAccount("owner")
571
+ ownerProgram: resolveAccount("ownerProgram")
598
572
  },
599
573
  AccountBase64Zstd: {
600
- owner: resolveAccount("owner")
601
- },
602
- NonceAccountData: {
603
- authority: resolveAccount("authority")
574
+ ownerProgram: resolveAccount("ownerProgram")
604
575
  },
605
576
  NonceAccount: {
606
- owner: resolveAccount("owner")
607
- },
608
- LookupTableAccountData: {
609
- authority: resolveAccount("authority")
577
+ authority: resolveAccount("authority"),
578
+ ownerProgram: resolveAccount("ownerProgram")
610
579
  },
611
580
  LookupTableAccount: {
612
- owner: resolveAccount("owner")
613
- },
614
- MintAccountData: {
615
- freezeAuthority: resolveAccount("freezeAuthority"),
616
- mintAuthority: resolveAccount("mintAuthority")
581
+ authority: resolveAccount("authority"),
582
+ ownerProgram: resolveAccount("ownerProgram")
617
583
  },
618
584
  MintAccount: {
619
- owner: resolveAccount("owner")
620
- },
621
- TokenAccountData: {
622
- mint: resolveAccount("mint"),
623
- owner: resolveAccount("owner")
585
+ freezeAuthority: resolveAccount("freezeAuthority"),
586
+ mintAuthority: resolveAccount("mintAuthority"),
587
+ ownerProgram: resolveAccount("ownerProgram")
624
588
  },
625
589
  TokenAccount: {
626
- owner: resolveAccount("owner")
590
+ mint: resolveAccount("mint"),
591
+ owner: resolveAccount("owner"),
592
+ ownerProgram: resolveAccount("ownerProgram")
627
593
  },
628
594
  StakeAccountDataMetaAuthorized: {
629
595
  staker: resolveAccount("staker"),
@@ -636,17 +602,15 @@ var accountResolvers = {
636
602
  voter: resolveAccount("voter")
637
603
  },
638
604
  StakeAccount: {
639
- owner: resolveAccount("owner")
605
+ ownerProgram: resolveAccount("ownerProgram")
640
606
  },
641
607
  VoteAccountDataAuthorizedVoter: {
642
608
  authorizedVoter: resolveAccount("authorizedVoter")
643
609
  },
644
- VoteAccountData: {
645
- authorizedWithdrawer: resolveAccount("authorizedWithdrawer"),
646
- node: resolveAccount("nodePubkey")
647
- },
648
610
  VoteAccount: {
649
- owner: resolveAccount("owner")
611
+ authorizedWithdrawer: resolveAccount("authorizedWithdrawer"),
612
+ node: resolveAccount("nodePubkey"),
613
+ ownerProgram: resolveAccount("ownerProgram")
650
614
  }
651
615
  };
652
616
 
@@ -675,22 +639,26 @@ var blockTypeDefs = (
675
639
  version: String
676
640
  }
677
641
 
678
- # Block interface
642
+ """
643
+ Block interface
644
+ """
679
645
  interface Block {
680
646
  blockhash: String
681
647
  blockHeight: BigInt
682
- blockTime: Int
648
+ blockTime: BigInt
683
649
  parentSlot: BigInt
684
650
  previousBlockhash: String
685
651
  rewards: [Reward]
686
652
  transactionDetails: String
687
653
  }
688
654
 
689
- # A block with account transaction details
655
+ """
656
+ A block with account transaction details
657
+ """
690
658
  type BlockWithAccounts implements Block {
691
659
  blockhash: String
692
660
  blockHeight: BigInt
693
- blockTime: Int
661
+ blockTime: BigInt
694
662
  parentSlot: BigInt
695
663
  previousBlockhash: String
696
664
  rewards: [Reward]
@@ -698,11 +666,13 @@ var blockTypeDefs = (
698
666
  transactionDetails: String
699
667
  }
700
668
 
701
- # A block with full transaction details
669
+ """
670
+ A block with full transaction details
671
+ """
702
672
  type BlockWithFull implements Block {
703
673
  blockhash: String
704
674
  blockHeight: BigInt
705
- blockTime: Int
675
+ blockTime: BigInt
706
676
  parentSlot: BigInt
707
677
  previousBlockhash: String
708
678
  rewards: [Reward]
@@ -710,22 +680,26 @@ var blockTypeDefs = (
710
680
  transactionDetails: String
711
681
  }
712
682
 
713
- # A block with none transaction details
683
+ """
684
+ A block with no transaction details
685
+ """
714
686
  type BlockWithNone implements Block {
715
687
  blockhash: String
716
688
  blockHeight: BigInt
717
- blockTime: Int
689
+ blockTime: BigInt
718
690
  parentSlot: BigInt
719
691
  previousBlockhash: String
720
692
  rewards: [Reward]
721
693
  transactionDetails: String
722
694
  }
723
695
 
724
- # A block with signature transaction details
696
+ """
697
+ A block with signature transaction details
698
+ """
725
699
  type BlockWithSignatures implements Block {
726
700
  blockhash: String
727
701
  blockHeight: BigInt
728
- blockTime: Int
702
+ blockTime: BigInt
729
703
  parentSlot: BigInt
730
704
  previousBlockhash: String
731
705
  rewards: [Reward]
@@ -904,25 +878,27 @@ var commonResolvers = {
904
878
  var instructionTypeDefs = (
905
879
  /* GraphQL */
906
880
  `
907
- type JsonParsedInstructionMeta {
908
- program: String
909
- type: String
910
- }
911
-
912
- # Transaction instruction interface
881
+ """
882
+ Transaction instruction interface
883
+ """
913
884
  interface TransactionInstruction {
914
885
  programId: Address
915
886
  }
916
887
 
917
- # Generic transaction instruction
888
+ """
889
+ Generic transaction instruction
890
+ """
918
891
  type GenericInstruction implements TransactionInstruction {
919
892
  accounts: [Address]
920
893
  data: Base64EncodedBytes
921
894
  programId: Address
922
895
  }
923
896
 
924
- # AddressLookupTable: CreateLookupTable
925
- type CreateLookupTableInstructionData {
897
+ """
898
+ AddressLookupTable: CreateLookupTable instruction
899
+ """
900
+ type CreateLookupTableInstruction implements TransactionInstruction {
901
+ programId: Address
926
902
  bumpSeed: BigInt # FIXME:*
927
903
  lookupTableAccount: Account
928
904
  lookupTableAuthority: Account
@@ -930,107 +906,89 @@ var instructionTypeDefs = (
930
906
  recentSlot: BigInt
931
907
  systemProgram: Account
932
908
  }
933
- type CreateLookupTableInstruction implements TransactionInstruction {
934
- data: CreateLookupTableInstructionData
935
- meta: JsonParsedInstructionMeta
936
- programId: Address
937
- }
938
909
 
939
- # AddressLookupTable: ExtendLookupTable
940
- type ExtendLookupTableInstructionData {
910
+ """
911
+ AddressLookupTable: ExtendLookupTable instruction
912
+ """
913
+ type ExtendLookupTableInstruction implements TransactionInstruction {
914
+ programId: Address
941
915
  lookupTableAccount: Account
942
916
  lookupTableAuthority: Account
943
917
  newAddresses: [Address]
944
918
  payerAccount: Account
945
919
  systemProgram: Account
946
920
  }
947
- type ExtendLookupTableInstruction implements TransactionInstruction {
948
- data: ExtendLookupTableInstructionData
949
- meta: JsonParsedInstructionMeta
950
- programId: Address
951
- }
952
921
 
953
- # AddressLookupTable: FreezeLookupTable
954
- type FreezeLookupTableInstructionData {
955
- lookupTableAccount: Account
956
- lookupTableAuthority: Account
957
- }
922
+ """
923
+ AddressLookupTable: FreezeLookupTable instruction
924
+ """
958
925
  type FreezeLookupTableInstruction implements TransactionInstruction {
959
- data: FreezeLookupTableInstructionData
960
- meta: JsonParsedInstructionMeta
961
926
  programId: Address
962
- }
963
-
964
- # AddressLookupTable: DeactivateLookupTable
965
- type DeactivateLookupTableInstructionData {
966
927
  lookupTableAccount: Account
967
928
  lookupTableAuthority: Account
968
929
  }
930
+
931
+ """
932
+ AddressLookupTable: DeactivateLookupTable instruction
933
+ """
969
934
  type DeactivateLookupTableInstruction implements TransactionInstruction {
970
- data: DeactivateLookupTableInstructionData
971
- meta: JsonParsedInstructionMeta
972
935
  programId: Address
973
- }
974
-
975
- # AddressLookupTable: CloseLookupTable
976
- type CloseLookupTableInstructionData {
977
936
  lookupTableAccount: Account
978
937
  lookupTableAuthority: Account
979
- recipient: Account
980
938
  }
939
+
940
+ """
941
+ AddressLookupTable: CloseLookupTable instruction
942
+ """
981
943
  type CloseLookupTableInstruction implements TransactionInstruction {
982
- data: CloseLookupTableInstructionData
983
- meta: JsonParsedInstructionMeta
984
944
  programId: Address
945
+ lookupTableAccount: Account
946
+ lookupTableAuthority: Account
947
+ recipient: Account
985
948
  }
986
949
 
987
- # BpfLoader: Write
988
- type BpfLoaderWriteInstructionData {
950
+ """
951
+ BpfLoader: Write instruction
952
+ """
953
+ type BpfLoaderWriteInstruction implements TransactionInstruction {
954
+ programId: Address
989
955
  account: Account
990
956
  bytes: Base64EncodedBytes
991
957
  offset: BigInt # FIXME:*
992
958
  }
993
- type BpfLoaderWriteInstruction implements TransactionInstruction {
994
- data: BpfLoaderWriteInstructionData
995
- meta: JsonParsedInstructionMeta
996
- programId: Address
997
- }
998
959
 
999
- # BpfLoader: Finalize
1000
- type BpfLoaderFinalizeInstructionData {
1001
- account: Account
1002
- }
960
+ """
961
+ BpfLoader: Finalize instruction
962
+ """
1003
963
  type BpfLoaderFinalizeInstruction implements TransactionInstruction {
1004
- data: BpfLoaderFinalizeInstructionData
1005
- meta: JsonParsedInstructionMeta
1006
964
  programId: Address
1007
- }
1008
-
1009
- # BpfUpgradeableLoader: InitializeBuffer
1010
- type BpfUpgradeableLoaderInitializeBufferInstructionData {
1011
965
  account: Account
1012
966
  }
967
+
968
+ """
969
+ BpfUpgradeableLoader: InitializeBuffer instruction
970
+ """
1013
971
  type BpfUpgradeableLoaderInitializeBufferInstruction implements TransactionInstruction {
1014
- data: BpfUpgradeableLoaderInitializeBufferInstructionData
1015
- meta: JsonParsedInstructionMeta
1016
972
  programId: Address
973
+ account: Account
1017
974
  }
1018
975
 
1019
- # BpfUpgradeableLoader: Write
1020
- type BpfUpgradeableLoaderWriteInstructionData {
976
+ """
977
+ BpfUpgradeableLoader: Write instruction
978
+ """
979
+ type BpfUpgradeableLoaderWriteInstruction implements TransactionInstruction {
980
+ programId: Address
1021
981
  account: Account
1022
982
  authority: Account
1023
983
  bytes: Base64EncodedBytes
1024
984
  offset: BigInt # FIXME:*
1025
985
  }
1026
- type BpfUpgradeableLoaderWriteInstruction implements TransactionInstruction {
1027
- data: BpfUpgradeableLoaderWriteInstructionData
1028
- meta: JsonParsedInstructionMeta
1029
- programId: Address
1030
- }
1031
986
 
1032
- # BpfUpgradeableLoader: DeployWithMaxDataLen
1033
- type BpfUpgradeableLoaderDeployWithMaxDataLenInstructionData {
987
+ """
988
+ BpfUpgradeableLoader: DeployWithMaxDataLen instruction
989
+ """
990
+ type BpfUpgradeableLoaderDeployWithMaxDataLenInstruction implements TransactionInstruction {
991
+ programId: Address
1034
992
  authority: Account
1035
993
  bufferAccount: Account
1036
994
  clockSysvar: Address
@@ -1040,14 +998,12 @@ var instructionTypeDefs = (
1040
998
  programDataAccount: Account
1041
999
  rentSysvar: Address
1042
1000
  }
1043
- type BpfUpgradeableLoaderDeployWithMaxDataLenInstruction implements TransactionInstruction {
1044
- data: BpfUpgradeableLoaderDeployWithMaxDataLenInstructionData
1045
- meta: JsonParsedInstructionMeta
1046
- programId: Address
1047
- }
1048
1001
 
1049
- # BpfUpgradeableLoader: Upgrade
1050
- type BpfUpgradeableLoaderUpgradeInstructionData {
1002
+ """
1003
+ BpfUpgradeableLoader: Upgrade instruction
1004
+ """
1005
+ type BpfUpgradeableLoaderUpgradeInstruction implements TransactionInstruction {
1006
+ programId: Address
1051
1007
  authority: Account
1052
1008
  bufferAccount: Account
1053
1009
  clockSysvar: Address
@@ -1056,65 +1012,55 @@ var instructionTypeDefs = (
1056
1012
  rentSysvar: Address
1057
1013
  spillAccount: Account
1058
1014
  }
1059
- type BpfUpgradeableLoaderUpgradeInstruction implements TransactionInstruction {
1060
- data: BpfUpgradeableLoaderUpgradeInstructionData
1061
- meta: JsonParsedInstructionMeta
1062
- programId: Address
1063
- }
1064
1015
 
1065
- # BpfUpgradeableLoader: SetAuthority
1066
- type BpfUpgradeableLoaderSetAuthorityInstructionData {
1067
- account: Account
1068
- authority: Account
1069
- newAuthority: Account
1070
- }
1016
+ """
1017
+ BpfUpgradeableLoader: SetAuthority instruction
1018
+ """
1071
1019
  type BpfUpgradeableLoaderSetAuthorityInstruction implements TransactionInstruction {
1072
- data: BpfUpgradeableLoaderSetAuthorityInstructionData
1073
- meta: JsonParsedInstructionMeta
1074
1020
  programId: Address
1075
- }
1076
-
1077
- # BpfUpgradeableLoader: SetAuthorityChecked
1078
- type BpfUpgradeableLoaderSetAuthorityCheckedInstructionData {
1079
1021
  account: Account
1080
1022
  authority: Account
1081
1023
  newAuthority: Account
1082
1024
  }
1025
+
1026
+ """
1027
+ BpfUpgradeableLoader: SetAuthorityChecked instruction
1028
+ """
1083
1029
  type BpfUpgradeableLoaderSetAuthorityCheckedInstruction implements TransactionInstruction {
1084
- data: BpfUpgradeableLoaderSetAuthorityCheckedInstructionData
1085
- meta: JsonParsedInstructionMeta
1086
1030
  programId: Address
1031
+ account: Account
1032
+ authority: Account
1033
+ newAuthority: Account
1087
1034
  }
1088
1035
 
1089
- # BpfUpgradeableLoader: Close
1090
- type BpfUpgradeableLoaderCloseInstructionData {
1036
+ """
1037
+ BpfUpgradeableLoader: Close instruction
1038
+ """
1039
+ type BpfUpgradeableLoaderCloseInstruction implements TransactionInstruction {
1040
+ programId: Address
1091
1041
  account: Account
1092
1042
  authority: Account
1093
1043
  programAccount: Account
1094
1044
  recipient: Account
1095
1045
  }
1096
- type BpfUpgradeableLoaderCloseInstruction implements TransactionInstruction {
1097
- data: BpfUpgradeableLoaderCloseInstructionData
1098
- meta: JsonParsedInstructionMeta
1099
- programId: Address
1100
- }
1101
1046
 
1102
- # BpfUpgradeableLoader: ExtendProgram
1103
- type BpfUpgradeableLoaderExtendProgramInstructionData {
1047
+ """
1048
+ BpfUpgradeableLoader: ExtendProgram instruction
1049
+ """
1050
+ type BpfUpgradeableLoaderExtendProgramInstruction implements TransactionInstruction {
1051
+ programId: Address
1104
1052
  additionalBytes: BigInt
1105
1053
  payerAccount: Account
1106
1054
  programAccount: Account
1107
1055
  programDataAccount: Account
1108
1056
  systemProgram: Account
1109
1057
  }
1110
- type BpfUpgradeableLoaderExtendProgramInstruction implements TransactionInstruction {
1111
- data: BpfUpgradeableLoaderExtendProgramInstructionData
1112
- meta: JsonParsedInstructionMeta
1113
- programId: Address
1114
- }
1115
1058
 
1116
- # SplAssociatedTokenAccount: Create
1117
- type SplAssociatedTokenCreateInstructionData {
1059
+ """
1060
+ SplAssociatedTokenAccount: Create instruction
1061
+ """
1062
+ type SplAssociatedTokenCreateInstruction implements TransactionInstruction {
1063
+ programId: Address
1118
1064
  account: Account
1119
1065
  mint: Address
1120
1066
  source: Account
@@ -1122,14 +1068,12 @@ var instructionTypeDefs = (
1122
1068
  tokenProgram: Account
1123
1069
  wallet: Account
1124
1070
  }
1125
- type SplAssociatedTokenCreateInstruction implements TransactionInstruction {
1126
- data: SplAssociatedTokenCreateInstructionData
1127
- meta: JsonParsedInstructionMeta
1128
- programId: Address
1129
- }
1130
1071
 
1131
- # SplAssociatedTokenAccount: CreateIdempotent
1132
- type SplAssociatedTokenCreateIdempotentInstructionData {
1072
+ """
1073
+ SplAssociatedTokenAccount: CreateIdempotent instruction
1074
+ """
1075
+ type SplAssociatedTokenCreateIdempotentInstruction implements TransactionInstruction {
1076
+ programId: Address
1133
1077
  account: Account
1134
1078
  mint: Address
1135
1079
  source: Account
@@ -1137,14 +1081,12 @@ var instructionTypeDefs = (
1137
1081
  tokenProgram: Account
1138
1082
  wallet: Account
1139
1083
  }
1140
- type SplAssociatedTokenCreateIdempotentInstruction implements TransactionInstruction {
1141
- data: SplAssociatedTokenCreateIdempotentInstructionData
1142
- meta: JsonParsedInstructionMeta
1143
- programId: Address
1144
- }
1145
1084
 
1146
- # SplAssociatedTokenAccount: RecoverNested
1147
- type SplAssociatedTokenRecoverNestedInstructionData {
1085
+ """
1086
+ SplAssociatedTokenAccount: RecoverNested instruction
1087
+ """
1088
+ type SplAssociatedTokenRecoverNestedInstruction implements TransactionInstruction {
1089
+ programId: Address
1148
1090
  destination: Account
1149
1091
  nestedMint: Account
1150
1092
  nestedOwner: Account
@@ -1153,167 +1095,141 @@ var instructionTypeDefs = (
1153
1095
  tokenProgram: Account
1154
1096
  wallet: Account
1155
1097
  }
1156
- type SplAssociatedTokenRecoverNestedInstruction implements TransactionInstruction {
1157
- data: SplAssociatedTokenRecoverNestedInstructionData
1158
- meta: JsonParsedInstructionMeta
1159
- programId: Address
1160
- }
1161
1098
 
1162
- # SplMemo
1163
- type SplMemoInstructionData {
1164
- data: String
1165
- }
1099
+ """
1100
+ SplMemo instruction
1101
+ """
1166
1102
  type SplMemoInstruction implements TransactionInstruction {
1167
- data: SplMemoInstructionData
1168
- meta: JsonParsedInstructionMeta
1169
1103
  programId: Address
1104
+ memo: String
1170
1105
  }
1171
1106
 
1172
- # SplToken: InitializeMint
1173
- type SplTokenInitializeMintInstructionData {
1107
+ """
1108
+ SplToken: InitializeMint instruction
1109
+ """
1110
+ type SplTokenInitializeMintInstruction implements TransactionInstruction {
1111
+ programId: Address
1174
1112
  decimals: BigInt # FIXME:*
1175
1113
  freezeAuthority: Account
1176
1114
  mint: Account
1177
1115
  mintAuthority: Account
1178
1116
  rentSysvar: Address
1179
1117
  }
1180
- type SplTokenInitializeMintInstruction implements TransactionInstruction {
1181
- data: SplTokenInitializeMintInstructionData
1182
- meta: JsonParsedInstructionMeta
1183
- programId: Address
1184
- }
1185
1118
 
1186
- # SplToken: InitializeMint2
1187
- type SplTokenInitializeMint2InstructionData {
1119
+ """
1120
+ SplToken: InitializeMint2 instruction
1121
+ """
1122
+ type SplTokenInitializeMint2Instruction implements TransactionInstruction {
1123
+ programId: Address
1188
1124
  decimals: BigInt # FIXME:*
1189
1125
  freezeAuthority: Account
1190
1126
  mint: Account
1191
1127
  mintAuthority: Account
1192
1128
  }
1193
- type SplTokenInitializeMint2Instruction implements TransactionInstruction {
1194
- data: SplTokenInitializeMint2InstructionData
1195
- meta: JsonParsedInstructionMeta
1196
- programId: Address
1197
- }
1198
1129
 
1199
- # SplToken: InitializeAccount
1200
- type SplTokenInitializeAccountInstructionData {
1201
- account: Account
1202
- mint: Account
1203
- owner: Account
1204
- rentSysvar: Address
1205
- }
1130
+ """
1131
+ SplToken: InitializeAccount instruction
1132
+ """
1206
1133
  type SplTokenInitializeAccountInstruction implements TransactionInstruction {
1207
- data: SplTokenInitializeAccountInstructionData
1208
- meta: JsonParsedInstructionMeta
1209
1134
  programId: Address
1210
- }
1211
-
1212
- # SplToken: InitializeAccount2
1213
- type SplTokenInitializeAccount2InstructionData {
1214
1135
  account: Account
1215
1136
  mint: Account
1216
1137
  owner: Account
1217
1138
  rentSysvar: Address
1218
1139
  }
1140
+
1141
+ """
1142
+ SplToken: InitializeAccount2 instruction
1143
+ """
1219
1144
  type SplTokenInitializeAccount2Instruction implements TransactionInstruction {
1220
- data: SplTokenInitializeAccount2InstructionData
1221
- meta: JsonParsedInstructionMeta
1222
1145
  programId: Address
1223
- }
1224
-
1225
- # SplToken: InitializeAccount3
1226
- type SplTokenInitializeAccount3InstructionData {
1227
1146
  account: Account
1228
1147
  mint: Account
1229
1148
  owner: Account
1149
+ rentSysvar: Address
1230
1150
  }
1151
+
1152
+ """
1153
+ SplToken: InitializeAccount3 instruction
1154
+ """
1231
1155
  type SplTokenInitializeAccount3Instruction implements TransactionInstruction {
1232
- data: SplTokenInitializeAccount3InstructionData
1233
- meta: JsonParsedInstructionMeta
1234
1156
  programId: Address
1157
+ account: Account
1158
+ mint: Account
1159
+ owner: Account
1235
1160
  }
1236
1161
 
1237
- # SplToken: InitializeMultisig
1238
- type SplTokenInitializeMultisigInstructionData {
1162
+ """
1163
+ SplToken: InitializeMultisig instruction
1164
+ """
1165
+ type SplTokenInitializeMultisigInstruction implements TransactionInstruction {
1166
+ programId: Address
1239
1167
  m: BigInt # FIXME:*
1240
1168
  multisig: Account
1241
1169
  rentSysvar: Address
1242
1170
  signers: [Address]
1243
1171
  }
1244
- type SplTokenInitializeMultisigInstruction implements TransactionInstruction {
1245
- data: SplTokenInitializeMultisigInstructionData
1246
- meta: JsonParsedInstructionMeta
1247
- programId: Address
1248
- }
1249
1172
 
1250
- # SplToken: InitializeMultisig2
1251
- type SplTokenInitializeMultisig2InstructionData {
1173
+ """
1174
+ SplToken: InitializeMultisig2 instruction
1175
+ """
1176
+ type SplTokenInitializeMultisig2Instruction implements TransactionInstruction {
1177
+ programId: Address
1252
1178
  m: BigInt # FIXME:*
1253
1179
  multisig: Account
1254
1180
  signers: [Address]
1255
1181
  }
1256
- type SplTokenInitializeMultisig2Instruction implements TransactionInstruction {
1257
- data: SplTokenInitializeMultisig2InstructionData
1258
- meta: JsonParsedInstructionMeta
1259
- programId: Address
1260
- }
1261
1182
 
1262
- # SplToken: Transfer
1263
- type SplTokenTransferInstructionData {
1183
+ """
1184
+ SplToken: Transfer instruction
1185
+ """
1186
+ type SplTokenTransferInstruction implements TransactionInstruction {
1187
+ programId: Address
1264
1188
  amount: String
1265
1189
  authority: Account
1266
1190
  destination: Account
1267
1191
  multisigAuthority: Account
1268
1192
  source: Account
1269
1193
  }
1270
- type SplTokenTransferInstruction implements TransactionInstruction {
1271
- data: SplTokenTransferInstructionData
1272
- meta: JsonParsedInstructionMeta
1273
- programId: Address
1274
- }
1275
1194
 
1276
- # SplToken: Approve
1277
- type SplTokenApproveInstructionData {
1195
+ """
1196
+ SplToken: Approve instruction
1197
+ """
1198
+ type SplTokenApproveInstruction implements TransactionInstruction {
1199
+ programId: Address
1278
1200
  amount: String
1279
1201
  delegate: Account
1280
1202
  multisigOwner: Account
1281
1203
  owner: Account
1282
1204
  source: Account
1283
1205
  }
1284
- type SplTokenApproveInstruction implements TransactionInstruction {
1285
- data: SplTokenApproveInstructionData
1286
- meta: JsonParsedInstructionMeta
1287
- programId: Address
1288
- }
1289
1206
 
1290
- # SplToken: Revoke
1291
- type SplTokenRevokeInstructionData {
1207
+ """
1208
+ SplToken: Revoke instruction
1209
+ """
1210
+ type SplTokenRevokeInstruction implements TransactionInstruction {
1211
+ programId: Address
1292
1212
  multisigOwner: Account
1293
1213
  owner: Account
1294
1214
  source: Account
1295
1215
  }
1296
- type SplTokenRevokeInstruction implements TransactionInstruction {
1297
- data: SplTokenRevokeInstructionData
1298
- meta: JsonParsedInstructionMeta
1299
- programId: Address
1300
- }
1301
1216
 
1302
- # SplToken: SetAuthority
1303
- type SplTokenSetAuthorityInstructionData {
1217
+ """
1218
+ SplToken: SetAuthority instruction
1219
+ """
1220
+ type SplTokenSetAuthorityInstruction implements TransactionInstruction {
1221
+ programId: Address
1304
1222
  authority: Account
1305
1223
  authorityType: String
1306
1224
  multisigAuthority: Account
1307
1225
  newAuthority: Account
1308
1226
  }
1309
- type SplTokenSetAuthorityInstruction implements TransactionInstruction {
1310
- data: SplTokenSetAuthorityInstructionData
1311
- meta: JsonParsedInstructionMeta
1312
- programId: Address
1313
- }
1314
1227
 
1315
- # SplToken: MintTo
1316
- type SplTokenMintToInstructionData {
1228
+ """
1229
+ SplToken: MintTo instruction
1230
+ """
1231
+ type SplTokenMintToInstruction implements TransactionInstruction {
1232
+ programId: Address
1317
1233
  account: Account
1318
1234
  amount: String
1319
1235
  authority: Account
@@ -1321,67 +1237,57 @@ var instructionTypeDefs = (
1321
1237
  mintAuthority: Account
1322
1238
  multisigMintAuthority: Account
1323
1239
  }
1324
- type SplTokenMintToInstruction implements TransactionInstruction {
1325
- data: SplTokenMintToInstructionData
1326
- meta: JsonParsedInstructionMeta
1327
- programId: Address
1328
- }
1329
1240
 
1330
- # SplToken: Burn
1331
- type SplTokenBurnInstructionData {
1241
+ """
1242
+ SplToken: Burn instruction
1243
+ """
1244
+ type SplTokenBurnInstruction implements TransactionInstruction {
1245
+ programId: Address
1332
1246
  account: Account
1333
1247
  amount: String
1334
1248
  authority: Account
1335
1249
  mint: Account
1336
1250
  multisigAuthority: Account
1337
1251
  }
1338
- type SplTokenBurnInstruction implements TransactionInstruction {
1339
- data: SplTokenBurnInstructionData
1340
- meta: JsonParsedInstructionMeta
1341
- programId: Address
1342
- }
1343
1252
 
1344
- # SplToken: CloseAccount
1345
- type SplTokenCloseAccountInstructionData {
1253
+ """
1254
+ SplToken: CloseAccount instruction
1255
+ """
1256
+ type SplTokenCloseAccountInstruction implements TransactionInstruction {
1257
+ programId: Address
1346
1258
  account: Account
1347
1259
  destination: Account
1348
1260
  multisigOwner: Account
1349
1261
  owner: Account
1350
1262
  }
1351
- type SplTokenCloseAccountInstruction implements TransactionInstruction {
1352
- data: SplTokenCloseAccountInstructionData
1353
- meta: JsonParsedInstructionMeta
1354
- programId: Address
1355
- }
1356
1263
 
1357
- # SplToken: FreezeAccount
1358
- type SplTokenFreezeAccountInstructionData {
1359
- account: Account
1360
- freezeAuthority: Account
1361
- mint: Account
1362
- multisigFreezeAuthority: Account
1363
- }
1264
+ """
1265
+ SplToken: FreezeAccount instruction
1266
+ """
1364
1267
  type SplTokenFreezeAccountInstruction implements TransactionInstruction {
1365
- data: SplTokenFreezeAccountInstructionData
1366
- meta: JsonParsedInstructionMeta
1367
1268
  programId: Address
1368
- }
1369
-
1370
- # SplToken: ThawAccount
1371
- type SplTokenThawAccountInstructionData {
1372
1269
  account: Account
1373
1270
  freezeAuthority: Account
1374
1271
  mint: Account
1375
1272
  multisigFreezeAuthority: Account
1376
1273
  }
1274
+
1275
+ """
1276
+ SplToken: ThawAccount instruction
1277
+ """
1377
1278
  type SplTokenThawAccountInstruction implements TransactionInstruction {
1378
- data: SplTokenThawAccountInstructionData
1379
- meta: JsonParsedInstructionMeta
1380
1279
  programId: Address
1280
+ account: Account
1281
+ freezeAuthority: Account
1282
+ mint: Account
1283
+ multisigFreezeAuthority: Account
1381
1284
  }
1382
1285
 
1383
- # SplToken: TransferChecked
1384
- type SplTokenTransferCheckedInstructionData {
1286
+ """
1287
+ SplToken: TransferChecked instruction
1288
+ """
1289
+ type SplTokenTransferCheckedInstruction implements TransactionInstruction {
1290
+ programId: Address
1385
1291
  amount: String
1386
1292
  authority: Account
1387
1293
  decimals: BigInt # FIXME:*
@@ -1391,14 +1297,12 @@ var instructionTypeDefs = (
1391
1297
  source: Account
1392
1298
  tokenAmount: String
1393
1299
  }
1394
- type SplTokenTransferCheckedInstruction implements TransactionInstruction {
1395
- data: SplTokenTransferCheckedInstructionData
1396
- meta: JsonParsedInstructionMeta
1397
- programId: Address
1398
- }
1399
1300
 
1400
- # SplToken: ApproveChecked
1401
- type SplTokenApproveCheckedInstructionData {
1301
+ """
1302
+ SplToken: ApproveChecked instruction
1303
+ """
1304
+ type SplTokenApproveCheckedInstruction implements TransactionInstruction {
1305
+ programId: Address
1402
1306
  delegate: Account
1403
1307
  mint: Account
1404
1308
  multisigOwner: Account
@@ -1406,14 +1310,12 @@ var instructionTypeDefs = (
1406
1310
  source: Account
1407
1311
  tokenAmount: String
1408
1312
  }
1409
- type SplTokenApproveCheckedInstruction implements TransactionInstruction {
1410
- data: SplTokenApproveCheckedInstructionData
1411
- meta: JsonParsedInstructionMeta
1412
- programId: Address
1413
- }
1414
1313
 
1415
- # SplToken: MintToChecked
1416
- type SplTokenMintToCheckedInstructionData {
1314
+ """
1315
+ SplToken: MintToChecked instruction
1316
+ """
1317
+ type SplTokenMintToCheckedInstruction implements TransactionInstruction {
1318
+ programId: Address
1417
1319
  account: Account
1418
1320
  authority: Account
1419
1321
  mint: Account
@@ -1421,88 +1323,69 @@ var instructionTypeDefs = (
1421
1323
  multisigMintAuthority: Account
1422
1324
  tokenAmount: String
1423
1325
  }
1424
- type SplTokenMintToCheckedInstruction implements TransactionInstruction {
1425
- data: SplTokenMintToCheckedInstructionData
1426
- meta: JsonParsedInstructionMeta
1427
- programId: Address
1428
- }
1429
1326
 
1430
- # SplToken: BurnChecked
1431
- type SplTokenBurnCheckedInstructionData {
1327
+ """
1328
+ SplToken: BurnChecked instruction
1329
+ """
1330
+ type SplTokenBurnCheckedInstruction implements TransactionInstruction {
1331
+ programId: Address
1432
1332
  account: Account
1433
1333
  authority: Account
1434
1334
  mint: Account
1435
1335
  multisigAuthority: Account
1436
1336
  tokenAmount: String
1437
1337
  }
1438
- type SplTokenBurnCheckedInstruction implements TransactionInstruction {
1439
- data: SplTokenBurnCheckedInstructionData
1440
- meta: JsonParsedInstructionMeta
1441
- programId: Address
1442
- }
1443
1338
 
1444
- # SplToken: SyncNative
1445
- type SplTokenSyncNativeInstructionData {
1446
- account: Account
1447
- }
1339
+ """
1340
+ SplToken: SyncNative instruction
1341
+ """
1448
1342
  type SplTokenSyncNativeInstruction implements TransactionInstruction {
1449
- data: SplTokenSyncNativeInstructionData
1450
- meta: JsonParsedInstructionMeta
1451
1343
  programId: Address
1344
+ account: Account
1452
1345
  }
1453
1346
 
1454
- # SplToken: GetAccountDataSize
1455
- type SplTokenGetAccountDataSizeInstructionData {
1456
- extensionTypes: [String]
1457
- mint: Account
1458
- }
1347
+ """
1348
+ SplToken: GetAccountDataSize instruction
1349
+ """
1459
1350
  type SplTokenGetAccountDataSizeInstruction implements TransactionInstruction {
1460
- data: SplTokenGetAccountDataSizeInstructionData
1461
- meta: JsonParsedInstructionMeta
1462
1351
  programId: Address
1352
+ extensionTypes: [String]
1353
+ mint: Account
1463
1354
  }
1464
1355
 
1465
- # SplToken: InitializeImmutableOwner
1466
- type SplTokenInitializeImmutableOwnerInstructionData {
1467
- account: Account
1468
- }
1356
+ """
1357
+ SplToken: InitializeImmutableOwner instruction
1358
+ """
1469
1359
  type SplTokenInitializeImmutableOwnerInstruction implements TransactionInstruction {
1470
- data: SplTokenInitializeImmutableOwnerInstructionData
1471
- meta: JsonParsedInstructionMeta
1472
1360
  programId: Address
1361
+ account: Account
1473
1362
  }
1474
1363
 
1475
- # SplToken: AmountToUiAmount
1476
- type SplTokenAmountToUiAmountInstructionData {
1477
- amount: String
1478
- mint: Account
1479
- }
1364
+ """
1365
+ SplToken: AmountToUiAmount instruction
1366
+ """
1480
1367
  type SplTokenAmountToUiAmountInstruction implements TransactionInstruction {
1481
- data: SplTokenAmountToUiAmountInstructionData
1482
- meta: JsonParsedInstructionMeta
1483
1368
  programId: Address
1484
- }
1485
-
1486
- # SplToken: UiAmountToAmount
1487
- type SplTokenUiAmountToAmountInstructionData {
1369
+ amount: String
1488
1370
  mint: Account
1489
- uiAmount: String
1490
1371
  }
1372
+
1373
+ """
1374
+ SplToken: UiAmountToAmount instruction
1375
+ """
1491
1376
  type SplTokenUiAmountToAmountInstruction implements TransactionInstruction {
1492
- data: SplTokenUiAmountToAmountInstructionData
1493
- meta: JsonParsedInstructionMeta
1494
1377
  programId: Address
1495
- }
1496
-
1497
- # SplToken: InitializeMintCloseAuthority
1498
- type SplTokenInitializeMintCloseAuthorityInstructionData {
1499
1378
  mint: Account
1500
- newAuthority: Account
1379
+ uiAmount: String
1501
1380
  }
1381
+
1382
+ """
1383
+ SplToken: InitializeMintCloseAuthority instruction
1384
+ """
1502
1385
  type SplTokenInitializeMintCloseAuthorityInstruction implements TransactionInstruction {
1503
- data: SplTokenInitializeMintCloseAuthorityInstructionData
1504
- meta: JsonParsedInstructionMeta
1505
1386
  programId: Address
1387
+ mint: Account
1388
+ newAuthority: Account
1506
1389
  }
1507
1390
 
1508
1391
  # TODO: Extensions!
@@ -1527,25 +1410,26 @@ var instructionTypeDefs = (
1527
1410
  unixTimestamp: BigInt
1528
1411
  }
1529
1412
 
1530
- # Stake: Initialize
1413
+ """
1414
+ Stake: Initialize instruction
1415
+ """
1531
1416
  type StakeInitializeInstructionDataAuthorized {
1532
1417
  staker: Account
1533
1418
  withdrawer: Account
1534
1419
  }
1535
- type StakeInitializeInstructionData {
1420
+ type StakeInitializeInstruction implements TransactionInstruction {
1421
+ programId: Address
1536
1422
  authorized: StakeInitializeInstructionDataAuthorized
1537
1423
  lockup: Lockup
1538
1424
  rentSysvar: Address
1539
1425
  stakeAccount: Account
1540
1426
  }
1541
- type StakeInitializeInstruction implements TransactionInstruction {
1542
- data: StakeInitializeInstructionData
1543
- meta: JsonParsedInstructionMeta
1544
- programId: Address
1545
- }
1546
1427
 
1547
- # Stake: Authorize
1548
- type StakeAuthorizeInstructionData {
1428
+ """
1429
+ Stake: Authorize instruction
1430
+ """
1431
+ type StakeAuthorizeInstruction implements TransactionInstruction {
1432
+ programId: Address
1549
1433
  authority: Account
1550
1434
  authorityType: String
1551
1435
  clockSysvar: Address
@@ -1553,14 +1437,12 @@ var instructionTypeDefs = (
1553
1437
  newAuthority: Account
1554
1438
  stakeAccount: Account
1555
1439
  }
1556
- type StakeAuthorizeInstruction implements TransactionInstruction {
1557
- data: StakeAuthorizeInstructionData
1558
- meta: JsonParsedInstructionMeta
1559
- programId: Address
1560
- }
1561
1440
 
1562
- # Stake: DelegateStake
1563
- type StakeDelegateStakeInstructionData {
1441
+ """
1442
+ Stake: DelegateStake instruction
1443
+ """
1444
+ type StakeDelegateStakeInstruction implements TransactionInstruction {
1445
+ programId: Address
1564
1446
  clockSysvar: Address
1565
1447
  stakeAccount: Account
1566
1448
  stakeAuthority: Account
@@ -1568,79 +1450,67 @@ var instructionTypeDefs = (
1568
1450
  stakeHistorySysvar: Address
1569
1451
  voteAccount: Account
1570
1452
  }
1571
- type StakeDelegateStakeInstruction implements TransactionInstruction {
1572
- data: StakeDelegateStakeInstructionData
1573
- meta: JsonParsedInstructionMeta
1574
- programId: Address
1575
- }
1576
1453
 
1577
- # Stake: Split
1578
- type StakeSplitInstructionData {
1454
+ """
1455
+ Stake: Split instruction
1456
+ """
1457
+ type StakeSplitInstruction implements TransactionInstruction {
1458
+ programId: Address
1579
1459
  lamports: BigInt
1580
1460
  newSplitAccount: Account
1581
1461
  stakeAccount: Account
1582
1462
  stakeAuthority: Account
1583
1463
  }
1584
- type StakeSplitInstruction implements TransactionInstruction {
1585
- data: StakeSplitInstructionData
1586
- meta: JsonParsedInstructionMeta
1587
- programId: Address
1588
- }
1589
1464
 
1590
- # Stake: Withdraw
1591
- type StakeWithdrawInstructionData {
1465
+ """
1466
+ Stake: Withdraw instruction
1467
+ """
1468
+ type StakeWithdrawInstruction implements TransactionInstruction {
1469
+ programId: Address
1592
1470
  clockSysvar: Address
1593
1471
  destination: Account
1594
1472
  lamports: BigInt
1595
1473
  stakeAccount: Account
1596
1474
  withdrawAuthority: Account
1597
1475
  }
1598
- type StakeWithdrawInstruction implements TransactionInstruction {
1599
- data: StakeWithdrawInstructionData
1600
- meta: JsonParsedInstructionMeta
1601
- programId: Address
1602
- }
1603
1476
 
1604
- # Stake: Deactivate
1605
- type StakeDeactivateInstructionData {
1477
+ """
1478
+ Stake: Deactivate instruction
1479
+ """
1480
+ type StakeDeactivateInstruction implements TransactionInstruction {
1481
+ programId: Address
1606
1482
  clockSysvar: Address
1607
1483
  stakeAccount: Account
1608
1484
  stakeAuthority: Account
1609
1485
  }
1610
- type StakeDeactivateInstruction implements TransactionInstruction {
1611
- data: StakeDeactivateInstructionData
1612
- meta: JsonParsedInstructionMeta
1613
- programId: Address
1614
- }
1615
1486
 
1616
- # Stake: SetLockup
1617
- type StakeSetLockupInstructionData {
1487
+ """
1488
+ Stake: SetLockup instruction
1489
+ """
1490
+ type StakeSetLockupInstruction implements TransactionInstruction {
1491
+ programId: Address
1618
1492
  custodian: Account
1619
1493
  lockup: Lockup
1620
1494
  stakeAccount: Account
1621
1495
  }
1622
- type StakeSetLockupInstruction implements TransactionInstruction {
1623
- data: StakeSetLockupInstructionData
1624
- meta: JsonParsedInstructionMeta
1625
- programId: Address
1626
- }
1627
1496
 
1628
- # Stake: Merge
1629
- type StakeMergeInstructionData {
1497
+ """
1498
+ Stake: Merge instruction
1499
+ """
1500
+ type StakeMergeInstruction implements TransactionInstruction {
1501
+ programId: Address
1630
1502
  clockSysvar: Address
1631
1503
  destination: Account
1632
1504
  source: Account
1633
1505
  stakeAuthority: Account
1634
1506
  stakeHistorySysvar: Address
1635
1507
  }
1636
- type StakeMergeInstruction implements TransactionInstruction {
1637
- data: StakeMergeInstructionData
1638
- meta: JsonParsedInstructionMeta
1639
- programId: Address
1640
- }
1641
1508
 
1642
- # Stake: AuthorizeWithSeed
1643
- type StakeAuthorizeWithSeedInstructionData {
1509
+ """
1510
+ Stake: AuthorizeWithSeed instruction
1511
+ """
1512
+ type StakeAuthorizeWithSeedInstruction implements TransactionInstruction {
1513
+ programId: Address
1644
1514
  authorityBase: Account
1645
1515
  authorityOwner: Account
1646
1516
  authoritySeed: String
@@ -1650,27 +1520,27 @@ var instructionTypeDefs = (
1650
1520
  newAuthorized: Account
1651
1521
  stakeAccount: Account
1652
1522
  }
1653
- type StakeAuthorizeWithSeedInstruction implements TransactionInstruction {
1654
- data: StakeAuthorizeWithSeedInstructionData
1655
- meta: JsonParsedInstructionMeta
1656
- programId: Address
1657
- }
1658
1523
 
1659
- # Stake: InitializeChecked
1524
+ """
1525
+ Stake: InitializeChecked instruction
1526
+ """
1660
1527
  type StakeInitializeCheckedInstructionDataAuthorized {
1661
- rentSysvar: Address
1662
- stakeAccount: Account
1663
1528
  staker: Account
1664
1529
  withdrawer: Account
1665
1530
  }
1666
1531
  type StakeInitializeCheckedInstruction implements TransactionInstruction {
1667
- data: StakeInitializeCheckedInstructionDataAuthorized
1668
- meta: JsonParsedInstructionMeta
1669
1532
  programId: Address
1533
+ authorized: StakeInitializeCheckedInstructionDataAuthorized
1534
+ lockup: Lockup
1535
+ rentSysvar: Address
1536
+ stakeAccount: Account
1670
1537
  }
1671
1538
 
1672
- # Stake: AuthorizeChecked
1673
- type StakeAuthorizeCheckedInstructionData {
1539
+ """
1540
+ Stake: AuthorizeChecked instruction
1541
+ """
1542
+ type StakeAuthorizeCheckedInstruction implements TransactionInstruction {
1543
+ programId: Address
1674
1544
  authority: Account
1675
1545
  authorityType: String
1676
1546
  clockSysvar: Address
@@ -1678,14 +1548,12 @@ var instructionTypeDefs = (
1678
1548
  newAuthority: Account
1679
1549
  stakeAccount: Account
1680
1550
  }
1681
- type StakeAuthorizeCheckedInstruction implements TransactionInstruction {
1682
- data: StakeAuthorizeCheckedInstructionData
1683
- meta: JsonParsedInstructionMeta
1684
- programId: Address
1685
- }
1686
1551
 
1687
- # Stake: AuthorizeCheckedWithSeed
1688
- type StakeAuthorizeCheckedWithSeedInstructionData {
1552
+ """
1553
+ Stake: AuthorizeCheckedWithSeed instruction
1554
+ """
1555
+ type StakeAuthorizeCheckedWithSeedInstruction implements TransactionInstruction {
1556
+ programId: Address
1689
1557
  authorityBase: Account
1690
1558
  authorityOwner: Account
1691
1559
  authoritySeed: String
@@ -1695,115 +1563,97 @@ var instructionTypeDefs = (
1695
1563
  newAuthorized: Account
1696
1564
  stakeAccount: Account
1697
1565
  }
1698
- type StakeAuthorizeCheckedWithSeedInstruction implements TransactionInstruction {
1699
- data: StakeAuthorizeCheckedWithSeedInstructionData
1700
- meta: JsonParsedInstructionMeta
1701
- programId: Address
1702
- }
1703
1566
 
1704
- # Stake: SetLockupChecked
1705
- type StakeSetLockupCheckedInstructionData {
1567
+ """
1568
+ Stake: SetLockupChecked instruction
1569
+ """
1570
+ type StakeSetLockupCheckedInstruction implements TransactionInstruction {
1571
+ programId: Address
1706
1572
  custodian: Account
1707
1573
  lockup: Lockup
1708
1574
  stakeAccount: Account
1709
1575
  }
1710
- type StakeSetLockupCheckedInstruction implements TransactionInstruction {
1711
- data: StakeSetLockupCheckedInstructionData
1712
- meta: JsonParsedInstructionMeta
1713
- programId: Address
1714
- }
1715
1576
 
1716
- # Stake: DeactivateDelinquent
1717
- type StakeDeactivateDelinquentInstructionData {
1577
+ """
1578
+ Stake: DeactivateDelinquent instruction
1579
+ """
1580
+ type StakeDeactivateDelinquentInstruction implements TransactionInstruction {
1581
+ programId: Address
1718
1582
  referenceVoteAccount: Account
1719
1583
  stakeAccount: Account
1720
1584
  voteAccount: Account
1721
1585
  }
1722
- type StakeDeactivateDelinquentInstruction implements TransactionInstruction {
1723
- data: StakeDeactivateDelinquentInstructionData
1724
- meta: JsonParsedInstructionMeta
1725
- programId: Address
1726
- }
1727
1586
 
1728
- # Stake: Redelegate
1729
- type StakeRedelegateInstructionData {
1587
+ """
1588
+ Stake: Redelegate instruction
1589
+ """
1590
+ type StakeRedelegateInstruction implements TransactionInstruction {
1591
+ programId: Address
1730
1592
  newStakeAccount: Account
1731
1593
  stakeAccount: Account
1732
1594
  stakeAuthority: Account
1733
1595
  stakeConfigAccount: Account
1734
1596
  voteAccount: Account
1735
1597
  }
1736
- type StakeRedelegateInstruction implements TransactionInstruction {
1737
- data: StakeRedelegateInstructionData
1738
- meta: JsonParsedInstructionMeta
1739
- programId: Address
1740
- }
1741
1598
 
1742
- # System: CreateAccount
1743
- type CreateAccountInstructionData {
1599
+ """
1600
+ System: CreateAccount instruction
1601
+ """
1602
+ type CreateAccountInstruction implements TransactionInstruction {
1603
+ programId: Address
1744
1604
  lamports: BigInt
1745
1605
  newAccount: Account
1746
1606
  owner: Account
1747
1607
  source: Account
1748
1608
  space: BigInt
1749
1609
  }
1750
- type CreateAccountInstruction implements TransactionInstruction {
1751
- data: CreateAccountInstructionData
1752
- meta: JsonParsedInstructionMeta
1753
- programId: Address
1754
- }
1755
1610
 
1756
- # System: Assign
1757
- type AssignInstructionData {
1758
- account: Account
1759
- owner: Account
1760
- }
1611
+ """
1612
+ System: Assign instruction
1613
+ """
1761
1614
  type AssignInstruction implements TransactionInstruction {
1762
- data: AssignInstructionData
1763
- meta: JsonParsedInstructionMeta
1764
1615
  programId: Address
1616
+ account: Account
1617
+ owner: Account
1765
1618
  }
1766
1619
 
1767
- # System: Transfer
1768
- type TransferInstructionData {
1620
+ """
1621
+ System: Transfer instruction
1622
+ """
1623
+ type TransferInstruction implements TransactionInstruction {
1624
+ programId: Address
1769
1625
  destination: Account
1770
1626
  lamports: BigInt
1771
1627
  source: Account
1772
1628
  }
1773
- type TransferInstruction implements TransactionInstruction {
1774
- data: TransferInstructionData
1775
- meta: JsonParsedInstructionMeta
1776
- programId: Address
1777
- }
1778
1629
 
1779
- # System: CreateAccountWithSeed
1780
- type CreateAccountWithSeedInstructionData {
1630
+ """
1631
+ System: CreateAccountWithSeed instruction
1632
+ """
1633
+ type CreateAccountWithSeedInstruction implements TransactionInstruction {
1634
+ programId: Address
1781
1635
  base: Account
1782
1636
  lamports: BigInt
1783
1637
  owner: Account
1784
1638
  seed: String
1785
1639
  space: BigInt
1786
1640
  }
1787
- type CreateAccountWithSeedInstruction implements TransactionInstruction {
1788
- data: CreateAccountWithSeedInstructionData
1789
- meta: JsonParsedInstructionMeta
1790
- programId: Address
1791
- }
1792
1641
 
1793
- # System: AdvanceNonceAccount
1794
- type AdvanceNonceAccountInstructionData {
1642
+ """
1643
+ System: AdvanceNonceAccount instruction
1644
+ """
1645
+ type AdvanceNonceAccountInstruction implements TransactionInstruction {
1646
+ programId: Address
1795
1647
  nonceAccount: Account
1796
1648
  nonceAuthority: Account
1797
1649
  recentBlockhashesSysvar: Address
1798
1650
  }
1799
- type AdvanceNonceAccountInstruction implements TransactionInstruction {
1800
- data: AdvanceNonceAccountInstructionData
1801
- meta: JsonParsedInstructionMeta
1802
- programId: Address
1803
- }
1804
1651
 
1805
- # System: WithdrawNonceAccount
1806
- type WithdrawNonceAccountInstructionData {
1652
+ """
1653
+ System: WithdrawNonceAccount instruction
1654
+ """
1655
+ type WithdrawNonceAccountInstruction implements TransactionInstruction {
1656
+ programId: Address
1807
1657
  destination: Account
1808
1658
  lamports: BigInt
1809
1659
  nonceAccount: Account
@@ -1811,88 +1661,74 @@ var instructionTypeDefs = (
1811
1661
  recentBlockhashesSysvar: Address
1812
1662
  rentSysvar: Address
1813
1663
  }
1814
- type WithdrawNonceAccountInstruction implements TransactionInstruction {
1815
- data: WithdrawNonceAccountInstructionData
1816
- meta: JsonParsedInstructionMeta
1817
- programId: Address
1818
- }
1819
1664
 
1820
- # System: InitializeNonceAccount
1821
- type InitializeNonceAccountInstructionData {
1665
+ """
1666
+ System: InitializeNonceAccount instruction
1667
+ """
1668
+ type InitializeNonceAccountInstruction implements TransactionInstruction {
1669
+ programId: Address
1822
1670
  nonceAccount: Account
1823
1671
  nonceAuthority: Account
1824
1672
  recentBlockhashesSysvar: Address
1825
1673
  rentSysvar: Address
1826
1674
  }
1827
- type InitializeNonceAccountInstruction implements TransactionInstruction {
1828
- data: InitializeNonceAccountInstructionData
1829
- meta: JsonParsedInstructionMeta
1830
- programId: Address
1831
- }
1832
1675
 
1833
- # System: AuthorizeNonceAccount
1834
- type AuthorizeNonceAccountInstructionData {
1835
- newAuthorized: Account
1836
- nonceAccount: Account
1837
- nonceAuthority: Account
1838
- }
1676
+ """
1677
+ System: AuthorizeNonceAccount instruction
1678
+ """
1839
1679
  type AuthorizeNonceAccountInstruction implements TransactionInstruction {
1840
- data: AuthorizeNonceAccountInstructionData
1841
- meta: JsonParsedInstructionMeta
1842
1680
  programId: Address
1843
- }
1844
-
1845
- # System: UpgradeNonceAccount
1846
- type UpgradeNonceAccountInstructionData {
1681
+ newAuthorized: Account
1847
1682
  nonceAccount: Account
1848
1683
  nonceAuthority: Account
1849
1684
  }
1685
+
1686
+ """
1687
+ System: UpgradeNonceAccount instruction
1688
+ """
1850
1689
  type UpgradeNonceAccountInstruction implements TransactionInstruction {
1851
- data: UpgradeNonceAccountInstructionData
1852
- meta: JsonParsedInstructionMeta
1853
1690
  programId: Address
1691
+ nonceAccount: Account
1692
+ nonceAuthority: Account
1854
1693
  }
1855
1694
 
1856
- # System: Allocate
1857
- type AllocateInstructionData {
1858
- account: Account
1859
- space: BigInt
1860
- }
1695
+ """
1696
+ System: Allocate instruction
1697
+ """
1861
1698
  type AllocateInstruction implements TransactionInstruction {
1862
- data: AllocateInstructionData
1863
- meta: JsonParsedInstructionMeta
1864
1699
  programId: Address
1700
+ account: Account
1701
+ space: BigInt
1865
1702
  }
1866
1703
 
1867
- # System: AllocateWithSeed
1868
- type AllocateWithSeedInstructionData {
1704
+ """
1705
+ System: AllocateWithSeed instruction
1706
+ """
1707
+ type AllocateWithSeedInstruction implements TransactionInstruction {
1708
+ programId: Address
1869
1709
  account: Account
1870
1710
  base: Address
1871
1711
  owner: Account
1872
1712
  seed: String
1873
1713
  space: BigInt
1874
1714
  }
1875
- type AllocateWithSeedInstruction implements TransactionInstruction {
1876
- data: AllocateWithSeedInstructionData
1877
- meta: JsonParsedInstructionMeta
1878
- programId: Address
1879
- }
1880
1715
 
1881
- # System: AssignWithSeed
1882
- type AssignWithSeedInstructionData {
1716
+ """
1717
+ System: AssignWithSeed instruction
1718
+ """
1719
+ type AssignWithSeedInstruction implements TransactionInstruction {
1720
+ programId: Address
1883
1721
  account: Account
1884
1722
  base: Address
1885
1723
  owner: Account
1886
1724
  seed: String
1887
1725
  }
1888
- type AssignWithSeedInstruction implements TransactionInstruction {
1889
- data: AssignWithSeedInstructionData
1890
- meta: JsonParsedInstructionMeta
1891
- programId: Address
1892
- }
1893
1726
 
1894
- # System: TransferWithSeed
1895
- type TransferWithSeedInstructionData {
1727
+ """
1728
+ System: TransferWithSeed instruction
1729
+ """
1730
+ type TransferWithSeedInstruction implements TransactionInstruction {
1731
+ programId: Address
1896
1732
  destination: Account
1897
1733
  lamports: BigInt
1898
1734
  source: Account
@@ -1900,14 +1736,12 @@ var instructionTypeDefs = (
1900
1736
  sourceOwner: Account
1901
1737
  sourceSeed: String
1902
1738
  }
1903
- type TransferWithSeedInstruction implements TransactionInstruction {
1904
- data: TransferWithSeedInstructionData
1905
- meta: JsonParsedInstructionMeta
1906
- programId: Address
1907
- }
1908
1739
 
1909
- # Vote: InitializeAccount
1910
- type VoteInitializeAccountInstructionData {
1740
+ """
1741
+ Vote: InitializeAccount instruction
1742
+ """
1743
+ type VoteInitializeAccountInstruction implements TransactionInstruction {
1744
+ programId: Address
1911
1745
  authorizedVoter: Account
1912
1746
  authorizedWithdrawer: Account
1913
1747
  clockSysvar: Address
@@ -1916,29 +1750,25 @@ var instructionTypeDefs = (
1916
1750
  rentSysvar: Address
1917
1751
  voteAccount: Account
1918
1752
  }
1919
- type VoteInitializeAccountInstruction implements TransactionInstruction {
1920
- data: VoteInitializeAccountInstructionData
1921
- meta: JsonParsedInstructionMeta
1922
- programId: Address
1923
- }
1924
1753
 
1925
- # Vote: Authorize
1926
- type VoteAuthorizeInstructionData {
1754
+ """
1755
+ Vote: Authorize instruction
1756
+ """
1757
+ type VoteAuthorizeInstruction implements TransactionInstruction {
1758
+ programId: Address
1927
1759
  authority: Account
1928
1760
  authorityType: String
1929
1761
  clockSysvar: Address
1930
1762
  newAuthority: Account
1931
1763
  voteAccount: Account
1932
1764
  }
1933
- type VoteAuthorizeInstruction implements TransactionInstruction {
1934
- data: VoteAuthorizeInstructionData
1935
- meta: JsonParsedInstructionMeta
1936
- programId: Address
1937
- }
1938
1765
 
1939
- # Vote: AuthorizeWithSeed
1940
- type VoteAuthorizeWithSeedInstructionData {
1941
- authorityBaseKey: Address
1766
+ """
1767
+ Vote: AuthorizeWithSeed instruction
1768
+ """
1769
+ type VoteAuthorizeWithSeedInstruction implements TransactionInstruction {
1770
+ programId: Address
1771
+ authorityBaseKey: String
1942
1772
  authorityOwner: Account
1943
1773
  authoritySeed: String
1944
1774
  authorityType: String
@@ -1946,15 +1776,13 @@ var instructionTypeDefs = (
1946
1776
  newAuthority: Account
1947
1777
  voteAccount: Account
1948
1778
  }
1949
- type VoteAuthorizeWithSeedInstruction implements TransactionInstruction {
1950
- data: VoteAuthorizeWithSeedInstructionData
1951
- meta: JsonParsedInstructionMeta
1952
- programId: Address
1953
- }
1954
1779
 
1955
- # Vote: AuthorizeCheckedWithSeed
1956
- type VoteAuthorizeCheckedWithSeedInstructionData {
1957
- authorityBaseKey: Address
1780
+ """
1781
+ Vote: AuthorizeCheckedWithSeed instruction
1782
+ """
1783
+ type VoteAuthorizeCheckedWithSeedInstruction implements TransactionInstruction {
1784
+ programId: Address
1785
+ authorityBaseKey: String
1958
1786
  authorityOwner: Account
1959
1787
  authoritySeed: String
1960
1788
  authorityType: String
@@ -1962,11 +1790,6 @@ var instructionTypeDefs = (
1962
1790
  newAuthority: Account
1963
1791
  voteAccount: Account
1964
1792
  }
1965
- type VoteAuthorizeCheckedWithSeedInstruction implements TransactionInstruction {
1966
- data: VoteAuthorizeCheckedWithSeedInstructionData
1967
- meta: JsonParsedInstructionMeta
1968
- programId: Address
1969
- }
1970
1793
 
1971
1794
  type Vote {
1972
1795
  hash: String
@@ -1974,19 +1797,17 @@ var instructionTypeDefs = (
1974
1797
  timestamp: BigInt
1975
1798
  }
1976
1799
 
1977
- # Vote: Vote
1978
- type VoteVoteInstructionData {
1800
+ """
1801
+ Vote: Vote instruction
1802
+ """
1803
+ type VoteVoteInstruction implements TransactionInstruction {
1804
+ programId: Address
1979
1805
  clockSysvar: Address
1980
1806
  slotHashesSysvar: Address
1981
1807
  vote: Vote
1982
1808
  voteAccount: Account
1983
1809
  voteAuthority: Account
1984
1810
  }
1985
- type VoteVoteInstruction implements TransactionInstruction {
1986
- data: VoteVoteInstructionData
1987
- meta: JsonParsedInstructionMeta
1988
- programId: Address
1989
- }
1990
1811
 
1991
1812
  type VoteStateUpdateLockout {
1992
1813
  confirmationCount: BigInt # FIXME:*
@@ -1999,97 +1820,86 @@ var instructionTypeDefs = (
1999
1820
  timestamp: BigInt
2000
1821
  }
2001
1822
 
2002
- # Vote: UpdateVoteState
2003
- type VoteUpdateVoteStateInstructionData {
2004
- hash: String
2005
- voteAccount: Account
2006
- voteAuthority: Account
2007
- voteStateUpdate: VoteStateUpdate
2008
- }
1823
+ """
1824
+ Vote: UpdateVoteState instruction
1825
+ """
2009
1826
  type VoteUpdateVoteStateInstruction implements TransactionInstruction {
2010
- data: VoteUpdateVoteStateInstructionData
2011
- meta: JsonParsedInstructionMeta
2012
1827
  programId: Address
2013
- }
2014
-
2015
- # Vote: UpdateVoteStateSwitch
2016
- type VoteUpdateVoteStateSwitchInstructionData {
2017
1828
  hash: String
2018
1829
  voteAccount: Account
2019
1830
  voteAuthority: Account
2020
1831
  voteStateUpdate: VoteStateUpdate
2021
1832
  }
1833
+
1834
+ """
1835
+ Vote: UpdateVoteStateSwitch instruction
1836
+ """
2022
1837
  type VoteUpdateVoteStateSwitchInstruction implements TransactionInstruction {
2023
- data: VoteUpdateVoteStateSwitchInstructionData
2024
- meta: JsonParsedInstructionMeta
2025
1838
  programId: Address
2026
- }
2027
-
2028
- # Vote: CompactUpdateVoteState
2029
- type VoteCompactUpdateVoteStateInstructionData {
2030
1839
  hash: String
2031
1840
  voteAccount: Account
2032
1841
  voteAuthority: Account
2033
1842
  voteStateUpdate: VoteStateUpdate
2034
1843
  }
1844
+
1845
+ """
1846
+ Vote: CompactUpdateVoteState instruction
1847
+ """
2035
1848
  type VoteCompactUpdateVoteStateInstruction implements TransactionInstruction {
2036
- data: VoteCompactUpdateVoteStateInstructionData
2037
- meta: JsonParsedInstructionMeta
2038
1849
  programId: Address
2039
- }
2040
-
2041
- # Vote: CompactUpdateVoteStateSwitch
2042
- type VoteCompactUpdateVoteStateSwitchInstructionData {
2043
1850
  hash: String
2044
1851
  voteAccount: Account
2045
1852
  voteAuthority: Account
2046
1853
  voteStateUpdate: VoteStateUpdate
2047
1854
  }
1855
+
1856
+ """
1857
+ Vote: CompactUpdateVoteStateSwitch instruction
1858
+ """
2048
1859
  type VoteCompactUpdateVoteStateSwitchInstruction implements TransactionInstruction {
2049
- data: VoteCompactUpdateVoteStateSwitchInstructionData
2050
- meta: JsonParsedInstructionMeta
2051
1860
  programId: Address
1861
+ hash: String
1862
+ voteAccount: Account
1863
+ voteAuthority: Account
1864
+ voteStateUpdate: VoteStateUpdate
2052
1865
  }
2053
1866
 
2054
- # Vote: Withdraw
2055
- type VoteWithdrawInstructionData {
1867
+ """
1868
+ Vote: Withdraw instruction
1869
+ """
1870
+ type VoteWithdrawInstruction implements TransactionInstruction {
1871
+ programId: Address
2056
1872
  destination: Account
2057
1873
  lamports: BigInt
2058
1874
  voteAccount: Account
2059
1875
  withdrawAuthority: Account
2060
1876
  }
2061
- type VoteWithdrawInstruction implements TransactionInstruction {
2062
- data: VoteWithdrawInstructionData
2063
- meta: JsonParsedInstructionMeta
2064
- programId: Address
2065
- }
2066
1877
 
2067
- # Vote: UpdateValidatorIdentity
2068
- type VoteUpdateValidatorIdentityInstructionData {
1878
+ """
1879
+ Vote: UpdateValidatorIdentity instruction
1880
+ """
1881
+ type VoteUpdateValidatorIdentityInstruction implements TransactionInstruction {
1882
+ programId: Address
2069
1883
  newValidatorIdentity: Account
2070
1884
  voteAccount: Account
2071
1885
  withdrawAuthority: Account
2072
1886
  }
2073
- type VoteUpdateValidatorIdentityInstruction implements TransactionInstruction {
2074
- data: VoteUpdateValidatorIdentityInstructionData
2075
- meta: JsonParsedInstructionMeta
2076
- programId: Address
2077
- }
2078
1887
 
2079
- # Vote: UpdateCommission
2080
- type VoteUpdateCommissionInstructionData {
1888
+ """
1889
+ Vote: UpdateCommission instruction
1890
+ """
1891
+ type VoteUpdateCommissionInstruction implements TransactionInstruction {
1892
+ programId: Address
2081
1893
  commission: BigInt # FIXME:*
2082
1894
  voteAccount: Account
2083
1895
  withdrawAuthority: Account
2084
1896
  }
2085
- type VoteUpdateCommissionInstruction implements TransactionInstruction {
2086
- data: VoteUpdateCommissionInstructionData
2087
- meta: JsonParsedInstructionMeta
2088
- programId: Address
2089
- }
2090
1897
 
2091
- # Vote: VoteSwitch
2092
- type VoteVoteSwitchInstructionData {
1898
+ """
1899
+ Vote: VoteSwitch instruction
1900
+ """
1901
+ type VoteVoteSwitchInstruction implements TransactionInstruction {
1902
+ programId: Address
2093
1903
  clockSysvar: Address
2094
1904
  hash: String
2095
1905
  slotHashesSysvar: Address
@@ -2097,305 +1907,298 @@ var instructionTypeDefs = (
2097
1907
  voteAccount: Account
2098
1908
  voteAuthority: Account
2099
1909
  }
2100
- type VoteVoteSwitchInstruction implements TransactionInstruction {
2101
- data: VoteVoteSwitchInstructionData
2102
- meta: JsonParsedInstructionMeta
2103
- programId: Address
2104
- }
2105
1910
 
2106
- # Vote: AuthorizeChecked
2107
- type VoteAuthorizeCheckedInstructionData {
1911
+ """
1912
+ Vote: AuthorizeChecked instruction
1913
+ """
1914
+ type VoteAuthorizeCheckedInstruction implements TransactionInstruction {
1915
+ programId: Address
2108
1916
  authority: Account
2109
1917
  authorityType: String
2110
1918
  clockSysvar: Address
2111
1919
  newAuthority: Account
2112
1920
  voteAccount: Account
2113
1921
  }
2114
- type VoteAuthorizeCheckedInstruction implements TransactionInstruction {
2115
- data: VoteAuthorizeCheckedInstructionData
2116
- meta: JsonParsedInstructionMeta
2117
- programId: Address
2118
- }
2119
1922
  `
2120
1923
  );
2121
1924
  var instructionResolvers = {
2122
1925
  TransactionInstruction: {
2123
1926
  __resolveType(instruction) {
2124
- if (instruction.meta) {
2125
- if (instruction.meta.program === "address-lookup-table") {
2126
- if (instruction.meta.type === "createLookupTable") {
1927
+ if (instruction.programName) {
1928
+ if (instruction.programName === "address-lookup-table") {
1929
+ if (instruction.instructionType === "createLookupTable") {
2127
1930
  return "CreateLookupTableInstruction";
2128
1931
  }
2129
- if (instruction.meta.type === "freezeLookupTable") {
1932
+ if (instruction.instructionType === "freezeLookupTable") {
2130
1933
  return "FreezeLookupTableInstruction";
2131
1934
  }
2132
- if (instruction.meta.type === "extendLookupTable") {
1935
+ if (instruction.instructionType === "extendLookupTable") {
2133
1936
  return "ExtendLookupTableInstruction";
2134
1937
  }
2135
- if (instruction.meta.type === "deactivateLookupTable") {
1938
+ if (instruction.instructionType === "deactivateLookupTable") {
2136
1939
  return "DeactivateLookupTableInstruction";
2137
1940
  }
2138
- if (instruction.meta.type === "closeLookupTable") {
1941
+ if (instruction.instructionType === "closeLookupTable") {
2139
1942
  return "CloseLookupTableInstruction";
2140
1943
  }
2141
1944
  }
2142
- if (instruction.meta.program === "bpf-loader") {
2143
- if (instruction.meta.type === "write") {
1945
+ if (instruction.programName === "bpf-loader") {
1946
+ if (instruction.instructionType === "write") {
2144
1947
  return "BpfLoaderWriteInstruction";
2145
1948
  }
2146
- if (instruction.meta.type === "finalize") {
1949
+ if (instruction.instructionType === "finalize") {
2147
1950
  return "BpfLoaderFinalizeInstruction";
2148
1951
  }
2149
1952
  }
2150
- if (instruction.meta.program === "bpf-upgradeable-loader") {
2151
- if (instruction.meta.type === "initializeBuffer") {
1953
+ if (instruction.programName === "bpf-upgradeable-loader") {
1954
+ if (instruction.instructionType === "initializeBuffer") {
2152
1955
  return "BpfUpgradeableLoaderInitializeBufferInstruction";
2153
1956
  }
2154
- if (instruction.meta.type === "write") {
1957
+ if (instruction.instructionType === "write") {
2155
1958
  return "BpfUpgradeableLoaderWriteInstruction";
2156
1959
  }
2157
- if (instruction.meta.type === "deployWithMaxDataLen") {
1960
+ if (instruction.instructionType === "deployWithMaxDataLen") {
2158
1961
  return "BpfUpgradeableLoaderDeployWithMaxDataLenInstruction";
2159
1962
  }
2160
- if (instruction.meta.type === "upgrade") {
1963
+ if (instruction.instructionType === "upgrade") {
2161
1964
  return "BpfUpgradeableLoaderUpgradeInstruction";
2162
1965
  }
2163
- if (instruction.meta.type === "setAuthority") {
1966
+ if (instruction.instructionType === "setAuthority") {
2164
1967
  return "BpfUpgradeableLoaderSetAuthorityInstruction";
2165
1968
  }
2166
- if (instruction.meta.type === "setAuthorityChecked") {
1969
+ if (instruction.instructionType === "setAuthorityChecked") {
2167
1970
  return "BpfUpgradeableLoaderSetAuthorityCheckedInstruction";
2168
1971
  }
2169
- if (instruction.meta.type === "close") {
1972
+ if (instruction.instructionType === "close") {
2170
1973
  return "BpfUpgradeableLoaderCloseInstruction";
2171
1974
  }
2172
- if (instruction.meta.type === "extendProgram") {
1975
+ if (instruction.instructionType === "extendProgram") {
2173
1976
  return "BpfUpgradeableLoaderExtendProgramInstruction";
2174
1977
  }
2175
1978
  }
2176
- if (instruction.meta.program === "spl-associated-token-account") {
2177
- if (instruction.meta.type === "create") {
1979
+ if (instruction.programName === "spl-associated-token-account") {
1980
+ if (instruction.instructionType === "create") {
2178
1981
  return "SplAssociatedTokenCreateInstruction";
2179
1982
  }
2180
- if (instruction.meta.type === "createIdempotent") {
1983
+ if (instruction.instructionType === "createIdempotent") {
2181
1984
  return "SplAssociatedTokenCreateIdempotentInstruction";
2182
1985
  }
2183
- if (instruction.meta.type === "recoverNested") {
1986
+ if (instruction.instructionType === "recoverNested") {
2184
1987
  return "SplAssociatedTokenRecoverNestedInstruction";
2185
1988
  }
2186
1989
  }
2187
- if (instruction.meta.program === "spl-memo") {
1990
+ if (instruction.programName === "spl-memo") {
2188
1991
  return "SplMemoInstruction";
2189
1992
  }
2190
- if (instruction.meta.program === "spl-token") {
2191
- if (instruction.meta.type === "initializeMint") {
1993
+ if (instruction.programName === "spl-token") {
1994
+ if (instruction.instructionType === "initializeMint") {
2192
1995
  return "SplTokenInitializeMintInstruction";
2193
1996
  }
2194
- if (instruction.meta.type === "initializeMint2") {
1997
+ if (instruction.instructionType === "initializeMint2") {
2195
1998
  return "SplTokenInitializeMint2Instruction";
2196
1999
  }
2197
- if (instruction.meta.type === "initializeAccount") {
2000
+ if (instruction.instructionType === "initializeAccount") {
2198
2001
  return "SplTokenInitializeAccountInstruction";
2199
2002
  }
2200
- if (instruction.meta.type === "initializeAccount2") {
2003
+ if (instruction.instructionType === "initializeAccount2") {
2201
2004
  return "SplTokenInitializeAccount2Instruction";
2202
2005
  }
2203
- if (instruction.meta.type === "initializeAccount3") {
2006
+ if (instruction.instructionType === "initializeAccount3") {
2204
2007
  return "SplTokenInitializeAccount3Instruction";
2205
2008
  }
2206
- if (instruction.meta.type === "initializeMultisig") {
2009
+ if (instruction.instructionType === "initializeMultisig") {
2207
2010
  return "SplTokenInitializeMultisigInstruction";
2208
2011
  }
2209
- if (instruction.meta.type === "initializeMultisig2") {
2012
+ if (instruction.instructionType === "initializeMultisig2") {
2210
2013
  return "SplTokenInitializeMultisig2Instruction";
2211
2014
  }
2212
- if (instruction.meta.type === "transfer") {
2015
+ if (instruction.instructionType === "transfer") {
2213
2016
  return "SplTokenTransferInstruction";
2214
2017
  }
2215
- if (instruction.meta.type === "approve") {
2018
+ if (instruction.instructionType === "approve") {
2216
2019
  return "SplTokenApproveInstruction";
2217
2020
  }
2218
- if (instruction.meta.type === "revoke") {
2021
+ if (instruction.instructionType === "revoke") {
2219
2022
  return "SplTokenRevokeInstruction";
2220
2023
  }
2221
- if (instruction.meta.type === "setAuthority") {
2024
+ if (instruction.instructionType === "setAuthority") {
2222
2025
  return "SplTokenSetAuthorityInstruction";
2223
2026
  }
2224
- if (instruction.meta.type === "mintTo") {
2027
+ if (instruction.instructionType === "mintTo") {
2225
2028
  return "SplTokenMintToInstruction";
2226
2029
  }
2227
- if (instruction.meta.type === "burn") {
2030
+ if (instruction.instructionType === "burn") {
2228
2031
  return "SplTokenBurnInstruction";
2229
2032
  }
2230
- if (instruction.meta.type === "closeAccount") {
2033
+ if (instruction.instructionType === "closeAccount") {
2231
2034
  return "SplTokenCloseAccountInstruction";
2232
2035
  }
2233
- if (instruction.meta.type === "freezeAccount") {
2036
+ if (instruction.instructionType === "freezeAccount") {
2234
2037
  return "SplTokenFreezeAccountInstruction";
2235
2038
  }
2236
- if (instruction.meta.type === "thawAccount") {
2039
+ if (instruction.instructionType === "thawAccount") {
2237
2040
  return "SplTokenThawAccountInstruction";
2238
2041
  }
2239
- if (instruction.meta.type === "transferChecked") {
2042
+ if (instruction.instructionType === "transferChecked") {
2240
2043
  return "SplTokenTransferCheckedInstruction";
2241
2044
  }
2242
- if (instruction.meta.type === "approveChecked") {
2045
+ if (instruction.instructionType === "approveChecked") {
2243
2046
  return "SplTokenApproveCheckedInstruction";
2244
2047
  }
2245
- if (instruction.meta.type === "mintToChecked") {
2048
+ if (instruction.instructionType === "mintToChecked") {
2246
2049
  return "SplTokenMintToCheckedInstruction";
2247
2050
  }
2248
- if (instruction.meta.type === "burnChecked") {
2051
+ if (instruction.instructionType === "burnChecked") {
2249
2052
  return "SplTokenBurnCheckedInstruction";
2250
2053
  }
2251
- if (instruction.meta.type === "syncNative") {
2054
+ if (instruction.instructionType === "syncNative") {
2252
2055
  return "SplTokenSyncNativeInstruction";
2253
2056
  }
2254
- if (instruction.meta.type === "getAccountDataSize") {
2057
+ if (instruction.instructionType === "getAccountDataSize") {
2255
2058
  return "SplTokenGetAccountDataSizeInstruction";
2256
2059
  }
2257
- if (instruction.meta.type === "initializeImmutableOwner") {
2060
+ if (instruction.instructionType === "initializeImmutableOwner") {
2258
2061
  return "SplTokenInitializeImmutableOwnerInstruction";
2259
2062
  }
2260
- if (instruction.meta.type === "amountToUiAmount") {
2063
+ if (instruction.instructionType === "amountToUiAmount") {
2261
2064
  return "SplTokenAmountToUiAmountInstruction";
2262
2065
  }
2263
- if (instruction.meta.type === "uiAmountToAmount") {
2066
+ if (instruction.instructionType === "uiAmountToAmount") {
2264
2067
  return "SplTokenUiAmountToAmountInstruction";
2265
2068
  }
2266
- if (instruction.meta.type === "initializeMintCloseAuthority") {
2069
+ if (instruction.instructionType === "initializeMintCloseAuthority") {
2267
2070
  return "SplTokenInitializeMintCloseAuthorityInstruction";
2268
2071
  }
2269
2072
  }
2270
- if (instruction.meta.program === "stake") {
2271
- if (instruction.meta.type === "initialize") {
2073
+ if (instruction.programName === "stake") {
2074
+ if (instruction.instructionType === "initialize") {
2272
2075
  return "StakeInitializeInstruction";
2273
2076
  }
2274
- if (instruction.meta.type === "authorize") {
2077
+ if (instruction.instructionType === "authorize") {
2275
2078
  return "StakeAuthorizeInstruction";
2276
2079
  }
2277
- if (instruction.meta.type === "delegate") {
2080
+ if (instruction.instructionType === "delegate") {
2278
2081
  return "StakeDelegateStakeInstruction";
2279
2082
  }
2280
- if (instruction.meta.type === "split") {
2083
+ if (instruction.instructionType === "split") {
2281
2084
  return "StakeSplitInstruction";
2282
2085
  }
2283
- if (instruction.meta.type === "withdraw") {
2086
+ if (instruction.instructionType === "withdraw") {
2284
2087
  return "StakeWithdrawInstruction";
2285
2088
  }
2286
- if (instruction.meta.type === "deactivate") {
2089
+ if (instruction.instructionType === "deactivate") {
2287
2090
  return "StakeDeactivateInstruction";
2288
2091
  }
2289
- if (instruction.meta.type === "setLockup") {
2092
+ if (instruction.instructionType === "setLockup") {
2290
2093
  return "StakeSetLockupInstruction";
2291
2094
  }
2292
- if (instruction.meta.type === "merge") {
2095
+ if (instruction.instructionType === "merge") {
2293
2096
  return "StakeMergeInstruction";
2294
2097
  }
2295
- if (instruction.meta.type === "authorizeWithSeed") {
2098
+ if (instruction.instructionType === "authorizeWithSeed") {
2296
2099
  return "StakeAuthorizeWithSeedInstruction";
2297
2100
  }
2298
- if (instruction.meta.type === "initializeChecked") {
2101
+ if (instruction.instructionType === "initializeChecked") {
2299
2102
  return "StakeInitializeCheckedInstruction";
2300
2103
  }
2301
- if (instruction.meta.type === "authorizeChecked") {
2104
+ if (instruction.instructionType === "authorizeChecked") {
2302
2105
  return "StakeAuthorizeCheckedInstruction";
2303
2106
  }
2304
- if (instruction.meta.type === "authorizeCheckedWithSeed") {
2107
+ if (instruction.instructionType === "authorizeCheckedWithSeed") {
2305
2108
  return "StakeAuthorizeCheckedWithSeedInstruction";
2306
2109
  }
2307
- if (instruction.meta.type === "setLockupChecked") {
2110
+ if (instruction.instructionType === "setLockupChecked") {
2308
2111
  return "StakeSetLockupCheckedInstruction";
2309
2112
  }
2310
- if (instruction.meta.type === "deactivateDelinquent") {
2113
+ if (instruction.instructionType === "deactivateDelinquent") {
2311
2114
  return "StakeDeactivateDelinquentInstruction";
2312
2115
  }
2313
- if (instruction.meta.type === "redelegate") {
2116
+ if (instruction.instructionType === "redelegate") {
2314
2117
  return "StakeRedelegateInstruction";
2315
2118
  }
2316
2119
  }
2317
- if (instruction.meta.program === "system") {
2318
- if (instruction.meta.type === "createAccount") {
2120
+ if (instruction.programName === "system") {
2121
+ if (instruction.instructionType === "createAccount") {
2319
2122
  return "CreateAccountInstruction";
2320
2123
  }
2321
- if (instruction.meta.type === "assign") {
2124
+ if (instruction.instructionType === "assign") {
2322
2125
  return "AssignInstruction";
2323
2126
  }
2324
- if (instruction.meta.type === "transfer") {
2127
+ if (instruction.instructionType === "transfer") {
2325
2128
  return "TransferInstruction";
2326
2129
  }
2327
- if (instruction.meta.type === "createAccountWithSeed") {
2130
+ if (instruction.instructionType === "createAccountWithSeed") {
2328
2131
  return "CreateAccountWithSeedInstruction";
2329
2132
  }
2330
- if (instruction.meta.type === "advanceNonceAccount") {
2133
+ if (instruction.instructionType === "advanceNonceAccount") {
2331
2134
  return "AdvanceNonceAccountInstruction";
2332
2135
  }
2333
- if (instruction.meta.type === "withdrawNonceAccount") {
2136
+ if (instruction.instructionType === "withdrawNonceAccount") {
2334
2137
  return "WithdrawNonceAccountInstruction";
2335
2138
  }
2336
- if (instruction.meta.type === "initializeNonceAccount") {
2139
+ if (instruction.instructionType === "initializeNonceAccount") {
2337
2140
  return "InitializeNonceAccountInstruction";
2338
2141
  }
2339
- if (instruction.meta.type === "authorizeNonceAccount") {
2142
+ if (instruction.instructionType === "authorizeNonceAccount") {
2340
2143
  return "AuthorizeNonceAccountInstruction";
2341
2144
  }
2342
- if (instruction.meta.type === "upgradeNonceAccount") {
2145
+ if (instruction.instructionType === "upgradeNonceAccount") {
2343
2146
  return "UpgradeNonceAccountInstruction";
2344
2147
  }
2345
- if (instruction.meta.type === "allocate") {
2148
+ if (instruction.instructionType === "allocate") {
2346
2149
  return "AllocateInstruction";
2347
2150
  }
2348
- if (instruction.meta.type === "allocateWithSeed") {
2151
+ if (instruction.instructionType === "allocateWithSeed") {
2349
2152
  return "AllocateWithSeedInstruction";
2350
2153
  }
2351
- if (instruction.meta.type === "assignWithSeed") {
2154
+ if (instruction.instructionType === "assignWithSeed") {
2352
2155
  return "AssignWithSeedInstruction";
2353
2156
  }
2354
- if (instruction.meta.type === "transferWithSeed") {
2157
+ if (instruction.instructionType === "transferWithSeed") {
2355
2158
  return "TransferWithSeedInstruction";
2356
2159
  }
2357
2160
  }
2358
- if (instruction.meta.program === "vote") {
2359
- if (instruction.meta.type === "initialize") {
2161
+ if (instruction.programName === "vote") {
2162
+ if (instruction.instructionType === "initialize") {
2360
2163
  return "VoteInitializeAccountInstruction";
2361
2164
  }
2362
- if (instruction.meta.type === "authorize") {
2165
+ if (instruction.instructionType === "authorize") {
2363
2166
  return "VoteAuthorizeInstruction";
2364
2167
  }
2365
- if (instruction.meta.type === "authorizeWithSeed") {
2168
+ if (instruction.instructionType === "authorizeWithSeed") {
2366
2169
  return "VoteAuthorizeWithSeedInstruction";
2367
2170
  }
2368
- if (instruction.meta.type === "authorizeCheckedWithSeed") {
2171
+ if (instruction.instructionType === "authorizeCheckedWithSeed") {
2369
2172
  return "VoteAuthorizeCheckedWithSeedInstruction";
2370
2173
  }
2371
- if (instruction.meta.type === "vote") {
2174
+ if (instruction.instructionType === "vote") {
2372
2175
  return "VoteVoteInstruction";
2373
2176
  }
2374
- if (instruction.meta.type === "updatevotestate") {
2177
+ if (instruction.instructionType === "updatevotestate") {
2375
2178
  return "VoteUpdateVoteStateInstruction";
2376
2179
  }
2377
- if (instruction.meta.type === "updatevotestateswitch") {
2180
+ if (instruction.instructionType === "updatevotestateswitch") {
2378
2181
  return "VoteUpdateVoteStateSwitchInstruction";
2379
2182
  }
2380
- if (instruction.meta.type === "compactupdatevotestate") {
2183
+ if (instruction.instructionType === "compactupdatevotestate") {
2381
2184
  return "VoteCompactUpdateVoteStateInstruction";
2382
2185
  }
2383
- if (instruction.meta.type === "compactupdatevotestateswitch") {
2186
+ if (instruction.instructionType === "compactupdatevotestateswitch") {
2384
2187
  return "VoteCompactUpdateVoteStateSwitchInstruction";
2385
2188
  }
2386
- if (instruction.meta.type === "withdraw") {
2189
+ if (instruction.instructionType === "withdraw") {
2387
2190
  return "VoteWithdrawInstruction";
2388
2191
  }
2389
- if (instruction.meta.type === "updateValidatorIdentity") {
2192
+ if (instruction.instructionType === "updateValidatorIdentity") {
2390
2193
  return "VoteUpdateValidatorIdentityInstruction";
2391
2194
  }
2392
- if (instruction.meta.type === "updateCommission") {
2195
+ if (instruction.instructionType === "updateCommission") {
2393
2196
  return "VoteUpdateCommissionInstruction";
2394
2197
  }
2395
- if (instruction.meta.type === "voteSwitch") {
2198
+ if (instruction.instructionType === "voteSwitch") {
2396
2199
  return "VoteVoteSwitchInstruction";
2397
2200
  }
2398
- if (instruction.meta.type === "authorizeChecked") {
2201
+ if (instruction.instructionType === "authorizeChecked") {
2399
2202
  return "VoteAuthorizeCheckedInstruction";
2400
2203
  }
2401
2204
  }
@@ -2403,80 +2206,80 @@ var instructionResolvers = {
2403
2206
  return "GenericInstruction";
2404
2207
  }
2405
2208
  },
2406
- CreateLookupTableInstructionData: {
2209
+ CreateLookupTableInstruction: {
2407
2210
  lookupTableAccount: resolveAccount("lookupTableAccount"),
2408
2211
  lookupTableAuthority: resolveAccount("lookupTableAuthority"),
2409
2212
  payerAccount: resolveAccount("payerAccount"),
2410
2213
  systemProgram: resolveAccount("systemProgram")
2411
2214
  },
2412
- ExtendLookupTableInstructionData: {
2215
+ ExtendLookupTableInstruction: {
2413
2216
  lookupTableAccount: resolveAccount("lookupTableAccount"),
2414
2217
  lookupTableAuthority: resolveAccount("lookupTableAuthority"),
2415
2218
  payerAccount: resolveAccount("payerAccount"),
2416
2219
  systemProgram: resolveAccount("systemProgram")
2417
2220
  },
2418
- FreezeLookupTableInstructionData: {
2221
+ FreezeLookupTableInstruction: {
2419
2222
  lookupTableAccount: resolveAccount("lookupTableAccount"),
2420
2223
  lookupTableAuthority: resolveAccount("lookupTableAuthority")
2421
2224
  },
2422
- DeactivateLookupTableInstructionData: {
2225
+ DeactivateLookupTableInstruction: {
2423
2226
  lookupTableAccount: resolveAccount("lookupTableAccount"),
2424
2227
  lookupTableAuthority: resolveAccount("lookupTableAuthority")
2425
2228
  },
2426
- CloseLookupTableInstructionData: {
2229
+ CloseLookupTableInstruction: {
2427
2230
  lookupTableAccount: resolveAccount("lookupTableAccount"),
2428
2231
  lookupTableAuthority: resolveAccount("lookupTableAuthority"),
2429
2232
  recipient: resolveAccount("recipient")
2430
2233
  },
2431
- BpfLoaderWriteInstructionData: {
2234
+ BpfLoaderWriteInstruction: {
2432
2235
  account: resolveAccount("account")
2433
2236
  },
2434
- BpfLoaderFinalizeInstructionData: {
2237
+ BpfLoaderFinalizeInstruction: {
2435
2238
  account: resolveAccount("account")
2436
2239
  },
2437
- BpfUpgradeableLoaderInitializeBufferInstructionData: {
2240
+ BpfUpgradeableLoaderInitializeBufferInstruction: {
2438
2241
  account: resolveAccount("account")
2439
2242
  },
2440
- BpfUpgradeableLoaderWriteInstructionData: {
2243
+ BpfUpgradeableLoaderWriteInstruction: {
2441
2244
  account: resolveAccount("account"),
2442
2245
  authority: resolveAccount("authority")
2443
2246
  },
2444
- BpfUpgradeableLoaderDeployWithMaxDataLenInstructionData: {
2247
+ BpfUpgradeableLoaderDeployWithMaxDataLenInstruction: {
2445
2248
  authority: resolveAccount("authority"),
2446
2249
  bufferAccount: resolveAccount("bufferAccount"),
2447
2250
  payerAccount: resolveAccount("payerAccount"),
2448
2251
  programAccount: resolveAccount("programAccount"),
2449
2252
  programDataAccount: resolveAccount("programDataAccount")
2450
2253
  },
2451
- BpfUpgradeableLoaderUpgradeInstructionData: {
2254
+ BpfUpgradeableLoaderUpgradeInstruction: {
2452
2255
  authority: resolveAccount("authority"),
2453
2256
  bufferAccount: resolveAccount("bufferAccount"),
2454
2257
  programAccount: resolveAccount("programAccount"),
2455
2258
  programDataAccount: resolveAccount("programDataAccount")
2456
2259
  },
2457
- BpfUpgradeableLoaderSetAuthorityInstructionData: {
2260
+ BpfUpgradeableLoaderSetAuthorityInstruction: {
2458
2261
  account: resolveAccount("account"),
2459
2262
  authority: resolveAccount("authority"),
2460
2263
  newAuthority: resolveAccount("newAuthority")
2461
2264
  },
2462
- BpfUpgradeableLoaderSetAuthorityCheckedInstructionData: {
2265
+ BpfUpgradeableLoaderSetAuthorityCheckedInstruction: {
2463
2266
  account: resolveAccount("account"),
2464
2267
  authority: resolveAccount("authority"),
2465
2268
  newAuthority: resolveAccount("newAuthority")
2466
2269
  },
2467
- BpfUpgradeableLoaderCloseInstructionData: {
2270
+ BpfUpgradeableLoaderCloseInstruction: {
2468
2271
  account: resolveAccount("account"),
2469
2272
  authority: resolveAccount("authority"),
2470
2273
  programAccount: resolveAccount("programAccount"),
2471
2274
  recipient: resolveAccount("recipient")
2472
2275
  },
2473
- BpfUpgradeableLoaderExtendProgramInstructionData: {
2276
+ BpfUpgradeableLoaderExtendProgramInstruction: {
2474
2277
  payerAccount: resolveAccount("payerAccount"),
2475
2278
  programAccount: resolveAccount("programAccount"),
2476
2279
  programDataAccount: resolveAccount("programDataAccount"),
2477
2280
  systemProgram: resolveAccount("systemProgram")
2478
2281
  },
2479
- SplAssociatedTokenCreateInstructionData: {
2282
+ SplAssociatedTokenCreateInstruction: {
2480
2283
  account: resolveAccount("account"),
2481
2284
  mint: resolveAccount("mint"),
2482
2285
  source: resolveAccount("source"),
@@ -2484,7 +2287,7 @@ var instructionResolvers = {
2484
2287
  tokenProgram: resolveAccount("tokenProgram"),
2485
2288
  wallet: resolveAccount("wallet")
2486
2289
  },
2487
- SplAssociatedTokenCreateIdempotentInstructionData: {
2290
+ SplAssociatedTokenCreateIdempotentInstruction: {
2488
2291
  account: resolveAccount("account"),
2489
2292
  mint: resolveAccount("mint"),
2490
2293
  source: resolveAccount("source"),
@@ -2492,7 +2295,7 @@ var instructionResolvers = {
2492
2295
  tokenProgram: resolveAccount("tokenProgram"),
2493
2296
  wallet: resolveAccount("wallet")
2494
2297
  },
2495
- SplAssociatedTokenRecoverNestedInstructionData: {
2298
+ SplAssociatedTokenRecoverNestedInstruction: {
2496
2299
  destination: resolveAccount("destination"),
2497
2300
  nestedMint: resolveAccount("nestedMint"),
2498
2301
  nestedOwner: resolveAccount("nestedOwner"),
@@ -2501,130 +2304,130 @@ var instructionResolvers = {
2501
2304
  tokenProgram: resolveAccount("tokenProgram"),
2502
2305
  wallet: resolveAccount("wallet")
2503
2306
  },
2504
- SplTokenInitializeMintInstructionData: {
2307
+ SplTokenInitializeMintInstruction: {
2505
2308
  freezeAuthority: resolveAccount("freezeAuthority"),
2506
2309
  mint: resolveAccount("mint"),
2507
2310
  mintAuthority: resolveAccount("mintAuthority")
2508
2311
  },
2509
- SplTokenInitializeMint2InstructionData: {
2312
+ SplTokenInitializeMint2Instruction: {
2510
2313
  freezeAuthority: resolveAccount("freezeAuthority"),
2511
2314
  mint: resolveAccount("mint"),
2512
2315
  mintAuthority: resolveAccount("mintAuthority")
2513
2316
  },
2514
- SplTokenInitializeAccountInstructionData: {
2317
+ SplTokenInitializeAccountInstruction: {
2515
2318
  account: resolveAccount("account"),
2516
2319
  mint: resolveAccount("mint"),
2517
2320
  owner: resolveAccount("owner")
2518
2321
  },
2519
- SplTokenInitializeAccount2InstructionData: {
2322
+ SplTokenInitializeAccount2Instruction: {
2520
2323
  account: resolveAccount("account"),
2521
2324
  mint: resolveAccount("mint"),
2522
2325
  owner: resolveAccount("owner")
2523
2326
  },
2524
- SplTokenInitializeAccount3InstructionData: {
2327
+ SplTokenInitializeAccount3Instruction: {
2525
2328
  account: resolveAccount("account"),
2526
2329
  mint: resolveAccount("mint"),
2527
2330
  owner: resolveAccount("owner")
2528
2331
  },
2529
- SplTokenInitializeMultisigInstructionData: {
2332
+ SplTokenInitializeMultisigInstruction: {
2530
2333
  multisig: resolveAccount("multisig")
2531
2334
  },
2532
- SplTokenInitializeMultisig2InstructionData: {
2335
+ SplTokenInitializeMultisig2Instruction: {
2533
2336
  multisig: resolveAccount("multisig")
2534
2337
  },
2535
- SplTokenTransferInstructionData: {
2338
+ SplTokenTransferInstruction: {
2536
2339
  authority: resolveAccount("authority"),
2537
2340
  destination: resolveAccount("destination"),
2538
2341
  multisigAuthority: resolveAccount("multisigAuthority"),
2539
2342
  source: resolveAccount("source")
2540
2343
  },
2541
- SplTokenApproveInstructionData: {
2344
+ SplTokenApproveInstruction: {
2542
2345
  delegate: resolveAccount("delegate"),
2543
2346
  multisigOwner: resolveAccount("multisigOwner"),
2544
2347
  owner: resolveAccount("owner"),
2545
2348
  source: resolveAccount("source")
2546
2349
  },
2547
- SplTokenRevokeInstructionData: {
2350
+ SplTokenRevokeInstruction: {
2548
2351
  multisigOwner: resolveAccount("multisigOwner"),
2549
2352
  owner: resolveAccount("owner"),
2550
2353
  source: resolveAccount("source")
2551
2354
  },
2552
- SplTokenSetAuthorityInstructionData: {
2355
+ SplTokenSetAuthorityInstruction: {
2553
2356
  authority: resolveAccount("authority"),
2554
2357
  multisigAuthority: resolveAccount("multisigAuthority"),
2555
2358
  newAuthority: resolveAccount("newAuthority")
2556
2359
  },
2557
- SplTokenMintToInstructionData: {
2360
+ SplTokenMintToInstruction: {
2558
2361
  account: resolveAccount("account"),
2559
2362
  authority: resolveAccount("authority"),
2560
2363
  mint: resolveAccount("mint"),
2561
2364
  mintAuthority: resolveAccount("mintAuthority"),
2562
2365
  multisigMintAuthority: resolveAccount("multisigMintAuthority")
2563
2366
  },
2564
- SplTokenBurnInstructionData: {
2367
+ SplTokenBurnInstruction: {
2565
2368
  account: resolveAccount("account"),
2566
2369
  authority: resolveAccount("authority"),
2567
2370
  mint: resolveAccount("mint"),
2568
2371
  multisigAuthority: resolveAccount("multisigAuthority")
2569
2372
  },
2570
- SplTokenCloseAccountInstructionData: {
2373
+ SplTokenCloseAccountInstruction: {
2571
2374
  account: resolveAccount("account"),
2572
2375
  destination: resolveAccount("destination"),
2573
2376
  multisigOwner: resolveAccount("multisigOwner"),
2574
2377
  owner: resolveAccount("owner")
2575
2378
  },
2576
- SplTokenFreezeAccountInstructionData: {
2379
+ SplTokenFreezeAccountInstruction: {
2577
2380
  account: resolveAccount("account"),
2578
2381
  freezeAuthority: resolveAccount("freezeAuthority"),
2579
2382
  mint: resolveAccount("mint"),
2580
2383
  multisigFreezeAuthority: resolveAccount("multisigFreezeAuthority")
2581
2384
  },
2582
- SplTokenThawAccountInstructionData: {
2385
+ SplTokenThawAccountInstruction: {
2583
2386
  account: resolveAccount("account"),
2584
2387
  freezeAuthority: resolveAccount("freezeAuthority"),
2585
2388
  mint: resolveAccount("mint"),
2586
2389
  multisigFreezeAuthority: resolveAccount("multisigFreezeAuthority")
2587
2390
  },
2588
- SplTokenTransferCheckedInstructionData: {
2391
+ SplTokenTransferCheckedInstruction: {
2589
2392
  authority: resolveAccount("authority"),
2590
2393
  destination: resolveAccount("destination"),
2591
2394
  mint: resolveAccount("mint"),
2592
2395
  multisigAuthority: resolveAccount("multisigAuthority"),
2593
2396
  source: resolveAccount("source")
2594
2397
  },
2595
- SplTokenApproveCheckedInstructionData: {
2398
+ SplTokenApproveCheckedInstruction: {
2596
2399
  delegate: resolveAccount("delegate"),
2597
2400
  mint: resolveAccount("mint"),
2598
2401
  multisigOwner: resolveAccount("multisigOwner"),
2599
2402
  owner: resolveAccount("owner"),
2600
2403
  source: resolveAccount("source")
2601
2404
  },
2602
- SplTokenMintToCheckedInstructionData: {
2405
+ SplTokenMintToCheckedInstruction: {
2603
2406
  account: resolveAccount("account"),
2604
2407
  authority: resolveAccount("authority"),
2605
2408
  mint: resolveAccount("mint"),
2606
2409
  mintAuthority: resolveAccount("mintAuthority"),
2607
2410
  multisigMintAuthority: resolveAccount("multisigMintAuthority")
2608
2411
  },
2609
- SplTokenBurnCheckedInstructionData: {
2412
+ SplTokenBurnCheckedInstruction: {
2610
2413
  account: resolveAccount("account"),
2611
2414
  authority: resolveAccount("authority"),
2612
2415
  mint: resolveAccount("mint"),
2613
2416
  multisigAuthority: resolveAccount("multisigAuthority")
2614
2417
  },
2615
- SplTokenSyncNativeInstructionData: {
2418
+ SplTokenSyncNativeInstruction: {
2616
2419
  account: resolveAccount("account")
2617
2420
  },
2618
- SplTokenGetAccountDataSizeInstructionData: {
2421
+ SplTokenGetAccountDataSizeInstruction: {
2619
2422
  mint: resolveAccount("mint")
2620
2423
  },
2621
- SplTokenAmountToUiAmountInstructionData: {
2424
+ SplTokenAmountToUiAmountInstruction: {
2622
2425
  mint: resolveAccount("mint")
2623
2426
  },
2624
- SplTokenUiAmountToAmountInstructionData: {
2427
+ SplTokenUiAmountToAmountInstruction: {
2625
2428
  mint: resolveAccount("mint")
2626
2429
  },
2627
- SplTokenInitializeMintCloseAuthorityInstructionData: {
2430
+ SplTokenInitializeMintCloseAuthorityInstruction: {
2628
2431
  mint: resolveAccount("mint"),
2629
2432
  newAuthority: resolveAccount("newAuthority")
2630
2433
  },
@@ -2635,45 +2438,45 @@ var instructionResolvers = {
2635
2438
  staker: resolveAccount("staker"),
2636
2439
  withdrawer: resolveAccount("withdrawer")
2637
2440
  },
2638
- StakeInitializeInstructionData: {
2441
+ StakeInitializeInstruction: {
2639
2442
  stakeAccount: resolveAccount("stakeAccount")
2640
2443
  },
2641
- StakeAuthorizeInstructionData: {
2444
+ StakeAuthorizeInstruction: {
2642
2445
  authority: resolveAccount("authority"),
2643
2446
  custodian: resolveAccount("custodian"),
2644
2447
  newAuthority: resolveAccount("newAuthority"),
2645
2448
  stakeAccount: resolveAccount("stakeAccount")
2646
2449
  },
2647
- StakeDelegateStakeInstructionData: {
2450
+ StakeDelegateStakeInstruction: {
2648
2451
  stakeAccount: resolveAccount("stakeAccount"),
2649
2452
  stakeAuthority: resolveAccount("stakeAuthority"),
2650
2453
  stakeConfigAccount: resolveAccount("stakeConfigAccount"),
2651
2454
  voteAccount: resolveAccount("voteAccount")
2652
2455
  },
2653
- StakeSplitInstructionData: {
2456
+ StakeSplitInstruction: {
2654
2457
  newSplitAccount: resolveAccount("newSplitAccount"),
2655
2458
  stakeAccount: resolveAccount("stakeAccount"),
2656
2459
  stakeAuthority: resolveAccount("stakeAuthority")
2657
2460
  },
2658
- StakeWithdrawInstructionData: {
2461
+ StakeWithdrawInstruction: {
2659
2462
  destination: resolveAccount("destination"),
2660
2463
  stakeAccount: resolveAccount("stakeAccount"),
2661
2464
  withdrawAuthority: resolveAccount("withdrawAuthority")
2662
2465
  },
2663
- StakeDeactivateInstructionData: {
2466
+ StakeDeactivateInstruction: {
2664
2467
  stakeAccount: resolveAccount("stakeAccount"),
2665
2468
  stakeAuthority: resolveAccount("stakeAuthority")
2666
2469
  },
2667
- StakeSetLockupInstructionData: {
2470
+ StakeSetLockupInstruction: {
2668
2471
  custodian: resolveAccount("custodian"),
2669
2472
  stakeAccount: resolveAccount("stakeAccount")
2670
2473
  },
2671
- StakeMergeInstructionData: {
2474
+ StakeMergeInstruction: {
2672
2475
  destination: resolveAccount("destination"),
2673
2476
  source: resolveAccount("source"),
2674
2477
  stakeAuthority: resolveAccount("stakeAuthority")
2675
2478
  },
2676
- StakeAuthorizeWithSeedInstructionData: {
2479
+ StakeAuthorizeWithSeedInstruction: {
2677
2480
  authorityBase: resolveAccount("authorityBase"),
2678
2481
  authorityOwner: resolveAccount("authorityOwner"),
2679
2482
  custodian: resolveAccount("custodian"),
@@ -2681,154 +2484,153 @@ var instructionResolvers = {
2681
2484
  stakeAccount: resolveAccount("stakeAccount")
2682
2485
  },
2683
2486
  StakeInitializeCheckedInstructionDataAuthorized: {
2684
- stakeAccount: resolveAccount("stakeAccount"),
2685
2487
  staker: resolveAccount("staker"),
2686
2488
  withdrawer: resolveAccount("withdrawer")
2687
2489
  },
2688
- StakeAuthorizeCheckedInstructionData: {
2490
+ StakeAuthorizeCheckedInstruction: {
2689
2491
  authority: resolveAccount("authority"),
2690
2492
  custodian: resolveAccount("custodian"),
2691
2493
  newAuthority: resolveAccount("newAuthority"),
2692
2494
  stakeAccount: resolveAccount("stakeAccount")
2693
2495
  },
2694
- StakeAuthorizeCheckedWithSeedInstructionData: {
2496
+ StakeAuthorizeCheckedWithSeedInstruction: {
2695
2497
  authorityBase: resolveAccount("authorityBase"),
2696
2498
  authorityOwner: resolveAccount("authorityOwner"),
2697
2499
  custodian: resolveAccount("custodian"),
2698
2500
  newAuthorized: resolveAccount("newAuthorized"),
2699
2501
  stakeAccount: resolveAccount("stakeAccount")
2700
2502
  },
2701
- StakeSetLockupCheckedInstructionData: {
2503
+ StakeSetLockupCheckedInstruction: {
2702
2504
  custodian: resolveAccount("custodian"),
2703
2505
  stakeAccount: resolveAccount("stakeAccount")
2704
2506
  },
2705
- StakeDeactivateDelinquentInstructionData: {
2507
+ StakeDeactivateDelinquentInstruction: {
2706
2508
  referenceVoteAccount: resolveAccount("referenceVoteAccount"),
2707
2509
  stakeAccount: resolveAccount("stakeAccount"),
2708
2510
  voteAccount: resolveAccount("voteAccount")
2709
2511
  },
2710
- StakeRedelegateInstructionData: {
2512
+ StakeRedelegateInstruction: {
2711
2513
  newStakeAccount: resolveAccount("newStakeAccount"),
2712
2514
  stakeAccount: resolveAccount("stakeAccount"),
2713
2515
  stakeAuthority: resolveAccount("stakeAuthority"),
2714
2516
  stakeConfigAccount: resolveAccount("stakeConfigAccount"),
2715
2517
  voteAccount: resolveAccount("voteAccount")
2716
2518
  },
2717
- CreateAccountInstructionData: {
2519
+ CreateAccountInstruction: {
2718
2520
  newAccount: resolveAccount("newAccount"),
2719
2521
  owner: resolveAccount("owner"),
2720
2522
  source: resolveAccount("source")
2721
2523
  },
2722
- AssignInstructionData: {
2524
+ AssignInstruction: {
2723
2525
  account: resolveAccount("account"),
2724
2526
  owner: resolveAccount("owner")
2725
2527
  },
2726
- TransferInstructionData: {
2528
+ TransferInstruction: {
2727
2529
  destination: resolveAccount("destination"),
2728
2530
  source: resolveAccount("source")
2729
2531
  },
2730
- CreateAccountWithSeedInstructionData: {
2532
+ CreateAccountWithSeedInstruction: {
2731
2533
  base: resolveAccount("base"),
2732
2534
  owner: resolveAccount("owner"),
2733
2535
  seed: resolveAccount("seed")
2734
2536
  },
2735
- AdvanceNonceAccountInstructionData: {
2537
+ AdvanceNonceAccountInstruction: {
2736
2538
  nonceAccount: resolveAccount("nonceAccount"),
2737
2539
  nonceAuthority: resolveAccount("nonceAuthority")
2738
2540
  },
2739
- WithdrawNonceAccountInstructionData: {
2541
+ WithdrawNonceAccountInstruction: {
2740
2542
  destination: resolveAccount("destination"),
2741
2543
  nonceAccount: resolveAccount("nonceAccount"),
2742
2544
  nonceAuthority: resolveAccount("nonceAuthority")
2743
2545
  },
2744
- InitializeNonceAccountInstructionData: {
2546
+ InitializeNonceAccountInstruction: {
2745
2547
  nonceAccount: resolveAccount("nonceAccount"),
2746
2548
  nonceAuthority: resolveAccount("nonceAuthority")
2747
2549
  },
2748
- AuthorizeNonceAccountInstructionData: {
2550
+ AuthorizeNonceAccountInstruction: {
2749
2551
  newAuthorized: resolveAccount("newAuthorized"),
2750
2552
  nonceAccount: resolveAccount("nonceAccount"),
2751
2553
  nonceAuthority: resolveAccount("nonceAuthority")
2752
2554
  },
2753
- UpgradeNonceAccountInstructionData: {
2555
+ UpgradeNonceAccountInstruction: {
2754
2556
  nonceAccount: resolveAccount("nonceAccount"),
2755
2557
  nonceAuthority: resolveAccount("nonceAuthority")
2756
2558
  },
2757
- AllocateInstructionData: {
2559
+ AllocateInstruction: {
2758
2560
  account: resolveAccount("account")
2759
2561
  },
2760
- AllocateWithSeedInstructionData: {
2562
+ AllocateWithSeedInstruction: {
2761
2563
  account: resolveAccount("account"),
2762
2564
  owner: resolveAccount("owner")
2763
2565
  },
2764
- AssignWithSeedInstructionData: {
2566
+ AssignWithSeedInstruction: {
2765
2567
  account: resolveAccount("account"),
2766
2568
  owner: resolveAccount("owner")
2767
2569
  },
2768
- TransferWithSeedInstructionData: {
2570
+ TransferWithSeedInstruction: {
2769
2571
  destination: resolveAccount("destination"),
2770
2572
  source: resolveAccount("source"),
2771
2573
  sourceOwner: resolveAccount("sourceOwner")
2772
2574
  },
2773
- VoteInitializeAccountInstructionData: {
2575
+ VoteInitializeAccountInstruction: {
2774
2576
  authorizedVoter: resolveAccount("authorizedVoter"),
2775
2577
  authorizedWithdrawer: resolveAccount("authorizedWithdrawer"),
2776
2578
  node: resolveAccount("node"),
2777
2579
  voteAccount: resolveAccount("voteAccount")
2778
2580
  },
2779
- VoteAuthorizeInstructionData: {
2581
+ VoteAuthorizeInstruction: {
2780
2582
  authority: resolveAccount("authority"),
2781
2583
  newAuthority: resolveAccount("newAuthority"),
2782
2584
  voteAccount: resolveAccount("voteAccount")
2783
2585
  },
2784
- VoteAuthorizeWithSeedInstructionData: {
2586
+ VoteAuthorizeWithSeedInstruction: {
2785
2587
  authorityOwner: resolveAccount("authorityOwner"),
2786
2588
  newAuthority: resolveAccount("newAuthority"),
2787
2589
  voteAccount: resolveAccount("voteAccount")
2788
2590
  },
2789
- VoteAuthorizeCheckedWithSeedInstructionData: {
2591
+ VoteAuthorizeCheckedWithSeedInstruction: {
2790
2592
  authorityOwner: resolveAccount("authorityOwner"),
2791
2593
  newAuthority: resolveAccount("newAuthority"),
2792
2594
  voteAccount: resolveAccount("voteAccount")
2793
2595
  },
2794
- VoteVoteInstructionData: {
2596
+ VoteVoteInstruction: {
2795
2597
  voteAccount: resolveAccount("voteAccount"),
2796
2598
  voteAuthority: resolveAccount("voteAuthority")
2797
2599
  },
2798
- VoteUpdateVoteStateInstructionData: {
2600
+ VoteUpdateVoteStateInstruction: {
2799
2601
  voteAccount: resolveAccount("voteAccount"),
2800
2602
  voteAuthority: resolveAccount("voteAuthority")
2801
2603
  },
2802
- VoteUpdateVoteStateSwitchInstructionData: {
2604
+ VoteUpdateVoteStateSwitchInstruction: {
2803
2605
  voteAccount: resolveAccount("voteAccount"),
2804
2606
  voteAuthority: resolveAccount("voteAuthority")
2805
2607
  },
2806
- VoteCompactUpdateVoteStateInstructionData: {
2608
+ VoteCompactUpdateVoteStateInstruction: {
2807
2609
  voteAccount: resolveAccount("voteAccount"),
2808
2610
  voteAuthority: resolveAccount("voteAuthority")
2809
2611
  },
2810
- VoteCompactUpdateVoteStateSwitchInstructionData: {
2612
+ VoteCompactUpdateVoteStateSwitchInstruction: {
2811
2613
  voteAccount: resolveAccount("voteAccount"),
2812
2614
  voteAuthority: resolveAccount("voteAuthority")
2813
2615
  },
2814
- VoteWithdrawInstructionData: {
2616
+ VoteWithdrawInstruction: {
2815
2617
  voteAccount: resolveAccount("voteAccount"),
2816
2618
  withdrawAuthority: resolveAccount("withdrawAuthority")
2817
2619
  },
2818
- VoteUpdateValidatorIdentityInstructionData: {
2620
+ VoteUpdateValidatorIdentityInstruction: {
2819
2621
  newValidatorIdentity: resolveAccount("newValidatorIdentity"),
2820
2622
  voteAccount: resolveAccount("voteAccount"),
2821
2623
  withdrawAuthority: resolveAccount("withdrawAuthority")
2822
2624
  },
2823
- VoteUpdateCommissionInstructionData: {
2625
+ VoteUpdateCommissionInstruction: {
2824
2626
  voteAccount: resolveAccount("voteAccount"),
2825
2627
  withdrawAuthority: resolveAccount("withdrawAuthority")
2826
2628
  },
2827
- VoteVoteSwitchInstructionData: {
2629
+ VoteVoteSwitchInstruction: {
2828
2630
  voteAccount: resolveAccount("voteAccount"),
2829
2631
  voteAuthority: resolveAccount("voteAuthority")
2830
2632
  },
2831
- VoteAuthorizeCheckedInstructionData: {
2633
+ VoteAuthorizeCheckedInstruction: {
2832
2634
  authority: resolveAccount("authority"),
2833
2635
  newAuthority: resolveAccount("newAuthority"),
2834
2636
  voteAccount: resolveAccount("voteAccount")
@@ -2900,44 +2702,48 @@ var transactionTypeDefs = (
2900
2702
  recentBlockhash: String
2901
2703
  }
2902
2704
 
2903
- # Transaction interface
2705
+ """
2706
+ Transaction interface
2707
+ """
2904
2708
  interface Transaction {
2905
- blockTime: String
2906
- encoding: TransactionEncoding
2709
+ blockTime: BigInt
2907
2710
  meta: TransactionMeta
2908
2711
  slot: BigInt
2909
2712
  version: String
2910
2713
  }
2911
2714
 
2912
- # A transaction with base58 encoded data
2715
+ """
2716
+ A transaction with base58 encoded data
2717
+ """
2913
2718
  type TransactionBase58 implements Transaction {
2914
- blockTime: String
2719
+ blockTime: BigInt
2915
2720
  data: Base58EncodedBytes
2916
- encoding: TransactionEncoding
2917
2721
  meta: TransactionMeta
2918
2722
  slot: BigInt
2919
2723
  version: String
2920
2724
  }
2921
2725
 
2922
- # A transaction with base64 encoded data
2726
+ """
2727
+ A transaction with base64 encoded data
2728
+ """
2923
2729
  type TransactionBase64 implements Transaction {
2924
- blockTime: String
2730
+ blockTime: BigInt
2925
2731
  data: Base64EncodedBytes
2926
- encoding: TransactionEncoding
2927
2732
  meta: TransactionMeta
2928
2733
  slot: BigInt
2929
2734
  version: String
2930
2735
  }
2931
2736
 
2932
- # A transaction with JSON encoded data
2737
+ """
2738
+ A transaction with JSON encoded data
2739
+ """
2933
2740
  type TransactionDataParsed {
2934
2741
  message: TransactionMessage
2935
2742
  signatures: [String]
2936
2743
  }
2937
2744
  type TransactionParsed implements Transaction {
2938
- blockTime: String
2745
+ blockTime: BigInt
2939
2746
  data: TransactionDataParsed
2940
- encoding: TransactionEncoding
2941
2747
  meta: TransactionMeta
2942
2748
  slot: BigInt
2943
2749
  version: String