@streamflow/distributor 8.0.1-alpha.p287.54fe41f → 8.0.1
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/cjs/index.cjs +214 -1572
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +0 -1
- package/dist/cjs/solana/descriptor/aligned_distributor.d.cts +505 -962
- package/dist/cjs/solana/descriptor/merkle_distributor.d.cts +560 -1272
- package/dist/cjs/solana/index.cjs +214 -1572
- package/dist/cjs/solana/index.cjs.map +1 -1
- package/dist/cjs/solana/index.d.cts +96 -37
- package/dist/esm/index.d.ts +0 -1
- package/dist/esm/index.js +213 -1571
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/solana/descriptor/aligned_distributor.d.ts +505 -962
- package/dist/esm/solana/descriptor/idl/aligned_distributor.json +2 -86
- package/dist/esm/solana/descriptor/idl/merkle_distributor.json +6 -194
- package/dist/esm/solana/descriptor/merkle_distributor.d.ts +560 -1272
- package/dist/esm/solana/index.d.ts +96 -37
- package/dist/esm/solana/index.js +213 -1572
- package/dist/esm/solana/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -5,966 +5,575 @@
|
|
|
5
5
|
* IDL can be found at `target/idl/aligned_distributor.json`.
|
|
6
6
|
*/
|
|
7
7
|
type AlignedDistributor = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
address: "aMERKpFAWoChCi5oZwPvgsSCoGpZKBiU7fi76bdZjt2";
|
|
9
|
+
metadata: {
|
|
10
|
+
name: "alignedDistributor";
|
|
11
|
+
version: "1.3.2";
|
|
12
|
+
spec: "0.1.0";
|
|
13
|
+
description: "Proxy for merkle distributor that updates Vesting duration according to token market performance.";
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
instructions: [
|
|
16
16
|
{
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
227,
|
|
21
|
-
230,
|
|
22
|
-
103,
|
|
23
|
-
13,
|
|
24
|
-
72,
|
|
25
|
-
141,
|
|
26
|
-
248
|
|
27
|
-
];
|
|
28
|
-
"accounts": [
|
|
17
|
+
name: "changeOracle";
|
|
18
|
+
discriminator: [177, 227, 230, 103, 13, 72, 141, 248];
|
|
19
|
+
accounts: [
|
|
29
20
|
{
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
];
|
|
34
|
-
"writable": true;
|
|
21
|
+
name: "alignedDistributor";
|
|
22
|
+
docs: ["The [MerkleDistributor]."];
|
|
23
|
+
writable: true;
|
|
35
24
|
},
|
|
36
25
|
{
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"writable": true;
|
|
42
|
-
"signer": true;
|
|
26
|
+
name: "admin";
|
|
27
|
+
docs: ["Admin signer"];
|
|
28
|
+
writable: true;
|
|
29
|
+
signer: true;
|
|
43
30
|
},
|
|
44
31
|
{
|
|
45
|
-
|
|
32
|
+
name: "newPriceOracle";
|
|
46
33
|
}
|
|
47
34
|
];
|
|
48
|
-
|
|
35
|
+
args: [
|
|
49
36
|
{
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
37
|
+
name: "ix";
|
|
38
|
+
type: {
|
|
39
|
+
defined: {
|
|
40
|
+
name: "changeOracleParams";
|
|
54
41
|
};
|
|
55
42
|
};
|
|
56
43
|
}
|
|
57
44
|
];
|
|
58
45
|
},
|
|
59
46
|
{
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
92,
|
|
64
|
-
142,
|
|
65
|
-
79,
|
|
66
|
-
33,
|
|
67
|
-
234,
|
|
68
|
-
82,
|
|
69
|
-
27
|
|
70
|
-
];
|
|
71
|
-
"accounts": [
|
|
47
|
+
name: "clawback";
|
|
48
|
+
discriminator: [111, 92, 142, 79, 33, 234, 82, 27];
|
|
49
|
+
accounts: [
|
|
72
50
|
{
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"pda": {
|
|
79
|
-
"seeds": [
|
|
51
|
+
name: "alignedDistributor";
|
|
52
|
+
docs: ["The [AlignedDistributor]."];
|
|
53
|
+
writable: true;
|
|
54
|
+
pda: {
|
|
55
|
+
seeds: [
|
|
80
56
|
{
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
97,
|
|
84
|
-
108,
|
|
85
|
-
105,
|
|
86
|
-
103,
|
|
87
|
-
110,
|
|
88
|
-
101,
|
|
89
|
-
100,
|
|
90
|
-
45,
|
|
91
|
-
100,
|
|
92
|
-
105,
|
|
93
|
-
115,
|
|
94
|
-
116,
|
|
95
|
-
114,
|
|
96
|
-
105,
|
|
97
|
-
98,
|
|
98
|
-
117,
|
|
99
|
-
116,
|
|
100
|
-
111,
|
|
101
|
-
114
|
|
102
|
-
];
|
|
57
|
+
kind: "const";
|
|
58
|
+
value: [97, 108, 105, 103, 110, 101, 100, 45, 100, 105, 115, 116, 114, 105, 98, 117, 116, 111, 114];
|
|
103
59
|
},
|
|
104
60
|
{
|
|
105
|
-
|
|
106
|
-
|
|
61
|
+
kind: "account";
|
|
62
|
+
path: "distributor";
|
|
107
63
|
}
|
|
108
64
|
];
|
|
109
65
|
};
|
|
110
66
|
},
|
|
111
67
|
{
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
];
|
|
116
|
-
"writable": true;
|
|
68
|
+
name: "distributor";
|
|
69
|
+
docs: ["The [MerkleDistributor]."];
|
|
70
|
+
writable: true;
|
|
117
71
|
},
|
|
118
72
|
{
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
];
|
|
123
|
-
"writable": true;
|
|
73
|
+
name: "from";
|
|
74
|
+
docs: ["Distributor ATA containing the tokens to distribute."];
|
|
75
|
+
writable: true;
|
|
124
76
|
},
|
|
125
77
|
{
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
];
|
|
130
|
-
"writable": true;
|
|
78
|
+
name: "to";
|
|
79
|
+
docs: ["The Clawback token account."];
|
|
80
|
+
writable: true;
|
|
131
81
|
},
|
|
132
82
|
{
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
"writable": true;
|
|
138
|
-
"signer": true;
|
|
83
|
+
name: "admin";
|
|
84
|
+
docs: ["Only Admin can trigger the clawback of funds"];
|
|
85
|
+
writable: true;
|
|
86
|
+
signer: true;
|
|
139
87
|
},
|
|
140
88
|
{
|
|
141
|
-
|
|
89
|
+
name: "mint";
|
|
142
90
|
},
|
|
143
91
|
{
|
|
144
|
-
|
|
145
|
-
|
|
92
|
+
name: "distributorProgram";
|
|
93
|
+
address: "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N";
|
|
146
94
|
},
|
|
147
95
|
{
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
];
|
|
152
|
-
"address": "11111111111111111111111111111111";
|
|
96
|
+
name: "systemProgram";
|
|
97
|
+
docs: ["The [System] program."];
|
|
98
|
+
address: "11111111111111111111111111111111";
|
|
153
99
|
},
|
|
154
100
|
{
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
"SPL [Token] program."
|
|
158
|
-
];
|
|
101
|
+
name: "tokenProgram";
|
|
102
|
+
docs: ["SPL [Token] program."];
|
|
159
103
|
}
|
|
160
104
|
];
|
|
161
|
-
|
|
105
|
+
args: [];
|
|
162
106
|
},
|
|
163
107
|
{
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
110,
|
|
168
|
-
4,
|
|
169
|
-
11,
|
|
170
|
-
131,
|
|
171
|
-
220,
|
|
172
|
-
84,
|
|
173
|
-
12
|
|
174
|
-
];
|
|
175
|
-
"accounts": [
|
|
108
|
+
name: "createTestOracle";
|
|
109
|
+
discriminator: [183, 110, 4, 11, 131, 220, 84, 12];
|
|
110
|
+
accounts: [
|
|
176
111
|
{
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
112
|
+
name: "creator";
|
|
113
|
+
writable: true;
|
|
114
|
+
signer: true;
|
|
180
115
|
},
|
|
181
116
|
{
|
|
182
|
-
|
|
117
|
+
name: "mint";
|
|
183
118
|
},
|
|
184
119
|
{
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
120
|
+
name: "testOracle";
|
|
121
|
+
writable: true;
|
|
122
|
+
pda: {
|
|
123
|
+
seeds: [
|
|
189
124
|
{
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
116,
|
|
193
|
-
101,
|
|
194
|
-
115,
|
|
195
|
-
116,
|
|
196
|
-
45,
|
|
197
|
-
111,
|
|
198
|
-
114,
|
|
199
|
-
97,
|
|
200
|
-
99,
|
|
201
|
-
108,
|
|
202
|
-
101
|
|
203
|
-
];
|
|
125
|
+
kind: "const";
|
|
126
|
+
value: [116, 101, 115, 116, 45, 111, 114, 97, 99, 108, 101];
|
|
204
127
|
},
|
|
205
128
|
{
|
|
206
|
-
|
|
207
|
-
|
|
129
|
+
kind: "account";
|
|
130
|
+
path: "mint";
|
|
208
131
|
},
|
|
209
132
|
{
|
|
210
|
-
|
|
211
|
-
|
|
133
|
+
kind: "account";
|
|
134
|
+
path: "creator";
|
|
212
135
|
}
|
|
213
136
|
];
|
|
214
137
|
};
|
|
215
138
|
},
|
|
216
139
|
{
|
|
217
|
-
|
|
218
|
-
|
|
140
|
+
name: "systemProgram";
|
|
141
|
+
address: "11111111111111111111111111111111";
|
|
219
142
|
}
|
|
220
143
|
];
|
|
221
|
-
|
|
144
|
+
args: [
|
|
222
145
|
{
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
146
|
+
name: "ix";
|
|
147
|
+
type: {
|
|
148
|
+
defined: {
|
|
149
|
+
name: "createTestOracleParams";
|
|
227
150
|
};
|
|
228
151
|
};
|
|
229
152
|
}
|
|
230
153
|
];
|
|
231
154
|
},
|
|
232
155
|
{
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
254,
|
|
237
|
-
19,
|
|
238
|
-
3,
|
|
239
|
-
172,
|
|
240
|
-
185,
|
|
241
|
-
85,
|
|
242
|
-
190
|
|
243
|
-
];
|
|
244
|
-
"accounts": [
|
|
245
|
-
{
|
|
246
|
-
"name": "payer";
|
|
247
|
-
"writable": true;
|
|
248
|
-
"signer": true;
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
"name": "mint";
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
"name": "creator";
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
"name": "testOracle";
|
|
258
|
-
"writable": true;
|
|
259
|
-
"pda": {
|
|
260
|
-
"seeds": [
|
|
261
|
-
{
|
|
262
|
-
"kind": "const";
|
|
263
|
-
"value": [
|
|
264
|
-
116,
|
|
265
|
-
101,
|
|
266
|
-
115,
|
|
267
|
-
116,
|
|
268
|
-
45,
|
|
269
|
-
111,
|
|
270
|
-
114,
|
|
271
|
-
97,
|
|
272
|
-
99,
|
|
273
|
-
108,
|
|
274
|
-
101
|
|
275
|
-
];
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
"kind": "account";
|
|
279
|
-
"path": "mint";
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
"kind": "account";
|
|
283
|
-
"path": "creator";
|
|
284
|
-
}
|
|
285
|
-
];
|
|
286
|
-
};
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
"name": "systemProgram";
|
|
290
|
-
"address": "11111111111111111111111111111111";
|
|
291
|
-
}
|
|
292
|
-
];
|
|
293
|
-
"args": [];
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
"name": "newDistributor";
|
|
297
|
-
"discriminator": [
|
|
298
|
-
32,
|
|
299
|
-
139,
|
|
300
|
-
112,
|
|
301
|
-
171,
|
|
302
|
-
0,
|
|
303
|
-
2,
|
|
304
|
-
225,
|
|
305
|
-
155
|
|
306
|
-
];
|
|
307
|
-
"accounts": [
|
|
156
|
+
name: "newDistributor";
|
|
157
|
+
discriminator: [32, 139, 112, 171, 0, 2, 225, 155];
|
|
158
|
+
accounts: [
|
|
308
159
|
{
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
160
|
+
name: "alignedDistributor";
|
|
161
|
+
writable: true;
|
|
162
|
+
pda: {
|
|
163
|
+
seeds: [
|
|
313
164
|
{
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
97,
|
|
317
|
-
108,
|
|
318
|
-
105,
|
|
319
|
-
103,
|
|
320
|
-
110,
|
|
321
|
-
101,
|
|
322
|
-
100,
|
|
323
|
-
45,
|
|
324
|
-
100,
|
|
325
|
-
105,
|
|
326
|
-
115,
|
|
327
|
-
116,
|
|
328
|
-
114,
|
|
329
|
-
105,
|
|
330
|
-
98,
|
|
331
|
-
117,
|
|
332
|
-
116,
|
|
333
|
-
111,
|
|
334
|
-
114
|
|
335
|
-
];
|
|
165
|
+
kind: "const";
|
|
166
|
+
value: [97, 108, 105, 103, 110, 101, 100, 45, 100, 105, 115, 116, 114, 105, 98, 117, 116, 111, 114];
|
|
336
167
|
},
|
|
337
168
|
{
|
|
338
|
-
|
|
339
|
-
|
|
169
|
+
kind: "account";
|
|
170
|
+
path: "distributor";
|
|
340
171
|
}
|
|
341
172
|
];
|
|
342
173
|
};
|
|
343
174
|
},
|
|
344
175
|
{
|
|
345
|
-
|
|
176
|
+
name: "priceOracle";
|
|
346
177
|
},
|
|
347
178
|
{
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
179
|
+
name: "withdrawor";
|
|
180
|
+
writable: true;
|
|
181
|
+
address: "wdrwhnCv4pzW8beKsbPa4S2UDZrXenjg16KJdKSpb5u";
|
|
351
182
|
},
|
|
352
183
|
{
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
];
|
|
357
|
-
"writable": true;
|
|
184
|
+
name: "clawbackReceiver";
|
|
185
|
+
docs: ["Clawback receiver token account"];
|
|
186
|
+
writable: true;
|
|
358
187
|
},
|
|
359
188
|
{
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
"The mint to distribute."
|
|
363
|
-
];
|
|
189
|
+
name: "mint";
|
|
190
|
+
docs: ["The mint to distribute."];
|
|
364
191
|
},
|
|
365
192
|
{
|
|
366
|
-
|
|
367
|
-
|
|
193
|
+
name: "distributor";
|
|
194
|
+
writable: true;
|
|
368
195
|
},
|
|
369
196
|
{
|
|
370
|
-
|
|
371
|
-
|
|
197
|
+
name: "tokenVault";
|
|
198
|
+
writable: true;
|
|
372
199
|
},
|
|
373
200
|
{
|
|
374
|
-
|
|
375
|
-
|
|
201
|
+
name: "admin";
|
|
202
|
+
docs: [
|
|
376
203
|
"Original Admin wallet, responsible for creating the distributor and paying for the transaction.",
|
|
377
204
|
"Also has the authority to set the clawback receiver and change itself."
|
|
378
205
|
];
|
|
379
|
-
|
|
380
|
-
|
|
206
|
+
writable: true;
|
|
207
|
+
signer: true;
|
|
381
208
|
},
|
|
382
209
|
{
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
];
|
|
387
|
-
"address": "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N";
|
|
210
|
+
name: "distributorProgram";
|
|
211
|
+
docs: ["MerkleDistributor program"];
|
|
212
|
+
address: "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N";
|
|
388
213
|
},
|
|
389
214
|
{
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
];
|
|
394
|
-
"address": "11111111111111111111111111111111";
|
|
215
|
+
name: "systemProgram";
|
|
216
|
+
docs: ["The [System] program."];
|
|
217
|
+
address: "11111111111111111111111111111111";
|
|
395
218
|
},
|
|
396
219
|
{
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
];
|
|
401
|
-
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
220
|
+
name: "associatedTokenProgram";
|
|
221
|
+
docs: ["The [Associated Token] program."];
|
|
222
|
+
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
402
223
|
},
|
|
403
224
|
{
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
"The [Token] program."
|
|
407
|
-
];
|
|
225
|
+
name: "tokenProgram";
|
|
226
|
+
docs: ["The [Token] program."];
|
|
408
227
|
}
|
|
409
228
|
];
|
|
410
|
-
|
|
229
|
+
args: [
|
|
411
230
|
{
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
231
|
+
name: "ix";
|
|
232
|
+
type: {
|
|
233
|
+
defined: {
|
|
234
|
+
name: "newDistributorIx";
|
|
416
235
|
};
|
|
417
236
|
};
|
|
418
237
|
}
|
|
419
238
|
];
|
|
420
239
|
},
|
|
421
240
|
{
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
221,
|
|
426
|
-
116,
|
|
427
|
-
4,
|
|
428
|
-
198,
|
|
429
|
-
251,
|
|
430
|
-
244,
|
|
431
|
-
206
|
|
432
|
-
];
|
|
433
|
-
"accounts": [
|
|
434
|
-
{
|
|
435
|
-
"name": "payer";
|
|
436
|
-
"writable": true;
|
|
437
|
-
"signer": true;
|
|
438
|
-
},
|
|
241
|
+
name: "setAdmin";
|
|
242
|
+
discriminator: [251, 163, 0, 52, 91, 194, 187, 92];
|
|
243
|
+
accounts: [
|
|
439
244
|
{
|
|
440
|
-
|
|
245
|
+
name: "alignedDistributor";
|
|
246
|
+
docs: ["The [MerkleDistributor]."];
|
|
247
|
+
writable: true;
|
|
441
248
|
},
|
|
442
249
|
{
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
"writable": true;
|
|
448
|
-
"pda": {
|
|
449
|
-
"seeds": [
|
|
450
|
-
{
|
|
451
|
-
"kind": "const";
|
|
452
|
-
"value": [
|
|
453
|
-
116,
|
|
454
|
-
101,
|
|
455
|
-
115,
|
|
456
|
-
116,
|
|
457
|
-
45,
|
|
458
|
-
111,
|
|
459
|
-
114,
|
|
460
|
-
97,
|
|
461
|
-
99,
|
|
462
|
-
108,
|
|
463
|
-
101
|
|
464
|
-
];
|
|
465
|
-
},
|
|
466
|
-
{
|
|
467
|
-
"kind": "account";
|
|
468
|
-
"path": "mint";
|
|
469
|
-
},
|
|
470
|
-
{
|
|
471
|
-
"kind": "account";
|
|
472
|
-
"path": "creator";
|
|
473
|
-
}
|
|
474
|
-
];
|
|
475
|
-
};
|
|
250
|
+
name: "admin";
|
|
251
|
+
docs: ["Admin signer"];
|
|
252
|
+
writable: true;
|
|
253
|
+
signer: true;
|
|
476
254
|
},
|
|
477
255
|
{
|
|
478
|
-
|
|
479
|
-
|
|
256
|
+
name: "newAdmin";
|
|
257
|
+
docs: ["New admin account"];
|
|
258
|
+
writable: true;
|
|
480
259
|
}
|
|
481
260
|
];
|
|
482
|
-
|
|
261
|
+
args: [];
|
|
483
262
|
},
|
|
484
263
|
{
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
163,
|
|
489
|
-
0,
|
|
490
|
-
52,
|
|
491
|
-
91,
|
|
492
|
-
194,
|
|
493
|
-
187,
|
|
494
|
-
92
|
|
495
|
-
];
|
|
496
|
-
"accounts": [
|
|
264
|
+
name: "setTestOracleAuthority";
|
|
265
|
+
discriminator: [26, 66, 233, 99, 38, 118, 181, 247];
|
|
266
|
+
accounts: [
|
|
497
267
|
{
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
];
|
|
502
|
-
"writable": true;
|
|
268
|
+
name: "authority";
|
|
269
|
+
writable: true;
|
|
270
|
+
signer: true;
|
|
503
271
|
},
|
|
504
272
|
{
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
"Admin signer"
|
|
508
|
-
];
|
|
509
|
-
"writable": true;
|
|
510
|
-
"signer": true;
|
|
273
|
+
name: "testOracle";
|
|
274
|
+
writable: true;
|
|
511
275
|
},
|
|
512
276
|
{
|
|
513
|
-
|
|
514
|
-
"docs": [
|
|
515
|
-
"New admin account"
|
|
516
|
-
];
|
|
517
|
-
"writable": true;
|
|
277
|
+
name: "newAuthority";
|
|
518
278
|
}
|
|
519
279
|
];
|
|
520
|
-
|
|
280
|
+
args: [];
|
|
521
281
|
},
|
|
522
282
|
{
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
66,
|
|
527
|
-
233,
|
|
528
|
-
99,
|
|
529
|
-
38,
|
|
530
|
-
118,
|
|
531
|
-
181,
|
|
532
|
-
247
|
|
533
|
-
];
|
|
534
|
-
"accounts": [
|
|
535
|
-
{
|
|
536
|
-
"name": "authority";
|
|
537
|
-
"writable": true;
|
|
538
|
-
"signer": true;
|
|
539
|
-
},
|
|
283
|
+
name: "updateDuration";
|
|
284
|
+
discriminator: [69, 126, 172, 250, 164, 14, 10, 161];
|
|
285
|
+
accounts: [
|
|
540
286
|
{
|
|
541
|
-
|
|
542
|
-
"
|
|
287
|
+
name: "authority";
|
|
288
|
+
docs: ["Wallet authorised to call this method"];
|
|
289
|
+
writable: true;
|
|
290
|
+
signer: true;
|
|
543
291
|
},
|
|
544
292
|
{
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
{
|
|
551
|
-
"name": "updateDuration";
|
|
552
|
-
"discriminator": [
|
|
553
|
-
69,
|
|
554
|
-
126,
|
|
555
|
-
172,
|
|
556
|
-
250,
|
|
557
|
-
164,
|
|
558
|
-
14,
|
|
559
|
-
10,
|
|
560
|
-
161
|
|
561
|
-
];
|
|
562
|
-
"accounts": [
|
|
563
|
-
{
|
|
564
|
-
"name": "authority";
|
|
565
|
-
"docs": [
|
|
566
|
-
"Wallet authorised to call this method"
|
|
567
|
-
];
|
|
568
|
-
"writable": true;
|
|
569
|
-
"signer": true;
|
|
570
|
-
},
|
|
571
|
-
{
|
|
572
|
-
"name": "alignedDistributor";
|
|
573
|
-
"docs": [
|
|
574
|
-
"The account holding the proxy parameters."
|
|
575
|
-
];
|
|
576
|
-
"writable": true;
|
|
577
|
-
"pda": {
|
|
578
|
-
"seeds": [
|
|
293
|
+
name: "alignedDistributor";
|
|
294
|
+
docs: ["The account holding the proxy parameters."];
|
|
295
|
+
writable: true;
|
|
296
|
+
pda: {
|
|
297
|
+
seeds: [
|
|
579
298
|
{
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
97,
|
|
583
|
-
108,
|
|
584
|
-
105,
|
|
585
|
-
103,
|
|
586
|
-
110,
|
|
587
|
-
101,
|
|
588
|
-
100,
|
|
589
|
-
45,
|
|
590
|
-
100,
|
|
591
|
-
105,
|
|
592
|
-
115,
|
|
593
|
-
116,
|
|
594
|
-
114,
|
|
595
|
-
105,
|
|
596
|
-
98,
|
|
597
|
-
117,
|
|
598
|
-
116,
|
|
599
|
-
111,
|
|
600
|
-
114
|
|
601
|
-
];
|
|
299
|
+
kind: "const";
|
|
300
|
+
value: [97, 108, 105, 103, 110, 101, 100, 45, 100, 105, 115, 116, 114, 105, 98, 117, 116, 111, 114];
|
|
602
301
|
},
|
|
603
302
|
{
|
|
604
|
-
|
|
605
|
-
|
|
303
|
+
kind: "account";
|
|
304
|
+
path: "distributor";
|
|
606
305
|
}
|
|
607
306
|
];
|
|
608
307
|
};
|
|
609
308
|
},
|
|
610
309
|
{
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
];
|
|
615
|
-
"writable": true;
|
|
310
|
+
name: "distributor";
|
|
311
|
+
docs: ["The account holding the vesting parameters."];
|
|
312
|
+
writable: true;
|
|
616
313
|
},
|
|
617
314
|
{
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
"alignedDistributor"
|
|
621
|
-
];
|
|
315
|
+
name: "priceOracle";
|
|
316
|
+
relations: ["alignedDistributor"];
|
|
622
317
|
},
|
|
623
318
|
{
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
];
|
|
628
|
-
"address": "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N";
|
|
319
|
+
name: "distributorProgram";
|
|
320
|
+
docs: ["MerkleDistributor program"];
|
|
321
|
+
address: "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N";
|
|
629
322
|
},
|
|
630
323
|
{
|
|
631
|
-
|
|
632
|
-
|
|
324
|
+
name: "systemProgram";
|
|
325
|
+
address: "11111111111111111111111111111111";
|
|
633
326
|
}
|
|
634
327
|
];
|
|
635
|
-
|
|
328
|
+
args: [];
|
|
636
329
|
},
|
|
637
330
|
{
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
147,
|
|
642
|
-
215,
|
|
643
|
-
74,
|
|
644
|
-
34,
|
|
645
|
-
123,
|
|
646
|
-
80,
|
|
647
|
-
76
|
|
648
|
-
];
|
|
649
|
-
"accounts": [
|
|
331
|
+
name: "updateTestOracle";
|
|
332
|
+
discriminator: [158, 147, 215, 74, 34, 123, 80, 76];
|
|
333
|
+
accounts: [
|
|
650
334
|
{
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
335
|
+
name: "authority";
|
|
336
|
+
writable: true;
|
|
337
|
+
signer: true;
|
|
654
338
|
},
|
|
655
339
|
{
|
|
656
|
-
|
|
657
|
-
|
|
340
|
+
name: "testOracle";
|
|
341
|
+
writable: true;
|
|
658
342
|
}
|
|
659
343
|
];
|
|
660
|
-
|
|
344
|
+
args: [
|
|
661
345
|
{
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
346
|
+
name: "ix";
|
|
347
|
+
type: {
|
|
348
|
+
defined: {
|
|
349
|
+
name: "updateTestOracleParams";
|
|
666
350
|
};
|
|
667
351
|
};
|
|
668
352
|
}
|
|
669
353
|
];
|
|
670
354
|
}
|
|
671
355
|
];
|
|
672
|
-
|
|
356
|
+
accounts: [
|
|
673
357
|
{
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
128,
|
|
677
|
-
76,
|
|
678
|
-
80,
|
|
679
|
-
203,
|
|
680
|
-
248,
|
|
681
|
-
175,
|
|
682
|
-
3,
|
|
683
|
-
43
|
|
684
|
-
];
|
|
358
|
+
name: "alignedDistributor";
|
|
359
|
+
discriminator: [128, 76, 80, 203, 248, 175, 3, 43];
|
|
685
360
|
},
|
|
686
361
|
{
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
77,
|
|
690
|
-
119,
|
|
691
|
-
139,
|
|
692
|
-
70,
|
|
693
|
-
84,
|
|
694
|
-
247,
|
|
695
|
-
12,
|
|
696
|
-
26
|
|
697
|
-
];
|
|
362
|
+
name: "merkleDistributor";
|
|
363
|
+
discriminator: [77, 119, 139, 70, 84, 247, 12, 26];
|
|
698
364
|
},
|
|
699
365
|
{
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
198,
|
|
703
|
-
49,
|
|
704
|
-
63,
|
|
705
|
-
134,
|
|
706
|
-
232,
|
|
707
|
-
251,
|
|
708
|
-
168,
|
|
709
|
-
28
|
|
710
|
-
];
|
|
366
|
+
name: "testOracle";
|
|
367
|
+
discriminator: [198, 49, 63, 134, 232, 251, 168, 28];
|
|
711
368
|
}
|
|
712
369
|
];
|
|
713
|
-
|
|
370
|
+
errors: [
|
|
714
371
|
{
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
372
|
+
code: 6000;
|
|
373
|
+
name: "unauthorized";
|
|
374
|
+
msg: "Account is not authorized to execute this instruction";
|
|
718
375
|
},
|
|
719
376
|
{
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
377
|
+
code: 6001;
|
|
378
|
+
name: "arithmeticError";
|
|
379
|
+
msg: "Arithmetic error";
|
|
723
380
|
},
|
|
724
381
|
{
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
382
|
+
code: 6002;
|
|
383
|
+
name: "noLockedAmount";
|
|
384
|
+
msg: "Provided Distributor has no locked amount";
|
|
728
385
|
},
|
|
729
386
|
{
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
387
|
+
code: 6003;
|
|
388
|
+
name: "invalidUpdatePeriod";
|
|
389
|
+
msg: "Provided is invalid, should be equal or more than 30 seconds and unlock_period";
|
|
733
390
|
},
|
|
734
391
|
{
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
392
|
+
code: 6004;
|
|
393
|
+
name: "invalidTickSize";
|
|
394
|
+
msg: "Provided percentage tick size is invalid";
|
|
738
395
|
},
|
|
739
396
|
{
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
397
|
+
code: 6005;
|
|
398
|
+
name: "invalidPercentageBoundaries";
|
|
399
|
+
msg: "Provided percentage bounds are invalid";
|
|
743
400
|
},
|
|
744
401
|
{
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
402
|
+
code: 6006;
|
|
403
|
+
name: "invalidPriceBoundaries";
|
|
404
|
+
msg: "Provided price bounds are invalid";
|
|
748
405
|
},
|
|
749
406
|
{
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
407
|
+
code: 6007;
|
|
408
|
+
name: "unsupportedOracle";
|
|
409
|
+
msg: "Unsupported price oracle";
|
|
753
410
|
},
|
|
754
411
|
{
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
412
|
+
code: 6008;
|
|
413
|
+
name: "invalidOracleAccount";
|
|
414
|
+
msg: "Invalid oracle account";
|
|
758
415
|
},
|
|
759
416
|
{
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
417
|
+
code: 6009;
|
|
418
|
+
name: "invalidOraclePrice";
|
|
419
|
+
msg: "Invalid oracle price";
|
|
763
420
|
},
|
|
764
421
|
{
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
422
|
+
code: 6010;
|
|
423
|
+
name: "durationAlreadyUpdated";
|
|
424
|
+
msg: "Duration has been already updated in this period";
|
|
768
425
|
},
|
|
769
426
|
{
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
427
|
+
code: 6011;
|
|
428
|
+
name: "vestingAlreadyFinished";
|
|
429
|
+
msg: "Vesting already finished";
|
|
773
430
|
},
|
|
774
431
|
{
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
432
|
+
code: 6012;
|
|
433
|
+
name: "sameAdmin";
|
|
434
|
+
msg: "New and old admin are identical";
|
|
778
435
|
},
|
|
779
436
|
{
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
437
|
+
code: 6013;
|
|
438
|
+
name: "invalidMint";
|
|
439
|
+
msg: "Invalid Mint";
|
|
783
440
|
}
|
|
784
441
|
];
|
|
785
|
-
|
|
442
|
+
types: [
|
|
786
443
|
{
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
"kind": "struct";
|
|
793
|
-
"fields": [
|
|
444
|
+
name: "alignedDistributor";
|
|
445
|
+
docs: ["State for the account which distributes tokens."];
|
|
446
|
+
type: {
|
|
447
|
+
kind: "struct";
|
|
448
|
+
fields: [
|
|
794
449
|
{
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
];
|
|
799
|
-
"type": "u8";
|
|
450
|
+
name: "bump";
|
|
451
|
+
docs: ["Bump seed."];
|
|
452
|
+
type: "u8";
|
|
800
453
|
},
|
|
801
454
|
{
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
];
|
|
806
|
-
"type": "pubkey";
|
|
455
|
+
name: "distributor";
|
|
456
|
+
docs: ["[Mint] of the token to be distributed."];
|
|
457
|
+
type: "pubkey";
|
|
807
458
|
},
|
|
808
459
|
{
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
];
|
|
813
|
-
"type": "pubkey";
|
|
460
|
+
name: "admin";
|
|
461
|
+
docs: ["Admin wallet"];
|
|
462
|
+
type: "pubkey";
|
|
814
463
|
},
|
|
815
464
|
{
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
"defined": {
|
|
822
|
-
"name": "oracleType";
|
|
465
|
+
name: "priceOracleType";
|
|
466
|
+
docs: ["Type of the Oracle used to derive Token Price"];
|
|
467
|
+
type: {
|
|
468
|
+
defined: {
|
|
469
|
+
name: "oracleType";
|
|
823
470
|
};
|
|
824
471
|
};
|
|
825
472
|
},
|
|
826
473
|
{
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
];
|
|
831
|
-
"type": "pubkey";
|
|
474
|
+
name: "priceOracle";
|
|
475
|
+
docs: ["Address of the Price Oracle"];
|
|
476
|
+
type: "pubkey";
|
|
832
477
|
},
|
|
833
478
|
{
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
];
|
|
838
|
-
"type": "u64";
|
|
479
|
+
name: "updatePeriod";
|
|
480
|
+
docs: ["Period of updates, can be different from unlock period if needed"];
|
|
481
|
+
type: "u64";
|
|
839
482
|
},
|
|
840
483
|
{
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
];
|
|
845
|
-
"type": "u64";
|
|
484
|
+
name: "minPrice";
|
|
485
|
+
docs: ["Min price boundary"];
|
|
486
|
+
type: "u64";
|
|
846
487
|
},
|
|
847
488
|
{
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
];
|
|
852
|
-
"type": "u64";
|
|
489
|
+
name: "maxPrice";
|
|
490
|
+
docs: ["Max price boundary"];
|
|
491
|
+
type: "u64";
|
|
853
492
|
},
|
|
854
493
|
{
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
];
|
|
859
|
-
"type": "u64";
|
|
494
|
+
name: "minPercentage";
|
|
495
|
+
docs: ["Min percentage boundary, can be 0 that equals 1 Raw Token"];
|
|
496
|
+
type: "u64";
|
|
860
497
|
},
|
|
861
498
|
{
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
];
|
|
866
|
-
"type": "u64";
|
|
499
|
+
name: "maxPercentage";
|
|
500
|
+
docs: ["Max percentage boundary"];
|
|
501
|
+
type: "u64";
|
|
867
502
|
},
|
|
868
503
|
{
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
];
|
|
873
|
-
"type": "u64";
|
|
504
|
+
name: "tickSize";
|
|
505
|
+
docs: ["Ticket size for percentage boundaries"];
|
|
506
|
+
type: "u64";
|
|
874
507
|
},
|
|
875
508
|
{
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
];
|
|
880
|
-
"type": "u64";
|
|
509
|
+
name: "startTs";
|
|
510
|
+
docs: ["Copy start ts from the Distributor to be used in the worker"];
|
|
511
|
+
type: "u64";
|
|
881
512
|
},
|
|
882
513
|
{
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
];
|
|
887
|
-
"type": "u64";
|
|
514
|
+
name: "endTs";
|
|
515
|
+
docs: ["Copy end ts from the Distributor to be used in the worker"];
|
|
516
|
+
type: "u64";
|
|
888
517
|
},
|
|
889
518
|
{
|
|
890
|
-
|
|
891
|
-
|
|
519
|
+
name: "lastDurationUpdateTs";
|
|
520
|
+
docs: [
|
|
892
521
|
"Copy last_duration_update_ts from Distributor for our worker to be able to fetch it in one call with the proxy"
|
|
893
522
|
];
|
|
894
|
-
|
|
523
|
+
type: "u64";
|
|
895
524
|
},
|
|
896
525
|
{
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
];
|
|
901
|
-
"type": "u64";
|
|
526
|
+
name: "lastPrice";
|
|
527
|
+
docs: ["Price used on last amount calculation"];
|
|
528
|
+
type: "u64";
|
|
902
529
|
},
|
|
903
530
|
{
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
];
|
|
908
|
-
"type": "u64";
|
|
531
|
+
name: "initialDuration";
|
|
532
|
+
docs: ["Initial Airdrop Vesting duration"];
|
|
533
|
+
type: "u64";
|
|
909
534
|
},
|
|
910
535
|
{
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
];
|
|
915
|
-
"type": "u64";
|
|
536
|
+
name: "initialPrice";
|
|
537
|
+
docs: ["Initial token price at the time of Contract creation"];
|
|
538
|
+
type: "u64";
|
|
916
539
|
},
|
|
917
540
|
{
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
];
|
|
922
|
-
"type": "bool";
|
|
541
|
+
name: "distributorClawedBack";
|
|
542
|
+
docs: ["Whether distributor was clawed backed"];
|
|
543
|
+
type: "bool";
|
|
923
544
|
},
|
|
924
545
|
{
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
];
|
|
929
|
-
"type": "pubkey";
|
|
546
|
+
name: "mint";
|
|
547
|
+
docs: ["Mint for which the distributor was created"];
|
|
548
|
+
type: "pubkey";
|
|
930
549
|
},
|
|
931
550
|
{
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
"type": {
|
|
937
|
-
"array": [
|
|
938
|
-
"u8",
|
|
939
|
-
32
|
|
940
|
-
];
|
|
551
|
+
name: "buffer2";
|
|
552
|
+
docs: ["Buffer for additional fields"];
|
|
553
|
+
type: {
|
|
554
|
+
array: ["u8", 32];
|
|
941
555
|
};
|
|
942
556
|
},
|
|
943
557
|
{
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
"type": {
|
|
949
|
-
"array": [
|
|
950
|
-
"u8",
|
|
951
|
-
32
|
|
952
|
-
];
|
|
558
|
+
name: "buffer3";
|
|
559
|
+
docs: ["Buffer for additional fields"];
|
|
560
|
+
type: {
|
|
561
|
+
array: ["u8", 32];
|
|
953
562
|
};
|
|
954
563
|
}
|
|
955
564
|
];
|
|
956
565
|
};
|
|
957
566
|
},
|
|
958
567
|
{
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
{
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
568
|
+
name: "changeOracleParams";
|
|
569
|
+
type: {
|
|
570
|
+
kind: "struct";
|
|
571
|
+
fields: [
|
|
572
|
+
{
|
|
573
|
+
name: "oracleType";
|
|
574
|
+
type: {
|
|
575
|
+
defined: {
|
|
576
|
+
name: "oracleType";
|
|
968
577
|
};
|
|
969
578
|
};
|
|
970
579
|
}
|
|
@@ -972,413 +581,347 @@ type AlignedDistributor = {
|
|
|
972
581
|
};
|
|
973
582
|
},
|
|
974
583
|
{
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
584
|
+
name: "createTestOracleParams";
|
|
585
|
+
type: {
|
|
586
|
+
kind: "struct";
|
|
587
|
+
fields: [
|
|
979
588
|
{
|
|
980
|
-
|
|
981
|
-
|
|
589
|
+
name: "price";
|
|
590
|
+
type: "u64";
|
|
982
591
|
},
|
|
983
592
|
{
|
|
984
|
-
|
|
985
|
-
|
|
593
|
+
name: "expo";
|
|
594
|
+
type: "i32";
|
|
986
595
|
},
|
|
987
596
|
{
|
|
988
|
-
|
|
989
|
-
|
|
597
|
+
name: "conf";
|
|
598
|
+
type: "u64";
|
|
990
599
|
},
|
|
991
600
|
{
|
|
992
|
-
|
|
993
|
-
|
|
601
|
+
name: "publishTime";
|
|
602
|
+
type: "i64";
|
|
994
603
|
}
|
|
995
604
|
];
|
|
996
605
|
};
|
|
997
606
|
},
|
|
998
607
|
{
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
"kind": "struct";
|
|
1005
|
-
"fields": [
|
|
608
|
+
name: "merkleDistributor";
|
|
609
|
+
docs: ["State for the account which distributes tokens."];
|
|
610
|
+
type: {
|
|
611
|
+
kind: "struct";
|
|
612
|
+
fields: [
|
|
1006
613
|
{
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
];
|
|
1011
|
-
"type": "u8";
|
|
614
|
+
name: "bump";
|
|
615
|
+
docs: ["Bump seed."];
|
|
616
|
+
type: "u8";
|
|
1012
617
|
},
|
|
1013
618
|
{
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
];
|
|
1018
|
-
"type": "u64";
|
|
619
|
+
name: "version";
|
|
620
|
+
docs: ["Version of the airdrop"];
|
|
621
|
+
type: "u64";
|
|
1019
622
|
},
|
|
1020
623
|
{
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
"type": {
|
|
1026
|
-
"array": [
|
|
1027
|
-
"u8",
|
|
1028
|
-
32
|
|
1029
|
-
];
|
|
624
|
+
name: "root";
|
|
625
|
+
docs: ["The 256-bit merkle root."];
|
|
626
|
+
type: {
|
|
627
|
+
array: ["u8", 32];
|
|
1030
628
|
};
|
|
1031
629
|
},
|
|
1032
630
|
{
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
];
|
|
1037
|
-
"type": "pubkey";
|
|
631
|
+
name: "mint";
|
|
632
|
+
docs: ["[Mint] of the token to be distributed."];
|
|
633
|
+
type: "pubkey";
|
|
1038
634
|
},
|
|
1039
635
|
{
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
];
|
|
1044
|
-
"type": "pubkey";
|
|
636
|
+
name: "tokenVault";
|
|
637
|
+
docs: ["Token Address of the vault"];
|
|
638
|
+
type: "pubkey";
|
|
1045
639
|
},
|
|
1046
640
|
{
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
];
|
|
1051
|
-
"type": "u64";
|
|
641
|
+
name: "maxTotalClaim";
|
|
642
|
+
docs: ["Maximum number of tokens that can ever be claimed from this [MerkleDistributor]."];
|
|
643
|
+
type: "u64";
|
|
1052
644
|
},
|
|
1053
645
|
{
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
];
|
|
1058
|
-
"type": "u64";
|
|
646
|
+
name: "maxNumNodes";
|
|
647
|
+
docs: ["Maximum number of nodes in [MerkleDistributor]."];
|
|
648
|
+
type: "u64";
|
|
1059
649
|
},
|
|
1060
650
|
{
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
];
|
|
1065
|
-
"type": "u64";
|
|
651
|
+
name: "unlockPeriod";
|
|
652
|
+
docs: ["Time step (period) in seconds per which the unlock occurs"];
|
|
653
|
+
type: "u64";
|
|
1066
654
|
},
|
|
1067
655
|
{
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
];
|
|
1072
|
-
"type": "u64";
|
|
656
|
+
name: "totalAmountClaimed";
|
|
657
|
+
docs: ["Total amount of tokens that have been claimed."];
|
|
658
|
+
type: "u64";
|
|
1073
659
|
},
|
|
1074
660
|
{
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
];
|
|
1079
|
-
"type": "u64";
|
|
661
|
+
name: "numNodesClaimed";
|
|
662
|
+
docs: ["Number of nodes that have been claimed."];
|
|
663
|
+
type: "u64";
|
|
1080
664
|
},
|
|
1081
665
|
{
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
];
|
|
1086
|
-
"type": "u64";
|
|
666
|
+
name: "startTs";
|
|
667
|
+
docs: ["Lockup time start (Unix Timestamp)"];
|
|
668
|
+
type: "u64";
|
|
1087
669
|
},
|
|
1088
670
|
{
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
];
|
|
1093
|
-
"type": "u64";
|
|
671
|
+
name: "endTs";
|
|
672
|
+
docs: ["Lockup time end (Unix Timestamp)"];
|
|
673
|
+
type: "u64";
|
|
1094
674
|
},
|
|
1095
675
|
{
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
];
|
|
1100
|
-
"type": "u64";
|
|
676
|
+
name: "clawbackStartTs";
|
|
677
|
+
docs: ["Clawback start (Unix Timestamp)"];
|
|
678
|
+
type: "u64";
|
|
1101
679
|
},
|
|
1102
680
|
{
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
];
|
|
1107
|
-
"type": "pubkey";
|
|
681
|
+
name: "clawbackReceiver";
|
|
682
|
+
docs: ["Clawback receiver"];
|
|
683
|
+
type: "pubkey";
|
|
1108
684
|
},
|
|
1109
685
|
{
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
];
|
|
1114
|
-
"type": "pubkey";
|
|
686
|
+
name: "admin";
|
|
687
|
+
docs: ["Admin wallet"];
|
|
688
|
+
type: "pubkey";
|
|
1115
689
|
},
|
|
1116
690
|
{
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
];
|
|
1121
|
-
"type": "bool";
|
|
691
|
+
name: "clawedBack";
|
|
692
|
+
docs: ["Whether or not the distributor has been clawed back"];
|
|
693
|
+
type: "bool";
|
|
1122
694
|
},
|
|
1123
695
|
{
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
];
|
|
1128
|
-
"type": "bool";
|
|
696
|
+
name: "claimsClosableByAdmin";
|
|
697
|
+
docs: ["Whether claims are closable by the admin or not"];
|
|
698
|
+
type: "bool";
|
|
1129
699
|
},
|
|
1130
700
|
{
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
];
|
|
1135
|
-
"type": "bool";
|
|
701
|
+
name: "canUpdateDuration";
|
|
702
|
+
docs: ["Whether admin can update vesting duration"];
|
|
703
|
+
type: "bool";
|
|
1136
704
|
},
|
|
1137
705
|
{
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
];
|
|
1142
|
-
"type": "u64";
|
|
706
|
+
name: "totalAmountUnlocked";
|
|
707
|
+
docs: ["Total amount of funds unlocked (cliff/instant)"];
|
|
708
|
+
type: "u64";
|
|
1143
709
|
},
|
|
1144
710
|
{
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
];
|
|
1149
|
-
"type": "u64";
|
|
711
|
+
name: "totalAmountLocked";
|
|
712
|
+
docs: ["Total amount of funds locked (vested)"];
|
|
713
|
+
type: "u64";
|
|
1150
714
|
},
|
|
1151
715
|
{
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
];
|
|
1156
|
-
"type": "u64";
|
|
716
|
+
name: "lastDurationUpdateTs";
|
|
717
|
+
docs: ["Timestamp when update was last called"];
|
|
718
|
+
type: "u64";
|
|
1157
719
|
},
|
|
1158
720
|
{
|
|
1159
|
-
|
|
1160
|
-
|
|
721
|
+
name: "totalClaimablePreUpdate";
|
|
722
|
+
docs: [
|
|
1161
723
|
"Total amount of locked amount claimable as of last duration update, ever increasing total, accumulates with each update"
|
|
1162
724
|
];
|
|
1163
|
-
|
|
725
|
+
type: "u64";
|
|
1164
726
|
},
|
|
1165
727
|
{
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
];
|
|
1170
|
-
"type": "u64";
|
|
728
|
+
name: "clawedBackTs";
|
|
729
|
+
docs: ["Timestamp when funds were clawed back"];
|
|
730
|
+
type: "u64";
|
|
1171
731
|
},
|
|
1172
732
|
{
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
];
|
|
1177
|
-
"type": "bool";
|
|
733
|
+
name: "claimsClosableByClaimant";
|
|
734
|
+
docs: ["Whether claims are closable by claimant or not"];
|
|
735
|
+
type: "bool";
|
|
1178
736
|
},
|
|
1179
737
|
{
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
];
|
|
1184
|
-
"type": "u16";
|
|
738
|
+
name: "claimsLimit";
|
|
739
|
+
docs: ["Limit number of claims"];
|
|
740
|
+
type: "u16";
|
|
1185
741
|
},
|
|
1186
742
|
{
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
"type": {
|
|
1192
|
-
"array": [
|
|
1193
|
-
"u8",
|
|
1194
|
-
20
|
|
1195
|
-
];
|
|
743
|
+
name: "buffer2";
|
|
744
|
+
docs: ["Buffer for additional fields"];
|
|
745
|
+
type: {
|
|
746
|
+
array: ["u8", 20];
|
|
1196
747
|
};
|
|
1197
748
|
},
|
|
1198
749
|
{
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
"type": {
|
|
1204
|
-
"array": [
|
|
1205
|
-
"u8",
|
|
1206
|
-
32
|
|
1207
|
-
];
|
|
750
|
+
name: "buffer3";
|
|
751
|
+
docs: ["Buffer for additional fields"];
|
|
752
|
+
type: {
|
|
753
|
+
array: ["u8", 32];
|
|
1208
754
|
};
|
|
1209
755
|
}
|
|
1210
756
|
];
|
|
1211
757
|
};
|
|
1212
758
|
},
|
|
1213
759
|
{
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
760
|
+
name: "newDistributorIx";
|
|
761
|
+
type: {
|
|
762
|
+
kind: "struct";
|
|
763
|
+
fields: [
|
|
1218
764
|
{
|
|
1219
|
-
|
|
1220
|
-
|
|
765
|
+
name: "version";
|
|
766
|
+
type: "u64";
|
|
1221
767
|
},
|
|
1222
768
|
{
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
"u8",
|
|
1227
|
-
32
|
|
1228
|
-
];
|
|
769
|
+
name: "root";
|
|
770
|
+
type: {
|
|
771
|
+
array: ["u8", 32];
|
|
1229
772
|
};
|
|
1230
773
|
},
|
|
1231
774
|
{
|
|
1232
|
-
|
|
1233
|
-
|
|
775
|
+
name: "maxTotalClaim";
|
|
776
|
+
type: "u64";
|
|
1234
777
|
},
|
|
1235
778
|
{
|
|
1236
|
-
|
|
1237
|
-
|
|
779
|
+
name: "maxNumNodes";
|
|
780
|
+
type: "u64";
|
|
1238
781
|
},
|
|
1239
782
|
{
|
|
1240
|
-
|
|
1241
|
-
|
|
783
|
+
name: "unlockPeriod";
|
|
784
|
+
type: "u64";
|
|
1242
785
|
},
|
|
1243
786
|
{
|
|
1244
|
-
|
|
1245
|
-
|
|
787
|
+
name: "startVestingTs";
|
|
788
|
+
type: "u64";
|
|
1246
789
|
},
|
|
1247
790
|
{
|
|
1248
|
-
|
|
1249
|
-
|
|
791
|
+
name: "endVestingTs";
|
|
792
|
+
type: "u64";
|
|
1250
793
|
},
|
|
1251
794
|
{
|
|
1252
|
-
|
|
1253
|
-
|
|
795
|
+
name: "clawbackStartTs";
|
|
796
|
+
type: "u64";
|
|
1254
797
|
},
|
|
1255
798
|
{
|
|
1256
|
-
|
|
1257
|
-
|
|
799
|
+
name: "claimsClosable";
|
|
800
|
+
type: "bool";
|
|
1258
801
|
},
|
|
1259
802
|
{
|
|
1260
|
-
|
|
1261
|
-
|
|
803
|
+
name: "totalAmountUnlocked";
|
|
804
|
+
type: "u64";
|
|
1262
805
|
},
|
|
1263
806
|
{
|
|
1264
|
-
|
|
1265
|
-
|
|
807
|
+
name: "totalAmountLocked";
|
|
808
|
+
type: "u64";
|
|
1266
809
|
},
|
|
1267
810
|
{
|
|
1268
|
-
|
|
1269
|
-
|
|
811
|
+
name: "updatePeriod";
|
|
812
|
+
type: "u64";
|
|
1270
813
|
},
|
|
1271
814
|
{
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
815
|
+
name: "oracleType";
|
|
816
|
+
type: {
|
|
817
|
+
defined: {
|
|
818
|
+
name: "oracleType";
|
|
1276
819
|
};
|
|
1277
820
|
};
|
|
1278
821
|
},
|
|
1279
822
|
{
|
|
1280
|
-
|
|
1281
|
-
|
|
823
|
+
name: "minPrice";
|
|
824
|
+
type: "u64";
|
|
1282
825
|
},
|
|
1283
826
|
{
|
|
1284
|
-
|
|
1285
|
-
|
|
827
|
+
name: "maxPrice";
|
|
828
|
+
type: "u64";
|
|
1286
829
|
},
|
|
1287
830
|
{
|
|
1288
|
-
|
|
1289
|
-
|
|
831
|
+
name: "minPercentage";
|
|
832
|
+
type: "u64";
|
|
1290
833
|
},
|
|
1291
834
|
{
|
|
1292
|
-
|
|
1293
|
-
|
|
835
|
+
name: "maxPercentage";
|
|
836
|
+
type: "u64";
|
|
1294
837
|
},
|
|
1295
838
|
{
|
|
1296
|
-
|
|
1297
|
-
|
|
839
|
+
name: "tickSize";
|
|
840
|
+
type: "u64";
|
|
1298
841
|
},
|
|
1299
842
|
{
|
|
1300
|
-
|
|
1301
|
-
|
|
843
|
+
name: "skipInitial";
|
|
844
|
+
type: "bool";
|
|
1302
845
|
}
|
|
1303
846
|
];
|
|
1304
847
|
};
|
|
1305
848
|
},
|
|
1306
849
|
{
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
850
|
+
name: "oracleType";
|
|
851
|
+
type: {
|
|
852
|
+
kind: "enum";
|
|
853
|
+
variants: [
|
|
1311
854
|
{
|
|
1312
|
-
|
|
855
|
+
name: "none";
|
|
1313
856
|
},
|
|
1314
857
|
{
|
|
1315
|
-
|
|
858
|
+
name: "test";
|
|
1316
859
|
},
|
|
1317
860
|
{
|
|
1318
|
-
|
|
861
|
+
name: "pyth";
|
|
1319
862
|
},
|
|
1320
863
|
{
|
|
1321
|
-
|
|
864
|
+
name: "switchboard";
|
|
1322
865
|
}
|
|
1323
866
|
];
|
|
1324
867
|
};
|
|
1325
868
|
},
|
|
1326
869
|
{
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
870
|
+
name: "testOracle";
|
|
871
|
+
type: {
|
|
872
|
+
kind: "struct";
|
|
873
|
+
fields: [
|
|
1331
874
|
{
|
|
1332
|
-
|
|
1333
|
-
|
|
875
|
+
name: "price";
|
|
876
|
+
type: "u64";
|
|
1334
877
|
},
|
|
1335
878
|
{
|
|
1336
|
-
|
|
1337
|
-
|
|
879
|
+
name: "expo";
|
|
880
|
+
type: "i32";
|
|
1338
881
|
},
|
|
1339
882
|
{
|
|
1340
|
-
|
|
1341
|
-
|
|
883
|
+
name: "conf";
|
|
884
|
+
type: "u64";
|
|
1342
885
|
},
|
|
1343
886
|
{
|
|
1344
|
-
|
|
1345
|
-
|
|
887
|
+
name: "publishTime";
|
|
888
|
+
type: "i64";
|
|
1346
889
|
},
|
|
1347
890
|
{
|
|
1348
|
-
|
|
1349
|
-
|
|
891
|
+
name: "creator";
|
|
892
|
+
type: "pubkey";
|
|
1350
893
|
},
|
|
1351
894
|
{
|
|
1352
|
-
|
|
1353
|
-
|
|
895
|
+
name: "authority";
|
|
896
|
+
type: "pubkey";
|
|
1354
897
|
},
|
|
1355
898
|
{
|
|
1356
|
-
|
|
1357
|
-
|
|
899
|
+
name: "mint";
|
|
900
|
+
type: "pubkey";
|
|
1358
901
|
}
|
|
1359
902
|
];
|
|
1360
903
|
};
|
|
1361
904
|
},
|
|
1362
905
|
{
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
906
|
+
name: "updateTestOracleParams";
|
|
907
|
+
type: {
|
|
908
|
+
kind: "struct";
|
|
909
|
+
fields: [
|
|
1367
910
|
{
|
|
1368
|
-
|
|
1369
|
-
|
|
911
|
+
name: "price";
|
|
912
|
+
type: "u64";
|
|
1370
913
|
},
|
|
1371
914
|
{
|
|
1372
|
-
|
|
1373
|
-
|
|
915
|
+
name: "expo";
|
|
916
|
+
type: "i32";
|
|
1374
917
|
},
|
|
1375
918
|
{
|
|
1376
|
-
|
|
1377
|
-
|
|
919
|
+
name: "conf";
|
|
920
|
+
type: "u64";
|
|
1378
921
|
},
|
|
1379
922
|
{
|
|
1380
|
-
|
|
1381
|
-
|
|
923
|
+
name: "publishTime";
|
|
924
|
+
type: "i64";
|
|
1382
925
|
}
|
|
1383
926
|
];
|
|
1384
927
|
};
|