@imtbl/sdk 1.28.3-alpha.1 → 1.28.4

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/dist/index.cjs CHANGED
@@ -183,7 +183,7 @@ const flattenProperties$1 = (properties) => {
183
183
  };
184
184
 
185
185
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
186
- const SDK_VERSION$1 = '1.28.3-alpha.1';
186
+ const SDK_VERSION$1 = '1.28.4';
187
187
  const getReferrer$1 = () => {
188
188
  if (isNode$1()) {
189
189
  return '';
@@ -14335,7 +14335,7 @@ class MultiRollupApiClients {
14335
14335
  }
14336
14336
 
14337
14337
  // eslint-disable-next-line @typescript-eslint/naming-convention
14338
- const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.28.3-alpha.1' };
14338
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.28.4' };
14339
14339
  const createConfig$1 = ({ basePath, headers, }) => {
14340
14340
  if (!basePath.trim()) {
14341
14341
  throw Error('basePath can not be empty');
@@ -14407,7 +14407,7 @@ class APIError extends Error {
14407
14407
 
14408
14408
  /* eslint-disable implicit-arrow-linebreak */
14409
14409
  const defaultHeaders$1 = {
14410
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.28.3-alpha.1',
14410
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.28.4',
14411
14411
  };
14412
14412
  /**
14413
14413
  * createAPIConfiguration to create a custom Configuration
@@ -14881,7 +14881,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
14881
14881
  /* eslint-disable @typescript-eslint/naming-convention */
14882
14882
  class ApiConfiguration extends index$2.Configuration {
14883
14883
  }
14884
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.28.3-alpha.1' };
14884
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.28.4' };
14885
14885
  /**
14886
14886
  * @dev use createImmutableXConfiguration instead
14887
14887
  */
@@ -14920,7 +14920,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
14920
14920
  chainID,
14921
14921
  coreContractAddress,
14922
14922
  registrationContractAddress,
14923
- sdkVersion: 'ts-immutable-sdk-1.28.3-alpha.1',
14923
+ sdkVersion: 'ts-immutable-sdk-1.28.4',
14924
14924
  baseConfig,
14925
14925
  });
14926
14926
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -26869,8 +26869,7 @@ const getMetaTransactions = async (metaTransaction, nonce, chainId, walletAddres
26869
26869
  }
26870
26870
  return [metaTransaction, feeMetaTransaction];
26871
26871
  };
26872
- const sendTransaction$1 = ({ params, ethSigner, rpcProvider, relayerClient, guardianClient, zkevmAddress, }) => guardianClient
26873
- .withConfirmationScreen({ width: 480, height: 720 })(async () => {
26872
+ const sendTransaction$1 = async ({ params, ethSigner, rpcProvider, relayerClient, guardianClient, zkevmAddress, }) => {
26874
26873
  const transactionRequest = params[0];
26875
26874
  if (!transactionRequest.to) {
26876
26875
  throw new JsonRpcError(RpcErrorCode.INVALID_PARAMS, 'eth_sendTransaction requires a "to" field');
@@ -26925,7 +26924,7 @@ const sendTransaction$1 = ({ params, ethSigner, rpcProvider, relayerClient, guar
26925
26924
  throw new JsonRpcError(RpcErrorCode.RPC_SERVER_ERROR, errorMessage);
26926
26925
  }
26927
26926
  return relayerTransaction.hash;
26928
- });
26927
+ };
26929
26928
 
26930
26929
  const REQUIRED_TYPED_DATA_PROPERTIES = ['types', 'domain', 'primaryType', 'message'];
26931
26930
  const isValidTypedDataPayload = (typedData) => (REQUIRED_TYPED_DATA_PROPERTIES.every((key) => key in typedData));
@@ -26965,8 +26964,7 @@ const transformTypedData = (typedData, chainId) => {
26965
26964
  }
26966
26965
  return transformedTypedData;
26967
26966
  };
26968
- const signTypedDataV4 = async ({ params, method, ethSigner, rpcProvider, relayerClient, guardianClient, }) => guardianClient
26969
- .withConfirmationScreen({ width: 480, height: 720 })(async () => {
26967
+ const signTypedDataV4 = async ({ params, method, ethSigner, rpcProvider, relayerClient, guardianClient, }) => {
26970
26968
  const fromAddress = params[0];
26971
26969
  const typedDataParam = params[1];
26972
26970
  if (!fromAddress || !typedDataParam) {
@@ -26977,7 +26975,7 @@ const signTypedDataV4 = async ({ params, method, ethSigner, rpcProvider, relayer
26977
26975
  await guardianClient.validateMessage({ chainID: String(chainId), payload: typedData });
26978
26976
  const relayerSignature = await relayerClient.imSignTypedData(fromAddress, typedData);
26979
26977
  return getSignedTypedData(typedData, relayerSignature, ethers.BigNumber.from(chainId), fromAddress, ethSigner);
26980
- });
26978
+ };
26981
26979
 
26982
26980
  const isZkEvmUser = (user) => 'zkEvm' in user;
26983
26981
  class ZkEvmProvider {
@@ -27101,14 +27099,16 @@ class ZkEvmProvider {
27101
27099
  if (!this.#zkEvmAddress) {
27102
27100
  throw new JsonRpcError(ProviderErrorCode.UNAUTHORIZED, 'Unauthorised - call eth_requestAccounts first');
27103
27101
  }
27104
- const ethSigner = await this.#getSigner();
27105
- return sendTransaction$1({
27106
- params: request.params || [],
27107
- ethSigner,
27108
- guardianClient: this.#guardianClient,
27109
- rpcProvider: this.#rpcProvider,
27110
- relayerClient: this.#relayerClient,
27111
- zkevmAddress: this.#zkEvmAddress,
27102
+ return this.#guardianClient.withConfirmationScreen({ width: 480, height: 720 })(async () => {
27103
+ const ethSigner = await this.#getSigner();
27104
+ return sendTransaction$1({
27105
+ params: request.params || [],
27106
+ ethSigner,
27107
+ guardianClient: this.#guardianClient,
27108
+ rpcProvider: this.#rpcProvider,
27109
+ relayerClient: this.#relayerClient,
27110
+ zkevmAddress: this.#zkEvmAddress,
27111
+ });
27112
27112
  });
27113
27113
  }
27114
27114
  case 'eth_accounts': {
@@ -27119,14 +27119,16 @@ class ZkEvmProvider {
27119
27119
  if (!this.#zkEvmAddress) {
27120
27120
  throw new JsonRpcError(ProviderErrorCode.UNAUTHORIZED, 'Unauthorised - call eth_requestAccounts first');
27121
27121
  }
27122
- const ethSigner = await this.#getSigner();
27123
- return signTypedDataV4({
27124
- method: request.method,
27125
- params: request.params || [],
27126
- ethSigner,
27127
- rpcProvider: this.#rpcProvider,
27128
- relayerClient: this.#relayerClient,
27129
- guardianClient: this.#guardianClient,
27122
+ return this.#guardianClient.withConfirmationScreen({ width: 480, height: 720 })(async () => {
27123
+ const ethSigner = await this.#getSigner();
27124
+ return signTypedDataV4({
27125
+ method: request.method,
27126
+ params: request.params || [],
27127
+ ethSigner,
27128
+ rpcProvider: this.#rpcProvider,
27129
+ relayerClient: this.#relayerClient,
27130
+ guardianClient: this.#guardianClient,
27131
+ });
27130
27132
  });
27131
27133
  }
27132
27134
  case 'eth_chainId': {
@@ -46361,7 +46363,7 @@ const flattenProperties = (properties) => {
46361
46363
  };
46362
46364
 
46363
46365
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
46364
- const SDK_VERSION = '1.28.3-alpha.1';
46366
+ const SDK_VERSION = '1.28.4';
46365
46367
  const getReferrer = () => {
46366
46368
  if (isNode()) {
46367
46369
  return '';
@@ -51556,7 +51558,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
51556
51558
  maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
51557
51559
  };
51558
51560
 
51559
- const SDK_VERSION_MARKER = '1.28.3-alpha.1';
51561
+ const SDK_VERSION_MARKER = '1.28.4';
51560
51562
  // This SDK version is replaced by the `yarn build` command ran on the root level
51561
51563
  const globalPackageVersion = () => SDK_VERSION_MARKER;
51562
51564
 
package/dist/index.js CHANGED
@@ -160,7 +160,7 @@ const flattenProperties$1 = (properties) => {
160
160
  };
161
161
 
162
162
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
163
- const SDK_VERSION$1 = '1.28.3-alpha.1';
163
+ const SDK_VERSION$1 = '1.28.4';
164
164
  const getReferrer$1 = () => {
165
165
  if (isNode$1()) {
166
166
  return '';
@@ -14312,7 +14312,7 @@ class MultiRollupApiClients {
14312
14312
  }
14313
14313
 
14314
14314
  // eslint-disable-next-line @typescript-eslint/naming-convention
14315
- const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.28.3-alpha.1' };
14315
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.28.4' };
14316
14316
  const createConfig$1 = ({ basePath, headers, }) => {
14317
14317
  if (!basePath.trim()) {
14318
14318
  throw Error('basePath can not be empty');
@@ -14384,7 +14384,7 @@ class APIError extends Error {
14384
14384
 
14385
14385
  /* eslint-disable implicit-arrow-linebreak */
14386
14386
  const defaultHeaders$1 = {
14387
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.28.3-alpha.1',
14387
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.28.4',
14388
14388
  };
14389
14389
  /**
14390
14390
  * createAPIConfiguration to create a custom Configuration
@@ -14858,7 +14858,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
14858
14858
  /* eslint-disable @typescript-eslint/naming-convention */
14859
14859
  class ApiConfiguration extends index$2.Configuration {
14860
14860
  }
14861
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.28.3-alpha.1' };
14861
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.28.4' };
14862
14862
  /**
14863
14863
  * @dev use createImmutableXConfiguration instead
14864
14864
  */
@@ -14897,7 +14897,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
14897
14897
  chainID,
14898
14898
  coreContractAddress,
14899
14899
  registrationContractAddress,
14900
- sdkVersion: 'ts-immutable-sdk-1.28.3-alpha.1',
14900
+ sdkVersion: 'ts-immutable-sdk-1.28.4',
14901
14901
  baseConfig,
14902
14902
  });
14903
14903
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -26846,8 +26846,7 @@ const getMetaTransactions = async (metaTransaction, nonce, chainId, walletAddres
26846
26846
  }
26847
26847
  return [metaTransaction, feeMetaTransaction];
26848
26848
  };
26849
- const sendTransaction$1 = ({ params, ethSigner, rpcProvider, relayerClient, guardianClient, zkevmAddress, }) => guardianClient
26850
- .withConfirmationScreen({ width: 480, height: 720 })(async () => {
26849
+ const sendTransaction$1 = async ({ params, ethSigner, rpcProvider, relayerClient, guardianClient, zkevmAddress, }) => {
26851
26850
  const transactionRequest = params[0];
26852
26851
  if (!transactionRequest.to) {
26853
26852
  throw new JsonRpcError(RpcErrorCode.INVALID_PARAMS, 'eth_sendTransaction requires a "to" field');
@@ -26902,7 +26901,7 @@ const sendTransaction$1 = ({ params, ethSigner, rpcProvider, relayerClient, guar
26902
26901
  throw new JsonRpcError(RpcErrorCode.RPC_SERVER_ERROR, errorMessage);
26903
26902
  }
26904
26903
  return relayerTransaction.hash;
26905
- });
26904
+ };
26906
26905
 
26907
26906
  const REQUIRED_TYPED_DATA_PROPERTIES = ['types', 'domain', 'primaryType', 'message'];
26908
26907
  const isValidTypedDataPayload = (typedData) => (REQUIRED_TYPED_DATA_PROPERTIES.every((key) => key in typedData));
@@ -26942,8 +26941,7 @@ const transformTypedData = (typedData, chainId) => {
26942
26941
  }
26943
26942
  return transformedTypedData;
26944
26943
  };
26945
- const signTypedDataV4 = async ({ params, method, ethSigner, rpcProvider, relayerClient, guardianClient, }) => guardianClient
26946
- .withConfirmationScreen({ width: 480, height: 720 })(async () => {
26944
+ const signTypedDataV4 = async ({ params, method, ethSigner, rpcProvider, relayerClient, guardianClient, }) => {
26947
26945
  const fromAddress = params[0];
26948
26946
  const typedDataParam = params[1];
26949
26947
  if (!fromAddress || !typedDataParam) {
@@ -26954,7 +26952,7 @@ const signTypedDataV4 = async ({ params, method, ethSigner, rpcProvider, relayer
26954
26952
  await guardianClient.validateMessage({ chainID: String(chainId), payload: typedData });
26955
26953
  const relayerSignature = await relayerClient.imSignTypedData(fromAddress, typedData);
26956
26954
  return getSignedTypedData(typedData, relayerSignature, BigNumber$1.from(chainId), fromAddress, ethSigner);
26957
- });
26955
+ };
26958
26956
 
26959
26957
  const isZkEvmUser = (user) => 'zkEvm' in user;
26960
26958
  class ZkEvmProvider {
@@ -27078,14 +27076,16 @@ class ZkEvmProvider {
27078
27076
  if (!this.#zkEvmAddress) {
27079
27077
  throw new JsonRpcError(ProviderErrorCode.UNAUTHORIZED, 'Unauthorised - call eth_requestAccounts first');
27080
27078
  }
27081
- const ethSigner = await this.#getSigner();
27082
- return sendTransaction$1({
27083
- params: request.params || [],
27084
- ethSigner,
27085
- guardianClient: this.#guardianClient,
27086
- rpcProvider: this.#rpcProvider,
27087
- relayerClient: this.#relayerClient,
27088
- zkevmAddress: this.#zkEvmAddress,
27079
+ return this.#guardianClient.withConfirmationScreen({ width: 480, height: 720 })(async () => {
27080
+ const ethSigner = await this.#getSigner();
27081
+ return sendTransaction$1({
27082
+ params: request.params || [],
27083
+ ethSigner,
27084
+ guardianClient: this.#guardianClient,
27085
+ rpcProvider: this.#rpcProvider,
27086
+ relayerClient: this.#relayerClient,
27087
+ zkevmAddress: this.#zkEvmAddress,
27088
+ });
27089
27089
  });
27090
27090
  }
27091
27091
  case 'eth_accounts': {
@@ -27096,14 +27096,16 @@ class ZkEvmProvider {
27096
27096
  if (!this.#zkEvmAddress) {
27097
27097
  throw new JsonRpcError(ProviderErrorCode.UNAUTHORIZED, 'Unauthorised - call eth_requestAccounts first');
27098
27098
  }
27099
- const ethSigner = await this.#getSigner();
27100
- return signTypedDataV4({
27101
- method: request.method,
27102
- params: request.params || [],
27103
- ethSigner,
27104
- rpcProvider: this.#rpcProvider,
27105
- relayerClient: this.#relayerClient,
27106
- guardianClient: this.#guardianClient,
27099
+ return this.#guardianClient.withConfirmationScreen({ width: 480, height: 720 })(async () => {
27100
+ const ethSigner = await this.#getSigner();
27101
+ return signTypedDataV4({
27102
+ method: request.method,
27103
+ params: request.params || [],
27104
+ ethSigner,
27105
+ rpcProvider: this.#rpcProvider,
27106
+ relayerClient: this.#relayerClient,
27107
+ guardianClient: this.#guardianClient,
27108
+ });
27107
27109
  });
27108
27110
  }
27109
27111
  case 'eth_chainId': {
@@ -46338,7 +46340,7 @@ const flattenProperties = (properties) => {
46338
46340
  };
46339
46341
 
46340
46342
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
46341
- const SDK_VERSION = '1.28.3-alpha.1';
46343
+ const SDK_VERSION = '1.28.4';
46342
46344
  const getReferrer = () => {
46343
46345
  if (isNode()) {
46344
46346
  return '';
@@ -51533,7 +51535,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
51533
51535
  maxPriorityFeePerGas: BigNumber$1.from(10e9),
51534
51536
  };
51535
51537
 
51536
- const SDK_VERSION_MARKER = '1.28.3-alpha.1';
51538
+ const SDK_VERSION_MARKER = '1.28.4';
51537
51539
  // This SDK version is replaced by the `yarn build` command ran on the root level
51538
51540
  const globalPackageVersion = () => SDK_VERSION_MARKER;
51539
51541
 
package/dist/orderbook.js CHANGED
@@ -132,7 +132,7 @@ const flattenProperties = (properties) => {
132
132
  };
133
133
 
134
134
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
135
- const SDK_VERSION = '1.28.3-alpha.1';
135
+ const SDK_VERSION = '1.28.4';
136
136
  const getReferrer = () => {
137
137
  if (isNode()) {
138
138
  return '';
package/dist/passport.js CHANGED
@@ -11564,7 +11564,7 @@ class MultiRollupApiClients {
11564
11564
  }
11565
11565
 
11566
11566
  // eslint-disable-next-line @typescript-eslint/naming-convention
11567
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.28.3-alpha.1' };
11567
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.28.4' };
11568
11568
  const createConfig$1 = ({ basePath, headers, }) => {
11569
11569
  if (!basePath.trim()) {
11570
11570
  throw Error('basePath can not be empty');
@@ -11743,7 +11743,7 @@ const flattenProperties = (properties) => {
11743
11743
  };
11744
11744
 
11745
11745
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
11746
- const SDK_VERSION = '1.28.3-alpha.1';
11746
+ const SDK_VERSION = '1.28.4';
11747
11747
  const getReferrer = () => {
11748
11748
  if (isNode()) {
11749
11749
  return '';
@@ -11993,7 +11993,7 @@ const addKeysToHeadersOverride = (baseConfig, overrides) => {
11993
11993
  /* eslint-disable @typescript-eslint/naming-convention */
11994
11994
  class ApiConfiguration extends index$2.Configuration {
11995
11995
  }
11996
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.28.3-alpha.1' };
11996
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.28.4' };
11997
11997
  /**
11998
11998
  * @dev use createImmutableXConfiguration instead
11999
11999
  */
@@ -12032,7 +12032,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
12032
12032
  chainID,
12033
12033
  coreContractAddress,
12034
12034
  registrationContractAddress,
12035
- sdkVersion: 'ts-immutable-sdk-1.28.3-alpha.1',
12035
+ sdkVersion: 'ts-immutable-sdk-1.28.4',
12036
12036
  baseConfig,
12037
12037
  });
12038
12038
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -21545,8 +21545,7 @@ const getMetaTransactions = async (metaTransaction, nonce, chainId, walletAddres
21545
21545
  }
21546
21546
  return [metaTransaction, feeMetaTransaction];
21547
21547
  };
21548
- const sendTransaction = ({ params, ethSigner, rpcProvider, relayerClient, guardianClient, zkevmAddress, }) => guardianClient
21549
- .withConfirmationScreen({ width: 480, height: 720 })(async () => {
21548
+ const sendTransaction = async ({ params, ethSigner, rpcProvider, relayerClient, guardianClient, zkevmAddress, }) => {
21550
21549
  const transactionRequest = params[0];
21551
21550
  if (!transactionRequest.to) {
21552
21551
  throw new JsonRpcError(RpcErrorCode.INVALID_PARAMS, 'eth_sendTransaction requires a "to" field');
@@ -21601,7 +21600,7 @@ const sendTransaction = ({ params, ethSigner, rpcProvider, relayerClient, guardi
21601
21600
  throw new JsonRpcError(RpcErrorCode.RPC_SERVER_ERROR, errorMessage);
21602
21601
  }
21603
21602
  return relayerTransaction.hash;
21604
- });
21603
+ };
21605
21604
 
21606
21605
  const REQUIRED_TYPED_DATA_PROPERTIES = ['types', 'domain', 'primaryType', 'message'];
21607
21606
  const isValidTypedDataPayload = (typedData) => (REQUIRED_TYPED_DATA_PROPERTIES.every((key) => key in typedData));
@@ -21641,8 +21640,7 @@ const transformTypedData = (typedData, chainId) => {
21641
21640
  }
21642
21641
  return transformedTypedData;
21643
21642
  };
21644
- const signTypedDataV4 = async ({ params, method, ethSigner, rpcProvider, relayerClient, guardianClient, }) => guardianClient
21645
- .withConfirmationScreen({ width: 480, height: 720 })(async () => {
21643
+ const signTypedDataV4 = async ({ params, method, ethSigner, rpcProvider, relayerClient, guardianClient, }) => {
21646
21644
  const fromAddress = params[0];
21647
21645
  const typedDataParam = params[1];
21648
21646
  if (!fromAddress || !typedDataParam) {
@@ -21653,7 +21651,7 @@ const signTypedDataV4 = async ({ params, method, ethSigner, rpcProvider, relayer
21653
21651
  await guardianClient.validateMessage({ chainID: String(chainId), payload: typedData });
21654
21652
  const relayerSignature = await relayerClient.imSignTypedData(fromAddress, typedData);
21655
21653
  return getSignedTypedData(typedData, relayerSignature, BigNumber.from(chainId), fromAddress, ethSigner);
21656
- });
21654
+ };
21657
21655
 
21658
21656
  const isZkEvmUser = (user) => 'zkEvm' in user;
21659
21657
  class ZkEvmProvider {
@@ -21777,14 +21775,16 @@ class ZkEvmProvider {
21777
21775
  if (!this.#zkEvmAddress) {
21778
21776
  throw new JsonRpcError(ProviderErrorCode.UNAUTHORIZED, 'Unauthorised - call eth_requestAccounts first');
21779
21777
  }
21780
- const ethSigner = await this.#getSigner();
21781
- return sendTransaction({
21782
- params: request.params || [],
21783
- ethSigner,
21784
- guardianClient: this.#guardianClient,
21785
- rpcProvider: this.#rpcProvider,
21786
- relayerClient: this.#relayerClient,
21787
- zkevmAddress: this.#zkEvmAddress,
21778
+ return this.#guardianClient.withConfirmationScreen({ width: 480, height: 720 })(async () => {
21779
+ const ethSigner = await this.#getSigner();
21780
+ return sendTransaction({
21781
+ params: request.params || [],
21782
+ ethSigner,
21783
+ guardianClient: this.#guardianClient,
21784
+ rpcProvider: this.#rpcProvider,
21785
+ relayerClient: this.#relayerClient,
21786
+ zkevmAddress: this.#zkEvmAddress,
21787
+ });
21788
21788
  });
21789
21789
  }
21790
21790
  case 'eth_accounts': {
@@ -21795,14 +21795,16 @@ class ZkEvmProvider {
21795
21795
  if (!this.#zkEvmAddress) {
21796
21796
  throw new JsonRpcError(ProviderErrorCode.UNAUTHORIZED, 'Unauthorised - call eth_requestAccounts first');
21797
21797
  }
21798
- const ethSigner = await this.#getSigner();
21799
- return signTypedDataV4({
21800
- method: request.method,
21801
- params: request.params || [],
21802
- ethSigner,
21803
- rpcProvider: this.#rpcProvider,
21804
- relayerClient: this.#relayerClient,
21805
- guardianClient: this.#guardianClient,
21798
+ return this.#guardianClient.withConfirmationScreen({ width: 480, height: 720 })(async () => {
21799
+ const ethSigner = await this.#getSigner();
21800
+ return signTypedDataV4({
21801
+ method: request.method,
21802
+ params: request.params || [],
21803
+ ethSigner,
21804
+ rpcProvider: this.#rpcProvider,
21805
+ relayerClient: this.#relayerClient,
21806
+ guardianClient: this.#guardianClient,
21807
+ });
21806
21808
  });
21807
21809
  }
21808
21810
  case 'eth_chainId': {
package/dist/x.js CHANGED
@@ -9003,7 +9003,7 @@ const flattenProperties = (properties) => {
9003
9003
  };
9004
9004
 
9005
9005
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
9006
- const SDK_VERSION = '1.28.3-alpha.1';
9006
+ const SDK_VERSION = '1.28.4';
9007
9007
  const getReferrer = () => {
9008
9008
  if (isNode()) {
9009
9009
  return '';
@@ -9246,7 +9246,7 @@ const addKeysToHeadersOverride = (baseConfig, overrides) => {
9246
9246
  /* eslint-disable @typescript-eslint/naming-convention */
9247
9247
  class ApiConfiguration extends index$2.Configuration {
9248
9248
  }
9249
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.28.3-alpha.1' };
9249
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.28.4' };
9250
9250
  /**
9251
9251
  * @dev use createImmutableXConfiguration instead
9252
9252
  */
@@ -9285,7 +9285,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
9285
9285
  chainID,
9286
9286
  coreContractAddress,
9287
9287
  registrationContractAddress,
9288
- sdkVersion: 'ts-immutable-sdk-1.28.3-alpha.1',
9288
+ sdkVersion: 'ts-immutable-sdk-1.28.4',
9289
9289
  baseConfig,
9290
9290
  });
9291
9291
  const production = ({ baseConfig }) => createImmutableXConfiguration({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imtbl/sdk",
3
3
  "description": "Immutable Unified SDK",
4
- "version": "1.28.3-alpha.1",
4
+ "version": "1.28.4",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",