Skip to content

Commit 9951aa1

Browse files
kiln-botLeTamanoir
andcommitted
Update OpenAPI schema (#161)
* Update OpenAPI schema * bump version --------- Co-authored-by: Kiln Bot <[email protected]> Co-authored-by: Martin Saldinger <[email protected]>
1 parent ce4760c commit 9951aa1

File tree

2 files changed

+36
-3
lines changed

2 files changed

+36
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kilnfi/sdk",
3-
"version": "3.1.19",
3+
"version": "3.1.20",
44
"autor": "Kiln <[email protected]> (https://kiln.fi)",
55
"license": "BUSL-1.1",
66
"description": "JavaScript sdk for Kiln API",

src/openapi/schema.ts

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,7 @@ export interface paths {
530530
};
531531
/**
532532
* EigenLayer Native Points
533+
* @deprecated
533534
* @description Get restaked points of your EigenPod
534535
*/
535536
get: operations["getEigenLayerNativePoints"];
@@ -570,6 +571,7 @@ export interface paths {
570571
};
571572
/**
572573
* EigenLayer Liquid Points
574+
* @deprecated
573575
* @description Get restaked points of your Liquid Staking Tokens
574576
*/
575577
get: operations["getEigenLayerLiquidPoints"];
@@ -6497,7 +6499,29 @@ export interface components {
64976499
* @example NEAR
64986500
* @enum {string}
64996501
*/
6500-
token: "NEAR" | "ATOM" | "POL" | "ADA" | "OSMO" | "XTZ" | "DOT" | "KSM" | "SOL" | "DYDX" | "TIA" | "EGLD" | "ZETA" | "INJ" | "FET" | "TON" | "KAVA";
6502+
token: "NEAR" | "ATOM" | "POL" | "ADA" | "OSMO" | "XTZ" | "DOT" | "KSM" | "SOL" | "TIA" | "EGLD" | "ZETA" | "INJ" | "FET" | "TON" | "KAVA";
6503+
};
6504+
DYDXPortfolio: components["schemas"]["BasePortfolio"] & {
6505+
/**
6506+
* @description Token name
6507+
* @example DYDX
6508+
* @enum {string}
6509+
*/
6510+
token: "DYDX";
6511+
total_rewards: {
6512+
/**
6513+
* Format: float
6514+
* @description Total rewards earned in USDC for this protocol
6515+
* @example 10896.4568
6516+
*/
6517+
amount_usdc: number;
6518+
/**
6519+
* Format: float
6520+
* @description Total USD of USDC rewards earned for this protocol
6521+
* @example 1896.4568
6522+
*/
6523+
amount_usdc_usd: number;
6524+
};
65016525
};
65026526
ETHPortfolio: components["schemas"]["BasePortfolio"] & {
65036527
/**
@@ -6612,7 +6636,7 @@ export interface components {
66126636
*/
66136637
total_active_stakes: number;
66146638
/** @description List of protocols staked within the account */
6615-
protocols: (components["schemas"]["DefaultPortfolio"] | components["schemas"]["ETHPortfolio"])[];
6639+
protocols: (components["schemas"]["DefaultPortfolio"] | components["schemas"]["DYDXPortfolio"] | components["schemas"]["ETHPortfolio"])[];
66166640
/**
66176641
* @description Error message if some protocol data could not be retrieved
66186642
* @example We could not fetch data for the following protocols: TON
@@ -7013,6 +7037,7 @@ export interface components {
70137037
*/
70147038
last_checkpointed_at: number;
70157039
/**
7040+
* @deprecated
70167041
* @description Amount of restaked points of the stake
70177042
* @example 16287.724444444444
70187043
*/
@@ -29139,6 +29164,8 @@ export interface components {
2913929164
ETHEigenLayerOperatorParam: string;
2914029165
/** @description wallet address */
2914129166
ETHEigenLayerWalletParam: string;
29167+
/** @description EigenPod address */
29168+
ETHEigenLayerEigenPodParam: string;
2914229169
/** @description Scope of validators to fetch (all network, all kiln keys) */
2914329170
ETHScopeParam: string;
2914429171
/** @description Comma-separated list of wallets addresses */
@@ -30623,6 +30650,8 @@ export interface operations {
3062330650
query: {
3062430651
/** @description wallet address */
3062530652
wallet: components["parameters"]["ETHEigenLayerWalletParam"];
30653+
/** @description EigenPod address */
30654+
eigenpod: components["parameters"]["ETHEigenLayerEigenPodParam"];
3062630655
};
3062730656
header?: never;
3062830657
path?: never;
@@ -30715,6 +30744,8 @@ export interface operations {
3071530744
query: {
3071630745
/** @description wallet address */
3071730746
wallet: components["parameters"]["ETHEigenLayerWalletParam"];
30747+
/** @description EigenPod address */
30748+
eigenpod: components["parameters"]["ETHEigenLayerEigenPodParam"];
3071830749
};
3071930750
header?: never;
3072030751
path?: never;
@@ -30761,6 +30792,8 @@ export interface operations {
3076130792
query: {
3076230793
/** @description wallet address */
3076330794
wallet: components["parameters"]["ETHEigenLayerWalletParam"];
30795+
/** @description EigenPod address */
30796+
eigenpod: components["parameters"]["ETHEigenLayerEigenPodParam"];
3076430797
};
3076530798
header?: never;
3076630799
path?: never;

0 commit comments

Comments
 (0)