@carrot-protocol/http-client 0.2.12-hva-dev-a84f07d → 0.2.12-hva-dev-8a6747f

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/index.d.ts +2 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -9,7 +9,7 @@ export declare class Client {
9
9
  getVault(vault: anchor.web3.PublicKey): Promise<Vault>;
10
10
  getVaultPerformance(vault: anchor.web3.PublicKey): Promise<VaultPerformance>;
11
11
  getUser(vault: anchor.web3.PublicKey): Promise<UserResponse>;
12
- getHistoricalVaultApy(vault: anchor.web3.PublicKey, interval: string): Promise<HistoricalVaultApyResponse>;
12
+ getHistoricalVaultApy(vault: anchor.web3.PublicKey, interval: VaultHistoricalApyInterval): Promise<HistoricalVaultApyResponse>;
13
13
  issue(vault: anchor.web3.PublicKey, assetMint: anchor.web3.PublicKey, amount: anchor.BN): Promise<string>;
14
14
  redeem(vault: anchor.web3.PublicKey, assetMint: anchor.web3.PublicKey, amount: anchor.BN): Promise<string>;
15
15
  private send;
@@ -57,6 +57,6 @@ export interface VaultApy {
57
57
  }
58
58
  declare const allowedIntervals: readonly ["HOUR", "DAY", "WEEK"];
59
59
  export type VaultHistoricalApyInterval = (typeof allowedIntervals)[number];
60
- export declare function isValidVaultHistoricalApyInterval(interval: any): interval is VaultHistoricalApyInterval;
60
+ export declare function isValidVaultHistoricalApyInterval(interval: string): interval is VaultHistoricalApyInterval;
61
61
  export declare function prepareUnsignedTx(connection: anchor.web3.Connection, payer: anchor.web3.PublicKey, ixns: anchor.web3.TransactionInstruction[], lutAddr?: anchor.web3.PublicKey, additionalSigner?: anchor.AnchorProvider): Promise<string>;
62
62
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carrot-protocol/http-client",
3
- "version": "0.2.12-hva-dev-a84f07d",
3
+ "version": "0.2.12-hva-dev-8a6747f",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",