Skip to content

Commit 099ff4f

Browse files
committed
Update OpenAPI schema
1 parent 5e0a8da commit 099ff4f

File tree

1 file changed

+121
-12
lines changed

1 file changed

+121
-12
lines changed

src/openapi/schema.ts

Lines changed: 121 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8414,6 +8414,26 @@ export interface paths {
84148414
patch?: never;
84158415
trace?: never;
84168416
};
8417+
"/sui/transaction/prepare": {
8418+
parameters: {
8419+
query?: never;
8420+
header?: never;
8421+
path?: never;
8422+
cookie?: never;
8423+
};
8424+
get?: never;
8425+
put?: never;
8426+
/**
8427+
* Prepare Transaction
8428+
* @description Prepare a transaction.
8429+
*/
8430+
post: operations["postSuiPrepareTx"];
8431+
delete?: never;
8432+
options?: never;
8433+
head?: never;
8434+
patch?: never;
8435+
trace?: never;
8436+
};
84178437
"/sui/transaction/status": {
84188438
parameters: {
84198439
query?: never;
@@ -40004,16 +40024,6 @@ export interface components {
4000440024
* @example 9020446847418
4000540025
*/
4000640026
net_rewards: string;
40007-
/**
40008-
* @description Total withdrawn rewards by this stake since its first ever delegation
40009-
* @example 9020446847418
40010-
*/
40011-
withdrawn_rewards: string;
40012-
/**
40013-
* @description Total withdrawable rewards by this stake
40014-
* @example 0
40015-
*/
40016-
withdrawable_rewards: string;
4001740027
/**
4001840028
* @description The amount of SUI currently staked
4001940029
* @example 92908788559
@@ -40051,6 +40061,11 @@ export interface components {
4005140061
* @example 2.02
4005240062
*/
4005340063
net_apy: number;
40064+
/**
40065+
* @description Stake Object ID involved in the operation
40066+
* @example 0x23f9f0342c9ee0c7e74df0dc6655d2ae672ae08fe12dc4ac2d604074687555a3
40067+
*/
40068+
stake_id: string;
4005440069
};
4005540070
SUIRewardByEpoch: {
4005640071
/**
@@ -40305,6 +40320,20 @@ export interface components {
4030540320
*/
4030640321
digest: string;
4030740322
};
40323+
SUIPrepareTx: {
40324+
/**
40325+
* Format: base64
40326+
* @description Serialized transaction as base64 encoded bcs
40327+
* @example AAACAAgAypo7AAAAAAAg2+ZDD9PphmfRs1A4Aba3bIThZOG+V+8OS/Pjq3kbI9YCAgABAQAAAQEDAAAAAAEBABsdj13zFOK3uKhs/ir/eMwbwKDsykcidGrlIiYx0U9vAjWzex7zdLfWq8gj/oP81sYt3UJzyo4bDhvRJ7E1R/tVd1fpIAAAAAAgfCKhipjlwhR0OghzVijOV+b+CFucrTVw1y6LK+g4dXUM4X57NnqLr5kjWC0veDHxiAJG0cKrkJDEubjYQ6JXundX6SAAAAAAICh1unSYqH9yQqaJuKEftzLEGT5rqV7wHUD16BMQcmLAGx2PXfMU4re4qGz+Kv94zBvAoOzKRyJ0auUiJjHRT2/oAwAAAAAAAECrPAAAAAAAAA==
40328+
*/
40329+
tx_serialized: string;
40330+
/**
40331+
* Format: base64
40332+
* @description Base64-encoded Sui serialized signature.
40333+
* @example AMQ2b2LwCWca7IK5hY1lnzkhRwb4nkYCTA3on08RpMEA6myGSgTWmBH2KDLZmaXzSXI<insert>VCNKrP3dCzBZvM3gRzTJq3RpEQpcj32BYljGTj4jFrXXGGPohME56ZK2MBDw==
40334+
*/
40335+
serialized_signature: string;
40336+
};
4030840337
SUITxStatus: {
4030940338
/**
4031040339
* @description Transaction status
@@ -40396,15 +40425,34 @@ export interface components {
4039640425
SUIBroadcastTxPayload: {
4039740426
/**
4039840427
* Format: base64
40399-
* @description Signed serialized transaction as base64 encoded bcs
40428+
* @description Serialized transaction as base64 encoded bcs
4040040429
* @example AAACAAgAypo7AAAAAAAg2+ZDD9PphmfRs1A4Aba3bIThZOG+V+8OS/Pjq3kbI9YCAgABAQAAAQEDAAAAAAEBABsdj13zFOK3uKhs/ir/eMwbwKDsykcidGrlIiYx0U9vAjWzex7zdLfWq8gj/oP81sYt3UJzyo4bDhvRJ7E1R/tVd1fpIAAAAAAgfCKhipjlwhR0OghzVijOV+b+CFucrTVw1y6LK+g4dXUM4X57NnqLr5kjWC0veDHxiAJG0cKrkJDEubjYQ6JXundX6SAAAAAAICh1unSYqH9yQqaJuKEftzLEGT5rqV7wHUD16BMQcmLAGx2PXfMU4re4qGz+Kv94zBvAoOzKRyJ0auUiJjHRT2/oAwAAAAAAAECrPAAAAAAAAA==
4040140430
*/
4040240431
tx_serialized: string;
4040340432
/**
4040440433
* Format: base64
40405-
* @description Base64 encoded signature of the transaction
40434+
* @description Base64-encoded Sui serialized signature.
4040640435
* @example AMQ2b2LwCWca7IK5hY1lnzkhRwb4nkYCTA3on08RpMEA6myGSgTWmBH2KDLZmaXzSXI+++VCNKrP3dCzBZvM3gRzTJq3RpEQpcj32BYljGTj4jFrXXGGPohME56ZK2MBDw==
4040740436
*/
40437+
serialized_signature: string;
40438+
};
40439+
SUIPrepareTxPayload: {
40440+
/**
40441+
* @description Wallet public key, this is different than the wallet address
40442+
* @example 039ce47b2a813d13876131a9c3be77e8c4afa49e948744abbee11f939e2a420f46
40443+
*/
40444+
pubkey: string;
40445+
/**
40446+
* Format: base64
40447+
* @description Serialized transaction as base64 encoded bcs
40448+
* @example AAACAAgAypo7AAAAAAAg2+ZDD9PphmfRs1A4Aba3bIThZOG+V+8OS/Pjq3kbI9YCAgABAQAAAQEDAAAAAAEBABsdj13zFOK3uKhs/ir/eMwbwKDsykcidGrlIiYx0U9vAjWzex7zdLfWq8gj/oP81sYt3UJzyo4bDhvRJ7E1R/tVd1fpIAAAAAAgfCKhipjlwhR0OghzVijOV+b+CFucrTVw1y6LK+g4dXUM4X57NnqLr5kjWC0veDHxiAJG0cKrkJDEubjYQ6JXundX6SAAAAAAICh1unSYqH9yQqaJuKEftzLEGT5rqV7wHUD16BMQcmLAGx2PXfMU4re4qGz+Kv94zBvAoOzKRyJ0auUiJjHRT2/oAwAAAAAAAECrPAAAAAAAAA==
40449+
*/
40450+
tx_serialized: string;
40451+
/**
40452+
* Format: base64
40453+
* @description Hex-encoded raw signature bytes.
40454+
* @example a11afeea9af497fdae1caa2c02cf5f1b964251093ee7acd47a7193d991c64eefb3d9879a3fa3015f2003b0d61b95bdf9de1f5f155fac6be4bbe058cdcda4c60b
40455+
*/
4040840456
signature: string;
4040940457
};
4041040458
SUIDecodeTxPayload: {
@@ -40506,6 +40554,11 @@ export interface components {
4050640554
* @description Base64-encoded payload data of the operation
4050740555
*/
4050840556
data: string;
40557+
/**
40558+
* @description Stake Object ID involved in the operation
40559+
* @example 0x23f9f0342c9ee0c7e74df0dc6655d2ae672ae08fe12dc4ac2d604074687555a3
40560+
*/
40561+
stake_id: string;
4050940562
};
4051040563
SEIStake: {
4051140564
/**
@@ -42668,6 +42721,8 @@ export interface components {
4266842721
SUIDelegatorsParam: string[];
4266942722
/** @description Comma-separated list of validator addresses */
4267042723
SUIValidatorsParam: string[];
42724+
/** @description Comma-separated list of stake object ids */
42725+
SUIStakeIdsParam: string[];
4267142726
/** @description Transaction hash */
4267242727
SUITxHashParam: string;
4267342728
/** @description Comma-separated list of validators addresses, these addresses
@@ -63775,6 +63830,8 @@ export interface operations {
6377563830
delegators?: components["parameters"]["SUIDelegatorsParam"];
6377663831
/** @description Comma-separated list of validator addresses */
6377763832
validators?: components["parameters"]["SUIValidatorsParam"];
63833+
/** @description Comma-separated list of stake object ids */
63834+
stake_ids?: components["parameters"]["SUIStakeIdsParam"];
6377863835
/** @description Comma-separated list of Kiln accounts identifiers */
6377963836
accounts?: components["parameters"]["AccountsParam"];
6378063837
};
@@ -63825,6 +63882,8 @@ export interface operations {
6382563882
delegators?: components["parameters"]["SUIDelegatorsParam"];
6382663883
/** @description Comma-separated list of validator addresses */
6382763884
validators?: components["parameters"]["SUIValidatorsParam"];
63885+
/** @description Comma-separated list of stake object ids */
63886+
stake_ids?: components["parameters"]["SUIStakeIdsParam"];
6382863887
/** @description The format of the response. Defaults to `daily` */
6382963888
format?: components["parameters"]["SUIRewardsFormatParam"];
6383063889
/** @description Comma-separated list of Kiln accounts identifiers */
@@ -63883,6 +63942,8 @@ export interface operations {
6388363942
delegators?: components["parameters"]["SUIDelegatorsParam"];
6388463943
/** @description Comma-separated list of validator addresses */
6388563944
validators?: components["parameters"]["SUIValidatorsParam"];
63945+
/** @description Comma-separated list of stake object ids */
63946+
stake_ids?: components["parameters"]["SUIStakeIdsParam"];
6388663947
/** @description Transaction hash */
6388763948
tx_hash?: components["parameters"]["SUITxHashParam"];
6388863949
/** @description Comma-separated list of Kiln accounts identifiers */
@@ -64256,6 +64317,54 @@ export interface operations {
6425664317
};
6425764318
};
6425864319
};
64320+
postSuiPrepareTx: {
64321+
parameters: {
64322+
query?: never;
64323+
header?: never;
64324+
path?: never;
64325+
cookie?: never;
64326+
};
64327+
/** @description Prepare a transaction on SUI. */
64328+
requestBody: {
64329+
content: {
64330+
"application/json; charset=utf-8": components["schemas"]["SUIPrepareTxPayload"];
64331+
};
64332+
};
64333+
responses: {
64334+
/** @description Successful operation */
64335+
200: {
64336+
headers: {
64337+
[name: string]: unknown;
64338+
};
64339+
content: {
64340+
"application/json; charset=utf-8": {
64341+
data: components["schemas"]["SUIPrepareTx"];
64342+
};
64343+
};
64344+
};
64345+
/** @description Invalid parameters */
64346+
400: {
64347+
headers: {
64348+
[name: string]: unknown;
64349+
};
64350+
content?: never;
64351+
};
64352+
/** @description Unauthorized */
64353+
401: {
64354+
headers: {
64355+
[name: string]: unknown;
64356+
};
64357+
content?: never;
64358+
};
64359+
/** @description Internal server error */
64360+
500: {
64361+
headers: {
64362+
[name: string]: unknown;
64363+
};
64364+
content?: never;
64365+
};
64366+
};
64367+
};
6425964368
getSuiTxStatus: {
6426064369
parameters: {
6426164370
query: {

0 commit comments

Comments
 (0)