@streamflow/distributor 12.4.0 → 12.5.0-alpha.p366.24de361

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.
@@ -1,5 +1,6 @@
1
1
  export { i as StreamflowDistributorSolana } from './solana/index.cjs';
2
2
  import '@solana/web3.js';
3
+ import 'buffer';
3
4
  import '@solana/wallet-adapter-base';
4
5
  import '@streamflow/common';
5
6
  import 'bn.js';
@@ -8,7 +8,7 @@ type AlignedDistributor = {
8
8
  "address": "aMERKpFAWoChCi5oZwPvgsSCoGpZKBiU7fi76bdZjt2";
9
9
  "metadata": {
10
10
  "name": "alignedDistributor";
11
- "version": "1.9.0";
11
+ "version": "1.10.0";
12
12
  "spec": "0.1.0";
13
13
  "description": "Proxy for merkle distributor that updates Vesting duration according to token market performance.";
14
14
  };
@@ -1276,6 +1276,69 @@ type AlignedDistributor = {
1276
1276
  ];
1277
1277
  };
1278
1278
  },
1279
+ {
1280
+ "name": "kycConfig";
1281
+ "docs": [
1282
+ "Configuration for kyc-gated (claim) Airdrops."
1283
+ ];
1284
+ "type": {
1285
+ "kind": "struct";
1286
+ "fields": [
1287
+ {
1288
+ "name": "isSet";
1289
+ "docs": [
1290
+ "Whether KYC is required to claim the Airdrop"
1291
+ ];
1292
+ "type": "bool";
1293
+ },
1294
+ {
1295
+ "name": "credential";
1296
+ "docs": [
1297
+ "SAS Credential account used to create attestations"
1298
+ ];
1299
+ "type": "pubkey";
1300
+ },
1301
+ {
1302
+ "name": "schema";
1303
+ "docs": [
1304
+ "SAS Schema account that attestation must conform to"
1305
+ ];
1306
+ "type": "pubkey";
1307
+ },
1308
+ {
1309
+ "name": "nonceLen";
1310
+ "docs": [
1311
+ "Length of the custom nonce portion; zero means the claimant address is used directly."
1312
+ ];
1313
+ "type": "u8";
1314
+ },
1315
+ {
1316
+ "name": "nonce";
1317
+ "docs": [
1318
+ "Optional custom nonce portion used as sha256(\"claimant_address:nonce\") for SAS attestation nonce."
1319
+ ];
1320
+ "type": {
1321
+ "array": [
1322
+ "u8",
1323
+ 32
1324
+ ];
1325
+ };
1326
+ },
1327
+ {
1328
+ "name": "buffer";
1329
+ "docs": [
1330
+ "Buffer for additional fields"
1331
+ ];
1332
+ "type": {
1333
+ "array": [
1334
+ "u8",
1335
+ 32
1336
+ ];
1337
+ };
1338
+ }
1339
+ ];
1340
+ };
1341
+ },
1279
1342
  {
1280
1343
  "name": "merkleDistributor";
1281
1344
  "docs": [
@@ -1568,10 +1631,18 @@ type AlignedDistributor = {
1568
1631
  "type": "u64";
1569
1632
  },
1570
1633
  {
1571
- "name": "buffer1";
1634
+ "name": "kycConfig";
1572
1635
  "docs": [
1573
1636
  "Buffers for additional fields"
1574
1637
  ];
1638
+ "type": {
1639
+ "defined": {
1640
+ "name": "kycConfig";
1641
+ };
1642
+ };
1643
+ },
1644
+ {
1645
+ "name": "buffer1";
1575
1646
  "type": {
1576
1647
  "array": [
1577
1648
  "u8",
@@ -1587,6 +1658,15 @@ type AlignedDistributor = {
1587
1658
  32
1588
1659
  ];
1589
1660
  };
1661
+ },
1662
+ {
1663
+ "name": "buffer3";
1664
+ "type": {
1665
+ "array": [
1666
+ "u8",
1667
+ 32
1668
+ ];
1669
+ };
1590
1670
  }
1591
1671
  ];
1592
1672
  };
@@ -8,7 +8,7 @@ type MerkleDistributor = {
8
8
  "address": "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N";
9
9
  "metadata": {
10
10
  "name": "merkleDistributor";
11
- "version": "1.9.0";
11
+ "version": "1.10.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";
@@ -934,6 +934,81 @@ type MerkleDistributor = {
934
934
  ];
935
935
  "args": [];
936
936
  },
937
+ {
938
+ "name": "disableKyc";
939
+ "discriminator": [
940
+ 204,
941
+ 167,
942
+ 59,
943
+ 181,
944
+ 11,
945
+ 7,
946
+ 254,
947
+ 148
948
+ ];
949
+ "accounts": [
950
+ {
951
+ "name": "distributor";
952
+ "docs": [
953
+ "The [MerkleDistributor]."
954
+ ];
955
+ "writable": true;
956
+ },
957
+ {
958
+ "name": "admin";
959
+ "docs": [
960
+ "Admin signer."
961
+ ];
962
+ "writable": true;
963
+ "signer": true;
964
+ }
965
+ ];
966
+ "args": [];
967
+ },
968
+ {
969
+ "name": "enableKyc";
970
+ "discriminator": [
971
+ 28,
972
+ 10,
973
+ 11,
974
+ 99,
975
+ 6,
976
+ 44,
977
+ 96,
978
+ 77
979
+ ];
980
+ "accounts": [
981
+ {
982
+ "name": "distributor";
983
+ "docs": [
984
+ "The [MerkleDistributor]."
985
+ ];
986
+ "writable": true;
987
+ },
988
+ {
989
+ "name": "admin";
990
+ "docs": [
991
+ "Admin signer."
992
+ ];
993
+ "writable": true;
994
+ "signer": true;
995
+ },
996
+ {
997
+ "name": "credential";
998
+ },
999
+ {
1000
+ "name": "schema";
1001
+ }
1002
+ ];
1003
+ "args": [
1004
+ {
1005
+ "name": "nonce";
1006
+ "type": {
1007
+ "option": "bytes";
1008
+ };
1009
+ }
1010
+ ];
1011
+ },
937
1012
  {
938
1013
  "name": "newClaim";
939
1014
  "discriminator": [
@@ -2639,6 +2714,31 @@ type MerkleDistributor = {
2639
2714
  "code": 6033;
2640
2715
  "name": "clawbackRequestDelayPending";
2641
2716
  "msg": "Clawback request delay has not passed yet";
2717
+ },
2718
+ {
2719
+ "code": 6034;
2720
+ "name": "missingAttestation";
2721
+ "msg": "Attestation is required for this Distributor";
2722
+ },
2723
+ {
2724
+ "code": 6035;
2725
+ "name": "invalidAttestation";
2726
+ "msg": "Invalid attestation account";
2727
+ },
2728
+ {
2729
+ "code": 6036;
2730
+ "name": "attestationExpired";
2731
+ "msg": "Attestation has expired";
2732
+ },
2733
+ {
2734
+ "code": 6037;
2735
+ "name": "invalidAttestationCredentialSchema";
2736
+ "msg": "Invalid attestation credential or schema";
2737
+ },
2738
+ {
2739
+ "code": 6038;
2740
+ "name": "kycNonceTooLong";
2741
+ "msg": "KYC nonce is too long";
2642
2742
  }
2643
2743
  ];
2644
2744
  "types": [
@@ -2902,6 +3002,69 @@ type MerkleDistributor = {
2902
3002
  ];
2903
3003
  };
2904
3004
  },
3005
+ {
3006
+ "name": "kycConfig";
3007
+ "docs": [
3008
+ "Configuration for kyc-gated (claim) Airdrops."
3009
+ ];
3010
+ "type": {
3011
+ "kind": "struct";
3012
+ "fields": [
3013
+ {
3014
+ "name": "isSet";
3015
+ "docs": [
3016
+ "Whether KYC is required to claim the Airdrop"
3017
+ ];
3018
+ "type": "bool";
3019
+ },
3020
+ {
3021
+ "name": "credential";
3022
+ "docs": [
3023
+ "SAS Credential account used to create attestations"
3024
+ ];
3025
+ "type": "pubkey";
3026
+ },
3027
+ {
3028
+ "name": "schema";
3029
+ "docs": [
3030
+ "SAS Schema account that attestation must conform to"
3031
+ ];
3032
+ "type": "pubkey";
3033
+ },
3034
+ {
3035
+ "name": "nonceLen";
3036
+ "docs": [
3037
+ "Length of the custom nonce portion; zero means the claimant address is used directly."
3038
+ ];
3039
+ "type": "u8";
3040
+ },
3041
+ {
3042
+ "name": "nonce";
3043
+ "docs": [
3044
+ "Optional custom nonce portion used as sha256(\"claimant_address:nonce\") for SAS attestation nonce."
3045
+ ];
3046
+ "type": {
3047
+ "array": [
3048
+ "u8",
3049
+ 32
3050
+ ];
3051
+ };
3052
+ },
3053
+ {
3054
+ "name": "buffer";
3055
+ "docs": [
3056
+ "Buffer for additional fields"
3057
+ ];
3058
+ "type": {
3059
+ "array": [
3060
+ "u8",
3061
+ 32
3062
+ ];
3063
+ };
3064
+ }
3065
+ ];
3066
+ };
3067
+ },
2905
3068
  {
2906
3069
  "name": "merkleDistributor";
2907
3070
  "docs": [
@@ -3194,10 +3357,18 @@ type MerkleDistributor = {
3194
3357
  "type": "u64";
3195
3358
  },
3196
3359
  {
3197
- "name": "buffer1";
3360
+ "name": "kycConfig";
3198
3361
  "docs": [
3199
3362
  "Buffers for additional fields"
3200
3363
  ];
3364
+ "type": {
3365
+ "defined": {
3366
+ "name": "kycConfig";
3367
+ };
3368
+ };
3369
+ },
3370
+ {
3371
+ "name": "buffer1";
3201
3372
  "type": {
3202
3373
  "array": [
3203
3374
  "u8",
@@ -3213,6 +3384,15 @@ type MerkleDistributor = {
3213
3384
  32
3214
3385
  ];
3215
3386
  };
3387
+ },
3388
+ {
3389
+ "name": "buffer3";
3390
+ "type": {
3391
+ "array": [
3392
+ "u8",
3393
+ 32
3394
+ ];
3395
+ };
3216
3396
  }
3217
3397
  ];
3218
3398
  };