@shapeshiftoss/unchained-client 10.14.11 → 10.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/cosmossdk/thorchain/parser/__tests__/thorchain.test.js +1 -1
- package/dist/cjs/cosmossdk/thorchain/parser/rfox.js +1 -1
- package/dist/cjs/evm/arbitrum/parser/index.js +2 -2
- package/dist/cjs/evm/ethereum/parser/index.js +6 -0
- package/dist/cjs/generated/ethereum/apis/V1Api.d.ts +15 -0
- package/dist/cjs/generated/ethereum/apis/V1Api.js +24 -0
- package/dist/cjs/generated/mayachain/apis/V1Api.d.ts +1 -13
- package/dist/cjs/generated/mayachain/apis/V1Api.js +0 -27
- package/dist/cjs/generated/mayachain/models/index.d.ts +0 -2
- package/dist/cjs/generated/mayachain/models/index.js +0 -2
- package/dist/cjs/generated/thorchain/apis/V1Api.d.ts +1 -25
- package/dist/cjs/generated/thorchain/apis/V1Api.js +0 -54
- package/dist/cjs/generated/thorchain/models/index.d.ts +0 -3
- package/dist/cjs/generated/thorchain/models/index.js +0 -3
- package/dist/cjs/tron/__tests__/api.test.d.ts +1 -0
- package/dist/cjs/tron/__tests__/api.test.js +425 -0
- package/dist/cjs/tron/api.d.ts +42 -15
- package/dist/cjs/tron/api.js +222 -78
- package/dist/cjs/tron/types.d.ts +4 -0
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/cosmossdk/thorchain/parser/__tests__/thorchain.test.js +2 -2
- package/dist/esm/cosmossdk/thorchain/parser/rfox.js +2 -2
- package/dist/esm/evm/arbitrum/parser/index.js +3 -3
- package/dist/esm/evm/ethereum/parser/index.js +7 -1
- package/dist/esm/generated/ethereum/apis/V1Api.d.ts +15 -0
- package/dist/esm/generated/ethereum/apis/V1Api.js +24 -0
- package/dist/esm/generated/mayachain/apis/V1Api.d.ts +1 -13
- package/dist/esm/generated/mayachain/apis/V1Api.js +1 -28
- package/dist/esm/generated/mayachain/models/index.d.ts +0 -2
- package/dist/esm/generated/mayachain/models/index.js +0 -2
- package/dist/esm/generated/thorchain/apis/V1Api.d.ts +1 -25
- package/dist/esm/generated/thorchain/apis/V1Api.js +1 -55
- package/dist/esm/generated/thorchain/models/index.d.ts +0 -3
- package/dist/esm/generated/thorchain/models/index.js +0 -3
- package/dist/esm/tron/__tests__/api.test.d.ts +1 -0
- package/dist/esm/tron/__tests__/api.test.js +423 -0
- package/dist/esm/tron/api.d.ts +42 -15
- package/dist/esm/tron/api.js +220 -77
- package/dist/esm/tron/types.d.ts +4 -0
- package/package.json +5 -5
- package/dist/cjs/generated/mayachain/models/AffiliateFee.d.ts +0 -67
- package/dist/cjs/generated/mayachain/models/AffiliateFee.js +0 -63
- package/dist/cjs/generated/mayachain/models/AffiliateFees.d.ts +0 -32
- package/dist/cjs/generated/mayachain/models/AffiliateFees.js +0 -52
- package/dist/cjs/generated/thorchain/models/AffiliateFee.d.ts +0 -67
- package/dist/cjs/generated/thorchain/models/AffiliateFee.js +0 -63
- package/dist/cjs/generated/thorchain/models/AffiliateFees.d.ts +0 -32
- package/dist/cjs/generated/thorchain/models/AffiliateFees.js +0 -52
- package/dist/cjs/generated/thorchain/models/AffiliateRevenue.d.ts +0 -45
- package/dist/cjs/generated/thorchain/models/AffiliateRevenue.js +0 -57
- package/dist/esm/generated/mayachain/models/AffiliateFee.d.ts +0 -67
- package/dist/esm/generated/mayachain/models/AffiliateFee.js +0 -56
- package/dist/esm/generated/mayachain/models/AffiliateFees.d.ts +0 -32
- package/dist/esm/generated/mayachain/models/AffiliateFees.js +0 -45
- package/dist/esm/generated/thorchain/models/AffiliateFee.d.ts +0 -67
- package/dist/esm/generated/thorchain/models/AffiliateFee.js +0 -56
- package/dist/esm/generated/thorchain/models/AffiliateFees.d.ts +0 -32
- package/dist/esm/generated/thorchain/models/AffiliateFees.js +0 -45
- package/dist/esm/generated/thorchain/models/AffiliateRevenue.d.ts +0 -45
- package/dist/esm/generated/thorchain/models/AffiliateRevenue.js +0 -50
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Thorchain Unchained API
|
|
6
|
-
* Provides access to thorchain chain data.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
import { AffiliateFeeFromJSON, AffiliateFeeToJSON, } from './AffiliateFee.js';
|
|
16
|
-
/**
|
|
17
|
-
* Check if a given object implements the AffiliateFees interface.
|
|
18
|
-
*/
|
|
19
|
-
export function instanceOfAffiliateFees(value) {
|
|
20
|
-
let isInstance = true;
|
|
21
|
-
isInstance = isInstance && "fees" in value;
|
|
22
|
-
return isInstance;
|
|
23
|
-
}
|
|
24
|
-
export function AffiliateFeesFromJSON(json) {
|
|
25
|
-
return AffiliateFeesFromJSONTyped(json, false);
|
|
26
|
-
}
|
|
27
|
-
export function AffiliateFeesFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
-
if ((json === undefined) || (json === null)) {
|
|
29
|
-
return json;
|
|
30
|
-
}
|
|
31
|
-
return {
|
|
32
|
-
'fees': (json['fees'].map(AffiliateFeeFromJSON)),
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export function AffiliateFeesToJSON(value) {
|
|
36
|
-
if (value === undefined) {
|
|
37
|
-
return undefined;
|
|
38
|
-
}
|
|
39
|
-
if (value === null) {
|
|
40
|
-
return null;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'fees': (value.fees.map(AffiliateFeeToJSON)),
|
|
44
|
-
};
|
|
45
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Thorchain Unchained API
|
|
3
|
-
* Provides access to thorchain chain data.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Contains info about the affiliate revenue earned
|
|
14
|
-
* @export
|
|
15
|
-
* @interface AffiliateRevenue
|
|
16
|
-
*/
|
|
17
|
-
export interface AffiliateRevenue {
|
|
18
|
-
/**
|
|
19
|
-
* Affiliate addresses
|
|
20
|
-
* @type {Array<string>}
|
|
21
|
-
* @memberof AffiliateRevenue
|
|
22
|
-
*/
|
|
23
|
-
addresses: Array<string>;
|
|
24
|
-
/**
|
|
25
|
-
* Amount earned (RUNE)
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof AffiliateRevenue
|
|
28
|
-
*/
|
|
29
|
-
amount: string;
|
|
30
|
-
/**
|
|
31
|
-
* Revenue earned by denom
|
|
32
|
-
* @type {{ [key: string]: string; }}
|
|
33
|
-
* @memberof AffiliateRevenue
|
|
34
|
-
*/
|
|
35
|
-
revenue: {
|
|
36
|
-
[key: string]: string;
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Check if a given object implements the AffiliateRevenue interface.
|
|
41
|
-
*/
|
|
42
|
-
export declare function instanceOfAffiliateRevenue(value: object): boolean;
|
|
43
|
-
export declare function AffiliateRevenueFromJSON(json: any): AffiliateRevenue;
|
|
44
|
-
export declare function AffiliateRevenueFromJSONTyped(json: any, ignoreDiscriminator: boolean): AffiliateRevenue;
|
|
45
|
-
export declare function AffiliateRevenueToJSON(value?: AffiliateRevenue | null): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Thorchain Unchained API
|
|
6
|
-
* Provides access to thorchain chain data.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
/**
|
|
16
|
-
* Check if a given object implements the AffiliateRevenue interface.
|
|
17
|
-
*/
|
|
18
|
-
export function instanceOfAffiliateRevenue(value) {
|
|
19
|
-
let isInstance = true;
|
|
20
|
-
isInstance = isInstance && "addresses" in value;
|
|
21
|
-
isInstance = isInstance && "amount" in value;
|
|
22
|
-
isInstance = isInstance && "revenue" in value;
|
|
23
|
-
return isInstance;
|
|
24
|
-
}
|
|
25
|
-
export function AffiliateRevenueFromJSON(json) {
|
|
26
|
-
return AffiliateRevenueFromJSONTyped(json, false);
|
|
27
|
-
}
|
|
28
|
-
export function AffiliateRevenueFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
-
if ((json === undefined) || (json === null)) {
|
|
30
|
-
return json;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
'addresses': json['addresses'],
|
|
34
|
-
'amount': json['amount'],
|
|
35
|
-
'revenue': json['revenue'],
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
export function AffiliateRevenueToJSON(value) {
|
|
39
|
-
if (value === undefined) {
|
|
40
|
-
return undefined;
|
|
41
|
-
}
|
|
42
|
-
if (value === null) {
|
|
43
|
-
return null;
|
|
44
|
-
}
|
|
45
|
-
return {
|
|
46
|
-
'addresses': value.addresses,
|
|
47
|
-
'amount': value.amount,
|
|
48
|
-
'revenue': value.revenue,
|
|
49
|
-
};
|
|
50
|
-
}
|