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