@solana-name-service/sns-sdk-kit 0.9.0-beta

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 (452) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +85 -0
  3. package/dist/cjs/_virtual/ipaddr.cjs +2 -0
  4. package/dist/cjs/_virtual/ipaddr.cjs.map +1 -0
  5. package/dist/cjs/_virtual/ipaddr2.cjs +2 -0
  6. package/dist/cjs/_virtual/ipaddr2.cjs.map +1 -0
  7. package/dist/cjs/address/getDomainsForAddress.cjs +2 -0
  8. package/dist/cjs/address/getDomainsForAddress.cjs.map +1 -0
  9. package/dist/cjs/address/getNftsForAddress.cjs +2 -0
  10. package/dist/cjs/address/getNftsForAddress.cjs.map +1 -0
  11. package/dist/cjs/address/getPrimaryDomain.cjs +2 -0
  12. package/dist/cjs/address/getPrimaryDomain.cjs.map +1 -0
  13. package/dist/cjs/address/getPrimaryDomainsBatch.cjs +2 -0
  14. package/dist/cjs/address/getPrimaryDomainsBatch.cjs.map +1 -0
  15. package/dist/cjs/bindings/burnDomain.cjs +2 -0
  16. package/dist/cjs/bindings/burnDomain.cjs.map +1 -0
  17. package/dist/cjs/bindings/createNameRegistry.cjs +2 -0
  18. package/dist/cjs/bindings/createNameRegistry.cjs.map +1 -0
  19. package/dist/cjs/bindings/createRecord.cjs +2 -0
  20. package/dist/cjs/bindings/createRecord.cjs.map +1 -0
  21. package/dist/cjs/bindings/createReverse.cjs +2 -0
  22. package/dist/cjs/bindings/createReverse.cjs.map +1 -0
  23. package/dist/cjs/bindings/createSubdomain.cjs +2 -0
  24. package/dist/cjs/bindings/createSubdomain.cjs.map +1 -0
  25. package/dist/cjs/bindings/deleteNameRegistry.cjs +2 -0
  26. package/dist/cjs/bindings/deleteNameRegistry.cjs.map +1 -0
  27. package/dist/cjs/bindings/deleteRecord.cjs +2 -0
  28. package/dist/cjs/bindings/deleteRecord.cjs.map +1 -0
  29. package/dist/cjs/bindings/registerDomain.cjs +2 -0
  30. package/dist/cjs/bindings/registerDomain.cjs.map +1 -0
  31. package/dist/cjs/bindings/registerWithNft.cjs +2 -0
  32. package/dist/cjs/bindings/registerWithNft.cjs.map +1 -0
  33. package/dist/cjs/bindings/setPrimaryDomain.cjs +2 -0
  34. package/dist/cjs/bindings/setPrimaryDomain.cjs.map +1 -0
  35. package/dist/cjs/bindings/transferDomain.cjs +2 -0
  36. package/dist/cjs/bindings/transferDomain.cjs.map +1 -0
  37. package/dist/cjs/bindings/transferSubdomain.cjs +2 -0
  38. package/dist/cjs/bindings/transferSubdomain.cjs.map +1 -0
  39. package/dist/cjs/bindings/updateNameRegistry.cjs +2 -0
  40. package/dist/cjs/bindings/updateNameRegistry.cjs.map +1 -0
  41. package/dist/cjs/bindings/updateRecord.cjs +2 -0
  42. package/dist/cjs/bindings/updateRecord.cjs.map +1 -0
  43. package/dist/cjs/bindings/validateRoa.cjs +2 -0
  44. package/dist/cjs/bindings/validateRoa.cjs.map +1 -0
  45. package/dist/cjs/bindings/validateRoaEthereum.cjs +2 -0
  46. package/dist/cjs/bindings/validateRoaEthereum.cjs.map +1 -0
  47. package/dist/cjs/bindings/writeRoa.cjs +2 -0
  48. package/dist/cjs/bindings/writeRoa.cjs.map +1 -0
  49. package/dist/cjs/codecs.cjs +2 -0
  50. package/dist/cjs/codecs.cjs.map +1 -0
  51. package/dist/cjs/constants/addresses.cjs +2 -0
  52. package/dist/cjs/constants/addresses.cjs.map +1 -0
  53. package/dist/cjs/constants/pythFeeds.cjs +2 -0
  54. package/dist/cjs/constants/pythFeeds.cjs.map +1 -0
  55. package/dist/cjs/constants/records.cjs +2 -0
  56. package/dist/cjs/constants/records.cjs.map +1 -0
  57. package/dist/cjs/domain/getAllDomains.cjs +2 -0
  58. package/dist/cjs/domain/getAllDomains.cjs.map +1 -0
  59. package/dist/cjs/domain/getDomainAddress.cjs +2 -0
  60. package/dist/cjs/domain/getDomainAddress.cjs.map +1 -0
  61. package/dist/cjs/domain/getDomainOwner.cjs +2 -0
  62. package/dist/cjs/domain/getDomainOwner.cjs.map +1 -0
  63. package/dist/cjs/domain/getDomainRecord.cjs +2 -0
  64. package/dist/cjs/domain/getDomainRecord.cjs.map +1 -0
  65. package/dist/cjs/domain/getDomainRecords.cjs +2 -0
  66. package/dist/cjs/domain/getDomainRecords.cjs.map +1 -0
  67. package/dist/cjs/domain/getSubdomains.cjs +2 -0
  68. package/dist/cjs/domain/getSubdomains.cjs.map +1 -0
  69. package/dist/cjs/domain/resolveDomain.cjs +2 -0
  70. package/dist/cjs/domain/resolveDomain.cjs.map +1 -0
  71. package/dist/cjs/errors.cjs +2 -0
  72. package/dist/cjs/errors.cjs.map +1 -0
  73. package/dist/cjs/index.cjs +2 -0
  74. package/dist/cjs/index.cjs.map +1 -0
  75. package/dist/cjs/instructions/allocateAndPostRecordInstructio.cjs +2 -0
  76. package/dist/cjs/instructions/allocateAndPostRecordInstructio.cjs.map +1 -0
  77. package/dist/cjs/instructions/burnDomainInstruction.cjs +2 -0
  78. package/dist/cjs/instructions/burnDomainInstruction.cjs.map +1 -0
  79. package/dist/cjs/instructions/createAtaInstruction.cjs +2 -0
  80. package/dist/cjs/instructions/createAtaInstruction.cjs.map +1 -0
  81. package/dist/cjs/instructions/createInstructionV3.cjs +2 -0
  82. package/dist/cjs/instructions/createInstructionV3.cjs.map +1 -0
  83. package/dist/cjs/instructions/createNameRegistryInstruction.cjs +2 -0
  84. package/dist/cjs/instructions/createNameRegistryInstruction.cjs.map +1 -0
  85. package/dist/cjs/instructions/createReverseInstruction.cjs +2 -0
  86. package/dist/cjs/instructions/createReverseInstruction.cjs.map +1 -0
  87. package/dist/cjs/instructions/createSplitV2Instruction.cjs +2 -0
  88. package/dist/cjs/instructions/createSplitV2Instruction.cjs.map +1 -0
  89. package/dist/cjs/instructions/createV2Instruction.cjs +2 -0
  90. package/dist/cjs/instructions/createV2Instruction.cjs.map +1 -0
  91. package/dist/cjs/instructions/createWithNftInstruction.cjs +2 -0
  92. package/dist/cjs/instructions/createWithNftInstruction.cjs.map +1 -0
  93. package/dist/cjs/instructions/deleteNameRegistryInstruction.cjs +2 -0
  94. package/dist/cjs/instructions/deleteNameRegistryInstruction.cjs.map +1 -0
  95. package/dist/cjs/instructions/deleteRecordInstruction.cjs +2 -0
  96. package/dist/cjs/instructions/deleteRecordInstruction.cjs.map +1 -0
  97. package/dist/cjs/instructions/reallocInstruction.cjs +2 -0
  98. package/dist/cjs/instructions/reallocInstruction.cjs.map +1 -0
  99. package/dist/cjs/instructions/registerFavoriteInstruction.cjs +2 -0
  100. package/dist/cjs/instructions/registerFavoriteInstruction.cjs.map +1 -0
  101. package/dist/cjs/instructions/transferInstruction.cjs +2 -0
  102. package/dist/cjs/instructions/transferInstruction.cjs.map +1 -0
  103. package/dist/cjs/instructions/updateNameRegistryInstruction.cjs +2 -0
  104. package/dist/cjs/instructions/updateNameRegistryInstruction.cjs.map +1 -0
  105. package/dist/cjs/instructions/updateRecordInstruction.cjs +2 -0
  106. package/dist/cjs/instructions/updateRecordInstruction.cjs.map +1 -0
  107. package/dist/cjs/instructions/validateRoaEthereumInstruction.cjs +2 -0
  108. package/dist/cjs/instructions/validateRoaEthereumInstruction.cjs.map +1 -0
  109. package/dist/cjs/instructions/validateRoaInstruction.cjs +2 -0
  110. package/dist/cjs/instructions/validateRoaInstruction.cjs.map +1 -0
  111. package/dist/cjs/instructions/writeRoaInstruction.cjs +2 -0
  112. package/dist/cjs/instructions/writeRoaInstruction.cjs.map +1 -0
  113. package/dist/cjs/nft/getNftMint.cjs +2 -0
  114. package/dist/cjs/nft/getNftMint.cjs.map +1 -0
  115. package/dist/cjs/nft/getNftOwner.cjs +2 -0
  116. package/dist/cjs/nft/getNftOwner.cjs.map +1 -0
  117. package/dist/cjs/node_modules/@scure/base/lib/esm/index.cjs +3 -0
  118. package/dist/cjs/node_modules/@scure/base/lib/esm/index.cjs.map +1 -0
  119. package/dist/cjs/node_modules/@solana-program/token/dist/src/index.cjs +2 -0
  120. package/dist/cjs/node_modules/@solana-program/token/dist/src/index.cjs.map +1 -0
  121. package/dist/cjs/node_modules/borsh/lib/esm/buffer.cjs +2 -0
  122. package/dist/cjs/node_modules/borsh/lib/esm/buffer.cjs.map +1 -0
  123. package/dist/cjs/node_modules/borsh/lib/esm/deserialize.cjs +2 -0
  124. package/dist/cjs/node_modules/borsh/lib/esm/deserialize.cjs.map +1 -0
  125. package/dist/cjs/node_modules/borsh/lib/esm/index.cjs +2 -0
  126. package/dist/cjs/node_modules/borsh/lib/esm/index.cjs.map +1 -0
  127. package/dist/cjs/node_modules/borsh/lib/esm/serialize.cjs +2 -0
  128. package/dist/cjs/node_modules/borsh/lib/esm/serialize.cjs.map +1 -0
  129. package/dist/cjs/node_modules/borsh/lib/esm/types.cjs +2 -0
  130. package/dist/cjs/node_modules/borsh/lib/esm/types.cjs.map +1 -0
  131. package/dist/cjs/node_modules/borsh/lib/esm/utils.cjs +2 -0
  132. package/dist/cjs/node_modules/borsh/lib/esm/utils.cjs.map +1 -0
  133. package/dist/cjs/node_modules/ipaddr.js/lib/ipaddr.cjs +2 -0
  134. package/dist/cjs/node_modules/ipaddr.js/lib/ipaddr.cjs.map +1 -0
  135. package/dist/cjs/node_modules/punycode/punycode.es6.cjs +2 -0
  136. package/dist/cjs/node_modules/punycode/punycode.es6.cjs.map +1 -0
  137. package/dist/cjs/record/getRecordV1Address.cjs +2 -0
  138. package/dist/cjs/record/getRecordV1Address.cjs.map +1 -0
  139. package/dist/cjs/record/getRecordV2Address.cjs +2 -0
  140. package/dist/cjs/record/getRecordV2Address.cjs.map +1 -0
  141. package/dist/cjs/record/verifyRecordRightOfAssociation.cjs +2 -0
  142. package/dist/cjs/record/verifyRecordRightOfAssociation.cjs.map +1 -0
  143. package/dist/cjs/record/verifyRecordStaleness.cjs +2 -0
  144. package/dist/cjs/record/verifyRecordStaleness.cjs.map +1 -0
  145. package/dist/cjs/states/nft.cjs +2 -0
  146. package/dist/cjs/states/nft.cjs.map +1 -0
  147. package/dist/cjs/states/primaryDomain.cjs +2 -0
  148. package/dist/cjs/states/primaryDomain.cjs.map +1 -0
  149. package/dist/cjs/states/record.cjs +2 -0
  150. package/dist/cjs/states/record.cjs.map +1 -0
  151. package/dist/cjs/states/registry.cjs +2 -0
  152. package/dist/cjs/states/registry.cjs.map +1 -0
  153. package/dist/cjs/types/record.cjs +2 -0
  154. package/dist/cjs/types/record.cjs.map +1 -0
  155. package/dist/cjs/types/validation.cjs +2 -0
  156. package/dist/cjs/types/validation.cjs.map +1 -0
  157. package/dist/cjs/utils/check.cjs +2 -0
  158. package/dist/cjs/utils/check.cjs.map +1 -0
  159. package/dist/cjs/utils/checkAddressOnCurve/ed25519.cjs +27 -0
  160. package/dist/cjs/utils/checkAddressOnCurve/ed25519.cjs.map +1 -0
  161. package/dist/cjs/utils/checkAddressOnCurve/index.cjs +2 -0
  162. package/dist/cjs/utils/checkAddressOnCurve/index.cjs.map +1 -0
  163. package/dist/cjs/utils/deriveAddress.cjs +2 -0
  164. package/dist/cjs/utils/deriveAddress.cjs.map +1 -0
  165. package/dist/cjs/utils/deserializers/deserializeRecordContent.cjs +2 -0
  166. package/dist/cjs/utils/deserializers/deserializeRecordContent.cjs.map +1 -0
  167. package/dist/cjs/utils/deserializers/deserializeReverse.cjs +2 -0
  168. package/dist/cjs/utils/deserializers/deserializeReverse.cjs.map +1 -0
  169. package/dist/cjs/utils/getPythFeedAddress.cjs +2 -0
  170. package/dist/cjs/utils/getPythFeedAddress.cjs.map +1 -0
  171. package/dist/cjs/utils/getReverseAddress.cjs +2 -0
  172. package/dist/cjs/utils/getReverseAddress.cjs.map +1 -0
  173. package/dist/cjs/utils/getReverseAddressFromDomainAddress.cjs +2 -0
  174. package/dist/cjs/utils/getReverseAddressFromDomainAddress.cjs.map +1 -0
  175. package/dist/cjs/utils/reverseLookup.cjs +2 -0
  176. package/dist/cjs/utils/reverseLookup.cjs.map +1 -0
  177. package/dist/cjs/utils/reverseLookupBatch.cjs +2 -0
  178. package/dist/cjs/utils/reverseLookupBatch.cjs.map +1 -0
  179. package/dist/cjs/utils/serializers/serializeRecordContent.cjs +2 -0
  180. package/dist/cjs/utils/serializers/serializeRecordContent.cjs.map +1 -0
  181. package/dist/cjs/utils/uint8Array/uint8ArrayFromHex.cjs +2 -0
  182. package/dist/cjs/utils/uint8Array/uint8ArrayFromHex.cjs.map +1 -0
  183. package/dist/cjs/utils/uint8Array/uint8ArrayToHex.cjs +2 -0
  184. package/dist/cjs/utils/uint8Array/uint8ArrayToHex.cjs.map +1 -0
  185. package/dist/cjs/utils/uint8Array/uint8ArraysEqual.cjs +2 -0
  186. package/dist/cjs/utils/uint8Array/uint8ArraysEqual.cjs.map +1 -0
  187. package/dist/esm/_virtual/ipaddr.mjs +2 -0
  188. package/dist/esm/_virtual/ipaddr.mjs.map +1 -0
  189. package/dist/esm/_virtual/ipaddr2.mjs +2 -0
  190. package/dist/esm/_virtual/ipaddr2.mjs.map +1 -0
  191. package/dist/esm/address/getDomainsForAddress.mjs +2 -0
  192. package/dist/esm/address/getDomainsForAddress.mjs.map +1 -0
  193. package/dist/esm/address/getNftsForAddress.mjs +2 -0
  194. package/dist/esm/address/getNftsForAddress.mjs.map +1 -0
  195. package/dist/esm/address/getPrimaryDomain.mjs +2 -0
  196. package/dist/esm/address/getPrimaryDomain.mjs.map +1 -0
  197. package/dist/esm/address/getPrimaryDomainsBatch.mjs +2 -0
  198. package/dist/esm/address/getPrimaryDomainsBatch.mjs.map +1 -0
  199. package/dist/esm/bindings/burnDomain.mjs +2 -0
  200. package/dist/esm/bindings/burnDomain.mjs.map +1 -0
  201. package/dist/esm/bindings/createNameRegistry.mjs +2 -0
  202. package/dist/esm/bindings/createNameRegistry.mjs.map +1 -0
  203. package/dist/esm/bindings/createRecord.mjs +2 -0
  204. package/dist/esm/bindings/createRecord.mjs.map +1 -0
  205. package/dist/esm/bindings/createReverse.mjs +2 -0
  206. package/dist/esm/bindings/createReverse.mjs.map +1 -0
  207. package/dist/esm/bindings/createSubdomain.mjs +2 -0
  208. package/dist/esm/bindings/createSubdomain.mjs.map +1 -0
  209. package/dist/esm/bindings/deleteNameRegistry.mjs +2 -0
  210. package/dist/esm/bindings/deleteNameRegistry.mjs.map +1 -0
  211. package/dist/esm/bindings/deleteRecord.mjs +2 -0
  212. package/dist/esm/bindings/deleteRecord.mjs.map +1 -0
  213. package/dist/esm/bindings/registerDomain.mjs +2 -0
  214. package/dist/esm/bindings/registerDomain.mjs.map +1 -0
  215. package/dist/esm/bindings/registerWithNft.mjs +2 -0
  216. package/dist/esm/bindings/registerWithNft.mjs.map +1 -0
  217. package/dist/esm/bindings/setPrimaryDomain.mjs +2 -0
  218. package/dist/esm/bindings/setPrimaryDomain.mjs.map +1 -0
  219. package/dist/esm/bindings/transferDomain.mjs +2 -0
  220. package/dist/esm/bindings/transferDomain.mjs.map +1 -0
  221. package/dist/esm/bindings/transferSubdomain.mjs +2 -0
  222. package/dist/esm/bindings/transferSubdomain.mjs.map +1 -0
  223. package/dist/esm/bindings/updateNameRegistry.mjs +2 -0
  224. package/dist/esm/bindings/updateNameRegistry.mjs.map +1 -0
  225. package/dist/esm/bindings/updateRecord.mjs +2 -0
  226. package/dist/esm/bindings/updateRecord.mjs.map +1 -0
  227. package/dist/esm/bindings/validateRoa.mjs +2 -0
  228. package/dist/esm/bindings/validateRoa.mjs.map +1 -0
  229. package/dist/esm/bindings/validateRoaEthereum.mjs +2 -0
  230. package/dist/esm/bindings/validateRoaEthereum.mjs.map +1 -0
  231. package/dist/esm/bindings/writeRoa.mjs +2 -0
  232. package/dist/esm/bindings/writeRoa.mjs.map +1 -0
  233. package/dist/esm/codecs.mjs +2 -0
  234. package/dist/esm/codecs.mjs.map +1 -0
  235. package/dist/esm/constants/addresses.mjs +2 -0
  236. package/dist/esm/constants/addresses.mjs.map +1 -0
  237. package/dist/esm/constants/pythFeeds.mjs +2 -0
  238. package/dist/esm/constants/pythFeeds.mjs.map +1 -0
  239. package/dist/esm/constants/records.mjs +2 -0
  240. package/dist/esm/constants/records.mjs.map +1 -0
  241. package/dist/esm/domain/getAllDomains.mjs +2 -0
  242. package/dist/esm/domain/getAllDomains.mjs.map +1 -0
  243. package/dist/esm/domain/getDomainAddress.mjs +2 -0
  244. package/dist/esm/domain/getDomainAddress.mjs.map +1 -0
  245. package/dist/esm/domain/getDomainOwner.mjs +2 -0
  246. package/dist/esm/domain/getDomainOwner.mjs.map +1 -0
  247. package/dist/esm/domain/getDomainRecord.mjs +2 -0
  248. package/dist/esm/domain/getDomainRecord.mjs.map +1 -0
  249. package/dist/esm/domain/getDomainRecords.mjs +2 -0
  250. package/dist/esm/domain/getDomainRecords.mjs.map +1 -0
  251. package/dist/esm/domain/getSubdomains.mjs +2 -0
  252. package/dist/esm/domain/getSubdomains.mjs.map +1 -0
  253. package/dist/esm/domain/resolveDomain.mjs +2 -0
  254. package/dist/esm/domain/resolveDomain.mjs.map +1 -0
  255. package/dist/esm/errors.mjs +2 -0
  256. package/dist/esm/errors.mjs.map +1 -0
  257. package/dist/esm/index.mjs +2 -0
  258. package/dist/esm/index.mjs.map +1 -0
  259. package/dist/esm/instructions/allocateAndPostRecordInstructio.mjs +2 -0
  260. package/dist/esm/instructions/allocateAndPostRecordInstructio.mjs.map +1 -0
  261. package/dist/esm/instructions/burnDomainInstruction.mjs +2 -0
  262. package/dist/esm/instructions/burnDomainInstruction.mjs.map +1 -0
  263. package/dist/esm/instructions/createAtaInstruction.mjs +2 -0
  264. package/dist/esm/instructions/createAtaInstruction.mjs.map +1 -0
  265. package/dist/esm/instructions/createInstructionV3.mjs +2 -0
  266. package/dist/esm/instructions/createInstructionV3.mjs.map +1 -0
  267. package/dist/esm/instructions/createNameRegistryInstruction.mjs +2 -0
  268. package/dist/esm/instructions/createNameRegistryInstruction.mjs.map +1 -0
  269. package/dist/esm/instructions/createReverseInstruction.mjs +2 -0
  270. package/dist/esm/instructions/createReverseInstruction.mjs.map +1 -0
  271. package/dist/esm/instructions/createSplitV2Instruction.mjs +2 -0
  272. package/dist/esm/instructions/createSplitV2Instruction.mjs.map +1 -0
  273. package/dist/esm/instructions/createV2Instruction.mjs +2 -0
  274. package/dist/esm/instructions/createV2Instruction.mjs.map +1 -0
  275. package/dist/esm/instructions/createWithNftInstruction.mjs +2 -0
  276. package/dist/esm/instructions/createWithNftInstruction.mjs.map +1 -0
  277. package/dist/esm/instructions/deleteNameRegistryInstruction.mjs +2 -0
  278. package/dist/esm/instructions/deleteNameRegistryInstruction.mjs.map +1 -0
  279. package/dist/esm/instructions/deleteRecordInstruction.mjs +2 -0
  280. package/dist/esm/instructions/deleteRecordInstruction.mjs.map +1 -0
  281. package/dist/esm/instructions/reallocInstruction.mjs +2 -0
  282. package/dist/esm/instructions/reallocInstruction.mjs.map +1 -0
  283. package/dist/esm/instructions/registerFavoriteInstruction.mjs +2 -0
  284. package/dist/esm/instructions/registerFavoriteInstruction.mjs.map +1 -0
  285. package/dist/esm/instructions/transferInstruction.mjs +2 -0
  286. package/dist/esm/instructions/transferInstruction.mjs.map +1 -0
  287. package/dist/esm/instructions/updateNameRegistryInstruction.mjs +2 -0
  288. package/dist/esm/instructions/updateNameRegistryInstruction.mjs.map +1 -0
  289. package/dist/esm/instructions/updateRecordInstruction.mjs +2 -0
  290. package/dist/esm/instructions/updateRecordInstruction.mjs.map +1 -0
  291. package/dist/esm/instructions/validateRoaEthereumInstruction.mjs +2 -0
  292. package/dist/esm/instructions/validateRoaEthereumInstruction.mjs.map +1 -0
  293. package/dist/esm/instructions/validateRoaInstruction.mjs +2 -0
  294. package/dist/esm/instructions/validateRoaInstruction.mjs.map +1 -0
  295. package/dist/esm/instructions/writeRoaInstruction.mjs +2 -0
  296. package/dist/esm/instructions/writeRoaInstruction.mjs.map +1 -0
  297. package/dist/esm/nft/getNftMint.mjs +2 -0
  298. package/dist/esm/nft/getNftMint.mjs.map +1 -0
  299. package/dist/esm/nft/getNftOwner.mjs +2 -0
  300. package/dist/esm/nft/getNftOwner.mjs.map +1 -0
  301. package/dist/esm/node_modules/@scure/base/lib/esm/index.mjs +3 -0
  302. package/dist/esm/node_modules/@scure/base/lib/esm/index.mjs.map +1 -0
  303. package/dist/esm/node_modules/@solana-program/token/dist/src/index.mjs +2 -0
  304. package/dist/esm/node_modules/@solana-program/token/dist/src/index.mjs.map +1 -0
  305. package/dist/esm/node_modules/borsh/lib/esm/buffer.mjs +2 -0
  306. package/dist/esm/node_modules/borsh/lib/esm/buffer.mjs.map +1 -0
  307. package/dist/esm/node_modules/borsh/lib/esm/deserialize.mjs +2 -0
  308. package/dist/esm/node_modules/borsh/lib/esm/deserialize.mjs.map +1 -0
  309. package/dist/esm/node_modules/borsh/lib/esm/index.mjs +2 -0
  310. package/dist/esm/node_modules/borsh/lib/esm/index.mjs.map +1 -0
  311. package/dist/esm/node_modules/borsh/lib/esm/serialize.mjs +2 -0
  312. package/dist/esm/node_modules/borsh/lib/esm/serialize.mjs.map +1 -0
  313. package/dist/esm/node_modules/borsh/lib/esm/types.mjs +2 -0
  314. package/dist/esm/node_modules/borsh/lib/esm/types.mjs.map +1 -0
  315. package/dist/esm/node_modules/borsh/lib/esm/utils.mjs +2 -0
  316. package/dist/esm/node_modules/borsh/lib/esm/utils.mjs.map +1 -0
  317. package/dist/esm/node_modules/ipaddr.js/lib/ipaddr.mjs +2 -0
  318. package/dist/esm/node_modules/ipaddr.js/lib/ipaddr.mjs.map +1 -0
  319. package/dist/esm/node_modules/punycode/punycode.es6.mjs +2 -0
  320. package/dist/esm/node_modules/punycode/punycode.es6.mjs.map +1 -0
  321. package/dist/esm/record/getRecordV1Address.mjs +2 -0
  322. package/dist/esm/record/getRecordV1Address.mjs.map +1 -0
  323. package/dist/esm/record/getRecordV2Address.mjs +2 -0
  324. package/dist/esm/record/getRecordV2Address.mjs.map +1 -0
  325. package/dist/esm/record/verifyRecordRightOfAssociation.mjs +2 -0
  326. package/dist/esm/record/verifyRecordRightOfAssociation.mjs.map +1 -0
  327. package/dist/esm/record/verifyRecordStaleness.mjs +2 -0
  328. package/dist/esm/record/verifyRecordStaleness.mjs.map +1 -0
  329. package/dist/esm/states/nft.mjs +2 -0
  330. package/dist/esm/states/nft.mjs.map +1 -0
  331. package/dist/esm/states/primaryDomain.mjs +2 -0
  332. package/dist/esm/states/primaryDomain.mjs.map +1 -0
  333. package/dist/esm/states/record.mjs +2 -0
  334. package/dist/esm/states/record.mjs.map +1 -0
  335. package/dist/esm/states/registry.mjs +2 -0
  336. package/dist/esm/states/registry.mjs.map +1 -0
  337. package/dist/esm/types/record.mjs +2 -0
  338. package/dist/esm/types/record.mjs.map +1 -0
  339. package/dist/esm/types/validation.mjs +2 -0
  340. package/dist/esm/types/validation.mjs.map +1 -0
  341. package/dist/esm/utils/check.mjs +2 -0
  342. package/dist/esm/utils/check.mjs.map +1 -0
  343. package/dist/esm/utils/checkAddressOnCurve/ed25519.mjs +27 -0
  344. package/dist/esm/utils/checkAddressOnCurve/ed25519.mjs.map +1 -0
  345. package/dist/esm/utils/checkAddressOnCurve/index.mjs +2 -0
  346. package/dist/esm/utils/checkAddressOnCurve/index.mjs.map +1 -0
  347. package/dist/esm/utils/deriveAddress.mjs +2 -0
  348. package/dist/esm/utils/deriveAddress.mjs.map +1 -0
  349. package/dist/esm/utils/deserializers/deserializeRecordContent.mjs +2 -0
  350. package/dist/esm/utils/deserializers/deserializeRecordContent.mjs.map +1 -0
  351. package/dist/esm/utils/deserializers/deserializeReverse.mjs +2 -0
  352. package/dist/esm/utils/deserializers/deserializeReverse.mjs.map +1 -0
  353. package/dist/esm/utils/getPythFeedAddress.mjs +2 -0
  354. package/dist/esm/utils/getPythFeedAddress.mjs.map +1 -0
  355. package/dist/esm/utils/getReverseAddress.mjs +2 -0
  356. package/dist/esm/utils/getReverseAddress.mjs.map +1 -0
  357. package/dist/esm/utils/getReverseAddressFromDomainAddress.mjs +2 -0
  358. package/dist/esm/utils/getReverseAddressFromDomainAddress.mjs.map +1 -0
  359. package/dist/esm/utils/reverseLookup.mjs +2 -0
  360. package/dist/esm/utils/reverseLookup.mjs.map +1 -0
  361. package/dist/esm/utils/reverseLookupBatch.mjs +2 -0
  362. package/dist/esm/utils/reverseLookupBatch.mjs.map +1 -0
  363. package/dist/esm/utils/serializers/serializeRecordContent.mjs +2 -0
  364. package/dist/esm/utils/serializers/serializeRecordContent.mjs.map +1 -0
  365. package/dist/esm/utils/uint8Array/uint8ArrayFromHex.mjs +2 -0
  366. package/dist/esm/utils/uint8Array/uint8ArrayFromHex.mjs.map +1 -0
  367. package/dist/esm/utils/uint8Array/uint8ArrayToHex.mjs +2 -0
  368. package/dist/esm/utils/uint8Array/uint8ArrayToHex.mjs.map +1 -0
  369. package/dist/esm/utils/uint8Array/uint8ArraysEqual.mjs +2 -0
  370. package/dist/esm/utils/uint8Array/uint8ArraysEqual.mjs.map +1 -0
  371. package/dist/types/address/getDomainsForAddress.d.ts +14 -0
  372. package/dist/types/address/getNftsForAddress.d.ts +15 -0
  373. package/dist/types/address/getPrimaryDomain.d.ts +16 -0
  374. package/dist/types/address/getPrimaryDomainsBatch.d.ts +10 -0
  375. package/dist/types/bindings/burnDomain.d.ts +10 -0
  376. package/dist/types/bindings/createNameRegistry.d.ts +16 -0
  377. package/dist/types/bindings/createRecord.d.ts +14 -0
  378. package/dist/types/bindings/createReverse.d.ts +12 -0
  379. package/dist/types/bindings/createSubdomain.d.ts +14 -0
  380. package/dist/types/bindings/deleteNameRegistry.d.ts +12 -0
  381. package/dist/types/bindings/deleteRecord.d.ts +12 -0
  382. package/dist/types/bindings/registerDomain.d.ts +14 -0
  383. package/dist/types/bindings/registerWithNft.d.ts +12 -0
  384. package/dist/types/bindings/setPrimaryDomain.d.ts +10 -0
  385. package/dist/types/bindings/transferDomain.d.ts +13 -0
  386. package/dist/types/bindings/transferSubdomain.d.ts +16 -0
  387. package/dist/types/bindings/updateNameRegistry.d.ts +13 -0
  388. package/dist/types/bindings/updateRecord.d.ts +13 -0
  389. package/dist/types/bindings/validateRoa.d.ts +14 -0
  390. package/dist/types/bindings/validateRoaEthereum.d.ts +14 -0
  391. package/dist/types/bindings/writeRoa.d.ts +13 -0
  392. package/dist/types/codecs.d.ts +5 -0
  393. package/dist/types/constants/addresses.d.ts +53 -0
  394. package/dist/types/constants/pythFeeds.d.ts +3 -0
  395. package/dist/types/constants/records.d.ts +23 -0
  396. package/dist/types/domain/getAllDomains.d.ts +11 -0
  397. package/dist/types/domain/getDomainAddress.d.ts +23 -0
  398. package/dist/types/domain/getDomainOwner.d.ts +10 -0
  399. package/dist/types/domain/getDomainRecord.d.ts +28 -0
  400. package/dist/types/domain/getDomainRecords.d.ts +30 -0
  401. package/dist/types/domain/getSubdomains.d.ts +14 -0
  402. package/dist/types/domain/resolveDomain.d.ts +20 -0
  403. package/dist/types/errors.d.ts +166 -0
  404. package/dist/types/index.d.ts +74 -0
  405. package/dist/types/instructions/allocateAndPostRecordInstructio.d.ts +23 -0
  406. package/dist/types/instructions/burnDomainInstruction.d.ts +12 -0
  407. package/dist/types/instructions/createAtaInstruction.d.ts +2 -0
  408. package/dist/types/instructions/createInstructionV3.d.ts +24 -0
  409. package/dist/types/instructions/createNameRegistryInstruction.d.ts +26 -0
  410. package/dist/types/instructions/createReverseInstruction.d.ts +16 -0
  411. package/dist/types/instructions/createSplitV2Instruction.d.ts +24 -0
  412. package/dist/types/instructions/createV2Instruction.d.ts +19 -0
  413. package/dist/types/instructions/createWithNftInstruction.d.ts +19 -0
  414. package/dist/types/instructions/deleteNameRegistryInstruction.d.ts +12 -0
  415. package/dist/types/instructions/deleteRecordInstruction.d.ts +12 -0
  416. package/dist/types/instructions/reallocInstruction.d.ts +16 -0
  417. package/dist/types/instructions/registerFavoriteInstruction.d.ts +12 -0
  418. package/dist/types/instructions/transferInstruction.d.ts +21 -0
  419. package/dist/types/instructions/updateNameRegistryInstruction.d.ts +23 -0
  420. package/dist/types/instructions/updateRecordInstruction.d.ts +23 -0
  421. package/dist/types/instructions/validateRoaEthereumInstruction.d.ts +30 -0
  422. package/dist/types/instructions/validateRoaInstruction.d.ts +16 -0
  423. package/dist/types/instructions/writeRoaInstruction.d.ts +20 -0
  424. package/dist/types/nft/getNftMint.d.ts +8 -0
  425. package/dist/types/nft/getNftOwner.d.ts +9 -0
  426. package/dist/types/record/getRecordV1Address.d.ts +9 -0
  427. package/dist/types/record/getRecordV2Address.d.ts +10 -0
  428. package/dist/types/record/verifyRecordRightOfAssociation.d.ts +33 -0
  429. package/dist/types/record/verifyRecordStaleness.d.ts +21 -0
  430. package/dist/types/states/nft.d.ts +50 -0
  431. package/dist/types/states/primaryDomain.d.ts +25 -0
  432. package/dist/types/states/record.d.ts +30 -0
  433. package/dist/types/states/registry.d.ts +39 -0
  434. package/dist/types/types/record.d.ts +37 -0
  435. package/dist/types/types/validation.d.ts +6 -0
  436. package/dist/types/utils/check.d.ts +10 -0
  437. package/dist/types/utils/checkAddressOnCurve/ed25519.d.ts +1 -0
  438. package/dist/types/utils/checkAddressOnCurve/index.d.ts +2 -0
  439. package/dist/types/utils/deriveAddress.d.ts +28 -0
  440. package/dist/types/utils/deserializers/deserializeRecordContent.d.ts +10 -0
  441. package/dist/types/utils/deserializers/deserializeReverse.d.ts +10 -0
  442. package/dist/types/utils/getPythFeedAddress.d.ts +1 -0
  443. package/dist/types/utils/getReverseAddress.d.ts +1 -0
  444. package/dist/types/utils/getReverseAddressFromDomainAddress.d.ts +9 -0
  445. package/dist/types/utils/reverseLookup.d.ts +11 -0
  446. package/dist/types/utils/reverseLookupBatch.d.ts +9 -0
  447. package/dist/types/utils/serializers/serializeRecordContent.d.ts +3 -0
  448. package/dist/types/utils/uint8Array/uint8ArrayFromHex.d.ts +6 -0
  449. package/dist/types/utils/uint8Array/uint8ArrayToHex.d.ts +7 -0
  450. package/dist/types/utils/uint8Array/uint8ArraysConcat.d.ts +8 -0
  451. package/dist/types/utils/uint8Array/uint8ArraysEqual.d.ts +9 -0
  452. package/package.json +62 -0
@@ -0,0 +1,2 @@
1
+ const r=r=>Array.from(r).map((r=>r.toString(16).padStart(2,"0"))).join("");export{r as uint8ArrayToHex};
2
+ //# sourceMappingURL=uint8ArrayToHex.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uint8ArrayToHex.mjs","sources":["../../../../src/utils/uint8Array/uint8ArrayToHex.ts"],"sourcesContent":["import { ReadonlyUint8Array } from \"@solana/kit\";\r\n\r\n/**\r\n * Converts a Uint8Array to a hexadecimal string.\r\n * @param {ReadonlyUint8Array} arr - The Uint8Array to be converted.\r\n * @returns {string} The resulting hexadecimal string.\r\n */\r\nexport const uint8ArrayToHex = (arr: ReadonlyUint8Array) =>\r\n Array.from(arr)\r\n .map((byte) => byte.toString(16).padStart(2, \"0\"))\r\n .join(\"\");\r\n"],"names":["uint8ArrayToHex","arr","Array","from","map","byte","toString","padStart","join"],"mappings":"AAOO,MAAMA,EAAmBC,GAC9BC,MAAMC,KAAKF,GACRG,KAAKC,GAASA,EAAKC,SAAS,IAAIC,SAAS,EAAG,OAC5CC,KAAK"}
@@ -0,0 +1,2 @@
1
+ const e=(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n]));export{e as uint8ArraysEqual};
2
+ //# sourceMappingURL=uint8ArraysEqual.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uint8ArraysEqual.mjs","sources":["../../../../src/utils/uint8Array/uint8ArraysEqual.ts"],"sourcesContent":["import { ReadonlyUint8Array } from \"@solana/kit\";\r\n\r\n/**\r\n * Compares two Uint8Array objects for equality.\r\n *\r\n * @param {Uint8Array} arr1 - The first Uint8Array to compare.\r\n * @param {Uint8Array} arr2 - The second Uint8Array to compare.\r\n * @returns {boolean} - True if both arrays are equal, false otherwise.\r\n */\r\nexport const uint8ArraysEqual = (\r\n arr1: ReadonlyUint8Array,\r\n arr2: ReadonlyUint8Array\r\n): boolean => {\r\n if (arr1.length !== arr2.length) {\r\n return false;\r\n }\r\n\r\n return arr1.every((value, index) => value === arr2[index]);\r\n};\r\n"],"names":["uint8ArraysEqual","arr1","arr2","length","every","value","index"],"mappings":"MASaA,EAAmB,CAC9BC,EACAC,IAEID,EAAKE,SAAWD,EAAKC,QAIlBF,EAAKG,OAAM,CAACC,EAAOC,IAAUD,IAAUH,EAAKI"}
@@ -0,0 +1,14 @@
1
+ import { Address, GetMultipleAccountsApi, GetProgramAccountsApi, Rpc } from "@solana/kit";
2
+ interface Result {
3
+ domain: string;
4
+ domainAddress: Address;
5
+ }
6
+ /**
7
+ * Retrieves the domains owned by the given address.
8
+ *
9
+ * @param rpc - An RPC interface implementing GetProgramAccountsApi and GetMultipleAccountsApi.
10
+ * @param address - The address for which to retrieve associated domains.
11
+ * @returns A promise resolving to an array of objects containing domain and domainAddress.
12
+ */
13
+ export declare const getDomainsForAddress: (rpc: Rpc<GetProgramAccountsApi & GetMultipleAccountsApi>, address: Address) => Promise<Result[]>;
14
+ export {};
@@ -0,0 +1,15 @@
1
+ import { Address, GetMultipleAccountsApi, GetProgramAccountsApi, Rpc } from "@solana/kit";
2
+ interface Result {
3
+ domain: string;
4
+ domainAddress: Address;
5
+ mint: Address;
6
+ }
7
+ /**
8
+ * Retrieves NFTs owned by a given address.
9
+ *
10
+ * @param rpc - An RPC interface implementing GetMultipleAccountsApi and GetProgramAccountsApi.
11
+ * @param address - The address for which NFTs are to be fetched.
12
+ * @returns A promise resolving to an array of Result objects containing domain, domainAddress, and mint.
13
+ */
14
+ export declare const getNftsForAddress: (rpc: Rpc<GetMultipleAccountsApi & GetProgramAccountsApi>, address: Address) => Promise<Result[]>;
15
+ export {};
@@ -0,0 +1,16 @@
1
+ import { Address, GetAccountInfoApi, GetTokenLargestAccountsApi, Rpc } from "@solana/kit";
2
+ /**
3
+ * Fetches the primary domain associated with a given wallet address.
4
+ *
5
+ * @param rpc - An RPC interface implementing GetAccountInfoApi and GetTokenLargestAccountsApi.
6
+ * @param walletAddress - The wallet address for which the primary domain is retrieved.
7
+ * @returns A promise resolving to an object containing:
8
+ * - domainAddress: The address of the primary domain.
9
+ * - domainName: The primary domain name (without .sol suffix).
10
+ * - stale: false if primary domain was set by the current domain owner, true otherwise.
11
+ */
12
+ export declare const getPrimaryDomain: (rpc: Rpc<GetAccountInfoApi & GetTokenLargestAccountsApi>, walletAddress: Address) => Promise<{
13
+ domainAddress: Address;
14
+ domainName: string;
15
+ stale: boolean;
16
+ }>;
@@ -0,0 +1,10 @@
1
+ import { Address, GetMultipleAccountsApi, GetTokenLargestAccountsApi, Rpc } from "@solana/kit";
2
+ /**
3
+ * Batch retrieves the primary domains associated with a list of wallet addresses.
4
+ *
5
+ * @param rpc - An RPC interface implementing GetMultipleAccountsApi and GetTokenLargestAccountsApi.
6
+ * @param walletAddresses - An array of wallet addresses for which primary domains are to be fetched.
7
+ * @returns A promise resolving to an array of strings or undefined values, where each string represents
8
+ * the primary domain name if available and non-stale.
9
+ */
10
+ export declare const getPrimaryDomainsBatch: (rpc: Rpc<GetMultipleAccountsApi & GetTokenLargestAccountsApi>, walletAddresses: Address[]) => Promise<(string | undefined)[]>;
@@ -0,0 +1,10 @@
1
+ import { Address } from "@solana/kit";
2
+ /**
3
+ * Generates an instruction to burn a domain.
4
+ *
5
+ * @param domain - The domain name to be burned.
6
+ * @param owner - The address of the current owner of the domain.
7
+ * @param target - The address to which rent will be refunded.
8
+ * @returns A promise which resolves to the burn domain instruction.
9
+ */
10
+ export declare const burnDomain: (domain: string, owner: Address, target: Address) => Promise<import("@solana/instructions").IInstruction<string, readonly (import("@solana/instructions").IAccountLookupMeta<string, string> | import("@solana/instructions").IAccountMeta<string>)[]>>;
@@ -0,0 +1,16 @@
1
+ import { Address, GetAccountInfoApi, GetMinimumBalanceForRentExemptionApi, IInstruction, Rpc } from "@solana/kit";
2
+ /**
3
+ * Creates a name registry with the given rent budget, allocated space, owner, and class.
4
+ *
5
+ * @param rpc - An RPC interface implementing GetAccountInfoApi and GetMinimumBalanceForRentExemptionApi.
6
+ * @param name - The name of the new account.
7
+ * @param space - The space in bytes allocated to the account.
8
+ * @param payer - The allocation cost payer.
9
+ * @param owner - The address to be set as the owner of the new name account.
10
+ * @param lamports - (Optional) The budget to be set for the name account. If not specified,
11
+ * it'll be the minimum for rent exemption.
12
+ * @param classAddress - (Optional) The address of the class associated with the registry.
13
+ * @param parentAddress - (Optional) The address of the parent registry.
14
+ * @returns A promise which resolves to the create name registry instruction.
15
+ */
16
+ export declare const createNameRegistry: (rpc: Rpc<GetAccountInfoApi & GetMinimumBalanceForRentExemptionApi>, name: string, space: number, payer: Address, owner: Address, lamports?: bigint, classAddress?: Address, parentAddress?: Address) => Promise<IInstruction>;
@@ -0,0 +1,14 @@
1
+ import { Address } from "@solana/kit";
2
+ import { Record } from "../types/record";
3
+ /**
4
+ * Creates a record for the specified domain. The record data will be serialized
5
+ * in compliance with the SNS-IP 1 guidelines.
6
+ *
7
+ * @param domain - The domain under which the record will be created.
8
+ * @param record - A record enum representing the type of record to be created.
9
+ * @param content - The record content.
10
+ * @param owner - The address of the domain's owner.
11
+ * @param payer - The address funding the record creation.
12
+ * @returns A promise which resolves to the create record instruction.
13
+ */
14
+ export declare const createRecord: (domain: string, record: Record, content: string, owner: Address, payer: Address) => Promise<import("@solana/instructions").IInstruction<string, readonly (import("@solana/instructions").IAccountLookupMeta<string, string> | import("@solana/instructions").IAccountMeta<string>)[]>>;
@@ -0,0 +1,12 @@
1
+ import { Address } from "@solana/kit";
2
+ /**
3
+ * Creates a reverse lookup record for the specified domain.
4
+ *
5
+ * @param domainAddress - The address of the domain for which the reverse lookup record is created.
6
+ * @param domain - The domain name to be associated with the reverse lookup record.
7
+ * @param payer - The address funding the creation of the reverse lookup record.
8
+ * @param parentAddress - (Optional) The address of the parent domain, if applicable.
9
+ * @param parentOwner - (Optional) The address of the parent domain owner, if applicable.
10
+ * @returns A promise which resolves to the create reverse lookup instruction.
11
+ */
12
+ export declare const createReverse: (domainAddress: Address, domain: string, payer: Address, parentAddress?: Address, parentOwner?: Address) => Promise<import("@solana/instructions").IInstruction<string, readonly (import("@solana/instructions").IAccountLookupMeta<string, string> | import("@solana/instructions").IAccountMeta<string>)[]>>;
@@ -0,0 +1,14 @@
1
+ import { Address, GetAccountInfoApi, GetMinimumBalanceForRentExemptionApi, IInstruction, Rpc } from "@solana/kit";
2
+ /**
3
+ * Creates a subdomain for the specified domain. This includes setting up the subdomain
4
+ * registry and its reverse lookup record if not already existing.
5
+ *
6
+ * @param rpc - An RPC interface implementing GetAccountInfoApi and GetMinimumBalanceForRentExemptionApi.
7
+ * @param subdomain - The subdomain to create, with or without .sol (e.g., something.sns.sol or something.sns).
8
+ * @param owner - The address of the owner of the parent domain.
9
+ * @param space - (Optional) The space in bytes allocated to the subdomain account (default: 2,000).
10
+ * @param feePayer - (Optional) The address funding the subdomain creation. (default: owner address).
11
+ * @returns A promise that resolves to an array of instructions required to create the subdomain
12
+ * and its reverse lookup record.
13
+ */
14
+ export declare const createSubdomain: (rpc: Rpc<GetAccountInfoApi & GetMinimumBalanceForRentExemptionApi>, subdomain: string, owner: Address, space?: number, feePayer?: Address) => Promise<IInstruction<string, readonly (import("@solana/instructions").IAccountLookupMeta<string, string> | import("@solana/instructions").IAccountMeta<string>)[]>[]>;
@@ -0,0 +1,12 @@
1
+ import { Address, GetAccountInfoApi, IInstruction, Rpc } from "@solana/kit";
2
+ /**
3
+ * Deletes a name registry and refunds the associated rent balance to the specified target.
4
+ *
5
+ * @param rpc - An RPC interface implementing GetAccountInfoApi.
6
+ * @param name - The name of the registry to be deleted.
7
+ * @param refundTarget - The address to which the refunded rent balance will be sent.
8
+ * @param classAddress - (Optional) The address of the class associated with the registry.
9
+ * @param parentAddress - (Optional) The address of the parent registry.
10
+ * @returns A promise which resolves to the delete name registry instruction.
11
+ */
12
+ export declare const deleteNameRegistry: (rpc: Rpc<GetAccountInfoApi>, name: string, refundTarget: Address, classAddress?: Address, parentAddress?: Address) => Promise<IInstruction>;
@@ -0,0 +1,12 @@
1
+ import { Address } from "@solana/kit";
2
+ import { Record } from "../types/record";
3
+ /**
4
+ * Deletes a record under the specified domain and refunds the rent to the payer.
5
+ *
6
+ * @param domain - The domain under which the record resides.
7
+ * @param record - An enumeration representing the type of record to be deleted.
8
+ * @param owner - The address of the domain's owner.
9
+ * @param payer - The address funding the record deletion.
10
+ * @returns A promise which resolves to the delete record instruction.
11
+ */
12
+ export declare const deleteRecord: (domain: string, record: Record, owner: Address, payer: Address) => Promise<import("@solana/instructions").IInstruction<string, readonly (import("@solana/instructions").IAccountLookupMeta<string, string> | import("@solana/instructions").IAccountMeta<string>)[]>>;
@@ -0,0 +1,14 @@
1
+ import { Address, GetAccountInfoApi, IInstruction, Rpc } from "@solana/kit";
2
+ /**
3
+ * Registers a .sol domain.
4
+ *
5
+ * @param rpc - An RPC interface implementing GetAccountInfoApi.
6
+ * @param domain - The domain name to be registered in lowercase.
7
+ * @param space - The space in bytes to be allocated for the domain registry (max: 10,000).
8
+ * @param buyer - The address of the buyer registering the domain.
9
+ * @param buyerTokenAccount - The associated token account of the buyer.
10
+ * @param mint - (Optional) The token mint used for payment. Defaults to USDC.
11
+ * @param referrer - (Optional) The address of the referrer.
12
+ * @returns A promise which resolves to an array of instructions required for domain registration.
13
+ */
14
+ export declare const registerDomain: (rpc: Rpc<GetAccountInfoApi>, domain: string, space: number, buyer: Address, buyerTokenAccount: Address, mint?: Address, referrer?: Address) => Promise<IInstruction<string, readonly (import("@solana/instructions").IAccountLookupMeta<string, string> | import("@solana/instructions").IAccountMeta<string>)[]>[]>;
@@ -0,0 +1,12 @@
1
+ import { Address } from "@solana/kit";
2
+ /**
3
+ * Registers a .sol domain using a Bonfida Wolves NFT.
4
+ *
5
+ * @param domain - The domain name to be registered.
6
+ * @param space - The space in bytes to be allocated for the domain registry.
7
+ * @param buyer - The address of the buyer registering the domain.
8
+ * @param nftSource - The address of the NFT source account.
9
+ * @param nftMint - The mint address of the NFT used for registration.
10
+ * @returns A promise which resolves to the register with NFT instruction.
11
+ */
12
+ export declare const registerWithNft: (domain: string, space: number, buyer: Address, nftSource: Address, nftMint: Address) => Promise<import("@solana/instructions").IInstruction<string, readonly (import("@solana/instructions").IAccountLookupMeta<string, string> | import("@solana/instructions").IAccountMeta<string>)[]>>;
@@ -0,0 +1,10 @@
1
+ import { Address, GetAccountInfoApi, Rpc } from "@solana/kit";
2
+ /**
3
+ * Sets the primary domain for the specified owner.
4
+ *
5
+ * @param rpc - An RPC interface implementing GetAccountInfoApi.
6
+ * @param domainAddress - The address of the domain to be set as primary.
7
+ * @param owner - The address of the domain owner.
8
+ * @returns A promise which resolves to the set primary domain instruction.
9
+ */
10
+ export declare const setPrimaryDomain: (rpc: Rpc<GetAccountInfoApi>, domainAddress: Address, owner: Address) => Promise<import("@solana/instructions").IInstruction<string, readonly (import("@solana/instructions").IAccountLookupMeta<string, string> | import("@solana/instructions").IAccountMeta<string>)[]>>;
@@ -0,0 +1,13 @@
1
+ import { Address, GetAccountInfoApi, IInstruction, Rpc } from "@solana/kit";
2
+ /**
3
+ * Transfers a domain to a new owner.
4
+ *
5
+ * @param rpc - An RPC interface implementing GetAccountInfoApi.
6
+ * @param domain - The name of the domain to be transferred.
7
+ * @param newOwner - The address of the new owner of the domain.
8
+ * @param classAddress - (Optional) The address of the class associated with the domain.
9
+ * @param parentAddress - (Optional) The address of the parent domain.
10
+ * @param parentOwner - (Optional) The address of the parent domain owner.
11
+ * @returns A promise that resolves to the transfer domain instruction.
12
+ */
13
+ export declare const transferDomain: (rpc: Rpc<GetAccountInfoApi>, domain: string, newOwner: Address, classAddress?: Address, parentAddress?: Address, parentOwner?: Address) => Promise<IInstruction>;
@@ -0,0 +1,16 @@
1
+ import { Address, GetAccountInfoApi, IInstruction, Rpc } from "@solana/kit";
2
+ /**
3
+ * Transfers a subdomain to a new owner.
4
+ *
5
+ * @param rpc - An RPC interface implementing GetAccountInfoApi.
6
+ * @param subdomain - The subdomain to transfer. This can include or omit the .sol suffix
7
+ * (e.g., 'something.sns.sol' or 'something.sns').
8
+ * @param newOwner - The address of the new owner.
9
+ * @param isParentOwnerSigner - (Optional) Specifies if the parent domain owner is a signer
10
+ * for this transaction.
11
+ * @param currentOwner - (Optional) The current owner of the subdomain. If not provided, it
12
+ * will be resolved automatically. This is useful for building transactions when the subdomain
13
+ * does not yet exist.
14
+ * @returns A promise that resolves to the transfer subdomain instruction.
15
+ */
16
+ export declare const transferSubdomain: (rpc: Rpc<GetAccountInfoApi>, subdomain: string, newOwner: Address, isParentOwnerSigner?: boolean, currentOwner?: Address) => Promise<IInstruction>;
@@ -0,0 +1,13 @@
1
+ import { Address, GetAccountInfoApi, IInstruction, Rpc } from "@solana/kit";
2
+ /**
3
+ * Update the data of the given name registry.
4
+ *
5
+ * @param rpc - An RPC interface implementing GetAccountInfoApi.
6
+ * @param domain - The name of the domain whose registry will be updated.
7
+ * @param offset - The offset in bytes where the update should begin.
8
+ * @param data - The data to be written to the registry.
9
+ * @param classAddress - (Optional) The address of the class associated with the registry.
10
+ * @param parentAddress - (Optional) The address of the parent registry.
11
+ * @returns A promise that resolves to the update name registry instruction.
12
+ */
13
+ export declare function updateNameRegistry(rpc: Rpc<GetAccountInfoApi>, domain: string, offset: number, data: Uint8Array, classAddress?: Address, parentAddress?: Address): Promise<IInstruction>;
@@ -0,0 +1,13 @@
1
+ import { Address } from "@solana/kit";
2
+ import { Record } from "../types/record";
3
+ /**
4
+ * Updates an existing record under the specified domain.
5
+ *
6
+ * @param domain - The domain under which the record resides.
7
+ * @param record - An enumeration representing the type of record to be updated.
8
+ * @param content - The updated content to be associated with the record.
9
+ * @param owner - The address of the domain's owner.
10
+ * @param payer - The address funding the record update.
11
+ * @returns A promise that resolves to the update record instruction.
12
+ */
13
+ export declare const updateRecord: (domain: string, record: Record, content: string, owner: Address, payer: Address) => Promise<import("@solana/instructions").IInstruction<string, readonly (import("@solana/instructions").IAccountLookupMeta<string, string> | import("@solana/instructions").IAccountMeta<string>)[]>>;
@@ -0,0 +1,14 @@
1
+ import { Address } from "@solana/kit";
2
+ import { Record } from "../types/record";
3
+ /**
4
+ * Validates the right of association of a record.
5
+ *
6
+ * @param staleness - Indicates whether the record validation is stale.
7
+ * @param domain - The domain under which the record resides.
8
+ * @param record - An enumeration representing the type of record to validate.
9
+ * @param owner - The address of the domain's owner.
10
+ * @param payer - The address funding the validation process.
11
+ * @param verifier - The address responsible for verifying the record.
12
+ * @returns A promise that resolves to the validate ROA instruction.
13
+ */
14
+ export declare const validateRoa: (staleness: boolean, domain: string, record: Record, owner: Address, payer: Address, verifier: Address) => Promise<import("@solana/instructions").IInstruction<string, readonly (import("@solana/instructions").IAccountLookupMeta<string, string> | import("@solana/instructions").IAccountMeta<string>)[]>>;
@@ -0,0 +1,14 @@
1
+ import { Address } from "@solana/kit";
2
+ import { Record } from "../types/record";
3
+ /**
4
+ * Validates the right of association of a record using an Ethereum signature.
5
+ *
6
+ * @param domain - The domain under which the record resides.
7
+ * @param record - An enumeration representing the type of record to validate.
8
+ * @param owner - The address of the domain's owner.
9
+ * @param payer - The address funding the validation process.
10
+ * @param signature - The signature used for validation.
11
+ * @param expectedPubkey - The expected public key associated with the validation.
12
+ * @returns A promise that resolves to the validate ROA Ethereum instruction.
13
+ */
14
+ export declare const validateRoaEthereum: (domain: string, record: Record, owner: Address, payer: Address, signature: Uint8Array, expectedPubkey: Uint8Array) => Promise<import("@solana/instructions").IInstruction<string, readonly (import("@solana/instructions").IAccountLookupMeta<string, string> | import("@solana/instructions").IAccountMeta<string>)[]>>;
@@ -0,0 +1,13 @@
1
+ import { Address } from "@solana/kit";
2
+ import { Record } from "../types/record";
3
+ /**
4
+ * Writes a ROA (Right of association) in a record.
5
+ *
6
+ * @param domain - The domain under which the record will be written.
7
+ * @param record - An enumeration representing the type of record to be written.
8
+ * @param owner - The address of the domain's owner.
9
+ * @param payer - The address funding the operation.
10
+ * @param roaId - The identifier for the ROA.
11
+ * @returns A promise that resolves to the write ROA instruction.
12
+ */
13
+ export declare const writeRoa: (domain: string, record: Record, owner: Address, payer: Address, roaId: Address) => Promise<import("@solana/instructions").IInstruction<string, readonly (import("@solana/instructions").IAccountLookupMeta<string, string> | import("@solana/instructions").IAccountMeta<string>)[]>>;
@@ -0,0 +1,5 @@
1
+ export declare const addressCodec: import("@solana/codecs-core").FixedSizeCodec<import("@solana/addresses").Address<string>, import("@solana/addresses").Address<string>, 32>;
2
+ export declare const base58Codec: import("@solana/codecs-core").VariableSizeCodec<string, string>;
3
+ export declare const base64Codec: import("@solana/codecs-core").VariableSizeCodec<string>;
4
+ export declare const utf8Codec: import("@solana/codecs-core").VariableSizeCodec<string>;
5
+ export declare const tokenCodec: import("@solana/codecs-core").Codec<import("@solana-program/token").TokenArgs, import("@solana-program/token").Token>;
@@ -0,0 +1,53 @@
1
+ import { Address } from "@solana/addresses";
2
+ export declare const SYSTEM_PROGRAM_ADDRESS: Address;
3
+ export declare const SYSVAR_RENT_ADDRESS: Address;
4
+ export declare const DEFAULT_ADDRESS: Address;
5
+ /** Address of the SPL Token program */
6
+ export declare const TOKEN_PROGRAM_ADDRESS: Address;
7
+ /**
8
+ * The Solana Name Service program address
9
+ */
10
+ export declare const NAME_PROGRAM_ADDRESS: Address;
11
+ /**
12
+ * The `.sol` TLD
13
+ */
14
+ export declare const ROOT_DOMAIN_ADDRESS: Address;
15
+ /**
16
+ * The SNS Registry program address
17
+ */
18
+ export declare const REGISTRY_PROGRAM_ADDRESS: Address;
19
+ /**
20
+ * The SNS Name Tokenizer program address
21
+ */
22
+ export declare const NAME_TOKENIZER_ADDRESS: Address;
23
+ /**
24
+ * The SNS Offers program address
25
+ */
26
+ export declare const NAME_OFFERS_ADDRESS: Address;
27
+ /**
28
+ * The SNS Records program address (SNS_RECORDS_ID)
29
+ */
30
+ export declare const RECORDS_PROGRAM_ADDRESS: Address;
31
+ /**
32
+ * The reverse look up class
33
+ */
34
+ export declare const REVERSE_LOOKUP_CLASS: Address;
35
+ export declare const CENTRAL_STATE: Address;
36
+ /**
37
+ * The central state for domain records (CENTRAL_STATE_SNS_RECORDS)
38
+ */
39
+ export declare const CENTRAL_STATE_DOMAIN_RECORDS: Address;
40
+ /**
41
+ * The `.twitter` TLD authority
42
+ */
43
+ export declare const TWITTER_VERIFICATION_AUTHORITY: Address;
44
+ /**
45
+ * The `.twitter` TLD
46
+ */
47
+ export declare const TWITTER_ROOT_PARENT_REGISTRY_ADDRESS: Address;
48
+ export declare const VAULT_OWNER: Address;
49
+ export declare const USDC_MINT: Address;
50
+ export declare const FIDA_MINT: Address;
51
+ export declare const METAPLEX_PROGRAM_ADDRESS: Address;
52
+ export declare const WOLVES_COLLECTION_METADATA: Address;
53
+ export declare const REFERRERS: Address[];
@@ -0,0 +1,3 @@
1
+ import { Address } from "@solana/kit";
2
+ export declare const PYTH_PROGRAM_ID: Address;
3
+ export declare const PYTH_FEEDS: Map<string, number[]>;
@@ -0,0 +1,23 @@
1
+ import { Address } from "@solana/kit";
2
+ import { Record } from "../types/record";
3
+ /**
4
+ * A map that associates each record type with a public key, known as guardians.
5
+ */
6
+ export declare const GUARDIANS: Map<Record, Address>;
7
+ /**
8
+ * Set of records that utilize secp256k1 for verification purposes
9
+ */
10
+ export declare const ETH_ROA_RECORDS: Set<Record>;
11
+ /**
12
+ * Set of records which correspond to eth addresses with the prefix 0x
13
+ */
14
+ export declare const EVM_RECORDS: Set<Record>;
15
+ /**
16
+ * Set of records that are UTF-8 encoded strings
17
+ */
18
+ export declare const UTF8_ENCODED_RECORDS: Set<Record>;
19
+ /**
20
+ * Set of records that are self signed i.e signed by the public key contained
21
+ * in the record itself.
22
+ */
23
+ export declare const SELF_SIGNED_RECORDS: Set<Record>;
@@ -0,0 +1,11 @@
1
+ import { GetProgramAccountsApi, Rpc } from "@solana/kit";
2
+ /**
3
+ * Retrieves the addresses of all .sol domains .
4
+ *
5
+ * @param rpc - An RPC interface implementing GetProgramAccountsApi.
6
+ * @returns A promise that resolves to an array of objects representing domain addresses and owners.
7
+ */
8
+ export declare const getAllDomains: (rpc: Rpc<GetProgramAccountsApi>) => Promise<{
9
+ domainAddress: import("@solana/addresses").Address;
10
+ owner: import("@solana/rpc-types").Base58EncodedBytes;
11
+ }[]>;
@@ -0,0 +1,23 @@
1
+ import { RecordVersion } from "../types/record";
2
+ /**
3
+ * Derives the address of a domain, a subdomain, or a record.
4
+ * @param domain - The (sub)domain to process, with or without the .sol suffix.
5
+ * @param record - (Optional) The record version. Only provide if the domain being resolved is a record.
6
+ * @returns A promise that resolves to an object containing the derived address and additional metadata.
7
+ */
8
+ export declare const getDomainAddress: (domain: string, record?: RecordVersion) => Promise<{
9
+ address: import("@solana/addresses").Address;
10
+ parentAddress: import("@solana/addresses").Address;
11
+ isSub: boolean;
12
+ isSubRecord?: undefined;
13
+ } | {
14
+ address: import("@solana/addresses").Address;
15
+ parentAddress: import("@solana/addresses").Address;
16
+ isSub: boolean;
17
+ isSubRecord: boolean;
18
+ } | {
19
+ address: import("@solana/addresses").Address;
20
+ isSub: boolean;
21
+ parentAddress?: undefined;
22
+ isSubRecord?: undefined;
23
+ }>;
@@ -0,0 +1,10 @@
1
+ import { GetAccountInfoApi, GetTokenLargestAccountsApi, Rpc } from "@solana/kit";
2
+ /**
3
+ * Retrieves the owner of the specified domain. If the domain is tokenized,
4
+ * the NFT's owner is returned; otherwise, the registry owner is returned.
5
+ *
6
+ * @param rpc - An RPC interface implementing GetAccountInfoApi and GetTokenLargestAccountsApi.
7
+ * @param domain - The domain whose owner is to be retrieved.
8
+ * @returns A promise that resolves to the owner of the domain.
9
+ */
10
+ export declare const getDomainOwner: (rpc: Rpc<GetAccountInfoApi & GetTokenLargestAccountsApi>, domain: string) => Promise<import("@solana/addresses").Address>;
@@ -0,0 +1,28 @@
1
+ import { GetAccountInfoApi, GetMultipleAccountsApi, GetTokenLargestAccountsApi, ReadonlyUint8Array, Rpc } from "@solana/kit";
2
+ import { RecordState } from "../states/record";
3
+ import { Record } from "../types/record";
4
+ interface Result {
5
+ record: Record;
6
+ retrievedRecord: RecordState;
7
+ verified: {
8
+ staleness: boolean;
9
+ roa?: boolean;
10
+ };
11
+ deserializedContent?: string;
12
+ }
13
+ /**
14
+ * Retrieves a specific record under a domain, verifies its state, and optionally deserializes its content.
15
+ *
16
+ * @param rpc - An RPC interface implementing GetAccountInfoApi, GetMultipleAccountsApi, and GetTokenLargestAccountsApi.
17
+ * @param domain - The domain whose record is to be retrieved.
18
+ * @param record - The type of record to retrieve.
19
+ * @param options - (Optional) Additional options for processing:
20
+ * - deserialize: Whether to deserialize the record content.
21
+ * - verifier: A custom verifier for the record.
22
+ * @returns A promise that resolves to the retrieved record, its verification status, and optionally its deserialized content.
23
+ */
24
+ export declare function getDomainRecord(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi & GetTokenLargestAccountsApi>, domain: string, record: Record, options?: {
25
+ deserialize?: boolean;
26
+ verifier?: ReadonlyUint8Array;
27
+ }): Promise<Result>;
28
+ export {};
@@ -0,0 +1,30 @@
1
+ import { GetAccountInfoApi, GetMultipleAccountsApi, GetTokenLargestAccountsApi, ReadonlyUint8Array, Rpc } from "@solana/kit";
2
+ import { RecordState } from "../states/record";
3
+ import { Record } from "../types/record";
4
+ interface Result {
5
+ record: Record;
6
+ retrievedRecord: RecordState;
7
+ verified: {
8
+ staleness: boolean;
9
+ roa?: boolean;
10
+ };
11
+ deserializedContent?: string;
12
+ }
13
+ /**
14
+ * Retrieves multiple records under a domain, verifies their state, and optionally deserializes their content.
15
+ *
16
+ * @param rpc - An RPC interface implementing GetAccountInfoApi, GetMultipleAccountsApi, and GetTokenLargestAccountsApi.
17
+ * @param domain - The domain whose records are to be retrieved.
18
+ * @param records - An array of record types to retrieve.
19
+ * @param options - (Optional) Additional options for processing:
20
+ * - deserialize: Whether to deserialize the record content.
21
+ * - verifiers: An array of custom verifiers for the records.
22
+ * @returns A promise that resolves to an array of results for the retrieved records, including their verification status and optionally their deserialized content.
23
+ */
24
+ export declare function getDomainRecords<T extends Record[], U extends {
25
+ [K in keyof T]: ReadonlyUint8Array | undefined;
26
+ }>(rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi & GetTokenLargestAccountsApi>, domain: string, records: [...T], options?: {
27
+ deserialize?: boolean;
28
+ verifiers?: [...U];
29
+ }): Promise<(Result | undefined)[]>;
30
+ export {};
@@ -0,0 +1,14 @@
1
+ import { Address, GetProgramAccountsApi, Rpc } from "@solana/kit";
2
+ interface Result {
3
+ subdomain: string;
4
+ owner: Address;
5
+ }
6
+ /**
7
+ * Retrieves all subdomains under the specified domain, including their owners.
8
+ *
9
+ * @param rpc - An RPC interface implementing GetProgramAccountsApi.
10
+ * @param domain - The domain whose subdomains are to be retrieved.
11
+ * @returns A promise that resolves to an array of subdomain objects, each containing the subdomain name and owner address.
12
+ */
13
+ export declare const getSubdomains: (rpc: Rpc<GetProgramAccountsApi>, domain: string) => Promise<Result[]>;
14
+ export {};
@@ -0,0 +1,20 @@
1
+ import { Address, GetAccountInfoApi, GetMultipleAccountsApi, GetTokenLargestAccountsApi, Rpc } from "@solana/kit";
2
+ export type AllowPda = "any" | boolean;
3
+ type ResolveConfig = AllowPda extends true ? {
4
+ allowPda: true;
5
+ programIds: Address[];
6
+ } : {
7
+ allowPda: AllowPda;
8
+ programIds?: Address[];
9
+ };
10
+ /**
11
+ * Resolves domain according to SNS-IP 5
12
+ *
13
+ * @param rpc - An RPC interface implementing GetAccountInfoApi, GetMultipleAccountsApi, and GetTokenLargestAccountsApi.
14
+ * @param domain - The domain to resolve.
15
+ * @param config - (Optional) Configuration for resolving the domain, including whether to allow PDA owners
16
+ * and permissible program IDs.
17
+ * @returns A promise that resolves to the target address.
18
+ */
19
+ export declare const resolveDomain: (rpc: Rpc<GetAccountInfoApi & GetMultipleAccountsApi & GetTokenLargestAccountsApi>, domain: string, config?: ResolveConfig) => Promise<Address>;
20
+ export {};