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