Skip to content

Commit

Permalink
chore/update-thornode-mayanode (#1326)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorian1te authored Jan 7, 2025
1 parent 8e2dc13 commit 6ceedf7
Show file tree
Hide file tree
Showing 12 changed files with 1,104 additions and 91 deletions.
6 changes: 6 additions & 0 deletions .changeset/clean-pets-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@xchainjs/xchain-mayanode': patch
'@xchainjs/xchain-thornode': patch
---

Updated to the latest api spec
81 changes: 80 additions & 1 deletion packages/xchain-mayanode/src/generated/mayanodeApi/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Mayanode API
* Mayanode REST API.
*
* The version of the OpenAPI document: 1.110.0
* The version of the OpenAPI document: 1.117.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -1129,12 +1129,36 @@ export interface Mayaname {
* @memberof Mayaname
*/
'preferred_asset': string;
/**
* Amount of CACAO currently required to swap to preferred asset (this is variable based on outbound fee of the asset).
* @type {string}
* @memberof Mayaname
*/
'preferred_asset_swap_threshold_cacao'?: string;
/**
* Amount of CACAO currently accrued by this thorname in affiliate fees waiting to be swapped to preferred asset.
* @type {string}
* @memberof Mayaname
*/
'affiliate_collector_cacao'?: string;
/**
*
* @type {Array<MayanameAlias>}
* @memberof Mayaname
*/
'aliases': Array<MayanameAlias>;
/**
* Affiliate basis points for calculating affiliate fees, which are applied as the default basis points when the MAYAName is listed as an affiliate in swap memo.
* @type {number}
* @memberof Mayaname
*/
'affiliate_bps'?: number;
/**
* List of subaffiliates and the corresponding affiliate basis points. If a MAYAName is specified as an affiliate in a swap memo, the shares of the affiliate fee are distributed among the listed subaffiliates based on the basis points assigned to each subaffiliate.
* @type {Array<MayanameSubaffiliate>}
* @memberof Mayaname
*/
'subaffiliates'?: Array<MayanameSubaffiliate>;
}
/**
*
Expand Down Expand Up @@ -1193,6 +1217,25 @@ export interface MayanameAlias {
*/
export interface MayanameResponse extends Array<Mayaname1> {
}
/**
*
* @export
* @interface MayanameSubaffiliate
*/
export interface MayanameSubaffiliate {
/**
*
* @type {string}
* @memberof MayanameSubaffiliate
*/
'name'?: string;
/**
*
* @type {number}
* @memberof MayanameSubaffiliate
*/
'bps'?: number;
}
/**
*
* @export
Expand Down Expand Up @@ -1566,6 +1609,12 @@ export interface NodeBondProvider {
* @memberof NodeBondProvider
*/
'reward': string;
/**
* Pools the Bond Provider is bonded from to that Node Address
* @type {{ [key: string]: string; }}
* @memberof NodeBondProvider
*/
'pools': { [key: string]: string; };
}
/**
*
Expand Down Expand Up @@ -2008,6 +2057,12 @@ export interface Pool {
* @memberof Pool
*/
'synth_mint_paused': boolean;
/**
* whether LPs can bond liquidity in the pool to a node
* @type {boolean}
* @memberof Pool
*/
'bondable': boolean;
}
/**
*
Expand Down Expand Up @@ -2886,6 +2941,24 @@ export interface TxOutItem {
* @memberof TxOutItem
*/
'out_hash'?: string;
/**
* the contract address if an aggregator is specified for a non-mayachain SwapOut
* @type {string}
* @memberof TxOutItem
*/
'aggregator'?: string;
/**
* the desired output asset of the aggregator SwapOut
* @type {string}
* @memberof TxOutItem
*/
'aggregator_target_asset'?: string;
/**
* the minimum amount of SwapOut asset to receive (else cancelling the SwapOut and receiving mayachain\'s output)
* @type {string}
* @memberof TxOutItem
*/
'aggregator_target_limit'?: string;
/**
*
* @type {number}
Expand Down Expand Up @@ -3232,6 +3305,12 @@ export interface VaultPubkeysResponse {
* @memberof VaultPubkeysResponse
*/
'yggdrasil': Array<VaultInfo>;
/**
*
* @type {Array<VaultInfo>}
* @memberof VaultPubkeysResponse
*/
'inactive': Array<VaultInfo>;
}
/**
*
Expand Down
2 changes: 1 addition & 1 deletion packages/xchain-mayanode/src/generated/mayanodeApi/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Mayanode API
* Mayanode REST API.
*
* The version of the OpenAPI document: 1.110.0
* The version of the OpenAPI document: 1.117.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 @@ -4,7 +4,7 @@
* Mayanode API
* Mayanode REST API.
*
* The version of the OpenAPI document: 1.110.0
* The version of the OpenAPI document: 1.117.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 @@ -4,7 +4,7 @@
* Mayanode API
* Mayanode REST API.
*
* The version of the OpenAPI document: 1.110.0
* The version of the OpenAPI document: 1.117.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 @@ -4,7 +4,7 @@
* Mayanode API
* Mayanode REST API.
*
* The version of the OpenAPI document: 1.110.0
* The version of the OpenAPI document: 1.117.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 packages/xchain-thornode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"lint": "eslint \"{src,__tests__}/**/*.ts\" --fix --max-warnings 0",
"test": "jest --passWithNoTests",
"generate:types": "yarn clean:types:thornode && yarn generate:types:thornode",
"generate:types:thornode": "TS_POST_PROCESS_FILE=./node_modules/.bin/prettier openapi-generator-cli generate -i https://gitlab.com/thorchain/thornode/-/raw/release-1.134.0/openapi/openapi.yaml -g typescript-axios -o ./src/generated/thornodeApi --skip-validate-spec --generate-alias-as-model",
"generate:types:thornode": "TS_POST_PROCESS_FILE=./node_modules/.bin/prettier openapi-generator-cli generate -i https://thornode.ninerealms.com/thorchain/doc/openapi.yaml -g typescript-axios -o ./src/generated/thornodeApi --skip-validate-spec --generate-alias-as-model",
"clean:types:thornode": "rimraf ./src/generated/thornodeApi"
},
"dependencies": {
Expand Down
Loading

0 comments on commit 6ceedf7

Please sign in to comment.