@arthur2079/wallets-core 0.0.0-experimental-02e44603-20260603

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 (431) hide show
  1. package/CHANGELOG.md +386 -0
  2. package/dist/builders/action.d.ts +22 -0
  3. package/dist/builders/action.d.ts.map +1 -0
  4. package/dist/builders/mod.d.ts +5 -0
  5. package/dist/builders/mod.d.ts.map +1 -0
  6. package/dist/builders/namespace.d.ts +47 -0
  7. package/dist/builders/namespace.d.ts.map +1 -0
  8. package/dist/builders/provider.d.ts +13 -0
  9. package/dist/builders/provider.d.ts.map +1 -0
  10. package/dist/builders/types.d.ts +21 -0
  11. package/dist/builders/types.d.ts.map +1 -0
  12. package/dist/hub/helpers.d.ts +6 -0
  13. package/dist/hub/helpers.d.ts.map +1 -0
  14. package/dist/hub/hub.d.ts +37 -0
  15. package/dist/hub/hub.d.ts.map +1 -0
  16. package/dist/hub/mod.d.ts +9 -0
  17. package/dist/hub/mod.d.ts.map +1 -0
  18. package/dist/hub/namespaces/errors.d.ts +5 -0
  19. package/dist/hub/namespaces/errors.d.ts.map +1 -0
  20. package/dist/hub/namespaces/mod.d.ts +3 -0
  21. package/dist/hub/namespaces/mod.d.ts.map +1 -0
  22. package/dist/hub/namespaces/namespace.d.ts +148 -0
  23. package/dist/hub/namespaces/namespace.d.ts.map +1 -0
  24. package/dist/hub/namespaces/namespace.test.d.ts +11 -0
  25. package/dist/hub/namespaces/namespace.test.d.ts.map +1 -0
  26. package/dist/hub/namespaces/types.d.ts +36 -0
  27. package/dist/hub/namespaces/types.d.ts.map +1 -0
  28. package/dist/hub/provider/mod.d.ts +3 -0
  29. package/dist/hub/provider/mod.d.ts.map +1 -0
  30. package/dist/hub/provider/provider.d.ts +136 -0
  31. package/dist/hub/provider/provider.d.ts.map +1 -0
  32. package/dist/hub/provider/provider.test.d.ts +2 -0
  33. package/dist/hub/provider/provider.test.d.ts.map +1 -0
  34. package/dist/hub/provider/types.d.ts +45 -0
  35. package/dist/hub/provider/types.d.ts.map +1 -0
  36. package/dist/hub/store/events.d.ts +54 -0
  37. package/dist/hub/store/events.d.ts.map +1 -0
  38. package/dist/hub/store/extend.d.ts +14 -0
  39. package/dist/hub/store/extend.d.ts.map +1 -0
  40. package/dist/hub/store/hub.d.ts +11 -0
  41. package/dist/hub/store/hub.d.ts.map +1 -0
  42. package/dist/hub/store/mod.d.ts +8 -0
  43. package/dist/hub/store/mod.d.ts.map +1 -0
  44. package/dist/hub/store/mod.js +2 -0
  45. package/dist/hub/store/mod.js.map +7 -0
  46. package/dist/hub/store/namespaces.d.ts +38 -0
  47. package/dist/hub/store/namespaces.d.ts.map +1 -0
  48. package/dist/hub/store/providers.d.ts +77 -0
  49. package/dist/hub/store/providers.d.ts.map +1 -0
  50. package/dist/hub/store/selectors.d.ts +18 -0
  51. package/dist/hub/store/selectors.d.ts.map +1 -0
  52. package/dist/hub/store/store.d.ts +14 -0
  53. package/dist/hub/store/store.d.ts.map +1 -0
  54. package/dist/hub/store/store.test.d.ts +2 -0
  55. package/dist/hub/store/store.test.d.ts.map +1 -0
  56. package/dist/legacy/helpers.d.ts +12 -0
  57. package/dist/legacy/helpers.d.ts.map +1 -0
  58. package/dist/legacy/mod.d.ts +8 -0
  59. package/dist/legacy/mod.d.ts.map +1 -0
  60. package/dist/legacy/mod.js +2 -0
  61. package/dist/legacy/mod.js.map +7 -0
  62. package/dist/legacy/persistor.d.ts +11 -0
  63. package/dist/legacy/persistor.d.ts.map +1 -0
  64. package/dist/legacy/types.d.ts +260 -0
  65. package/dist/legacy/types.d.ts.map +1 -0
  66. package/dist/legacy/utils.d.ts +8 -0
  67. package/dist/legacy/utils.d.ts.map +1 -0
  68. package/dist/legacy/wallet.d.ts +65 -0
  69. package/dist/legacy/wallet.d.ts.map +1 -0
  70. package/dist/mod.d.ts +9 -0
  71. package/dist/mod.d.ts.map +1 -0
  72. package/dist/mod.js +2 -0
  73. package/dist/mod.js.map +7 -0
  74. package/dist/namespaces/common/actions.d.ts +4 -0
  75. package/dist/namespaces/common/actions.d.ts.map +1 -0
  76. package/dist/namespaces/common/after.d.ts +4 -0
  77. package/dist/namespaces/common/after.d.ts.map +1 -0
  78. package/dist/namespaces/common/and.d.ts +6 -0
  79. package/dist/namespaces/common/and.d.ts.map +1 -0
  80. package/dist/namespaces/common/before.d.ts +4 -0
  81. package/dist/namespaces/common/before.d.ts.map +1 -0
  82. package/dist/namespaces/common/builders.d.ts +5 -0
  83. package/dist/namespaces/common/builders.d.ts.map +1 -0
  84. package/dist/namespaces/common/helpers.d.ts +2 -0
  85. package/dist/namespaces/common/helpers.d.ts.map +1 -0
  86. package/dist/namespaces/common/hooks/changeAccountSubscriber.d.ts +90 -0
  87. package/dist/namespaces/common/hooks/changeAccountSubscriber.d.ts.map +1 -0
  88. package/dist/namespaces/common/hooks/changeAccountSubscriber.test.d.ts +2 -0
  89. package/dist/namespaces/common/hooks/changeAccountSubscriber.test.d.ts.map +1 -0
  90. package/dist/namespaces/common/mod.d.ts +11 -0
  91. package/dist/namespaces/common/mod.d.ts.map +1 -0
  92. package/dist/namespaces/common/mod.js +2 -0
  93. package/dist/namespaces/common/mod.js.map +7 -0
  94. package/dist/namespaces/common/or.d.ts +13 -0
  95. package/dist/namespaces/common/or.d.ts.map +1 -0
  96. package/dist/namespaces/common/types.d.ts +11 -0
  97. package/dist/namespaces/common/types.d.ts.map +1 -0
  98. package/dist/namespaces/common/utils.d.ts +10 -0
  99. package/dist/namespaces/common/utils.d.ts.map +1 -0
  100. package/dist/namespaces/cosmos/actions.d.ts +2 -0
  101. package/dist/namespaces/cosmos/actions.d.ts.map +1 -0
  102. package/dist/namespaces/cosmos/after.d.ts +2 -0
  103. package/dist/namespaces/cosmos/after.d.ts.map +1 -0
  104. package/dist/namespaces/cosmos/and.d.ts +3 -0
  105. package/dist/namespaces/cosmos/and.d.ts.map +1 -0
  106. package/dist/namespaces/cosmos/before.d.ts +2 -0
  107. package/dist/namespaces/cosmos/before.d.ts.map +1 -0
  108. package/dist/namespaces/cosmos/builders.d.ts +4 -0
  109. package/dist/namespaces/cosmos/builders.d.ts.map +1 -0
  110. package/dist/namespaces/cosmos/constants.d.ts +2 -0
  111. package/dist/namespaces/cosmos/constants.d.ts.map +1 -0
  112. package/dist/namespaces/cosmos/mod.d.ts +9 -0
  113. package/dist/namespaces/cosmos/mod.d.ts.map +1 -0
  114. package/dist/namespaces/cosmos/mod.js +2 -0
  115. package/dist/namespaces/cosmos/mod.js.map +7 -0
  116. package/dist/namespaces/cosmos/types.d.ts +23 -0
  117. package/dist/namespaces/cosmos/types.d.ts.map +1 -0
  118. package/dist/namespaces/cosmos/utils.d.ts +3 -0
  119. package/dist/namespaces/cosmos/utils.d.ts.map +1 -0
  120. package/dist/namespaces/evm/actions.d.ts +10 -0
  121. package/dist/namespaces/evm/actions.d.ts.map +1 -0
  122. package/dist/namespaces/evm/after.d.ts +2 -0
  123. package/dist/namespaces/evm/after.d.ts.map +1 -0
  124. package/dist/namespaces/evm/and.d.ts +3 -0
  125. package/dist/namespaces/evm/and.d.ts.map +1 -0
  126. package/dist/namespaces/evm/before.d.ts +2 -0
  127. package/dist/namespaces/evm/before.d.ts.map +1 -0
  128. package/dist/namespaces/evm/builders.d.ts +9 -0
  129. package/dist/namespaces/evm/builders.d.ts.map +1 -0
  130. package/dist/namespaces/evm/constants.d.ts +3 -0
  131. package/dist/namespaces/evm/constants.d.ts.map +1 -0
  132. package/dist/namespaces/evm/eip1193.d.ts +1229 -0
  133. package/dist/namespaces/evm/eip1193.d.ts.map +1 -0
  134. package/dist/namespaces/evm/hooks.d.ts +5 -0
  135. package/dist/namespaces/evm/hooks.d.ts.map +1 -0
  136. package/dist/namespaces/evm/mod.d.ts +10 -0
  137. package/dist/namespaces/evm/mod.d.ts.map +1 -0
  138. package/dist/namespaces/evm/mod.js +2 -0
  139. package/dist/namespaces/evm/mod.js.map +7 -0
  140. package/dist/namespaces/evm/types.d.ts +28 -0
  141. package/dist/namespaces/evm/types.d.ts.map +1 -0
  142. package/dist/namespaces/evm/utils.d.ts +13 -0
  143. package/dist/namespaces/evm/utils.d.ts.map +1 -0
  144. package/dist/namespaces/solana/actions.d.ts +7 -0
  145. package/dist/namespaces/solana/actions.d.ts.map +1 -0
  146. package/dist/namespaces/solana/after.d.ts +2 -0
  147. package/dist/namespaces/solana/after.d.ts.map +1 -0
  148. package/dist/namespaces/solana/and.d.ts +3 -0
  149. package/dist/namespaces/solana/and.d.ts.map +1 -0
  150. package/dist/namespaces/solana/before.d.ts +2 -0
  151. package/dist/namespaces/solana/before.d.ts.map +1 -0
  152. package/dist/namespaces/solana/builders.d.ts +6 -0
  153. package/dist/namespaces/solana/builders.d.ts.map +1 -0
  154. package/dist/namespaces/solana/constants.d.ts +3 -0
  155. package/dist/namespaces/solana/constants.d.ts.map +1 -0
  156. package/dist/namespaces/solana/hooks.d.ts +4 -0
  157. package/dist/namespaces/solana/hooks.d.ts.map +1 -0
  158. package/dist/namespaces/solana/mod.d.ts +10 -0
  159. package/dist/namespaces/solana/mod.d.ts.map +1 -0
  160. package/dist/namespaces/solana/mod.js +2 -0
  161. package/dist/namespaces/solana/mod.js.map +7 -0
  162. package/dist/namespaces/solana/types.d.ts +11 -0
  163. package/dist/namespaces/solana/types.d.ts.map +1 -0
  164. package/dist/namespaces/solana/utils.d.ts +8 -0
  165. package/dist/namespaces/solana/utils.d.ts.map +1 -0
  166. package/dist/namespaces/starknet/actions.d.ts +4 -0
  167. package/dist/namespaces/starknet/actions.d.ts.map +1 -0
  168. package/dist/namespaces/starknet/after.d.ts +2 -0
  169. package/dist/namespaces/starknet/after.d.ts.map +1 -0
  170. package/dist/namespaces/starknet/and.d.ts +3 -0
  171. package/dist/namespaces/starknet/and.d.ts.map +1 -0
  172. package/dist/namespaces/starknet/before.d.ts +2 -0
  173. package/dist/namespaces/starknet/before.d.ts.map +1 -0
  174. package/dist/namespaces/starknet/builders.d.ts +5 -0
  175. package/dist/namespaces/starknet/builders.d.ts.map +1 -0
  176. package/dist/namespaces/starknet/constants.d.ts +3 -0
  177. package/dist/namespaces/starknet/constants.d.ts.map +1 -0
  178. package/dist/namespaces/starknet/mod.d.ts +9 -0
  179. package/dist/namespaces/starknet/mod.d.ts.map +1 -0
  180. package/dist/namespaces/starknet/mod.js +2 -0
  181. package/dist/namespaces/starknet/mod.js.map +7 -0
  182. package/dist/namespaces/starknet/types.d.ts +11 -0
  183. package/dist/namespaces/starknet/types.d.ts.map +1 -0
  184. package/dist/namespaces/starknet/utils.d.ts +8 -0
  185. package/dist/namespaces/starknet/utils.d.ts.map +1 -0
  186. package/dist/namespaces/stellar/builders.d.ts +5 -0
  187. package/dist/namespaces/stellar/builders.d.ts.map +1 -0
  188. package/dist/namespaces/stellar/constants.d.ts +4 -0
  189. package/dist/namespaces/stellar/constants.d.ts.map +1 -0
  190. package/dist/namespaces/stellar/mod.d.ts +5 -0
  191. package/dist/namespaces/stellar/mod.d.ts.map +1 -0
  192. package/dist/namespaces/stellar/mod.js +2 -0
  193. package/dist/namespaces/stellar/mod.js.map +7 -0
  194. package/dist/namespaces/stellar/types.d.ts +11 -0
  195. package/dist/namespaces/stellar/types.d.ts.map +1 -0
  196. package/dist/namespaces/stellar/utils.d.ts +2 -0
  197. package/dist/namespaces/stellar/utils.d.ts.map +1 -0
  198. package/dist/namespaces/sui/actions.d.ts +8 -0
  199. package/dist/namespaces/sui/actions.d.ts.map +1 -0
  200. package/dist/namespaces/sui/builders.d.ts +14 -0
  201. package/dist/namespaces/sui/builders.d.ts.map +1 -0
  202. package/dist/namespaces/sui/constants.d.ts +3 -0
  203. package/dist/namespaces/sui/constants.d.ts.map +1 -0
  204. package/dist/namespaces/sui/hooks.d.ts +4 -0
  205. package/dist/namespaces/sui/hooks.d.ts.map +1 -0
  206. package/dist/namespaces/sui/mod.d.ts +7 -0
  207. package/dist/namespaces/sui/mod.d.ts.map +1 -0
  208. package/dist/namespaces/sui/mod.js +2 -0
  209. package/dist/namespaces/sui/mod.js.map +7 -0
  210. package/dist/namespaces/sui/types.d.ts +12 -0
  211. package/dist/namespaces/sui/types.d.ts.map +1 -0
  212. package/dist/namespaces/sui/utils.d.ts +15 -0
  213. package/dist/namespaces/sui/utils.d.ts.map +1 -0
  214. package/dist/namespaces/ton/builders.d.ts +5 -0
  215. package/dist/namespaces/ton/builders.d.ts.map +1 -0
  216. package/dist/namespaces/ton/constants.d.ts +3 -0
  217. package/dist/namespaces/ton/constants.d.ts.map +1 -0
  218. package/dist/namespaces/ton/mod.d.ts +5 -0
  219. package/dist/namespaces/ton/mod.d.ts.map +1 -0
  220. package/dist/namespaces/ton/mod.js +2 -0
  221. package/dist/namespaces/ton/mod.js.map +7 -0
  222. package/dist/namespaces/ton/types.d.ts +7 -0
  223. package/dist/namespaces/ton/types.d.ts.map +1 -0
  224. package/dist/namespaces/ton/utils.d.ts +2 -0
  225. package/dist/namespaces/ton/utils.d.ts.map +1 -0
  226. package/dist/namespaces/tron/actions.d.ts +2 -0
  227. package/dist/namespaces/tron/actions.d.ts.map +1 -0
  228. package/dist/namespaces/tron/after.d.ts +2 -0
  229. package/dist/namespaces/tron/after.d.ts.map +1 -0
  230. package/dist/namespaces/tron/and.d.ts +3 -0
  231. package/dist/namespaces/tron/and.d.ts.map +1 -0
  232. package/dist/namespaces/tron/before.d.ts +2 -0
  233. package/dist/namespaces/tron/before.d.ts.map +1 -0
  234. package/dist/namespaces/tron/builders.d.ts +5 -0
  235. package/dist/namespaces/tron/builders.d.ts.map +1 -0
  236. package/dist/namespaces/tron/constants.d.ts +3 -0
  237. package/dist/namespaces/tron/constants.d.ts.map +1 -0
  238. package/dist/namespaces/tron/mod.d.ts +9 -0
  239. package/dist/namespaces/tron/mod.d.ts.map +1 -0
  240. package/dist/namespaces/tron/mod.js +2 -0
  241. package/dist/namespaces/tron/mod.js.map +7 -0
  242. package/dist/namespaces/tron/types.d.ts +8 -0
  243. package/dist/namespaces/tron/types.d.ts.map +1 -0
  244. package/dist/namespaces/tron/utils.d.ts +2 -0
  245. package/dist/namespaces/tron/utils.d.ts.map +1 -0
  246. package/dist/namespaces/utxo/actions.d.ts +2 -0
  247. package/dist/namespaces/utxo/actions.d.ts.map +1 -0
  248. package/dist/namespaces/utxo/after.d.ts +2 -0
  249. package/dist/namespaces/utxo/after.d.ts.map +1 -0
  250. package/dist/namespaces/utxo/and.d.ts +3 -0
  251. package/dist/namespaces/utxo/and.d.ts.map +1 -0
  252. package/dist/namespaces/utxo/before.d.ts +2 -0
  253. package/dist/namespaces/utxo/before.d.ts.map +1 -0
  254. package/dist/namespaces/utxo/builders.d.ts +4 -0
  255. package/dist/namespaces/utxo/builders.d.ts.map +1 -0
  256. package/dist/namespaces/utxo/constants.d.ts +4 -0
  257. package/dist/namespaces/utxo/constants.d.ts.map +1 -0
  258. package/dist/namespaces/utxo/mod.d.ts +9 -0
  259. package/dist/namespaces/utxo/mod.d.ts.map +1 -0
  260. package/dist/namespaces/utxo/mod.js +2 -0
  261. package/dist/namespaces/utxo/mod.js.map +7 -0
  262. package/dist/namespaces/utxo/types.d.ts +8 -0
  263. package/dist/namespaces/utxo/types.d.ts.map +1 -0
  264. package/dist/namespaces/utxo/utils.d.ts +2 -0
  265. package/dist/namespaces/utxo/utils.d.ts.map +1 -0
  266. package/dist/namespaces/xrpl/builders.d.ts +4 -0
  267. package/dist/namespaces/xrpl/builders.d.ts.map +1 -0
  268. package/dist/namespaces/xrpl/constants.d.ts +3 -0
  269. package/dist/namespaces/xrpl/constants.d.ts.map +1 -0
  270. package/dist/namespaces/xrpl/mod.d.ts +5 -0
  271. package/dist/namespaces/xrpl/mod.d.ts.map +1 -0
  272. package/dist/namespaces/xrpl/mod.js +2 -0
  273. package/dist/namespaces/xrpl/mod.js.map +7 -0
  274. package/dist/namespaces/xrpl/types.d.ts +11 -0
  275. package/dist/namespaces/xrpl/types.d.ts.map +1 -0
  276. package/dist/namespaces/xrpl/utils.d.ts +2 -0
  277. package/dist/namespaces/xrpl/utils.d.ts.map +1 -0
  278. package/dist/test-utils/fixtures.d.ts +4 -0
  279. package/dist/test-utils/fixtures.d.ts.map +1 -0
  280. package/dist/types/accounts.d.ts +11 -0
  281. package/dist/types/accounts.d.ts.map +1 -0
  282. package/dist/types/actions.d.ts +5 -0
  283. package/dist/types/actions.d.ts.map +1 -0
  284. package/dist/types/mod.d.ts +2 -0
  285. package/dist/types/mod.d.ts.map +1 -0
  286. package/dist/types/utils.d.ts +7 -0
  287. package/dist/types/utils.d.ts.map +1 -0
  288. package/dist/utils/mod.d.ts +4 -0
  289. package/dist/utils/mod.d.ts.map +1 -0
  290. package/dist/utils/mod.js +2 -0
  291. package/dist/utils/mod.js.map +7 -0
  292. package/dist/utils/versions.d.ts +21 -0
  293. package/dist/utils/versions.d.ts.map +1 -0
  294. package/dist/utils/versions.test.d.ts +2 -0
  295. package/dist/utils/versions.test.d.ts.map +1 -0
  296. package/dist/wallets-core.build.json +1 -0
  297. package/legacy/package.json +8 -0
  298. package/package.json +108 -0
  299. package/readme.md +4 -0
  300. package/src/builders/action.ts +86 -0
  301. package/src/builders/mod.ts +5 -0
  302. package/src/builders/namespace.ts +258 -0
  303. package/src/builders/provider.ts +61 -0
  304. package/src/builders/types.ts +29 -0
  305. package/src/hub/helpers.ts +11 -0
  306. package/src/hub/hub.ts +142 -0
  307. package/src/hub/mod.ts +18 -0
  308. package/src/hub/namespaces/errors.ts +11 -0
  309. package/src/hub/namespaces/mod.ts +10 -0
  310. package/src/hub/namespaces/namespace.test.ts +443 -0
  311. package/src/hub/namespaces/namespace.ts +470 -0
  312. package/src/hub/namespaces/types.ts +58 -0
  313. package/src/hub/provider/mod.ts +10 -0
  314. package/src/hub/provider/provider.test.ts +232 -0
  315. package/src/hub/provider/provider.ts +335 -0
  316. package/src/hub/provider/types.ts +58 -0
  317. package/src/hub/store/events.ts +89 -0
  318. package/src/hub/store/extend.ts +125 -0
  319. package/src/hub/store/hub.ts +18 -0
  320. package/src/hub/store/mod.ts +25 -0
  321. package/src/hub/store/namespaces.ts +177 -0
  322. package/src/hub/store/providers.ts +169 -0
  323. package/src/hub/store/selectors.ts +59 -0
  324. package/src/hub/store/store.test.ts +50 -0
  325. package/src/hub/store/store.ts +30 -0
  326. package/src/legacy/helpers.ts +75 -0
  327. package/src/legacy/mod.ts +44 -0
  328. package/src/legacy/persistor.ts +19 -0
  329. package/src/legacy/types.ts +305 -0
  330. package/src/legacy/utils.ts +20 -0
  331. package/src/legacy/wallet.ts +552 -0
  332. package/src/mod.ts +44 -0
  333. package/src/namespaces/common/actions.ts +12 -0
  334. package/src/namespaces/common/after.ts +8 -0
  335. package/src/namespaces/common/and.ts +42 -0
  336. package/src/namespaces/common/before.ts +9 -0
  337. package/src/namespaces/common/builders.ts +14 -0
  338. package/src/namespaces/common/helpers.ts +10 -0
  339. package/src/namespaces/common/hooks/changeAccountSubscriber.test.ts +173 -0
  340. package/src/namespaces/common/hooks/changeAccountSubscriber.ts +236 -0
  341. package/src/namespaces/common/mod.ts +23 -0
  342. package/src/namespaces/common/or.ts +17 -0
  343. package/src/namespaces/common/types.ts +27 -0
  344. package/src/namespaces/common/utils.ts +43 -0
  345. package/src/namespaces/cosmos/actions.ts +3 -0
  346. package/src/namespaces/cosmos/after.ts +3 -0
  347. package/src/namespaces/cosmos/and.ts +5 -0
  348. package/src/namespaces/cosmos/before.ts +3 -0
  349. package/src/namespaces/cosmos/builders.ts +15 -0
  350. package/src/namespaces/cosmos/constants.ts +1 -0
  351. package/src/namespaces/cosmos/mod.ts +15 -0
  352. package/src/namespaces/cosmos/types.ts +32 -0
  353. package/src/namespaces/cosmos/utils.ts +21 -0
  354. package/src/namespaces/evm/actions.ts +134 -0
  355. package/src/namespaces/evm/after.ts +3 -0
  356. package/src/namespaces/evm/and.ts +5 -0
  357. package/src/namespaces/evm/before.ts +3 -0
  358. package/src/namespaces/evm/builders.ts +52 -0
  359. package/src/namespaces/evm/constants.ts +2 -0
  360. package/src/namespaces/evm/eip1193.ts +1415 -0
  361. package/src/namespaces/evm/hooks.ts +43 -0
  362. package/src/namespaces/evm/mod.ts +10 -0
  363. package/src/namespaces/evm/types.ts +37 -0
  364. package/src/namespaces/evm/utils.ts +106 -0
  365. package/src/namespaces/solana/actions.ts +44 -0
  366. package/src/namespaces/solana/after.ts +3 -0
  367. package/src/namespaces/solana/and.ts +5 -0
  368. package/src/namespaces/solana/before.ts +3 -0
  369. package/src/namespaces/solana/builders.ts +40 -0
  370. package/src/namespaces/solana/constants.ts +2 -0
  371. package/src/namespaces/solana/hooks.ts +10 -0
  372. package/src/namespaces/solana/mod.ts +10 -0
  373. package/src/namespaces/solana/types.ts +26 -0
  374. package/src/namespaces/solana/utils.ts +36 -0
  375. package/src/namespaces/starknet/actions.ts +19 -0
  376. package/src/namespaces/starknet/after.ts +3 -0
  377. package/src/namespaces/starknet/and.ts +5 -0
  378. package/src/namespaces/starknet/before.ts +3 -0
  379. package/src/namespaces/starknet/builders.ts +18 -0
  380. package/src/namespaces/starknet/constants.ts +8 -0
  381. package/src/namespaces/starknet/mod.ts +9 -0
  382. package/src/namespaces/starknet/types.ts +19 -0
  383. package/src/namespaces/starknet/utils.ts +35 -0
  384. package/src/namespaces/stellar/builders.ts +27 -0
  385. package/src/namespaces/stellar/constants.ts +9 -0
  386. package/src/namespaces/stellar/mod.ts +5 -0
  387. package/src/namespaces/stellar/types.ts +15 -0
  388. package/src/namespaces/stellar/utils.ts +15 -0
  389. package/src/namespaces/sui/actions.ts +27 -0
  390. package/src/namespaces/sui/builders.ts +77 -0
  391. package/src/namespaces/sui/constants.ts +8 -0
  392. package/src/namespaces/sui/hooks.ts +10 -0
  393. package/src/namespaces/sui/mod.ts +8 -0
  394. package/src/namespaces/sui/types.ts +26 -0
  395. package/src/namespaces/sui/utils.ts +56 -0
  396. package/src/namespaces/ton/builders.ts +15 -0
  397. package/src/namespaces/ton/constants.ts +2 -0
  398. package/src/namespaces/ton/mod.ts +5 -0
  399. package/src/namespaces/ton/types.ts +12 -0
  400. package/src/namespaces/ton/utils.ts +18 -0
  401. package/src/namespaces/tron/actions.ts +3 -0
  402. package/src/namespaces/tron/after.ts +3 -0
  403. package/src/namespaces/tron/and.ts +5 -0
  404. package/src/namespaces/tron/before.ts +3 -0
  405. package/src/namespaces/tron/builders.ts +15 -0
  406. package/src/namespaces/tron/constants.ts +8 -0
  407. package/src/namespaces/tron/mod.ts +8 -0
  408. package/src/namespaces/tron/types.ts +15 -0
  409. package/src/namespaces/tron/utils.ts +18 -0
  410. package/src/namespaces/utxo/actions.ts +3 -0
  411. package/src/namespaces/utxo/after.ts +3 -0
  412. package/src/namespaces/utxo/and.ts +5 -0
  413. package/src/namespaces/utxo/before.ts +3 -0
  414. package/src/namespaces/utxo/builders.ts +12 -0
  415. package/src/namespaces/utxo/constants.ts +3 -0
  416. package/src/namespaces/utxo/mod.ts +12 -0
  417. package/src/namespaces/utxo/types.ts +15 -0
  418. package/src/namespaces/utxo/utils.ts +18 -0
  419. package/src/namespaces/xrpl/builders.ts +14 -0
  420. package/src/namespaces/xrpl/constants.ts +7 -0
  421. package/src/namespaces/xrpl/mod.ts +5 -0
  422. package/src/namespaces/xrpl/types.ts +17 -0
  423. package/src/namespaces/xrpl/utils.ts +15 -0
  424. package/src/test-utils/fixtures.ts +13 -0
  425. package/src/types/accounts.ts +12 -0
  426. package/src/types/actions.ts +11 -0
  427. package/src/types/mod.ts +1 -0
  428. package/src/types/utils.ts +7 -0
  429. package/src/utils/mod.ts +8 -0
  430. package/src/utils/versions.test.ts +22 -0
  431. package/src/utils/versions.ts +62 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,386 @@
1
+ # [0.59.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.58.1...wallets-core@0.59.0) (2026-05-31)
2
+
3
+
4
+ ### Features
5
+
6
+ * add stellar namespace to wallets core ([c72f4d8](https://github.com/rango-exchange/rango-client/commit/c72f4d833703e11ef082e628f13cfa25fcf72966))
7
+ * add zcash chain to utxo namespace and make formatAccountsToCAIP reusable ([4e67ee5](https://github.com/rango-exchange/rango-client/commit/4e67ee5ea539b841a42e7a0fae220fa5ece482c9))
8
+ * migrated tonconnect to the hub ([e525841](https://github.com/rango-exchange/rango-client/commit/e525841665ddeaa4bf72620ede54ad5e7e1328e6))
9
+
10
+
11
+
12
+ ## [0.58.1](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.58.0...wallets-core@0.58.1) (2026-05-02)
13
+
14
+
15
+
16
+ # [0.58.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.57.0...wallets-core@0.58.0) (2026-04-29)
17
+
18
+
19
+ ### Features
20
+
21
+ * integrating gemwallet ([750b0fc](https://github.com/rango-exchange/rango-client/commit/750b0fc72f1d4d6564ebf47e9c58e9f3efc9b3e5))
22
+
23
+
24
+
25
+ # [0.57.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.56.0...wallets-core@0.57.0) (2025-12-30)
26
+
27
+
28
+ ### Features
29
+
30
+ * integrating xrpl blockchain ([d3f1dc7](https://github.com/rango-exchange/rango-client/commit/d3f1dc7271be0232b99fac25c20d8df853272ee9))
31
+
32
+
33
+
34
+ # [0.56.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.55.0...wallets-core@0.56.0) (2025-12-15)
35
+
36
+
37
+ ### Features
38
+
39
+ * implement suggest action for hub ([c23ca71](https://github.com/rango-exchange/rango-client/commit/c23ca7174cfa388870006482c177c778a047ca58))
40
+
41
+
42
+
43
+ # [0.55.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.54.0...wallets-core@0.55.0) (2025-12-09)
44
+
45
+
46
+ ### Features
47
+
48
+ * add `starknet` namespace to the hub ([b500da5](https://github.com/rango-exchange/rango-client/commit/b500da5f2191c31be69119514865b6f9245968e5))
49
+ * add cosmos namespace to the hub ([2b1539f](https://github.com/rango-exchange/rango-client/commit/2b1539ff01b6c270503a5d84fccaee064592a367))
50
+
51
+
52
+
53
+ # [0.54.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.53.0...wallets-core@0.54.0) (2025-12-02)
54
+
55
+
56
+ ### Features
57
+
58
+ * add tron namespace ([4a2fb70](https://github.com/rango-exchange/rango-client/commit/4a2fb70c2311dd7d451e2eafa8f0e29c5b30bbce))
59
+ * integrate xverse wallet ([5560aca](https://github.com/rango-exchange/rango-client/commit/5560aca41af54f676b0488e9efc1f00e487189d1))
60
+ * storing `connectArgs` to the namespace state ([0e55dea](https://github.com/rango-exchange/rango-client/commit/0e55dea5af395540d4dbf71c4179bec4fcfa6bb5))
61
+
62
+
63
+
64
+ # [0.51.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.50.0...wallets-core@0.51.0) (2025-10-29)
65
+
66
+
67
+ ### Reverts
68
+
69
+ * Revert "feat: implement deep linking" ([a0b0edc](https://github.com/rango-exchange/rango-client/commit/a0b0edcc052bfea69af2037b73c0bb6a9b38c2a9))
70
+
71
+
72
+
73
+ # [0.50.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.49.0...wallets-core@0.50.0) (2025-09-29)
74
+
75
+
76
+ ### Bug Fixes
77
+
78
+ * no evm compatible account available bug ([6e782f0](https://github.com/rango-exchange/rango-client/commit/6e782f034ffdfd8a55bfc893ce55617910310466))
79
+ * read publickey from instance if connect response was empty on solana ([5899196](https://github.com/rango-exchange/rango-client/commit/58991961dce2dcf0468197b0777798aa6a1f7c36))
80
+
81
+
82
+ ### Features
83
+
84
+ * add single selection to detached modal ([07c7d44](https://github.com/rango-exchange/rango-client/commit/07c7d44ffd3def69e83c54d988c1279ac68d5889))
85
+ * implement changeAccountSubscriber builder ([8e2ca97](https://github.com/rango-exchange/rango-client/commit/8e2ca9783fcd57445ca558e688c402a30aba3686))
86
+ * migrate Coinbase to use Hub ([d7236e4](https://github.com/rango-exchange/rango-client/commit/d7236e4b65f8a955c819ca1eb22c74a37da94022))
87
+ * migrate ledger provider to use hub ([a114101](https://github.com/rango-exchange/rango-client/commit/a114101bd9c317ec5c82c6146a6e88813bcbebf3))
88
+ * migrate metamask to hub ([9ef1b5a](https://github.com/rango-exchange/rango-client/commit/9ef1b5a600945c8467b500a686a96cf081f3fb6e))
89
+ * migrate safepal to hub ([9abf9c9](https://github.com/rango-exchange/rango-client/commit/9abf9c9be4c009e55570b15b0c048b8554f681bc))
90
+ * use existing format account method for subscriber ([f08e6f9](https://github.com/rango-exchange/rango-client/commit/f08e6f94e3edc2241893f8ff3ec9ea1bd79cf81b))
91
+
92
+
93
+
94
+ # [0.49.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.48.0...wallets-core@0.49.0) (2025-09-06)
95
+
96
+
97
+ ### Features
98
+
99
+ * implement deep linking ([1dec48e](https://github.com/rango-exchange/rango-client/commit/1dec48e4db944977fb6d3797d7aa49527940fab6))
100
+
101
+
102
+
103
+ # [0.48.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.47.0...wallets-core@0.48.0) (2025-08-19)
104
+
105
+
106
+ ### Features
107
+
108
+ * implement retry mechanism for lazy imports ([9a8e191](https://github.com/rango-exchange/rango-client/commit/9a8e191711d2319990ca4d0613e8188a5f86842f))
109
+
110
+
111
+
112
+ # [0.47.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.46.0...wallets-core@0.47.0) (2025-08-05)
113
+
114
+
115
+ ### Features
116
+
117
+ * implement canSwitchNetwork for hub providers ([5a4eced](https://github.com/rango-exchange/rango-client/commit/5a4eced221046b5474176aca7c569092e36f1bde))
118
+
119
+
120
+
121
+ # [0.46.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.45.0...wallets-core@0.46.0) (2025-07-22)
122
+
123
+
124
+ ### Bug Fixes
125
+
126
+ * abort all namespace connections if user rejects one connect request ([5824a96](https://github.com/rango-exchange/rango-client/commit/5824a96c8c9d8075c730a19de3b78caccbb04778))
127
+ * handle trust wallet in app browser user rejection error ([1b1d07f](https://github.com/rango-exchange/rango-client/commit/1b1d07f9155bbd7dbe3f7a9157b353e4a2a3cc40))
128
+
129
+
130
+ ### Features
131
+
132
+ * add derivation path to swap wallets ([0728ac4](https://github.com/rango-exchange/rango-client/commit/0728ac40a67f648d254db2461627b7cd408a28c5))
133
+ * migrate rabby to use hub ([e25ba8c](https://github.com/rango-exchange/rango-client/commit/e25ba8c52e2a603ba0689e91773fd6edebf3003f))
134
+
135
+
136
+ ### Reverts
137
+
138
+ * Revert "chore(release): publish" ([064ce15](https://github.com/rango-exchange/rango-client/commit/064ce157a2f819856f647f83aeb1c0410542e8d7))
139
+
140
+
141
+
142
+ # [0.44.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.43.0...wallets-core@0.44.0) (2025-06-09)
143
+
144
+
145
+ ### Bug Fixes
146
+
147
+ * add has method to the namespace proxy ([ee74628](https://github.com/rango-exchange/rango-client/commit/ee7462881c27fbf42fae374064362293f5f92765))
148
+ * avoid hub recreation ([2e5fc07](https://github.com/rango-exchange/rango-client/commit/2e5fc07bc0952d1d98b828d7e70a892034bb99b8))
149
+ * fix phantom transaction failure on sui namespace disabled ([213b235](https://github.com/rango-exchange/rango-client/commit/213b23565b2729a48605d3d06ef5dd6daf66900f))
150
+
151
+
152
+ ### Features
153
+
154
+ * add detached connect wallet modal ([b2d7d6f](https://github.com/rango-exchange/rango-client/commit/b2d7d6fda2bdfe3e9f72baba95a1a7694e3db21a))
155
+ * integrate slush wallet ([9e9a5cc](https://github.com/rango-exchange/rango-client/commit/9e9a5ccb802fbd1f9a50322a89f65b557f152c6a))
156
+ * migrate trust wallet to use hub and add support for solana ([61497fd](https://github.com/rango-exchange/rango-client/commit/61497fd40d48d48030e5a6d7ece53b5b7daf7b09))
157
+
158
+
159
+
160
+ # [0.43.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.42.0...wallets-core@0.43.0) (2025-04-30)
161
+
162
+
163
+ ### Bug Fixes
164
+
165
+ * error rethrow in or action ([61bc658](https://github.com/rango-exchange/rango-client/commit/61bc658f6a0dab513bb595e2943c85b675c65ada))
166
+ * rename pbt to ptb for sui ([3d6d89f](https://github.com/rango-exchange/rango-client/commit/3d6d89f2265766607a15d61e0df92643fb33072b))
167
+
168
+
169
+ ### Features
170
+
171
+ * add can eager connect to namespaces ([16b4792](https://github.com/rango-exchange/rango-client/commit/16b4792f877b565ccf767be22ebe14fa79ddd8c6))
172
+ * implement updated design for initial connect modal ([2873c63](https://github.com/rango-exchange/rango-client/commit/2873c630de0740bb3b9f4e52bfa018857bd54dcd))
173
+ * Sui support for Phantom ([3769b8b](https://github.com/rango-exchange/rango-client/commit/3769b8ba174783190e242103548bcf4da28cff14))
174
+ * update sui to consider recent api changes ([d764b25](https://github.com/rango-exchange/rango-client/commit/d764b2501df9bb295f63cdbc0b05acd4a3abb4b9))
175
+
176
+
177
+
178
+ # [0.42.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.41.0...wallets-core@0.42.0) (2025-03-11)
179
+
180
+
181
+ ### Features
182
+
183
+ * add bitcoin signer for phantom on hub ([750124e](https://github.com/rango-exchange/rango-client/commit/750124e693753078abb537d4043964e2eebdbc01))
184
+ * add sui namespace to wallets-core ([5bcf5dd](https://github.com/rango-exchange/rango-client/commit/5bcf5ddd1444bcabb894ddfac0e3766c88988fbd))
185
+
186
+
187
+
188
+ # [0.41.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.40.0...wallets-core@0.41.0) (2025-02-23)
189
+
190
+
191
+ ### Bug Fixes
192
+
193
+ * ctrl wallet is changing 'keplr' named function to undefined ([f1b7f2a](https://github.com/rango-exchange/rango-client/commit/f1b7f2a814f45441639174b36d498a1e341bb559))
194
+ * remove connected wallet on namespace disconnect ([4f0be8a](https://github.com/rango-exchange/rango-client/commit/4f0be8a1eab99af9e6077b7c8c45fdfc6d40f4e9))
195
+ * switching to not connected account should disconnect evm as well ([8ea7d40](https://github.com/rango-exchange/rango-client/commit/8ea7d40569972fe14dbde630b1e0ba9c4d6b0df5))
196
+
197
+
198
+ ### Features
199
+
200
+ * add an adapter for Hub for wallets-react and enabling Hub by default. ([a14bdf9](https://github.com/rango-exchange/rango-client/commit/a14bdf9619e448bc4568d6b758ca86d2359e1740))
201
+ * add base chain to phantom evm supported chains ([58a2d54](https://github.com/rango-exchange/rango-client/commit/58a2d54c0eff18e8d5ecf980b2487f7c8dada59f))
202
+ * add chain change subscribe to evm namespace ([0a7e7ee](https://github.com/rango-exchange/rango-client/commit/0a7e7ee6b53c94dcb842fff7e34f9dcbf6120a37))
203
+ * introducing store events for hub and fix switching accounts using that ([ba95ba2](https://github.com/rango-exchange/rango-client/commit/ba95ba2584f41e2a4b4b2984a62c737ab74d7cd8))
204
+ * storing network alongside namespace for hub localstorage ([c5437fa](https://github.com/rango-exchange/rango-client/commit/c5437fa0f5117d9d762358cf7cf8ca4627c43406))
205
+
206
+
207
+
208
+ # [0.40.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.39.0...wallets-core@0.40.0) (2024-11-12)
209
+
210
+
211
+
212
+ # [0.39.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.38.0...wallets-core@0.39.0) (2024-10-12)
213
+
214
+
215
+ ### Bug Fixes
216
+
217
+ * bump sdk and fix type issues ([d442208](https://github.com/rango-exchange/rango-client/commit/d4422083bf5dd27d5f509ce1db7f9560d05428c8))
218
+
219
+
220
+ ### Features
221
+
222
+ * introducing hub, our new wallet management ([92692fe](https://github.com/rango-exchange/rango-client/commit/92692fe7a05be72caea8b99bcc4ac5e2326f2f5a))
223
+
224
+
225
+ ### Performance Improvements
226
+
227
+ * lazy load signer packages ([7b88f18](https://github.com/rango-exchange/rango-client/commit/7b88f1834f7b29b4b81ab6c81a07bb88e8ccf55c))
228
+
229
+
230
+
231
+ # [0.38.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.37.0...wallets-core@0.38.0) (2024-09-10)
232
+
233
+
234
+
235
+ # [0.37.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.36.1...wallets-core@0.37.0) (2024-08-11)
236
+
237
+
238
+
239
+ ## [0.36.1](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.36.0...wallets-core@0.36.1) (2024-07-14)
240
+
241
+
242
+
243
+ # [0.36.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.34.0...wallets-core@0.36.0) (2024-07-09)
244
+
245
+
246
+ ### Features
247
+
248
+ * add a modal for setting custom derivation path for ledger ([5b74ec0](https://github.com/rango-exchange/rango-client/commit/5b74ec049393ed74e3e7547edc72b68bd70b7dce))
249
+
250
+
251
+
252
+ # [0.35.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.34.0...wallets-core@0.35.0) (2024-06-01)
253
+
254
+
255
+
256
+ # [0.34.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.33.0...wallets-core@0.34.0) (2024-05-14)
257
+
258
+
259
+ ### Features
260
+
261
+ * add solana to ledger ([77b6695](https://github.com/rango-exchange/rango-client/commit/77b6695758165f9258a0ba5bd3b2cf39b0b2aab5))
262
+
263
+
264
+
265
+ # [0.33.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.32.0...wallets-core@0.33.0) (2024-04-24)
266
+
267
+
268
+
269
+ # [0.32.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.31.0...wallets-core@0.32.0) (2024-04-23)
270
+
271
+
272
+ ### Bug Fixes
273
+
274
+ * set current state for current network in conencting multi-chain wallets ([dc62af0](https://github.com/rango-exchange/rango-client/commit/dc62af03f0edc10400394ba600c7d83e1250b4e8))
275
+
276
+
277
+
278
+ # [0.31.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.30.0...wallets-core@0.31.0) (2024-04-09)
279
+
280
+
281
+
282
+ # [0.30.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.29.0...wallets-core@0.30.0) (2024-03-12)
283
+
284
+
285
+ ### Bug Fixes
286
+
287
+ * fix wallet connect namespace and switch network ([c8f31b3](https://github.com/rango-exchange/rango-client/commit/c8f31b3ddf4ceeaf745bc089f530b6a4b1eb9637))
288
+
289
+
290
+
291
+ # [0.29.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.28.0...wallets-core@0.29.0) (2024-02-20)
292
+
293
+
294
+
295
+ # [0.28.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.27.0...wallets-core@0.28.0) (2024-02-07)
296
+
297
+
298
+
299
+ # [0.27.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.26.0...wallets-core@0.27.0) (2024-01-22)
300
+
301
+
302
+ ### Bug Fixes
303
+
304
+ * cleanup wallets' subscriber when setProvider get null ([88d6a42](https://github.com/rango-exchange/rango-client/commit/88d6a423c49b34b3d9ff567e22df36c3b009bb76))
305
+
306
+
307
+
308
+ # [0.26.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.24.0...wallets-core@0.26.0) (2023-12-24)
309
+
310
+
311
+ ### Bug Fixes
312
+
313
+ * fix HMR for widget and playground ([8524820](https://github.com/rango-exchange/rango-client/commit/8524820f10cf0b8921f3db0c4f620ff98daa4103))
314
+ * handle safe wallet in widget ([52fcca4](https://github.com/rango-exchange/rango-client/commit/52fcca49315f7e2edb4655ae7b9cd0792c2800d7))
315
+ * handle switch network flow for wallet-connect ([8c4a17b](https://github.com/rango-exchange/rango-client/commit/8c4a17b47b2919820a4e0726f6d1c48b8994abe3))
316
+
317
+
318
+
319
+ # [0.14.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.13.0...wallets-core@0.14.0) (2023-08-03)
320
+
321
+
322
+
323
+ # [0.13.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.12.0...wallets-core@0.13.0) (2023-08-01)
324
+
325
+
326
+
327
+ # [0.9.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.8.0...wallets-core@0.9.0) (2023-07-31)
328
+
329
+
330
+ ### Features
331
+
332
+ * add project id as a external value ([0c80404](https://github.com/rango-exchange/rango-client/commit/0c80404a8cacb6c5b0338dea1e416b0b11db254b))
333
+ * Support for WalletConnect 2 ([faedef0](https://github.com/rango-exchange/rango-client/commit/faedef0b5e6fc3c5ef881cbbe4ec05334cc1c910))
334
+ * support safe wallet ([d04cbcd](https://github.com/rango-exchange/rango-client/commit/d04cbcd2a612755563512d9dff6f2312088d8b4d))
335
+
336
+
337
+
338
+ # [0.7.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.6.0...wallets-core@0.7.0) (2023-07-11)
339
+
340
+
341
+
342
+ # [0.6.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.5.0...wallets-core@0.6.0) (2023-07-11)
343
+
344
+
345
+ ### Features
346
+
347
+ * implement wallets auto-connect functionality ([f47d32b](https://github.com/rango-exchange/rango-client/commit/f47d32bb8bbb38a72b961e5eb2ee7e2b985f9f7d))
348
+
349
+
350
+ ### Reverts
351
+
352
+ * Revert "support for rango-types cjs format" ([ed4e050](https://github.com/rango-exchange/rango-client/commit/ed4e050bfc0dcde7aeffa6b0d73b02080a5721eb))
353
+
354
+
355
+
356
+ # [0.5.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.4.0...wallets-core@0.5.0) (2023-05-31)
357
+
358
+
359
+
360
+ # [0.4.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.3.0...wallets-core@0.4.0) (2023-05-31)
361
+
362
+
363
+
364
+ # [0.3.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.2.0...wallets-core@0.3.0) (2023-05-30)
365
+
366
+
367
+
368
+ # [0.2.0](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.1.15...wallets-core@0.2.0) (2023-05-30)
369
+
370
+
371
+ ### Bug Fixes
372
+
373
+ * fix bug of duplicate modals for wallet connect ([efb5482](https://github.com/rango-exchange/rango-client/commit/efb54827fd51e6c6c8f42c6abf33c3d7610755e8))
374
+ * fix can switch network for wallet connect ([e3cdeac](https://github.com/rango-exchange/rango-client/commit/e3cdeacd836e254ea2d5384aab4b624a3e7259eb))
375
+
376
+
377
+
378
+ ## [0.1.14](https://github.com/rango-exchange/rango-client/compare/wallets-core@0.1.13...wallets-core@0.1.14) (2023-05-15)
379
+
380
+
381
+ ### Bug Fixes
382
+
383
+ * update rango-types and fix notification bugs ([993f185](https://github.com/rango-exchange/rango-client/commit/993f185e0b8c5e5e15a2c65ba2d85d1f9c8daa90))
384
+
385
+
386
+
@@ -0,0 +1,22 @@
1
+ import type { Actions, Context, Operators } from '../hub/namespaces/types.js';
2
+ import type { AnyFunction, FunctionWithContext } from '../types/actions.js';
3
+ export interface ActionByBuilder<T, Context> {
4
+ actionName: keyof T;
5
+ and: Operators<T>;
6
+ or: Operators<T>;
7
+ after: Operators<T>;
8
+ before: Operators<T>;
9
+ action: FunctionWithContext<T[keyof T], Context>;
10
+ }
11
+ export declare class ActionBuilder<T extends Actions<T>, K extends keyof T> {
12
+ #private;
13
+ readonly name: K;
14
+ constructor(name: K);
15
+ and(action: FunctionWithContext<AnyFunction, Context<T>>): this;
16
+ or(action: FunctionWithContext<AnyFunction, Context<T>>): this;
17
+ before(action: FunctionWithContext<AnyFunction, Context<T>>): this;
18
+ after(action: FunctionWithContext<AnyFunction, Context<T>>): this;
19
+ action(action: FunctionWithContext<T[keyof T], Context<T>>): this;
20
+ build(): ActionByBuilder<T, Context<T>>;
21
+ }
22
+ //# sourceMappingURL=action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../src/builders/action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE5E,MAAM,WAAW,eAAe,CAAC,CAAC,EAAE,OAAO;IACzC,UAAU,EAAE,MAAM,CAAC,CAAC;IACpB,GAAG,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;IAClB,EAAE,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;IACpB,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;IACrB,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;CAClD;AAYD,qBAAa,aAAa,CAAC,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC;;IAChE,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;gBAOL,IAAI,EAAE,CAAC;IAIZ,GAAG,CAAC,MAAM,EAAE,mBAAmB,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IAQxD,EAAE,CAAC,MAAM,EAAE,mBAAmB,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IAQvD,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IAQ3D,KAAK,CAAC,MAAM,EAAE,mBAAmB,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IAQ1D,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IAK1D,KAAK,IAAI,eAAe,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;CAc/C"}
@@ -0,0 +1,5 @@
1
+ export type { ProxiedNamespace, FindProxiedNamespace } from './types.js';
2
+ export { NamespaceBuilder } from './namespace.js';
3
+ export { ProviderBuilder } from './provider.js';
4
+ export { ActionBuilder } from './action.js';
5
+ //# sourceMappingURL=mod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/builders/mod.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,47 @@
1
+ import type { ActionByBuilder } from './action.js';
2
+ import type { ProxiedNamespace } from './types.js';
3
+ import type { Actions, Context } from '../hub/namespaces/mod.js';
4
+ import type { NamespaceConfig } from '../hub/store/mod.js';
5
+ import type { FunctionWithContext } from '../types/actions.js';
6
+ /**
7
+ * There are Namespace's methods that should be called directly on Proxy object.
8
+ * The Proxy object is creating in `.build`.
9
+ */
10
+ export declare const allowedMethods: readonly ["init", "state", "after", "before", "and_then", "or_else", "store"];
11
+ export declare class NamespaceBuilder<T extends Actions<T>> {
12
+ #private;
13
+ constructor(id: string, providerId: string);
14
+ /** There are some predefined configs that can be set for each namespace separately */
15
+ config<K extends keyof NamespaceConfig>(name: K, value: NamespaceConfig[K]): this;
16
+ /**
17
+ * Getting a list of actions.
18
+ *
19
+ * e.g.:
20
+ * ```ts
21
+ * .action([
22
+ * ["connect", () => {}],
23
+ * ["disconnect", () => {}]
24
+ * ])
25
+ * ```
26
+ *
27
+ */
28
+ action<K extends keyof T>(action: (readonly [K, FunctionWithContext<T[K], Context<T>>])[]): NamespaceBuilder<T>;
29
+ /**
30
+ *
31
+ * Add a single action
32
+ *
33
+ * e.g.:
34
+ * ```ts
35
+ * .action( ["connect", () => {}] )
36
+ * ```
37
+ */
38
+ action<K extends keyof T>(action: K, actionFn: FunctionWithContext<T[K], Context<T>>): NamespaceBuilder<T>;
39
+ action(action: ActionByBuilder<T, Context<T>>): NamespaceBuilder<T>;
40
+ /**
41
+ * By calling build, an instance of Namespace will be built.
42
+ *
43
+ * Note: it's not exactly a `Namespace`, it returns a Proxy which add more convenient use like `namespace.connect()` instead of `namespace.run("connect")`
44
+ */
45
+ build(): ProxiedNamespace<T>;
46
+ }
47
+ //# sourceMappingURL=namespace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"namespace.d.ts","sourceRoot":"","sources":["../../src/builders/namespace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,KAAK,EAAE,OAAO,EAAc,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAI/D;;;GAGG;AACH,eAAO,MAAM,cAAc,+EAQjB,CAAC;AAaX,qBAAa,gBAAgB,CAAC,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC;;gBAYpC,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;IAM1C,sFAAsF;IAC/E,MAAM,CAAC,CAAC,SAAS,MAAM,eAAe,EAC3C,IAAI,EAAE,CAAC,EACP,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC;IAM3B;;;;;;;;;;;OAWG;IACI,MAAM,CAAC,CAAC,SAAS,MAAM,CAAC,EAC7B,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAC9D,gBAAgB,CAAC,CAAC,CAAC;IAEtB;;;;;;;;OAQG;IACI,MAAM,CAAC,CAAC,SAAS,MAAM,CAAC,EAC7B,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,GAC9C,gBAAgB,CAAC,CAAC,CAAC;IAEf,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC;IA0C1E;;;;OAIG;IACI,KAAK,IAAI,gBAAgB,CAAC,CAAC,CAAC;CAwHpC"}
@@ -0,0 +1,13 @@
1
+ import type { FindProxiedNamespace } from './types.js';
2
+ import type { CommonNamespaces, ExtendableInternalActions, ProviderBuilderOptions } from '../hub/provider/mod.js';
3
+ import type { ProviderConfig } from '../hub/store/mod.js';
4
+ import { Provider } from '../hub/provider/mod.js';
5
+ export declare class ProviderBuilder {
6
+ #private;
7
+ constructor(id: string, options?: ProviderBuilderOptions);
8
+ add<K extends keyof CommonNamespaces>(id: K, namespace: FindProxiedNamespace<K, CommonNamespaces>): this;
9
+ config<K extends keyof ProviderConfig>(name: K, value: ProviderConfig[K]): this;
10
+ init(cb: Exclude<ExtendableInternalActions['init'], undefined>): this;
11
+ build(): Provider;
12
+ }
13
+ //# sourceMappingURL=provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/builders/provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,KAAK,EACV,gBAAgB,EAChB,yBAAyB,EACzB,sBAAsB,EACvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD,qBAAa,eAAe;;gBAOd,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,sBAAsB;IAKjD,GAAG,CAAC,CAAC,SAAS,MAAM,gBAAgB,EACzC,EAAE,EAAE,CAAC,EACL,SAAS,EAAE,oBAAoB,CAAC,CAAC,EAAE,gBAAgB,CAAC;IAS/C,MAAM,CAAC,CAAC,SAAS,MAAM,cAAc,EAC1C,IAAI,EAAE,CAAC,EACP,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC;IAMnB,IAAI,CAAC,EAAE,EAAE,OAAO,CAAC,yBAAyB,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC;IAK9D,KAAK,IAAI,QAAQ;CAczB"}
@@ -0,0 +1,21 @@
1
+ import type { allowedMethods } from './namespace.js';
2
+ import type { Actions, Namespace } from '../hub/namespaces/mod.js';
3
+ type NamespacePublicValues = {
4
+ namespaceId: string;
5
+ providerId: string;
6
+ };
7
+ /**
8
+ * NamespaceBuilder is creating a proxy instead of return Namespace instance.
9
+ * The reason is improving access to actions. e.g `.connect()` instead of `.run('connect')`
10
+ */
11
+ export type ProxiedNamespace<T extends Actions<T>> = T & Pick<Namespace<T>, (typeof allowedMethods)[number]> & NamespacePublicValues;
12
+ /**
13
+ * This is useful when you gave a list of namespaces and want to map a key to corresponding namespace.
14
+ *
15
+ * e.g:
16
+ * Type List = { evm: EvmActions, solana: SolanaActions};
17
+ * FindProxiedNamespace<"solana", List>
18
+ */
19
+ export type FindProxiedNamespace<K extends keyof T, T> = T[K] extends Actions<T[K]> ? ProxiedNamespace<T[K]> : never;
20
+ export {};
21
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/builders/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAGnE,KAAK,qBAAqB,GAAG;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,GACpD,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC,GACnD,qBAAqB,CAAC;AAExB;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,OAAO,CAC3E,CAAC,CAAC,CAAC,CAAC,CACL,GACG,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GACtB,KAAK,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Note: This only works native async, if we are going to support for old transpilers like Babel.
3
+ */
4
+ export declare function isAsync(fn: Function): boolean;
5
+ export declare function generateStoreId(providerId: string, namespace: string): string;
6
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/hub/helpers.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,wBAAgB,OAAO,CAAC,EAAE,EAAE,QAAQ,WAEnC;AAED,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,UAEpE"}
@@ -0,0 +1,37 @@
1
+ import type { State as NamespaceState } from './namespaces/mod.js';
2
+ import type { Provider, State as ProviderState } from './provider/mod.js';
3
+ import type { Store } from './store/mod.js';
4
+ type HubState = {
5
+ [key in string]: ProviderState & {
6
+ namespaces: NamespaceState[];
7
+ };
8
+ };
9
+ type RunAllResult = {
10
+ id: string;
11
+ provider: unknown;
12
+ namespaces: unknown[];
13
+ };
14
+ type RunAllArgs = {
15
+ [providerId: string]: {
16
+ provider?: unknown;
17
+ namespaces?: {
18
+ [namespaceId: string]: unknown;
19
+ };
20
+ };
21
+ };
22
+ interface HubOptions {
23
+ store?: Store;
24
+ }
25
+ export declare class Hub {
26
+ #private;
27
+ constructor(options?: HubOptions);
28
+ init(args?: RunAllArgs): void;
29
+ runAll(action: string, args?: RunAllArgs): RunAllResult[];
30
+ add(id: string, provider: Provider): this;
31
+ remove(id: string): this;
32
+ get(providerId: string): Provider | undefined;
33
+ getAll(): Map<string, Provider>;
34
+ state(): HubState;
35
+ }
36
+ export {};
37
+ //# sourceMappingURL=hub.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hub.d.ts","sourceRoot":"","sources":["../../src/hub/hub.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,KAAK,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,IAAI,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,KAAK,QAAQ,GAAG;KACb,GAAG,IAAI,MAAM,GAAG,aAAa,GAAG;QAC/B,UAAU,EAAE,cAAc,EAAE,CAAC;KAC9B;CACF,CAAC;AAEF,KAAK,YAAY,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,OAAO,EAAE,CAAC;CACvB,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,CAAC,UAAU,EAAE,MAAM,GAAG;QACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,UAAU,CAAC,EAAE;YACX,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC;SAChC,CAAC;KACH,CAAC;CACH,CAAC;AAEF,UAAU,UAAU;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AACD,qBAAa,GAAG;;gBAIF,OAAO,CAAC,EAAE,UAAU;IAIhC,IAAI,CAAC,IAAI,CAAC,EAAE,UAAU;IAStB,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,UAAU,GAAG,YAAY,EAAE;IA4CzD,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ;IAOlC,MAAM,CAAC,EAAE,EAAE,MAAM;IAajB,GAAG,CAAC,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS;IAI7C,MAAM;IAIN,KAAK,IAAI,QAAQ;CAwBlB"}
@@ -0,0 +1,9 @@
1
+ export type { Subscriber, SubscriberCleanUp, Context, } from './namespaces/mod.js';
2
+ export { Namespace } from './namespaces/mod.js';
3
+ export { Provider } from './provider/mod.js';
4
+ export type { CommonNamespaces, CommonNamespaceKeys } from './provider/mod.js';
5
+ export { Hub } from './hub.js';
6
+ export type { Store, State, ProviderMetadata } from './store/mod.js';
7
+ export { createStore, guessProviderStateSelector, namespaceStateSelector, } from './store/mod.js';
8
+ export { generateStoreId } from './helpers.js';
9
+ //# sourceMappingURL=mod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/hub/mod.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,UAAU,EACV,iBAAiB,EACjB,OAAO,GACR,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,YAAY,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE/E,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,YAAY,EAAE,KAAK,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,EACL,WAAW,EACX,0BAA0B,EAC1B,sBAAsB,GACvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const ACTION_NOT_FOUND_ERROR: (name: string) => string;
2
+ export declare const OR_ELSE_ACTION_FAILED_ERROR: (name: string) => string;
3
+ export declare const BEFORE_ACTION_FAILED_ERROR: (name: string) => string;
4
+ export declare const NO_STORE_FOUND_ERROR = "For setup store, you should set `store` first.";
5
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/hub/namespaces/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,SAAU,MAAM,WACsB,CAAC;AAE1E,eAAO,MAAM,2BAA2B,SAAU,MAAM,WACZ,CAAC;AAE7C,eAAO,MAAM,0BAA0B,SAAU,MAAM,WACS,CAAC;AAEjE,eAAO,MAAM,oBAAoB,mDACiB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export type { Subscriber, SubscriberCleanUp, State, RegisteredActions as ActionsMap, Context, Actions, } from './types.js';
2
+ export { Namespace } from './namespace.js';
3
+ //# sourceMappingURL=mod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../src/hub/namespaces/mod.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,UAAU,EACV,iBAAiB,EACjB,KAAK,EACL,iBAAiB,IAAI,UAAU,EAC/B,OAAO,EACP,OAAO,GACR,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC"}