@moon-x/solana-adapter 0.3.1 → 0.3.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.
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Transaction, VersionedTransaction } from '@solana/web3.js';
2
- import { Ed25519SignFn } from '@moon-x/signing-codec/solana';
3
- export { Ed25519SignFn } from '@moon-x/signing-codec/solana';
2
+
3
+ type Ed25519SignFn = (message: Uint8Array) => Promise<Uint8Array>;
4
4
 
5
5
  /**
6
6
  * Connection + identity for a Solana ephemeral signer. `apiPrivHex` is
@@ -53,9 +53,9 @@ declare class SolanaSchemeMismatchError extends Error {
53
53
  declare function ephemeralSignerEd25519SignFn(cfg: SolanaSignerConfig): Ed25519SignFn;
54
54
  /**
55
55
  * Chain-aware Solana signer: produces the bytes to sign and attaches the
56
- * signature, independent of *how* the bytes get signed. All chain logic
57
- * lives in @moon-x/signing-codec/solana; this class just binds it to a
58
- * single `Ed25519SignFn` and exposes intent-level methods.
56
+ * signature, independent of *how* the bytes get signed. This class binds
57
+ * the chain logic to a single `Ed25519SignFn` and exposes intent-level
58
+ * methods.
59
59
  *
60
60
  * Two ways to construct:
61
61
  * - `new MoonXSolanaSigner(sign, address)` with any `Ed25519SignFn` —
@@ -90,4 +90,4 @@ declare class MoonXSolanaSigner {
90
90
  */
91
91
  declare function createSolanaSigner(cfg: SolanaSignerConfig): MoonXSolanaSigner;
92
92
 
93
- export { MoonXSolanaSigner, SolanaSchemeMismatchError, type SolanaSignerConfig, createSolanaSigner, ephemeralSignerEd25519SignFn };
93
+ export { type Ed25519SignFn, MoonXSolanaSigner, SolanaSchemeMismatchError, type SolanaSignerConfig, createSolanaSigner, ephemeralSignerEd25519SignFn };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Transaction, VersionedTransaction } from '@solana/web3.js';
2
- import { Ed25519SignFn } from '@moon-x/signing-codec/solana';
3
- export { Ed25519SignFn } from '@moon-x/signing-codec/solana';
2
+
3
+ type Ed25519SignFn = (message: Uint8Array) => Promise<Uint8Array>;
4
4
 
5
5
  /**
6
6
  * Connection + identity for a Solana ephemeral signer. `apiPrivHex` is
@@ -53,9 +53,9 @@ declare class SolanaSchemeMismatchError extends Error {
53
53
  declare function ephemeralSignerEd25519SignFn(cfg: SolanaSignerConfig): Ed25519SignFn;
54
54
  /**
55
55
  * Chain-aware Solana signer: produces the bytes to sign and attaches the
56
- * signature, independent of *how* the bytes get signed. All chain logic
57
- * lives in @moon-x/signing-codec/solana; this class just binds it to a
58
- * single `Ed25519SignFn` and exposes intent-level methods.
56
+ * signature, independent of *how* the bytes get signed. This class binds
57
+ * the chain logic to a single `Ed25519SignFn` and exposes intent-level
58
+ * methods.
59
59
  *
60
60
  * Two ways to construct:
61
61
  * - `new MoonXSolanaSigner(sign, address)` with any `Ed25519SignFn` —
@@ -90,4 +90,4 @@ declare class MoonXSolanaSigner {
90
90
  */
91
91
  declare function createSolanaSigner(cfg: SolanaSignerConfig): MoonXSolanaSigner;
92
92
 
93
- export { MoonXSolanaSigner, SolanaSchemeMismatchError, type SolanaSignerConfig, createSolanaSigner, ephemeralSignerEd25519SignFn };
93
+ export { type Ed25519SignFn, MoonXSolanaSigner, SolanaSchemeMismatchError, type SolanaSignerConfig, createSolanaSigner, ephemeralSignerEd25519SignFn };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moon-x/solana-adapter",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Chain-aware Solana signing helpers for MoonX ephemeral signers. Serializes the message bytes and assembles ready-to-broadcast transactions/signatures so integrators never hand-roll payload construction.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -31,7 +31,7 @@
31
31
  "access": "public"
32
32
  },
33
33
  "dependencies": {
34
- "@moon-x/core": "0.11.0"
34
+ "@moon-x/core": "0.14.0"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@solana/web3.js": "^1.98.0"