@dynamic-labs/sdk-api-core 0.0.442 → 0.0.444
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
|
@@ -876,6 +876,9 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
876
876
|
if (requestParameters.includePrices !== undefined) {
|
|
877
877
|
queryParameters['includePrices'] = requestParameters.includePrices;
|
|
878
878
|
}
|
|
879
|
+
if (requestParameters.includeNative !== undefined) {
|
|
880
|
+
queryParameters['includeNative'] = requestParameters.includeNative;
|
|
881
|
+
}
|
|
879
882
|
const headerParameters = {};
|
|
880
883
|
const response = yield this.request({
|
|
881
884
|
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
|
@@ -100,6 +100,7 @@ export interface GetAccountBalancesRequest {
|
|
|
100
100
|
networkId: GetAccountBalancesNetworkIdEnum;
|
|
101
101
|
accountAddress: string;
|
|
102
102
|
includePrices?: boolean;
|
|
103
|
+
includeNative?: boolean;
|
|
103
104
|
}
|
|
104
105
|
export interface GetAccountBalancesOptionsRequest {
|
|
105
106
|
environmentId: string;
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -872,6 +872,9 @@ class SDKApi extends BaseAPI {
|
|
|
872
872
|
if (requestParameters.includePrices !== undefined) {
|
|
873
873
|
queryParameters['includePrices'] = requestParameters.includePrices;
|
|
874
874
|
}
|
|
875
|
+
if (requestParameters.includeNative !== undefined) {
|
|
876
|
+
queryParameters['includeNative'] = requestParameters.includeNative;
|
|
877
|
+
}
|
|
875
878
|
const headerParameters = {};
|
|
876
879
|
const response = yield this.request({
|
|
877
880
|
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
|
|