Skip to content

Commit dfc404a

Browse files
kiln-botValdo Romao
andcommitted
Update OpenAPI schema (#233)
* Update OpenAPI schema * Bump v4.2.7 --------- Co-authored-by: Kiln Bot <[email protected]> Co-authored-by: Valdo Romao <[email protected]>
1 parent 64b42c5 commit dfc404a

File tree

2 files changed

+115
-32
lines changed

2 files changed

+115
-32
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.2.6",
3+
"version": "4.2.7",
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: 114 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2779,6 +2779,26 @@ export interface paths {
27792779
patch?: never;
27802780
trace?: never;
27812781
};
2782+
"/ada/kiln-pools-infos": {
2783+
parameters: {
2784+
query?: never;
2785+
header?: never;
2786+
path?: never;
2787+
cookie?: never;
2788+
};
2789+
/**
2790+
* Kiln Pools Infos
2791+
* @description Get the list of Kiln pools with their information
2792+
*/
2793+
get: operations["getAdaKilnPoolsInfos"];
2794+
put?: never;
2795+
post?: never;
2796+
delete?: never;
2797+
options?: never;
2798+
head?: never;
2799+
patch?: never;
2800+
trace?: never;
2801+
};
27822802
"/ada/transaction/stake": {
27832803
parameters: {
27842804
query?: never;
@@ -19162,6 +19182,33 @@ export interface components {
1916219182
*/
1916319183
updated_at: string;
1916419184
};
19185+
ADAPoolInfo: {
19186+
/**
19187+
* @description The pool id
19188+
* @example pool10rdglgh4pzvkf936p2m669qzarr9dusrhmmz9nultm3uvq4eh5k
19189+
*/
19190+
pool_id: string;
19191+
/**
19192+
* @description The pool name
19193+
* @example KILN0
19194+
*/
19195+
name: string;
19196+
/**
19197+
* @description Active saturation of the pool
19198+
* @example 0.8
19199+
*/
19200+
active_saturation: string;
19201+
/**
19202+
* @description Live saturation of the pool
19203+
* @example 0.82
19204+
*/
19205+
live_saturation: string;
19206+
/**
19207+
* @description Estimated amount of Lovelace until pool reaches 100% saturation
19208+
* @example 123456789
19209+
*/
19210+
free_space_estimation: string;
19211+
};
1916519212
BTCUnsignedTx: {
1916619213
/**
1916719214
* @description Unsigned serialized staking psbt transaction
@@ -36992,38 +37039,40 @@ export interface components {
3699237039
* @example 135375
3699337040
*/
3699437041
rewards: string;
37042+
/**
37043+
* @description Net annual percentage yield
37044+
* @example 4.624432989690719
37045+
*/
37046+
net_apy: number;
37047+
};
37048+
TRXTxStatus: {
37049+
/**
37050+
* @description Transaction status
37051+
* @example success
37052+
* @enum {string}
37053+
*/
37054+
status?: "success" | "error";
37055+
/**
37056+
* @description Details of the transaction, including the fees and virtual machine events. Object shape can be found [here](https://github.com/tronprotocol/tronweb/blob/master/src/types/Trx.ts#L258)
37057+
* @example {
37058+
* "id": "0daa9f2507c4e79e39391ea165bb76ed018c4cd69d7da129edf9e95f0dae99e2",
37059+
* "fee": 4110,
37060+
* "blockNumber": 7000000,
37061+
* "blockTimeStamp": 1551102291000,
37062+
* "contractResult": [
37063+
* ""
37064+
* ],
37065+
* "contract_address": "41eb8f23b15acbc0245a4dbbd820b9bde368b02d61",
37066+
* "receipt": {
37067+
* "origin_energy_usage": 38627,
37068+
* "energy_usage_total": 38627,
37069+
* "net_fee": 4110,
37070+
* "result": "SUCCESS"
37071+
* }
37072+
* }
37073+
*/
37074+
info?: Record<string, never>;
3699537075
};
36996-
/** @example {
36997-
* "ret": [
36998-
* {
36999-
* "contractRet": "SUCCESS"
37000-
* }
37001-
* ],
37002-
* "signature": [
37003-
* "350952b9523d7e61838eaac8157a2737cdf92f913fc51b6735f974818d08b90908ffe5bd7463ea3d9661cc3c5fe0efd82160fe01a3069cef3e2a84070258062b1b"
37004-
* ],
37005-
* "txID": "130751638ddd8b8e642718dc02da9b7f6115bb2297a7e37312b21848b199eee4",
37006-
* "raw_data": {
37007-
* "contract": [
37008-
* {
37009-
* "parameter": {
37010-
* "value": {
37011-
* "owner_address": "41c0dc1d58fdad3bb6a19c1bce1856d0e1e02bda91",
37012-
* "unfreeze_balance": 4000000
37013-
* },
37014-
* "type_url": "type.googleapis.com/protocol.UnfreezeBalanceV2Contract"
37015-
* },
37016-
* "type": "UnfreezeBalanceV2Contract"
37017-
* }
37018-
* ],
37019-
* "ref_block_bytes": "5600",
37020-
* "ref_block_hash": "fdcbad92d379f7f7",
37021-
* "expiration": 1745416992000,
37022-
* "timestamp": 1745416932000
37023-
* },
37024-
* "raw_data_hex": "0a0256002208fdcbad92d379f7f74080ead697e6325a5a083712560a36747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e556e667265657a6542616c616e63655632436f6e7472616374121c0a1541c0dc1d58fdad3bb6a19c1bce1856d0e1e02bda91108092f40170a095d397e632"
37025-
* } */
37026-
TRXTxStatus: Record<string, never>;
3702737076
TRXReward: {
3702837077
/**
3702937078
* Format: date
@@ -44725,6 +44774,40 @@ export interface operations {
4472544774
};
4472644775
};
4472744776
};
44777+
getAdaKilnPoolsInfos: {
44778+
parameters: {
44779+
query?: never;
44780+
header?: never;
44781+
path?: never;
44782+
cookie?: never;
44783+
};
44784+
requestBody?: never;
44785+
responses: {
44786+
/** @description Successful operation */
44787+
200: {
44788+
headers: {
44789+
[name: string]: unknown;
44790+
};
44791+
content: {
44792+
"application/json; charset=utf-8": components["schemas"]["ADAPoolInfo"][];
44793+
};
44794+
};
44795+
/** @description Unauthorized */
44796+
401: {
44797+
headers: {
44798+
[name: string]: unknown;
44799+
};
44800+
content?: never;
44801+
};
44802+
/** @description Internal server error */
44803+
500: {
44804+
headers: {
44805+
[name: string]: unknown;
44806+
};
44807+
content?: never;
44808+
};
44809+
};
44810+
};
4472844811
postAdaStakeTx: {
4472944812
parameters: {
4473044813
query?: never;

0 commit comments

Comments
 (0)