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