@dynamic-labs/sdk-api-core 0.0.644 → 0.0.646
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/models/Provider.cjs
CHANGED
|
@@ -42,6 +42,9 @@ function ProviderFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'enabledCountries': !runtime.exists(json, 'enabledCountries') ? undefined : (json['enabledCountries'].map(SmsCountryCode.SmsCountryCodeFromJSON)),
|
|
43
43
|
'entryPointVersion': !runtime.exists(json, 'entryPointVersion') ? undefined : ProviderEntryPointVersionEnum.ProviderEntryPointVersionEnumFromJSON(json['entryPointVersion']),
|
|
44
44
|
'kernelVersion': !runtime.exists(json, 'kernelVersion') ? undefined : ProviderKernelVersionEnum.ProviderKernelVersionEnumFromJSON(json['kernelVersion']),
|
|
45
|
+
'factoryAddress': !runtime.exists(json, 'factoryAddress') ? undefined : json['factoryAddress'],
|
|
46
|
+
'paymasterAddress': !runtime.exists(json, 'paymasterAddress') ? undefined : json['paymasterAddress'],
|
|
47
|
+
'salt': !runtime.exists(json, 'salt') ? undefined : json['salt'],
|
|
45
48
|
'multichainAccountAbstractionProviders': !runtime.exists(json, 'multichainAccountAbstractionProviders') ? undefined : (json['multichainAccountAbstractionProviders'].map(ProviderMultichainAccountAbstractionProviders.ProviderMultichainAccountAbstractionProvidersFromJSON)),
|
|
46
49
|
'ecdsaProviderType': !runtime.exists(json, 'ecdsaProviderType') ? undefined : EcdsaValidatorOptions.EcdsaValidatorOptionsFromJSON(json['ecdsaProviderType']),
|
|
47
50
|
'createNewAccounts': !runtime.exists(json, 'createNewAccounts') ? undefined : json['createNewAccounts'],
|
|
@@ -79,6 +82,9 @@ function ProviderToJSON(value) {
|
|
|
79
82
|
'enabledCountries': value.enabledCountries === undefined ? undefined : (value.enabledCountries.map(SmsCountryCode.SmsCountryCodeToJSON)),
|
|
80
83
|
'entryPointVersion': ProviderEntryPointVersionEnum.ProviderEntryPointVersionEnumToJSON(value.entryPointVersion),
|
|
81
84
|
'kernelVersion': ProviderKernelVersionEnum.ProviderKernelVersionEnumToJSON(value.kernelVersion),
|
|
85
|
+
'factoryAddress': value.factoryAddress,
|
|
86
|
+
'paymasterAddress': value.paymasterAddress,
|
|
87
|
+
'salt': value.salt,
|
|
82
88
|
'multichainAccountAbstractionProviders': value.multichainAccountAbstractionProviders === undefined ? undefined : (value.multichainAccountAbstractionProviders.map(ProviderMultichainAccountAbstractionProviders.ProviderMultichainAccountAbstractionProvidersToJSON)),
|
|
83
89
|
'ecdsaProviderType': EcdsaValidatorOptions.EcdsaValidatorOptionsToJSON(value.ecdsaProviderType),
|
|
84
90
|
'createNewAccounts': value.createNewAccounts,
|
package/src/models/Provider.d.ts
CHANGED
|
@@ -154,6 +154,24 @@ export interface Provider {
|
|
|
154
154
|
* @memberof Provider
|
|
155
155
|
*/
|
|
156
156
|
kernelVersion?: ProviderKernelVersionEnum;
|
|
157
|
+
/**
|
|
158
|
+
* The factory address for the provider (currently only used for zksync)
|
|
159
|
+
* @type {string}
|
|
160
|
+
* @memberof Provider
|
|
161
|
+
*/
|
|
162
|
+
factoryAddress?: string;
|
|
163
|
+
/**
|
|
164
|
+
* The paymaster address for the provider (currently only used for zksync)
|
|
165
|
+
* @type {string}
|
|
166
|
+
* @memberof Provider
|
|
167
|
+
*/
|
|
168
|
+
paymasterAddress?: string;
|
|
169
|
+
/**
|
|
170
|
+
* The salt for the provider address generation (currently only used for zksync)
|
|
171
|
+
* @type {string}
|
|
172
|
+
* @memberof Provider
|
|
173
|
+
*/
|
|
174
|
+
salt?: string;
|
|
157
175
|
/**
|
|
158
176
|
*
|
|
159
177
|
* @type {Array<ProviderMultichainAccountAbstractionProviders>}
|
package/src/models/Provider.js
CHANGED
|
@@ -38,6 +38,9 @@ function ProviderFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
'enabledCountries': !exists(json, 'enabledCountries') ? undefined : (json['enabledCountries'].map(SmsCountryCodeFromJSON)),
|
|
39
39
|
'entryPointVersion': !exists(json, 'entryPointVersion') ? undefined : ProviderEntryPointVersionEnumFromJSON(json['entryPointVersion']),
|
|
40
40
|
'kernelVersion': !exists(json, 'kernelVersion') ? undefined : ProviderKernelVersionEnumFromJSON(json['kernelVersion']),
|
|
41
|
+
'factoryAddress': !exists(json, 'factoryAddress') ? undefined : json['factoryAddress'],
|
|
42
|
+
'paymasterAddress': !exists(json, 'paymasterAddress') ? undefined : json['paymasterAddress'],
|
|
43
|
+
'salt': !exists(json, 'salt') ? undefined : json['salt'],
|
|
41
44
|
'multichainAccountAbstractionProviders': !exists(json, 'multichainAccountAbstractionProviders') ? undefined : (json['multichainAccountAbstractionProviders'].map(ProviderMultichainAccountAbstractionProvidersFromJSON)),
|
|
42
45
|
'ecdsaProviderType': !exists(json, 'ecdsaProviderType') ? undefined : EcdsaValidatorOptionsFromJSON(json['ecdsaProviderType']),
|
|
43
46
|
'createNewAccounts': !exists(json, 'createNewAccounts') ? undefined : json['createNewAccounts'],
|
|
@@ -75,6 +78,9 @@ function ProviderToJSON(value) {
|
|
|
75
78
|
'enabledCountries': value.enabledCountries === undefined ? undefined : (value.enabledCountries.map(SmsCountryCodeToJSON)),
|
|
76
79
|
'entryPointVersion': ProviderEntryPointVersionEnumToJSON(value.entryPointVersion),
|
|
77
80
|
'kernelVersion': ProviderKernelVersionEnumToJSON(value.kernelVersion),
|
|
81
|
+
'factoryAddress': value.factoryAddress,
|
|
82
|
+
'paymasterAddress': value.paymasterAddress,
|
|
83
|
+
'salt': value.salt,
|
|
78
84
|
'multichainAccountAbstractionProviders': value.multichainAccountAbstractionProviders === undefined ? undefined : (value.multichainAccountAbstractionProviders.map(ProviderMultichainAccountAbstractionProvidersToJSON)),
|
|
79
85
|
'ecdsaProviderType': EcdsaValidatorOptionsToJSON(value.ecdsaProviderType),
|
|
80
86
|
'createNewAccounts': value.createNewAccounts,
|
|
@@ -54,6 +54,7 @@ exports.ProviderEnum = void 0;
|
|
|
54
54
|
ProviderEnum["Line"] = "line";
|
|
55
55
|
ProviderEnum["Steam"] = "steam";
|
|
56
56
|
ProviderEnum["Shopify"] = "shopify";
|
|
57
|
+
ProviderEnum["Zksync"] = "zksync";
|
|
57
58
|
})(exports.ProviderEnum || (exports.ProviderEnum = {}));
|
|
58
59
|
function ProviderEnumFromJSON(json) {
|
|
59
60
|
return ProviderEnumFromJSONTyped(json);
|
|
@@ -46,7 +46,8 @@ export declare enum ProviderEnum {
|
|
|
46
46
|
Tiktok = "tiktok",
|
|
47
47
|
Line = "line",
|
|
48
48
|
Steam = "steam",
|
|
49
|
-
Shopify = "shopify"
|
|
49
|
+
Shopify = "shopify",
|
|
50
|
+
Zksync = "zksync"
|
|
50
51
|
}
|
|
51
52
|
export declare function ProviderEnumFromJSON(json: any): ProviderEnum;
|
|
52
53
|
export declare function ProviderEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderEnum;
|
|
@@ -50,6 +50,7 @@ var ProviderEnum;
|
|
|
50
50
|
ProviderEnum["Line"] = "line";
|
|
51
51
|
ProviderEnum["Steam"] = "steam";
|
|
52
52
|
ProviderEnum["Shopify"] = "shopify";
|
|
53
|
+
ProviderEnum["Zksync"] = "zksync";
|
|
53
54
|
})(ProviderEnum || (ProviderEnum = {}));
|
|
54
55
|
function ProviderEnumFromJSON(json) {
|
|
55
56
|
return ProviderEnumFromJSONTyped(json);
|