@crossmint/wallets-sdk 0.20.2 → 0.20.5
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/package.json +1 -1
- package/LICENSE +0 -201
- package/README.md +0 -96
- package/dist/api/__tests__/constants.cjs +0 -31
- package/dist/api/__tests__/constants.d.cts +0 -96
- package/dist/api/__tests__/constants.d.ts +0 -96
- package/dist/api/__tests__/constants.js +0 -31
- package/dist/api/__tests__/test-utils.cjs +0 -372
- package/dist/api/__tests__/test-utils.d.cts +0 -99
- package/dist/api/__tests__/test-utils.d.ts +0 -99
- package/dist/api/__tests__/test-utils.js +0 -372
- package/dist/api/client.cjs +0 -10
- package/dist/api/client.d.cts +0 -42
- package/dist/api/client.d.ts +0 -42
- package/dist/api/client.js +0 -10
- package/dist/api/gen/client.gen.cjs +0 -7
- package/dist/api/gen/client.gen.d.cts +0 -16
- package/dist/api/gen/client.gen.d.ts +0 -16
- package/dist/api/gen/client.gen.js +0 -7
- package/dist/api/gen/index.cjs +0 -179
- package/dist/api/gen/index.d.cts +0 -3
- package/dist/api/gen/index.d.ts +0 -3
- package/dist/api/gen/index.js +0 -179
- package/dist/api/gen/sdk.gen.cjs +0 -178
- package/dist/api/gen/sdk.gen.d.cts +0 -611
- package/dist/api/gen/sdk.gen.d.ts +0 -611
- package/dist/api/gen/sdk.gen.js +0 -178
- package/dist/api/gen/types.gen.cjs +0 -1
- package/dist/api/gen/types.gen.d.cts +0 -13865
- package/dist/api/gen/types.gen.d.ts +0 -13865
- package/dist/api/gen/types.gen.js +0 -1
- package/dist/api/index.cjs +0 -12
- package/dist/api/index.d.cts +0 -6
- package/dist/api/index.d.ts +0 -6
- package/dist/api/index.js +0 -12
- package/dist/api/types.cjs +0 -1
- package/dist/api/types.d.cts +0 -55
- package/dist/api/types.d.ts +0 -55
- package/dist/api/types.js +0 -1
- package/dist/chains/chains.cjs +0 -24
- package/dist/chains/chains.d.cts +0 -28
- package/dist/chains/chains.d.ts +0 -28
- package/dist/chains/chains.js +0 -24
- package/dist/chains/definitions/arcTestnet.cjs +0 -7
- package/dist/chains/definitions/arcTestnet.d.cts +0 -43
- package/dist/chains/definitions/arcTestnet.d.ts +0 -43
- package/dist/chains/definitions/arcTestnet.js +0 -7
- package/dist/chains/definitions/story.cjs +0 -7
- package/dist/chains/definitions/story.d.cts +0 -49
- package/dist/chains/definitions/story.d.ts +0 -49
- package/dist/chains/definitions/story.js +0 -7
- package/dist/chains/definitions/storyTestnet.cjs +0 -7
- package/dist/chains/definitions/storyTestnet.d.cts +0 -43
- package/dist/chains/definitions/storyTestnet.d.ts +0 -43
- package/dist/chains/definitions/storyTestnet.js +0 -7
- package/dist/chains/definitions/tempo.cjs +0 -7
- package/dist/chains/definitions/tempo.d.cts +0 -39
- package/dist/chains/definitions/tempo.d.ts +0 -39
- package/dist/chains/definitions/tempo.js +0 -7
- package/dist/chains/definitions/tempoTestnet.cjs +0 -7
- package/dist/chains/definitions/tempoTestnet.d.cts +0 -39
- package/dist/chains/definitions/tempoTestnet.d.ts +0 -39
- package/dist/chains/definitions/tempoTestnet.js +0 -7
- package/dist/chunk-2I2OFGNL.js +0 -36
- package/dist/chunk-2T5HHKUI.js +0 -19
- package/dist/chunk-2WBSPOWU.js +0 -223
- package/dist/chunk-3U6UAYOV.js +0 -25
- package/dist/chunk-455NK5LB.js +0 -0
- package/dist/chunk-47R3UV3J.cjs +0 -58
- package/dist/chunk-47WKYTRN.js +0 -63
- package/dist/chunk-4GFSUI2I.cjs +0 -66
- package/dist/chunk-55V4VMTX.cjs +0 -25
- package/dist/chunk-5IFDVB4Y.js +0 -0
- package/dist/chunk-66UY53KP.cjs +0 -336
- package/dist/chunk-6FG5QXII.cjs +0 -110
- package/dist/chunk-6HXIZLEQ.cjs +0 -1
- package/dist/chunk-6UMJYMAY.js +0 -82
- package/dist/chunk-7GOUUPS4.js +0 -36
- package/dist/chunk-7TT3VUDF.cjs +0 -84
- package/dist/chunk-7USEVMTW.cjs +0 -21
- package/dist/chunk-A6E67ZZP.js +0 -237
- package/dist/chunk-ABMZ3ZVN.js +0 -52
- package/dist/chunk-ASE2FXWP.js +0 -65
- package/dist/chunk-BMMZIPXT.js +0 -778
- package/dist/chunk-CCIGWTAO.cjs +0 -1
- package/dist/chunk-CMBFV325.js +0 -69
- package/dist/chunk-COR3CNRW.cjs +0 -778
- package/dist/chunk-ECAM5KTH.cjs +0 -1
- package/dist/chunk-F7L2TZ3I.cjs +0 -21
- package/dist/chunk-FHMKNG62.js +0 -741
- package/dist/chunk-FICVKSXZ.js +0 -84
- package/dist/chunk-FOOISYCJ.js +0 -66
- package/dist/chunk-G6QJHFSY.cjs +0 -74
- package/dist/chunk-HTSQPZHW.cjs +0 -25
- package/dist/chunk-HXJ3YPAN.js +0 -110
- package/dist/chunk-IDKGJO2G.cjs +0 -115
- package/dist/chunk-IOMKHF6R.cjs +0 -44
- package/dist/chunk-IPO25BCU.js +0 -43
- package/dist/chunk-JREZWZ2S.cjs +0 -52
- package/dist/chunk-JSWTGW46.cjs +0 -36
- package/dist/chunk-JWMQALLN.js +0 -21
- package/dist/chunk-KBJA7JDT.js +0 -0
- package/dist/chunk-KQH5ZXJ4.js +0 -336
- package/dist/chunk-KT3CVXFG.js +0 -9
- package/dist/chunk-MMISP35W.js +0 -21
- package/dist/chunk-MRZXYVQO.cjs +0 -82
- package/dist/chunk-NIBKCMQ2.cjs +0 -19
- package/dist/chunk-PIFD6KNH.js +0 -59
- package/dist/chunk-PJOJIRTY.js +0 -74
- package/dist/chunk-PK7J3Y3L.js +0 -44
- package/dist/chunk-PM7BGATN.cjs +0 -237
- package/dist/chunk-PO6S7UR3.cjs +0 -1
- package/dist/chunk-POG76HDD.cjs +0 -741
- package/dist/chunk-PUO4QNXH.js +0 -89
- package/dist/chunk-Q5KNPVYI.cjs +0 -59
- package/dist/chunk-R4AW5ADG.cjs +0 -16
- package/dist/chunk-R6DH4V7S.cjs +0 -69
- package/dist/chunk-RBHGZDDX.cjs +0 -58
- package/dist/chunk-RHR6P2KP.cjs +0 -15
- package/dist/chunk-RYQI3RXL.cjs +0 -247
- package/dist/chunk-SGINWAB6.js +0 -155
- package/dist/chunk-T2XUADHW.js +0 -58
- package/dist/chunk-TYQ4YIP7.js +0 -16
- package/dist/chunk-U3NV7UY7.js +0 -323
- package/dist/chunk-UO2J2ZB2.cjs +0 -65
- package/dist/chunk-W7K5E64Q.js +0 -247
- package/dist/chunk-WDZY4PP4.cjs +0 -223
- package/dist/chunk-WHTECI7J.cjs +0 -89
- package/dist/chunk-WJUPOCKJ.js +0 -15
- package/dist/chunk-WWW6IGZ7.js +0 -115
- package/dist/chunk-XC2V34TS.cjs +0 -155
- package/dist/chunk-XOCC3MPK.cjs +0 -36
- package/dist/chunk-XPMCPXI3.cjs +0 -1
- package/dist/chunk-YDZRBHS3.js +0 -0
- package/dist/chunk-YMRXMNME.js +0 -0
- package/dist/chunk-ZAX22GSI.cjs +0 -323
- package/dist/chunk-ZBLW42YE.js +0 -25
- package/dist/chunk-ZNAGDENG.cjs +0 -43
- package/dist/chunk-ZP4ZZCIE.js +0 -58
- package/dist/chunk-ZT7EGOCI.cjs +0 -9
- package/dist/chunk-ZTEMOYS2.cjs +0 -63
- package/dist/index.cjs +0 -60
- package/dist/index.d.cts +0 -19
- package/dist/index.d.ts +0 -19
- package/dist/index.js +0 -60
- package/dist/logger/index.cjs +0 -11
- package/dist/logger/index.d.cts +0 -2
- package/dist/logger/index.d.ts +0 -2
- package/dist/logger/index.js +0 -11
- package/dist/logger/init.cjs +0 -10
- package/dist/logger/init.d.cts +0 -15
- package/dist/logger/init.d.ts +0 -15
- package/dist/logger/init.js +0 -10
- package/dist/sdk.cjs +0 -39
- package/dist/sdk.d.cts +0 -48
- package/dist/sdk.d.ts +0 -48
- package/dist/sdk.js +0 -39
- package/dist/signers/evm-api-key.cjs +0 -7
- package/dist/signers/evm-api-key.d.cts +0 -18
- package/dist/signers/evm-api-key.d.ts +0 -18
- package/dist/signers/evm-api-key.js +0 -7
- package/dist/signers/evm-external-wallet.cjs +0 -7
- package/dist/signers/evm-external-wallet.d.cts +0 -26
- package/dist/signers/evm-external-wallet.d.ts +0 -26
- package/dist/signers/evm-external-wallet.js +0 -7
- package/dist/signers/index.cjs +0 -24
- package/dist/signers/index.d.cts +0 -11
- package/dist/signers/index.d.ts +0 -11
- package/dist/signers/index.js +0 -24
- package/dist/signers/non-custodial/index.cjs +0 -27
- package/dist/signers/non-custodial/index.d.cts +0 -11
- package/dist/signers/non-custodial/index.d.ts +0 -11
- package/dist/signers/non-custodial/index.js +0 -27
- package/dist/signers/non-custodial/ncs-evm-signer.cjs +0 -13
- package/dist/signers/non-custodial/ncs-evm-signer.d.cts +0 -30
- package/dist/signers/non-custodial/ncs-evm-signer.d.ts +0 -30
- package/dist/signers/non-custodial/ncs-evm-signer.js +0 -13
- package/dist/signers/non-custodial/ncs-iframe-manager.cjs +0 -7
- package/dist/signers/non-custodial/ncs-iframe-manager.d.cts +0 -16
- package/dist/signers/non-custodial/ncs-iframe-manager.d.ts +0 -16
- package/dist/signers/non-custodial/ncs-iframe-manager.js +0 -7
- package/dist/signers/non-custodial/ncs-signer.cjs +0 -14
- package/dist/signers/non-custodial/ncs-signer.d.cts +0 -50
- package/dist/signers/non-custodial/ncs-signer.d.ts +0 -50
- package/dist/signers/non-custodial/ncs-signer.js +0 -14
- package/dist/signers/non-custodial/ncs-solana-signer.cjs +0 -13
- package/dist/signers/non-custodial/ncs-solana-signer.d.cts +0 -27
- package/dist/signers/non-custodial/ncs-solana-signer.d.ts +0 -27
- package/dist/signers/non-custodial/ncs-solana-signer.js +0 -13
- package/dist/signers/non-custodial/ncs-stellar-signer.cjs +0 -13
- package/dist/signers/non-custodial/ncs-stellar-signer.d.cts +0 -27
- package/dist/signers/non-custodial/ncs-stellar-signer.d.ts +0 -27
- package/dist/signers/non-custodial/ncs-stellar-signer.js +0 -13
- package/dist/signers/passkey.cjs +0 -7
- package/dist/signers/passkey.d.cts +0 -19
- package/dist/signers/passkey.d.ts +0 -19
- package/dist/signers/passkey.js +0 -7
- package/dist/signers/solana-api-key.cjs +0 -7
- package/dist/signers/solana-api-key.d.cts +0 -18
- package/dist/signers/solana-api-key.d.ts +0 -18
- package/dist/signers/solana-api-key.js +0 -7
- package/dist/signers/solana-external-wallet.cjs +0 -8
- package/dist/signers/solana-external-wallet.d.cts +0 -24
- package/dist/signers/solana-external-wallet.d.ts +0 -24
- package/dist/signers/solana-external-wallet.js +0 -8
- package/dist/signers/stellar-external-wallet.cjs +0 -7
- package/dist/signers/stellar-external-wallet.d.cts +0 -23
- package/dist/signers/stellar-external-wallet.d.ts +0 -23
- package/dist/signers/stellar-external-wallet.js +0 -7
- package/dist/signers/types.cjs +0 -9
- package/dist/signers/types.d.cts +0 -91
- package/dist/signers/types.d.ts +0 -91
- package/dist/signers/types.js +0 -9
- package/dist/utils/constants.cjs +0 -13
- package/dist/utils/constants.d.cts +0 -6
- package/dist/utils/constants.d.ts +0 -6
- package/dist/utils/constants.js +0 -13
- package/dist/utils/errors.cjs +0 -55
- package/dist/utils/errors.d.cts +0 -80
- package/dist/utils/errors.d.ts +0 -80
- package/dist/utils/errors.js +0 -55
- package/dist/utils/signer-validation.cjs +0 -10
- package/dist/utils/signer-validation.d.cts +0 -9
- package/dist/utils/signer-validation.d.ts +0 -9
- package/dist/utils/signer-validation.js +0 -10
- package/dist/wallets/__tests__/setup.cjs +0 -36
- package/dist/wallets/__tests__/setup.d.cts +0 -2
- package/dist/wallets/__tests__/setup.d.ts +0 -2
- package/dist/wallets/__tests__/setup.js +0 -36
- package/dist/wallets/__tests__/test-helpers.cjs +0 -93
- package/dist/wallets/__tests__/test-helpers.d.cts +0 -36
- package/dist/wallets/__tests__/test-helpers.d.ts +0 -36
- package/dist/wallets/__tests__/test-helpers.js +0 -93
- package/dist/wallets/evm.cjs +0 -25
- package/dist/wallets/evm.d.cts +0 -155
- package/dist/wallets/evm.d.ts +0 -155
- package/dist/wallets/evm.js +0 -25
- package/dist/wallets/solana.cjs +0 -26
- package/dist/wallets/solana.d.cts +0 -28
- package/dist/wallets/solana.d.ts +0 -28
- package/dist/wallets/solana.js +0 -26
- package/dist/wallets/stellar.cjs +0 -25
- package/dist/wallets/stellar.d.cts +0 -30
- package/dist/wallets/stellar.d.ts +0 -30
- package/dist/wallets/stellar.js +0 -25
- package/dist/wallets/types.cjs +0 -1
- package/dist/wallets/types.d.cts +0 -170
- package/dist/wallets/types.d.ts +0 -170
- package/dist/wallets/types.js +0 -0
- package/dist/wallets/wallet-factory.cjs +0 -33
- package/dist/wallets/wallet-factory.d.cts +0 -33
- package/dist/wallets/wallet-factory.d.ts +0 -33
- package/dist/wallets/wallet-factory.js +0 -33
- package/dist/wallets/wallet.cjs +0 -24
- package/dist/wallets/wallet.d.cts +0 -168
- package/dist/wallets/wallet.d.ts +0 -168
- package/dist/wallets/wallet.js +0 -24
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Signer, ApiKeyInternalSignerConfig } 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 SolanaApiKeySigner implements Signer {
|
|
10
|
-
private readonly config;
|
|
11
|
-
type: "api-key";
|
|
12
|
-
constructor(config: ApiKeyInternalSignerConfig);
|
|
13
|
-
locator(): string;
|
|
14
|
-
signMessage(): Promise<never>;
|
|
15
|
-
signTransaction(): Promise<never>;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export { SolanaApiKeySigner };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkQ5KNPVYIcjs = require('../chunk-Q5KNPVYI.cjs');
|
|
4
|
-
require('../chunk-XC2V34TS.cjs');
|
|
5
|
-
require('../chunk-UO2J2ZB2.cjs');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
exports.SolanaExternalWalletSigner = _chunkQ5KNPVYIcjs.SolanaExternalWalletSigner;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { VersionedTransaction } from '@solana/web3.js';
|
|
2
|
-
import { Signer, ExternalWalletInternalSignerConfig } from './types.cjs';
|
|
3
|
-
import { SolanaChain } from '../chains/chains.cjs';
|
|
4
|
-
import 'ox';
|
|
5
|
-
import '@crossmint/client-sdk-window';
|
|
6
|
-
import '@crossmint/client-signers';
|
|
7
|
-
import '@crossmint/common-sdk-base';
|
|
8
|
-
import 'viem';
|
|
9
|
-
|
|
10
|
-
declare class SolanaExternalWalletSigner implements Signer {
|
|
11
|
-
private config;
|
|
12
|
-
type: "external-wallet";
|
|
13
|
-
private _address;
|
|
14
|
-
onSignTransaction?: (transaction: VersionedTransaction) => Promise<VersionedTransaction>;
|
|
15
|
-
constructor(config: ExternalWalletInternalSignerConfig<SolanaChain>);
|
|
16
|
-
address(): string;
|
|
17
|
-
locator(): string;
|
|
18
|
-
signMessage(): Promise<never>;
|
|
19
|
-
signTransaction(transaction: string): Promise<{
|
|
20
|
-
signature: string;
|
|
21
|
-
}>;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export { SolanaExternalWalletSigner };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { VersionedTransaction } from '@solana/web3.js';
|
|
2
|
-
import { Signer, ExternalWalletInternalSignerConfig } from './types.js';
|
|
3
|
-
import { SolanaChain } from '../chains/chains.js';
|
|
4
|
-
import 'ox';
|
|
5
|
-
import '@crossmint/client-sdk-window';
|
|
6
|
-
import '@crossmint/client-signers';
|
|
7
|
-
import '@crossmint/common-sdk-base';
|
|
8
|
-
import 'viem';
|
|
9
|
-
|
|
10
|
-
declare class SolanaExternalWalletSigner implements Signer {
|
|
11
|
-
private config;
|
|
12
|
-
type: "external-wallet";
|
|
13
|
-
private _address;
|
|
14
|
-
onSignTransaction?: (transaction: VersionedTransaction) => Promise<VersionedTransaction>;
|
|
15
|
-
constructor(config: ExternalWalletInternalSignerConfig<SolanaChain>);
|
|
16
|
-
address(): string;
|
|
17
|
-
locator(): string;
|
|
18
|
-
signMessage(): Promise<never>;
|
|
19
|
-
signTransaction(transaction: string): Promise<{
|
|
20
|
-
signature: string;
|
|
21
|
-
}>;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export { SolanaExternalWalletSigner };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Signer, ExternalWalletInternalSignerConfig } from './types.cjs';
|
|
2
|
-
import { StellarChain } from '../chains/chains.cjs';
|
|
3
|
-
import 'ox';
|
|
4
|
-
import '@crossmint/client-sdk-window';
|
|
5
|
-
import '@crossmint/client-signers';
|
|
6
|
-
import '@crossmint/common-sdk-base';
|
|
7
|
-
import 'viem';
|
|
8
|
-
|
|
9
|
-
declare class StellarExternalWalletSigner implements Signer {
|
|
10
|
-
private config;
|
|
11
|
-
type: "external-wallet";
|
|
12
|
-
private _address;
|
|
13
|
-
onSignStellarTransaction?: (payload: string) => Promise<string>;
|
|
14
|
-
constructor(config: ExternalWalletInternalSignerConfig<StellarChain>);
|
|
15
|
-
address(): string;
|
|
16
|
-
locator(): string;
|
|
17
|
-
signMessage(): Promise<never>;
|
|
18
|
-
signTransaction(payload: string): Promise<{
|
|
19
|
-
signature: string;
|
|
20
|
-
}>;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export { StellarExternalWalletSigner };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Signer, ExternalWalletInternalSignerConfig } from './types.js';
|
|
2
|
-
import { StellarChain } from '../chains/chains.js';
|
|
3
|
-
import 'ox';
|
|
4
|
-
import '@crossmint/client-sdk-window';
|
|
5
|
-
import '@crossmint/client-signers';
|
|
6
|
-
import '@crossmint/common-sdk-base';
|
|
7
|
-
import 'viem';
|
|
8
|
-
|
|
9
|
-
declare class StellarExternalWalletSigner implements Signer {
|
|
10
|
-
private config;
|
|
11
|
-
type: "external-wallet";
|
|
12
|
-
private _address;
|
|
13
|
-
onSignStellarTransaction?: (payload: string) => Promise<string>;
|
|
14
|
-
constructor(config: ExternalWalletInternalSignerConfig<StellarChain>);
|
|
15
|
-
address(): string;
|
|
16
|
-
locator(): string;
|
|
17
|
-
signMessage(): Promise<never>;
|
|
18
|
-
signTransaction(payload: string): Promise<{
|
|
19
|
-
signature: string;
|
|
20
|
-
}>;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export { StellarExternalWalletSigner };
|
package/dist/signers/types.cjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _chunkRHR6P2KPcjs = require('../chunk-RHR6P2KP.cjs');
|
|
5
|
-
require('../chunk-UO2J2ZB2.cjs');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
exports.AuthRejectedError = _chunkRHR6P2KPcjs.AuthRejectedError; exports.isExportableSigner = _chunkRHR6P2KPcjs.isExportableSigner;
|
package/dist/signers/types.d.cts
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { WebAuthnP256 } from 'ox';
|
|
2
|
-
import { HandshakeParent } from '@crossmint/client-sdk-window';
|
|
3
|
-
import { exportSignerOutboundEvents, exportSignerInboundEvents, signerOutboundEvents, signerInboundEvents } from '@crossmint/client-signers';
|
|
4
|
-
import { SolanaExternalWalletSignerConfig, StellarExternalWalletSignerConfig, EvmExternalWalletSignerConfig, Crossmint } from '@crossmint/common-sdk-base';
|
|
5
|
-
export { EvmExternalWalletSignerConfig, GenericEIP1193Provider, SolanaExternalWalletSignerConfig, StellarExternalWalletSignerConfig } from '@crossmint/common-sdk-base';
|
|
6
|
-
import { Chain, SolanaChain, StellarChain } from '../chains/chains.cjs';
|
|
7
|
-
import 'viem';
|
|
8
|
-
|
|
9
|
-
declare class AuthRejectedError extends Error {
|
|
10
|
-
constructor();
|
|
11
|
-
}
|
|
12
|
-
type EmailSignerConfig = {
|
|
13
|
-
type: "email";
|
|
14
|
-
email?: string;
|
|
15
|
-
onAuthRequired?: (needsAuth: boolean, sendEmailWithOtp: () => Promise<void>, verifyOtp: (otp: string) => Promise<void>, reject: () => void) => Promise<void>;
|
|
16
|
-
};
|
|
17
|
-
type PhoneSignerConfig = {
|
|
18
|
-
type: "phone";
|
|
19
|
-
phone?: string;
|
|
20
|
-
onAuthRequired?: (needsAuth: boolean, sendEmailWithOtp: () => Promise<void>, verifyOtp: (otp: string) => Promise<void>, reject: () => void) => Promise<void>;
|
|
21
|
-
};
|
|
22
|
-
type NonCustodialSignerType = PhoneSignerConfig["type"] | EmailSignerConfig["type"];
|
|
23
|
-
type ExternalWalletSignerConfigForChain<C extends Chain> = C extends SolanaChain ? SolanaExternalWalletSignerConfig : C extends StellarChain ? StellarExternalWalletSignerConfig : EvmExternalWalletSignerConfig;
|
|
24
|
-
type ApiKeySignerConfig = {
|
|
25
|
-
type: "api-key";
|
|
26
|
-
};
|
|
27
|
-
type BaseSignerConfig<C extends Chain> = ExternalWalletSignerConfigForChain<C> | ApiKeySignerConfig;
|
|
28
|
-
type PasskeySignerConfig = {
|
|
29
|
-
type: "passkey";
|
|
30
|
-
name?: string;
|
|
31
|
-
onCreatePasskey?: (name: string) => Promise<{
|
|
32
|
-
id: string;
|
|
33
|
-
publicKey: {
|
|
34
|
-
x: string;
|
|
35
|
-
y: string;
|
|
36
|
-
};
|
|
37
|
-
}>;
|
|
38
|
-
onSignWithPasskey?: (message: string) => Promise<PasskeySignResult>;
|
|
39
|
-
};
|
|
40
|
-
type BaseInternalSignerConfig = {
|
|
41
|
-
locator: string;
|
|
42
|
-
address: string;
|
|
43
|
-
crossmint: Crossmint;
|
|
44
|
-
clientTEEConnection?: HandshakeParent<typeof signerOutboundEvents, typeof signerInboundEvents>;
|
|
45
|
-
};
|
|
46
|
-
type EmailInternalSignerConfig = EmailSignerConfig & BaseInternalSignerConfig;
|
|
47
|
-
type PhoneInternalSignerConfig = PhoneSignerConfig & BaseInternalSignerConfig;
|
|
48
|
-
type PasskeyInternalSignerConfig = PasskeySignerConfig & {
|
|
49
|
-
locator: string;
|
|
50
|
-
id: string;
|
|
51
|
-
};
|
|
52
|
-
type ApiKeyInternalSignerConfig = ApiKeySignerConfig & {
|
|
53
|
-
locator: string;
|
|
54
|
-
address: string;
|
|
55
|
-
};
|
|
56
|
-
type ExternalWalletInternalSignerConfig<C extends Chain> = ExternalWalletSignerConfigForChain<C> & {
|
|
57
|
-
locator: string;
|
|
58
|
-
};
|
|
59
|
-
type InternalSignerConfig<C extends Chain> = EmailInternalSignerConfig | PhoneInternalSignerConfig | PasskeyInternalSignerConfig | ApiKeyInternalSignerConfig | ExternalWalletInternalSignerConfig<C>;
|
|
60
|
-
type BaseSignResult = {
|
|
61
|
-
signature: string;
|
|
62
|
-
};
|
|
63
|
-
type PasskeySignResult = {
|
|
64
|
-
signature: {
|
|
65
|
-
r: string;
|
|
66
|
-
s: string;
|
|
67
|
-
};
|
|
68
|
-
metadata: WebAuthnP256.SignMetadata;
|
|
69
|
-
};
|
|
70
|
-
type SignerConfigForChain<C extends Chain> = C extends SolanaChain ? EmailSignerConfig | PhoneSignerConfig | BaseSignerConfig<C> : C extends StellarChain ? EmailSignerConfig | PhoneSignerConfig | BaseSignerConfig<C> : EmailSignerConfig | PhoneSignerConfig | PasskeySignerConfig | BaseSignerConfig<C>;
|
|
71
|
-
type SignResultMap = {
|
|
72
|
-
email: BaseSignResult;
|
|
73
|
-
phone: BaseSignResult;
|
|
74
|
-
"api-key": BaseSignResult;
|
|
75
|
-
"external-wallet": BaseSignResult;
|
|
76
|
-
passkey: PasskeySignResult;
|
|
77
|
-
};
|
|
78
|
-
interface Signer<T extends keyof SignResultMap = keyof SignResultMap> {
|
|
79
|
-
type: T;
|
|
80
|
-
locator(): string;
|
|
81
|
-
address?(): string;
|
|
82
|
-
signMessage(message: string): Promise<SignResultMap[T]>;
|
|
83
|
-
signTransaction(transaction: string): Promise<SignResultMap[T]>;
|
|
84
|
-
}
|
|
85
|
-
interface ExportableSigner extends Signer {
|
|
86
|
-
_exportPrivateKey: (exportTEEConnection: ExportSignerTEEConnection) => Promise<void>;
|
|
87
|
-
}
|
|
88
|
-
declare function isExportableSigner(signer: Signer): signer is ExportableSigner;
|
|
89
|
-
type ExportSignerTEEConnection = HandshakeParent<typeof exportSignerOutboundEvents, typeof exportSignerInboundEvents>;
|
|
90
|
-
|
|
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 };
|
package/dist/signers/types.d.ts
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { WebAuthnP256 } from 'ox';
|
|
2
|
-
import { HandshakeParent } from '@crossmint/client-sdk-window';
|
|
3
|
-
import { exportSignerOutboundEvents, exportSignerInboundEvents, signerOutboundEvents, signerInboundEvents } from '@crossmint/client-signers';
|
|
4
|
-
import { SolanaExternalWalletSignerConfig, StellarExternalWalletSignerConfig, EvmExternalWalletSignerConfig, Crossmint } from '@crossmint/common-sdk-base';
|
|
5
|
-
export { EvmExternalWalletSignerConfig, GenericEIP1193Provider, SolanaExternalWalletSignerConfig, StellarExternalWalletSignerConfig } from '@crossmint/common-sdk-base';
|
|
6
|
-
import { Chain, SolanaChain, StellarChain } from '../chains/chains.js';
|
|
7
|
-
import 'viem';
|
|
8
|
-
|
|
9
|
-
declare class AuthRejectedError extends Error {
|
|
10
|
-
constructor();
|
|
11
|
-
}
|
|
12
|
-
type EmailSignerConfig = {
|
|
13
|
-
type: "email";
|
|
14
|
-
email?: string;
|
|
15
|
-
onAuthRequired?: (needsAuth: boolean, sendEmailWithOtp: () => Promise<void>, verifyOtp: (otp: string) => Promise<void>, reject: () => void) => Promise<void>;
|
|
16
|
-
};
|
|
17
|
-
type PhoneSignerConfig = {
|
|
18
|
-
type: "phone";
|
|
19
|
-
phone?: string;
|
|
20
|
-
onAuthRequired?: (needsAuth: boolean, sendEmailWithOtp: () => Promise<void>, verifyOtp: (otp: string) => Promise<void>, reject: () => void) => Promise<void>;
|
|
21
|
-
};
|
|
22
|
-
type NonCustodialSignerType = PhoneSignerConfig["type"] | EmailSignerConfig["type"];
|
|
23
|
-
type ExternalWalletSignerConfigForChain<C extends Chain> = C extends SolanaChain ? SolanaExternalWalletSignerConfig : C extends StellarChain ? StellarExternalWalletSignerConfig : EvmExternalWalletSignerConfig;
|
|
24
|
-
type ApiKeySignerConfig = {
|
|
25
|
-
type: "api-key";
|
|
26
|
-
};
|
|
27
|
-
type BaseSignerConfig<C extends Chain> = ExternalWalletSignerConfigForChain<C> | ApiKeySignerConfig;
|
|
28
|
-
type PasskeySignerConfig = {
|
|
29
|
-
type: "passkey";
|
|
30
|
-
name?: string;
|
|
31
|
-
onCreatePasskey?: (name: string) => Promise<{
|
|
32
|
-
id: string;
|
|
33
|
-
publicKey: {
|
|
34
|
-
x: string;
|
|
35
|
-
y: string;
|
|
36
|
-
};
|
|
37
|
-
}>;
|
|
38
|
-
onSignWithPasskey?: (message: string) => Promise<PasskeySignResult>;
|
|
39
|
-
};
|
|
40
|
-
type BaseInternalSignerConfig = {
|
|
41
|
-
locator: string;
|
|
42
|
-
address: string;
|
|
43
|
-
crossmint: Crossmint;
|
|
44
|
-
clientTEEConnection?: HandshakeParent<typeof signerOutboundEvents, typeof signerInboundEvents>;
|
|
45
|
-
};
|
|
46
|
-
type EmailInternalSignerConfig = EmailSignerConfig & BaseInternalSignerConfig;
|
|
47
|
-
type PhoneInternalSignerConfig = PhoneSignerConfig & BaseInternalSignerConfig;
|
|
48
|
-
type PasskeyInternalSignerConfig = PasskeySignerConfig & {
|
|
49
|
-
locator: string;
|
|
50
|
-
id: string;
|
|
51
|
-
};
|
|
52
|
-
type ApiKeyInternalSignerConfig = ApiKeySignerConfig & {
|
|
53
|
-
locator: string;
|
|
54
|
-
address: string;
|
|
55
|
-
};
|
|
56
|
-
type ExternalWalletInternalSignerConfig<C extends Chain> = ExternalWalletSignerConfigForChain<C> & {
|
|
57
|
-
locator: string;
|
|
58
|
-
};
|
|
59
|
-
type InternalSignerConfig<C extends Chain> = EmailInternalSignerConfig | PhoneInternalSignerConfig | PasskeyInternalSignerConfig | ApiKeyInternalSignerConfig | ExternalWalletInternalSignerConfig<C>;
|
|
60
|
-
type BaseSignResult = {
|
|
61
|
-
signature: string;
|
|
62
|
-
};
|
|
63
|
-
type PasskeySignResult = {
|
|
64
|
-
signature: {
|
|
65
|
-
r: string;
|
|
66
|
-
s: string;
|
|
67
|
-
};
|
|
68
|
-
metadata: WebAuthnP256.SignMetadata;
|
|
69
|
-
};
|
|
70
|
-
type SignerConfigForChain<C extends Chain> = C extends SolanaChain ? EmailSignerConfig | PhoneSignerConfig | BaseSignerConfig<C> : C extends StellarChain ? EmailSignerConfig | PhoneSignerConfig | BaseSignerConfig<C> : EmailSignerConfig | PhoneSignerConfig | PasskeySignerConfig | BaseSignerConfig<C>;
|
|
71
|
-
type SignResultMap = {
|
|
72
|
-
email: BaseSignResult;
|
|
73
|
-
phone: BaseSignResult;
|
|
74
|
-
"api-key": BaseSignResult;
|
|
75
|
-
"external-wallet": BaseSignResult;
|
|
76
|
-
passkey: PasskeySignResult;
|
|
77
|
-
};
|
|
78
|
-
interface Signer<T extends keyof SignResultMap = keyof SignResultMap> {
|
|
79
|
-
type: T;
|
|
80
|
-
locator(): string;
|
|
81
|
-
address?(): string;
|
|
82
|
-
signMessage(message: string): Promise<SignResultMap[T]>;
|
|
83
|
-
signTransaction(transaction: string): Promise<SignResultMap[T]>;
|
|
84
|
-
}
|
|
85
|
-
interface ExportableSigner extends Signer {
|
|
86
|
-
_exportPrivateKey: (exportTEEConnection: ExportSignerTEEConnection) => Promise<void>;
|
|
87
|
-
}
|
|
88
|
-
declare function isExportableSigner(signer: Signer): signer is ExportableSigner;
|
|
89
|
-
type ExportSignerTEEConnection = HandshakeParent<typeof exportSignerOutboundEvents, typeof exportSignerInboundEvents>;
|
|
90
|
-
|
|
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 };
|
package/dist/signers/types.js
DELETED
package/dist/utils/constants.cjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _chunkR4AW5ADGcjs = require('../chunk-R4AW5ADG.cjs');
|
|
7
|
-
require('../chunk-UO2J2ZB2.cjs');
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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;
|
package/dist/utils/constants.js
DELETED
package/dist/utils/errors.cjs
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
var _chunkXC2V34TScjs = require('../chunk-XC2V34TS.cjs');
|
|
28
|
-
require('../chunk-UO2J2ZB2.cjs');
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
exports.InvalidApiKeyError = _chunkXC2V34TScjs.InvalidApiKeyError; exports.InvalidEnvironmentError = _chunkXC2V34TScjs.InvalidEnvironmentError; exports.InvalidMessageFormatError = _chunkXC2V34TScjs.InvalidMessageFormatError; exports.InvalidSignerError = _chunkXC2V34TScjs.InvalidSignerError; exports.InvalidTypedDataError = _chunkXC2V34TScjs.InvalidTypedDataError; exports.InvalidWalletConfigError = _chunkXC2V34TScjs.InvalidWalletConfigError; exports.MessageSigningNotSupportedError = _chunkXC2V34TScjs.MessageSigningNotSupportedError; exports.PendingApprovalsError = _chunkXC2V34TScjs.PendingApprovalsError; exports.SignatureFailedError = _chunkXC2V34TScjs.SignatureFailedError; exports.SignatureNotAvailableError = _chunkXC2V34TScjs.SignatureNotAvailableError; exports.SignatureNotCreatedError = _chunkXC2V34TScjs.SignatureNotCreatedError; exports.SignatureNotFoundError = _chunkXC2V34TScjs.SignatureNotFoundError; exports.SignerTypeMismatchError = _chunkXC2V34TScjs.SignerTypeMismatchError; exports.SigningFailedError = _chunkXC2V34TScjs.SigningFailedError; exports.TransactionAwaitingApprovalError = _chunkXC2V34TScjs.TransactionAwaitingApprovalError; exports.TransactionConfirmationTimeoutError = _chunkXC2V34TScjs.TransactionConfirmationTimeoutError; exports.TransactionFailedError = _chunkXC2V34TScjs.TransactionFailedError; exports.TransactionHashNotFoundError = _chunkXC2V34TScjs.TransactionHashNotFoundError; exports.TransactionNotAvailableError = _chunkXC2V34TScjs.TransactionNotAvailableError; exports.TransactionNotCreatedError = _chunkXC2V34TScjs.TransactionNotCreatedError; exports.TransactionSendingFailedError = _chunkXC2V34TScjs.TransactionSendingFailedError; exports.WalletCreationError = _chunkXC2V34TScjs.WalletCreationError; exports.WalletNotAvailableError = _chunkXC2V34TScjs.WalletNotAvailableError; exports.WalletTypeMismatchError = _chunkXC2V34TScjs.WalletTypeMismatchError; exports.WalletTypeNotSupportedError = _chunkXC2V34TScjs.WalletTypeNotSupportedError;
|
package/dist/utils/errors.d.cts
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { CrossmintSDKError } from '@crossmint/common-sdk-base';
|
|
2
|
-
|
|
3
|
-
declare class InvalidApiKeyError extends CrossmintSDKError {
|
|
4
|
-
constructor(message: string, details?: string);
|
|
5
|
-
}
|
|
6
|
-
declare class InvalidEnvironmentError extends CrossmintSDKError {
|
|
7
|
-
constructor(message: string, details?: string);
|
|
8
|
-
}
|
|
9
|
-
declare class WalletTypeNotSupportedError extends CrossmintSDKError {
|
|
10
|
-
constructor(message: string, details?: string);
|
|
11
|
-
}
|
|
12
|
-
declare class WalletNotAvailableError extends CrossmintSDKError {
|
|
13
|
-
constructor(message: string, details?: string);
|
|
14
|
-
}
|
|
15
|
-
declare class InvalidWalletConfigError extends CrossmintSDKError {
|
|
16
|
-
constructor(message: string, details?: string);
|
|
17
|
-
}
|
|
18
|
-
declare class WalletCreationError extends CrossmintSDKError {
|
|
19
|
-
constructor(message: string, details?: string);
|
|
20
|
-
}
|
|
21
|
-
declare class WalletTypeMismatchError extends CrossmintSDKError {
|
|
22
|
-
constructor(message: string, details?: string);
|
|
23
|
-
}
|
|
24
|
-
declare class SignerTypeMismatchError extends CrossmintSDKError {
|
|
25
|
-
constructor(message: string, details?: string);
|
|
26
|
-
}
|
|
27
|
-
declare class InvalidSignerError extends CrossmintSDKError {
|
|
28
|
-
constructor(message: string, details?: string);
|
|
29
|
-
}
|
|
30
|
-
declare class InvalidMessageFormatError extends CrossmintSDKError {
|
|
31
|
-
constructor(message: string, details?: string);
|
|
32
|
-
}
|
|
33
|
-
declare class InvalidTypedDataError extends CrossmintSDKError {
|
|
34
|
-
constructor(message: string, details?: string);
|
|
35
|
-
}
|
|
36
|
-
declare class SignatureNotFoundError extends CrossmintSDKError {
|
|
37
|
-
constructor(message: string, details?: string);
|
|
38
|
-
}
|
|
39
|
-
declare class SigningFailedError extends CrossmintSDKError {
|
|
40
|
-
constructor(message: string, details?: string);
|
|
41
|
-
}
|
|
42
|
-
declare class MessageSigningNotSupportedError extends CrossmintSDKError {
|
|
43
|
-
constructor(message: string, details?: string);
|
|
44
|
-
}
|
|
45
|
-
declare class SignatureNotCreatedError extends CrossmintSDKError {
|
|
46
|
-
constructor(message: string, details?: string);
|
|
47
|
-
}
|
|
48
|
-
declare class SignatureNotAvailableError extends CrossmintSDKError {
|
|
49
|
-
constructor(message: string, details?: string);
|
|
50
|
-
}
|
|
51
|
-
declare class SignatureFailedError extends CrossmintSDKError {
|
|
52
|
-
constructor(message: string, details?: string);
|
|
53
|
-
}
|
|
54
|
-
declare class TransactionNotCreatedError extends CrossmintSDKError {
|
|
55
|
-
constructor(message: string, details?: string);
|
|
56
|
-
}
|
|
57
|
-
declare class TransactionNotAvailableError extends CrossmintSDKError {
|
|
58
|
-
constructor(message: string, details?: string);
|
|
59
|
-
}
|
|
60
|
-
declare class TransactionConfirmationTimeoutError extends CrossmintSDKError {
|
|
61
|
-
constructor(message: string, details?: string);
|
|
62
|
-
}
|
|
63
|
-
declare class TransactionSendingFailedError extends CrossmintSDKError {
|
|
64
|
-
constructor(message: string, details?: string);
|
|
65
|
-
}
|
|
66
|
-
declare class TransactionAwaitingApprovalError extends CrossmintSDKError {
|
|
67
|
-
constructor(message: string, details?: string);
|
|
68
|
-
}
|
|
69
|
-
declare class TransactionHashNotFoundError extends CrossmintSDKError {
|
|
70
|
-
constructor(message: string, details?: string);
|
|
71
|
-
}
|
|
72
|
-
declare class TransactionFailedError extends CrossmintSDKError {
|
|
73
|
-
constructor(message: string, details?: string);
|
|
74
|
-
}
|
|
75
|
-
declare class PendingApprovalsError extends CrossmintSDKError {
|
|
76
|
-
constructor(message: string, details?: string);
|
|
77
|
-
}
|
|
78
|
-
type WalletError = InvalidApiKeyError | InvalidEnvironmentError | WalletTypeNotSupportedError | WalletNotAvailableError | InvalidWalletConfigError | WalletCreationError | WalletTypeMismatchError | SignerTypeMismatchError | InvalidSignerError | InvalidMessageFormatError | InvalidTypedDataError | SignatureNotFoundError | SigningFailedError | MessageSigningNotSupportedError | SignatureNotCreatedError | SignatureNotAvailableError | SignatureFailedError | TransactionNotCreatedError | TransactionNotAvailableError | TransactionConfirmationTimeoutError | TransactionSendingFailedError | TransactionAwaitingApprovalError | TransactionHashNotFoundError | TransactionFailedError | PendingApprovalsError;
|
|
79
|
-
|
|
80
|
-
export { InvalidApiKeyError, InvalidEnvironmentError, InvalidMessageFormatError, InvalidSignerError, InvalidTypedDataError, InvalidWalletConfigError, MessageSigningNotSupportedError, PendingApprovalsError, SignatureFailedError, SignatureNotAvailableError, SignatureNotCreatedError, SignatureNotFoundError, SignerTypeMismatchError, SigningFailedError, TransactionAwaitingApprovalError, TransactionConfirmationTimeoutError, TransactionFailedError, TransactionHashNotFoundError, TransactionNotAvailableError, TransactionNotCreatedError, TransactionSendingFailedError, WalletCreationError, type WalletError, WalletNotAvailableError, WalletTypeMismatchError, WalletTypeNotSupportedError };
|
package/dist/utils/errors.d.ts
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { CrossmintSDKError } from '@crossmint/common-sdk-base';
|
|
2
|
-
|
|
3
|
-
declare class InvalidApiKeyError extends CrossmintSDKError {
|
|
4
|
-
constructor(message: string, details?: string);
|
|
5
|
-
}
|
|
6
|
-
declare class InvalidEnvironmentError extends CrossmintSDKError {
|
|
7
|
-
constructor(message: string, details?: string);
|
|
8
|
-
}
|
|
9
|
-
declare class WalletTypeNotSupportedError extends CrossmintSDKError {
|
|
10
|
-
constructor(message: string, details?: string);
|
|
11
|
-
}
|
|
12
|
-
declare class WalletNotAvailableError extends CrossmintSDKError {
|
|
13
|
-
constructor(message: string, details?: string);
|
|
14
|
-
}
|
|
15
|
-
declare class InvalidWalletConfigError extends CrossmintSDKError {
|
|
16
|
-
constructor(message: string, details?: string);
|
|
17
|
-
}
|
|
18
|
-
declare class WalletCreationError extends CrossmintSDKError {
|
|
19
|
-
constructor(message: string, details?: string);
|
|
20
|
-
}
|
|
21
|
-
declare class WalletTypeMismatchError extends CrossmintSDKError {
|
|
22
|
-
constructor(message: string, details?: string);
|
|
23
|
-
}
|
|
24
|
-
declare class SignerTypeMismatchError extends CrossmintSDKError {
|
|
25
|
-
constructor(message: string, details?: string);
|
|
26
|
-
}
|
|
27
|
-
declare class InvalidSignerError extends CrossmintSDKError {
|
|
28
|
-
constructor(message: string, details?: string);
|
|
29
|
-
}
|
|
30
|
-
declare class InvalidMessageFormatError extends CrossmintSDKError {
|
|
31
|
-
constructor(message: string, details?: string);
|
|
32
|
-
}
|
|
33
|
-
declare class InvalidTypedDataError extends CrossmintSDKError {
|
|
34
|
-
constructor(message: string, details?: string);
|
|
35
|
-
}
|
|
36
|
-
declare class SignatureNotFoundError extends CrossmintSDKError {
|
|
37
|
-
constructor(message: string, details?: string);
|
|
38
|
-
}
|
|
39
|
-
declare class SigningFailedError extends CrossmintSDKError {
|
|
40
|
-
constructor(message: string, details?: string);
|
|
41
|
-
}
|
|
42
|
-
declare class MessageSigningNotSupportedError extends CrossmintSDKError {
|
|
43
|
-
constructor(message: string, details?: string);
|
|
44
|
-
}
|
|
45
|
-
declare class SignatureNotCreatedError extends CrossmintSDKError {
|
|
46
|
-
constructor(message: string, details?: string);
|
|
47
|
-
}
|
|
48
|
-
declare class SignatureNotAvailableError extends CrossmintSDKError {
|
|
49
|
-
constructor(message: string, details?: string);
|
|
50
|
-
}
|
|
51
|
-
declare class SignatureFailedError extends CrossmintSDKError {
|
|
52
|
-
constructor(message: string, details?: string);
|
|
53
|
-
}
|
|
54
|
-
declare class TransactionNotCreatedError extends CrossmintSDKError {
|
|
55
|
-
constructor(message: string, details?: string);
|
|
56
|
-
}
|
|
57
|
-
declare class TransactionNotAvailableError extends CrossmintSDKError {
|
|
58
|
-
constructor(message: string, details?: string);
|
|
59
|
-
}
|
|
60
|
-
declare class TransactionConfirmationTimeoutError extends CrossmintSDKError {
|
|
61
|
-
constructor(message: string, details?: string);
|
|
62
|
-
}
|
|
63
|
-
declare class TransactionSendingFailedError extends CrossmintSDKError {
|
|
64
|
-
constructor(message: string, details?: string);
|
|
65
|
-
}
|
|
66
|
-
declare class TransactionAwaitingApprovalError extends CrossmintSDKError {
|
|
67
|
-
constructor(message: string, details?: string);
|
|
68
|
-
}
|
|
69
|
-
declare class TransactionHashNotFoundError extends CrossmintSDKError {
|
|
70
|
-
constructor(message: string, details?: string);
|
|
71
|
-
}
|
|
72
|
-
declare class TransactionFailedError extends CrossmintSDKError {
|
|
73
|
-
constructor(message: string, details?: string);
|
|
74
|
-
}
|
|
75
|
-
declare class PendingApprovalsError extends CrossmintSDKError {
|
|
76
|
-
constructor(message: string, details?: string);
|
|
77
|
-
}
|
|
78
|
-
type WalletError = InvalidApiKeyError | InvalidEnvironmentError | WalletTypeNotSupportedError | WalletNotAvailableError | InvalidWalletConfigError | WalletCreationError | WalletTypeMismatchError | SignerTypeMismatchError | InvalidSignerError | InvalidMessageFormatError | InvalidTypedDataError | SignatureNotFoundError | SigningFailedError | MessageSigningNotSupportedError | SignatureNotCreatedError | SignatureNotAvailableError | SignatureFailedError | TransactionNotCreatedError | TransactionNotAvailableError | TransactionConfirmationTimeoutError | TransactionSendingFailedError | TransactionAwaitingApprovalError | TransactionHashNotFoundError | TransactionFailedError | PendingApprovalsError;
|
|
79
|
-
|
|
80
|
-
export { InvalidApiKeyError, InvalidEnvironmentError, InvalidMessageFormatError, InvalidSignerError, InvalidTypedDataError, InvalidWalletConfigError, MessageSigningNotSupportedError, PendingApprovalsError, SignatureFailedError, SignatureNotAvailableError, SignatureNotCreatedError, SignatureNotFoundError, SignerTypeMismatchError, SigningFailedError, TransactionAwaitingApprovalError, TransactionConfirmationTimeoutError, TransactionFailedError, TransactionHashNotFoundError, TransactionNotAvailableError, TransactionNotCreatedError, TransactionSendingFailedError, WalletCreationError, type WalletError, WalletNotAvailableError, WalletTypeMismatchError, WalletTypeNotSupportedError };
|