@streamflow/distributor 8.0.0 → 8.0.1-alpha.p287.54fe41f
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 +1573 -215
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +1 -0
- package/dist/cjs/solana/descriptor/aligned_distributor.d.cts +962 -505
- package/dist/cjs/solana/descriptor/merkle_distributor.d.cts +1272 -560
- package/dist/cjs/solana/index.cjs +1573 -215
- package/dist/cjs/solana/index.cjs.map +1 -1
- package/dist/cjs/solana/index.d.cts +37 -96
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1572 -214
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/solana/descriptor/aligned_distributor.d.ts +962 -505
- package/dist/esm/solana/descriptor/idl/aligned_distributor.json +86 -2
- package/dist/esm/solana/descriptor/idl/merkle_distributor.json +194 -6
- package/dist/esm/solana/descriptor/merkle_distributor.d.ts +1272 -560
- package/dist/esm/solana/index.d.ts +37 -96
- package/dist/esm/solana/index.js +1573 -214
- package/dist/esm/solana/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"address": "aMERKpFAWoChCi5oZwPvgsSCoGpZKBiU7fi76bdZjt2",
|
|
3
3
|
"metadata": {
|
|
4
4
|
"name": "aligned_distributor",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.5.0",
|
|
6
6
|
"spec": "0.1.0",
|
|
7
7
|
"description": "Proxy for merkle distributor that updates Vesting duration according to token market performance."
|
|
8
8
|
},
|
|
@@ -146,6 +146,48 @@
|
|
|
146
146
|
}
|
|
147
147
|
]
|
|
148
148
|
},
|
|
149
|
+
{
|
|
150
|
+
"name": "migrate_test_oracle",
|
|
151
|
+
"discriminator": [203, 254, 19, 3, 172, 185, 85, 190],
|
|
152
|
+
"accounts": [
|
|
153
|
+
{
|
|
154
|
+
"name": "payer",
|
|
155
|
+
"writable": true,
|
|
156
|
+
"signer": true
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"name": "mint"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"name": "creator"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "test_oracle",
|
|
166
|
+
"writable": true,
|
|
167
|
+
"pda": {
|
|
168
|
+
"seeds": [
|
|
169
|
+
{
|
|
170
|
+
"kind": "const",
|
|
171
|
+
"value": [116, 101, 115, 116, 45, 111, 114, 97, 99, 108, 101]
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"kind": "account",
|
|
175
|
+
"path": "mint"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"kind": "account",
|
|
179
|
+
"path": "creator"
|
|
180
|
+
}
|
|
181
|
+
]
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "system_program",
|
|
186
|
+
"address": "11111111111111111111111111111111"
|
|
187
|
+
}
|
|
188
|
+
],
|
|
189
|
+
"args": []
|
|
190
|
+
},
|
|
149
191
|
{
|
|
150
192
|
"name": "new_distributor",
|
|
151
193
|
"discriminator": [32, 139, 112, 171, 0, 2, 225, 155],
|
|
@@ -231,6 +273,48 @@
|
|
|
231
273
|
}
|
|
232
274
|
]
|
|
233
275
|
},
|
|
276
|
+
{
|
|
277
|
+
"name": "realloc_test_oracle",
|
|
278
|
+
"discriminator": [234, 221, 116, 4, 198, 251, 244, 206],
|
|
279
|
+
"accounts": [
|
|
280
|
+
{
|
|
281
|
+
"name": "payer",
|
|
282
|
+
"writable": true,
|
|
283
|
+
"signer": true
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"name": "mint"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"name": "creator"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"name": "test_oracle",
|
|
293
|
+
"writable": true,
|
|
294
|
+
"pda": {
|
|
295
|
+
"seeds": [
|
|
296
|
+
{
|
|
297
|
+
"kind": "const",
|
|
298
|
+
"value": [116, 101, 115, 116, 45, 111, 114, 97, 99, 108, 101]
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"kind": "account",
|
|
302
|
+
"path": "mint"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"kind": "account",
|
|
306
|
+
"path": "creator"
|
|
307
|
+
}
|
|
308
|
+
]
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"name": "system_program",
|
|
313
|
+
"address": "11111111111111111111111111111111"
|
|
314
|
+
}
|
|
315
|
+
],
|
|
316
|
+
"args": []
|
|
317
|
+
},
|
|
234
318
|
{
|
|
235
319
|
"name": "set_admin",
|
|
236
320
|
"discriminator": [251, 163, 0, 52, 91, 194, 187, 92],
|
|
@@ -921,4 +1005,4 @@
|
|
|
921
1005
|
}
|
|
922
1006
|
}
|
|
923
1007
|
]
|
|
924
|
-
}
|
|
1008
|
+
}
|
|
@@ -2,12 +2,70 @@
|
|
|
2
2
|
"address": "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N",
|
|
3
3
|
"metadata": {
|
|
4
4
|
"name": "merkle_distributor",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.5.0",
|
|
6
6
|
"spec": "0.1.0",
|
|
7
7
|
"description": "A Solana program for distributing tokens according to a Merkle root.",
|
|
8
8
|
"repository": "https://github.com/streamflow-finance/distributor"
|
|
9
9
|
},
|
|
10
10
|
"instructions": [
|
|
11
|
+
{
|
|
12
|
+
"name": "_expose_claim",
|
|
13
|
+
"discriminator": [103, 233, 83, 69, 115, 199, 128, 249],
|
|
14
|
+
"accounts": [
|
|
15
|
+
{
|
|
16
|
+
"name": "distributor",
|
|
17
|
+
"docs": ["The [MerkleDistributor]."]
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "claim_status",
|
|
21
|
+
"docs": ["Claim Status PDA"],
|
|
22
|
+
"optional": true,
|
|
23
|
+
"pda": {
|
|
24
|
+
"seeds": [
|
|
25
|
+
{
|
|
26
|
+
"kind": "const",
|
|
27
|
+
"value": [67, 108, 97, 105, 109, 83, 116, 97, 116, 117, 115]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"kind": "account",
|
|
31
|
+
"path": "claimant"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"kind": "account",
|
|
35
|
+
"path": "distributor"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "compressed_claim_status",
|
|
42
|
+
"docs": ["Compress Claim Status PDA"],
|
|
43
|
+
"optional": true,
|
|
44
|
+
"pda": {
|
|
45
|
+
"seeds": [
|
|
46
|
+
{
|
|
47
|
+
"kind": "const",
|
|
48
|
+
"value": [67, 108, 97, 105, 109, 83, 116, 97, 116, 117, 115]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"kind": "account",
|
|
52
|
+
"path": "claimant"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"kind": "account",
|
|
56
|
+
"path": "distributor"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "claimant",
|
|
63
|
+
"docs": ["Who is claiming the tokens."],
|
|
64
|
+
"signer": true
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"args": []
|
|
68
|
+
},
|
|
11
69
|
{
|
|
12
70
|
"name": "claim_locked",
|
|
13
71
|
"discriminator": [34, 206, 181, 23, 11, 207, 147, 90],
|
|
@@ -19,7 +77,6 @@
|
|
|
19
77
|
},
|
|
20
78
|
{
|
|
21
79
|
"name": "claim_status",
|
|
22
|
-
"docs": ["Claim Status PDA"],
|
|
23
80
|
"writable": true,
|
|
24
81
|
"pda": {
|
|
25
82
|
"seeds": [
|
|
@@ -163,11 +220,11 @@
|
|
|
163
220
|
"signer": true
|
|
164
221
|
},
|
|
165
222
|
{
|
|
166
|
-
"name": "claimant"
|
|
223
|
+
"name": "claimant",
|
|
224
|
+
"writable": true
|
|
167
225
|
},
|
|
168
226
|
{
|
|
169
227
|
"name": "claim_status",
|
|
170
|
-
"docs": ["Claim Status PDA"],
|
|
171
228
|
"writable": true,
|
|
172
229
|
"pda": {
|
|
173
230
|
"seeds": [
|
|
@@ -231,6 +288,52 @@
|
|
|
231
288
|
}
|
|
232
289
|
]
|
|
233
290
|
},
|
|
291
|
+
{
|
|
292
|
+
"name": "compress_claim",
|
|
293
|
+
"discriminator": [219, 45, 247, 134, 71, 119, 125, 89],
|
|
294
|
+
"accounts": [
|
|
295
|
+
{
|
|
296
|
+
"name": "distributor",
|
|
297
|
+
"docs": ["The [MerkleDistributor]."],
|
|
298
|
+
"writable": true
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"name": "claim_status",
|
|
302
|
+
"writable": true,
|
|
303
|
+
"pda": {
|
|
304
|
+
"seeds": [
|
|
305
|
+
{
|
|
306
|
+
"kind": "const",
|
|
307
|
+
"value": [67, 108, 97, 105, 109, 83, 116, 97, 116, 117, 115]
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"kind": "account",
|
|
311
|
+
"path": "claimant"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"kind": "account",
|
|
315
|
+
"path": "distributor"
|
|
316
|
+
}
|
|
317
|
+
]
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"name": "signer",
|
|
322
|
+
"docs": ["Signer account"],
|
|
323
|
+
"writable": true,
|
|
324
|
+
"signer": true
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"name": "claimant"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"name": "system_program",
|
|
331
|
+
"docs": ["The [System] program."],
|
|
332
|
+
"address": "11111111111111111111111111111111"
|
|
333
|
+
}
|
|
334
|
+
],
|
|
335
|
+
"args": []
|
|
336
|
+
},
|
|
234
337
|
{
|
|
235
338
|
"name": "new_claim",
|
|
236
339
|
"discriminator": [78, 177, 98, 123, 210, 21, 187, 83],
|
|
@@ -242,7 +345,6 @@
|
|
|
242
345
|
},
|
|
243
346
|
{
|
|
244
347
|
"name": "claim_status",
|
|
245
|
-
"docs": ["Claim status PDA"],
|
|
246
348
|
"writable": true,
|
|
247
349
|
"pda": {
|
|
248
350
|
"seeds": [
|
|
@@ -526,6 +628,57 @@
|
|
|
526
628
|
}
|
|
527
629
|
]
|
|
528
630
|
},
|
|
631
|
+
{
|
|
632
|
+
"name": "refund_claim",
|
|
633
|
+
"discriminator": [157, 23, 164, 146, 176, 53, 147, 143],
|
|
634
|
+
"accounts": [
|
|
635
|
+
{
|
|
636
|
+
"name": "distributor",
|
|
637
|
+
"docs": ["The [MerkleDistributor]."],
|
|
638
|
+
"writable": true
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"name": "claim_status",
|
|
642
|
+
"writable": true,
|
|
643
|
+
"pda": {
|
|
644
|
+
"seeds": [
|
|
645
|
+
{
|
|
646
|
+
"kind": "const",
|
|
647
|
+
"value": [67, 108, 97, 105, 109, 83, 116, 97, 116, 117, 115]
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
"kind": "account",
|
|
651
|
+
"path": "claimant"
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"kind": "account",
|
|
655
|
+
"path": "distributor"
|
|
656
|
+
}
|
|
657
|
+
]
|
|
658
|
+
}
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
"name": "signer",
|
|
662
|
+
"docs": ["Signer account"],
|
|
663
|
+
"writable": true,
|
|
664
|
+
"signer": true
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
"name": "claimant"
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
"name": "streamflow_treasury",
|
|
671
|
+
"writable": true,
|
|
672
|
+
"address": "5SEpbdjFK5FxwTvfsGMXVQTD2v4M2c5tyRTxhdsPkgDw"
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
"name": "system_program",
|
|
676
|
+
"docs": ["The [System] program."],
|
|
677
|
+
"address": "11111111111111111111111111111111"
|
|
678
|
+
}
|
|
679
|
+
],
|
|
680
|
+
"args": []
|
|
681
|
+
},
|
|
529
682
|
{
|
|
530
683
|
"name": "set_admin",
|
|
531
684
|
"discriminator": [251, 163, 0, 52, 91, 194, 187, 92],
|
|
@@ -607,6 +760,10 @@
|
|
|
607
760
|
"name": "ClaimStatus",
|
|
608
761
|
"discriminator": [22, 183, 249, 157, 247, 95, 150, 96]
|
|
609
762
|
},
|
|
763
|
+
{
|
|
764
|
+
"name": "CompressedClaimStatus",
|
|
765
|
+
"discriminator": [53, 68, 161, 131, 212, 106, 98, 48]
|
|
766
|
+
},
|
|
610
767
|
{
|
|
611
768
|
"name": "MerkleDistributor",
|
|
612
769
|
"discriminator": [77, 119, 139, 70, 84, 247, 12, 26]
|
|
@@ -855,6 +1012,23 @@
|
|
|
855
1012
|
]
|
|
856
1013
|
}
|
|
857
1014
|
},
|
|
1015
|
+
{
|
|
1016
|
+
"name": "CompressedClaimStatus",
|
|
1017
|
+
"docs": ["Holds whether or not a claimant has claimed tokens."],
|
|
1018
|
+
"type": {
|
|
1019
|
+
"kind": "struct",
|
|
1020
|
+
"fields": [
|
|
1021
|
+
{
|
|
1022
|
+
"name": "state",
|
|
1023
|
+
"type": {
|
|
1024
|
+
"defined": {
|
|
1025
|
+
"name": "State"
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
]
|
|
1030
|
+
}
|
|
1031
|
+
},
|
|
858
1032
|
{
|
|
859
1033
|
"name": "MerkleDistributor",
|
|
860
1034
|
"docs": ["State for the account which distributes tokens."],
|
|
@@ -1025,6 +1199,20 @@
|
|
|
1025
1199
|
}
|
|
1026
1200
|
]
|
|
1027
1201
|
}
|
|
1202
|
+
},
|
|
1203
|
+
{
|
|
1204
|
+
"name": "State",
|
|
1205
|
+
"type": {
|
|
1206
|
+
"kind": "enum",
|
|
1207
|
+
"variants": [
|
|
1208
|
+
{
|
|
1209
|
+
"name": "Claimed"
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
"name": "Closed"
|
|
1213
|
+
}
|
|
1214
|
+
]
|
|
1215
|
+
}
|
|
1028
1216
|
}
|
|
1029
1217
|
]
|
|
1030
|
-
}
|
|
1218
|
+
}
|