Skip to content

Commit 73064d0

Browse files
kiln-botmenefrego15
andcommitted
Update OpenAPI schema (#196)
* Update OpenAPI schema * bump v4.1.6 --------- Co-authored-by: Kiln Bot <[email protected]> Co-authored-by: ilies <[email protected]>
1 parent 8b9464e commit 73064d0

File tree

2 files changed

+282
-3
lines changed

2 files changed

+282
-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": "4.1.5",
3+
"version": "4.1.6",
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: 281 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3555,6 +3555,26 @@ export interface paths {
35553555
patch?: never;
35563556
trace?: never;
35573557
};
3558+
"/near/transaction/status": {
3559+
parameters: {
3560+
query?: never;
3561+
header?: never;
3562+
path?: never;
3563+
cookie?: never;
3564+
};
3565+
/**
3566+
* Transaction Status
3567+
* @description Get the status of a transaction
3568+
*/
3569+
get: operations["getNearTxStatus"];
3570+
put?: never;
3571+
post?: never;
3572+
delete?: never;
3573+
options?: never;
3574+
head?: never;
3575+
patch?: never;
3576+
trace?: never;
3577+
};
35583578
"/near/transaction/decode": {
35593579
parameters: {
35603580
query?: never;
@@ -20096,6 +20116,215 @@ export interface components {
2009620116
*/
2009720117
tx_hash: string;
2009820118
};
20119+
NEARTxStatus: {
20120+
/**
20121+
* @description Transaction status
20122+
* @example success
20123+
* @enum {string}
20124+
*/
20125+
status?: "success" | "error";
20126+
/**
20127+
* @description Transaction receipt. Object shape can be found [here](https://github.com/near/near-api-js/blob/c49fd67535baa5163b29ca7a43f585bfcfbe16e6/packages/types/src/provider/response.ts#L79)
20128+
* @example {
20129+
* "final_execution_status": "FINAL",
20130+
* "receipts_outcome": [
20131+
* {
20132+
* "block_hash": "GWvGFZW6yFk2wbcm1nks4BDisSANiRkD1yVQN1FQvwgo",
20133+
* "id": "EP52R2jvvqz131WZeSjkDL2562eHHaeRABBTKunqAHbx",
20134+
* "outcome": {
20135+
* "executor_id": "ognuf.testnet",
20136+
* "gas_burnt": 1047451194208,
20137+
* "logs": [],
20138+
* "metadata": {
20139+
* "gas_profile": [
20140+
* {
20141+
* "cost": "BASE",
20142+
* "cost_category": "WASM_HOST_COST",
20143+
* "gas_used": "2647681110"
20144+
* },
20145+
* {
20146+
* "cost": "CONTRACT_LOADING_BASE",
20147+
* "cost_category": "WASM_HOST_COST",
20148+
* "gas_used": "35445963"
20149+
* },
20150+
* {
20151+
* "cost": "CONTRACT_LOADING_BYTES",
20152+
* "cost_category": "WASM_HOST_COST",
20153+
* "gas_used": "9139185050"
20154+
* },
20155+
* {
20156+
* "cost": "READ_MEMORY_BASE",
20157+
* "cost_category": "WASM_HOST_COST",
20158+
* "gas_used": "5219726400"
20159+
* },
20160+
* {
20161+
* "cost": "READ_MEMORY_BYTE",
20162+
* "cost_category": "WASM_HOST_COST",
20163+
* "gas_used": "7602666"
20164+
* },
20165+
* {
20166+
* "cost": "READ_REGISTER_BASE",
20167+
* "cost_category": "WASM_HOST_COST",
20168+
* "gas_used": "7551495558"
20169+
* },
20170+
* {
20171+
* "cost": "READ_REGISTER_BYTE",
20172+
* "cost_category": "WASM_HOST_COST",
20173+
* "gas_used": "48689628"
20174+
* },
20175+
* {
20176+
* "cost": "STORAGE_HAS_KEY_BASE",
20177+
* "cost_category": "WASM_HOST_COST",
20178+
* "gas_used": "54039896625"
20179+
* },
20180+
* {
20181+
* "cost": "STORAGE_HAS_KEY_BYTE",
20182+
* "cost_category": "WASM_HOST_COST",
20183+
* "gas_used": "30790845"
20184+
* },
20185+
* {
20186+
* "cost": "STORAGE_READ_BASE",
20187+
* "cost_category": "WASM_HOST_COST",
20188+
* "gas_used": "56356845749"
20189+
* },
20190+
* {
20191+
* "cost": "STORAGE_READ_KEY_BYTE",
20192+
* "cost_category": "WASM_HOST_COST",
20193+
* "gas_used": "30952533"
20194+
* },
20195+
* {
20196+
* "cost": "STORAGE_READ_VALUE_BYTE",
20197+
* "cost_category": "WASM_HOST_COST",
20198+
* "gas_used": "72943052"
20199+
* },
20200+
* {
20201+
* "cost": "WASM_INSTRUCTION",
20202+
* "cost_category": "WASM_HOST_COST",
20203+
* "gas_used": "2919138288"
20204+
* },
20205+
* {
20206+
* "cost": "WRITE_MEMORY_BASE",
20207+
* "cost_category": "WASM_HOST_COST",
20208+
* "gas_used": "8411384583"
20209+
* },
20210+
* {
20211+
* "cost": "WRITE_MEMORY_BYTE",
20212+
* "cost_category": "WASM_HOST_COST",
20213+
* "gas_used": "1345543368"
20214+
* },
20215+
* {
20216+
* "cost": "WRITE_REGISTER_BASE",
20217+
* "cost_category": "WASM_HOST_COST",
20218+
* "gas_used": "8596567458"
20219+
* },
20220+
* {
20221+
* "cost": "WRITE_REGISTER_BYTE",
20222+
* "cost_category": "WASM_HOST_COST",
20223+
* "gas_used": "1877972616"
20224+
* }
20225+
* ],
20226+
* "version": 3
20227+
* },
20228+
* "receipt_ids": [
20229+
* "8RzWUcubqXZYvVTjJUTJptx7ggh5DXEMA86J6B3P5odQ"
20230+
* ],
20231+
* "status": {
20232+
* "SuccessValue": ""
20233+
* },
20234+
* "tokens_burnt": "104745119420800000000"
20235+
* },
20236+
* "proof": [
20237+
* {
20238+
* "direction": "Left",
20239+
* "hash": "2jzRXjWTCVR3ZBhMg4Lg3NzG2BUXxVd5PmazKPxGi5Ri"
20240+
* },
20241+
* {
20242+
* "direction": "Right",
20243+
* "hash": "8n5m2mMZso44PV696BVFyKSkC8RKqQSuF2QdjQBwKSP1"
20244+
* }
20245+
* ]
20246+
* },
20247+
* {
20248+
* "block_hash": "Dp3Ra6eEbWwaVueDUDxGsvU6os2RtKTmMPxbQUF1jccm",
20249+
* "id": "8RzWUcubqXZYvVTjJUTJptx7ggh5DXEMA86J6B3P5odQ",
20250+
* "outcome": {
20251+
* "executor_id": "ognuf.testnet",
20252+
* "gas_burnt": 223182562500,
20253+
* "logs": [],
20254+
* "metadata": {
20255+
* "gas_profile": [],
20256+
* "version": 3
20257+
* },
20258+
* "receipt_ids": [],
20259+
* "status": {
20260+
* "SuccessValue": ""
20261+
* },
20262+
* "tokens_burnt": "0"
20263+
* },
20264+
* "proof": [
20265+
* {
20266+
* "direction": "Right",
20267+
* "hash": "F6EbMPDCmbCQcETysyY64SP6wWn9PeiVXd7UvYgL41Ws"
20268+
* }
20269+
* ]
20270+
* }
20271+
* ],
20272+
* "status": {
20273+
* "SuccessValue": ""
20274+
* },
20275+
* "transaction": {
20276+
* "actions": [
20277+
* {
20278+
* "FunctionCall": {
20279+
* "args": "AQEBAAAAygEAAArFAwqCAgoCCAsQ4qcDGLPbz7C3u76AGCIg7c4UiAafMSjANXcZnXF+qiYsZ8T13WsVlZb4zljSyTQqIPBf\\/7yKE9GX9+RWD9lgD58gGs1I\\/Lks9hDpOFlbflBHMiBuNAuc\\/7N6mJylROa7eAoseJAdP7M3OHaFEaMGF6+gHTogAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABCIN6zZHR5a8o1BmGlOOQHhQwNmSuCwwBl\\/Nf861pRpRwZUhSrbPuuNT\\/OdRZRpiGGh1dGWu5LelogmaPcCwS114x7FyVESiXxEtoO6Nv1n4YkGXn8bV44jJ5iDG1pbml0aWEtdGVzdBJAPp\\/i5lZVxvHHoT5uLn3J+0qYJIhP9Wvf+PnO09c8GetU1ipLI1MrDFVHkcPDQmywTTb7e+hOCBeiKlaEB5nrBxp8CjwKFKts+641P851FlGmIYaHV0Za7kt6EiIKIAQUikAhf8C3GBlyykKRuZGB8EkIICrh77u8L7e1IZfCGAESPAoUq2z7rjU\\/znUWUaYhhodXRlruS3oSIgogBBSKQCF\\/wLcYGXLKQpG5kYHwSQggKuHvu7wvt7Uhl8IYARIA",
20280+
* "deposit": "0",
20281+
* "gas": 20000000000000,
20282+
* "method_name": "submit"
20283+
* }
20284+
* }
20285+
* ],
20286+
* "hash": "3SjLFkpdymyyF4asqkBaRStoJCVxc72ovZkEzFHMCGY5",
20287+
* "nonce": 175227951646938,
20288+
* "priority_fee": 0,
20289+
* "public_key": "ed25519:4m7opXRc5hEpQvUFtseFedtvN6uVKfJtzht428xxtZq1",
20290+
* "receiver_id": "ognuf.testnet",
20291+
* "signature": "ed25519:3TpmHAoLNMGXo69XhoP2UtZkWcet9VxKyYJ8iCyY2RdxngcimUfrgSDPrCvakLMTUdChdxwBLJv7RPV5yT9vqt3U",
20292+
* "signer_id": "ognuf.testnet"
20293+
* },
20294+
* "transaction_outcome": {
20295+
* "block_hash": "GWvGFZW6yFk2wbcm1nks4BDisSANiRkD1yVQN1FQvwgo",
20296+
* "id": "3SjLFkpdymyyF4asqkBaRStoJCVxc72ovZkEzFHMCGY5",
20297+
* "outcome": {
20298+
* "executor_id": "ognuf.testnet",
20299+
* "gas_burnt": 309119332716,
20300+
* "logs": [],
20301+
* "metadata": {
20302+
* "gas_profile": null,
20303+
* "version": 1
20304+
* },
20305+
* "receipt_ids": [
20306+
* "EP52R2jvvqz131WZeSjkDL2562eHHaeRABBTKunqAHbx"
20307+
* ],
20308+
* "status": {
20309+
* "SuccessReceiptId": "EP52R2jvvqz131WZeSjkDL2562eHHaeRABBTKunqAHbx"
20310+
* },
20311+
* "tokens_burnt": "30911933271600000000"
20312+
* },
20313+
* "proof": [
20314+
* {
20315+
* "direction": "Right",
20316+
* "hash": "7y9tJ8nbh3QWT2ASECNtJFx8C1M8ao2bC5JqYv5DK7fm"
20317+
* },
20318+
* {
20319+
* "direction": "Right",
20320+
* "hash": "8n5m2mMZso44PV696BVFyKSkC8RKqQSuF2QdjQBwKSP1"
20321+
* }
20322+
* ]
20323+
* }
20324+
* }
20325+
*/
20326+
receipt?: Record<string, never>;
20327+
};
2009920328
NEARTx: {
2010020329
/**
2010120330
* @description Unsigned transaction serialized
@@ -37964,6 +38193,8 @@ export interface operations {
3796438193
query?: {
3796538194
/** @description Comma-separated list of stake addresses */
3796638195
stake_accounts?: components["parameters"]["SOLStakeAccountsParam"];
38196+
/** @description Comma-separated list of validator addresses */
38197+
validators?: components["parameters"]["SOLValidatorsParam"];
3796738198
/** @description Comma-separated list of wallets addresses */
3796838199
wallets?: components["parameters"]["SOLWalletsParam"];
3796938200
/** @description Comma-separated list of Kiln accounts identifiers */
@@ -38056,10 +38287,10 @@ export interface operations {
3805638287
stake_accounts?: components["parameters"]["SOLStakeAccountsParam"];
3805738288
/** @description Comma-separated list of wallets addresses */
3805838289
wallets?: components["parameters"]["SOLWalletsParam"];
38290+
/** @description Comma-separated list of validator addresses */
38291+
validators?: components["parameters"]["SOLValidatorsParam"];
3805938292
/** @description Comma-separated list of Kiln accounts identifiers */
3806038293
accounts?: components["parameters"]["AccountsParam"];
38061-
/** @description The format of the response. Defaults to `daily` */
38062-
format?: components["parameters"]["SOLRewardsFormatParam"];
3806338294
};
3806438295
header?: never;
3806538296
path?: never;
@@ -43897,6 +44128,54 @@ export interface operations {
4389744128
};
4389844129
};
4389944130
};
44131+
getNearTxStatus: {
44132+
parameters: {
44133+
query: {
44134+
/** @description Hash of the transaction */
44135+
tx_hash: string;
44136+
/** @description NEAR account ID */
44137+
wallet: string;
44138+
};
44139+
header?: never;
44140+
path?: never;
44141+
cookie?: never;
44142+
};
44143+
requestBody?: never;
44144+
responses: {
44145+
/** @description Successful operation */
44146+
200: {
44147+
headers: {
44148+
[name: string]: unknown;
44149+
};
44150+
content: {
44151+
"application/json; charset=utf-8": {
44152+
data?: components["schemas"]["NEARTxStatus"];
44153+
};
44154+
};
44155+
};
44156+
/** @description Invalid parameters */
44157+
400: {
44158+
headers: {
44159+
[name: string]: unknown;
44160+
};
44161+
content?: never;
44162+
};
44163+
/** @description Unauthorized */
44164+
401: {
44165+
headers: {
44166+
[name: string]: unknown;
44167+
};
44168+
content?: never;
44169+
};
44170+
/** @description Internal server error */
44171+
500: {
44172+
headers: {
44173+
[name: string]: unknown;
44174+
};
44175+
content?: never;
44176+
};
44177+
};
44178+
};
4390044179
getNearTxDecoding: {
4390144180
parameters: {
4390244181
query: {

0 commit comments

Comments
 (0)