Skip to content

Commit

Permalink
Update OpenAPI schema (#176)
Browse files Browse the repository at this point in the history
* Update OpenAPI schema

* bump version 4.0.4

---------

Co-authored-by: Kiln Bot <[email protected]>
Co-authored-by: ilies <[email protected]>
  • Loading branch information
3 people authored Dec 23, 2024
1 parent 88fdef5 commit a9596eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 90 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kilnfi/sdk",
"version": "4.0.3",
"version": "4.0.4",
"autor": "Kiln <[email protected]> (https://kiln.fi)",
"license": "BUSL-1.1",
"description": "JavaScript sdk for Kiln API",
Expand Down
91 changes: 2 additions & 89 deletions src/openapi/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2029,26 +2029,6 @@ export interface paths {
patch?: never;
trace?: never;
};
"/mantra/transaction/restake-rewards": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
/**
* Restake Rewards Transaction
* @description Generates a restake rewards transaction on Mantra
*/
post: operations["postMantraRestakeRewardsTx"];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/mantra/transaction/unstake": {
parameters: {
query?: never;
Expand Down Expand Up @@ -15259,7 +15239,7 @@ export interface components {
*/
fee: Record<string, never>;
/**
* @description List of messages included in the transaction. The list contains one message for the staking delegation and one more message for rewards restaking in case specified as a parameter (`restake_rewards=true`).
* @description List of messages included in the transaction.
* @example [
* {
* "typeUrl": "/cosmos.staking.v1beta1.MsgDelegate",
Expand All @@ -15271,19 +15251,10 @@ export interface components {
* "amount": "1000000"
* }
* }
* },
* {
* "typeUrl": "/cosmos.staking.v1beta1.StakeAuthorization",
* "allowList": {
* "address": [
* "mantravaloper1qum83utf8833n4f857w98dxc5w8qlnq9eeew4g"
* ]
* },
* "AuthorizationType": 1
* }
* ]
*/
messages: (components["schemas"]["MANTRAStakeMessage"] | components["schemas"]["MANTRAStakeMessageRestake"])[];
messages: components["schemas"]["MANTRAStakeMessage"][];
/**
* @description Chain ID
* @example cosmoshub-4
Expand Down Expand Up @@ -16042,16 +16013,6 @@ export interface components {
* @example 1000000000000000000000000
*/
amount_uom: string;
/**
* @description If enabled, the rewards will be automatically restaked
* @default false
*/
restake_rewards: boolean;
/**
* @description Grantee address, this address is specific to each validator. Kiln grantee addresses are found here: https://github.com/eco-stake/validator-registry/blob/master/Kiln/chains.json https://github.com/eco-stake/validator-registry/blob/master/Interop/chains.json
* @example cosmos1u4whe0pwlgt7q7ph37qxalq2wfq4pkcdze5fmd
*/
grantee_address?: string;
};
MANTRACraftRestakeRewardsTxPayload: {
/**
Expand Down Expand Up @@ -39334,54 +39295,6 @@ export interface operations {
};
};
};
postMantraRestakeRewardsTx: {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/** @description Transaction to craft */
requestBody: {
content: {
"application/json; charset=utf-8": components["schemas"]["MANTRACraftRestakeRewardsTxPayload"];
};
};
responses: {
/** @description Successful operation */
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json; charset=utf-8": {
data: components["schemas"]["MANTRAUnsignedTx"];
};
};
};
/** @description Invalid parameters */
400: {
headers: {
[name: string]: unknown;
};
content?: never;
};
/** @description Unauthorized */
401: {
headers: {
[name: string]: unknown;
};
content?: never;
};
/** @description Internal server error */
500: {
headers: {
[name: string]: unknown;
};
content?: never;
};
};
};
postMantraUnstakeTx: {
parameters: {
query?: never;
Expand Down

0 comments on commit a9596eb

Please sign in to comment.