Skip to content

Commit 9c246e7

Browse files
kiln-botEllzer
andauthored
Update OpenAPI schema (#217)
* Update OpenAPI schema * bump version --------- Co-authored-by: Kiln Bot <[email protected]> Co-authored-by: Elliott Denis <[email protected]>
1 parent 1ab962a commit 9c246e7

File tree

2 files changed

+37
-31
lines changed

2 files changed

+37
-31
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": "4.1.21",
3+
"version": "4.1.22",
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: 36 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -23397,21 +23397,6 @@ export interface components {
2339723397
* @example 3.05
2339823398
*/
2339923399
net_apy: number;
23400-
/**
23401-
* @description Stake balance in USD at the time of reward.
23402-
* @example 0.0001
23403-
*/
23404-
active_balance_usd?: number;
23405-
/**
23406-
* @description Net reward amount in USD. This can be verified on chain in an explorer.
23407-
* @example 0.0001
23408-
*/
23409-
net_rewards_usd?: number;
23410-
/**
23411-
* @description Gross reward amount in USD. This is the amount generated before validator fees. Only available for kiln validator's nominators. Default to 0 if not available.
23412-
* @example 0.0001
23413-
*/
23414-
gross_rewards_usd?: number;
2341523400
};
2341623401
DOTRewardByDay: {
2341723402
/**
@@ -24007,21 +23992,6 @@ export interface components {
2400723992
* @example 3.05
2400823993
*/
2400923994
net_apy: number;
24010-
/**
24011-
* @description Stake balance in USD at the time of reward.
24012-
* @example 0.0001
24013-
*/
24014-
active_balance_usd?: number;
24015-
/**
24016-
* @description Net reward amount in USD. This can be verified on chain in an explorer.
24017-
* @example 0.0001
24018-
*/
24019-
net_rewards_usd?: number;
24020-
/**
24021-
* @description Gross reward amount in USD. This is the amount generated before validator fees. Only available for kiln validator's nominators. Default to 0 if not available.
24022-
* @example 0.0001
24023-
*/
24024-
gross_rewards_usd?: number;
2402523995
};
2402623996
KSMRewardByDay: {
2402723997
/**
@@ -36228,6 +36198,16 @@ export interface components {
3622836198
* @example 1000000
3622936199
*/
3623036200
frozen_energy: string;
36201+
/**
36202+
* @description Delegated frozen TRX for bandwidth in sun
36203+
* @example 1000000
36204+
*/
36205+
delegated_frozen_bandwidth: string;
36206+
/**
36207+
* @description Delegated frozen TRX for energy in sun
36208+
* @example 1000000
36209+
*/
36210+
delegated_frozen_energy: string;
3623136211
/**
3623236212
* Format: date-time
3623336213
* @description Last withdraw timestamp
@@ -36528,6 +36508,10 @@ export interface components {
3652836508
DOTPoolIDsParam: number;
3652936509
/** @description The format of the response. Defaults to `daily` */
3653036510
DOTRewardsFormatParam: "daily" | "era";
36511+
/** @description The era from which we want to fetch rewards. Must be used with `format=era` */
36512+
DOTStartEraParam: number;
36513+
/** @description The era until which we want to fetch rewards. Must be used with `format=era` */
36514+
DOTEndEraParam: number;
3653136515
KSMAddressesParam: string;
3653236516
KSMValidatorsParam: string;
3653336517
/** @description Current page to look-up entries. Defaults to 1. If the number of entries returned is lesser than `page_size`, it means it's the last page and there are no more entries. */
@@ -36537,6 +36521,10 @@ export interface components {
3653736521
KSMPoolIDsParam: number;
3653836522
/** @description The format of the response. Defaults to `daily` */
3653936523
KSMRewardsFormatParam: "daily" | "era";
36524+
/** @description The era from which we want to fetch rewards. Must be used with `format=era` */
36525+
KSMStartEraParam: number;
36526+
/** @description The era until which we want to fetch rewards. Must be used with `format=era` */
36527+
KSMEndEraParam: number;
3654036528
/** @description Comma-separated list of validators addresses, these addresses
3654136529
* are matched with the corresponding delegator addresses. To
3654236530
* fetch a specific stake, pass your wallet address and the
@@ -47425,6 +47413,12 @@ export interface operations {
4742547413
end_date?: components["parameters"]["EndDateParam"];
4742647414
/** @description The format of the response. Defaults to `daily` */
4742747415
format?: components["parameters"]["DOTRewardsFormatParam"];
47416+
/** @description The era from which we want to fetch rewards. Must be used with `format=era` */
47417+
start_era?: components["parameters"]["DOTStartEraParam"];
47418+
/** @description The era until which we want to fetch rewards. Must be used with `format=era` */
47419+
end_era?: components["parameters"]["DOTEndEraParam"];
47420+
/** @description Include rewards and balance in USD in response. <br/> If a `format` parameter exists it will only work with `format=daily` */
47421+
include_usd?: components["parameters"]["IncludeUSDParam"];
4742847422
};
4742947423
header?: never;
4743047424
path?: never;
@@ -47523,6 +47517,9 @@ export interface operations {
4752347517
addresses?: components["parameters"]["DOTAddressesParam"];
4752447518
/** @description Comma-separated list of Kiln accounts identifiers */
4752547519
accounts?: components["parameters"]["AccountsParam"];
47520+
validators?: components["parameters"]["DOTValidatorsParam"];
47521+
/** @description The format of the response. Defaults to `daily` */
47522+
format?: components["parameters"]["DOTRewardsFormatParam"];
4752647523
};
4752747524
header?: never;
4752847525
path?: never;
@@ -48517,6 +48514,12 @@ export interface operations {
4851748514
end_date?: components["parameters"]["EndDateParam"];
4851848515
/** @description The format of the response. Defaults to `daily` */
4851948516
format?: components["parameters"]["KSMRewardsFormatParam"];
48517+
/** @description The era from which we want to fetch rewards. Must be used with `format=era` */
48518+
start_era?: components["parameters"]["KSMStartEraParam"];
48519+
/** @description The era until which we want to fetch rewards. Must be used with `format=era` */
48520+
end_era?: components["parameters"]["KSMEndEraParam"];
48521+
/** @description Include rewards and balance in USD in response. <br/> If a `format` parameter exists it will only work with `format=daily` */
48522+
include_usd?: components["parameters"]["IncludeUSDParam"];
4852048523
};
4852148524
header?: never;
4852248525
path?: never;
@@ -48615,6 +48618,9 @@ export interface operations {
4861548618
addresses?: components["parameters"]["KSMAddressesParam"];
4861648619
/** @description Comma-separated list of Kiln accounts identifiers */
4861748620
accounts?: components["parameters"]["AccountsParam"];
48621+
validators?: components["parameters"]["KSMValidatorsParam"];
48622+
/** @description The format of the response. Defaults to `daily` */
48623+
format?: components["parameters"]["KSMRewardsFormatParam"];
4861848624
};
4861948625
header?: never;
4862048626
path?: never;

0 commit comments

Comments
 (0)