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