@compass-labs/api-sdk 2.2.72 → 2.2.73-rc.0
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/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/components/borrowabletoken.d.ts +6 -2
- package/dist/commonjs/models/components/borrowabletoken.d.ts.map +1 -1
- package/dist/commonjs/models/components/borrowabletoken.js +2 -1
- package/dist/commonjs/models/components/borrowabletoken.js.map +1 -1
- package/dist/commonjs/models/components/creditpositionsresponse.d.ts +4 -0
- 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/eulermarket.d.ts +8 -0
- package/dist/commonjs/models/components/eulermarket.d.ts.map +1 -1
- package/dist/commonjs/models/components/eulermarket.js +4 -0
- package/dist/commonjs/models/components/eulermarket.js.map +1 -1
- package/dist/commonjs/models/components/eulermarketcollateral.d.ts +4 -0
- package/dist/commonjs/models/components/eulermarketcollateral.d.ts.map +1 -1
- package/dist/commonjs/models/components/eulermarketcollateral.js +2 -0
- package/dist/commonjs/models/components/eulermarketcollateral.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/components/borrowabletoken.d.ts +6 -2
- package/dist/esm/models/components/borrowabletoken.d.ts.map +1 -1
- package/dist/esm/models/components/borrowabletoken.js +2 -1
- package/dist/esm/models/components/borrowabletoken.js.map +1 -1
- package/dist/esm/models/components/creditpositionsresponse.d.ts +4 -0
- 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/eulermarket.d.ts +8 -0
- package/dist/esm/models/components/eulermarket.d.ts.map +1 -1
- package/dist/esm/models/components/eulermarket.js +4 -0
- package/dist/esm/models/components/eulermarket.js.map +1 -1
- package/dist/esm/models/components/eulermarketcollateral.d.ts +4 -0
- package/dist/esm/models/components/eulermarketcollateral.d.ts.map +1 -1
- package/dist/esm/models/components/eulermarketcollateral.js +2 -0
- package/dist/esm/models/components/eulermarketcollateral.js.map +1 -1
- package/docs/models/components/borrowabletoken.md +7 -7
- package/docs/models/components/creditpositionsresponse.md +10 -8
- package/docs/models/components/eulermarket.md +10 -8
- package/docs/models/components/eulermarketcollateral.md +8 -7
- package/openapi_prepped_for_speakeasy.json +67 -4
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/borrowabletoken.ts +8 -3
- package/src/models/components/creditpositionsresponse.ts +6 -0
- package/src/models/components/eulermarket.ts +12 -0
- package/src/models/components/eulermarketcollateral.ts +6 -0
|
@@ -32,7 +32,7 @@ export declare const SDK_METADATA: {
|
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "0.0.1";
|
|
34
34
|
readonly sdkVersion: "2.0.0";
|
|
35
|
-
readonly genVersion: "2.
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 2.0.0 2.
|
|
35
|
+
readonly genVersion: "2.913.3";
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 2.0.0 2.913.3 0.0.1 @compass-labs/api-sdk";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -32,7 +32,7 @@ exports.SDK_METADATA = {
|
|
|
32
32
|
language: "typescript",
|
|
33
33
|
openapiDocVersion: "0.0.1",
|
|
34
34
|
sdkVersion: "2.0.0",
|
|
35
|
-
genVersion: "2.
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 2.0.0 2.
|
|
35
|
+
genVersion: "2.913.3",
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 2.0.0 2.913.3 0.0.1 @compass-labs/api-sdk",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
|
@@ -13,14 +13,18 @@ export type BorrowableToken = {
|
|
|
13
13
|
* Symbol of the borrowable token (e.g. WETH).
|
|
14
14
|
*/
|
|
15
15
|
symbol: string;
|
|
16
|
+
/**
|
|
17
|
+
* Euler only: the EVK borrow vault to borrow this token from (pass as borrow_vault).
|
|
18
|
+
*/
|
|
19
|
+
vault?: string | null | undefined;
|
|
16
20
|
/**
|
|
17
21
|
* Maximum amount that can be borrowed based on available borrow capacity and token price.
|
|
18
22
|
*/
|
|
19
23
|
maxBorrowableAmount: string;
|
|
20
24
|
/**
|
|
21
|
-
* Current variable borrow APY in percentage (e.g. 4.5 means 4.5%).
|
|
25
|
+
* Current variable borrow APY in percentage (e.g. 4.5 means 4.5%). Null if the rate is unavailable.
|
|
22
26
|
*/
|
|
23
|
-
borrowApy
|
|
27
|
+
borrowApy?: string | null | undefined;
|
|
24
28
|
};
|
|
25
29
|
/** @internal */
|
|
26
30
|
export declare const BorrowableToken$inboundSchema: z.ZodType<BorrowableToken, z.ZodTypeDef, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"borrowabletoken.d.ts","sourceRoot":"","sources":["../../../../src/models/components/borrowabletoken.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"borrowabletoken.d.ts","sourceRoot":"","sources":["../../../../src/models/components/borrowabletoken.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,CAYP,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD"}
|
|
@@ -45,8 +45,9 @@ const schemas_js_1 = require("../../lib/schemas.js");
|
|
|
45
45
|
exports.BorrowableToken$inboundSchema = z.object({
|
|
46
46
|
token: z.string(),
|
|
47
47
|
symbol: z.string(),
|
|
48
|
+
vault: z.nullable(z.string()).optional(),
|
|
48
49
|
max_borrowable_amount: z.string(),
|
|
49
|
-
borrow_apy: z.string(),
|
|
50
|
+
borrow_apy: z.nullable(z.string()).optional(),
|
|
50
51
|
}).transform((v) => {
|
|
51
52
|
return (0, primitives_js_1.remap)(v, {
|
|
52
53
|
"max_borrowable_amount": "maxBorrowableAmount",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"borrowabletoken.js","sourceRoot":"","sources":["../../../../src/models/components/borrowabletoken.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"borrowabletoken.js","sourceRoot":"","sources":["../../../../src/models/components/borrowabletoken.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoDH,0DAQC;AA1DD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AA8BjD,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE;IACjC,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,uBAAuB,EAAE,qBAAqB;QAC9C,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,uBAAuB,CACrC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC"}
|
|
@@ -31,6 +31,10 @@ export type CreditPositionsResponse = {
|
|
|
31
31
|
* Euler account-level summary (health factor, LTV, etc.), present only when the account holds Euler positions. Null for Aave-only accounts.
|
|
32
32
|
*/
|
|
33
33
|
eulerAccountSummary?: AccountSummary | null | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Euler-only: additional borrowable amounts given the account's current Euler controller (i.e. borrow more of the controller's asset). Empty for accounts with no Euler borrow position — use /credit/euler_markets to discover a new market to borrow from.
|
|
36
|
+
*/
|
|
37
|
+
eulerBorrowableTokens?: Array<BorrowableToken> | undefined;
|
|
34
38
|
/**
|
|
35
39
|
* All tokens available for borrowing with max amounts based on current collateral.
|
|
36
40
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditpositionsresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditpositionsresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,eAAe,EAEhB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,kBAAkB,EAEnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,YAAY,EAA8B,MAAM,mBAAmB,CAAC;AAE7E;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,mBAAmB,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC;IAC5D;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;IAChD;;;;;;;;OAQG;IACH,cAAc,EAAE,cAAc,CAAC;IAC/B;;OAEG;IACH,mBAAmB,CAAC,EAAE,cAAc,GAAG,IAAI,GAAG,SAAS,CAAC;IACxD;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC;IACtD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC3C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,OAAO,
|
|
1
|
+
{"version":3,"file":"creditpositionsresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditpositionsresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,eAAe,EAEhB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,kBAAkB,EAEnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,YAAY,EAA8B,MAAM,mBAAmB,CAAC;AAE7E;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,mBAAmB,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC;IAC5D;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;IAChD;;;;;;;;OAQG;IACH,cAAc,EAAE,cAAc,CAAC;IAC/B;;OAEG;IACH,mBAAmB,CAAC,EAAE,cAAc,GAAG,IAAI,GAAG,SAAS,CAAC;IACxD;;OAEG;IACH,qBAAqB,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC;IAC3D;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC;IACtD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC3C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,OAAO,CAmBP,CAAC;AAEH,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAM9D"}
|
|
@@ -51,6 +51,7 @@ exports.CreditPositionsResponse$inboundSchema = z.object({
|
|
|
51
51
|
debt_positions: z.array(debtposition_js_1.DebtPosition$inboundSchema).optional(),
|
|
52
52
|
account_summary: accountsummary_js_1.AccountSummary$inboundSchema,
|
|
53
53
|
euler_account_summary: z.nullable(accountsummary_js_1.AccountSummary$inboundSchema).optional(),
|
|
54
|
+
euler_borrowable_tokens: z.array(borrowabletoken_js_1.BorrowableToken$inboundSchema).optional(),
|
|
54
55
|
borrowable_tokens: z.array(borrowabletoken_js_1.BorrowableToken$inboundSchema).optional(),
|
|
55
56
|
total_usd_value: z.nullable(z.string()).optional(),
|
|
56
57
|
}).transform((v) => {
|
|
@@ -59,6 +60,7 @@ exports.CreditPositionsResponse$inboundSchema = z.object({
|
|
|
59
60
|
"debt_positions": "debtPositions",
|
|
60
61
|
"account_summary": "accountSummary",
|
|
61
62
|
"euler_account_summary": "eulerAccountSummary",
|
|
63
|
+
"euler_borrowable_tokens": "eulerBorrowableTokens",
|
|
62
64
|
"borrowable_tokens": "borrowableTokens",
|
|
63
65
|
"total_usd_value": "totalUsdValue",
|
|
64
66
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditpositionsresponse.js","sourceRoot":"","sources":["../../../../src/models/components/creditpositionsresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"creditpositionsresponse.js","sourceRoot":"","sources":["../../../../src/models/components/creditpositionsresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsFH,0EAQC;AA5FD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAGjD,2DAG6B;AAC7B,6DAG8B;AAC9B,mEAGiC;AACjC,uDAA6E;AA0C7E,gBAAgB;AACH,QAAA,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,oBAAoB,EAAE,CAAC,CAAC,KAAK,CAAC,wDAAgC,CAAC,CAAC,QAAQ,EAAE;IAC1E,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,4CAA0B,CAAC,CAAC,QAAQ,EAAE;IAC9D,eAAe,EAAE,gDAA4B;IAC7C,qBAAqB,EAAE,CAAC,CAAC,QAAQ,CAAC,gDAA4B,CAAC,CAAC,QAAQ,EAAE;IAC1E,uBAAuB,EAAE,CAAC,CAAC,KAAK,CAAC,kDAA6B,CAAC,CAAC,QAAQ,EAAE;IAC1E,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,kDAA6B,CAAC,CAAC,QAAQ,EAAE;IACpE,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACnD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,sBAAsB,EAAE,qBAAqB;QAC7C,gBAAgB,EAAE,eAAe;QACjC,iBAAiB,EAAE,gBAAgB;QACnC,uBAAuB,EAAE,qBAAqB;QAC9C,yBAAyB,EAAE,uBAAuB;QAClD,mBAAmB,EAAE,kBAAkB;QACvC,iBAAiB,EAAE,eAAe;KACnC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,+BAA+B,CAC7C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6CAAqC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjE,qDAAqD,CACtD,CAAC;AACJ,CAAC"}
|
|
@@ -26,6 +26,14 @@ export type EulerMarket = {
|
|
|
26
26
|
* Decimals of the borrowable asset.
|
|
27
27
|
*/
|
|
28
28
|
assetDecimals: number;
|
|
29
|
+
/**
|
|
30
|
+
* Current borrow APY for this market (cost to borrow the asset), in percentage (e.g. 5.25 means 5.25%). Null if the rate is unavailable.
|
|
31
|
+
*/
|
|
32
|
+
borrowApy?: string | null | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Current supply APY for this market (yield for supplying the asset), in percentage (e.g. 3.45 means 3.45%). Null if the rate is unavailable.
|
|
35
|
+
*/
|
|
36
|
+
supplyApy?: string | null | undefined;
|
|
29
37
|
/**
|
|
30
38
|
* Collateral vaults this market accepts (those currently borrowable, LTV > 0), each with its LTVs.
|
|
31
39
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eulermarket.d.ts","sourceRoot":"","sources":["../../../../src/models/components/eulermarket.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,qBAAqB,EAEtB,MAAM,4BAA4B,CAAC;AAEpC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,GAAG,SAAS,CAAC;CACxD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAC/C,WAAW,EACX,CAAC,CAAC,UAAU,EACZ,OAAO,
|
|
1
|
+
{"version":3,"file":"eulermarket.d.ts","sourceRoot":"","sources":["../../../../src/models/components/eulermarket.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,qBAAqB,EAEtB,MAAM,4BAA4B,CAAC;AAEpC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,GAAG,SAAS,CAAC;CACxD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAC/C,WAAW,EACX,CAAC,CAAC,UAAU,EACZ,OAAO,CAkBP,CAAC;AAEH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAMlD"}
|
|
@@ -49,12 +49,16 @@ exports.EulerMarket$inboundSchema = z.object({
|
|
|
49
49
|
asset: z.string(),
|
|
50
50
|
asset_symbol: z.string(),
|
|
51
51
|
asset_decimals: z.number().int(),
|
|
52
|
+
borrow_apy: z.nullable(z.string()).optional(),
|
|
53
|
+
supply_apy: z.nullable(z.string()).optional(),
|
|
52
54
|
collaterals: z.array(eulermarketcollateral_js_1.EulerMarketCollateral$inboundSchema).optional(),
|
|
53
55
|
}).transform((v) => {
|
|
54
56
|
return (0, primitives_js_1.remap)(v, {
|
|
55
57
|
"vault_symbol": "vaultSymbol",
|
|
56
58
|
"asset_symbol": "assetSymbol",
|
|
57
59
|
"asset_decimals": "assetDecimals",
|
|
60
|
+
"borrow_apy": "borrowApy",
|
|
61
|
+
"supply_apy": "supplyApy",
|
|
58
62
|
});
|
|
59
63
|
});
|
|
60
64
|
function eulerMarketFromJSON(jsonString) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eulermarket.js","sourceRoot":"","sources":["../../../../src/models/components/eulermarket.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"eulermarket.js","sourceRoot":"","sources":["../../../../src/models/components/eulermarket.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0EH,kDAQC;AAhFD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAGjD,yEAGoC;AAwCpC,gBAAgB;AACH,QAAA,yBAAyB,GAIlC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAChC,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC7C,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC7C,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,8DAAmC,CAAC,CAAC,QAAQ,EAAE;CACrE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,aAAa;QAC7B,cAAc,EAAE,aAAa;QAC7B,gBAAgB,EAAE,eAAe;QACjC,YAAY,EAAE,WAAW;QACzB,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,mBAAmB,CACjC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iCAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrD,yCAAyC,CAC1C,CAAC;AACJ,CAAC"}
|
|
@@ -25,6 +25,10 @@ export type EulerMarketCollateral = {
|
|
|
25
25
|
* Loan-to-value at which this collateral is liquidated, in percentage (e.g. 96 means 96%).
|
|
26
26
|
*/
|
|
27
27
|
liquidationLtv: string;
|
|
28
|
+
/**
|
|
29
|
+
* Current supply APY earned on this collateral while it backs a loan, in percentage (e.g. 3.5 means 3.5%). Null if the rate is unavailable.
|
|
30
|
+
*/
|
|
31
|
+
supplyApy?: string | null | undefined;
|
|
28
32
|
};
|
|
29
33
|
/** @internal */
|
|
30
34
|
export declare const EulerMarketCollateral$inboundSchema: z.ZodType<EulerMarketCollateral, z.ZodTypeDef, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eulermarketcollateral.d.ts","sourceRoot":"","sources":["../../../../src/models/components/eulermarketcollateral.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"eulermarketcollateral.d.ts","sourceRoot":"","sources":["../../../../src/models/components/eulermarketcollateral.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,OAAO,CAeP,CAAC;AAEH,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
|
|
@@ -48,11 +48,13 @@ exports.EulerMarketCollateral$inboundSchema = z.object({
|
|
|
48
48
|
asset_symbol: z.string(),
|
|
49
49
|
borrow_ltv: z.string(),
|
|
50
50
|
liquidation_ltv: z.string(),
|
|
51
|
+
supply_apy: z.nullable(z.string()).optional(),
|
|
51
52
|
}).transform((v) => {
|
|
52
53
|
return (0, primitives_js_1.remap)(v, {
|
|
53
54
|
"asset_symbol": "assetSymbol",
|
|
54
55
|
"borrow_ltv": "borrowLtv",
|
|
55
56
|
"liquidation_ltv": "liquidationLtv",
|
|
57
|
+
"supply_apy": "supplyApy",
|
|
56
58
|
});
|
|
57
59
|
});
|
|
58
60
|
function eulerMarketCollateralFromJSON(jsonString) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eulermarketcollateral.js","sourceRoot":"","sources":["../../../../src/models/components/eulermarketcollateral.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"eulermarketcollateral.js","sourceRoot":"","sources":["../../../../src/models/components/eulermarketcollateral.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DH,sEAQC;AAjED,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAkCjD,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,aAAa;QAC7B,YAAY,EAAE,WAAW;QACzB,iBAAiB,EAAE,gBAAgB;QACnC,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2CAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
|
package/dist/esm/lib/config.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export declare const SDK_METADATA: {
|
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "0.0.1";
|
|
34
34
|
readonly sdkVersion: "2.0.0";
|
|
35
|
-
readonly genVersion: "2.
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 2.0.0 2.
|
|
35
|
+
readonly genVersion: "2.913.3";
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 2.0.0 2.913.3 0.0.1 @compass-labs/api-sdk";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/esm/lib/config.js
CHANGED
|
@@ -28,7 +28,7 @@ export const SDK_METADATA = {
|
|
|
28
28
|
language: "typescript",
|
|
29
29
|
openapiDocVersion: "0.0.1",
|
|
30
30
|
sdkVersion: "2.0.0",
|
|
31
|
-
genVersion: "2.
|
|
32
|
-
userAgent: "speakeasy-sdk/typescript 2.0.0 2.
|
|
31
|
+
genVersion: "2.913.3",
|
|
32
|
+
userAgent: "speakeasy-sdk/typescript 2.0.0 2.913.3 0.0.1 @compass-labs/api-sdk",
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.js.map
|
|
@@ -13,14 +13,18 @@ export type BorrowableToken = {
|
|
|
13
13
|
* Symbol of the borrowable token (e.g. WETH).
|
|
14
14
|
*/
|
|
15
15
|
symbol: string;
|
|
16
|
+
/**
|
|
17
|
+
* Euler only: the EVK borrow vault to borrow this token from (pass as borrow_vault).
|
|
18
|
+
*/
|
|
19
|
+
vault?: string | null | undefined;
|
|
16
20
|
/**
|
|
17
21
|
* Maximum amount that can be borrowed based on available borrow capacity and token price.
|
|
18
22
|
*/
|
|
19
23
|
maxBorrowableAmount: string;
|
|
20
24
|
/**
|
|
21
|
-
* Current variable borrow APY in percentage (e.g. 4.5 means 4.5%).
|
|
25
|
+
* Current variable borrow APY in percentage (e.g. 4.5 means 4.5%). Null if the rate is unavailable.
|
|
22
26
|
*/
|
|
23
|
-
borrowApy
|
|
27
|
+
borrowApy?: string | null | undefined;
|
|
24
28
|
};
|
|
25
29
|
/** @internal */
|
|
26
30
|
export declare const BorrowableToken$inboundSchema: z.ZodType<BorrowableToken, z.ZodTypeDef, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"borrowabletoken.d.ts","sourceRoot":"","sources":["../../../../src/models/components/borrowabletoken.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"borrowabletoken.d.ts","sourceRoot":"","sources":["../../../../src/models/components/borrowabletoken.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,CAYP,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD"}
|
|
@@ -8,8 +8,9 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
export const BorrowableToken$inboundSchema = z.object({
|
|
9
9
|
token: z.string(),
|
|
10
10
|
symbol: z.string(),
|
|
11
|
+
vault: z.nullable(z.string()).optional(),
|
|
11
12
|
max_borrowable_amount: z.string(),
|
|
12
|
-
borrow_apy: z.string(),
|
|
13
|
+
borrow_apy: z.nullable(z.string()).optional(),
|
|
13
14
|
}).transform((v) => {
|
|
14
15
|
return remap$(v, {
|
|
15
16
|
"max_borrowable_amount": "maxBorrowableAmount",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"borrowabletoken.js","sourceRoot":"","sources":["../../../../src/models/components/borrowabletoken.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"borrowabletoken.js","sourceRoot":"","sources":["../../../../src/models/components/borrowabletoken.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AA8BjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE;IACjC,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,uBAAuB,EAAE,qBAAqB;QAC9C,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,uBAAuB,CACrC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6BAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC"}
|
|
@@ -31,6 +31,10 @@ export type CreditPositionsResponse = {
|
|
|
31
31
|
* Euler account-level summary (health factor, LTV, etc.), present only when the account holds Euler positions. Null for Aave-only accounts.
|
|
32
32
|
*/
|
|
33
33
|
eulerAccountSummary?: AccountSummary | null | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Euler-only: additional borrowable amounts given the account's current Euler controller (i.e. borrow more of the controller's asset). Empty for accounts with no Euler borrow position — use /credit/euler_markets to discover a new market to borrow from.
|
|
36
|
+
*/
|
|
37
|
+
eulerBorrowableTokens?: Array<BorrowableToken> | undefined;
|
|
34
38
|
/**
|
|
35
39
|
* All tokens available for borrowing with max amounts based on current collateral.
|
|
36
40
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditpositionsresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditpositionsresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,eAAe,EAEhB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,kBAAkB,EAEnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,YAAY,EAA8B,MAAM,mBAAmB,CAAC;AAE7E;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,mBAAmB,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC;IAC5D;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;IAChD;;;;;;;;OAQG;IACH,cAAc,EAAE,cAAc,CAAC;IAC/B;;OAEG;IACH,mBAAmB,CAAC,EAAE,cAAc,GAAG,IAAI,GAAG,SAAS,CAAC;IACxD;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC;IACtD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC3C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,OAAO,
|
|
1
|
+
{"version":3,"file":"creditpositionsresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditpositionsresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,eAAe,EAEhB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,kBAAkB,EAEnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,YAAY,EAA8B,MAAM,mBAAmB,CAAC;AAE7E;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,mBAAmB,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC;IAC5D;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;IAChD;;;;;;;;OAQG;IACH,cAAc,EAAE,cAAc,CAAC;IAC/B;;OAEG;IACH,mBAAmB,CAAC,EAAE,cAAc,GAAG,IAAI,GAAG,SAAS,CAAC;IACxD;;OAEG;IACH,qBAAqB,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC;IAC3D;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC;IACtD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC3C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,OAAO,CAmBP,CAAC;AAEH,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAM9D"}
|
|
@@ -14,6 +14,7 @@ export const CreditPositionsResponse$inboundSchema = z.object({
|
|
|
14
14
|
debt_positions: z.array(DebtPosition$inboundSchema).optional(),
|
|
15
15
|
account_summary: AccountSummary$inboundSchema,
|
|
16
16
|
euler_account_summary: z.nullable(AccountSummary$inboundSchema).optional(),
|
|
17
|
+
euler_borrowable_tokens: z.array(BorrowableToken$inboundSchema).optional(),
|
|
17
18
|
borrowable_tokens: z.array(BorrowableToken$inboundSchema).optional(),
|
|
18
19
|
total_usd_value: z.nullable(z.string()).optional(),
|
|
19
20
|
}).transform((v) => {
|
|
@@ -22,6 +23,7 @@ export const CreditPositionsResponse$inboundSchema = z.object({
|
|
|
22
23
|
"debt_positions": "debtPositions",
|
|
23
24
|
"account_summary": "accountSummary",
|
|
24
25
|
"euler_account_summary": "eulerAccountSummary",
|
|
26
|
+
"euler_borrowable_tokens": "eulerBorrowableTokens",
|
|
25
27
|
"borrowable_tokens": "borrowableTokens",
|
|
26
28
|
"total_usd_value": "totalUsdValue",
|
|
27
29
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditpositionsresponse.js","sourceRoot":"","sources":["../../../../src/models/components/creditpositionsresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,4BAA4B,GAC7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,6BAA6B,GAC9B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,gCAAgC,GACjC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAgB,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"creditpositionsresponse.js","sourceRoot":"","sources":["../../../../src/models/components/creditpositionsresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,4BAA4B,GAC7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,6BAA6B,GAC9B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,gCAAgC,GACjC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAgB,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AA0C7E,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,oBAAoB,EAAE,CAAC,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAC,QAAQ,EAAE;IAC1E,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC,QAAQ,EAAE;IAC9D,eAAe,EAAE,4BAA4B;IAC7C,qBAAqB,EAAE,CAAC,CAAC,QAAQ,CAAC,4BAA4B,CAAC,CAAC,QAAQ,EAAE;IAC1E,uBAAuB,EAAE,CAAC,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC,QAAQ,EAAE;IAC1E,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC,QAAQ,EAAE;IACpE,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACnD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,sBAAsB,EAAE,qBAAqB;QAC7C,gBAAgB,EAAE,eAAe;QACjC,iBAAiB,EAAE,gBAAgB;QACnC,uBAAuB,EAAE,qBAAqB;QAC9C,yBAAyB,EAAE,uBAAuB;QAClD,mBAAmB,EAAE,kBAAkB;QACvC,iBAAiB,EAAE,eAAe;KACnC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,+BAA+B,CAC7C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAAqC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjE,qDAAqD,CACtD,CAAC;AACJ,CAAC"}
|
|
@@ -26,6 +26,14 @@ export type EulerMarket = {
|
|
|
26
26
|
* Decimals of the borrowable asset.
|
|
27
27
|
*/
|
|
28
28
|
assetDecimals: number;
|
|
29
|
+
/**
|
|
30
|
+
* Current borrow APY for this market (cost to borrow the asset), in percentage (e.g. 5.25 means 5.25%). Null if the rate is unavailable.
|
|
31
|
+
*/
|
|
32
|
+
borrowApy?: string | null | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Current supply APY for this market (yield for supplying the asset), in percentage (e.g. 3.45 means 3.45%). Null if the rate is unavailable.
|
|
35
|
+
*/
|
|
36
|
+
supplyApy?: string | null | undefined;
|
|
29
37
|
/**
|
|
30
38
|
* Collateral vaults this market accepts (those currently borrowable, LTV > 0), each with its LTVs.
|
|
31
39
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eulermarket.d.ts","sourceRoot":"","sources":["../../../../src/models/components/eulermarket.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,qBAAqB,EAEtB,MAAM,4BAA4B,CAAC;AAEpC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,GAAG,SAAS,CAAC;CACxD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAC/C,WAAW,EACX,CAAC,CAAC,UAAU,EACZ,OAAO,
|
|
1
|
+
{"version":3,"file":"eulermarket.d.ts","sourceRoot":"","sources":["../../../../src/models/components/eulermarket.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,qBAAqB,EAEtB,MAAM,4BAA4B,CAAC;AAEpC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,GAAG,SAAS,CAAC;CACxD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAC/C,WAAW,EACX,CAAC,CAAC,UAAU,EACZ,OAAO,CAkBP,CAAC;AAEH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAMlD"}
|
|
@@ -12,12 +12,16 @@ export const EulerMarket$inboundSchema = z.object({
|
|
|
12
12
|
asset: z.string(),
|
|
13
13
|
asset_symbol: z.string(),
|
|
14
14
|
asset_decimals: z.number().int(),
|
|
15
|
+
borrow_apy: z.nullable(z.string()).optional(),
|
|
16
|
+
supply_apy: z.nullable(z.string()).optional(),
|
|
15
17
|
collaterals: z.array(EulerMarketCollateral$inboundSchema).optional(),
|
|
16
18
|
}).transform((v) => {
|
|
17
19
|
return remap$(v, {
|
|
18
20
|
"vault_symbol": "vaultSymbol",
|
|
19
21
|
"asset_symbol": "assetSymbol",
|
|
20
22
|
"asset_decimals": "assetDecimals",
|
|
23
|
+
"borrow_apy": "borrowApy",
|
|
24
|
+
"supply_apy": "supplyApy",
|
|
21
25
|
});
|
|
22
26
|
});
|
|
23
27
|
export function eulerMarketFromJSON(jsonString) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eulermarket.js","sourceRoot":"","sources":["../../../../src/models/components/eulermarket.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,mCAAmC,GACpC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"eulermarket.js","sourceRoot":"","sources":["../../../../src/models/components/eulermarket.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,mCAAmC,GACpC,MAAM,4BAA4B,CAAC;AAwCpC,gBAAgB;AAChB,MAAM,CAAC,MAAM,yBAAyB,GAIlC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAChC,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC7C,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC7C,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,mCAAmC,CAAC,CAAC,QAAQ,EAAE;CACrE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,cAAc,EAAE,aAAa;QAC7B,cAAc,EAAE,aAAa;QAC7B,gBAAgB,EAAE,eAAe;QACjC,YAAY,EAAE,WAAW;QACzB,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,mBAAmB,CACjC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yBAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrD,yCAAyC,CAC1C,CAAC;AACJ,CAAC"}
|
|
@@ -25,6 +25,10 @@ export type EulerMarketCollateral = {
|
|
|
25
25
|
* Loan-to-value at which this collateral is liquidated, in percentage (e.g. 96 means 96%).
|
|
26
26
|
*/
|
|
27
27
|
liquidationLtv: string;
|
|
28
|
+
/**
|
|
29
|
+
* Current supply APY earned on this collateral while it backs a loan, in percentage (e.g. 3.5 means 3.5%). Null if the rate is unavailable.
|
|
30
|
+
*/
|
|
31
|
+
supplyApy?: string | null | undefined;
|
|
28
32
|
};
|
|
29
33
|
/** @internal */
|
|
30
34
|
export declare const EulerMarketCollateral$inboundSchema: z.ZodType<EulerMarketCollateral, z.ZodTypeDef, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eulermarketcollateral.d.ts","sourceRoot":"","sources":["../../../../src/models/components/eulermarketcollateral.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"eulermarketcollateral.d.ts","sourceRoot":"","sources":["../../../../src/models/components/eulermarketcollateral.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,OAAO,CAeP,CAAC;AAEH,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
|
|
@@ -11,11 +11,13 @@ export const EulerMarketCollateral$inboundSchema = z.object({
|
|
|
11
11
|
asset_symbol: z.string(),
|
|
12
12
|
borrow_ltv: z.string(),
|
|
13
13
|
liquidation_ltv: z.string(),
|
|
14
|
+
supply_apy: z.nullable(z.string()).optional(),
|
|
14
15
|
}).transform((v) => {
|
|
15
16
|
return remap$(v, {
|
|
16
17
|
"asset_symbol": "assetSymbol",
|
|
17
18
|
"borrow_ltv": "borrowLtv",
|
|
18
19
|
"liquidation_ltv": "liquidationLtv",
|
|
20
|
+
"supply_apy": "supplyApy",
|
|
19
21
|
});
|
|
20
22
|
});
|
|
21
23
|
export function eulerMarketCollateralFromJSON(jsonString) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eulermarketcollateral.js","sourceRoot":"","sources":["../../../../src/models/components/eulermarketcollateral.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"eulermarketcollateral.js","sourceRoot":"","sources":["../../../../src/models/components/eulermarketcollateral.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAkCjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,cAAc,EAAE,aAAa;QAC7B,YAAY,EAAE,WAAW;QACzB,iBAAiB,EAAE,gBAAgB;QACnC,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
|
|
@@ -11,15 +11,15 @@ let value: BorrowableToken = {
|
|
|
11
11
|
token: "<value>",
|
|
12
12
|
symbol: "<value>",
|
|
13
13
|
maxBorrowableAmount: "<value>",
|
|
14
|
-
borrowApy: "<value>",
|
|
15
14
|
};
|
|
16
15
|
```
|
|
17
16
|
|
|
18
17
|
## Fields
|
|
19
18
|
|
|
20
|
-
| Field
|
|
21
|
-
|
|
|
22
|
-
| `token`
|
|
23
|
-
| `symbol`
|
|
24
|
-
| `
|
|
25
|
-
| `
|
|
19
|
+
| Field | Type | Required | Description |
|
|
20
|
+
| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
|
|
21
|
+
| `token` | *string* | :heavy_check_mark: | Address of the borrowable token. |
|
|
22
|
+
| `symbol` | *string* | :heavy_check_mark: | Symbol of the borrowable token (e.g. WETH). |
|
|
23
|
+
| `vault` | *string* | :heavy_minus_sign: | Euler only: the EVK borrow vault to borrow this token from (pass as borrow_vault). |
|
|
24
|
+
| `maxBorrowableAmount` | *string* | :heavy_check_mark: | Maximum amount that can be borrowed based on available borrow capacity and token price. |
|
|
25
|
+
| `borrowApy` | *string* | :heavy_minus_sign: | Current variable borrow APY in percentage (e.g. 4.5 means 4.5%). Null if the rate is unavailable. |
|
|
@@ -26,17 +26,19 @@ let value: CreditPositionsResponse = {
|
|
|
26
26
|
ltv: "<value>",
|
|
27
27
|
emodeCategoryId: 0,
|
|
28
28
|
},
|
|
29
|
+
eulerBorrowableTokens: [],
|
|
29
30
|
borrowableTokens: [],
|
|
30
31
|
};
|
|
31
32
|
```
|
|
32
33
|
|
|
33
34
|
## Fields
|
|
34
35
|
|
|
35
|
-
| Field
|
|
36
|
-
|
|
|
37
|
-
| `collateralPositions`
|
|
38
|
-
| `debtPositions`
|
|
39
|
-
| `accountSummary`
|
|
40
|
-
| `eulerAccountSummary`
|
|
41
|
-
| `
|
|
42
|
-
| `
|
|
36
|
+
| Field | Type | Required | Description | Example |
|
|
37
|
+
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
38
|
+
| `collateralPositions` | [components.CollateralPosition](../../models/components/collateralposition.md)[] | :heavy_minus_sign: | All collateral positions, one per reserve. | [] |
|
|
39
|
+
| `debtPositions` | [components.DebtPosition](../../models/components/debtposition.md)[] | :heavy_minus_sign: | All debt positions, one per reserve. | [] |
|
|
40
|
+
| `accountSummary` | [components.AccountSummary](../../models/components/accountsummary.md) | :heavy_check_mark: | Account-level summary for one lending protocol.<br/><br/>Populated from Aave ``getUserAccountData()`` or, for Euler, from the<br/>controller vault's risk engine (``accountLiquidity``). The E-Mode fields are<br/>Aave-only and stay at their defaults for Euler. | |
|
|
41
|
+
| `eulerAccountSummary` | [components.AccountSummary](../../models/components/accountsummary.md) | :heavy_minus_sign: | Euler account-level summary (health factor, LTV, etc.), present only when the account holds Euler positions. Null for Aave-only accounts. | |
|
|
42
|
+
| `eulerBorrowableTokens` | [components.BorrowableToken](../../models/components/borrowabletoken.md)[] | :heavy_minus_sign: | Euler-only: additional borrowable amounts given the account's current Euler controller (i.e. borrow more of the controller's asset). Empty for accounts with no Euler borrow position — use /credit/euler_markets to discover a new market to borrow from. | [] |
|
|
43
|
+
| `borrowableTokens` | [components.BorrowableToken](../../models/components/borrowabletoken.md)[] | :heavy_minus_sign: | All tokens available for borrowing with max amounts based on current collateral. | [] |
|
|
44
|
+
| `totalUsdValue` | *string* | :heavy_minus_sign: | Net position value in USD (total collateral - total debt). Null if prices unavailable. | |
|
|
@@ -19,11 +19,13 @@ let value: EulerMarket = {
|
|
|
19
19
|
|
|
20
20
|
## Fields
|
|
21
21
|
|
|
22
|
-
| Field
|
|
23
|
-
|
|
|
24
|
-
| `vault`
|
|
25
|
-
| `vaultSymbol`
|
|
26
|
-
| `asset`
|
|
27
|
-
| `assetSymbol`
|
|
28
|
-
| `assetDecimals`
|
|
29
|
-
| `
|
|
22
|
+
| Field | Type | Required | Description | Example |
|
|
23
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
24
|
+
| `vault` | *string* | :heavy_check_mark: | EVK vault to borrow from (pass as borrow_vault when borrowing). | |
|
|
25
|
+
| `vaultSymbol` | *string* | :heavy_check_mark: | Symbol of the EVK vault (e.g. eUSDT-2). | |
|
|
26
|
+
| `asset` | *string* | :heavy_check_mark: | Underlying asset this market lends and borrows. | |
|
|
27
|
+
| `assetSymbol` | *string* | :heavy_check_mark: | Symbol of the borrowable asset (e.g. USDT). | |
|
|
28
|
+
| `assetDecimals` | *number* | :heavy_check_mark: | Decimals of the borrowable asset. | |
|
|
29
|
+
| `borrowApy` | *string* | :heavy_minus_sign: | Current borrow APY for this market (cost to borrow the asset), in percentage (e.g. 5.25 means 5.25%). Null if the rate is unavailable. | |
|
|
30
|
+
| `supplyApy` | *string* | :heavy_minus_sign: | Current supply APY for this market (yield for supplying the asset), in percentage (e.g. 3.45 means 3.45%). Null if the rate is unavailable. | |
|
|
31
|
+
| `collaterals` | [components.EulerMarketCollateral](../../models/components/eulermarketcollateral.md)[] | :heavy_minus_sign: | Collateral vaults this market accepts (those currently borrowable, LTV > 0), each with its LTVs. | [] |
|
|
@@ -18,10 +18,11 @@ let value: EulerMarketCollateral = {
|
|
|
18
18
|
|
|
19
19
|
## Fields
|
|
20
20
|
|
|
21
|
-
| Field
|
|
22
|
-
|
|
|
23
|
-
| `vault`
|
|
24
|
-
| `asset`
|
|
25
|
-
| `assetSymbol`
|
|
26
|
-
| `borrowLtv`
|
|
27
|
-
| `liquidationLtv`
|
|
21
|
+
| Field | Type | Required | Description |
|
|
22
|
+
| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
|
|
23
|
+
| `vault` | *string* | :heavy_check_mark: | EVK collateral vault to supply into (pass as collateral_vault when borrowing). |
|
|
24
|
+
| `asset` | *string* | :heavy_check_mark: | Underlying asset of the collateral vault. |
|
|
25
|
+
| `assetSymbol` | *string* | :heavy_check_mark: | Symbol of the collateral's underlying asset (e.g. USDC). |
|
|
26
|
+
| `borrowLtv` | *string* | :heavy_check_mark: | Maximum loan-to-value when borrowing against this collateral, in percentage (e.g. 94 means 94%). |
|
|
27
|
+
| `liquidationLtv` | *string* | :heavy_check_mark: | Loan-to-value at which this collateral is liquidated, in percentage (e.g. 96 means 96%). |
|
|
28
|
+
| `supplyApy` | *string* | :heavy_minus_sign: | Current supply APY earned on this collateral while it backs a loan, in percentage (e.g. 3.5 means 3.5%). Null if the rate is unavailable. |
|
|
@@ -11313,15 +11313,34 @@
|
|
|
11313
11313
|
"title": "Symbol",
|
|
11314
11314
|
"description": "Symbol of the borrowable token (e.g. WETH)."
|
|
11315
11315
|
},
|
|
11316
|
+
"vault": {
|
|
11317
|
+
"anyOf": [
|
|
11318
|
+
{
|
|
11319
|
+
"type": "string"
|
|
11320
|
+
},
|
|
11321
|
+
{
|
|
11322
|
+
"type": "null"
|
|
11323
|
+
}
|
|
11324
|
+
],
|
|
11325
|
+
"title": "Vault",
|
|
11326
|
+
"description": "Euler only: the EVK borrow vault to borrow this token from (pass as borrow_vault)."
|
|
11327
|
+
},
|
|
11316
11328
|
"max_borrowable_amount": {
|
|
11317
11329
|
"type": "string",
|
|
11318
11330
|
"title": "Max Borrowable Amount",
|
|
11319
11331
|
"description": "Maximum amount that can be borrowed based on available borrow capacity and token price."
|
|
11320
11332
|
},
|
|
11321
11333
|
"borrow_apy": {
|
|
11322
|
-
"
|
|
11334
|
+
"anyOf": [
|
|
11335
|
+
{
|
|
11336
|
+
"type": "string"
|
|
11337
|
+
},
|
|
11338
|
+
{
|
|
11339
|
+
"type": "null"
|
|
11340
|
+
}
|
|
11341
|
+
],
|
|
11323
11342
|
"title": "Borrow Apy",
|
|
11324
|
-
"description": "Current variable borrow APY in percentage (e.g. 4.5 means 4.5%)."
|
|
11343
|
+
"description": "Current variable borrow APY in percentage (e.g. 4.5 means 4.5%). Null if the rate is unavailable."
|
|
11325
11344
|
}
|
|
11326
11345
|
},
|
|
11327
11346
|
"additionalProperties": false,
|
|
@@ -11329,8 +11348,7 @@
|
|
|
11329
11348
|
"required": [
|
|
11330
11349
|
"token",
|
|
11331
11350
|
"symbol",
|
|
11332
|
-
"max_borrowable_amount"
|
|
11333
|
-
"borrow_apy"
|
|
11351
|
+
"max_borrowable_amount"
|
|
11334
11352
|
],
|
|
11335
11353
|
"title": "BorrowableToken",
|
|
11336
11354
|
"description": "A token available for borrowing with the maximum borrowable amount."
|
|
@@ -12530,6 +12548,15 @@
|
|
|
12530
12548
|
],
|
|
12531
12549
|
"description": "Euler account-level summary (health factor, LTV, etc.), present only when the account holds Euler positions. Null for Aave-only accounts."
|
|
12532
12550
|
},
|
|
12551
|
+
"euler_borrowable_tokens": {
|
|
12552
|
+
"items": {
|
|
12553
|
+
"$ref": "#/components/schemas/BorrowableToken"
|
|
12554
|
+
},
|
|
12555
|
+
"type": "array",
|
|
12556
|
+
"title": "Euler Borrowable Tokens",
|
|
12557
|
+
"description": "Euler-only: additional borrowable amounts given the account's current Euler controller (i.e. borrow more of the controller's asset). Empty for accounts with no Euler borrow position \u2014 use /credit/euler_markets to discover a new market to borrow from.",
|
|
12558
|
+
"example": []
|
|
12559
|
+
},
|
|
12533
12560
|
"borrowable_tokens": {
|
|
12534
12561
|
"items": {
|
|
12535
12562
|
"$ref": "#/components/schemas/BorrowableToken"
|
|
@@ -14873,6 +14900,30 @@
|
|
|
14873
14900
|
"title": "Asset Decimals",
|
|
14874
14901
|
"description": "Decimals of the borrowable asset."
|
|
14875
14902
|
},
|
|
14903
|
+
"borrow_apy": {
|
|
14904
|
+
"anyOf": [
|
|
14905
|
+
{
|
|
14906
|
+
"type": "string"
|
|
14907
|
+
},
|
|
14908
|
+
{
|
|
14909
|
+
"type": "null"
|
|
14910
|
+
}
|
|
14911
|
+
],
|
|
14912
|
+
"title": "Borrow Apy",
|
|
14913
|
+
"description": "Current borrow APY for this market (cost to borrow the asset), in percentage (e.g. 5.25 means 5.25%). Null if the rate is unavailable."
|
|
14914
|
+
},
|
|
14915
|
+
"supply_apy": {
|
|
14916
|
+
"anyOf": [
|
|
14917
|
+
{
|
|
14918
|
+
"type": "string"
|
|
14919
|
+
},
|
|
14920
|
+
{
|
|
14921
|
+
"type": "null"
|
|
14922
|
+
}
|
|
14923
|
+
],
|
|
14924
|
+
"title": "Supply Apy",
|
|
14925
|
+
"description": "Current supply APY for this market (yield for supplying the asset), in percentage (e.g. 3.45 means 3.45%). Null if the rate is unavailable."
|
|
14926
|
+
},
|
|
14876
14927
|
"collaterals": {
|
|
14877
14928
|
"items": {
|
|
14878
14929
|
"$ref": "#/components/schemas/EulerMarketCollateral"
|
|
@@ -14921,6 +14972,18 @@
|
|
|
14921
14972
|
"type": "string",
|
|
14922
14973
|
"title": "Liquidation Ltv",
|
|
14923
14974
|
"description": "Loan-to-value at which this collateral is liquidated, in percentage (e.g. 96 means 96%)."
|
|
14975
|
+
},
|
|
14976
|
+
"supply_apy": {
|
|
14977
|
+
"anyOf": [
|
|
14978
|
+
{
|
|
14979
|
+
"type": "string"
|
|
14980
|
+
},
|
|
14981
|
+
{
|
|
14982
|
+
"type": "null"
|
|
14983
|
+
}
|
|
14984
|
+
],
|
|
14985
|
+
"title": "Supply Apy",
|
|
14986
|
+
"description": "Current supply APY earned on this collateral while it backs a loan, in percentage (e.g. 3.5 means 3.5%). Null if the rate is unavailable."
|
|
14924
14987
|
}
|
|
14925
14988
|
},
|
|
14926
14989
|
"additionalProperties": false,
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -62,7 +62,7 @@ export const SDK_METADATA = {
|
|
|
62
62
|
language: "typescript",
|
|
63
63
|
openapiDocVersion: "0.0.1",
|
|
64
64
|
sdkVersion: "2.0.0",
|
|
65
|
-
genVersion: "2.
|
|
65
|
+
genVersion: "2.913.3",
|
|
66
66
|
userAgent:
|
|
67
|
-
"speakeasy-sdk/typescript 2.0.0 2.
|
|
67
|
+
"speakeasy-sdk/typescript 2.0.0 2.913.3 0.0.1 @compass-labs/api-sdk",
|
|
68
68
|
} as const;
|
|
@@ -20,14 +20,18 @@ export type BorrowableToken = {
|
|
|
20
20
|
* Symbol of the borrowable token (e.g. WETH).
|
|
21
21
|
*/
|
|
22
22
|
symbol: string;
|
|
23
|
+
/**
|
|
24
|
+
* Euler only: the EVK borrow vault to borrow this token from (pass as borrow_vault).
|
|
25
|
+
*/
|
|
26
|
+
vault?: string | null | undefined;
|
|
23
27
|
/**
|
|
24
28
|
* Maximum amount that can be borrowed based on available borrow capacity and token price.
|
|
25
29
|
*/
|
|
26
30
|
maxBorrowableAmount: string;
|
|
27
31
|
/**
|
|
28
|
-
* Current variable borrow APY in percentage (e.g. 4.5 means 4.5%).
|
|
32
|
+
* Current variable borrow APY in percentage (e.g. 4.5 means 4.5%). Null if the rate is unavailable.
|
|
29
33
|
*/
|
|
30
|
-
borrowApy
|
|
34
|
+
borrowApy?: string | null | undefined;
|
|
31
35
|
};
|
|
32
36
|
|
|
33
37
|
/** @internal */
|
|
@@ -38,8 +42,9 @@ export const BorrowableToken$inboundSchema: z.ZodType<
|
|
|
38
42
|
> = z.object({
|
|
39
43
|
token: z.string(),
|
|
40
44
|
symbol: z.string(),
|
|
45
|
+
vault: z.nullable(z.string()).optional(),
|
|
41
46
|
max_borrowable_amount: z.string(),
|
|
42
|
-
borrow_apy: z.string(),
|
|
47
|
+
borrow_apy: z.nullable(z.string()).optional(),
|
|
43
48
|
}).transform((v) => {
|
|
44
49
|
return remap$(v, {
|
|
45
50
|
"max_borrowable_amount": "maxBorrowableAmount",
|
|
@@ -47,6 +47,10 @@ export type CreditPositionsResponse = {
|
|
|
47
47
|
* Euler account-level summary (health factor, LTV, etc.), present only when the account holds Euler positions. Null for Aave-only accounts.
|
|
48
48
|
*/
|
|
49
49
|
eulerAccountSummary?: AccountSummary | null | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Euler-only: additional borrowable amounts given the account's current Euler controller (i.e. borrow more of the controller's asset). Empty for accounts with no Euler borrow position — use /credit/euler_markets to discover a new market to borrow from.
|
|
52
|
+
*/
|
|
53
|
+
eulerBorrowableTokens?: Array<BorrowableToken> | undefined;
|
|
50
54
|
/**
|
|
51
55
|
* All tokens available for borrowing with max amounts based on current collateral.
|
|
52
56
|
*/
|
|
@@ -67,6 +71,7 @@ export const CreditPositionsResponse$inboundSchema: z.ZodType<
|
|
|
67
71
|
debt_positions: z.array(DebtPosition$inboundSchema).optional(),
|
|
68
72
|
account_summary: AccountSummary$inboundSchema,
|
|
69
73
|
euler_account_summary: z.nullable(AccountSummary$inboundSchema).optional(),
|
|
74
|
+
euler_borrowable_tokens: z.array(BorrowableToken$inboundSchema).optional(),
|
|
70
75
|
borrowable_tokens: z.array(BorrowableToken$inboundSchema).optional(),
|
|
71
76
|
total_usd_value: z.nullable(z.string()).optional(),
|
|
72
77
|
}).transform((v) => {
|
|
@@ -75,6 +80,7 @@ export const CreditPositionsResponse$inboundSchema: z.ZodType<
|
|
|
75
80
|
"debt_positions": "debtPositions",
|
|
76
81
|
"account_summary": "accountSummary",
|
|
77
82
|
"euler_account_summary": "eulerAccountSummary",
|
|
83
|
+
"euler_borrowable_tokens": "eulerBorrowableTokens",
|
|
78
84
|
"borrowable_tokens": "borrowableTokens",
|
|
79
85
|
"total_usd_value": "totalUsdValue",
|
|
80
86
|
});
|
|
@@ -36,6 +36,14 @@ export type EulerMarket = {
|
|
|
36
36
|
* Decimals of the borrowable asset.
|
|
37
37
|
*/
|
|
38
38
|
assetDecimals: number;
|
|
39
|
+
/**
|
|
40
|
+
* Current borrow APY for this market (cost to borrow the asset), in percentage (e.g. 5.25 means 5.25%). Null if the rate is unavailable.
|
|
41
|
+
*/
|
|
42
|
+
borrowApy?: string | null | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Current supply APY for this market (yield for supplying the asset), in percentage (e.g. 3.45 means 3.45%). Null if the rate is unavailable.
|
|
45
|
+
*/
|
|
46
|
+
supplyApy?: string | null | undefined;
|
|
39
47
|
/**
|
|
40
48
|
* Collateral vaults this market accepts (those currently borrowable, LTV > 0), each with its LTVs.
|
|
41
49
|
*/
|
|
@@ -53,12 +61,16 @@ export const EulerMarket$inboundSchema: z.ZodType<
|
|
|
53
61
|
asset: z.string(),
|
|
54
62
|
asset_symbol: z.string(),
|
|
55
63
|
asset_decimals: z.number().int(),
|
|
64
|
+
borrow_apy: z.nullable(z.string()).optional(),
|
|
65
|
+
supply_apy: z.nullable(z.string()).optional(),
|
|
56
66
|
collaterals: z.array(EulerMarketCollateral$inboundSchema).optional(),
|
|
57
67
|
}).transform((v) => {
|
|
58
68
|
return remap$(v, {
|
|
59
69
|
"vault_symbol": "vaultSymbol",
|
|
60
70
|
"asset_symbol": "assetSymbol",
|
|
61
71
|
"asset_decimals": "assetDecimals",
|
|
72
|
+
"borrow_apy": "borrowApy",
|
|
73
|
+
"supply_apy": "supplyApy",
|
|
62
74
|
});
|
|
63
75
|
});
|
|
64
76
|
|
|
@@ -32,6 +32,10 @@ export type EulerMarketCollateral = {
|
|
|
32
32
|
* Loan-to-value at which this collateral is liquidated, in percentage (e.g. 96 means 96%).
|
|
33
33
|
*/
|
|
34
34
|
liquidationLtv: string;
|
|
35
|
+
/**
|
|
36
|
+
* Current supply APY earned on this collateral while it backs a loan, in percentage (e.g. 3.5 means 3.5%). Null if the rate is unavailable.
|
|
37
|
+
*/
|
|
38
|
+
supplyApy?: string | null | undefined;
|
|
35
39
|
};
|
|
36
40
|
|
|
37
41
|
/** @internal */
|
|
@@ -45,11 +49,13 @@ export const EulerMarketCollateral$inboundSchema: z.ZodType<
|
|
|
45
49
|
asset_symbol: z.string(),
|
|
46
50
|
borrow_ltv: z.string(),
|
|
47
51
|
liquidation_ltv: z.string(),
|
|
52
|
+
supply_apy: z.nullable(z.string()).optional(),
|
|
48
53
|
}).transform((v) => {
|
|
49
54
|
return remap$(v, {
|
|
50
55
|
"asset_symbol": "assetSymbol",
|
|
51
56
|
"borrow_ltv": "borrowLtv",
|
|
52
57
|
"liquidation_ltv": "liquidationLtv",
|
|
58
|
+
"supply_apy": "supplyApy",
|
|
53
59
|
});
|
|
54
60
|
});
|
|
55
61
|
|