@carrot-protocol/http-client 0.2.70-carrot-boost-jit-dev-dbcbdd3 → 0.2.70-carrot-boost-jit-dev-bdc4d5d
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 +2 -2
- package/dist/index.js +2 -2
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as anchor from "@coral-xyz/anchor";
|
|
2
2
|
import { Vault, VaultPerformance } from "@carrot-protocol/common";
|
|
3
|
-
import { CheckWalletResponse, ClaimReferralCodeResponse,
|
|
3
|
+
import { CheckWalletResponse, ClaimReferralCodeResponse, GetCarrotBoostJitIxnsRequest, GetCarrotBoostJitIxnsResponse, GetReferralCodesResponse, HistoricalVaultApyResponse, HistoricalVaultNavResponse, UserPerformanceResponse, UserResponse, VaultHistoricalInterval, VaultOhlcResponse } from "./types";
|
|
4
4
|
export * as Common from "@carrot-protocol/common";
|
|
5
5
|
export * from "./types";
|
|
6
6
|
export declare class Client {
|
|
@@ -21,7 +21,7 @@ export declare class Client {
|
|
|
21
21
|
checkWallet(wallet: anchor.web3.PublicKey): Promise<CheckWalletResponse>;
|
|
22
22
|
claimReferralCode(wallet: anchor.web3.PublicKey, code: string): Promise<ClaimReferralCodeResponse>;
|
|
23
23
|
getReferralCodes(wallet: anchor.web3.PublicKey): Promise<GetReferralCodesResponse>;
|
|
24
|
-
|
|
24
|
+
getCarrotBoostJitIxns(request: GetCarrotBoostJitIxnsRequest): Promise<GetCarrotBoostJitIxnsResponse>;
|
|
25
25
|
private send;
|
|
26
26
|
}
|
|
27
27
|
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
|
@@ -307,8 +307,8 @@ class Client {
|
|
|
307
307
|
const body = JSON.parse(JSON.stringify(responseBody));
|
|
308
308
|
return body;
|
|
309
309
|
}
|
|
310
|
-
async
|
|
311
|
-
const url = new URL(`${this.baseUrl}/carrotBoostJitInstructions?vault=${request.vault.toString()}&assetMint=${request.assetMint.toString()}&amount=${request.amount.toString()}`);
|
|
310
|
+
async getCarrotBoostJitIxns(request) {
|
|
311
|
+
const url = new URL(`${this.baseUrl}/carrotBoostJitInstructions?vault=${request.vault.toString()}&carrotBoostStrategy=${request.carrotBoostStrategy.toString()}&assetMint=${request.assetMint.toString()}&amount=${request.amount.toString()}`);
|
|
312
312
|
const response = await (0, cross_fetch_1.default)(url, {
|
|
313
313
|
method: "GET",
|
|
314
314
|
headers: this.headers,
|
package/dist/types.d.ts
CHANGED
|
@@ -110,13 +110,13 @@ export interface OhlcEntry {
|
|
|
110
110
|
low: number;
|
|
111
111
|
close: number;
|
|
112
112
|
}
|
|
113
|
-
export interface
|
|
113
|
+
export interface GetCarrotBoostJitIxnsRequest {
|
|
114
114
|
vault: anchor.web3.PublicKey;
|
|
115
115
|
carrotBoostStrategy: anchor.web3.PublicKey;
|
|
116
116
|
assetMint: anchor.web3.PublicKey;
|
|
117
117
|
amount: anchor.BN;
|
|
118
118
|
}
|
|
119
|
-
export interface
|
|
119
|
+
export interface GetCarrotBoostJitIxnsResponse {
|
|
120
120
|
instructions: anchor.web3.TransactionInstruction[];
|
|
121
121
|
}
|
|
122
122
|
export {};
|
package/package.json
CHANGED