@dynamic-labs/sdk-api-core 0.0.644 → 0.0.645

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.644",
3
+ "version": "0.0.645",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -42,6 +42,8 @@ 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'],
45
47
  'multichainAccountAbstractionProviders': !runtime.exists(json, 'multichainAccountAbstractionProviders') ? undefined : (json['multichainAccountAbstractionProviders'].map(ProviderMultichainAccountAbstractionProviders.ProviderMultichainAccountAbstractionProvidersFromJSON)),
46
48
  'ecdsaProviderType': !runtime.exists(json, 'ecdsaProviderType') ? undefined : EcdsaValidatorOptions.EcdsaValidatorOptionsFromJSON(json['ecdsaProviderType']),
47
49
  'createNewAccounts': !runtime.exists(json, 'createNewAccounts') ? undefined : json['createNewAccounts'],
@@ -79,6 +81,8 @@ function ProviderToJSON(value) {
79
81
  'enabledCountries': value.enabledCountries === undefined ? undefined : (value.enabledCountries.map(SmsCountryCode.SmsCountryCodeToJSON)),
80
82
  'entryPointVersion': ProviderEntryPointVersionEnum.ProviderEntryPointVersionEnumToJSON(value.entryPointVersion),
81
83
  'kernelVersion': ProviderKernelVersionEnum.ProviderKernelVersionEnumToJSON(value.kernelVersion),
84
+ 'factoryAddress': value.factoryAddress,
85
+ 'paymasterAddress': value.paymasterAddress,
82
86
  'multichainAccountAbstractionProviders': value.multichainAccountAbstractionProviders === undefined ? undefined : (value.multichainAccountAbstractionProviders.map(ProviderMultichainAccountAbstractionProviders.ProviderMultichainAccountAbstractionProvidersToJSON)),
83
87
  'ecdsaProviderType': EcdsaValidatorOptions.EcdsaValidatorOptionsToJSON(value.ecdsaProviderType),
84
88
  'createNewAccounts': value.createNewAccounts,
@@ -154,6 +154,18 @@ 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;
157
169
  /**
158
170
  *
159
171
  * @type {Array<ProviderMultichainAccountAbstractionProviders>}
@@ -38,6 +38,8 @@ 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'],
41
43
  'multichainAccountAbstractionProviders': !exists(json, 'multichainAccountAbstractionProviders') ? undefined : (json['multichainAccountAbstractionProviders'].map(ProviderMultichainAccountAbstractionProvidersFromJSON)),
42
44
  'ecdsaProviderType': !exists(json, 'ecdsaProviderType') ? undefined : EcdsaValidatorOptionsFromJSON(json['ecdsaProviderType']),
43
45
  'createNewAccounts': !exists(json, 'createNewAccounts') ? undefined : json['createNewAccounts'],
@@ -75,6 +77,8 @@ function ProviderToJSON(value) {
75
77
  'enabledCountries': value.enabledCountries === undefined ? undefined : (value.enabledCountries.map(SmsCountryCodeToJSON)),
76
78
  'entryPointVersion': ProviderEntryPointVersionEnumToJSON(value.entryPointVersion),
77
79
  'kernelVersion': ProviderKernelVersionEnumToJSON(value.kernelVersion),
80
+ 'factoryAddress': value.factoryAddress,
81
+ 'paymasterAddress': value.paymasterAddress,
78
82
  'multichainAccountAbstractionProviders': value.multichainAccountAbstractionProviders === undefined ? undefined : (value.multichainAccountAbstractionProviders.map(ProviderMultichainAccountAbstractionProvidersToJSON)),
79
83
  'ecdsaProviderType': EcdsaValidatorOptionsToJSON(value.ecdsaProviderType),
80
84
  '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);