@ensdomains/ensjs 3.4.3 → 3.5.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) hide show
  1. package/dist/cjs/clients/decorators/public.js.map +1 -1
  2. package/dist/cjs/contracts/addEnsContracts.js +6 -6
  3. package/dist/cjs/contracts/addEnsContracts.js.map +1 -1
  4. package/dist/cjs/contracts/consts.js +27 -32
  5. package/dist/cjs/contracts/consts.js.map +1 -1
  6. package/dist/cjs/contracts/universalResolver.js +10 -1
  7. package/dist/cjs/contracts/universalResolver.js.map +1 -1
  8. package/dist/cjs/errors/contracts.js +11 -11
  9. package/dist/cjs/errors/contracts.js.map +1 -1
  10. package/dist/cjs/errors/version.js +1 -1
  11. package/dist/cjs/errors/version.js.map +1 -1
  12. package/dist/cjs/errors/wallet.js +0 -1
  13. package/dist/cjs/functions/dns/getDnsImportData.js +1 -1
  14. package/dist/cjs/functions/dns/getDnsImportData.js.map +1 -1
  15. package/dist/cjs/functions/dns/getDnsOffchainData.js.map +1 -1
  16. package/dist/cjs/functions/dns/getDnsOwner.js.map +1 -1
  17. package/dist/cjs/functions/dns/importDnsName.js +2 -1
  18. package/dist/cjs/functions/dns/importDnsName.js.map +1 -1
  19. package/dist/cjs/functions/public/_getAbi.js +2 -2
  20. package/dist/cjs/functions/public/_getAbi.js.map +1 -1
  21. package/dist/cjs/functions/public/_getAddr.js.map +1 -1
  22. package/dist/cjs/functions/public/_getContentHash.js.map +1 -1
  23. package/dist/cjs/functions/public/_getText.js.map +1 -1
  24. package/dist/cjs/functions/public/batch.js.map +1 -1
  25. package/dist/cjs/functions/public/getAbiRecord.js +2 -1
  26. package/dist/cjs/functions/public/getAbiRecord.js.map +1 -1
  27. package/dist/cjs/functions/public/getAddressRecord.js +2 -1
  28. package/dist/cjs/functions/public/getAddressRecord.js.map +1 -1
  29. package/dist/cjs/functions/public/getContentHashRecord.js +2 -1
  30. package/dist/cjs/functions/public/getContentHashRecord.js.map +1 -1
  31. package/dist/cjs/functions/public/getExpiry.js.map +1 -1
  32. package/dist/cjs/functions/public/getName.js +5 -3
  33. package/dist/cjs/functions/public/getName.js.map +1 -1
  34. package/dist/cjs/functions/public/getOwner.js.map +1 -1
  35. package/dist/cjs/functions/public/getPrice.js.map +1 -1
  36. package/dist/cjs/functions/public/getRecords.js +6 -4
  37. package/dist/cjs/functions/public/getRecords.js.map +1 -1
  38. package/dist/cjs/functions/public/getTextRecord.js +2 -1
  39. package/dist/cjs/functions/public/getTextRecord.js.map +1 -1
  40. package/dist/cjs/functions/public/getWrapperData.js.map +1 -1
  41. package/dist/cjs/functions/public/multicallWrapper.js.map +1 -1
  42. package/dist/cjs/functions/public/universalWrapper.js +5 -3
  43. package/dist/cjs/functions/public/universalWrapper.js.map +1 -1
  44. package/dist/cjs/functions/subgraph/client.js.map +1 -1
  45. package/dist/cjs/functions/subgraph/getDecodedName.js.map +1 -1
  46. package/dist/cjs/functions/subgraph/getNameHistory.js.map +1 -1
  47. package/dist/cjs/functions/subgraph/getNamesForAddress.js.map +1 -1
  48. package/dist/cjs/functions/subgraph/getSubnames.js.map +1 -1
  49. package/dist/cjs/functions/wallet/clearRecords.js +2 -1
  50. package/dist/cjs/functions/wallet/clearRecords.js.map +1 -1
  51. package/dist/cjs/functions/wallet/commitName.js +2 -1
  52. package/dist/cjs/functions/wallet/commitName.js.map +1 -1
  53. package/dist/cjs/functions/wallet/createSubname.js +2 -1
  54. package/dist/cjs/functions/wallet/createSubname.js.map +1 -1
  55. package/dist/cjs/functions/wallet/deleteSubname.js +2 -1
  56. package/dist/cjs/functions/wallet/deleteSubname.js.map +1 -1
  57. package/dist/cjs/functions/wallet/registerName.js +2 -1
  58. package/dist/cjs/functions/wallet/registerName.js.map +1 -1
  59. package/dist/cjs/functions/wallet/renewNames.js +2 -1
  60. package/dist/cjs/functions/wallet/renewNames.js.map +1 -1
  61. package/dist/cjs/functions/wallet/setAbiRecord.js +2 -1
  62. package/dist/cjs/functions/wallet/setAbiRecord.js.map +1 -1
  63. package/dist/cjs/functions/wallet/setAddressRecord.js +2 -1
  64. package/dist/cjs/functions/wallet/setAddressRecord.js.map +1 -1
  65. package/dist/cjs/functions/wallet/setChildFuses.js +2 -1
  66. package/dist/cjs/functions/wallet/setChildFuses.js.map +1 -1
  67. package/dist/cjs/functions/wallet/setContentHashRecord.js +2 -1
  68. package/dist/cjs/functions/wallet/setContentHashRecord.js.map +1 -1
  69. package/dist/cjs/functions/wallet/setFuses.js +2 -1
  70. package/dist/cjs/functions/wallet/setFuses.js.map +1 -1
  71. package/dist/cjs/functions/wallet/setPrimaryName.js +2 -1
  72. package/dist/cjs/functions/wallet/setPrimaryName.js.map +1 -1
  73. package/dist/cjs/functions/wallet/setRecords.js +2 -1
  74. package/dist/cjs/functions/wallet/setRecords.js.map +1 -1
  75. package/dist/cjs/functions/wallet/setResolver.js +2 -1
  76. package/dist/cjs/functions/wallet/setResolver.js.map +1 -1
  77. package/dist/cjs/functions/wallet/setTextRecord.js +2 -1
  78. package/dist/cjs/functions/wallet/setTextRecord.js.map +1 -1
  79. package/dist/cjs/functions/wallet/transferName.js +2 -1
  80. package/dist/cjs/functions/wallet/transferName.js.map +1 -1
  81. package/dist/cjs/functions/wallet/unwrapName.js +2 -1
  82. package/dist/cjs/functions/wallet/unwrapName.js.map +1 -1
  83. package/dist/cjs/functions/wallet/wrapName.js +2 -1
  84. package/dist/cjs/functions/wallet/wrapName.js.map +1 -1
  85. package/dist/cjs/index.js +2 -2
  86. package/dist/cjs/index.js.map +1 -1
  87. package/dist/cjs/utils/checkSafeUniversalResolverData.js.map +1 -1
  88. package/dist/cjs/utils/contentHash.js.map +1 -1
  89. package/dist/cjs/utils/encoders/encodeAbi.js +2 -2
  90. package/dist/cjs/utils/encoders/encodeAbi.js.map +1 -1
  91. package/dist/cjs/utils/encoders/encodeSetAddr.js.map +1 -1
  92. package/dist/cjs/utils/encoders/encodeSetContentHash.js.map +1 -1
  93. package/dist/cjs/utils/fuses.js.map +1 -1
  94. package/dist/cjs/utils/generateRecordCallArray.js.map +1 -1
  95. package/dist/cjs/utils/getNameType.js.map +1 -1
  96. package/dist/cjs/utils/hexEncodedName.js.map +1 -1
  97. package/dist/cjs/utils/labels.js.map +1 -1
  98. package/dist/cjs/utils/normalise.js.map +1 -1
  99. package/dist/cjs/utils/normaliseCoinId.js.map +1 -1
  100. package/dist/cjs/utils/ownerFromContract.js.map +1 -1
  101. package/dist/cjs/utils/registerHelpers.js +6 -1
  102. package/dist/cjs/utils/registerHelpers.js.map +1 -1
  103. package/dist/cjs/utils/validation.js.map +1 -1
  104. package/dist/esm/clients/decorators/public.js.map +1 -1
  105. package/dist/esm/contracts/addEnsContracts.js +7 -7
  106. package/dist/esm/contracts/addEnsContracts.js.map +1 -1
  107. package/dist/esm/contracts/consts.js +27 -32
  108. package/dist/esm/contracts/consts.js.map +1 -1
  109. package/dist/esm/contracts/universalResolver.js +9 -0
  110. package/dist/esm/contracts/universalResolver.js.map +1 -1
  111. package/dist/esm/errors/contracts.js +9 -9
  112. package/dist/esm/errors/contracts.js.map +1 -1
  113. package/dist/esm/errors/version.js +1 -1
  114. package/dist/esm/errors/version.js.map +1 -1
  115. package/dist/esm/errors/wallet.js +1 -1
  116. package/dist/esm/functions/dns/getDnsOffchainData.js.map +1 -1
  117. package/dist/esm/functions/dns/getDnsOwner.js.map +1 -1
  118. package/dist/esm/functions/dns/importDnsName.js +3 -2
  119. package/dist/esm/functions/dns/importDnsName.js.map +1 -1
  120. package/dist/esm/functions/public/_getAbi.js.map +1 -1
  121. package/dist/esm/functions/public/_getAddr.js.map +1 -1
  122. package/dist/esm/functions/public/_getContentHash.js.map +1 -1
  123. package/dist/esm/functions/public/_getText.js.map +1 -1
  124. package/dist/esm/functions/public/batch.js.map +1 -1
  125. package/dist/esm/functions/public/getAbiRecord.js +2 -1
  126. package/dist/esm/functions/public/getAbiRecord.js.map +1 -1
  127. package/dist/esm/functions/public/getAddressRecord.js +2 -1
  128. package/dist/esm/functions/public/getAddressRecord.js.map +1 -1
  129. package/dist/esm/functions/public/getContentHashRecord.js +2 -1
  130. package/dist/esm/functions/public/getContentHashRecord.js.map +1 -1
  131. package/dist/esm/functions/public/getExpiry.js.map +1 -1
  132. package/dist/esm/functions/public/getName.js +6 -4
  133. package/dist/esm/functions/public/getName.js.map +1 -1
  134. package/dist/esm/functions/public/getOwner.js.map +1 -1
  135. package/dist/esm/functions/public/getPrice.js.map +1 -1
  136. package/dist/esm/functions/public/getRecords.js +7 -5
  137. package/dist/esm/functions/public/getRecords.js.map +1 -1
  138. package/dist/esm/functions/public/getTextRecord.js +2 -1
  139. package/dist/esm/functions/public/getTextRecord.js.map +1 -1
  140. package/dist/esm/functions/public/getWrapperData.js.map +1 -1
  141. package/dist/esm/functions/public/multicallWrapper.js.map +1 -1
  142. package/dist/esm/functions/public/universalWrapper.js +6 -4
  143. package/dist/esm/functions/public/universalWrapper.js.map +1 -1
  144. package/dist/esm/functions/subgraph/client.js.map +1 -1
  145. package/dist/esm/functions/subgraph/getDecodedName.js.map +1 -1
  146. package/dist/esm/functions/subgraph/getNameHistory.js.map +1 -1
  147. package/dist/esm/functions/subgraph/getNamesForAddress.js.map +1 -1
  148. package/dist/esm/functions/subgraph/getSubnames.js.map +1 -1
  149. package/dist/esm/functions/wallet/clearRecords.js +3 -2
  150. package/dist/esm/functions/wallet/clearRecords.js.map +1 -1
  151. package/dist/esm/functions/wallet/commitName.js +3 -2
  152. package/dist/esm/functions/wallet/commitName.js.map +1 -1
  153. package/dist/esm/functions/wallet/createSubname.js +3 -2
  154. package/dist/esm/functions/wallet/createSubname.js.map +1 -1
  155. package/dist/esm/functions/wallet/deleteSubname.js +3 -2
  156. package/dist/esm/functions/wallet/deleteSubname.js.map +1 -1
  157. package/dist/esm/functions/wallet/registerName.js +3 -2
  158. package/dist/esm/functions/wallet/registerName.js.map +1 -1
  159. package/dist/esm/functions/wallet/renewNames.js +3 -2
  160. package/dist/esm/functions/wallet/renewNames.js.map +1 -1
  161. package/dist/esm/functions/wallet/setAbiRecord.js +3 -2
  162. package/dist/esm/functions/wallet/setAbiRecord.js.map +1 -1
  163. package/dist/esm/functions/wallet/setAddressRecord.js +3 -2
  164. package/dist/esm/functions/wallet/setAddressRecord.js.map +1 -1
  165. package/dist/esm/functions/wallet/setChildFuses.js +3 -2
  166. package/dist/esm/functions/wallet/setChildFuses.js.map +1 -1
  167. package/dist/esm/functions/wallet/setContentHashRecord.js +3 -2
  168. package/dist/esm/functions/wallet/setContentHashRecord.js.map +1 -1
  169. package/dist/esm/functions/wallet/setFuses.js +3 -2
  170. package/dist/esm/functions/wallet/setFuses.js.map +1 -1
  171. package/dist/esm/functions/wallet/setPrimaryName.js +3 -2
  172. package/dist/esm/functions/wallet/setPrimaryName.js.map +1 -1
  173. package/dist/esm/functions/wallet/setRecords.js +3 -2
  174. package/dist/esm/functions/wallet/setRecords.js.map +1 -1
  175. package/dist/esm/functions/wallet/setResolver.js +3 -2
  176. package/dist/esm/functions/wallet/setResolver.js.map +1 -1
  177. package/dist/esm/functions/wallet/setTextRecord.js +3 -2
  178. package/dist/esm/functions/wallet/setTextRecord.js.map +1 -1
  179. package/dist/esm/functions/wallet/transferName.js +3 -2
  180. package/dist/esm/functions/wallet/transferName.js.map +1 -1
  181. package/dist/esm/functions/wallet/unwrapName.js +3 -2
  182. package/dist/esm/functions/wallet/unwrapName.js.map +1 -1
  183. package/dist/esm/functions/wallet/wrapName.js +3 -2
  184. package/dist/esm/functions/wallet/wrapName.js.map +1 -1
  185. package/dist/esm/index.js +1 -1
  186. package/dist/esm/index.js.map +1 -1
  187. package/dist/esm/utils/checkSafeUniversalResolverData.js.map +1 -1
  188. package/dist/esm/utils/contentHash.js.map +1 -1
  189. package/dist/esm/utils/encoders/encodeAbi.js.map +1 -1
  190. package/dist/esm/utils/encoders/encodeSetAddr.js.map +1 -1
  191. package/dist/esm/utils/encoders/encodeSetContentHash.js.map +1 -1
  192. package/dist/esm/utils/fuses.js.map +1 -1
  193. package/dist/esm/utils/generateRecordCallArray.js.map +1 -1
  194. package/dist/esm/utils/getNameType.js.map +1 -1
  195. package/dist/esm/utils/hexEncodedName.js.map +1 -1
  196. package/dist/esm/utils/labels.js.map +1 -1
  197. package/dist/esm/utils/normalise.js.map +1 -1
  198. package/dist/esm/utils/normaliseCoinId.js.map +1 -1
  199. package/dist/esm/utils/ownerFromContract.js.map +1 -1
  200. package/dist/esm/utils/registerHelpers.js +6 -1
  201. package/dist/esm/utils/registerHelpers.js.map +1 -1
  202. package/dist/esm/utils/validation.js.map +1 -1
  203. package/dist/types/clients/decorators/public.d.ts +1 -1
  204. package/dist/types/clients/decorators/public.d.ts.map +1 -1
  205. package/dist/types/clients/decorators/wallet.d.ts +25 -25
  206. package/dist/types/clients/public.d.ts +2 -2
  207. package/dist/types/clients/subgraph.d.ts +1 -1
  208. package/dist/types/clients/wallet.d.ts +25 -25
  209. package/dist/types/contracts/consts.d.ts +32 -32
  210. package/dist/types/contracts/consts.d.ts.map +1 -1
  211. package/dist/types/contracts/index.d.ts +1 -1
  212. package/dist/types/contracts/index.d.ts.map +1 -1
  213. package/dist/types/contracts/universalResolver.d.ts +102 -0
  214. package/dist/types/contracts/universalResolver.d.ts.map +1 -1
  215. package/dist/types/errors/contracts.d.ts +6 -6
  216. package/dist/types/errors/contracts.d.ts.map +1 -1
  217. package/dist/types/errors/version.d.ts +1 -1
  218. package/dist/types/errors/version.d.ts.map +1 -1
  219. package/dist/types/errors/wallet.d.ts +0 -1
  220. package/dist/types/functions/dns/importDnsName.d.ts +6 -520
  221. package/dist/types/functions/dns/importDnsName.d.ts.map +1 -1
  222. package/dist/types/functions/public/getAbiRecord.d.ts +2 -2
  223. package/dist/types/functions/public/getAbiRecord.d.ts.map +1 -1
  224. package/dist/types/functions/public/getAddressRecord.d.ts +2 -2
  225. package/dist/types/functions/public/getAddressRecord.d.ts.map +1 -1
  226. package/dist/types/functions/public/getContentHashRecord.d.ts +2 -2
  227. package/dist/types/functions/public/getContentHashRecord.d.ts.map +1 -1
  228. package/dist/types/functions/public/getName.d.ts +1 -1
  229. package/dist/types/functions/public/getName.d.ts.map +1 -1
  230. package/dist/types/functions/public/getRecords.d.ts +1 -1
  231. package/dist/types/functions/public/getRecords.d.ts.map +1 -1
  232. package/dist/types/functions/public/getTextRecord.d.ts +2 -2
  233. package/dist/types/functions/public/getTextRecord.d.ts.map +1 -1
  234. package/dist/types/functions/public/universalWrapper.d.ts +1 -1
  235. package/dist/types/functions/public/universalWrapper.d.ts.map +1 -1
  236. package/dist/types/functions/wallet/clearRecords.d.ts +6 -520
  237. package/dist/types/functions/wallet/clearRecords.d.ts.map +1 -1
  238. package/dist/types/functions/wallet/commitName.d.ts +6 -520
  239. package/dist/types/functions/wallet/commitName.d.ts.map +1 -1
  240. package/dist/types/functions/wallet/createSubname.d.ts +6 -520
  241. package/dist/types/functions/wallet/createSubname.d.ts.map +1 -1
  242. package/dist/types/functions/wallet/deleteSubname.d.ts +6 -520
  243. package/dist/types/functions/wallet/deleteSubname.d.ts.map +1 -1
  244. package/dist/types/functions/wallet/registerName.d.ts +6 -520
  245. package/dist/types/functions/wallet/registerName.d.ts.map +1 -1
  246. package/dist/types/functions/wallet/renewNames.d.ts +6 -520
  247. package/dist/types/functions/wallet/renewNames.d.ts.map +1 -1
  248. package/dist/types/functions/wallet/setAbiRecord.d.ts +6 -520
  249. package/dist/types/functions/wallet/setAbiRecord.d.ts.map +1 -1
  250. package/dist/types/functions/wallet/setAddressRecord.d.ts +6 -520
  251. package/dist/types/functions/wallet/setAddressRecord.d.ts.map +1 -1
  252. package/dist/types/functions/wallet/setChildFuses.d.ts +6 -520
  253. package/dist/types/functions/wallet/setChildFuses.d.ts.map +1 -1
  254. package/dist/types/functions/wallet/setContentHashRecord.d.ts +6 -520
  255. package/dist/types/functions/wallet/setContentHashRecord.d.ts.map +1 -1
  256. package/dist/types/functions/wallet/setFuses.d.ts +6 -520
  257. package/dist/types/functions/wallet/setFuses.d.ts.map +1 -1
  258. package/dist/types/functions/wallet/setPrimaryName.d.ts +6 -520
  259. package/dist/types/functions/wallet/setPrimaryName.d.ts.map +1 -1
  260. package/dist/types/functions/wallet/setRecords.d.ts +6 -520
  261. package/dist/types/functions/wallet/setRecords.d.ts.map +1 -1
  262. package/dist/types/functions/wallet/setResolver.d.ts +6 -520
  263. package/dist/types/functions/wallet/setResolver.d.ts.map +1 -1
  264. package/dist/types/functions/wallet/setTextRecord.d.ts +6 -520
  265. package/dist/types/functions/wallet/setTextRecord.d.ts.map +1 -1
  266. package/dist/types/functions/wallet/transferName.d.ts +6 -520
  267. package/dist/types/functions/wallet/transferName.d.ts.map +1 -1
  268. package/dist/types/functions/wallet/unwrapName.d.ts +6 -520
  269. package/dist/types/functions/wallet/unwrapName.d.ts.map +1 -1
  270. package/dist/types/functions/wallet/wrapName.d.ts +6 -520
  271. package/dist/types/functions/wallet/wrapName.d.ts.map +1 -1
  272. package/dist/types/index.d.ts +1 -1
  273. package/dist/types/index.d.ts.map +1 -1
  274. package/dist/types/utils/dns/misc.d.ts +1 -1
  275. package/dist/types/utils/dns/misc.d.ts.map +1 -1
  276. package/dist/types/utils/registerHelpers.d.ts.map +1 -1
  277. package/package.json +4 -4
  278. package/src/clients/decorators/public.ts +1 -0
  279. package/src/contracts/addEnsContracts.ts +7 -7
  280. package/src/contracts/consts.ts +33 -45
  281. package/src/contracts/index.ts +1 -1
  282. package/src/contracts/universalResolver.ts +12 -0
  283. package/src/errors/contracts.ts +12 -12
  284. package/src/errors/version.ts +1 -1
  285. package/src/functions/dns/importDnsName.ts +6 -6
  286. package/src/functions/public/getAbiRecord.ts +6 -2
  287. package/src/functions/public/getAddressRecord.ts +7 -2
  288. package/src/functions/public/getContentHashRecord.ts +6 -2
  289. package/src/functions/public/getName.ts +9 -4
  290. package/src/functions/public/getRecords.ts +10 -4
  291. package/src/functions/public/getTextRecord.ts +6 -2
  292. package/src/functions/public/universalWrapper.ts +12 -4
  293. package/src/functions/wallet/clearRecords.ts +6 -5
  294. package/src/functions/wallet/commitName.ts +6 -5
  295. package/src/functions/wallet/createSubname.ts +6 -5
  296. package/src/functions/wallet/deleteSubname.ts +6 -5
  297. package/src/functions/wallet/registerName.ts +6 -5
  298. package/src/functions/wallet/renewNames.ts +6 -5
  299. package/src/functions/wallet/setAbiRecord.ts +6 -5
  300. package/src/functions/wallet/setAddressRecord.ts +6 -5
  301. package/src/functions/wallet/setChildFuses.ts +6 -5
  302. package/src/functions/wallet/setContentHashRecord.ts +6 -5
  303. package/src/functions/wallet/setFuses.ts +6 -5
  304. package/src/functions/wallet/setPrimaryName.ts +7 -6
  305. package/src/functions/wallet/setRecords.ts +6 -5
  306. package/src/functions/wallet/setResolver.ts +6 -5
  307. package/src/functions/wallet/setTextRecord.ts +6 -5
  308. package/src/functions/wallet/transferName.ts +7 -6
  309. package/src/functions/wallet/unwrapName.ts +6 -5
  310. package/src/functions/wallet/wrapName.ts +7 -6
  311. package/src/index.ts +1 -1
  312. package/src/utils/registerHelpers.ts +8 -1
  313. package/dist/cjs/utils/generateSupportedContentTypes.test.ts.js +0 -20
  314. package/dist/cjs/utils/generateSupportedContentTypes.test.ts.js.map +0 -1
  315. package/dist/esm/utils/generateSupportedContentTypes.test.ts.js +0 -18
  316. package/dist/esm/utils/generateSupportedContentTypes.test.ts.js.map +0 -1
  317. package/dist/types/utils/generateSupportedContentTypes.test.ts.d.ts +0 -2
  318. package/dist/types/utils/generateSupportedContentTypes.test.ts.d.ts.map +0 -1
  319. package/src/@types/@ensdomains/ens-contracts.d.ts +0 -1
  320. package/src/ABIs/Multicall.json +0 -452
  321. package/src/utils/generateSupportedContentTypes.test.ts.ts +0 -24
@@ -1,5 +1,5 @@
1
- import { type Account, type Address, type Hash, type SendTransactionParameters, type Transport } from 'viem';
2
- import type { ChainWithEns, WalletWithEns } from '../../contracts/consts.js';
1
+ import { type Account, type Address, type Hash, type Transport } from 'viem';
2
+ import type { ChainWithEns, ClientWithAccount } from '../../contracts/consts.js';
3
3
  import type { AnyDate, Prettify, SimpleTransactionRequest, WriteTransactionParameters } from '../../types.js';
4
4
  import { type EncodeFusesInputObject } from '../../utils/fuses.js';
5
5
  type BaseCreateSubnameDataParameters = {
@@ -30,267 +30,10 @@ export type CreateSubnameDataParameters = BaseCreateSubnameDataParameters & (Reg
30
30
  export type CreateSubnameDataReturnType = SimpleTransactionRequest;
31
31
  export type CreateSubnameParameters<TChain extends ChainWithEns, TAccount extends Account | undefined, TChainOverride extends ChainWithEns | undefined> = Prettify<CreateSubnameDataParameters & WriteTransactionParameters<TChain, TAccount, TChainOverride>>;
32
32
  export type CreateSubnameReturnType = Hash;
33
- export declare const makeFunctionData: <TChain extends ChainWithEns, TAccount extends Account | undefined>(wallet: {
34
- account: TAccount;
35
- batch?: {
36
- multicall?: boolean | {
37
- batchSize?: number | undefined;
38
- wait?: number | undefined;
39
- } | undefined;
40
- } | undefined;
41
- cacheTime: number;
42
- chain: TChain;
43
- key: string;
44
- name: string;
45
- pollingInterval: number;
46
- request: import("viem").EIP1193RequestFn<import("viem").WalletRpcSchema>;
47
- transport: import("viem").TransportConfig<string, import("viem").EIP1193RequestFn> & Record<string, any>;
48
- type: string;
49
- uid: string;
50
- addChain: (args: import("viem").AddChainParameters) => Promise<void>;
51
- deployContract: <const TAbi extends import("viem").Abi | readonly unknown[], TChainOverride extends import("viem").Chain | undefined>(args: import("viem").DeployContractParameters<TAbi, TChain, TAccount, TChainOverride>) => Promise<`0x${string}`>;
52
- getAddresses: () => Promise<import("viem").GetAddressesReturnType>;
53
- getChainId: () => Promise<number>;
54
- getPermissions: () => Promise<import("viem").GetPermissionsReturnType>;
55
- prepareTransactionRequest: <TChainOverride_1 extends import("viem").Chain | undefined>(args: import("viem").PrepareTransactionRequestParameters<TChain, TAccount, TChainOverride_1>) => Promise<import("viem").PrepareTransactionRequestReturnType>;
56
- requestAddresses: () => Promise<import("viem").RequestAddressesReturnType>;
57
- requestPermissions: (args: {
58
- [x: string]: Record<string, any>;
59
- eth_accounts: Record<string, any>;
60
- }) => Promise<import("viem").RequestPermissionsReturnType>;
61
- sendRawTransaction: (args: import("viem/actions").SendRawTransactionParameters) => Promise<`0x${string}`>;
62
- sendTransaction: <TChainOverride_2 extends import("viem").Chain | undefined>(args: SendTransactionParameters<TChain, TAccount, TChainOverride_2>) => Promise<`0x${string}`>;
63
- signMessage: (args: import("viem").SignMessageParameters<TAccount>) => Promise<`0x${string}`>;
64
- signTransaction: <TChainOverride_3 extends import("viem").Chain | undefined>(args: import("viem/actions").SignTransactionParameters<TChain, TAccount, TChainOverride_3>) => Promise<`0x${string}`>;
65
- signTypedData: <const TTypedData extends {
66
- [key: string]: unknown;
67
- } | {
68
- [x: string]: readonly import("viem").TypedDataParameter[];
69
- [x: `string[${string}]`]: undefined;
70
- [x: `function[${string}]`]: undefined;
71
- [x: `address[${string}]`]: undefined;
72
- [x: `bool[${string}]`]: undefined;
73
- [x: `bytes[${string}]`]: undefined;
74
- [x: `bytes1[${string}]`]: undefined;
75
- [x: `bytes2[${string}]`]: undefined;
76
- [x: `bytes4[${string}]`]: undefined;
77
- [x: `bytes8[${string}]`]: undefined;
78
- [x: `bytes10[${string}]`]: undefined;
79
- [x: `bytes16[${string}]`]: undefined;
80
- [x: `bytes3[${string}]`]: undefined;
81
- [x: `bytes5[${string}]`]: undefined;
82
- [x: `bytes6[${string}]`]: undefined;
83
- [x: `bytes7[${string}]`]: undefined;
84
- [x: `bytes9[${string}]`]: undefined;
85
- [x: `bytes11[${string}]`]: undefined;
86
- [x: `bytes12[${string}]`]: undefined;
87
- [x: `bytes13[${string}]`]: undefined;
88
- [x: `bytes14[${string}]`]: undefined;
89
- [x: `bytes15[${string}]`]: undefined;
90
- [x: `bytes17[${string}]`]: undefined;
91
- [x: `bytes18[${string}]`]: undefined;
92
- [x: `bytes19[${string}]`]: undefined;
93
- [x: `bytes20[${string}]`]: undefined;
94
- [x: `bytes21[${string}]`]: undefined;
95
- [x: `bytes22[${string}]`]: undefined;
96
- [x: `bytes23[${string}]`]: undefined;
97
- [x: `bytes24[${string}]`]: undefined;
98
- [x: `bytes25[${string}]`]: undefined;
99
- [x: `bytes26[${string}]`]: undefined;
100
- [x: `bytes27[${string}]`]: undefined;
101
- [x: `bytes28[${string}]`]: undefined;
102
- [x: `bytes29[${string}]`]: undefined;
103
- [x: `bytes30[${string}]`]: undefined;
104
- [x: `bytes31[${string}]`]: undefined;
105
- [x: `bytes32[${string}]`]: undefined;
106
- [x: `int[${string}]`]: undefined;
107
- [x: `int8[${string}]`]: undefined;
108
- [x: `int16[${string}]`]: undefined;
109
- [x: `int24[${string}]`]: undefined;
110
- [x: `int32[${string}]`]: undefined;
111
- [x: `int40[${string}]`]: undefined;
112
- [x: `int48[${string}]`]: undefined;
113
- [x: `int56[${string}]`]: undefined;
114
- [x: `int64[${string}]`]: undefined;
115
- [x: `int72[${string}]`]: undefined;
116
- [x: `int80[${string}]`]: undefined;
117
- [x: `int88[${string}]`]: undefined;
118
- [x: `int96[${string}]`]: undefined;
119
- [x: `int104[${string}]`]: undefined;
120
- [x: `int112[${string}]`]: undefined;
121
- [x: `int120[${string}]`]: undefined;
122
- [x: `int128[${string}]`]: undefined;
123
- [x: `int136[${string}]`]: undefined;
124
- [x: `int144[${string}]`]: undefined;
125
- [x: `int152[${string}]`]: undefined;
126
- [x: `int160[${string}]`]: undefined;
127
- [x: `int168[${string}]`]: undefined;
128
- [x: `int176[${string}]`]: undefined;
129
- [x: `int184[${string}]`]: undefined;
130
- [x: `int192[${string}]`]: undefined;
131
- [x: `int200[${string}]`]: undefined;
132
- [x: `int208[${string}]`]: undefined;
133
- [x: `int216[${string}]`]: undefined;
134
- [x: `int224[${string}]`]: undefined;
135
- [x: `int232[${string}]`]: undefined;
136
- [x: `int240[${string}]`]: undefined;
137
- [x: `int248[${string}]`]: undefined;
138
- [x: `int256[${string}]`]: undefined;
139
- [x: `uint[${string}]`]: undefined;
140
- [x: `uint8[${string}]`]: undefined;
141
- [x: `uint16[${string}]`]: undefined;
142
- [x: `uint24[${string}]`]: undefined;
143
- [x: `uint32[${string}]`]: undefined;
144
- [x: `uint40[${string}]`]: undefined;
145
- [x: `uint48[${string}]`]: undefined;
146
- [x: `uint56[${string}]`]: undefined;
147
- [x: `uint64[${string}]`]: undefined;
148
- [x: `uint72[${string}]`]: undefined;
149
- [x: `uint80[${string}]`]: undefined;
150
- [x: `uint88[${string}]`]: undefined;
151
- [x: `uint96[${string}]`]: undefined;
152
- [x: `uint104[${string}]`]: undefined;
153
- [x: `uint112[${string}]`]: undefined;
154
- [x: `uint120[${string}]`]: undefined;
155
- [x: `uint128[${string}]`]: undefined;
156
- [x: `uint136[${string}]`]: undefined;
157
- [x: `uint144[${string}]`]: undefined;
158
- [x: `uint152[${string}]`]: undefined;
159
- [x: `uint160[${string}]`]: undefined;
160
- [x: `uint168[${string}]`]: undefined;
161
- [x: `uint176[${string}]`]: undefined;
162
- [x: `uint184[${string}]`]: undefined;
163
- [x: `uint192[${string}]`]: undefined;
164
- [x: `uint200[${string}]`]: undefined;
165
- [x: `uint208[${string}]`]: undefined;
166
- [x: `uint216[${string}]`]: undefined;
167
- [x: `uint224[${string}]`]: undefined;
168
- [x: `uint232[${string}]`]: undefined;
169
- [x: `uint240[${string}]`]: undefined;
170
- [x: `uint248[${string}]`]: undefined;
171
- [x: `uint256[${string}]`]: undefined;
172
- string?: undefined;
173
- address?: undefined;
174
- bool?: undefined;
175
- bytes?: undefined;
176
- bytes1?: undefined;
177
- bytes2?: undefined;
178
- bytes4?: undefined;
179
- bytes8?: undefined;
180
- bytes10?: undefined;
181
- bytes16?: undefined;
182
- bytes3?: undefined;
183
- bytes5?: undefined;
184
- bytes6?: undefined;
185
- bytes7?: undefined;
186
- bytes9?: undefined;
187
- bytes11?: undefined;
188
- bytes12?: undefined;
189
- bytes13?: undefined;
190
- bytes14?: undefined;
191
- bytes15?: undefined;
192
- bytes17?: undefined;
193
- bytes18?: undefined;
194
- bytes19?: undefined;
195
- bytes20?: undefined;
196
- bytes21?: undefined;
197
- bytes22?: undefined;
198
- bytes23?: undefined;
199
- bytes24?: undefined;
200
- bytes25?: undefined;
201
- bytes26?: undefined;
202
- bytes27?: undefined;
203
- bytes28?: undefined;
204
- bytes29?: undefined;
205
- bytes30?: undefined;
206
- bytes31?: undefined;
207
- bytes32?: undefined;
208
- int8?: undefined;
209
- int16?: undefined;
210
- int24?: undefined;
211
- int32?: undefined;
212
- int40?: undefined;
213
- int48?: undefined;
214
- int56?: undefined;
215
- int64?: undefined;
216
- int72?: undefined;
217
- int80?: undefined;
218
- int88?: undefined;
219
- int96?: undefined;
220
- int104?: undefined;
221
- int112?: undefined;
222
- int120?: undefined;
223
- int128?: undefined;
224
- int136?: undefined;
225
- int144?: undefined;
226
- int152?: undefined;
227
- int160?: undefined;
228
- int168?: undefined;
229
- int176?: undefined;
230
- int184?: undefined;
231
- int192?: undefined;
232
- int200?: undefined;
233
- int208?: undefined;
234
- int216?: undefined;
235
- int224?: undefined;
236
- int232?: undefined;
237
- int240?: undefined;
238
- int248?: undefined;
239
- int256?: undefined;
240
- uint8?: undefined;
241
- uint16?: undefined;
242
- uint24?: undefined;
243
- uint32?: undefined;
244
- uint40?: undefined;
245
- uint48?: undefined;
246
- uint56?: undefined;
247
- uint64?: undefined;
248
- uint72?: undefined;
249
- uint80?: undefined;
250
- uint88?: undefined;
251
- uint96?: undefined;
252
- uint104?: undefined;
253
- uint112?: undefined;
254
- uint120?: undefined;
255
- uint128?: undefined;
256
- uint136?: undefined;
257
- uint144?: undefined;
258
- uint152?: undefined;
259
- uint160?: undefined;
260
- uint168?: undefined;
261
- uint176?: undefined;
262
- uint184?: undefined;
263
- uint192?: undefined;
264
- uint200?: undefined;
265
- uint208?: undefined;
266
- uint216?: undefined;
267
- uint224?: undefined;
268
- uint232?: undefined;
269
- uint240?: undefined;
270
- uint248?: undefined;
271
- uint256?: undefined;
272
- }, TPrimaryType extends string>(args: import("viem").SignTypedDataParameters<TTypedData, TPrimaryType, TAccount>) => Promise<`0x${string}`>;
273
- switchChain: (args: import("viem").SwitchChainParameters) => Promise<void>;
274
- watchAsset: (args: import("viem").WatchAssetParams) => Promise<boolean>;
275
- writeContract: <const TAbi_1 extends import("viem").Abi | readonly unknown[], TFunctionName extends string, TChainOverride_4 extends import("viem").Chain | undefined>(args: import("viem").WriteContractParameters<TAbi_1, TFunctionName, TChain, TAccount, TChainOverride_4>) => Promise<`0x${string}`>;
276
- extend: <const client extends {
277
- [x: string]: unknown;
278
- account?: undefined;
279
- batch?: undefined;
280
- cacheTime?: undefined;
281
- chain?: undefined;
282
- key?: undefined;
283
- name?: undefined;
284
- pollingInterval?: undefined;
285
- request?: undefined;
286
- transport?: undefined;
287
- type?: undefined;
288
- uid?: undefined;
289
- }>(fn: (client: import("viem").Client<Transport, TChain, TAccount, import("viem").WalletRpcSchema, import("viem").WalletActions<TChain, TAccount>>) => client) => import("viem").Client<Transport, TChain, TAccount, import("viem").WalletRpcSchema, { [K in keyof client]: client[K]; } & import("viem").WalletActions<TChain, TAccount>>;
290
- }, { name, contract, owner, resolverAddress, expiry, fuses, }: CreateSubnameDataParameters) => CreateSubnameDataReturnType;
33
+ export declare const makeFunctionData: <TChain extends ChainWithEns, TAccount extends Account | undefined>(wallet: ClientWithAccount<Transport, TChain, TAccount>, { name, contract, owner, resolverAddress, expiry, fuses, }: CreateSubnameDataParameters) => CreateSubnameDataReturnType;
291
34
  /**
292
35
  * Creates a subname
293
- * @param wallet - {@link WalletWithEns}
36
+ * @param wallet - {@link ClientWithAccount}
294
37
  * @param parameters - {@link CreateSubnameParameters}
295
38
  * @returns Transaction hash. {@link CreateSubnameReturnType}
296
39
  *
@@ -311,266 +54,9 @@ export declare const makeFunctionData: <TChain extends ChainWithEns, TAccount ex
311
54
  * })
312
55
  * // 0x...
313
56
  */
314
- declare function createSubname<TChain extends ChainWithEns, TAccount extends Account | undefined, TChainOverride extends ChainWithEns | undefined = ChainWithEns>(wallet: WalletWithEns<Transport, TChain, TAccount>, { name, contract, owner, resolverAddress, expiry, fuses, ...txArgs }: CreateSubnameParameters<TChain, TAccount, TChainOverride>): Promise<CreateSubnameReturnType>;
57
+ declare function createSubname<TChain extends ChainWithEns, TAccount extends Account | undefined, TChainOverride extends ChainWithEns | undefined = ChainWithEns>(wallet: ClientWithAccount<Transport, TChain, TAccount>, { name, contract, owner, resolverAddress, expiry, fuses, ...txArgs }: CreateSubnameParameters<TChain, TAccount, TChainOverride>): Promise<CreateSubnameReturnType>;
315
58
  declare namespace createSubname {
316
- var makeFunctionData: <TChain extends ChainWithEns, TAccount extends Account | undefined>(wallet: {
317
- account: TAccount;
318
- batch?: {
319
- multicall?: boolean | {
320
- batchSize?: number | undefined;
321
- wait?: number | undefined;
322
- } | undefined;
323
- } | undefined;
324
- cacheTime: number;
325
- chain: TChain;
326
- key: string;
327
- name: string;
328
- pollingInterval: number;
329
- request: import("viem").EIP1193RequestFn<import("viem").WalletRpcSchema>;
330
- transport: import("viem").TransportConfig<string, import("viem").EIP1193RequestFn> & Record<string, any>;
331
- type: string;
332
- uid: string;
333
- addChain: (args: import("viem").AddChainParameters) => Promise<void>;
334
- deployContract: <const TAbi extends import("viem").Abi | readonly unknown[], TChainOverride extends import("viem").Chain | undefined>(args: import("viem").DeployContractParameters<TAbi, TChain, TAccount, TChainOverride>) => Promise<`0x${string}`>;
335
- getAddresses: () => Promise<import("viem").GetAddressesReturnType>;
336
- getChainId: () => Promise<number>;
337
- getPermissions: () => Promise<import("viem").GetPermissionsReturnType>;
338
- prepareTransactionRequest: <TChainOverride_1 extends import("viem").Chain | undefined>(args: import("viem").PrepareTransactionRequestParameters<TChain, TAccount, TChainOverride_1>) => Promise<import("viem").PrepareTransactionRequestReturnType>;
339
- requestAddresses: () => Promise<import("viem").RequestAddressesReturnType>;
340
- requestPermissions: (args: {
341
- [x: string]: Record<string, any>;
342
- eth_accounts: Record<string, any>;
343
- }) => Promise<import("viem").RequestPermissionsReturnType>;
344
- sendRawTransaction: (args: import("viem/actions").SendRawTransactionParameters) => Promise<`0x${string}`>;
345
- sendTransaction: <TChainOverride_2 extends import("viem").Chain | undefined>(args: SendTransactionParameters<TChain, TAccount, TChainOverride_2>) => Promise<`0x${string}`>;
346
- signMessage: (args: import("viem").SignMessageParameters<TAccount>) => Promise<`0x${string}`>;
347
- signTransaction: <TChainOverride_3 extends import("viem").Chain | undefined>(args: import("viem/actions").SignTransactionParameters<TChain, TAccount, TChainOverride_3>) => Promise<`0x${string}`>;
348
- signTypedData: <const TTypedData extends {
349
- [key: string]: unknown;
350
- } | {
351
- [x: string]: readonly import("viem").TypedDataParameter[];
352
- [x: `string[${string}]`]: undefined;
353
- [x: `function[${string}]`]: undefined;
354
- [x: `address[${string}]`]: undefined;
355
- [x: `bool[${string}]`]: undefined;
356
- [x: `bytes[${string}]`]: undefined;
357
- [x: `bytes1[${string}]`]: undefined;
358
- [x: `bytes2[${string}]`]: undefined;
359
- [x: `bytes4[${string}]`]: undefined;
360
- [x: `bytes8[${string}]`]: undefined;
361
- [x: `bytes10[${string}]`]: undefined;
362
- [x: `bytes16[${string}]`]: undefined;
363
- [x: `bytes3[${string}]`]: undefined;
364
- [x: `bytes5[${string}]`]: undefined;
365
- [x: `bytes6[${string}]`]: undefined;
366
- [x: `bytes7[${string}]`]: undefined;
367
- [x: `bytes9[${string}]`]: undefined;
368
- [x: `bytes11[${string}]`]: undefined;
369
- [x: `bytes12[${string}]`]: undefined;
370
- [x: `bytes13[${string}]`]: undefined;
371
- [x: `bytes14[${string}]`]: undefined;
372
- [x: `bytes15[${string}]`]: undefined;
373
- [x: `bytes17[${string}]`]: undefined;
374
- [x: `bytes18[${string}]`]: undefined;
375
- [x: `bytes19[${string}]`]: undefined;
376
- [x: `bytes20[${string}]`]: undefined;
377
- [x: `bytes21[${string}]`]: undefined;
378
- [x: `bytes22[${string}]`]: undefined;
379
- [x: `bytes23[${string}]`]: undefined;
380
- [x: `bytes24[${string}]`]: undefined;
381
- [x: `bytes25[${string}]`]: undefined;
382
- [x: `bytes26[${string}]`]: undefined;
383
- [x: `bytes27[${string}]`]: undefined;
384
- [x: `bytes28[${string}]`]: undefined;
385
- [x: `bytes29[${string}]`]: undefined;
386
- [x: `bytes30[${string}]`]: undefined;
387
- [x: `bytes31[${string}]`]: undefined;
388
- [x: `bytes32[${string}]`]: undefined;
389
- [x: `int[${string}]`]: undefined;
390
- [x: `int8[${string}]`]: undefined;
391
- [x: `int16[${string}]`]: undefined;
392
- [x: `int24[${string}]`]: undefined;
393
- [x: `int32[${string}]`]: undefined;
394
- [x: `int40[${string}]`]: undefined;
395
- [x: `int48[${string}]`]: undefined;
396
- [x: `int56[${string}]`]: undefined;
397
- [x: `int64[${string}]`]: undefined;
398
- [x: `int72[${string}]`]: undefined;
399
- [x: `int80[${string}]`]: undefined;
400
- [x: `int88[${string}]`]: undefined;
401
- [x: `int96[${string}]`]: undefined;
402
- [x: `int104[${string}]`]: undefined;
403
- [x: `int112[${string}]`]: undefined;
404
- [x: `int120[${string}]`]: undefined;
405
- [x: `int128[${string}]`]: undefined;
406
- [x: `int136[${string}]`]: undefined;
407
- [x: `int144[${string}]`]: undefined;
408
- [x: `int152[${string}]`]: undefined;
409
- [x: `int160[${string}]`]: undefined;
410
- [x: `int168[${string}]`]: undefined;
411
- [x: `int176[${string}]`]: undefined;
412
- [x: `int184[${string}]`]: undefined;
413
- [x: `int192[${string}]`]: undefined;
414
- [x: `int200[${string}]`]: undefined;
415
- [x: `int208[${string}]`]: undefined;
416
- [x: `int216[${string}]`]: undefined;
417
- [x: `int224[${string}]`]: undefined;
418
- [x: `int232[${string}]`]: undefined;
419
- [x: `int240[${string}]`]: undefined;
420
- [x: `int248[${string}]`]: undefined;
421
- [x: `int256[${string}]`]: undefined;
422
- [x: `uint[${string}]`]: undefined;
423
- [x: `uint8[${string}]`]: undefined;
424
- [x: `uint16[${string}]`]: undefined;
425
- [x: `uint24[${string}]`]: undefined;
426
- [x: `uint32[${string}]`]: undefined;
427
- [x: `uint40[${string}]`]: undefined;
428
- [x: `uint48[${string}]`]: undefined;
429
- [x: `uint56[${string}]`]: undefined;
430
- [x: `uint64[${string}]`]: undefined;
431
- [x: `uint72[${string}]`]: undefined;
432
- [x: `uint80[${string}]`]: undefined;
433
- [x: `uint88[${string}]`]: undefined;
434
- [x: `uint96[${string}]`]: undefined;
435
- [x: `uint104[${string}]`]: undefined;
436
- [x: `uint112[${string}]`]: undefined;
437
- [x: `uint120[${string}]`]: undefined;
438
- [x: `uint128[${string}]`]: undefined;
439
- [x: `uint136[${string}]`]: undefined;
440
- [x: `uint144[${string}]`]: undefined;
441
- [x: `uint152[${string}]`]: undefined;
442
- [x: `uint160[${string}]`]: undefined;
443
- [x: `uint168[${string}]`]: undefined;
444
- [x: `uint176[${string}]`]: undefined;
445
- [x: `uint184[${string}]`]: undefined;
446
- [x: `uint192[${string}]`]: undefined;
447
- [x: `uint200[${string}]`]: undefined;
448
- [x: `uint208[${string}]`]: undefined;
449
- [x: `uint216[${string}]`]: undefined;
450
- [x: `uint224[${string}]`]: undefined;
451
- [x: `uint232[${string}]`]: undefined;
452
- [x: `uint240[${string}]`]: undefined;
453
- [x: `uint248[${string}]`]: undefined;
454
- [x: `uint256[${string}]`]: undefined;
455
- string?: undefined;
456
- address?: undefined;
457
- bool?: undefined;
458
- bytes?: undefined;
459
- bytes1?: undefined;
460
- bytes2?: undefined;
461
- bytes4?: undefined;
462
- bytes8?: undefined;
463
- bytes10?: undefined;
464
- bytes16?: undefined;
465
- bytes3?: undefined;
466
- bytes5?: undefined;
467
- bytes6?: undefined;
468
- bytes7?: undefined;
469
- bytes9?: undefined;
470
- bytes11?: undefined;
471
- bytes12?: undefined;
472
- bytes13?: undefined;
473
- bytes14?: undefined;
474
- bytes15?: undefined;
475
- bytes17?: undefined;
476
- bytes18?: undefined;
477
- bytes19?: undefined;
478
- bytes20?: undefined;
479
- bytes21?: undefined;
480
- bytes22?: undefined;
481
- bytes23?: undefined;
482
- bytes24?: undefined;
483
- bytes25?: undefined;
484
- bytes26?: undefined;
485
- bytes27?: undefined;
486
- bytes28?: undefined;
487
- bytes29?: undefined;
488
- bytes30?: undefined;
489
- bytes31?: undefined;
490
- bytes32?: undefined;
491
- int8?: undefined;
492
- int16?: undefined;
493
- int24?: undefined;
494
- int32?: undefined;
495
- int40?: undefined;
496
- int48?: undefined;
497
- int56?: undefined;
498
- int64?: undefined;
499
- int72?: undefined;
500
- int80?: undefined;
501
- int88?: undefined;
502
- int96?: undefined;
503
- int104?: undefined;
504
- int112?: undefined;
505
- int120?: undefined;
506
- int128?: undefined;
507
- int136?: undefined;
508
- int144?: undefined;
509
- int152?: undefined;
510
- int160?: undefined;
511
- int168?: undefined;
512
- int176?: undefined;
513
- int184?: undefined;
514
- int192?: undefined;
515
- int200?: undefined;
516
- int208?: undefined;
517
- int216?: undefined;
518
- int224?: undefined;
519
- int232?: undefined;
520
- int240?: undefined;
521
- int248?: undefined;
522
- int256?: undefined;
523
- uint8?: undefined;
524
- uint16?: undefined;
525
- uint24?: undefined;
526
- uint32?: undefined;
527
- uint40?: undefined;
528
- uint48?: undefined;
529
- uint56?: undefined;
530
- uint64?: undefined;
531
- uint72?: undefined;
532
- uint80?: undefined;
533
- uint88?: undefined;
534
- uint96?: undefined;
535
- uint104?: undefined;
536
- uint112?: undefined;
537
- uint120?: undefined;
538
- uint128?: undefined;
539
- uint136?: undefined;
540
- uint144?: undefined;
541
- uint152?: undefined;
542
- uint160?: undefined;
543
- uint168?: undefined;
544
- uint176?: undefined;
545
- uint184?: undefined;
546
- uint192?: undefined;
547
- uint200?: undefined;
548
- uint208?: undefined;
549
- uint216?: undefined;
550
- uint224?: undefined;
551
- uint232?: undefined;
552
- uint240?: undefined;
553
- uint248?: undefined;
554
- uint256?: undefined;
555
- }, TPrimaryType extends string>(args: import("viem").SignTypedDataParameters<TTypedData, TPrimaryType, TAccount>) => Promise<`0x${string}`>;
556
- switchChain: (args: import("viem").SwitchChainParameters) => Promise<void>;
557
- watchAsset: (args: import("viem").WatchAssetParams) => Promise<boolean>;
558
- writeContract: <const TAbi_1 extends import("viem").Abi | readonly unknown[], TFunctionName extends string, TChainOverride_4 extends import("viem").Chain | undefined>(args: import("viem").WriteContractParameters<TAbi_1, TFunctionName, TChain, TAccount, TChainOverride_4>) => Promise<`0x${string}`>;
559
- extend: <const client extends {
560
- [x: string]: unknown;
561
- account?: undefined;
562
- batch?: undefined;
563
- cacheTime?: undefined;
564
- chain?: undefined;
565
- key?: undefined;
566
- name?: undefined;
567
- pollingInterval?: undefined;
568
- request?: undefined;
569
- transport?: undefined;
570
- type?: undefined;
571
- uid?: undefined;
572
- }>(fn: (client: import("viem").Client<Transport, TChain, TAccount, import("viem").WalletRpcSchema, import("viem").WalletActions<TChain, TAccount>>) => client) => import("viem").Client<Transport, TChain, TAccount, import("viem").WalletRpcSchema, { [K in keyof client]: client[K]; } & import("viem").WalletActions<TChain, TAccount>>;
573
- }, { name, contract, owner, resolverAddress, expiry, fuses, }: CreateSubnameDataParameters) => SimpleTransactionRequest;
59
+ var makeFunctionData: <TChain extends ChainWithEns, TAccount extends Account | undefined>(wallet: ClientWithAccount<Transport, TChain, TAccount>, { name, contract, owner, resolverAddress, expiry, fuses, }: CreateSubnameDataParameters) => SimpleTransactionRequest;
574
60
  }
575
61
  export default createSubname;
576
62
  //# sourceMappingURL=createSubname.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createSubname.d.ts","sourceRoot":"","sources":["../../../../src/functions/wallet/createSubname.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,IAAI,EACT,KAAK,yBAAyB,EAC9B,KAAK,SAAS,EACf,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAQ5E,OAAO,KAAK,EACV,OAAO,EACP,QAAQ,EACR,wBAAwB,EACxB,0BAA0B,EAC3B,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAe,KAAK,sBAAsB,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