@web3auth/no-modal 10.2.0 → 10.3.0

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.
@@ -145,7 +145,7 @@ const getWalletServicesAnalyticsProperties = walletServicesConfig => {
145
145
  ws_default_portfolio: walletServicesConfig === null || walletServicesConfig === void 0 || (_walletServicesConfig1 = walletServicesConfig.whiteLabel) === null || _walletServicesConfig1 === void 0 ? void 0 : _walletServicesConfig1.defaultPortfolio
146
146
  };
147
147
  };
148
- const sdkVersion = "10.2.0";
148
+ const sdkVersion = "10.3.0";
149
149
  const getErrorAnalyticsProperties = error => {
150
150
  try {
151
151
  const code = error instanceof index.Web3AuthError ? error.code : error === null || error === void 0 ? void 0 : error.code;
@@ -97,7 +97,6 @@ class AuthConnector extends baseConnector.BaseConnector {
97
97
  case baseControllers.CHAIN_NAMESPACES.EIP155:
98
98
  case baseControllers.CHAIN_NAMESPACES.SOLANA:
99
99
  {
100
- var _this$wsSettings$whit, _this$authOptions$whi, _this$wsSettings$whit2, _this$authOptions$whi2;
101
100
  const {
102
101
  default: WsEmbed
103
102
  } = await import('@web3auth/ws-embed');
@@ -107,17 +106,10 @@ class AuthConnector extends baseConnector.BaseConnector {
107
106
  modalZIndex: this.wsSettings.modalZIndex
108
107
  });
109
108
  const wsSupportedChains = chains.filter(x => x.chainNamespace === baseControllers.CHAIN_NAMESPACES.EIP155 || x.chainNamespace === baseControllers.CHAIN_NAMESPACES.SOLANA);
110
- const wsEmbedWhiteLabel = _objectSpread(_objectSpread(_objectSpread({}, this.authOptions.whiteLabel), this.wsSettings.whiteLabel), {}, {
111
- logoLight: ((_this$wsSettings$whit = this.wsSettings.whiteLabel) === null || _this$wsSettings$whit === void 0 ? void 0 : _this$wsSettings$whit.logoLight) || ((_this$authOptions$whi = this.authOptions.whiteLabel) === null || _this$authOptions$whi === void 0 ? void 0 : _this$authOptions$whi.logoLight) || "",
112
- logoDark: ((_this$wsSettings$whit2 = this.wsSettings.whiteLabel) === null || _this$wsSettings$whit2 === void 0 ? void 0 : _this$wsSettings$whit2.logoDark) || ((_this$authOptions$whi2 = this.authOptions.whiteLabel) === null || _this$authOptions$whi2 === void 0 ? void 0 : _this$authOptions$whi2.logoDark) || ""
113
- });
114
109
  this.wsEmbedInstancePromise = this.wsEmbedInstance.init(_objectSpread(_objectSpread({}, this.wsSettings), {}, {
115
110
  chains: wsSupportedChains,
116
111
  chainId,
117
- whiteLabel: _objectSpread(_objectSpread({}, wsEmbedWhiteLabel), {}, {
118
- logoLight: wsEmbedWhiteLabel.logoLight || "",
119
- logoDark: wsEmbedWhiteLabel.logoDark || ""
120
- })
112
+ whiteLabel: _objectSpread(_objectSpread({}, this.authOptions.whiteLabel), this.wsSettings.whiteLabel)
121
113
  })).then(() => {
122
114
  this.wsEmbedInstancePromise = null;
123
115
  return;
@@ -522,10 +522,7 @@ class Web3AuthNoModal extends auth.SafeEventEmitter {
522
522
  const isKeyExportEnabled = (_ref2 = (_this$coreOptions$wal4 = (_this$coreOptions$wal5 = this.coreOptions.walletServicesConfig) === null || _this$coreOptions$wal5 === void 0 ? void 0 : _this$coreOptions$wal5.enableKeyExport) !== null && _this$coreOptions$wal4 !== void 0 ? _this$coreOptions$wal4 : enableKeyExport) !== null && _ref2 !== void 0 ? _ref2 : true;
523
523
  this.coreOptions.walletServicesConfig = _objectSpread(_objectSpread({}, this.coreOptions.walletServicesConfig), {}, {
524
524
  confirmationStrategy,
525
- whiteLabel: _objectSpread(_objectSpread({}, whiteLabel), {}, {
526
- logoLight: (whiteLabel === null || whiteLabel === void 0 ? void 0 : whiteLabel.logoLight) || "",
527
- logoDark: (whiteLabel === null || whiteLabel === void 0 ? void 0 : whiteLabel.logoDark) || ""
528
- }),
525
+ whiteLabel,
529
526
  enableKeyExport: isKeyExportEnabled
530
527
  });
531
528
  }
@@ -0,0 +1,3 @@
1
+ import { IdentifierString } from "@wallet-standard/base";
2
+ import { CustomChainConfig } from "../../base";
3
+ export declare const getSolanaChainByChainConfig: (chainConfig: CustomChainConfig) => IdentifierString;
@@ -0,0 +1,3 @@
1
+ import type { EngineTypes } from "@walletconnect/types";
2
+ import type { ChainNamespaceType } from "../../base";
3
+ export declare const isChainIdSupported: (chainNamespace: ChainNamespaceType, chainID: number, loginSettings: EngineTypes.ConnectParams | undefined) => boolean;
@@ -0,0 +1 @@
1
+ export * from "./ethRpcMiddlewares";
@@ -6,14 +6,11 @@ export declare const defaultWagmiConfig: import("wagmi").Config<readonly [{
6
6
  readonly apiUrl: "https://api.etherscan.io/api";
7
7
  };
8
8
  };
9
- blockTime?: number | undefined | undefined;
9
+ blockTime: 12000;
10
10
  contracts: {
11
- readonly ensRegistry: {
12
- readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
13
- };
14
11
  readonly ensUniversalResolver: {
15
- readonly address: "0xce01f8eee7E479C928F8919abD53E553a36CeF67";
16
- readonly blockCreated: 19258213;
12
+ readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
13
+ readonly blockCreated: 23085558;
17
14
  };
18
15
  readonly multicall3: {
19
16
  readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
@@ -6,14 +6,11 @@ export declare const defaultWagmiConfig: import("wagmi").Config<readonly [{
6
6
  readonly apiUrl: "https://api.etherscan.io/api";
7
7
  };
8
8
  };
9
- blockTime?: number | undefined | undefined;
9
+ blockTime: 12000;
10
10
  contracts: {
11
- readonly ensRegistry: {
12
- readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
13
- };
14
11
  readonly ensUniversalResolver: {
15
- readonly address: "0xce01f8eee7E479C928F8919abD53E553a36CeF67";
16
- readonly blockCreated: 19258213;
12
+ readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
13
+ readonly blockCreated: 23085558;
17
14
  };
18
15
  readonly multicall3: {
19
16
  readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
@@ -145,7 +145,7 @@ const getWalletServicesAnalyticsProperties = walletServicesConfig => {
145
145
  ws_default_portfolio: walletServicesConfig === null || walletServicesConfig === void 0 || (_walletServicesConfig1 = walletServicesConfig.whiteLabel) === null || _walletServicesConfig1 === void 0 ? void 0 : _walletServicesConfig1.defaultPortfolio
146
146
  };
147
147
  };
148
- const sdkVersion = "10.2.0";
148
+ const sdkVersion = "10.3.0";
149
149
  const getErrorAnalyticsProperties = error => {
150
150
  try {
151
151
  const code = error instanceof Web3AuthError ? error.code : error === null || error === void 0 ? void 0 : error.code;
@@ -93,7 +93,6 @@ class AuthConnector extends BaseConnector {
93
93
  case CHAIN_NAMESPACES.EIP155:
94
94
  case CHAIN_NAMESPACES.SOLANA:
95
95
  {
96
- var _this$wsSettings$whit, _this$authOptions$whi, _this$wsSettings$whit2, _this$authOptions$whi2;
97
96
  const {
98
97
  default: WsEmbed
99
98
  } = await import('@web3auth/ws-embed');
@@ -103,17 +102,10 @@ class AuthConnector extends BaseConnector {
103
102
  modalZIndex: this.wsSettings.modalZIndex
104
103
  });
105
104
  const wsSupportedChains = chains.filter(x => x.chainNamespace === CHAIN_NAMESPACES.EIP155 || x.chainNamespace === CHAIN_NAMESPACES.SOLANA);
106
- const wsEmbedWhiteLabel = _objectSpread(_objectSpread(_objectSpread({}, this.authOptions.whiteLabel), this.wsSettings.whiteLabel), {}, {
107
- logoLight: ((_this$wsSettings$whit = this.wsSettings.whiteLabel) === null || _this$wsSettings$whit === void 0 ? void 0 : _this$wsSettings$whit.logoLight) || ((_this$authOptions$whi = this.authOptions.whiteLabel) === null || _this$authOptions$whi === void 0 ? void 0 : _this$authOptions$whi.logoLight) || "",
108
- logoDark: ((_this$wsSettings$whit2 = this.wsSettings.whiteLabel) === null || _this$wsSettings$whit2 === void 0 ? void 0 : _this$wsSettings$whit2.logoDark) || ((_this$authOptions$whi2 = this.authOptions.whiteLabel) === null || _this$authOptions$whi2 === void 0 ? void 0 : _this$authOptions$whi2.logoDark) || ""
109
- });
110
105
  this.wsEmbedInstancePromise = this.wsEmbedInstance.init(_objectSpread(_objectSpread({}, this.wsSettings), {}, {
111
106
  chains: wsSupportedChains,
112
107
  chainId,
113
- whiteLabel: _objectSpread(_objectSpread({}, wsEmbedWhiteLabel), {}, {
114
- logoLight: wsEmbedWhiteLabel.logoLight || "",
115
- logoDark: wsEmbedWhiteLabel.logoDark || ""
116
- })
108
+ whiteLabel: _objectSpread(_objectSpread({}, this.authOptions.whiteLabel), this.wsSettings.whiteLabel)
117
109
  })).then(() => {
118
110
  this.wsEmbedInstancePromise = null;
119
111
  return;
@@ -531,10 +531,7 @@ class Web3AuthNoModal extends SafeEventEmitter {
531
531
  const isKeyExportEnabled = (_ref2 = (_this$coreOptions$wal4 = (_this$coreOptions$wal5 = this.coreOptions.walletServicesConfig) === null || _this$coreOptions$wal5 === void 0 ? void 0 : _this$coreOptions$wal5.enableKeyExport) !== null && _this$coreOptions$wal4 !== void 0 ? _this$coreOptions$wal4 : enableKeyExport) !== null && _ref2 !== void 0 ? _ref2 : true;
532
532
  this.coreOptions.walletServicesConfig = _objectSpread(_objectSpread({}, this.coreOptions.walletServicesConfig), {}, {
533
533
  confirmationStrategy,
534
- whiteLabel: _objectSpread(_objectSpread({}, whiteLabel), {}, {
535
- logoLight: (whiteLabel === null || whiteLabel === void 0 ? void 0 : whiteLabel.logoLight) || "",
536
- logoDark: (whiteLabel === null || whiteLabel === void 0 ? void 0 : whiteLabel.logoDark) || ""
537
- }),
534
+ whiteLabel,
538
535
  enableKeyExport: isKeyExportEnabled
539
536
  });
540
537
  }