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