@dynamic-labs/sdk-api-core 0.0.437 → 0.0.438

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api-core",
3
- "version": "0.0.437",
3
+ "version": "0.0.438",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -873,6 +873,9 @@ 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
+ }
876
879
  const headerParameters = {};
877
880
  const response = yield this.request({
878
881
  path: `/sdk/{environmentId}/chains/{chainName}/balances`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"chainName"}}`, encodeURIComponent(String(requestParameters.chainName))),
@@ -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;
@@ -869,6 +869,9 @@ 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
+ }
872
875
  const headerParameters = {};
873
876
  const response = yield this.request({
874
877
  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