@voltr/vault-sdk 1.0.10 → 1.0.11

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.
Files changed (2) hide show
  1. package/dist/client.js +4 -4
  2. package/package.json +1 -1
package/dist/client.js CHANGED
@@ -995,7 +995,7 @@ class VoltrClient extends AccountUtils {
995
995
  * @returns Promise resolving to the vault account data
996
996
  */
997
997
  async fetchVaultAccount(vault) {
998
- return await this.vaultProgram.account.vault.fetch(vault);
998
+ return await this.vaultProgram.account.vault.fetch(vault, this.provider.opts.commitment);
999
999
  }
1000
1000
  /**
1001
1001
  * Fetches a strategy init receipt account's data
@@ -1008,7 +1008,7 @@ class VoltrClient extends AccountUtils {
1008
1008
  * ```
1009
1009
  */
1010
1010
  async fetchStrategyInitReceiptAccount(strategyInitReceipt) {
1011
- return await this.vaultProgram.account.strategyInitReceipt.fetch(strategyInitReceipt);
1011
+ return await this.vaultProgram.account.strategyInitReceipt.fetch(strategyInitReceipt, this.provider.opts.commitment);
1012
1012
  }
1013
1013
  /**
1014
1014
  * Fetches an adaptor add receipt account's data
@@ -1021,7 +1021,7 @@ class VoltrClient extends AccountUtils {
1021
1021
  * ```
1022
1022
  */
1023
1023
  async fetchAdaptorAddReceiptAccount(adaptorAddReceipt) {
1024
- return await this.vaultProgram.account.adaptorAddReceipt.fetch(adaptorAddReceipt);
1024
+ return await this.vaultProgram.account.adaptorAddReceipt.fetch(adaptorAddReceipt, this.provider.opts.commitment);
1025
1025
  }
1026
1026
  /**
1027
1027
  * Fetches a request withdraw vault receipt account's data
@@ -1034,7 +1034,7 @@ class VoltrClient extends AccountUtils {
1034
1034
  * ```
1035
1035
  */
1036
1036
  async fetchRequestWithdrawVaultReceiptAccount(requestWithdrawVaultReceipt) {
1037
- return await this.vaultProgram.account.requestWithdrawVaultReceipt.fetch(requestWithdrawVaultReceipt);
1037
+ return await this.vaultProgram.account.requestWithdrawVaultReceipt.fetch(requestWithdrawVaultReceipt, this.provider.opts.commitment);
1038
1038
  }
1039
1039
  // --------------------------------------- Helpers
1040
1040
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltr/vault-sdk",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "SDK for interacting with Voltr Protocol",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",