@neutral-trade/sdk 0.4.12 → 0.4.13

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/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as UserBundleTempData, B as BundleProgram, C as VaultCategory, D as BundleAccount, E as VaultType, F as getSolanaTokenMint, G as createAllowlistedBundleProgram, H as DEFAULT_BUNDLE_PROGRAM_ID_DEVNET, I as tokens, J as isAllowlistedBundleProgramId, K as createBundleProgramById, L as ALLOWLISTED_BUNDLE_PROGRAM_IDS_BY_CLUSTER, M as SupportedToken, N as Token, O as OracleData, P as getSolanaTokenDecimals, R as BUNDLE_PROGRAM_ID_V2_MAINNET, S as VaultBalanceData, T as VaultRegistryEntry, U as DEFAULT_BUNDLE_PROGRAM_ID_MAINNET, V as BundleProvider, W as assertAllowlistedBundleProgramId, _ as getVaultRegistry, b as vaultsDevnet, f as NeutralTrade, g as getVaultById, h as getVaultByAddress, j as SupportedChain, k as UserBundleAccount, m as getBundleProgramId, p as NeutralTradeConfig, q as getDefaultBundleProgramIdByCluster, t as NeutralTradeCoreContext, v as isValidVaultAddress, w as VaultRegistry, x as UserBalanceResult, y as vaults$1, z as BundleCluster } from "./neutral-trade-core-7Ob7XfF4.mjs";
1
+ import { A as UserBundleTempData, B as BundleProgram, C as VaultCategory, D as BundleAccount, E as VaultType, F as getSolanaTokenMint, G as createAllowlistedBundleProgram, H as DEFAULT_BUNDLE_PROGRAM_ID_DEVNET, I as tokens, J as isAllowlistedBundleProgramId, K as createBundleProgramById, L as ALLOWLISTED_BUNDLE_PROGRAM_IDS_BY_CLUSTER, M as SupportedToken, N as Token, O as OracleData, P as getSolanaTokenDecimals, R as BUNDLE_PROGRAM_ID_V2_MAINNET, S as VaultBalanceData, T as VaultRegistryEntry, U as DEFAULT_BUNDLE_PROGRAM_ID_MAINNET, V as BundleProvider, W as assertAllowlistedBundleProgramId, _ as getVaultRegistry, b as vaultsDevnet, f as NeutralTrade, g as getVaultById, h as getVaultByAddress, j as SupportedChain, k as UserBundleAccount, m as getBundleProgramId, p as NeutralTradeConfig, q as getDefaultBundleProgramIdByCluster, t as NeutralTradeCoreContext, v as isValidVaultAddress, w as VaultRegistry, x as UserBalanceResult, y as vaults$1, z as BundleCluster } from "./neutral-trade-core-DHnpUNs2.mjs";
2
2
  import { AnchorProvider, Program, Wallet } from "@coral-xyz/anchor";
3
3
  import { Connection, PublicKey, TransactionInstruction } from "@solana/web3.js";
4
4
  import BN from "bn.js";
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { A as VaultCategory, B as DEFAULT_BUNDLE_PROGRAM_ID_MAINNET, C as getBundleProgramId, D as isValidVaultAddress, E as getVaultRegistry, F as getSolanaTokenMint, G as isAllowlistedBundleProgramId, H as createAllowlistedBundleProgram, I as tokens, K as createDummyWallet, L as ALLOWLISTED_BUNDLE_PROGRAM_IDS_BY_CLUSTER, M as SupportedChain, N as SupportedToken, O as vaults, P as getSolanaTokenDecimals, R as BUNDLE_PROGRAM_ID_V2_MAINNET, S as parseAmountRawToBigInt, T as getVaultById, U as createBundleProgramById, V as assertAllowlistedBundleProgramId, W as getDefaultBundleProgramIdByCluster, _ as derivePendingAuthPDA, a as buildBundleDepositInstructions, b as getVaultDepositorAddressSync, d as computeRequestWithdrawalSharesFromAmountRaw, f as SEED_ORACLE, g as deriveOraclePDA, h as SEED_USER, i as initNeutralTradeCore, j as VaultType, k as vaultsDevnet, m as SEED_TEMP, n as buildRequestWithdrawInstructionForVaultId, o as buildBundleRequestSwitchInstruction, p as SEED_PENDING_AUTH, s as buildBundleRequestWithdrawInstruction, t as buildDepositInstructionsForVaultId, v as deriveTempDataPDA, w as getVaultByAddress, x as humanFloatToAmountRawString, y as deriveUserPDA, z as DEFAULT_BUNDLE_PROGRAM_ID_DEVNET } from "./neutral-trade-core-CWk75xRT.mjs";
1
+ import { A as VaultCategory, B as DEFAULT_BUNDLE_PROGRAM_ID_MAINNET, C as getBundleProgramId, D as isValidVaultAddress, E as getVaultRegistry, F as getSolanaTokenMint, G as isAllowlistedBundleProgramId, H as createAllowlistedBundleProgram, I as tokens, K as createDummyWallet, L as ALLOWLISTED_BUNDLE_PROGRAM_IDS_BY_CLUSTER, M as SupportedChain, N as SupportedToken, O as vaults, P as getSolanaTokenDecimals, R as BUNDLE_PROGRAM_ID_V2_MAINNET, S as parseAmountRawToBigInt, T as getVaultById, U as createBundleProgramById, V as assertAllowlistedBundleProgramId, W as getDefaultBundleProgramIdByCluster, _ as derivePendingAuthPDA, a as buildBundleDepositInstructions, b as getVaultDepositorAddressSync, d as computeRequestWithdrawalSharesFromAmountRaw, f as SEED_ORACLE, g as deriveOraclePDA, h as SEED_USER, i as initNeutralTradeCore, j as VaultType, k as vaultsDevnet, m as SEED_TEMP, n as buildRequestWithdrawInstructionForVaultId, o as buildBundleRequestSwitchInstruction, p as SEED_PENDING_AUTH, s as buildBundleRequestWithdrawInstruction, t as buildDepositInstructionsForVaultId, v as deriveTempDataPDA, w as getVaultByAddress, x as humanFloatToAmountRawString, y as deriveUserPDA, z as DEFAULT_BUNDLE_PROGRAM_ID_DEVNET } from "./neutral-trade-core-B7rdV-3e.mjs";
2
2
  import { PublicKey } from "@solana/web3.js";
3
3
 
4
4
  //#region src/constants/vault-ids.ts
@@ -1,2 +1,2 @@
1
- import { a as initNeutralTradeCore, c as BuildBundleRequestWithdrawInstructionCoreParams, d as buildBundleRequestWithdrawInstructionWithVault, i as getBundleProgramForVault, l as buildBundleDepositInstructionsWithVault, n as buildDepositInstructionsForVaultId, o as BuildBundleDepositInstructionsCoreParams, r as buildRequestWithdrawInstructionForVaultId, s as BuildBundleRequestSwitchInstructionCoreParams, t as NeutralTradeCoreContext, u as buildBundleRequestSwitchInstructionWithVault } from "./neutral-trade-core-7Ob7XfF4.mjs";
1
+ import { a as initNeutralTradeCore, c as BuildBundleRequestWithdrawInstructionCoreParams, d as buildBundleRequestWithdrawInstructionWithVault, i as getBundleProgramForVault, l as buildBundleDepositInstructionsWithVault, n as buildDepositInstructionsForVaultId, o as BuildBundleDepositInstructionsCoreParams, r as buildRequestWithdrawInstructionForVaultId, s as BuildBundleRequestSwitchInstructionCoreParams, t as NeutralTradeCoreContext, u as buildBundleRequestSwitchInstructionWithVault } from "./neutral-trade-core-DHnpUNs2.mjs";
2
2
  export { type BuildBundleDepositInstructionsCoreParams, type BuildBundleRequestSwitchInstructionCoreParams, type BuildBundleRequestWithdrawInstructionCoreParams, type NeutralTradeCoreContext, buildBundleDepositInstructionsWithVault, buildBundleRequestSwitchInstructionWithVault, buildBundleRequestWithdrawInstructionWithVault, buildDepositInstructionsForVaultId, buildRequestWithdrawInstructionForVaultId, getBundleProgramForVault, initNeutralTradeCore };
package/dist/internal.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { c as buildBundleDepositInstructionsWithVault, i as initNeutralTradeCore, l as buildBundleRequestSwitchInstructionWithVault, n as buildRequestWithdrawInstructionForVaultId, r as getBundleProgramForVault, t as buildDepositInstructionsForVaultId, u as buildBundleRequestWithdrawInstructionWithVault } from "./neutral-trade-core-CWk75xRT.mjs";
1
+ import { c as buildBundleDepositInstructionsWithVault, i as initNeutralTradeCore, l as buildBundleRequestSwitchInstructionWithVault, n as buildRequestWithdrawInstructionForVaultId, r as getBundleProgramForVault, t as buildDepositInstructionsForVaultId, u as buildBundleRequestWithdrawInstructionWithVault } from "./neutral-trade-core-B7rdV-3e.mjs";
2
2
 
3
3
  export { buildBundleDepositInstructionsWithVault, buildBundleRequestSwitchInstructionWithVault, buildBundleRequestWithdrawInstructionWithVault, buildDepositInstructionsForVaultId, buildRequestWithdrawInstructionForVaultId, getBundleProgramForVault, initNeutralTradeCore };
@@ -1365,6 +1365,195 @@ var ntbundle_default = {
1365
1365
  ],
1366
1366
  "args": []
1367
1367
  },
1368
+ {
1369
+ "name": "manager_withdraw_with_split",
1370
+ "discriminator": [
1371
+ 225,
1372
+ 117,
1373
+ 84,
1374
+ 162,
1375
+ 37,
1376
+ 169,
1377
+ 153,
1378
+ 89
1379
+ ],
1380
+ "accounts": [
1381
+ {
1382
+ "name": "manager",
1383
+ "writable": true,
1384
+ "signer": true
1385
+ },
1386
+ {
1387
+ "name": "manager_token_account",
1388
+ "writable": true
1389
+ },
1390
+ {
1391
+ "name": "partner_token_account",
1392
+ "writable": true
1393
+ },
1394
+ {
1395
+ "name": "asset_address",
1396
+ "writable": true
1397
+ },
1398
+ {
1399
+ "name": "bundle_asset_account",
1400
+ "writable": true,
1401
+ "pda": {
1402
+ "seeds": [
1403
+ {
1404
+ "kind": "account",
1405
+ "path": "bundle_asset_authority"
1406
+ },
1407
+ {
1408
+ "kind": "const",
1409
+ "value": [
1410
+ 6,
1411
+ 221,
1412
+ 246,
1413
+ 225,
1414
+ 215,
1415
+ 101,
1416
+ 161,
1417
+ 147,
1418
+ 217,
1419
+ 203,
1420
+ 225,
1421
+ 70,
1422
+ 206,
1423
+ 235,
1424
+ 121,
1425
+ 172,
1426
+ 28,
1427
+ 180,
1428
+ 133,
1429
+ 237,
1430
+ 95,
1431
+ 91,
1432
+ 55,
1433
+ 145,
1434
+ 58,
1435
+ 140,
1436
+ 245,
1437
+ 133,
1438
+ 126,
1439
+ 255,
1440
+ 0,
1441
+ 169
1442
+ ]
1443
+ },
1444
+ {
1445
+ "kind": "account",
1446
+ "path": "asset_address"
1447
+ }
1448
+ ],
1449
+ "program": {
1450
+ "kind": "const",
1451
+ "value": [
1452
+ 140,
1453
+ 151,
1454
+ 37,
1455
+ 143,
1456
+ 78,
1457
+ 36,
1458
+ 137,
1459
+ 241,
1460
+ 187,
1461
+ 61,
1462
+ 16,
1463
+ 41,
1464
+ 20,
1465
+ 142,
1466
+ 13,
1467
+ 131,
1468
+ 11,
1469
+ 90,
1470
+ 19,
1471
+ 153,
1472
+ 218,
1473
+ 255,
1474
+ 16,
1475
+ 132,
1476
+ 4,
1477
+ 142,
1478
+ 123,
1479
+ 216,
1480
+ 219,
1481
+ 233,
1482
+ 248,
1483
+ 89
1484
+ ]
1485
+ }
1486
+ }
1487
+ },
1488
+ {
1489
+ "name": "bundle_account",
1490
+ "writable": true
1491
+ },
1492
+ {
1493
+ "name": "oracle_data",
1494
+ "writable": true,
1495
+ "pda": { "seeds": [{
1496
+ "kind": "const",
1497
+ "value": [
1498
+ 79,
1499
+ 82,
1500
+ 65,
1501
+ 67,
1502
+ 76,
1503
+ 69
1504
+ ]
1505
+ }, {
1506
+ "kind": "account",
1507
+ "path": "bundle_account"
1508
+ }] }
1509
+ },
1510
+ {
1511
+ "name": "bundle_asset_authority",
1512
+ "writable": true,
1513
+ "pda": { "seeds": [{
1514
+ "kind": "const",
1515
+ "value": [
1516
+ 66,
1517
+ 85,
1518
+ 78,
1519
+ 68,
1520
+ 76,
1521
+ 69,
1522
+ 95,
1523
+ 65,
1524
+ 83,
1525
+ 83,
1526
+ 69,
1527
+ 84,
1528
+ 95,
1529
+ 65,
1530
+ 85,
1531
+ 84,
1532
+ 72,
1533
+ 79,
1534
+ 82,
1535
+ 73,
1536
+ 84,
1537
+ 89
1538
+ ]
1539
+ }, {
1540
+ "kind": "account",
1541
+ "path": "bundle_account"
1542
+ }] }
1543
+ },
1544
+ {
1545
+ "name": "token_program",
1546
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
1547
+ }
1548
+ ],
1549
+ "args": [{
1550
+ "name": "partner_pfee_bps",
1551
+ "type": "u32"
1552
+ }, {
1553
+ "name": "partner_mfee_bps",
1554
+ "type": "u32"
1555
+ }]
1556
+ },
1368
1557
  {
1369
1558
  "name": "net_pending_transactions",
1370
1559
  "discriminator": [
@@ -5029,6 +5218,19 @@ var ntbundle_default = {
5029
5218
  207
5030
5219
  ]
5031
5220
  },
5221
+ {
5222
+ "name": "ManagerWithdrawalWithSplit",
5223
+ "discriminator": [
5224
+ 147,
5225
+ 151,
5226
+ 147,
5227
+ 137,
5228
+ 189,
5229
+ 58,
5230
+ 26,
5231
+ 122
5232
+ ]
5233
+ },
5032
5234
  {
5033
5235
  "name": "MaxDepositAmountSet",
5034
5236
  "discriminator": [
@@ -5783,6 +5985,11 @@ var ntbundle_default = {
5783
5985
  "code": 6082,
5784
5986
  "name": "SwitchTargetAccountMismatch",
5785
5987
  "msg": "Switch target account mismatch"
5988
+ },
5989
+ {
5990
+ "code": 6083,
5991
+ "name": "InvalidFeeSplit",
5992
+ "msg": "Invalid fee split"
5786
5993
  }
5787
5994
  ],
5788
5995
  types: [
@@ -6573,6 +6780,38 @@ var ntbundle_default = {
6573
6780
  }]
6574
6781
  }
6575
6782
  },
6783
+ {
6784
+ "name": "ManagerWithdrawalWithSplit",
6785
+ "type": {
6786
+ "kind": "struct",
6787
+ "fields": [
6788
+ {
6789
+ "name": "manager_pfee_shares",
6790
+ "type": "u128"
6791
+ },
6792
+ {
6793
+ "name": "manager_mfee_shares",
6794
+ "type": "u128"
6795
+ },
6796
+ {
6797
+ "name": "partner_pfee_shares",
6798
+ "type": "u128"
6799
+ },
6800
+ {
6801
+ "name": "partner_mfee_shares",
6802
+ "type": "u128"
6803
+ },
6804
+ {
6805
+ "name": "manager_redemption_amount",
6806
+ "type": "u64"
6807
+ },
6808
+ {
6809
+ "name": "partner_redemption_amount",
6810
+ "type": "u64"
6811
+ }
6812
+ ]
6813
+ }
6814
+ },
6576
6815
  {
6577
6816
  "name": "MaxDepositAmountSet",
6578
6817
  "type": {
@@ -13102,7 +13341,7 @@ var vaults_devnet_default = [
13102
13341
  "vaultId": 100000008,
13103
13342
  "name": "bundle-8",
13104
13343
  "type": "Bundle",
13105
- "category": "Directional",
13344
+ "category": "Market Neutral",
13106
13345
  "vaultAddress": "H3jCQZWkMD3tPjLyzJiVq4unjX45YcN7J45zVPQXaegy",
13107
13346
  "depositToken": "USDC",
13108
13347
  "pointsMultiplier": 1,
@@ -13112,7 +13351,7 @@ var vaults_devnet_default = [
13112
13351
  "vaultId": 100000009,
13113
13352
  "name": "bundle-9",
13114
13353
  "type": "Bundle",
13115
- "category": "Directional",
13354
+ "category": "Market Neutral",
13116
13355
  "vaultAddress": "4kdm7AHWVfXUDE4qErojXDdLGnU7taZN7rcJ11uaLkH1",
13117
13356
  "depositToken": "USDC",
13118
13357
  "pointsMultiplier": 1,
@@ -13141,7 +13380,7 @@ var vaults_default = [
13141
13380
  "vaultAddress": "EjRMd8PwrdoeijMqvXovQdx99EejjM8MpW2KF869asW7",
13142
13381
  "depositToken": "USDC",
13143
13382
  "pointsMultiplier": 1,
13144
- "pointsEnabled": true
13383
+ "pointsEnabled": false
13145
13384
  },
13146
13385
  {
13147
13386
  "vaultId": 78,
@@ -13200,7 +13439,7 @@ var vaults_default = [
13200
13439
  "category": "Index",
13201
13440
  "vaultAddress": "7jEMJqWsHCkMDqChEuBwFo4yg27TSWFDooB8NorkGcjD",
13202
13441
  "pointsMultiplier": 1,
13203
- "pointsEnabled": true,
13442
+ "pointsEnabled": false,
13204
13443
  "depositToken": "USDC"
13205
13444
  },
13206
13445
  {
@@ -13232,7 +13471,7 @@ var vaults_default = [
13232
13471
  "vaultAddress": "dvsWTBqogw1cou8ducadzc3YCmUssjrrio8LmMtNWmz",
13233
13472
  "depositToken": "USDC",
13234
13473
  "pointsMultiplier": 1,
13235
- "pointsEnabled": true
13474
+ "pointsEnabled": false
13236
13475
  },
13237
13476
  {
13238
13477
  "vaultId": 69,
@@ -13264,7 +13503,7 @@ var vaults_default = [
13264
13503
  "category": "Market Neutral",
13265
13504
  "vaultAddress": "976iyYPcj5obNC25A4SRP3quDLbDPeXLjF1cgUamMKBK",
13266
13505
  "depositToken": "USDT",
13267
- "pointsMultiplier": 2,
13506
+ "pointsMultiplier": 1,
13268
13507
  "pointsEnabled": false
13269
13508
  },
13270
13509
  {
@@ -13274,8 +13513,8 @@ var vaults_default = [
13274
13513
  "category": "Index",
13275
13514
  "vaultAddress": "FMtgtataz4L2efYanxTGpVjg4njNe2j8QLLsnw5zeBPx",
13276
13515
  "depositToken": "USDC",
13277
- "pointsMultiplier": 2,
13278
- "pointsEnabled": true
13516
+ "pointsMultiplier": 1,
13517
+ "pointsEnabled": false
13279
13518
  },
13280
13519
  {
13281
13520
  "vaultId": 65,
@@ -13285,7 +13524,7 @@ var vaults_default = [
13285
13524
  "category": "Market Neutral",
13286
13525
  "vaultAddress": "9cMB2bMsLa9hZjRnjxFhg2DM9CLmjabMsGvfQUtdgupk",
13287
13526
  "depositToken": "USDC",
13288
- "pointsMultiplier": 2,
13527
+ "pointsMultiplier": 1,
13289
13528
  "pointsEnabled": true
13290
13529
  },
13291
13530
  {
@@ -13296,7 +13535,7 @@ var vaults_default = [
13296
13535
  "category": "Market Neutral",
13297
13536
  "vaultAddress": "2Z2YH1RAXS8CNJo3QkYpQ4WHGH9jzNQ5m8YunRkY65mf",
13298
13537
  "depositToken": "USDC",
13299
- "pointsMultiplier": 2,
13538
+ "pointsMultiplier": 1,
13300
13539
  "pointsEnabled": false
13301
13540
  },
13302
13541
  {
@@ -13307,7 +13546,7 @@ var vaults_default = [
13307
13546
  "category": "Market Neutral",
13308
13547
  "vaultAddress": "8oZhUFmrA7p3SkVX7o4nFfSLsmt3KfCyW8grFydtvvuj",
13309
13548
  "depositToken": "USDC",
13310
- "pointsMultiplier": 2,
13549
+ "pointsMultiplier": 1,
13311
13550
  "pointsEnabled": false
13312
13551
  },
13313
13552
  {
@@ -13318,7 +13557,7 @@ var vaults_default = [
13318
13557
  "category": "Market Neutral",
13319
13558
  "vaultAddress": "HhhFKvtkbz9v7nDxsFVD8Z3qSY2r9Ncc9rnKopFaGCkb",
13320
13559
  "depositToken": "USDC",
13321
- "pointsMultiplier": 2,
13560
+ "pointsMultiplier": 1,
13322
13561
  "pointsEnabled": false
13323
13562
  },
13324
13563
  {
@@ -13339,7 +13578,7 @@ var vaults_default = [
13339
13578
  "category": "Savings",
13340
13579
  "vaultAddress": "HWjMfYfc7KoPchoEDa5UFyVSpJxY3aV1RAccKvABYb9z",
13341
13580
  "depositToken": "USDC",
13342
- "pointsMultiplier": 3,
13581
+ "pointsMultiplier": 1,
13343
13582
  "pointsEnabled": true
13344
13583
  },
13345
13584
  {
@@ -13350,7 +13589,7 @@ var vaults_default = [
13350
13589
  "category": "Market Neutral",
13351
13590
  "vaultAddress": "9vmBYT7hcjexuHM3iML3buTz3PchvULH5EfAjG12TtRZ",
13352
13591
  "depositToken": "USDC",
13353
- "pointsMultiplier": 2,
13592
+ "pointsMultiplier": 1,
13354
13593
  "pointsEnabled": false
13355
13594
  },
13356
13595
  {
@@ -13371,7 +13610,7 @@ var vaults_default = [
13371
13610
  "category": "Market Neutral",
13372
13611
  "vaultAddress": "7qPbUA5HmxjpoxniqoH8r5SZ5dY1hqYXGr8QSZsRXynX",
13373
13612
  "depositToken": "USDC",
13374
- "pointsMultiplier": 2,
13613
+ "pointsMultiplier": 1,
13375
13614
  "pointsEnabled": false
13376
13615
  },
13377
13616
  {
@@ -13419,7 +13658,7 @@ var vaults_default = [
13419
13658
  "vaultAddress": "HDDrsNSYpfHHfr646T4vfZvXDKcbzYYBEGTietGgi7rh",
13420
13659
  "depositToken": "USDC",
13421
13660
  "pointsMultiplier": 1,
13422
- "pointsEnabled": true
13661
+ "pointsEnabled": false
13423
13662
  },
13424
13663
  {
13425
13664
  "vaultId": 51,
@@ -13428,7 +13667,7 @@ var vaults_default = [
13428
13667
  "category": "Private Credit",
13429
13668
  "vaultAddress": "AvK6eRQNXiFfGSibrA96qDEtACkPyoouGrRGseryZFdE",
13430
13669
  "depositToken": "USDC",
13431
- "pointsMultiplier": 3,
13670
+ "pointsMultiplier": 1,
13432
13671
  "pointsEnabled": false
13433
13672
  },
13434
13673
  {
@@ -13456,7 +13695,7 @@ var vaults_default = [
13456
13695
  "category": "Market Neutral",
13457
13696
  "vaultAddress": "nE1x7KQq2sm3GQrafQUUdBkSPPT52FmiMM9qAS1dgnC",
13458
13697
  "depositToken": "USDC",
13459
- "pointsMultiplier": 2,
13698
+ "pointsMultiplier": 1,
13460
13699
  "pointsEnabled": true
13461
13700
  },
13462
13701
  {
@@ -13475,7 +13714,7 @@ var vaults_default = [
13475
13714
  "category": "Index",
13476
13715
  "vaultAddress": "A1B9MVput3r1jS91iu8ckdDiMSugXbQeEtvJEQsUHsPi",
13477
13716
  "depositToken": "USDC",
13478
- "pointsMultiplier": 2,
13717
+ "pointsMultiplier": 1,
13479
13718
  "pointsEnabled": false
13480
13719
  },
13481
13720
  {
@@ -13574,7 +13813,7 @@ var vaults_default = [
13574
13813
  "category": "Market Neutral",
13575
13814
  "vaultAddress": "CG2zv4wsSetgs6mAucEKnHPwSoZSLYMwGroembTUNeaU",
13576
13815
  "depositToken": "JLP",
13577
- "pointsMultiplier": 2,
13816
+ "pointsMultiplier": 1,
13578
13817
  "pointsEnabled": false
13579
13818
  },
13580
13819
  {
@@ -13595,7 +13834,7 @@ var vaults_default = [
13595
13834
  "category": "Market Neutral",
13596
13835
  "vaultAddress": "5DPwSqEfaEsBH4zzZha35TpWRRPnWFfVgYZyK3zNswT7",
13597
13836
  "depositToken": "USDC",
13598
- "pointsMultiplier": 2,
13837
+ "pointsMultiplier": 1,
13599
13838
  "pointsEnabled": false
13600
13839
  },
13601
13840
  {
@@ -13606,7 +13845,7 @@ var vaults_default = [
13606
13845
  "category": "Market Neutral",
13607
13846
  "vaultAddress": "6un71hP7xhpc8nqWWnbYPiamjAckEGH1A6zzenpGdZLf",
13608
13847
  "depositToken": "USDC",
13609
- "pointsMultiplier": 2,
13848
+ "pointsMultiplier": 1,
13610
13849
  "pointsEnabled": false
13611
13850
  },
13612
13851
  {
@@ -13617,7 +13856,7 @@ var vaults_default = [
13617
13856
  "category": "Market Neutral",
13618
13857
  "vaultAddress": "5FqiXogZCcyZoNeTZzNvywY5s9ZRzNsPPkZ2Q4YRu6ww",
13619
13858
  "depositToken": "USDC",
13620
- "pointsMultiplier": 2,
13859
+ "pointsMultiplier": 1,
13621
13860
  "pointsEnabled": false
13622
13861
  },
13623
13862
  {
@@ -13649,7 +13888,7 @@ var vaults_default = [
13649
13888
  "category": "Market Neutral",
13650
13889
  "vaultAddress": "46fQeq1UX5djNkrY5d942inhRHjp1cTZmWBeCUZoqWT3",
13651
13890
  "depositToken": "USDC",
13652
- "pointsMultiplier": 2,
13891
+ "pointsMultiplier": 1,
13653
13892
  "pointsEnabled": false
13654
13893
  },
13655
13894
  {
@@ -13691,7 +13930,7 @@ var vaults_default = [
13691
13930
  "category": "Market Neutral",
13692
13931
  "vaultAddress": "HS2anXrdps1S2DZCHepgzfcoaqSUWBBuuqTRMugJisP2",
13693
13932
  "depositToken": "USDC",
13694
- "pointsMultiplier": 2,
13933
+ "pointsMultiplier": 1,
13695
13934
  "pointsEnabled": false
13696
13935
  },
13697
13936
  {
@@ -13712,7 +13951,7 @@ var vaults_default = [
13712
13951
  "category": "Market Neutral",
13713
13952
  "vaultAddress": "AwVR9y8Qw5erzrzE8hcs1j1se86yBwmrRidWb1qzaAy2",
13714
13953
  "depositToken": "USDC",
13715
- "pointsMultiplier": 2,
13954
+ "pointsMultiplier": 1,
13716
13955
  "pointsEnabled": false
13717
13956
  },
13718
13957
  {
@@ -13783,7 +14022,7 @@ var vaults_default = [
13783
14022
  "category": "Market Neutral",
13784
14023
  "vaultAddress": "7ngzeBygEksaBvKzHEeihqoLpDpWqTNRMVh2wCyb6NP8",
13785
14024
  "depositToken": "USDC",
13786
- "pointsMultiplier": 2,
14025
+ "pointsMultiplier": 1,
13787
14026
  "pointsEnabled": false
13788
14027
  },
13789
14028
  {
@@ -13854,7 +14093,7 @@ var vaults_default = [
13854
14093
  "category": "Market Neutral",
13855
14094
  "vaultAddress": "DUW6uWcrsjYmsYDjp9iGDN4JdRa2MqznjuxjKVok5Fsj",
13856
14095
  "depositToken": "USDC",
13857
- "pointsMultiplier": 2,
14096
+ "pointsMultiplier": 1,
13858
14097
  "pointsEnabled": false
13859
14098
  },
13860
14099
  {
@@ -13904,7 +14143,7 @@ var vaults_default = [
13904
14143
  "category": "Market Neutral",
13905
14144
  "vaultAddress": "41Y8C4oxk4zgJT1KXyQr35UhZcfsp5mP86Z2G7UUzojU",
13906
14145
  "depositToken": "USDC",
13907
- "pointsMultiplier": 2,
14146
+ "pointsMultiplier": 1,
13908
14147
  "pointsEnabled": false
13909
14148
  },
13910
14149
  {
@@ -8,7 +8,7 @@ import { z } from "zod";
8
8
  * Program IDL in camelCase format in order to be used in JS/TS.
9
9
  *
10
10
  * Note that this is only a type helper and is not the actual IDL. The original
11
- * IDL can be found at `target/idl/ntbundle.json`.
11
+ * IDL can be found at `src/idl/ntbundle.json` (synced from `bundle-sc/target/idl/ntbundle.json`).
12
12
  */
13
13
  interface Ntbundle {
14
14
  address: 'BUNDDh4P5XviMm1f3gCvnq2qKx6TGosAGnoUK12e7cXU';
@@ -672,6 +672,79 @@ interface Ntbundle {
672
672
  address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
673
673
  }];
674
674
  args: [];
675
+ }, {
676
+ name: 'managerWithdrawWithSplit';
677
+ discriminator: [225, 117, 84, 162, 37, 169, 153, 89];
678
+ accounts: [{
679
+ name: 'manager';
680
+ writable: true;
681
+ signer: true;
682
+ }, {
683
+ name: 'managerTokenAccount';
684
+ writable: true;
685
+ }, {
686
+ name: 'partnerTokenAccount';
687
+ writable: true;
688
+ }, {
689
+ name: 'assetAddress';
690
+ writable: true;
691
+ }, {
692
+ name: 'bundleAssetAccount';
693
+ writable: true;
694
+ pda: {
695
+ seeds: [{
696
+ kind: 'account';
697
+ path: 'bundleAssetAuthority';
698
+ }, {
699
+ kind: 'const';
700
+ value: [6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169];
701
+ }, {
702
+ kind: 'account';
703
+ path: 'assetAddress';
704
+ }];
705
+ program: {
706
+ kind: 'const';
707
+ value: [140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89];
708
+ };
709
+ };
710
+ }, {
711
+ name: 'bundleAccount';
712
+ writable: true;
713
+ }, {
714
+ name: 'oracleData';
715
+ writable: true;
716
+ pda: {
717
+ seeds: [{
718
+ kind: 'const';
719
+ value: [79, 82, 65, 67, 76, 69];
720
+ }, {
721
+ kind: 'account';
722
+ path: 'bundleAccount';
723
+ }];
724
+ };
725
+ }, {
726
+ name: 'bundleAssetAuthority';
727
+ writable: true;
728
+ pda: {
729
+ seeds: [{
730
+ kind: 'const';
731
+ value: [66, 85, 78, 68, 76, 69, 95, 65, 83, 83, 69, 84, 95, 65, 85, 84, 72, 79, 82, 73, 84, 89];
732
+ }, {
733
+ kind: 'account';
734
+ path: 'bundleAccount';
735
+ }];
736
+ };
737
+ }, {
738
+ name: 'tokenProgram';
739
+ address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
740
+ }];
741
+ args: [{
742
+ name: 'partnerPfeeBps';
743
+ type: 'u32';
744
+ }, {
745
+ name: 'partnerMfeeBps';
746
+ type: 'u32';
747
+ }];
675
748
  }, {
676
749
  name: 'netPendingTransactions';
677
750
  discriminator: [44, 219, 50, 19, 246, 252, 37, 163];
@@ -2162,6 +2235,9 @@ interface Ntbundle {
2162
2235
  }, {
2163
2236
  name: 'managerWithdrawal';
2164
2237
  discriminator: [167, 6, 24, 193, 128, 74, 94, 207];
2238
+ }, {
2239
+ name: 'managerWithdrawalWithSplit';
2240
+ discriminator: [147, 151, 147, 137, 189, 58, 26, 122];
2165
2241
  }, {
2166
2242
  name: 'maxDepositAmountSet';
2167
2243
  discriminator: [204, 243, 42, 160, 116, 144, 207, 38];
@@ -2573,6 +2649,10 @@ interface Ntbundle {
2573
2649
  code: 6082;
2574
2650
  name: 'switchTargetAccountMismatch';
2575
2651
  msg: 'Switch target account mismatch';
2652
+ }, {
2653
+ code: 6083;
2654
+ name: 'invalidFeeSplit';
2655
+ msg: 'Invalid fee split';
2576
2656
  }];
2577
2657
  types: [{
2578
2658
  name: 'allocated';
@@ -3204,6 +3284,30 @@ interface Ntbundle {
3204
3284
  type: 'u64';
3205
3285
  }];
3206
3286
  };
3287
+ }, {
3288
+ name: 'managerWithdrawalWithSplit';
3289
+ type: {
3290
+ kind: 'struct';
3291
+ fields: [{
3292
+ name: 'managerPfeeShares';
3293
+ type: 'u128';
3294
+ }, {
3295
+ name: 'managerMfeeShares';
3296
+ type: 'u128';
3297
+ }, {
3298
+ name: 'partnerPfeeShares';
3299
+ type: 'u128';
3300
+ }, {
3301
+ name: 'partnerMfeeShares';
3302
+ type: 'u128';
3303
+ }, {
3304
+ name: 'managerRedemptionAmount';
3305
+ type: 'u64';
3306
+ }, {
3307
+ name: 'partnerRedemptionAmount';
3308
+ type: 'u64';
3309
+ }];
3310
+ };
3207
3311
  }, {
3208
3312
  name: 'maxDepositAmountSet';
3209
3313
  type: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@neutral-trade/sdk",
3
3
  "type": "module",
4
- "version": "0.4.12",
4
+ "version": "0.4.13",
5
5
  "description": "SDK for Neutral Trade vaults",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/neutral-trade/sdk#readme",