@dynamic-labs/sdk-api-core 0.0.438 → 0.0.439
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/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -873,9 +873,6 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
873
873
|
if (requestParameters.accountAddress !== undefined) {
|
|
874
874
|
queryParameters['accountAddress'] = requestParameters.accountAddress;
|
|
875
875
|
}
|
|
876
|
-
if (requestParameters.includePrices !== undefined) {
|
|
877
|
-
queryParameters['includePrices'] = requestParameters.includePrices;
|
|
878
|
-
}
|
|
879
876
|
const headerParameters = {};
|
|
880
877
|
const response = yield this.request({
|
|
881
878
|
path: `/sdk/{environmentId}/chains/{chainName}/balances`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"chainName"}}`, encodeURIComponent(String(requestParameters.chainName))),
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -99,7 +99,6 @@ export interface GetAccountBalancesRequest {
|
|
|
99
99
|
chainName: GetAccountBalancesChainNameEnum;
|
|
100
100
|
networkId: GetAccountBalancesNetworkIdEnum;
|
|
101
101
|
accountAddress: string;
|
|
102
|
-
includePrices?: boolean;
|
|
103
102
|
}
|
|
104
103
|
export interface GetAccountBalancesOptionsRequest {
|
|
105
104
|
environmentId: string;
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -869,9 +869,6 @@ class SDKApi extends BaseAPI {
|
|
|
869
869
|
if (requestParameters.accountAddress !== undefined) {
|
|
870
870
|
queryParameters['accountAddress'] = requestParameters.accountAddress;
|
|
871
871
|
}
|
|
872
|
-
if (requestParameters.includePrices !== undefined) {
|
|
873
|
-
queryParameters['includePrices'] = requestParameters.includePrices;
|
|
874
|
-
}
|
|
875
872
|
const headerParameters = {};
|
|
876
873
|
const response = yield this.request({
|
|
877
874
|
path: `/sdk/{environmentId}/chains/{chainName}/balances`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"chainName"}}`, encodeURIComponent(String(requestParameters.chainName))),
|
|
@@ -21,8 +21,6 @@ function TokenBalanceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
21
21
|
'logoURI': json['logoURI'],
|
|
22
22
|
'balance': json['balance'],
|
|
23
23
|
'rawBalance': json['rawBalance'],
|
|
24
|
-
'price': !runtime.exists(json, 'price') ? undefined : json['price'],
|
|
25
|
-
'marketValue': !runtime.exists(json, 'marketValue') ? undefined : json['marketValue'],
|
|
26
24
|
};
|
|
27
25
|
}
|
|
28
26
|
function TokenBalanceToJSON(value) {
|
|
@@ -41,8 +39,6 @@ function TokenBalanceToJSON(value) {
|
|
|
41
39
|
'logoURI': value.logoURI,
|
|
42
40
|
'balance': value.balance,
|
|
43
41
|
'rawBalance': value.rawBalance,
|
|
44
|
-
'price': value.price,
|
|
45
|
-
'marketValue': value.marketValue,
|
|
46
42
|
};
|
|
47
43
|
}
|
|
48
44
|
|
|
@@ -63,18 +63,6 @@ export interface TokenBalance {
|
|
|
63
63
|
* @memberof TokenBalance
|
|
64
64
|
*/
|
|
65
65
|
rawBalance: number;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {number}
|
|
69
|
-
* @memberof TokenBalance
|
|
70
|
-
*/
|
|
71
|
-
price?: number;
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @type {number}
|
|
75
|
-
* @memberof TokenBalance
|
|
76
|
-
*/
|
|
77
|
-
marketValue?: number;
|
|
78
66
|
}
|
|
79
67
|
export declare function TokenBalanceFromJSON(json: any): TokenBalance;
|
|
80
68
|
export declare function TokenBalanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenBalance;
|
|
@@ -17,8 +17,6 @@ function TokenBalanceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
17
17
|
'logoURI': json['logoURI'],
|
|
18
18
|
'balance': json['balance'],
|
|
19
19
|
'rawBalance': json['rawBalance'],
|
|
20
|
-
'price': !exists(json, 'price') ? undefined : json['price'],
|
|
21
|
-
'marketValue': !exists(json, 'marketValue') ? undefined : json['marketValue'],
|
|
22
20
|
};
|
|
23
21
|
}
|
|
24
22
|
function TokenBalanceToJSON(value) {
|
|
@@ -37,8 +35,6 @@ function TokenBalanceToJSON(value) {
|
|
|
37
35
|
'logoURI': value.logoURI,
|
|
38
36
|
'balance': value.balance,
|
|
39
37
|
'rawBalance': value.rawBalance,
|
|
40
|
-
'price': value.price,
|
|
41
|
-
'marketValue': value.marketValue,
|
|
42
38
|
};
|
|
43
39
|
}
|
|
44
40
|
|