@crossmint/wallets-sdk 1.5.0 → 1.5.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/api/__tests__/constants.d.cts +1 -1
- package/dist/api/__tests__/constants.d.ts +1 -1
- package/dist/api/__tests__/test-utils.cjs +1 -1
- package/dist/api/__tests__/test-utils.d.cts +1 -1
- package/dist/api/__tests__/test-utils.d.ts +1 -1
- package/dist/api/__tests__/test-utils.js +1 -1
- package/dist/api/client.cjs +1 -1
- package/dist/api/client.d.cts +1 -1
- package/dist/api/client.d.ts +1 -1
- package/dist/api/client.js +1 -1
- package/dist/api/index.cjs +1 -1
- package/dist/api/index.d.cts +1 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +1 -1
- package/dist/api/types.d.cts +1 -1
- package/dist/api/types.d.ts +1 -1
- package/dist/chains/chains.cjs +1 -1
- package/dist/chains/chains.js +1 -1
- package/dist/{chunk-OIEGMYEU.cjs → chunk-2MSS6HZD.cjs} +1 -1
- package/dist/{chunk-6TNAINPL.js → chunk-42JFJWEX.js} +1 -1
- package/dist/chunk-4HWSBR3N.cjs +1 -0
- package/dist/{chunk-N3P3SQ33.cjs → chunk-4TGSG3UZ.cjs} +1 -1
- package/dist/chunk-5HBCBS5W.cjs +1 -0
- package/dist/{chunk-TENHJ7EH.cjs → chunk-6BERCSZQ.cjs} +1 -1
- package/dist/{chunk-AJVO7VQY.cjs → chunk-A5GN63FT.cjs} +1 -1
- package/dist/{chunk-AGN3B4GS.cjs → chunk-CAQZTHJB.cjs} +1 -1
- package/dist/chunk-DTGCFFNW.js +0 -0
- package/dist/{chunk-3LXCIVWG.js → chunk-ENZ7MQIX.js} +1 -1
- package/dist/{chunk-SGGIB3UV.js → chunk-EOBMHTZD.js} +1 -1
- package/dist/{chunk-BUC3VNP4.js → chunk-FF2GQYF4.js} +1 -1
- package/dist/{chunk-7M7XEKZE.cjs → chunk-GDEOTJEZ.cjs} +1 -1
- package/dist/{chunk-N7GVWKC7.cjs → chunk-HSLZH2ZC.cjs} +1 -1
- package/dist/{chunk-PIJQUMGJ.cjs → chunk-KHFRALRB.cjs} +1 -1
- package/dist/chunk-LDOMAUCN.js +1 -0
- package/dist/{chunk-5DINTXSM.js → chunk-M5BPFF6N.js} +1 -1
- package/dist/{chunk-F5NTM2RX.js → chunk-MDINF2FR.js} +1 -1
- package/dist/{chunk-6G4BWXEJ.js → chunk-MYJFCP65.js} +1 -1
- package/dist/chunk-OWDSSX2P.js +1 -0
- package/dist/{chunk-HVBMGZ2A.js → chunk-PG6S5LNU.js} +1 -1
- package/dist/{chunk-FLYEGDDE.js → chunk-PMUGCRPI.js} +1 -1
- package/dist/{chunk-I3RWATD5.cjs → chunk-Q4EIDR3A.cjs} +1 -1
- package/dist/{chunk-7DFXMYKM.js → chunk-QLEJSDVV.js} +1 -1
- package/dist/{chunk-HF4IRNP6.cjs → chunk-QVNXEPOZ.cjs} +2 -2
- package/dist/{chunk-EZOZZFCU.js → chunk-R52TCQ54.js} +1 -1
- package/dist/{chunk-63CDDON3.js → chunk-RJ24JXFS.js} +1 -1
- package/dist/{chunk-CHX7PG2J.js → chunk-SYQ5Q3WU.js} +1 -1
- package/dist/chunk-TLLXWU3N.js +1 -0
- package/dist/chunk-VDNAVMQQ.cjs +1 -0
- package/dist/{chunk-XDHGCS4W.cjs → chunk-VUC4UU5M.cjs} +1 -1
- package/dist/{chunk-TQCD2GOR.cjs → chunk-VVX6XW5L.cjs} +1 -1
- package/dist/{chunk-OY2LMC4Y.cjs → chunk-W4RKYWY3.cjs} +1 -1
- package/dist/{chunk-X6TSCK75.cjs → chunk-W5SV3EQJ.cjs} +1 -1
- package/dist/{chunk-RMXZH6CG.js → chunk-X5JWMXUK.js} +1 -1
- package/dist/{chunk-OWGOD5IM.js → chunk-YM3T5Z2Z.js} +1 -1
- package/dist/chunk-YN4JN7PO.js +1 -0
- package/dist/chunk-YRZHJB2T.cjs +1 -0
- package/dist/{chunk-ZAAS2UOD.cjs → chunk-YVDA37CD.cjs} +1 -1
- package/dist/{chunk-YWTJTAIU.cjs → chunk-ZF4VCMLC.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/logger/index.cjs +1 -1
- package/dist/logger/index.js +1 -1
- package/dist/logger/init.cjs +1 -1
- package/dist/logger/init.js +1 -1
- package/dist/sdk.cjs +1 -1
- package/dist/sdk.d.cts +1 -1
- package/dist/sdk.d.ts +1 -1
- package/dist/sdk.js +1 -1
- package/dist/signers/device.d.cts +1 -1
- package/dist/signers/device.d.ts +1 -1
- package/dist/signers/evm-api-key.d.cts +1 -1
- package/dist/signers/evm-api-key.d.ts +1 -1
- package/dist/signers/evm-external-wallet.d.cts +1 -1
- package/dist/signers/evm-external-wallet.d.ts +1 -1
- package/dist/signers/external-wallet-signer.d.cts +1 -1
- package/dist/signers/external-wallet-signer.d.ts +1 -1
- package/dist/signers/index.cjs +1 -1
- package/dist/signers/index.d.cts +1 -1
- package/dist/signers/index.d.ts +1 -1
- package/dist/signers/index.js +1 -1
- package/dist/signers/non-custodial/index.cjs +1 -1
- package/dist/signers/non-custodial/index.d.cts +1 -1
- package/dist/signers/non-custodial/index.d.ts +1 -1
- package/dist/signers/non-custodial/index.js +1 -1
- package/dist/signers/non-custodial/ncs-evm-signer.cjs +1 -1
- package/dist/signers/non-custodial/ncs-evm-signer.d.cts +1 -1
- package/dist/signers/non-custodial/ncs-evm-signer.d.ts +1 -1
- package/dist/signers/non-custodial/ncs-evm-signer.js +1 -1
- package/dist/signers/non-custodial/ncs-signer.cjs +1 -1
- package/dist/signers/non-custodial/ncs-signer.d.cts +1 -1
- package/dist/signers/non-custodial/ncs-signer.d.ts +1 -1
- package/dist/signers/non-custodial/ncs-signer.js +1 -1
- package/dist/signers/non-custodial/ncs-solana-signer.cjs +1 -1
- package/dist/signers/non-custodial/ncs-solana-signer.d.cts +1 -1
- package/dist/signers/non-custodial/ncs-solana-signer.d.ts +1 -1
- package/dist/signers/non-custodial/ncs-solana-signer.js +1 -1
- package/dist/signers/non-custodial/ncs-stellar-signer.cjs +1 -1
- package/dist/signers/non-custodial/ncs-stellar-signer.d.cts +1 -1
- package/dist/signers/non-custodial/ncs-stellar-signer.d.ts +1 -1
- package/dist/signers/non-custodial/ncs-stellar-signer.js +1 -1
- package/dist/signers/passkey.d.cts +1 -1
- package/dist/signers/passkey.d.ts +1 -1
- package/dist/signers/server/assemble-server-signer.cjs +1 -1
- package/dist/signers/server/assemble-server-signer.d.cts +1 -1
- package/dist/signers/server/assemble-server-signer.d.ts +1 -1
- package/dist/signers/server/assemble-server-signer.js +1 -1
- package/dist/signers/server/evm-server-signer.d.cts +1 -1
- package/dist/signers/server/evm-server-signer.d.ts +1 -1
- package/dist/signers/server/helpers/derive-server-signer.cjs +1 -1
- package/dist/signers/server/helpers/derive-server-signer.d.cts +2 -6
- package/dist/signers/server/helpers/derive-server-signer.d.ts +2 -6
- package/dist/signers/server/helpers/derive-server-signer.js +1 -1
- package/dist/signers/server/helpers/index.cjs +1 -1
- package/dist/signers/server/helpers/index.d.cts +4 -4
- package/dist/signers/server/helpers/index.d.ts +4 -4
- package/dist/signers/server/helpers/index.js +1 -1
- package/dist/signers/server/index.cjs +1 -1
- package/dist/signers/server/index.d.cts +2 -2
- package/dist/signers/server/index.d.ts +2 -2
- package/dist/signers/server/index.js +1 -1
- package/dist/signers/server/solana-server-signer.d.cts +1 -1
- package/dist/signers/server/solana-server-signer.d.ts +1 -1
- package/dist/signers/server/stellar-server-signer.d.cts +1 -1
- package/dist/signers/server/stellar-server-signer.d.ts +1 -1
- package/dist/signers/solana-api-key.d.cts +1 -1
- package/dist/signers/solana-api-key.d.ts +1 -1
- package/dist/signers/solana-external-wallet.d.cts +1 -1
- package/dist/signers/solana-external-wallet.d.ts +1 -1
- package/dist/signers/stellar-external-wallet.d.cts +1 -1
- package/dist/signers/stellar-external-wallet.d.ts +1 -1
- package/dist/signers/types.cjs +1 -1
- package/dist/signers/types.d.cts +1 -1
- package/dist/signers/types.d.ts +1 -1
- package/dist/signers/types.js +1 -1
- package/dist/{types-Cc0Mr7mS.d.cts → types-CbJcRrxL.d.cts} +13 -1
- package/dist/{types-Br5La8FI.d.ts → types-CpyIKxWr.d.ts} +13 -1
- package/dist/utils/constants.cjs +1 -1
- package/dist/utils/constants.js +1 -1
- package/dist/utils/device-signers/IframeDeviceSignerKeyStorage.cjs +1 -1
- package/dist/utils/device-signers/IframeDeviceSignerKeyStorage.js +1 -1
- package/dist/utils/device-signers/createDeviceSigner.d.cts +1 -1
- package/dist/utils/device-signers/createDeviceSigner.d.ts +1 -1
- package/dist/utils/device-signers/index.cjs +1 -1
- package/dist/utils/device-signers/index.d.cts +1 -1
- package/dist/utils/device-signers/index.d.ts +1 -1
- package/dist/utils/device-signers/index.js +1 -1
- package/dist/utils/server-signers/createServerSigner.cjs +1 -0
- package/dist/utils/server-signers/createServerSigner.d.cts +40 -0
- package/dist/utils/server-signers/createServerSigner.d.ts +40 -0
- package/dist/utils/server-signers/createServerSigner.js +1 -0
- package/dist/utils/server-signers/index.cjs +1 -0
- package/dist/utils/server-signers/index.d.cts +4 -0
- package/dist/utils/server-signers/index.d.ts +4 -0
- package/dist/utils/server-signers/index.js +1 -0
- package/dist/utils/signer-locator.d.cts +1 -1
- package/dist/utils/signer-locator.d.ts +1 -1
- package/dist/utils/signer-mapping.d.cts +1 -1
- package/dist/utils/signer-mapping.d.ts +1 -1
- package/dist/wallets/__tests__/test-helpers.cjs +1 -1
- package/dist/wallets/__tests__/test-helpers.d.cts +1 -1
- package/dist/wallets/__tests__/test-helpers.d.ts +1 -1
- package/dist/wallets/__tests__/test-helpers.js +1 -1
- package/dist/wallets/evm.cjs +1 -1
- package/dist/wallets/evm.d.cts +1 -1
- package/dist/wallets/evm.d.ts +1 -1
- package/dist/wallets/evm.js +1 -1
- package/dist/wallets/solana.cjs +1 -1
- package/dist/wallets/solana.d.cts +1 -1
- package/dist/wallets/solana.d.ts +1 -1
- package/dist/wallets/solana.js +1 -1
- package/dist/wallets/stellar.cjs +1 -1
- package/dist/wallets/stellar.d.cts +1 -1
- package/dist/wallets/stellar.d.ts +1 -1
- package/dist/wallets/stellar.js +1 -1
- package/dist/wallets/types.d.cts +1 -1
- package/dist/wallets/types.d.ts +1 -1
- package/dist/wallets/wallet-factory.cjs +1 -1
- package/dist/wallets/wallet-factory.d.cts +1 -1
- package/dist/wallets/wallet-factory.d.ts +1 -1
- package/dist/wallets/wallet-factory.js +1 -1
- package/dist/wallets/wallet.cjs +1 -1
- package/dist/wallets/wallet.d.cts +1 -1
- package/dist/wallets/wallet.d.ts +1 -1
- package/dist/wallets/wallet.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-2323NR6Y.js +0 -1
- package/dist/chunk-EHMQ5WD7.cjs +0 -1
- package/dist/chunk-PYIURK5B.js +0 -1
- package/dist/chunk-QJ54STYO.js +0 -1
- package/dist/chunk-SDVBLX5J.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGZP2JQ6Pcjs = require('../../chunk-GZP2JQ6P.cjs');require('../../chunk-IGRPHTXZ.cjs');require('../../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGZP2JQ6Pcjs = require('../../chunk-GZP2JQ6P.cjs');require('../../chunk-IGRPHTXZ.cjs');require('../../chunk-Q4EIDR3A.cjs');require('../../chunk-ENU3EKBG.cjs');require('../../chunk-3SVXPFSP.cjs');require('../../chunk-4DJWSV7I.cjs');require('../../chunk-YF5G4U6L.cjs');require('../../chunk-5FH7WFWL.cjs');require('../../chunk-YGL4ITFK.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.assembleServerSigner = _chunkGZP2JQ6Pcjs.a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Chain } from '../../chains/chains.cjs';
|
|
2
|
-
import {
|
|
2
|
+
import { ao as ServerInternalSignerConfig, u as SignerAdapter } from '../../types-CbJcRrxL.cjs';
|
|
3
3
|
import '@crossmint/common-sdk-base';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import '../../api/gen/types.gen.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Chain } from '../../chains/chains.js';
|
|
2
|
-
import {
|
|
2
|
+
import { ao as ServerInternalSignerConfig, u as SignerAdapter } from '../../types-CpyIKxWr.js';
|
|
3
3
|
import '@crossmint/common-sdk-base';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import '../../api/gen/types.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-6X5JEJD7.js";import"../../chunk-QM3BB4E2.js";import"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-6X5JEJD7.js";import"../../chunk-QM3BB4E2.js";import"../../chunk-MDINF2FR.js";import"../../chunk-OQZTL6ZG.js";import"../../chunk-N355UETO.js";import"../../chunk-3VRN3GKQ.js";import"../../chunk-BITOMWYZ.js";import"../../chunk-EM3D5Q3A.js";import"../../chunk-XNZLCUTY.js";import"../../chunk-J3R36SGJ.js";export{a as assembleServerSigner};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkQ4EIDR3Acjs = require('../../../chunk-Q4EIDR3A.cjs');require('../../../chunk-ENU3EKBG.cjs');require('../../../chunk-5FH7WFWL.cjs');require('../../../chunk-YGL4ITFK.cjs');require('../../../chunk-2GKPWQBQ.cjs');exports.deriveServerSignerAddress = _chunkQ4EIDR3Acjs.a; exports.deriveServerSignerCandidates = _chunkQ4EIDR3Acjs.c; exports.deriveServerSignerDetails = _chunkQ4EIDR3Acjs.b;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Chain } from '../../../chains/chains.cjs';
|
|
2
|
-
import { r as ServerSignerConfig } from '../../../types-
|
|
2
|
+
import { r as ServerSignerConfig, M as DerivedServerSigner } from '../../../types-CbJcRrxL.cjs';
|
|
3
3
|
import '@crossmint/common-sdk-base';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import '../../../api/gen/types.gen.cjs';
|
|
@@ -10,10 +10,6 @@ import '@solana/web3.js';
|
|
|
10
10
|
import 'abitype';
|
|
11
11
|
import '../../../utils/device-signers/DeviceSignerKeyStorage.cjs';
|
|
12
12
|
|
|
13
|
-
type DerivedServerSigner = {
|
|
14
|
-
derivedKeyBytes: Uint8Array;
|
|
15
|
-
derivedAddress: string;
|
|
16
|
-
};
|
|
17
13
|
declare function deriveServerSignerAddress(keyBytes: Uint8Array, chain: Chain): string;
|
|
18
14
|
declare function deriveServerSignerDetails(signer: ServerSignerConfig, chain: Chain, projectId: string, environment: string): DerivedServerSigner;
|
|
19
15
|
declare function deriveServerSignerCandidates(signer: ServerSignerConfig, chain: Chain, projectId: string, environment: string): {
|
|
@@ -21,4 +17,4 @@ declare function deriveServerSignerCandidates(signer: ServerSignerConfig, chain:
|
|
|
21
17
|
legacy: DerivedServerSigner | null;
|
|
22
18
|
};
|
|
23
19
|
|
|
24
|
-
export {
|
|
20
|
+
export { deriveServerSignerAddress, deriveServerSignerCandidates, deriveServerSignerDetails };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Chain } from '../../../chains/chains.js';
|
|
2
|
-
import { r as ServerSignerConfig } from '../../../types-
|
|
2
|
+
import { r as ServerSignerConfig, M as DerivedServerSigner } from '../../../types-CpyIKxWr.js';
|
|
3
3
|
import '@crossmint/common-sdk-base';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import '../../../api/gen/types.gen.js';
|
|
@@ -10,10 +10,6 @@ import '@solana/web3.js';
|
|
|
10
10
|
import 'abitype';
|
|
11
11
|
import '../../../utils/device-signers/DeviceSignerKeyStorage.js';
|
|
12
12
|
|
|
13
|
-
type DerivedServerSigner = {
|
|
14
|
-
derivedKeyBytes: Uint8Array;
|
|
15
|
-
derivedAddress: string;
|
|
16
|
-
};
|
|
17
13
|
declare function deriveServerSignerAddress(keyBytes: Uint8Array, chain: Chain): string;
|
|
18
14
|
declare function deriveServerSignerDetails(signer: ServerSignerConfig, chain: Chain, projectId: string, environment: string): DerivedServerSigner;
|
|
19
15
|
declare function deriveServerSignerCandidates(signer: ServerSignerConfig, chain: Chain, projectId: string, environment: string): {
|
|
@@ -21,4 +17,4 @@ declare function deriveServerSignerCandidates(signer: ServerSignerConfig, chain:
|
|
|
21
17
|
legacy: DerivedServerSigner | null;
|
|
22
18
|
};
|
|
23
19
|
|
|
24
|
-
export {
|
|
20
|
+
export { deriveServerSignerAddress, deriveServerSignerCandidates, deriveServerSignerDetails };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c}from"../../../chunk-
|
|
1
|
+
import{a,b,c}from"../../../chunk-MDINF2FR.js";import"../../../chunk-OQZTL6ZG.js";import"../../../chunk-EM3D5Q3A.js";import"../../../chunk-XNZLCUTY.js";import"../../../chunk-J3R36SGJ.js";export{a as deriveServerSignerAddress,c as deriveServerSignerCandidates,b as deriveServerSignerDetails};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../../chunk-IGRPHTXZ.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../../chunk-IGRPHTXZ.cjs');var _chunkQ4EIDR3Acjs = require('../../../chunk-Q4EIDR3A.cjs');var _chunkENU3EKBGcjs = require('../../../chunk-ENU3EKBG.cjs');require('../../../chunk-5FH7WFWL.cjs');require('../../../chunk-YGL4ITFK.cjs');require('../../../chunk-2GKPWQBQ.cjs');exports.deriveServerSignerAddress = _chunkQ4EIDR3Acjs.a; exports.deriveServerSignerCandidates = _chunkQ4EIDR3Acjs.c; exports.deriveServerSignerDetails = _chunkQ4EIDR3Acjs.b; exports.getChainType = _chunkENU3EKBGcjs.a;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { M as DerivedServerSigner } from '../../../types-CbJcRrxL.cjs';
|
|
2
|
+
export { deriveServerSignerAddress, deriveServerSignerCandidates, deriveServerSignerDetails } from './derive-server-signer.cjs';
|
|
2
3
|
export { getChainType } from './get-chain-type.cjs';
|
|
3
|
-
import '../../../chains/chains.cjs';
|
|
4
|
-
import '@crossmint/common-sdk-base';
|
|
5
4
|
import 'viem';
|
|
6
|
-
import '../../../types-Cc0Mr7mS.cjs';
|
|
7
5
|
import '../../../api/gen/types.gen.cjs';
|
|
8
6
|
import 'ox';
|
|
9
7
|
import '@crossmint/client-sdk-window';
|
|
10
8
|
import '@crossmint/client-signers';
|
|
9
|
+
import '@crossmint/common-sdk-base';
|
|
10
|
+
import '../../../chains/chains.cjs';
|
|
11
11
|
import '@solana/web3.js';
|
|
12
12
|
import 'abitype';
|
|
13
13
|
import '../../../utils/device-signers/DeviceSignerKeyStorage.cjs';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { M as DerivedServerSigner } from '../../../types-CpyIKxWr.js';
|
|
2
|
+
export { deriveServerSignerAddress, deriveServerSignerCandidates, deriveServerSignerDetails } from './derive-server-signer.js';
|
|
2
3
|
export { getChainType } from './get-chain-type.js';
|
|
3
|
-
import '../../../chains/chains.js';
|
|
4
|
-
import '@crossmint/common-sdk-base';
|
|
5
4
|
import 'viem';
|
|
6
|
-
import '../../../types-Br5La8FI.js';
|
|
7
5
|
import '../../../api/gen/types.gen.js';
|
|
8
6
|
import 'ox';
|
|
9
7
|
import '@crossmint/client-sdk-window';
|
|
10
8
|
import '@crossmint/client-signers';
|
|
9
|
+
import '@crossmint/common-sdk-base';
|
|
10
|
+
import '../../../chains/chains.js';
|
|
11
11
|
import '@solana/web3.js';
|
|
12
12
|
import 'abitype';
|
|
13
13
|
import '../../../utils/device-signers/DeviceSignerKeyStorage.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../../chunk-QM3BB4E2.js";import{a as b,b as c,c as d}from"../../../chunk-
|
|
1
|
+
import"../../../chunk-QM3BB4E2.js";import{a as b,b as c,c as d}from"../../../chunk-MDINF2FR.js";import{a}from"../../../chunk-OQZTL6ZG.js";import"../../../chunk-EM3D5Q3A.js";import"../../../chunk-XNZLCUTY.js";import"../../../chunk-J3R36SGJ.js";export{b as deriveServerSignerAddress,d as deriveServerSignerCandidates,c as deriveServerSignerDetails,a as getChainType};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-5IC7UWND.cjs');var _chunkGZP2JQ6Pcjs = require('../../chunk-GZP2JQ6P.cjs');require('../../chunk-IGRPHTXZ.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-5IC7UWND.cjs');var _chunkGZP2JQ6Pcjs = require('../../chunk-GZP2JQ6P.cjs');require('../../chunk-IGRPHTXZ.cjs');var _chunkQ4EIDR3Acjs = require('../../chunk-Q4EIDR3A.cjs');require('../../chunk-ENU3EKBG.cjs');var _chunk3SVXPFSPcjs = require('../../chunk-3SVXPFSP.cjs');var _chunk4DJWSV7Icjs = require('../../chunk-4DJWSV7I.cjs');var _chunkYF5G4U6Lcjs = require('../../chunk-YF5G4U6L.cjs');require('../../chunk-5FH7WFWL.cjs');require('../../chunk-YGL4ITFK.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.EVMServerSigner = _chunk3SVXPFSPcjs.a; exports.SolanaServerSigner = _chunk4DJWSV7Icjs.a; exports.StellarServerSigner = _chunkYF5G4U6Lcjs.a; exports.assembleServerSigner = _chunkGZP2JQ6Pcjs.a; exports.deriveServerSignerAddress = _chunkQ4EIDR3Acjs.a; exports.deriveServerSignerCandidates = _chunkQ4EIDR3Acjs.c; exports.deriveServerSignerDetails = _chunkQ4EIDR3Acjs.b;
|
|
@@ -2,11 +2,11 @@ export { assembleServerSigner } from './assemble-server-signer.cjs';
|
|
|
2
2
|
export { EVMServerSigner } from './evm-server-signer.cjs';
|
|
3
3
|
export { SolanaServerSigner } from './solana-server-signer.cjs';
|
|
4
4
|
export { StellarServerSigner } from './stellar-server-signer.cjs';
|
|
5
|
-
export {
|
|
5
|
+
export { M as DerivedServerSigner } from '../../types-CbJcRrxL.cjs';
|
|
6
|
+
export { deriveServerSignerAddress, deriveServerSignerCandidates, deriveServerSignerDetails } from './helpers/derive-server-signer.cjs';
|
|
6
7
|
import '../../chains/chains.cjs';
|
|
7
8
|
import '@crossmint/common-sdk-base';
|
|
8
9
|
import 'viem';
|
|
9
|
-
import '../../types-Cc0Mr7mS.cjs';
|
|
10
10
|
import '../../api/gen/types.gen.cjs';
|
|
11
11
|
import 'ox';
|
|
12
12
|
import '@crossmint/client-sdk-window';
|
|
@@ -2,11 +2,11 @@ export { assembleServerSigner } from './assemble-server-signer.js';
|
|
|
2
2
|
export { EVMServerSigner } from './evm-server-signer.js';
|
|
3
3
|
export { SolanaServerSigner } from './solana-server-signer.js';
|
|
4
4
|
export { StellarServerSigner } from './stellar-server-signer.js';
|
|
5
|
-
export {
|
|
5
|
+
export { M as DerivedServerSigner } from '../../types-CpyIKxWr.js';
|
|
6
|
+
export { deriveServerSignerAddress, deriveServerSignerCandidates, deriveServerSignerDetails } from './helpers/derive-server-signer.js';
|
|
6
7
|
import '../../chains/chains.js';
|
|
7
8
|
import '@crossmint/common-sdk-base';
|
|
8
9
|
import 'viem';
|
|
9
|
-
import '../../types-Br5La8FI.js';
|
|
10
10
|
import '../../api/gen/types.gen.js';
|
|
11
11
|
import 'ox';
|
|
12
12
|
import '@crossmint/client-sdk-window';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../chunk-L52GDMSH.js";import{a as g}from"../../chunk-6X5JEJD7.js";import"../../chunk-QM3BB4E2.js";import{a,b,c}from"../../chunk-
|
|
1
|
+
import"../../chunk-L52GDMSH.js";import{a as g}from"../../chunk-6X5JEJD7.js";import"../../chunk-QM3BB4E2.js";import{a,b,c}from"../../chunk-MDINF2FR.js";import"../../chunk-OQZTL6ZG.js";import{a as d}from"../../chunk-N355UETO.js";import{a as e}from"../../chunk-3VRN3GKQ.js";import{a as f}from"../../chunk-BITOMWYZ.js";import"../../chunk-EM3D5Q3A.js";import"../../chunk-XNZLCUTY.js";import"../../chunk-J3R36SGJ.js";export{d as EVMServerSigner,e as SolanaServerSigner,f as StellarServerSigner,g as assembleServerSigner,a as deriveServerSignerAddress,c as deriveServerSignerCandidates,b as deriveServerSignerDetails};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as SignerAdapter,
|
|
1
|
+
import { u as SignerAdapter, U as ApiKeyInternalSignerConfig, a as ApiKeySignerLocator } from '../types-CbJcRrxL.cjs';
|
|
2
2
|
import 'viem';
|
|
3
3
|
import '../api/gen/types.gen.cjs';
|
|
4
4
|
import 'ox';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as SignerAdapter,
|
|
1
|
+
import { u as SignerAdapter, U as ApiKeyInternalSignerConfig, a as ApiKeySignerLocator } from '../types-CpyIKxWr.js';
|
|
2
2
|
import 'viem';
|
|
3
3
|
import '../api/gen/types.gen.js';
|
|
4
4
|
import 'ox';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { V as ExternalWalletInternalSignerConfig } from '../types-CbJcRrxL.cjs';
|
|
2
2
|
import { SolanaChain } from '../chains/chains.cjs';
|
|
3
3
|
import { ExternalWalletSigner } from './external-wallet-signer.cjs';
|
|
4
4
|
import 'viem';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { V as ExternalWalletInternalSignerConfig } from '../types-CpyIKxWr.js';
|
|
2
2
|
import { SolanaChain } from '../chains/chains.js';
|
|
3
3
|
import { ExternalWalletSigner } from './external-wallet-signer.js';
|
|
4
4
|
import 'viem';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { V as ExternalWalletInternalSignerConfig } from '../types-CbJcRrxL.cjs';
|
|
2
2
|
import { StellarChain } from '../chains/chains.cjs';
|
|
3
3
|
import { ExternalWalletSigner } from './external-wallet-signer.cjs';
|
|
4
4
|
import 'viem';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { V as ExternalWalletInternalSignerConfig } from '../types-CpyIKxWr.js';
|
|
2
2
|
import { StellarChain } from '../chains/chains.js';
|
|
3
3
|
import { ExternalWalletSigner } from './external-wallet-signer.js';
|
|
4
4
|
import 'viem';
|
package/dist/signers/types.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5HBCBS5Wcjs = require('../chunk-5HBCBS5W.cjs');require('../chunk-2GKPWQBQ.cjs');exports.AuthRejectedError = _chunk5HBCBS5Wcjs.a; exports.KeyExportError = _chunk5HBCBS5Wcjs.d; exports.OtpValidationError = _chunk5HBCBS5Wcjs.b; exports.SignerStatusError = _chunk5HBCBS5Wcjs.c; exports.isApiSourcedServerSignerConfig = _chunk5HBCBS5Wcjs.e; exports.isExportableSignerAdapter = _chunk5HBCBS5Wcjs.f;
|
package/dist/signers/types.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ import '@crossmint/client-sdk-window';
|
|
|
3
3
|
import '@crossmint/client-signers';
|
|
4
4
|
export { EvmExternalWalletSignerConfig, ExternalWalletSignerConfig, SolanaExternalWalletSignerConfig, StellarExternalWalletSignerConfig } from '@crossmint/common-sdk-base';
|
|
5
5
|
import '../chains/chains.cjs';
|
|
6
|
-
export {
|
|
6
|
+
export { U as ApiKeyInternalSignerConfig, aW as ApiKeySignerConfig, a as ApiKeySignerLocator, aX as ApiSourcedServerSignerConfig, d as AuthRejectedError, an as BaseSignResult, aY as BaseSignerConfig, M as DerivedServerSigner, N as DeviceInternalSignerConfig, Q as DeviceSignResult, D as DeviceSignerConfig, g as DeviceSignerLocator, al as EmailInternalSignerConfig, h as EmailSignerConfig, i as EmailSignerLocator, j as ExportSignerTEEConnection, k as ExportableSignerAdapter, V as ExternalWalletInternalSignerConfig, l as ExternalWalletRegistrationConfig, m as ExternalWalletSignerConfigForChain, n as ExternalWalletSignerLocator, X as InternalSignerConfig, K as KeyExportError, aZ as NonCustodialSignerType, O as OtpValidationError, Y as PasskeyInternalSignerConfig, Z as PasskeySignResult, a_ as PasskeySignerConfig, P as PasskeySignerLocator, am as PhoneInternalSignerConfig, o as PhoneSignerConfig, p as PhoneSignerLocator, a6 as RecoverySignerConfigForChain, ao as ServerInternalSignerConfig, r as ServerSignerConfig, a$ as ServerSignerLocator, u as SignerAdapter, v as SignerConfigForChain, w as SignerLocator, y as SignerStatusError, b0 as isApiSourcedServerSignerConfig, L as isExportableSignerAdapter } from '../types-CbJcRrxL.cjs';
|
|
7
7
|
import 'viem';
|
|
8
8
|
import '../api/gen/types.gen.cjs';
|
|
9
9
|
import '@solana/web3.js';
|
package/dist/signers/types.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import '@crossmint/client-sdk-window';
|
|
|
3
3
|
import '@crossmint/client-signers';
|
|
4
4
|
export { EvmExternalWalletSignerConfig, ExternalWalletSignerConfig, SolanaExternalWalletSignerConfig, StellarExternalWalletSignerConfig } from '@crossmint/common-sdk-base';
|
|
5
5
|
import '../chains/chains.js';
|
|
6
|
-
export {
|
|
6
|
+
export { U as ApiKeyInternalSignerConfig, aW as ApiKeySignerConfig, a as ApiKeySignerLocator, aX as ApiSourcedServerSignerConfig, d as AuthRejectedError, an as BaseSignResult, aY as BaseSignerConfig, M as DerivedServerSigner, N as DeviceInternalSignerConfig, Q as DeviceSignResult, D as DeviceSignerConfig, g as DeviceSignerLocator, al as EmailInternalSignerConfig, h as EmailSignerConfig, i as EmailSignerLocator, j as ExportSignerTEEConnection, k as ExportableSignerAdapter, V as ExternalWalletInternalSignerConfig, l as ExternalWalletRegistrationConfig, m as ExternalWalletSignerConfigForChain, n as ExternalWalletSignerLocator, X as InternalSignerConfig, K as KeyExportError, aZ as NonCustodialSignerType, O as OtpValidationError, Y as PasskeyInternalSignerConfig, Z as PasskeySignResult, a_ as PasskeySignerConfig, P as PasskeySignerLocator, am as PhoneInternalSignerConfig, o as PhoneSignerConfig, p as PhoneSignerLocator, a6 as RecoverySignerConfigForChain, ao as ServerInternalSignerConfig, r as ServerSignerConfig, a$ as ServerSignerLocator, u as SignerAdapter, v as SignerConfigForChain, w as SignerLocator, y as SignerStatusError, b0 as isApiSourcedServerSignerConfig, L as isExportableSignerAdapter } from '../types-CpyIKxWr.js';
|
|
7
7
|
import 'viem';
|
|
8
8
|
import '../api/gen/types.gen.js';
|
|
9
9
|
import '@solana/web3.js';
|
package/dist/signers/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d}from"../chunk-
|
|
1
|
+
import{a,b,c,d,e,f}from"../chunk-OWDSSX2P.js";import"../chunk-J3R36SGJ.js";export{a as AuthRejectedError,d as KeyExportError,b as OtpValidationError,c as SignerStatusError,e as isApiSourcedServerSignerConfig,f as isExportableSignerAdapter};
|
|
@@ -270,6 +270,14 @@ declare class OtpValidationError extends Error {
|
|
|
270
270
|
readonly code: string | undefined;
|
|
271
271
|
constructor(message: string, code?: string);
|
|
272
272
|
}
|
|
273
|
+
declare class SignerStatusError extends Error {
|
|
274
|
+
readonly code: string | undefined;
|
|
275
|
+
constructor(message: string, code?: string);
|
|
276
|
+
}
|
|
277
|
+
declare class KeyExportError extends Error {
|
|
278
|
+
readonly code: string | undefined;
|
|
279
|
+
constructor(message: string, code?: string);
|
|
280
|
+
}
|
|
273
281
|
type EmailSignerConfig = {
|
|
274
282
|
type: "email";
|
|
275
283
|
email?: string;
|
|
@@ -289,6 +297,10 @@ type ServerSignerConfig = {
|
|
|
289
297
|
type: "server";
|
|
290
298
|
secret: string;
|
|
291
299
|
};
|
|
300
|
+
type DerivedServerSigner = {
|
|
301
|
+
derivedKeyBytes: Uint8Array;
|
|
302
|
+
derivedAddress: string;
|
|
303
|
+
};
|
|
292
304
|
type ApiSourcedServerSignerConfig = {
|
|
293
305
|
type: "server";
|
|
294
306
|
address: string;
|
|
@@ -473,4 +485,4 @@ type EvmWalletLocator = `me:evm:${WalletType}` | Address;
|
|
|
473
485
|
type SolanaWalletLocator = `me:solana:${WalletType}` | SolanaAddress;
|
|
474
486
|
type WalletLocator = EvmWalletLocator | SolanaWalletLocator;
|
|
475
487
|
|
|
476
|
-
export { type
|
|
488
|
+
export { type PrepareOnly as $, type AddSignerOptions as A, type Balances as B, type Callbacks as C, type DeviceSignerConfig as D, type EVMTransactionInput as E, type TransferScope as F, type Transfers as G, type WalletCreateArgs as H, type WalletOptions as I, type WalletPlugin as J, KeyExportError as K, isExportableSignerAdapter as L, type DerivedServerSigner as M, type DeviceInternalSignerConfig as N, OtpValidationError as O, type PasskeySignerLocator as P, type DeviceSignResult as Q, type RegisterSignerPasskeyParams as R, type Scope as S, type Transaction as T, type ApiKeyInternalSignerConfig as U, type ExternalWalletInternalSignerConfig as V, type WalletArgsFor as W, type InternalSignerConfig as X, type PasskeyInternalSignerConfig as Y, type PasskeySignResult as Z, type Signer as _, type ApiKeySignerLocator as a, type ServerSignerLocator as a$, type SignMessageInput as a0, type SignTypedDataInput as a1, type TransactionInputOptions as a2, type StellarTransactionInput as a3, type UpgradeOptions as a4, type MigrateOptions as a5, type RecoverySignerConfigForChain as a6, type FundWalletResponse as a7, type GetTransactionsResponse as a8, type GetTransactionSuccessResponse as a9, type FundWalletParams as aA, type RegisterSignerParams as aB, type RegisterSignerResponse as aC, type RemoveSignerParams as aD, type RemoveSignerResponse as aE, type GetSignerResponse as aF, type SendParams as aG, type CreateTransactionSuccessResponse as aH, type GetBalanceSuccessResponse as aI, type GetSignersResponse as aJ, type GetWalletSuccessResponse as aK, type RecoverySignerConfig as aL, type RegisterSignerChain as aM, type Approval as aN, type DeviceSignerDescriptor as aO, type FormattedEVMTransaction as aP, type PendingApproval as aQ, type SendTokenTransactionType as aR, type SignatureInputOptions as aS, type SignerInput as aT, type StellarWalletPlugin as aU, type TokenBalance as aV, type ApiKeySignerConfig as aW, type ApiSourcedServerSignerConfig as aX, type BaseSignerConfig as aY, type NonCustodialSignerType as aZ, type PasskeySignerConfig as a_, type SendTokenTransactionOptions as aa, type UserLocator as ab, type ApproveResult as ac, type AddSignerReturnType as ad, type RemoveSignerReturnType as ae, type WalletLocator as af, type ApproveSignatureResponse as ag, type GetTransactionResponse as ah, type SendResponse as ai, type CreateWalletResponse as aj, type CreateWalletParams as ak, type EmailInternalSignerConfig as al, type PhoneInternalSignerConfig as am, type BaseSignResult as an, type ServerInternalSignerConfig as ao, type GetWalletResponse as ap, type CreateTransactionParams as aq, type CreateTransactionResponse as ar, type ApproveTransactionParams as as, type ApproveTransactionResponse as at, type CreateSignatureParams as au, type CreateSignatureResponse as av, type ApproveSignatureParams as aw, type GetSignatureResponse as ax, type GetTransfersResponse as ay, type GetBalanceResponse as az, type ApproveOptions as b, isApiSourcedServerSignerConfig as b0, type ApproveParams as c, AuthRejectedError as d, type ClientSideWalletArgsFor as e, type ClientSideWalletCreateArgs as f, type DeviceSignerLocator as g, type EmailSignerConfig as h, type EmailSignerLocator as i, type ExportSignerTEEConnection as j, type ExportableSignerAdapter as k, type ExternalWalletRegistrationConfig as l, type ExternalWalletSignerConfigForChain as m, type ExternalWalletSignerLocator as n, type PhoneSignerConfig as o, type PhoneSignerLocator as p, type RemoveSignerOptions as q, type ServerSignerConfig as r, type Signature as s, type Signer$1 as t, type SignerAdapter as u, type SignerConfigForChain as v, type SignerLocator as w, type SignerStatus as x, SignerStatusError as y, type SolanaTransactionInput as z };
|
|
@@ -270,6 +270,14 @@ declare class OtpValidationError extends Error {
|
|
|
270
270
|
readonly code: string | undefined;
|
|
271
271
|
constructor(message: string, code?: string);
|
|
272
272
|
}
|
|
273
|
+
declare class SignerStatusError extends Error {
|
|
274
|
+
readonly code: string | undefined;
|
|
275
|
+
constructor(message: string, code?: string);
|
|
276
|
+
}
|
|
277
|
+
declare class KeyExportError extends Error {
|
|
278
|
+
readonly code: string | undefined;
|
|
279
|
+
constructor(message: string, code?: string);
|
|
280
|
+
}
|
|
273
281
|
type EmailSignerConfig = {
|
|
274
282
|
type: "email";
|
|
275
283
|
email?: string;
|
|
@@ -289,6 +297,10 @@ type ServerSignerConfig = {
|
|
|
289
297
|
type: "server";
|
|
290
298
|
secret: string;
|
|
291
299
|
};
|
|
300
|
+
type DerivedServerSigner = {
|
|
301
|
+
derivedKeyBytes: Uint8Array;
|
|
302
|
+
derivedAddress: string;
|
|
303
|
+
};
|
|
292
304
|
type ApiSourcedServerSignerConfig = {
|
|
293
305
|
type: "server";
|
|
294
306
|
address: string;
|
|
@@ -473,4 +485,4 @@ type EvmWalletLocator = `me:evm:${WalletType}` | Address;
|
|
|
473
485
|
type SolanaWalletLocator = `me:solana:${WalletType}` | SolanaAddress;
|
|
474
486
|
type WalletLocator = EvmWalletLocator | SolanaWalletLocator;
|
|
475
487
|
|
|
476
|
-
export { type
|
|
488
|
+
export { type PrepareOnly as $, type AddSignerOptions as A, type Balances as B, type Callbacks as C, type DeviceSignerConfig as D, type EVMTransactionInput as E, type TransferScope as F, type Transfers as G, type WalletCreateArgs as H, type WalletOptions as I, type WalletPlugin as J, KeyExportError as K, isExportableSignerAdapter as L, type DerivedServerSigner as M, type DeviceInternalSignerConfig as N, OtpValidationError as O, type PasskeySignerLocator as P, type DeviceSignResult as Q, type RegisterSignerPasskeyParams as R, type Scope as S, type Transaction as T, type ApiKeyInternalSignerConfig as U, type ExternalWalletInternalSignerConfig as V, type WalletArgsFor as W, type InternalSignerConfig as X, type PasskeyInternalSignerConfig as Y, type PasskeySignResult as Z, type Signer as _, type ApiKeySignerLocator as a, type ServerSignerLocator as a$, type SignMessageInput as a0, type SignTypedDataInput as a1, type TransactionInputOptions as a2, type StellarTransactionInput as a3, type UpgradeOptions as a4, type MigrateOptions as a5, type RecoverySignerConfigForChain as a6, type FundWalletResponse as a7, type GetTransactionsResponse as a8, type GetTransactionSuccessResponse as a9, type FundWalletParams as aA, type RegisterSignerParams as aB, type RegisterSignerResponse as aC, type RemoveSignerParams as aD, type RemoveSignerResponse as aE, type GetSignerResponse as aF, type SendParams as aG, type CreateTransactionSuccessResponse as aH, type GetBalanceSuccessResponse as aI, type GetSignersResponse as aJ, type GetWalletSuccessResponse as aK, type RecoverySignerConfig as aL, type RegisterSignerChain as aM, type Approval as aN, type DeviceSignerDescriptor as aO, type FormattedEVMTransaction as aP, type PendingApproval as aQ, type SendTokenTransactionType as aR, type SignatureInputOptions as aS, type SignerInput as aT, type StellarWalletPlugin as aU, type TokenBalance as aV, type ApiKeySignerConfig as aW, type ApiSourcedServerSignerConfig as aX, type BaseSignerConfig as aY, type NonCustodialSignerType as aZ, type PasskeySignerConfig as a_, type SendTokenTransactionOptions as aa, type UserLocator as ab, type ApproveResult as ac, type AddSignerReturnType as ad, type RemoveSignerReturnType as ae, type WalletLocator as af, type ApproveSignatureResponse as ag, type GetTransactionResponse as ah, type SendResponse as ai, type CreateWalletResponse as aj, type CreateWalletParams as ak, type EmailInternalSignerConfig as al, type PhoneInternalSignerConfig as am, type BaseSignResult as an, type ServerInternalSignerConfig as ao, type GetWalletResponse as ap, type CreateTransactionParams as aq, type CreateTransactionResponse as ar, type ApproveTransactionParams as as, type ApproveTransactionResponse as at, type CreateSignatureParams as au, type CreateSignatureResponse as av, type ApproveSignatureParams as aw, type GetSignatureResponse as ax, type GetTransfersResponse as ay, type GetBalanceResponse as az, type ApproveOptions as b, isApiSourcedServerSignerConfig as b0, type ApproveParams as c, AuthRejectedError as d, type ClientSideWalletArgsFor as e, type ClientSideWalletCreateArgs as f, type DeviceSignerLocator as g, type EmailSignerConfig as h, type EmailSignerLocator as i, type ExportSignerTEEConnection as j, type ExportableSignerAdapter as k, type ExternalWalletRegistrationConfig as l, type ExternalWalletSignerConfigForChain as m, type ExternalWalletSignerLocator as n, type PhoneSignerConfig as o, type PhoneSignerLocator as p, type RemoveSignerOptions as q, type ServerSignerConfig as r, type Signature as s, type Signer$1 as t, type SignerAdapter as u, type SignerConfigForChain as v, type SignerLocator as w, type SignerStatus as x, SignerStatusError as y, type SolanaTransactionInput as z };
|
package/dist/utils/constants.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVVX6XW5Lcjs = require('../chunk-VVX6XW5L.cjs');require('../chunk-2GKPWQBQ.cjs');exports.SDK_NAME = _chunkVVX6XW5Lcjs.c; exports.SDK_VERSION = _chunkVVX6XW5Lcjs.b; exports.STATUS_POLLING_INTERVAL_MS = _chunkVVX6XW5Lcjs.d; exports.WALLETS_SERVICE = _chunkVVX6XW5Lcjs.a;
|
package/dist/utils/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d}from"../chunk-
|
|
1
|
+
import{a,b,c,d}from"../chunk-YN4JN7PO.js";import"../chunk-J3R36SGJ.js";export{c as SDK_NAME,b as SDK_VERSION,d as STATUS_POLLING_INTERVAL_MS,a as WALLETS_SERVICE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkHSLZH2ZCcjs = require('../../chunk-HSLZH2ZC.cjs');require('../../chunk-3VYGTPRF.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-VUC4UU5M.cjs');require('../../chunk-VVX6XW5L.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.IframeDeviceSignerKeyStorage = _chunkHSLZH2ZCcjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-MYJFCP65.js";import"../../chunk-IOSADDL5.js";import"../../chunk-455NK5LB.js";import"../../chunk-SYQ5Q3WU.js";import"../../chunk-YN4JN7PO.js";import"../../chunk-J3R36SGJ.js";export{a as IframeDeviceSignerKeyStorage};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DeviceSignerKeyStorage } from './DeviceSignerKeyStorage.cjs';
|
|
2
|
-
import { D as DeviceSignerConfig } from '../../types-
|
|
2
|
+
import { D as DeviceSignerConfig } from '../../types-CbJcRrxL.cjs';
|
|
3
3
|
import 'viem';
|
|
4
4
|
import '../../api/gen/types.gen.cjs';
|
|
5
5
|
import 'ox';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DeviceSignerKeyStorage } from './DeviceSignerKeyStorage.js';
|
|
2
|
-
import { D as DeviceSignerConfig } from '../../types-
|
|
2
|
+
import { D as DeviceSignerConfig } from '../../types-CpyIKxWr.js';
|
|
3
3
|
import 'viem';
|
|
4
4
|
import '../../api/gen/types.gen.js';
|
|
5
5
|
import 'ox';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-CUHDOBKN.cjs');var _chunkYHV3672Rcjs = require('../../chunk-YHV3672R.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-CUHDOBKN.cjs');var _chunkYHV3672Rcjs = require('../../chunk-YHV3672R.cjs');var _chunkHSLZH2ZCcjs = require('../../chunk-HSLZH2ZC.cjs');var _chunk3VYGTPRFcjs = require('../../chunk-3VYGTPRF.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-VUC4UU5M.cjs');require('../../chunk-VVX6XW5L.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.DeviceSignerKeyStorage = _chunk3VYGTPRFcjs.a; exports.IframeDeviceSignerKeyStorage = _chunkHSLZH2ZCcjs.a; exports.createDeviceSigner = _chunkYHV3672Rcjs.a;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { BiometricPolicy, DeviceSignerKeyStorage } from './DeviceSignerKeyStorage.cjs';
|
|
2
2
|
export { BiometricRequestHandler, IframeDeviceSignerKeyStorage } from './IframeDeviceSignerKeyStorage.cjs';
|
|
3
3
|
export { createDeviceSigner } from './createDeviceSigner.cjs';
|
|
4
|
-
import '../../types-
|
|
4
|
+
import '../../types-CbJcRrxL.cjs';
|
|
5
5
|
import 'viem';
|
|
6
6
|
import '../../api/gen/types.gen.cjs';
|
|
7
7
|
import 'ox';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { BiometricPolicy, DeviceSignerKeyStorage } from './DeviceSignerKeyStorage.js';
|
|
2
2
|
export { BiometricRequestHandler, IframeDeviceSignerKeyStorage } from './IframeDeviceSignerKeyStorage.js';
|
|
3
3
|
export { createDeviceSigner } from './createDeviceSigner.js';
|
|
4
|
-
import '../../types-
|
|
4
|
+
import '../../types-CpyIKxWr.js';
|
|
5
5
|
import 'viem';
|
|
6
6
|
import '../../api/gen/types.gen.js';
|
|
7
7
|
import 'ox';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../chunk-TOAFCAVT.js";import{a as c}from"../../chunk-N4IWDL6M.js";import{a as b}from"../../chunk-
|
|
1
|
+
import"../../chunk-TOAFCAVT.js";import{a as c}from"../../chunk-N4IWDL6M.js";import{a as b}from"../../chunk-MYJFCP65.js";import{a}from"../../chunk-IOSADDL5.js";import"../../chunk-455NK5LB.js";import"../../chunk-SYQ5Q3WU.js";import"../../chunk-YN4JN7PO.js";import"../../chunk-J3R36SGJ.js";export{a as DeviceSignerKeyStorage,b as IframeDeviceSignerKeyStorage,c as createDeviceSigner};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVDNAVMQQcjs = require('../../chunk-VDNAVMQQ.cjs');require('../../chunk-Q4EIDR3A.cjs');require('../../chunk-ENU3EKBG.cjs');require('../../chunk-5FH7WFWL.cjs');require('../../chunk-YGL4ITFK.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.createServerSigner = _chunkVDNAVMQQcjs.a;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Chain } from '../../chains/chains.cjs';
|
|
2
|
+
import '@crossmint/common-sdk-base';
|
|
3
|
+
import 'viem';
|
|
4
|
+
|
|
5
|
+
type CreateServerSignerParams = {
|
|
6
|
+
secret: string;
|
|
7
|
+
chain: Chain;
|
|
8
|
+
projectId: string;
|
|
9
|
+
environment: string;
|
|
10
|
+
};
|
|
11
|
+
type ServerSigner = {
|
|
12
|
+
type: "server";
|
|
13
|
+
address: string;
|
|
14
|
+
keyBytes: Uint8Array;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Creates a server signer by deriving a chain-specific key pair from a master secret using HKDF-SHA256.
|
|
18
|
+
*
|
|
19
|
+
* The derivation is deterministic: same inputs always produce the same signer.
|
|
20
|
+
*
|
|
21
|
+
* @param params.secret - Master secret (with or without xmsk1_ prefix), 64-char hex
|
|
22
|
+
* @param params.chain - Target blockchain chain
|
|
23
|
+
* @param params.projectId - Project ID from the API key
|
|
24
|
+
* @param params.environment - Environment from the API key (staging, production)
|
|
25
|
+
* @returns A server signer containing the type, derived address, and key bytes.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const signer = createServerSigner({
|
|
30
|
+
* secret: "xmsk1_abc123...",
|
|
31
|
+
* chain: "base-sepolia",
|
|
32
|
+
* projectId: "project-id",
|
|
33
|
+
* environment: "staging",
|
|
34
|
+
* });
|
|
35
|
+
* // signer = { type: "server", address: "0x...", keyBytes: Uint8Array }
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
declare function createServerSigner(params: CreateServerSignerParams): ServerSigner;
|
|
39
|
+
|
|
40
|
+
export { type CreateServerSignerParams, type ServerSigner, createServerSigner };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Chain } from '../../chains/chains.js';
|
|
2
|
+
import '@crossmint/common-sdk-base';
|
|
3
|
+
import 'viem';
|
|
4
|
+
|
|
5
|
+
type CreateServerSignerParams = {
|
|
6
|
+
secret: string;
|
|
7
|
+
chain: Chain;
|
|
8
|
+
projectId: string;
|
|
9
|
+
environment: string;
|
|
10
|
+
};
|
|
11
|
+
type ServerSigner = {
|
|
12
|
+
type: "server";
|
|
13
|
+
address: string;
|
|
14
|
+
keyBytes: Uint8Array;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Creates a server signer by deriving a chain-specific key pair from a master secret using HKDF-SHA256.
|
|
18
|
+
*
|
|
19
|
+
* The derivation is deterministic: same inputs always produce the same signer.
|
|
20
|
+
*
|
|
21
|
+
* @param params.secret - Master secret (with or without xmsk1_ prefix), 64-char hex
|
|
22
|
+
* @param params.chain - Target blockchain chain
|
|
23
|
+
* @param params.projectId - Project ID from the API key
|
|
24
|
+
* @param params.environment - Environment from the API key (staging, production)
|
|
25
|
+
* @returns A server signer containing the type, derived address, and key bytes.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const signer = createServerSigner({
|
|
30
|
+
* secret: "xmsk1_abc123...",
|
|
31
|
+
* chain: "base-sepolia",
|
|
32
|
+
* projectId: "project-id",
|
|
33
|
+
* environment: "staging",
|
|
34
|
+
* });
|
|
35
|
+
* // signer = { type: "server", address: "0x...", keyBytes: Uint8Array }
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
declare function createServerSigner(params: CreateServerSignerParams): ServerSigner;
|
|
39
|
+
|
|
40
|
+
export { type CreateServerSignerParams, type ServerSigner, createServerSigner };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../../chunk-TLLXWU3N.js";import"../../chunk-MDINF2FR.js";import"../../chunk-OQZTL6ZG.js";import"../../chunk-EM3D5Q3A.js";import"../../chunk-XNZLCUTY.js";import"../../chunk-J3R36SGJ.js";export{a as createServerSigner};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-YRZHJB2T.cjs');var _chunkVDNAVMQQcjs = require('../../chunk-VDNAVMQQ.cjs');require('../../chunk-Q4EIDR3A.cjs');require('../../chunk-ENU3EKBG.cjs');require('../../chunk-5FH7WFWL.cjs');require('../../chunk-YGL4ITFK.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.createServerSigner = _chunkVDNAVMQQcjs.a;
|