@crossmint/wallets-sdk 0.20.2 → 0.21.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 (155) hide show
  1. package/dist/api/__tests__/test-utils.cjs +8 -8
  2. package/dist/api/__tests__/test-utils.d.cts +3 -3
  3. package/dist/api/__tests__/test-utils.d.ts +3 -3
  4. package/dist/api/__tests__/test-utils.js +6 -6
  5. package/dist/api/client.cjs +4 -4
  6. package/dist/api/client.d.cts +1 -0
  7. package/dist/api/client.d.ts +1 -0
  8. package/dist/api/client.js +3 -3
  9. package/dist/api/gen/index.cjs +3 -103
  10. package/dist/api/gen/index.d.cts +2 -2
  11. package/dist/api/gen/index.d.ts +2 -2
  12. package/dist/api/gen/index.js +6 -106
  13. package/dist/api/gen/sdk.gen.cjs +2 -102
  14. package/dist/api/gen/sdk.gen.d.cts +22 -370
  15. package/dist/api/gen/sdk.gen.d.ts +22 -370
  16. package/dist/api/gen/sdk.gen.js +5 -105
  17. package/dist/api/gen/types.gen.d.cts +2558 -5712
  18. package/dist/api/gen/types.gen.d.ts +2558 -5712
  19. package/dist/api/index.cjs +4 -4
  20. package/dist/api/index.js +3 -3
  21. package/dist/api/types.d.cts +12 -12
  22. package/dist/api/types.d.ts +12 -12
  23. package/dist/chains/chains.cjs +5 -5
  24. package/dist/chains/chains.js +4 -4
  25. package/dist/{chunk-JREZWZ2S.cjs → chunk-2M32LBCA.cjs} +3 -3
  26. package/dist/{chunk-KQH5ZXJ4.js → chunk-2PSAUSOG.js} +61 -18
  27. package/dist/chunk-2RG6642I.js +39 -0
  28. package/dist/{chunk-R4AW5ADG.cjs → chunk-3WZUNLYI.cjs} +1 -1
  29. package/dist/{chunk-6UMJYMAY.js → chunk-4Z3YDHHG.js} +2 -2
  30. package/dist/{chunk-POG76HDD.cjs → chunk-4ZWUI6LE.cjs} +64 -48
  31. package/dist/chunk-5IC7UWND.cjs +1 -0
  32. package/dist/{chunk-HXJ3YPAN.js → chunk-65KPNJ77.js} +13 -4
  33. package/dist/{chunk-IDKGJO2G.cjs → chunk-7EZDSDKA.cjs} +21 -11
  34. package/dist/{chunk-PM7BGATN.cjs → chunk-7SUWMK4J.cjs} +34 -25
  35. package/dist/{chunk-47R3UV3J.cjs → chunk-7W4HGN3H.cjs} +11 -6
  36. package/dist/chunk-BR4UVMIC.js +332 -0
  37. package/dist/chunk-BUBSPQ7U.cjs +332 -0
  38. package/dist/{chunk-MRZXYVQO.cjs → chunk-CPZQ7BK5.cjs} +6 -6
  39. package/dist/chunk-CTOLL4BK.js +29 -0
  40. package/dist/chunk-DDNG224J.cjs +45 -0
  41. package/dist/{chunk-T2XUADHW.js → chunk-EVR4CD53.js} +8 -3
  42. package/dist/{chunk-U3NV7UY7.js → chunk-FZQG6OX2.js} +1 -1
  43. package/dist/chunk-GJT2JD3E.js +45 -0
  44. package/dist/{chunk-TYQ4YIP7.js → chunk-GLUD6EBN.js} +1 -1
  45. package/dist/chunk-H6WV5NRT.js +10 -0
  46. package/dist/{chunk-FICVKSXZ.js → chunk-HFEF2URB.js} +2 -2
  47. package/dist/chunk-HWTWDQYT.cjs +42 -0
  48. package/dist/{chunk-CMBFV325.js → chunk-HYA3ESUA.js} +3 -3
  49. package/dist/chunk-IGRPHTXZ.cjs +1 -0
  50. package/dist/chunk-K6LSGLG6.js +42 -0
  51. package/dist/chunk-KHY5FXO4.cjs +37 -0
  52. package/dist/chunk-L52GDMSH.js +0 -0
  53. package/dist/{chunk-A6E67ZZP.js → chunk-M47ZHA7Q.js} +14 -5
  54. package/dist/{chunk-6FG5QXII.cjs → chunk-M4HCASMG.cjs} +20 -11
  55. package/dist/chunk-M6IPPGXQ.cjs +29 -0
  56. package/dist/{chunk-R6DH4V7S.cjs → chunk-M7OPRXZH.cjs} +7 -7
  57. package/dist/{chunk-WDZY4PP4.cjs → chunk-MIKWTXUA.cjs} +6 -6
  58. package/dist/chunk-MNHK6EQK.cjs +57 -0
  59. package/dist/{chunk-66UY53KP.cjs → chunk-NO2KMGS2.cjs} +80 -37
  60. package/dist/chunk-OPKFMXPI.cjs +39 -0
  61. package/dist/{chunk-WWW6IGZ7.js → chunk-OXB6RTW7.js} +14 -4
  62. package/dist/{chunk-RYQI3RXL.cjs → chunk-P4XJHOLW.cjs} +18 -12
  63. package/dist/chunk-Q52MMQSC.js +57 -0
  64. package/dist/chunk-QM3BB4E2.js +0 -0
  65. package/dist/{chunk-ZAX22GSI.cjs → chunk-QQNDLR6E.cjs} +18 -18
  66. package/dist/chunk-RUQYXEEG.cjs +10 -0
  67. package/dist/chunk-S2L5Z2ZT.js +37 -0
  68. package/dist/{chunk-PUO4QNXH.js → chunk-T5NKL6F4.js} +2 -2
  69. package/dist/{chunk-WHTECI7J.cjs → chunk-U56Z2EOR.cjs} +6 -6
  70. package/dist/{chunk-W7K5E64Q.js → chunk-VLZ5ZS5U.js} +8 -2
  71. package/dist/{chunk-7TT3VUDF.cjs → chunk-VTF3WCXG.cjs} +6 -6
  72. package/dist/{chunk-FHMKNG62.js → chunk-VVPGO564.js} +24 -8
  73. package/dist/{chunk-2WBSPOWU.js → chunk-X4SPF4KJ.js} +4 -4
  74. package/dist/{chunk-ABMZ3ZVN.js → chunk-XEPUH4XH.js} +1 -1
  75. package/dist/index.cjs +26 -17
  76. package/dist/index.d.cts +1 -1
  77. package/dist/index.d.ts +1 -1
  78. package/dist/index.js +25 -16
  79. package/dist/logger/index.cjs +3 -3
  80. package/dist/logger/index.js +2 -2
  81. package/dist/logger/init.cjs +3 -3
  82. package/dist/logger/init.js +2 -2
  83. package/dist/sdk.cjs +23 -14
  84. package/dist/sdk.js +22 -13
  85. package/dist/signers/index.cjs +17 -8
  86. package/dist/signers/index.js +16 -7
  87. package/dist/signers/non-custodial/index.cjs +7 -7
  88. package/dist/signers/non-custodial/index.js +6 -6
  89. package/dist/signers/non-custodial/ncs-evm-signer.cjs +5 -5
  90. package/dist/signers/non-custodial/ncs-evm-signer.js +4 -4
  91. package/dist/signers/non-custodial/ncs-signer.cjs +4 -4
  92. package/dist/signers/non-custodial/ncs-signer.js +3 -3
  93. package/dist/signers/non-custodial/ncs-solana-signer.cjs +5 -5
  94. package/dist/signers/non-custodial/ncs-solana-signer.js +4 -4
  95. package/dist/signers/non-custodial/ncs-stellar-signer.cjs +5 -5
  96. package/dist/signers/non-custodial/ncs-stellar-signer.js +4 -4
  97. package/dist/signers/server/assemble-server-signer.cjs +14 -0
  98. package/dist/signers/server/assemble-server-signer.d.cts +11 -0
  99. package/dist/signers/server/assemble-server-signer.d.ts +11 -0
  100. package/dist/signers/server/assemble-server-signer.js +14 -0
  101. package/dist/signers/server/evm-server-signer.cjs +7 -0
  102. package/dist/signers/server/evm-server-signer.d.cts +25 -0
  103. package/dist/signers/server/evm-server-signer.d.ts +25 -0
  104. package/dist/signers/server/evm-server-signer.js +7 -0
  105. package/dist/signers/server/helpers/derive-server-signer.cjs +11 -0
  106. package/dist/signers/server/helpers/derive-server-signer.d.cts +15 -0
  107. package/dist/signers/server/helpers/derive-server-signer.d.ts +15 -0
  108. package/dist/signers/server/helpers/derive-server-signer.js +11 -0
  109. package/dist/signers/server/helpers/get-chain-type.cjs +7 -0
  110. package/dist/signers/server/helpers/get-chain-type.d.cts +7 -0
  111. package/dist/signers/server/helpers/get-chain-type.d.ts +7 -0
  112. package/dist/signers/server/helpers/get-chain-type.js +7 -0
  113. package/dist/signers/server/helpers/index.cjs +15 -0
  114. package/dist/signers/server/helpers/index.d.cts +9 -0
  115. package/dist/signers/server/helpers/index.d.ts +9 -0
  116. package/dist/signers/server/helpers/index.js +15 -0
  117. package/dist/signers/server/index.cjs +29 -0
  118. package/dist/signers/server/index.d.cts +12 -0
  119. package/dist/signers/server/index.d.ts +12 -0
  120. package/dist/signers/server/index.js +29 -0
  121. package/dist/signers/server/solana-server-signer.cjs +7 -0
  122. package/dist/signers/server/solana-server-signer.d.cts +25 -0
  123. package/dist/signers/server/solana-server-signer.d.ts +25 -0
  124. package/dist/signers/server/solana-server-signer.js +7 -0
  125. package/dist/signers/server/stellar-server-signer.cjs +7 -0
  126. package/dist/signers/server/stellar-server-signer.d.cts +25 -0
  127. package/dist/signers/server/stellar-server-signer.d.ts +25 -0
  128. package/dist/signers/server/stellar-server-signer.js +7 -0
  129. package/dist/signers/types.d.cts +15 -3
  130. package/dist/signers/types.d.ts +15 -3
  131. package/dist/utils/constants.cjs +2 -2
  132. package/dist/utils/constants.js +1 -1
  133. package/dist/utils/server-key-derivation.cjs +9 -0
  134. package/dist/utils/server-key-derivation.d.cts +20 -0
  135. package/dist/utils/server-key-derivation.d.ts +20 -0
  136. package/dist/utils/server-key-derivation.js +9 -0
  137. package/dist/wallets/__tests__/test-helpers.cjs +19 -10
  138. package/dist/wallets/__tests__/test-helpers.js +18 -9
  139. package/dist/wallets/evm.cjs +20 -11
  140. package/dist/wallets/evm.js +19 -10
  141. package/dist/wallets/solana.cjs +20 -11
  142. package/dist/wallets/solana.js +19 -10
  143. package/dist/wallets/stellar.cjs +20 -11
  144. package/dist/wallets/stellar.js +19 -10
  145. package/dist/wallets/types.d.cts +7 -4
  146. package/dist/wallets/types.d.ts +7 -4
  147. package/dist/wallets/wallet-factory.cjs +21 -12
  148. package/dist/wallets/wallet-factory.js +20 -11
  149. package/dist/wallets/wallet.cjs +19 -10
  150. package/dist/wallets/wallet.d.cts +2 -2
  151. package/dist/wallets/wallet.d.ts +2 -2
  152. package/dist/wallets/wallet.js +18 -9
  153. package/package.json +3 -2
  154. package/dist/chunk-BMMZIPXT.js +0 -778
  155. package/dist/chunk-COR3CNRW.cjs +0 -778
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  StellarNonCustodialSigner
3
- } from "../../chunk-6UMJYMAY.js";
4
- import "../../chunk-U3NV7UY7.js";
3
+ } from "../../chunk-4Z3YDHHG.js";
4
+ import "../../chunk-FZQG6OX2.js";
5
5
  import "../../chunk-FOOISYCJ.js";
6
6
  import "../../chunk-WJUPOCKJ.js";
7
7
  import "../../chunk-455NK5LB.js";
8
- import "../../chunk-ABMZ3ZVN.js";
9
- import "../../chunk-TYQ4YIP7.js";
8
+ import "../../chunk-XEPUH4XH.js";
9
+ import "../../chunk-GLUD6EBN.js";
10
10
  import "../../chunk-ASE2FXWP.js";
11
11
  export {
12
12
  StellarNonCustodialSigner
@@ -0,0 +1,14 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkM6IPPGXQcjs = require('../../chunk-M6IPPGXQ.cjs');
4
+ require('../../chunk-IGRPHTXZ.cjs');
5
+ require('../../chunk-KHY5FXO4.cjs');
6
+ require('../../chunk-RUQYXEEG.cjs');
7
+ require('../../chunk-DDNG224J.cjs');
8
+ require('../../chunk-HWTWDQYT.cjs');
9
+ require('../../chunk-OPKFMXPI.cjs');
10
+ require('../../chunk-MNHK6EQK.cjs');
11
+ require('../../chunk-UO2J2ZB2.cjs');
12
+
13
+
14
+ exports.assembleServerSigner = _chunkM6IPPGXQcjs.assembleServerSigner;
@@ -0,0 +1,11 @@
1
+ import { Chain } from '../../chains/chains.cjs';
2
+ import { ServerInternalSignerConfig, Signer } from '../types.cjs';
3
+ import '@crossmint/common-sdk-base';
4
+ import 'viem';
5
+ import 'ox';
6
+ import '@crossmint/client-sdk-window';
7
+ import '@crossmint/client-signers';
8
+
9
+ declare function assembleServerSigner(chain: Chain, config: ServerInternalSignerConfig): Signer<"server">;
10
+
11
+ export { assembleServerSigner };
@@ -0,0 +1,11 @@
1
+ import { Chain } from '../../chains/chains.js';
2
+ import { ServerInternalSignerConfig, Signer } from '../types.js';
3
+ import '@crossmint/common-sdk-base';
4
+ import 'viem';
5
+ import 'ox';
6
+ import '@crossmint/client-sdk-window';
7
+ import '@crossmint/client-signers';
8
+
9
+ declare function assembleServerSigner(chain: Chain, config: ServerInternalSignerConfig): Signer<"server">;
10
+
11
+ export { assembleServerSigner };
@@ -0,0 +1,14 @@
1
+ import {
2
+ assembleServerSigner
3
+ } from "../../chunk-CTOLL4BK.js";
4
+ import "../../chunk-QM3BB4E2.js";
5
+ import "../../chunk-S2L5Z2ZT.js";
6
+ import "../../chunk-H6WV5NRT.js";
7
+ import "../../chunk-GJT2JD3E.js";
8
+ import "../../chunk-K6LSGLG6.js";
9
+ import "../../chunk-2RG6642I.js";
10
+ import "../../chunk-Q52MMQSC.js";
11
+ import "../../chunk-ASE2FXWP.js";
12
+ export {
13
+ assembleServerSigner
14
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkDDNG224Jcjs = require('../../chunk-DDNG224J.cjs');
4
+ require('../../chunk-UO2J2ZB2.cjs');
5
+
6
+
7
+ exports.EVMServerSigner = _chunkDDNG224Jcjs.EVMServerSigner;
@@ -0,0 +1,25 @@
1
+ import { Signer, ServerInternalSignerConfig } from '../types.cjs';
2
+ import 'ox';
3
+ import '@crossmint/client-sdk-window';
4
+ import '@crossmint/client-signers';
5
+ import '@crossmint/common-sdk-base';
6
+ import '../../chains/chains.cjs';
7
+ import 'viem';
8
+
9
+ declare class EVMServerSigner implements Signer<"server"> {
10
+ type: "server";
11
+ private _address;
12
+ private _locator;
13
+ private account;
14
+ constructor(config: ServerInternalSignerConfig);
15
+ address(): string;
16
+ locator(): string;
17
+ signMessage(message: string): Promise<{
18
+ signature: `0x${string}`;
19
+ }>;
20
+ signTransaction(transaction: string): Promise<{
21
+ signature: `0x${string}`;
22
+ }>;
23
+ }
24
+
25
+ export { EVMServerSigner };
@@ -0,0 +1,25 @@
1
+ import { Signer, ServerInternalSignerConfig } from '../types.js';
2
+ import 'ox';
3
+ import '@crossmint/client-sdk-window';
4
+ import '@crossmint/client-signers';
5
+ import '@crossmint/common-sdk-base';
6
+ import '../../chains/chains.js';
7
+ import 'viem';
8
+
9
+ declare class EVMServerSigner implements Signer<"server"> {
10
+ type: "server";
11
+ private _address;
12
+ private _locator;
13
+ private account;
14
+ constructor(config: ServerInternalSignerConfig);
15
+ address(): string;
16
+ locator(): string;
17
+ signMessage(message: string): Promise<{
18
+ signature: `0x${string}`;
19
+ }>;
20
+ signTransaction(transaction: string): Promise<{
21
+ signature: `0x${string}`;
22
+ }>;
23
+ }
24
+
25
+ export { EVMServerSigner };
@@ -0,0 +1,7 @@
1
+ import {
2
+ EVMServerSigner
3
+ } from "../../chunk-GJT2JD3E.js";
4
+ import "../../chunk-ASE2FXWP.js";
5
+ export {
6
+ EVMServerSigner
7
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkKHY5FXO4cjs = require('../../../chunk-KHY5FXO4.cjs');
5
+ require('../../../chunk-RUQYXEEG.cjs');
6
+ require('../../../chunk-MNHK6EQK.cjs');
7
+ require('../../../chunk-UO2J2ZB2.cjs');
8
+
9
+
10
+
11
+ exports.deriveServerSignerAddress = _chunkKHY5FXO4cjs.deriveServerSignerAddress; exports.deriveServerSignerDetails = _chunkKHY5FXO4cjs.deriveServerSignerDetails;
@@ -0,0 +1,15 @@
1
+ import { Chain } from '../../../chains/chains.cjs';
2
+ import { ServerSignerConfig } from '../../types.cjs';
3
+ import '@crossmint/common-sdk-base';
4
+ import 'viem';
5
+ import 'ox';
6
+ import '@crossmint/client-sdk-window';
7
+ import '@crossmint/client-signers';
8
+
9
+ declare function deriveServerSignerAddress(keyBytes: Uint8Array, chain: Chain): string;
10
+ declare function deriveServerSignerDetails(signer: ServerSignerConfig, chain: Chain, projectId: string, environment: string): {
11
+ derivedKeyBytes: Uint8Array;
12
+ derivedAddress: string;
13
+ };
14
+
15
+ export { deriveServerSignerAddress, deriveServerSignerDetails };
@@ -0,0 +1,15 @@
1
+ import { Chain } from '../../../chains/chains.js';
2
+ import { ServerSignerConfig } from '../../types.js';
3
+ import '@crossmint/common-sdk-base';
4
+ import 'viem';
5
+ import 'ox';
6
+ import '@crossmint/client-sdk-window';
7
+ import '@crossmint/client-signers';
8
+
9
+ declare function deriveServerSignerAddress(keyBytes: Uint8Array, chain: Chain): string;
10
+ declare function deriveServerSignerDetails(signer: ServerSignerConfig, chain: Chain, projectId: string, environment: string): {
11
+ derivedKeyBytes: Uint8Array;
12
+ derivedAddress: string;
13
+ };
14
+
15
+ export { deriveServerSignerAddress, deriveServerSignerDetails };
@@ -0,0 +1,11 @@
1
+ import {
2
+ deriveServerSignerAddress,
3
+ deriveServerSignerDetails
4
+ } from "../../../chunk-S2L5Z2ZT.js";
5
+ import "../../../chunk-H6WV5NRT.js";
6
+ import "../../../chunk-Q52MMQSC.js";
7
+ import "../../../chunk-ASE2FXWP.js";
8
+ export {
9
+ deriveServerSignerAddress,
10
+ deriveServerSignerDetails
11
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkRUQYXEEGcjs = require('../../../chunk-RUQYXEEG.cjs');
4
+ require('../../../chunk-UO2J2ZB2.cjs');
5
+
6
+
7
+ exports.getChainType = _chunkRUQYXEEGcjs.getChainType;
@@ -0,0 +1,7 @@
1
+ import { Chain } from '../../../chains/chains.cjs';
2
+ import '@crossmint/common-sdk-base';
3
+ import 'viem';
4
+
5
+ declare function getChainType(chain: Chain): "evm" | "solana" | "stellar";
6
+
7
+ export { getChainType };
@@ -0,0 +1,7 @@
1
+ import { Chain } from '../../../chains/chains.js';
2
+ import '@crossmint/common-sdk-base';
3
+ import 'viem';
4
+
5
+ declare function getChainType(chain: Chain): "evm" | "solana" | "stellar";
6
+
7
+ export { getChainType };
@@ -0,0 +1,7 @@
1
+ import {
2
+ getChainType
3
+ } from "../../../chunk-H6WV5NRT.js";
4
+ import "../../../chunk-ASE2FXWP.js";
5
+ export {
6
+ getChainType
7
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../../chunk-IGRPHTXZ.cjs');
2
+
3
+
4
+
5
+ var _chunkKHY5FXO4cjs = require('../../../chunk-KHY5FXO4.cjs');
6
+
7
+
8
+ var _chunkRUQYXEEGcjs = require('../../../chunk-RUQYXEEG.cjs');
9
+ require('../../../chunk-MNHK6EQK.cjs');
10
+ require('../../../chunk-UO2J2ZB2.cjs');
11
+
12
+
13
+
14
+
15
+ exports.deriveServerSignerAddress = _chunkKHY5FXO4cjs.deriveServerSignerAddress; exports.deriveServerSignerDetails = _chunkKHY5FXO4cjs.deriveServerSignerDetails; exports.getChainType = _chunkRUQYXEEGcjs.getChainType;
@@ -0,0 +1,9 @@
1
+ export { deriveServerSignerAddress, deriveServerSignerDetails } from './derive-server-signer.cjs';
2
+ export { getChainType } from './get-chain-type.cjs';
3
+ import '../../../chains/chains.cjs';
4
+ import '@crossmint/common-sdk-base';
5
+ import 'viem';
6
+ import '../../types.cjs';
7
+ import 'ox';
8
+ import '@crossmint/client-sdk-window';
9
+ import '@crossmint/client-signers';
@@ -0,0 +1,9 @@
1
+ export { deriveServerSignerAddress, deriveServerSignerDetails } from './derive-server-signer.js';
2
+ export { getChainType } from './get-chain-type.js';
3
+ import '../../../chains/chains.js';
4
+ import '@crossmint/common-sdk-base';
5
+ import 'viem';
6
+ import '../../types.js';
7
+ import 'ox';
8
+ import '@crossmint/client-sdk-window';
9
+ import '@crossmint/client-signers';
@@ -0,0 +1,15 @@
1
+ import "../../../chunk-QM3BB4E2.js";
2
+ import {
3
+ deriveServerSignerAddress,
4
+ deriveServerSignerDetails
5
+ } from "../../../chunk-S2L5Z2ZT.js";
6
+ import {
7
+ getChainType
8
+ } from "../../../chunk-H6WV5NRT.js";
9
+ import "../../../chunk-Q52MMQSC.js";
10
+ import "../../../chunk-ASE2FXWP.js";
11
+ export {
12
+ deriveServerSignerAddress,
13
+ deriveServerSignerDetails,
14
+ getChainType
15
+ };
@@ -0,0 +1,29 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-5IC7UWND.cjs');
2
+
3
+
4
+ var _chunkM6IPPGXQcjs = require('../../chunk-M6IPPGXQ.cjs');
5
+ require('../../chunk-IGRPHTXZ.cjs');
6
+
7
+
8
+
9
+ var _chunkKHY5FXO4cjs = require('../../chunk-KHY5FXO4.cjs');
10
+ require('../../chunk-RUQYXEEG.cjs');
11
+
12
+
13
+ var _chunkDDNG224Jcjs = require('../../chunk-DDNG224J.cjs');
14
+
15
+
16
+ var _chunkHWTWDQYTcjs = require('../../chunk-HWTWDQYT.cjs');
17
+
18
+
19
+ var _chunkOPKFMXPIcjs = require('../../chunk-OPKFMXPI.cjs');
20
+ require('../../chunk-MNHK6EQK.cjs');
21
+ require('../../chunk-UO2J2ZB2.cjs');
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+ exports.EVMServerSigner = _chunkDDNG224Jcjs.EVMServerSigner; exports.SolanaServerSigner = _chunkHWTWDQYTcjs.SolanaServerSigner; exports.StellarServerSigner = _chunkOPKFMXPIcjs.StellarServerSigner; exports.assembleServerSigner = _chunkM6IPPGXQcjs.assembleServerSigner; exports.deriveServerSignerAddress = _chunkKHY5FXO4cjs.deriveServerSignerAddress; exports.deriveServerSignerDetails = _chunkKHY5FXO4cjs.deriveServerSignerDetails;
@@ -0,0 +1,12 @@
1
+ export { assembleServerSigner } from './assemble-server-signer.cjs';
2
+ export { EVMServerSigner } from './evm-server-signer.cjs';
3
+ export { SolanaServerSigner } from './solana-server-signer.cjs';
4
+ export { StellarServerSigner } from './stellar-server-signer.cjs';
5
+ export { deriveServerSignerAddress, deriveServerSignerDetails } from './helpers/derive-server-signer.cjs';
6
+ import '../../chains/chains.cjs';
7
+ import '@crossmint/common-sdk-base';
8
+ import 'viem';
9
+ import '../types.cjs';
10
+ import 'ox';
11
+ import '@crossmint/client-sdk-window';
12
+ import '@crossmint/client-signers';
@@ -0,0 +1,12 @@
1
+ export { assembleServerSigner } from './assemble-server-signer.js';
2
+ export { EVMServerSigner } from './evm-server-signer.js';
3
+ export { SolanaServerSigner } from './solana-server-signer.js';
4
+ export { StellarServerSigner } from './stellar-server-signer.js';
5
+ export { deriveServerSignerAddress, deriveServerSignerDetails } from './helpers/derive-server-signer.js';
6
+ import '../../chains/chains.js';
7
+ import '@crossmint/common-sdk-base';
8
+ import 'viem';
9
+ import '../types.js';
10
+ import 'ox';
11
+ import '@crossmint/client-sdk-window';
12
+ import '@crossmint/client-signers';
@@ -0,0 +1,29 @@
1
+ import "../../chunk-L52GDMSH.js";
2
+ import {
3
+ assembleServerSigner
4
+ } from "../../chunk-CTOLL4BK.js";
5
+ import "../../chunk-QM3BB4E2.js";
6
+ import {
7
+ deriveServerSignerAddress,
8
+ deriveServerSignerDetails
9
+ } from "../../chunk-S2L5Z2ZT.js";
10
+ import "../../chunk-H6WV5NRT.js";
11
+ import {
12
+ EVMServerSigner
13
+ } from "../../chunk-GJT2JD3E.js";
14
+ import {
15
+ SolanaServerSigner
16
+ } from "../../chunk-K6LSGLG6.js";
17
+ import {
18
+ StellarServerSigner
19
+ } from "../../chunk-2RG6642I.js";
20
+ import "../../chunk-Q52MMQSC.js";
21
+ import "../../chunk-ASE2FXWP.js";
22
+ export {
23
+ EVMServerSigner,
24
+ SolanaServerSigner,
25
+ StellarServerSigner,
26
+ assembleServerSigner,
27
+ deriveServerSignerAddress,
28
+ deriveServerSignerDetails
29
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkHWTWDQYTcjs = require('../../chunk-HWTWDQYT.cjs');
4
+ require('../../chunk-UO2J2ZB2.cjs');
5
+
6
+
7
+ exports.SolanaServerSigner = _chunkHWTWDQYTcjs.SolanaServerSigner;
@@ -0,0 +1,25 @@
1
+ import { Signer, ServerInternalSignerConfig } from '../types.cjs';
2
+ import 'ox';
3
+ import '@crossmint/client-sdk-window';
4
+ import '@crossmint/client-signers';
5
+ import '@crossmint/common-sdk-base';
6
+ import '../../chains/chains.cjs';
7
+ import 'viem';
8
+
9
+ declare class SolanaServerSigner implements Signer<"server"> {
10
+ type: "server";
11
+ private _address;
12
+ private _locator;
13
+ private keypair;
14
+ constructor(config: ServerInternalSignerConfig);
15
+ address(): string;
16
+ locator(): string;
17
+ signMessage(message: string): Promise<{
18
+ signature: string;
19
+ }>;
20
+ signTransaction(transaction: string): Promise<{
21
+ signature: string;
22
+ }>;
23
+ }
24
+
25
+ export { SolanaServerSigner };
@@ -0,0 +1,25 @@
1
+ import { Signer, ServerInternalSignerConfig } from '../types.js';
2
+ import 'ox';
3
+ import '@crossmint/client-sdk-window';
4
+ import '@crossmint/client-signers';
5
+ import '@crossmint/common-sdk-base';
6
+ import '../../chains/chains.js';
7
+ import 'viem';
8
+
9
+ declare class SolanaServerSigner implements Signer<"server"> {
10
+ type: "server";
11
+ private _address;
12
+ private _locator;
13
+ private keypair;
14
+ constructor(config: ServerInternalSignerConfig);
15
+ address(): string;
16
+ locator(): string;
17
+ signMessage(message: string): Promise<{
18
+ signature: string;
19
+ }>;
20
+ signTransaction(transaction: string): Promise<{
21
+ signature: string;
22
+ }>;
23
+ }
24
+
25
+ export { SolanaServerSigner };
@@ -0,0 +1,7 @@
1
+ import {
2
+ SolanaServerSigner
3
+ } from "../../chunk-K6LSGLG6.js";
4
+ import "../../chunk-ASE2FXWP.js";
5
+ export {
6
+ SolanaServerSigner
7
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkOPKFMXPIcjs = require('../../chunk-OPKFMXPI.cjs');
4
+ require('../../chunk-UO2J2ZB2.cjs');
5
+
6
+
7
+ exports.StellarServerSigner = _chunkOPKFMXPIcjs.StellarServerSigner;
@@ -0,0 +1,25 @@
1
+ import { Signer, ServerInternalSignerConfig } from '../types.cjs';
2
+ import 'ox';
3
+ import '@crossmint/client-sdk-window';
4
+ import '@crossmint/client-signers';
5
+ import '@crossmint/common-sdk-base';
6
+ import '../../chains/chains.cjs';
7
+ import 'viem';
8
+
9
+ declare class StellarServerSigner implements Signer<"server"> {
10
+ type: "server";
11
+ private _address;
12
+ private _locator;
13
+ private keypair;
14
+ constructor(config: ServerInternalSignerConfig);
15
+ address(): string;
16
+ locator(): string;
17
+ signMessage(message: string): Promise<{
18
+ signature: string;
19
+ }>;
20
+ signTransaction(transaction: string): Promise<{
21
+ signature: string;
22
+ }>;
23
+ }
24
+
25
+ export { StellarServerSigner };
@@ -0,0 +1,25 @@
1
+ import { Signer, ServerInternalSignerConfig } from '../types.js';
2
+ import 'ox';
3
+ import '@crossmint/client-sdk-window';
4
+ import '@crossmint/client-signers';
5
+ import '@crossmint/common-sdk-base';
6
+ import '../../chains/chains.js';
7
+ import 'viem';
8
+
9
+ declare class StellarServerSigner implements Signer<"server"> {
10
+ type: "server";
11
+ private _address;
12
+ private _locator;
13
+ private keypair;
14
+ constructor(config: ServerInternalSignerConfig);
15
+ address(): string;
16
+ locator(): string;
17
+ signMessage(message: string): Promise<{
18
+ signature: string;
19
+ }>;
20
+ signTransaction(transaction: string): Promise<{
21
+ signature: string;
22
+ }>;
23
+ }
24
+
25
+ export { StellarServerSigner };
@@ -0,0 +1,7 @@
1
+ import {
2
+ StellarServerSigner
3
+ } from "../../chunk-2RG6642I.js";
4
+ import "../../chunk-ASE2FXWP.js";
5
+ export {
6
+ StellarServerSigner
7
+ };
@@ -24,7 +24,11 @@ type ExternalWalletSignerConfigForChain<C extends Chain> = C extends SolanaChain
24
24
  type ApiKeySignerConfig = {
25
25
  type: "api-key";
26
26
  };
27
- type BaseSignerConfig<C extends Chain> = ExternalWalletSignerConfigForChain<C> | ApiKeySignerConfig;
27
+ type ServerSignerConfig = {
28
+ type: "server";
29
+ secret: string;
30
+ };
31
+ type BaseSignerConfig<C extends Chain> = ExternalWalletSignerConfigForChain<C> | ApiKeySignerConfig | ServerSignerConfig;
28
32
  type PasskeySignerConfig = {
29
33
  type: "passkey";
30
34
  name?: string;
@@ -56,7 +60,14 @@ type ApiKeyInternalSignerConfig = ApiKeySignerConfig & {
56
60
  type ExternalWalletInternalSignerConfig<C extends Chain> = ExternalWalletSignerConfigForChain<C> & {
57
61
  locator: string;
58
62
  };
59
- type InternalSignerConfig<C extends Chain> = EmailInternalSignerConfig | PhoneInternalSignerConfig | PasskeyInternalSignerConfig | ApiKeyInternalSignerConfig | ExternalWalletInternalSignerConfig<C>;
63
+ type ServerInternalSignerConfig = {
64
+ type: "server";
65
+ /** The derived chain-specific private key bytes */
66
+ derivedKeyBytes: Uint8Array;
67
+ locator: string;
68
+ address: string;
69
+ };
70
+ type InternalSignerConfig<C extends Chain> = EmailInternalSignerConfig | PhoneInternalSignerConfig | PasskeyInternalSignerConfig | ApiKeyInternalSignerConfig | ExternalWalletInternalSignerConfig<C> | ServerInternalSignerConfig;
60
71
  type BaseSignResult = {
61
72
  signature: string;
62
73
  };
@@ -73,6 +84,7 @@ type SignResultMap = {
73
84
  phone: BaseSignResult;
74
85
  "api-key": BaseSignResult;
75
86
  "external-wallet": BaseSignResult;
87
+ server: BaseSignResult;
76
88
  passkey: PasskeySignResult;
77
89
  };
78
90
  interface Signer<T extends keyof SignResultMap = keyof SignResultMap> {
@@ -88,4 +100,4 @@ interface ExportableSigner extends Signer {
88
100
  declare function isExportableSigner(signer: Signer): signer is ExportableSigner;
89
101
  type ExportSignerTEEConnection = HandshakeParent<typeof exportSignerOutboundEvents, typeof exportSignerInboundEvents>;
90
102
 
91
- export { type ApiKeyInternalSignerConfig, type ApiKeySignerConfig, AuthRejectedError, type BaseSignResult, type BaseSignerConfig, type EmailInternalSignerConfig, type EmailSignerConfig, type ExportSignerTEEConnection, type ExportableSigner, type ExternalWalletInternalSignerConfig, type ExternalWalletSignerConfigForChain, type InternalSignerConfig, type NonCustodialSignerType, type PasskeyInternalSignerConfig, type PasskeySignResult, type PasskeySignerConfig, type PhoneInternalSignerConfig, type PhoneSignerConfig, type Signer, type SignerConfigForChain, isExportableSigner };
103
+ export { type ApiKeyInternalSignerConfig, type ApiKeySignerConfig, AuthRejectedError, type BaseSignResult, type BaseSignerConfig, type EmailInternalSignerConfig, type EmailSignerConfig, type ExportSignerTEEConnection, type ExportableSigner, type ExternalWalletInternalSignerConfig, type ExternalWalletSignerConfigForChain, type InternalSignerConfig, type NonCustodialSignerType, type PasskeyInternalSignerConfig, type PasskeySignResult, type PasskeySignerConfig, type PhoneInternalSignerConfig, type PhoneSignerConfig, type ServerInternalSignerConfig, type ServerSignerConfig, type Signer, type SignerConfigForChain, isExportableSigner };
@@ -24,7 +24,11 @@ type ExternalWalletSignerConfigForChain<C extends Chain> = C extends SolanaChain
24
24
  type ApiKeySignerConfig = {
25
25
  type: "api-key";
26
26
  };
27
- type BaseSignerConfig<C extends Chain> = ExternalWalletSignerConfigForChain<C> | ApiKeySignerConfig;
27
+ type ServerSignerConfig = {
28
+ type: "server";
29
+ secret: string;
30
+ };
31
+ type BaseSignerConfig<C extends Chain> = ExternalWalletSignerConfigForChain<C> | ApiKeySignerConfig | ServerSignerConfig;
28
32
  type PasskeySignerConfig = {
29
33
  type: "passkey";
30
34
  name?: string;
@@ -56,7 +60,14 @@ type ApiKeyInternalSignerConfig = ApiKeySignerConfig & {
56
60
  type ExternalWalletInternalSignerConfig<C extends Chain> = ExternalWalletSignerConfigForChain<C> & {
57
61
  locator: string;
58
62
  };
59
- type InternalSignerConfig<C extends Chain> = EmailInternalSignerConfig | PhoneInternalSignerConfig | PasskeyInternalSignerConfig | ApiKeyInternalSignerConfig | ExternalWalletInternalSignerConfig<C>;
63
+ type ServerInternalSignerConfig = {
64
+ type: "server";
65
+ /** The derived chain-specific private key bytes */
66
+ derivedKeyBytes: Uint8Array;
67
+ locator: string;
68
+ address: string;
69
+ };
70
+ type InternalSignerConfig<C extends Chain> = EmailInternalSignerConfig | PhoneInternalSignerConfig | PasskeyInternalSignerConfig | ApiKeyInternalSignerConfig | ExternalWalletInternalSignerConfig<C> | ServerInternalSignerConfig;
60
71
  type BaseSignResult = {
61
72
  signature: string;
62
73
  };
@@ -73,6 +84,7 @@ type SignResultMap = {
73
84
  phone: BaseSignResult;
74
85
  "api-key": BaseSignResult;
75
86
  "external-wallet": BaseSignResult;
87
+ server: BaseSignResult;
76
88
  passkey: PasskeySignResult;
77
89
  };
78
90
  interface Signer<T extends keyof SignResultMap = keyof SignResultMap> {
@@ -88,4 +100,4 @@ interface ExportableSigner extends Signer {
88
100
  declare function isExportableSigner(signer: Signer): signer is ExportableSigner;
89
101
  type ExportSignerTEEConnection = HandshakeParent<typeof exportSignerOutboundEvents, typeof exportSignerInboundEvents>;
90
102
 
91
- export { type ApiKeyInternalSignerConfig, type ApiKeySignerConfig, AuthRejectedError, type BaseSignResult, type BaseSignerConfig, type EmailInternalSignerConfig, type EmailSignerConfig, type ExportSignerTEEConnection, type ExportableSigner, type ExternalWalletInternalSignerConfig, type ExternalWalletSignerConfigForChain, type InternalSignerConfig, type NonCustodialSignerType, type PasskeyInternalSignerConfig, type PasskeySignResult, type PasskeySignerConfig, type PhoneInternalSignerConfig, type PhoneSignerConfig, type Signer, type SignerConfigForChain, isExportableSigner };
103
+ export { type ApiKeyInternalSignerConfig, type ApiKeySignerConfig, AuthRejectedError, type BaseSignResult, type BaseSignerConfig, type EmailInternalSignerConfig, type EmailSignerConfig, type ExportSignerTEEConnection, type ExportableSigner, type ExternalWalletInternalSignerConfig, type ExternalWalletSignerConfigForChain, type InternalSignerConfig, type NonCustodialSignerType, type PasskeyInternalSignerConfig, type PasskeySignResult, type PasskeySignerConfig, type PhoneInternalSignerConfig, type PhoneSignerConfig, type ServerInternalSignerConfig, type ServerSignerConfig, type Signer, type SignerConfigForChain, isExportableSigner };
@@ -3,11 +3,11 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkR4AW5ADGcjs = require('../chunk-R4AW5ADG.cjs');
6
+ var _chunk3WZUNLYIcjs = require('../chunk-3WZUNLYI.cjs');
7
7
  require('../chunk-UO2J2ZB2.cjs');
8
8
 
9
9
 
10
10
 
11
11
 
12
12
 
13
- exports.SDK_NAME = _chunkR4AW5ADGcjs.SDK_NAME; exports.SDK_VERSION = _chunkR4AW5ADGcjs.SDK_VERSION; exports.STATUS_POLLING_INTERVAL_MS = _chunkR4AW5ADGcjs.STATUS_POLLING_INTERVAL_MS; exports.WALLETS_SERVICE = _chunkR4AW5ADGcjs.WALLETS_SERVICE;
13
+ exports.SDK_NAME = _chunk3WZUNLYIcjs.SDK_NAME; exports.SDK_VERSION = _chunk3WZUNLYIcjs.SDK_VERSION; exports.STATUS_POLLING_INTERVAL_MS = _chunk3WZUNLYIcjs.STATUS_POLLING_INTERVAL_MS; exports.WALLETS_SERVICE = _chunk3WZUNLYIcjs.WALLETS_SERVICE;
@@ -3,7 +3,7 @@ import {
3
3
  SDK_VERSION,
4
4
  STATUS_POLLING_INTERVAL_MS,
5
5
  WALLETS_SERVICE
6
- } from "../chunk-TYQ4YIP7.js";
6
+ } from "../chunk-GLUD6EBN.js";
7
7
  import "../chunk-ASE2FXWP.js";
8
8
  export {
9
9
  SDK_NAME,
@@ -0,0 +1,9 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkMNHK6EQKcjs = require('../chunk-MNHK6EQK.cjs');
5
+ require('../chunk-UO2J2ZB2.cjs');
6
+
7
+
8
+
9
+ exports.deriveAlias = _chunkMNHK6EQKcjs.deriveAlias; exports.deriveKeyBytes = _chunkMNHK6EQKcjs.deriveKeyBytes;