Skip to content

Commit

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

* export `FireblocksIntegration`

* bump to 1.12

---------

Co-authored-by: Kiln Bot <[email protected]>
Co-authored-by: Martin Saldinger <[email protected]>
  • Loading branch information
3 people committed Nov 5, 2024
1 parent 2de01e7 commit 41d2ebb
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 25 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": "3.1.11",
"version": "3.1.12",
"autor": "Kiln <[email protected]> (https://kiln.fi)",
"license": "BUSL-1.1",
"description": "JavaScript sdk for Kiln API",
Expand Down
6 changes: 4 additions & 2 deletions src/kiln.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import createClient, { type Client, type ClientOptions } from 'openapi-fetch';
import { FireblocksService } from './fireblocks.js';
import type { paths } from './openapi/schema.js';

export * from './validators.js';
export * from './openapi/schema.js';
export * from './utils.js';
import createClient, { type Client, type ClientOptions } from 'openapi-fetch';
import { FireblocksService } from './fireblocks.js';
export type { FireblocksIntegration } from './fireblocks.js';

type Config = {
baseUrl: string;
Expand Down
44 changes: 22 additions & 22 deletions src/openapi/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23605,7 +23605,7 @@ export interface components {
* "delegatorAddress": "kava1u9xeaqdjz3kky2ymdhdsn0ra5uy9tc3e93u460",
* "validatorAddress": "kavavaloper1u9xeaqdjz3kky2ymdhdsn0ra5uy9tc3ep3yfhe",
* "amount": {
* "denom": "akava",
* "denom": "ukava",
* "amount": "1000000"
* }
* }
Expand Down Expand Up @@ -23662,7 +23662,7 @@ export interface components {
* @example {
* "amount": [
* {
* "denom": "akava",
* "denom": "ukava",
* "amount": "5000"
* }
* ],
Expand All @@ -23679,7 +23679,7 @@ export interface components {
* "delegatorAddress": "kava1u9xeaqdjz3kky2ymdhdsn0ra5uy9tc3e93u460",
* "validatorAddress": "kavavaloper1u9xeaqdjz3kky2ymdhdsn0ra5uy9tc3ep3yfhe",
* "amount": {
* "denom": "akava",
* "denom": "ukava",
* "amount": "1000000"
* }
* }
Expand Down Expand Up @@ -23732,7 +23732,7 @@ export interface components {
* "delegatorAddress": "kava1u9xeaqdjz3kky2ymdhdsn0ra5uy9tc3e93u460",
* "validatorAddress": "kavavaloper1u9xeaqdjz3kky2ymdhdsn0ra5uy9tc3ep3yfhe",
* "amount": {
* "denom": "akava",
* "denom": "ukava",
* "amount": "1000000"
* }
* }
Expand All @@ -23744,7 +23744,7 @@ export interface components {
* @example {
* "amount": [
* {
* "denom": "akava",
* "denom": "ukava",
* "amount": "5000"
* }
* ],
Expand Down Expand Up @@ -23829,7 +23829,7 @@ export interface components {
* },
* {
* "key": "amount",
* "value": "5000akava"
* "value": "5000ukava"
* }
* ]
* },
Expand All @@ -23842,7 +23842,7 @@ export interface components {
* },
* {
* "key": "amount",
* "value": "5000akava"
* "value": "5000ukava"
* }
* ]
* },
Expand All @@ -23859,7 +23859,7 @@ export interface components {
* },
* {
* "key": "amount",
* "value": "5000akava"
* "value": "5000ukava"
* }
* ]
* },
Expand All @@ -23877,7 +23877,7 @@ export interface components {
* "attributes": [
* {
* "key": "fee",
* "value": "5000akava"
* "value": "5000ukava"
* },
* {
* "key": "fee_payer",
Expand Down Expand Up @@ -23921,7 +23921,7 @@ export interface components {
* },
* {
* "key": "amount",
* "value": "5akava"
* "value": "5ukava"
* }
* ]
* },
Expand All @@ -23934,7 +23934,7 @@ export interface components {
* },
* {
* "key": "amount",
* "value": "5akava"
* "value": "5ukava"
* }
* ]
* },
Expand All @@ -23951,7 +23951,7 @@ export interface components {
* },
* {
* "key": "amount",
* "value": "5akava"
* "value": "5ukava"
* }
* ]
* },
Expand All @@ -23969,7 +23969,7 @@ export interface components {
* "attributes": [
* {
* "key": "amount",
* "value": "5akava"
* "value": "5ukava"
* },
* {
* "key": "validator",
Expand All @@ -23986,7 +23986,7 @@ export interface components {
* },
* {
* "key": "amount",
* "value": "100000akava"
* "value": "100000ukava"
* }
* ]
* },
Expand All @@ -23999,7 +23999,7 @@ export interface components {
* },
* {
* "key": "amount",
* "value": "100000akava"
* "value": "100000ukava"
* }
* ]
* },
Expand All @@ -24012,7 +24012,7 @@ export interface components {
* },
* {
* "key": "amount",
* "value": "100000akava"
* "value": "100000ukava"
* },
* {
* "key": "new_shares",
Expand All @@ -24034,7 +24034,7 @@ export interface components {
* ]
* }
* ],
* "rawLog": "[{\"events\":[{\"type\":\"coin_received\",\"attributes\":[{\"key\":\"receiver\",\"value\":\"kava19c9fdh488vqjclltwp68jm50ydwyh36jqeatev\"},{\"key\":\"amount\",\"value\":\"5akava\"},{\"key\":\"receiver\",\"value\":\"kava1fl48vsnmsdzcv85q5d2q4z5ajdha8yu34mf0eh\"},{\"key\":\"amount\",\"value\":\"100000akava\"}]},{\"type\":\"coin_spent\",\"attributes\":[{\"key\":\"spender\",\"value\":\"kava1jv65s3grqf6v6jl3dp4t6c9t9rk99cd88lyufl\"},{\"key\":\"amount\",\"value\":\"5akava\"},{\"key\":\"spender\",\"value\":\"kava19c9fdh488vqjclltwp68jm50ydwyh36jqeatev\"},{\"key\":\"amount\",\"value\":\"100000akava\"}]},{\"type\":\"delegate\",\"attributes\":[{\"key\":\"validator\",\"value\":\"kavavaloper1u9xeaqdjz3kky2ymdhdsn0ra5uy9tc3ep3yfhe\"},{\"key\":\"amount\",\"value\":\"100000akava\"},{\"key\":\"new_shares\",\"value\":\"100000.000000000000000000\"}]},{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"/cosmos.staking.v1beta1.MsgDelegate\"},{\"key\":\"sender\",\"value\":\"kava1jv65s3grqf6v6jl3dp4t6c9t9rk99cd88lyufl\"},{\"key\":\"module\",\"value\":\"staking\"},{\"key\":\"sender\",\"value\":\"kava19c9fdh488vqjclltwp68jm50ydwyh36jqeatev\"}]},{\"type\":\"transfer\",\"attributes\":[{\"key\":\"recipient\",\"value\":\"kava19c9fdh488vqjclltwp68jm50ydwyh36jqeatev\"},{\"key\":\"sender\",\"value\":\"kava1jv65s3grqf6v6jl3dp4t6c9t9rk99cd88lyufl\"},{\"key\":\"amount\",\"value\":\"5akava\"}]},{\"type\":\"withdraw_rewards\",\"attributes\":[{\"key\":\"amount\",\"value\":\"5akava\"},{\"key\":\"validator\",\"value\":\"kavavaloper1u9xeaqdjz3kky2ymdhdsn0ra5uy9tc3ep3yfhe\"}]}]}]",
* "rawLog": "[{\"events\":[{\"type\":\"coin_received\",\"attributes\":[{\"key\":\"receiver\",\"value\":\"kava19c9fdh488vqjclltwp68jm50ydwyh36jqeatev\"},{\"key\":\"amount\",\"value\":\"5ukava\"},{\"key\":\"receiver\",\"value\":\"kava1fl48vsnmsdzcv85q5d2q4z5ajdha8yu34mf0eh\"},{\"key\":\"amount\",\"value\":\"100000ukava\"}]},{\"type\":\"coin_spent\",\"attributes\":[{\"key\":\"spender\",\"value\":\"kava1jv65s3grqf6v6jl3dp4t6c9t9rk99cd88lyufl\"},{\"key\":\"amount\",\"value\":\"5ukava\"},{\"key\":\"spender\",\"value\":\"kava19c9fdh488vqjclltwp68jm50ydwyh36jqeatev\"},{\"key\":\"amount\",\"value\":\"100000ukava\"}]},{\"type\":\"delegate\",\"attributes\":[{\"key\":\"validator\",\"value\":\"kavavaloper1u9xeaqdjz3kky2ymdhdsn0ra5uy9tc3ep3yfhe\"},{\"key\":\"amount\",\"value\":\"100000ukava\"},{\"key\":\"new_shares\",\"value\":\"100000.000000000000000000\"}]},{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"/cosmos.staking.v1beta1.MsgDelegate\"},{\"key\":\"sender\",\"value\":\"kava1jv65s3grqf6v6jl3dp4t6c9t9rk99cd88lyufl\"},{\"key\":\"module\",\"value\":\"staking\"},{\"key\":\"sender\",\"value\":\"kava19c9fdh488vqjclltwp68jm50ydwyh36jqeatev\"}]},{\"type\":\"transfer\",\"attributes\":[{\"key\":\"recipient\",\"value\":\"kava19c9fdh488vqjclltwp68jm50ydwyh36jqeatev\"},{\"key\":\"sender\",\"value\":\"kava1jv65s3grqf6v6jl3dp4t6c9t9rk99cd88lyufl\"},{\"key\":\"amount\",\"value\":\"5ukava\"}]},{\"type\":\"withdraw_rewards\",\"attributes\":[{\"key\":\"amount\",\"value\":\"5ukava\"},{\"key\":\"validator\",\"value\":\"kavavaloper1u9xeaqdjz3kky2ymdhdsn0ra5uy9tc3ep3yfhe\"}]}]}]",
* "tx": {
* "0": 10,
* "1": 160,
Expand Down Expand Up @@ -24392,7 +24392,7 @@ export interface components {
* @description Amount to unstake in uKAVA. Omit to unstake all the delegated amount
* @example 1000000000000000000000000
*/
amount_akava?: string;
amount_ukava?: string;
};
KAVACraftRedelegateTxPayload: {
/**
Expand Down Expand Up @@ -24420,7 +24420,7 @@ export interface components {
* @description Amount to redelegate in uKAVA
* @example 1000000000000000000000000
*/
amount_akava?: string;
amount_ukava?: string;
};
KAVACraftStakeTxPayload: {
/**
Expand All @@ -24440,10 +24440,10 @@ export interface components {
*/
validator: string;
/**
* @description Amount to stake in akava
* @description Amount to stake in ukava
* @example 1000000000000000000000000
*/
amount_akava: string;
amount_ukava: string;
};
KAVACraftRestakeRewardsTxPayload: {
/**
Expand Down Expand Up @@ -24946,7 +24946,7 @@ export interface components {
* "fee": {
* "amount": [
* {
* "denom": "akava",
* "denom": "ukava",
* "amount": "5000"
* }
* ],
Expand Down

0 comments on commit 41d2ebb

Please sign in to comment.