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

Commit

Permalink
Upgrade to latest THORNode@1.102.0
Browse files Browse the repository at this point in the history
  • Loading branch information
veado committed Jan 9, 2023
1 parent 17e6cdb commit 2de8ba2
Show file tree
Hide file tree
Showing 71 changed files with 470 additions and 79 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- [Swap] Re-introduce slider [#2522](https://github.com/thorchain/asgardex-electron/pull/2522)
- [Wallet] Handle Binance API limits (error 429) [#2523](https://github.com/thorchain/asgardex-electron/pull/2523)
- Upgrade to latest Midgard@2.12.2 [#2524](https://github.com/thorchain/asgardex-electron/pull/2524),
- Upgrade types / endpoints to latest THORNode@1.102.0 [#2525](https://github.com/thorchain/asgardex-electron/pull/2525)

# 1.18.6 (2023-01-02)

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/release-1.101.0/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.102.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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* 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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* 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/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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* 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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* 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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* 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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* 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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* 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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* 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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* 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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* 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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
66 changes: 61 additions & 5 deletions src/renderer/types/generated/thornode/apis/TransactionsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,26 @@
* Thornode API
* Thornode REST API.
*
* The version of the OpenAPI document: 1.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* Edited by @veado to remove deprecated `txSignersOld`,
* which causes build errors due missing `TxSignersResponse` (which has been deprecated as well)
*
* Both (`txSignersOld` + `TxSignersResponse`) are not needed for ASGARDEX
*/

import { Observable } from 'rxjs';
import { BaseAPI, HttpQuery, throwIfNullOrUndefined, encodeURI } from '../runtime';
import {
TxDetailsResponse,
TxResponse,
TxSignersResponse,
TxStagesResponse,
TxStatusResponse,
} from '../models';

export interface TxRequest {
Expand All @@ -28,6 +35,21 @@ export interface TxSignersRequest {
height?: number;
}

export interface TxSignersOldRequest {
hash: string;
height?: number;
}

export interface TxStagesRequest {
hash: string;
height?: number;
}

export interface TxStatusRequest {
hash: string;
height?: number;
}

/**
* no description
*/
Expand All @@ -53,15 +75,49 @@ export class TransactionsApi extends BaseAPI {
/**
* Returns the signers for a provided inbound or outbound hash.
*/
txSigners = ({ hash, height }: TxSignersRequest): Observable<TxSignersResponse> => {
txSigners = ({ hash, height }: TxSignersRequest): Observable<TxDetailsResponse> => {
throwIfNullOrUndefined(hash, 'txSigners');

const query: HttpQuery = {};

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

return this.request<TxSignersResponse>({
path: '/thorchain/tx/{hash}/signers'.replace('{hash}', encodeURI(hash)),
return this.request<TxDetailsResponse>({
path: '/thorchain/tx/details/{hash}'.replace('{hash}', encodeURI(hash)),
method: 'GET',
query,
});
};

/**
* Returns the processing stages of a provided inbound hash.
*/
txStages = ({ hash, height }: TxStagesRequest): Observable<TxStagesResponse> => {
throwIfNullOrUndefined(hash, 'txStages');

const query: HttpQuery = {};

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

return this.request<TxStagesResponse>({
path: '/thorchain/alpha/tx/stages/{hash}'.replace('{hash}', encodeURI(hash)),
method: 'GET',
query,
});
};

/**
* Returns the status of a provided inbound hash.
*/
txStatus = ({ hash, height }: TxStatusRequest): Observable<TxStatusResponse> => {
throwIfNullOrUndefined(hash, 'txStatus');

const query: HttpQuery = {};

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

return this.request<TxStatusResponse>({
path: '/thorchain/alpha/tx/status/{hash}'.replace('{hash}', encodeURI(hash)),
method: 'GET',
query,
});
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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* 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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* 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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* 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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* 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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* 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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* 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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* 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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* 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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* 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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* 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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* 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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* 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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* 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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* 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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* 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/MimirVote.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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* 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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* 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/Node.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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* 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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* 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.101.0
* The version of the OpenAPI document: 1.102.0
* Contact: devs@thorchain.org
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Loading

0 comments on commit 2de8ba2

Please sign in to comment.