Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Commit

Permalink
Upgrade types/endpoints to latest [email protected] (#2475)
Browse files Browse the repository at this point in the history
+ update CHANGELOG
  • Loading branch information
veado authored Dec 9, 2022
1 parent 384e349 commit 9963659
Show file tree
Hide file tree
Showing 65 changed files with 197 additions and 73 deletions.
15 changes: 13 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
# 1.19.0 (2022-11-xx)
# 1.18.5 (2022-12-xx)

## Add

- [Epic] Savers [#2431](https://github.com/thorchain/asgardex-electron/issues/2431), [#2450](https://github.com/thorchain/asgardex-electron/pull/2450)
- Introduce `ActionButton` [#2452](https://github.com/thorchain/asgardex-electron/pull/2452)
- [Swap] Show balances [#2446](https://github.com/thorchain/asgardex-electron/issues/2446)
- ETH: Use depositWithExpiry to deposit [#2472](https://github.com/thorchain/asgardex-electron/issues/2472)
- Add 'x-client-id' header to send ASGDX' identifier for any request to 9R servers [#2463](https://github.com/thorchain/asgardex-electron/issues/2463), [#2464](https://github.com/thorchain/asgardex-electron/pull/2464), [#2474](https://github.com/thorchain/asgardex-electron/pull/2474)
- [Savers] Routes [#2450](https://github.com/thorchain/asgardex-electron/pull/2450)
- Add wallet actions to assets table [#2455](https://github.com/thorchain/asgardex-electron/pull/2455)
- Savers overview [#2466](https://github.com/thorchain/asgardex-electron/pull/2466), [#2470](https://github.com/thorchain/asgardex-electron/pull/2470)

## Update

- Add/update buttons components: `Swap|Savers|Back|ManageButton` [#2451](https://github.com/thorchain/asgardex-electron/pull/2451)
- Upgrade to latest [email protected] [#2469](https://github.com/thorchain/asgardex-electron/pull/2469),
- Upgrade to latest [email protected] [#2467](https://github.com/thorchain/asgardex-electron/pull/2467)
- Upgrade types / endpoints to latest [email protected] [#2468](https://github.com/thorchain/asgardex-electron/pull/2468)
- Refactor PoolsOverview [#2465](https://github.com/thorchain/asgardex-electron/pull/2465)
- Translation ru3 dec by @TreefeedXavier [#2471](https://github.com/thorchain/asgardex-electron/pull/2471)
- Upgrade types / endpoints to latest [email protected] [#2468](https://github.com/thorchain/asgardex-electron/pull/2468)
- Upgrade types / endpoints to latest [email protected] [#2475](https://github.com/thorchain/asgardex-electron/pull/2475)

## Fix

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"generate:types": "yarn generate:types:midgard && yarn generate:types:thornode",
"generate:types:midgard": "yarn clean:types:midgard && TS_POST_PROCESS_FILE=./node_modules/.bin/prettier openapi-generator-cli generate -i https://midgard.ninerealms.com/v2/swagger.json -g typescript-rxjs -o ./src/renderer/types/generated/midgard --reserved-words-mappings in=in --enable-post-process-file",
"clean:types:midgard": "rimraf ./src/renderer/types/generated/midgard",
"generate:types:thornode": "yarn clean:types:thornode && TS_POST_PROCESS_FILE=./node_modules/.bin/prettier openapi-generator-cli generate -i https://gitlab.com/thorchain/thornode/-/raw/653029bc41dd928b702237552d29e10d094c7ad4/openapi/openapi.yaml -g typescript-rxjs -o ./src/renderer/types/generated/thornode --enable-post-process-file --skip-validate-spec",
"generate:types:thornode": "yarn clean:types:thornode && TS_POST_PROCESS_FILE=./node_modules/.bin/prettier openapi-generator-cli generate -i https://gitlab.com/thorchain/thornode/-/raw/release-1.101.0/openapi/openapi.yaml -g typescript-rxjs -o ./src/renderer/types/generated/thornode --enable-post-process-file --skip-validate-spec",
"clean:types:thornode": "rimraf ./src/renderer/types/generated/thornode",
"storybook": "sb dev -p 9009 --no-manager-cache",
"build-storybook": "sb build",
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/types/generated/thornode/apis/HealthApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Thornode API
* Thornode REST API.
*
* The version of the OpenAPI document: 1.100.0
* The version of the OpenAPI document: 1.101.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Thornode API
* Thornode REST API.
*
* The version of the OpenAPI document: 1.100.0
* The version of the OpenAPI document: 1.101.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -15,6 +15,7 @@ import { Observable } from 'rxjs';
import { BaseAPI, HttpQuery, throwIfNullOrUndefined, encodeURI } from '../runtime';
import {
LiquidityProvider,
LiquidityProviderSummary,
} from '../models';

export interface LiquidityProviderRequest {
Expand All @@ -36,15 +37,15 @@ export class LiquidityProvidersApi extends BaseAPI {
/**
* Returns the liquidity provider information for an address and asset.
*/
liquidityProvider = ({ asset, address, height }: LiquidityProviderRequest): Observable<Array<LiquidityProvider>> => {
liquidityProvider = ({ asset, address, height }: LiquidityProviderRequest): Observable<LiquidityProvider> => {
throwIfNullOrUndefined(asset, 'liquidityProvider');
throwIfNullOrUndefined(address, 'liquidityProvider');

const query: HttpQuery = {};

if (height != null) { query['height'] = height; }

return this.request<Array<LiquidityProvider>>({
return this.request<LiquidityProvider>({
path: '/thorchain/pool/{asset}/liquidity_provider/{address}'.replace('{asset}', encodeURI(asset)).replace('{address}', encodeURI(address)),
method: 'GET',
query,
Expand All @@ -54,14 +55,14 @@ export class LiquidityProvidersApi extends BaseAPI {
/**
* Returns all liquidity provider information for an asset.
*/
liquidityProviders = ({ asset, height }: LiquidityProvidersRequest): Observable<Array<LiquidityProvider>> => {
liquidityProviders = ({ asset, height }: LiquidityProvidersRequest): Observable<Array<LiquidityProviderSummary>> => {
throwIfNullOrUndefined(asset, 'liquidityProviders');

const query: HttpQuery = {};

if (height != null) { query['height'] = height; }

return this.request<Array<LiquidityProvider>>({
return this.request<Array<LiquidityProviderSummary>>({
path: '/thorchain/pool/{asset}/liquidity_providers'.replace('{asset}', encodeURI(asset)),
method: 'GET',
query,
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/types/generated/thornode/apis/MimirApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Thornode API
* Thornode REST API.
*
* The version of the OpenAPI document: 1.100.0
* The version of the OpenAPI document: 1.101.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/types/generated/thornode/apis/NetworkApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Thornode API
* Thornode REST API.
*
* The version of the OpenAPI document: 1.100.0
* The version of the OpenAPI document: 1.101.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/types/generated/thornode/apis/NodesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Thornode API
* Thornode REST API.
*
* The version of the OpenAPI document: 1.100.0
* The version of the OpenAPI document: 1.101.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/types/generated/thornode/apis/POLApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Thornode API
* Thornode REST API.
*
* The version of the OpenAPI document: 1.100.0
* The version of the OpenAPI document: 1.101.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/types/generated/thornode/apis/PoolsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Thornode API
* Thornode REST API.
*
* The version of the OpenAPI document: 1.100.0
* The version of the OpenAPI document: 1.101.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/types/generated/thornode/apis/QueueApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Thornode API
* Thornode REST API.
*
* The version of the OpenAPI document: 1.100.0
* The version of the OpenAPI document: 1.101.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/types/generated/thornode/apis/QuoteApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Thornode API
* Thornode REST API.
*
* The version of the OpenAPI document: 1.100.0
* The version of the OpenAPI document: 1.101.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/types/generated/thornode/apis/SaversApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Thornode API
* Thornode REST API.
*
* The version of the OpenAPI document: 1.100.0
* The version of the OpenAPI document: 1.101.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/types/generated/thornode/apis/TSSApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Thornode API
* Thornode REST API.
*
* The version of the OpenAPI document: 1.100.0
* The version of the OpenAPI document: 1.101.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/types/generated/thornode/apis/ThornamesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Thornode API
* Thornode REST API.
*
* The version of the OpenAPI document: 1.100.0
* The version of the OpenAPI document: 1.101.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Thornode API
* Thornode REST API.
*
* The version of the OpenAPI document: 1.100.0
* The version of the OpenAPI document: 1.101.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/types/generated/thornode/apis/VaultsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Thornode API
* Thornode REST API.
*
* The version of the OpenAPI document: 1.100.0
* The version of the OpenAPI document: 1.101.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Thornode API
* Thornode REST API.
*
* The version of the OpenAPI document: 1.100.0
* The version of the OpenAPI document: 1.101.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Thornode API
* Thornode REST API.
*
* The version of the OpenAPI document: 1.100.0
* The version of the OpenAPI document: 1.101.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/types/generated/thornode/models/Coin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Thornode API
* Thornode REST API.
*
* The version of the OpenAPI document: 1.100.0
* The version of the OpenAPI document: 1.101.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Thornode API
* Thornode REST API.
*
* The version of the OpenAPI document: 1.100.0
* The version of the OpenAPI document: 1.101.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Thornode API
* Thornode REST API.
*
* The version of the OpenAPI document: 1.100.0
* The version of the OpenAPI document: 1.101.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Thornode API
* Thornode REST API.
*
* The version of the OpenAPI document: 1.100.0
* The version of the OpenAPI document: 1.101.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Thornode API
* Thornode REST API.
*
* The version of the OpenAPI document: 1.100.0
* The version of the OpenAPI document: 1.101.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Thornode API
* Thornode REST API.
*
* The version of the OpenAPI document: 1.100.0
* The version of the OpenAPI document: 1.101.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Thornode API
* Thornode REST API.
*
* The version of the OpenAPI document: 1.100.0
* The version of the OpenAPI document: 1.101.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/types/generated/thornode/models/LastBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Thornode API
* Thornode REST API.
*
* The version of the OpenAPI document: 1.100.0
* The version of the OpenAPI document: 1.101.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
29 changes: 27 additions & 2 deletions src/renderer/types/generated/thornode/models/LiquidityProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Thornode API
* Thornode REST API.
*
* The version of the OpenAPI document: 1.100.0
* The version of the OpenAPI document: 1.101.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -60,7 +60,7 @@ export interface LiquidityProvider {
* @type {string}
* @memberof LiquidityProvider
*/
pending_tx_Id?: string;
pending_tx_id?: string;
/**
* @type {string}
* @memberof LiquidityProvider
Expand All @@ -71,4 +71,29 @@ export interface LiquidityProvider {
* @memberof LiquidityProvider
*/
asset_deposit_value: string;
/**
* @type {string}
* @memberof LiquidityProvider
*/
rune_redeem_value: string;
/**
* @type {string}
* @memberof LiquidityProvider
*/
asset_redeem_value: string;
/**
* @type {string}
* @memberof LiquidityProvider
*/
luvi_deposit_value: string;
/**
* @type {string}
* @memberof LiquidityProvider
*/
luvi_redeem_value: string;
/**
* @type {string}
* @memberof LiquidityProvider
*/
luvi_growth_pct: string;
}
Loading

0 comments on commit 9963659

Please sign in to comment.