@neutral-trade/sdk 0.4.11 → 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";
@@ -187,7 +187,17 @@ declare enum DevnetVaultId {
187
187
  /** bundle-2 */
188
188
  bundle_2_100000003 = 100000003,
189
189
  /** bundle-4 */
190
- bundle_4_100000005 = 100000005,
190
+ bundle_4_100000004 = 100000004,
191
+ /** bundle-5 */
192
+ bundle_5_100000005 = 100000005,
193
+ /** bundle-6 */
194
+ bundle_6_100000006 = 100000006,
195
+ /** bundle-7 */
196
+ bundle_7_100000007 = 100000007,
197
+ /** bundle-8 */
198
+ bundle_8_100000008 = 100000008,
199
+ /** bundle-9 */
200
+ bundle_9_100000009 = 100000009,
191
201
  }
192
202
  //#endregion
193
203
  //#region src/utils/amount-raw.d.ts
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-x0cLp5YE.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
@@ -184,7 +184,17 @@ let DevnetVaultId = /* @__PURE__ */ function(DevnetVaultId$1) {
184
184
  /** bundle-2 */
185
185
  DevnetVaultId$1[DevnetVaultId$1["bundle_2_100000003"] = 100000003] = "bundle_2_100000003";
186
186
  /** bundle-4 */
187
- DevnetVaultId$1[DevnetVaultId$1["bundle_4_100000005"] = 100000005] = "bundle_4_100000005";
187
+ DevnetVaultId$1[DevnetVaultId$1["bundle_4_100000004"] = 100000004] = "bundle_4_100000004";
188
+ /** bundle-5 */
189
+ DevnetVaultId$1[DevnetVaultId$1["bundle_5_100000005"] = 100000005] = "bundle_5_100000005";
190
+ /** bundle-6 */
191
+ DevnetVaultId$1[DevnetVaultId$1["bundle_6_100000006"] = 100000006] = "bundle_6_100000006";
192
+ /** bundle-7 */
193
+ DevnetVaultId$1[DevnetVaultId$1["bundle_7_100000007"] = 100000007] = "bundle_7_100000007";
194
+ /** bundle-8 */
195
+ DevnetVaultId$1[DevnetVaultId$1["bundle_8_100000008"] = 100000008] = "bundle_8_100000008";
196
+ /** bundle-9 */
197
+ DevnetVaultId$1[DevnetVaultId$1["bundle_9_100000009"] = 100000009] = "bundle_9_100000009";
188
198
  return DevnetVaultId$1;
189
199
  }({});
190
200
 
@@ -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-x0cLp5YE.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": {
@@ -13059,7 +13298,7 @@ var vaults_devnet_default = [
13059
13298
  "pointsEnabled": true
13060
13299
  },
13061
13300
  {
13062
- "vaultId": 100000005,
13301
+ "vaultId": 100000004,
13063
13302
  "name": "bundle-4",
13064
13303
  "type": "Bundle",
13065
13304
  "category": "Market Neutral",
@@ -13067,6 +13306,56 @@ var vaults_devnet_default = [
13067
13306
  "depositToken": "USDC",
13068
13307
  "pointsMultiplier": 1,
13069
13308
  "pointsEnabled": true
13309
+ },
13310
+ {
13311
+ "vaultId": 100000005,
13312
+ "name": "bundle-5",
13313
+ "type": "Bundle",
13314
+ "category": "Market Neutral",
13315
+ "vaultAddress": "J17FgERPmZ9JQNjpaCKb3ZsYseeyrpw3PXFPUrK7zLVa",
13316
+ "depositToken": "USDC",
13317
+ "pointsMultiplier": 1,
13318
+ "pointsEnabled": true
13319
+ },
13320
+ {
13321
+ "vaultId": 100000006,
13322
+ "name": "bundle-6",
13323
+ "type": "Bundle",
13324
+ "category": "Market Neutral",
13325
+ "vaultAddress": "3VUBZk5V1KiPBdAj1Zkrnm3w8zriAg8UJ8Z155Ja8xdS",
13326
+ "depositToken": "USDC",
13327
+ "pointsMultiplier": 1,
13328
+ "pointsEnabled": true
13329
+ },
13330
+ {
13331
+ "vaultId": 100000007,
13332
+ "name": "bundle-7",
13333
+ "type": "Bundle",
13334
+ "category": "Market Neutral",
13335
+ "vaultAddress": "C2SGzvgoZu754yVNEL8ChAyxePo54CPpuyY3qMkmBSJA",
13336
+ "depositToken": "USDC",
13337
+ "pointsMultiplier": 1,
13338
+ "pointsEnabled": true
13339
+ },
13340
+ {
13341
+ "vaultId": 100000008,
13342
+ "name": "bundle-8",
13343
+ "type": "Bundle",
13344
+ "category": "Market Neutral",
13345
+ "vaultAddress": "H3jCQZWkMD3tPjLyzJiVq4unjX45YcN7J45zVPQXaegy",
13346
+ "depositToken": "USDC",
13347
+ "pointsMultiplier": 1,
13348
+ "pointsEnabled": true
13349
+ },
13350
+ {
13351
+ "vaultId": 100000009,
13352
+ "name": "bundle-9",
13353
+ "type": "Bundle",
13354
+ "category": "Market Neutral",
13355
+ "vaultAddress": "4kdm7AHWVfXUDE4qErojXDdLGnU7taZN7rcJ11uaLkH1",
13356
+ "depositToken": "USDC",
13357
+ "pointsMultiplier": 1,
13358
+ "pointsEnabled": true
13070
13359
  }
13071
13360
  ];
13072
13361
 
@@ -13091,7 +13380,7 @@ var vaults_default = [
13091
13380
  "vaultAddress": "EjRMd8PwrdoeijMqvXovQdx99EejjM8MpW2KF869asW7",
13092
13381
  "depositToken": "USDC",
13093
13382
  "pointsMultiplier": 1,
13094
- "pointsEnabled": true
13383
+ "pointsEnabled": false
13095
13384
  },
13096
13385
  {
13097
13386
  "vaultId": 78,
@@ -13150,7 +13439,7 @@ var vaults_default = [
13150
13439
  "category": "Index",
13151
13440
  "vaultAddress": "7jEMJqWsHCkMDqChEuBwFo4yg27TSWFDooB8NorkGcjD",
13152
13441
  "pointsMultiplier": 1,
13153
- "pointsEnabled": true,
13442
+ "pointsEnabled": false,
13154
13443
  "depositToken": "USDC"
13155
13444
  },
13156
13445
  {
@@ -13182,7 +13471,7 @@ var vaults_default = [
13182
13471
  "vaultAddress": "dvsWTBqogw1cou8ducadzc3YCmUssjrrio8LmMtNWmz",
13183
13472
  "depositToken": "USDC",
13184
13473
  "pointsMultiplier": 1,
13185
- "pointsEnabled": true
13474
+ "pointsEnabled": false
13186
13475
  },
13187
13476
  {
13188
13477
  "vaultId": 69,
@@ -13214,7 +13503,7 @@ var vaults_default = [
13214
13503
  "category": "Market Neutral",
13215
13504
  "vaultAddress": "976iyYPcj5obNC25A4SRP3quDLbDPeXLjF1cgUamMKBK",
13216
13505
  "depositToken": "USDT",
13217
- "pointsMultiplier": 2,
13506
+ "pointsMultiplier": 1,
13218
13507
  "pointsEnabled": false
13219
13508
  },
13220
13509
  {
@@ -13224,8 +13513,8 @@ var vaults_default = [
13224
13513
  "category": "Index",
13225
13514
  "vaultAddress": "FMtgtataz4L2efYanxTGpVjg4njNe2j8QLLsnw5zeBPx",
13226
13515
  "depositToken": "USDC",
13227
- "pointsMultiplier": 2,
13228
- "pointsEnabled": true
13516
+ "pointsMultiplier": 1,
13517
+ "pointsEnabled": false
13229
13518
  },
13230
13519
  {
13231
13520
  "vaultId": 65,
@@ -13235,7 +13524,7 @@ var vaults_default = [
13235
13524
  "category": "Market Neutral",
13236
13525
  "vaultAddress": "9cMB2bMsLa9hZjRnjxFhg2DM9CLmjabMsGvfQUtdgupk",
13237
13526
  "depositToken": "USDC",
13238
- "pointsMultiplier": 2,
13527
+ "pointsMultiplier": 1,
13239
13528
  "pointsEnabled": true
13240
13529
  },
13241
13530
  {
@@ -13246,7 +13535,7 @@ var vaults_default = [
13246
13535
  "category": "Market Neutral",
13247
13536
  "vaultAddress": "2Z2YH1RAXS8CNJo3QkYpQ4WHGH9jzNQ5m8YunRkY65mf",
13248
13537
  "depositToken": "USDC",
13249
- "pointsMultiplier": 2,
13538
+ "pointsMultiplier": 1,
13250
13539
  "pointsEnabled": false
13251
13540
  },
13252
13541
  {
@@ -13257,7 +13546,7 @@ var vaults_default = [
13257
13546
  "category": "Market Neutral",
13258
13547
  "vaultAddress": "8oZhUFmrA7p3SkVX7o4nFfSLsmt3KfCyW8grFydtvvuj",
13259
13548
  "depositToken": "USDC",
13260
- "pointsMultiplier": 2,
13549
+ "pointsMultiplier": 1,
13261
13550
  "pointsEnabled": false
13262
13551
  },
13263
13552
  {
@@ -13268,7 +13557,7 @@ var vaults_default = [
13268
13557
  "category": "Market Neutral",
13269
13558
  "vaultAddress": "HhhFKvtkbz9v7nDxsFVD8Z3qSY2r9Ncc9rnKopFaGCkb",
13270
13559
  "depositToken": "USDC",
13271
- "pointsMultiplier": 2,
13560
+ "pointsMultiplier": 1,
13272
13561
  "pointsEnabled": false
13273
13562
  },
13274
13563
  {
@@ -13289,7 +13578,7 @@ var vaults_default = [
13289
13578
  "category": "Savings",
13290
13579
  "vaultAddress": "HWjMfYfc7KoPchoEDa5UFyVSpJxY3aV1RAccKvABYb9z",
13291
13580
  "depositToken": "USDC",
13292
- "pointsMultiplier": 3,
13581
+ "pointsMultiplier": 1,
13293
13582
  "pointsEnabled": true
13294
13583
  },
13295
13584
  {
@@ -13300,7 +13589,7 @@ var vaults_default = [
13300
13589
  "category": "Market Neutral",
13301
13590
  "vaultAddress": "9vmBYT7hcjexuHM3iML3buTz3PchvULH5EfAjG12TtRZ",
13302
13591
  "depositToken": "USDC",
13303
- "pointsMultiplier": 2,
13592
+ "pointsMultiplier": 1,
13304
13593
  "pointsEnabled": false
13305
13594
  },
13306
13595
  {
@@ -13321,7 +13610,7 @@ var vaults_default = [
13321
13610
  "category": "Market Neutral",
13322
13611
  "vaultAddress": "7qPbUA5HmxjpoxniqoH8r5SZ5dY1hqYXGr8QSZsRXynX",
13323
13612
  "depositToken": "USDC",
13324
- "pointsMultiplier": 2,
13613
+ "pointsMultiplier": 1,
13325
13614
  "pointsEnabled": false
13326
13615
  },
13327
13616
  {
@@ -13369,7 +13658,7 @@ var vaults_default = [
13369
13658
  "vaultAddress": "HDDrsNSYpfHHfr646T4vfZvXDKcbzYYBEGTietGgi7rh",
13370
13659
  "depositToken": "USDC",
13371
13660
  "pointsMultiplier": 1,
13372
- "pointsEnabled": true
13661
+ "pointsEnabled": false
13373
13662
  },
13374
13663
  {
13375
13664
  "vaultId": 51,
@@ -13378,7 +13667,7 @@ var vaults_default = [
13378
13667
  "category": "Private Credit",
13379
13668
  "vaultAddress": "AvK6eRQNXiFfGSibrA96qDEtACkPyoouGrRGseryZFdE",
13380
13669
  "depositToken": "USDC",
13381
- "pointsMultiplier": 3,
13670
+ "pointsMultiplier": 1,
13382
13671
  "pointsEnabled": false
13383
13672
  },
13384
13673
  {
@@ -13406,7 +13695,7 @@ var vaults_default = [
13406
13695
  "category": "Market Neutral",
13407
13696
  "vaultAddress": "nE1x7KQq2sm3GQrafQUUdBkSPPT52FmiMM9qAS1dgnC",
13408
13697
  "depositToken": "USDC",
13409
- "pointsMultiplier": 2,
13698
+ "pointsMultiplier": 1,
13410
13699
  "pointsEnabled": true
13411
13700
  },
13412
13701
  {
@@ -13425,7 +13714,7 @@ var vaults_default = [
13425
13714
  "category": "Index",
13426
13715
  "vaultAddress": "A1B9MVput3r1jS91iu8ckdDiMSugXbQeEtvJEQsUHsPi",
13427
13716
  "depositToken": "USDC",
13428
- "pointsMultiplier": 2,
13717
+ "pointsMultiplier": 1,
13429
13718
  "pointsEnabled": false
13430
13719
  },
13431
13720
  {
@@ -13524,7 +13813,7 @@ var vaults_default = [
13524
13813
  "category": "Market Neutral",
13525
13814
  "vaultAddress": "CG2zv4wsSetgs6mAucEKnHPwSoZSLYMwGroembTUNeaU",
13526
13815
  "depositToken": "JLP",
13527
- "pointsMultiplier": 2,
13816
+ "pointsMultiplier": 1,
13528
13817
  "pointsEnabled": false
13529
13818
  },
13530
13819
  {
@@ -13545,7 +13834,7 @@ var vaults_default = [
13545
13834
  "category": "Market Neutral",
13546
13835
  "vaultAddress": "5DPwSqEfaEsBH4zzZha35TpWRRPnWFfVgYZyK3zNswT7",
13547
13836
  "depositToken": "USDC",
13548
- "pointsMultiplier": 2,
13837
+ "pointsMultiplier": 1,
13549
13838
  "pointsEnabled": false
13550
13839
  },
13551
13840
  {
@@ -13556,7 +13845,7 @@ var vaults_default = [
13556
13845
  "category": "Market Neutral",
13557
13846
  "vaultAddress": "6un71hP7xhpc8nqWWnbYPiamjAckEGH1A6zzenpGdZLf",
13558
13847
  "depositToken": "USDC",
13559
- "pointsMultiplier": 2,
13848
+ "pointsMultiplier": 1,
13560
13849
  "pointsEnabled": false
13561
13850
  },
13562
13851
  {
@@ -13567,7 +13856,7 @@ var vaults_default = [
13567
13856
  "category": "Market Neutral",
13568
13857
  "vaultAddress": "5FqiXogZCcyZoNeTZzNvywY5s9ZRzNsPPkZ2Q4YRu6ww",
13569
13858
  "depositToken": "USDC",
13570
- "pointsMultiplier": 2,
13859
+ "pointsMultiplier": 1,
13571
13860
  "pointsEnabled": false
13572
13861
  },
13573
13862
  {
@@ -13599,7 +13888,7 @@ var vaults_default = [
13599
13888
  "category": "Market Neutral",
13600
13889
  "vaultAddress": "46fQeq1UX5djNkrY5d942inhRHjp1cTZmWBeCUZoqWT3",
13601
13890
  "depositToken": "USDC",
13602
- "pointsMultiplier": 2,
13891
+ "pointsMultiplier": 1,
13603
13892
  "pointsEnabled": false
13604
13893
  },
13605
13894
  {
@@ -13641,7 +13930,7 @@ var vaults_default = [
13641
13930
  "category": "Market Neutral",
13642
13931
  "vaultAddress": "HS2anXrdps1S2DZCHepgzfcoaqSUWBBuuqTRMugJisP2",
13643
13932
  "depositToken": "USDC",
13644
- "pointsMultiplier": 2,
13933
+ "pointsMultiplier": 1,
13645
13934
  "pointsEnabled": false
13646
13935
  },
13647
13936
  {
@@ -13662,7 +13951,7 @@ var vaults_default = [
13662
13951
  "category": "Market Neutral",
13663
13952
  "vaultAddress": "AwVR9y8Qw5erzrzE8hcs1j1se86yBwmrRidWb1qzaAy2",
13664
13953
  "depositToken": "USDC",
13665
- "pointsMultiplier": 2,
13954
+ "pointsMultiplier": 1,
13666
13955
  "pointsEnabled": false
13667
13956
  },
13668
13957
  {
@@ -13733,7 +14022,7 @@ var vaults_default = [
13733
14022
  "category": "Market Neutral",
13734
14023
  "vaultAddress": "7ngzeBygEksaBvKzHEeihqoLpDpWqTNRMVh2wCyb6NP8",
13735
14024
  "depositToken": "USDC",
13736
- "pointsMultiplier": 2,
14025
+ "pointsMultiplier": 1,
13737
14026
  "pointsEnabled": false
13738
14027
  },
13739
14028
  {
@@ -13804,7 +14093,7 @@ var vaults_default = [
13804
14093
  "category": "Market Neutral",
13805
14094
  "vaultAddress": "DUW6uWcrsjYmsYDjp9iGDN4JdRa2MqznjuxjKVok5Fsj",
13806
14095
  "depositToken": "USDC",
13807
- "pointsMultiplier": 2,
14096
+ "pointsMultiplier": 1,
13808
14097
  "pointsEnabled": false
13809
14098
  },
13810
14099
  {
@@ -13854,7 +14143,7 @@ var vaults_default = [
13854
14143
  "category": "Market Neutral",
13855
14144
  "vaultAddress": "41Y8C4oxk4zgJT1KXyQr35UhZcfsp5mP86Z2G7UUzojU",
13856
14145
  "depositToken": "USDC",
13857
- "pointsMultiplier": 2,
14146
+ "pointsMultiplier": 1,
13858
14147
  "pointsEnabled": false
13859
14148
  },
13860
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.11",
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",