@voltr/vault-sdk 0.1.3 → 0.1.5

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/client.js CHANGED
@@ -775,7 +775,7 @@ class VoltrClient extends AccountUtils {
775
775
  * @returns Promise resolving to the vault account data
776
776
  */
777
777
  async fetchVaultAccount(vault) {
778
- return await this.vaultProgram.account.vault.fetch(vault);
778
+ return await this.vaultProgram.account.vault.fetch(vault, "confirmed");
779
779
  }
780
780
  /**
781
781
  * Fetches a strategy init receipt account's data
@@ -788,7 +788,7 @@ class VoltrClient extends AccountUtils {
788
788
  * ```
789
789
  */
790
790
  async fetchStrategyInitReceiptAccount(strategyInitReceipt) {
791
- return await this.vaultProgram.account.strategyInitReceipt.fetch(strategyInitReceipt);
791
+ return await this.vaultProgram.account.strategyInitReceipt.fetch(strategyInitReceipt, "confirmed");
792
792
  }
793
793
  /**
794
794
  * Fetches an adaptor add receipt account's data
@@ -801,7 +801,7 @@ class VoltrClient extends AccountUtils {
801
801
  * ```
802
802
  */
803
803
  async fetchAdaptorAddReceiptAccount(adaptorAddReceipt) {
804
- return await this.vaultProgram.account.adaptorAddReceipt.fetch(adaptorAddReceipt);
804
+ return await this.vaultProgram.account.adaptorAddReceipt.fetch(adaptorAddReceipt, "confirmed");
805
805
  }
806
806
  // --------------------------------------- Helpers
807
807
  /**
@@ -462,10 +462,6 @@
462
462
  {
463
463
  "name": "asset_token_program"
464
464
  },
465
- {
466
- "name": "lp_token_program",
467
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
468
- },
469
465
  {
470
466
  "name": "adaptor_program"
471
467
  }
@@ -2468,10 +2464,6 @@
2468
2464
  },
2469
2465
  {
2470
2466
  "name": "asset_token_program"
2471
- },
2472
- {
2473
- "name": "lp_token_program",
2474
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
2475
2467
  }
2476
2468
  ],
2477
2469
  "args": [
@@ -468,10 +468,6 @@ export type VoltrVault = {
468
468
  {
469
469
  "name": "assetTokenProgram";
470
470
  },
471
- {
472
- "name": "lpTokenProgram";
473
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
474
- },
475
471
  {
476
472
  "name": "adaptorProgram";
477
473
  }
@@ -2474,10 +2470,6 @@ export type VoltrVault = {
2474
2470
  },
2475
2471
  {
2476
2472
  "name": "assetTokenProgram";
2477
- },
2478
- {
2479
- "name": "lpTokenProgram";
2480
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
2481
2473
  }
2482
2474
  ];
2483
2475
  "args": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltr/vault-sdk",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "SDK for interacting with Voltr Protocol",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",