@shapeshiftoss/unchained-client 10.14.11 → 10.15.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.
Files changed (57) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/cosmossdk/thorchain/parser/__tests__/thorchain.test.js +1 -1
  3. package/dist/cjs/cosmossdk/thorchain/parser/rfox.js +1 -1
  4. package/dist/cjs/evm/arbitrum/parser/index.js +2 -2
  5. package/dist/cjs/evm/ethereum/parser/index.js +6 -0
  6. package/dist/cjs/generated/mayachain/apis/V1Api.d.ts +1 -13
  7. package/dist/cjs/generated/mayachain/apis/V1Api.js +0 -27
  8. package/dist/cjs/generated/mayachain/models/index.d.ts +0 -2
  9. package/dist/cjs/generated/mayachain/models/index.js +0 -2
  10. package/dist/cjs/generated/thorchain/apis/V1Api.d.ts +1 -25
  11. package/dist/cjs/generated/thorchain/apis/V1Api.js +0 -54
  12. package/dist/cjs/generated/thorchain/models/index.d.ts +0 -3
  13. package/dist/cjs/generated/thorchain/models/index.js +0 -3
  14. package/dist/cjs/tron/__tests__/api.test.d.ts +1 -0
  15. package/dist/cjs/tron/__tests__/api.test.js +300 -0
  16. package/dist/cjs/tron/api.d.ts +35 -15
  17. package/dist/cjs/tron/api.js +189 -81
  18. package/dist/cjs/tron/types.d.ts +4 -0
  19. package/dist/esm/.tsbuildinfo +1 -1
  20. package/dist/esm/cosmossdk/thorchain/parser/__tests__/thorchain.test.js +2 -2
  21. package/dist/esm/cosmossdk/thorchain/parser/rfox.js +2 -2
  22. package/dist/esm/evm/arbitrum/parser/index.js +3 -3
  23. package/dist/esm/evm/ethereum/parser/index.js +7 -1
  24. package/dist/esm/generated/mayachain/apis/V1Api.d.ts +1 -13
  25. package/dist/esm/generated/mayachain/apis/V1Api.js +1 -28
  26. package/dist/esm/generated/mayachain/models/index.d.ts +0 -2
  27. package/dist/esm/generated/mayachain/models/index.js +0 -2
  28. package/dist/esm/generated/thorchain/apis/V1Api.d.ts +1 -25
  29. package/dist/esm/generated/thorchain/apis/V1Api.js +1 -55
  30. package/dist/esm/generated/thorchain/models/index.d.ts +0 -3
  31. package/dist/esm/generated/thorchain/models/index.js +0 -3
  32. package/dist/esm/tron/__tests__/api.test.d.ts +1 -0
  33. package/dist/esm/tron/__tests__/api.test.js +298 -0
  34. package/dist/esm/tron/api.d.ts +35 -15
  35. package/dist/esm/tron/api.js +187 -80
  36. package/dist/esm/tron/types.d.ts +4 -0
  37. package/package.json +5 -5
  38. package/dist/cjs/generated/mayachain/models/AffiliateFee.d.ts +0 -67
  39. package/dist/cjs/generated/mayachain/models/AffiliateFee.js +0 -63
  40. package/dist/cjs/generated/mayachain/models/AffiliateFees.d.ts +0 -32
  41. package/dist/cjs/generated/mayachain/models/AffiliateFees.js +0 -52
  42. package/dist/cjs/generated/thorchain/models/AffiliateFee.d.ts +0 -67
  43. package/dist/cjs/generated/thorchain/models/AffiliateFee.js +0 -63
  44. package/dist/cjs/generated/thorchain/models/AffiliateFees.d.ts +0 -32
  45. package/dist/cjs/generated/thorchain/models/AffiliateFees.js +0 -52
  46. package/dist/cjs/generated/thorchain/models/AffiliateRevenue.d.ts +0 -45
  47. package/dist/cjs/generated/thorchain/models/AffiliateRevenue.js +0 -57
  48. package/dist/esm/generated/mayachain/models/AffiliateFee.d.ts +0 -67
  49. package/dist/esm/generated/mayachain/models/AffiliateFee.js +0 -56
  50. package/dist/esm/generated/mayachain/models/AffiliateFees.d.ts +0 -32
  51. package/dist/esm/generated/mayachain/models/AffiliateFees.js +0 -45
  52. package/dist/esm/generated/thorchain/models/AffiliateFee.d.ts +0 -67
  53. package/dist/esm/generated/thorchain/models/AffiliateFee.js +0 -56
  54. package/dist/esm/generated/thorchain/models/AffiliateFees.d.ts +0 -32
  55. package/dist/esm/generated/thorchain/models/AffiliateFees.js +0 -45
  56. package/dist/esm/generated/thorchain/models/AffiliateRevenue.d.ts +0 -45
  57. package/dist/esm/generated/thorchain/models/AffiliateRevenue.js +0 -50
@@ -1,67 +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
- *
14
- * @export
15
- * @interface AffiliateFee
16
- */
17
- export interface AffiliateFee {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof AffiliateFee
22
- */
23
- address?: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof AffiliateFee
28
- */
29
- amount?: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof AffiliateFee
34
- */
35
- asset?: string;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof AffiliateFee
40
- */
41
- blockHash?: string;
42
- /**
43
- *
44
- * @type {number}
45
- * @memberof AffiliateFee
46
- */
47
- blockHeight?: number;
48
- /**
49
- *
50
- * @type {number}
51
- * @memberof AffiliateFee
52
- */
53
- timestamp?: number;
54
- /**
55
- *
56
- * @type {string}
57
- * @memberof AffiliateFee
58
- */
59
- txId?: string;
60
- }
61
- /**
62
- * Check if a given object implements the AffiliateFee interface.
63
- */
64
- export declare function instanceOfAffiliateFee(value: object): boolean;
65
- export declare function AffiliateFeeFromJSON(json: any): AffiliateFee;
66
- export declare function AffiliateFeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AffiliateFee;
67
- export declare function AffiliateFeeToJSON(value?: AffiliateFee | null): any;
@@ -1,63 +0,0 @@
1
- "use strict";
2
- // @ts-nocheck
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- /**
6
- * Thorchain Unchained API
7
- * Provides access to thorchain chain data.
8
- *
9
- * The version of the OpenAPI document: 1.0.0
10
- *
11
- *
12
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13
- * https://openapi-generator.tech
14
- * Do not edit the class manually.
15
- */
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.AffiliateFeeToJSON = exports.AffiliateFeeFromJSONTyped = exports.AffiliateFeeFromJSON = exports.instanceOfAffiliateFee = void 0;
18
- const runtime_1 = require("../runtime");
19
- /**
20
- * Check if a given object implements the AffiliateFee interface.
21
- */
22
- function instanceOfAffiliateFee(value) {
23
- let isInstance = true;
24
- return isInstance;
25
- }
26
- exports.instanceOfAffiliateFee = instanceOfAffiliateFee;
27
- function AffiliateFeeFromJSON(json) {
28
- return AffiliateFeeFromJSONTyped(json, false);
29
- }
30
- exports.AffiliateFeeFromJSON = AffiliateFeeFromJSON;
31
- function AffiliateFeeFromJSONTyped(json, ignoreDiscriminator) {
32
- if ((json === undefined) || (json === null)) {
33
- return json;
34
- }
35
- return {
36
- 'address': !(0, runtime_1.exists)(json, 'address') ? undefined : json['address'],
37
- 'amount': !(0, runtime_1.exists)(json, 'amount') ? undefined : json['amount'],
38
- 'asset': !(0, runtime_1.exists)(json, 'asset') ? undefined : json['asset'],
39
- 'blockHash': !(0, runtime_1.exists)(json, 'blockHash') ? undefined : json['blockHash'],
40
- 'blockHeight': !(0, runtime_1.exists)(json, 'blockHeight') ? undefined : json['blockHeight'],
41
- 'timestamp': !(0, runtime_1.exists)(json, 'timestamp') ? undefined : json['timestamp'],
42
- 'txId': !(0, runtime_1.exists)(json, 'txId') ? undefined : json['txId'],
43
- };
44
- }
45
- exports.AffiliateFeeFromJSONTyped = AffiliateFeeFromJSONTyped;
46
- function AffiliateFeeToJSON(value) {
47
- if (value === undefined) {
48
- return undefined;
49
- }
50
- if (value === null) {
51
- return null;
52
- }
53
- return {
54
- 'address': value.address,
55
- 'amount': value.amount,
56
- 'asset': value.asset,
57
- 'blockHash': value.blockHash,
58
- 'blockHeight': value.blockHeight,
59
- 'timestamp': value.timestamp,
60
- 'txId': value.txId,
61
- };
62
- }
63
- exports.AffiliateFeeToJSON = AffiliateFeeToJSON;
@@ -1,32 +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
- import type { AffiliateFee } from './AffiliateFee';
13
- /**
14
- * Contains info about affiliate fee history
15
- * @export
16
- * @interface AffiliateFees
17
- */
18
- export interface AffiliateFees {
19
- /**
20
- * Affiliate fees
21
- * @type {Array<AffiliateFee>}
22
- * @memberof AffiliateFees
23
- */
24
- fees: Array<AffiliateFee>;
25
- }
26
- /**
27
- * Check if a given object implements the AffiliateFees interface.
28
- */
29
- export declare function instanceOfAffiliateFees(value: object): boolean;
30
- export declare function AffiliateFeesFromJSON(json: any): AffiliateFees;
31
- export declare function AffiliateFeesFromJSONTyped(json: any, ignoreDiscriminator: boolean): AffiliateFees;
32
- export declare function AffiliateFeesToJSON(value?: AffiliateFees | null): any;
@@ -1,52 +0,0 @@
1
- "use strict";
2
- // @ts-nocheck
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- /**
6
- * Thorchain Unchained API
7
- * Provides access to thorchain chain data.
8
- *
9
- * The version of the OpenAPI document: 1.0.0
10
- *
11
- *
12
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13
- * https://openapi-generator.tech
14
- * Do not edit the class manually.
15
- */
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.AffiliateFeesToJSON = exports.AffiliateFeesFromJSONTyped = exports.AffiliateFeesFromJSON = exports.instanceOfAffiliateFees = void 0;
18
- const AffiliateFee_1 = require("./AffiliateFee");
19
- /**
20
- * Check if a given object implements the AffiliateFees interface.
21
- */
22
- function instanceOfAffiliateFees(value) {
23
- let isInstance = true;
24
- isInstance = isInstance && "fees" in value;
25
- return isInstance;
26
- }
27
- exports.instanceOfAffiliateFees = instanceOfAffiliateFees;
28
- function AffiliateFeesFromJSON(json) {
29
- return AffiliateFeesFromJSONTyped(json, false);
30
- }
31
- exports.AffiliateFeesFromJSON = AffiliateFeesFromJSON;
32
- function AffiliateFeesFromJSONTyped(json, ignoreDiscriminator) {
33
- if ((json === undefined) || (json === null)) {
34
- return json;
35
- }
36
- return {
37
- 'fees': (json['fees'].map(AffiliateFee_1.AffiliateFeeFromJSON)),
38
- };
39
- }
40
- exports.AffiliateFeesFromJSONTyped = AffiliateFeesFromJSONTyped;
41
- function AffiliateFeesToJSON(value) {
42
- if (value === undefined) {
43
- return undefined;
44
- }
45
- if (value === null) {
46
- return null;
47
- }
48
- return {
49
- 'fees': (value.fees.map(AffiliateFee_1.AffiliateFeeToJSON)),
50
- };
51
- }
52
- exports.AffiliateFeesToJSON = AffiliateFeesToJSON;
@@ -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,57 +0,0 @@
1
- "use strict";
2
- // @ts-nocheck
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- /**
6
- * Thorchain Unchained API
7
- * Provides access to thorchain chain data.
8
- *
9
- * The version of the OpenAPI document: 1.0.0
10
- *
11
- *
12
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13
- * https://openapi-generator.tech
14
- * Do not edit the class manually.
15
- */
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.AffiliateRevenueToJSON = exports.AffiliateRevenueFromJSONTyped = exports.AffiliateRevenueFromJSON = exports.instanceOfAffiliateRevenue = void 0;
18
- /**
19
- * Check if a given object implements the AffiliateRevenue interface.
20
- */
21
- function instanceOfAffiliateRevenue(value) {
22
- let isInstance = true;
23
- isInstance = isInstance && "addresses" in value;
24
- isInstance = isInstance && "amount" in value;
25
- isInstance = isInstance && "revenue" in value;
26
- return isInstance;
27
- }
28
- exports.instanceOfAffiliateRevenue = instanceOfAffiliateRevenue;
29
- function AffiliateRevenueFromJSON(json) {
30
- return AffiliateRevenueFromJSONTyped(json, false);
31
- }
32
- exports.AffiliateRevenueFromJSON = AffiliateRevenueFromJSON;
33
- function AffiliateRevenueFromJSONTyped(json, ignoreDiscriminator) {
34
- if ((json === undefined) || (json === null)) {
35
- return json;
36
- }
37
- return {
38
- 'addresses': json['addresses'],
39
- 'amount': json['amount'],
40
- 'revenue': json['revenue'],
41
- };
42
- }
43
- exports.AffiliateRevenueFromJSONTyped = AffiliateRevenueFromJSONTyped;
44
- function AffiliateRevenueToJSON(value) {
45
- if (value === undefined) {
46
- return undefined;
47
- }
48
- if (value === null) {
49
- return null;
50
- }
51
- return {
52
- 'addresses': value.addresses,
53
- 'amount': value.amount,
54
- 'revenue': value.revenue,
55
- };
56
- }
57
- exports.AffiliateRevenueToJSON = AffiliateRevenueToJSON;
@@ -1,67 +0,0 @@
1
- /**
2
- * Mayachain Unchained API
3
- * Provides access to mayachain 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
- *
14
- * @export
15
- * @interface AffiliateFee
16
- */
17
- export interface AffiliateFee {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof AffiliateFee
22
- */
23
- address?: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof AffiliateFee
28
- */
29
- amount?: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof AffiliateFee
34
- */
35
- asset?: string;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof AffiliateFee
40
- */
41
- blockHash?: string;
42
- /**
43
- *
44
- * @type {number}
45
- * @memberof AffiliateFee
46
- */
47
- blockHeight?: number;
48
- /**
49
- *
50
- * @type {number}
51
- * @memberof AffiliateFee
52
- */
53
- timestamp?: number;
54
- /**
55
- *
56
- * @type {string}
57
- * @memberof AffiliateFee
58
- */
59
- txId?: string;
60
- }
61
- /**
62
- * Check if a given object implements the AffiliateFee interface.
63
- */
64
- export declare function instanceOfAffiliateFee(value: object): boolean;
65
- export declare function AffiliateFeeFromJSON(json: any): AffiliateFee;
66
- export declare function AffiliateFeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AffiliateFee;
67
- export declare function AffiliateFeeToJSON(value?: AffiliateFee | null): any;
@@ -1,56 +0,0 @@
1
- // @ts-nocheck
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Mayachain Unchained API
6
- * Provides access to mayachain 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 { exists } from '../runtime.js';
16
- /**
17
- * Check if a given object implements the AffiliateFee interface.
18
- */
19
- export function instanceOfAffiliateFee(value) {
20
- let isInstance = true;
21
- return isInstance;
22
- }
23
- export function AffiliateFeeFromJSON(json) {
24
- return AffiliateFeeFromJSONTyped(json, false);
25
- }
26
- export function AffiliateFeeFromJSONTyped(json, ignoreDiscriminator) {
27
- if ((json === undefined) || (json === null)) {
28
- return json;
29
- }
30
- return {
31
- 'address': !exists(json, 'address') ? undefined : json['address'],
32
- 'amount': !exists(json, 'amount') ? undefined : json['amount'],
33
- 'asset': !exists(json, 'asset') ? undefined : json['asset'],
34
- 'blockHash': !exists(json, 'blockHash') ? undefined : json['blockHash'],
35
- 'blockHeight': !exists(json, 'blockHeight') ? undefined : json['blockHeight'],
36
- 'timestamp': !exists(json, 'timestamp') ? undefined : json['timestamp'],
37
- 'txId': !exists(json, 'txId') ? undefined : json['txId'],
38
- };
39
- }
40
- export function AffiliateFeeToJSON(value) {
41
- if (value === undefined) {
42
- return undefined;
43
- }
44
- if (value === null) {
45
- return null;
46
- }
47
- return {
48
- 'address': value.address,
49
- 'amount': value.amount,
50
- 'asset': value.asset,
51
- 'blockHash': value.blockHash,
52
- 'blockHeight': value.blockHeight,
53
- 'timestamp': value.timestamp,
54
- 'txId': value.txId,
55
- };
56
- }
@@ -1,32 +0,0 @@
1
- /**
2
- * Mayachain Unchained API
3
- * Provides access to mayachain 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
- import type { AffiliateFee } from './AffiliateFee.js';
13
- /**
14
- * Contains info about affiliate fee history
15
- * @export
16
- * @interface AffiliateFees
17
- */
18
- export interface AffiliateFees {
19
- /**
20
- * Affiliate fees
21
- * @type {Array<AffiliateFee>}
22
- * @memberof AffiliateFees
23
- */
24
- fees: Array<AffiliateFee>;
25
- }
26
- /**
27
- * Check if a given object implements the AffiliateFees interface.
28
- */
29
- export declare function instanceOfAffiliateFees(value: object): boolean;
30
- export declare function AffiliateFeesFromJSON(json: any): AffiliateFees;
31
- export declare function AffiliateFeesFromJSONTyped(json: any, ignoreDiscriminator: boolean): AffiliateFees;
32
- export declare function AffiliateFeesToJSON(value?: AffiliateFees | null): any;
@@ -1,45 +0,0 @@
1
- // @ts-nocheck
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Mayachain Unchained API
6
- * Provides access to mayachain 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,67 +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
- *
14
- * @export
15
- * @interface AffiliateFee
16
- */
17
- export interface AffiliateFee {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof AffiliateFee
22
- */
23
- address?: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof AffiliateFee
28
- */
29
- amount?: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof AffiliateFee
34
- */
35
- asset?: string;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof AffiliateFee
40
- */
41
- blockHash?: string;
42
- /**
43
- *
44
- * @type {number}
45
- * @memberof AffiliateFee
46
- */
47
- blockHeight?: number;
48
- /**
49
- *
50
- * @type {number}
51
- * @memberof AffiliateFee
52
- */
53
- timestamp?: number;
54
- /**
55
- *
56
- * @type {string}
57
- * @memberof AffiliateFee
58
- */
59
- txId?: string;
60
- }
61
- /**
62
- * Check if a given object implements the AffiliateFee interface.
63
- */
64
- export declare function instanceOfAffiliateFee(value: object): boolean;
65
- export declare function AffiliateFeeFromJSON(json: any): AffiliateFee;
66
- export declare function AffiliateFeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AffiliateFee;
67
- export declare function AffiliateFeeToJSON(value?: AffiliateFee | null): any;
@@ -1,56 +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 { exists } from '../runtime.js';
16
- /**
17
- * Check if a given object implements the AffiliateFee interface.
18
- */
19
- export function instanceOfAffiliateFee(value) {
20
- let isInstance = true;
21
- return isInstance;
22
- }
23
- export function AffiliateFeeFromJSON(json) {
24
- return AffiliateFeeFromJSONTyped(json, false);
25
- }
26
- export function AffiliateFeeFromJSONTyped(json, ignoreDiscriminator) {
27
- if ((json === undefined) || (json === null)) {
28
- return json;
29
- }
30
- return {
31
- 'address': !exists(json, 'address') ? undefined : json['address'],
32
- 'amount': !exists(json, 'amount') ? undefined : json['amount'],
33
- 'asset': !exists(json, 'asset') ? undefined : json['asset'],
34
- 'blockHash': !exists(json, 'blockHash') ? undefined : json['blockHash'],
35
- 'blockHeight': !exists(json, 'blockHeight') ? undefined : json['blockHeight'],
36
- 'timestamp': !exists(json, 'timestamp') ? undefined : json['timestamp'],
37
- 'txId': !exists(json, 'txId') ? undefined : json['txId'],
38
- };
39
- }
40
- export function AffiliateFeeToJSON(value) {
41
- if (value === undefined) {
42
- return undefined;
43
- }
44
- if (value === null) {
45
- return null;
46
- }
47
- return {
48
- 'address': value.address,
49
- 'amount': value.amount,
50
- 'asset': value.asset,
51
- 'blockHash': value.blockHash,
52
- 'blockHeight': value.blockHeight,
53
- 'timestamp': value.timestamp,
54
- 'txId': value.txId,
55
- };
56
- }
@@ -1,32 +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
- import type { AffiliateFee } from './AffiliateFee.js';
13
- /**
14
- * Contains info about affiliate fee history
15
- * @export
16
- * @interface AffiliateFees
17
- */
18
- export interface AffiliateFees {
19
- /**
20
- * Affiliate fees
21
- * @type {Array<AffiliateFee>}
22
- * @memberof AffiliateFees
23
- */
24
- fees: Array<AffiliateFee>;
25
- }
26
- /**
27
- * Check if a given object implements the AffiliateFees interface.
28
- */
29
- export declare function instanceOfAffiliateFees(value: object): boolean;
30
- export declare function AffiliateFeesFromJSON(json: any): AffiliateFees;
31
- export declare function AffiliateFeesFromJSONTyped(json: any, ignoreDiscriminator: boolean): AffiliateFees;
32
- export declare function AffiliateFeesToJSON(value?: AffiliateFees | null): any;