@compass-labs/api-sdk 2.2.70 → 2.2.71
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/commonjs/models/components/accountsummary.d.ts +18 -1
- package/dist/commonjs/models/components/accountsummary.d.ts.map +1 -1
- package/dist/commonjs/models/components/accountsummary.js +2 -0
- package/dist/commonjs/models/components/accountsummary.js.map +1 -1
- package/dist/commonjs/models/components/collateralposition.d.ts +16 -1
- package/dist/commonjs/models/components/collateralposition.d.ts.map +1 -1
- package/dist/commonjs/models/components/collateralposition.js +3 -0
- package/dist/commonjs/models/components/collateralposition.js.map +1 -1
- package/dist/commonjs/models/components/creditborrowparams.d.ts +17 -0
- package/dist/commonjs/models/components/creditborrowparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditborrowparams.js +4 -0
- package/dist/commonjs/models/components/creditborrowparams.js.map +1 -1
- package/dist/commonjs/models/components/creditborrowrequest.d.ts +22 -0
- package/dist/commonjs/models/components/creditborrowrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditborrowrequest.js +6 -0
- package/dist/commonjs/models/components/creditborrowrequest.js.map +1 -1
- package/dist/commonjs/models/components/creditenablecollateralparams.d.ts +17 -0
- package/dist/commonjs/models/components/creditenablecollateralparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditenablecollateralparams.js +4 -0
- package/dist/commonjs/models/components/creditenablecollateralparams.js.map +1 -1
- package/dist/commonjs/models/components/creditpositionsresponse.d.ts +11 -1
- package/dist/commonjs/models/components/creditpositionsresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditpositionsresponse.js +2 -0
- package/dist/commonjs/models/components/creditpositionsresponse.js.map +1 -1
- package/dist/commonjs/models/components/creditprotocol.d.ts +30 -0
- package/dist/commonjs/models/components/creditprotocol.d.ts.map +1 -0
- package/dist/commonjs/models/components/creditprotocol.js +58 -0
- package/dist/commonjs/models/components/creditprotocol.js.map +1 -0
- package/dist/commonjs/models/components/creditrepayparams.d.ts +18 -1
- package/dist/commonjs/models/components/creditrepayparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditrepayparams.js +4 -0
- package/dist/commonjs/models/components/creditrepayparams.js.map +1 -1
- package/dist/commonjs/models/components/creditrepayrequest.d.ts +22 -0
- package/dist/commonjs/models/components/creditrepayrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditrepayrequest.js +6 -0
- package/dist/commonjs/models/components/creditrepayrequest.js.map +1 -1
- package/dist/commonjs/models/components/creditsupplyparams.d.ts +18 -1
- package/dist/commonjs/models/components/creditsupplyparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditsupplyparams.js +4 -0
- package/dist/commonjs/models/components/creditsupplyparams.js.map +1 -1
- package/dist/commonjs/models/components/creditwithdrawparams.d.ts +18 -1
- package/dist/commonjs/models/components/creditwithdrawparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditwithdrawparams.js +4 -0
- package/dist/commonjs/models/components/creditwithdrawparams.js.map +1 -1
- package/dist/commonjs/models/components/debtposition.d.ts +16 -1
- package/dist/commonjs/models/components/debtposition.d.ts.map +1 -1
- package/dist/commonjs/models/components/debtposition.js +3 -0
- package/dist/commonjs/models/components/debtposition.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/esm/models/components/accountsummary.d.ts +18 -1
- package/dist/esm/models/components/accountsummary.d.ts.map +1 -1
- package/dist/esm/models/components/accountsummary.js +2 -0
- package/dist/esm/models/components/accountsummary.js.map +1 -1
- package/dist/esm/models/components/collateralposition.d.ts +16 -1
- package/dist/esm/models/components/collateralposition.d.ts.map +1 -1
- package/dist/esm/models/components/collateralposition.js +3 -0
- package/dist/esm/models/components/collateralposition.js.map +1 -1
- package/dist/esm/models/components/creditborrowparams.d.ts +17 -0
- package/dist/esm/models/components/creditborrowparams.d.ts.map +1 -1
- package/dist/esm/models/components/creditborrowparams.js +4 -0
- package/dist/esm/models/components/creditborrowparams.js.map +1 -1
- package/dist/esm/models/components/creditborrowrequest.d.ts +22 -0
- package/dist/esm/models/components/creditborrowrequest.d.ts.map +1 -1
- package/dist/esm/models/components/creditborrowrequest.js +6 -0
- package/dist/esm/models/components/creditborrowrequest.js.map +1 -1
- package/dist/esm/models/components/creditenablecollateralparams.d.ts +17 -0
- package/dist/esm/models/components/creditenablecollateralparams.d.ts.map +1 -1
- package/dist/esm/models/components/creditenablecollateralparams.js +4 -0
- package/dist/esm/models/components/creditenablecollateralparams.js.map +1 -1
- package/dist/esm/models/components/creditpositionsresponse.d.ts +11 -1
- package/dist/esm/models/components/creditpositionsresponse.d.ts.map +1 -1
- package/dist/esm/models/components/creditpositionsresponse.js +2 -0
- package/dist/esm/models/components/creditpositionsresponse.js.map +1 -1
- package/dist/esm/models/components/creditprotocol.d.ts +30 -0
- package/dist/esm/models/components/creditprotocol.d.ts.map +1 -0
- package/dist/esm/models/components/creditprotocol.js +22 -0
- package/dist/esm/models/components/creditprotocol.js.map +1 -0
- package/dist/esm/models/components/creditrepayparams.d.ts +18 -1
- package/dist/esm/models/components/creditrepayparams.d.ts.map +1 -1
- package/dist/esm/models/components/creditrepayparams.js +4 -0
- package/dist/esm/models/components/creditrepayparams.js.map +1 -1
- package/dist/esm/models/components/creditrepayrequest.d.ts +22 -0
- package/dist/esm/models/components/creditrepayrequest.d.ts.map +1 -1
- package/dist/esm/models/components/creditrepayrequest.js +6 -0
- package/dist/esm/models/components/creditrepayrequest.js.map +1 -1
- package/dist/esm/models/components/creditsupplyparams.d.ts +18 -1
- package/dist/esm/models/components/creditsupplyparams.d.ts.map +1 -1
- package/dist/esm/models/components/creditsupplyparams.js +4 -0
- package/dist/esm/models/components/creditsupplyparams.js.map +1 -1
- package/dist/esm/models/components/creditwithdrawparams.d.ts +18 -1
- package/dist/esm/models/components/creditwithdrawparams.d.ts.map +1 -1
- package/dist/esm/models/components/creditwithdrawparams.js +4 -0
- package/dist/esm/models/components/creditwithdrawparams.js.map +1 -1
- package/dist/esm/models/components/debtposition.d.ts +16 -1
- package/dist/esm/models/components/debtposition.d.ts.map +1 -1
- package/dist/esm/models/components/debtposition.js +3 -0
- package/dist/esm/models/components/debtposition.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/docs/models/components/accountsummary.md +15 -10
- package/docs/models/components/collateralposition.md +14 -12
- package/docs/models/components/creditborrowparams.md +9 -7
- package/docs/models/components/creditborrowrequest.md +19 -16
- package/docs/models/components/creditenablecollateralparams.md +6 -4
- package/docs/models/components/creditpositionsresponse.md +16 -7
- package/docs/models/components/creditprotocol.md +21 -0
- package/docs/models/components/creditrepayparams.md +8 -6
- package/docs/models/components/creditrepayrequest.md +18 -15
- package/docs/models/components/creditsupplyparams.md +7 -5
- package/docs/models/components/creditwithdrawparams.md +7 -5
- package/docs/models/components/debtposition.md +13 -11
- package/openapi_prepped_for_speakeasy.json +208 -6
- package/package.json +1 -1
- package/src/models/components/accountsummary.ts +22 -1
- package/src/models/components/collateralposition.ts +21 -1
- package/src/models/components/creditborrowparams.ts +23 -0
- package/src/models/components/creditborrowrequest.ts +30 -0
- package/src/models/components/creditenablecollateralparams.ts +23 -0
- package/src/models/components/creditpositionsresponse.ts +13 -1
- package/src/models/components/creditprotocol.ts +39 -0
- package/src/models/components/creditrepayparams.ts +24 -1
- package/src/models/components/creditrepayrequest.ts +30 -0
- package/src/models/components/creditsupplyparams.ts +24 -1
- package/src/models/components/creditwithdrawparams.ts +24 -1
- package/src/models/components/debtposition.ts +21 -1
- package/src/models/components/index.ts +1 -0
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import {
|
|
8
|
+
CreditProtocol,
|
|
9
|
+
CreditProtocol$outboundSchema,
|
|
10
|
+
} from "./creditprotocol.js";
|
|
7
11
|
import {
|
|
8
12
|
InterestRateMode,
|
|
9
13
|
InterestRateMode$outboundSchema,
|
|
@@ -20,7 +24,7 @@ export type CreditRepayParamsAmount = number | string;
|
|
|
20
24
|
export type CreditRepayParams = {
|
|
21
25
|
actionType: "CREDIT_REPAY";
|
|
22
26
|
/**
|
|
23
|
-
* Token to repay
|
|
27
|
+
* Token to repay.
|
|
24
28
|
*/
|
|
25
29
|
token: string;
|
|
26
30
|
/**
|
|
@@ -35,6 +39,20 @@ export type CreditRepayParams = {
|
|
|
35
39
|
* A stable (but typically higher rate), or a variable rate.
|
|
36
40
|
*/
|
|
37
41
|
interestRateMode?: InterestRateMode | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Which lending protocol a credit action targets.
|
|
44
|
+
*
|
|
45
|
+
* @remarks
|
|
46
|
+
*
|
|
47
|
+
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
48
|
+
* field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
|
|
49
|
+
* Euler V2 path, where the market is identified by EVK vault address(es).
|
|
50
|
+
*/
|
|
51
|
+
protocol?: CreditProtocol | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Euler only: the EVK vault the debt is owed to. Required when protocol=EULER.
|
|
54
|
+
*/
|
|
55
|
+
borrowVault?: string | null | undefined;
|
|
38
56
|
};
|
|
39
57
|
|
|
40
58
|
/** @internal */
|
|
@@ -61,6 +79,8 @@ export type CreditRepayParams$Outbound = {
|
|
|
61
79
|
token: string;
|
|
62
80
|
amount: number | string;
|
|
63
81
|
interest_rate_mode?: string | undefined;
|
|
82
|
+
protocol?: string | undefined;
|
|
83
|
+
borrow_vault?: string | null | undefined;
|
|
64
84
|
};
|
|
65
85
|
|
|
66
86
|
/** @internal */
|
|
@@ -73,10 +93,13 @@ export const CreditRepayParams$outboundSchema: z.ZodType<
|
|
|
73
93
|
token: z.string(),
|
|
74
94
|
amount: z.union([z.number(), z.string()]),
|
|
75
95
|
interestRateMode: InterestRateMode$outboundSchema.optional(),
|
|
96
|
+
protocol: CreditProtocol$outboundSchema.optional(),
|
|
97
|
+
borrowVault: z.nullable(z.string()).optional(),
|
|
76
98
|
}).transform((v) => {
|
|
77
99
|
return remap$(v, {
|
|
78
100
|
actionType: "action_type",
|
|
79
101
|
interestRateMode: "interest_rate_mode",
|
|
102
|
+
borrowVault: "borrow_vault",
|
|
80
103
|
});
|
|
81
104
|
});
|
|
82
105
|
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { Chain, Chain$outboundSchema } from "./chain.js";
|
|
8
|
+
import {
|
|
9
|
+
CreditProtocol,
|
|
10
|
+
CreditProtocol$outboundSchema,
|
|
11
|
+
} from "./creditprotocol.js";
|
|
8
12
|
import {
|
|
9
13
|
InterestRateMode,
|
|
10
14
|
InterestRateMode$outboundSchema,
|
|
@@ -34,6 +38,24 @@ export type CreditRepayRequest = {
|
|
|
34
38
|
* The chain to use.
|
|
35
39
|
*/
|
|
36
40
|
chain: Chain;
|
|
41
|
+
/**
|
|
42
|
+
* Which lending protocol a credit action targets.
|
|
43
|
+
*
|
|
44
|
+
* @remarks
|
|
45
|
+
*
|
|
46
|
+
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
47
|
+
* field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
|
|
48
|
+
* Euler V2 path, where the market is identified by EVK vault address(es).
|
|
49
|
+
*/
|
|
50
|
+
protocol?: CreditProtocol | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Euler only: the EVK vault the debt is owed to (repay target). Required when protocol=EULER.
|
|
53
|
+
*/
|
|
54
|
+
borrowVault?: string | null | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Euler only: the EVK collateral vault to withdraw from. Required when protocol=EULER and withdrawing collateral.
|
|
57
|
+
*/
|
|
58
|
+
collateralVault?: string | null | undefined;
|
|
37
59
|
/**
|
|
38
60
|
* The borrowed asset to repay (e.g. WETH). Must match the debt position's token.
|
|
39
61
|
*/
|
|
@@ -134,6 +156,9 @@ export function creditRepayRequestSlippageToJSON(
|
|
|
134
156
|
export type CreditRepayRequest$Outbound = {
|
|
135
157
|
owner: string;
|
|
136
158
|
chain: string;
|
|
159
|
+
protocol?: string | undefined;
|
|
160
|
+
borrow_vault?: string | null | undefined;
|
|
161
|
+
collateral_vault?: string | null | undefined;
|
|
137
162
|
repay_token: string;
|
|
138
163
|
repay_amount: number | string;
|
|
139
164
|
interest_rate_mode?: string | undefined;
|
|
@@ -155,6 +180,9 @@ export const CreditRepayRequest$outboundSchema: z.ZodType<
|
|
|
155
180
|
> = z.object({
|
|
156
181
|
owner: z.string(),
|
|
157
182
|
chain: Chain$outboundSchema,
|
|
183
|
+
protocol: CreditProtocol$outboundSchema.optional(),
|
|
184
|
+
borrowVault: z.nullable(z.string()).optional(),
|
|
185
|
+
collateralVault: z.nullable(z.string()).optional(),
|
|
158
186
|
repayToken: z.string(),
|
|
159
187
|
repayAmount: z.union([z.number(), z.string()]),
|
|
160
188
|
interestRateMode: InterestRateMode$outboundSchema.optional(),
|
|
@@ -168,6 +196,8 @@ export const CreditRepayRequest$outboundSchema: z.ZodType<
|
|
|
168
196
|
permit2Deadline: z.nullable(z.number().int()).optional(),
|
|
169
197
|
}).transform((v) => {
|
|
170
198
|
return remap$(v, {
|
|
199
|
+
borrowVault: "borrow_vault",
|
|
200
|
+
collateralVault: "collateral_vault",
|
|
171
201
|
repayToken: "repay_token",
|
|
172
202
|
repayAmount: "repay_amount",
|
|
173
203
|
interestRateMode: "interest_rate_mode",
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import {
|
|
8
|
+
CreditProtocol,
|
|
9
|
+
CreditProtocol$outboundSchema,
|
|
10
|
+
} from "./creditprotocol.js";
|
|
7
11
|
|
|
8
12
|
/**
|
|
9
13
|
* Amount in token units to supply.
|
|
@@ -16,13 +20,27 @@ export type CreditSupplyParamsAmount = number | string;
|
|
|
16
20
|
export type CreditSupplyParams = {
|
|
17
21
|
actionType: "CREDIT_SUPPLY";
|
|
18
22
|
/**
|
|
19
|
-
* Collateral token to supply
|
|
23
|
+
* Collateral token to supply.
|
|
20
24
|
*/
|
|
21
25
|
token: string;
|
|
22
26
|
/**
|
|
23
27
|
* Amount in token units to supply.
|
|
24
28
|
*/
|
|
25
29
|
amount: number | string;
|
|
30
|
+
/**
|
|
31
|
+
* Which lending protocol a credit action targets.
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
*
|
|
35
|
+
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
36
|
+
* field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
|
|
37
|
+
* Euler V2 path, where the market is identified by EVK vault address(es).
|
|
38
|
+
*/
|
|
39
|
+
protocol?: CreditProtocol | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Euler only: the EVK collateral vault to supply into. Required when protocol=EULER.
|
|
42
|
+
*/
|
|
43
|
+
collateralVault?: string | null | undefined;
|
|
26
44
|
};
|
|
27
45
|
|
|
28
46
|
/** @internal */
|
|
@@ -48,6 +66,8 @@ export type CreditSupplyParams$Outbound = {
|
|
|
48
66
|
action_type: "CREDIT_SUPPLY";
|
|
49
67
|
token: string;
|
|
50
68
|
amount: number | string;
|
|
69
|
+
protocol?: string | undefined;
|
|
70
|
+
collateral_vault?: string | null | undefined;
|
|
51
71
|
};
|
|
52
72
|
|
|
53
73
|
/** @internal */
|
|
@@ -59,9 +79,12 @@ export const CreditSupplyParams$outboundSchema: z.ZodType<
|
|
|
59
79
|
actionType: z.literal("CREDIT_SUPPLY"),
|
|
60
80
|
token: z.string(),
|
|
61
81
|
amount: z.union([z.number(), z.string()]),
|
|
82
|
+
protocol: CreditProtocol$outboundSchema.optional(),
|
|
83
|
+
collateralVault: z.nullable(z.string()).optional(),
|
|
62
84
|
}).transform((v) => {
|
|
63
85
|
return remap$(v, {
|
|
64
86
|
actionType: "action_type",
|
|
87
|
+
collateralVault: "collateral_vault",
|
|
65
88
|
});
|
|
66
89
|
});
|
|
67
90
|
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import {
|
|
8
|
+
CreditProtocol,
|
|
9
|
+
CreditProtocol$outboundSchema,
|
|
10
|
+
} from "./creditprotocol.js";
|
|
7
11
|
|
|
8
12
|
/**
|
|
9
13
|
* Amount in token units to withdraw.
|
|
@@ -16,13 +20,27 @@ export type CreditWithdrawParamsAmount = number | string;
|
|
|
16
20
|
export type CreditWithdrawParams = {
|
|
17
21
|
actionType: "CREDIT_WITHDRAW";
|
|
18
22
|
/**
|
|
19
|
-
* Collateral token to withdraw
|
|
23
|
+
* Collateral token to withdraw.
|
|
20
24
|
*/
|
|
21
25
|
token: string;
|
|
22
26
|
/**
|
|
23
27
|
* Amount in token units to withdraw.
|
|
24
28
|
*/
|
|
25
29
|
amount: number | string;
|
|
30
|
+
/**
|
|
31
|
+
* Which lending protocol a credit action targets.
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
*
|
|
35
|
+
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
36
|
+
* field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
|
|
37
|
+
* Euler V2 path, where the market is identified by EVK vault address(es).
|
|
38
|
+
*/
|
|
39
|
+
protocol?: CreditProtocol | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Euler only: the EVK collateral vault to withdraw from. Required when protocol=EULER.
|
|
42
|
+
*/
|
|
43
|
+
collateralVault?: string | null | undefined;
|
|
26
44
|
};
|
|
27
45
|
|
|
28
46
|
/** @internal */
|
|
@@ -48,6 +66,8 @@ export type CreditWithdrawParams$Outbound = {
|
|
|
48
66
|
action_type: "CREDIT_WITHDRAW";
|
|
49
67
|
token: string;
|
|
50
68
|
amount: number | string;
|
|
69
|
+
protocol?: string | undefined;
|
|
70
|
+
collateral_vault?: string | null | undefined;
|
|
51
71
|
};
|
|
52
72
|
|
|
53
73
|
/** @internal */
|
|
@@ -59,9 +79,12 @@ export const CreditWithdrawParams$outboundSchema: z.ZodType<
|
|
|
59
79
|
actionType: z.literal("CREDIT_WITHDRAW"),
|
|
60
80
|
token: z.string(),
|
|
61
81
|
amount: z.union([z.number(), z.string()]),
|
|
82
|
+
protocol: CreditProtocol$outboundSchema.optional(),
|
|
83
|
+
collateralVault: z.nullable(z.string()).optional(),
|
|
62
84
|
}).transform((v) => {
|
|
63
85
|
return remap$(v, {
|
|
64
86
|
actionType: "action_type",
|
|
87
|
+
collateralVault: "collateral_vault",
|
|
65
88
|
});
|
|
66
89
|
});
|
|
67
90
|
|
|
@@ -8,6 +8,10 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
import { CreditEvent, CreditEvent$inboundSchema } from "./creditevent.js";
|
|
11
|
+
import {
|
|
12
|
+
CreditProtocol,
|
|
13
|
+
CreditProtocol$inboundSchema,
|
|
14
|
+
} from "./creditprotocol.js";
|
|
11
15
|
|
|
12
16
|
/**
|
|
13
17
|
* A per-reserve debt position.
|
|
@@ -22,7 +26,21 @@ export type DebtPosition = {
|
|
|
22
26
|
*/
|
|
23
27
|
symbol: string;
|
|
24
28
|
/**
|
|
25
|
-
*
|
|
29
|
+
* Which lending protocol a credit action targets.
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
*
|
|
33
|
+
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
34
|
+
* field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
|
|
35
|
+
* Euler V2 path, where the market is identified by EVK vault address(es).
|
|
36
|
+
*/
|
|
37
|
+
protocol?: CreditProtocol | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Euler only: the EVK borrow vault this debt is owed to.
|
|
40
|
+
*/
|
|
41
|
+
vault?: string | null | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Current on-chain debt balance (the vault's underlying asset for Euler).
|
|
26
44
|
*/
|
|
27
45
|
amountBorrowed: string | null;
|
|
28
46
|
/**
|
|
@@ -59,6 +77,8 @@ export const DebtPosition$inboundSchema: z.ZodType<
|
|
|
59
77
|
> = z.object({
|
|
60
78
|
token: z.string(),
|
|
61
79
|
symbol: z.string(),
|
|
80
|
+
protocol: CreditProtocol$inboundSchema.optional(),
|
|
81
|
+
vault: z.nullable(z.string()).optional(),
|
|
62
82
|
amount_borrowed: z.nullable(z.string()),
|
|
63
83
|
usd_value: z.nullable(z.string()).optional(),
|
|
64
84
|
borrow_apy: z.nullable(z.string()).optional(),
|
|
@@ -103,6 +103,7 @@ export * from "./creditenablecollateralparams.js";
|
|
|
103
103
|
export * from "./creditevent.js";
|
|
104
104
|
export * from "./creditfee.js";
|
|
105
105
|
export * from "./creditpositionsresponse.js";
|
|
106
|
+
export * from "./creditprotocol.js";
|
|
106
107
|
export * from "./creditrepayparams.js";
|
|
107
108
|
export * from "./creditrepayrequest.js";
|
|
108
109
|
export * from "./creditrepayresponse.js";
|