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