@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.
- package/dist/cjs/index.cjs +442 -23
- 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 +82 -2
- package/dist/cjs/solana/descriptor/merkle_distributor.d.cts +182 -2
- package/dist/cjs/solana/index.cjs +442 -23
- package/dist/cjs/solana/index.cjs.map +1 -1
- package/dist/cjs/solana/index.d.cts +57 -3
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +442 -23
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/solana/descriptor/aligned_distributor.d.ts +82 -2
- package/dist/esm/solana/descriptor/idl/aligned_distributor.json +82 -2
- package/dist/esm/solana/descriptor/idl/merkle_distributor.json +182 -2
- package/dist/esm/solana/descriptor/merkle_distributor.d.ts +182 -2
- package/dist/esm/solana/index.d.ts +57 -3
- package/dist/esm/solana/index.js +440 -24
- package/dist/esm/solana/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -8,7 +8,7 @@ type AlignedDistributor = {
|
|
|
8
8
|
"address": "aMERKpFAWoChCi5oZwPvgsSCoGpZKBiU7fi76bdZjt2";
|
|
9
9
|
"metadata": {
|
|
10
10
|
"name": "alignedDistributor";
|
|
11
|
-
"version": "1.
|
|
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": "
|
|
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
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"address": "aMERKpFAWoChCi5oZwPvgsSCoGpZKBiU7fi76bdZjt2",
|
|
3
3
|
"metadata": {
|
|
4
4
|
"name": "aligned_distributor",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.10.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
|
},
|
|
@@ -1270,6 +1270,69 @@
|
|
|
1270
1270
|
]
|
|
1271
1271
|
}
|
|
1272
1272
|
},
|
|
1273
|
+
{
|
|
1274
|
+
"name": "KycConfig",
|
|
1275
|
+
"docs": [
|
|
1276
|
+
"Configuration for kyc-gated (claim) Airdrops."
|
|
1277
|
+
],
|
|
1278
|
+
"type": {
|
|
1279
|
+
"kind": "struct",
|
|
1280
|
+
"fields": [
|
|
1281
|
+
{
|
|
1282
|
+
"name": "is_set",
|
|
1283
|
+
"docs": [
|
|
1284
|
+
"Whether KYC is required to claim the Airdrop"
|
|
1285
|
+
],
|
|
1286
|
+
"type": "bool"
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
"name": "credential",
|
|
1290
|
+
"docs": [
|
|
1291
|
+
"SAS Credential account used to create attestations"
|
|
1292
|
+
],
|
|
1293
|
+
"type": "pubkey"
|
|
1294
|
+
},
|
|
1295
|
+
{
|
|
1296
|
+
"name": "schema",
|
|
1297
|
+
"docs": [
|
|
1298
|
+
"SAS Schema account that attestation must conform to"
|
|
1299
|
+
],
|
|
1300
|
+
"type": "pubkey"
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
"name": "nonce_len",
|
|
1304
|
+
"docs": [
|
|
1305
|
+
"Length of the custom nonce portion; zero means the claimant address is used directly."
|
|
1306
|
+
],
|
|
1307
|
+
"type": "u8"
|
|
1308
|
+
},
|
|
1309
|
+
{
|
|
1310
|
+
"name": "nonce",
|
|
1311
|
+
"docs": [
|
|
1312
|
+
"Optional custom nonce portion used as sha256(\"claimant_address:nonce\") for SAS attestation nonce."
|
|
1313
|
+
],
|
|
1314
|
+
"type": {
|
|
1315
|
+
"array": [
|
|
1316
|
+
"u8",
|
|
1317
|
+
32
|
|
1318
|
+
]
|
|
1319
|
+
}
|
|
1320
|
+
},
|
|
1321
|
+
{
|
|
1322
|
+
"name": "buffer",
|
|
1323
|
+
"docs": [
|
|
1324
|
+
"Buffer for additional fields"
|
|
1325
|
+
],
|
|
1326
|
+
"type": {
|
|
1327
|
+
"array": [
|
|
1328
|
+
"u8",
|
|
1329
|
+
32
|
|
1330
|
+
]
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
]
|
|
1334
|
+
}
|
|
1335
|
+
},
|
|
1273
1336
|
{
|
|
1274
1337
|
"name": "MerkleDistributor",
|
|
1275
1338
|
"docs": [
|
|
@@ -1562,10 +1625,18 @@
|
|
|
1562
1625
|
"type": "u64"
|
|
1563
1626
|
},
|
|
1564
1627
|
{
|
|
1565
|
-
"name": "
|
|
1628
|
+
"name": "kyc_config",
|
|
1566
1629
|
"docs": [
|
|
1567
1630
|
"Buffers for additional fields"
|
|
1568
1631
|
],
|
|
1632
|
+
"type": {
|
|
1633
|
+
"defined": {
|
|
1634
|
+
"name": "KycConfig"
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
},
|
|
1638
|
+
{
|
|
1639
|
+
"name": "buffer_1",
|
|
1569
1640
|
"type": {
|
|
1570
1641
|
"array": [
|
|
1571
1642
|
"u8",
|
|
@@ -1581,6 +1652,15 @@
|
|
|
1581
1652
|
32
|
|
1582
1653
|
]
|
|
1583
1654
|
}
|
|
1655
|
+
},
|
|
1656
|
+
{
|
|
1657
|
+
"name": "buffer_3",
|
|
1658
|
+
"type": {
|
|
1659
|
+
"array": [
|
|
1660
|
+
"u8",
|
|
1661
|
+
32
|
|
1662
|
+
]
|
|
1663
|
+
}
|
|
1584
1664
|
}
|
|
1585
1665
|
]
|
|
1586
1666
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"address": "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N",
|
|
3
3
|
"metadata": {
|
|
4
4
|
"name": "merkle_distributor",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.10.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"
|
|
@@ -928,6 +928,81 @@
|
|
|
928
928
|
],
|
|
929
929
|
"args": []
|
|
930
930
|
},
|
|
931
|
+
{
|
|
932
|
+
"name": "disable_kyc",
|
|
933
|
+
"discriminator": [
|
|
934
|
+
204,
|
|
935
|
+
167,
|
|
936
|
+
59,
|
|
937
|
+
181,
|
|
938
|
+
11,
|
|
939
|
+
7,
|
|
940
|
+
254,
|
|
941
|
+
148
|
|
942
|
+
],
|
|
943
|
+
"accounts": [
|
|
944
|
+
{
|
|
945
|
+
"name": "distributor",
|
|
946
|
+
"docs": [
|
|
947
|
+
"The [MerkleDistributor]."
|
|
948
|
+
],
|
|
949
|
+
"writable": true
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
"name": "admin",
|
|
953
|
+
"docs": [
|
|
954
|
+
"Admin signer."
|
|
955
|
+
],
|
|
956
|
+
"writable": true,
|
|
957
|
+
"signer": true
|
|
958
|
+
}
|
|
959
|
+
],
|
|
960
|
+
"args": []
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
"name": "enable_kyc",
|
|
964
|
+
"discriminator": [
|
|
965
|
+
28,
|
|
966
|
+
10,
|
|
967
|
+
11,
|
|
968
|
+
99,
|
|
969
|
+
6,
|
|
970
|
+
44,
|
|
971
|
+
96,
|
|
972
|
+
77
|
|
973
|
+
],
|
|
974
|
+
"accounts": [
|
|
975
|
+
{
|
|
976
|
+
"name": "distributor",
|
|
977
|
+
"docs": [
|
|
978
|
+
"The [MerkleDistributor]."
|
|
979
|
+
],
|
|
980
|
+
"writable": true
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
"name": "admin",
|
|
984
|
+
"docs": [
|
|
985
|
+
"Admin signer."
|
|
986
|
+
],
|
|
987
|
+
"writable": true,
|
|
988
|
+
"signer": true
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
"name": "credential"
|
|
992
|
+
},
|
|
993
|
+
{
|
|
994
|
+
"name": "schema"
|
|
995
|
+
}
|
|
996
|
+
],
|
|
997
|
+
"args": [
|
|
998
|
+
{
|
|
999
|
+
"name": "nonce",
|
|
1000
|
+
"type": {
|
|
1001
|
+
"option": "bytes"
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
]
|
|
1005
|
+
},
|
|
931
1006
|
{
|
|
932
1007
|
"name": "new_claim",
|
|
933
1008
|
"discriminator": [
|
|
@@ -2633,6 +2708,31 @@
|
|
|
2633
2708
|
"code": 6033,
|
|
2634
2709
|
"name": "ClawbackRequestDelayPending",
|
|
2635
2710
|
"msg": "Clawback request delay has not passed yet"
|
|
2711
|
+
},
|
|
2712
|
+
{
|
|
2713
|
+
"code": 6034,
|
|
2714
|
+
"name": "MissingAttestation",
|
|
2715
|
+
"msg": "Attestation is required for this Distributor"
|
|
2716
|
+
},
|
|
2717
|
+
{
|
|
2718
|
+
"code": 6035,
|
|
2719
|
+
"name": "InvalidAttestation",
|
|
2720
|
+
"msg": "Invalid attestation account"
|
|
2721
|
+
},
|
|
2722
|
+
{
|
|
2723
|
+
"code": 6036,
|
|
2724
|
+
"name": "AttestationExpired",
|
|
2725
|
+
"msg": "Attestation has expired"
|
|
2726
|
+
},
|
|
2727
|
+
{
|
|
2728
|
+
"code": 6037,
|
|
2729
|
+
"name": "InvalidAttestationCredentialSchema",
|
|
2730
|
+
"msg": "Invalid attestation credential or schema"
|
|
2731
|
+
},
|
|
2732
|
+
{
|
|
2733
|
+
"code": 6038,
|
|
2734
|
+
"name": "KycNonceTooLong",
|
|
2735
|
+
"msg": "KYC nonce is too long"
|
|
2636
2736
|
}
|
|
2637
2737
|
],
|
|
2638
2738
|
"types": [
|
|
@@ -2896,6 +2996,69 @@
|
|
|
2896
2996
|
]
|
|
2897
2997
|
}
|
|
2898
2998
|
},
|
|
2999
|
+
{
|
|
3000
|
+
"name": "KycConfig",
|
|
3001
|
+
"docs": [
|
|
3002
|
+
"Configuration for kyc-gated (claim) Airdrops."
|
|
3003
|
+
],
|
|
3004
|
+
"type": {
|
|
3005
|
+
"kind": "struct",
|
|
3006
|
+
"fields": [
|
|
3007
|
+
{
|
|
3008
|
+
"name": "is_set",
|
|
3009
|
+
"docs": [
|
|
3010
|
+
"Whether KYC is required to claim the Airdrop"
|
|
3011
|
+
],
|
|
3012
|
+
"type": "bool"
|
|
3013
|
+
},
|
|
3014
|
+
{
|
|
3015
|
+
"name": "credential",
|
|
3016
|
+
"docs": [
|
|
3017
|
+
"SAS Credential account used to create attestations"
|
|
3018
|
+
],
|
|
3019
|
+
"type": "pubkey"
|
|
3020
|
+
},
|
|
3021
|
+
{
|
|
3022
|
+
"name": "schema",
|
|
3023
|
+
"docs": [
|
|
3024
|
+
"SAS Schema account that attestation must conform to"
|
|
3025
|
+
],
|
|
3026
|
+
"type": "pubkey"
|
|
3027
|
+
},
|
|
3028
|
+
{
|
|
3029
|
+
"name": "nonce_len",
|
|
3030
|
+
"docs": [
|
|
3031
|
+
"Length of the custom nonce portion; zero means the claimant address is used directly."
|
|
3032
|
+
],
|
|
3033
|
+
"type": "u8"
|
|
3034
|
+
},
|
|
3035
|
+
{
|
|
3036
|
+
"name": "nonce",
|
|
3037
|
+
"docs": [
|
|
3038
|
+
"Optional custom nonce portion used as sha256(\"claimant_address:nonce\") for SAS attestation nonce."
|
|
3039
|
+
],
|
|
3040
|
+
"type": {
|
|
3041
|
+
"array": [
|
|
3042
|
+
"u8",
|
|
3043
|
+
32
|
|
3044
|
+
]
|
|
3045
|
+
}
|
|
3046
|
+
},
|
|
3047
|
+
{
|
|
3048
|
+
"name": "buffer",
|
|
3049
|
+
"docs": [
|
|
3050
|
+
"Buffer for additional fields"
|
|
3051
|
+
],
|
|
3052
|
+
"type": {
|
|
3053
|
+
"array": [
|
|
3054
|
+
"u8",
|
|
3055
|
+
32
|
|
3056
|
+
]
|
|
3057
|
+
}
|
|
3058
|
+
}
|
|
3059
|
+
]
|
|
3060
|
+
}
|
|
3061
|
+
},
|
|
2899
3062
|
{
|
|
2900
3063
|
"name": "MerkleDistributor",
|
|
2901
3064
|
"docs": [
|
|
@@ -3188,10 +3351,18 @@
|
|
|
3188
3351
|
"type": "u64"
|
|
3189
3352
|
},
|
|
3190
3353
|
{
|
|
3191
|
-
"name": "
|
|
3354
|
+
"name": "kyc_config",
|
|
3192
3355
|
"docs": [
|
|
3193
3356
|
"Buffers for additional fields"
|
|
3194
3357
|
],
|
|
3358
|
+
"type": {
|
|
3359
|
+
"defined": {
|
|
3360
|
+
"name": "KycConfig"
|
|
3361
|
+
}
|
|
3362
|
+
}
|
|
3363
|
+
},
|
|
3364
|
+
{
|
|
3365
|
+
"name": "buffer_1",
|
|
3195
3366
|
"type": {
|
|
3196
3367
|
"array": [
|
|
3197
3368
|
"u8",
|
|
@@ -3207,6 +3378,15 @@
|
|
|
3207
3378
|
32
|
|
3208
3379
|
]
|
|
3209
3380
|
}
|
|
3381
|
+
},
|
|
3382
|
+
{
|
|
3383
|
+
"name": "buffer_3",
|
|
3384
|
+
"type": {
|
|
3385
|
+
"array": [
|
|
3386
|
+
"u8",
|
|
3387
|
+
32
|
|
3388
|
+
]
|
|
3389
|
+
}
|
|
3210
3390
|
}
|
|
3211
3391
|
]
|
|
3212
3392
|
}
|
|
@@ -8,7 +8,7 @@ type MerkleDistributor = {
|
|
|
8
8
|
"address": "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N";
|
|
9
9
|
"metadata": {
|
|
10
10
|
"name": "merkleDistributor";
|
|
11
|
-
"version": "1.
|
|
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": "
|
|
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
|
};
|