@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,5 +1,5 @@
|
|
|
1
1
|
import { tcyAssetId, thorchainAssetId, thorchainChainId } from '@shapeshiftoss/caip';
|
|
2
|
-
import {
|
|
2
|
+
import { RFOX_ARB_PROXY_CONTRACT } from '@shapeshiftoss/contracts';
|
|
3
3
|
import { beforeEach, describe, expect, it, vi } from 'vitest';
|
|
4
4
|
import { Dex, TradeType, TransferType, TxStatus } from '../../../../types.js';
|
|
5
5
|
import { TransactionParser } from '../index.js';
|
|
@@ -627,7 +627,7 @@ describe('parseTx', () => {
|
|
|
627
627
|
epoch: 0,
|
|
628
628
|
ipfsHash: 'QmYUiUq9UWK5NPF1h2BGdatw95psNtW8seGQpXZYoQYK1s',
|
|
629
629
|
stakingAddress: '0x32DBc9Cf9E8FbCebE1e0a2ecF05Ed86Ca3096Cb6',
|
|
630
|
-
stakingContract:
|
|
630
|
+
stakingContract: RFOX_ARB_PROXY_CONTRACT,
|
|
631
631
|
},
|
|
632
632
|
};
|
|
633
633
|
const actual = await txParser.parse(tx, address);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RFOX_ARB_PROXY_CONTRACT } from '@shapeshiftoss/contracts';
|
|
2
2
|
export class Parser {
|
|
3
3
|
async parse(tx) {
|
|
4
4
|
if (!tx.memo?.startsWith('rFOX reward'))
|
|
@@ -16,7 +16,7 @@ export class Parser {
|
|
|
16
16
|
method: 'reward',
|
|
17
17
|
epoch: parseInt(match.groups.epoch, 10),
|
|
18
18
|
stakingAddress: match.groups.stakingAddress,
|
|
19
|
-
stakingContract: stakingContract ||
|
|
19
|
+
stakingContract: stakingContract || RFOX_ARB_PROXY_CONTRACT,
|
|
20
20
|
ipfsHash: match.groups.ipfsHash,
|
|
21
21
|
},
|
|
22
22
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { foxOnArbitrumOneAssetId, uniV2EthFoxArbitrumAssetId } from '@shapeshiftoss/caip';
|
|
2
|
-
import {
|
|
2
|
+
import { RFOX_ARB_PROXY_CONTRACT, RFOX_ARB_UNI_V2_ETH_FOX_PROXY_CONTRACT, ZRX_ETHEREUM_PROXY_CONTRACT, } from '@shapeshiftoss/contracts';
|
|
3
3
|
import { BaseTransactionParser } from '../../parser/index.js';
|
|
4
4
|
import * as arbitrumBridge from '../../parser/arbitrumBridge.js';
|
|
5
5
|
import * as erc20 from '../../parser/erc20.js';
|
|
@@ -17,11 +17,11 @@ export class TransactionParser extends BaseTransactionParser {
|
|
|
17
17
|
}),
|
|
18
18
|
new zrx.Parser({ proxyContract: ZRX_ETHEREUM_PROXY_CONTRACT }),
|
|
19
19
|
new rfox.Parser({
|
|
20
|
-
proxyContract:
|
|
20
|
+
proxyContract: RFOX_ARB_PROXY_CONTRACT,
|
|
21
21
|
stakingAssetId: foxOnArbitrumOneAssetId,
|
|
22
22
|
}),
|
|
23
23
|
new rfox.Parser({
|
|
24
|
-
proxyContract:
|
|
24
|
+
proxyContract: RFOX_ARB_UNI_V2_ETH_FOX_PROXY_CONTRACT,
|
|
25
25
|
stakingAssetId: uniV2EthFoxArbitrumAssetId,
|
|
26
26
|
}),
|
|
27
27
|
new arbitrumBridge.Parser({
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { foxAssetId } from '@shapeshiftoss/caip';
|
|
2
|
+
import { RFOX_ETH_PROXY_CONTRACT, ZRX_ETHEREUM_PROXY_CONTRACT } from '@shapeshiftoss/contracts';
|
|
2
3
|
import { BaseTransactionParser } from '../../parser/index.js';
|
|
3
4
|
import * as arbitrumBridge from '../../parser/arbitrumBridge.js';
|
|
4
5
|
import * as erc20 from '../../parser/erc20.js';
|
|
5
6
|
import * as mayachain from '../../parser/mayachain.js';
|
|
7
|
+
import * as rfox from '../../parser/rfox.js';
|
|
6
8
|
import * as thorchain from '../../parser/thorchain.js';
|
|
7
9
|
import * as zrx from '../../parser/zrx.js';
|
|
8
10
|
import * as cowswap from './cowswap.js';
|
|
@@ -27,6 +29,10 @@ export class TransactionParser extends BaseTransactionParser {
|
|
|
27
29
|
midgardUrl: args.thorMidgardUrl,
|
|
28
30
|
}),
|
|
29
31
|
new zrx.Parser({ proxyContract: ZRX_ETHEREUM_PROXY_CONTRACT }),
|
|
32
|
+
new rfox.Parser({
|
|
33
|
+
proxyContract: RFOX_ETH_PROXY_CONTRACT,
|
|
34
|
+
stakingAssetId: foxAssetId,
|
|
35
|
+
}),
|
|
30
36
|
new cowswap.Parser(),
|
|
31
37
|
new arbitrumBridge.Parser({ chainId: this.chainId }),
|
|
32
38
|
]);
|
|
@@ -20,6 +20,9 @@ export interface EstimateGasRequest {
|
|
|
20
20
|
export interface GetAccountRequest {
|
|
21
21
|
pubkey: string;
|
|
22
22
|
}
|
|
23
|
+
export interface GetRfoxStakingDurationRequest {
|
|
24
|
+
address: string;
|
|
25
|
+
}
|
|
23
26
|
export interface GetTransactionRequest {
|
|
24
27
|
txid: string;
|
|
25
28
|
}
|
|
@@ -77,6 +80,18 @@ export declare class V1Api extends runtime.BaseAPI {
|
|
|
77
80
|
* Get information about the running coinstack
|
|
78
81
|
*/
|
|
79
82
|
getInfo(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BaseInfo>;
|
|
83
|
+
/**
|
|
84
|
+
* Get rFOX staking duration by contract address
|
|
85
|
+
*/
|
|
86
|
+
getRfoxStakingDurationRaw(requestParameters: GetRfoxStakingDurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
87
|
+
[key: string]: number;
|
|
88
|
+
}>>;
|
|
89
|
+
/**
|
|
90
|
+
* Get rFOX staking duration by contract address
|
|
91
|
+
*/
|
|
92
|
+
getRfoxStakingDuration(requestParameters: GetRfoxStakingDurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
93
|
+
[key: string]: number;
|
|
94
|
+
}>;
|
|
80
95
|
/**
|
|
81
96
|
* Get transaction details
|
|
82
97
|
*/
|
|
@@ -136,6 +136,30 @@ export class V1Api extends runtime.BaseAPI {
|
|
|
136
136
|
const response = await this.getInfoRaw(initOverrides);
|
|
137
137
|
return await response.value();
|
|
138
138
|
}
|
|
139
|
+
/**
|
|
140
|
+
* Get rFOX staking duration by contract address
|
|
141
|
+
*/
|
|
142
|
+
async getRfoxStakingDurationRaw(requestParameters, initOverrides) {
|
|
143
|
+
if (requestParameters.address === null || requestParameters.address === undefined) {
|
|
144
|
+
throw new runtime.RequiredError('address', 'Required parameter requestParameters.address was null or undefined when calling getRfoxStakingDuration.');
|
|
145
|
+
}
|
|
146
|
+
const queryParameters = {};
|
|
147
|
+
const headerParameters = {};
|
|
148
|
+
const response = await this.request({
|
|
149
|
+
path: `/api/v1/rfox/staking-duration/{address}`.replace(`{${"address"}}`, encodeURIComponent(String(requestParameters.address))),
|
|
150
|
+
method: 'GET',
|
|
151
|
+
headers: headerParameters,
|
|
152
|
+
query: queryParameters,
|
|
153
|
+
}, initOverrides);
|
|
154
|
+
return new runtime.JSONApiResponse(response);
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Get rFOX staking duration by contract address
|
|
158
|
+
*/
|
|
159
|
+
async getRfoxStakingDuration(requestParameters, initOverrides) {
|
|
160
|
+
const response = await this.getRfoxStakingDurationRaw(requestParameters, initOverrides);
|
|
161
|
+
return await response.value();
|
|
162
|
+
}
|
|
139
163
|
/**
|
|
140
164
|
* Get transaction details
|
|
141
165
|
*/
|
|
@@ -10,17 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type { Account,
|
|
13
|
+
import type { Account, EstimateGasRequest, Info, Tx, TxHistory } from '../models/index.js';
|
|
14
14
|
export interface EstimateGasOperationRequest {
|
|
15
15
|
body?: EstimateGasRequest;
|
|
16
16
|
}
|
|
17
17
|
export interface GetAccountRequest {
|
|
18
18
|
pubkey: string;
|
|
19
19
|
}
|
|
20
|
-
export interface GetAffiliateFeesRequest {
|
|
21
|
-
start?: string;
|
|
22
|
-
end?: string;
|
|
23
|
-
}
|
|
24
20
|
export interface GetTxRequest {
|
|
25
21
|
txid: string;
|
|
26
22
|
}
|
|
@@ -52,14 +48,6 @@ export declare class V1Api extends runtime.BaseAPI {
|
|
|
52
48
|
* Get account details.
|
|
53
49
|
*/
|
|
54
50
|
getAccount(requestParameters: GetAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Account>;
|
|
55
|
-
/**
|
|
56
|
-
* Get ss affiliate fee history.
|
|
57
|
-
*/
|
|
58
|
-
getAffiliateFeesRaw(requestParameters: GetAffiliateFeesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AffiliateFees>>;
|
|
59
|
-
/**
|
|
60
|
-
* Get ss affiliate fee history.
|
|
61
|
-
*/
|
|
62
|
-
getAffiliateFees(requestParameters?: GetAffiliateFeesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AffiliateFees>;
|
|
63
51
|
/**
|
|
64
52
|
* Get information about the running coinstack.
|
|
65
53
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
import * as runtime from '../runtime.js';
|
|
16
|
-
import { AccountFromJSON,
|
|
16
|
+
import { AccountFromJSON, EstimateGasRequestToJSON, InfoFromJSON, TxFromJSON, TxHistoryFromJSON, } from '../models/index.js';
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
19
19
|
*/
|
|
@@ -65,33 +65,6 @@ export class V1Api extends runtime.BaseAPI {
|
|
|
65
65
|
const response = await this.getAccountRaw(requestParameters, initOverrides);
|
|
66
66
|
return await response.value();
|
|
67
67
|
}
|
|
68
|
-
/**
|
|
69
|
-
* Get ss affiliate fee history.
|
|
70
|
-
*/
|
|
71
|
-
async getAffiliateFeesRaw(requestParameters, initOverrides) {
|
|
72
|
-
const queryParameters = {};
|
|
73
|
-
if (requestParameters.start !== undefined) {
|
|
74
|
-
queryParameters['start'] = requestParameters.start;
|
|
75
|
-
}
|
|
76
|
-
if (requestParameters.end !== undefined) {
|
|
77
|
-
queryParameters['end'] = requestParameters.end;
|
|
78
|
-
}
|
|
79
|
-
const headerParameters = {};
|
|
80
|
-
const response = await this.request({
|
|
81
|
-
path: `/api/v1/affiliate/fees`,
|
|
82
|
-
method: 'GET',
|
|
83
|
-
headers: headerParameters,
|
|
84
|
-
query: queryParameters,
|
|
85
|
-
}, initOverrides);
|
|
86
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => AffiliateFeesFromJSON(jsonValue));
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Get ss affiliate fee history.
|
|
90
|
-
*/
|
|
91
|
-
async getAffiliateFees(requestParameters = {}, initOverrides) {
|
|
92
|
-
const response = await this.getAffiliateFeesRaw(requestParameters, initOverrides);
|
|
93
|
-
return await response.value();
|
|
94
|
-
}
|
|
95
68
|
/**
|
|
96
69
|
* Get information about the running coinstack.
|
|
97
70
|
*/
|
|
@@ -10,21 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type { Account,
|
|
13
|
+
import type { Account, EstimateGasRequest, Info, Tx, TxHistory } from '../models/index.js';
|
|
14
14
|
export interface EstimateGasOperationRequest {
|
|
15
15
|
body?: EstimateGasRequest;
|
|
16
16
|
}
|
|
17
17
|
export interface GetAccountRequest {
|
|
18
18
|
pubkey: string;
|
|
19
19
|
}
|
|
20
|
-
export interface GetAffiliateFeesRequest {
|
|
21
|
-
start?: string;
|
|
22
|
-
end?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface GetAffiliateRevenueRequest {
|
|
25
|
-
start?: string;
|
|
26
|
-
end?: string;
|
|
27
|
-
}
|
|
28
20
|
export interface GetTxRequest {
|
|
29
21
|
txid: string;
|
|
30
22
|
}
|
|
@@ -56,22 +48,6 @@ export declare class V1Api extends runtime.BaseAPI {
|
|
|
56
48
|
* Get account details.
|
|
57
49
|
*/
|
|
58
50
|
getAccount(requestParameters: GetAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Account>;
|
|
59
|
-
/**
|
|
60
|
-
* Get ss affiliate fee history.
|
|
61
|
-
*/
|
|
62
|
-
getAffiliateFeesRaw(requestParameters: GetAffiliateFeesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AffiliateFees>>;
|
|
63
|
-
/**
|
|
64
|
-
* Get ss affiliate fee history.
|
|
65
|
-
*/
|
|
66
|
-
getAffiliateFees(requestParameters?: GetAffiliateFeesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AffiliateFees>;
|
|
67
|
-
/**
|
|
68
|
-
* Get total ss affiliate revenue earned.
|
|
69
|
-
*/
|
|
70
|
-
getAffiliateRevenueRaw(requestParameters: GetAffiliateRevenueRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AffiliateRevenue>>;
|
|
71
|
-
/**
|
|
72
|
-
* Get total ss affiliate revenue earned.
|
|
73
|
-
*/
|
|
74
|
-
getAffiliateRevenue(requestParameters?: GetAffiliateRevenueRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AffiliateRevenue>;
|
|
75
51
|
/**
|
|
76
52
|
* Get information about the running coinstack.
|
|
77
53
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
import * as runtime from '../runtime.js';
|
|
16
|
-
import { AccountFromJSON,
|
|
16
|
+
import { AccountFromJSON, EstimateGasRequestToJSON, InfoFromJSON, TxFromJSON, TxHistoryFromJSON, } from '../models/index.js';
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
19
19
|
*/
|
|
@@ -65,60 +65,6 @@ export class V1Api extends runtime.BaseAPI {
|
|
|
65
65
|
const response = await this.getAccountRaw(requestParameters, initOverrides);
|
|
66
66
|
return await response.value();
|
|
67
67
|
}
|
|
68
|
-
/**
|
|
69
|
-
* Get ss affiliate fee history.
|
|
70
|
-
*/
|
|
71
|
-
async getAffiliateFeesRaw(requestParameters, initOverrides) {
|
|
72
|
-
const queryParameters = {};
|
|
73
|
-
if (requestParameters.start !== undefined) {
|
|
74
|
-
queryParameters['start'] = requestParameters.start;
|
|
75
|
-
}
|
|
76
|
-
if (requestParameters.end !== undefined) {
|
|
77
|
-
queryParameters['end'] = requestParameters.end;
|
|
78
|
-
}
|
|
79
|
-
const headerParameters = {};
|
|
80
|
-
const response = await this.request({
|
|
81
|
-
path: `/api/v1/affiliate/fees`,
|
|
82
|
-
method: 'GET',
|
|
83
|
-
headers: headerParameters,
|
|
84
|
-
query: queryParameters,
|
|
85
|
-
}, initOverrides);
|
|
86
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => AffiliateFeesFromJSON(jsonValue));
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Get ss affiliate fee history.
|
|
90
|
-
*/
|
|
91
|
-
async getAffiliateFees(requestParameters = {}, initOverrides) {
|
|
92
|
-
const response = await this.getAffiliateFeesRaw(requestParameters, initOverrides);
|
|
93
|
-
return await response.value();
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Get total ss affiliate revenue earned.
|
|
97
|
-
*/
|
|
98
|
-
async getAffiliateRevenueRaw(requestParameters, initOverrides) {
|
|
99
|
-
const queryParameters = {};
|
|
100
|
-
if (requestParameters.start !== undefined) {
|
|
101
|
-
queryParameters['start'] = requestParameters.start;
|
|
102
|
-
}
|
|
103
|
-
if (requestParameters.end !== undefined) {
|
|
104
|
-
queryParameters['end'] = requestParameters.end;
|
|
105
|
-
}
|
|
106
|
-
const headerParameters = {};
|
|
107
|
-
const response = await this.request({
|
|
108
|
-
path: `/api/v1/affiliate/revenue`,
|
|
109
|
-
method: 'GET',
|
|
110
|
-
headers: headerParameters,
|
|
111
|
-
query: queryParameters,
|
|
112
|
-
}, initOverrides);
|
|
113
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => AffiliateRevenueFromJSON(jsonValue));
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Get total ss affiliate revenue earned.
|
|
117
|
-
*/
|
|
118
|
-
async getAffiliateRevenue(requestParameters = {}, initOverrides) {
|
|
119
|
-
const response = await this.getAffiliateRevenueRaw(requestParameters, initOverrides);
|
|
120
|
-
return await response.value();
|
|
121
|
-
}
|
|
122
68
|
/**
|
|
123
69
|
* Get information about the running coinstack.
|
|
124
70
|
*/
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
export * from './Account.js';
|
|
5
|
-
export * from './AffiliateFee.js';
|
|
6
|
-
export * from './AffiliateFees.js';
|
|
7
|
-
export * from './AffiliateRevenue.js';
|
|
8
5
|
export * from './ApiError.js';
|
|
9
6
|
export * from './Attribute.js';
|
|
10
7
|
export * from './BadRequestError.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|