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