@wagmi/connectors 1.0.0 → 1.0.2-cjs

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.
@@ -1,4 +1,4 @@
1
1
  {
2
- "type": "module",
2
+ "module": "../dist/coinbaseWallet.mjs",
3
3
  "main": "../dist/coinbaseWallet.js"
4
4
  }
@@ -1,4 +1,4 @@
1
- // src/utils/normalizeChainId.ts
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/utils/normalizeChainId.ts
2
2
  function normalizeChainId(chainId) {
3
3
  if (typeof chainId === "string")
4
4
  return Number.parseInt(
@@ -10,6 +10,6 @@ function normalizeChainId(chainId) {
10
10
  return chainId;
11
11
  }
12
12
 
13
- export {
14
- normalizeChainId
15
- };
13
+
14
+
15
+ exports.normalizeChainId = normalizeChainId;
@@ -1,4 +1,4 @@
1
- var __defProp = Object.defineProperty;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => {
4
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -28,11 +28,11 @@ var __privateMethod = (obj, member, method) => {
28
28
  };
29
29
 
30
30
  // src/base.ts
31
- import { default as EventEmitter } from "eventemitter3";
32
- import { goerli, mainnet } from "viem/chains";
33
- var Connector = class extends EventEmitter {
31
+ var _eventemitter3 = require('eventemitter3'); var _eventemitter32 = _interopRequireDefault(_eventemitter3);
32
+ var _chains = require('viem/chains');
33
+ var Connector = class extends _eventemitter32.default {
34
34
  constructor({
35
- chains = [mainnet, goerli],
35
+ chains = [_chains.mainnet, _chains.goerli],
36
36
  options
37
37
  }) {
38
38
  super();
@@ -43,7 +43,7 @@ var Connector = class extends EventEmitter {
43
43
  this.options = options;
44
44
  }
45
45
  getBlockExplorerUrls(chain) {
46
- const { default: blockExplorer, ...blockExplorers } = chain.blockExplorers ?? {};
46
+ const { default: blockExplorer, ...blockExplorers } = _nullishCoalesce(chain.blockExplorers, () => ( {}));
47
47
  if (blockExplorer)
48
48
  return [
49
49
  blockExplorer.url,
@@ -58,11 +58,11 @@ var Connector = class extends EventEmitter {
58
58
  }
59
59
  };
60
60
 
61
- export {
62
- __publicField,
63
- __privateGet,
64
- __privateAdd,
65
- __privateSet,
66
- __privateMethod,
67
- Connector
68
- };
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+ exports.__publicField = __publicField; exports.__privateGet = __privateGet; exports.__privateAdd = __privateAdd; exports.__privateSet = __privateSet; exports.__privateMethod = __privateMethod; exports.Connector = Connector;
@@ -1,28 +1,28 @@
1
- import {
2
- ChainNotConfiguredForConnectorError,
3
- ConnectorNotFoundError
4
- } from "./chunk-ZCAPXGBX.js";
5
- import {
6
- normalizeChainId
7
- } from "./chunk-OQILYQDO.js";
8
- import {
9
- Connector,
10
- __privateAdd,
11
- __privateGet,
12
- __privateSet,
13
- __publicField
14
- } from "./chunk-QYMCVNHT.js";
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
+
3
+
4
+ var _chunkZCAPXGBXjs = require('./chunk-ZCAPXGBX.js');
5
+
6
+
7
+ var _chunkOQILYQDOjs = require('./chunk-OQILYQDO.js');
8
+
9
+
10
+
11
+
12
+
13
+
14
+ var _chunkQYMCVNHTjs = require('./chunk-QYMCVNHT.js');
15
15
 
16
16
  // src/injected.ts
17
- import {
18
- ResourceNotFoundRpcError,
19
- SwitchChainError,
20
- UserRejectedRequestError,
21
- createWalletClient,
22
- custom,
23
- getAddress,
24
- numberToHex
25
- } from "viem";
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+ var _viem = require('viem');
26
26
 
27
27
  // src/utils/getInjectedName.ts
28
28
  function getInjectedName(ethereum) {
@@ -100,7 +100,7 @@ function getInjectedName(ethereum) {
100
100
  if (provider.isMetaMask)
101
101
  return "MetaMask";
102
102
  };
103
- if (ethereum.providers?.length) {
103
+ if (_optionalChain([ethereum, 'access', _ => _.providers, 'optionalAccess', _2 => _2.length])) {
104
104
  const nameSet = /* @__PURE__ */ new Set();
105
105
  let unknownCount = 1;
106
106
  for (const provider of ethereum.providers) {
@@ -114,14 +114,14 @@ function getInjectedName(ethereum) {
114
114
  const names = [...nameSet];
115
115
  if (names.length)
116
116
  return names;
117
- return names[0] ?? "Injected";
117
+ return _nullishCoalesce(names[0], () => ( "Injected"));
118
118
  }
119
- return getName(ethereum) ?? "Injected";
119
+ return _nullishCoalesce(getName(ethereum), () => ( "Injected"));
120
120
  }
121
121
 
122
122
  // src/injected.ts
123
123
  var _provider;
124
- var InjectedConnector = class extends Connector {
124
+ var InjectedConnector = class extends _chunkQYMCVNHTjs.Connector {
125
125
  constructor({
126
126
  chains,
127
127
  options: options_
@@ -132,32 +132,32 @@ var InjectedConnector = class extends Connector {
132
132
  if (typeof window === "undefined")
133
133
  return;
134
134
  const ethereum = window.ethereum;
135
- if (ethereum?.providers)
135
+ if (_optionalChain([ethereum, 'optionalAccess', _3 => _3.providers]))
136
136
  return ethereum.providers[0];
137
137
  return ethereum;
138
138
  },
139
139
  ...options_
140
140
  };
141
141
  super({ chains, options });
142
- __publicField(this, "id", "injected");
143
- __publicField(this, "name");
144
- __publicField(this, "ready");
145
- __privateAdd(this, _provider, void 0);
146
- __publicField(this, "shimDisconnectKey", `${this.id}.shimDisconnect`);
147
- __publicField(this, "onAccountsChanged", (accounts) => {
142
+ _chunkQYMCVNHTjs.__publicField.call(void 0, this, "id", "injected");
143
+ _chunkQYMCVNHTjs.__publicField.call(void 0, this, "name");
144
+ _chunkQYMCVNHTjs.__publicField.call(void 0, this, "ready");
145
+ _chunkQYMCVNHTjs.__privateAdd.call(void 0, this, _provider, void 0);
146
+ _chunkQYMCVNHTjs.__publicField.call(void 0, this, "shimDisconnectKey", `${this.id}.shimDisconnect`);
147
+ _chunkQYMCVNHTjs.__publicField.call(void 0, this, "onAccountsChanged", (accounts) => {
148
148
  if (accounts.length === 0)
149
149
  this.emit("disconnect");
150
150
  else
151
151
  this.emit("change", {
152
- account: getAddress(accounts[0])
152
+ account: _viem.getAddress.call(void 0, accounts[0])
153
153
  });
154
154
  });
155
- __publicField(this, "onChainChanged", (chainId) => {
156
- const id = normalizeChainId(chainId);
155
+ _chunkQYMCVNHTjs.__publicField.call(void 0, this, "onChainChanged", (chainId) => {
156
+ const id = _chunkOQILYQDOjs.normalizeChainId.call(void 0, chainId);
157
157
  const unsupported = this.isChainUnsupported(id);
158
158
  this.emit("change", { chain: { id, unsupported } });
159
159
  });
160
- __publicField(this, "onDisconnect", async (error) => {
160
+ _chunkQYMCVNHTjs.__publicField.call(void 0, this, "onDisconnect", async (error) => {
161
161
  if (error.code === 1013) {
162
162
  const provider = await this.getProvider();
163
163
  if (provider) {
@@ -168,7 +168,7 @@ var InjectedConnector = class extends Connector {
168
168
  }
169
169
  this.emit("disconnect");
170
170
  if (this.options.shimDisconnect)
171
- this.storage?.removeItem(this.shimDisconnectKey);
171
+ _optionalChain([this, 'access', _4 => _4.storage, 'optionalAccess', _5 => _5.removeItem, 'call', _6 => _6(this.shimDisconnectKey)]);
172
172
  });
173
173
  const provider = options.getProvider();
174
174
  if (typeof options.name === "string")
@@ -191,7 +191,7 @@ var InjectedConnector = class extends Connector {
191
191
  try {
192
192
  const provider = await this.getProvider();
193
193
  if (!provider)
194
- throw new ConnectorNotFoundError();
194
+ throw new (0, _chunkZCAPXGBXjs.ConnectorNotFoundError)();
195
195
  if (provider.on) {
196
196
  provider.on("accountsChanged", this.onAccountsChanged);
197
197
  provider.on("chainChanged", this.onChainChanged);
@@ -201,7 +201,7 @@ var InjectedConnector = class extends Connector {
201
201
  const accounts = await provider.request({
202
202
  method: "eth_requestAccounts"
203
203
  });
204
- const account = getAddress(accounts[0]);
204
+ const account = _viem.getAddress.call(void 0, accounts[0]);
205
205
  let id = await this.getChainId();
206
206
  let unsupported = this.isChainUnsupported(id);
207
207
  if (chainId && id !== chainId) {
@@ -210,79 +210,79 @@ var InjectedConnector = class extends Connector {
210
210
  unsupported = this.isChainUnsupported(id);
211
211
  }
212
212
  if (this.options.shimDisconnect)
213
- this.storage?.setItem(this.shimDisconnectKey, true);
213
+ _optionalChain([this, 'access', _7 => _7.storage, 'optionalAccess', _8 => _8.setItem, 'call', _9 => _9(this.shimDisconnectKey, true)]);
214
214
  return { account, chain: { id, unsupported } };
215
215
  } catch (error) {
216
216
  if (this.isUserRejectedRequestError(error))
217
- throw new UserRejectedRequestError(error);
217
+ throw new (0, _viem.UserRejectedRequestError)(error);
218
218
  if (error.code === -32002)
219
- throw new ResourceNotFoundRpcError(error);
219
+ throw new (0, _viem.ResourceNotFoundRpcError)(error);
220
220
  throw error;
221
221
  }
222
222
  }
223
223
  async disconnect() {
224
224
  const provider = await this.getProvider();
225
- if (!provider?.removeListener)
225
+ if (!_optionalChain([provider, 'optionalAccess', _10 => _10.removeListener]))
226
226
  return;
227
227
  provider.removeListener("accountsChanged", this.onAccountsChanged);
228
228
  provider.removeListener("chainChanged", this.onChainChanged);
229
229
  provider.removeListener("disconnect", this.onDisconnect);
230
230
  if (this.options.shimDisconnect)
231
- this.storage?.removeItem(this.shimDisconnectKey);
231
+ _optionalChain([this, 'access', _11 => _11.storage, 'optionalAccess', _12 => _12.removeItem, 'call', _13 => _13(this.shimDisconnectKey)]);
232
232
  }
233
233
  async getAccount() {
234
234
  const provider = await this.getProvider();
235
235
  if (!provider)
236
- throw new ConnectorNotFoundError();
236
+ throw new (0, _chunkZCAPXGBXjs.ConnectorNotFoundError)();
237
237
  const accounts = await provider.request({
238
238
  method: "eth_accounts"
239
239
  });
240
- return getAddress(accounts[0]);
240
+ return _viem.getAddress.call(void 0, accounts[0]);
241
241
  }
242
242
  async getChainId() {
243
243
  const provider = await this.getProvider();
244
244
  if (!provider)
245
- throw new ConnectorNotFoundError();
246
- return provider.request({ method: "eth_chainId" }).then(normalizeChainId);
245
+ throw new (0, _chunkZCAPXGBXjs.ConnectorNotFoundError)();
246
+ return provider.request({ method: "eth_chainId" }).then(_chunkOQILYQDOjs.normalizeChainId);
247
247
  }
248
248
  async getProvider() {
249
249
  const provider = this.options.getProvider();
250
250
  if (provider)
251
- __privateSet(this, _provider, provider);
252
- return __privateGet(this, _provider);
251
+ _chunkQYMCVNHTjs.__privateSet.call(void 0, this, _provider, provider);
252
+ return _chunkQYMCVNHTjs.__privateGet.call(void 0, this, _provider);
253
253
  }
254
254
  async getWalletClient({ chainId } = {}) {
255
255
  const [provider, account] = await Promise.all([
256
256
  this.getProvider(),
257
257
  this.getAccount()
258
258
  ]);
259
- const chain = this.chains.find((x) => x.id === chainId) || this.chains[0];
259
+ const chain = this.chains.find((x) => x.id === chainId);
260
260
  if (!provider)
261
261
  throw new Error("provider is required.");
262
- return createWalletClient({
262
+ return _viem.createWalletClient.call(void 0, {
263
263
  account,
264
264
  chain,
265
- transport: custom(provider)
265
+ transport: _viem.custom.call(void 0, provider)
266
266
  });
267
267
  }
268
268
  async isAuthorized() {
269
269
  try {
270
- if (this.options.shimDisconnect && !this.storage?.getItem(this.shimDisconnectKey))
270
+ if (this.options.shimDisconnect && !_optionalChain([this, 'access', _14 => _14.storage, 'optionalAccess', _15 => _15.getItem, 'call', _16 => _16(this.shimDisconnectKey)]))
271
271
  return false;
272
272
  const provider = await this.getProvider();
273
273
  if (!provider)
274
- throw new ConnectorNotFoundError();
274
+ throw new (0, _chunkZCAPXGBXjs.ConnectorNotFoundError)();
275
275
  const account = await this.getAccount();
276
276
  return !!account;
277
- } catch {
277
+ } catch (e) {
278
278
  return false;
279
279
  }
280
280
  }
281
281
  async switchChain(chainId) {
282
282
  const provider = await this.getProvider();
283
283
  if (!provider)
284
- throw new ConnectorNotFoundError();
285
- const id = numberToHex(chainId);
284
+ throw new (0, _chunkZCAPXGBXjs.ConnectorNotFoundError)();
285
+ const id = _viem.numberToHex.call(void 0, chainId);
286
286
  try {
287
287
  await Promise.all([
288
288
  provider.request({
@@ -291,26 +291,26 @@ var InjectedConnector = class extends Connector {
291
291
  }),
292
292
  new Promise(
293
293
  (res) => this.on("change", ({ chain }) => {
294
- if (chain?.id === chainId)
294
+ if (_optionalChain([chain, 'optionalAccess', _17 => _17.id]) === chainId)
295
295
  res();
296
296
  })
297
297
  )
298
298
  ]);
299
- return this.chains.find((x) => x.id === chainId) ?? {
299
+ return _nullishCoalesce(this.chains.find((x) => x.id === chainId), () => ( {
300
300
  id: chainId,
301
301
  name: `Chain ${id}`,
302
302
  network: `${id}`,
303
303
  nativeCurrency: { name: "Ether", decimals: 18, symbol: "ETH" },
304
304
  rpcUrls: { default: { http: [""] }, public: { http: [""] } }
305
- };
305
+ }));
306
306
  } catch (error) {
307
307
  const chain = this.chains.find((x) => x.id === chainId);
308
308
  if (!chain)
309
- throw new ChainNotConfiguredForConnectorError({
309
+ throw new (0, _chunkZCAPXGBXjs.ChainNotConfiguredForConnectorError)({
310
310
  chainId,
311
311
  connectorId: this.id
312
312
  });
313
- if (error.code === 4902 || error?.data?.originalError?.code === 4902) {
313
+ if (error.code === 4902 || _optionalChain([error, 'optionalAccess', _18 => _18.data, 'optionalAccess', _19 => _19.originalError, 'optionalAccess', _20 => _20.code]) === 4902) {
314
314
  try {
315
315
  await provider.request({
316
316
  method: "wallet_addEthereumChain",
@@ -319,24 +319,24 @@ var InjectedConnector = class extends Connector {
319
319
  chainId: id,
320
320
  chainName: chain.name,
321
321
  nativeCurrency: chain.nativeCurrency,
322
- rpcUrls: [chain.rpcUrls.public?.http[0] ?? ""],
322
+ rpcUrls: [_nullishCoalesce(_optionalChain([chain, 'access', _21 => _21.rpcUrls, 'access', _22 => _22.public, 'optionalAccess', _23 => _23.http, 'access', _24 => _24[0]]), () => ( ""))],
323
323
  blockExplorerUrls: this.getBlockExplorerUrls(chain)
324
324
  }
325
325
  ]
326
326
  });
327
327
  const currentChainId = await this.getChainId();
328
328
  if (currentChainId !== chainId)
329
- throw new UserRejectedRequestError(
329
+ throw new (0, _viem.UserRejectedRequestError)(
330
330
  new Error("User rejected switch after adding network.")
331
331
  );
332
332
  return chain;
333
333
  } catch (error2) {
334
- throw new UserRejectedRequestError(error2);
334
+ throw new (0, _viem.UserRejectedRequestError)(error2);
335
335
  }
336
336
  }
337
337
  if (this.isUserRejectedRequestError(error))
338
- throw new UserRejectedRequestError(error);
339
- throw new SwitchChainError(error);
338
+ throw new (0, _viem.UserRejectedRequestError)(error);
339
+ throw new (0, _viem.SwitchChainError)(error);
340
340
  }
341
341
  }
342
342
  async watchAsset({
@@ -347,7 +347,7 @@ var InjectedConnector = class extends Connector {
347
347
  }) {
348
348
  const provider = await this.getProvider();
349
349
  if (!provider)
350
- throw new ConnectorNotFoundError();
350
+ throw new (0, _chunkZCAPXGBXjs.ConnectorNotFoundError)();
351
351
  return provider.request({
352
352
  method: "wallet_watchAsset",
353
353
  params: {
@@ -367,6 +367,6 @@ var InjectedConnector = class extends Connector {
367
367
  };
368
368
  _provider = new WeakMap();
369
369
 
370
- export {
371
- InjectedConnector
372
- };
370
+
371
+
372
+ exports.InjectedConnector = InjectedConnector;
@@ -1,6 +1,6 @@
1
- import {
2
- __publicField
3
- } from "./chunk-QYMCVNHT.js";
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkQYMCVNHTjs = require('./chunk-QYMCVNHT.js');
4
4
 
5
5
  // src/errors.ts
6
6
  var ChainNotConfiguredForConnectorError = class extends Error {
@@ -9,18 +9,18 @@ var ChainNotConfiguredForConnectorError = class extends Error {
9
9
  connectorId
10
10
  }) {
11
11
  super(`Chain "${chainId}" not configured for connector "${connectorId}".`);
12
- __publicField(this, "name", "ChainNotConfiguredForConnectorError");
12
+ _chunkQYMCVNHTjs.__publicField.call(void 0, this, "name", "ChainNotConfiguredForConnectorError");
13
13
  }
14
14
  };
15
15
  var ConnectorNotFoundError = class extends Error {
16
16
  constructor() {
17
17
  super(...arguments);
18
- __publicField(this, "name", "ConnectorNotFoundError");
19
- __publicField(this, "message", "Connector not found");
18
+ _chunkQYMCVNHTjs.__publicField.call(void 0, this, "name", "ConnectorNotFoundError");
19
+ _chunkQYMCVNHTjs.__publicField.call(void 0, this, "message", "Connector not found");
20
20
  }
21
21
  };
22
22
 
23
- export {
24
- ChainNotConfiguredForConnectorError,
25
- ConnectorNotFoundError
26
- };
23
+
24
+
25
+
26
+ exports.ChainNotConfiguredForConnectorError = ChainNotConfiguredForConnectorError; exports.ConnectorNotFoundError = ConnectorNotFoundError;
@@ -1,5 +1,5 @@
1
1
  import * as viem_dist_types_types_formatter from 'viem/dist/types/types/formatter';
2
- import * as abitype from 'abitype';
2
+ import * as abitype_dist_abi_3a9c20c7 from 'abitype/dist/abi-3a9c20c7';
3
3
  import * as viem_dist_types_types_eip1193 from 'viem/dist/types/types/eip1193';
4
4
  import * as viem_dist_types_types_misc from 'viem/dist/types/types/misc';
5
5
  import * as viem from 'viem';
@@ -7,6 +7,7 @@ import { CoinbaseWalletProvider } from '@coinbase/wallet-sdk';
7
7
  import { CoinbaseWalletSDKOptions } from '@coinbase/wallet-sdk/dist/CoinbaseWalletSDK';
8
8
  import { Chain } from '@wagmi/chains';
9
9
  import { C as Connector } from './base-b7cfab8e.js';
10
+ import 'abitype';
10
11
  import 'eventemitter3';
11
12
 
12
13
  type Options = Omit<CoinbaseWalletSDKOptions, 'reloadOnDisconnect'> & {
@@ -513,7 +514,7 @@ declare class CoinbaseWalletConnector extends Connector<CoinbaseWalletProvider,
513
514
  type: string;
514
515
  uid: string;
515
516
  addChain: (args: viem.AddChainParameters) => Promise<void>;
516
- deployContract: <TAbi extends readonly unknown[] | abitype.Abi, TChainOverride extends viem.Chain<viem_dist_types_types_formatter.Formatters> | undefined>(args: viem.DeployContractParameters<TAbi, Chain, {
517
+ deployContract: <TAbi extends readonly unknown[] | abitype_dist_abi_3a9c20c7.l, TChainOverride extends viem.Chain<viem_dist_types_types_formatter.Formatters> | undefined>(args: viem.DeployContractParameters<TAbi, Chain, {
517
518
  address: `0x${string}`;
518
519
  type: "json-rpc";
519
520
  }, TChainOverride>) => Promise<`0x${string}`>;
@@ -534,7 +535,7 @@ declare class CoinbaseWalletConnector extends Connector<CoinbaseWalletProvider,
534
535
  type: "json-rpc";
535
536
  }>) => Promise<`0x${string}`>;
536
537
  signTypedData: <TTypedData extends {
537
- [x: string]: readonly abitype.TypedDataParameter[];
538
+ [x: string]: readonly abitype_dist_abi_3a9c20c7.o[];
538
539
  [x: `string[${string}]`]: undefined;
539
540
  [x: `function[${string}]`]: undefined;
540
541
  [x: `address[${string}]`]: undefined;
@@ -746,7 +747,7 @@ declare class CoinbaseWalletConnector extends Connector<CoinbaseWalletProvider,
746
747
  }>) => Promise<`0x${string}`>;
747
748
  switchChain: (args: viem.SwitchChainParameters) => Promise<void>;
748
749
  watchAsset: (args: viem_dist_types_types_eip1193.WatchAssetParams) => Promise<boolean>;
749
- writeContract: <TAbi_1 extends readonly unknown[] | abitype.Abi, TFunctionName extends string, TChainOverride_2 extends viem.Chain<viem_dist_types_types_formatter.Formatters> | undefined>(args: viem.WriteContractParameters<TAbi_1, TFunctionName, Chain, {
750
+ writeContract: <TAbi_1 extends readonly unknown[] | abitype_dist_abi_3a9c20c7.l, TFunctionName extends string, TChainOverride_2 extends viem.Chain<viem_dist_types_types_formatter.Formatters> | undefined>(args: viem.WriteContractParameters<TAbi_1, TFunctionName, Chain, {
750
751
  address: `0x${string}`;
751
752
  type: "json-rpc";
752
753
  }, TChainOverride_2>) => Promise<`0x${string}`>;