@kheopskit/core 5.1.0 → 5.1.2

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 (76) hide show
  1. package/dist/errors-Caq2csKx.mjs +181 -0
  2. package/dist/errors-Caq2csKx.mjs.map +1 -0
  3. package/dist/errors-DPw6pc2H.js +222 -0
  4. package/dist/errors-DPw6pc2H.js.map +1 -0
  5. package/dist/ethereum.d.mts +39 -38
  6. package/dist/ethereum.d.ts +39 -38
  7. package/dist/ethereum.js +214 -281
  8. package/dist/ethereum.js.map +1 -1
  9. package/dist/ethereum.mjs +211 -282
  10. package/dist/ethereum.mjs.map +1 -1
  11. package/dist/{getCachedObservable-C4E8dfMp.d.ts → getCachedObservable-LUq9IfEx.d.mts} +5 -2
  12. package/dist/{getCachedObservable-C4E8dfMp.d.mts → getCachedObservable-LUq9IfEx.d.ts} +5 -2
  13. package/dist/iconCache-BSa42Sui.mjs +343 -0
  14. package/dist/iconCache-BSa42Sui.mjs.map +1 -0
  15. package/dist/iconCache-DS4zNiP1.js +396 -0
  16. package/dist/iconCache-DS4zNiP1.js.map +1 -0
  17. package/dist/index.d.mts +65 -59
  18. package/dist/index.d.ts +65 -59
  19. package/dist/index.js +901 -1015
  20. package/dist/index.js.map +1 -1
  21. package/dist/index.mjs +885 -1016
  22. package/dist/index.mjs.map +1 -1
  23. package/dist/injectedWallets-B1MCxAE9.js +148 -0
  24. package/dist/injectedWallets-B1MCxAE9.js.map +1 -0
  25. package/dist/injectedWallets-B3Vysfvr.mjs +119 -0
  26. package/dist/injectedWallets-B3Vysfvr.mjs.map +1 -0
  27. package/dist/internal.d.mts +18 -16
  28. package/dist/internal.d.ts +18 -16
  29. package/dist/internal.js +9 -20
  30. package/dist/internal.mjs +3 -20
  31. package/dist/polkadot.d.mts +37 -36
  32. package/dist/polkadot.d.ts +37 -36
  33. package/dist/polkadot.js +178 -220
  34. package/dist/polkadot.js.map +1 -1
  35. package/dist/polkadot.mjs +175 -221
  36. package/dist/polkadot.mjs.map +1 -1
  37. package/dist/polkadotExtensions-BoVKhNU_.mjs +23 -0
  38. package/dist/polkadotExtensions-BoVKhNU_.mjs.map +1 -0
  39. package/dist/polkadotExtensions-y4J9UzYl.js +28 -0
  40. package/dist/polkadotExtensions-y4J9UzYl.js.map +1 -0
  41. package/dist/solana.d.mts +50 -48
  42. package/dist/solana.d.ts +50 -48
  43. package/dist/solana.js +320 -378
  44. package/dist/solana.js.map +1 -1
  45. package/dist/solana.mjs +314 -379
  46. package/dist/solana.mjs.map +1 -1
  47. package/dist/types-Cb-vuEru.d.mts +330 -0
  48. package/dist/types-Cb-vuEru.d.ts +330 -0
  49. package/dist/types-DKU-SNio.js +169 -0
  50. package/dist/{chunk-P7BPHHVV.js.map → types-DKU-SNio.js.map} +1 -1
  51. package/dist/types-jnifAAA0.mjs +104 -0
  52. package/dist/types-jnifAAA0.mjs.map +1 -0
  53. package/package.json +12 -12
  54. package/dist/chunk-3Y5N4N3Q.mjs +0 -267
  55. package/dist/chunk-3Y5N4N3Q.mjs.map +0 -1
  56. package/dist/chunk-BWUUHUDK.mjs +0 -24
  57. package/dist/chunk-BWUUHUDK.mjs.map +0 -1
  58. package/dist/chunk-D3EQMFZ2.js +0 -24
  59. package/dist/chunk-D3EQMFZ2.js.map +0 -1
  60. package/dist/chunk-DF7EKK4G.mjs +0 -106
  61. package/dist/chunk-DF7EKK4G.mjs.map +0 -1
  62. package/dist/chunk-EH73P476.js +0 -106
  63. package/dist/chunk-EH73P476.js.map +0 -1
  64. package/dist/chunk-JVSCMJY5.mjs +0 -147
  65. package/dist/chunk-JVSCMJY5.mjs.map +0 -1
  66. package/dist/chunk-P7BPHHVV.js +0 -76
  67. package/dist/chunk-SO64R7Z6.js +0 -267
  68. package/dist/chunk-SO64R7Z6.js.map +0 -1
  69. package/dist/chunk-WOPCW2OX.mjs +0 -76
  70. package/dist/chunk-WOPCW2OX.mjs.map +0 -1
  71. package/dist/chunk-XOGQMEV2.js +0 -147
  72. package/dist/chunk-XOGQMEV2.js.map +0 -1
  73. package/dist/internal.js.map +0 -1
  74. package/dist/internal.mjs.map +0 -1
  75. package/dist/types-0iDBydsK.d.mts +0 -327
  76. package/dist/types-0iDBydsK.d.ts +0 -327
package/dist/solana.d.mts CHANGED
@@ -1,9 +1,7 @@
1
- import { W as WalletAccountId, a as WalletId, K as KheopskitPlatform } from './types-0iDBydsK.mjs';
2
- export { b as WalletConnectWallet, i as isInjectedWallet, c as isWalletConnectWallet } from './types-0iDBydsK.mjs';
3
- import { MessageModifyingSigner, TransactionModifyingSigner, TransactionSendingSigner } from '@solana/kit';
4
- import { Wallet } from '@wallet-standard/base';
5
- import 'rxjs';
6
-
1
+ import { C as WalletId, D as WalletAccountId, S as isWalletConnectWallet, _ as WalletConnectWallet, c as KheopskitPlatform, x as isInjectedWallet } from "./types-Cb-vuEru.mjs";
2
+ import { MessageModifyingSigner, TransactionModifyingSigner, TransactionSendingSigner } from "@solana/kit";
3
+ import { Wallet } from "@wallet-standard/base";
4
+ //#region src/utils/isSolanaAddress.d.ts
7
5
  /**
8
6
  * Returns true if the value is a valid Solana address: a base58-encoded
9
7
  * 32-byte ed25519 public key.
@@ -13,7 +11,8 @@ import 'rxjs';
13
11
  * @solana/kit.
14
12
  */
15
13
  declare const isSolanaAddress: (address: string) => boolean;
16
-
14
+ //#endregion
15
+ //#region src/api/solana/chains.d.ts
17
16
  /**
18
17
  * Wallet Standard chain identifiers for Solana clusters.
19
18
  *
@@ -32,7 +31,8 @@ declare const isSolanaChainId: (value: unknown) => value is SolanaChainId;
32
31
  * @throws if the chain has no canonical CAIP-2 id (e.g. localnet)
33
32
  */
34
33
  declare const getSolanaCaip2: (chain: SolanaChainId) => string;
35
-
34
+ //#endregion
35
+ //#region src/api/solana/types.d.ts
36
36
  /**
37
37
  * Unified signing interface for Solana accounts, expressed with @solana/kit
38
38
  * signer interfaces so it plugs directly into kit's transaction pipeline
@@ -40,49 +40,50 @@ declare const getSolanaCaip2: (chain: SolanaChainId) => string;
40
40
  */
41
41
  type SolanaSigner = MessageModifyingSigner & TransactionModifyingSigner & TransactionSendingSigner;
42
42
  type SolanaInjectedWallet = {
43
- platform: "solana";
44
- type: "injected";
45
- id: WalletId;
46
- /**
47
- * Stable identifier of the underlying wallet source. For Solana this is the
48
- * Wallet Standard wallet name. Named consistently across platforms (Ethereum:
49
- * EIP-6963 rdns; Polkadot: extension identifier).
50
- */
51
- sourceId: string;
52
- /** Raw Wallet Standard wallet, exposed as an escape hatch. */
53
- wallet: Wallet;
54
- /** Solana clusters advertised by the wallet. */
55
- chains: SolanaChainId[];
56
- name: string;
57
- icon: string;
58
- isConnected: boolean;
59
- connect: () => Promise<void>;
60
- disconnect: () => Promise<void>;
43
+ platform: "solana";
44
+ type: "injected";
45
+ id: WalletId;
46
+ /**
47
+ * Stable identifier of the underlying wallet source. For Solana this is the
48
+ * Wallet Standard wallet name. Named consistently across platforms (Ethereum:
49
+ * EIP-6963 rdns; Polkadot: extension identifier).
50
+ */
51
+ sourceId: string;
52
+ /** Raw Wallet Standard wallet, exposed as an escape hatch. */
53
+ wallet: Wallet;
54
+ /** Solana clusters advertised by the wallet. */
55
+ chains: SolanaChainId[];
56
+ name: string;
57
+ icon: string;
58
+ isConnected: boolean;
59
+ connect: () => Promise<void>;
60
+ disconnect: () => Promise<void>;
61
61
  };
62
62
  type SolanaWallet = SolanaInjectedWallet;
63
63
  type SolanaAccount = {
64
- id: WalletAccountId;
65
- platform: "solana";
66
- /** Base58-encoded address. */
67
- address: string;
68
- /** Solana clusters advertised by the wallet for this account. */
69
- chains: SolanaChainId[];
70
- /** Signer bound to the configured cluster. */
71
- signer: SolanaSigner;
72
- /** Returns a signer bound to an arbitrary cluster. */
73
- getSigner: (chain: SolanaChainId) => SolanaSigner;
74
- walletName: string;
75
- walletId: WalletId;
64
+ id: WalletAccountId;
65
+ platform: "solana";
66
+ /** Base58-encoded address. */
67
+ address: string;
68
+ /** Solana clusters advertised by the wallet for this account. */
69
+ chains: SolanaChainId[];
70
+ /** Signer bound to the configured cluster. */
71
+ signer: SolanaSigner;
72
+ /** Returns a signer bound to an arbitrary cluster. */
73
+ getSigner: (chain: SolanaChainId) => SolanaSigner;
74
+ walletName: string;
75
+ walletId: WalletId;
76
76
  };
77
-
77
+ //#endregion
78
+ //#region src/api/solana/plugin.d.ts
78
79
  type SolanaPluginOptions = {
79
- /**
80
- * Solana cluster that account signers target. Each account also exposes a
81
- * `getSigner(chain)` factory for targeting another cluster.
82
- *
83
- * @default "solana:mainnet"
84
- */
85
- chain?: SolanaChainId;
80
+ /**
81
+ * Solana cluster that account signers target. Each account also exposes a
82
+ * `getSigner(chain)` factory for targeting another cluster.
83
+ *
84
+ * @default "solana:mainnet"
85
+ */
86
+ chain?: SolanaChainId;
86
87
  };
87
88
  /**
88
89
  * Solana platform plugin. Pass to `getKheopskit$({ platforms: [solana()] })`.
@@ -94,5 +95,6 @@ type SolanaPluginOptions = {
94
95
  * ```
95
96
  */
96
97
  declare const solana: (options?: SolanaPluginOptions) => KheopskitPlatform<"solana", SolanaWallet, SolanaAccount>;
97
-
98
- export { DEFAULT_SOLANA_CHAIN, type SolanaAccount, type SolanaChainId, type SolanaInjectedWallet, type SolanaPluginOptions, type SolanaSigner, type SolanaWallet, getSolanaCaip2, isSolanaAddress, isSolanaChainId, solana };
98
+ //#endregion
99
+ export { DEFAULT_SOLANA_CHAIN, type SolanaAccount, type SolanaChainId, type SolanaInjectedWallet, type SolanaPluginOptions, type SolanaSigner, type SolanaWallet, type WalletConnectWallet, getSolanaCaip2, isInjectedWallet, isSolanaAddress, isSolanaChainId, isWalletConnectWallet, solana };
100
+ //# sourceMappingURL=solana.d.mts.map
package/dist/solana.d.ts CHANGED
@@ -1,9 +1,7 @@
1
- import { W as WalletAccountId, a as WalletId, K as KheopskitPlatform } from './types-0iDBydsK.js';
2
- export { b as WalletConnectWallet, i as isInjectedWallet, c as isWalletConnectWallet } from './types-0iDBydsK.js';
3
- import { MessageModifyingSigner, TransactionModifyingSigner, TransactionSendingSigner } from '@solana/kit';
4
- import { Wallet } from '@wallet-standard/base';
5
- import 'rxjs';
6
-
1
+ import { C as WalletId, D as WalletAccountId, S as isWalletConnectWallet, _ as WalletConnectWallet, c as KheopskitPlatform, x as isInjectedWallet } from "./types-Cb-vuEru.js";
2
+ import { MessageModifyingSigner, TransactionModifyingSigner, TransactionSendingSigner } from "@solana/kit";
3
+ import { Wallet } from "@wallet-standard/base";
4
+ //#region src/utils/isSolanaAddress.d.ts
7
5
  /**
8
6
  * Returns true if the value is a valid Solana address: a base58-encoded
9
7
  * 32-byte ed25519 public key.
@@ -13,7 +11,8 @@ import 'rxjs';
13
11
  * @solana/kit.
14
12
  */
15
13
  declare const isSolanaAddress: (address: string) => boolean;
16
-
14
+ //#endregion
15
+ //#region src/api/solana/chains.d.ts
17
16
  /**
18
17
  * Wallet Standard chain identifiers for Solana clusters.
19
18
  *
@@ -32,7 +31,8 @@ declare const isSolanaChainId: (value: unknown) => value is SolanaChainId;
32
31
  * @throws if the chain has no canonical CAIP-2 id (e.g. localnet)
33
32
  */
34
33
  declare const getSolanaCaip2: (chain: SolanaChainId) => string;
35
-
34
+ //#endregion
35
+ //#region src/api/solana/types.d.ts
36
36
  /**
37
37
  * Unified signing interface for Solana accounts, expressed with @solana/kit
38
38
  * signer interfaces so it plugs directly into kit's transaction pipeline
@@ -40,49 +40,50 @@ declare const getSolanaCaip2: (chain: SolanaChainId) => string;
40
40
  */
41
41
  type SolanaSigner = MessageModifyingSigner & TransactionModifyingSigner & TransactionSendingSigner;
42
42
  type SolanaInjectedWallet = {
43
- platform: "solana";
44
- type: "injected";
45
- id: WalletId;
46
- /**
47
- * Stable identifier of the underlying wallet source. For Solana this is the
48
- * Wallet Standard wallet name. Named consistently across platforms (Ethereum:
49
- * EIP-6963 rdns; Polkadot: extension identifier).
50
- */
51
- sourceId: string;
52
- /** Raw Wallet Standard wallet, exposed as an escape hatch. */
53
- wallet: Wallet;
54
- /** Solana clusters advertised by the wallet. */
55
- chains: SolanaChainId[];
56
- name: string;
57
- icon: string;
58
- isConnected: boolean;
59
- connect: () => Promise<void>;
60
- disconnect: () => Promise<void>;
43
+ platform: "solana";
44
+ type: "injected";
45
+ id: WalletId;
46
+ /**
47
+ * Stable identifier of the underlying wallet source. For Solana this is the
48
+ * Wallet Standard wallet name. Named consistently across platforms (Ethereum:
49
+ * EIP-6963 rdns; Polkadot: extension identifier).
50
+ */
51
+ sourceId: string;
52
+ /** Raw Wallet Standard wallet, exposed as an escape hatch. */
53
+ wallet: Wallet;
54
+ /** Solana clusters advertised by the wallet. */
55
+ chains: SolanaChainId[];
56
+ name: string;
57
+ icon: string;
58
+ isConnected: boolean;
59
+ connect: () => Promise<void>;
60
+ disconnect: () => Promise<void>;
61
61
  };
62
62
  type SolanaWallet = SolanaInjectedWallet;
63
63
  type SolanaAccount = {
64
- id: WalletAccountId;
65
- platform: "solana";
66
- /** Base58-encoded address. */
67
- address: string;
68
- /** Solana clusters advertised by the wallet for this account. */
69
- chains: SolanaChainId[];
70
- /** Signer bound to the configured cluster. */
71
- signer: SolanaSigner;
72
- /** Returns a signer bound to an arbitrary cluster. */
73
- getSigner: (chain: SolanaChainId) => SolanaSigner;
74
- walletName: string;
75
- walletId: WalletId;
64
+ id: WalletAccountId;
65
+ platform: "solana";
66
+ /** Base58-encoded address. */
67
+ address: string;
68
+ /** Solana clusters advertised by the wallet for this account. */
69
+ chains: SolanaChainId[];
70
+ /** Signer bound to the configured cluster. */
71
+ signer: SolanaSigner;
72
+ /** Returns a signer bound to an arbitrary cluster. */
73
+ getSigner: (chain: SolanaChainId) => SolanaSigner;
74
+ walletName: string;
75
+ walletId: WalletId;
76
76
  };
77
-
77
+ //#endregion
78
+ //#region src/api/solana/plugin.d.ts
78
79
  type SolanaPluginOptions = {
79
- /**
80
- * Solana cluster that account signers target. Each account also exposes a
81
- * `getSigner(chain)` factory for targeting another cluster.
82
- *
83
- * @default "solana:mainnet"
84
- */
85
- chain?: SolanaChainId;
80
+ /**
81
+ * Solana cluster that account signers target. Each account also exposes a
82
+ * `getSigner(chain)` factory for targeting another cluster.
83
+ *
84
+ * @default "solana:mainnet"
85
+ */
86
+ chain?: SolanaChainId;
86
87
  };
87
88
  /**
88
89
  * Solana platform plugin. Pass to `getKheopskit$({ platforms: [solana()] })`.
@@ -94,5 +95,6 @@ type SolanaPluginOptions = {
94
95
  * ```
95
96
  */
96
97
  declare const solana: (options?: SolanaPluginOptions) => KheopskitPlatform<"solana", SolanaWallet, SolanaAccount>;
97
-
98
- export { DEFAULT_SOLANA_CHAIN, type SolanaAccount, type SolanaChainId, type SolanaInjectedWallet, type SolanaPluginOptions, type SolanaSigner, type SolanaWallet, getSolanaCaip2, isSolanaAddress, isSolanaChainId, solana };
98
+ //#endregion
99
+ export { DEFAULT_SOLANA_CHAIN, type SolanaAccount, type SolanaChainId, type SolanaInjectedWallet, type SolanaPluginOptions, type SolanaSigner, type SolanaWallet, type WalletConnectWallet, getSolanaCaip2, isInjectedWallet, isSolanaAddress, isSolanaChainId, isWalletConnectWallet, solana };
100
+ //# sourceMappingURL=solana.d.ts.map