@ensdomains/ensjs 3.0.0-beta.4 → 3.0.0-beta.6

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 (346) hide show
  1. package/dist/cjs/clients/decorators/wallet.js +2 -0
  2. package/dist/cjs/clients/decorators/wallet.js.map +1 -1
  3. package/dist/cjs/contracts/consts.js +1 -1
  4. package/dist/cjs/errors/utils.js +13 -1
  5. package/dist/cjs/errors/utils.js.map +1 -1
  6. package/dist/cjs/errors/version.js +1 -1
  7. package/dist/cjs/functions/dns/getDnsImportData.js.map +1 -1
  8. package/dist/cjs/functions/dns/importDnsName.js.map +1 -1
  9. package/dist/cjs/functions/public/_getAddr.js +15 -13
  10. package/dist/cjs/functions/public/_getAddr.js.map +1 -1
  11. package/dist/cjs/functions/public/batch.js.map +1 -1
  12. package/dist/cjs/functions/public/getAbiRecord.js.map +1 -1
  13. package/dist/cjs/functions/public/getAddressRecord.js.map +1 -1
  14. package/dist/cjs/functions/public/getAvailable.js.map +1 -1
  15. package/dist/cjs/functions/public/getContentHashRecord.js.map +1 -1
  16. package/dist/cjs/functions/public/getExpiry.js.map +1 -1
  17. package/dist/cjs/functions/public/getName.js.map +1 -1
  18. package/dist/cjs/functions/public/getOwner.js.map +1 -1
  19. package/dist/cjs/functions/public/getPrice.js.map +1 -1
  20. package/dist/cjs/functions/public/getRecords.js +51 -37
  21. package/dist/cjs/functions/public/getRecords.js.map +1 -1
  22. package/dist/cjs/functions/public/getResolver.js.map +1 -1
  23. package/dist/cjs/functions/public/getSupportedInterfaces.js.map +1 -1
  24. package/dist/cjs/functions/public/getTextRecord.js.map +1 -1
  25. package/dist/cjs/functions/public/getWrapperData.js.map +1 -1
  26. package/dist/cjs/functions/public/getWrapperName.js.map +1 -1
  27. package/dist/cjs/functions/subgraph/getDecodedName.js.map +1 -1
  28. package/dist/cjs/functions/subgraph/getNameHistory.js.map +1 -1
  29. package/dist/cjs/functions/subgraph/getNamesForAddress.js +17 -10
  30. package/dist/cjs/functions/subgraph/getNamesForAddress.js.map +1 -1
  31. package/dist/cjs/functions/subgraph/getSubgraphRecords.js +34 -26
  32. package/dist/cjs/functions/subgraph/getSubgraphRecords.js.map +1 -1
  33. package/dist/cjs/functions/subgraph/getSubgraphRegistrant.js.map +1 -1
  34. package/dist/cjs/functions/subgraph/getSubnames.js.map +1 -1
  35. package/dist/cjs/functions/wallet/clearRecords.js +26 -0
  36. package/dist/cjs/functions/wallet/clearRecords.js.map +1 -0
  37. package/dist/cjs/functions/wallet/commitName.js.map +1 -1
  38. package/dist/cjs/functions/wallet/createSubname.js.map +1 -1
  39. package/dist/cjs/functions/wallet/deleteSubname.js.map +1 -1
  40. package/dist/cjs/functions/wallet/registerName.js.map +1 -1
  41. package/dist/cjs/functions/wallet/renewNames.js.map +1 -1
  42. package/dist/cjs/functions/wallet/setAbiRecord.js.map +1 -1
  43. package/dist/cjs/functions/wallet/setAddressRecord.js.map +1 -1
  44. package/dist/cjs/functions/wallet/setChildFuses.js.map +1 -1
  45. package/dist/cjs/functions/wallet/setContentHashRecord.js.map +1 -1
  46. package/dist/cjs/functions/wallet/setFuses.js.map +1 -1
  47. package/dist/cjs/functions/wallet/setPrimaryName.js.map +1 -1
  48. package/dist/cjs/functions/wallet/setRecords.js.map +1 -1
  49. package/dist/cjs/functions/wallet/setResolver.js.map +1 -1
  50. package/dist/cjs/functions/wallet/setTextRecord.js.map +1 -1
  51. package/dist/cjs/functions/wallet/transferName.js.map +1 -1
  52. package/dist/cjs/functions/wallet/unwrapName.js.map +1 -1
  53. package/dist/cjs/functions/wallet/wrapName.js.map +1 -1
  54. package/dist/cjs/subgraph.js +4 -1
  55. package/dist/cjs/subgraph.js.map +1 -1
  56. package/dist/cjs/utils/contentHash.js +5 -3
  57. package/dist/cjs/utils/contentHash.js.map +1 -1
  58. package/dist/cjs/utils/encoders/encodeAbi.js +31 -1
  59. package/dist/cjs/utils/encoders/encodeAbi.js.map +1 -1
  60. package/dist/cjs/utils/encoders/encodeClearRecords.js +12 -0
  61. package/dist/cjs/utils/encoders/encodeClearRecords.js.map +1 -0
  62. package/dist/cjs/utils/fuses.js +12 -9
  63. package/dist/cjs/utils/fuses.js.map +1 -1
  64. package/dist/cjs/utils/generateRecordCallArray.js +2 -7
  65. package/dist/cjs/utils/generateRecordCallArray.js.map +1 -1
  66. package/dist/cjs/utils/index.js +11 -2
  67. package/dist/cjs/utils/index.js.map +1 -1
  68. package/dist/cjs/utils/normaliseCoinId.js +15 -0
  69. package/dist/cjs/utils/normaliseCoinId.js.map +1 -0
  70. package/dist/cjs/wallet.js +3 -1
  71. package/dist/cjs/wallet.js.map +1 -1
  72. package/dist/esm/clients/decorators/wallet.js +2 -0
  73. package/dist/esm/clients/decorators/wallet.js.map +1 -1
  74. package/dist/esm/contracts/consts.js +1 -1
  75. package/dist/esm/errors/utils.js +11 -0
  76. package/dist/esm/errors/utils.js.map +1 -1
  77. package/dist/esm/errors/version.js +1 -1
  78. package/dist/esm/functions/dns/getDnsImportData.js +2 -1
  79. package/dist/esm/functions/dns/getDnsImportData.js.map +1 -1
  80. package/dist/esm/functions/dns/getDnsOwner.js +1 -1
  81. package/dist/esm/functions/dns/importDnsName.js +2 -1
  82. package/dist/esm/functions/dns/importDnsName.js.map +1 -1
  83. package/dist/esm/functions/public/_getAddr.js +15 -13
  84. package/dist/esm/functions/public/_getAddr.js.map +1 -1
  85. package/dist/esm/functions/public/batch.js +2 -1
  86. package/dist/esm/functions/public/batch.js.map +1 -1
  87. package/dist/esm/functions/public/getAbiRecord.js +2 -1
  88. package/dist/esm/functions/public/getAbiRecord.js.map +1 -1
  89. package/dist/esm/functions/public/getAddressRecord.js +2 -1
  90. package/dist/esm/functions/public/getAddressRecord.js.map +1 -1
  91. package/dist/esm/functions/public/getAvailable.js +2 -1
  92. package/dist/esm/functions/public/getAvailable.js.map +1 -1
  93. package/dist/esm/functions/public/getContentHashRecord.js +2 -1
  94. package/dist/esm/functions/public/getContentHashRecord.js.map +1 -1
  95. package/dist/esm/functions/public/getExpiry.js +2 -1
  96. package/dist/esm/functions/public/getExpiry.js.map +1 -1
  97. package/dist/esm/functions/public/getName.js +2 -1
  98. package/dist/esm/functions/public/getName.js.map +1 -1
  99. package/dist/esm/functions/public/getOwner.js +3 -2
  100. package/dist/esm/functions/public/getOwner.js.map +1 -1
  101. package/dist/esm/functions/public/getPrice.js +3 -2
  102. package/dist/esm/functions/public/getPrice.js.map +1 -1
  103. package/dist/esm/functions/public/getRecords.js +54 -39
  104. package/dist/esm/functions/public/getRecords.js.map +1 -1
  105. package/dist/esm/functions/public/getResolver.js +2 -1
  106. package/dist/esm/functions/public/getResolver.js.map +1 -1
  107. package/dist/esm/functions/public/getSupportedInterfaces.js +22 -0
  108. package/dist/esm/functions/public/getSupportedInterfaces.js.map +1 -1
  109. package/dist/esm/functions/public/getTextRecord.js +2 -1
  110. package/dist/esm/functions/public/getTextRecord.js.map +1 -1
  111. package/dist/esm/functions/public/getWrapperData.js +2 -1
  112. package/dist/esm/functions/public/getWrapperData.js.map +1 -1
  113. package/dist/esm/functions/public/getWrapperName.js +2 -1
  114. package/dist/esm/functions/public/getWrapperName.js.map +1 -1
  115. package/dist/esm/functions/subgraph/getDecodedName.js +2 -1
  116. package/dist/esm/functions/subgraph/getDecodedName.js.map +1 -1
  117. package/dist/esm/functions/subgraph/getNameHistory.js +2 -1
  118. package/dist/esm/functions/subgraph/getNameHistory.js.map +1 -1
  119. package/dist/esm/functions/subgraph/getNamesForAddress.js +21 -11
  120. package/dist/esm/functions/subgraph/getNamesForAddress.js.map +1 -1
  121. package/dist/esm/functions/subgraph/getSubgraphRecords.js +36 -27
  122. package/dist/esm/functions/subgraph/getSubgraphRecords.js.map +1 -1
  123. package/dist/esm/functions/subgraph/getSubgraphRegistrant.js +2 -1
  124. package/dist/esm/functions/subgraph/getSubgraphRegistrant.js.map +1 -1
  125. package/dist/esm/functions/subgraph/getSubnames.js +2 -1
  126. package/dist/esm/functions/subgraph/getSubnames.js.map +1 -1
  127. package/dist/esm/functions/wallet/clearRecords.js +44 -0
  128. package/dist/esm/functions/wallet/clearRecords.js.map +1 -0
  129. package/dist/esm/functions/wallet/commitName.js +3 -1
  130. package/dist/esm/functions/wallet/commitName.js.map +1 -1
  131. package/dist/esm/functions/wallet/createSubname.js +2 -1
  132. package/dist/esm/functions/wallet/createSubname.js.map +1 -1
  133. package/dist/esm/functions/wallet/deleteSubname.js +2 -1
  134. package/dist/esm/functions/wallet/deleteSubname.js.map +1 -1
  135. package/dist/esm/functions/wallet/registerName.js +4 -1
  136. package/dist/esm/functions/wallet/registerName.js.map +1 -1
  137. package/dist/esm/functions/wallet/renewNames.js +3 -1
  138. package/dist/esm/functions/wallet/renewNames.js.map +1 -1
  139. package/dist/esm/functions/wallet/setAbiRecord.js +3 -1
  140. package/dist/esm/functions/wallet/setAbiRecord.js.map +1 -1
  141. package/dist/esm/functions/wallet/setAddressRecord.js +2 -1
  142. package/dist/esm/functions/wallet/setAddressRecord.js.map +1 -1
  143. package/dist/esm/functions/wallet/setChildFuses.js +2 -1
  144. package/dist/esm/functions/wallet/setChildFuses.js.map +1 -1
  145. package/dist/esm/functions/wallet/setContentHashRecord.js +2 -1
  146. package/dist/esm/functions/wallet/setContentHashRecord.js.map +1 -1
  147. package/dist/esm/functions/wallet/setFuses.js +2 -1
  148. package/dist/esm/functions/wallet/setFuses.js.map +1 -1
  149. package/dist/esm/functions/wallet/setPrimaryName.js +2 -1
  150. package/dist/esm/functions/wallet/setPrimaryName.js.map +1 -1
  151. package/dist/esm/functions/wallet/setRecords.js +2 -1
  152. package/dist/esm/functions/wallet/setRecords.js.map +1 -1
  153. package/dist/esm/functions/wallet/setResolver.js +2 -1
  154. package/dist/esm/functions/wallet/setResolver.js.map +1 -1
  155. package/dist/esm/functions/wallet/setTextRecord.js +2 -1
  156. package/dist/esm/functions/wallet/setTextRecord.js.map +1 -1
  157. package/dist/esm/functions/wallet/transferName.js +2 -1
  158. package/dist/esm/functions/wallet/transferName.js.map +1 -1
  159. package/dist/esm/functions/wallet/unwrapName.js +2 -1
  160. package/dist/esm/functions/wallet/unwrapName.js.map +1 -1
  161. package/dist/esm/functions/wallet/wrapName.js +2 -1
  162. package/dist/esm/functions/wallet/wrapName.js.map +1 -1
  163. package/dist/esm/subgraph.js +1 -0
  164. package/dist/esm/subgraph.js.map +1 -1
  165. package/dist/esm/utils/contentHash.js +2 -2
  166. package/dist/esm/utils/contentHash.js.map +1 -1
  167. package/dist/esm/utils/encoders/encodeAbi.js +28 -0
  168. package/dist/esm/utils/encoders/encodeAbi.js.map +1 -1
  169. package/dist/esm/utils/encoders/encodeClearRecords.js +8 -0
  170. package/dist/esm/utils/encoders/encodeClearRecords.js.map +1 -0
  171. package/dist/esm/utils/fuses.js +11 -8
  172. package/dist/esm/utils/fuses.js.map +1 -1
  173. package/dist/esm/utils/generateRecordCallArray.js +3 -7
  174. package/dist/esm/utils/generateRecordCallArray.js.map +1 -1
  175. package/dist/esm/utils/index.js +4 -3
  176. package/dist/esm/utils/index.js.map +1 -1
  177. package/dist/esm/utils/normaliseCoinId.js +11 -0
  178. package/dist/esm/utils/normaliseCoinId.js.map +1 -0
  179. package/dist/esm/wallet.js +1 -0
  180. package/dist/esm/wallet.js.map +1 -1
  181. package/dist/types/clients/decorators/wallet.d.ts +28 -3
  182. package/dist/types/clients/decorators/wallet.d.ts.map +1 -1
  183. package/dist/types/clients/wallet.d.ts +10 -0
  184. package/dist/types/clients/wallet.d.ts.map +1 -1
  185. package/dist/types/contracts/consts.d.ts +1 -1
  186. package/dist/types/errors/utils.d.ts +6 -0
  187. package/dist/types/errors/utils.d.ts.map +1 -1
  188. package/dist/types/errors/version.d.ts +1 -1
  189. package/dist/types/functions/dns/getDnsImportData.d.ts +2 -1
  190. package/dist/types/functions/dns/getDnsImportData.d.ts.map +1 -1
  191. package/dist/types/functions/dns/getDnsOwner.d.ts +1 -1
  192. package/dist/types/functions/dns/importDnsName.d.ts +2 -1
  193. package/dist/types/functions/dns/importDnsName.d.ts.map +1 -1
  194. package/dist/types/functions/public/_getAddr.d.ts.map +1 -1
  195. package/dist/types/functions/public/batch.d.ts +2 -1
  196. package/dist/types/functions/public/batch.d.ts.map +1 -1
  197. package/dist/types/functions/public/getAbiRecord.d.ts +2 -1
  198. package/dist/types/functions/public/getAbiRecord.d.ts.map +1 -1
  199. package/dist/types/functions/public/getAddressRecord.d.ts +2 -1
  200. package/dist/types/functions/public/getAddressRecord.d.ts.map +1 -1
  201. package/dist/types/functions/public/getAvailable.d.ts +2 -1
  202. package/dist/types/functions/public/getAvailable.d.ts.map +1 -1
  203. package/dist/types/functions/public/getContentHashRecord.d.ts +2 -1
  204. package/dist/types/functions/public/getContentHashRecord.d.ts.map +1 -1
  205. package/dist/types/functions/public/getExpiry.d.ts +2 -1
  206. package/dist/types/functions/public/getExpiry.d.ts.map +1 -1
  207. package/dist/types/functions/public/getName.d.ts +2 -1
  208. package/dist/types/functions/public/getName.d.ts.map +1 -1
  209. package/dist/types/functions/public/getOwner.d.ts +19 -9
  210. package/dist/types/functions/public/getOwner.d.ts.map +1 -1
  211. package/dist/types/functions/public/getPrice.d.ts +3 -2
  212. package/dist/types/functions/public/getPrice.d.ts.map +1 -1
  213. package/dist/types/functions/public/getRecords.d.ts +3 -2
  214. package/dist/types/functions/public/getRecords.d.ts.map +1 -1
  215. package/dist/types/functions/public/getResolver.d.ts +2 -1
  216. package/dist/types/functions/public/getResolver.d.ts.map +1 -1
  217. package/dist/types/functions/public/getSupportedInterfaces.d.ts +22 -0
  218. package/dist/types/functions/public/getSupportedInterfaces.d.ts.map +1 -1
  219. package/dist/types/functions/public/getTextRecord.d.ts +2 -1
  220. package/dist/types/functions/public/getTextRecord.d.ts.map +1 -1
  221. package/dist/types/functions/public/getWrapperData.d.ts +2 -1
  222. package/dist/types/functions/public/getWrapperData.d.ts.map +1 -1
  223. package/dist/types/functions/public/getWrapperName.d.ts +2 -1
  224. package/dist/types/functions/public/getWrapperName.d.ts.map +1 -1
  225. package/dist/types/functions/subgraph/getDecodedName.d.ts +2 -1
  226. package/dist/types/functions/subgraph/getDecodedName.d.ts.map +1 -1
  227. package/dist/types/functions/subgraph/getNameHistory.d.ts +2 -1
  228. package/dist/types/functions/subgraph/getNameHistory.d.ts.map +1 -1
  229. package/dist/types/functions/subgraph/getNamesForAddress.d.ts +5 -2
  230. package/dist/types/functions/subgraph/getNamesForAddress.d.ts.map +1 -1
  231. package/dist/types/functions/subgraph/getSubgraphRecords.d.ts +2 -1
  232. package/dist/types/functions/subgraph/getSubgraphRecords.d.ts.map +1 -1
  233. package/dist/types/functions/subgraph/getSubgraphRegistrant.d.ts +2 -1
  234. package/dist/types/functions/subgraph/getSubgraphRegistrant.d.ts.map +1 -1
  235. package/dist/types/functions/subgraph/getSubnames.d.ts +2 -1
  236. package/dist/types/functions/subgraph/getSubnames.d.ts.map +1 -1
  237. package/dist/types/functions/wallet/clearRecords.d.ts +552 -0
  238. package/dist/types/functions/wallet/clearRecords.d.ts.map +1 -0
  239. package/dist/types/functions/wallet/commitName.d.ts +3 -1
  240. package/dist/types/functions/wallet/commitName.d.ts.map +1 -1
  241. package/dist/types/functions/wallet/createSubname.d.ts +2 -1
  242. package/dist/types/functions/wallet/createSubname.d.ts.map +1 -1
  243. package/dist/types/functions/wallet/deleteSubname.d.ts +2 -1
  244. package/dist/types/functions/wallet/deleteSubname.d.ts.map +1 -1
  245. package/dist/types/functions/wallet/registerName.d.ts +4 -1
  246. package/dist/types/functions/wallet/registerName.d.ts.map +1 -1
  247. package/dist/types/functions/wallet/renewNames.d.ts +3 -1
  248. package/dist/types/functions/wallet/renewNames.d.ts.map +1 -1
  249. package/dist/types/functions/wallet/setAbiRecord.d.ts +3 -1
  250. package/dist/types/functions/wallet/setAbiRecord.d.ts.map +1 -1
  251. package/dist/types/functions/wallet/setAddressRecord.d.ts +2 -1
  252. package/dist/types/functions/wallet/setAddressRecord.d.ts.map +1 -1
  253. package/dist/types/functions/wallet/setChildFuses.d.ts +2 -1
  254. package/dist/types/functions/wallet/setChildFuses.d.ts.map +1 -1
  255. package/dist/types/functions/wallet/setContentHashRecord.d.ts +2 -1
  256. package/dist/types/functions/wallet/setContentHashRecord.d.ts.map +1 -1
  257. package/dist/types/functions/wallet/setFuses.d.ts +2 -1
  258. package/dist/types/functions/wallet/setFuses.d.ts.map +1 -1
  259. package/dist/types/functions/wallet/setPrimaryName.d.ts +2 -1
  260. package/dist/types/functions/wallet/setPrimaryName.d.ts.map +1 -1
  261. package/dist/types/functions/wallet/setRecords.d.ts +2 -1
  262. package/dist/types/functions/wallet/setRecords.d.ts.map +1 -1
  263. package/dist/types/functions/wallet/setResolver.d.ts +2 -1
  264. package/dist/types/functions/wallet/setResolver.d.ts.map +1 -1
  265. package/dist/types/functions/wallet/setTextRecord.d.ts +2 -1
  266. package/dist/types/functions/wallet/setTextRecord.d.ts.map +1 -1
  267. package/dist/types/functions/wallet/transferName.d.ts +2 -1
  268. package/dist/types/functions/wallet/transferName.d.ts.map +1 -1
  269. package/dist/types/functions/wallet/unwrapName.d.ts +2 -1
  270. package/dist/types/functions/wallet/unwrapName.d.ts.map +1 -1
  271. package/dist/types/functions/wallet/wrapName.d.ts +2 -1
  272. package/dist/types/functions/wallet/wrapName.d.ts.map +1 -1
  273. package/dist/types/subgraph.d.ts +1 -0
  274. package/dist/types/subgraph.d.ts.map +1 -1
  275. package/dist/types/utils/contentHash.d.ts +3 -0
  276. package/dist/types/utils/contentHash.d.ts.map +1 -1
  277. package/dist/types/utils/encoders/encodeAbi.d.ts +8 -5
  278. package/dist/types/utils/encoders/encodeAbi.d.ts.map +1 -1
  279. package/dist/types/utils/encoders/encodeClearRecords.d.ts +3 -0
  280. package/dist/types/utils/encoders/encodeClearRecords.d.ts.map +1 -0
  281. package/dist/types/utils/fuses.d.ts +16 -16
  282. package/dist/types/utils/fuses.d.ts.map +1 -1
  283. package/dist/types/utils/generateRecordCallArray.d.ts.map +1 -1
  284. package/dist/types/utils/index.d.ts +4 -3
  285. package/dist/types/utils/index.d.ts.map +1 -1
  286. package/dist/types/utils/normaliseCoinId.d.ts +8 -0
  287. package/dist/types/utils/normaliseCoinId.d.ts.map +1 -0
  288. package/dist/types/wallet.d.ts +1 -0
  289. package/dist/types/wallet.d.ts.map +1 -1
  290. package/package.json +1 -1
  291. package/src/clients/decorators/wallet.ts +41 -3
  292. package/src/contracts/consts.ts +1 -1
  293. package/src/errors/utils.ts +8 -0
  294. package/src/errors/version.ts +1 -1
  295. package/src/functions/dns/getDnsImportData.ts +2 -1
  296. package/src/functions/dns/getDnsOwner.ts +1 -1
  297. package/src/functions/dns/importDnsName.ts +2 -1
  298. package/src/functions/public/_getAddr.ts +21 -13
  299. package/src/functions/public/batch.ts +2 -1
  300. package/src/functions/public/getAbiRecord.ts +2 -1
  301. package/src/functions/public/getAddressRecord.ts +2 -1
  302. package/src/functions/public/getAvailable.ts +2 -1
  303. package/src/functions/public/getContentHashRecord.ts +2 -1
  304. package/src/functions/public/getExpiry.ts +2 -1
  305. package/src/functions/public/getName.ts +2 -1
  306. package/src/functions/public/getOwner.ts +54 -33
  307. package/src/functions/public/getPrice.ts +3 -2
  308. package/src/functions/public/getRecords.ts +124 -104
  309. package/src/functions/public/getResolver.ts +2 -1
  310. package/src/functions/public/getSupportedInterfaces.ts +22 -0
  311. package/src/functions/public/getTextRecord.ts +2 -1
  312. package/src/functions/public/getWrapperData.ts +2 -1
  313. package/src/functions/public/getWrapperName.ts +2 -1
  314. package/src/functions/subgraph/getDecodedName.ts +2 -1
  315. package/src/functions/subgraph/getNameHistory.ts +2 -1
  316. package/src/functions/subgraph/getNamesForAddress.ts +31 -11
  317. package/src/functions/subgraph/getSubgraphRecords.ts +65 -33
  318. package/src/functions/subgraph/getSubgraphRegistrant.ts +2 -1
  319. package/src/functions/subgraph/getSubnames.ts +2 -1
  320. package/src/functions/wallet/clearRecords.ts +97 -0
  321. package/src/functions/wallet/commitName.ts +3 -1
  322. package/src/functions/wallet/createSubname.ts +2 -1
  323. package/src/functions/wallet/deleteSubname.ts +2 -1
  324. package/src/functions/wallet/registerName.ts +4 -1
  325. package/src/functions/wallet/renewNames.ts +3 -1
  326. package/src/functions/wallet/setAbiRecord.ts +3 -1
  327. package/src/functions/wallet/setAddressRecord.ts +2 -1
  328. package/src/functions/wallet/setChildFuses.ts +2 -1
  329. package/src/functions/wallet/setContentHashRecord.ts +2 -1
  330. package/src/functions/wallet/setFuses.ts +2 -1
  331. package/src/functions/wallet/setPrimaryName.ts +2 -1
  332. package/src/functions/wallet/setRecords.ts +2 -1
  333. package/src/functions/wallet/setResolver.ts +2 -1
  334. package/src/functions/wallet/setTextRecord.ts +2 -1
  335. package/src/functions/wallet/transferName.ts +2 -1
  336. package/src/functions/wallet/unwrapName.ts +2 -1
  337. package/src/functions/wallet/wrapName.ts +2 -1
  338. package/src/subgraph.ts +5 -0
  339. package/src/utils/contentHash.ts +2 -2
  340. package/src/utils/encoders/encodeAbi.ts +35 -6
  341. package/src/utils/encoders/encodeClearRecords.ts +9 -0
  342. package/src/utils/fuses.ts +27 -23
  343. package/src/utils/generateRecordCallArray.ts +3 -9
  344. package/src/utils/index.ts +11 -0
  345. package/src/utils/normaliseCoinId.ts +11 -0
  346. package/src/wallet.ts +7 -0
@@ -0,0 +1,552 @@
1
+ import type { Account, Address, Hash, SendTransactionParameters, Transport } from 'viem';
2
+ import type { ChainWithEns, WalletWithEns } from '../../contracts/consts.js';
3
+ import type { Prettify, SimpleTransactionRequest, WriteTransactionParameters } from '../../types.js';
4
+ export type ClearRecordsDataParameters = {
5
+ /** The name to clear records for */
6
+ name: string;
7
+ /** The resolver address to use */
8
+ resolverAddress: Address;
9
+ };
10
+ export type ClearRecordsDataReturnType = SimpleTransactionRequest;
11
+ export type ClearRecordsParameters<TChain extends ChainWithEns, TAccount extends Account | undefined, TChainOverride extends ChainWithEns | undefined> = Prettify<ClearRecordsDataParameters & WriteTransactionParameters<TChain, TAccount, TChainOverride>>;
12
+ export type ClearRecordsReturnType = Hash;
13
+ export declare const makeFunctionData: <TChain extends ChainWithEns, TAccount extends Account | undefined>(_wallet: {
14
+ account: TAccount;
15
+ batch?: {
16
+ multicall?: boolean | {
17
+ batchSize?: number | undefined;
18
+ wait?: number | undefined;
19
+ } | undefined;
20
+ } | undefined;
21
+ cacheTime: number;
22
+ chain: TChain;
23
+ key: string;
24
+ name: string;
25
+ pollingInterval: number;
26
+ request: import("viem").EIP1193RequestFn<import("viem").WalletRpcSchema>;
27
+ transport: import("viem").TransportConfig<string, import("viem").EIP1193RequestFn> & Record<string, any>;
28
+ type: string;
29
+ uid: string;
30
+ addChain: (args: import("viem").AddChainParameters) => Promise<void>;
31
+ deployContract: <TAbi extends import("viem").Abi | readonly unknown[], TChainOverride extends import("viem").Chain | undefined>(args: import("viem").DeployContractParameters<TAbi, TChain, TAccount, TChainOverride>) => Promise<`0x${string}`>;
32
+ getAddresses: () => Promise<import("viem").GetAddressesReturnType>;
33
+ getChainId: () => Promise<number>;
34
+ getPermissions: () => Promise<import("viem").GetPermissionsReturnType>;
35
+ requestAddresses: () => Promise<import("viem").RequestAddressesReturnType>;
36
+ requestPermissions: (args: {
37
+ [x: string]: Record<string, any>;
38
+ eth_accounts: Record<string, any>;
39
+ }) => Promise<import("viem").RequestPermissionsReturnType>;
40
+ sendTransaction: <TChainOverride_1 extends import("viem").Chain | undefined>(args: SendTransactionParameters<TChain, TAccount, TChainOverride_1>) => Promise<`0x${string}`>;
41
+ signMessage: (args: import("viem").SignMessageParameters<TAccount>) => Promise<`0x${string}`>;
42
+ signTypedData: <TTypedData extends {
43
+ [key: string]: unknown;
44
+ } | {
45
+ [x: string]: readonly import("viem").TypedDataParameter[];
46
+ [x: `string[${string}]`]: undefined;
47
+ [x: `function[${string}]`]: undefined;
48
+ [x: `address[${string}]`]: undefined;
49
+ [x: `bool[${string}]`]: undefined;
50
+ [x: `bytes[${string}]`]: undefined;
51
+ [x: `bytes3[${string}]`]: undefined;
52
+ [x: `bytes10[${string}]`]: undefined;
53
+ [x: `bytes16[${string}]`]: undefined;
54
+ [x: `bytes1[${string}]`]: undefined;
55
+ [x: `bytes2[${string}]`]: undefined;
56
+ [x: `bytes4[${string}]`]: undefined;
57
+ [x: `bytes5[${string}]`]: undefined;
58
+ [x: `bytes6[${string}]`]: undefined;
59
+ [x: `bytes7[${string}]`]: undefined;
60
+ [x: `bytes8[${string}]`]: undefined;
61
+ [x: `bytes9[${string}]`]: undefined;
62
+ [x: `bytes11[${string}]`]: undefined;
63
+ [x: `bytes12[${string}]`]: undefined;
64
+ [x: `bytes13[${string}]`]: undefined;
65
+ [x: `bytes14[${string}]`]: undefined;
66
+ [x: `bytes15[${string}]`]: undefined;
67
+ [x: `bytes17[${string}]`]: undefined;
68
+ [x: `bytes18[${string}]`]: undefined;
69
+ [x: `bytes19[${string}]`]: undefined;
70
+ [x: `bytes20[${string}]`]: undefined;
71
+ [x: `bytes21[${string}]`]: undefined;
72
+ [x: `bytes22[${string}]`]: undefined;
73
+ [x: `bytes23[${string}]`]: undefined;
74
+ [x: `bytes24[${string}]`]: undefined;
75
+ [x: `bytes25[${string}]`]: undefined;
76
+ [x: `bytes26[${string}]`]: undefined;
77
+ [x: `bytes27[${string}]`]: undefined;
78
+ [x: `bytes28[${string}]`]: undefined;
79
+ [x: `bytes29[${string}]`]: undefined;
80
+ [x: `bytes30[${string}]`]: undefined;
81
+ [x: `bytes31[${string}]`]: undefined;
82
+ [x: `bytes32[${string}]`]: undefined;
83
+ [x: `int[${string}]`]: undefined;
84
+ [x: `int16[${string}]`]: undefined;
85
+ [x: `int8[${string}]`]: undefined;
86
+ [x: `int24[${string}]`]: undefined;
87
+ [x: `int32[${string}]`]: undefined;
88
+ [x: `int40[${string}]`]: undefined;
89
+ [x: `int48[${string}]`]: undefined;
90
+ [x: `int56[${string}]`]: undefined;
91
+ [x: `int64[${string}]`]: undefined;
92
+ [x: `int72[${string}]`]: undefined;
93
+ [x: `int80[${string}]`]: undefined;
94
+ [x: `int88[${string}]`]: undefined;
95
+ [x: `int96[${string}]`]: undefined;
96
+ [x: `int104[${string}]`]: undefined;
97
+ [x: `int112[${string}]`]: undefined;
98
+ [x: `int120[${string}]`]: undefined;
99
+ [x: `int128[${string}]`]: undefined;
100
+ [x: `int136[${string}]`]: undefined;
101
+ [x: `int144[${string}]`]: undefined;
102
+ [x: `int152[${string}]`]: undefined;
103
+ [x: `int160[${string}]`]: undefined;
104
+ [x: `int168[${string}]`]: undefined;
105
+ [x: `int176[${string}]`]: undefined;
106
+ [x: `int184[${string}]`]: undefined;
107
+ [x: `int192[${string}]`]: undefined;
108
+ [x: `int200[${string}]`]: undefined;
109
+ [x: `int208[${string}]`]: undefined;
110
+ [x: `int216[${string}]`]: undefined;
111
+ [x: `int224[${string}]`]: undefined;
112
+ [x: `int232[${string}]`]: undefined;
113
+ [x: `int240[${string}]`]: undefined;
114
+ [x: `int248[${string}]`]: undefined;
115
+ [x: `int256[${string}]`]: undefined;
116
+ [x: `uint[${string}]`]: undefined;
117
+ [x: `uint16[${string}]`]: undefined;
118
+ [x: `uint8[${string}]`]: undefined;
119
+ [x: `uint24[${string}]`]: undefined;
120
+ [x: `uint32[${string}]`]: undefined;
121
+ [x: `uint40[${string}]`]: undefined;
122
+ [x: `uint48[${string}]`]: undefined;
123
+ [x: `uint56[${string}]`]: undefined;
124
+ [x: `uint64[${string}]`]: undefined;
125
+ [x: `uint72[${string}]`]: undefined;
126
+ [x: `uint80[${string}]`]: undefined;
127
+ [x: `uint88[${string}]`]: undefined;
128
+ [x: `uint96[${string}]`]: undefined;
129
+ [x: `uint104[${string}]`]: undefined;
130
+ [x: `uint112[${string}]`]: undefined;
131
+ [x: `uint120[${string}]`]: undefined;
132
+ [x: `uint128[${string}]`]: undefined;
133
+ [x: `uint136[${string}]`]: undefined;
134
+ [x: `uint144[${string}]`]: undefined;
135
+ [x: `uint152[${string}]`]: undefined;
136
+ [x: `uint160[${string}]`]: undefined;
137
+ [x: `uint168[${string}]`]: undefined;
138
+ [x: `uint176[${string}]`]: undefined;
139
+ [x: `uint184[${string}]`]: undefined;
140
+ [x: `uint192[${string}]`]: undefined;
141
+ [x: `uint200[${string}]`]: undefined;
142
+ [x: `uint208[${string}]`]: undefined;
143
+ [x: `uint216[${string}]`]: undefined;
144
+ [x: `uint224[${string}]`]: undefined;
145
+ [x: `uint232[${string}]`]: undefined;
146
+ [x: `uint240[${string}]`]: undefined;
147
+ [x: `uint248[${string}]`]: undefined;
148
+ [x: `uint256[${string}]`]: undefined;
149
+ string?: undefined;
150
+ address?: undefined;
151
+ bool?: undefined;
152
+ bytes?: undefined;
153
+ bytes3?: undefined;
154
+ bytes10?: undefined;
155
+ bytes16?: undefined;
156
+ bytes1?: undefined;
157
+ bytes2?: undefined;
158
+ bytes4?: undefined;
159
+ bytes5?: undefined;
160
+ bytes6?: undefined;
161
+ bytes7?: undefined;
162
+ bytes8?: undefined;
163
+ bytes9?: undefined;
164
+ bytes11?: undefined;
165
+ bytes12?: undefined;
166
+ bytes13?: undefined;
167
+ bytes14?: undefined;
168
+ bytes15?: undefined;
169
+ bytes17?: undefined;
170
+ bytes18?: undefined;
171
+ bytes19?: undefined;
172
+ bytes20?: undefined;
173
+ bytes21?: undefined;
174
+ bytes22?: undefined;
175
+ bytes23?: undefined;
176
+ bytes24?: undefined;
177
+ bytes25?: undefined;
178
+ bytes26?: undefined;
179
+ bytes27?: undefined;
180
+ bytes28?: undefined;
181
+ bytes29?: undefined;
182
+ bytes30?: undefined;
183
+ bytes31?: undefined;
184
+ bytes32?: undefined;
185
+ int16?: undefined;
186
+ int8?: undefined;
187
+ int24?: undefined;
188
+ int32?: undefined;
189
+ int40?: undefined;
190
+ int48?: undefined;
191
+ int56?: undefined;
192
+ int64?: undefined;
193
+ int72?: undefined;
194
+ int80?: undefined;
195
+ int88?: undefined;
196
+ int96?: undefined;
197
+ int104?: undefined;
198
+ int112?: undefined;
199
+ int120?: undefined;
200
+ int128?: undefined;
201
+ int136?: undefined;
202
+ int144?: undefined;
203
+ int152?: undefined;
204
+ int160?: undefined;
205
+ int168?: undefined;
206
+ int176?: undefined;
207
+ int184?: undefined;
208
+ int192?: undefined;
209
+ int200?: undefined;
210
+ int208?: undefined;
211
+ int216?: undefined;
212
+ int224?: undefined;
213
+ int232?: undefined;
214
+ int240?: undefined;
215
+ int248?: undefined;
216
+ int256?: undefined;
217
+ uint16?: undefined;
218
+ uint8?: undefined;
219
+ uint24?: undefined;
220
+ uint32?: undefined;
221
+ uint40?: undefined;
222
+ uint48?: undefined;
223
+ uint56?: undefined;
224
+ uint64?: undefined;
225
+ uint72?: undefined;
226
+ uint80?: undefined;
227
+ uint88?: undefined;
228
+ uint96?: undefined;
229
+ uint104?: undefined;
230
+ uint112?: undefined;
231
+ uint120?: undefined;
232
+ uint128?: undefined;
233
+ uint136?: undefined;
234
+ uint144?: undefined;
235
+ uint152?: undefined;
236
+ uint160?: undefined;
237
+ uint168?: undefined;
238
+ uint176?: undefined;
239
+ uint184?: undefined;
240
+ uint192?: undefined;
241
+ uint200?: undefined;
242
+ uint208?: undefined;
243
+ uint216?: undefined;
244
+ uint224?: undefined;
245
+ uint232?: undefined;
246
+ uint240?: undefined;
247
+ uint248?: undefined;
248
+ uint256?: undefined;
249
+ }, TPrimaryType extends string>(args: import("viem").SignTypedDataParameters<TTypedData, TPrimaryType, TAccount>) => Promise<`0x${string}`>;
250
+ switchChain: (args: import("viem").SwitchChainParameters) => Promise<void>;
251
+ watchAsset: (args: import("viem").WatchAssetParams) => Promise<boolean>;
252
+ writeContract: <TAbi_1 extends import("viem").Abi | readonly unknown[], TFunctionName extends string, TChainOverride_2 extends import("viem").Chain | undefined>(args: import("viem").WriteContractParameters<TAbi_1, TFunctionName, TChain, TAccount, TChainOverride_2>) => Promise<`0x${string}`>;
253
+ extend: <const client extends {
254
+ [x: string]: unknown;
255
+ account?: undefined;
256
+ batch?: undefined;
257
+ cacheTime?: undefined;
258
+ chain?: undefined;
259
+ key?: undefined;
260
+ name?: undefined;
261
+ pollingInterval?: undefined;
262
+ request?: undefined;
263
+ transport?: undefined;
264
+ type?: undefined;
265
+ uid?: undefined;
266
+ }>(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>>;
267
+ }, { name, resolverAddress }: ClearRecordsDataParameters) => ClearRecordsDataReturnType;
268
+ /**
269
+ * Clears the records for a name on a resolver.
270
+ * @param wallet - {@link WalletWithEns}
271
+ * @param parameters - {@link ClearRecordsParameters}
272
+ * @returns Transaction hash. {@link ClearRecordsReturnType}
273
+ *
274
+ * @example
275
+ * import { createWalletClient, custom } from 'viem'
276
+ * import { mainnet } from 'viem/chains'
277
+ * import { addEnsContracts } from '@ensdomains/ensjs'
278
+ * import { clearRecords } from '@ensdomains/ensjs/wallet'
279
+ *
280
+ * const wallet = createWalletClient({
281
+ * chain: addEnsContracts(mainnet),
282
+ * transport: custom(window.ethereum),
283
+ * })
284
+ * const hash = await clearRecords(wallet, {
285
+ * name: 'ens.eth',
286
+ * resolverAddress: '0x4976fb03C32e5B8cfe2b6cCB31c09Ba78EBaBa41',
287
+ * })
288
+ * // 0x...
289
+ */
290
+ declare function clearRecords<TChain extends ChainWithEns, TAccount extends Account | undefined, TChainOverride extends ChainWithEns | undefined = ChainWithEns>(wallet: WalletWithEns<Transport, TChain, TAccount>, { name, resolverAddress, ...txArgs }: ClearRecordsParameters<TChain, TAccount, TChainOverride>): Promise<ClearRecordsReturnType>;
291
+ declare namespace clearRecords {
292
+ var makeFunctionData: <TChain extends ChainWithEns, TAccount extends Account | undefined>(_wallet: {
293
+ account: TAccount;
294
+ batch?: {
295
+ multicall?: boolean | {
296
+ batchSize?: number | undefined;
297
+ wait?: number | undefined;
298
+ } | undefined;
299
+ } | undefined;
300
+ cacheTime: number;
301
+ chain: TChain;
302
+ key: string;
303
+ name: string;
304
+ pollingInterval: number;
305
+ request: import("viem").EIP1193RequestFn<import("viem").WalletRpcSchema>;
306
+ transport: import("viem").TransportConfig<string, import("viem").EIP1193RequestFn> & Record<string, any>;
307
+ type: string;
308
+ uid: string;
309
+ addChain: (args: import("viem").AddChainParameters) => Promise<void>;
310
+ deployContract: <TAbi extends import("viem").Abi | readonly unknown[], TChainOverride extends import("viem").Chain | undefined>(args: import("viem").DeployContractParameters<TAbi, TChain, TAccount, TChainOverride>) => Promise<`0x${string}`>;
311
+ getAddresses: () => Promise<import("viem").GetAddressesReturnType>;
312
+ getChainId: () => Promise<number>;
313
+ getPermissions: () => Promise<import("viem").GetPermissionsReturnType>;
314
+ requestAddresses: () => Promise<import("viem").RequestAddressesReturnType>;
315
+ requestPermissions: (args: {
316
+ [x: string]: Record<string, any>;
317
+ eth_accounts: Record<string, any>;
318
+ }) => Promise<import("viem").RequestPermissionsReturnType>;
319
+ sendTransaction: <TChainOverride_1 extends import("viem").Chain | undefined>(args: SendTransactionParameters<TChain, TAccount, TChainOverride_1>) => Promise<`0x${string}`>;
320
+ signMessage: (args: import("viem").SignMessageParameters<TAccount>) => Promise<`0x${string}`>;
321
+ signTypedData: <TTypedData extends {
322
+ [key: string]: unknown;
323
+ } | {
324
+ [x: string]: readonly import("viem").TypedDataParameter[];
325
+ [x: `string[${string}]`]: undefined;
326
+ [x: `function[${string}]`]: undefined;
327
+ [x: `address[${string}]`]: undefined;
328
+ [x: `bool[${string}]`]: undefined;
329
+ [x: `bytes[${string}]`]: undefined;
330
+ [x: `bytes3[${string}]`]: undefined;
331
+ [x: `bytes10[${string}]`]: undefined;
332
+ [x: `bytes16[${string}]`]: undefined;
333
+ [x: `bytes1[${string}]`]: undefined;
334
+ [x: `bytes2[${string}]`]: undefined;
335
+ [x: `bytes4[${string}]`]: undefined;
336
+ [x: `bytes5[${string}]`]: undefined;
337
+ [x: `bytes6[${string}]`]: undefined;
338
+ [x: `bytes7[${string}]`]: undefined;
339
+ [x: `bytes8[${string}]`]: undefined;
340
+ [x: `bytes9[${string}]`]: undefined;
341
+ [x: `bytes11[${string}]`]: undefined;
342
+ [x: `bytes12[${string}]`]: undefined;
343
+ [x: `bytes13[${string}]`]: undefined;
344
+ [x: `bytes14[${string}]`]: undefined;
345
+ [x: `bytes15[${string}]`]: undefined;
346
+ [x: `bytes17[${string}]`]: undefined;
347
+ [x: `bytes18[${string}]`]: undefined;
348
+ [x: `bytes19[${string}]`]: undefined;
349
+ [x: `bytes20[${string}]`]: undefined;
350
+ [x: `bytes21[${string}]`]: undefined;
351
+ [x: `bytes22[${string}]`]: undefined;
352
+ [x: `bytes23[${string}]`]: undefined;
353
+ [x: `bytes24[${string}]`]: undefined;
354
+ [x: `bytes25[${string}]`]: undefined;
355
+ [x: `bytes26[${string}]`]: undefined;
356
+ [x: `bytes27[${string}]`]: undefined;
357
+ [x: `bytes28[${string}]`]: undefined;
358
+ [x: `bytes29[${string}]`]: undefined;
359
+ [x: `bytes30[${string}]`]: undefined;
360
+ [x: `bytes31[${string}]`]: undefined;
361
+ [x: `bytes32[${string}]`]: undefined;
362
+ [x: `int[${string}]`]: undefined;
363
+ [x: `int16[${string}]`]: undefined;
364
+ [x: `int8[${string}]`]: undefined;
365
+ [x: `int24[${string}]`]: undefined;
366
+ [x: `int32[${string}]`]: undefined;
367
+ [x: `int40[${string}]`]: undefined;
368
+ [x: `int48[${string}]`]: undefined;
369
+ [x: `int56[${string}]`]: undefined;
370
+ [x: `int64[${string}]`]: undefined;
371
+ [x: `int72[${string}]`]: undefined;
372
+ [x: `int80[${string}]`]: undefined;
373
+ [x: `int88[${string}]`]: undefined;
374
+ [x: `int96[${string}]`]: undefined;
375
+ [x: `int104[${string}]`]: undefined;
376
+ [x: `int112[${string}]`]: undefined;
377
+ [x: `int120[${string}]`]: undefined;
378
+ [x: `int128[${string}]`]: undefined;
379
+ [x: `int136[${string}]`]: undefined;
380
+ [x: `int144[${string}]`]: undefined;
381
+ [x: `int152[${string}]`]: undefined;
382
+ [x: `int160[${string}]`]: undefined;
383
+ [x: `int168[${string}]`]: undefined;
384
+ [x: `int176[${string}]`]: undefined;
385
+ [x: `int184[${string}]`]: undefined;
386
+ [x: `int192[${string}]`]: undefined;
387
+ [x: `int200[${string}]`]: undefined;
388
+ [x: `int208[${string}]`]: undefined;
389
+ [x: `int216[${string}]`]: undefined;
390
+ [x: `int224[${string}]`]: undefined;
391
+ [x: `int232[${string}]`]: undefined;
392
+ [x: `int240[${string}]`]: undefined;
393
+ [x: `int248[${string}]`]: undefined;
394
+ [x: `int256[${string}]`]: undefined;
395
+ [x: `uint[${string}]`]: undefined;
396
+ [x: `uint16[${string}]`]: undefined;
397
+ [x: `uint8[${string}]`]: undefined;
398
+ [x: `uint24[${string}]`]: undefined;
399
+ [x: `uint32[${string}]`]: undefined;
400
+ [x: `uint40[${string}]`]: undefined;
401
+ [x: `uint48[${string}]`]: undefined;
402
+ [x: `uint56[${string}]`]: undefined;
403
+ [x: `uint64[${string}]`]: undefined;
404
+ [x: `uint72[${string}]`]: undefined;
405
+ [x: `uint80[${string}]`]: undefined;
406
+ [x: `uint88[${string}]`]: undefined;
407
+ [x: `uint96[${string}]`]: undefined;
408
+ [x: `uint104[${string}]`]: undefined;
409
+ [x: `uint112[${string}]`]: undefined;
410
+ [x: `uint120[${string}]`]: undefined;
411
+ [x: `uint128[${string}]`]: undefined;
412
+ [x: `uint136[${string}]`]: undefined;
413
+ [x: `uint144[${string}]`]: undefined;
414
+ [x: `uint152[${string}]`]: undefined;
415
+ [x: `uint160[${string}]`]: undefined;
416
+ [x: `uint168[${string}]`]: undefined;
417
+ [x: `uint176[${string}]`]: undefined;
418
+ [x: `uint184[${string}]`]: undefined;
419
+ [x: `uint192[${string}]`]: undefined;
420
+ [x: `uint200[${string}]`]: undefined;
421
+ [x: `uint208[${string}]`]: undefined;
422
+ [x: `uint216[${string}]`]: undefined;
423
+ [x: `uint224[${string}]`]: undefined;
424
+ [x: `uint232[${string}]`]: undefined;
425
+ [x: `uint240[${string}]`]: undefined;
426
+ [x: `uint248[${string}]`]: undefined;
427
+ [x: `uint256[${string}]`]: undefined;
428
+ string?: undefined;
429
+ address?: undefined;
430
+ bool?: undefined;
431
+ bytes?: undefined;
432
+ bytes3?: undefined;
433
+ bytes10?: undefined;
434
+ bytes16?: undefined;
435
+ bytes1?: undefined;
436
+ bytes2?: undefined;
437
+ bytes4?: undefined;
438
+ bytes5?: undefined;
439
+ bytes6?: undefined;
440
+ bytes7?: undefined;
441
+ bytes8?: undefined;
442
+ bytes9?: undefined;
443
+ bytes11?: undefined;
444
+ bytes12?: undefined;
445
+ bytes13?: undefined;
446
+ bytes14?: undefined;
447
+ bytes15?: undefined;
448
+ bytes17?: undefined;
449
+ bytes18?: undefined;
450
+ bytes19?: undefined;
451
+ bytes20?: undefined;
452
+ bytes21?: undefined;
453
+ bytes22?: undefined;
454
+ bytes23?: undefined;
455
+ bytes24?: undefined;
456
+ bytes25?: undefined;
457
+ bytes26?: undefined;
458
+ bytes27?: undefined;
459
+ bytes28?: undefined;
460
+ bytes29?: undefined;
461
+ bytes30?: undefined;
462
+ bytes31?: undefined;
463
+ bytes32?: undefined;
464
+ int16?: undefined;
465
+ int8?: undefined;
466
+ int24?: undefined;
467
+ int32?: undefined;
468
+ int40?: undefined;
469
+ int48?: undefined;
470
+ int56?: undefined;
471
+ int64?: undefined;
472
+ int72?: undefined;
473
+ int80?: undefined;
474
+ int88?: undefined;
475
+ int96?: undefined;
476
+ int104?: undefined;
477
+ int112?: undefined;
478
+ int120?: undefined;
479
+ int128?: undefined;
480
+ int136?: undefined;
481
+ int144?: undefined;
482
+ int152?: undefined;
483
+ int160?: undefined;
484
+ int168?: undefined;
485
+ int176?: undefined;
486
+ int184?: undefined;
487
+ int192?: undefined;
488
+ int200?: undefined;
489
+ int208?: undefined;
490
+ int216?: undefined;
491
+ int224?: undefined;
492
+ int232?: undefined;
493
+ int240?: undefined;
494
+ int248?: undefined;
495
+ int256?: undefined;
496
+ uint16?: undefined;
497
+ uint8?: undefined;
498
+ uint24?: undefined;
499
+ uint32?: undefined;
500
+ uint40?: undefined;
501
+ uint48?: undefined;
502
+ uint56?: undefined;
503
+ uint64?: undefined;
504
+ uint72?: undefined;
505
+ uint80?: undefined;
506
+ uint88?: undefined;
507
+ uint96?: undefined;
508
+ uint104?: undefined;
509
+ uint112?: undefined;
510
+ uint120?: undefined;
511
+ uint128?: undefined;
512
+ uint136?: undefined;
513
+ uint144?: undefined;
514
+ uint152?: undefined;
515
+ uint160?: undefined;
516
+ uint168?: undefined;
517
+ uint176?: undefined;
518
+ uint184?: undefined;
519
+ uint192?: undefined;
520
+ uint200?: undefined;
521
+ uint208?: undefined;
522
+ uint216?: undefined;
523
+ uint224?: undefined;
524
+ uint232?: undefined;
525
+ uint240?: undefined;
526
+ uint248?: undefined;
527
+ uint256?: undefined;
528
+ }, TPrimaryType extends string>(args: import("viem").SignTypedDataParameters<TTypedData, TPrimaryType, TAccount>) => Promise<`0x${string}`>;
529
+ switchChain: (args: import("viem").SwitchChainParameters) => Promise<void>;
530
+ watchAsset: (args: import("viem").WatchAssetParams) => Promise<boolean>;
531
+ writeContract: <TAbi_1 extends import("viem").Abi | readonly unknown[], TFunctionName extends string, TChainOverride_2 extends import("viem").Chain | undefined>(args: import("viem").WriteContractParameters<TAbi_1, TFunctionName, TChain, TAccount, TChainOverride_2>) => Promise<`0x${string}`>;
532
+ extend: <const client extends {
533
+ [x: string]: unknown;
534
+ account?: undefined;
535
+ batch?: undefined;
536
+ cacheTime?: undefined;
537
+ chain?: undefined;
538
+ key?: undefined;
539
+ name?: undefined;
540
+ pollingInterval?: undefined;
541
+ request?: undefined;
542
+ transport?: undefined;
543
+ type?: undefined;
544
+ uid?: undefined;
545
+ }>(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>>;
546
+ }, { name, resolverAddress }: ClearRecordsDataParameters) => {
547
+ data: `0x${string}`;
548
+ to: `0x${string}`;
549
+ };
550
+ }
551
+ export default clearRecords;
552
+ //# sourceMappingURL=clearRecords.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clearRecords.d.ts","sourceRoot":"","sources":["../../../../src/functions/wallet/clearRecords.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,OAAO,EACP,IAAI,EACJ,yBAAyB,EACzB,SAAS,EACV,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAC5E,OAAO,KAAK,EACV,QAAQ,EACR,wBAAwB,EACxB,0BAA0B,EAC3B,MAAM,gBAAgB,CAAA;AAIvB,MAAM,MAAM,0BAA0B,GAAG;IACvC,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAA;IACZ,kCAAkC;IAClC,eAAe,EAAE,OAAO,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG,wBAAwB,CAAA;AAEjE,MAAM,MAAM,sBAAsB,CAChC,MAAM,SAAS,YAAY,EAC3B,QAAQ,SAAS,OAAO,GAAG,SAAS,EACpC,cAAc,SAAS,YAAY,GAAG,SAAS,IAC7C,QAAQ,CACV,0BAA0B,GACxB,0BAA0B,CAAC,MAAM,EAAE,QAAQ,EAAE,cAAc,CAAC,CAC/D,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAA;AAEzC,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAKA,0BAA0B,KACpD,0BAKF,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,iBAAe,YAAY,CACzB,MAAM,SAAS,YAAY,EAC3B,QAAQ,SAAS,OAAO,GAAG,SAAS,EACpC,cAAc,SAAS,YAAY,GAAG,SAAS,GAAG,YAAY,EAE9D,MAAM,EAAE,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,EAClD,EACE,IAAI,EACJ,eAAe,EACf,GAAG,MAAM,EACV,EAAE,sBAAsB,CAAC,MAAM,EAAE,QAAQ,EAAE,cAAc,CAAC,GAC1D,OAAO,CAAC,sBAAsB,CAAC,CAUjC;kBArBc,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyB3B,eAAe,YAAY,CAAA"}
@@ -270,7 +270,9 @@ export declare const makeFunctionData: <TChain extends ChainWithEns, TAccount ex
270
270
  * @example
271
271
  * import { createWalletClient, custom } from 'viem'
272
272
  * import { mainnet } from 'viem/chains'
273
- * import { addEnsContracts, commitName, randomSecret } from '@ensdomains/ensjs'
273
+ * import { addEnsContracts } from '@ensdomains/ensjs'
274
+ * import { commitName } from '@ensdomains/ensjs/wallet'
275
+ * import { randomSecret } from '@ensdomains/ensjs/utils'
274
276
  *
275
277
  * const wallet = createWalletClient({
276
278
  * chain: addEnsContracts(mainnet),
@@ -1 +1 @@
1
- {"version":3,"file":"commitName.d.ts","sourceRoot":"","sources":["../../../../src/functions/wallet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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCzB,eAAe,UAAU,CAAA"}
@@ -294,7 +294,8 @@ export declare const makeFunctionData: <TChain extends ChainWithEns, TAccount ex
294
294
  * @example
295
295
  * import { createWalletClient, custom } from 'viem'
296
296
  * import { mainnet } from 'viem/chains'
297
- * import { addEnsContracts, createSubname } from '@ensdomains/ensjs'
297
+ * import { addEnsContracts } from '@ensdomains/ensjs'
298
+ * import { createSubname } from '@ensdomains/ensjs/wallet'
298
299
  *
299
300
  * const wallet = createWalletClient({
300
301
  * chain: addEnsContracts(mainnet),
@@ -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,EAAE,MAAM,sBAAsB,CAAA;AAS/E,KAAK,+BAA+B,GAAG;IACrC,wBAAwB;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,2BAA2B;IAC3B,KAAK,EAAE,OAAO,CAAA;IACd,oCAAoC;IACpC,QAAQ,EAAE,UAAU,GAAG,aAAa,CAAA;IACpC,8BAA8B;IAC9B,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,0CAA0C;IAC1C,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,yCAAyC;IACzC,KAAK,CAAC,EAAE,sBAAsB,CAAA;CAC/B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;;;;;;;;;;;;;GAsBG;AACH,iBAAe,aAAa,CAC1B,MAAM,SAAS,YAAY,EAC3B,QAAQ,SAAS,OAAO,GAAG,SAAS,EACpC,cAAc,SAAS,YAAY,GAAG,SAAS,GAAG,YAAY,EAE9D,MAAM,EAAE,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,EAClD,EACE,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,eAAe,EACf,MAAM,EACN,KAAK,EACL,GAAG,MAAM,EACV,EAAE,uBAAuB,CAAC,MAAM,EAAE,QAAQ,EAAE,cAAc,CAAC,GAC3D,OAAO,CAAC,uBAAuB,CAAC,CAclC;kBA7Bc,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiC5B,eAAe,aAAa,CAAA"}
@@ -276,7 +276,8 @@ export declare const makeFunctionData: <TChain extends ChainWithEns, TAccount ex
276
276
  * @example
277
277
  * import { createWalletClient, custom } from 'viem'
278
278
  * import { mainnet } from 'viem/chains'
279
- * import { addEnsContracts, deleteSubname } from '@ensdomains/ensjs'
279
+ * import { addEnsContracts } from '@ensdomains/ensjs'
280
+ * import { deleteSubname } from '@ensdomains/ensjs/wallet'
280
281
  *
281
282
  * const wallet = createWalletClient({
282
283
  * chain: mainnetWithEns,
@@ -1 +1 @@
1
- {"version":3,"file":"deleteSubname.d.ts","sourceRoot":"","sources":["../../../../src/functions/wallet/deleteSubname.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,IAAI,EACT,KAAK,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2B5B,eAAe,aAAa,CAAA"}
@@ -275,7 +275,10 @@ export declare const makeFunctionData: <TChain extends ChainWithEns, TAccount ex
275
275
  * @example
276
276
  * import { createPublicClient, createWalletClient, http, custom } from 'viem'
277
277
  * import { mainnet } from 'viem/chains'
278
- * import { addEnsContracts, commitName, randomSecret, getPrice, registerName } from '@ensdomains/ensjs'
278
+ * import { addEnsContracts } from '@ensdomains/ensjs'
279
+ * import { getPrice } from '@ensdomains/ensjs/public'
280
+ * import { randomSecret } from '@ensdomains/ensjs/utils'
281
+ * import { commitName, registerName } from '@ensdomains/ensjs/wallet'
279
282
  *
280
283
  * const mainnetWithEns = addEnsContracts(mainnet)
281
284
  * const client = createPublicClient({
@@ -1 +1 @@
1
- {"version":3,"file":"registerName.d.ts","sourceRoot":"","sources":["../../../../src/functions/wallet/registerName.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,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;AAI5E,OAAO,KAAK,EACV,QAAQ,EACR,wBAAwB,EACxB,0BAA0B,EAC3B,MAAM,gBAAgB,CAAA;AAEvB,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,gCAAgC,CAAA;AAGvC,MAAM,MAAM,0BAA0B,GAAG,sBAAsB,GAAG;IAChE,4BAA4B;IAC5B,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG,wBAAwB,GAAG;IAClE,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,sBAAsB,CAChC,MAAM,SAAS,YAAY,EAC3B,QAAQ,SAAS,OAAO,GAAG,SAAS,EAC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAKP,0BAA0B,KAC7C,0BAwBF,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,iBAAe,YAAY,CACzB,MAAM,SAAS,YAAY,EAC3B,QAAQ,SAAS,OAAO,GAAG,SAAS,EACpC,cAAc,SAAS,YAAY,GAAG,SAAS,GAAG,YAAY,EAE9D,MAAM,EAAE,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,EAClD,EACE,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,MAAM,EACN,eAAe,EACf,OAAO,EACP,aAAa,EACb,KAAK,EACL,KAAK,EACL,GAAG,MAAM,EACV,EAAE,sBAAsB,CAAC,MAAM,EAAE,QAAQ,EAAE,cAAc,CAAC,GAC1D,OAAO,CAAC,sBAAsB,CAAC,CAiBjC;kBAnCc,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuC3B,eAAe,YAAY,CAAA"}
@@ -278,7 +278,9 @@ export declare const makeFunctionData: <TChain extends ChainWithEns, TAccount ex
278
278
  * @example
279
279
  * import { createPublicClient, createWalletClient, http, custom } from 'viem'
280
280
  * import { mainnet } from 'viem/chains'
281
- * import { addEnsContracts, renewNames, getPrice } from '@ensdomains/ensjs'
281
+ * import { addEnsContracts } from '@ensdomains/ensjs'
282
+ * import { getPrice } from '@ensdomains/ensjs/public'
283
+ * import { renewNames } from '@ensdomains/ensjs/wallet'
282
284
  *
283
285
  * const mainnetWithEns = addEnsContracts(mainnet)
284
286
  * const client = createPublicClient({