@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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"address": "aMERKpFAWoChCi5oZwPvgsSCoGpZKBiU7fi76bdZjt2",
|
|
3
3
|
"metadata": {
|
|
4
4
|
"name": "aligned_distributor",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.3.2",
|
|
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,48 +146,6 @@
|
|
|
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
|
-
},
|
|
191
149
|
{
|
|
192
150
|
"name": "new_distributor",
|
|
193
151
|
"discriminator": [32, 139, 112, 171, 0, 2, 225, 155],
|
|
@@ -273,48 +231,6 @@
|
|
|
273
231
|
}
|
|
274
232
|
]
|
|
275
233
|
},
|
|
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
|
-
},
|
|
318
234
|
{
|
|
319
235
|
"name": "set_admin",
|
|
320
236
|
"discriminator": [251, 163, 0, 52, 91, 194, 187, 92],
|
|
@@ -1005,4 +921,4 @@
|
|
|
1005
921
|
}
|
|
1006
922
|
}
|
|
1007
923
|
]
|
|
1008
|
-
}
|
|
924
|
+
}
|
|
@@ -2,70 +2,12 @@
|
|
|
2
2
|
"address": "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N",
|
|
3
3
|
"metadata": {
|
|
4
4
|
"name": "merkle_distributor",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.4.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
|
-
},
|
|
69
11
|
{
|
|
70
12
|
"name": "claim_locked",
|
|
71
13
|
"discriminator": [34, 206, 181, 23, 11, 207, 147, 90],
|
|
@@ -77,6 +19,7 @@
|
|
|
77
19
|
},
|
|
78
20
|
{
|
|
79
21
|
"name": "claim_status",
|
|
22
|
+
"docs": ["Claim Status PDA"],
|
|
80
23
|
"writable": true,
|
|
81
24
|
"pda": {
|
|
82
25
|
"seeds": [
|
|
@@ -220,11 +163,11 @@
|
|
|
220
163
|
"signer": true
|
|
221
164
|
},
|
|
222
165
|
{
|
|
223
|
-
"name": "claimant"
|
|
224
|
-
"writable": true
|
|
166
|
+
"name": "claimant"
|
|
225
167
|
},
|
|
226
168
|
{
|
|
227
169
|
"name": "claim_status",
|
|
170
|
+
"docs": ["Claim Status PDA"],
|
|
228
171
|
"writable": true,
|
|
229
172
|
"pda": {
|
|
230
173
|
"seeds": [
|
|
@@ -288,52 +231,6 @@
|
|
|
288
231
|
}
|
|
289
232
|
]
|
|
290
233
|
},
|
|
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
|
-
},
|
|
337
234
|
{
|
|
338
235
|
"name": "new_claim",
|
|
339
236
|
"discriminator": [78, 177, 98, 123, 210, 21, 187, 83],
|
|
@@ -345,6 +242,7 @@
|
|
|
345
242
|
},
|
|
346
243
|
{
|
|
347
244
|
"name": "claim_status",
|
|
245
|
+
"docs": ["Claim status PDA"],
|
|
348
246
|
"writable": true,
|
|
349
247
|
"pda": {
|
|
350
248
|
"seeds": [
|
|
@@ -628,57 +526,6 @@
|
|
|
628
526
|
}
|
|
629
527
|
]
|
|
630
528
|
},
|
|
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
|
-
},
|
|
682
529
|
{
|
|
683
530
|
"name": "set_admin",
|
|
684
531
|
"discriminator": [251, 163, 0, 52, 91, 194, 187, 92],
|
|
@@ -760,10 +607,6 @@
|
|
|
760
607
|
"name": "ClaimStatus",
|
|
761
608
|
"discriminator": [22, 183, 249, 157, 247, 95, 150, 96]
|
|
762
609
|
},
|
|
763
|
-
{
|
|
764
|
-
"name": "CompressedClaimStatus",
|
|
765
|
-
"discriminator": [53, 68, 161, 131, 212, 106, 98, 48]
|
|
766
|
-
},
|
|
767
610
|
{
|
|
768
611
|
"name": "MerkleDistributor",
|
|
769
612
|
"discriminator": [77, 119, 139, 70, 84, 247, 12, 26]
|
|
@@ -1012,23 +855,6 @@
|
|
|
1012
855
|
]
|
|
1013
856
|
}
|
|
1014
857
|
},
|
|
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
|
-
},
|
|
1032
858
|
{
|
|
1033
859
|
"name": "MerkleDistributor",
|
|
1034
860
|
"docs": ["State for the account which distributes tokens."],
|
|
@@ -1199,20 +1025,6 @@
|
|
|
1199
1025
|
}
|
|
1200
1026
|
]
|
|
1201
1027
|
}
|
|
1202
|
-
},
|
|
1203
|
-
{
|
|
1204
|
-
"name": "State",
|
|
1205
|
-
"type": {
|
|
1206
|
-
"kind": "enum",
|
|
1207
|
-
"variants": [
|
|
1208
|
-
{
|
|
1209
|
-
"name": "Claimed"
|
|
1210
|
-
},
|
|
1211
|
-
{
|
|
1212
|
-
"name": "Closed"
|
|
1213
|
-
}
|
|
1214
|
-
]
|
|
1215
|
-
}
|
|
1216
1028
|
}
|
|
1217
1029
|
]
|
|
1218
|
-
}
|
|
1030
|
+
}
|