@neutral-trade/sdk 0.4.2 → 0.4.3
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
|
@@ -12,6 +12,8 @@ declare function createDummyWallet(): Wallet;
|
|
|
12
12
|
* Auto-generated from the vault registry JSON.
|
|
13
13
|
*/
|
|
14
14
|
declare enum VaultId {
|
|
15
|
+
/** Options-MM-Z */
|
|
16
|
+
options_mm_z_80 = 80,
|
|
15
17
|
/** Thirdeye-Flagship-USDC-Bundle */
|
|
16
18
|
thirdeye_flagship_usdc_bundle_79 = 79,
|
|
17
19
|
/** Velox-Cross-USDC-Bundle */
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as SupportedChain, B as createAllowlistedBundleProgram, C as getVaultById, D as vaultsDevnet, E as vaults, F as ALLOWLISTED_BUNDLE_PROGRAM_IDS_BY_CLUSTER, H as getDefaultBundleProgramIdByCluster, I as BUNDLE_PROGRAM_ID_V2_MAINNET, L as DEFAULT_BUNDLE_PROGRAM_ID_DEVNET, M as getSolanaTokenDecimals, N as getSolanaTokenMint, O as VaultCategory, P as tokens, R as DEFAULT_BUNDLE_PROGRAM_ID_MAINNET, S as getVaultByAddress, T as isValidVaultAddress, U as isAllowlistedBundleProgramId, V as createBundleProgramById, W as createDummyWallet, _ as deriveUserPDA, a as buildBundleDepositInstructions, b as parseAmountRawToBigInt, d as SEED_PENDING_AUTH, f as SEED_TEMP, g as deriveTempDataPDA, h as derivePendingAuthPDA, i as initNeutralTradeCore, j as SupportedToken, k as VaultType, l as computeRequestWithdrawalSharesFromAmountRaw, m as deriveOraclePDA, n as buildRequestWithdrawInstructionForVaultId, o as buildBundleRequestWithdrawInstruction, p as SEED_USER, t as buildDepositInstructionsForVaultId, u as SEED_ORACLE, v as getVaultDepositorAddressSync, w as getVaultRegistry, x as getBundleProgramId, y as humanFloatToAmountRawString, z as assertAllowlistedBundleProgramId } from "./neutral-trade-core-
|
|
1
|
+
import { A as SupportedChain, B as createAllowlistedBundleProgram, C as getVaultById, D as vaultsDevnet, E as vaults, F as ALLOWLISTED_BUNDLE_PROGRAM_IDS_BY_CLUSTER, H as getDefaultBundleProgramIdByCluster, I as BUNDLE_PROGRAM_ID_V2_MAINNET, L as DEFAULT_BUNDLE_PROGRAM_ID_DEVNET, M as getSolanaTokenDecimals, N as getSolanaTokenMint, O as VaultCategory, P as tokens, R as DEFAULT_BUNDLE_PROGRAM_ID_MAINNET, S as getVaultByAddress, T as isValidVaultAddress, U as isAllowlistedBundleProgramId, V as createBundleProgramById, W as createDummyWallet, _ as deriveUserPDA, a as buildBundleDepositInstructions, b as parseAmountRawToBigInt, d as SEED_PENDING_AUTH, f as SEED_TEMP, g as deriveTempDataPDA, h as derivePendingAuthPDA, i as initNeutralTradeCore, j as SupportedToken, k as VaultType, l as computeRequestWithdrawalSharesFromAmountRaw, m as deriveOraclePDA, n as buildRequestWithdrawInstructionForVaultId, o as buildBundleRequestWithdrawInstruction, p as SEED_USER, t as buildDepositInstructionsForVaultId, u as SEED_ORACLE, v as getVaultDepositorAddressSync, w as getVaultRegistry, x as getBundleProgramId, y as humanFloatToAmountRawString, z as assertAllowlistedBundleProgramId } from "./neutral-trade-core-CVl2TjD0.mjs";
|
|
2
2
|
import { PublicKey } from "@solana/web3.js";
|
|
3
3
|
|
|
4
4
|
//#region src/constants/vault-ids.ts
|
|
@@ -7,6 +7,8 @@ import { PublicKey } from "@solana/web3.js";
|
|
|
7
7
|
* Auto-generated from the vault registry JSON.
|
|
8
8
|
*/
|
|
9
9
|
let VaultId = /* @__PURE__ */ function(VaultId$1) {
|
|
10
|
+
/** Options-MM-Z */
|
|
11
|
+
VaultId$1[VaultId$1["options_mm_z_80"] = 80] = "options_mm_z_80";
|
|
10
12
|
/** Thirdeye-Flagship-USDC-Bundle */
|
|
11
13
|
VaultId$1[VaultId$1["thirdeye_flagship_usdc_bundle_79"] = 79] = "thirdeye_flagship_usdc_bundle_79";
|
|
12
14
|
/** Velox-Cross-USDC-Bundle */
|
package/dist/internal.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { c as buildBundleRequestWithdrawInstructionWithVault, i as initNeutralTradeCore, n as buildRequestWithdrawInstructionForVaultId, r as getBundleProgramForVault, s as buildBundleDepositInstructionsWithVault, t as buildDepositInstructionsForVaultId } from "./neutral-trade-core-
|
|
1
|
+
import { c as buildBundleRequestWithdrawInstructionWithVault, i as initNeutralTradeCore, n as buildRequestWithdrawInstructionForVaultId, r as getBundleProgramForVault, s as buildBundleDepositInstructionsWithVault, t as buildDepositInstructionsForVaultId } from "./neutral-trade-core-CVl2TjD0.mjs";
|
|
2
2
|
|
|
3
3
|
export { buildBundleDepositInstructionsWithVault, buildBundleRequestWithdrawInstructionWithVault, buildDepositInstructionsForVaultId, buildRequestWithdrawInstructionForVaultId, getBundleProgramForVault, initNeutralTradeCore };
|
|
@@ -11643,6 +11643,16 @@ var vaults_devnet_default = [{
|
|
|
11643
11643
|
//#endregion
|
|
11644
11644
|
//#region src/registry/vaults.json
|
|
11645
11645
|
var vaults_default = [
|
|
11646
|
+
{
|
|
11647
|
+
"vaultId": 80,
|
|
11648
|
+
"name": "Options-MM-Z",
|
|
11649
|
+
"type": "Bundle",
|
|
11650
|
+
"category": "Market Neutral",
|
|
11651
|
+
"vaultAddress": "3vZKAcd74bzwNYZmsJndYExkGj6ABQwrUoiMtdNfzLZe",
|
|
11652
|
+
"depositToken": "USDC",
|
|
11653
|
+
"pointsMultiplier": 1,
|
|
11654
|
+
"pointsEnabled": false
|
|
11655
|
+
},
|
|
11646
11656
|
{
|
|
11647
11657
|
"vaultId": 79,
|
|
11648
11658
|
"name": "Thirdeye-Flagship-USDC-Bundle",
|