viem 0.3.0-main.20230406T001624 → 0.3.0-main.20230406T213435

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,20 +1,20 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkY4JDR3IZjs = require('./chunk-Y4JDR3IZ.js');
4
+ var _chunk3IHFW55Bjs = require('./chunk-3IHFW55B.js');
5
5
 
6
6
  // src/accounts/toAccount.ts
7
7
  function toAccount(source) {
8
8
  if (typeof source === "string") {
9
- if (!_chunkY4JDR3IZjs.isAddress.call(void 0, source))
10
- throw new (0, _chunkY4JDR3IZjs.InvalidAddressError)({ address: source });
9
+ if (!_chunk3IHFW55Bjs.isAddress.call(void 0, source))
10
+ throw new (0, _chunk3IHFW55Bjs.InvalidAddressError)({ address: source });
11
11
  return {
12
12
  address: source,
13
13
  type: "json-rpc"
14
14
  };
15
15
  }
16
- if (!_chunkY4JDR3IZjs.isAddress.call(void 0, source.address))
17
- throw new (0, _chunkY4JDR3IZjs.InvalidAddressError)({ address: source.address });
16
+ if (!_chunk3IHFW55Bjs.isAddress.call(void 0, source.address))
17
+ throw new (0, _chunk3IHFW55Bjs.InvalidAddressError)({ address: source.address });
18
18
  return {
19
19
  address: source.address,
20
20
  signMessage: source.signMessage,
@@ -28,4 +28,4 @@ function toAccount(source) {
28
28
 
29
29
 
30
30
  exports.toAccount = toAccount;
31
- //# sourceMappingURL=chunk-7XF4WHMR.js.map
31
+ //# sourceMappingURL=chunk-EW5GG2YC.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  InvalidAddressError,
3
3
  isAddress
4
- } from "./chunk-NP7HQ3GK.mjs";
4
+ } from "./chunk-DHU5S5YF.mjs";
5
5
 
6
6
  // src/accounts/toAccount.ts
7
7
  function toAccount(source) {
@@ -28,4 +28,4 @@ function toAccount(source) {
28
28
  export {
29
29
  toAccount
30
30
  };
31
- //# sourceMappingURL=chunk-P7QGGIKB.mjs.map
31
+ //# sourceMappingURL=chunk-OEUINA6X.mjs.map
package/dist/contract.js CHANGED
@@ -23,7 +23,7 @@
23
23
 
24
24
 
25
25
 
26
- var _chunkY4JDR3IZjs = require('./chunk-Y4JDR3IZ.js');
26
+ var _chunk3IHFW55Bjs = require('./chunk-3IHFW55B.js');
27
27
 
28
28
 
29
29
 
@@ -49,5 +49,5 @@ var _chunkY4JDR3IZjs = require('./chunk-Y4JDR3IZ.js');
49
49
 
50
50
 
51
51
 
52
- exports.createContractEventFilter = _chunkY4JDR3IZjs.createContractEventFilter; exports.decodeAbiParameters = _chunkY4JDR3IZjs.decodeAbiParameters; exports.decodeErrorResult = _chunkY4JDR3IZjs.decodeErrorResult; exports.decodeEventLog = _chunkY4JDR3IZjs.decodeEventLog; exports.decodeFunctionData = _chunkY4JDR3IZjs.decodeFunctionData; exports.decodeFunctionResult = _chunkY4JDR3IZjs.decodeFunctionResult; exports.deployContract = _chunkY4JDR3IZjs.deployContract; exports.encodeAbiParameters = _chunkY4JDR3IZjs.encodeAbiParameters; exports.encodeDeployData = _chunkY4JDR3IZjs.encodeDeployData; exports.encodeErrorResult = _chunkY4JDR3IZjs.encodeErrorResult; exports.encodeEventTopics = _chunkY4JDR3IZjs.encodeEventTopics; exports.encodeFunctionData = _chunkY4JDR3IZjs.encodeFunctionData; exports.encodeFunctionResult = _chunkY4JDR3IZjs.encodeFunctionResult; exports.estimateContractGas = _chunkY4JDR3IZjs.estimateContractGas; exports.formatAbiItem = _chunkY4JDR3IZjs.formatAbiItem; exports.formatAbiItemWithArgs = _chunkY4JDR3IZjs.formatAbiItemWithArgs; exports.getAbiItem = _chunkY4JDR3IZjs.getAbiItem; exports.getBytecode = _chunkY4JDR3IZjs.getBytecode; exports.getStorageAt = _chunkY4JDR3IZjs.getStorageAt; exports.multicall = _chunkY4JDR3IZjs.multicall; exports.readContract = _chunkY4JDR3IZjs.readContract; exports.simulateContract = _chunkY4JDR3IZjs.simulateContract; exports.watchContractEvent = _chunkY4JDR3IZjs.watchContractEvent; exports.writeContract = _chunkY4JDR3IZjs.writeContract;
52
+ exports.createContractEventFilter = _chunk3IHFW55Bjs.createContractEventFilter; exports.decodeAbiParameters = _chunk3IHFW55Bjs.decodeAbiParameters; exports.decodeErrorResult = _chunk3IHFW55Bjs.decodeErrorResult; exports.decodeEventLog = _chunk3IHFW55Bjs.decodeEventLog; exports.decodeFunctionData = _chunk3IHFW55Bjs.decodeFunctionData; exports.decodeFunctionResult = _chunk3IHFW55Bjs.decodeFunctionResult; exports.deployContract = _chunk3IHFW55Bjs.deployContract; exports.encodeAbiParameters = _chunk3IHFW55Bjs.encodeAbiParameters; exports.encodeDeployData = _chunk3IHFW55Bjs.encodeDeployData; exports.encodeErrorResult = _chunk3IHFW55Bjs.encodeErrorResult; exports.encodeEventTopics = _chunk3IHFW55Bjs.encodeEventTopics; exports.encodeFunctionData = _chunk3IHFW55Bjs.encodeFunctionData; exports.encodeFunctionResult = _chunk3IHFW55Bjs.encodeFunctionResult; exports.estimateContractGas = _chunk3IHFW55Bjs.estimateContractGas; exports.formatAbiItem = _chunk3IHFW55Bjs.formatAbiItem; exports.formatAbiItemWithArgs = _chunk3IHFW55Bjs.formatAbiItemWithArgs; exports.getAbiItem = _chunk3IHFW55Bjs.getAbiItem; exports.getBytecode = _chunk3IHFW55Bjs.getBytecode; exports.getStorageAt = _chunk3IHFW55Bjs.getStorageAt; exports.multicall = _chunk3IHFW55Bjs.multicall; exports.readContract = _chunk3IHFW55Bjs.readContract; exports.simulateContract = _chunk3IHFW55Bjs.simulateContract; exports.watchContractEvent = _chunk3IHFW55Bjs.watchContractEvent; exports.writeContract = _chunk3IHFW55Bjs.writeContract;
53
53
  //# sourceMappingURL=contract.js.map
package/dist/contract.mjs CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  simulateContract,
24
24
  watchContractEvent,
25
25
  writeContract
26
- } from "./chunk-NP7HQ3GK.mjs";
26
+ } from "./chunk-DHU5S5YF.mjs";
27
27
  export {
28
28
  createContractEventFilter,
29
29
  decodeAbiParameters,
package/dist/ens.js CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
 
8
8
 
9
- var _chunkY4JDR3IZjs = require('./chunk-Y4JDR3IZ.js');
9
+ var _chunk3IHFW55Bjs = require('./chunk-3IHFW55B.js');
10
10
 
11
11
  // src/utils/ens/normalize.ts
12
12
  var _ensnormalize = require('@adraffy/ens-normalize');
@@ -22,5 +22,5 @@ function normalize(name) {
22
22
 
23
23
 
24
24
 
25
- exports.getEnsAddress = _chunkY4JDR3IZjs.getEnsAddress; exports.getEnsAvatar = _chunkY4JDR3IZjs.getEnsAvatar; exports.getEnsName = _chunkY4JDR3IZjs.getEnsName; exports.getEnsResolver = _chunkY4JDR3IZjs.getEnsResolver; exports.getEnsText = _chunkY4JDR3IZjs.getEnsText; exports.labelhash = _chunkY4JDR3IZjs.labelhash; exports.namehash = _chunkY4JDR3IZjs.namehash; exports.normalize = normalize;
25
+ exports.getEnsAddress = _chunk3IHFW55Bjs.getEnsAddress; exports.getEnsAvatar = _chunk3IHFW55Bjs.getEnsAvatar; exports.getEnsName = _chunk3IHFW55Bjs.getEnsName; exports.getEnsResolver = _chunk3IHFW55Bjs.getEnsResolver; exports.getEnsText = _chunk3IHFW55Bjs.getEnsText; exports.labelhash = _chunk3IHFW55Bjs.labelhash; exports.namehash = _chunk3IHFW55Bjs.namehash; exports.normalize = normalize;
26
26
  //# sourceMappingURL=ens.js.map
package/dist/ens.mjs CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  getEnsText,
7
7
  labelhash,
8
8
  namehash
9
- } from "./chunk-NP7HQ3GK.mjs";
9
+ } from "./chunk-DHU5S5YF.mjs";
10
10
 
11
11
  // src/utils/ens/normalize.ts
12
12
  import { ens_normalize } from "@adraffy/ens-normalize";
package/dist/ethers.js CHANGED
@@ -1,20 +1,40 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunk7XF4WHMRjs = require('./chunk-7XF4WHMR.js');
3
+ var _chunkEW5GG2YCjs = require('./chunk-EW5GG2YC.js');
4
4
 
5
5
 
6
- var _chunkY4JDR3IZjs = require('./chunk-Y4JDR3IZ.js');
6
+ var _chunk3IHFW55Bjs = require('./chunk-3IHFW55B.js');
7
7
 
8
8
  // src/adapters/ethers.ts
9
- var ethersWalletToAccount = (wallet) => _chunk7XF4WHMRjs.toAccount.call(void 0, {
9
+ var ethersWalletToAccount = (wallet) => _chunkEW5GG2YCjs.toAccount.call(void 0, {
10
10
  address: wallet.address,
11
11
  async signMessage({ message }) {
12
- return await wallet.signMessage(_chunkY4JDR3IZjs.toBytes.call(void 0, message));
12
+ return await wallet.signMessage(_chunk3IHFW55Bjs.toBytes.call(void 0, message));
13
13
  },
14
14
  async signTransaction(txn) {
15
+ let type = null;
16
+ if (txn.type === "legacy") {
17
+ type = 0;
18
+ } else if (txn.type === "eip1559") {
19
+ type = 2;
20
+ } else if (txn.type === "eip2930") {
21
+ type = 1;
22
+ }
15
23
  return await wallet.signTransaction({
16
- ...txn,
17
- gasLimit: txn.gas
24
+ // allowed fields for `ethers.TransactionRequest`
25
+ chainId: txn.chainId,
26
+ data: txn.data,
27
+ gasLimit: txn.gas,
28
+ gasPrice: txn.gasPrice,
29
+ nonce: txn.nonce,
30
+ to: txn.to,
31
+ type,
32
+ value: txn.value,
33
+ // untyped transactions do not support accessList
34
+ ...txn.type && txn.accessList ? { accessList: txn.accessList } : {},
35
+ // eip1559 properties
36
+ ...txn.type === "eip1559" && txn.maxPriorityFeePerGas ? { maxPriorityFeePerGas: txn.maxPriorityFeePerGas } : {},
37
+ ...txn.type === "eip1559" && txn.maxFeePerGas ? { maxFeePerGas: txn.maxFeePerGas } : {}
18
38
  });
19
39
  },
20
40
  async signTypedData({ domain, types: types_, message }) {
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/adapters/ethers.ts"],"names":[],"mappings":";;;;;;;;AA0CO,IAAM,wBAAwB,CAAC,WACpC,UAAU;AAAA,EACR,SAAS,OAAO;AAAA,EAChB,MAAM,YAAY,EAAE,QAAQ,GAAG;AAC7B,WAAQ,MAAM,OAAO,YAAY,QAAQ,OAAO,CAAC;AAAA,EACnD;AAAA,EACA,MAAM,gBAAgB,KAAK;AACzB,WAAQ,MAAM,OAAO,gBAAgB;AAAA,MACnC,GAAG;AAAA,MACH,UAAU,IAAI;AAAA,IAChB,CAAC;AAAA,EACH;AAAA,EACA,MAAM,cAAc,EAAE,QAAQ,OAAO,QAAQ,QAAQ,GAAG;AACtD,UAAM,EAAE,cAAc,GAAG,GAAG,MAAM,IAAI;AACtC,UAAM,gBAAgB,OAAO,gBACzB,OAAO,cAAc,KAAK,MAAM,IAChC,OAAO,eAAe,KAAK,MAAM;AACrC,WAAQ,MAAM;AAAA,MACZ,UAAU,CAAC;AAAA,MACX;AAAA,MACA;AAAA,IACF;AAAA,EACF;AACF,CAAC","sourcesContent":["import { toAccount } from '../accounts/toAccount'\nimport type { Address, Hash } from '../types'\nimport { toBytes } from '../utils'\n\ntype BigNumberish = string | number | bigint\ntype BytesLike = string | Uint8Array\n\ntype TypedDataDomain = {\n name?: string\n version?: string\n chainId?: BigNumberish\n verifyingContract?: string\n salt?: BytesLike\n}\ntype TypedDataField = {\n name: string\n type: string\n}\n\ntype EthersWallet = {\n address: string\n signMessage(message: Uint8Array): Promise<string>\n signTransaction(txn: any): Promise<string>\n} & (\n | {\n signTypedData(\n domain: TypedDataDomain,\n types: Record<string, TypedDataField[]>,\n value: Record<string, any>,\n ): Promise<string>\n _signTypedData?: never\n }\n | {\n signTypedData?: never\n _signTypedData(\n domain: TypedDataDomain,\n types: Record<string, TypedDataField[]>,\n value: Record<string, any>,\n ): Promise<string>\n }\n)\n\nexport const ethersWalletToAccount = (wallet: EthersWallet) =>\n toAccount({\n address: wallet.address as Address,\n async signMessage({ message }) {\n return (await wallet.signMessage(toBytes(message))) as Hash\n },\n async signTransaction(txn) {\n return (await wallet.signTransaction({\n ...txn,\n gasLimit: txn.gas,\n })) as Hash\n },\n async signTypedData({ domain, types: types_, message }) {\n const { EIP712Domain: _, ...types } = types_ as any\n const signTypedData = wallet.signTypedData\n ? wallet.signTypedData.bind(wallet)\n : wallet._signTypedData.bind(wallet)\n return (await signTypedData(\n domain ?? {},\n types as Record<string, TypedDataField[]>,\n message,\n )) as Hash\n },\n })\n"]}
1
+ {"version":3,"sources":["../src/adapters/ethers.ts"],"names":[],"mappings":";;;;;;;;AA0CO,IAAM,wBAAwB,CAAC,WACpC,UAAU;AAAA,EACR,SAAS,OAAO;AAAA,EAChB,MAAM,YAAY,EAAE,QAAQ,GAAG;AAC7B,WAAQ,MAAM,OAAO,YAAY,QAAQ,OAAO,CAAC;AAAA,EACnD;AAAA,EACA,MAAM,gBAAgB,KAAK;AAGzB,QAAI,OAAO;AACX,QAAI,IAAI,SAAS,UAAU;AACzB,aAAO;AAAA,IACT,WAAW,IAAI,SAAS,WAAW;AACjC,aAAO;AAAA,IACT,WAAW,IAAI,SAAS,WAAW;AACjC,aAAO;AAAA,IACT;AACA,WAAQ,MAAM,OAAO,gBAAgB;AAAA;AAAA,MAEnC,SAAS,IAAI;AAAA,MACb,MAAM,IAAI;AAAA,MACV,UAAU,IAAI;AAAA,MACd,UAAU,IAAI;AAAA,MACd,OAAO,IAAI;AAAA,MACX,IAAI,IAAI;AAAA,MACR;AAAA,MACA,OAAO,IAAI;AAAA;AAAA,MAEX,GAAI,IAAI,QAAQ,IAAI,aAAa,EAAE,YAAY,IAAI,WAAW,IAAI,CAAC;AAAA;AAAA,MAEnE,GAAI,IAAI,SAAS,aAAa,IAAI,uBAC9B,EAAE,sBAAsB,IAAI,qBAAqB,IACjD,CAAC;AAAA,MACL,GAAI,IAAI,SAAS,aAAa,IAAI,eAC9B,EAAE,cAAc,IAAI,aAAa,IACjC,CAAC;AAAA,IACP,CAAC;AAAA,EACH;AAAA,EACA,MAAM,cAAc,EAAE,QAAQ,OAAO,QAAQ,QAAQ,GAAG;AACtD,UAAM,EAAE,cAAc,GAAG,GAAG,MAAM,IAAI;AACtC,UAAM,gBAAgB,OAAO,gBACzB,OAAO,cAAc,KAAK,MAAM,IAChC,OAAO,eAAe,KAAK,MAAM;AACrC,WAAQ,MAAM;AAAA,MACZ,UAAU,CAAC;AAAA,MACX;AAAA,MACA;AAAA,IACF;AAAA,EACF;AACF,CAAC","sourcesContent":["import { toAccount } from '../accounts/toAccount'\nimport type { Address, Hash } from '../types'\nimport { toBytes } from '../utils'\n\ntype BigNumberish = string | number | bigint\ntype BytesLike = string | Uint8Array\n\ntype TypedDataDomain = {\n name?: string\n version?: string\n chainId?: BigNumberish\n verifyingContract?: string\n salt?: BytesLike\n}\ntype TypedDataField = {\n name: string\n type: string\n}\n\ntype EthersWallet = {\n address: string\n signMessage(message: Uint8Array): Promise<string>\n signTransaction(txn: any): Promise<string>\n} & (\n | {\n signTypedData(\n domain: TypedDataDomain,\n types: Record<string, TypedDataField[]>,\n value: Record<string, any>,\n ): Promise<string>\n _signTypedData?: never\n }\n | {\n signTypedData?: never\n _signTypedData(\n domain: TypedDataDomain,\n types: Record<string, TypedDataField[]>,\n value: Record<string, any>,\n ): Promise<string>\n }\n)\n\nexport const ethersWalletToAccount = (wallet: EthersWallet) =>\n toAccount({\n address: wallet.address as Address,\n async signMessage({ message }) {\n return (await wallet.signMessage(toBytes(message))) as Hash\n },\n async signTransaction(txn) {\n // ethers type mappings\n // https://github.com/ethers-io/ethers.js/blob/0802b70a724321f56d4c170e4c8a46b7804dfb48/src.ts/transaction/transaction.ts#L394\n let type = null\n if (txn.type === 'legacy') {\n type = 0\n } else if (txn.type === 'eip1559') {\n type = 2\n } else if (txn.type === 'eip2930') {\n type = 1\n }\n return (await wallet.signTransaction({\n // allowed fields for `ethers.TransactionRequest`\n chainId: txn.chainId,\n data: txn.data,\n gasLimit: txn.gas,\n gasPrice: txn.gasPrice,\n nonce: txn.nonce,\n to: txn.to,\n type,\n value: txn.value,\n // untyped transactions do not support accessList\n ...(txn.type && txn.accessList ? { accessList: txn.accessList } : {}),\n // eip1559 properties\n ...(txn.type === 'eip1559' && txn.maxPriorityFeePerGas\n ? { maxPriorityFeePerGas: txn.maxPriorityFeePerGas }\n : {}),\n ...(txn.type === 'eip1559' && txn.maxFeePerGas\n ? { maxFeePerGas: txn.maxFeePerGas }\n : {}),\n })) as Hash\n },\n async signTypedData({ domain, types: types_, message }) {\n const { EIP712Domain: _, ...types } = types_ as any\n const signTypedData = wallet.signTypedData\n ? wallet.signTypedData.bind(wallet)\n : wallet._signTypedData.bind(wallet)\n return (await signTypedData(\n domain ?? {},\n types as Record<string, TypedDataField[]>,\n message,\n )) as Hash\n },\n })\n"]}
package/dist/ethers.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  toAccount
3
- } from "./chunk-P7QGGIKB.mjs";
3
+ } from "./chunk-OEUINA6X.mjs";
4
4
  import {
5
5
  toBytes
6
- } from "./chunk-NP7HQ3GK.mjs";
6
+ } from "./chunk-DHU5S5YF.mjs";
7
7
 
8
8
  // src/adapters/ethers.ts
9
9
  var ethersWalletToAccount = (wallet) => toAccount({
@@ -12,9 +12,29 @@ var ethersWalletToAccount = (wallet) => toAccount({
12
12
  return await wallet.signMessage(toBytes(message));
13
13
  },
14
14
  async signTransaction(txn) {
15
+ let type = null;
16
+ if (txn.type === "legacy") {
17
+ type = 0;
18
+ } else if (txn.type === "eip1559") {
19
+ type = 2;
20
+ } else if (txn.type === "eip2930") {
21
+ type = 1;
22
+ }
15
23
  return await wallet.signTransaction({
16
- ...txn,
17
- gasLimit: txn.gas
24
+ // allowed fields for `ethers.TransactionRequest`
25
+ chainId: txn.chainId,
26
+ data: txn.data,
27
+ gasLimit: txn.gas,
28
+ gasPrice: txn.gasPrice,
29
+ nonce: txn.nonce,
30
+ to: txn.to,
31
+ type,
32
+ value: txn.value,
33
+ // untyped transactions do not support accessList
34
+ ...txn.type && txn.accessList ? { accessList: txn.accessList } : {},
35
+ // eip1559 properties
36
+ ...txn.type === "eip1559" && txn.maxPriorityFeePerGas ? { maxPriorityFeePerGas: txn.maxPriorityFeePerGas } : {},
37
+ ...txn.type === "eip1559" && txn.maxFeePerGas ? { maxFeePerGas: txn.maxFeePerGas } : {}
18
38
  });
19
39
  },
20
40
  async signTypedData({ domain, types: types_, message }) {
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/adapters/ethers.ts"],"sourcesContent":["import { toAccount } from '../accounts/toAccount'\nimport type { Address, Hash } from '../types'\nimport { toBytes } from '../utils'\n\ntype BigNumberish = string | number | bigint\ntype BytesLike = string | Uint8Array\n\ntype TypedDataDomain = {\n name?: string\n version?: string\n chainId?: BigNumberish\n verifyingContract?: string\n salt?: BytesLike\n}\ntype TypedDataField = {\n name: string\n type: string\n}\n\ntype EthersWallet = {\n address: string\n signMessage(message: Uint8Array): Promise<string>\n signTransaction(txn: any): Promise<string>\n} & (\n | {\n signTypedData(\n domain: TypedDataDomain,\n types: Record<string, TypedDataField[]>,\n value: Record<string, any>,\n ): Promise<string>\n _signTypedData?: never\n }\n | {\n signTypedData?: never\n _signTypedData(\n domain: TypedDataDomain,\n types: Record<string, TypedDataField[]>,\n value: Record<string, any>,\n ): Promise<string>\n }\n)\n\nexport const ethersWalletToAccount = (wallet: EthersWallet) =>\n toAccount({\n address: wallet.address as Address,\n async signMessage({ message }) {\n return (await wallet.signMessage(toBytes(message))) as Hash\n },\n async signTransaction(txn) {\n return (await wallet.signTransaction({\n ...txn,\n gasLimit: txn.gas,\n })) as Hash\n },\n async signTypedData({ domain, types: types_, message }) {\n const { EIP712Domain: _, ...types } = types_ as any\n const signTypedData = wallet.signTypedData\n ? wallet.signTypedData.bind(wallet)\n : wallet._signTypedData.bind(wallet)\n return (await signTypedData(\n domain ?? {},\n types as Record<string, TypedDataField[]>,\n message,\n )) as Hash\n },\n })\n"],"mappings":";;;;;;;;AA0CO,IAAM,wBAAwB,CAAC,WACpC,UAAU;AAAA,EACR,SAAS,OAAO;AAAA,EAChB,MAAM,YAAY,EAAE,QAAQ,GAAG;AAC7B,WAAQ,MAAM,OAAO,YAAY,QAAQ,OAAO,CAAC;AAAA,EACnD;AAAA,EACA,MAAM,gBAAgB,KAAK;AACzB,WAAQ,MAAM,OAAO,gBAAgB;AAAA,MACnC,GAAG;AAAA,MACH,UAAU,IAAI;AAAA,IAChB,CAAC;AAAA,EACH;AAAA,EACA,MAAM,cAAc,EAAE,QAAQ,OAAO,QAAQ,QAAQ,GAAG;AACtD,UAAM,EAAE,cAAc,GAAG,GAAG,MAAM,IAAI;AACtC,UAAM,gBAAgB,OAAO,gBACzB,OAAO,cAAc,KAAK,MAAM,IAChC,OAAO,eAAe,KAAK,MAAM;AACrC,WAAQ,MAAM;AAAA,MACZ,UAAU,CAAC;AAAA,MACX;AAAA,MACA;AAAA,IACF;AAAA,EACF;AACF,CAAC;","names":[]}
1
+ {"version":3,"sources":["../src/adapters/ethers.ts"],"sourcesContent":["import { toAccount } from '../accounts/toAccount'\nimport type { Address, Hash } from '../types'\nimport { toBytes } from '../utils'\n\ntype BigNumberish = string | number | bigint\ntype BytesLike = string | Uint8Array\n\ntype TypedDataDomain = {\n name?: string\n version?: string\n chainId?: BigNumberish\n verifyingContract?: string\n salt?: BytesLike\n}\ntype TypedDataField = {\n name: string\n type: string\n}\n\ntype EthersWallet = {\n address: string\n signMessage(message: Uint8Array): Promise<string>\n signTransaction(txn: any): Promise<string>\n} & (\n | {\n signTypedData(\n domain: TypedDataDomain,\n types: Record<string, TypedDataField[]>,\n value: Record<string, any>,\n ): Promise<string>\n _signTypedData?: never\n }\n | {\n signTypedData?: never\n _signTypedData(\n domain: TypedDataDomain,\n types: Record<string, TypedDataField[]>,\n value: Record<string, any>,\n ): Promise<string>\n }\n)\n\nexport const ethersWalletToAccount = (wallet: EthersWallet) =>\n toAccount({\n address: wallet.address as Address,\n async signMessage({ message }) {\n return (await wallet.signMessage(toBytes(message))) as Hash\n },\n async signTransaction(txn) {\n // ethers type mappings\n // https://github.com/ethers-io/ethers.js/blob/0802b70a724321f56d4c170e4c8a46b7804dfb48/src.ts/transaction/transaction.ts#L394\n let type = null\n if (txn.type === 'legacy') {\n type = 0\n } else if (txn.type === 'eip1559') {\n type = 2\n } else if (txn.type === 'eip2930') {\n type = 1\n }\n return (await wallet.signTransaction({\n // allowed fields for `ethers.TransactionRequest`\n chainId: txn.chainId,\n data: txn.data,\n gasLimit: txn.gas,\n gasPrice: txn.gasPrice,\n nonce: txn.nonce,\n to: txn.to,\n type,\n value: txn.value,\n // untyped transactions do not support accessList\n ...(txn.type && txn.accessList ? { accessList: txn.accessList } : {}),\n // eip1559 properties\n ...(txn.type === 'eip1559' && txn.maxPriorityFeePerGas\n ? { maxPriorityFeePerGas: txn.maxPriorityFeePerGas }\n : {}),\n ...(txn.type === 'eip1559' && txn.maxFeePerGas\n ? { maxFeePerGas: txn.maxFeePerGas }\n : {}),\n })) as Hash\n },\n async signTypedData({ domain, types: types_, message }) {\n const { EIP712Domain: _, ...types } = types_ as any\n const signTypedData = wallet.signTypedData\n ? wallet.signTypedData.bind(wallet)\n : wallet._signTypedData.bind(wallet)\n return (await signTypedData(\n domain ?? {},\n types as Record<string, TypedDataField[]>,\n message,\n )) as Hash\n },\n })\n"],"mappings":";;;;;;;;AA0CO,IAAM,wBAAwB,CAAC,WACpC,UAAU;AAAA,EACR,SAAS,OAAO;AAAA,EAChB,MAAM,YAAY,EAAE,QAAQ,GAAG;AAC7B,WAAQ,MAAM,OAAO,YAAY,QAAQ,OAAO,CAAC;AAAA,EACnD;AAAA,EACA,MAAM,gBAAgB,KAAK;AAGzB,QAAI,OAAO;AACX,QAAI,IAAI,SAAS,UAAU;AACzB,aAAO;AAAA,IACT,WAAW,IAAI,SAAS,WAAW;AACjC,aAAO;AAAA,IACT,WAAW,IAAI,SAAS,WAAW;AACjC,aAAO;AAAA,IACT;AACA,WAAQ,MAAM,OAAO,gBAAgB;AAAA;AAAA,MAEnC,SAAS,IAAI;AAAA,MACb,MAAM,IAAI;AAAA,MACV,UAAU,IAAI;AAAA,MACd,UAAU,IAAI;AAAA,MACd,OAAO,IAAI;AAAA,MACX,IAAI,IAAI;AAAA,MACR;AAAA,MACA,OAAO,IAAI;AAAA;AAAA,MAEX,GAAI,IAAI,QAAQ,IAAI,aAAa,EAAE,YAAY,IAAI,WAAW,IAAI,CAAC;AAAA;AAAA,MAEnE,GAAI,IAAI,SAAS,aAAa,IAAI,uBAC9B,EAAE,sBAAsB,IAAI,qBAAqB,IACjD,CAAC;AAAA,MACL,GAAI,IAAI,SAAS,aAAa,IAAI,eAC9B,EAAE,cAAc,IAAI,aAAa,IACjC,CAAC;AAAA,IACP,CAAC;AAAA,EACH;AAAA,EACA,MAAM,cAAc,EAAE,QAAQ,OAAO,QAAQ,QAAQ,GAAG;AACtD,UAAM,EAAE,cAAc,GAAG,GAAG,MAAM,IAAI;AACtC,UAAM,gBAAgB,OAAO,gBACzB,OAAO,cAAc,KAAK,MAAM,IAChC,OAAO,eAAe,KAAK,MAAM;AACrC,WAAQ,MAAM;AAAA,MACZ,UAAU,CAAC;AAAA,MACX;AAAA,MACA;AAAA,IACF;AAAA,EACF;AACF,CAAC;","names":[]}
package/dist/index.d.ts CHANGED
@@ -438,7 +438,7 @@ type FallbackTransportConfig = {
438
438
  retryDelay?: TransportConfig['retryDelay'];
439
439
  };
440
440
  type FallbackTransport = Transport<'fallback', {
441
- transports: Transport[];
441
+ transports: ReturnType<Transport>[];
442
442
  }>;
443
443
  declare function fallback(transports_: Transport[], config?: FallbackTransportConfig): FallbackTransport;
444
444
 
package/dist/index.js CHANGED
@@ -265,7 +265,7 @@
265
265
 
266
266
 
267
267
 
268
- var _chunkY4JDR3IZjs = require('./chunk-Y4JDR3IZ.js');
268
+ var _chunk3IHFW55Bjs = require('./chunk-3IHFW55B.js');
269
269
 
270
270
  // src/clients/transports/createTransport.ts
271
271
  function createTransport({
@@ -279,7 +279,7 @@ function createTransport({
279
279
  }, value) {
280
280
  return {
281
281
  config: { key, name, request, retryCount, retryDelay, timeout, type },
282
- request: _chunkY4JDR3IZjs.buildRequest.call(void 0, request, { retryCount, retryDelay }),
282
+ request: _chunk3IHFW55Bjs.buildRequest.call(void 0, request, { retryCount, retryDelay }),
283
283
  value
284
284
  };
285
285
  }
@@ -321,7 +321,7 @@ function fallback(transports_, config = {}) {
321
321
  params
322
322
  });
323
323
  } catch (err) {
324
- if (_chunkY4JDR3IZjs.isDeterministicError.call(void 0, err))
324
+ if (_chunk3IHFW55Bjs.isDeterministicError.call(void 0, err))
325
325
  throw err;
326
326
  if (i === transports.length - 1)
327
327
  throw err;
@@ -335,9 +335,7 @@ function fallback(transports_, config = {}) {
335
335
  type: "fallback"
336
336
  },
337
337
  {
338
- transports: transports.map(
339
- (fn) => fn({ chain, retryCount: 0 })
340
- )
338
+ transports: transports.map((fn) => fn({ chain, retryCount: 0 }))
341
339
  }
342
340
  );
343
341
  if (rank) {
@@ -407,7 +405,7 @@ function rankTransports({
407
405
  ];
408
406
  }).sort((a, b) => b[0] - a[0]);
409
407
  onTransports(scores.map(([, i]) => transports[i]));
410
- await _chunkY4JDR3IZjs.wait.call(void 0, interval);
408
+ await _chunk3IHFW55Bjs.wait.call(void 0, interval);
411
409
  rankTransports_();
412
410
  };
413
411
  rankTransports_();
@@ -426,13 +424,13 @@ function http(url, config = {}) {
426
424
  const timeout = _nullishCoalesce(_nullishCoalesce(timeout_, () => ( config.timeout)), () => ( 1e4));
427
425
  const url_ = url || _optionalChain([chain, 'optionalAccess', _2 => _2.rpcUrls, 'access', _3 => _3.default, 'access', _4 => _4.http, 'access', _5 => _5[0]]);
428
426
  if (!url_)
429
- throw new (0, _chunkY4JDR3IZjs.UrlRequiredError)();
427
+ throw new (0, _chunk3IHFW55Bjs.UrlRequiredError)();
430
428
  return createTransport(
431
429
  {
432
430
  key,
433
431
  name,
434
432
  async request({ method, params }) {
435
- const { result } = await _chunkY4JDR3IZjs.rpc.http(url_, {
433
+ const { result } = await _chunk3IHFW55Bjs.rpc.http(url_, {
436
434
  body: {
437
435
  method,
438
436
  params
@@ -462,14 +460,14 @@ function webSocket(url, config = {}) {
462
460
  const timeout = _nullishCoalesce(_nullishCoalesce(timeout_, () => ( config.timeout)), () => ( 1e4));
463
461
  const url_ = url || _optionalChain([chain, 'optionalAccess', _6 => _6.rpcUrls, 'access', _7 => _7.default, 'access', _8 => _8.webSocket, 'optionalAccess', _9 => _9[0]]);
464
462
  if (!url_)
465
- throw new (0, _chunkY4JDR3IZjs.UrlRequiredError)();
463
+ throw new (0, _chunk3IHFW55Bjs.UrlRequiredError)();
466
464
  return createTransport(
467
465
  {
468
466
  key,
469
467
  name,
470
468
  async request({ method, params }) {
471
- const socket = await _chunkY4JDR3IZjs.getSocket.call(void 0, url_);
472
- const { result } = await _chunkY4JDR3IZjs.rpc.webSocketAsync(socket, {
469
+ const socket = await _chunk3IHFW55Bjs.getSocket.call(void 0, url_);
470
+ const { result } = await _chunk3IHFW55Bjs.rpc.webSocketAsync(socket, {
473
471
  body: { method, params },
474
472
  timeout
475
473
  });
@@ -482,12 +480,12 @@ function webSocket(url, config = {}) {
482
480
  },
483
481
  {
484
482
  getSocket() {
485
- return _chunkY4JDR3IZjs.getSocket.call(void 0, url_);
483
+ return _chunk3IHFW55Bjs.getSocket.call(void 0, url_);
486
484
  },
487
485
  async subscribe({ params, onData, onError }) {
488
- const socket = await _chunkY4JDR3IZjs.getSocket.call(void 0, url_);
486
+ const socket = await _chunk3IHFW55Bjs.getSocket.call(void 0, url_);
489
487
  const { result: subscriptionId } = await new Promise(
490
- (resolve, reject) => _chunkY4JDR3IZjs.rpc.webSocket(socket, {
488
+ (resolve, reject) => _chunk3IHFW55Bjs.rpc.webSocket(socket, {
491
489
  body: {
492
490
  method: "eth_subscribe",
493
491
  params
@@ -511,7 +509,7 @@ function webSocket(url, config = {}) {
511
509
  subscriptionId,
512
510
  async unsubscribe() {
513
511
  return new Promise(
514
- (resolve, reject) => _chunkY4JDR3IZjs.rpc.webSocket(socket, {
512
+ (resolve, reject) => _chunk3IHFW55Bjs.rpc.webSocket(socket, {
515
513
  body: {
516
514
  method: "eth_unsubscribe",
517
515
  params: [subscriptionId]
@@ -567,95 +565,95 @@ function createClient({
567
565
 
568
566
  // src/clients/decorators/public.ts
569
567
  var publicActions = (client) => ({
570
- call: (args) => _chunkY4JDR3IZjs.call.call(void 0, client, args),
571
- createBlockFilter: () => _chunkY4JDR3IZjs.createBlockFilter.call(void 0, client),
572
- createContractEventFilter: (args) => _chunkY4JDR3IZjs.createContractEventFilter.call(void 0, client, args),
573
- createEventFilter: (args) => _chunkY4JDR3IZjs.createEventFilter.call(void 0, client, args),
574
- createPendingTransactionFilter: () => _chunkY4JDR3IZjs.createPendingTransactionFilter.call(void 0, client),
575
- estimateContractGas: (args) => _chunkY4JDR3IZjs.estimateContractGas.call(void 0, client, args),
576
- estimateGas: (args) => _chunkY4JDR3IZjs.estimateGas.call(void 0, client, args),
577
- getBalance: (args) => _chunkY4JDR3IZjs.getBalance.call(void 0, client, args),
578
- getBlock: (args) => _chunkY4JDR3IZjs.getBlock.call(void 0, client, args),
579
- getBlockNumber: (args) => _chunkY4JDR3IZjs.getBlockNumber.call(void 0, client, args),
580
- getBlockTransactionCount: (args) => _chunkY4JDR3IZjs.getBlockTransactionCount.call(void 0, client, args),
581
- getBytecode: (args) => _chunkY4JDR3IZjs.getBytecode.call(void 0, client, args),
582
- getChainId: () => _chunkY4JDR3IZjs.getChainId.call(void 0, client),
583
- getEnsAddress: (args) => _chunkY4JDR3IZjs.getEnsAddress.call(void 0, client, args),
584
- getEnsAvatar: (args) => _chunkY4JDR3IZjs.getEnsAvatar.call(void 0, client, args),
585
- getEnsName: (args) => _chunkY4JDR3IZjs.getEnsName.call(void 0, client, args),
586
- getEnsResolver: (args) => _chunkY4JDR3IZjs.getEnsResolver.call(void 0, client, args),
587
- getEnsText: (args) => _chunkY4JDR3IZjs.getEnsText.call(void 0, client, args),
588
- getFeeHistory: (args) => _chunkY4JDR3IZjs.getFeeHistory.call(void 0, client, args),
589
- getFilterChanges: (args) => _chunkY4JDR3IZjs.getFilterChanges.call(void 0, client, args),
590
- getFilterLogs: (args) => _chunkY4JDR3IZjs.getFilterLogs.call(void 0, client, args),
591
- getGasPrice: () => _chunkY4JDR3IZjs.getGasPrice.call(void 0, client),
592
- getLogs: (args) => _chunkY4JDR3IZjs.getLogs.call(void 0, client, args),
593
- getStorageAt: (args) => _chunkY4JDR3IZjs.getStorageAt.call(void 0, client, args),
594
- getTransaction: (args) => _chunkY4JDR3IZjs.getTransaction.call(void 0, client, args),
595
- getTransactionConfirmations: (args) => _chunkY4JDR3IZjs.getTransactionConfirmations.call(void 0, client, args),
596
- getTransactionCount: (args) => _chunkY4JDR3IZjs.getTransactionCount.call(void 0, client, args),
597
- getTransactionReceipt: (args) => _chunkY4JDR3IZjs.getTransactionReceipt.call(void 0, client, args),
598
- multicall: (args) => _chunkY4JDR3IZjs.multicall.call(void 0, client, args),
599
- readContract: (args) => _chunkY4JDR3IZjs.readContract.call(void 0, client, args),
600
- simulateContract: (args) => _chunkY4JDR3IZjs.simulateContract.call(void 0, client, args),
601
- uninstallFilter: (args) => _chunkY4JDR3IZjs.uninstallFilter.call(void 0, client, args),
602
- waitForTransactionReceipt: (args) => _chunkY4JDR3IZjs.waitForTransactionReceipt.call(void 0, client, args),
603
- watchBlocks: (args) => _chunkY4JDR3IZjs.watchBlocks.call(void 0, client, args),
604
- watchBlockNumber: (args) => _chunkY4JDR3IZjs.watchBlockNumber.call(void 0, client, args),
605
- watchContractEvent: (args) => _chunkY4JDR3IZjs.watchContractEvent.call(void 0, client, args),
606
- watchEvent: (args) => _chunkY4JDR3IZjs.watchEvent.call(void 0, client, args),
607
- watchPendingTransactions: (args) => _chunkY4JDR3IZjs.watchPendingTransactions.call(void 0, client, args)
568
+ call: (args) => _chunk3IHFW55Bjs.call.call(void 0, client, args),
569
+ createBlockFilter: () => _chunk3IHFW55Bjs.createBlockFilter.call(void 0, client),
570
+ createContractEventFilter: (args) => _chunk3IHFW55Bjs.createContractEventFilter.call(void 0, client, args),
571
+ createEventFilter: (args) => _chunk3IHFW55Bjs.createEventFilter.call(void 0, client, args),
572
+ createPendingTransactionFilter: () => _chunk3IHFW55Bjs.createPendingTransactionFilter.call(void 0, client),
573
+ estimateContractGas: (args) => _chunk3IHFW55Bjs.estimateContractGas.call(void 0, client, args),
574
+ estimateGas: (args) => _chunk3IHFW55Bjs.estimateGas.call(void 0, client, args),
575
+ getBalance: (args) => _chunk3IHFW55Bjs.getBalance.call(void 0, client, args),
576
+ getBlock: (args) => _chunk3IHFW55Bjs.getBlock.call(void 0, client, args),
577
+ getBlockNumber: (args) => _chunk3IHFW55Bjs.getBlockNumber.call(void 0, client, args),
578
+ getBlockTransactionCount: (args) => _chunk3IHFW55Bjs.getBlockTransactionCount.call(void 0, client, args),
579
+ getBytecode: (args) => _chunk3IHFW55Bjs.getBytecode.call(void 0, client, args),
580
+ getChainId: () => _chunk3IHFW55Bjs.getChainId.call(void 0, client),
581
+ getEnsAddress: (args) => _chunk3IHFW55Bjs.getEnsAddress.call(void 0, client, args),
582
+ getEnsAvatar: (args) => _chunk3IHFW55Bjs.getEnsAvatar.call(void 0, client, args),
583
+ getEnsName: (args) => _chunk3IHFW55Bjs.getEnsName.call(void 0, client, args),
584
+ getEnsResolver: (args) => _chunk3IHFW55Bjs.getEnsResolver.call(void 0, client, args),
585
+ getEnsText: (args) => _chunk3IHFW55Bjs.getEnsText.call(void 0, client, args),
586
+ getFeeHistory: (args) => _chunk3IHFW55Bjs.getFeeHistory.call(void 0, client, args),
587
+ getFilterChanges: (args) => _chunk3IHFW55Bjs.getFilterChanges.call(void 0, client, args),
588
+ getFilterLogs: (args) => _chunk3IHFW55Bjs.getFilterLogs.call(void 0, client, args),
589
+ getGasPrice: () => _chunk3IHFW55Bjs.getGasPrice.call(void 0, client),
590
+ getLogs: (args) => _chunk3IHFW55Bjs.getLogs.call(void 0, client, args),
591
+ getStorageAt: (args) => _chunk3IHFW55Bjs.getStorageAt.call(void 0, client, args),
592
+ getTransaction: (args) => _chunk3IHFW55Bjs.getTransaction.call(void 0, client, args),
593
+ getTransactionConfirmations: (args) => _chunk3IHFW55Bjs.getTransactionConfirmations.call(void 0, client, args),
594
+ getTransactionCount: (args) => _chunk3IHFW55Bjs.getTransactionCount.call(void 0, client, args),
595
+ getTransactionReceipt: (args) => _chunk3IHFW55Bjs.getTransactionReceipt.call(void 0, client, args),
596
+ multicall: (args) => _chunk3IHFW55Bjs.multicall.call(void 0, client, args),
597
+ readContract: (args) => _chunk3IHFW55Bjs.readContract.call(void 0, client, args),
598
+ simulateContract: (args) => _chunk3IHFW55Bjs.simulateContract.call(void 0, client, args),
599
+ uninstallFilter: (args) => _chunk3IHFW55Bjs.uninstallFilter.call(void 0, client, args),
600
+ waitForTransactionReceipt: (args) => _chunk3IHFW55Bjs.waitForTransactionReceipt.call(void 0, client, args),
601
+ watchBlocks: (args) => _chunk3IHFW55Bjs.watchBlocks.call(void 0, client, args),
602
+ watchBlockNumber: (args) => _chunk3IHFW55Bjs.watchBlockNumber.call(void 0, client, args),
603
+ watchContractEvent: (args) => _chunk3IHFW55Bjs.watchContractEvent.call(void 0, client, args),
604
+ watchEvent: (args) => _chunk3IHFW55Bjs.watchEvent.call(void 0, client, args),
605
+ watchPendingTransactions: (args) => _chunk3IHFW55Bjs.watchPendingTransactions.call(void 0, client, args)
608
606
  });
609
607
 
610
608
  // src/clients/decorators/test.ts
611
609
  function testActions(client) {
612
610
  return {
613
- dropTransaction: (args) => _chunkY4JDR3IZjs.dropTransaction.call(void 0, client, args),
614
- getAutomine: () => _chunkY4JDR3IZjs.getAutomine.call(void 0, client),
615
- getTxpoolContent: () => _chunkY4JDR3IZjs.getTxpoolContent.call(void 0, client),
616
- getTxpoolStatus: () => _chunkY4JDR3IZjs.getTxpoolStatus.call(void 0, client),
617
- impersonateAccount: (args) => _chunkY4JDR3IZjs.impersonateAccount.call(void 0, client, args),
618
- increaseTime: (args) => _chunkY4JDR3IZjs.increaseTime.call(void 0, client, args),
619
- inspectTxpool: () => _chunkY4JDR3IZjs.inspectTxpool.call(void 0, client),
620
- mine: (args) => _chunkY4JDR3IZjs.mine.call(void 0, client, args),
621
- removeBlockTimestampInterval: () => _chunkY4JDR3IZjs.removeBlockTimestampInterval.call(void 0, client),
622
- reset: (args) => _chunkY4JDR3IZjs.reset.call(void 0, client, args),
623
- revert: (args) => _chunkY4JDR3IZjs.revert.call(void 0, client, args),
624
- sendUnsignedTransaction: (args) => _chunkY4JDR3IZjs.sendUnsignedTransaction.call(void 0, client, args),
625
- setAutomine: (args) => _chunkY4JDR3IZjs.setAutomine.call(void 0, client, args),
626
- setBalance: (args) => _chunkY4JDR3IZjs.setBalance.call(void 0, client, args),
627
- setBlockGasLimit: (args) => _chunkY4JDR3IZjs.setBlockGasLimit.call(void 0, client, args),
628
- setBlockTimestampInterval: (args) => _chunkY4JDR3IZjs.setBlockTimestampInterval.call(void 0, client, args),
629
- setCode: (args) => _chunkY4JDR3IZjs.setCode.call(void 0, client, args),
630
- setCoinbase: (args) => _chunkY4JDR3IZjs.setCoinbase.call(void 0, client, args),
631
- setIntervalMining: (args) => _chunkY4JDR3IZjs.setIntervalMining.call(void 0, client, args),
632
- setLoggingEnabled: (args) => _chunkY4JDR3IZjs.setLoggingEnabled.call(void 0, client, args),
633
- setMinGasPrice: (args) => _chunkY4JDR3IZjs.setMinGasPrice.call(void 0, client, args),
634
- setNextBlockBaseFeePerGas: (args) => _chunkY4JDR3IZjs.setNextBlockBaseFeePerGas.call(void 0, client, args),
635
- setNextBlockTimestamp: (args) => _chunkY4JDR3IZjs.setNextBlockTimestamp.call(void 0, client, args),
636
- setNonce: (args) => _chunkY4JDR3IZjs.setNonce.call(void 0, client, args),
637
- setRpcUrl: (args) => _chunkY4JDR3IZjs.setRpcUrl.call(void 0, client, args),
638
- setStorageAt: (args) => _chunkY4JDR3IZjs.setStorageAt.call(void 0, client, args),
639
- snapshot: () => _chunkY4JDR3IZjs.snapshot.call(void 0, client),
640
- stopImpersonatingAccount: (args) => _chunkY4JDR3IZjs.stopImpersonatingAccount.call(void 0, client, args)
611
+ dropTransaction: (args) => _chunk3IHFW55Bjs.dropTransaction.call(void 0, client, args),
612
+ getAutomine: () => _chunk3IHFW55Bjs.getAutomine.call(void 0, client),
613
+ getTxpoolContent: () => _chunk3IHFW55Bjs.getTxpoolContent.call(void 0, client),
614
+ getTxpoolStatus: () => _chunk3IHFW55Bjs.getTxpoolStatus.call(void 0, client),
615
+ impersonateAccount: (args) => _chunk3IHFW55Bjs.impersonateAccount.call(void 0, client, args),
616
+ increaseTime: (args) => _chunk3IHFW55Bjs.increaseTime.call(void 0, client, args),
617
+ inspectTxpool: () => _chunk3IHFW55Bjs.inspectTxpool.call(void 0, client),
618
+ mine: (args) => _chunk3IHFW55Bjs.mine.call(void 0, client, args),
619
+ removeBlockTimestampInterval: () => _chunk3IHFW55Bjs.removeBlockTimestampInterval.call(void 0, client),
620
+ reset: (args) => _chunk3IHFW55Bjs.reset.call(void 0, client, args),
621
+ revert: (args) => _chunk3IHFW55Bjs.revert.call(void 0, client, args),
622
+ sendUnsignedTransaction: (args) => _chunk3IHFW55Bjs.sendUnsignedTransaction.call(void 0, client, args),
623
+ setAutomine: (args) => _chunk3IHFW55Bjs.setAutomine.call(void 0, client, args),
624
+ setBalance: (args) => _chunk3IHFW55Bjs.setBalance.call(void 0, client, args),
625
+ setBlockGasLimit: (args) => _chunk3IHFW55Bjs.setBlockGasLimit.call(void 0, client, args),
626
+ setBlockTimestampInterval: (args) => _chunk3IHFW55Bjs.setBlockTimestampInterval.call(void 0, client, args),
627
+ setCode: (args) => _chunk3IHFW55Bjs.setCode.call(void 0, client, args),
628
+ setCoinbase: (args) => _chunk3IHFW55Bjs.setCoinbase.call(void 0, client, args),
629
+ setIntervalMining: (args) => _chunk3IHFW55Bjs.setIntervalMining.call(void 0, client, args),
630
+ setLoggingEnabled: (args) => _chunk3IHFW55Bjs.setLoggingEnabled.call(void 0, client, args),
631
+ setMinGasPrice: (args) => _chunk3IHFW55Bjs.setMinGasPrice.call(void 0, client, args),
632
+ setNextBlockBaseFeePerGas: (args) => _chunk3IHFW55Bjs.setNextBlockBaseFeePerGas.call(void 0, client, args),
633
+ setNextBlockTimestamp: (args) => _chunk3IHFW55Bjs.setNextBlockTimestamp.call(void 0, client, args),
634
+ setNonce: (args) => _chunk3IHFW55Bjs.setNonce.call(void 0, client, args),
635
+ setRpcUrl: (args) => _chunk3IHFW55Bjs.setRpcUrl.call(void 0, client, args),
636
+ setStorageAt: (args) => _chunk3IHFW55Bjs.setStorageAt.call(void 0, client, args),
637
+ snapshot: () => _chunk3IHFW55Bjs.snapshot.call(void 0, client),
638
+ stopImpersonatingAccount: (args) => _chunk3IHFW55Bjs.stopImpersonatingAccount.call(void 0, client, args)
641
639
  };
642
640
  }
643
641
 
644
642
  // src/clients/decorators/wallet.ts
645
643
  var walletActions = (client) => ({
646
- addChain: (args) => _chunkY4JDR3IZjs.addChain.call(void 0, client, args),
647
- deployContract: (args) => _chunkY4JDR3IZjs.deployContract.call(void 0, client, args),
648
- getAddresses: () => _chunkY4JDR3IZjs.getAddresses.call(void 0, client),
649
- getChainId: () => _chunkY4JDR3IZjs.getChainId.call(void 0, client),
650
- getPermissions: () => _chunkY4JDR3IZjs.getPermissions.call(void 0, client),
651
- requestAddresses: () => _chunkY4JDR3IZjs.requestAddresses.call(void 0, client),
652
- requestPermissions: (args) => _chunkY4JDR3IZjs.requestPermissions.call(void 0, client, args),
653
- sendTransaction: (args) => _chunkY4JDR3IZjs.sendTransaction.call(void 0, client, args),
654
- signMessage: (args) => _chunkY4JDR3IZjs.signMessage.call(void 0, client, args),
655
- signTypedData: (args) => _chunkY4JDR3IZjs.signTypedData.call(void 0, client, args),
656
- switchChain: (args) => _chunkY4JDR3IZjs.switchChain.call(void 0, client, args),
657
- watchAsset: (args) => _chunkY4JDR3IZjs.watchAsset.call(void 0, client, args),
658
- writeContract: (args) => _chunkY4JDR3IZjs.writeContract.call(void 0, client, args)
644
+ addChain: (args) => _chunk3IHFW55Bjs.addChain.call(void 0, client, args),
645
+ deployContract: (args) => _chunk3IHFW55Bjs.deployContract.call(void 0, client, args),
646
+ getAddresses: () => _chunk3IHFW55Bjs.getAddresses.call(void 0, client),
647
+ getChainId: () => _chunk3IHFW55Bjs.getChainId.call(void 0, client),
648
+ getPermissions: () => _chunk3IHFW55Bjs.getPermissions.call(void 0, client),
649
+ requestAddresses: () => _chunk3IHFW55Bjs.requestAddresses.call(void 0, client),
650
+ requestPermissions: (args) => _chunk3IHFW55Bjs.requestPermissions.call(void 0, client, args),
651
+ sendTransaction: (args) => _chunk3IHFW55Bjs.sendTransaction.call(void 0, client, args),
652
+ signMessage: (args) => _chunk3IHFW55Bjs.signMessage.call(void 0, client, args),
653
+ signTypedData: (args) => _chunk3IHFW55Bjs.signTypedData.call(void 0, client, args),
654
+ switchChain: (args) => _chunk3IHFW55Bjs.switchChain.call(void 0, client, args),
655
+ watchAsset: (args) => _chunk3IHFW55Bjs.watchAsset.call(void 0, client, args),
656
+ writeContract: (args) => _chunk3IHFW55Bjs.writeContract.call(void 0, client, args)
659
657
  });
660
658
 
661
659
  // src/clients/createPublicClient.ts
@@ -724,7 +722,7 @@ function createWalletClient({
724
722
  transport: (opts) => transport({ ...opts, retryCount: 0 }),
725
723
  type: "walletClient"
726
724
  }),
727
- account: account ? _chunkY4JDR3IZjs.parseAccount.call(void 0, account) : void 0
725
+ account: account ? _chunk3IHFW55Bjs.parseAccount.call(void 0, account) : void 0
728
726
  };
729
727
  return {
730
728
  ...client,
@@ -923,5 +921,5 @@ function createWalletClient({
923
921
 
924
922
 
925
923
 
926
- exports.AbiConstructorNotFoundError = _chunkY4JDR3IZjs.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunkY4JDR3IZjs.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunkY4JDR3IZjs.AbiDecodingDataSizeInvalidError; exports.AbiDecodingZeroDataError = _chunkY4JDR3IZjs.AbiDecodingZeroDataError; exports.AbiEncodingArrayLengthMismatchError = _chunkY4JDR3IZjs.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunkY4JDR3IZjs.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunkY4JDR3IZjs.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunkY4JDR3IZjs.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunkY4JDR3IZjs.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunkY4JDR3IZjs.AbiEventNotFoundError; exports.AbiEventSignatureEmptyTopicsError = _chunkY4JDR3IZjs.AbiEventSignatureEmptyTopicsError; exports.AbiEventSignatureNotFoundError = _chunkY4JDR3IZjs.AbiEventSignatureNotFoundError; exports.AbiFunctionNotFoundError = _chunkY4JDR3IZjs.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunkY4JDR3IZjs.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunkY4JDR3IZjs.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunkY4JDR3IZjs.BaseError; exports.BlockNotFoundError = _chunkY4JDR3IZjs.BlockNotFoundError; exports.CallExecutionError = _chunkY4JDR3IZjs.CallExecutionError; exports.ChainDoesNotSupportContract = _chunkY4JDR3IZjs.ChainDoesNotSupportContract; exports.ContractFunctionExecutionError = _chunkY4JDR3IZjs.ContractFunctionExecutionError; exports.ContractFunctionRevertedError = _chunkY4JDR3IZjs.ContractFunctionRevertedError; exports.ContractFunctionZeroDataError = _chunkY4JDR3IZjs.ContractFunctionZeroDataError; exports.DataLengthTooLongError = _chunkY4JDR3IZjs.DataLengthTooLongError; exports.DataLengthTooShortError = _chunkY4JDR3IZjs.DataLengthTooShortError; exports.DecodeLogTopicsMismatch = _chunkY4JDR3IZjs.DecodeLogTopicsMismatch; exports.EnsAvatarUriResolutionError = _chunkY4JDR3IZjs.EnsAvatarUriResolutionError; exports.EstimateGasExecutionError = _chunkY4JDR3IZjs.EstimateGasExecutionError; exports.ExecutionRevertedError = _chunkY4JDR3IZjs.ExecutionRevertedError; exports.FeeCapTooHighError = _chunkY4JDR3IZjs.FeeCapTooHighError; exports.FeeCapTooLowError = _chunkY4JDR3IZjs.FeeCapTooLowError; exports.FilterTypeNotSupportedError = _chunkY4JDR3IZjs.FilterTypeNotSupportedError; exports.HttpRequestError = _chunkY4JDR3IZjs.HttpRequestError; exports.InsufficientFundsError = _chunkY4JDR3IZjs.InsufficientFundsError; exports.InternalRpcError = _chunkY4JDR3IZjs.InternalRpcError; exports.IntrinsicGasTooHighError = _chunkY4JDR3IZjs.IntrinsicGasTooHighError; exports.IntrinsicGasTooLowError = _chunkY4JDR3IZjs.IntrinsicGasTooLowError; exports.InvalidAbiDecodingTypeError = _chunkY4JDR3IZjs.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunkY4JDR3IZjs.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunkY4JDR3IZjs.InvalidAddressError; exports.InvalidArrayError = _chunkY4JDR3IZjs.InvalidArrayError; exports.InvalidBytesBooleanError = _chunkY4JDR3IZjs.InvalidBytesBooleanError; exports.InvalidChainIdError = _chunkY4JDR3IZjs.InvalidChainIdError; exports.InvalidDefinitionTypeError = _chunkY4JDR3IZjs.InvalidDefinitionTypeError; exports.InvalidHexBooleanError = _chunkY4JDR3IZjs.InvalidHexBooleanError; exports.InvalidHexValueError = _chunkY4JDR3IZjs.InvalidHexValueError; exports.InvalidInputRpcError = _chunkY4JDR3IZjs.InvalidInputRpcError; exports.InvalidLegacyVError = _chunkY4JDR3IZjs.InvalidLegacyVError; exports.InvalidParamsRpcError = _chunkY4JDR3IZjs.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunkY4JDR3IZjs.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunkY4JDR3IZjs.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunkY4JDR3IZjs.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunkY4JDR3IZjs.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunkY4JDR3IZjs.MethodNotSupportedRpcError; exports.NonceMaxValueError = _chunkY4JDR3IZjs.NonceMaxValueError; exports.NonceTooHighError = _chunkY4JDR3IZjs.NonceTooHighError; exports.NonceTooLowError = _chunkY4JDR3IZjs.NonceTooLowError; exports.OffsetOutOfBoundsError = _chunkY4JDR3IZjs.OffsetOutOfBoundsError; exports.ParseRpcError = _chunkY4JDR3IZjs.ParseRpcError; exports.RawContractError = _chunkY4JDR3IZjs.RawContractError; exports.RequestError = _chunkY4JDR3IZjs.RequestError; exports.ResourceNotFoundRpcError = _chunkY4JDR3IZjs.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunkY4JDR3IZjs.ResourceUnavailableRpcError; exports.RpcError = _chunkY4JDR3IZjs.RpcError; exports.RpcRequestError = _chunkY4JDR3IZjs.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunkY4JDR3IZjs.SizeExceedsPaddingSizeError; exports.SwitchChainError = _chunkY4JDR3IZjs.SwitchChainError; exports.TimeoutError = _chunkY4JDR3IZjs.TimeoutError; exports.TipAboveFeeCapError = _chunkY4JDR3IZjs.TipAboveFeeCapError; exports.TransactionExecutionError = _chunkY4JDR3IZjs.TransactionExecutionError; exports.TransactionNotFoundError = _chunkY4JDR3IZjs.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunkY4JDR3IZjs.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunkY4JDR3IZjs.TransactionRejectedRpcError; exports.TransactionTypeNotSupportedError = _chunkY4JDR3IZjs.TransactionTypeNotSupportedError; exports.UnknownNodeError = _chunkY4JDR3IZjs.UnknownNodeError; exports.UnknownRpcError = _chunkY4JDR3IZjs.UnknownRpcError; exports.UrlRequiredError = _chunkY4JDR3IZjs.UrlRequiredError; exports.UserRejectedRequestError = _chunkY4JDR3IZjs.UserRejectedRequestError; exports.WaitForTransactionReceiptTimeoutError = _chunkY4JDR3IZjs.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunkY4JDR3IZjs.WebSocketRequestError; exports.assertRequest = _chunkY4JDR3IZjs.assertRequest; exports.assertTransactionEIP1559 = _chunkY4JDR3IZjs.assertTransactionEIP1559; exports.assertTransactionEIP2930 = _chunkY4JDR3IZjs.assertTransactionEIP2930; exports.assertTransactionLegacy = _chunkY4JDR3IZjs.assertTransactionLegacy; exports.boolToBytes = _chunkY4JDR3IZjs.boolToBytes; exports.boolToHex = _chunkY4JDR3IZjs.boolToHex; exports.bytesToBigint = _chunkY4JDR3IZjs.bytesToBigint; exports.bytesToBool = _chunkY4JDR3IZjs.bytesToBool; exports.bytesToHex = _chunkY4JDR3IZjs.bytesToHex; exports.bytesToNumber = _chunkY4JDR3IZjs.bytesToNumber; exports.bytesToString = _chunkY4JDR3IZjs.bytesToString; exports.concat = _chunkY4JDR3IZjs.concat; exports.concatBytes = _chunkY4JDR3IZjs.concatBytes; exports.concatHex = _chunkY4JDR3IZjs.concatHex; exports.createClient = createClient; exports.createPublicClient = createPublicClient; exports.createTestClient = createTestClient; exports.createTransport = createTransport; exports.createWalletClient = createWalletClient; exports.custom = custom; exports.decodeAbiParameters = _chunkY4JDR3IZjs.decodeAbiParameters; exports.decodeErrorResult = _chunkY4JDR3IZjs.decodeErrorResult; exports.decodeEventLog = _chunkY4JDR3IZjs.decodeEventLog; exports.decodeFunctionData = _chunkY4JDR3IZjs.decodeFunctionData; exports.decodeFunctionResult = _chunkY4JDR3IZjs.decodeFunctionResult; exports.defineBlock = _chunkY4JDR3IZjs.defineBlock; exports.defineChain = _chunkY4JDR3IZjs.defineChain; exports.defineTransaction = _chunkY4JDR3IZjs.defineTransaction; exports.defineTransactionReceipt = _chunkY4JDR3IZjs.defineTransactionReceipt; exports.defineTransactionRequest = _chunkY4JDR3IZjs.defineTransactionRequest; exports.encodeAbiParameters = _chunkY4JDR3IZjs.encodeAbiParameters; exports.encodeDeployData = _chunkY4JDR3IZjs.encodeDeployData; exports.encodeErrorResult = _chunkY4JDR3IZjs.encodeErrorResult; exports.encodeEventTopics = _chunkY4JDR3IZjs.encodeEventTopics; exports.encodeFunctionData = _chunkY4JDR3IZjs.encodeFunctionData; exports.encodeFunctionResult = _chunkY4JDR3IZjs.encodeFunctionResult; exports.encodePacked = _chunkY4JDR3IZjs.encodePacked; exports.etherUnits = _chunkY4JDR3IZjs.etherUnits; exports.fallback = fallback; exports.formatBlock = _chunkY4JDR3IZjs.formatBlock; exports.formatEther = _chunkY4JDR3IZjs.formatEther; exports.formatGwei = _chunkY4JDR3IZjs.formatGwei; exports.formatTransaction = _chunkY4JDR3IZjs.formatTransaction; exports.formatTransactionRequest = _chunkY4JDR3IZjs.formatTransactionRequest; exports.formatUnits = _chunkY4JDR3IZjs.formatUnits; exports.fromBytes = _chunkY4JDR3IZjs.fromBytes; exports.fromHex = _chunkY4JDR3IZjs.fromHex; exports.fromRlp = _chunkY4JDR3IZjs.fromRlp; exports.getAbiItem = _chunkY4JDR3IZjs.getAbiItem; exports.getAddress = _chunkY4JDR3IZjs.getAddress; exports.getContract = _chunkY4JDR3IZjs.getContract; exports.getContractAddress = _chunkY4JDR3IZjs.getContractAddress; exports.getContractError = _chunkY4JDR3IZjs.getContractError; exports.getCreate2Address = _chunkY4JDR3IZjs.getCreate2Address; exports.getCreateAddress = _chunkY4JDR3IZjs.getCreateAddress; exports.getEventSelector = _chunkY4JDR3IZjs.getEventSelector; exports.getFunctionSelector = _chunkY4JDR3IZjs.getFunctionSelector; exports.getSerializedTransactionType = _chunkY4JDR3IZjs.getSerializedTransactionType; exports.getTransactionType = _chunkY4JDR3IZjs.getTransactionType; exports.gweiUnits = _chunkY4JDR3IZjs.gweiUnits; exports.hashMessage = _chunkY4JDR3IZjs.hashMessage; exports.hashTypedData = _chunkY4JDR3IZjs.hashTypedData; exports.hexToBigInt = _chunkY4JDR3IZjs.hexToBigInt; exports.hexToBool = _chunkY4JDR3IZjs.hexToBool; exports.hexToBytes = _chunkY4JDR3IZjs.hexToBytes; exports.hexToNumber = _chunkY4JDR3IZjs.hexToNumber; exports.hexToString = _chunkY4JDR3IZjs.hexToString; exports.http = http; exports.isAddress = _chunkY4JDR3IZjs.isAddress; exports.isAddressEqual = _chunkY4JDR3IZjs.isAddressEqual; exports.isBytes = _chunkY4JDR3IZjs.isBytes; exports.isHash = _chunkY4JDR3IZjs.isHash; exports.isHex = _chunkY4JDR3IZjs.isHex; exports.keccak256 = _chunkY4JDR3IZjs.keccak256; exports.labelhash = _chunkY4JDR3IZjs.labelhash; exports.multicall3Abi = _chunkY4JDR3IZjs.multicall3Abi; exports.namehash = _chunkY4JDR3IZjs.namehash; exports.numberToBytes = _chunkY4JDR3IZjs.numberToBytes; exports.numberToHex = _chunkY4JDR3IZjs.numberToHex; exports.pad = _chunkY4JDR3IZjs.pad; exports.padBytes = _chunkY4JDR3IZjs.padBytes; exports.padHex = _chunkY4JDR3IZjs.padHex; exports.parseAbi = _chunkY4JDR3IZjs.parseAbi; exports.parseAbiItem = _chunkY4JDR3IZjs.parseAbiItem; exports.parseAbiParameter = _chunkY4JDR3IZjs.parseAbiParameter; exports.parseAbiParameters = _chunkY4JDR3IZjs.parseAbiParameters; exports.parseEther = _chunkY4JDR3IZjs.parseEther; exports.parseGwei = _chunkY4JDR3IZjs.parseGwei; exports.parseTransaction = _chunkY4JDR3IZjs.parseTransaction; exports.parseUnits = _chunkY4JDR3IZjs.parseUnits; exports.prepareRequest = _chunkY4JDR3IZjs.prepareRequest; exports.recoverAddress = _chunkY4JDR3IZjs.recoverAddress; exports.recoverMessageAddress = _chunkY4JDR3IZjs.recoverMessageAddress; exports.recoverTypedDataAddress = _chunkY4JDR3IZjs.recoverTypedDataAddress; exports.serializeTransaction = _chunkY4JDR3IZjs.serializeTransaction; exports.size = _chunkY4JDR3IZjs.size; exports.slice = _chunkY4JDR3IZjs.slice; exports.sliceBytes = _chunkY4JDR3IZjs.sliceBytes; exports.sliceHex = _chunkY4JDR3IZjs.sliceHex; exports.stringToBytes = _chunkY4JDR3IZjs.stringToBytes; exports.stringToHex = _chunkY4JDR3IZjs.stringToHex; exports.stringify = _chunkY4JDR3IZjs.stringify; exports.toBytes = _chunkY4JDR3IZjs.toBytes; exports.toHex = _chunkY4JDR3IZjs.toHex; exports.toRlp = _chunkY4JDR3IZjs.toRlp; exports.transactionType = _chunkY4JDR3IZjs.transactionType; exports.trim = _chunkY4JDR3IZjs.trim; exports.validateTypedData = _chunkY4JDR3IZjs.validateTypedData; exports.verifyMessage = _chunkY4JDR3IZjs.verifyMessage; exports.verifyTypedData = _chunkY4JDR3IZjs.verifyTypedData; exports.webSocket = webSocket; exports.weiUnits = _chunkY4JDR3IZjs.weiUnits;
924
+ exports.AbiConstructorNotFoundError = _chunk3IHFW55Bjs.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunk3IHFW55Bjs.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunk3IHFW55Bjs.AbiDecodingDataSizeInvalidError; exports.AbiDecodingZeroDataError = _chunk3IHFW55Bjs.AbiDecodingZeroDataError; exports.AbiEncodingArrayLengthMismatchError = _chunk3IHFW55Bjs.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunk3IHFW55Bjs.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunk3IHFW55Bjs.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunk3IHFW55Bjs.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunk3IHFW55Bjs.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunk3IHFW55Bjs.AbiEventNotFoundError; exports.AbiEventSignatureEmptyTopicsError = _chunk3IHFW55Bjs.AbiEventSignatureEmptyTopicsError; exports.AbiEventSignatureNotFoundError = _chunk3IHFW55Bjs.AbiEventSignatureNotFoundError; exports.AbiFunctionNotFoundError = _chunk3IHFW55Bjs.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunk3IHFW55Bjs.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunk3IHFW55Bjs.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunk3IHFW55Bjs.BaseError; exports.BlockNotFoundError = _chunk3IHFW55Bjs.BlockNotFoundError; exports.CallExecutionError = _chunk3IHFW55Bjs.CallExecutionError; exports.ChainDoesNotSupportContract = _chunk3IHFW55Bjs.ChainDoesNotSupportContract; exports.ContractFunctionExecutionError = _chunk3IHFW55Bjs.ContractFunctionExecutionError; exports.ContractFunctionRevertedError = _chunk3IHFW55Bjs.ContractFunctionRevertedError; exports.ContractFunctionZeroDataError = _chunk3IHFW55Bjs.ContractFunctionZeroDataError; exports.DataLengthTooLongError = _chunk3IHFW55Bjs.DataLengthTooLongError; exports.DataLengthTooShortError = _chunk3IHFW55Bjs.DataLengthTooShortError; exports.DecodeLogTopicsMismatch = _chunk3IHFW55Bjs.DecodeLogTopicsMismatch; exports.EnsAvatarUriResolutionError = _chunk3IHFW55Bjs.EnsAvatarUriResolutionError; exports.EstimateGasExecutionError = _chunk3IHFW55Bjs.EstimateGasExecutionError; exports.ExecutionRevertedError = _chunk3IHFW55Bjs.ExecutionRevertedError; exports.FeeCapTooHighError = _chunk3IHFW55Bjs.FeeCapTooHighError; exports.FeeCapTooLowError = _chunk3IHFW55Bjs.FeeCapTooLowError; exports.FilterTypeNotSupportedError = _chunk3IHFW55Bjs.FilterTypeNotSupportedError; exports.HttpRequestError = _chunk3IHFW55Bjs.HttpRequestError; exports.InsufficientFundsError = _chunk3IHFW55Bjs.InsufficientFundsError; exports.InternalRpcError = _chunk3IHFW55Bjs.InternalRpcError; exports.IntrinsicGasTooHighError = _chunk3IHFW55Bjs.IntrinsicGasTooHighError; exports.IntrinsicGasTooLowError = _chunk3IHFW55Bjs.IntrinsicGasTooLowError; exports.InvalidAbiDecodingTypeError = _chunk3IHFW55Bjs.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunk3IHFW55Bjs.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunk3IHFW55Bjs.InvalidAddressError; exports.InvalidArrayError = _chunk3IHFW55Bjs.InvalidArrayError; exports.InvalidBytesBooleanError = _chunk3IHFW55Bjs.InvalidBytesBooleanError; exports.InvalidChainIdError = _chunk3IHFW55Bjs.InvalidChainIdError; exports.InvalidDefinitionTypeError = _chunk3IHFW55Bjs.InvalidDefinitionTypeError; exports.InvalidHexBooleanError = _chunk3IHFW55Bjs.InvalidHexBooleanError; exports.InvalidHexValueError = _chunk3IHFW55Bjs.InvalidHexValueError; exports.InvalidInputRpcError = _chunk3IHFW55Bjs.InvalidInputRpcError; exports.InvalidLegacyVError = _chunk3IHFW55Bjs.InvalidLegacyVError; exports.InvalidParamsRpcError = _chunk3IHFW55Bjs.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunk3IHFW55Bjs.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunk3IHFW55Bjs.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunk3IHFW55Bjs.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunk3IHFW55Bjs.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunk3IHFW55Bjs.MethodNotSupportedRpcError; exports.NonceMaxValueError = _chunk3IHFW55Bjs.NonceMaxValueError; exports.NonceTooHighError = _chunk3IHFW55Bjs.NonceTooHighError; exports.NonceTooLowError = _chunk3IHFW55Bjs.NonceTooLowError; exports.OffsetOutOfBoundsError = _chunk3IHFW55Bjs.OffsetOutOfBoundsError; exports.ParseRpcError = _chunk3IHFW55Bjs.ParseRpcError; exports.RawContractError = _chunk3IHFW55Bjs.RawContractError; exports.RequestError = _chunk3IHFW55Bjs.RequestError; exports.ResourceNotFoundRpcError = _chunk3IHFW55Bjs.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunk3IHFW55Bjs.ResourceUnavailableRpcError; exports.RpcError = _chunk3IHFW55Bjs.RpcError; exports.RpcRequestError = _chunk3IHFW55Bjs.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunk3IHFW55Bjs.SizeExceedsPaddingSizeError; exports.SwitchChainError = _chunk3IHFW55Bjs.SwitchChainError; exports.TimeoutError = _chunk3IHFW55Bjs.TimeoutError; exports.TipAboveFeeCapError = _chunk3IHFW55Bjs.TipAboveFeeCapError; exports.TransactionExecutionError = _chunk3IHFW55Bjs.TransactionExecutionError; exports.TransactionNotFoundError = _chunk3IHFW55Bjs.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunk3IHFW55Bjs.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunk3IHFW55Bjs.TransactionRejectedRpcError; exports.TransactionTypeNotSupportedError = _chunk3IHFW55Bjs.TransactionTypeNotSupportedError; exports.UnknownNodeError = _chunk3IHFW55Bjs.UnknownNodeError; exports.UnknownRpcError = _chunk3IHFW55Bjs.UnknownRpcError; exports.UrlRequiredError = _chunk3IHFW55Bjs.UrlRequiredError; exports.UserRejectedRequestError = _chunk3IHFW55Bjs.UserRejectedRequestError; exports.WaitForTransactionReceiptTimeoutError = _chunk3IHFW55Bjs.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunk3IHFW55Bjs.WebSocketRequestError; exports.assertRequest = _chunk3IHFW55Bjs.assertRequest; exports.assertTransactionEIP1559 = _chunk3IHFW55Bjs.assertTransactionEIP1559; exports.assertTransactionEIP2930 = _chunk3IHFW55Bjs.assertTransactionEIP2930; exports.assertTransactionLegacy = _chunk3IHFW55Bjs.assertTransactionLegacy; exports.boolToBytes = _chunk3IHFW55Bjs.boolToBytes; exports.boolToHex = _chunk3IHFW55Bjs.boolToHex; exports.bytesToBigint = _chunk3IHFW55Bjs.bytesToBigint; exports.bytesToBool = _chunk3IHFW55Bjs.bytesToBool; exports.bytesToHex = _chunk3IHFW55Bjs.bytesToHex; exports.bytesToNumber = _chunk3IHFW55Bjs.bytesToNumber; exports.bytesToString = _chunk3IHFW55Bjs.bytesToString; exports.concat = _chunk3IHFW55Bjs.concat; exports.concatBytes = _chunk3IHFW55Bjs.concatBytes; exports.concatHex = _chunk3IHFW55Bjs.concatHex; exports.createClient = createClient; exports.createPublicClient = createPublicClient; exports.createTestClient = createTestClient; exports.createTransport = createTransport; exports.createWalletClient = createWalletClient; exports.custom = custom; exports.decodeAbiParameters = _chunk3IHFW55Bjs.decodeAbiParameters; exports.decodeErrorResult = _chunk3IHFW55Bjs.decodeErrorResult; exports.decodeEventLog = _chunk3IHFW55Bjs.decodeEventLog; exports.decodeFunctionData = _chunk3IHFW55Bjs.decodeFunctionData; exports.decodeFunctionResult = _chunk3IHFW55Bjs.decodeFunctionResult; exports.defineBlock = _chunk3IHFW55Bjs.defineBlock; exports.defineChain = _chunk3IHFW55Bjs.defineChain; exports.defineTransaction = _chunk3IHFW55Bjs.defineTransaction; exports.defineTransactionReceipt = _chunk3IHFW55Bjs.defineTransactionReceipt; exports.defineTransactionRequest = _chunk3IHFW55Bjs.defineTransactionRequest; exports.encodeAbiParameters = _chunk3IHFW55Bjs.encodeAbiParameters; exports.encodeDeployData = _chunk3IHFW55Bjs.encodeDeployData; exports.encodeErrorResult = _chunk3IHFW55Bjs.encodeErrorResult; exports.encodeEventTopics = _chunk3IHFW55Bjs.encodeEventTopics; exports.encodeFunctionData = _chunk3IHFW55Bjs.encodeFunctionData; exports.encodeFunctionResult = _chunk3IHFW55Bjs.encodeFunctionResult; exports.encodePacked = _chunk3IHFW55Bjs.encodePacked; exports.etherUnits = _chunk3IHFW55Bjs.etherUnits; exports.fallback = fallback; exports.formatBlock = _chunk3IHFW55Bjs.formatBlock; exports.formatEther = _chunk3IHFW55Bjs.formatEther; exports.formatGwei = _chunk3IHFW55Bjs.formatGwei; exports.formatTransaction = _chunk3IHFW55Bjs.formatTransaction; exports.formatTransactionRequest = _chunk3IHFW55Bjs.formatTransactionRequest; exports.formatUnits = _chunk3IHFW55Bjs.formatUnits; exports.fromBytes = _chunk3IHFW55Bjs.fromBytes; exports.fromHex = _chunk3IHFW55Bjs.fromHex; exports.fromRlp = _chunk3IHFW55Bjs.fromRlp; exports.getAbiItem = _chunk3IHFW55Bjs.getAbiItem; exports.getAddress = _chunk3IHFW55Bjs.getAddress; exports.getContract = _chunk3IHFW55Bjs.getContract; exports.getContractAddress = _chunk3IHFW55Bjs.getContractAddress; exports.getContractError = _chunk3IHFW55Bjs.getContractError; exports.getCreate2Address = _chunk3IHFW55Bjs.getCreate2Address; exports.getCreateAddress = _chunk3IHFW55Bjs.getCreateAddress; exports.getEventSelector = _chunk3IHFW55Bjs.getEventSelector; exports.getFunctionSelector = _chunk3IHFW55Bjs.getFunctionSelector; exports.getSerializedTransactionType = _chunk3IHFW55Bjs.getSerializedTransactionType; exports.getTransactionType = _chunk3IHFW55Bjs.getTransactionType; exports.gweiUnits = _chunk3IHFW55Bjs.gweiUnits; exports.hashMessage = _chunk3IHFW55Bjs.hashMessage; exports.hashTypedData = _chunk3IHFW55Bjs.hashTypedData; exports.hexToBigInt = _chunk3IHFW55Bjs.hexToBigInt; exports.hexToBool = _chunk3IHFW55Bjs.hexToBool; exports.hexToBytes = _chunk3IHFW55Bjs.hexToBytes; exports.hexToNumber = _chunk3IHFW55Bjs.hexToNumber; exports.hexToString = _chunk3IHFW55Bjs.hexToString; exports.http = http; exports.isAddress = _chunk3IHFW55Bjs.isAddress; exports.isAddressEqual = _chunk3IHFW55Bjs.isAddressEqual; exports.isBytes = _chunk3IHFW55Bjs.isBytes; exports.isHash = _chunk3IHFW55Bjs.isHash; exports.isHex = _chunk3IHFW55Bjs.isHex; exports.keccak256 = _chunk3IHFW55Bjs.keccak256; exports.labelhash = _chunk3IHFW55Bjs.labelhash; exports.multicall3Abi = _chunk3IHFW55Bjs.multicall3Abi; exports.namehash = _chunk3IHFW55Bjs.namehash; exports.numberToBytes = _chunk3IHFW55Bjs.numberToBytes; exports.numberToHex = _chunk3IHFW55Bjs.numberToHex; exports.pad = _chunk3IHFW55Bjs.pad; exports.padBytes = _chunk3IHFW55Bjs.padBytes; exports.padHex = _chunk3IHFW55Bjs.padHex; exports.parseAbi = _chunk3IHFW55Bjs.parseAbi; exports.parseAbiItem = _chunk3IHFW55Bjs.parseAbiItem; exports.parseAbiParameter = _chunk3IHFW55Bjs.parseAbiParameter; exports.parseAbiParameters = _chunk3IHFW55Bjs.parseAbiParameters; exports.parseEther = _chunk3IHFW55Bjs.parseEther; exports.parseGwei = _chunk3IHFW55Bjs.parseGwei; exports.parseTransaction = _chunk3IHFW55Bjs.parseTransaction; exports.parseUnits = _chunk3IHFW55Bjs.parseUnits; exports.prepareRequest = _chunk3IHFW55Bjs.prepareRequest; exports.recoverAddress = _chunk3IHFW55Bjs.recoverAddress; exports.recoverMessageAddress = _chunk3IHFW55Bjs.recoverMessageAddress; exports.recoverTypedDataAddress = _chunk3IHFW55Bjs.recoverTypedDataAddress; exports.serializeTransaction = _chunk3IHFW55Bjs.serializeTransaction; exports.size = _chunk3IHFW55Bjs.size; exports.slice = _chunk3IHFW55Bjs.slice; exports.sliceBytes = _chunk3IHFW55Bjs.sliceBytes; exports.sliceHex = _chunk3IHFW55Bjs.sliceHex; exports.stringToBytes = _chunk3IHFW55Bjs.stringToBytes; exports.stringToHex = _chunk3IHFW55Bjs.stringToHex; exports.stringify = _chunk3IHFW55Bjs.stringify; exports.toBytes = _chunk3IHFW55Bjs.toBytes; exports.toHex = _chunk3IHFW55Bjs.toHex; exports.toRlp = _chunk3IHFW55Bjs.toRlp; exports.transactionType = _chunk3IHFW55Bjs.transactionType; exports.trim = _chunk3IHFW55Bjs.trim; exports.validateTypedData = _chunk3IHFW55Bjs.validateTypedData; exports.verifyMessage = _chunk3IHFW55Bjs.verifyMessage; exports.verifyTypedData = _chunk3IHFW55Bjs.verifyTypedData; exports.webSocket = webSocket; exports.weiUnits = _chunk3IHFW55Bjs.weiUnits;
927
925
  //# sourceMappingURL=index.js.map