Skip to content

Commit 63465c8

Browse files
committed
update sdk openapi
1 parent eedb760 commit 63465c8

File tree

1 file changed

+144
-2
lines changed

1 file changed

+144
-2
lines changed

src/openapi/schema.ts

Lines changed: 144 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8394,6 +8394,26 @@ export interface paths {
83948394
patch?: never;
83958395
trace?: never;
83968396
};
8397+
"/sui/transaction/merge": {
8398+
parameters: {
8399+
query?: never;
8400+
header?: never;
8401+
path?: never;
8402+
cookie?: never;
8403+
};
8404+
get?: never;
8405+
put?: never;
8406+
/**
8407+
* Merge Stakes Transaction
8408+
* @description Craft a merge stakes transaction.
8409+
*/
8410+
post: operations["postSuiMergeStakesTx"];
8411+
delete?: never;
8412+
options?: never;
8413+
head?: never;
8414+
patch?: never;
8415+
trace?: never;
8416+
};
83978417
"/sui/transaction/decode": {
83988418
parameters: {
83998419
query?: never;
@@ -10967,6 +10987,58 @@ export interface components {
1096710987
*/
1096810988
chain_id: number;
1096910989
};
10990+
ETHUnsignedTxWithoutValue: {
10991+
/**
10992+
* @description Hash of the unsigned transaction
10993+
* @example 0x43244f90814b31dec250de24df5bb023a338790c1d5a39244cf1064cf6d98c94
10994+
*/
10995+
unsigned_tx_hash: string;
10996+
/**
10997+
* @description Unsigned serialized transaction
10998+
* @example 0x20a40259b763d549dfa1c082776a036dd8dabbe8b5e32ee721be017512dc
10999+
*/
11000+
unsigned_tx_serialized: string;
11001+
/**
11002+
* @description Contract address of the transaction recipient
11003+
* @example 0x0d4a11d5eeaac28ec3f61d100daf4d40471f1852
11004+
*/
11005+
to: string;
11006+
/**
11007+
* @description Hex encoded contract data to be sent with the transaction
11008+
* @example 0xca0bfcce0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000002600000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000309696c02ec4dbb99f714e26ff1acdf6b258d36dcbad7b8b549553bc99b94ea639cd247f31683564995afd48568c1b6edd00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020010000000000000000000000bc86717bad3f8ccf86d2882a6bc351c94580a994000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000060a3869da2ed5cc558f016d59fc5ceb0cac28e58743836aa3cf146221f1ef0b959e3cc5c589e05e171f1473596aadf36411767ad92edaae421ba0291bd7568267b3faabc3ab6ed9ddfc048ea6640370977f16f4f626a0e567a11ba25acdc520bb000000000000000000000000000000000000000000000000000000000000000012dd65914dda46639df6344701de54ac3ebe34a4b230262d3017fcd6c29954452
11009+
*/
11010+
contract_call_data: string;
11011+
/**
11012+
* @description Amount of ETH to send in wei
11013+
* @example 0
11014+
*/
11015+
amount_wei: string;
11016+
/**
11017+
* @description Nonce of the transaction
11018+
* @example 1
11019+
*/
11020+
nonce: number;
11021+
/**
11022+
* @description Gas limit of the transaction in gas units. We provide a default value of two times the estimated gas limit
11023+
* @example 140244
11024+
*/
11025+
gas_limit: number;
11026+
/**
11027+
* @description Max priority fee per gas in wei. This is basically the miner fee. We provide a default value of 2 gwei so transactions are mined faster.
11028+
* @example 2000000000
11029+
*/
11030+
max_priority_fee_per_gas_wei: string;
11031+
/**
11032+
* @description Max fee per gas in wei. This is the maxium amount of gas that you are willing to pay for the transaction.
11033+
* @example 383687469748
11034+
*/
11035+
max_fee_per_gas_wei: string;
11036+
/**
11037+
* @description Chain ID of the network
11038+
* @example 1
11039+
*/
11040+
chain_id: number;
11041+
};
1097011042
DefiStake: {
1097111043
/**
1097211044
* @description Vault id of the stake (chainID_vaultAddress)
@@ -19742,6 +19814,11 @@ export interface components {
1974219814
* @example 84a500818258203d244a2821a0cb32df614cf4380e6c6e0114bc7c734cfa2a3940498ad86865e100018182583900491a1d0747fa91f319625e39076232ad4cc274e3257f345ced82dbb2a8565045c49103b521a3827ff64b98889350a22fa9a0b5ccf72b279b1b0000000255928400021a000493e0031a01ad4330048282008200581ca8565045c49103b521a3827ff64b98889350a22fa9a0b5ccf72b279b83028200581ca8565045c49103b521a3827ff64b98889350a22fa9a0b5ccf72b279b581ce54d5f9340218a9816cafafc92dc3d5212b6d149ce75e9637cbcd7e0a0f5f6
1974319815
*/
1974419816
unsigned_tx_serialized: string;
19817+
/**
19818+
* @description Unsigned serialized transaction body
19819+
* @example a500d90102818258201a757d037e0e3e98e50a1ddfea6f7b543955291e9d939b75d4cc50c683453aa6000181825839018709f0cc91386f337fbb9bdbe0f0e29d5488151e3e464114aca772622be7fc4db600dad154fb34c2893c75cb736715d646beff0eefc64c751a00c1c960021a000493e0031a0a094b0b04d901028282008200581c2be7fc4db600dad154fb34c2893c75cb736715d646beff0eefc64c75840a8200581c2be7fc4db600dad154fb34c2893c75cb736715d646beff0eefc64c75581c78da8fa2f5089964963a0ab7ad1402e8c656f203bef622cf9f5ee3c68102
19820+
*/
19821+
unsigned_tx_body_serialized: string;
1974519822
/**
1974619823
* @description List of inputs to spend
1974719824
* @example [
@@ -40038,7 +40115,7 @@ export interface components {
4003840115
* @example active
4003940116
* @enum {string}
4004040117
*/
40041-
state: "active" | "inactive";
40118+
state: "active" | "activating";
4004240119
/**
4004340120
* @description Total rewards accumulated by this stake since its first ever delegation
4004440121
* @example 9020446847418
@@ -40446,6 +40523,23 @@ export interface components {
4044640523
*/
4044740524
sender: string;
4044840525
};
40526+
SUIMergeStakesTxPayload: {
40527+
/**
40528+
* @description Destination Stake ID to merge into
40529+
* @example 0x73f9d77dd3e604a2ae6f9edc2e7c7df9ecda79202b038b315e79b74e93c09efd
40530+
*/
40531+
destination_stake_id: string;
40532+
/**
40533+
* @description Source Stake ID to merge from
40534+
* @example 0x92c7bf9914897e8878e559c19a6cffd22e6a569a6dd4d26f8e82e0f2ad1873d6
40535+
*/
40536+
source_stake_id: string;
40537+
/**
40538+
* @description Sender address
40539+
* @example 0x2ade594485fb795616b74156c91097ec517a05ac488364dd3ad1ec5f536db3f4
40540+
*/
40541+
sender: string;
40542+
};
4044940543
SUIBroadcastTxPayload: {
4045040544
/**
4045140545
* Format: base64
@@ -43818,7 +43912,7 @@ export interface operations {
4381843912
};
4381943913
content: {
4382043914
"application/json; charset=utf-8": {
43821-
data: components["schemas"]["ETHUnsignedTx"];
43915+
data: components["schemas"]["ETHUnsignedTxWithoutValue"];
4382243916
};
4382343917
};
4382443918
};
@@ -64295,6 +64389,54 @@ export interface operations {
6429564389
};
6429664390
};
6429764391
};
64392+
postSuiMergeStakesTx: {
64393+
parameters: {
64394+
query?: never;
64395+
header?: never;
64396+
path?: never;
64397+
cookie?: never;
64398+
};
64399+
/** @description Generate a merge stakes transaction on SUI. */
64400+
requestBody: {
64401+
content: {
64402+
"application/json; charset=utf-8": components["schemas"]["SUIMergeStakesTxPayload"];
64403+
};
64404+
};
64405+
responses: {
64406+
/** @description Successful operation */
64407+
200: {
64408+
headers: {
64409+
[name: string]: unknown;
64410+
};
64411+
content: {
64412+
"application/json; charset=utf-8": {
64413+
data: components["schemas"]["SUITx"];
64414+
};
64415+
};
64416+
};
64417+
/** @description Invalid parameters */
64418+
400: {
64419+
headers: {
64420+
[name: string]: unknown;
64421+
};
64422+
content?: never;
64423+
};
64424+
/** @description Unauthorized */
64425+
401: {
64426+
headers: {
64427+
[name: string]: unknown;
64428+
};
64429+
content?: never;
64430+
};
64431+
/** @description Internal server error */
64432+
500: {
64433+
headers: {
64434+
[name: string]: unknown;
64435+
};
64436+
content?: never;
64437+
};
64438+
};
64439+
};
6429864440
postSuiDecodeTx: {
6429964441
parameters: {
6430064442
query?: never;

0 commit comments

Comments
 (0)