@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,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
- }