@moon-x/solana-adapter 0.3.0 → 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 +6 -6
- package/dist/index.d.ts +6 -6
- package/package.json +4 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Transaction, VersionedTransaction } from '@solana/web3.js';
|
|
2
|
-
|
|
3
|
-
|
|
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.
|
|
57
|
-
*
|
|
58
|
-
*
|
|
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
|
-
|
|
3
|
-
|
|
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.
|
|
57
|
-
*
|
|
58
|
-
*
|
|
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.
|
|
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.
|
|
34
|
+
"@moon-x/core": "0.14.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@solana/web3.js": "^1.98.0"
|
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
"bs58": "6.0.0",
|
|
43
43
|
"tsup": "8.5.1",
|
|
44
44
|
"typescript": "5.9.3",
|
|
45
|
-
"
|
|
45
|
+
"vite": "7.3.5",
|
|
46
|
+
"vitest": "4.1.0",
|
|
46
47
|
"@moon-x/signing-codec": "0.1.0"
|
|
47
48
|
},
|
|
48
49
|
"engines": {
|