@dynamic-labs/sdk-api 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
|
@@ -888,9 +888,6 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
888
888
|
if (requestParameters.accountAddress !== undefined) {
|
|
889
889
|
queryParameters['accountAddress'] = requestParameters.accountAddress;
|
|
890
890
|
}
|
|
891
|
-
if (requestParameters.includePrices !== undefined) {
|
|
892
|
-
queryParameters['includePrices'] = requestParameters.includePrices;
|
|
893
|
-
}
|
|
894
891
|
const headerParameters = {};
|
|
895
892
|
const response = yield this.request({
|
|
896
893
|
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
|
@@ -884,9 +884,6 @@ class SDKApi extends BaseAPI {
|
|
|
884
884
|
if (requestParameters.accountAddress !== undefined) {
|
|
885
885
|
queryParameters['accountAddress'] = requestParameters.accountAddress;
|
|
886
886
|
}
|
|
887
|
-
if (requestParameters.includePrices !== undefined) {
|
|
888
|
-
queryParameters['includePrices'] = requestParameters.includePrices;
|
|
889
|
-
}
|
|
890
887
|
const headerParameters = {};
|
|
891
888
|
const response = yield this.request({
|
|
892
889
|
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
|
|