@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,191 +5,68 @@
|
|
|
5
5
|
* IDL can be found at `target/idl/merkle_distributor.json`.
|
|
6
6
|
*/
|
|
7
7
|
type MerkleDistributor = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
address: "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N";
|
|
9
|
+
metadata: {
|
|
10
|
+
name: "merkleDistributor";
|
|
11
|
+
version: "1.4.0";
|
|
12
|
+
spec: "0.1.0";
|
|
13
|
+
description: "A Solana program for distributing tokens according to a Merkle root.";
|
|
14
|
+
repository: "https://github.com/streamflow-finance/distributor";
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
instructions: [
|
|
17
17
|
{
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
233,
|
|
22
|
-
83,
|
|
23
|
-
69,
|
|
24
|
-
115,
|
|
25
|
-
199,
|
|
26
|
-
128,
|
|
27
|
-
249
|
|
28
|
-
];
|
|
29
|
-
"accounts": [
|
|
18
|
+
name: "claimLocked";
|
|
19
|
+
discriminator: [34, 206, 181, 23, 11, 207, 147, 90];
|
|
20
|
+
accounts: [
|
|
30
21
|
{
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
];
|
|
22
|
+
name: "distributor";
|
|
23
|
+
docs: ["The [MerkleDistributor]."];
|
|
24
|
+
writable: true;
|
|
35
25
|
},
|
|
36
26
|
{
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"pda": {
|
|
43
|
-
"seeds": [
|
|
27
|
+
name: "claimStatus";
|
|
28
|
+
docs: ["Claim Status PDA"];
|
|
29
|
+
writable: true;
|
|
30
|
+
pda: {
|
|
31
|
+
seeds: [
|
|
44
32
|
{
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
67,
|
|
48
|
-
108,
|
|
49
|
-
97,
|
|
50
|
-
105,
|
|
51
|
-
109,
|
|
52
|
-
83,
|
|
53
|
-
116,
|
|
54
|
-
97,
|
|
55
|
-
116,
|
|
56
|
-
117,
|
|
57
|
-
115
|
|
58
|
-
];
|
|
33
|
+
kind: "const";
|
|
34
|
+
value: [67, 108, 97, 105, 109, 83, 116, 97, 116, 117, 115];
|
|
59
35
|
},
|
|
60
36
|
{
|
|
61
|
-
|
|
62
|
-
|
|
37
|
+
kind: "account";
|
|
38
|
+
path: "claimant";
|
|
63
39
|
},
|
|
64
40
|
{
|
|
65
|
-
|
|
66
|
-
|
|
41
|
+
kind: "account";
|
|
42
|
+
path: "distributor";
|
|
67
43
|
}
|
|
68
44
|
];
|
|
69
45
|
};
|
|
70
46
|
},
|
|
71
47
|
{
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
"pda": {
|
|
78
|
-
"seeds": [
|
|
48
|
+
name: "from";
|
|
49
|
+
docs: ["Distributor ATA containing the tokens to distribute."];
|
|
50
|
+
writable: true;
|
|
51
|
+
pda: {
|
|
52
|
+
seeds: [
|
|
79
53
|
{
|
|
80
|
-
|
|
81
|
-
"
|
|
82
|
-
67,
|
|
83
|
-
108,
|
|
84
|
-
97,
|
|
85
|
-
105,
|
|
86
|
-
109,
|
|
87
|
-
83,
|
|
88
|
-
116,
|
|
89
|
-
97,
|
|
90
|
-
116,
|
|
91
|
-
117,
|
|
92
|
-
115
|
|
93
|
-
];
|
|
54
|
+
kind: "account";
|
|
55
|
+
path: "distributor";
|
|
94
56
|
},
|
|
95
57
|
{
|
|
96
|
-
|
|
97
|
-
|
|
58
|
+
kind: "account";
|
|
59
|
+
path: "tokenProgram";
|
|
98
60
|
},
|
|
99
61
|
{
|
|
100
|
-
|
|
101
|
-
|
|
62
|
+
kind: "account";
|
|
63
|
+
path: "distributor.mint";
|
|
64
|
+
account: "merkleDistributor";
|
|
102
65
|
}
|
|
103
66
|
];
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
"name": "claimant";
|
|
108
|
-
"docs": [
|
|
109
|
-
"Who is claiming the tokens."
|
|
110
|
-
];
|
|
111
|
-
"signer": true;
|
|
112
|
-
}
|
|
113
|
-
];
|
|
114
|
-
"args": [];
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"name": "claimLocked";
|
|
118
|
-
"discriminator": [
|
|
119
|
-
34,
|
|
120
|
-
206,
|
|
121
|
-
181,
|
|
122
|
-
23,
|
|
123
|
-
11,
|
|
124
|
-
207,
|
|
125
|
-
147,
|
|
126
|
-
90
|
|
127
|
-
];
|
|
128
|
-
"accounts": [
|
|
129
|
-
{
|
|
130
|
-
"name": "distributor";
|
|
131
|
-
"docs": [
|
|
132
|
-
"The [MerkleDistributor]."
|
|
133
|
-
];
|
|
134
|
-
"writable": true;
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"name": "claimStatus";
|
|
138
|
-
"writable": true;
|
|
139
|
-
"pda": {
|
|
140
|
-
"seeds": [
|
|
141
|
-
{
|
|
142
|
-
"kind": "const";
|
|
143
|
-
"value": [
|
|
144
|
-
67,
|
|
145
|
-
108,
|
|
146
|
-
97,
|
|
147
|
-
105,
|
|
148
|
-
109,
|
|
149
|
-
83,
|
|
150
|
-
116,
|
|
151
|
-
97,
|
|
152
|
-
116,
|
|
153
|
-
117,
|
|
154
|
-
115
|
|
155
|
-
];
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
"kind": "account";
|
|
159
|
-
"path": "claimant";
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"kind": "account";
|
|
163
|
-
"path": "distributor";
|
|
164
|
-
}
|
|
165
|
-
];
|
|
166
|
-
};
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"name": "from";
|
|
170
|
-
"docs": [
|
|
171
|
-
"Distributor ATA containing the tokens to distribute."
|
|
172
|
-
];
|
|
173
|
-
"writable": true;
|
|
174
|
-
"pda": {
|
|
175
|
-
"seeds": [
|
|
176
|
-
{
|
|
177
|
-
"kind": "account";
|
|
178
|
-
"path": "distributor";
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
"kind": "account";
|
|
182
|
-
"path": "tokenProgram";
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
"kind": "account";
|
|
186
|
-
"path": "distributor.mint";
|
|
187
|
-
"account": "merkleDistributor";
|
|
188
|
-
}
|
|
189
|
-
];
|
|
190
|
-
"program": {
|
|
191
|
-
"kind": "const";
|
|
192
|
-
"value": [
|
|
67
|
+
program: {
|
|
68
|
+
kind: "const";
|
|
69
|
+
value: [
|
|
193
70
|
140,
|
|
194
71
|
151,
|
|
195
72
|
37,
|
|
@@ -227,258 +104,163 @@ type MerkleDistributor = {
|
|
|
227
104
|
};
|
|
228
105
|
},
|
|
229
106
|
{
|
|
230
|
-
|
|
231
|
-
|
|
107
|
+
name: "to";
|
|
108
|
+
docs: [
|
|
232
109
|
"Account to send the claimed tokens to.",
|
|
233
110
|
"Claimant must sign the transaction and can only claim on behalf of themself"
|
|
234
111
|
];
|
|
235
|
-
|
|
112
|
+
writable: true;
|
|
236
113
|
},
|
|
237
114
|
{
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
"writable": true;
|
|
243
|
-
"signer": true;
|
|
115
|
+
name: "claimant";
|
|
116
|
+
docs: ["Who is claiming the tokens."];
|
|
117
|
+
writable: true;
|
|
118
|
+
signer: true;
|
|
244
119
|
},
|
|
245
120
|
{
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
];
|
|
250
|
-
"relations": [
|
|
251
|
-
"distributor"
|
|
252
|
-
];
|
|
121
|
+
name: "mint";
|
|
122
|
+
docs: ["The mint to claim."];
|
|
123
|
+
relations: ["distributor"];
|
|
253
124
|
},
|
|
254
125
|
{
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
"SPL [Token] program."
|
|
258
|
-
];
|
|
126
|
+
name: "tokenProgram";
|
|
127
|
+
docs: ["SPL [Token] program."];
|
|
259
128
|
},
|
|
260
129
|
{
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
130
|
+
name: "eventAuthority";
|
|
131
|
+
pda: {
|
|
132
|
+
seeds: [
|
|
264
133
|
{
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
95,
|
|
268
|
-
95,
|
|
269
|
-
101,
|
|
270
|
-
118,
|
|
271
|
-
101,
|
|
272
|
-
110,
|
|
273
|
-
116,
|
|
274
|
-
95,
|
|
275
|
-
97,
|
|
276
|
-
117,
|
|
277
|
-
116,
|
|
278
|
-
104,
|
|
279
|
-
111,
|
|
280
|
-
114,
|
|
281
|
-
105,
|
|
282
|
-
116,
|
|
283
|
-
121
|
|
284
|
-
];
|
|
134
|
+
kind: "const";
|
|
135
|
+
value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
|
|
285
136
|
}
|
|
286
137
|
];
|
|
287
138
|
};
|
|
288
139
|
},
|
|
289
140
|
{
|
|
290
|
-
|
|
141
|
+
name: "program";
|
|
291
142
|
}
|
|
292
143
|
];
|
|
293
|
-
|
|
144
|
+
args: [];
|
|
294
145
|
},
|
|
295
146
|
{
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
92,
|
|
300
|
-
142,
|
|
301
|
-
79,
|
|
302
|
-
33,
|
|
303
|
-
234,
|
|
304
|
-
82,
|
|
305
|
-
27
|
|
306
|
-
];
|
|
307
|
-
"accounts": [
|
|
147
|
+
name: "clawback";
|
|
148
|
+
discriminator: [111, 92, 142, 79, 33, 234, 82, 27];
|
|
149
|
+
accounts: [
|
|
308
150
|
{
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
];
|
|
313
|
-
"writable": true;
|
|
151
|
+
name: "distributor";
|
|
152
|
+
docs: ["The [MerkleDistributor]."];
|
|
153
|
+
writable: true;
|
|
314
154
|
},
|
|
315
155
|
{
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
];
|
|
320
|
-
"writable": true;
|
|
156
|
+
name: "from";
|
|
157
|
+
docs: ["Distributor ATA containing the tokens to distribute."];
|
|
158
|
+
writable: true;
|
|
321
159
|
},
|
|
322
160
|
{
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
];
|
|
327
|
-
"writable": true;
|
|
161
|
+
name: "to";
|
|
162
|
+
docs: ["The Clawback token account."];
|
|
163
|
+
writable: true;
|
|
328
164
|
},
|
|
329
165
|
{
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
"writable": true;
|
|
335
|
-
"signer": true;
|
|
166
|
+
name: "admin";
|
|
167
|
+
docs: ["Only Admin can trigger the clawback of funds"];
|
|
168
|
+
writable: true;
|
|
169
|
+
signer: true;
|
|
336
170
|
},
|
|
337
171
|
{
|
|
338
|
-
|
|
172
|
+
name: "mint";
|
|
339
173
|
},
|
|
340
174
|
{
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
];
|
|
345
|
-
"address": "11111111111111111111111111111111";
|
|
175
|
+
name: "systemProgram";
|
|
176
|
+
docs: ["The [System] program."];
|
|
177
|
+
address: "11111111111111111111111111111111";
|
|
346
178
|
},
|
|
347
179
|
{
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
"SPL [Token] program."
|
|
351
|
-
];
|
|
180
|
+
name: "tokenProgram";
|
|
181
|
+
docs: ["SPL [Token] program."];
|
|
352
182
|
}
|
|
353
183
|
];
|
|
354
|
-
|
|
184
|
+
args: [];
|
|
355
185
|
},
|
|
356
186
|
{
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
177,
|
|
361
|
-
165,
|
|
362
|
-
35,
|
|
363
|
-
213,
|
|
364
|
-
179,
|
|
365
|
-
211,
|
|
366
|
-
19
|
|
367
|
-
];
|
|
368
|
-
"accounts": [
|
|
187
|
+
name: "closeClaim";
|
|
188
|
+
discriminator: [42, 177, 165, 35, 213, 179, 211, 19];
|
|
189
|
+
accounts: [
|
|
369
190
|
{
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
];
|
|
374
|
-
"writable": true;
|
|
191
|
+
name: "distributor";
|
|
192
|
+
docs: ["The [MerkleDistributor]."];
|
|
193
|
+
writable: true;
|
|
375
194
|
},
|
|
376
195
|
{
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
"writable": true;
|
|
382
|
-
"signer": true;
|
|
196
|
+
name: "adminOrClaimant";
|
|
197
|
+
docs: ["Admin signer"];
|
|
198
|
+
writable: true;
|
|
199
|
+
signer: true;
|
|
383
200
|
},
|
|
384
201
|
{
|
|
385
|
-
|
|
386
|
-
"writable": true;
|
|
202
|
+
name: "claimant";
|
|
387
203
|
},
|
|
388
204
|
{
|
|
389
|
-
|
|
390
|
-
"
|
|
391
|
-
|
|
392
|
-
|
|
205
|
+
name: "claimStatus";
|
|
206
|
+
docs: ["Claim Status PDA"];
|
|
207
|
+
writable: true;
|
|
208
|
+
pda: {
|
|
209
|
+
seeds: [
|
|
393
210
|
{
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
67,
|
|
397
|
-
108,
|
|
398
|
-
97,
|
|
399
|
-
105,
|
|
400
|
-
109,
|
|
401
|
-
83,
|
|
402
|
-
116,
|
|
403
|
-
97,
|
|
404
|
-
116,
|
|
405
|
-
117,
|
|
406
|
-
115
|
|
407
|
-
];
|
|
211
|
+
kind: "const";
|
|
212
|
+
value: [67, 108, 97, 105, 109, 83, 116, 97, 116, 117, 115];
|
|
408
213
|
},
|
|
409
214
|
{
|
|
410
|
-
|
|
411
|
-
|
|
215
|
+
kind: "account";
|
|
216
|
+
path: "claimant";
|
|
412
217
|
},
|
|
413
218
|
{
|
|
414
|
-
|
|
415
|
-
|
|
219
|
+
kind: "account";
|
|
220
|
+
path: "distributor";
|
|
416
221
|
}
|
|
417
222
|
];
|
|
418
223
|
};
|
|
419
224
|
},
|
|
420
225
|
{
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
];
|
|
425
|
-
"address": "11111111111111111111111111111111";
|
|
226
|
+
name: "systemProgram";
|
|
227
|
+
docs: ["The [System] program."];
|
|
228
|
+
address: "11111111111111111111111111111111";
|
|
426
229
|
},
|
|
427
230
|
{
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
231
|
+
name: "eventAuthority";
|
|
232
|
+
pda: {
|
|
233
|
+
seeds: [
|
|
431
234
|
{
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
95,
|
|
435
|
-
95,
|
|
436
|
-
101,
|
|
437
|
-
118,
|
|
438
|
-
101,
|
|
439
|
-
110,
|
|
440
|
-
116,
|
|
441
|
-
95,
|
|
442
|
-
97,
|
|
443
|
-
117,
|
|
444
|
-
116,
|
|
445
|
-
104,
|
|
446
|
-
111,
|
|
447
|
-
114,
|
|
448
|
-
105,
|
|
449
|
-
116,
|
|
450
|
-
121
|
|
451
|
-
];
|
|
235
|
+
kind: "const";
|
|
236
|
+
value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
|
|
452
237
|
}
|
|
453
238
|
];
|
|
454
239
|
};
|
|
455
240
|
},
|
|
456
241
|
{
|
|
457
|
-
|
|
242
|
+
name: "program";
|
|
458
243
|
}
|
|
459
244
|
];
|
|
460
|
-
|
|
245
|
+
args: [
|
|
461
246
|
{
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
247
|
+
name: "amountUnlocked";
|
|
248
|
+
type: {
|
|
249
|
+
option: "u64";
|
|
465
250
|
};
|
|
466
251
|
},
|
|
467
252
|
{
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
253
|
+
name: "amountLocked";
|
|
254
|
+
type: {
|
|
255
|
+
option: "u64";
|
|
471
256
|
};
|
|
472
257
|
},
|
|
473
258
|
{
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
"u8",
|
|
480
|
-
32
|
|
481
|
-
];
|
|
259
|
+
name: "proof";
|
|
260
|
+
type: {
|
|
261
|
+
option: {
|
|
262
|
+
vec: {
|
|
263
|
+
array: ["u8", 32];
|
|
482
264
|
};
|
|
483
265
|
};
|
|
484
266
|
};
|
|
@@ -486,155 +268,58 @@ type MerkleDistributor = {
|
|
|
486
268
|
];
|
|
487
269
|
},
|
|
488
270
|
{
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
45,
|
|
493
|
-
247,
|
|
494
|
-
134,
|
|
495
|
-
71,
|
|
496
|
-
119,
|
|
497
|
-
125,
|
|
498
|
-
89
|
|
499
|
-
];
|
|
500
|
-
"accounts": [
|
|
271
|
+
name: "newClaim";
|
|
272
|
+
discriminator: [78, 177, 98, 123, 210, 21, 187, 83];
|
|
273
|
+
accounts: [
|
|
501
274
|
{
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
];
|
|
506
|
-
"writable": true;
|
|
275
|
+
name: "distributor";
|
|
276
|
+
docs: ["The [MerkleDistributor]."];
|
|
277
|
+
writable: true;
|
|
507
278
|
},
|
|
508
279
|
{
|
|
509
|
-
|
|
510
|
-
"
|
|
511
|
-
|
|
512
|
-
|
|
280
|
+
name: "claimStatus";
|
|
281
|
+
docs: ["Claim status PDA"];
|
|
282
|
+
writable: true;
|
|
283
|
+
pda: {
|
|
284
|
+
seeds: [
|
|
513
285
|
{
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
67,
|
|
517
|
-
108,
|
|
518
|
-
97,
|
|
519
|
-
105,
|
|
520
|
-
109,
|
|
521
|
-
83,
|
|
522
|
-
116,
|
|
523
|
-
97,
|
|
524
|
-
116,
|
|
525
|
-
117,
|
|
526
|
-
115
|
|
527
|
-
];
|
|
286
|
+
kind: "const";
|
|
287
|
+
value: [67, 108, 97, 105, 109, 83, 116, 97, 116, 117, 115];
|
|
528
288
|
},
|
|
529
289
|
{
|
|
530
|
-
|
|
531
|
-
|
|
290
|
+
kind: "account";
|
|
291
|
+
path: "claimant";
|
|
532
292
|
},
|
|
533
293
|
{
|
|
534
|
-
|
|
535
|
-
|
|
294
|
+
kind: "account";
|
|
295
|
+
path: "distributor";
|
|
536
296
|
}
|
|
537
297
|
];
|
|
538
298
|
};
|
|
539
299
|
},
|
|
540
300
|
{
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
"signer": true;
|
|
547
|
-
},
|
|
548
|
-
{
|
|
549
|
-
"name": "claimant";
|
|
550
|
-
},
|
|
551
|
-
{
|
|
552
|
-
"name": "systemProgram";
|
|
553
|
-
"docs": [
|
|
554
|
-
"The [System] program."
|
|
555
|
-
];
|
|
556
|
-
"address": "11111111111111111111111111111111";
|
|
557
|
-
}
|
|
558
|
-
];
|
|
559
|
-
"args": [];
|
|
560
|
-
},
|
|
561
|
-
{
|
|
562
|
-
"name": "newClaim";
|
|
563
|
-
"discriminator": [
|
|
564
|
-
78,
|
|
565
|
-
177,
|
|
566
|
-
98,
|
|
567
|
-
123,
|
|
568
|
-
210,
|
|
569
|
-
21,
|
|
570
|
-
187,
|
|
571
|
-
83
|
|
572
|
-
];
|
|
573
|
-
"accounts": [
|
|
574
|
-
{
|
|
575
|
-
"name": "distributor";
|
|
576
|
-
"docs": [
|
|
577
|
-
"The [MerkleDistributor]."
|
|
578
|
-
];
|
|
579
|
-
"writable": true;
|
|
580
|
-
},
|
|
581
|
-
{
|
|
582
|
-
"name": "claimStatus";
|
|
583
|
-
"writable": true;
|
|
584
|
-
"pda": {
|
|
585
|
-
"seeds": [
|
|
301
|
+
name: "from";
|
|
302
|
+
docs: ["Distributor ATA containing the tokens to distribute."];
|
|
303
|
+
writable: true;
|
|
304
|
+
pda: {
|
|
305
|
+
seeds: [
|
|
586
306
|
{
|
|
587
|
-
|
|
588
|
-
"
|
|
589
|
-
67,
|
|
590
|
-
108,
|
|
591
|
-
97,
|
|
592
|
-
105,
|
|
593
|
-
109,
|
|
594
|
-
83,
|
|
595
|
-
116,
|
|
596
|
-
97,
|
|
597
|
-
116,
|
|
598
|
-
117,
|
|
599
|
-
115
|
|
600
|
-
];
|
|
307
|
+
kind: "account";
|
|
308
|
+
path: "distributor";
|
|
601
309
|
},
|
|
602
310
|
{
|
|
603
|
-
|
|
604
|
-
|
|
311
|
+
kind: "account";
|
|
312
|
+
path: "tokenProgram";
|
|
605
313
|
},
|
|
606
314
|
{
|
|
607
|
-
|
|
608
|
-
|
|
315
|
+
kind: "account";
|
|
316
|
+
path: "distributor.mint";
|
|
317
|
+
account: "merkleDistributor";
|
|
609
318
|
}
|
|
610
319
|
];
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
"name": "from";
|
|
615
|
-
"docs": [
|
|
616
|
-
"Distributor ATA containing the tokens to distribute."
|
|
617
|
-
];
|
|
618
|
-
"writable": true;
|
|
619
|
-
"pda": {
|
|
620
|
-
"seeds": [
|
|
621
|
-
{
|
|
622
|
-
"kind": "account";
|
|
623
|
-
"path": "distributor";
|
|
624
|
-
},
|
|
625
|
-
{
|
|
626
|
-
"kind": "account";
|
|
627
|
-
"path": "tokenProgram";
|
|
628
|
-
},
|
|
629
|
-
{
|
|
630
|
-
"kind": "account";
|
|
631
|
-
"path": "distributor.mint";
|
|
632
|
-
"account": "merkleDistributor";
|
|
633
|
-
}
|
|
634
|
-
];
|
|
635
|
-
"program": {
|
|
636
|
-
"kind": "const";
|
|
637
|
-
"value": [
|
|
320
|
+
program: {
|
|
321
|
+
kind: "const";
|
|
322
|
+
value: [
|
|
638
323
|
140,
|
|
639
324
|
151,
|
|
640
325
|
37,
|
|
@@ -672,100 +357,67 @@ type MerkleDistributor = {
|
|
|
672
357
|
};
|
|
673
358
|
},
|
|
674
359
|
{
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
];
|
|
679
|
-
"writable": true;
|
|
360
|
+
name: "to";
|
|
361
|
+
docs: ["Account to send the claimed tokens to."];
|
|
362
|
+
writable: true;
|
|
680
363
|
},
|
|
681
364
|
{
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
"writable": true;
|
|
687
|
-
"signer": true;
|
|
365
|
+
name: "claimant";
|
|
366
|
+
docs: ["Who is claiming the tokens."];
|
|
367
|
+
writable: true;
|
|
368
|
+
signer: true;
|
|
688
369
|
},
|
|
689
370
|
{
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
];
|
|
694
|
-
"relations": [
|
|
695
|
-
"distributor"
|
|
696
|
-
];
|
|
371
|
+
name: "mint";
|
|
372
|
+
docs: ["The mint to claim."];
|
|
373
|
+
relations: ["distributor"];
|
|
697
374
|
},
|
|
698
375
|
{
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
"SPL [Token] program."
|
|
702
|
-
];
|
|
376
|
+
name: "tokenProgram";
|
|
377
|
+
docs: ["SPL [Token] program."];
|
|
703
378
|
},
|
|
704
379
|
{
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
];
|
|
709
|
-
"address": "11111111111111111111111111111111";
|
|
380
|
+
name: "systemProgram";
|
|
381
|
+
docs: ["The [System] program."];
|
|
382
|
+
address: "11111111111111111111111111111111";
|
|
710
383
|
},
|
|
711
384
|
{
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
385
|
+
name: "eventAuthority";
|
|
386
|
+
pda: {
|
|
387
|
+
seeds: [
|
|
715
388
|
{
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
95,
|
|
719
|
-
95,
|
|
720
|
-
101,
|
|
721
|
-
118,
|
|
722
|
-
101,
|
|
723
|
-
110,
|
|
724
|
-
116,
|
|
725
|
-
95,
|
|
726
|
-
97,
|
|
727
|
-
117,
|
|
728
|
-
116,
|
|
729
|
-
104,
|
|
730
|
-
111,
|
|
731
|
-
114,
|
|
732
|
-
105,
|
|
733
|
-
116,
|
|
734
|
-
121
|
|
735
|
-
];
|
|
389
|
+
kind: "const";
|
|
390
|
+
value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
|
|
736
391
|
}
|
|
737
392
|
];
|
|
738
393
|
};
|
|
739
394
|
},
|
|
740
395
|
{
|
|
741
|
-
|
|
396
|
+
name: "program";
|
|
742
397
|
}
|
|
743
398
|
];
|
|
744
|
-
|
|
399
|
+
args: [
|
|
745
400
|
{
|
|
746
|
-
|
|
747
|
-
|
|
401
|
+
name: "amountUnlocked";
|
|
402
|
+
type: "u64";
|
|
748
403
|
},
|
|
749
404
|
{
|
|
750
|
-
|
|
751
|
-
|
|
405
|
+
name: "amountLocked";
|
|
406
|
+
type: "u64";
|
|
752
407
|
},
|
|
753
408
|
{
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
"u8",
|
|
759
|
-
32
|
|
760
|
-
];
|
|
409
|
+
name: "proof";
|
|
410
|
+
type: {
|
|
411
|
+
vec: {
|
|
412
|
+
array: ["u8", 32];
|
|
761
413
|
};
|
|
762
414
|
};
|
|
763
415
|
}
|
|
764
416
|
];
|
|
765
417
|
},
|
|
766
418
|
{
|
|
767
|
-
|
|
768
|
-
|
|
419
|
+
name: "newDistributor";
|
|
420
|
+
docs: [
|
|
769
421
|
"READ THE FOLLOWING:",
|
|
770
422
|
"",
|
|
771
423
|
"This instruction is susceptible to frontrunning that could result in loss of funds if not handled properly.",
|
|
@@ -785,95 +437,60 @@ type MerkleDistributor = {
|
|
|
785
437
|
"assert the parameters are what you expect, most importantly the clawback_receiver and admin.",
|
|
786
438
|
"- If your transaction fails, double check the value on-chain matches what you expect."
|
|
787
439
|
];
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
155
|
|
797
|
-
];
|
|
798
|
-
"accounts": [
|
|
799
|
-
{
|
|
800
|
-
"name": "distributor";
|
|
801
|
-
"docs": [
|
|
802
|
-
"[MerkleDistributor]."
|
|
803
|
-
];
|
|
804
|
-
"writable": true;
|
|
805
|
-
"pda": {
|
|
806
|
-
"seeds": [
|
|
440
|
+
discriminator: [32, 139, 112, 171, 0, 2, 225, 155];
|
|
441
|
+
accounts: [
|
|
442
|
+
{
|
|
443
|
+
name: "distributor";
|
|
444
|
+
docs: ["[MerkleDistributor]."];
|
|
445
|
+
writable: true;
|
|
446
|
+
pda: {
|
|
447
|
+
seeds: [
|
|
807
448
|
{
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
77,
|
|
811
|
-
101,
|
|
812
|
-
114,
|
|
813
|
-
107,
|
|
814
|
-
108,
|
|
815
|
-
101,
|
|
816
|
-
68,
|
|
817
|
-
105,
|
|
818
|
-
115,
|
|
819
|
-
116,
|
|
820
|
-
114,
|
|
821
|
-
105,
|
|
822
|
-
98,
|
|
823
|
-
117,
|
|
824
|
-
116,
|
|
825
|
-
111,
|
|
826
|
-
114
|
|
827
|
-
];
|
|
449
|
+
kind: "const";
|
|
450
|
+
value: [77, 101, 114, 107, 108, 101, 68, 105, 115, 116, 114, 105, 98, 117, 116, 111, 114];
|
|
828
451
|
},
|
|
829
452
|
{
|
|
830
|
-
|
|
831
|
-
|
|
453
|
+
kind: "account";
|
|
454
|
+
path: "mint";
|
|
832
455
|
},
|
|
833
456
|
{
|
|
834
|
-
|
|
835
|
-
|
|
457
|
+
kind: "arg";
|
|
458
|
+
path: "version";
|
|
836
459
|
}
|
|
837
460
|
];
|
|
838
461
|
};
|
|
839
462
|
},
|
|
840
463
|
{
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
];
|
|
845
|
-
"writable": true;
|
|
464
|
+
name: "clawbackReceiver";
|
|
465
|
+
docs: ["Clawback receiver token account"];
|
|
466
|
+
writable: true;
|
|
846
467
|
},
|
|
847
468
|
{
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
"The mint to distribute."
|
|
851
|
-
];
|
|
469
|
+
name: "mint";
|
|
470
|
+
docs: ["The mint to distribute."];
|
|
852
471
|
},
|
|
853
472
|
{
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
"pda": {
|
|
860
|
-
"seeds": [
|
|
473
|
+
name: "tokenVault";
|
|
474
|
+
docs: ["Token vault"];
|
|
475
|
+
writable: true;
|
|
476
|
+
pda: {
|
|
477
|
+
seeds: [
|
|
861
478
|
{
|
|
862
|
-
|
|
863
|
-
|
|
479
|
+
kind: "account";
|
|
480
|
+
path: "distributor";
|
|
864
481
|
},
|
|
865
482
|
{
|
|
866
|
-
|
|
867
|
-
|
|
483
|
+
kind: "account";
|
|
484
|
+
path: "tokenProgram";
|
|
868
485
|
},
|
|
869
486
|
{
|
|
870
|
-
|
|
871
|
-
|
|
487
|
+
kind: "account";
|
|
488
|
+
path: "mint";
|
|
872
489
|
}
|
|
873
490
|
];
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
491
|
+
program: {
|
|
492
|
+
kind: "const";
|
|
493
|
+
value: [
|
|
877
494
|
140,
|
|
878
495
|
151,
|
|
879
496
|
37,
|
|
@@ -911,925 +528,596 @@ type MerkleDistributor = {
|
|
|
911
528
|
};
|
|
912
529
|
},
|
|
913
530
|
{
|
|
914
|
-
|
|
915
|
-
|
|
531
|
+
name: "admin";
|
|
532
|
+
docs: [
|
|
916
533
|
"Admin wallet, responsible for creating the distributor and paying for the transaction.",
|
|
917
534
|
"Also has the authority to set the clawback receiver and change itself."
|
|
918
535
|
];
|
|
919
|
-
|
|
920
|
-
|
|
536
|
+
writable: true;
|
|
537
|
+
signer: true;
|
|
921
538
|
},
|
|
922
539
|
{
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
];
|
|
927
|
-
"address": "11111111111111111111111111111111";
|
|
540
|
+
name: "systemProgram";
|
|
541
|
+
docs: ["The [System] program."];
|
|
542
|
+
address: "11111111111111111111111111111111";
|
|
928
543
|
},
|
|
929
544
|
{
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
];
|
|
934
|
-
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
545
|
+
name: "associatedTokenProgram";
|
|
546
|
+
docs: ["The [Associated Token] program."];
|
|
547
|
+
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
935
548
|
},
|
|
936
549
|
{
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
"The [Token] program."
|
|
940
|
-
];
|
|
550
|
+
name: "tokenProgram";
|
|
551
|
+
docs: ["The [Token] program."];
|
|
941
552
|
}
|
|
942
553
|
];
|
|
943
|
-
|
|
554
|
+
args: [
|
|
944
555
|
{
|
|
945
|
-
|
|
946
|
-
|
|
556
|
+
name: "version";
|
|
557
|
+
type: "u64";
|
|
947
558
|
},
|
|
948
559
|
{
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
"u8",
|
|
953
|
-
32
|
|
954
|
-
];
|
|
560
|
+
name: "root";
|
|
561
|
+
type: {
|
|
562
|
+
array: ["u8", 32];
|
|
955
563
|
};
|
|
956
564
|
},
|
|
957
565
|
{
|
|
958
|
-
|
|
959
|
-
|
|
566
|
+
name: "maxTotalClaim";
|
|
567
|
+
type: "u64";
|
|
960
568
|
},
|
|
961
569
|
{
|
|
962
|
-
|
|
963
|
-
|
|
570
|
+
name: "maxNumNodes";
|
|
571
|
+
type: "u64";
|
|
964
572
|
},
|
|
965
573
|
{
|
|
966
|
-
|
|
967
|
-
|
|
574
|
+
name: "unlockPeriod";
|
|
575
|
+
type: "u64";
|
|
968
576
|
},
|
|
969
577
|
{
|
|
970
|
-
|
|
971
|
-
|
|
578
|
+
name: "startVestingTs";
|
|
579
|
+
type: "u64";
|
|
972
580
|
},
|
|
973
581
|
{
|
|
974
|
-
|
|
975
|
-
|
|
582
|
+
name: "endVestingTs";
|
|
583
|
+
type: "u64";
|
|
976
584
|
},
|
|
977
585
|
{
|
|
978
|
-
|
|
979
|
-
|
|
586
|
+
name: "clawbackStartTs";
|
|
587
|
+
type: "u64";
|
|
980
588
|
},
|
|
981
589
|
{
|
|
982
|
-
|
|
983
|
-
|
|
590
|
+
name: "claimsClosableByAdmin";
|
|
591
|
+
type: "bool";
|
|
984
592
|
},
|
|
985
593
|
{
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
594
|
+
name: "canUpdateDuration";
|
|
595
|
+
type: {
|
|
596
|
+
option: "bool";
|
|
989
597
|
};
|
|
990
598
|
},
|
|
991
599
|
{
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
600
|
+
name: "totalAmountUnlocked";
|
|
601
|
+
type: {
|
|
602
|
+
option: "u64";
|
|
995
603
|
};
|
|
996
604
|
},
|
|
997
605
|
{
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
606
|
+
name: "totalAmountLocked";
|
|
607
|
+
type: {
|
|
608
|
+
option: "u64";
|
|
1001
609
|
};
|
|
1002
610
|
},
|
|
1003
611
|
{
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
612
|
+
name: "claimsClosableByClaimant";
|
|
613
|
+
type: {
|
|
614
|
+
option: "bool";
|
|
1007
615
|
};
|
|
1008
616
|
},
|
|
1009
617
|
{
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
};
|
|
1014
|
-
}
|
|
1015
|
-
];
|
|
1016
|
-
},
|
|
1017
|
-
{
|
|
1018
|
-
"name": "refundClaim";
|
|
1019
|
-
"discriminator": [
|
|
1020
|
-
157,
|
|
1021
|
-
23,
|
|
1022
|
-
164,
|
|
1023
|
-
146,
|
|
1024
|
-
176,
|
|
1025
|
-
53,
|
|
1026
|
-
147,
|
|
1027
|
-
143
|
|
1028
|
-
];
|
|
1029
|
-
"accounts": [
|
|
1030
|
-
{
|
|
1031
|
-
"name": "distributor";
|
|
1032
|
-
"docs": [
|
|
1033
|
-
"The [MerkleDistributor]."
|
|
1034
|
-
];
|
|
1035
|
-
"writable": true;
|
|
1036
|
-
},
|
|
1037
|
-
{
|
|
1038
|
-
"name": "claimStatus";
|
|
1039
|
-
"writable": true;
|
|
1040
|
-
"pda": {
|
|
1041
|
-
"seeds": [
|
|
1042
|
-
{
|
|
1043
|
-
"kind": "const";
|
|
1044
|
-
"value": [
|
|
1045
|
-
67,
|
|
1046
|
-
108,
|
|
1047
|
-
97,
|
|
1048
|
-
105,
|
|
1049
|
-
109,
|
|
1050
|
-
83,
|
|
1051
|
-
116,
|
|
1052
|
-
97,
|
|
1053
|
-
116,
|
|
1054
|
-
117,
|
|
1055
|
-
115
|
|
1056
|
-
];
|
|
1057
|
-
},
|
|
1058
|
-
{
|
|
1059
|
-
"kind": "account";
|
|
1060
|
-
"path": "claimant";
|
|
1061
|
-
},
|
|
1062
|
-
{
|
|
1063
|
-
"kind": "account";
|
|
1064
|
-
"path": "distributor";
|
|
1065
|
-
}
|
|
1066
|
-
];
|
|
618
|
+
name: "claimsLimit";
|
|
619
|
+
type: {
|
|
620
|
+
option: "u16";
|
|
1067
621
|
};
|
|
1068
|
-
},
|
|
1069
|
-
{
|
|
1070
|
-
"name": "signer";
|
|
1071
|
-
"docs": [
|
|
1072
|
-
"Signer account"
|
|
1073
|
-
];
|
|
1074
|
-
"writable": true;
|
|
1075
|
-
"signer": true;
|
|
1076
|
-
},
|
|
1077
|
-
{
|
|
1078
|
-
"name": "claimant";
|
|
1079
|
-
},
|
|
1080
|
-
{
|
|
1081
|
-
"name": "streamflowTreasury";
|
|
1082
|
-
"writable": true;
|
|
1083
|
-
"address": "5SEpbdjFK5FxwTvfsGMXVQTD2v4M2c5tyRTxhdsPkgDw";
|
|
1084
|
-
},
|
|
1085
|
-
{
|
|
1086
|
-
"name": "systemProgram";
|
|
1087
|
-
"docs": [
|
|
1088
|
-
"The [System] program."
|
|
1089
|
-
];
|
|
1090
|
-
"address": "11111111111111111111111111111111";
|
|
1091
622
|
}
|
|
1092
623
|
];
|
|
1093
|
-
"args": [];
|
|
1094
624
|
},
|
|
1095
625
|
{
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
163,
|
|
1100
|
-
0,
|
|
1101
|
-
52,
|
|
1102
|
-
91,
|
|
1103
|
-
194,
|
|
1104
|
-
187,
|
|
1105
|
-
92
|
|
1106
|
-
];
|
|
1107
|
-
"accounts": [
|
|
626
|
+
name: "setAdmin";
|
|
627
|
+
discriminator: [251, 163, 0, 52, 91, 194, 187, 92];
|
|
628
|
+
accounts: [
|
|
1108
629
|
{
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
];
|
|
1113
|
-
"writable": true;
|
|
630
|
+
name: "distributor";
|
|
631
|
+
docs: ["The [MerkleDistributor]."];
|
|
632
|
+
writable: true;
|
|
1114
633
|
},
|
|
1115
634
|
{
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
"writable": true;
|
|
1121
|
-
"signer": true;
|
|
635
|
+
name: "admin";
|
|
636
|
+
docs: ["Admin signer"];
|
|
637
|
+
writable: true;
|
|
638
|
+
signer: true;
|
|
1122
639
|
},
|
|
1123
640
|
{
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
];
|
|
1128
|
-
"writable": true;
|
|
641
|
+
name: "newAdmin";
|
|
642
|
+
docs: ["New admin account"];
|
|
643
|
+
writable: true;
|
|
1129
644
|
}
|
|
1130
645
|
];
|
|
1131
|
-
|
|
646
|
+
args: [];
|
|
1132
647
|
},
|
|
1133
648
|
{
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
217,
|
|
1138
|
-
34,
|
|
1139
|
-
20,
|
|
1140
|
-
19,
|
|
1141
|
-
29,
|
|
1142
|
-
229,
|
|
1143
|
-
75
|
|
1144
|
-
];
|
|
1145
|
-
"accounts": [
|
|
649
|
+
name: "setClawbackReceiver";
|
|
650
|
+
discriminator: [153, 217, 34, 20, 19, 29, 229, 75];
|
|
651
|
+
accounts: [
|
|
1146
652
|
{
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
];
|
|
1151
|
-
"writable": true;
|
|
653
|
+
name: "distributor";
|
|
654
|
+
docs: ["The [MerkleDistributor]."];
|
|
655
|
+
writable: true;
|
|
1152
656
|
},
|
|
1153
657
|
{
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
"New clawback account"
|
|
1157
|
-
];
|
|
658
|
+
name: "newClawbackAccount";
|
|
659
|
+
docs: ["New clawback account"];
|
|
1158
660
|
},
|
|
1159
661
|
{
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
"writable": true;
|
|
1165
|
-
"signer": true;
|
|
662
|
+
name: "admin";
|
|
663
|
+
docs: ["Admin signer"];
|
|
664
|
+
writable: true;
|
|
665
|
+
signer: true;
|
|
1166
666
|
}
|
|
1167
667
|
];
|
|
1168
|
-
|
|
668
|
+
args: [];
|
|
1169
669
|
},
|
|
1170
670
|
{
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
200,
|
|
1175
|
-
88,
|
|
1176
|
-
176,
|
|
1177
|
-
158,
|
|
1178
|
-
63,
|
|
1179
|
-
253,
|
|
1180
|
-
127
|
|
1181
|
-
];
|
|
1182
|
-
"accounts": [
|
|
671
|
+
name: "update";
|
|
672
|
+
discriminator: [219, 200, 88, 176, 158, 63, 253, 127];
|
|
673
|
+
accounts: [
|
|
1183
674
|
{
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
];
|
|
1188
|
-
"writable": true;
|
|
675
|
+
name: "distributor";
|
|
676
|
+
docs: ["The [MerkleDistributor]."];
|
|
677
|
+
writable: true;
|
|
1189
678
|
},
|
|
1190
679
|
{
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
"writable": true;
|
|
1196
|
-
"signer": true;
|
|
680
|
+
name: "admin";
|
|
681
|
+
docs: ["Only Admin can trigger the clawback of funds"];
|
|
682
|
+
writable: true;
|
|
683
|
+
signer: true;
|
|
1197
684
|
},
|
|
1198
685
|
{
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
];
|
|
1203
|
-
"address": "11111111111111111111111111111111";
|
|
686
|
+
name: "systemProgram";
|
|
687
|
+
docs: ["The [System] program."];
|
|
688
|
+
address: "11111111111111111111111111111111";
|
|
1204
689
|
}
|
|
1205
690
|
];
|
|
1206
|
-
|
|
691
|
+
args: [
|
|
1207
692
|
{
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
693
|
+
name: "endTs";
|
|
694
|
+
type: {
|
|
695
|
+
option: "u64";
|
|
1211
696
|
};
|
|
1212
697
|
}
|
|
1213
698
|
];
|
|
1214
699
|
}
|
|
1215
700
|
];
|
|
1216
|
-
|
|
701
|
+
accounts: [
|
|
1217
702
|
{
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
22,
|
|
1221
|
-
183,
|
|
1222
|
-
249,
|
|
1223
|
-
157,
|
|
1224
|
-
247,
|
|
1225
|
-
95,
|
|
1226
|
-
150,
|
|
1227
|
-
96
|
|
1228
|
-
];
|
|
703
|
+
name: "claimStatus";
|
|
704
|
+
discriminator: [22, 183, 249, 157, 247, 95, 150, 96];
|
|
1229
705
|
},
|
|
1230
706
|
{
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
53,
|
|
1234
|
-
68,
|
|
1235
|
-
161,
|
|
1236
|
-
131,
|
|
1237
|
-
212,
|
|
1238
|
-
106,
|
|
1239
|
-
98,
|
|
1240
|
-
48
|
|
1241
|
-
];
|
|
1242
|
-
},
|
|
1243
|
-
{
|
|
1244
|
-
"name": "merkleDistributor";
|
|
1245
|
-
"discriminator": [
|
|
1246
|
-
77,
|
|
1247
|
-
119,
|
|
1248
|
-
139,
|
|
1249
|
-
70,
|
|
1250
|
-
84,
|
|
1251
|
-
247,
|
|
1252
|
-
12,
|
|
1253
|
-
26
|
|
1254
|
-
];
|
|
707
|
+
name: "merkleDistributor";
|
|
708
|
+
discriminator: [77, 119, 139, 70, 84, 247, 12, 26];
|
|
1255
709
|
}
|
|
1256
710
|
];
|
|
1257
|
-
|
|
711
|
+
events: [
|
|
1258
712
|
{
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
139,
|
|
1262
|
-
166,
|
|
1263
|
-
215,
|
|
1264
|
-
195,
|
|
1265
|
-
184,
|
|
1266
|
-
233,
|
|
1267
|
-
26,
|
|
1268
|
-
217
|
|
1269
|
-
];
|
|
713
|
+
name: "claimClosedEvent";
|
|
714
|
+
discriminator: [139, 166, 215, 195, 184, 233, 26, 217];
|
|
1270
715
|
},
|
|
1271
716
|
{
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
144,
|
|
1275
|
-
172,
|
|
1276
|
-
209,
|
|
1277
|
-
86,
|
|
1278
|
-
144,
|
|
1279
|
-
87,
|
|
1280
|
-
84,
|
|
1281
|
-
115
|
|
1282
|
-
];
|
|
717
|
+
name: "claimedEvent";
|
|
718
|
+
discriminator: [144, 172, 209, 86, 144, 87, 84, 115];
|
|
1283
719
|
},
|
|
1284
720
|
{
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
244,
|
|
1288
|
-
3,
|
|
1289
|
-
231,
|
|
1290
|
-
151,
|
|
1291
|
-
60,
|
|
1292
|
-
101,
|
|
1293
|
-
55,
|
|
1294
|
-
55
|
|
1295
|
-
];
|
|
721
|
+
name: "newClaimEvent";
|
|
722
|
+
discriminator: [244, 3, 231, 151, 60, 101, 55, 55];
|
|
1296
723
|
}
|
|
1297
724
|
];
|
|
1298
|
-
|
|
725
|
+
errors: [
|
|
1299
726
|
{
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
727
|
+
code: 6000;
|
|
728
|
+
name: "insufficientUnlockedTokens";
|
|
729
|
+
msg: "Insufficient unlocked tokens";
|
|
1303
730
|
},
|
|
1304
731
|
{
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
732
|
+
code: 6001;
|
|
733
|
+
name: "invalidProof";
|
|
734
|
+
msg: "Invalid Merkle proof";
|
|
1308
735
|
},
|
|
1309
736
|
{
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
737
|
+
code: 6002;
|
|
738
|
+
name: "exceededMaxClaim";
|
|
739
|
+
msg: "Exceeded maximum claim amount";
|
|
1313
740
|
},
|
|
1314
741
|
{
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
742
|
+
code: 6003;
|
|
743
|
+
name: "maxNodesExceeded";
|
|
744
|
+
msg: "Exceeded maximum node count";
|
|
1318
745
|
},
|
|
1319
746
|
{
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
747
|
+
code: 6004;
|
|
748
|
+
name: "unauthorized";
|
|
749
|
+
msg: "Account is not authorized to execute this instruction";
|
|
1323
750
|
},
|
|
1324
751
|
{
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
752
|
+
code: 6005;
|
|
753
|
+
name: "ownerMismatch";
|
|
754
|
+
msg: "Token account owner did not match intended owner";
|
|
1328
755
|
},
|
|
1329
756
|
{
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
757
|
+
code: 6006;
|
|
758
|
+
name: "clawbackBeforeStart";
|
|
759
|
+
msg: "Attempted clawback before start";
|
|
1333
760
|
},
|
|
1334
761
|
{
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
762
|
+
code: 6007;
|
|
763
|
+
name: "clawbackAlreadyClaimed";
|
|
764
|
+
msg: "Clawback already claimed";
|
|
1338
765
|
},
|
|
1339
766
|
{
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
767
|
+
code: 6008;
|
|
768
|
+
name: "sameClawbackReceiver";
|
|
769
|
+
msg: "New and old Clawback receivers are identical";
|
|
1343
770
|
},
|
|
1344
771
|
{
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
772
|
+
code: 6009;
|
|
773
|
+
name: "clawbackReceiverIsTokenVault";
|
|
774
|
+
msg: "Clawback receiver can not be the Token Vault";
|
|
1348
775
|
},
|
|
1349
776
|
{
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
777
|
+
code: 6010;
|
|
778
|
+
name: "sameAdmin";
|
|
779
|
+
msg: "New and old admin are identical";
|
|
1353
780
|
},
|
|
1354
781
|
{
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
782
|
+
code: 6011;
|
|
783
|
+
name: "claimExpired";
|
|
784
|
+
msg: "Claim window expired";
|
|
1358
785
|
},
|
|
1359
786
|
{
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
787
|
+
code: 6012;
|
|
788
|
+
name: "arithmeticError";
|
|
789
|
+
msg: "Arithmetic Error (overflow/underflow)";
|
|
1363
790
|
},
|
|
1364
791
|
{
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
792
|
+
code: 6013;
|
|
793
|
+
name: "startTimestampAfterEnd";
|
|
794
|
+
msg: "Start Timestamp cannot be after end Timestamp";
|
|
1368
795
|
},
|
|
1369
796
|
{
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
797
|
+
code: 6014;
|
|
798
|
+
name: "timestampsNotInFuture";
|
|
799
|
+
msg: "Timestamps cannot be in the past";
|
|
1373
800
|
},
|
|
1374
801
|
{
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
802
|
+
code: 6015;
|
|
803
|
+
name: "invalidMint";
|
|
804
|
+
msg: "Invalid Mint";
|
|
1378
805
|
},
|
|
1379
806
|
{
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
807
|
+
code: 6016;
|
|
808
|
+
name: "claimIsClosed";
|
|
809
|
+
msg: "Claim is closed";
|
|
1383
810
|
},
|
|
1384
811
|
{
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
812
|
+
code: 6017;
|
|
813
|
+
name: "claimsAreNotClosable";
|
|
814
|
+
msg: "Claims are not closable";
|
|
1388
815
|
},
|
|
1389
816
|
{
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
817
|
+
code: 6018;
|
|
818
|
+
name: "invalidUnlockPeriod";
|
|
819
|
+
msg: "Invalid unlock period";
|
|
1393
820
|
},
|
|
1394
821
|
{
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
822
|
+
code: 6019;
|
|
823
|
+
name: "durationUpdateNotAllowed";
|
|
824
|
+
msg: "Duration update is not allowed";
|
|
1398
825
|
},
|
|
1399
826
|
{
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
827
|
+
code: 6020;
|
|
828
|
+
name: "noVestingAmount";
|
|
829
|
+
msg: "Vesting amounts are not set";
|
|
1403
830
|
},
|
|
1404
831
|
{
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
832
|
+
code: 6021;
|
|
833
|
+
name: "vestingAlreadyFinished";
|
|
834
|
+
msg: "Vesting already finished";
|
|
1408
835
|
},
|
|
1409
836
|
{
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
837
|
+
code: 6022;
|
|
838
|
+
name: "invalidAmounts";
|
|
839
|
+
msg: "Provided amounts are invalid";
|
|
1413
840
|
},
|
|
1414
841
|
{
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
842
|
+
code: 6023;
|
|
843
|
+
name: "claimsLimitReached";
|
|
844
|
+
msg: "Claims limit has been reached";
|
|
1418
845
|
}
|
|
1419
846
|
];
|
|
1420
|
-
|
|
847
|
+
types: [
|
|
1421
848
|
{
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
"kind": "struct";
|
|
1428
|
-
"fields": [
|
|
849
|
+
name: "claimClosedEvent";
|
|
850
|
+
docs: ["Emitted when a new claim is created."];
|
|
851
|
+
type: {
|
|
852
|
+
kind: "struct";
|
|
853
|
+
fields: [
|
|
1429
854
|
{
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
];
|
|
1434
|
-
"type": "pubkey";
|
|
855
|
+
name: "claimant";
|
|
856
|
+
docs: ["User that claimed."];
|
|
857
|
+
type: "pubkey";
|
|
1435
858
|
},
|
|
1436
859
|
{
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
];
|
|
1441
|
-
"type": "u64";
|
|
860
|
+
name: "timestamp";
|
|
861
|
+
docs: ["Timestamp."];
|
|
862
|
+
type: "u64";
|
|
1442
863
|
}
|
|
1443
864
|
];
|
|
1444
865
|
};
|
|
1445
866
|
},
|
|
1446
867
|
{
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
"kind": "struct";
|
|
1453
|
-
"fields": [
|
|
868
|
+
name: "claimStatus";
|
|
869
|
+
docs: ["Holds whether or not a claimant has claimed tokens."];
|
|
870
|
+
type: {
|
|
871
|
+
kind: "struct";
|
|
872
|
+
fields: [
|
|
1454
873
|
{
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
];
|
|
1459
|
-
"type": "pubkey";
|
|
874
|
+
name: "claimant";
|
|
875
|
+
docs: ["Authority that claimed the tokens."];
|
|
876
|
+
type: "pubkey";
|
|
1460
877
|
},
|
|
1461
878
|
{
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
];
|
|
1466
|
-
"type": "u64";
|
|
879
|
+
name: "lockedAmount";
|
|
880
|
+
docs: ["Locked amount"];
|
|
881
|
+
type: "u64";
|
|
1467
882
|
},
|
|
1468
883
|
{
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
];
|
|
1473
|
-
"type": "u64";
|
|
884
|
+
name: "lockedAmountWithdrawn";
|
|
885
|
+
docs: ["Locked amount withdrawn"];
|
|
886
|
+
type: "u64";
|
|
1474
887
|
},
|
|
1475
888
|
{
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
];
|
|
1480
|
-
"type": "u64";
|
|
889
|
+
name: "unlockedAmount";
|
|
890
|
+
docs: ["Unlocked amount"];
|
|
891
|
+
type: "u64";
|
|
1481
892
|
},
|
|
1482
893
|
{
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
];
|
|
1487
|
-
"type": "u64";
|
|
894
|
+
name: "lastClaimTs";
|
|
895
|
+
docs: ["Last claim time"];
|
|
896
|
+
type: "u64";
|
|
1488
897
|
},
|
|
1489
898
|
{
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
];
|
|
1494
|
-
"type": "u64";
|
|
899
|
+
name: "lastAmountPerUnlock";
|
|
900
|
+
docs: ["Track amount per unlock, can be useful for non-linear vesting"];
|
|
901
|
+
type: "u64";
|
|
1495
902
|
},
|
|
1496
903
|
{
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
];
|
|
1501
|
-
"type": "bool";
|
|
904
|
+
name: "closed";
|
|
905
|
+
docs: ["Whether claim is closed"];
|
|
906
|
+
type: "bool";
|
|
1502
907
|
},
|
|
1503
908
|
{
|
|
1504
|
-
|
|
1505
|
-
|
|
909
|
+
name: "distributor";
|
|
910
|
+
docs: [
|
|
1506
911
|
"Distributor account for which ClaimStatus was created, useful to filter by in get_program_accounts"
|
|
1507
912
|
];
|
|
1508
|
-
|
|
913
|
+
type: "pubkey";
|
|
1509
914
|
},
|
|
1510
915
|
{
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
];
|
|
1515
|
-
"type": "u16";
|
|
916
|
+
name: "claimsCount";
|
|
917
|
+
docs: ["Number of time amount has been claimed"];
|
|
918
|
+
type: "u16";
|
|
1516
919
|
},
|
|
1517
920
|
{
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
];
|
|
1522
|
-
"type": "u64";
|
|
921
|
+
name: "closedTs";
|
|
922
|
+
docs: ["Time when claim has been closed"];
|
|
923
|
+
type: "u64";
|
|
1523
924
|
},
|
|
1524
925
|
{
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
"type": {
|
|
1530
|
-
"array": [
|
|
1531
|
-
"u8",
|
|
1532
|
-
22
|
|
1533
|
-
];
|
|
926
|
+
name: "buffer2";
|
|
927
|
+
docs: ["Buffer for additional fields"];
|
|
928
|
+
type: {
|
|
929
|
+
array: ["u8", 22];
|
|
1534
930
|
};
|
|
1535
931
|
}
|
|
1536
932
|
];
|
|
1537
933
|
};
|
|
1538
934
|
},
|
|
1539
935
|
{
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
"kind": "struct";
|
|
1546
|
-
"fields": [
|
|
936
|
+
name: "claimedEvent";
|
|
937
|
+
docs: ["Emitted when tokens are claimed."];
|
|
938
|
+
type: {
|
|
939
|
+
kind: "struct";
|
|
940
|
+
fields: [
|
|
1547
941
|
{
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
];
|
|
1552
|
-
"type": "pubkey";
|
|
942
|
+
name: "claimant";
|
|
943
|
+
docs: ["User that claimed."];
|
|
944
|
+
type: "pubkey";
|
|
1553
945
|
},
|
|
1554
946
|
{
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
];
|
|
1559
|
-
"type": "u64";
|
|
947
|
+
name: "amount";
|
|
948
|
+
docs: ["Amount of tokens to distribute."];
|
|
949
|
+
type: "u64";
|
|
1560
950
|
}
|
|
1561
951
|
];
|
|
1562
952
|
};
|
|
1563
953
|
},
|
|
1564
954
|
{
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
"kind": "struct";
|
|
1571
|
-
"fields": [
|
|
955
|
+
name: "merkleDistributor";
|
|
956
|
+
docs: ["State for the account which distributes tokens."];
|
|
957
|
+
type: {
|
|
958
|
+
kind: "struct";
|
|
959
|
+
fields: [
|
|
1572
960
|
{
|
|
1573
|
-
|
|
1574
|
-
"
|
|
1575
|
-
|
|
1576
|
-
"name": "state";
|
|
1577
|
-
};
|
|
1578
|
-
};
|
|
1579
|
-
}
|
|
1580
|
-
];
|
|
1581
|
-
};
|
|
1582
|
-
},
|
|
1583
|
-
{
|
|
1584
|
-
"name": "merkleDistributor";
|
|
1585
|
-
"docs": [
|
|
1586
|
-
"State for the account which distributes tokens."
|
|
1587
|
-
];
|
|
1588
|
-
"type": {
|
|
1589
|
-
"kind": "struct";
|
|
1590
|
-
"fields": [
|
|
1591
|
-
{
|
|
1592
|
-
"name": "bump";
|
|
1593
|
-
"docs": [
|
|
1594
|
-
"Bump seed."
|
|
1595
|
-
];
|
|
1596
|
-
"type": "u8";
|
|
961
|
+
name: "bump";
|
|
962
|
+
docs: ["Bump seed."];
|
|
963
|
+
type: "u8";
|
|
1597
964
|
},
|
|
1598
965
|
{
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
];
|
|
1603
|
-
"type": "u64";
|
|
966
|
+
name: "version";
|
|
967
|
+
docs: ["Version of the airdrop"];
|
|
968
|
+
type: "u64";
|
|
1604
969
|
},
|
|
1605
970
|
{
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
"type": {
|
|
1611
|
-
"array": [
|
|
1612
|
-
"u8",
|
|
1613
|
-
32
|
|
1614
|
-
];
|
|
971
|
+
name: "root";
|
|
972
|
+
docs: ["The 256-bit merkle root."];
|
|
973
|
+
type: {
|
|
974
|
+
array: ["u8", 32];
|
|
1615
975
|
};
|
|
1616
976
|
},
|
|
1617
977
|
{
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
];
|
|
1622
|
-
"type": "pubkey";
|
|
978
|
+
name: "mint";
|
|
979
|
+
docs: ["[Mint] of the token to be distributed."];
|
|
980
|
+
type: "pubkey";
|
|
1623
981
|
},
|
|
1624
982
|
{
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
];
|
|
1629
|
-
"type": "pubkey";
|
|
983
|
+
name: "tokenVault";
|
|
984
|
+
docs: ["Token Address of the vault"];
|
|
985
|
+
type: "pubkey";
|
|
1630
986
|
},
|
|
1631
987
|
{
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
];
|
|
1636
|
-
"type": "u64";
|
|
988
|
+
name: "maxTotalClaim";
|
|
989
|
+
docs: ["Maximum number of tokens that can ever be claimed from this [MerkleDistributor]."];
|
|
990
|
+
type: "u64";
|
|
1637
991
|
},
|
|
1638
992
|
{
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
];
|
|
1643
|
-
"type": "u64";
|
|
993
|
+
name: "maxNumNodes";
|
|
994
|
+
docs: ["Maximum number of nodes in [MerkleDistributor]."];
|
|
995
|
+
type: "u64";
|
|
1644
996
|
},
|
|
1645
997
|
{
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
];
|
|
1650
|
-
"type": "u64";
|
|
998
|
+
name: "unlockPeriod";
|
|
999
|
+
docs: ["Time step (period) in seconds per which the unlock occurs"];
|
|
1000
|
+
type: "u64";
|
|
1651
1001
|
},
|
|
1652
1002
|
{
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
];
|
|
1657
|
-
"type": "u64";
|
|
1003
|
+
name: "totalAmountClaimed";
|
|
1004
|
+
docs: ["Total amount of tokens that have been claimed."];
|
|
1005
|
+
type: "u64";
|
|
1658
1006
|
},
|
|
1659
1007
|
{
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
];
|
|
1664
|
-
"type": "u64";
|
|
1008
|
+
name: "numNodesClaimed";
|
|
1009
|
+
docs: ["Number of nodes that have been claimed."];
|
|
1010
|
+
type: "u64";
|
|
1665
1011
|
},
|
|
1666
1012
|
{
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
];
|
|
1671
|
-
"type": "u64";
|
|
1013
|
+
name: "startTs";
|
|
1014
|
+
docs: ["Lockup time start (Unix Timestamp)"];
|
|
1015
|
+
type: "u64";
|
|
1672
1016
|
},
|
|
1673
1017
|
{
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
];
|
|
1678
|
-
"type": "u64";
|
|
1018
|
+
name: "endTs";
|
|
1019
|
+
docs: ["Lockup time end (Unix Timestamp)"];
|
|
1020
|
+
type: "u64";
|
|
1679
1021
|
},
|
|
1680
1022
|
{
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
];
|
|
1685
|
-
"type": "u64";
|
|
1023
|
+
name: "clawbackStartTs";
|
|
1024
|
+
docs: ["Clawback start (Unix Timestamp)"];
|
|
1025
|
+
type: "u64";
|
|
1686
1026
|
},
|
|
1687
1027
|
{
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
];
|
|
1692
|
-
"type": "pubkey";
|
|
1028
|
+
name: "clawbackReceiver";
|
|
1029
|
+
docs: ["Clawback receiver"];
|
|
1030
|
+
type: "pubkey";
|
|
1693
1031
|
},
|
|
1694
1032
|
{
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
];
|
|
1699
|
-
"type": "pubkey";
|
|
1033
|
+
name: "admin";
|
|
1034
|
+
docs: ["Admin wallet"];
|
|
1035
|
+
type: "pubkey";
|
|
1700
1036
|
},
|
|
1701
1037
|
{
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
];
|
|
1706
|
-
"type": "bool";
|
|
1038
|
+
name: "clawedBack";
|
|
1039
|
+
docs: ["Whether or not the distributor has been clawed back"];
|
|
1040
|
+
type: "bool";
|
|
1707
1041
|
},
|
|
1708
1042
|
{
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
];
|
|
1713
|
-
"type": "bool";
|
|
1043
|
+
name: "claimsClosableByAdmin";
|
|
1044
|
+
docs: ["Whether claims are closable by the admin or not"];
|
|
1045
|
+
type: "bool";
|
|
1714
1046
|
},
|
|
1715
1047
|
{
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
];
|
|
1720
|
-
"type": "bool";
|
|
1048
|
+
name: "canUpdateDuration";
|
|
1049
|
+
docs: ["Whether admin can update vesting duration"];
|
|
1050
|
+
type: "bool";
|
|
1721
1051
|
},
|
|
1722
1052
|
{
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
];
|
|
1727
|
-
"type": "u64";
|
|
1053
|
+
name: "totalAmountUnlocked";
|
|
1054
|
+
docs: ["Total amount of funds unlocked (cliff/instant)"];
|
|
1055
|
+
type: "u64";
|
|
1728
1056
|
},
|
|
1729
1057
|
{
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
];
|
|
1734
|
-
"type": "u64";
|
|
1058
|
+
name: "totalAmountLocked";
|
|
1059
|
+
docs: ["Total amount of funds locked (vested)"];
|
|
1060
|
+
type: "u64";
|
|
1735
1061
|
},
|
|
1736
1062
|
{
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
];
|
|
1741
|
-
"type": "u64";
|
|
1063
|
+
name: "lastDurationUpdateTs";
|
|
1064
|
+
docs: ["Timestamp when update was last called"];
|
|
1065
|
+
type: "u64";
|
|
1742
1066
|
},
|
|
1743
1067
|
{
|
|
1744
|
-
|
|
1745
|
-
|
|
1068
|
+
name: "totalClaimablePreUpdate";
|
|
1069
|
+
docs: [
|
|
1746
1070
|
"Total amount of locked amount claimable as of last duration update, ever increasing total, accumulates with each update"
|
|
1747
1071
|
];
|
|
1748
|
-
|
|
1072
|
+
type: "u64";
|
|
1749
1073
|
},
|
|
1750
1074
|
{
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
];
|
|
1755
|
-
"type": "u64";
|
|
1075
|
+
name: "clawedBackTs";
|
|
1076
|
+
docs: ["Timestamp when funds were clawed back"];
|
|
1077
|
+
type: "u64";
|
|
1756
1078
|
},
|
|
1757
1079
|
{
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
];
|
|
1762
|
-
"type": "bool";
|
|
1080
|
+
name: "claimsClosableByClaimant";
|
|
1081
|
+
docs: ["Whether claims are closable by claimant or not"];
|
|
1082
|
+
type: "bool";
|
|
1763
1083
|
},
|
|
1764
1084
|
{
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
];
|
|
1769
|
-
"type": "u16";
|
|
1085
|
+
name: "claimsLimit";
|
|
1086
|
+
docs: ["Limit number of claims"];
|
|
1087
|
+
type: "u16";
|
|
1770
1088
|
},
|
|
1771
1089
|
{
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
"type": {
|
|
1777
|
-
"array": [
|
|
1778
|
-
"u8",
|
|
1779
|
-
20
|
|
1780
|
-
];
|
|
1090
|
+
name: "buffer2";
|
|
1091
|
+
docs: ["Buffer for additional fields"];
|
|
1092
|
+
type: {
|
|
1093
|
+
array: ["u8", 20];
|
|
1781
1094
|
};
|
|
1782
1095
|
},
|
|
1783
1096
|
{
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
"type": {
|
|
1789
|
-
"array": [
|
|
1790
|
-
"u8",
|
|
1791
|
-
32
|
|
1792
|
-
];
|
|
1097
|
+
name: "buffer3";
|
|
1098
|
+
docs: ["Buffer for additional fields"];
|
|
1099
|
+
type: {
|
|
1100
|
+
array: ["u8", 32];
|
|
1793
1101
|
};
|
|
1794
1102
|
}
|
|
1795
1103
|
];
|
|
1796
1104
|
};
|
|
1797
1105
|
},
|
|
1798
1106
|
{
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
"kind": "struct";
|
|
1805
|
-
"fields": [
|
|
1806
|
-
{
|
|
1807
|
-
"name": "claimant";
|
|
1808
|
-
"docs": [
|
|
1809
|
-
"User that claimed."
|
|
1810
|
-
];
|
|
1811
|
-
"type": "pubkey";
|
|
1812
|
-
},
|
|
1813
|
-
{
|
|
1814
|
-
"name": "timestamp";
|
|
1815
|
-
"docs": [
|
|
1816
|
-
"Timestamp."
|
|
1817
|
-
];
|
|
1818
|
-
"type": "u64";
|
|
1819
|
-
}
|
|
1820
|
-
];
|
|
1821
|
-
};
|
|
1822
|
-
},
|
|
1823
|
-
{
|
|
1824
|
-
"name": "state";
|
|
1825
|
-
"type": {
|
|
1826
|
-
"kind": "enum";
|
|
1827
|
-
"variants": [
|
|
1107
|
+
name: "newClaimEvent";
|
|
1108
|
+
docs: ["Emitted when a new claim is created."];
|
|
1109
|
+
type: {
|
|
1110
|
+
kind: "struct";
|
|
1111
|
+
fields: [
|
|
1828
1112
|
{
|
|
1829
|
-
|
|
1113
|
+
name: "claimant";
|
|
1114
|
+
docs: ["User that claimed."];
|
|
1115
|
+
type: "pubkey";
|
|
1830
1116
|
},
|
|
1831
1117
|
{
|
|
1832
|
-
|
|
1118
|
+
name: "timestamp";
|
|
1119
|
+
docs: ["Timestamp."];
|
|
1120
|
+
type: "u64";
|
|
1833
1121
|
}
|
|
1834
1122
|
];
|
|
1835
1123
|
};
|