@streamflow/distributor 10.0.3 → 11.0.0-alpha.p334.30f5e22

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.
@@ -2,7 +2,7 @@
2
2
  "address": "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N",
3
3
  "metadata": {
4
4
  "name": "merkle_distributor",
5
- "version": "1.5.1",
5
+ "version": "2.0.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"
@@ -286,6 +286,280 @@
286
286
  ],
287
287
  "args": []
288
288
  },
289
+ {
290
+ "name": "claim_locked_v2",
291
+ "discriminator": [
292
+ 44,
293
+ 21,
294
+ 175,
295
+ 161,
296
+ 99,
297
+ 76,
298
+ 44,
299
+ 249
300
+ ],
301
+ "accounts": [
302
+ {
303
+ "name": "distributor",
304
+ "docs": [
305
+ "The [MerkleDistributor]."
306
+ ],
307
+ "writable": true
308
+ },
309
+ {
310
+ "name": "claim_status",
311
+ "writable": true,
312
+ "pda": {
313
+ "seeds": [
314
+ {
315
+ "kind": "const",
316
+ "value": [
317
+ 67,
318
+ 108,
319
+ 97,
320
+ 105,
321
+ 109,
322
+ 83,
323
+ 116,
324
+ 97,
325
+ 116,
326
+ 117,
327
+ 115
328
+ ]
329
+ },
330
+ {
331
+ "kind": "account",
332
+ "path": "claimant"
333
+ },
334
+ {
335
+ "kind": "account",
336
+ "path": "distributor"
337
+ }
338
+ ]
339
+ }
340
+ },
341
+ {
342
+ "name": "from",
343
+ "docs": [
344
+ "Distributor ATA containing the tokens to distribute."
345
+ ],
346
+ "writable": true,
347
+ "pda": {
348
+ "seeds": [
349
+ {
350
+ "kind": "account",
351
+ "path": "distributor"
352
+ },
353
+ {
354
+ "kind": "account",
355
+ "path": "token_program"
356
+ },
357
+ {
358
+ "kind": "account",
359
+ "path": "distributor.mint",
360
+ "account": "MerkleDistributor"
361
+ }
362
+ ],
363
+ "program": {
364
+ "kind": "const",
365
+ "value": [
366
+ 140,
367
+ 151,
368
+ 37,
369
+ 143,
370
+ 78,
371
+ 36,
372
+ 137,
373
+ 241,
374
+ 187,
375
+ 61,
376
+ 16,
377
+ 41,
378
+ 20,
379
+ 142,
380
+ 13,
381
+ 131,
382
+ 11,
383
+ 90,
384
+ 19,
385
+ 153,
386
+ 218,
387
+ 255,
388
+ 16,
389
+ 132,
390
+ 4,
391
+ 142,
392
+ 123,
393
+ 216,
394
+ 219,
395
+ 233,
396
+ 248,
397
+ 89
398
+ ]
399
+ }
400
+ }
401
+ },
402
+ {
403
+ "name": "to",
404
+ "docs": [
405
+ "Account to send the claimed tokens to.",
406
+ "Claimant must sign the transaction and can only claim on behalf of themself"
407
+ ],
408
+ "writable": true
409
+ },
410
+ {
411
+ "name": "claimant",
412
+ "docs": [
413
+ "Who is claiming the tokens."
414
+ ],
415
+ "writable": true,
416
+ "signer": true
417
+ },
418
+ {
419
+ "name": "mint",
420
+ "docs": [
421
+ "The mint to claim."
422
+ ],
423
+ "relations": [
424
+ "distributor"
425
+ ]
426
+ },
427
+ {
428
+ "name": "token_program",
429
+ "docs": [
430
+ "SPL [Token] program."
431
+ ]
432
+ },
433
+ {
434
+ "name": "system_program",
435
+ "docs": [
436
+ "System program for fee transfers."
437
+ ],
438
+ "address": "11111111111111111111111111111111"
439
+ },
440
+ {
441
+ "name": "event_authority",
442
+ "pda": {
443
+ "seeds": [
444
+ {
445
+ "kind": "const",
446
+ "value": [
447
+ 95,
448
+ 95,
449
+ 101,
450
+ 118,
451
+ 101,
452
+ 110,
453
+ 116,
454
+ 95,
455
+ 97,
456
+ 117,
457
+ 116,
458
+ 104,
459
+ 111,
460
+ 114,
461
+ 105,
462
+ 116,
463
+ 121
464
+ ]
465
+ }
466
+ ]
467
+ }
468
+ },
469
+ {
470
+ "name": "program"
471
+ }
472
+ ],
473
+ "args": []
474
+ },
475
+ {
476
+ "name": "claim_sol_fees",
477
+ "discriminator": [
478
+ 127,
479
+ 0,
480
+ 119,
481
+ 89,
482
+ 193,
483
+ 27,
484
+ 209,
485
+ 142
486
+ ],
487
+ "accounts": [
488
+ {
489
+ "name": "distributor",
490
+ "docs": [
491
+ "The [MerkleDistributor]."
492
+ ],
493
+ "writable": true
494
+ },
495
+ {
496
+ "name": "treasury",
497
+ "writable": true,
498
+ "address": "5SEpbdjFK5FxwTvfsGMXVQTD2v4M2c5tyRTxhdsPkgDw"
499
+ }
500
+ ],
501
+ "args": []
502
+ },
503
+ {
504
+ "name": "claim_token_fees",
505
+ "discriminator": [
506
+ 205,
507
+ 136,
508
+ 215,
509
+ 209,
510
+ 62,
511
+ 196,
512
+ 69,
513
+ 182
514
+ ],
515
+ "accounts": [
516
+ {
517
+ "name": "distributor",
518
+ "docs": [
519
+ "The [MerkleDistributor]."
520
+ ],
521
+ "writable": true
522
+ },
523
+ {
524
+ "name": "token_vault",
525
+ "docs": [
526
+ "Token vault to return clawback fee from"
527
+ ],
528
+ "writable": true,
529
+ "relations": [
530
+ "distributor"
531
+ ]
532
+ },
533
+ {
534
+ "name": "mint",
535
+ "docs": [
536
+ "Distributor mint"
537
+ ],
538
+ "relations": [
539
+ "distributor"
540
+ ]
541
+ },
542
+ {
543
+ "name": "treasury",
544
+ "writable": true,
545
+ "address": "5SEpbdjFK5FxwTvfsGMXVQTD2v4M2c5tyRTxhdsPkgDw"
546
+ },
547
+ {
548
+ "name": "to",
549
+ "docs": [
550
+ "Account to send the clawed back fee to."
551
+ ],
552
+ "writable": true
553
+ },
554
+ {
555
+ "name": "token_program",
556
+ "docs": [
557
+ "SPL [Token] program."
558
+ ]
559
+ }
560
+ ],
561
+ "args": []
562
+ },
289
563
  {
290
564
  "name": "clawback",
291
565
  "discriminator": [
@@ -940,6 +1214,76 @@
940
1214
  "docs": [
941
1215
  "The [Token] program."
942
1216
  ]
1217
+ },
1218
+ {
1219
+ "name": "partner_oracle_config",
1220
+ "pda": {
1221
+ "seeds": [
1222
+ {
1223
+ "kind": "const",
1224
+ "value": [
1225
+ 97,
1226
+ 105,
1227
+ 114,
1228
+ 100,
1229
+ 114,
1230
+ 111,
1231
+ 112,
1232
+ 95,
1233
+ 99,
1234
+ 111,
1235
+ 110,
1236
+ 102,
1237
+ 105,
1238
+ 103
1239
+ ]
1240
+ }
1241
+ ],
1242
+ "program": {
1243
+ "kind": "const",
1244
+ "value": [
1245
+ 12,
1246
+ 48,
1247
+ 148,
1248
+ 48,
1249
+ 221,
1250
+ 89,
1251
+ 2,
1252
+ 209,
1253
+ 180,
1254
+ 126,
1255
+ 151,
1256
+ 216,
1257
+ 166,
1258
+ 3,
1259
+ 112,
1260
+ 50,
1261
+ 177,
1262
+ 192,
1263
+ 141,
1264
+ 218,
1265
+ 37,
1266
+ 78,
1267
+ 51,
1268
+ 109,
1269
+ 243,
1270
+ 106,
1271
+ 174,
1272
+ 122,
1273
+ 93,
1274
+ 121,
1275
+ 191,
1276
+ 119
1277
+ ]
1278
+ }
1279
+ }
1280
+ },
1281
+ {
1282
+ "name": "partner_oracle",
1283
+ "docs": [
1284
+ "Partner Oracle program that stores fees"
1285
+ ],
1286
+ "address": "pardpVtPjC8nLj1Dwncew62mUzfChdCX1EaoZe8oCAa"
943
1287
  }
944
1288
  ],
945
1289
  "args": [
@@ -1169,6 +1513,43 @@
1169
1513
  ],
1170
1514
  "args": []
1171
1515
  },
1516
+ {
1517
+ "name": "set_token_price",
1518
+ "discriminator": [
1519
+ 166,
1520
+ 216,
1521
+ 142,
1522
+ 197,
1523
+ 200,
1524
+ 225,
1525
+ 253,
1526
+ 233
1527
+ ],
1528
+ "accounts": [
1529
+ {
1530
+ "name": "authority",
1531
+ "docs": [
1532
+ "Wallet authorized to call this method"
1533
+ ],
1534
+ "writable": true,
1535
+ "signer": true,
1536
+ "address": "wdrwhnCv4pzW8beKsbPa4S2UDZrXenjg16KJdKSpb5u"
1537
+ },
1538
+ {
1539
+ "name": "distributor",
1540
+ "docs": [
1541
+ "The [MerkleDistributor]."
1542
+ ],
1543
+ "writable": true
1544
+ }
1545
+ ],
1546
+ "args": [
1547
+ {
1548
+ "name": "price_lamports",
1549
+ "type": "u64"
1550
+ }
1551
+ ]
1552
+ },
1172
1553
  {
1173
1554
  "name": "update",
1174
1555
  "discriminator": [
@@ -1417,6 +1798,21 @@
1417
1798
  "code": 6023,
1418
1799
  "name": "ClaimsLimitReached",
1419
1800
  "msg": "Claims limit has been reached"
1801
+ },
1802
+ {
1803
+ "code": 6024,
1804
+ "name": "InsufficientFunds",
1805
+ "msg": "Account does not have enough funds to cover fees"
1806
+ },
1807
+ {
1808
+ "code": 6025,
1809
+ "name": "ClaimV2Required",
1810
+ "msg": "This Airdrop must be claimed via claimLockedV2"
1811
+ },
1812
+ {
1813
+ "code": 6026,
1814
+ "name": "NoFeesToClaim",
1815
+ "msg": "No fees to claim"
1420
1816
  }
1421
1817
  ],
1422
1818
  "types": [
@@ -1771,26 +2167,84 @@
1771
2167
  "type": "u16"
1772
2168
  },
1773
2169
  {
1774
- "name": "buffer_2",
2170
+ "name": "creation_fee",
1775
2171
  "docs": [
1776
- "Buffer for additional fields"
2172
+ "Creation SOL fee"
1777
2173
  ],
1778
- "type": {
1779
- "array": [
1780
- "u8",
1781
- 20
1782
- ]
1783
- }
2174
+ "type": "u32"
2175
+ },
2176
+ {
2177
+ "name": "creation_fee_claimed",
2178
+ "docs": [
2179
+ "Whether creation SOL was claimed"
2180
+ ],
2181
+ "type": "bool"
2182
+ },
2183
+ {
2184
+ "name": "claim_min_fee",
2185
+ "docs": [
2186
+ "Dynamic claim fee in SOL, min"
2187
+ ],
2188
+ "type": "u32"
1784
2189
  },
1785
2190
  {
1786
- "name": "buffer_3",
2191
+ "name": "claim_max_fee",
2192
+ "docs": [
2193
+ "Dynamic claim fee in SOL, max"
2194
+ ],
2195
+ "type": "u32"
2196
+ },
2197
+ {
2198
+ "name": "allocation_factor",
2199
+ "docs": [
2200
+ "Factor to multiply claimable SOL lamports by when calculating fee"
2201
+ ],
2202
+ "type": "f64"
2203
+ },
2204
+ {
2205
+ "name": "claim_fee_claimed",
2206
+ "docs": [
2207
+ "Whether all claim fees were claimed, true by default since no claim fee is taken on creation"
2208
+ ],
2209
+ "type": "bool"
2210
+ },
2211
+ {
2212
+ "name": "token_price_lamports",
2213
+ "docs": [
2214
+ "Last observed token price in lamports per 1 whole token for claim fee calculation"
2215
+ ],
2216
+ "type": "u64"
2217
+ },
2218
+ {
2219
+ "name": "clawback_token_fee_percent",
2220
+ "docs": [
2221
+ "Token % fee on clawback"
2222
+ ],
2223
+ "type": "f64"
2224
+ },
2225
+ {
2226
+ "name": "clawback_fee_claimed",
2227
+ "docs": [
2228
+ "Whether clawback token % fee has been claimed"
2229
+ ],
2230
+ "type": "bool"
2231
+ },
2232
+ {
2233
+ "name": "program_version",
2234
+ "docs": [
2235
+ "Program version that initiated the Distributor account"
2236
+ ],
2237
+ "type": "u8"
2238
+ },
2239
+ {
2240
+ "name": "buffer",
1787
2241
  "docs": [
1788
2242
  "Buffer for additional fields"
1789
2243
  ],
1790
2244
  "type": {
1791
2245
  "array": [
1792
2246
  "u8",
1793
- 32
2247
+ 13
1794
2248
  ]
1795
2249
  }
1796
2250
  }