@carrot-protocol/http-client 0.2.60-update-historical-apy-dev-8a78838 → 0.2.60-update-historical-apy-dev-9a9aa66

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.ts CHANGED
@@ -93,7 +93,7 @@ export interface ReferralCode {
93
93
  maxUses: number;
94
94
  remainingUses: number;
95
95
  }
96
- declare const allowedIntervals: readonly ["HOUR", "DAY"];
96
+ declare const allowedIntervals: readonly ["HOUR", "DAY", "WEEK"];
97
97
  export type VaultHistoricalInterval = (typeof allowedIntervals)[number];
98
98
  export declare function isValidVaultHistoricalInterval(interval: string): interval is VaultHistoricalInterval;
99
99
  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>;
package/dist/index.js CHANGED
@@ -321,7 +321,7 @@ function isWalletAllowed(response) {
321
321
  return response.isWhitelisted || response.claimedReferralCode;
322
322
  }
323
323
  // Allowed intervals for historical data
324
- const allowedIntervals = ["HOUR", "DAY"];
324
+ const allowedIntervals = ["HOUR", "DAY", "WEEK"];
325
325
  // Validates the provided historical interval
326
326
  function isValidVaultHistoricalInterval(interval) {
327
327
  return allowedIntervals.includes(interval);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carrot-protocol/http-client",
3
- "version": "0.2.60-update-historical-apy-dev-8a78838",
3
+ "version": "0.2.60-update-historical-apy-dev-9a9aa66",
4
4
  "description": "interact with carrot api",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",