@bounded-sh/core 0.0.63 → 0.0.65
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/client/functions.d.ts +8 -0
- package/dist/client/solana-operations.d.ts +0 -1
- package/dist/{index-BQ6e4MeP.mjs → index-BNOU00XY.mjs} +3243 -3262
- package/dist/index-BNOU00XY.mjs.map +1 -0
- package/dist/{index-BIdD2yUB.js → index-C8ocsC_W.js} +3242 -3263
- package/dist/index-C8ocsC_W.js.map +1 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{realtime-store-Bz4Ob6K6.js → realtime-store-I_bcryPz.js} +2 -3
- package/dist/{realtime-store-Bz4Ob6K6.js.map → realtime-store-I_bcryPz.js.map} +1 -1
- package/dist/{realtime-store-DKngqviG.mjs → realtime-store-mzFJ8bHE.mjs} +2 -3
- package/dist/{realtime-store-DKngqviG.mjs.map → realtime-store-mzFJ8bHE.mjs.map} +1 -1
- package/dist/{solana-message-B0NoE4nC.js → solana-message-D_CN0H6r.js} +10 -8
- package/dist/solana-message-D_CN0H6r.js.map +1 -0
- package/dist/{solana-message-QUfJi1Qm.mjs → solana-message-VZBGvV0S.mjs} +10 -8
- package/dist/solana-message-VZBGvV0S.mjs.map +1 -0
- package/dist/{solana-operations-B2Oy9T7D.mjs → solana-operations-BlCYbdiN.mjs} +11 -75
- package/dist/solana-operations-BlCYbdiN.mjs.map +1 -0
- package/dist/{solana-operations-ngqIkN9W.js → solana-operations-CYpu6EU8.js} +10 -75
- package/dist/solana-operations-CYpu6EU8.js.map +1 -0
- package/dist/utils/auth-api.d.ts +15 -2
- package/dist/utils/rn-session-manager.d.ts +57 -7
- package/dist/utils/server-session-manager.d.ts +6 -1
- package/dist/utils/sol/sol-accessors.d.ts +0 -27
- package/dist/utils/sol/solana-message.d.ts +1 -1
- package/package.json +2 -2
- package/dist/index-BIdD2yUB.js.map +0 -1
- package/dist/index-BQ6e4MeP.mjs.map +0 -1
- package/dist/sol-utils-Cwxyl2h6.js +0 -232
- package/dist/sol-utils-Cwxyl2h6.js.map +0 -1
- package/dist/sol-utils-DVjPeoMy.mjs +0 -229
- package/dist/sol-utils-DVjPeoMy.mjs.map +0 -1
- package/dist/solana-message-B0NoE4nC.js.map +0 -1
- package/dist/solana-message-QUfJi1Qm.mjs.map +0 -1
- package/dist/solana-operations-B2Oy9T7D.mjs.map +0 -1
- package/dist/solana-operations-ngqIkN9W.js.map +0 -1
- package/dist/utils/sol/openTv7fbpYSseNHYmCZFZ1CZgj4r8D9fKNgEz1qo6FDevnet-program.d.ts +0 -2906
- package/dist/utils/sol/openTv7fbpYSseNHYmCZFZ1CZgj4r8D9fKNgEz1qo6FMainnet-program.d.ts +0 -2906
- package/dist/utils/sol/sol-utils.d.ts +0 -34
|
@@ -1,2906 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Program IDL in camelCase format in order to be used in JS/TS.
|
|
3
|
-
*
|
|
4
|
-
* Note that this is only a type helper and is not the actual IDL. The original
|
|
5
|
-
* IDL can be found at `target/idl/tarobase.json`.
|
|
6
|
-
*/
|
|
7
|
-
export type Tarobase = {
|
|
8
|
-
"address": "openTv7fbpYSseNHYmCZFZ1CZgj4r8D9fKNgEz1qo6F";
|
|
9
|
-
"metadata": {
|
|
10
|
-
"name": "tarobase";
|
|
11
|
-
"version": "0.1.0";
|
|
12
|
-
"spec": "0.1.0";
|
|
13
|
-
"description": "Created with Anchor";
|
|
14
|
-
};
|
|
15
|
-
"instructions": [
|
|
16
|
-
{
|
|
17
|
-
"name": "activateGovernedDelete";
|
|
18
|
-
"discriminator": [
|
|
19
|
-
66,
|
|
20
|
-
119,
|
|
21
|
-
165,
|
|
22
|
-
115,
|
|
23
|
-
241,
|
|
24
|
-
153,
|
|
25
|
-
94,
|
|
26
|
-
255
|
|
27
|
-
];
|
|
28
|
-
"accounts": [
|
|
29
|
-
{
|
|
30
|
-
"name": "governance";
|
|
31
|
-
"writable": true;
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"name": "session";
|
|
35
|
-
"writable": true;
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"name": "stage";
|
|
39
|
-
"writable": true;
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"name": "genericPathExecutionData";
|
|
43
|
-
"docs": [
|
|
44
|
-
"observe the system-owned empty account and return without double effect."
|
|
45
|
-
];
|
|
46
|
-
"writable": true;
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"name": "admin";
|
|
50
|
-
"writable": true;
|
|
51
|
-
"signer": true;
|
|
52
|
-
}
|
|
53
|
-
];
|
|
54
|
-
"args": [
|
|
55
|
-
{
|
|
56
|
-
"name": "appId";
|
|
57
|
-
"type": "string";
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"name": "nonce";
|
|
61
|
-
"type": "u64";
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "operationIndex";
|
|
65
|
-
"type": "u16";
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"name": "genericPath";
|
|
69
|
-
"type": "string";
|
|
70
|
-
}
|
|
71
|
-
];
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"name": "activateGovernedPath";
|
|
75
|
-
"discriminator": [
|
|
76
|
-
13,
|
|
77
|
-
43,
|
|
78
|
-
208,
|
|
79
|
-
179,
|
|
80
|
-
183,
|
|
81
|
-
159,
|
|
82
|
-
117,
|
|
83
|
-
137
|
|
84
|
-
];
|
|
85
|
-
"accounts": [
|
|
86
|
-
{
|
|
87
|
-
"name": "governance";
|
|
88
|
-
"writable": true;
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"name": "session";
|
|
92
|
-
"writable": true;
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"name": "stage";
|
|
96
|
-
"writable": true;
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"name": "genericPathExecutionData";
|
|
100
|
-
"writable": true;
|
|
101
|
-
}
|
|
102
|
-
];
|
|
103
|
-
"args": [
|
|
104
|
-
{
|
|
105
|
-
"name": "appId";
|
|
106
|
-
"type": "string";
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"name": "nonce";
|
|
110
|
-
"type": "u64";
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"name": "operationIndex";
|
|
114
|
-
"type": "u16";
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"name": "genericPath";
|
|
118
|
-
"type": "string";
|
|
119
|
-
}
|
|
120
|
-
];
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"name": "appendBytecodeChunk";
|
|
124
|
-
"docs": [
|
|
125
|
-
"Appends a chunk of bytecode to the bytecode stream for a generic path in a Tarobase app.",
|
|
126
|
-
"",
|
|
127
|
-
"This instruction appends a chunk of bytecode to the bytecode stream for a specific",
|
|
128
|
-
"generic path within an application. It is used to append the bytecode for the rules and hooks for a path.",
|
|
129
|
-
"Since the bytecode can be large, we need to stream it in chunks. A new stream should wipe any existing bytecode for the path + rule/hook combo.",
|
|
130
|
-
"Only the admin can begin a new stream. It should also handle account size and rent. Refund the leftover lamports to the admin.",
|
|
131
|
-
"",
|
|
132
|
-
"# Arguments",
|
|
133
|
-
"* `ctx` - The context containing all accounts needed for this instruction",
|
|
134
|
-
"* `app_id` - The identifier of the Tarobase application",
|
|
135
|
-
"* `generic_path` - The generic path within the app for which to append the bytecode chunk",
|
|
136
|
-
"* `chunk` - The chunk of bytecode to append"
|
|
137
|
-
];
|
|
138
|
-
"discriminator": [
|
|
139
|
-
20,
|
|
140
|
-
225,
|
|
141
|
-
119,
|
|
142
|
-
78,
|
|
143
|
-
123,
|
|
144
|
-
221,
|
|
145
|
-
35,
|
|
146
|
-
113
|
|
147
|
-
];
|
|
148
|
-
"accounts": [
|
|
149
|
-
{
|
|
150
|
-
"name": "genericPathExecutionData";
|
|
151
|
-
"writable": true;
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
"name": "admin";
|
|
155
|
-
"writable": true;
|
|
156
|
-
"signer": true;
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
"name": "systemProgram";
|
|
160
|
-
"address": "11111111111111111111111111111111";
|
|
161
|
-
}
|
|
162
|
-
];
|
|
163
|
-
"args": [
|
|
164
|
-
{
|
|
165
|
-
"name": "chunk";
|
|
166
|
-
"type": "bytes";
|
|
167
|
-
}
|
|
168
|
-
];
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"name": "appendGovernedBytecodeChunk";
|
|
172
|
-
"discriminator": [
|
|
173
|
-
217,
|
|
174
|
-
43,
|
|
175
|
-
162,
|
|
176
|
-
158,
|
|
177
|
-
17,
|
|
178
|
-
20,
|
|
179
|
-
228,
|
|
180
|
-
213
|
|
181
|
-
];
|
|
182
|
-
"accounts": [
|
|
183
|
-
{
|
|
184
|
-
"name": "session";
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
"name": "stage";
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
"name": "genericPathExecutionData";
|
|
191
|
-
"writable": true;
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
"name": "admin";
|
|
195
|
-
"writable": true;
|
|
196
|
-
"signer": true;
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
"name": "systemProgram";
|
|
200
|
-
"address": "11111111111111111111111111111111";
|
|
201
|
-
}
|
|
202
|
-
];
|
|
203
|
-
"args": [
|
|
204
|
-
{
|
|
205
|
-
"name": "appId";
|
|
206
|
-
"type": "string";
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
"name": "nonce";
|
|
210
|
-
"type": "u64";
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
"name": "operationIndex";
|
|
214
|
-
"type": "u16";
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
"name": "genericPath";
|
|
218
|
-
"type": "string";
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
"name": "chunk";
|
|
222
|
-
"type": "bytes";
|
|
223
|
-
}
|
|
224
|
-
];
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
"name": "authorizeGovernedUpdate";
|
|
228
|
-
"docs": [
|
|
229
|
-
"Evaluates the stable controller policy and creates one Merkle-bound",
|
|
230
|
-
"update session. The new session is a distinct account; the legacy",
|
|
231
|
-
"content-blind permit remains unchanged and is not minted."
|
|
232
|
-
];
|
|
233
|
-
"discriminator": [
|
|
234
|
-
94,
|
|
235
|
-
55,
|
|
236
|
-
204,
|
|
237
|
-
107,
|
|
238
|
-
141,
|
|
239
|
-
18,
|
|
240
|
-
177,
|
|
241
|
-
157
|
|
242
|
-
];
|
|
243
|
-
"accounts": [
|
|
244
|
-
{
|
|
245
|
-
"name": "app";
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
"name": "governance";
|
|
249
|
-
"writable": true;
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
"name": "controllerExecutionData";
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
"name": "requester";
|
|
256
|
-
"signer": true;
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
"name": "admin";
|
|
260
|
-
"writable": true;
|
|
261
|
-
"signer": true;
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
"name": "session";
|
|
265
|
-
"writable": true;
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
"name": "systemProgram";
|
|
269
|
-
"address": "11111111111111111111111111111111";
|
|
270
|
-
}
|
|
271
|
-
];
|
|
272
|
-
"args": [
|
|
273
|
-
{
|
|
274
|
-
"name": "appId";
|
|
275
|
-
"type": "string";
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
"name": "nonce";
|
|
279
|
-
"type": "u64";
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
"name": "manifestRoot";
|
|
283
|
-
"type": {
|
|
284
|
-
"array": [
|
|
285
|
-
"u8",
|
|
286
|
-
32
|
|
287
|
-
];
|
|
288
|
-
};
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
"name": "expectedOperations";
|
|
292
|
-
"type": "u16";
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
"name": "ttlSlots";
|
|
296
|
-
"type": "u64";
|
|
297
|
-
}
|
|
298
|
-
];
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
"name": "beginBytecodeStream";
|
|
302
|
-
"docs": [
|
|
303
|
-
"Begins a bytecode stream for a generic path in a Tarobase app.",
|
|
304
|
-
"",
|
|
305
|
-
"This instruction initializes the bytecode stream for a specific",
|
|
306
|
-
"generic path within a Tarobase app. It is used to append the bytecode for the rules and hooks for a path.",
|
|
307
|
-
"Since the bytecode can be large, we need to stream it in chunks. A new stream should wipe any existing bytecode for the path + rule/hook combo.",
|
|
308
|
-
"Only the admin can begin a new stream.",
|
|
309
|
-
"",
|
|
310
|
-
"# Arguments",
|
|
311
|
-
"* `ctx` - The context containing all accounts needed for this instruction",
|
|
312
|
-
"* `app_id` - The identifier of the Tarobase application",
|
|
313
|
-
"* `generic_path` - The generic path within the app for which to begin the bytecode stream",
|
|
314
|
-
"* `index` - The index of the bytecode type to begin the stream for"
|
|
315
|
-
];
|
|
316
|
-
"discriminator": [
|
|
317
|
-
71,
|
|
318
|
-
123,
|
|
319
|
-
3,
|
|
320
|
-
200,
|
|
321
|
-
121,
|
|
322
|
-
141,
|
|
323
|
-
146,
|
|
324
|
-
117
|
|
325
|
-
];
|
|
326
|
-
"accounts": [
|
|
327
|
-
{
|
|
328
|
-
"name": "genericPathExecutionData";
|
|
329
|
-
"writable": true;
|
|
330
|
-
"pda": {
|
|
331
|
-
"seeds": [
|
|
332
|
-
{
|
|
333
|
-
"kind": "const";
|
|
334
|
-
"value": [
|
|
335
|
-
97,
|
|
336
|
-
110,
|
|
337
|
-
99,
|
|
338
|
-
104,
|
|
339
|
-
111,
|
|
340
|
-
114,
|
|
341
|
-
95,
|
|
342
|
-
108,
|
|
343
|
-
97,
|
|
344
|
-
110,
|
|
345
|
-
103,
|
|
346
|
-
32,
|
|
347
|
-
58,
|
|
348
|
-
58,
|
|
349
|
-
32,
|
|
350
|
-
115,
|
|
351
|
-
111,
|
|
352
|
-
108,
|
|
353
|
-
97,
|
|
354
|
-
110,
|
|
355
|
-
97,
|
|
356
|
-
95,
|
|
357
|
-
112,
|
|
358
|
-
114,
|
|
359
|
-
111,
|
|
360
|
-
103,
|
|
361
|
-
114,
|
|
362
|
-
97,
|
|
363
|
-
109,
|
|
364
|
-
32,
|
|
365
|
-
58,
|
|
366
|
-
58,
|
|
367
|
-
32,
|
|
368
|
-
104,
|
|
369
|
-
97,
|
|
370
|
-
115,
|
|
371
|
-
104,
|
|
372
|
-
32,
|
|
373
|
-
58,
|
|
374
|
-
58,
|
|
375
|
-
10,
|
|
376
|
-
104,
|
|
377
|
-
97,
|
|
378
|
-
115,
|
|
379
|
-
104,
|
|
380
|
-
40,
|
|
381
|
-
38,
|
|
382
|
-
10,
|
|
383
|
-
91,
|
|
384
|
-
98,
|
|
385
|
-
34,
|
|
386
|
-
116,
|
|
387
|
-
97,
|
|
388
|
-
114,
|
|
389
|
-
111,
|
|
390
|
-
98,
|
|
391
|
-
97,
|
|
392
|
-
115,
|
|
393
|
-
101,
|
|
394
|
-
95,
|
|
395
|
-
103,
|
|
396
|
-
101,
|
|
397
|
-
110,
|
|
398
|
-
101,
|
|
399
|
-
114,
|
|
400
|
-
105,
|
|
401
|
-
99,
|
|
402
|
-
95,
|
|
403
|
-
112,
|
|
404
|
-
97,
|
|
405
|
-
116,
|
|
406
|
-
104,
|
|
407
|
-
34,
|
|
408
|
-
44,
|
|
409
|
-
32,
|
|
410
|
-
97,
|
|
411
|
-
112,
|
|
412
|
-
112,
|
|
413
|
-
95,
|
|
414
|
-
105,
|
|
415
|
-
100
|
|
416
|
-
];
|
|
417
|
-
}
|
|
418
|
-
];
|
|
419
|
-
};
|
|
420
|
-
},
|
|
421
|
-
{
|
|
422
|
-
"name": "admin";
|
|
423
|
-
"writable": true;
|
|
424
|
-
"signer": true;
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
"name": "systemProgram";
|
|
428
|
-
"address": "11111111111111111111111111111111";
|
|
429
|
-
}
|
|
430
|
-
];
|
|
431
|
-
"args": [
|
|
432
|
-
{
|
|
433
|
-
"name": "appId";
|
|
434
|
-
"type": "string";
|
|
435
|
-
},
|
|
436
|
-
{
|
|
437
|
-
"name": "genericPath";
|
|
438
|
-
"type": "string";
|
|
439
|
-
},
|
|
440
|
-
{
|
|
441
|
-
"name": "index";
|
|
442
|
-
"type": "u8";
|
|
443
|
-
}
|
|
444
|
-
];
|
|
445
|
-
},
|
|
446
|
-
{
|
|
447
|
-
"name": "beginGovernedBytecodeStream";
|
|
448
|
-
"discriminator": [
|
|
449
|
-
163,
|
|
450
|
-
88,
|
|
451
|
-
195,
|
|
452
|
-
142,
|
|
453
|
-
142,
|
|
454
|
-
9,
|
|
455
|
-
176,
|
|
456
|
-
155
|
|
457
|
-
];
|
|
458
|
-
"accounts": [
|
|
459
|
-
{
|
|
460
|
-
"name": "session";
|
|
461
|
-
},
|
|
462
|
-
{
|
|
463
|
-
"name": "stage";
|
|
464
|
-
},
|
|
465
|
-
{
|
|
466
|
-
"name": "genericPathExecutionData";
|
|
467
|
-
"writable": true;
|
|
468
|
-
},
|
|
469
|
-
{
|
|
470
|
-
"name": "admin";
|
|
471
|
-
"writable": true;
|
|
472
|
-
"signer": true;
|
|
473
|
-
},
|
|
474
|
-
{
|
|
475
|
-
"name": "systemProgram";
|
|
476
|
-
"address": "11111111111111111111111111111111";
|
|
477
|
-
}
|
|
478
|
-
];
|
|
479
|
-
"args": [
|
|
480
|
-
{
|
|
481
|
-
"name": "appId";
|
|
482
|
-
"type": "string";
|
|
483
|
-
},
|
|
484
|
-
{
|
|
485
|
-
"name": "nonce";
|
|
486
|
-
"type": "u64";
|
|
487
|
-
},
|
|
488
|
-
{
|
|
489
|
-
"name": "operationIndex";
|
|
490
|
-
"type": "u16";
|
|
491
|
-
},
|
|
492
|
-
{
|
|
493
|
-
"name": "genericPath";
|
|
494
|
-
"type": "string";
|
|
495
|
-
},
|
|
496
|
-
{
|
|
497
|
-
"name": "bytecodeIndex";
|
|
498
|
-
"type": "u8";
|
|
499
|
-
}
|
|
500
|
-
];
|
|
501
|
-
},
|
|
502
|
-
{
|
|
503
|
-
"name": "createApp";
|
|
504
|
-
"docs": [
|
|
505
|
-
"Creates an account to store app data",
|
|
506
|
-
"",
|
|
507
|
-
"This instruction initializes the app account that will hold topmost level app data"
|
|
508
|
-
];
|
|
509
|
-
"discriminator": [
|
|
510
|
-
165,
|
|
511
|
-
212,
|
|
512
|
-
136,
|
|
513
|
-
33,
|
|
514
|
-
249,
|
|
515
|
-
223,
|
|
516
|
-
246,
|
|
517
|
-
249
|
|
518
|
-
];
|
|
519
|
-
"accounts": [
|
|
520
|
-
{
|
|
521
|
-
"name": "owner";
|
|
522
|
-
},
|
|
523
|
-
{
|
|
524
|
-
"name": "app";
|
|
525
|
-
"writable": true;
|
|
526
|
-
},
|
|
527
|
-
{
|
|
528
|
-
"name": "admin";
|
|
529
|
-
"writable": true;
|
|
530
|
-
"signer": true;
|
|
531
|
-
},
|
|
532
|
-
{
|
|
533
|
-
"name": "systemProgram";
|
|
534
|
-
"address": "11111111111111111111111111111111";
|
|
535
|
-
}
|
|
536
|
-
];
|
|
537
|
-
"args": [
|
|
538
|
-
{
|
|
539
|
-
"name": "appId";
|
|
540
|
-
"type": "string";
|
|
541
|
-
}
|
|
542
|
-
];
|
|
543
|
-
},
|
|
544
|
-
{
|
|
545
|
-
"name": "createGenericPathExecutionData";
|
|
546
|
-
"docs": [
|
|
547
|
-
"Creates an account to store executable bytecode for a generic path in a Tarobase app.",
|
|
548
|
-
"",
|
|
549
|
-
"This instruction initializes the account that will hold the bytecode for a specific",
|
|
550
|
-
"generic path within an application. It also sets the authority who has permission to",
|
|
551
|
-
"update the bytecode.",
|
|
552
|
-
"",
|
|
553
|
-
"# Important",
|
|
554
|
-
"The authority should be consistent across all generic paths for a given app ID.",
|
|
555
|
-
"",
|
|
556
|
-
"# Arguments",
|
|
557
|
-
"* `ctx` - The context containing all accounts needed for this instruction",
|
|
558
|
-
"* `app_id` - The identifier of the Tarobase application",
|
|
559
|
-
"* `generic_path` - The generic path within the app for which to store bytecode",
|
|
560
|
-
"",
|
|
561
|
-
"*** NOTE: In case of path authority requires to be TAROBASE_AUTHORITY for backwards compatibility, use system program as placeholder."
|
|
562
|
-
];
|
|
563
|
-
"discriminator": [
|
|
564
|
-
156,
|
|
565
|
-
97,
|
|
566
|
-
194,
|
|
567
|
-
41,
|
|
568
|
-
169,
|
|
569
|
-
63,
|
|
570
|
-
176,
|
|
571
|
-
101
|
|
572
|
-
];
|
|
573
|
-
"accounts": [
|
|
574
|
-
{
|
|
575
|
-
"name": "app";
|
|
576
|
-
},
|
|
577
|
-
{
|
|
578
|
-
"name": "authorityPermit";
|
|
579
|
-
},
|
|
580
|
-
{
|
|
581
|
-
"name": "admin";
|
|
582
|
-
"writable": true;
|
|
583
|
-
"signer": true;
|
|
584
|
-
},
|
|
585
|
-
{
|
|
586
|
-
"name": "genericPathExecutionData";
|
|
587
|
-
"writable": true;
|
|
588
|
-
},
|
|
589
|
-
{
|
|
590
|
-
"name": "systemProgram";
|
|
591
|
-
"address": "11111111111111111111111111111111";
|
|
592
|
-
}
|
|
593
|
-
];
|
|
594
|
-
"args": [
|
|
595
|
-
{
|
|
596
|
-
"name": "appId";
|
|
597
|
-
"type": "string";
|
|
598
|
-
},
|
|
599
|
-
{
|
|
600
|
-
"name": "genericPath";
|
|
601
|
-
"type": "string";
|
|
602
|
-
}
|
|
603
|
-
];
|
|
604
|
-
},
|
|
605
|
-
{
|
|
606
|
-
"name": "createGovernedPath";
|
|
607
|
-
"discriminator": [
|
|
608
|
-
73,
|
|
609
|
-
42,
|
|
610
|
-
101,
|
|
611
|
-
86,
|
|
612
|
-
187,
|
|
613
|
-
82,
|
|
614
|
-
235,
|
|
615
|
-
178
|
|
616
|
-
];
|
|
617
|
-
"accounts": [
|
|
618
|
-
{
|
|
619
|
-
"name": "app";
|
|
620
|
-
},
|
|
621
|
-
{
|
|
622
|
-
"name": "governance";
|
|
623
|
-
},
|
|
624
|
-
{
|
|
625
|
-
"name": "session";
|
|
626
|
-
"writable": true;
|
|
627
|
-
},
|
|
628
|
-
{
|
|
629
|
-
"name": "stage";
|
|
630
|
-
"writable": true;
|
|
631
|
-
},
|
|
632
|
-
{
|
|
633
|
-
"name": "genericPathExecutionData";
|
|
634
|
-
"writable": true;
|
|
635
|
-
},
|
|
636
|
-
{
|
|
637
|
-
"name": "admin";
|
|
638
|
-
"writable": true;
|
|
639
|
-
"signer": true;
|
|
640
|
-
},
|
|
641
|
-
{
|
|
642
|
-
"name": "systemProgram";
|
|
643
|
-
"address": "11111111111111111111111111111111";
|
|
644
|
-
}
|
|
645
|
-
];
|
|
646
|
-
"args": [
|
|
647
|
-
{
|
|
648
|
-
"name": "appId";
|
|
649
|
-
"type": "string";
|
|
650
|
-
},
|
|
651
|
-
{
|
|
652
|
-
"name": "nonce";
|
|
653
|
-
"type": "u64";
|
|
654
|
-
},
|
|
655
|
-
{
|
|
656
|
-
"name": "operationIndex";
|
|
657
|
-
"type": "u16";
|
|
658
|
-
},
|
|
659
|
-
{
|
|
660
|
-
"name": "genericPath";
|
|
661
|
-
"type": "string";
|
|
662
|
-
},
|
|
663
|
-
{
|
|
664
|
-
"name": "expectedStateHash";
|
|
665
|
-
"type": {
|
|
666
|
-
"array": [
|
|
667
|
-
"u8",
|
|
668
|
-
32
|
|
669
|
-
];
|
|
670
|
-
};
|
|
671
|
-
},
|
|
672
|
-
{
|
|
673
|
-
"name": "merkleProof";
|
|
674
|
-
"type": {
|
|
675
|
-
"vec": {
|
|
676
|
-
"array": [
|
|
677
|
-
"u8",
|
|
678
|
-
32
|
|
679
|
-
];
|
|
680
|
-
};
|
|
681
|
-
};
|
|
682
|
-
}
|
|
683
|
-
];
|
|
684
|
-
},
|
|
685
|
-
{
|
|
686
|
-
"name": "createUpdateAuthorityPermit";
|
|
687
|
-
"discriminator": [
|
|
688
|
-
41,
|
|
689
|
-
20,
|
|
690
|
-
32,
|
|
691
|
-
238,
|
|
692
|
-
249,
|
|
693
|
-
115,
|
|
694
|
-
83,
|
|
695
|
-
74
|
|
696
|
-
];
|
|
697
|
-
"accounts": [
|
|
698
|
-
{
|
|
699
|
-
"name": "app";
|
|
700
|
-
},
|
|
701
|
-
{
|
|
702
|
-
"name": "admin";
|
|
703
|
-
"writable": true;
|
|
704
|
-
"signer": true;
|
|
705
|
-
},
|
|
706
|
-
{
|
|
707
|
-
"name": "appOwner";
|
|
708
|
-
"signer": true;
|
|
709
|
-
},
|
|
710
|
-
{
|
|
711
|
-
"name": "authorityPermit";
|
|
712
|
-
"writable": true;
|
|
713
|
-
},
|
|
714
|
-
{
|
|
715
|
-
"name": "systemProgram";
|
|
716
|
-
"address": "11111111111111111111111111111111";
|
|
717
|
-
}
|
|
718
|
-
];
|
|
719
|
-
"args": [
|
|
720
|
-
{
|
|
721
|
-
"name": "appId";
|
|
722
|
-
"type": "string";
|
|
723
|
-
}
|
|
724
|
-
];
|
|
725
|
-
},
|
|
726
|
-
{
|
|
727
|
-
"name": "deleteGenericPathExecutionData";
|
|
728
|
-
"docs": [
|
|
729
|
-
"Deletes the account for a generic path in a Tarobase app.",
|
|
730
|
-
"",
|
|
731
|
-
"This instruction removes the account that stores the bytecode and metadata",
|
|
732
|
-
"for a specific generic path within an application. It is used to clean up",
|
|
733
|
-
"the account when it is no longer needed or when the path is being removed and return the lamports to the admin.",
|
|
734
|
-
""
|
|
735
|
-
];
|
|
736
|
-
"discriminator": [
|
|
737
|
-
171,
|
|
738
|
-
79,
|
|
739
|
-
20,
|
|
740
|
-
109,
|
|
741
|
-
104,
|
|
742
|
-
2,
|
|
743
|
-
247,
|
|
744
|
-
240
|
|
745
|
-
];
|
|
746
|
-
"accounts": [
|
|
747
|
-
{
|
|
748
|
-
"name": "admin";
|
|
749
|
-
"writable": true;
|
|
750
|
-
"signer": true;
|
|
751
|
-
},
|
|
752
|
-
{
|
|
753
|
-
"name": "genericPathExecutionData";
|
|
754
|
-
"writable": true;
|
|
755
|
-
}
|
|
756
|
-
];
|
|
757
|
-
"args": [
|
|
758
|
-
{
|
|
759
|
-
"name": "appId";
|
|
760
|
-
"type": "string";
|
|
761
|
-
},
|
|
762
|
-
{
|
|
763
|
-
"name": "genericPath";
|
|
764
|
-
"type": "string";
|
|
765
|
-
}
|
|
766
|
-
];
|
|
767
|
-
},
|
|
768
|
-
{
|
|
769
|
-
"name": "deleteUpdateAuthorityPermit";
|
|
770
|
-
"discriminator": [
|
|
771
|
-
119,
|
|
772
|
-
64,
|
|
773
|
-
211,
|
|
774
|
-
184,
|
|
775
|
-
248,
|
|
776
|
-
154,
|
|
777
|
-
150,
|
|
778
|
-
94
|
|
779
|
-
];
|
|
780
|
-
"accounts": [
|
|
781
|
-
{
|
|
782
|
-
"name": "authorityPermit";
|
|
783
|
-
"writable": true;
|
|
784
|
-
},
|
|
785
|
-
{
|
|
786
|
-
"name": "admin";
|
|
787
|
-
"writable": true;
|
|
788
|
-
"signer": true;
|
|
789
|
-
}
|
|
790
|
-
];
|
|
791
|
-
"args": [
|
|
792
|
-
{
|
|
793
|
-
"name": "appId";
|
|
794
|
-
"type": "string";
|
|
795
|
-
}
|
|
796
|
-
];
|
|
797
|
-
},
|
|
798
|
-
{
|
|
799
|
-
"name": "dummyDocument";
|
|
800
|
-
"docs": [
|
|
801
|
-
"Dummy instruction to force inclusion of the Document account in the IDL."
|
|
802
|
-
];
|
|
803
|
-
"discriminator": [
|
|
804
|
-
61,
|
|
805
|
-
21,
|
|
806
|
-
15,
|
|
807
|
-
130,
|
|
808
|
-
144,
|
|
809
|
-
18,
|
|
810
|
-
7,
|
|
811
|
-
170
|
|
812
|
-
];
|
|
813
|
-
"accounts": [
|
|
814
|
-
{
|
|
815
|
-
"name": "document";
|
|
816
|
-
"writable": true;
|
|
817
|
-
}
|
|
818
|
-
];
|
|
819
|
-
"args": [];
|
|
820
|
-
},
|
|
821
|
-
{
|
|
822
|
-
"name": "executeQuery";
|
|
823
|
-
"docs": [
|
|
824
|
-
"Executes a query for a generic path in a Tarobase app.",
|
|
825
|
-
"",
|
|
826
|
-
"READONLY INSTRUCTION. This instruction executes a query for a specific",
|
|
827
|
-
"generic path within an application. NOTE: The queries are not stored on chain so they are passed in as a bytecode stream.",
|
|
828
|
-
"We do replace Tarobase variables with the actual values in the bytecode and return the result.",
|
|
829
|
-
"",
|
|
830
|
-
"# Arguments",
|
|
831
|
-
"* `ctx` - The context containing all accounts needed for this instruction",
|
|
832
|
-
"* `bytecode` - The bytecode for the query",
|
|
833
|
-
"* `app_id` - The identifier of the Tarobase application",
|
|
834
|
-
"* `document_input` - The input document for the query i.e what @newData points to",
|
|
835
|
-
"* `simulate` - Whether to simulate the query to extract the remaining accounts needed for the query",
|
|
836
|
-
"* `user_address` - The address of the user executing the query"
|
|
837
|
-
];
|
|
838
|
-
"discriminator": [
|
|
839
|
-
171,
|
|
840
|
-
145,
|
|
841
|
-
112,
|
|
842
|
-
132,
|
|
843
|
-
36,
|
|
844
|
-
159,
|
|
845
|
-
36,
|
|
846
|
-
59
|
|
847
|
-
];
|
|
848
|
-
"accounts": [
|
|
849
|
-
{
|
|
850
|
-
"name": "payer";
|
|
851
|
-
"writable": true;
|
|
852
|
-
"signer": true;
|
|
853
|
-
},
|
|
854
|
-
{
|
|
855
|
-
"name": "genericPathExecutionData";
|
|
856
|
-
"docs": [
|
|
857
|
-
"GenericPathExecutionData account - constraint removed to simplify"
|
|
858
|
-
];
|
|
859
|
-
}
|
|
860
|
-
];
|
|
861
|
-
"args": [
|
|
862
|
-
{
|
|
863
|
-
"name": "bytecode";
|
|
864
|
-
"type": "bytes";
|
|
865
|
-
},
|
|
866
|
-
{
|
|
867
|
-
"name": "appId";
|
|
868
|
-
"type": "string";
|
|
869
|
-
},
|
|
870
|
-
{
|
|
871
|
-
"name": "documentInput";
|
|
872
|
-
"type": {
|
|
873
|
-
"defined": {
|
|
874
|
-
"name": "setDocumentData";
|
|
875
|
-
};
|
|
876
|
-
};
|
|
877
|
-
},
|
|
878
|
-
{
|
|
879
|
-
"name": "userAddress";
|
|
880
|
-
"type": "pubkey";
|
|
881
|
-
}
|
|
882
|
-
];
|
|
883
|
-
},
|
|
884
|
-
{
|
|
885
|
-
"name": "executeQueryStandalone";
|
|
886
|
-
"docs": [
|
|
887
|
-
"Executes a standalone query without requiring GenericPathExecutionData account.",
|
|
888
|
-
"",
|
|
889
|
-
"READONLY INSTRUCTION. This instruction executes a query for plugin functions",
|
|
890
|
-
"from offchain collections. It creates a minimal in-memory GenericPathExecutionData",
|
|
891
|
-
"struct with the provided parameters.",
|
|
892
|
-
"",
|
|
893
|
-
"# Arguments",
|
|
894
|
-
"* `ctx` - The context containing all accounts needed for this instruction",
|
|
895
|
-
"* `bytecode` - The bytecode for the query",
|
|
896
|
-
"* `app_id` - The identifier of the Tarobase application",
|
|
897
|
-
"* `document_input` - The input document for the query i.e what @newData points to",
|
|
898
|
-
"* `simulate` - Whether to simulate the query to extract the remaining accounts needed for the query",
|
|
899
|
-
"* `user_address` - The address of the user executing the query",
|
|
900
|
-
"* `string_literal_map` - The string literals used in the bytecode (fieldPoolArray)"
|
|
901
|
-
];
|
|
902
|
-
"discriminator": [
|
|
903
|
-
4,
|
|
904
|
-
142,
|
|
905
|
-
253,
|
|
906
|
-
188,
|
|
907
|
-
216,
|
|
908
|
-
143,
|
|
909
|
-
109,
|
|
910
|
-
19
|
|
911
|
-
];
|
|
912
|
-
"accounts": [
|
|
913
|
-
{
|
|
914
|
-
"name": "payer";
|
|
915
|
-
"writable": true;
|
|
916
|
-
"signer": true;
|
|
917
|
-
}
|
|
918
|
-
];
|
|
919
|
-
"args": [
|
|
920
|
-
{
|
|
921
|
-
"name": "bytecode";
|
|
922
|
-
"type": "bytes";
|
|
923
|
-
},
|
|
924
|
-
{
|
|
925
|
-
"name": "appId";
|
|
926
|
-
"type": "string";
|
|
927
|
-
},
|
|
928
|
-
{
|
|
929
|
-
"name": "documentInput";
|
|
930
|
-
"type": {
|
|
931
|
-
"defined": {
|
|
932
|
-
"name": "setDocumentData";
|
|
933
|
-
};
|
|
934
|
-
};
|
|
935
|
-
},
|
|
936
|
-
{
|
|
937
|
-
"name": "userAddress";
|
|
938
|
-
"type": "pubkey";
|
|
939
|
-
},
|
|
940
|
-
{
|
|
941
|
-
"name": "stringLiteralMap";
|
|
942
|
-
"type": {
|
|
943
|
-
"vec": "string";
|
|
944
|
-
};
|
|
945
|
-
}
|
|
946
|
-
];
|
|
947
|
-
},
|
|
948
|
-
{
|
|
949
|
-
"name": "finalizeGovernedUpdate";
|
|
950
|
-
"discriminator": [
|
|
951
|
-
1,
|
|
952
|
-
119,
|
|
953
|
-
210,
|
|
954
|
-
128,
|
|
955
|
-
10,
|
|
956
|
-
204,
|
|
957
|
-
200,
|
|
958
|
-
242
|
|
959
|
-
];
|
|
960
|
-
"accounts": [
|
|
961
|
-
{
|
|
962
|
-
"name": "session";
|
|
963
|
-
"writable": true;
|
|
964
|
-
}
|
|
965
|
-
];
|
|
966
|
-
"args": [
|
|
967
|
-
{
|
|
968
|
-
"name": "appId";
|
|
969
|
-
"type": "string";
|
|
970
|
-
},
|
|
971
|
-
{
|
|
972
|
-
"name": "nonce";
|
|
973
|
-
"type": "u64";
|
|
974
|
-
}
|
|
975
|
-
];
|
|
976
|
-
},
|
|
977
|
-
{
|
|
978
|
-
"name": "finishBytecodeStream";
|
|
979
|
-
"docs": [
|
|
980
|
-
"Finishes the bytecode stream for a generic path in a Tarobase app.",
|
|
981
|
-
"",
|
|
982
|
-
"This instruction finishes the bytecode stream for a specific",
|
|
983
|
-
"generic path within an application. It is used to finalize the bytecode for the rules and hooks for a path. It resets the streaming target to None.",
|
|
984
|
-
"Only the admin can finish a stream.",
|
|
985
|
-
"",
|
|
986
|
-
"# Arguments",
|
|
987
|
-
"* `ctx` - The context containing all accounts needed for this instruction",
|
|
988
|
-
"* `app_id` - The identifier of the Tarobase application",
|
|
989
|
-
"* `generic_path` - The generic path within the app for which to finish the bytecode stream"
|
|
990
|
-
];
|
|
991
|
-
"discriminator": [
|
|
992
|
-
253,
|
|
993
|
-
181,
|
|
994
|
-
4,
|
|
995
|
-
101,
|
|
996
|
-
80,
|
|
997
|
-
76,
|
|
998
|
-
9,
|
|
999
|
-
136
|
|
1000
|
-
];
|
|
1001
|
-
"accounts": [
|
|
1002
|
-
{
|
|
1003
|
-
"name": "genericPathExecutionData";
|
|
1004
|
-
"writable": true;
|
|
1005
|
-
"pda": {
|
|
1006
|
-
"seeds": [
|
|
1007
|
-
{
|
|
1008
|
-
"kind": "const";
|
|
1009
|
-
"value": [
|
|
1010
|
-
97,
|
|
1011
|
-
110,
|
|
1012
|
-
99,
|
|
1013
|
-
104,
|
|
1014
|
-
111,
|
|
1015
|
-
114,
|
|
1016
|
-
95,
|
|
1017
|
-
108,
|
|
1018
|
-
97,
|
|
1019
|
-
110,
|
|
1020
|
-
103,
|
|
1021
|
-
32,
|
|
1022
|
-
58,
|
|
1023
|
-
58,
|
|
1024
|
-
32,
|
|
1025
|
-
115,
|
|
1026
|
-
111,
|
|
1027
|
-
108,
|
|
1028
|
-
97,
|
|
1029
|
-
110,
|
|
1030
|
-
97,
|
|
1031
|
-
95,
|
|
1032
|
-
112,
|
|
1033
|
-
114,
|
|
1034
|
-
111,
|
|
1035
|
-
103,
|
|
1036
|
-
114,
|
|
1037
|
-
97,
|
|
1038
|
-
109,
|
|
1039
|
-
32,
|
|
1040
|
-
58,
|
|
1041
|
-
58,
|
|
1042
|
-
32,
|
|
1043
|
-
104,
|
|
1044
|
-
97,
|
|
1045
|
-
115,
|
|
1046
|
-
104,
|
|
1047
|
-
32,
|
|
1048
|
-
58,
|
|
1049
|
-
58,
|
|
1050
|
-
10,
|
|
1051
|
-
104,
|
|
1052
|
-
97,
|
|
1053
|
-
115,
|
|
1054
|
-
104,
|
|
1055
|
-
40,
|
|
1056
|
-
38,
|
|
1057
|
-
10,
|
|
1058
|
-
91,
|
|
1059
|
-
98,
|
|
1060
|
-
34,
|
|
1061
|
-
116,
|
|
1062
|
-
97,
|
|
1063
|
-
114,
|
|
1064
|
-
111,
|
|
1065
|
-
98,
|
|
1066
|
-
97,
|
|
1067
|
-
115,
|
|
1068
|
-
101,
|
|
1069
|
-
95,
|
|
1070
|
-
103,
|
|
1071
|
-
101,
|
|
1072
|
-
110,
|
|
1073
|
-
101,
|
|
1074
|
-
114,
|
|
1075
|
-
105,
|
|
1076
|
-
99,
|
|
1077
|
-
95,
|
|
1078
|
-
112,
|
|
1079
|
-
97,
|
|
1080
|
-
116,
|
|
1081
|
-
104,
|
|
1082
|
-
34,
|
|
1083
|
-
44,
|
|
1084
|
-
32,
|
|
1085
|
-
97,
|
|
1086
|
-
112,
|
|
1087
|
-
112,
|
|
1088
|
-
95,
|
|
1089
|
-
105,
|
|
1090
|
-
100
|
|
1091
|
-
];
|
|
1092
|
-
}
|
|
1093
|
-
];
|
|
1094
|
-
};
|
|
1095
|
-
},
|
|
1096
|
-
{
|
|
1097
|
-
"name": "admin";
|
|
1098
|
-
"writable": true;
|
|
1099
|
-
"signer": true;
|
|
1100
|
-
}
|
|
1101
|
-
];
|
|
1102
|
-
"args": [
|
|
1103
|
-
{
|
|
1104
|
-
"name": "appId";
|
|
1105
|
-
"type": "string";
|
|
1106
|
-
},
|
|
1107
|
-
{
|
|
1108
|
-
"name": "genericPath";
|
|
1109
|
-
"type": "string";
|
|
1110
|
-
}
|
|
1111
|
-
];
|
|
1112
|
-
},
|
|
1113
|
-
{
|
|
1114
|
-
"name": "finishGovernedBytecodeStream";
|
|
1115
|
-
"discriminator": [
|
|
1116
|
-
53,
|
|
1117
|
-
210,
|
|
1118
|
-
110,
|
|
1119
|
-
198,
|
|
1120
|
-
224,
|
|
1121
|
-
33,
|
|
1122
|
-
199,
|
|
1123
|
-
208
|
|
1124
|
-
];
|
|
1125
|
-
"accounts": [
|
|
1126
|
-
{
|
|
1127
|
-
"name": "session";
|
|
1128
|
-
},
|
|
1129
|
-
{
|
|
1130
|
-
"name": "stage";
|
|
1131
|
-
},
|
|
1132
|
-
{
|
|
1133
|
-
"name": "genericPathExecutionData";
|
|
1134
|
-
"writable": true;
|
|
1135
|
-
},
|
|
1136
|
-
{
|
|
1137
|
-
"name": "admin";
|
|
1138
|
-
"writable": true;
|
|
1139
|
-
"signer": true;
|
|
1140
|
-
},
|
|
1141
|
-
{
|
|
1142
|
-
"name": "systemProgram";
|
|
1143
|
-
"address": "11111111111111111111111111111111";
|
|
1144
|
-
}
|
|
1145
|
-
];
|
|
1146
|
-
"args": [
|
|
1147
|
-
{
|
|
1148
|
-
"name": "appId";
|
|
1149
|
-
"type": "string";
|
|
1150
|
-
},
|
|
1151
|
-
{
|
|
1152
|
-
"name": "nonce";
|
|
1153
|
-
"type": "u64";
|
|
1154
|
-
},
|
|
1155
|
-
{
|
|
1156
|
-
"name": "operationIndex";
|
|
1157
|
-
"type": "u16";
|
|
1158
|
-
},
|
|
1159
|
-
{
|
|
1160
|
-
"name": "genericPath";
|
|
1161
|
-
"type": "string";
|
|
1162
|
-
}
|
|
1163
|
-
];
|
|
1164
|
-
},
|
|
1165
|
-
{
|
|
1166
|
-
"name": "initializeAppUpgradeGovernance";
|
|
1167
|
-
"docs": [
|
|
1168
|
-
"Opts a legacy wallet-owned app into additive policy or immutable",
|
|
1169
|
-
"governance without changing any deployed instruction/account ABI."
|
|
1170
|
-
];
|
|
1171
|
-
"discriminator": [
|
|
1172
|
-
252,
|
|
1173
|
-
141,
|
|
1174
|
-
164,
|
|
1175
|
-
70,
|
|
1176
|
-
21,
|
|
1177
|
-
7,
|
|
1178
|
-
159,
|
|
1179
|
-
75
|
|
1180
|
-
];
|
|
1181
|
-
"accounts": [
|
|
1182
|
-
{
|
|
1183
|
-
"name": "app";
|
|
1184
|
-
"writable": true;
|
|
1185
|
-
},
|
|
1186
|
-
{
|
|
1187
|
-
"name": "appOwner";
|
|
1188
|
-
"signer": true;
|
|
1189
|
-
},
|
|
1190
|
-
{
|
|
1191
|
-
"name": "admin";
|
|
1192
|
-
"writable": true;
|
|
1193
|
-
"signer": true;
|
|
1194
|
-
},
|
|
1195
|
-
{
|
|
1196
|
-
"name": "governance";
|
|
1197
|
-
"writable": true;
|
|
1198
|
-
},
|
|
1199
|
-
{
|
|
1200
|
-
"name": "legacyAuthorityPermit";
|
|
1201
|
-
"docs": [
|
|
1202
|
-
"preventing a permit minted immediately before enrollment from surviving",
|
|
1203
|
-
"the owner lock."
|
|
1204
|
-
];
|
|
1205
|
-
"writable": true;
|
|
1206
|
-
},
|
|
1207
|
-
{
|
|
1208
|
-
"name": "systemProgram";
|
|
1209
|
-
"address": "11111111111111111111111111111111";
|
|
1210
|
-
},
|
|
1211
|
-
{
|
|
1212
|
-
"name": "controllerExecutionData";
|
|
1213
|
-
"docs": [
|
|
1214
|
-
"Controller GPED. Required for policy mode and omitted for immutable mode."
|
|
1215
|
-
];
|
|
1216
|
-
"optional": true;
|
|
1217
|
-
}
|
|
1218
|
-
];
|
|
1219
|
-
"args": [
|
|
1220
|
-
{
|
|
1221
|
-
"name": "appId";
|
|
1222
|
-
"type": "string";
|
|
1223
|
-
},
|
|
1224
|
-
{
|
|
1225
|
-
"name": "controllerAppId";
|
|
1226
|
-
"type": "string";
|
|
1227
|
-
},
|
|
1228
|
-
{
|
|
1229
|
-
"name": "controllerPath";
|
|
1230
|
-
"type": "string";
|
|
1231
|
-
},
|
|
1232
|
-
{
|
|
1233
|
-
"name": "mode";
|
|
1234
|
-
"type": "u8";
|
|
1235
|
-
}
|
|
1236
|
-
];
|
|
1237
|
-
},
|
|
1238
|
-
{
|
|
1239
|
-
"name": "recoverGovernedUpdate";
|
|
1240
|
-
"docs": [
|
|
1241
|
-
"Recovers only expired sessions. Extension lets a partially staged",
|
|
1242
|
-
"manifest finish; cancellation is allowed only before staging has",
|
|
1243
|
-
"changed any path state."
|
|
1244
|
-
];
|
|
1245
|
-
"discriminator": [
|
|
1246
|
-
211,
|
|
1247
|
-
68,
|
|
1248
|
-
135,
|
|
1249
|
-
66,
|
|
1250
|
-
102,
|
|
1251
|
-
93,
|
|
1252
|
-
103,
|
|
1253
|
-
250
|
|
1254
|
-
];
|
|
1255
|
-
"accounts": [
|
|
1256
|
-
{
|
|
1257
|
-
"name": "app";
|
|
1258
|
-
},
|
|
1259
|
-
{
|
|
1260
|
-
"name": "governance";
|
|
1261
|
-
"writable": true;
|
|
1262
|
-
},
|
|
1263
|
-
{
|
|
1264
|
-
"name": "controllerExecutionData";
|
|
1265
|
-
},
|
|
1266
|
-
{
|
|
1267
|
-
"name": "requester";
|
|
1268
|
-
"signer": true;
|
|
1269
|
-
},
|
|
1270
|
-
{
|
|
1271
|
-
"name": "session";
|
|
1272
|
-
"writable": true;
|
|
1273
|
-
}
|
|
1274
|
-
];
|
|
1275
|
-
"args": [
|
|
1276
|
-
{
|
|
1277
|
-
"name": "appId";
|
|
1278
|
-
"type": "string";
|
|
1279
|
-
},
|
|
1280
|
-
{
|
|
1281
|
-
"name": "nonce";
|
|
1282
|
-
"type": "u64";
|
|
1283
|
-
},
|
|
1284
|
-
{
|
|
1285
|
-
"name": "recoveryAction";
|
|
1286
|
-
"type": "u8";
|
|
1287
|
-
},
|
|
1288
|
-
{
|
|
1289
|
-
"name": "ttlSlots";
|
|
1290
|
-
"type": "u64";
|
|
1291
|
-
}
|
|
1292
|
-
];
|
|
1293
|
-
},
|
|
1294
|
-
{
|
|
1295
|
-
"name": "resolveGenericPathExecutionData";
|
|
1296
|
-
"docs": [
|
|
1297
|
-
"Resolves the generic path execution data for a generic path in a Tarobase app.",
|
|
1298
|
-
"",
|
|
1299
|
-
"This instruction resolves the generic path execution data for a specific",
|
|
1300
|
-
"generic path within an application. It is used to finalize the bytecode for the rules and hooks for a path.",
|
|
1301
|
-
"Only the admin can finish a stream. Once a path is resolved then you can call set_documents to set data.",
|
|
1302
|
-
"",
|
|
1303
|
-
"# Arguments",
|
|
1304
|
-
"* `ctx` - The context containing all accounts needed for this instruction",
|
|
1305
|
-
"* `app_id` - The identifier of the Tarobase application",
|
|
1306
|
-
"* `generic_path` - The generic path within the app for which to resolve the generic path execution data"
|
|
1307
|
-
];
|
|
1308
|
-
"discriminator": [
|
|
1309
|
-
220,
|
|
1310
|
-
84,
|
|
1311
|
-
242,
|
|
1312
|
-
227,
|
|
1313
|
-
241,
|
|
1314
|
-
140,
|
|
1315
|
-
159,
|
|
1316
|
-
12
|
|
1317
|
-
];
|
|
1318
|
-
"accounts": [
|
|
1319
|
-
{
|
|
1320
|
-
"name": "admin";
|
|
1321
|
-
"writable": true;
|
|
1322
|
-
"signer": true;
|
|
1323
|
-
},
|
|
1324
|
-
{
|
|
1325
|
-
"name": "genericPathExecutionData";
|
|
1326
|
-
"writable": true;
|
|
1327
|
-
}
|
|
1328
|
-
];
|
|
1329
|
-
"args": [
|
|
1330
|
-
{
|
|
1331
|
-
"name": "appId";
|
|
1332
|
-
"type": "string";
|
|
1333
|
-
},
|
|
1334
|
-
{
|
|
1335
|
-
"name": "genericPath";
|
|
1336
|
-
"type": "string";
|
|
1337
|
-
}
|
|
1338
|
-
];
|
|
1339
|
-
},
|
|
1340
|
-
{
|
|
1341
|
-
"name": "sealGovernedPath";
|
|
1342
|
-
"discriminator": [
|
|
1343
|
-
250,
|
|
1344
|
-
204,
|
|
1345
|
-
30,
|
|
1346
|
-
107,
|
|
1347
|
-
203,
|
|
1348
|
-
196,
|
|
1349
|
-
74,
|
|
1350
|
-
189
|
|
1351
|
-
];
|
|
1352
|
-
"accounts": [
|
|
1353
|
-
{
|
|
1354
|
-
"name": "session";
|
|
1355
|
-
"writable": true;
|
|
1356
|
-
},
|
|
1357
|
-
{
|
|
1358
|
-
"name": "stage";
|
|
1359
|
-
"writable": true;
|
|
1360
|
-
},
|
|
1361
|
-
{
|
|
1362
|
-
"name": "genericPathExecutionData";
|
|
1363
|
-
}
|
|
1364
|
-
];
|
|
1365
|
-
"args": [
|
|
1366
|
-
{
|
|
1367
|
-
"name": "appId";
|
|
1368
|
-
"type": "string";
|
|
1369
|
-
},
|
|
1370
|
-
{
|
|
1371
|
-
"name": "nonce";
|
|
1372
|
-
"type": "u64";
|
|
1373
|
-
},
|
|
1374
|
-
{
|
|
1375
|
-
"name": "operationIndex";
|
|
1376
|
-
"type": "u16";
|
|
1377
|
-
},
|
|
1378
|
-
{
|
|
1379
|
-
"name": "genericPath";
|
|
1380
|
-
"type": "string";
|
|
1381
|
-
}
|
|
1382
|
-
];
|
|
1383
|
-
},
|
|
1384
|
-
{
|
|
1385
|
-
"name": "setDocuments";
|
|
1386
|
-
"docs": [
|
|
1387
|
-
"Sets documents in a Tarobase app.",
|
|
1388
|
-
"",
|
|
1389
|
-
"This core instruction that sets documents in a Tarobase app. It is called when somone calls set() or setMany() from the Tarobase SDK.",
|
|
1390
|
-
"It is used to set the documents in the Tarobase app. For each document we are trying to set we need to run its rules and hooks.",
|
|
1391
|
-
"If it fails the rule for the specific operation we are trying to do CREATE/UPDATE/DELETE, we need to revert the changes and return an error.",
|
|
1392
|
-
"The transaction should revert and no changes should go through even if other documents would have been updated successfully.",
|
|
1393
|
-
"If all rules pass then we execute the hooks and update the actual documents on chain.",
|
|
1394
|
-
"It should handle lamports and account sizes. Excess should be refunded to the payer.",
|
|
1395
|
-
"Simulate mode is used to extract the remaining accounts needed for the transaction. It should be readonly and not modify state or run any rules/hooks.",
|
|
1396
|
-
"It simply logs the remaining accounts needed for the transaction.",
|
|
1397
|
-
"",
|
|
1398
|
-
"# Arguments",
|
|
1399
|
-
"* `ctx` - The context containing all accounts needed for this instruction",
|
|
1400
|
-
"* `app_id` - The identifier of the Tarobase application",
|
|
1401
|
-
"* `documents` - The documents to set",
|
|
1402
|
-
"* `delete_paths` - The paths of the documents to delete",
|
|
1403
|
-
"* `simulate` - Whether to simulate the transaction to extract the remaining accounts needed for the transaction"
|
|
1404
|
-
];
|
|
1405
|
-
"discriminator": [
|
|
1406
|
-
79,
|
|
1407
|
-
46,
|
|
1408
|
-
72,
|
|
1409
|
-
73,
|
|
1410
|
-
24,
|
|
1411
|
-
79,
|
|
1412
|
-
66,
|
|
1413
|
-
245
|
|
1414
|
-
];
|
|
1415
|
-
"accounts": [
|
|
1416
|
-
{
|
|
1417
|
-
"name": "payer";
|
|
1418
|
-
"writable": true;
|
|
1419
|
-
"signer": true;
|
|
1420
|
-
},
|
|
1421
|
-
{
|
|
1422
|
-
"name": "systemProgram";
|
|
1423
|
-
"address": "11111111111111111111111111111111";
|
|
1424
|
-
}
|
|
1425
|
-
];
|
|
1426
|
-
"args": [
|
|
1427
|
-
{
|
|
1428
|
-
"name": "appId";
|
|
1429
|
-
"type": "string";
|
|
1430
|
-
},
|
|
1431
|
-
{
|
|
1432
|
-
"name": "documents";
|
|
1433
|
-
"type": {
|
|
1434
|
-
"vec": {
|
|
1435
|
-
"defined": {
|
|
1436
|
-
"name": "setDocumentData";
|
|
1437
|
-
};
|
|
1438
|
-
};
|
|
1439
|
-
};
|
|
1440
|
-
},
|
|
1441
|
-
{
|
|
1442
|
-
"name": "deletePaths";
|
|
1443
|
-
"type": {
|
|
1444
|
-
"vec": "string";
|
|
1445
|
-
};
|
|
1446
|
-
},
|
|
1447
|
-
{
|
|
1448
|
-
"name": "txData";
|
|
1449
|
-
"type": {
|
|
1450
|
-
"vec": {
|
|
1451
|
-
"defined": {
|
|
1452
|
-
"name": "txData";
|
|
1453
|
-
};
|
|
1454
|
-
};
|
|
1455
|
-
};
|
|
1456
|
-
},
|
|
1457
|
-
{
|
|
1458
|
-
"name": "simulate";
|
|
1459
|
-
"type": "bool";
|
|
1460
|
-
}
|
|
1461
|
-
];
|
|
1462
|
-
},
|
|
1463
|
-
{
|
|
1464
|
-
"name": "setDocumentsNoUser";
|
|
1465
|
-
"discriminator": [
|
|
1466
|
-
84,
|
|
1467
|
-
241,
|
|
1468
|
-
183,
|
|
1469
|
-
254,
|
|
1470
|
-
152,
|
|
1471
|
-
128,
|
|
1472
|
-
135,
|
|
1473
|
-
128
|
|
1474
|
-
];
|
|
1475
|
-
"accounts": [
|
|
1476
|
-
{
|
|
1477
|
-
"name": "payer";
|
|
1478
|
-
"writable": true;
|
|
1479
|
-
"signer": true;
|
|
1480
|
-
},
|
|
1481
|
-
{
|
|
1482
|
-
"name": "systemProgram";
|
|
1483
|
-
"address": "11111111111111111111111111111111";
|
|
1484
|
-
}
|
|
1485
|
-
];
|
|
1486
|
-
"args": [
|
|
1487
|
-
{
|
|
1488
|
-
"name": "appId";
|
|
1489
|
-
"type": "string";
|
|
1490
|
-
},
|
|
1491
|
-
{
|
|
1492
|
-
"name": "documents";
|
|
1493
|
-
"type": {
|
|
1494
|
-
"vec": {
|
|
1495
|
-
"defined": {
|
|
1496
|
-
"name": "setDocumentData";
|
|
1497
|
-
};
|
|
1498
|
-
};
|
|
1499
|
-
};
|
|
1500
|
-
},
|
|
1501
|
-
{
|
|
1502
|
-
"name": "deletePaths";
|
|
1503
|
-
"type": {
|
|
1504
|
-
"vec": "string";
|
|
1505
|
-
};
|
|
1506
|
-
},
|
|
1507
|
-
{
|
|
1508
|
-
"name": "txData";
|
|
1509
|
-
"type": {
|
|
1510
|
-
"vec": {
|
|
1511
|
-
"defined": {
|
|
1512
|
-
"name": "txData";
|
|
1513
|
-
};
|
|
1514
|
-
};
|
|
1515
|
-
};
|
|
1516
|
-
}
|
|
1517
|
-
];
|
|
1518
|
-
},
|
|
1519
|
-
{
|
|
1520
|
-
"name": "stageGovernedPathDelete";
|
|
1521
|
-
"discriminator": [
|
|
1522
|
-
43,
|
|
1523
|
-
254,
|
|
1524
|
-
17,
|
|
1525
|
-
124,
|
|
1526
|
-
73,
|
|
1527
|
-
165,
|
|
1528
|
-
139,
|
|
1529
|
-
141
|
|
1530
|
-
];
|
|
1531
|
-
"accounts": [
|
|
1532
|
-
{
|
|
1533
|
-
"name": "app";
|
|
1534
|
-
},
|
|
1535
|
-
{
|
|
1536
|
-
"name": "governance";
|
|
1537
|
-
},
|
|
1538
|
-
{
|
|
1539
|
-
"name": "session";
|
|
1540
|
-
"writable": true;
|
|
1541
|
-
},
|
|
1542
|
-
{
|
|
1543
|
-
"name": "stage";
|
|
1544
|
-
"writable": true;
|
|
1545
|
-
},
|
|
1546
|
-
{
|
|
1547
|
-
"name": "genericPathExecutionData";
|
|
1548
|
-
"writable": true;
|
|
1549
|
-
},
|
|
1550
|
-
{
|
|
1551
|
-
"name": "admin";
|
|
1552
|
-
"writable": true;
|
|
1553
|
-
"signer": true;
|
|
1554
|
-
},
|
|
1555
|
-
{
|
|
1556
|
-
"name": "systemProgram";
|
|
1557
|
-
"address": "11111111111111111111111111111111";
|
|
1558
|
-
}
|
|
1559
|
-
];
|
|
1560
|
-
"args": [
|
|
1561
|
-
{
|
|
1562
|
-
"name": "appId";
|
|
1563
|
-
"type": "string";
|
|
1564
|
-
},
|
|
1565
|
-
{
|
|
1566
|
-
"name": "nonce";
|
|
1567
|
-
"type": "u64";
|
|
1568
|
-
},
|
|
1569
|
-
{
|
|
1570
|
-
"name": "operationIndex";
|
|
1571
|
-
"type": "u16";
|
|
1572
|
-
},
|
|
1573
|
-
{
|
|
1574
|
-
"name": "genericPath";
|
|
1575
|
-
"type": "string";
|
|
1576
|
-
},
|
|
1577
|
-
{
|
|
1578
|
-
"name": "merkleProof";
|
|
1579
|
-
"type": {
|
|
1580
|
-
"vec": {
|
|
1581
|
-
"array": [
|
|
1582
|
-
"u8",
|
|
1583
|
-
32
|
|
1584
|
-
];
|
|
1585
|
-
};
|
|
1586
|
-
};
|
|
1587
|
-
}
|
|
1588
|
-
];
|
|
1589
|
-
},
|
|
1590
|
-
{
|
|
1591
|
-
"name": "stageGovernedPathUpdate";
|
|
1592
|
-
"discriminator": [
|
|
1593
|
-
155,
|
|
1594
|
-
135,
|
|
1595
|
-
240,
|
|
1596
|
-
106,
|
|
1597
|
-
94,
|
|
1598
|
-
214,
|
|
1599
|
-
240,
|
|
1600
|
-
10
|
|
1601
|
-
];
|
|
1602
|
-
"accounts": [
|
|
1603
|
-
{
|
|
1604
|
-
"name": "app";
|
|
1605
|
-
},
|
|
1606
|
-
{
|
|
1607
|
-
"name": "governance";
|
|
1608
|
-
},
|
|
1609
|
-
{
|
|
1610
|
-
"name": "session";
|
|
1611
|
-
"writable": true;
|
|
1612
|
-
},
|
|
1613
|
-
{
|
|
1614
|
-
"name": "stage";
|
|
1615
|
-
"writable": true;
|
|
1616
|
-
},
|
|
1617
|
-
{
|
|
1618
|
-
"name": "genericPathExecutionData";
|
|
1619
|
-
"writable": true;
|
|
1620
|
-
},
|
|
1621
|
-
{
|
|
1622
|
-
"name": "admin";
|
|
1623
|
-
"writable": true;
|
|
1624
|
-
"signer": true;
|
|
1625
|
-
},
|
|
1626
|
-
{
|
|
1627
|
-
"name": "systemProgram";
|
|
1628
|
-
"address": "11111111111111111111111111111111";
|
|
1629
|
-
}
|
|
1630
|
-
];
|
|
1631
|
-
"args": [
|
|
1632
|
-
{
|
|
1633
|
-
"name": "appId";
|
|
1634
|
-
"type": "string";
|
|
1635
|
-
},
|
|
1636
|
-
{
|
|
1637
|
-
"name": "nonce";
|
|
1638
|
-
"type": "u64";
|
|
1639
|
-
},
|
|
1640
|
-
{
|
|
1641
|
-
"name": "operationIndex";
|
|
1642
|
-
"type": "u16";
|
|
1643
|
-
},
|
|
1644
|
-
{
|
|
1645
|
-
"name": "genericPath";
|
|
1646
|
-
"type": "string";
|
|
1647
|
-
},
|
|
1648
|
-
{
|
|
1649
|
-
"name": "expectedStateHash";
|
|
1650
|
-
"type": {
|
|
1651
|
-
"array": [
|
|
1652
|
-
"u8",
|
|
1653
|
-
32
|
|
1654
|
-
];
|
|
1655
|
-
};
|
|
1656
|
-
},
|
|
1657
|
-
{
|
|
1658
|
-
"name": "merkleProof";
|
|
1659
|
-
"type": {
|
|
1660
|
-
"vec": {
|
|
1661
|
-
"array": [
|
|
1662
|
-
"u8",
|
|
1663
|
-
32
|
|
1664
|
-
];
|
|
1665
|
-
};
|
|
1666
|
-
};
|
|
1667
|
-
}
|
|
1668
|
-
];
|
|
1669
|
-
},
|
|
1670
|
-
{
|
|
1671
|
-
"name": "updateApp";
|
|
1672
|
-
"docs": [
|
|
1673
|
-
"Updates app data",
|
|
1674
|
-
"",
|
|
1675
|
-
"This instruction updates the app account that holds topmost level app data"
|
|
1676
|
-
];
|
|
1677
|
-
"discriminator": [
|
|
1678
|
-
126,
|
|
1679
|
-
189,
|
|
1680
|
-
95,
|
|
1681
|
-
214,
|
|
1682
|
-
18,
|
|
1683
|
-
25,
|
|
1684
|
-
42,
|
|
1685
|
-
176
|
|
1686
|
-
];
|
|
1687
|
-
"accounts": [
|
|
1688
|
-
{
|
|
1689
|
-
"name": "owner";
|
|
1690
|
-
"signer": true;
|
|
1691
|
-
"relations": [
|
|
1692
|
-
"app"
|
|
1693
|
-
];
|
|
1694
|
-
},
|
|
1695
|
-
{
|
|
1696
|
-
"name": "app";
|
|
1697
|
-
"writable": true;
|
|
1698
|
-
},
|
|
1699
|
-
{
|
|
1700
|
-
"name": "authorityPermit";
|
|
1701
|
-
"writable": true;
|
|
1702
|
-
},
|
|
1703
|
-
{
|
|
1704
|
-
"name": "admin";
|
|
1705
|
-
"writable": true;
|
|
1706
|
-
"signer": true;
|
|
1707
|
-
},
|
|
1708
|
-
{
|
|
1709
|
-
"name": "systemProgram";
|
|
1710
|
-
"address": "11111111111111111111111111111111";
|
|
1711
|
-
},
|
|
1712
|
-
{
|
|
1713
|
-
"name": "newOwner";
|
|
1714
|
-
"optional": true;
|
|
1715
|
-
}
|
|
1716
|
-
];
|
|
1717
|
-
"args": [];
|
|
1718
|
-
},
|
|
1719
|
-
{
|
|
1720
|
-
"name": "updateAppUpgradeGovernance";
|
|
1721
|
-
"docs": [
|
|
1722
|
-
"Changes the controller only after the current controller approves the",
|
|
1723
|
-
"transition. Immutable mode is terminal and no transition can race an",
|
|
1724
|
-
"unfinished update session."
|
|
1725
|
-
];
|
|
1726
|
-
"discriminator": [
|
|
1727
|
-
29,
|
|
1728
|
-
25,
|
|
1729
|
-
221,
|
|
1730
|
-
116,
|
|
1731
|
-
105,
|
|
1732
|
-
66,
|
|
1733
|
-
39,
|
|
1734
|
-
13
|
|
1735
|
-
];
|
|
1736
|
-
"accounts": [
|
|
1737
|
-
{
|
|
1738
|
-
"name": "app";
|
|
1739
|
-
},
|
|
1740
|
-
{
|
|
1741
|
-
"name": "governance";
|
|
1742
|
-
"writable": true;
|
|
1743
|
-
},
|
|
1744
|
-
{
|
|
1745
|
-
"name": "currentControllerExecutionData";
|
|
1746
|
-
},
|
|
1747
|
-
{
|
|
1748
|
-
"name": "newControllerExecutionData";
|
|
1749
|
-
"docs": [
|
|
1750
|
-
"Replacement controller GPED. Required for policy mode and omitted when",
|
|
1751
|
-
"making governance permanently immutable."
|
|
1752
|
-
];
|
|
1753
|
-
"optional": true;
|
|
1754
|
-
},
|
|
1755
|
-
{
|
|
1756
|
-
"name": "requester";
|
|
1757
|
-
"signer": true;
|
|
1758
|
-
}
|
|
1759
|
-
];
|
|
1760
|
-
"args": [
|
|
1761
|
-
{
|
|
1762
|
-
"name": "appId";
|
|
1763
|
-
"type": "string";
|
|
1764
|
-
},
|
|
1765
|
-
{
|
|
1766
|
-
"name": "newControllerAppId";
|
|
1767
|
-
"type": "string";
|
|
1768
|
-
},
|
|
1769
|
-
{
|
|
1770
|
-
"name": "newControllerPath";
|
|
1771
|
-
"type": "string";
|
|
1772
|
-
},
|
|
1773
|
-
{
|
|
1774
|
-
"name": "newMode";
|
|
1775
|
-
"type": "u8";
|
|
1776
|
-
}
|
|
1777
|
-
];
|
|
1778
|
-
},
|
|
1779
|
-
{
|
|
1780
|
-
"name": "updateGenericPathExecutionData";
|
|
1781
|
-
"docs": [
|
|
1782
|
-
"Updates the executable bytecode for a generic path in a Tarobase app.",
|
|
1783
|
-
"",
|
|
1784
|
-
"This instruction allows the admin to update the bytecode for a specific",
|
|
1785
|
-
"generic path within an application. It supports updating the rules, hooks,",
|
|
1786
|
-
"and other metadata associated with the generic path. It lets you update the account partially to get around",
|
|
1787
|
-
"transaction size limits. It should handle account sizes and handle rent and refund the leftover lamports to the admin.",
|
|
1788
|
-
"",
|
|
1789
|
-
"# Arguments",
|
|
1790
|
-
"* `ctx` - The context containing all accounts needed for this instruction",
|
|
1791
|
-
"* `app_id` - The identifier of the Tarobase application",
|
|
1792
|
-
"* `generic_path` - The generic path within the app for which to update bytecode",
|
|
1793
|
-
"* `create_rule_bytecode` - The bytecode for the create rule",
|
|
1794
|
-
"* `update_rule_bytecode` - The bytecode for the update rule",
|
|
1795
|
-
"* `delete_rule_bytecode` - The bytecode for the delete rule",
|
|
1796
|
-
"* `create_hook_bytecode` - The bytecode for the create hook",
|
|
1797
|
-
"* `update_hook_bytecode` - The bytecode for the update hook",
|
|
1798
|
-
"* `delete_hook_bytecode` - The bytecode for the delete hook",
|
|
1799
|
-
"* `string_literal_map` - An array of string literals, field names access, path variables and path segments used in the bytecode, indexed by the bytecode index. The bytecode uses the index to know which field name to use for the literal.",
|
|
1800
|
-
"* `path_var_map` - An array of the path variables used for this path like $userId, $postId, etc.",
|
|
1801
|
-
"* `field_to_type_map` - An array of the field names and their types",
|
|
1802
|
-
"* `field_to_required_map` - An array of the field names and if they are required",
|
|
1803
|
-
"* `field_to_readonly_map` - An array of the field names and if they are readonly aka can never be updated",
|
|
1804
|
-
"* `is_passthrough` - Whether the path is a passthrough path, meaning it will not actually store the fields on the PDA, but will instead pass the fields to the hooks."
|
|
1805
|
-
];
|
|
1806
|
-
"discriminator": [
|
|
1807
|
-
216,
|
|
1808
|
-
188,
|
|
1809
|
-
3,
|
|
1810
|
-
56,
|
|
1811
|
-
131,
|
|
1812
|
-
81,
|
|
1813
|
-
178,
|
|
1814
|
-
239
|
|
1815
|
-
];
|
|
1816
|
-
"accounts": [
|
|
1817
|
-
{
|
|
1818
|
-
"name": "admin";
|
|
1819
|
-
"writable": true;
|
|
1820
|
-
"signer": true;
|
|
1821
|
-
},
|
|
1822
|
-
{
|
|
1823
|
-
"name": "genericPathExecutionData";
|
|
1824
|
-
"writable": true;
|
|
1825
|
-
},
|
|
1826
|
-
{
|
|
1827
|
-
"name": "systemProgram";
|
|
1828
|
-
"address": "11111111111111111111111111111111";
|
|
1829
|
-
}
|
|
1830
|
-
];
|
|
1831
|
-
"args": [
|
|
1832
|
-
{
|
|
1833
|
-
"name": "appId";
|
|
1834
|
-
"type": "string";
|
|
1835
|
-
},
|
|
1836
|
-
{
|
|
1837
|
-
"name": "genericPath";
|
|
1838
|
-
"type": "string";
|
|
1839
|
-
},
|
|
1840
|
-
{
|
|
1841
|
-
"name": "createRuleBytecode";
|
|
1842
|
-
"type": {
|
|
1843
|
-
"option": "bytes";
|
|
1844
|
-
};
|
|
1845
|
-
},
|
|
1846
|
-
{
|
|
1847
|
-
"name": "updateRuleBytecode";
|
|
1848
|
-
"type": {
|
|
1849
|
-
"option": "bytes";
|
|
1850
|
-
};
|
|
1851
|
-
},
|
|
1852
|
-
{
|
|
1853
|
-
"name": "deleteRuleBytecode";
|
|
1854
|
-
"type": {
|
|
1855
|
-
"option": "bytes";
|
|
1856
|
-
};
|
|
1857
|
-
},
|
|
1858
|
-
{
|
|
1859
|
-
"name": "createHookBytecode";
|
|
1860
|
-
"type": {
|
|
1861
|
-
"option": "bytes";
|
|
1862
|
-
};
|
|
1863
|
-
},
|
|
1864
|
-
{
|
|
1865
|
-
"name": "updateHookBytecode";
|
|
1866
|
-
"type": {
|
|
1867
|
-
"option": "bytes";
|
|
1868
|
-
};
|
|
1869
|
-
},
|
|
1870
|
-
{
|
|
1871
|
-
"name": "deleteHookBytecode";
|
|
1872
|
-
"type": {
|
|
1873
|
-
"option": "bytes";
|
|
1874
|
-
};
|
|
1875
|
-
},
|
|
1876
|
-
{
|
|
1877
|
-
"name": "stringLiteralMap";
|
|
1878
|
-
"type": {
|
|
1879
|
-
"option": {
|
|
1880
|
-
"vec": "string";
|
|
1881
|
-
};
|
|
1882
|
-
};
|
|
1883
|
-
},
|
|
1884
|
-
{
|
|
1885
|
-
"name": "pathVarMap";
|
|
1886
|
-
"type": {
|
|
1887
|
-
"option": {
|
|
1888
|
-
"vec": "string";
|
|
1889
|
-
};
|
|
1890
|
-
};
|
|
1891
|
-
},
|
|
1892
|
-
{
|
|
1893
|
-
"name": "fieldToTypeMap";
|
|
1894
|
-
"type": {
|
|
1895
|
-
"option": {
|
|
1896
|
-
"vec": {
|
|
1897
|
-
"defined": {
|
|
1898
|
-
"name": "fieldToTypeMap";
|
|
1899
|
-
};
|
|
1900
|
-
};
|
|
1901
|
-
};
|
|
1902
|
-
};
|
|
1903
|
-
},
|
|
1904
|
-
{
|
|
1905
|
-
"name": "fieldToRequiredMap";
|
|
1906
|
-
"type": {
|
|
1907
|
-
"option": {
|
|
1908
|
-
"vec": {
|
|
1909
|
-
"defined": {
|
|
1910
|
-
"name": "fieldToBooleanMap";
|
|
1911
|
-
};
|
|
1912
|
-
};
|
|
1913
|
-
};
|
|
1914
|
-
};
|
|
1915
|
-
},
|
|
1916
|
-
{
|
|
1917
|
-
"name": "fieldToReadonlyMap";
|
|
1918
|
-
"type": {
|
|
1919
|
-
"option": {
|
|
1920
|
-
"vec": {
|
|
1921
|
-
"defined": {
|
|
1922
|
-
"name": "fieldToBooleanMap";
|
|
1923
|
-
};
|
|
1924
|
-
};
|
|
1925
|
-
};
|
|
1926
|
-
};
|
|
1927
|
-
},
|
|
1928
|
-
{
|
|
1929
|
-
"name": "isPassthrough";
|
|
1930
|
-
"type": {
|
|
1931
|
-
"option": "bool";
|
|
1932
|
-
};
|
|
1933
|
-
}
|
|
1934
|
-
];
|
|
1935
|
-
},
|
|
1936
|
-
{
|
|
1937
|
-
"name": "writeGovernedPathState";
|
|
1938
|
-
"discriminator": [
|
|
1939
|
-
236,
|
|
1940
|
-
205,
|
|
1941
|
-
171,
|
|
1942
|
-
112,
|
|
1943
|
-
149,
|
|
1944
|
-
226,
|
|
1945
|
-
41,
|
|
1946
|
-
123
|
|
1947
|
-
];
|
|
1948
|
-
"accounts": [
|
|
1949
|
-
{
|
|
1950
|
-
"name": "session";
|
|
1951
|
-
},
|
|
1952
|
-
{
|
|
1953
|
-
"name": "stage";
|
|
1954
|
-
},
|
|
1955
|
-
{
|
|
1956
|
-
"name": "genericPathExecutionData";
|
|
1957
|
-
"writable": true;
|
|
1958
|
-
},
|
|
1959
|
-
{
|
|
1960
|
-
"name": "admin";
|
|
1961
|
-
"writable": true;
|
|
1962
|
-
"signer": true;
|
|
1963
|
-
},
|
|
1964
|
-
{
|
|
1965
|
-
"name": "systemProgram";
|
|
1966
|
-
"address": "11111111111111111111111111111111";
|
|
1967
|
-
}
|
|
1968
|
-
];
|
|
1969
|
-
"args": [
|
|
1970
|
-
{
|
|
1971
|
-
"name": "appId";
|
|
1972
|
-
"type": "string";
|
|
1973
|
-
},
|
|
1974
|
-
{
|
|
1975
|
-
"name": "nonce";
|
|
1976
|
-
"type": "u64";
|
|
1977
|
-
},
|
|
1978
|
-
{
|
|
1979
|
-
"name": "operationIndex";
|
|
1980
|
-
"type": "u16";
|
|
1981
|
-
},
|
|
1982
|
-
{
|
|
1983
|
-
"name": "genericPath";
|
|
1984
|
-
"type": "string";
|
|
1985
|
-
},
|
|
1986
|
-
{
|
|
1987
|
-
"name": "state";
|
|
1988
|
-
"type": {
|
|
1989
|
-
"defined": {
|
|
1990
|
-
"name": "governedPathStateInput";
|
|
1991
|
-
};
|
|
1992
|
-
};
|
|
1993
|
-
}
|
|
1994
|
-
];
|
|
1995
|
-
}
|
|
1996
|
-
];
|
|
1997
|
-
"accounts": [
|
|
1998
|
-
{
|
|
1999
|
-
"name": "appUpgradeGovernance";
|
|
2000
|
-
"discriminator": [
|
|
2001
|
-
81,
|
|
2002
|
-
202,
|
|
2003
|
-
9,
|
|
2004
|
-
41,
|
|
2005
|
-
100,
|
|
2006
|
-
190,
|
|
2007
|
-
8,
|
|
2008
|
-
74
|
|
2009
|
-
];
|
|
2010
|
-
},
|
|
2011
|
-
{
|
|
2012
|
-
"name": "document";
|
|
2013
|
-
"discriminator": [
|
|
2014
|
-
226,
|
|
2015
|
-
212,
|
|
2016
|
-
133,
|
|
2017
|
-
177,
|
|
2018
|
-
48,
|
|
2019
|
-
5,
|
|
2020
|
-
171,
|
|
2021
|
-
243
|
|
2022
|
-
];
|
|
2023
|
-
},
|
|
2024
|
-
{
|
|
2025
|
-
"name": "genericPathExecutionData";
|
|
2026
|
-
"discriminator": [
|
|
2027
|
-
206,
|
|
2028
|
-
245,
|
|
2029
|
-
184,
|
|
2030
|
-
13,
|
|
2031
|
-
145,
|
|
2032
|
-
124,
|
|
2033
|
-
191,
|
|
2034
|
-
6
|
|
2035
|
-
];
|
|
2036
|
-
},
|
|
2037
|
-
{
|
|
2038
|
-
"name": "governedPathStage";
|
|
2039
|
-
"discriminator": [
|
|
2040
|
-
213,
|
|
2041
|
-
5,
|
|
2042
|
-
12,
|
|
2043
|
-
3,
|
|
2044
|
-
217,
|
|
2045
|
-
172,
|
|
2046
|
-
199,
|
|
2047
|
-
9
|
|
2048
|
-
];
|
|
2049
|
-
},
|
|
2050
|
-
{
|
|
2051
|
-
"name": "governedUpdateSession";
|
|
2052
|
-
"discriminator": [
|
|
2053
|
-
172,
|
|
2054
|
-
82,
|
|
2055
|
-
124,
|
|
2056
|
-
214,
|
|
2057
|
-
101,
|
|
2058
|
-
57,
|
|
2059
|
-
74,
|
|
2060
|
-
167
|
|
2061
|
-
];
|
|
2062
|
-
},
|
|
2063
|
-
{
|
|
2064
|
-
"name": "tarobaseApp";
|
|
2065
|
-
"discriminator": [
|
|
2066
|
-
63,
|
|
2067
|
-
106,
|
|
2068
|
-
71,
|
|
2069
|
-
75,
|
|
2070
|
-
237,
|
|
2071
|
-
34,
|
|
2072
|
-
72,
|
|
2073
|
-
124
|
|
2074
|
-
];
|
|
2075
|
-
},
|
|
2076
|
-
{
|
|
2077
|
-
"name": "updateAuthorityPermit";
|
|
2078
|
-
"discriminator": [
|
|
2079
|
-
95,
|
|
2080
|
-
227,
|
|
2081
|
-
234,
|
|
2082
|
-
131,
|
|
2083
|
-
112,
|
|
2084
|
-
231,
|
|
2085
|
-
134,
|
|
2086
|
-
135
|
|
2087
|
-
];
|
|
2088
|
-
}
|
|
2089
|
-
];
|
|
2090
|
-
"events": [
|
|
2091
|
-
{
|
|
2092
|
-
"name": "revealRequestWitness";
|
|
2093
|
-
"discriminator": [
|
|
2094
|
-
133,
|
|
2095
|
-
169,
|
|
2096
|
-
193,
|
|
2097
|
-
134,
|
|
2098
|
-
148,
|
|
2099
|
-
254,
|
|
2100
|
-
142,
|
|
2101
|
-
41
|
|
2102
|
-
];
|
|
2103
|
-
}
|
|
2104
|
-
];
|
|
2105
|
-
"errors": [
|
|
2106
|
-
{
|
|
2107
|
-
"code": 6000;
|
|
2108
|
-
"name": "unauthorized";
|
|
2109
|
-
"msg": "Unauthorized: Only the owner can perform this action.";
|
|
2110
|
-
},
|
|
2111
|
-
{
|
|
2112
|
-
"code": 6001;
|
|
2113
|
-
"name": "unauthorizedUpdate";
|
|
2114
|
-
"msg": "Unauthorized: Failed policy check to update this document.";
|
|
2115
|
-
},
|
|
2116
|
-
{
|
|
2117
|
-
"code": 6002;
|
|
2118
|
-
"name": "unauthorizedDelete";
|
|
2119
|
-
"msg": "Unauthorized: Failed policy check to delete this document.";
|
|
2120
|
-
},
|
|
2121
|
-
{
|
|
2122
|
-
"code": 6003;
|
|
2123
|
-
"name": "unauthorizedCreate";
|
|
2124
|
-
"msg": "Unauthorized: Failed policy check to create document at this path.";
|
|
2125
|
-
},
|
|
2126
|
-
{
|
|
2127
|
-
"code": 6004;
|
|
2128
|
-
"name": "createHookFailed";
|
|
2129
|
-
"msg": "Create hook failed: Document creation was rejected by hook.";
|
|
2130
|
-
},
|
|
2131
|
-
{
|
|
2132
|
-
"code": 6005;
|
|
2133
|
-
"name": "updateHookFailed";
|
|
2134
|
-
"msg": "Update hook failed: Document update was rejected by hook.";
|
|
2135
|
-
},
|
|
2136
|
-
{
|
|
2137
|
-
"code": 6006;
|
|
2138
|
-
"name": "deleteHookFailed";
|
|
2139
|
-
"msg": "Delete hook failed: Document deletion was rejected by hook.";
|
|
2140
|
-
},
|
|
2141
|
-
{
|
|
2142
|
-
"code": 6007;
|
|
2143
|
-
"name": "executionDataUpdating";
|
|
2144
|
-
"msg": "GenericPathExecutionData is currently being updated.";
|
|
2145
|
-
},
|
|
2146
|
-
{
|
|
2147
|
-
"code": 6008;
|
|
2148
|
-
"name": "missingAttestationSigner";
|
|
2149
|
-
"msg": "Missing attestation server co-signer for CPI transaction.";
|
|
2150
|
-
},
|
|
2151
|
-
{
|
|
2152
|
-
"code": 6009;
|
|
2153
|
-
"name": "appIsNotInitialized";
|
|
2154
|
-
"msg": "App is not initialized";
|
|
2155
|
-
},
|
|
2156
|
-
{
|
|
2157
|
-
"code": 6010;
|
|
2158
|
-
"name": "appIdTooLong";
|
|
2159
|
-
"msg": "app_id exceeds the maximum allowed length.";
|
|
2160
|
-
},
|
|
2161
|
-
{
|
|
2162
|
-
"code": 6011;
|
|
2163
|
-
"name": "invalidAuthorityPermit";
|
|
2164
|
-
"msg": "Invalid authority permit.";
|
|
2165
|
-
},
|
|
2166
|
-
{
|
|
2167
|
-
"code": 6012;
|
|
2168
|
-
"name": "numericalOverflow";
|
|
2169
|
-
"msg": "numericalOverflow";
|
|
2170
|
-
},
|
|
2171
|
-
{
|
|
2172
|
-
"code": 6013;
|
|
2173
|
-
"name": "missingSponsorAccount";
|
|
2174
|
-
"msg": "Sponsor wallet account missing from remaining_accounts for sponsor-funded document refund.";
|
|
2175
|
-
},
|
|
2176
|
-
{
|
|
2177
|
-
"code": 6014;
|
|
2178
|
-
"name": "invalidGovernanceMode";
|
|
2179
|
-
"msg": "The requested app upgrade governance mode is invalid.";
|
|
2180
|
-
},
|
|
2181
|
-
{
|
|
2182
|
-
"code": 6015;
|
|
2183
|
-
"name": "invalidGovernanceAccount";
|
|
2184
|
-
"msg": "The app upgrade governance account or scope is invalid.";
|
|
2185
|
-
},
|
|
2186
|
-
{
|
|
2187
|
-
"code": 6016;
|
|
2188
|
-
"name": "appUpgradesImmutable";
|
|
2189
|
-
"msg": "The app has permanently disabled upgrades.";
|
|
2190
|
-
},
|
|
2191
|
-
{
|
|
2192
|
-
"code": 6017;
|
|
2193
|
-
"name": "governanceControllerMissing";
|
|
2194
|
-
"msg": "The governance controller policy is missing or does not match its declared scope.";
|
|
2195
|
-
},
|
|
2196
|
-
{
|
|
2197
|
-
"code": 6018;
|
|
2198
|
-
"name": "governanceControllerUnsafe";
|
|
2199
|
-
"msg": "The governance controller policy is updating, empty, or contains write effects.";
|
|
2200
|
-
},
|
|
2201
|
-
{
|
|
2202
|
-
"code": 6019;
|
|
2203
|
-
"name": "governancePolicyRejected";
|
|
2204
|
-
"msg": "The governance controller policy rejected this manifest.";
|
|
2205
|
-
},
|
|
2206
|
-
{
|
|
2207
|
-
"code": 6020;
|
|
2208
|
-
"name": "invalidGovernedSession";
|
|
2209
|
-
"msg": "The governed update session nonce, limits, or lifetime is invalid.";
|
|
2210
|
-
},
|
|
2211
|
-
{
|
|
2212
|
-
"code": 6021;
|
|
2213
|
-
"name": "invalidGovernedManifestProof";
|
|
2214
|
-
"msg": "The governed manifest proof is invalid.";
|
|
2215
|
-
},
|
|
2216
|
-
{
|
|
2217
|
-
"code": 6022;
|
|
2218
|
-
"name": "invalidGovernedPathStage";
|
|
2219
|
-
"msg": "The governed path stage is invalid for this session or operation.";
|
|
2220
|
-
},
|
|
2221
|
-
{
|
|
2222
|
-
"code": 6023;
|
|
2223
|
-
"name": "governedPathStateMismatch";
|
|
2224
|
-
"msg": "The governed path final state does not match the approved manifest.";
|
|
2225
|
-
},
|
|
2226
|
-
{
|
|
2227
|
-
"code": 6024;
|
|
2228
|
-
"name": "governedUpdateIncomplete";
|
|
2229
|
-
"msg": "The governed update is incomplete or is not ready for this transition.";
|
|
2230
|
-
},
|
|
2231
|
-
{
|
|
2232
|
-
"code": 6025;
|
|
2233
|
-
"name": "governedRecoveryRequiresResume";
|
|
2234
|
-
"msg": "A staged governed update must be resumed; it cannot be safely cancelled in place.";
|
|
2235
|
-
}
|
|
2236
|
-
];
|
|
2237
|
-
"types": [
|
|
2238
|
-
{
|
|
2239
|
-
"name": "appUpgradeGovernance";
|
|
2240
|
-
"docs": [
|
|
2241
|
-
"Additive opt-in governance state. Its absence preserves the deployed",
|
|
2242
|
-
"owner-wallet behavior and no legacy account layout needs migration."
|
|
2243
|
-
];
|
|
2244
|
-
"type": {
|
|
2245
|
-
"kind": "struct";
|
|
2246
|
-
"fields": [
|
|
2247
|
-
{
|
|
2248
|
-
"name": "appId";
|
|
2249
|
-
"type": "string";
|
|
2250
|
-
},
|
|
2251
|
-
{
|
|
2252
|
-
"name": "controllerAppId";
|
|
2253
|
-
"type": "string";
|
|
2254
|
-
},
|
|
2255
|
-
{
|
|
2256
|
-
"name": "controllerPath";
|
|
2257
|
-
"type": "string";
|
|
2258
|
-
},
|
|
2259
|
-
{
|
|
2260
|
-
"name": "mode";
|
|
2261
|
-
"type": {
|
|
2262
|
-
"defined": {
|
|
2263
|
-
"name": "appUpgradeGovernanceMode";
|
|
2264
|
-
};
|
|
2265
|
-
};
|
|
2266
|
-
},
|
|
2267
|
-
{
|
|
2268
|
-
"name": "nextSessionNonce";
|
|
2269
|
-
"type": "u64";
|
|
2270
|
-
},
|
|
2271
|
-
{
|
|
2272
|
-
"name": "activeSessionNonce";
|
|
2273
|
-
"type": "u64";
|
|
2274
|
-
},
|
|
2275
|
-
{
|
|
2276
|
-
"name": "hasActiveSession";
|
|
2277
|
-
"type": "bool";
|
|
2278
|
-
},
|
|
2279
|
-
{
|
|
2280
|
-
"name": "bump";
|
|
2281
|
-
"type": "u8";
|
|
2282
|
-
}
|
|
2283
|
-
];
|
|
2284
|
-
};
|
|
2285
|
-
},
|
|
2286
|
-
{
|
|
2287
|
-
"name": "appUpgradeGovernanceMode";
|
|
2288
|
-
"repr": {
|
|
2289
|
-
"kind": "rust";
|
|
2290
|
-
};
|
|
2291
|
-
"type": {
|
|
2292
|
-
"kind": "enum";
|
|
2293
|
-
"variants": [
|
|
2294
|
-
{
|
|
2295
|
-
"name": "policy";
|
|
2296
|
-
},
|
|
2297
|
-
{
|
|
2298
|
-
"name": "immutable";
|
|
2299
|
-
}
|
|
2300
|
-
];
|
|
2301
|
-
};
|
|
2302
|
-
},
|
|
2303
|
-
{
|
|
2304
|
-
"name": "bytecodeType";
|
|
2305
|
-
"repr": {
|
|
2306
|
-
"kind": "rust";
|
|
2307
|
-
};
|
|
2308
|
-
"type": {
|
|
2309
|
-
"kind": "enum";
|
|
2310
|
-
"variants": [
|
|
2311
|
-
{
|
|
2312
|
-
"name": "createRule";
|
|
2313
|
-
},
|
|
2314
|
-
{
|
|
2315
|
-
"name": "updateRule";
|
|
2316
|
-
},
|
|
2317
|
-
{
|
|
2318
|
-
"name": "deleteRule";
|
|
2319
|
-
},
|
|
2320
|
-
{
|
|
2321
|
-
"name": "createHook";
|
|
2322
|
-
},
|
|
2323
|
-
{
|
|
2324
|
-
"name": "updateHook";
|
|
2325
|
-
},
|
|
2326
|
-
{
|
|
2327
|
-
"name": "deleteHook";
|
|
2328
|
-
}
|
|
2329
|
-
];
|
|
2330
|
-
};
|
|
2331
|
-
},
|
|
2332
|
-
{
|
|
2333
|
-
"name": "document";
|
|
2334
|
-
"type": {
|
|
2335
|
-
"kind": "struct";
|
|
2336
|
-
"fields": [
|
|
2337
|
-
{
|
|
2338
|
-
"name": "payer";
|
|
2339
|
-
"type": "pubkey";
|
|
2340
|
-
},
|
|
2341
|
-
{
|
|
2342
|
-
"name": "path";
|
|
2343
|
-
"type": "string";
|
|
2344
|
-
},
|
|
2345
|
-
{
|
|
2346
|
-
"name": "appId";
|
|
2347
|
-
"type": "string";
|
|
2348
|
-
},
|
|
2349
|
-
{
|
|
2350
|
-
"name": "fields";
|
|
2351
|
-
"type": {
|
|
2352
|
-
"vec": {
|
|
2353
|
-
"defined": {
|
|
2354
|
-
"name": "kvPair";
|
|
2355
|
-
};
|
|
2356
|
-
};
|
|
2357
|
-
};
|
|
2358
|
-
}
|
|
2359
|
-
];
|
|
2360
|
-
};
|
|
2361
|
-
},
|
|
2362
|
-
{
|
|
2363
|
-
"name": "fieldOperation";
|
|
2364
|
-
"type": {
|
|
2365
|
-
"kind": "struct";
|
|
2366
|
-
"fields": [
|
|
2367
|
-
{
|
|
2368
|
-
"name": "key";
|
|
2369
|
-
"type": "string";
|
|
2370
|
-
},
|
|
2371
|
-
{
|
|
2372
|
-
"name": "value";
|
|
2373
|
-
"type": {
|
|
2374
|
-
"option": {
|
|
2375
|
-
"defined": {
|
|
2376
|
-
"name": "fieldValue";
|
|
2377
|
-
};
|
|
2378
|
-
};
|
|
2379
|
-
};
|
|
2380
|
-
},
|
|
2381
|
-
{
|
|
2382
|
-
"name": "operation";
|
|
2383
|
-
"type": "u8";
|
|
2384
|
-
}
|
|
2385
|
-
];
|
|
2386
|
-
};
|
|
2387
|
-
},
|
|
2388
|
-
{
|
|
2389
|
-
"name": "fieldToBooleanMap";
|
|
2390
|
-
"type": {
|
|
2391
|
-
"kind": "struct";
|
|
2392
|
-
"fields": [
|
|
2393
|
-
{
|
|
2394
|
-
"name": "field";
|
|
2395
|
-
"type": "string";
|
|
2396
|
-
},
|
|
2397
|
-
{
|
|
2398
|
-
"name": "boolean";
|
|
2399
|
-
"type": "bool";
|
|
2400
|
-
}
|
|
2401
|
-
];
|
|
2402
|
-
};
|
|
2403
|
-
},
|
|
2404
|
-
{
|
|
2405
|
-
"name": "fieldToTypeMap";
|
|
2406
|
-
"type": {
|
|
2407
|
-
"kind": "struct";
|
|
2408
|
-
"fields": [
|
|
2409
|
-
{
|
|
2410
|
-
"name": "field";
|
|
2411
|
-
"type": "string";
|
|
2412
|
-
},
|
|
2413
|
-
{
|
|
2414
|
-
"name": "fieldType";
|
|
2415
|
-
"type": "u8";
|
|
2416
|
-
}
|
|
2417
|
-
];
|
|
2418
|
-
};
|
|
2419
|
-
},
|
|
2420
|
-
{
|
|
2421
|
-
"name": "fieldValue";
|
|
2422
|
-
"type": {
|
|
2423
|
-
"kind": "enum";
|
|
2424
|
-
"variants": [
|
|
2425
|
-
{
|
|
2426
|
-
"name": "u64Val";
|
|
2427
|
-
"fields": [
|
|
2428
|
-
{
|
|
2429
|
-
"name": "value";
|
|
2430
|
-
"type": "u64";
|
|
2431
|
-
}
|
|
2432
|
-
];
|
|
2433
|
-
},
|
|
2434
|
-
{
|
|
2435
|
-
"name": "i64Val";
|
|
2436
|
-
"fields": [
|
|
2437
|
-
{
|
|
2438
|
-
"name": "value";
|
|
2439
|
-
"type": "i64";
|
|
2440
|
-
}
|
|
2441
|
-
];
|
|
2442
|
-
},
|
|
2443
|
-
{
|
|
2444
|
-
"name": "boolVal";
|
|
2445
|
-
"fields": [
|
|
2446
|
-
{
|
|
2447
|
-
"name": "value";
|
|
2448
|
-
"type": "bool";
|
|
2449
|
-
}
|
|
2450
|
-
];
|
|
2451
|
-
},
|
|
2452
|
-
{
|
|
2453
|
-
"name": "stringVal";
|
|
2454
|
-
"fields": [
|
|
2455
|
-
{
|
|
2456
|
-
"name": "value";
|
|
2457
|
-
"type": "string";
|
|
2458
|
-
}
|
|
2459
|
-
];
|
|
2460
|
-
},
|
|
2461
|
-
{
|
|
2462
|
-
"name": "addressVal";
|
|
2463
|
-
"fields": [
|
|
2464
|
-
{
|
|
2465
|
-
"name": "value";
|
|
2466
|
-
"type": "pubkey";
|
|
2467
|
-
}
|
|
2468
|
-
];
|
|
2469
|
-
}
|
|
2470
|
-
];
|
|
2471
|
-
};
|
|
2472
|
-
},
|
|
2473
|
-
{
|
|
2474
|
-
"name": "genericPathExecutionData";
|
|
2475
|
-
"type": {
|
|
2476
|
-
"kind": "struct";
|
|
2477
|
-
"fields": [
|
|
2478
|
-
{
|
|
2479
|
-
"name": "pathAuthority";
|
|
2480
|
-
"type": "pubkey";
|
|
2481
|
-
},
|
|
2482
|
-
{
|
|
2483
|
-
"name": "appId";
|
|
2484
|
-
"type": "string";
|
|
2485
|
-
},
|
|
2486
|
-
{
|
|
2487
|
-
"name": "genericPath";
|
|
2488
|
-
"type": "string";
|
|
2489
|
-
},
|
|
2490
|
-
{
|
|
2491
|
-
"name": "createRuleBytecode";
|
|
2492
|
-
"type": "bytes";
|
|
2493
|
-
},
|
|
2494
|
-
{
|
|
2495
|
-
"name": "updateRuleBytecode";
|
|
2496
|
-
"type": "bytes";
|
|
2497
|
-
},
|
|
2498
|
-
{
|
|
2499
|
-
"name": "deleteRuleBytecode";
|
|
2500
|
-
"type": "bytes";
|
|
2501
|
-
},
|
|
2502
|
-
{
|
|
2503
|
-
"name": "createHookBytecode";
|
|
2504
|
-
"type": "bytes";
|
|
2505
|
-
},
|
|
2506
|
-
{
|
|
2507
|
-
"name": "updateHookBytecode";
|
|
2508
|
-
"type": "bytes";
|
|
2509
|
-
},
|
|
2510
|
-
{
|
|
2511
|
-
"name": "deleteHookBytecode";
|
|
2512
|
-
"type": "bytes";
|
|
2513
|
-
},
|
|
2514
|
-
{
|
|
2515
|
-
"name": "stringLiteralMap";
|
|
2516
|
-
"type": {
|
|
2517
|
-
"vec": "string";
|
|
2518
|
-
};
|
|
2519
|
-
},
|
|
2520
|
-
{
|
|
2521
|
-
"name": "pathVarMap";
|
|
2522
|
-
"type": {
|
|
2523
|
-
"vec": "string";
|
|
2524
|
-
};
|
|
2525
|
-
},
|
|
2526
|
-
{
|
|
2527
|
-
"name": "fieldToTypeMap";
|
|
2528
|
-
"type": {
|
|
2529
|
-
"vec": {
|
|
2530
|
-
"defined": {
|
|
2531
|
-
"name": "fieldToTypeMap";
|
|
2532
|
-
};
|
|
2533
|
-
};
|
|
2534
|
-
};
|
|
2535
|
-
},
|
|
2536
|
-
{
|
|
2537
|
-
"name": "fieldToRequiredMap";
|
|
2538
|
-
"type": {
|
|
2539
|
-
"vec": {
|
|
2540
|
-
"defined": {
|
|
2541
|
-
"name": "fieldToBooleanMap";
|
|
2542
|
-
};
|
|
2543
|
-
};
|
|
2544
|
-
};
|
|
2545
|
-
},
|
|
2546
|
-
{
|
|
2547
|
-
"name": "fieldToReadonlyMap";
|
|
2548
|
-
"type": {
|
|
2549
|
-
"vec": {
|
|
2550
|
-
"defined": {
|
|
2551
|
-
"name": "fieldToBooleanMap";
|
|
2552
|
-
};
|
|
2553
|
-
};
|
|
2554
|
-
};
|
|
2555
|
-
},
|
|
2556
|
-
{
|
|
2557
|
-
"name": "streamingTarget";
|
|
2558
|
-
"type": {
|
|
2559
|
-
"option": {
|
|
2560
|
-
"defined": {
|
|
2561
|
-
"name": "bytecodeType";
|
|
2562
|
-
};
|
|
2563
|
-
};
|
|
2564
|
-
};
|
|
2565
|
-
},
|
|
2566
|
-
{
|
|
2567
|
-
"name": "isPassthrough";
|
|
2568
|
-
"type": "bool";
|
|
2569
|
-
},
|
|
2570
|
-
{
|
|
2571
|
-
"name": "isUpdating";
|
|
2572
|
-
"type": "bool";
|
|
2573
|
-
}
|
|
2574
|
-
];
|
|
2575
|
-
};
|
|
2576
|
-
},
|
|
2577
|
-
{
|
|
2578
|
-
"name": "governedPathOperation";
|
|
2579
|
-
"repr": {
|
|
2580
|
-
"kind": "rust";
|
|
2581
|
-
};
|
|
2582
|
-
"type": {
|
|
2583
|
-
"kind": "enum";
|
|
2584
|
-
"variants": [
|
|
2585
|
-
{
|
|
2586
|
-
"name": "upsert";
|
|
2587
|
-
},
|
|
2588
|
-
{
|
|
2589
|
-
"name": "delete";
|
|
2590
|
-
}
|
|
2591
|
-
];
|
|
2592
|
-
};
|
|
2593
|
-
},
|
|
2594
|
-
{
|
|
2595
|
-
"name": "governedPathStage";
|
|
2596
|
-
"type": {
|
|
2597
|
-
"kind": "struct";
|
|
2598
|
-
"fields": [
|
|
2599
|
-
{
|
|
2600
|
-
"name": "session";
|
|
2601
|
-
"type": "pubkey";
|
|
2602
|
-
},
|
|
2603
|
-
{
|
|
2604
|
-
"name": "operationIndex";
|
|
2605
|
-
"type": "u16";
|
|
2606
|
-
},
|
|
2607
|
-
{
|
|
2608
|
-
"name": "operation";
|
|
2609
|
-
"type": {
|
|
2610
|
-
"defined": {
|
|
2611
|
-
"name": "governedPathOperation";
|
|
2612
|
-
};
|
|
2613
|
-
};
|
|
2614
|
-
},
|
|
2615
|
-
{
|
|
2616
|
-
"name": "path";
|
|
2617
|
-
"type": "string";
|
|
2618
|
-
},
|
|
2619
|
-
{
|
|
2620
|
-
"name": "expectedStateHash";
|
|
2621
|
-
"type": {
|
|
2622
|
-
"array": [
|
|
2623
|
-
"u8",
|
|
2624
|
-
32
|
|
2625
|
-
];
|
|
2626
|
-
};
|
|
2627
|
-
},
|
|
2628
|
-
{
|
|
2629
|
-
"name": "sealed";
|
|
2630
|
-
"type": "bool";
|
|
2631
|
-
},
|
|
2632
|
-
{
|
|
2633
|
-
"name": "activated";
|
|
2634
|
-
"type": "bool";
|
|
2635
|
-
},
|
|
2636
|
-
{
|
|
2637
|
-
"name": "bump";
|
|
2638
|
-
"type": "u8";
|
|
2639
|
-
}
|
|
2640
|
-
];
|
|
2641
|
-
};
|
|
2642
|
-
},
|
|
2643
|
-
{
|
|
2644
|
-
"name": "governedPathStateInput";
|
|
2645
|
-
"type": {
|
|
2646
|
-
"kind": "struct";
|
|
2647
|
-
"fields": [
|
|
2648
|
-
{
|
|
2649
|
-
"name": "createRuleBytecode";
|
|
2650
|
-
"type": "bytes";
|
|
2651
|
-
},
|
|
2652
|
-
{
|
|
2653
|
-
"name": "updateRuleBytecode";
|
|
2654
|
-
"type": "bytes";
|
|
2655
|
-
},
|
|
2656
|
-
{
|
|
2657
|
-
"name": "deleteRuleBytecode";
|
|
2658
|
-
"type": "bytes";
|
|
2659
|
-
},
|
|
2660
|
-
{
|
|
2661
|
-
"name": "createHookBytecode";
|
|
2662
|
-
"type": "bytes";
|
|
2663
|
-
},
|
|
2664
|
-
{
|
|
2665
|
-
"name": "updateHookBytecode";
|
|
2666
|
-
"type": "bytes";
|
|
2667
|
-
},
|
|
2668
|
-
{
|
|
2669
|
-
"name": "deleteHookBytecode";
|
|
2670
|
-
"type": "bytes";
|
|
2671
|
-
},
|
|
2672
|
-
{
|
|
2673
|
-
"name": "stringLiteralMap";
|
|
2674
|
-
"type": {
|
|
2675
|
-
"vec": "string";
|
|
2676
|
-
};
|
|
2677
|
-
},
|
|
2678
|
-
{
|
|
2679
|
-
"name": "pathVarMap";
|
|
2680
|
-
"type": {
|
|
2681
|
-
"vec": "string";
|
|
2682
|
-
};
|
|
2683
|
-
},
|
|
2684
|
-
{
|
|
2685
|
-
"name": "fieldToTypeMap";
|
|
2686
|
-
"type": {
|
|
2687
|
-
"vec": {
|
|
2688
|
-
"defined": {
|
|
2689
|
-
"name": "fieldToTypeMap";
|
|
2690
|
-
};
|
|
2691
|
-
};
|
|
2692
|
-
};
|
|
2693
|
-
},
|
|
2694
|
-
{
|
|
2695
|
-
"name": "fieldToRequiredMap";
|
|
2696
|
-
"type": {
|
|
2697
|
-
"vec": {
|
|
2698
|
-
"defined": {
|
|
2699
|
-
"name": "fieldToBooleanMap";
|
|
2700
|
-
};
|
|
2701
|
-
};
|
|
2702
|
-
};
|
|
2703
|
-
},
|
|
2704
|
-
{
|
|
2705
|
-
"name": "fieldToReadonlyMap";
|
|
2706
|
-
"type": {
|
|
2707
|
-
"vec": {
|
|
2708
|
-
"defined": {
|
|
2709
|
-
"name": "fieldToBooleanMap";
|
|
2710
|
-
};
|
|
2711
|
-
};
|
|
2712
|
-
};
|
|
2713
|
-
},
|
|
2714
|
-
{
|
|
2715
|
-
"name": "isPassthrough";
|
|
2716
|
-
"type": "bool";
|
|
2717
|
-
}
|
|
2718
|
-
];
|
|
2719
|
-
};
|
|
2720
|
-
},
|
|
2721
|
-
{
|
|
2722
|
-
"name": "governedUpdateSession";
|
|
2723
|
-
"type": {
|
|
2724
|
-
"kind": "struct";
|
|
2725
|
-
"fields": [
|
|
2726
|
-
{
|
|
2727
|
-
"name": "appId";
|
|
2728
|
-
"type": "string";
|
|
2729
|
-
},
|
|
2730
|
-
{
|
|
2731
|
-
"name": "nonce";
|
|
2732
|
-
"type": "u64";
|
|
2733
|
-
},
|
|
2734
|
-
{
|
|
2735
|
-
"name": "manifestRoot";
|
|
2736
|
-
"type": {
|
|
2737
|
-
"array": [
|
|
2738
|
-
"u8",
|
|
2739
|
-
32
|
|
2740
|
-
];
|
|
2741
|
-
};
|
|
2742
|
-
},
|
|
2743
|
-
{
|
|
2744
|
-
"name": "expectedOperations";
|
|
2745
|
-
"type": "u16";
|
|
2746
|
-
},
|
|
2747
|
-
{
|
|
2748
|
-
"name": "stagedOperations";
|
|
2749
|
-
"type": "u16";
|
|
2750
|
-
},
|
|
2751
|
-
{
|
|
2752
|
-
"name": "sealedOperations";
|
|
2753
|
-
"type": "u16";
|
|
2754
|
-
},
|
|
2755
|
-
{
|
|
2756
|
-
"name": "activatedOperations";
|
|
2757
|
-
"type": "u16";
|
|
2758
|
-
},
|
|
2759
|
-
{
|
|
2760
|
-
"name": "requester";
|
|
2761
|
-
"type": "pubkey";
|
|
2762
|
-
},
|
|
2763
|
-
{
|
|
2764
|
-
"name": "expirySlot";
|
|
2765
|
-
"type": "u64";
|
|
2766
|
-
},
|
|
2767
|
-
{
|
|
2768
|
-
"name": "finalized";
|
|
2769
|
-
"type": "bool";
|
|
2770
|
-
},
|
|
2771
|
-
{
|
|
2772
|
-
"name": "cancelled";
|
|
2773
|
-
"type": "bool";
|
|
2774
|
-
},
|
|
2775
|
-
{
|
|
2776
|
-
"name": "bump";
|
|
2777
|
-
"type": "u8";
|
|
2778
|
-
}
|
|
2779
|
-
];
|
|
2780
|
-
};
|
|
2781
|
-
},
|
|
2782
|
-
{
|
|
2783
|
-
"name": "kvPair";
|
|
2784
|
-
"type": {
|
|
2785
|
-
"kind": "struct";
|
|
2786
|
-
"fields": [
|
|
2787
|
-
{
|
|
2788
|
-
"name": "key";
|
|
2789
|
-
"type": "string";
|
|
2790
|
-
},
|
|
2791
|
-
{
|
|
2792
|
-
"name": "value";
|
|
2793
|
-
"type": {
|
|
2794
|
-
"defined": {
|
|
2795
|
-
"name": "fieldValue";
|
|
2796
|
-
};
|
|
2797
|
-
};
|
|
2798
|
-
}
|
|
2799
|
-
];
|
|
2800
|
-
};
|
|
2801
|
-
},
|
|
2802
|
-
{
|
|
2803
|
-
"name": "revealRequestWitness";
|
|
2804
|
-
"docs": [
|
|
2805
|
-
"The authenticated on-chain witness for a randomness request. It records the",
|
|
2806
|
-
"exact (app_id, random_id, reveal_path) tuple that the `RR:`/`RID:` logs",
|
|
2807
|
-
"carry, but as an event-CPI inner instruction rather than a log: inner",
|
|
2808
|
-
"instruction data is not subject to the log collector, so it survives log",
|
|
2809
|
-
"truncation. The server-driven reveal driver reads it from",
|
|
2810
|
-
"`meta.innerInstructions` to bind a random_id to its declared reveal path",
|
|
2811
|
-
"even when the logs were truncated away."
|
|
2812
|
-
];
|
|
2813
|
-
"type": {
|
|
2814
|
-
"kind": "struct";
|
|
2815
|
-
"fields": [
|
|
2816
|
-
{
|
|
2817
|
-
"name": "appId";
|
|
2818
|
-
"type": "string";
|
|
2819
|
-
},
|
|
2820
|
-
{
|
|
2821
|
-
"name": "randomId";
|
|
2822
|
-
"type": "string";
|
|
2823
|
-
},
|
|
2824
|
-
{
|
|
2825
|
-
"name": "revealPath";
|
|
2826
|
-
"type": "string";
|
|
2827
|
-
}
|
|
2828
|
-
];
|
|
2829
|
-
};
|
|
2830
|
-
},
|
|
2831
|
-
{
|
|
2832
|
-
"name": "setDocumentData";
|
|
2833
|
-
"type": {
|
|
2834
|
-
"kind": "struct";
|
|
2835
|
-
"fields": [
|
|
2836
|
-
{
|
|
2837
|
-
"name": "path";
|
|
2838
|
-
"type": "string";
|
|
2839
|
-
},
|
|
2840
|
-
{
|
|
2841
|
-
"name": "operations";
|
|
2842
|
-
"type": {
|
|
2843
|
-
"vec": {
|
|
2844
|
-
"defined": {
|
|
2845
|
-
"name": "fieldOperation";
|
|
2846
|
-
};
|
|
2847
|
-
};
|
|
2848
|
-
};
|
|
2849
|
-
}
|
|
2850
|
-
];
|
|
2851
|
-
};
|
|
2852
|
-
},
|
|
2853
|
-
{
|
|
2854
|
-
"name": "tarobaseApp";
|
|
2855
|
-
"type": {
|
|
2856
|
-
"kind": "struct";
|
|
2857
|
-
"fields": [
|
|
2858
|
-
{
|
|
2859
|
-
"name": "owner";
|
|
2860
|
-
"type": "pubkey";
|
|
2861
|
-
},
|
|
2862
|
-
{
|
|
2863
|
-
"name": "bump";
|
|
2864
|
-
"type": "u8";
|
|
2865
|
-
},
|
|
2866
|
-
{
|
|
2867
|
-
"name": "id";
|
|
2868
|
-
"type": "string";
|
|
2869
|
-
}
|
|
2870
|
-
];
|
|
2871
|
-
};
|
|
2872
|
-
},
|
|
2873
|
-
{
|
|
2874
|
-
"name": "txData";
|
|
2875
|
-
"type": {
|
|
2876
|
-
"kind": "struct";
|
|
2877
|
-
"fields": [
|
|
2878
|
-
{
|
|
2879
|
-
"name": "pluginFunctionKey";
|
|
2880
|
-
"type": "string";
|
|
2881
|
-
},
|
|
2882
|
-
{
|
|
2883
|
-
"name": "txData";
|
|
2884
|
-
"type": "bytes";
|
|
2885
|
-
},
|
|
2886
|
-
{
|
|
2887
|
-
"name": "raIndices";
|
|
2888
|
-
"type": "bytes";
|
|
2889
|
-
}
|
|
2890
|
-
];
|
|
2891
|
-
};
|
|
2892
|
-
},
|
|
2893
|
-
{
|
|
2894
|
-
"name": "updateAuthorityPermit";
|
|
2895
|
-
"type": {
|
|
2896
|
-
"kind": "struct";
|
|
2897
|
-
"fields": [
|
|
2898
|
-
{
|
|
2899
|
-
"name": "slotExpiry";
|
|
2900
|
-
"type": "u64";
|
|
2901
|
-
}
|
|
2902
|
-
];
|
|
2903
|
-
};
|
|
2904
|
-
}
|
|
2905
|
-
];
|
|
2906
|
-
};
|