@streamflow/distributor 7.5.3 → 8.0.0-alpha.p287.25d0c28

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