viem 0.2.0-canary.20230315T225958 → 0.2.0-canary.20230316T042447

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.
Files changed (48) hide show
  1. package/dist/abi.js +2 -2
  2. package/dist/abi.mjs +1 -1
  3. package/dist/chains.js +63 -63
  4. package/dist/chains.mjs +1 -1
  5. package/dist/{chunk-IUZRZEEU.js → chunk-A5BRAPQQ.js} +7 -4
  6. package/dist/chunk-A5BRAPQQ.js.map +1 -0
  7. package/dist/{chunk-VUA7GJVU.js → chunk-GZ67J32T.js} +19 -19
  8. package/dist/chunk-GZ67J32T.js.map +1 -0
  9. package/dist/{chunk-74W4SZ66.mjs → chunk-ISLCPEI2.mjs} +7 -4
  10. package/dist/chunk-ISLCPEI2.mjs.map +1 -0
  11. package/dist/{chunk-KE2G7J6O.mjs → chunk-PLALZ2GD.mjs} +2 -2
  12. package/dist/chunk-PLALZ2GD.mjs.map +1 -0
  13. package/dist/contract.d.ts +1 -1
  14. package/dist/contract.js +2 -2
  15. package/dist/contract.mjs +1 -1
  16. package/dist/{createPublicClient-0021fc35.d.ts → createPublicClient-75540130.d.ts} +2 -2
  17. package/dist/ens.d.ts +1 -1
  18. package/dist/ens.js +3 -3
  19. package/dist/ens.mjs +2 -2
  20. package/dist/ethers.d.ts +1 -1
  21. package/dist/ethers.js +3 -3
  22. package/dist/ethers.js.map +1 -1
  23. package/dist/ethers.mjs +1 -1
  24. package/dist/ethers.mjs.map +1 -1
  25. package/dist/index.d.ts +4 -4
  26. package/dist/index.js +92 -90
  27. package/dist/index.js.map +1 -1
  28. package/dist/index.mjs +4 -2
  29. package/dist/index.mjs.map +1 -1
  30. package/dist/{parseGwei-c2fb9fa2.d.ts → parseGwei-6fff7cbe.d.ts} +1 -1
  31. package/dist/public.d.ts +1 -1
  32. package/dist/public.js +2 -2
  33. package/dist/public.mjs +1 -1
  34. package/dist/test.d.ts +3 -3
  35. package/dist/test.js +2 -2
  36. package/dist/test.mjs +1 -1
  37. package/dist/utils/index.d.ts +4 -4
  38. package/dist/utils/index.js +2 -2
  39. package/dist/utils/index.mjs +1 -1
  40. package/dist/wallet.d.ts +1 -1
  41. package/dist/wallet.js +2 -2
  42. package/dist/wallet.mjs +1 -1
  43. package/package.json +1 -1
  44. package/dist/chunk-74W4SZ66.mjs.map +0 -1
  45. package/dist/chunk-IUZRZEEU.js.map +0 -1
  46. package/dist/chunk-KE2G7J6O.mjs.map +0 -1
  47. package/dist/chunk-VUA7GJVU.js.map +0 -1
  48. package/dist/{test-a203fdee.d.ts → test-2bd23d7e.d.ts} +1 -1
@@ -11,7 +11,7 @@ import {
11
11
  stringToBytes,
12
12
  toBytes,
13
13
  toHex
14
- } from "./chunk-74W4SZ66.mjs";
14
+ } from "./chunk-ISLCPEI2.mjs";
15
15
 
16
16
  // src/utils/ens/labelhash.ts
17
17
  function labelhash(label) {
@@ -183,4 +183,4 @@ export {
183
183
  getEnsAddress,
184
184
  getEnsName
185
185
  };
186
- //# sourceMappingURL=chunk-KE2G7J6O.mjs.map
186
+ //# sourceMappingURL=chunk-PLALZ2GD.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/utils/ens/labelhash.ts","../src/utils/ens/namehash.ts","../src/utils/ens/packetToBytes.ts","../src/actions/ens/getEnsAddress.ts","../src/actions/ens/getEnsName.ts"],"sourcesContent":["import { bytesToHex, stringToBytes } from '../encoding'\nimport { keccak256 } from '../hash'\n\n/**\n * @description Hashes ENS label\n *\n * - Since ENS labels prohibit certain forbidden characters (e.g. underscore) and have other validation rules, you likely want to [normalize ENS labels](https://docs.ens.domains/contract-api-reference/name-processing#normalising-names) with [UTS-46 normalization](https://unicode.org/reports/tr46) before passing them to `labelhash`. You can use the built-in [`normalize`](https://viem.sh/docs/ens/utilities/normalize.html) function for this.\n *\n * @example\n * labelhash('eth')\n * '0x4f5b812789fc606be1b3b16908db13fc7a9adf7ca72641f84d75b47069d3d7f0'\n */\nexport function labelhash(label: string) {\n let result = new Uint8Array(32).fill(0)\n if (!label) return bytesToHex(result)\n return keccak256(stringToBytes(label))\n}\n","import { concat } from '../data'\nimport { bytesToHex, stringToBytes } from '../encoding'\nimport { keccak256 } from '../hash'\n\n/**\n * @description Hashes ENS name\n *\n * - Since ENS names prohibit certain forbidden characters (e.g. underscore) and have other validation rules, you likely want to [normalize ENS names](https://docs.ens.domains/contract-api-reference/name-processing#normalising-names) with [UTS-46 normalization](https://unicode.org/reports/tr46) before passing them to `namehash`. You can use the built-in [`normalize`](https://viem.sh/docs/ens/utilities/normalize.html) function for this.\n *\n * @example\n * namehash('wagmi-dev.eth')\n * '0xf246651c1b9a6b141d19c2604e9a58f567973833990f830d882534a747801359'\n *\n * @link https://eips.ethereum.org/EIPS/eip-137\n */\nexport function namehash(name: string) {\n let result = new Uint8Array(32).fill(0)\n if (!name) return bytesToHex(result)\n\n const labels = name.split('.')\n // Iterate in reverse order building up hash\n for (let i = labels.length - 1; i >= 0; i -= 1) {\n const hashed = keccak256(stringToBytes(labels[i]), 'bytes')\n result = keccak256(concat([result, hashed]), 'bytes')\n }\n\n return bytesToHex(result)\n}\n","// Adapted from https://github.com/mafintosh/dns-packet\nimport type { ByteArray } from '../../types'\nimport { toBytes } from '../encoding'\n\n/*\n * @description Encodes a DNS packet into a ByteArray containing a UDP payload.\n */\nexport function packetToBytes(packet: string): ByteArray {\n function length(value: string) {\n if (value === '.' || value === '..') return 1\n return toBytes(value.replace(/^\\.|\\.$/gm, '')).length + 2\n }\n\n const bytes = new Uint8Array(length(packet))\n // strip leading and trailing `.`\n const value = packet.replace(/^\\.|\\.$/gm, '')\n if (!value.length) return bytes\n\n let offset = 0\n const list = value.split('.')\n for (let i = 0; i < list.length; i++) {\n const encoded = toBytes(list[i])\n bytes[offset] = encoded.length\n bytes.set(encoded, offset + 1)\n offset += encoded.length + 1\n }\n\n return bytes\n}\n","import type { PublicClient } from '../../clients'\nimport type { Address, Prettify } from '../../types'\nimport {\n decodeFunctionResult,\n encodeFunctionData,\n getChainContractAddress,\n toHex,\n} from '../../utils'\nimport { namehash, packetToBytes } from '../../utils/ens'\nimport { readContract, ReadContractParameters } from '../public'\n\nexport type GetEnsAddressParameters = Prettify<\n Pick<ReadContractParameters, 'blockNumber' | 'blockTag'> & {\n /** ENS name to get address. */\n name: string\n /** Address of ENS Universal Resolver Contract */\n universalResolverAddress?: Address\n }\n>\n\nexport type GetEnsAddressReturnType = Address\n\n/**\n * @description Gets address for ENS name.\n *\n * - Calls `resolve(bytes, bytes)` on ENS Universal Resolver Contract.\n * - Since ENS names prohibit certain forbidden characters (e.g. underscore) and have other validation rules, you likely want to [normalize ENS names](https://docs.ens.domains/contract-api-reference/name-processing#normalising-names) with [UTS-46 normalization](https://unicode.org/reports/tr46) before passing them to `getEnsAddress`. You can use the built-in [`normalize`](https://viem.sh/docs/ens/utilities/normalize.html) function for this.\n *\n * @example\n * import { normalize } from 'viem/ens'\n *\n * const ensAddress = await getEnsAddress(publicClient, {\n * name: normalize('wagmi-dev.eth'),\n * })\n * // '0xd2135CfB216b74109775236E36d4b433F1DF507B'\n */\nexport async function getEnsAddress(\n client: PublicClient,\n {\n blockNumber,\n blockTag,\n name,\n universalResolverAddress: universalResolverAddress_,\n }: GetEnsAddressParameters,\n): Promise<GetEnsAddressReturnType> {\n let universalResolverAddress = universalResolverAddress_\n if (!universalResolverAddress) {\n if (!client.chain)\n throw new Error(\n 'client chain not configured. universalResolverAddress is required.',\n )\n\n universalResolverAddress = getChainContractAddress({\n blockNumber,\n chain: client.chain,\n contract: 'ensUniversalResolver',\n })\n }\n\n const res = await readContract(client, {\n address: universalResolverAddress,\n abi: [\n {\n name: 'resolve',\n type: 'function',\n stateMutability: 'view',\n inputs: [\n { name: 'name', type: 'bytes' },\n { name: 'data', type: 'bytes' },\n ],\n outputs: [\n { name: '', type: 'bytes' },\n { name: 'address', type: 'address' },\n ],\n },\n ],\n functionName: 'resolve',\n args: [\n toHex(packetToBytes(name)),\n encodeFunctionData({\n abi: [\n {\n name: 'addr',\n type: 'function',\n stateMutability: 'view',\n inputs: [{ name: 'name', type: 'bytes32' }],\n outputs: [],\n },\n ],\n functionName: 'addr',\n args: [namehash(name)],\n }),\n ],\n blockNumber,\n blockTag,\n })\n return decodeFunctionResult({\n abi: [\n {\n name: 'addr',\n type: 'function',\n stateMutability: 'view',\n inputs: [],\n outputs: [{ name: 'name', type: 'address' }],\n },\n ],\n functionName: 'addr',\n data: res[0],\n })\n}\n","import type { PublicClient } from '../../clients'\nimport { panicReasons } from '../../constants'\nimport {\n ContractFunctionExecutionError,\n ContractFunctionRevertedError,\n} from '../../errors'\nimport type { Address, Prettify } from '../../types'\nimport { getChainContractAddress, toHex } from '../../utils'\nimport { packetToBytes } from '../../utils/ens'\nimport { readContract, ReadContractParameters } from '../public'\n\nexport type GetEnsNameParameters = Prettify<\n Pick<ReadContractParameters, 'blockNumber' | 'blockTag'> & {\n /** Address to get ENS name for. */\n address: Address\n /** Address of ENS Universal Resolver Contract. */\n universalResolverAddress?: Address\n }\n>\n\nexport type GetEnsNameReturnType = string | null\n\n/**\n * @description Gets primary name for specified address.\n *\n * - Calls `reverse(bytes)` on ENS Universal Resolver Contract.\n *\n * @example\n * const ensName = await getEnsName(publicClient, {\n * address: '0xd2135CfB216b74109775236E36d4b433F1DF507B',\n * })\n * // 'wagmi-dev.eth'\n */\nexport async function getEnsName(\n client: PublicClient,\n {\n address,\n blockNumber,\n blockTag,\n universalResolverAddress: universalResolverAddress_,\n }: GetEnsNameParameters,\n): Promise<GetEnsNameReturnType> {\n let universalResolverAddress = universalResolverAddress_\n if (!universalResolverAddress) {\n if (!client.chain)\n throw new Error(\n 'client chain not configured. universalResolverAddress is required.',\n )\n\n universalResolverAddress = getChainContractAddress({\n blockNumber,\n chain: client.chain,\n contract: 'ensUniversalResolver',\n })\n }\n\n const reverseNode = `${address.toLowerCase().substring(2)}.addr.reverse`\n try {\n const res = await readContract(client, {\n address: universalResolverAddress,\n abi: [\n {\n name: 'reverse',\n type: 'function',\n stateMutability: 'view',\n inputs: [{ type: 'bytes', name: 'reverseName' }],\n outputs: [\n { type: 'string', name: 'resolvedName' },\n { type: 'address', name: 'resolvedAddress' },\n { type: 'address', name: 'reverseResolver' },\n { type: 'address', name: 'resolver' },\n ],\n },\n ],\n functionName: 'reverse',\n args: [toHex(packetToBytes(reverseNode))],\n blockNumber,\n blockTag,\n })\n return res[0]\n } catch (error) {\n if (\n error instanceof ContractFunctionExecutionError &&\n (error.cause as ContractFunctionRevertedError).reason === panicReasons[50]\n )\n // No primary name set for address.\n return null\n throw error\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAYO,SAAS,UAAU,OAAe;AACvC,MAAI,SAAS,IAAI,WAAW,EAAE,EAAE,KAAK,CAAC;AACtC,MAAI,CAAC;AAAO,WAAO,WAAW,MAAM;AACpC,SAAO,UAAU,cAAc,KAAK,CAAC;AACvC;;;ACDO,SAAS,SAAS,MAAc;AACrC,MAAI,SAAS,IAAI,WAAW,EAAE,EAAE,KAAK,CAAC;AACtC,MAAI,CAAC;AAAM,WAAO,WAAW,MAAM;AAEnC,QAAM,SAAS,KAAK,MAAM,GAAG;AAE7B,WAAS,IAAI,OAAO,SAAS,GAAG,KAAK,GAAG,KAAK,GAAG;AAC9C,UAAM,SAAS,UAAU,cAAc,OAAO,CAAC,CAAC,GAAG,OAAO;AAC1D,aAAS,UAAU,OAAO,CAAC,QAAQ,MAAM,CAAC,GAAG,OAAO;AAAA,EACtD;AAEA,SAAO,WAAW,MAAM;AAC1B;;;ACpBO,SAAS,cAAc,QAA2B;AACvD,WAAS,OAAOA,QAAe;AAC7B,QAAIA,WAAU,OAAOA,WAAU;AAAM,aAAO;AAC5C,WAAO,QAAQA,OAAM,QAAQ,aAAa,EAAE,CAAC,EAAE,SAAS;AAAA,EAC1D;AAEA,QAAM,QAAQ,IAAI,WAAW,OAAO,MAAM,CAAC;AAE3C,QAAM,QAAQ,OAAO,QAAQ,aAAa,EAAE;AAC5C,MAAI,CAAC,MAAM;AAAQ,WAAO;AAE1B,MAAI,SAAS;AACb,QAAM,OAAO,MAAM,MAAM,GAAG;AAC5B,WAAS,IAAI,GAAG,IAAI,KAAK,QAAQ,KAAK;AACpC,UAAM,UAAU,QAAQ,KAAK,CAAC,CAAC;AAC/B,UAAM,MAAM,IAAI,QAAQ;AACxB,UAAM,IAAI,SAAS,SAAS,CAAC;AAC7B,cAAU,QAAQ,SAAS;AAAA,EAC7B;AAEA,SAAO;AACT;;;ACQA,eAAsB,cACpB,QACA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA,0BAA0B;AAC5B,GACkC;AAClC,MAAI,2BAA2B;AAC/B,MAAI,CAAC,0BAA0B;AAC7B,QAAI,CAAC,OAAO;AACV,YAAM,IAAI;AAAA,QACR;AAAA,MACF;AAEF,+BAA2B,wBAAwB;AAAA,MACjD;AAAA,MACA,OAAO,OAAO;AAAA,MACd,UAAU;AAAA,IACZ,CAAC;AAAA,EACH;AAEA,QAAM,MAAM,MAAM,aAAa,QAAQ;AAAA,IACrC,SAAS;AAAA,IACT,KAAK;AAAA,MACH;AAAA,QACE,MAAM;AAAA,QACN,MAAM;AAAA,QACN,iBAAiB;AAAA,QACjB,QAAQ;AAAA,UACN,EAAE,MAAM,QAAQ,MAAM,QAAQ;AAAA,UAC9B,EAAE,MAAM,QAAQ,MAAM,QAAQ;AAAA,QAChC;AAAA,QACA,SAAS;AAAA,UACP,EAAE,MAAM,IAAI,MAAM,QAAQ;AAAA,UAC1B,EAAE,MAAM,WAAW,MAAM,UAAU;AAAA,QACrC;AAAA,MACF;AAAA,IACF;AAAA,IACA,cAAc;AAAA,IACd,MAAM;AAAA,MACJ,MAAM,cAAc,IAAI,CAAC;AAAA,MACzB,mBAAmB;AAAA,QACjB,KAAK;AAAA,UACH;AAAA,YACE,MAAM;AAAA,YACN,MAAM;AAAA,YACN,iBAAiB;AAAA,YACjB,QAAQ,CAAC,EAAE,MAAM,QAAQ,MAAM,UAAU,CAAC;AAAA,YAC1C,SAAS,CAAC;AAAA,UACZ;AAAA,QACF;AAAA,QACA,cAAc;AAAA,QACd,MAAM,CAAC,SAAS,IAAI,CAAC;AAAA,MACvB,CAAC;AAAA,IACH;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC;AACD,SAAO,qBAAqB;AAAA,IAC1B,KAAK;AAAA,MACH;AAAA,QACE,MAAM;AAAA,QACN,MAAM;AAAA,QACN,iBAAiB;AAAA,QACjB,QAAQ,CAAC;AAAA,QACT,SAAS,CAAC,EAAE,MAAM,QAAQ,MAAM,UAAU,CAAC;AAAA,MAC7C;AAAA,IACF;AAAA,IACA,cAAc;AAAA,IACd,MAAM,IAAI,CAAC;AAAA,EACb,CAAC;AACH;;;AC5EA,eAAsB,WACpB,QACA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA,0BAA0B;AAC5B,GAC+B;AAC/B,MAAI,2BAA2B;AAC/B,MAAI,CAAC,0BAA0B;AAC7B,QAAI,CAAC,OAAO;AACV,YAAM,IAAI;AAAA,QACR;AAAA,MACF;AAEF,+BAA2B,wBAAwB;AAAA,MACjD;AAAA,MACA,OAAO,OAAO;AAAA,MACd,UAAU;AAAA,IACZ,CAAC;AAAA,EACH;AAEA,QAAM,cAAc,GAAG,QAAQ,YAAY,EAAE,UAAU,CAAC;AACxD,MAAI;AACF,UAAM,MAAM,MAAM,aAAa,QAAQ;AAAA,MACrC,SAAS;AAAA,MACT,KAAK;AAAA,QACH;AAAA,UACE,MAAM;AAAA,UACN,MAAM;AAAA,UACN,iBAAiB;AAAA,UACjB,QAAQ,CAAC,EAAE,MAAM,SAAS,MAAM,cAAc,CAAC;AAAA,UAC/C,SAAS;AAAA,YACP,EAAE,MAAM,UAAU,MAAM,eAAe;AAAA,YACvC,EAAE,MAAM,WAAW,MAAM,kBAAkB;AAAA,YAC3C,EAAE,MAAM,WAAW,MAAM,kBAAkB;AAAA,YAC3C,EAAE,MAAM,WAAW,MAAM,WAAW;AAAA,UACtC;AAAA,QACF;AAAA,MACF;AAAA,MACA,cAAc;AAAA,MACd,MAAM,CAAC,MAAM,cAAc,WAAW,CAAC,CAAC;AAAA,MACxC;AAAA,MACA;AAAA,IACF,CAAC;AACD,WAAO,IAAI,CAAC;AAAA,EACd,SAAS,OAAP;AACA,QACE,iBAAiB,kCAChB,MAAM,MAAwC,WAAW,aAAa,EAAE;AAGzE,aAAO;AACT,UAAM;AAAA,EACR;AACF;","names":["value"]}
@@ -1,4 +1,4 @@
1
- export { m as CreateContractEventFilterParameters, n as CreateContractEventFilterReturnType, V as DeployContractParameters, X as DeployContractReturnType, o as EstimateContractGasParameters, p as EstimateContractGasReturnType, G as GetBytecodeParameters, q as GetBytecodeReturnType, r as GetStorageAtParameters, s as GetStorageAtReturnType, M as MulticallParameters, t as MulticallReturnType, O as OnLogsFn, u as OnLogsParameter, R as ReadContractParameters, v as ReadContractReturnType, w as SimulateContractParameters, x as SimulateContractReturnType, y as WatchContractEventParameters, Y as WriteContractParameters, Z as WriteContractReturnType, z as createContractEventFilter, _ as deployContract, D as estimateContractGas, H as getBytecode, I as getStorageAt, K as multicall, N as readContract, Q as simulateContract, U as watchContractEvent, $ as writeContract } from './createPublicClient-0021fc35.js';
1
+ export { m as CreateContractEventFilterParameters, n as CreateContractEventFilterReturnType, V as DeployContractParameters, X as DeployContractReturnType, o as EstimateContractGasParameters, p as EstimateContractGasReturnType, G as GetBytecodeParameters, q as GetBytecodeReturnType, r as GetStorageAtParameters, s as GetStorageAtReturnType, M as MulticallParameters, t as MulticallReturnType, O as OnLogsFn, u as OnLogsParameter, R as ReadContractParameters, v as ReadContractReturnType, w as SimulateContractParameters, x as SimulateContractReturnType, y as WatchContractEventParameters, Y as WriteContractParameters, Z as WriteContractReturnType, z as createContractEventFilter, _ as deployContract, D as estimateContractGas, H as getBytecode, I as getStorageAt, K as multicall, N as readContract, Q as simulateContract, U as watchContractEvent, $ as writeContract } from './createPublicClient-75540130.js';
2
2
  export { D as DecodeAbiParametersReturnType, E as EncodeAbiParametersReturnType, G as GetAbiItemParameters, d as decodeAbiParameters, e as encodeAbiParameters, g as getAbiItem } from './getAbiItem-3e809ff9.js';
3
3
  export { D as DecodeErrorResultParameters, a as DecodeErrorResultReturnType, b as DecodeEventLogParameters, c as DecodeEventLogReturnType, d as DecodeFunctionDataParameters, e as DecodeFunctionResultParameters, f as DecodeFunctionResultReturnType, E as EncodeDeployDataParameters, g as EncodeErrorResultParameters, h as EncodeEventTopicsParameters, i as EncodeFunctionDataParameters, j as EncodeFunctionResultParameters, k as decodeErrorResult, l as decodeEventLog, m as decodeFunctionData, n as decodeFunctionResult, o as encodeDeployData, p as encodeErrorResult, q as encodeEventTopics, r as encodeFunctionData, s as encodeFunctionResult } from './encodeFunctionResult-1f324375.js';
4
4
  export { a as formatAbiItem, f as formatAbiItemWithArgs } from './formatAbiItem-15e8817d.js';
package/dist/contract.js CHANGED
@@ -23,7 +23,7 @@
23
23
 
24
24
 
25
25
 
26
- var _chunkIUZRZEEUjs = require('./chunk-IUZRZEEU.js');
26
+ var _chunkA5BRAPQQjs = require('./chunk-A5BRAPQQ.js');
27
27
 
28
28
 
29
29
 
@@ -49,5 +49,5 @@ var _chunkIUZRZEEUjs = require('./chunk-IUZRZEEU.js');
49
49
 
50
50
 
51
51
 
52
- exports.createContractEventFilter = _chunkIUZRZEEUjs.createContractEventFilter; exports.decodeAbiParameters = _chunkIUZRZEEUjs.decodeAbiParameters; exports.decodeErrorResult = _chunkIUZRZEEUjs.decodeErrorResult; exports.decodeEventLog = _chunkIUZRZEEUjs.decodeEventLog; exports.decodeFunctionData = _chunkIUZRZEEUjs.decodeFunctionData; exports.decodeFunctionResult = _chunkIUZRZEEUjs.decodeFunctionResult; exports.deployContract = _chunkIUZRZEEUjs.deployContract; exports.encodeAbiParameters = _chunkIUZRZEEUjs.encodeAbiParameters; exports.encodeDeployData = _chunkIUZRZEEUjs.encodeDeployData; exports.encodeErrorResult = _chunkIUZRZEEUjs.encodeErrorResult; exports.encodeEventTopics = _chunkIUZRZEEUjs.encodeEventTopics; exports.encodeFunctionData = _chunkIUZRZEEUjs.encodeFunctionData; exports.encodeFunctionResult = _chunkIUZRZEEUjs.encodeFunctionResult; exports.estimateContractGas = _chunkIUZRZEEUjs.estimateContractGas; exports.formatAbiItem = _chunkIUZRZEEUjs.formatAbiItem; exports.formatAbiItemWithArgs = _chunkIUZRZEEUjs.formatAbiItemWithArgs; exports.getAbiItem = _chunkIUZRZEEUjs.getAbiItem; exports.getBytecode = _chunkIUZRZEEUjs.getBytecode; exports.getStorageAt = _chunkIUZRZEEUjs.getStorageAt; exports.multicall = _chunkIUZRZEEUjs.multicall; exports.readContract = _chunkIUZRZEEUjs.readContract; exports.simulateContract = _chunkIUZRZEEUjs.simulateContract; exports.watchContractEvent = _chunkIUZRZEEUjs.watchContractEvent; exports.writeContract = _chunkIUZRZEEUjs.writeContract;
52
+ exports.createContractEventFilter = _chunkA5BRAPQQjs.createContractEventFilter; exports.decodeAbiParameters = _chunkA5BRAPQQjs.decodeAbiParameters; exports.decodeErrorResult = _chunkA5BRAPQQjs.decodeErrorResult; exports.decodeEventLog = _chunkA5BRAPQQjs.decodeEventLog; exports.decodeFunctionData = _chunkA5BRAPQQjs.decodeFunctionData; exports.decodeFunctionResult = _chunkA5BRAPQQjs.decodeFunctionResult; exports.deployContract = _chunkA5BRAPQQjs.deployContract; exports.encodeAbiParameters = _chunkA5BRAPQQjs.encodeAbiParameters; exports.encodeDeployData = _chunkA5BRAPQQjs.encodeDeployData; exports.encodeErrorResult = _chunkA5BRAPQQjs.encodeErrorResult; exports.encodeEventTopics = _chunkA5BRAPQQjs.encodeEventTopics; exports.encodeFunctionData = _chunkA5BRAPQQjs.encodeFunctionData; exports.encodeFunctionResult = _chunkA5BRAPQQjs.encodeFunctionResult; exports.estimateContractGas = _chunkA5BRAPQQjs.estimateContractGas; exports.formatAbiItem = _chunkA5BRAPQQjs.formatAbiItem; exports.formatAbiItemWithArgs = _chunkA5BRAPQQjs.formatAbiItemWithArgs; exports.getAbiItem = _chunkA5BRAPQQjs.getAbiItem; exports.getBytecode = _chunkA5BRAPQQjs.getBytecode; exports.getStorageAt = _chunkA5BRAPQQjs.getStorageAt; exports.multicall = _chunkA5BRAPQQjs.multicall; exports.readContract = _chunkA5BRAPQQjs.readContract; exports.simulateContract = _chunkA5BRAPQQjs.simulateContract; exports.watchContractEvent = _chunkA5BRAPQQjs.watchContractEvent; exports.writeContract = _chunkA5BRAPQQjs.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-74W4SZ66.mjs";
26
+ } from "./chunk-ISLCPEI2.mjs";
27
27
  export {
28
28
  createContractEventFilter,
29
29
  decodeAbiParameters,
@@ -607,7 +607,7 @@ type SendTransactionParameters<TChain extends Chain = Chain> = FormattedTransact
607
607
  chain: TChain;
608
608
  });
609
609
  type SendTransactionReturnType = Hash;
610
- declare function sendTransaction<TChain extends Chain>(client: WalletClient, args: SendTransactionParameters<TChain>): Promise<SendTransactionReturnType>;
610
+ declare function sendTransaction<TChain extends Chain>(client: WalletClient<any, any>, args: SendTransactionParameters<TChain>): Promise<SendTransactionReturnType>;
611
611
 
612
612
  type SignMessageParameters = {
613
613
  account: Account;
@@ -811,7 +811,7 @@ type WalletClient<TTransport extends Transport = Transport, TChain extends Chain
811
811
  /**
812
812
  * @description Creates a wallet client with a given transport.
813
813
  */
814
- declare function createWalletClient<TTransport extends Transport, TChain extends Chain>({ transport, key, name, pollingInterval, }: WalletClientConfig<TTransport, TChain>): WalletClient<TTransport, TChain, true>;
814
+ declare function createWalletClient<TTransport extends Transport, TChain extends Chain>({ chain, transport, key, name, pollingInterval, }: WalletClientConfig<TTransport, TChain>): WalletClient<TTransport, TChain, true>;
815
815
 
816
816
  type WalletActions<TChain extends Chain = Chain> = {
817
817
  addChain: (args: AddChainParameters) => Promise<void>;
package/dist/ens.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { a0 as GetEnsAddressParameters, a1 as GetEnsNameParameters, a2 as getEnsAddress, a3 as getEnsName } from './createPublicClient-0021fc35.js';
1
+ export { a0 as GetEnsAddressParameters, a1 as GetEnsNameParameters, a2 as getEnsAddress, a3 as getEnsName } from './createPublicClient-75540130.js';
2
2
  export { l as labelhash, n as namehash } from './namehash-afff0feb.js';
3
3
  import './eip1193-4f4e240c.js';
4
4
  import 'abitype';
package/dist/ens.js CHANGED
@@ -3,8 +3,8 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkVUA7GJVUjs = require('./chunk-VUA7GJVU.js');
7
- require('./chunk-IUZRZEEU.js');
6
+ var _chunkGZ67J32Tjs = require('./chunk-GZ67J32T.js');
7
+ require('./chunk-A5BRAPQQ.js');
8
8
 
9
9
  // src/utils/ens/normalize.ts
10
10
  var _idnauts46hx = require('idna-uts46-hx');
@@ -17,5 +17,5 @@ function normalize(name) {
17
17
 
18
18
 
19
19
 
20
- exports.getEnsAddress = _chunkVUA7GJVUjs.getEnsAddress; exports.getEnsName = _chunkVUA7GJVUjs.getEnsName; exports.labelhash = _chunkVUA7GJVUjs.labelhash; exports.namehash = _chunkVUA7GJVUjs.namehash; exports.normalize = normalize;
20
+ exports.getEnsAddress = _chunkGZ67J32Tjs.getEnsAddress; exports.getEnsName = _chunkGZ67J32Tjs.getEnsName; exports.labelhash = _chunkGZ67J32Tjs.labelhash; exports.namehash = _chunkGZ67J32Tjs.namehash; exports.normalize = normalize;
21
21
  //# sourceMappingURL=ens.js.map
package/dist/ens.mjs CHANGED
@@ -3,8 +3,8 @@ import {
3
3
  getEnsName,
4
4
  labelhash,
5
5
  namehash
6
- } from "./chunk-KE2G7J6O.mjs";
7
- import "./chunk-74W4SZ66.mjs";
6
+ } from "./chunk-PLALZ2GD.mjs";
7
+ import "./chunk-ISLCPEI2.mjs";
8
8
 
9
9
  // src/utils/ens/normalize.ts
10
10
  import { toUnicode } from "idna-uts46-hx";
package/dist/ethers.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as Account } from './createPublicClient-0021fc35.js';
1
+ import { A as Account } from './createPublicClient-75540130.js';
2
2
  import './eip1193-4f4e240c.js';
3
3
  import 'abitype';
4
4
  import './chain-1b53ef88.js';
package/dist/ethers.js CHANGED
@@ -1,13 +1,13 @@
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
3
 
4
- var _chunkIUZRZEEUjs = require('./chunk-IUZRZEEU.js');
4
+ var _chunkA5BRAPQQjs = require('./chunk-A5BRAPQQ.js');
5
5
 
6
6
  // src/adapters/ethers.ts
7
- var getAccount2 = (wallet) => _chunkIUZRZEEUjs.getAccount.call(void 0, {
7
+ var getAccount2 = (wallet) => _chunkA5BRAPQQjs.getAccount.call(void 0, {
8
8
  address: wallet.address,
9
9
  async signMessage(message) {
10
- return await wallet.signMessage(_chunkIUZRZEEUjs.toBytes.call(void 0, message));
10
+ return await wallet.signMessage(_chunkA5BRAPQQjs.toBytes.call(void 0, message));
11
11
  },
12
12
  async signTransaction(txn) {
13
13
  return await wallet.signTransaction({
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/adapters/ethers.ts"],"names":["getAccount"],"mappings":";;;;;;AAyCO,IAAMA,cAAa,CAAC,WACzB,WAAY;AAAA,EACV,SAAS,OAAO;AAAA,EAChB,MAAM,YAAY,SAAS;AACzB,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 { Address, Hash } from '../types'\nimport { getAccount as getAccount_, 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 getAccount = (wallet: EthersWallet) =>\n getAccount_({\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":["getAccount"],"mappings":";;;;;;AAyCO,IAAMA,cAAa,CAAC,WACzB,WAAY;AAAA,EACV,SAAS,OAAO;AAAA,EAChB,MAAM,YAAY,SAAS;AACzB,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 type { Address, Hash } from '../types'\nimport { getAccount as getAccount_, 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 getAccount = (wallet: EthersWallet) =>\n getAccount_({\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"]}
package/dist/ethers.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getAccount,
3
3
  toBytes
4
- } from "./chunk-74W4SZ66.mjs";
4
+ } from "./chunk-ISLCPEI2.mjs";
5
5
 
6
6
  // src/adapters/ethers.ts
7
7
  var getAccount2 = (wallet) => getAccount({
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/adapters/ethers.ts"],"sourcesContent":["import { Address, Hash } from '../types'\nimport { getAccount as getAccount_, 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 getAccount = (wallet: EthersWallet) =>\n getAccount_({\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":";;;;;;AAyCO,IAAMA,cAAa,CAAC,WACzB,WAAY;AAAA,EACV,SAAS,OAAO;AAAA,EAChB,MAAM,YAAY,SAAS;AACzB,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":["getAccount"]}
1
+ {"version":3,"sources":["../src/adapters/ethers.ts"],"sourcesContent":["import type { Address, Hash } from '../types'\nimport { getAccount as getAccount_, 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 getAccount = (wallet: EthersWallet) =>\n getAccount_({\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":";;;;;;AAyCO,IAAMA,cAAa,CAAC,WACzB,WAAY;AAAA,EACV,SAAS,OAAO;AAAA,EAChB,MAAM,YAAY,SAAS;AACzB,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":["getAccount"]}
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import { T as TransportConfig, a as Transport, B as BaseRpcRequests } from './createClient-a28317a9.js';
2
2
  export { C as Client, b as ClientConfig, a as Transport, T as TransportConfig, c as createClient, d as createTransport } from './createClient-a28317a9.js';
3
- import { B as BaseError, H as HttpOptions, R as RpcResponse } from './parseGwei-c2fb9fa2.js';
4
- export { B as BaseError, C as CallExecutionError, a as ContractFunctionExecutionError, b as ContractFunctionRevertedError, c as ContractFunctionZeroDataError, E as EstimateGasExecutionError, d as ExecutionRevertedError, F as FeeCapTooHighError, e as FeeCapTooLowError, G as GetContractAddressOptions, o as GetCreate2AddressOptions, p as GetCreateAddressOptions, I as InsufficientFundsError, f as IntrinsicGasTooHighError, g as IntrinsicGasTooLowError, N as NonceMaxValueError, h as NonceTooHighError, i as NonceTooLowError, j as RawContractError, T as TipAboveFeeCapError, q as ToRlpReturnType, k as TransactionExecutionError, m as TransactionNotFoundError, n as TransactionReceiptNotFoundError, l as TransactionTypeNotSupportedError, U as UnknownNodeError, W as WaitForTransactionReceiptTimeoutError, r as boolToBytes, s as boolToHex, t as bytesToBigint, u as bytesToBool, v as bytesToHex, w as bytesToNumber, x as bytesToString, y as concat, z as concatBytes, A as concatHex, D as formatEther, J as formatGwei, K as formatUnits, L as fromBytes, M as fromHex, O as fromRlp, P as getAccount, Q as getAddress, S as getContractAddress, V as getContractError, X as getCreate2Address, Y as getCreateAddress, Z as getEventSelector, _ as getFunctionSelector, $ as hashMessage, a0 as hexToBigInt, a1 as hexToBool, a2 as hexToBytes, a3 as hexToNumber, a4 as hexToString, a5 as isAddress, a6 as isAddressEqual, a7 as isBytes, a8 as isHex, a9 as keccak256, aa as numberToBytes, ab as numberToHex, ac as pad, ad as padBytes, ae as padHex, af as parseEther, ag as parseGwei, ah as parseUnits, ai as recoverAddress, aj as recoverMessageAddress, ak as size, al as slice, am as sliceBytes, an as sliceHex, ao as stringToBytes, ap as stringToHex, aq as stringify, ar as toBytes, as as toHex, at as toRlp, au as trim, av as verifyMessage } from './parseGwei-c2fb9fa2.js';
3
+ import { B as BaseError, H as HttpOptions, R as RpcResponse } from './parseGwei-6fff7cbe.js';
4
+ export { B as BaseError, C as CallExecutionError, a as ContractFunctionExecutionError, b as ContractFunctionRevertedError, c as ContractFunctionZeroDataError, E as EstimateGasExecutionError, d as ExecutionRevertedError, F as FeeCapTooHighError, e as FeeCapTooLowError, G as GetContractAddressOptions, o as GetCreate2AddressOptions, p as GetCreateAddressOptions, I as InsufficientFundsError, f as IntrinsicGasTooHighError, g as IntrinsicGasTooLowError, N as NonceMaxValueError, h as NonceTooHighError, i as NonceTooLowError, j as RawContractError, T as TipAboveFeeCapError, q as ToRlpReturnType, k as TransactionExecutionError, m as TransactionNotFoundError, n as TransactionReceiptNotFoundError, l as TransactionTypeNotSupportedError, U as UnknownNodeError, W as WaitForTransactionReceiptTimeoutError, r as boolToBytes, s as boolToHex, t as bytesToBigint, u as bytesToBool, v as bytesToHex, w as bytesToNumber, x as bytesToString, y as concat, z as concatBytes, A as concatHex, D as formatEther, J as formatGwei, K as formatUnits, L as fromBytes, M as fromHex, O as fromRlp, P as getAccount, Q as getAddress, S as getContractAddress, V as getContractError, X as getCreate2Address, Y as getCreateAddress, Z as getEventSelector, _ as getFunctionSelector, $ as hashMessage, a0 as hexToBigInt, a1 as hexToBool, a2 as hexToBytes, a3 as hexToNumber, a4 as hexToString, a5 as isAddress, a6 as isAddressEqual, a7 as isBytes, a8 as isHex, a9 as keccak256, aa as numberToBytes, ab as numberToHex, ac as pad, ad as padBytes, ae as padHex, af as parseEther, ag as parseGwei, ah as parseUnits, ai as recoverAddress, aj as recoverMessageAddress, ak as size, al as slice, am as sliceBytes, an as sliceHex, ao as stringToBytes, ap as stringToHex, aq as stringify, ar as toBytes, as as toHex, at as toRlp, au as trim, av as verifyMessage } from './parseGwei-6fff7cbe.js';
5
5
  import WebSocket from 'isomorphic-ws';
6
6
  import { H as Hex, A as AbiItem, a as Hash, C as Chain, B as ByteArray } from './chain-1b53ef88.js';
7
7
  export { A as AbiItem, b as AccessList, c as Block, d as BlockIdentifier, e as BlockNumber, f as BlockTag, B as ByteArray, C as Chain, g as ContractConfig, E as ExtractArgsFromAbi, h as ExtractConstructorArgsFromAbi, i as ExtractErrorArgsFromAbi, j as ExtractErrorNameFromAbi, k as ExtractEventArgsFromAbi, l as ExtractEventArgsFromTopics, m as ExtractEventNameFromAbi, W as ExtractFormatter, n as ExtractFunctionNameFromAbi, o as ExtractNameFromAbi, p as ExtractResultFromAbi, F as FeeHistory, q as FeeValues, r as FeeValuesEIP1559, s as FeeValuesLegacy, X as Formatted, Y as FormattedTransaction, a as Hash, H as Hex, L as Log, R as RpcBlock, t as RpcBlockIdentifier, u as RpcBlockNumber, v as RpcFeeHistory, w as RpcFeeValues, x as RpcLog, y as RpcTransaction, z as RpcTransactionReceipt, D as RpcTransactionRequest, G as RpcUncle, O as Transaction, P as TransactionBase, Q as TransactionEIP1559, S as TransactionEIP2930, Z as TransactionFormatter, U as TransactionLegacy, T as TransactionReceipt, I as TransactionRequest, J as TransactionRequestBase, K as TransactionRequestEIP1559, M as TransactionRequestEIP2930, N as TransactionRequestLegacy, V as Uncle, _ as defineTransaction, $ as formatTransaction, a0 as transactionType } from './chain-1b53ef88.js';
8
- export { A as Account, B as BlockFormatter, F as FormattedBlock, e as FormattedTransactionReceipt, f as FormattedTransactionRequest, J as JsonRpcAccount, L as LocalAccount, P as PublicClient, a as PublicClientConfig, T as TransactionReceiptFormatter, g as TransactionRequestFormatter, W as WalletClient, b as WalletClientConfig, c as createPublicClient, d as createWalletClient, h as defineBlock, i as defineTransactionReceipt, j as defineTransactionRequest, k as formatBlock, l as formatTransactionRequest } from './createPublicClient-0021fc35.js';
9
- export { T as TestClient, a as TestClientConfig, c as createTestClient } from './test-a203fdee.js';
8
+ export { A as Account, B as BlockFormatter, F as FormattedBlock, e as FormattedTransactionReceipt, f as FormattedTransactionRequest, J as JsonRpcAccount, L as LocalAccount, P as PublicClient, a as PublicClientConfig, T as TransactionReceiptFormatter, g as TransactionRequestFormatter, W as WalletClient, b as WalletClientConfig, c as createPublicClient, d as createWalletClient, h as defineBlock, i as defineTransactionReceipt, j as defineTransactionRequest, k as formatBlock, l as formatTransactionRequest } from './createPublicClient-75540130.js';
9
+ export { T as TestClient, a as TestClientConfig, c as createTestClient } from './test-2bd23d7e.js';
10
10
  import { AbiParameter } from 'abitype';
11
11
  export { Address, ParseAbi, ParseAbiItem, ParseAbiParameter, ParseAbiParameters, parseAbi, parseAbiItem, parseAbiParameter, parseAbiParameters } from 'abitype';
12
12
  export { l as labelhash, n as namehash } from './namehash-afff0feb.js';
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkVUA7GJVUjs = require('./chunk-VUA7GJVU.js');
6
+ var _chunkGZ67J32Tjs = require('./chunk-GZ67J32T.js');
7
7
 
8
8
 
9
9
 
@@ -245,7 +245,7 @@ var _chunkVUA7GJVUjs = require('./chunk-VUA7GJVU.js');
245
245
 
246
246
 
247
247
 
248
- var _chunkIUZRZEEUjs = require('./chunk-IUZRZEEU.js');
248
+ var _chunkA5BRAPQQjs = require('./chunk-A5BRAPQQ.js');
249
249
 
250
250
  // src/clients/transports/createTransport.ts
251
251
  function createTransport({
@@ -259,7 +259,7 @@ function createTransport({
259
259
  }, value) {
260
260
  return {
261
261
  config: { key, name, request, retryCount, retryDelay, timeout, type },
262
- request: _chunkIUZRZEEUjs.buildRequest.call(void 0, request, { retryCount, retryDelay }),
262
+ request: _chunkA5BRAPQQjs.buildRequest.call(void 0, request, { retryCount, retryDelay }),
263
263
  value
264
264
  };
265
265
  }
@@ -293,7 +293,7 @@ function fallback(transports, config = {}) {
293
293
  params
294
294
  });
295
295
  } catch (err) {
296
- if (_chunkIUZRZEEUjs.isDeterministicError.call(void 0, err))
296
+ if (_chunkA5BRAPQQjs.isDeterministicError.call(void 0, err))
297
297
  throw err;
298
298
  if (i === transports.length - 1)
299
299
  throw err;
@@ -327,13 +327,13 @@ function http(url, config = {}) {
327
327
  const retryCount = _nullishCoalesce(config.retryCount, () => ( defaultRetryCount));
328
328
  const url_ = url || _optionalChain([chain, 'optionalAccess', _ => _.rpcUrls, 'access', _2 => _2.default, 'access', _3 => _3.http, 'access', _4 => _4[0]]);
329
329
  if (!url_)
330
- throw new (0, _chunkIUZRZEEUjs.UrlRequiredError)();
330
+ throw new (0, _chunkA5BRAPQQjs.UrlRequiredError)();
331
331
  return createTransport(
332
332
  {
333
333
  key,
334
334
  name,
335
335
  async request({ method, params }) {
336
- const { result } = await _chunkIUZRZEEUjs.rpc.http(url_, {
336
+ const { result } = await _chunkA5BRAPQQjs.rpc.http(url_, {
337
337
  body: {
338
338
  method,
339
339
  params
@@ -367,14 +367,14 @@ function webSocket(url, config = {}) {
367
367
  const retryCount = _nullishCoalesce(config.retryCount, () => ( defaultRetryCount));
368
368
  const url_ = url || _optionalChain([chain, 'optionalAccess', _5 => _5.rpcUrls, 'access', _6 => _6.default, 'access', _7 => _7.webSocket, 'optionalAccess', _8 => _8[0]]);
369
369
  if (!url_)
370
- throw new (0, _chunkIUZRZEEUjs.UrlRequiredError)();
370
+ throw new (0, _chunkA5BRAPQQjs.UrlRequiredError)();
371
371
  return createTransport(
372
372
  {
373
373
  key,
374
374
  name,
375
375
  async request({ method, params }) {
376
- const socket = await _chunkIUZRZEEUjs.getSocket.call(void 0, url_);
377
- const { result } = await _chunkIUZRZEEUjs.rpc.webSocketAsync(socket, {
376
+ const socket = await _chunkA5BRAPQQjs.getSocket.call(void 0, url_);
377
+ const { result } = await _chunkA5BRAPQQjs.rpc.webSocketAsync(socket, {
378
378
  body: { method, params },
379
379
  timeout
380
380
  });
@@ -387,12 +387,12 @@ function webSocket(url, config = {}) {
387
387
  },
388
388
  {
389
389
  getSocket() {
390
- return _chunkIUZRZEEUjs.getSocket.call(void 0, url_);
390
+ return _chunkA5BRAPQQjs.getSocket.call(void 0, url_);
391
391
  },
392
392
  async subscribe({ params, onData, onError }) {
393
- const socket = await _chunkIUZRZEEUjs.getSocket.call(void 0, url_);
393
+ const socket = await _chunkA5BRAPQQjs.getSocket.call(void 0, url_);
394
394
  const { result: subscriptionId } = await new Promise(
395
- (resolve, reject) => _chunkIUZRZEEUjs.rpc.webSocket(socket, {
395
+ (resolve, reject) => _chunkA5BRAPQQjs.rpc.webSocket(socket, {
396
396
  body: {
397
397
  method: "eth_subscribe",
398
398
  params
@@ -414,7 +414,7 @@ function webSocket(url, config = {}) {
414
414
  subscriptionId,
415
415
  async unsubscribe() {
416
416
  return new Promise(
417
- (resolve, reject) => _chunkIUZRZEEUjs.rpc.webSocket(socket, {
417
+ (resolve, reject) => _chunkA5BRAPQQjs.rpc.webSocket(socket, {
418
418
  body: {
419
419
  method: "eth_unsubscribe",
420
420
  params: [subscriptionId]
@@ -470,90 +470,90 @@ function createClient({
470
470
 
471
471
  // src/clients/decorators/public.ts
472
472
  var publicActions = (client) => ({
473
- call: (args) => _chunkIUZRZEEUjs.call.call(void 0, client, args),
474
- createBlockFilter: () => _chunkIUZRZEEUjs.createBlockFilter.call(void 0, client),
475
- createContractEventFilter: (args) => _chunkIUZRZEEUjs.createContractEventFilter.call(void 0, client, args),
476
- createEventFilter: (args) => _chunkIUZRZEEUjs.createEventFilter.call(void 0, client, args),
477
- createPendingTransactionFilter: () => _chunkIUZRZEEUjs.createPendingTransactionFilter.call(void 0, client),
478
- estimateContractGas: (args) => _chunkIUZRZEEUjs.estimateContractGas.call(void 0, client, args),
479
- estimateGas: (args) => _chunkIUZRZEEUjs.estimateGas.call(void 0, client, args),
480
- getBalance: (args) => _chunkIUZRZEEUjs.getBalance.call(void 0, client, args),
481
- getBlock: (args) => _chunkIUZRZEEUjs.getBlock.call(void 0, client, args),
482
- getBlockNumber: (args) => _chunkIUZRZEEUjs.getBlockNumber.call(void 0, client, args),
483
- getBlockTransactionCount: (args) => _chunkIUZRZEEUjs.getBlockTransactionCount.call(void 0, client, args),
484
- getBytecode: (args) => _chunkIUZRZEEUjs.getBytecode.call(void 0, client, args),
485
- getChainId: () => _chunkIUZRZEEUjs.getChainId.call(void 0, client),
486
- getEnsAddress: (args) => _chunkVUA7GJVUjs.getEnsAddress.call(void 0, client, args),
487
- getEnsName: (args) => _chunkVUA7GJVUjs.getEnsName.call(void 0, client, args),
488
- getFeeHistory: (args) => _chunkIUZRZEEUjs.getFeeHistory.call(void 0, client, args),
489
- getFilterChanges: (args) => _chunkIUZRZEEUjs.getFilterChanges.call(void 0, client, args),
490
- getFilterLogs: (args) => _chunkIUZRZEEUjs.getFilterLogs.call(void 0, client, args),
491
- getGasPrice: () => _chunkIUZRZEEUjs.getGasPrice.call(void 0, client),
492
- getLogs: (args) => _chunkIUZRZEEUjs.getLogs.call(void 0, client, args),
493
- getStorageAt: (args) => _chunkIUZRZEEUjs.getStorageAt.call(void 0, client, args),
494
- getTransaction: (args) => _chunkIUZRZEEUjs.getTransaction.call(void 0, client, args),
495
- getTransactionConfirmations: (args) => _chunkIUZRZEEUjs.getTransactionConfirmations.call(void 0, client, args),
496
- getTransactionCount: (args) => _chunkIUZRZEEUjs.getTransactionCount.call(void 0, client, args),
497
- getTransactionReceipt: (args) => _chunkIUZRZEEUjs.getTransactionReceipt.call(void 0, client, args),
498
- multicall: (args) => _chunkIUZRZEEUjs.multicall.call(void 0, client, args),
499
- readContract: (args) => _chunkIUZRZEEUjs.readContract.call(void 0, client, args),
500
- simulateContract: (args) => _chunkIUZRZEEUjs.simulateContract.call(void 0, client, args),
501
- uninstallFilter: (args) => _chunkIUZRZEEUjs.uninstallFilter.call(void 0, client, args),
502
- waitForTransactionReceipt: (args) => _chunkIUZRZEEUjs.waitForTransactionReceipt.call(void 0, client, args),
503
- watchBlocks: (args) => _chunkIUZRZEEUjs.watchBlocks.call(void 0, client, args),
504
- watchBlockNumber: (args) => _chunkIUZRZEEUjs.watchBlockNumber.call(void 0, client, args),
505
- watchContractEvent: (args) => _chunkIUZRZEEUjs.watchContractEvent.call(void 0, client, args),
506
- watchEvent: (args) => _chunkIUZRZEEUjs.watchEvent.call(void 0, client, args),
507
- watchPendingTransactions: (args) => _chunkIUZRZEEUjs.watchPendingTransactions.call(void 0, client, args)
473
+ call: (args) => _chunkA5BRAPQQjs.call.call(void 0, client, args),
474
+ createBlockFilter: () => _chunkA5BRAPQQjs.createBlockFilter.call(void 0, client),
475
+ createContractEventFilter: (args) => _chunkA5BRAPQQjs.createContractEventFilter.call(void 0, client, args),
476
+ createEventFilter: (args) => _chunkA5BRAPQQjs.createEventFilter.call(void 0, client, args),
477
+ createPendingTransactionFilter: () => _chunkA5BRAPQQjs.createPendingTransactionFilter.call(void 0, client),
478
+ estimateContractGas: (args) => _chunkA5BRAPQQjs.estimateContractGas.call(void 0, client, args),
479
+ estimateGas: (args) => _chunkA5BRAPQQjs.estimateGas.call(void 0, client, args),
480
+ getBalance: (args) => _chunkA5BRAPQQjs.getBalance.call(void 0, client, args),
481
+ getBlock: (args) => _chunkA5BRAPQQjs.getBlock.call(void 0, client, args),
482
+ getBlockNumber: (args) => _chunkA5BRAPQQjs.getBlockNumber.call(void 0, client, args),
483
+ getBlockTransactionCount: (args) => _chunkA5BRAPQQjs.getBlockTransactionCount.call(void 0, client, args),
484
+ getBytecode: (args) => _chunkA5BRAPQQjs.getBytecode.call(void 0, client, args),
485
+ getChainId: () => _chunkA5BRAPQQjs.getChainId.call(void 0, client),
486
+ getEnsAddress: (args) => _chunkGZ67J32Tjs.getEnsAddress.call(void 0, client, args),
487
+ getEnsName: (args) => _chunkGZ67J32Tjs.getEnsName.call(void 0, client, args),
488
+ getFeeHistory: (args) => _chunkA5BRAPQQjs.getFeeHistory.call(void 0, client, args),
489
+ getFilterChanges: (args) => _chunkA5BRAPQQjs.getFilterChanges.call(void 0, client, args),
490
+ getFilterLogs: (args) => _chunkA5BRAPQQjs.getFilterLogs.call(void 0, client, args),
491
+ getGasPrice: () => _chunkA5BRAPQQjs.getGasPrice.call(void 0, client),
492
+ getLogs: (args) => _chunkA5BRAPQQjs.getLogs.call(void 0, client, args),
493
+ getStorageAt: (args) => _chunkA5BRAPQQjs.getStorageAt.call(void 0, client, args),
494
+ getTransaction: (args) => _chunkA5BRAPQQjs.getTransaction.call(void 0, client, args),
495
+ getTransactionConfirmations: (args) => _chunkA5BRAPQQjs.getTransactionConfirmations.call(void 0, client, args),
496
+ getTransactionCount: (args) => _chunkA5BRAPQQjs.getTransactionCount.call(void 0, client, args),
497
+ getTransactionReceipt: (args) => _chunkA5BRAPQQjs.getTransactionReceipt.call(void 0, client, args),
498
+ multicall: (args) => _chunkA5BRAPQQjs.multicall.call(void 0, client, args),
499
+ readContract: (args) => _chunkA5BRAPQQjs.readContract.call(void 0, client, args),
500
+ simulateContract: (args) => _chunkA5BRAPQQjs.simulateContract.call(void 0, client, args),
501
+ uninstallFilter: (args) => _chunkA5BRAPQQjs.uninstallFilter.call(void 0, client, args),
502
+ waitForTransactionReceipt: (args) => _chunkA5BRAPQQjs.waitForTransactionReceipt.call(void 0, client, args),
503
+ watchBlocks: (args) => _chunkA5BRAPQQjs.watchBlocks.call(void 0, client, args),
504
+ watchBlockNumber: (args) => _chunkA5BRAPQQjs.watchBlockNumber.call(void 0, client, args),
505
+ watchContractEvent: (args) => _chunkA5BRAPQQjs.watchContractEvent.call(void 0, client, args),
506
+ watchEvent: (args) => _chunkA5BRAPQQjs.watchEvent.call(void 0, client, args),
507
+ watchPendingTransactions: (args) => _chunkA5BRAPQQjs.watchPendingTransactions.call(void 0, client, args)
508
508
  });
509
509
 
510
510
  // src/clients/decorators/test.ts
511
511
  var testActions = (client) => ({
512
- dropTransaction: (args) => _chunkIUZRZEEUjs.dropTransaction.call(void 0, client, args),
513
- getAutomine: () => _chunkIUZRZEEUjs.getAutomine.call(void 0, client),
514
- getTxpoolContent: () => _chunkIUZRZEEUjs.getTxpoolContent.call(void 0, client),
515
- getTxpoolStatus: () => _chunkIUZRZEEUjs.getTxpoolStatus.call(void 0, client),
516
- impersonateAccount: (args) => _chunkIUZRZEEUjs.impersonateAccount.call(void 0, client, args),
517
- increaseTime: (args) => _chunkIUZRZEEUjs.increaseTime.call(void 0, client, args),
518
- inspectTxpool: () => _chunkIUZRZEEUjs.inspectTxpool.call(void 0, client),
519
- mine: (args) => _chunkIUZRZEEUjs.mine.call(void 0, client, args),
520
- removeBlockTimestampInterval: () => _chunkIUZRZEEUjs.removeBlockTimestampInterval.call(void 0, client),
521
- reset: (args) => _chunkIUZRZEEUjs.reset.call(void 0, client, args),
522
- revert: (args) => _chunkIUZRZEEUjs.revert.call(void 0, client, args),
523
- sendUnsignedTransaction: (args) => _chunkIUZRZEEUjs.sendUnsignedTransaction.call(void 0, client, args),
524
- setAutomine: (args) => _chunkIUZRZEEUjs.setAutomine.call(void 0, client, args),
525
- setBalance: (args) => _chunkIUZRZEEUjs.setBalance.call(void 0, client, args),
526
- setBlockGasLimit: (args) => _chunkIUZRZEEUjs.setBlockGasLimit.call(void 0, client, args),
527
- setBlockTimestampInterval: (args) => _chunkIUZRZEEUjs.setBlockTimestampInterval.call(void 0, client, args),
528
- setCode: (args) => _chunkIUZRZEEUjs.setCode.call(void 0, client, args),
529
- setCoinbase: (args) => _chunkIUZRZEEUjs.setCoinbase.call(void 0, client, args),
530
- setIntervalMining: (args) => _chunkIUZRZEEUjs.setIntervalMining.call(void 0, client, args),
531
- setLoggingEnabled: (args) => _chunkIUZRZEEUjs.setLoggingEnabled.call(void 0, client, args),
532
- setMinGasPrice: (args) => _chunkIUZRZEEUjs.setMinGasPrice.call(void 0, client, args),
533
- setNextBlockBaseFeePerGas: (args) => _chunkIUZRZEEUjs.setNextBlockBaseFeePerGas.call(void 0, client, args),
534
- setNextBlockTimestamp: (args) => _chunkIUZRZEEUjs.setNextBlockTimestamp.call(void 0, client, args),
535
- setNonce: (args) => _chunkIUZRZEEUjs.setNonce.call(void 0, client, args),
536
- setRpcUrl: (args) => _chunkIUZRZEEUjs.setRpcUrl.call(void 0, client, args),
537
- setStorageAt: (args) => _chunkIUZRZEEUjs.setStorageAt.call(void 0, client, args),
538
- snapshot: () => _chunkIUZRZEEUjs.snapshot.call(void 0, client),
539
- stopImpersonatingAccount: (args) => _chunkIUZRZEEUjs.stopImpersonatingAccount.call(void 0, client, args)
512
+ dropTransaction: (args) => _chunkA5BRAPQQjs.dropTransaction.call(void 0, client, args),
513
+ getAutomine: () => _chunkA5BRAPQQjs.getAutomine.call(void 0, client),
514
+ getTxpoolContent: () => _chunkA5BRAPQQjs.getTxpoolContent.call(void 0, client),
515
+ getTxpoolStatus: () => _chunkA5BRAPQQjs.getTxpoolStatus.call(void 0, client),
516
+ impersonateAccount: (args) => _chunkA5BRAPQQjs.impersonateAccount.call(void 0, client, args),
517
+ increaseTime: (args) => _chunkA5BRAPQQjs.increaseTime.call(void 0, client, args),
518
+ inspectTxpool: () => _chunkA5BRAPQQjs.inspectTxpool.call(void 0, client),
519
+ mine: (args) => _chunkA5BRAPQQjs.mine.call(void 0, client, args),
520
+ removeBlockTimestampInterval: () => _chunkA5BRAPQQjs.removeBlockTimestampInterval.call(void 0, client),
521
+ reset: (args) => _chunkA5BRAPQQjs.reset.call(void 0, client, args),
522
+ revert: (args) => _chunkA5BRAPQQjs.revert.call(void 0, client, args),
523
+ sendUnsignedTransaction: (args) => _chunkA5BRAPQQjs.sendUnsignedTransaction.call(void 0, client, args),
524
+ setAutomine: (args) => _chunkA5BRAPQQjs.setAutomine.call(void 0, client, args),
525
+ setBalance: (args) => _chunkA5BRAPQQjs.setBalance.call(void 0, client, args),
526
+ setBlockGasLimit: (args) => _chunkA5BRAPQQjs.setBlockGasLimit.call(void 0, client, args),
527
+ setBlockTimestampInterval: (args) => _chunkA5BRAPQQjs.setBlockTimestampInterval.call(void 0, client, args),
528
+ setCode: (args) => _chunkA5BRAPQQjs.setCode.call(void 0, client, args),
529
+ setCoinbase: (args) => _chunkA5BRAPQQjs.setCoinbase.call(void 0, client, args),
530
+ setIntervalMining: (args) => _chunkA5BRAPQQjs.setIntervalMining.call(void 0, client, args),
531
+ setLoggingEnabled: (args) => _chunkA5BRAPQQjs.setLoggingEnabled.call(void 0, client, args),
532
+ setMinGasPrice: (args) => _chunkA5BRAPQQjs.setMinGasPrice.call(void 0, client, args),
533
+ setNextBlockBaseFeePerGas: (args) => _chunkA5BRAPQQjs.setNextBlockBaseFeePerGas.call(void 0, client, args),
534
+ setNextBlockTimestamp: (args) => _chunkA5BRAPQQjs.setNextBlockTimestamp.call(void 0, client, args),
535
+ setNonce: (args) => _chunkA5BRAPQQjs.setNonce.call(void 0, client, args),
536
+ setRpcUrl: (args) => _chunkA5BRAPQQjs.setRpcUrl.call(void 0, client, args),
537
+ setStorageAt: (args) => _chunkA5BRAPQQjs.setStorageAt.call(void 0, client, args),
538
+ snapshot: () => _chunkA5BRAPQQjs.snapshot.call(void 0, client),
539
+ stopImpersonatingAccount: (args) => _chunkA5BRAPQQjs.stopImpersonatingAccount.call(void 0, client, args)
540
540
  });
541
541
 
542
542
  // src/clients/decorators/wallet.ts
543
543
  var walletActions = (client) => ({
544
- addChain: (args) => _chunkIUZRZEEUjs.addChain.call(void 0, client, args),
545
- deployContract: (args) => _chunkIUZRZEEUjs.deployContract.call(void 0, client, args),
546
- getAddresses: () => _chunkIUZRZEEUjs.getAddresses.call(void 0, client),
547
- getChainId: () => _chunkIUZRZEEUjs.getChainId.call(void 0, client),
548
- getPermissions: () => _chunkIUZRZEEUjs.getPermissions.call(void 0, client),
549
- requestAddresses: () => _chunkIUZRZEEUjs.requestAddresses.call(void 0, client),
550
- requestPermissions: (args) => _chunkIUZRZEEUjs.requestPermissions.call(void 0, client, args),
551
- sendTransaction: (args) => _chunkIUZRZEEUjs.sendTransaction.call(void 0, client, args),
552
- signMessage: (args) => _chunkIUZRZEEUjs.signMessage.call(void 0, client, args),
553
- signTypedData: (args) => _chunkIUZRZEEUjs.signTypedData.call(void 0, client, args),
554
- switchChain: (args) => _chunkIUZRZEEUjs.switchChain.call(void 0, client, args),
555
- watchAsset: (args) => _chunkIUZRZEEUjs.watchAsset.call(void 0, client, args),
556
- writeContract: (args) => _chunkIUZRZEEUjs.writeContract.call(void 0, client, args)
544
+ addChain: (args) => _chunkA5BRAPQQjs.addChain.call(void 0, client, args),
545
+ deployContract: (args) => _chunkA5BRAPQQjs.deployContract.call(void 0, client, args),
546
+ getAddresses: () => _chunkA5BRAPQQjs.getAddresses.call(void 0, client),
547
+ getChainId: () => _chunkA5BRAPQQjs.getChainId.call(void 0, client),
548
+ getPermissions: () => _chunkA5BRAPQQjs.getPermissions.call(void 0, client),
549
+ requestAddresses: () => _chunkA5BRAPQQjs.requestAddresses.call(void 0, client),
550
+ requestPermissions: (args) => _chunkA5BRAPQQjs.requestPermissions.call(void 0, client, args),
551
+ sendTransaction: (args) => _chunkA5BRAPQQjs.sendTransaction.call(void 0, client, args),
552
+ signMessage: (args) => _chunkA5BRAPQQjs.signMessage.call(void 0, client, args),
553
+ signTypedData: (args) => _chunkA5BRAPQQjs.signTypedData.call(void 0, client, args),
554
+ switchChain: (args) => _chunkA5BRAPQQjs.switchChain.call(void 0, client, args),
555
+ watchAsset: (args) => _chunkA5BRAPQQjs.watchAsset.call(void 0, client, args),
556
+ writeContract: (args) => _chunkA5BRAPQQjs.writeContract.call(void 0, client, args)
557
557
  });
558
558
 
559
559
  // src/clients/createPublicClient.ts
@@ -606,12 +606,14 @@ function createTestClient({
606
606
 
607
607
  // src/clients/createWalletClient.ts
608
608
  function createWalletClient({
609
+ chain,
609
610
  transport,
610
611
  key = "wallet",
611
612
  name = "Wallet Client",
612
613
  pollingInterval
613
614
  }) {
614
615
  const client = createClient({
616
+ chain,
615
617
  key,
616
618
  name,
617
619
  pollingInterval,
@@ -798,5 +800,5 @@ function createWalletClient({
798
800
 
799
801
 
800
802
 
801
- exports.AbiConstructorNotFoundError = _chunkIUZRZEEUjs.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunkIUZRZEEUjs.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunkIUZRZEEUjs.AbiDecodingDataSizeInvalidError; exports.AbiDecodingZeroDataError = _chunkIUZRZEEUjs.AbiDecodingZeroDataError; exports.AbiEncodingArrayLengthMismatchError = _chunkIUZRZEEUjs.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunkIUZRZEEUjs.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunkIUZRZEEUjs.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunkIUZRZEEUjs.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunkIUZRZEEUjs.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunkIUZRZEEUjs.AbiEventNotFoundError; exports.AbiEventSignatureEmptyTopicsError = _chunkIUZRZEEUjs.AbiEventSignatureEmptyTopicsError; exports.AbiEventSignatureNotFoundError = _chunkIUZRZEEUjs.AbiEventSignatureNotFoundError; exports.AbiFunctionNotFoundError = _chunkIUZRZEEUjs.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunkIUZRZEEUjs.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunkIUZRZEEUjs.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunkIUZRZEEUjs.BaseError; exports.BlockNotFoundError = _chunkIUZRZEEUjs.BlockNotFoundError; exports.CallExecutionError = _chunkIUZRZEEUjs.CallExecutionError; exports.ChainDoesNotSupportContract = _chunkIUZRZEEUjs.ChainDoesNotSupportContract; exports.ContractFunctionExecutionError = _chunkIUZRZEEUjs.ContractFunctionExecutionError; exports.ContractFunctionRevertedError = _chunkIUZRZEEUjs.ContractFunctionRevertedError; exports.ContractFunctionZeroDataError = _chunkIUZRZEEUjs.ContractFunctionZeroDataError; exports.DataLengthTooLongError = _chunkIUZRZEEUjs.DataLengthTooLongError; exports.DataLengthTooShortError = _chunkIUZRZEEUjs.DataLengthTooShortError; exports.DecodeLogTopicsMismatch = _chunkIUZRZEEUjs.DecodeLogTopicsMismatch; exports.EstimateGasExecutionError = _chunkIUZRZEEUjs.EstimateGasExecutionError; exports.ExecutionRevertedError = _chunkIUZRZEEUjs.ExecutionRevertedError; exports.FeeCapTooHighError = _chunkIUZRZEEUjs.FeeCapTooHighError; exports.FeeCapTooLowError = _chunkIUZRZEEUjs.FeeCapTooLowError; exports.FilterTypeNotSupportedError = _chunkIUZRZEEUjs.FilterTypeNotSupportedError; exports.HttpRequestError = _chunkIUZRZEEUjs.HttpRequestError; exports.InsufficientFundsError = _chunkIUZRZEEUjs.InsufficientFundsError; exports.InternalRpcError = _chunkIUZRZEEUjs.InternalRpcError; exports.IntrinsicGasTooHighError = _chunkIUZRZEEUjs.IntrinsicGasTooHighError; exports.IntrinsicGasTooLowError = _chunkIUZRZEEUjs.IntrinsicGasTooLowError; exports.InvalidAbiDecodingTypeError = _chunkIUZRZEEUjs.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunkIUZRZEEUjs.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunkIUZRZEEUjs.InvalidAddressError; exports.InvalidArrayError = _chunkIUZRZEEUjs.InvalidArrayError; exports.InvalidBytesBooleanError = _chunkIUZRZEEUjs.InvalidBytesBooleanError; exports.InvalidDefinitionTypeError = _chunkIUZRZEEUjs.InvalidDefinitionTypeError; exports.InvalidHexBooleanError = _chunkIUZRZEEUjs.InvalidHexBooleanError; exports.InvalidHexValueError = _chunkIUZRZEEUjs.InvalidHexValueError; exports.InvalidInputRpcError = _chunkIUZRZEEUjs.InvalidInputRpcError; exports.InvalidParamsRpcError = _chunkIUZRZEEUjs.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunkIUZRZEEUjs.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunkIUZRZEEUjs.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunkIUZRZEEUjs.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunkIUZRZEEUjs.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunkIUZRZEEUjs.MethodNotSupportedRpcError; exports.NonceMaxValueError = _chunkIUZRZEEUjs.NonceMaxValueError; exports.NonceTooHighError = _chunkIUZRZEEUjs.NonceTooHighError; exports.NonceTooLowError = _chunkIUZRZEEUjs.NonceTooLowError; exports.OffsetOutOfBoundsError = _chunkIUZRZEEUjs.OffsetOutOfBoundsError; exports.ParseRpcError = _chunkIUZRZEEUjs.ParseRpcError; exports.RawContractError = _chunkIUZRZEEUjs.RawContractError; exports.RequestError = _chunkIUZRZEEUjs.RequestError; exports.ResourceNotFoundRpcError = _chunkIUZRZEEUjs.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunkIUZRZEEUjs.ResourceUnavailableRpcError; exports.RpcError = _chunkIUZRZEEUjs.RpcError; exports.RpcRequestError = _chunkIUZRZEEUjs.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunkIUZRZEEUjs.SizeExceedsPaddingSizeError; exports.SwitchChainError = _chunkIUZRZEEUjs.SwitchChainError; exports.TimeoutError = _chunkIUZRZEEUjs.TimeoutError; exports.TipAboveFeeCapError = _chunkIUZRZEEUjs.TipAboveFeeCapError; exports.TransactionExecutionError = _chunkIUZRZEEUjs.TransactionExecutionError; exports.TransactionNotFoundError = _chunkIUZRZEEUjs.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunkIUZRZEEUjs.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunkIUZRZEEUjs.TransactionRejectedRpcError; exports.TransactionTypeNotSupportedError = _chunkIUZRZEEUjs.TransactionTypeNotSupportedError; exports.UnknownNodeError = _chunkIUZRZEEUjs.UnknownNodeError; exports.UnknownRpcError = _chunkIUZRZEEUjs.UnknownRpcError; exports.UrlRequiredError = _chunkIUZRZEEUjs.UrlRequiredError; exports.UserRejectedRequestError = _chunkIUZRZEEUjs.UserRejectedRequestError; exports.WaitForTransactionReceiptTimeoutError = _chunkIUZRZEEUjs.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunkIUZRZEEUjs.WebSocketRequestError; exports.boolToBytes = _chunkIUZRZEEUjs.boolToBytes; exports.boolToHex = _chunkIUZRZEEUjs.boolToHex; exports.bytesToBigint = _chunkIUZRZEEUjs.bytesToBigint; exports.bytesToBool = _chunkIUZRZEEUjs.bytesToBool; exports.bytesToHex = _chunkIUZRZEEUjs.bytesToHex; exports.bytesToNumber = _chunkIUZRZEEUjs.bytesToNumber; exports.bytesToString = _chunkIUZRZEEUjs.bytesToString; exports.concat = _chunkIUZRZEEUjs.concat; exports.concatBytes = _chunkIUZRZEEUjs.concatBytes; exports.concatHex = _chunkIUZRZEEUjs.concatHex; exports.createClient = createClient; exports.createPublicClient = createPublicClient; exports.createTestClient = createTestClient; exports.createTransport = createTransport; exports.createWalletClient = createWalletClient; exports.custom = custom; exports.decodeAbiParameters = _chunkIUZRZEEUjs.decodeAbiParameters; exports.decodeErrorResult = _chunkIUZRZEEUjs.decodeErrorResult; exports.decodeEventLog = _chunkIUZRZEEUjs.decodeEventLog; exports.decodeFunctionData = _chunkIUZRZEEUjs.decodeFunctionData; exports.decodeFunctionResult = _chunkIUZRZEEUjs.decodeFunctionResult; exports.defineBlock = _chunkIUZRZEEUjs.defineBlock; exports.defineChain = _chunkIUZRZEEUjs.defineChain; exports.defineTransaction = _chunkIUZRZEEUjs.defineTransaction; exports.defineTransactionReceipt = _chunkIUZRZEEUjs.defineTransactionReceipt; exports.defineTransactionRequest = _chunkIUZRZEEUjs.defineTransactionRequest; exports.encodeAbiParameters = _chunkIUZRZEEUjs.encodeAbiParameters; exports.encodeDeployData = _chunkIUZRZEEUjs.encodeDeployData; exports.encodeErrorResult = _chunkIUZRZEEUjs.encodeErrorResult; exports.encodeEventTopics = _chunkIUZRZEEUjs.encodeEventTopics; exports.encodeFunctionData = _chunkIUZRZEEUjs.encodeFunctionData; exports.encodeFunctionResult = _chunkIUZRZEEUjs.encodeFunctionResult; exports.encodePacked = _chunkIUZRZEEUjs.encodePacked; exports.etherUnits = _chunkIUZRZEEUjs.etherUnits; exports.fallback = fallback; exports.formatBlock = _chunkIUZRZEEUjs.formatBlock; exports.formatEther = _chunkIUZRZEEUjs.formatEther; exports.formatGwei = _chunkIUZRZEEUjs.formatGwei; exports.formatTransaction = _chunkIUZRZEEUjs.formatTransaction; exports.formatTransactionRequest = _chunkIUZRZEEUjs.formatTransactionRequest; exports.formatUnits = _chunkIUZRZEEUjs.formatUnits; exports.fromBytes = _chunkIUZRZEEUjs.fromBytes; exports.fromHex = _chunkIUZRZEEUjs.fromHex; exports.fromRlp = _chunkIUZRZEEUjs.fromRlp; exports.getAbiItem = _chunkIUZRZEEUjs.getAbiItem; exports.getAccount = _chunkIUZRZEEUjs.getAccount; exports.getAddress = _chunkIUZRZEEUjs.getAddress; exports.getContractAddress = _chunkIUZRZEEUjs.getContractAddress; exports.getContractError = _chunkIUZRZEEUjs.getContractError; exports.getCreate2Address = _chunkIUZRZEEUjs.getCreate2Address; exports.getCreateAddress = _chunkIUZRZEEUjs.getCreateAddress; exports.getEventSelector = _chunkIUZRZEEUjs.getEventSelector; exports.getFunctionSelector = _chunkIUZRZEEUjs.getFunctionSelector; exports.gweiUnits = _chunkIUZRZEEUjs.gweiUnits; exports.hashMessage = _chunkIUZRZEEUjs.hashMessage; exports.hexToBigInt = _chunkIUZRZEEUjs.hexToBigInt; exports.hexToBool = _chunkIUZRZEEUjs.hexToBool; exports.hexToBytes = _chunkIUZRZEEUjs.hexToBytes; exports.hexToNumber = _chunkIUZRZEEUjs.hexToNumber; exports.hexToString = _chunkIUZRZEEUjs.hexToString; exports.http = http; exports.isAddress = _chunkIUZRZEEUjs.isAddress; exports.isAddressEqual = _chunkIUZRZEEUjs.isAddressEqual; exports.isBytes = _chunkIUZRZEEUjs.isBytes; exports.isHex = _chunkIUZRZEEUjs.isHex; exports.keccak256 = _chunkIUZRZEEUjs.keccak256; exports.labelhash = _chunkVUA7GJVUjs.labelhash; exports.multicall3Abi = _chunkIUZRZEEUjs.multicall3Abi; exports.namehash = _chunkVUA7GJVUjs.namehash; exports.numberToBytes = _chunkIUZRZEEUjs.numberToBytes; exports.numberToHex = _chunkIUZRZEEUjs.numberToHex; exports.pad = _chunkIUZRZEEUjs.pad; exports.padBytes = _chunkIUZRZEEUjs.padBytes; exports.padHex = _chunkIUZRZEEUjs.padHex; exports.parseAbi = _chunkIUZRZEEUjs.parseAbi; exports.parseAbiItem = _chunkIUZRZEEUjs.parseAbiItem; exports.parseAbiParameter = _chunkIUZRZEEUjs.parseAbiParameter; exports.parseAbiParameters = _chunkIUZRZEEUjs.parseAbiParameters; exports.parseEther = _chunkIUZRZEEUjs.parseEther; exports.parseGwei = _chunkIUZRZEEUjs.parseGwei; exports.parseUnits = _chunkIUZRZEEUjs.parseUnits; exports.recoverAddress = _chunkIUZRZEEUjs.recoverAddress; exports.recoverMessageAddress = _chunkIUZRZEEUjs.recoverMessageAddress; exports.size = _chunkIUZRZEEUjs.size; exports.slice = _chunkIUZRZEEUjs.slice; exports.sliceBytes = _chunkIUZRZEEUjs.sliceBytes; exports.sliceHex = _chunkIUZRZEEUjs.sliceHex; exports.stringToBytes = _chunkIUZRZEEUjs.stringToBytes; exports.stringToHex = _chunkIUZRZEEUjs.stringToHex; exports.stringify = _chunkIUZRZEEUjs.stringify; exports.toBytes = _chunkIUZRZEEUjs.toBytes; exports.toHex = _chunkIUZRZEEUjs.toHex; exports.toRlp = _chunkIUZRZEEUjs.toRlp; exports.transactionType = _chunkIUZRZEEUjs.transactionType; exports.trim = _chunkIUZRZEEUjs.trim; exports.verifyMessage = _chunkIUZRZEEUjs.verifyMessage; exports.webSocket = webSocket; exports.weiUnits = _chunkIUZRZEEUjs.weiUnits;
803
+ exports.AbiConstructorNotFoundError = _chunkA5BRAPQQjs.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunkA5BRAPQQjs.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunkA5BRAPQQjs.AbiDecodingDataSizeInvalidError; exports.AbiDecodingZeroDataError = _chunkA5BRAPQQjs.AbiDecodingZeroDataError; exports.AbiEncodingArrayLengthMismatchError = _chunkA5BRAPQQjs.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunkA5BRAPQQjs.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunkA5BRAPQQjs.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunkA5BRAPQQjs.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunkA5BRAPQQjs.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunkA5BRAPQQjs.AbiEventNotFoundError; exports.AbiEventSignatureEmptyTopicsError = _chunkA5BRAPQQjs.AbiEventSignatureEmptyTopicsError; exports.AbiEventSignatureNotFoundError = _chunkA5BRAPQQjs.AbiEventSignatureNotFoundError; exports.AbiFunctionNotFoundError = _chunkA5BRAPQQjs.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunkA5BRAPQQjs.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunkA5BRAPQQjs.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunkA5BRAPQQjs.BaseError; exports.BlockNotFoundError = _chunkA5BRAPQQjs.BlockNotFoundError; exports.CallExecutionError = _chunkA5BRAPQQjs.CallExecutionError; exports.ChainDoesNotSupportContract = _chunkA5BRAPQQjs.ChainDoesNotSupportContract; exports.ContractFunctionExecutionError = _chunkA5BRAPQQjs.ContractFunctionExecutionError; exports.ContractFunctionRevertedError = _chunkA5BRAPQQjs.ContractFunctionRevertedError; exports.ContractFunctionZeroDataError = _chunkA5BRAPQQjs.ContractFunctionZeroDataError; exports.DataLengthTooLongError = _chunkA5BRAPQQjs.DataLengthTooLongError; exports.DataLengthTooShortError = _chunkA5BRAPQQjs.DataLengthTooShortError; exports.DecodeLogTopicsMismatch = _chunkA5BRAPQQjs.DecodeLogTopicsMismatch; exports.EstimateGasExecutionError = _chunkA5BRAPQQjs.EstimateGasExecutionError; exports.ExecutionRevertedError = _chunkA5BRAPQQjs.ExecutionRevertedError; exports.FeeCapTooHighError = _chunkA5BRAPQQjs.FeeCapTooHighError; exports.FeeCapTooLowError = _chunkA5BRAPQQjs.FeeCapTooLowError; exports.FilterTypeNotSupportedError = _chunkA5BRAPQQjs.FilterTypeNotSupportedError; exports.HttpRequestError = _chunkA5BRAPQQjs.HttpRequestError; exports.InsufficientFundsError = _chunkA5BRAPQQjs.InsufficientFundsError; exports.InternalRpcError = _chunkA5BRAPQQjs.InternalRpcError; exports.IntrinsicGasTooHighError = _chunkA5BRAPQQjs.IntrinsicGasTooHighError; exports.IntrinsicGasTooLowError = _chunkA5BRAPQQjs.IntrinsicGasTooLowError; exports.InvalidAbiDecodingTypeError = _chunkA5BRAPQQjs.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunkA5BRAPQQjs.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunkA5BRAPQQjs.InvalidAddressError; exports.InvalidArrayError = _chunkA5BRAPQQjs.InvalidArrayError; exports.InvalidBytesBooleanError = _chunkA5BRAPQQjs.InvalidBytesBooleanError; exports.InvalidDefinitionTypeError = _chunkA5BRAPQQjs.InvalidDefinitionTypeError; exports.InvalidHexBooleanError = _chunkA5BRAPQQjs.InvalidHexBooleanError; exports.InvalidHexValueError = _chunkA5BRAPQQjs.InvalidHexValueError; exports.InvalidInputRpcError = _chunkA5BRAPQQjs.InvalidInputRpcError; exports.InvalidParamsRpcError = _chunkA5BRAPQQjs.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunkA5BRAPQQjs.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunkA5BRAPQQjs.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunkA5BRAPQQjs.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunkA5BRAPQQjs.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunkA5BRAPQQjs.MethodNotSupportedRpcError; exports.NonceMaxValueError = _chunkA5BRAPQQjs.NonceMaxValueError; exports.NonceTooHighError = _chunkA5BRAPQQjs.NonceTooHighError; exports.NonceTooLowError = _chunkA5BRAPQQjs.NonceTooLowError; exports.OffsetOutOfBoundsError = _chunkA5BRAPQQjs.OffsetOutOfBoundsError; exports.ParseRpcError = _chunkA5BRAPQQjs.ParseRpcError; exports.RawContractError = _chunkA5BRAPQQjs.RawContractError; exports.RequestError = _chunkA5BRAPQQjs.RequestError; exports.ResourceNotFoundRpcError = _chunkA5BRAPQQjs.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunkA5BRAPQQjs.ResourceUnavailableRpcError; exports.RpcError = _chunkA5BRAPQQjs.RpcError; exports.RpcRequestError = _chunkA5BRAPQQjs.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunkA5BRAPQQjs.SizeExceedsPaddingSizeError; exports.SwitchChainError = _chunkA5BRAPQQjs.SwitchChainError; exports.TimeoutError = _chunkA5BRAPQQjs.TimeoutError; exports.TipAboveFeeCapError = _chunkA5BRAPQQjs.TipAboveFeeCapError; exports.TransactionExecutionError = _chunkA5BRAPQQjs.TransactionExecutionError; exports.TransactionNotFoundError = _chunkA5BRAPQQjs.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunkA5BRAPQQjs.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunkA5BRAPQQjs.TransactionRejectedRpcError; exports.TransactionTypeNotSupportedError = _chunkA5BRAPQQjs.TransactionTypeNotSupportedError; exports.UnknownNodeError = _chunkA5BRAPQQjs.UnknownNodeError; exports.UnknownRpcError = _chunkA5BRAPQQjs.UnknownRpcError; exports.UrlRequiredError = _chunkA5BRAPQQjs.UrlRequiredError; exports.UserRejectedRequestError = _chunkA5BRAPQQjs.UserRejectedRequestError; exports.WaitForTransactionReceiptTimeoutError = _chunkA5BRAPQQjs.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunkA5BRAPQQjs.WebSocketRequestError; exports.boolToBytes = _chunkA5BRAPQQjs.boolToBytes; exports.boolToHex = _chunkA5BRAPQQjs.boolToHex; exports.bytesToBigint = _chunkA5BRAPQQjs.bytesToBigint; exports.bytesToBool = _chunkA5BRAPQQjs.bytesToBool; exports.bytesToHex = _chunkA5BRAPQQjs.bytesToHex; exports.bytesToNumber = _chunkA5BRAPQQjs.bytesToNumber; exports.bytesToString = _chunkA5BRAPQQjs.bytesToString; exports.concat = _chunkA5BRAPQQjs.concat; exports.concatBytes = _chunkA5BRAPQQjs.concatBytes; exports.concatHex = _chunkA5BRAPQQjs.concatHex; exports.createClient = createClient; exports.createPublicClient = createPublicClient; exports.createTestClient = createTestClient; exports.createTransport = createTransport; exports.createWalletClient = createWalletClient; exports.custom = custom; exports.decodeAbiParameters = _chunkA5BRAPQQjs.decodeAbiParameters; exports.decodeErrorResult = _chunkA5BRAPQQjs.decodeErrorResult; exports.decodeEventLog = _chunkA5BRAPQQjs.decodeEventLog; exports.decodeFunctionData = _chunkA5BRAPQQjs.decodeFunctionData; exports.decodeFunctionResult = _chunkA5BRAPQQjs.decodeFunctionResult; exports.defineBlock = _chunkA5BRAPQQjs.defineBlock; exports.defineChain = _chunkA5BRAPQQjs.defineChain; exports.defineTransaction = _chunkA5BRAPQQjs.defineTransaction; exports.defineTransactionReceipt = _chunkA5BRAPQQjs.defineTransactionReceipt; exports.defineTransactionRequest = _chunkA5BRAPQQjs.defineTransactionRequest; exports.encodeAbiParameters = _chunkA5BRAPQQjs.encodeAbiParameters; exports.encodeDeployData = _chunkA5BRAPQQjs.encodeDeployData; exports.encodeErrorResult = _chunkA5BRAPQQjs.encodeErrorResult; exports.encodeEventTopics = _chunkA5BRAPQQjs.encodeEventTopics; exports.encodeFunctionData = _chunkA5BRAPQQjs.encodeFunctionData; exports.encodeFunctionResult = _chunkA5BRAPQQjs.encodeFunctionResult; exports.encodePacked = _chunkA5BRAPQQjs.encodePacked; exports.etherUnits = _chunkA5BRAPQQjs.etherUnits; exports.fallback = fallback; exports.formatBlock = _chunkA5BRAPQQjs.formatBlock; exports.formatEther = _chunkA5BRAPQQjs.formatEther; exports.formatGwei = _chunkA5BRAPQQjs.formatGwei; exports.formatTransaction = _chunkA5BRAPQQjs.formatTransaction; exports.formatTransactionRequest = _chunkA5BRAPQQjs.formatTransactionRequest; exports.formatUnits = _chunkA5BRAPQQjs.formatUnits; exports.fromBytes = _chunkA5BRAPQQjs.fromBytes; exports.fromHex = _chunkA5BRAPQQjs.fromHex; exports.fromRlp = _chunkA5BRAPQQjs.fromRlp; exports.getAbiItem = _chunkA5BRAPQQjs.getAbiItem; exports.getAccount = _chunkA5BRAPQQjs.getAccount; exports.getAddress = _chunkA5BRAPQQjs.getAddress; exports.getContractAddress = _chunkA5BRAPQQjs.getContractAddress; exports.getContractError = _chunkA5BRAPQQjs.getContractError; exports.getCreate2Address = _chunkA5BRAPQQjs.getCreate2Address; exports.getCreateAddress = _chunkA5BRAPQQjs.getCreateAddress; exports.getEventSelector = _chunkA5BRAPQQjs.getEventSelector; exports.getFunctionSelector = _chunkA5BRAPQQjs.getFunctionSelector; exports.gweiUnits = _chunkA5BRAPQQjs.gweiUnits; exports.hashMessage = _chunkA5BRAPQQjs.hashMessage; exports.hexToBigInt = _chunkA5BRAPQQjs.hexToBigInt; exports.hexToBool = _chunkA5BRAPQQjs.hexToBool; exports.hexToBytes = _chunkA5BRAPQQjs.hexToBytes; exports.hexToNumber = _chunkA5BRAPQQjs.hexToNumber; exports.hexToString = _chunkA5BRAPQQjs.hexToString; exports.http = http; exports.isAddress = _chunkA5BRAPQQjs.isAddress; exports.isAddressEqual = _chunkA5BRAPQQjs.isAddressEqual; exports.isBytes = _chunkA5BRAPQQjs.isBytes; exports.isHex = _chunkA5BRAPQQjs.isHex; exports.keccak256 = _chunkA5BRAPQQjs.keccak256; exports.labelhash = _chunkGZ67J32Tjs.labelhash; exports.multicall3Abi = _chunkA5BRAPQQjs.multicall3Abi; exports.namehash = _chunkGZ67J32Tjs.namehash; exports.numberToBytes = _chunkA5BRAPQQjs.numberToBytes; exports.numberToHex = _chunkA5BRAPQQjs.numberToHex; exports.pad = _chunkA5BRAPQQjs.pad; exports.padBytes = _chunkA5BRAPQQjs.padBytes; exports.padHex = _chunkA5BRAPQQjs.padHex; exports.parseAbi = _chunkA5BRAPQQjs.parseAbi; exports.parseAbiItem = _chunkA5BRAPQQjs.parseAbiItem; exports.parseAbiParameter = _chunkA5BRAPQQjs.parseAbiParameter; exports.parseAbiParameters = _chunkA5BRAPQQjs.parseAbiParameters; exports.parseEther = _chunkA5BRAPQQjs.parseEther; exports.parseGwei = _chunkA5BRAPQQjs.parseGwei; exports.parseUnits = _chunkA5BRAPQQjs.parseUnits; exports.recoverAddress = _chunkA5BRAPQQjs.recoverAddress; exports.recoverMessageAddress = _chunkA5BRAPQQjs.recoverMessageAddress; exports.size = _chunkA5BRAPQQjs.size; exports.slice = _chunkA5BRAPQQjs.slice; exports.sliceBytes = _chunkA5BRAPQQjs.sliceBytes; exports.sliceHex = _chunkA5BRAPQQjs.sliceHex; exports.stringToBytes = _chunkA5BRAPQQjs.stringToBytes; exports.stringToHex = _chunkA5BRAPQQjs.stringToHex; exports.stringify = _chunkA5BRAPQQjs.stringify; exports.toBytes = _chunkA5BRAPQQjs.toBytes; exports.toHex = _chunkA5BRAPQQjs.toHex; exports.toRlp = _chunkA5BRAPQQjs.toRlp; exports.transactionType = _chunkA5BRAPQQjs.transactionType; exports.trim = _chunkA5BRAPQQjs.trim; exports.verifyMessage = _chunkA5BRAPQQjs.verifyMessage; exports.webSocket = webSocket; exports.weiUnits = _chunkA5BRAPQQjs.weiUnits;
802
804
  //# sourceMappingURL=index.js.map