@dynamic-labs/sdk-api-core 0.0.441 → 0.0.443

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.441",
3
+ "version": "0.0.443",
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))),
@@ -38,6 +38,8 @@ function ProjectSettingsSdkFromJSONTyped(json, ignoreDiscriminator) {
38
38
  'preventOrphanedAccounts': !runtime.exists(json, 'preventOrphanedAccounts') ? undefined : json['preventOrphanedAccounts'],
39
39
  'views': !runtime.exists(json, 'views') ? undefined : (json['views'].map(SdkView.SdkViewFromJSON)),
40
40
  'accountAbstraction': !runtime.exists(json, 'accountAbstraction') ? undefined : ProjectSettingsSdkAccountAbstraction.ProjectSettingsSdkAccountAbstractionFromJSON(json['accountAbstraction']),
41
+ 'enableMultiAsset': !runtime.exists(json, 'enableMultiAsset') ? undefined : json['enableMultiAsset'],
42
+ 'showFiat': !runtime.exists(json, 'showFiat') ? undefined : json['showFiat'],
41
43
  };
42
44
  }
43
45
  function ProjectSettingsSdkToJSON(value) {
@@ -66,6 +68,8 @@ function ProjectSettingsSdkToJSON(value) {
66
68
  'preventOrphanedAccounts': value.preventOrphanedAccounts,
67
69
  'views': value.views === undefined ? undefined : (value.views.map(SdkView.SdkViewToJSON)),
68
70
  'accountAbstraction': ProjectSettingsSdkAccountAbstraction.ProjectSettingsSdkAccountAbstractionToJSON(value.accountAbstraction),
71
+ 'enableMultiAsset': value.enableMultiAsset,
72
+ 'showFiat': value.showFiat,
69
73
  };
70
74
  }
71
75
 
@@ -130,6 +130,18 @@ export interface ProjectSettingsSdk {
130
130
  * @memberof ProjectSettingsSdk
131
131
  */
132
132
  accountAbstraction?: ProjectSettingsSdkAccountAbstraction;
133
+ /**
134
+ *
135
+ * @type {boolean}
136
+ * @memberof ProjectSettingsSdk
137
+ */
138
+ enableMultiAsset?: boolean;
139
+ /**
140
+ *
141
+ * @type {boolean}
142
+ * @memberof ProjectSettingsSdk
143
+ */
144
+ showFiat?: boolean;
133
145
  }
134
146
  export declare function ProjectSettingsSdkFromJSON(json: any): ProjectSettingsSdk;
135
147
  export declare function ProjectSettingsSdkFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectSettingsSdk;
@@ -34,6 +34,8 @@ function ProjectSettingsSdkFromJSONTyped(json, ignoreDiscriminator) {
34
34
  'preventOrphanedAccounts': !exists(json, 'preventOrphanedAccounts') ? undefined : json['preventOrphanedAccounts'],
35
35
  'views': !exists(json, 'views') ? undefined : (json['views'].map(SdkViewFromJSON)),
36
36
  'accountAbstraction': !exists(json, 'accountAbstraction') ? undefined : ProjectSettingsSdkAccountAbstractionFromJSON(json['accountAbstraction']),
37
+ 'enableMultiAsset': !exists(json, 'enableMultiAsset') ? undefined : json['enableMultiAsset'],
38
+ 'showFiat': !exists(json, 'showFiat') ? undefined : json['showFiat'],
37
39
  };
38
40
  }
39
41
  function ProjectSettingsSdkToJSON(value) {
@@ -62,6 +64,8 @@ function ProjectSettingsSdkToJSON(value) {
62
64
  'preventOrphanedAccounts': value.preventOrphanedAccounts,
63
65
  'views': value.views === undefined ? undefined : (value.views.map(SdkViewToJSON)),
64
66
  'accountAbstraction': ProjectSettingsSdkAccountAbstractionToJSON(value.accountAbstraction),
67
+ 'enableMultiAsset': value.enableMultiAsset,
68
+ 'showFiat': value.showFiat,
65
69
  };
66
70
  }
67
71
 
@@ -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