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