@rango-dev/wallets-core 0.58.1-next.0 → 0.58.2-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/hub/hub.d.ts +10 -2
  3. package/dist/hub/hub.d.ts.map +1 -1
  4. package/dist/hub/provider/provider.d.ts +1 -1
  5. package/dist/hub/provider/provider.d.ts.map +1 -1
  6. package/dist/hub/provider/types.d.ts +2 -0
  7. package/dist/hub/provider/types.d.ts.map +1 -1
  8. package/dist/legacy/mod.js +1 -1
  9. package/dist/legacy/mod.js.map +2 -2
  10. package/dist/legacy/types.d.ts +1 -0
  11. package/dist/legacy/types.d.ts.map +1 -1
  12. package/dist/mod.js +1 -1
  13. package/dist/mod.js.map +3 -3
  14. package/dist/namespaces/common/mod.js +1 -1
  15. package/dist/namespaces/cosmos/mod.js +1 -1
  16. package/dist/namespaces/evm/mod.js +1 -1
  17. package/dist/namespaces/solana/mod.js +1 -1
  18. package/dist/namespaces/starknet/mod.js +1 -1
  19. package/dist/namespaces/sui/mod.js +1 -1
  20. package/dist/namespaces/ton/builders.d.ts +5 -0
  21. package/dist/namespaces/ton/builders.d.ts.map +1 -0
  22. package/dist/namespaces/ton/constants.d.ts +3 -0
  23. package/dist/namespaces/ton/constants.d.ts.map +1 -0
  24. package/dist/namespaces/ton/mod.d.ts +5 -0
  25. package/dist/namespaces/ton/mod.d.ts.map +1 -0
  26. package/dist/namespaces/ton/mod.js +2 -0
  27. package/dist/namespaces/ton/mod.js.map +7 -0
  28. package/dist/namespaces/ton/types.d.ts +7 -0
  29. package/dist/namespaces/ton/types.d.ts.map +1 -0
  30. package/dist/namespaces/ton/utils.d.ts +2 -0
  31. package/dist/namespaces/ton/utils.d.ts.map +1 -0
  32. package/dist/namespaces/tron/mod.js +1 -1
  33. package/dist/namespaces/utxo/constants.d.ts +1 -0
  34. package/dist/namespaces/utxo/constants.d.ts.map +1 -1
  35. package/dist/namespaces/utxo/mod.d.ts +1 -1
  36. package/dist/namespaces/utxo/mod.d.ts.map +1 -1
  37. package/dist/namespaces/utxo/mod.js +1 -1
  38. package/dist/namespaces/utxo/mod.js.map +3 -3
  39. package/dist/namespaces/utxo/utils.d.ts +1 -1
  40. package/dist/namespaces/utxo/utils.d.ts.map +1 -1
  41. package/dist/namespaces/xrpl/mod.js +1 -1
  42. package/dist/wallets-core.build.json +1 -1
  43. package/package.json +7 -3
  44. package/src/hub/hub.ts +19 -5
  45. package/src/hub/provider/provider.ts +2 -2
  46. package/src/hub/provider/types.ts +2 -0
  47. package/src/legacy/types.ts +1 -0
  48. package/src/namespaces/ton/builders.ts +15 -0
  49. package/src/namespaces/ton/constants.ts +2 -0
  50. package/src/namespaces/ton/mod.ts +5 -0
  51. package/src/namespaces/ton/types.ts +12 -0
  52. package/src/namespaces/ton/utils.ts +18 -0
  53. package/src/namespaces/utxo/constants.ts +1 -0
  54. package/src/namespaces/utxo/mod.ts +5 -1
  55. package/src/namespaces/utxo/utils.ts +3 -3
@@ -5,4 +5,8 @@ export * as before from './before.js';
5
5
  export * as builders from './builders.js';
6
6
  export * as utils from './utils.js';
7
7
  export type { ProviderAPI, UtxoActions } from './types.js';
8
- export { CAIP_NAMESPACE, CAIP_BITCOIN_CHAIN_ID } from './constants.js';
8
+ export {
9
+ CAIP_NAMESPACE,
10
+ CAIP_BITCOIN_CHAIN_ID,
11
+ CAIP_ZCASH_CHAIN_ID,
12
+ } from './constants.js';
@@ -2,16 +2,16 @@ import type { CaipAccount } from '../common/mod.js';
2
2
 
3
3
  import { AccountId } from 'caip';
4
4
 
5
- import { CAIP_BITCOIN_CHAIN_ID, CAIP_NAMESPACE } from './constants.js';
5
+ import { CAIP_NAMESPACE } from './constants.js';
6
6
 
7
- export function formatAccountsToCAIP(accounts: string[]) {
7
+ export function formatAccountsToCAIP(accounts: string[], chainId: string) {
8
8
  return accounts.map(
9
9
  (account) =>
10
10
  AccountId.format({
11
11
  address: account.toString(),
12
12
  chainId: {
13
13
  namespace: CAIP_NAMESPACE,
14
- reference: CAIP_BITCOIN_CHAIN_ID,
14
+ reference: chainId,
15
15
  },
16
16
  }) as CaipAccount
17
17
  );