@streamflow/common 10.0.3 → 11.0.0-alpha.p334.45cbb4e

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/esm/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { getAssociatedTokenAddress, NATIVE_MINT, createAssociatedTokenAccountInstruction, createSyncNativeInstruction, TOKEN_PROGRAM_ID, TOKEN_2022_PROGRAM_ID, unpackMint } from '@solana/spl-token';
2
2
  import { SystemProgram, Keypair, TransactionMessage, VersionedTransaction, SendTransactionError, ComputeBudgetProgram, Transaction, PublicKey } from '@solana/web3.js';
3
3
  import bs58 from 'bs58';
4
+ import { Program } from '@coral-xyz/anchor';
4
5
  import BN from 'bn.js';
5
6
  import { Buffer } from 'buffer';
6
7
 
@@ -771,6 +772,985 @@ function assertHasPublicKey(value, message) {
771
772
  invariant(value.publicKey, message ?? "publicKey is missing");
772
773
  }
773
774
 
775
+ // solana/descriptor/idl/partner_oracle.json
776
+ var partner_oracle_default = {
777
+ address: "pardpVtPjC8nLj1Dwncew62mUzfChdCX1EaoZe8oCAa",
778
+ metadata: {
779
+ name: "partner_oracle",
780
+ version: "1.0.0",
781
+ spec: "0.1.0",
782
+ description: "Created with Anchor"
783
+ },
784
+ instructions: [
785
+ {
786
+ name: "airdrop_clear_expired_fees",
787
+ discriminator: [
788
+ 203,
789
+ 5,
790
+ 237,
791
+ 235,
792
+ 32,
793
+ 38,
794
+ 150,
795
+ 235
796
+ ],
797
+ accounts: [
798
+ {
799
+ name: "config",
800
+ docs: [
801
+ "Account that stores the config"
802
+ ],
803
+ writable: true,
804
+ pda: {
805
+ seeds: [
806
+ {
807
+ kind: "const",
808
+ value: [
809
+ 97,
810
+ 105,
811
+ 114,
812
+ 100,
813
+ 114,
814
+ 111,
815
+ 112,
816
+ 95,
817
+ 99,
818
+ 111,
819
+ 110,
820
+ 102,
821
+ 105,
822
+ 103
823
+ ]
824
+ }
825
+ ]
826
+ }
827
+ }
828
+ ],
829
+ args: []
830
+ },
831
+ {
832
+ name: "airdrop_get_fees",
833
+ discriminator: [
834
+ 185,
835
+ 20,
836
+ 28,
837
+ 207,
838
+ 70,
839
+ 243,
840
+ 32,
841
+ 62
842
+ ],
843
+ accounts: [
844
+ {
845
+ name: "config",
846
+ docs: [
847
+ "Account that stores the config"
848
+ ],
849
+ pda: {
850
+ seeds: [
851
+ {
852
+ kind: "const",
853
+ value: [
854
+ 97,
855
+ 105,
856
+ 114,
857
+ 100,
858
+ 114,
859
+ 111,
860
+ 112,
861
+ 95,
862
+ 99,
863
+ 111,
864
+ 110,
865
+ 102,
866
+ 105,
867
+ 103
868
+ ]
869
+ }
870
+ ]
871
+ }
872
+ }
873
+ ],
874
+ args: [
875
+ {
876
+ name: "pubkey",
877
+ type: "pubkey"
878
+ }
879
+ ],
880
+ returns: {
881
+ defined: {
882
+ name: "AirdropFees"
883
+ }
884
+ }
885
+ },
886
+ {
887
+ name: "airdrop_initialize_config",
888
+ discriminator: [
889
+ 2,
890
+ 110,
891
+ 102,
892
+ 10,
893
+ 34,
894
+ 83,
895
+ 164,
896
+ 55
897
+ ],
898
+ accounts: [
899
+ {
900
+ name: "payer",
901
+ docs: [
902
+ "Account that will cover tx fees, can be anybody since the instruction is safe"
903
+ ],
904
+ writable: true,
905
+ signer: true
906
+ },
907
+ {
908
+ name: "config",
909
+ writable: true,
910
+ pda: {
911
+ seeds: [
912
+ {
913
+ kind: "const",
914
+ value: [
915
+ 97,
916
+ 105,
917
+ 114,
918
+ 100,
919
+ 114,
920
+ 111,
921
+ 112,
922
+ 95,
923
+ 99,
924
+ 111,
925
+ 110,
926
+ 102,
927
+ 105,
928
+ 103
929
+ ]
930
+ }
931
+ ]
932
+ }
933
+ },
934
+ {
935
+ name: "system_program",
936
+ address: "11111111111111111111111111111111"
937
+ }
938
+ ],
939
+ args: []
940
+ },
941
+ {
942
+ name: "airdrop_remove_fees",
943
+ discriminator: [
944
+ 119,
945
+ 246,
946
+ 202,
947
+ 91,
948
+ 59,
949
+ 94,
950
+ 252,
951
+ 239
952
+ ],
953
+ accounts: [
954
+ {
955
+ name: "authority",
956
+ docs: [
957
+ "Fee Authority"
958
+ ],
959
+ writable: true,
960
+ signer: true,
961
+ address: "CgdggophaMCFRP8gA1QjrZHsHaNQgByhBU7zoF5TpXF7"
962
+ },
963
+ {
964
+ name: "config",
965
+ docs: [
966
+ "Account that stores the config"
967
+ ],
968
+ writable: true,
969
+ pda: {
970
+ seeds: [
971
+ {
972
+ kind: "const",
973
+ value: [
974
+ 97,
975
+ 105,
976
+ 114,
977
+ 100,
978
+ 114,
979
+ 111,
980
+ 112,
981
+ 95,
982
+ 99,
983
+ 111,
984
+ 110,
985
+ 102,
986
+ 105,
987
+ 103
988
+ ]
989
+ }
990
+ ]
991
+ }
992
+ }
993
+ ],
994
+ args: [
995
+ {
996
+ name: "pubkey",
997
+ type: "pubkey"
998
+ }
999
+ ]
1000
+ },
1001
+ {
1002
+ name: "airdrop_write_default_fees",
1003
+ discriminator: [
1004
+ 37,
1005
+ 104,
1006
+ 254,
1007
+ 202,
1008
+ 136,
1009
+ 124,
1010
+ 245,
1011
+ 94
1012
+ ],
1013
+ accounts: [
1014
+ {
1015
+ name: "authority",
1016
+ docs: [
1017
+ "Fee Authority"
1018
+ ],
1019
+ writable: true,
1020
+ signer: true,
1021
+ address: "CgdggophaMCFRP8gA1QjrZHsHaNQgByhBU7zoF5TpXF7"
1022
+ },
1023
+ {
1024
+ name: "config",
1025
+ docs: [
1026
+ "Account that stores the config"
1027
+ ],
1028
+ writable: true,
1029
+ pda: {
1030
+ seeds: [
1031
+ {
1032
+ kind: "const",
1033
+ value: [
1034
+ 97,
1035
+ 105,
1036
+ 114,
1037
+ 100,
1038
+ 114,
1039
+ 111,
1040
+ 112,
1041
+ 95,
1042
+ 99,
1043
+ 111,
1044
+ 110,
1045
+ 102,
1046
+ 105,
1047
+ 103
1048
+ ]
1049
+ }
1050
+ ]
1051
+ }
1052
+ }
1053
+ ],
1054
+ args: [
1055
+ {
1056
+ name: "creation_fee",
1057
+ type: "u32"
1058
+ },
1059
+ {
1060
+ name: "price_oracle_fee",
1061
+ type: "u32"
1062
+ },
1063
+ {
1064
+ name: "claim_min_fee",
1065
+ type: "u32"
1066
+ },
1067
+ {
1068
+ name: "claim_max_fee",
1069
+ type: "u32"
1070
+ },
1071
+ {
1072
+ name: "allocation_factor",
1073
+ type: "f64"
1074
+ },
1075
+ {
1076
+ name: "clawback_token_fee_percent",
1077
+ type: "f64"
1078
+ }
1079
+ ]
1080
+ },
1081
+ {
1082
+ name: "airdrop_write_fees",
1083
+ discriminator: [
1084
+ 71,
1085
+ 165,
1086
+ 178,
1087
+ 215,
1088
+ 19,
1089
+ 70,
1090
+ 146,
1091
+ 71
1092
+ ],
1093
+ accounts: [
1094
+ {
1095
+ name: "authority",
1096
+ docs: [
1097
+ "Fee Authority"
1098
+ ],
1099
+ writable: true,
1100
+ signer: true,
1101
+ address: "CgdggophaMCFRP8gA1QjrZHsHaNQgByhBU7zoF5TpXF7"
1102
+ },
1103
+ {
1104
+ name: "config",
1105
+ docs: [
1106
+ "Account that stores the config"
1107
+ ],
1108
+ writable: true,
1109
+ pda: {
1110
+ seeds: [
1111
+ {
1112
+ kind: "const",
1113
+ value: [
1114
+ 97,
1115
+ 105,
1116
+ 114,
1117
+ 100,
1118
+ 114,
1119
+ 111,
1120
+ 112,
1121
+ 95,
1122
+ 99,
1123
+ 111,
1124
+ 110,
1125
+ 102,
1126
+ 105,
1127
+ 103
1128
+ ]
1129
+ }
1130
+ ]
1131
+ }
1132
+ }
1133
+ ],
1134
+ args: [
1135
+ {
1136
+ name: "pubkey",
1137
+ type: "pubkey"
1138
+ },
1139
+ {
1140
+ name: "creation_fee",
1141
+ type: "u32"
1142
+ },
1143
+ {
1144
+ name: "price_oracle_fee",
1145
+ type: "u32"
1146
+ },
1147
+ {
1148
+ name: "claim_min_fee",
1149
+ type: "u32"
1150
+ },
1151
+ {
1152
+ name: "claim_max_fee",
1153
+ type: "u32"
1154
+ },
1155
+ {
1156
+ name: "allocation_factor",
1157
+ type: "f64"
1158
+ },
1159
+ {
1160
+ name: "clawback_token_fee_percent",
1161
+ type: "f64"
1162
+ },
1163
+ {
1164
+ name: "expiry_ts",
1165
+ type: "u64"
1166
+ }
1167
+ ]
1168
+ },
1169
+ {
1170
+ name: "vesting_get_fees",
1171
+ discriminator: [
1172
+ 239,
1173
+ 230,
1174
+ 28,
1175
+ 173,
1176
+ 134,
1177
+ 247,
1178
+ 57,
1179
+ 176
1180
+ ],
1181
+ accounts: [
1182
+ {
1183
+ name: "partners",
1184
+ pda: {
1185
+ seeds: [
1186
+ {
1187
+ kind: "const",
1188
+ value: [
1189
+ 115,
1190
+ 116,
1191
+ 114,
1192
+ 109,
1193
+ 95,
1194
+ 102,
1195
+ 101,
1196
+ 101,
1197
+ 115
1198
+ ]
1199
+ }
1200
+ ]
1201
+ }
1202
+ }
1203
+ ],
1204
+ args: [
1205
+ {
1206
+ name: "pubkey",
1207
+ type: "pubkey"
1208
+ }
1209
+ ],
1210
+ returns: {
1211
+ defined: {
1212
+ name: "VestingFees"
1213
+ }
1214
+ }
1215
+ },
1216
+ {
1217
+ name: "vesting_initialize_partners",
1218
+ discriminator: [
1219
+ 205,
1220
+ 170,
1221
+ 148,
1222
+ 219,
1223
+ 143,
1224
+ 38,
1225
+ 77,
1226
+ 196
1227
+ ],
1228
+ accounts: [
1229
+ {
1230
+ name: "payer",
1231
+ docs: [
1232
+ "Account that will cover tx fees, can be anybody since the instruction is safe"
1233
+ ],
1234
+ writable: true,
1235
+ signer: true
1236
+ },
1237
+ {
1238
+ name: "partners",
1239
+ writable: true,
1240
+ pda: {
1241
+ seeds: [
1242
+ {
1243
+ kind: "const",
1244
+ value: [
1245
+ 115,
1246
+ 116,
1247
+ 114,
1248
+ 109,
1249
+ 95,
1250
+ 102,
1251
+ 101,
1252
+ 101,
1253
+ 115
1254
+ ]
1255
+ }
1256
+ ]
1257
+ }
1258
+ },
1259
+ {
1260
+ name: "system_program",
1261
+ address: "11111111111111111111111111111111"
1262
+ }
1263
+ ],
1264
+ args: []
1265
+ },
1266
+ {
1267
+ name: "vesting_remove_fees",
1268
+ discriminator: [
1269
+ 233,
1270
+ 176,
1271
+ 222,
1272
+ 64,
1273
+ 79,
1274
+ 14,
1275
+ 48,
1276
+ 168
1277
+ ],
1278
+ accounts: [
1279
+ {
1280
+ name: "authority",
1281
+ docs: [
1282
+ "Account that will cover tx fees, should be equal to creator if not is not expired"
1283
+ ],
1284
+ writable: true,
1285
+ signer: true,
1286
+ address: "CgdggophaMCFRP8gA1QjrZHsHaNQgByhBU7zoF5TpXF7"
1287
+ },
1288
+ {
1289
+ name: "partners",
1290
+ writable: true,
1291
+ pda: {
1292
+ seeds: [
1293
+ {
1294
+ kind: "const",
1295
+ value: [
1296
+ 115,
1297
+ 116,
1298
+ 114,
1299
+ 109,
1300
+ 95,
1301
+ 102,
1302
+ 101,
1303
+ 101,
1304
+ 115
1305
+ ]
1306
+ }
1307
+ ]
1308
+ }
1309
+ }
1310
+ ],
1311
+ args: [
1312
+ {
1313
+ name: "pubkey",
1314
+ type: "pubkey"
1315
+ }
1316
+ ]
1317
+ },
1318
+ {
1319
+ name: "vesting_write_default_fees",
1320
+ discriminator: [
1321
+ 96,
1322
+ 198,
1323
+ 97,
1324
+ 81,
1325
+ 162,
1326
+ 50,
1327
+ 51,
1328
+ 10
1329
+ ],
1330
+ accounts: [
1331
+ {
1332
+ name: "authority",
1333
+ docs: [
1334
+ "Account that will cover tx fees, should be equal to creator if not is not expired"
1335
+ ],
1336
+ writable: true,
1337
+ signer: true,
1338
+ address: "CgdggophaMCFRP8gA1QjrZHsHaNQgByhBU7zoF5TpXF7"
1339
+ },
1340
+ {
1341
+ name: "partners",
1342
+ writable: true,
1343
+ pda: {
1344
+ seeds: [
1345
+ {
1346
+ kind: "const",
1347
+ value: [
1348
+ 115,
1349
+ 116,
1350
+ 114,
1351
+ 109,
1352
+ 95,
1353
+ 102,
1354
+ 101,
1355
+ 101,
1356
+ 115
1357
+ ]
1358
+ }
1359
+ ]
1360
+ }
1361
+ }
1362
+ ],
1363
+ args: [
1364
+ {
1365
+ name: "creation_fee",
1366
+ type: "u32"
1367
+ },
1368
+ {
1369
+ name: "auto_claim_fee",
1370
+ type: "u32"
1371
+ },
1372
+ {
1373
+ name: "token_fee_percent",
1374
+ type: "f32"
1375
+ }
1376
+ ]
1377
+ },
1378
+ {
1379
+ name: "vesting_write_fees",
1380
+ discriminator: [
1381
+ 251,
1382
+ 24,
1383
+ 6,
1384
+ 241,
1385
+ 182,
1386
+ 56,
1387
+ 93,
1388
+ 100
1389
+ ],
1390
+ accounts: [
1391
+ {
1392
+ name: "authority",
1393
+ docs: [
1394
+ "Account that will cover tx fees, should be equal to creator if not is not expired"
1395
+ ],
1396
+ writable: true,
1397
+ signer: true,
1398
+ address: "CgdggophaMCFRP8gA1QjrZHsHaNQgByhBU7zoF5TpXF7"
1399
+ },
1400
+ {
1401
+ name: "partners",
1402
+ writable: true,
1403
+ pda: {
1404
+ seeds: [
1405
+ {
1406
+ kind: "const",
1407
+ value: [
1408
+ 115,
1409
+ 116,
1410
+ 114,
1411
+ 109,
1412
+ 95,
1413
+ 102,
1414
+ 101,
1415
+ 101,
1416
+ 115
1417
+ ]
1418
+ }
1419
+ ]
1420
+ }
1421
+ }
1422
+ ],
1423
+ args: [
1424
+ {
1425
+ name: "pubkey",
1426
+ type: "pubkey"
1427
+ },
1428
+ {
1429
+ name: "creation_fee",
1430
+ type: "u32"
1431
+ },
1432
+ {
1433
+ name: "auto_claim_fee",
1434
+ type: "u32"
1435
+ },
1436
+ {
1437
+ name: "token_fee_percent",
1438
+ type: "f32"
1439
+ }
1440
+ ]
1441
+ }
1442
+ ],
1443
+ accounts: [
1444
+ {
1445
+ name: "AirdropConfig",
1446
+ discriminator: [
1447
+ 194,
1448
+ 149,
1449
+ 223,
1450
+ 142,
1451
+ 42,
1452
+ 98,
1453
+ 128,
1454
+ 16
1455
+ ]
1456
+ }
1457
+ ],
1458
+ errors: [
1459
+ {
1460
+ code: 6e3,
1461
+ name: "Unauthorized",
1462
+ msg: "Account is not authorized to execute this instruction"
1463
+ },
1464
+ {
1465
+ code: 6001,
1466
+ name: "ArithmeticError",
1467
+ msg: "Arithmetic Error (overflow/underflow)"
1468
+ },
1469
+ {
1470
+ code: 6100,
1471
+ name: "InvalidExpiry",
1472
+ msg: "Provided expiry ts is invalid"
1473
+ },
1474
+ {
1475
+ code: 6101,
1476
+ name: "NoExpiredFees",
1477
+ msg: "No expired fees found, transaction won't change the config"
1478
+ },
1479
+ {
1480
+ code: 6200,
1481
+ name: "InvalidVestingFee",
1482
+ msg: "Received invalid Vesting Fee configuration"
1483
+ },
1484
+ {
1485
+ code: 6300,
1486
+ name: "InvalidAirdropFee",
1487
+ msg: "Received invalid Airdrop Fee configuration"
1488
+ },
1489
+ {
1490
+ code: 6301,
1491
+ name: "AirdropConfigFull",
1492
+ msg: "Airdrop config is full, can not write fees"
1493
+ }
1494
+ ],
1495
+ types: [
1496
+ {
1497
+ name: "AirdropConfig",
1498
+ serialization: "bytemuck",
1499
+ repr: {
1500
+ kind: "c"
1501
+ },
1502
+ type: {
1503
+ kind: "struct",
1504
+ fields: [
1505
+ {
1506
+ name: "version",
1507
+ type: "u32"
1508
+ },
1509
+ {
1510
+ name: "usd_multiplier",
1511
+ docs: [
1512
+ "Multiplier to apply when calculating ALL fees"
1513
+ ],
1514
+ type: "f32"
1515
+ },
1516
+ {
1517
+ name: "solana_price",
1518
+ docs: [
1519
+ "Last solana price used"
1520
+ ],
1521
+ type: "u64"
1522
+ },
1523
+ {
1524
+ name: "creation_fee",
1525
+ docs: [
1526
+ "Creation SOL fee"
1527
+ ],
1528
+ type: "u32"
1529
+ },
1530
+ {
1531
+ name: "price_oracle_fee",
1532
+ docs: [
1533
+ "Fee for custom price oracle used in dynamic airdrops"
1534
+ ],
1535
+ type: "u32"
1536
+ },
1537
+ {
1538
+ name: "claim_min_fee",
1539
+ docs: [
1540
+ "Dynamic claim fee in SOL, min"
1541
+ ],
1542
+ type: "u32"
1543
+ },
1544
+ {
1545
+ name: "claim_max_fee",
1546
+ docs: [
1547
+ "Dynamic claim fee in SOL, max"
1548
+ ],
1549
+ type: "u32"
1550
+ },
1551
+ {
1552
+ name: "allocation_factor",
1553
+ docs: [
1554
+ "Factor to multiple claimable SOL by when calculating fee"
1555
+ ],
1556
+ type: "f64"
1557
+ },
1558
+ {
1559
+ name: "clawback_token_fee_percent",
1560
+ docs: [
1561
+ "Toke % fee on clawback"
1562
+ ],
1563
+ type: "f64"
1564
+ },
1565
+ {
1566
+ name: "buffer",
1567
+ type: {
1568
+ array: [
1569
+ "u8",
1570
+ 144
1571
+ ]
1572
+ }
1573
+ },
1574
+ {
1575
+ name: "partners",
1576
+ type: {
1577
+ array: [
1578
+ {
1579
+ defined: {
1580
+ name: "AirdropPartner"
1581
+ }
1582
+ },
1583
+ 100
1584
+ ]
1585
+ }
1586
+ }
1587
+ ]
1588
+ }
1589
+ },
1590
+ {
1591
+ name: "AirdropFees",
1592
+ type: {
1593
+ kind: "struct",
1594
+ fields: [
1595
+ {
1596
+ name: "pubkey",
1597
+ docs: [
1598
+ "Account for which the fees were configured"
1599
+ ],
1600
+ type: "pubkey"
1601
+ },
1602
+ {
1603
+ name: "creation_fee",
1604
+ docs: [
1605
+ "Creation SOL fee"
1606
+ ],
1607
+ type: "u32"
1608
+ },
1609
+ {
1610
+ name: "price_oracle_fee",
1611
+ docs: [
1612
+ "Fee for custom price oracle used in dynamic airdrops"
1613
+ ],
1614
+ type: "u32"
1615
+ },
1616
+ {
1617
+ name: "claim_min_fee",
1618
+ docs: [
1619
+ "Dynamic claim fee in SOL, min"
1620
+ ],
1621
+ type: "u32"
1622
+ },
1623
+ {
1624
+ name: "claim_max_fee",
1625
+ docs: [
1626
+ "Dynamic claim fee in SOL, max"
1627
+ ],
1628
+ type: "u32"
1629
+ },
1630
+ {
1631
+ name: "allocation_factor",
1632
+ docs: [
1633
+ "Factor to multiple claimable SOL by when calculating fee"
1634
+ ],
1635
+ type: "f64"
1636
+ },
1637
+ {
1638
+ name: "clawback_token_fee_percent",
1639
+ docs: [
1640
+ "Token % fee on clawback"
1641
+ ],
1642
+ type: "f64"
1643
+ }
1644
+ ]
1645
+ }
1646
+ },
1647
+ {
1648
+ name: "AirdropPartner",
1649
+ serialization: "bytemuck",
1650
+ repr: {
1651
+ kind: "c"
1652
+ },
1653
+ type: {
1654
+ kind: "struct",
1655
+ fields: [
1656
+ {
1657
+ name: "pubkey",
1658
+ docs: [
1659
+ "Pubkey of the partner"
1660
+ ],
1661
+ type: "pubkey"
1662
+ },
1663
+ {
1664
+ name: "creation_fee",
1665
+ docs: [
1666
+ "Creation SOL fee"
1667
+ ],
1668
+ type: "u32"
1669
+ },
1670
+ {
1671
+ name: "price_oracle_fee",
1672
+ docs: [
1673
+ "Fee for custom price oracle used in dynamic airdrops"
1674
+ ],
1675
+ type: "u32"
1676
+ },
1677
+ {
1678
+ name: "claim_min_fee",
1679
+ docs: [
1680
+ "Dynamic claim fee in SOL, min"
1681
+ ],
1682
+ type: "u32"
1683
+ },
1684
+ {
1685
+ name: "claim_max_fee",
1686
+ docs: [
1687
+ "Dynamic claim fee in SOL, max"
1688
+ ],
1689
+ type: "u32"
1690
+ },
1691
+ {
1692
+ name: "allocation_factor",
1693
+ docs: [
1694
+ "Factor to multiple claimable SOL by when calculating fee"
1695
+ ],
1696
+ type: "f64"
1697
+ },
1698
+ {
1699
+ name: "clawback_token_fee_percent",
1700
+ docs: [
1701
+ "Toke % fee on clawback"
1702
+ ],
1703
+ type: "f64"
1704
+ },
1705
+ {
1706
+ name: "expiry_ts",
1707
+ docs: [
1708
+ "Time when fee configuration expires"
1709
+ ],
1710
+ type: "u64"
1711
+ },
1712
+ {
1713
+ name: "buffer",
1714
+ docs: [
1715
+ "Buffer for additional fields"
1716
+ ],
1717
+ type: {
1718
+ array: [
1719
+ "u8",
1720
+ 16
1721
+ ]
1722
+ }
1723
+ }
1724
+ ]
1725
+ }
1726
+ },
1727
+ {
1728
+ name: "VestingFees",
1729
+ type: {
1730
+ kind: "struct",
1731
+ fields: [
1732
+ {
1733
+ name: "pubkey",
1734
+ type: "pubkey"
1735
+ },
1736
+ {
1737
+ name: "creation_fee",
1738
+ type: "u32"
1739
+ },
1740
+ {
1741
+ name: "auto_claim_fee",
1742
+ type: "u32"
1743
+ },
1744
+ {
1745
+ name: "token_fee_percent",
1746
+ type: "f32"
1747
+ }
1748
+ ]
1749
+ }
1750
+ }
1751
+ ]
1752
+ };
1753
+
774
1754
  // solana/utils.ts
775
1755
  var SIMULATE_TRIES = 3;
776
1756
  var buildSendThrottler = (sendRate, sendInterval = 1e3) => {
@@ -1077,6 +2057,9 @@ async function getMultipleAccountsInfoBatched(connection, pubKeys, commitment) {
1077
2057
  const results = await Promise.all(batches);
1078
2058
  return results.flat();
1079
2059
  }
2060
+ function buildPartnerOracle(connection) {
2061
+ return new Program(partner_oracle_default, { connection });
2062
+ }
1080
2063
  function deserializeRawTransaction(serializedTx) {
1081
2064
  const txBuffer = Buffer.from(serializedTx, "base64");
1082
2065
  try {
@@ -1196,6 +2179,6 @@ var fetchTokenPrice = async (mintId, cluster = "mainnet" /* Mainnet */, options)
1196
2179
  }
1197
2180
  };
1198
2181
 
1199
- export { ContractError, ICluster, TransactionFailedError, assertHasPublicKey, ata, ataBatchExist, buildSendThrottler, checkOrCreateAtaBatch, confirmAndEnsureTransaction, createAndEstimateTransaction, createAtaBatch, createVersionedTransaction, deserializeRawTransaction, divCeilN, enrichAtaParams, estimateComputeUnitPrice, executeMultipleTransactions, executeTransaction, fetchTokenPrice, generateCreateAtaBatchTx, getBN, getFilters, getMintAndProgram, getMultipleAccountsInfoBatched, getNumberFromBN, getProgramAccounts, handleContractError, invariant, isSignerKeypair, isSignerWallet, isTransactionVersioned, multiplyBigIntByNumber, pk, prepareBaseInstructions, prepareTransaction, prepareWrappedAccount, resolveTransactionAccounts, sendAndConfirmTransaction, signAndExecuteTransaction, signTransaction, simulateTransaction, sleep, unwrapExecutionParams };
2182
+ export { ContractError, ICluster, TransactionFailedError, assertHasPublicKey, ata, ataBatchExist, buildPartnerOracle, buildSendThrottler, checkOrCreateAtaBatch, confirmAndEnsureTransaction, createAndEstimateTransaction, createAtaBatch, createVersionedTransaction, deserializeRawTransaction, divCeilN, enrichAtaParams, estimateComputeUnitPrice, executeMultipleTransactions, executeTransaction, fetchTokenPrice, generateCreateAtaBatchTx, getBN, getFilters, getMintAndProgram, getMultipleAccountsInfoBatched, getNumberFromBN, getProgramAccounts, handleContractError, invariant, isSignerKeypair, isSignerWallet, isTransactionVersioned, multiplyBigIntByNumber, pk, prepareBaseInstructions, prepareTransaction, prepareWrappedAccount, resolveTransactionAccounts, sendAndConfirmTransaction, signAndExecuteTransaction, signTransaction, simulateTransaction, sleep, unwrapExecutionParams };
1200
2183
  //# sourceMappingURL=index.js.map
1201
2184
  //# sourceMappingURL=index.js.map