@dynamic-labs/sdk-api 0.0.441 → 0.0.442
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,6 +888,9 @@ 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
|
+
}
|
|
891
894
|
const headerParameters = {};
|
|
892
895
|
const response = yield this.request({
|
|
893
896
|
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,6 +99,7 @@ export interface GetAccountBalancesRequest {
|
|
|
99
99
|
chainName: GetAccountBalancesChainNameEnum;
|
|
100
100
|
networkId: GetAccountBalancesNetworkIdEnum;
|
|
101
101
|
accountAddress: string;
|
|
102
|
+
includePrices?: boolean;
|
|
102
103
|
}
|
|
103
104
|
export interface GetAccountBalancesOptionsRequest {
|
|
104
105
|
environmentId: string;
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -884,6 +884,9 @@ 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
|
+
}
|
|
887
890
|
const headerParameters = {};
|
|
888
891
|
const response = yield this.request({
|
|
889
892
|
path: `/sdk/{environmentId}/chains/{chainName}/balances`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"chainName"}}`, encodeURIComponent(String(requestParameters.chainName))),
|
|
@@ -21,6 +21,8 @@ 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'],
|
|
24
26
|
};
|
|
25
27
|
}
|
|
26
28
|
function TokenBalanceToJSON(value) {
|
|
@@ -39,6 +41,8 @@ function TokenBalanceToJSON(value) {
|
|
|
39
41
|
'logoURI': value.logoURI,
|
|
40
42
|
'balance': value.balance,
|
|
41
43
|
'rawBalance': value.rawBalance,
|
|
44
|
+
'price': value.price,
|
|
45
|
+
'marketValue': value.marketValue,
|
|
42
46
|
};
|
|
43
47
|
}
|
|
44
48
|
|
|
@@ -63,6 +63,18 @@ 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;
|
|
66
78
|
}
|
|
67
79
|
export declare function TokenBalanceFromJSON(json: any): TokenBalance;
|
|
68
80
|
export declare function TokenBalanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenBalance;
|
|
@@ -17,6 +17,8 @@ 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'],
|
|
20
22
|
};
|
|
21
23
|
}
|
|
22
24
|
function TokenBalanceToJSON(value) {
|
|
@@ -35,6 +37,8 @@ function TokenBalanceToJSON(value) {
|
|
|
35
37
|
'logoURI': value.logoURI,
|
|
36
38
|
'balance': value.balance,
|
|
37
39
|
'rawBalance': value.rawBalance,
|
|
40
|
+
'price': value.price,
|
|
41
|
+
'marketValue': value.marketValue,
|
|
38
42
|
};
|
|
39
43
|
}
|
|
40
44
|
|