@crossmint/client-sdk-smart-wallet 0.1.36 → 0.2.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.
- package/README.md +293 -0
- package/dist/abi/entryPoint.cjs +1 -0
- package/dist/abi/entryPoint.d.cts +777 -0
- package/dist/abi/entryPoint.d.ts +777 -0
- package/dist/abi/entryPoint.js +1 -0
- package/dist/abi/erc1155.cjs +1 -0
- package/dist/abi/erc1155.d.cts +254 -0
- package/dist/abi/erc1155.d.ts +254 -0
- package/dist/abi/erc1155.js +1 -0
- package/dist/abi/erc20.cjs +1 -0
- package/dist/abi/erc20.d.cts +170 -0
- package/dist/abi/erc20.d.ts +170 -0
- package/dist/abi/erc20.js +1 -0
- package/dist/abi/erc721.cjs +1 -0
- package/dist/abi/erc721.d.cts +247 -0
- package/dist/abi/erc721.d.ts +247 -0
- package/dist/abi/erc721.js +1 -0
- package/dist/apiService-D4DIxjMr.d.ts +136 -0
- package/dist/apiService-Dum8A8_6.d.cts +136 -0
- package/dist/apiService.cjs +1 -0
- package/dist/apiService.d.cts +9 -0
- package/dist/apiService.d.ts +9 -0
- package/dist/apiService.js +1 -0
- package/dist/{chunk-IUIBQFWY.cjs → chunk-23IWY6XV.cjs} +1 -1
- package/dist/chunk-2MQHIAJE.js +1 -0
- package/dist/chunk-4PMBBA3O.cjs +1 -0
- package/dist/chunk-5T3HB4Y6.js +1 -0
- package/dist/chunk-73LUJQGU.cjs +1 -0
- package/dist/chunk-75JNTS3U.js +1 -0
- package/dist/chunk-AS5VIM5V.cjs +1 -0
- package/dist/chunk-BCWZIVSQ.js +1 -0
- package/dist/{chunk-2TPNP5FL.cjs → chunk-D33JIUOQ.cjs} +1 -1
- package/dist/chunk-DB2QM3HB.js +1 -0
- package/dist/chunk-EMZ5NAG2.cjs +1 -0
- package/dist/chunk-GGKMZPIA.js +1 -0
- package/dist/chunk-I5RZI2HB.js +1 -0
- package/dist/chunk-J5SRLI35.cjs +1 -0
- package/dist/chunk-KXYDJTZS.cjs +1 -0
- package/dist/{chunk-2RB6U5DY.js → chunk-LJ43A5BN.js} +1 -1
- package/dist/chunk-LPLLPZFU.cjs +1 -0
- package/dist/chunk-MLTT5BGD.cjs +1 -0
- package/dist/chunk-NXTHA2ZL.js +1 -0
- package/dist/chunk-OWZ3LXVG.js +1 -0
- package/dist/chunk-Q23CHZRT.cjs +1 -0
- package/dist/chunk-Q6YGAHDR.cjs +1 -0
- package/dist/chunk-SVGKSKZD.cjs +1 -0
- package/dist/chunk-T5PL4ATW.js +1 -0
- package/dist/chunk-U2JMKBCC.cjs +1 -0
- package/dist/chunk-UBRUUSMF.js +1 -0
- package/dist/chunk-VEZ3PQGX.js +1 -0
- package/dist/chunk-Z3KARJF5.js +1 -0
- package/dist/error/index.cjs +1 -1
- package/dist/error/index.d.cts +25 -43
- package/dist/error/index.d.ts +25 -43
- package/dist/error/index.js +1 -1
- package/dist/error/processor.cjs +1 -1
- package/dist/error/processor.d.cts +0 -13
- package/dist/error/processor.d.ts +0 -13
- package/dist/error/processor.js +1 -1
- package/dist/evm/chains/definitions/story-testnet.cjs +1 -0
- package/dist/evm/chains/definitions/story-testnet.js +1 -0
- package/dist/evm/chains/definitions/story.cjs +1 -0
- package/dist/evm/chains/definitions/story.js +1 -0
- package/dist/evm/chains/index.cjs +1 -0
- package/dist/{blockchain/chains.d.cts → evm/chains/index.d.cts} +4 -7
- package/dist/{blockchain/chains.d.ts → evm/chains/index.d.ts} +4 -7
- package/dist/evm/chains/index.js +1 -0
- package/dist/evm/rpc.cjs +1 -0
- package/dist/{blockchain → evm}/rpc.d.cts +4 -3
- package/dist/{blockchain → evm}/rpc.d.ts +4 -3
- package/dist/evm/rpc.js +1 -0
- package/dist/evm/smartWalletClient.d.cts +59 -0
- package/dist/evm/smartWalletClient.d.ts +59 -0
- package/dist/evm/transfer.cjs +1 -0
- package/dist/evm/transfer.d.cts +8 -0
- package/dist/evm/transfer.d.ts +8 -0
- package/dist/evm/transfer.js +1 -0
- package/dist/evm/wallet.cjs +1 -0
- package/dist/evm/wallet.d.cts +9 -0
- package/dist/evm/wallet.d.ts +9 -0
- package/dist/evm/wallet.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +9 -20
- package/dist/index.d.ts +9 -20
- package/dist/index.js +1 -1
- package/dist/sdk.cjs +1 -0
- package/dist/{SmartWalletSDK.d.ts → sdk.d.cts} +18 -21
- package/dist/{SmartWalletSDK.d.cts → sdk.d.ts} +18 -21
- package/dist/sdk.js +1 -0
- package/dist/services/index.cjs +1 -1
- package/dist/services/index.js +1 -1
- package/dist/services/logger.cjs +1 -1
- package/dist/services/logger.js +1 -1
- package/dist/smartWalletService.cjs +1 -0
- package/dist/smartWalletService.d.cts +9 -0
- package/dist/smartWalletService.d.ts +9 -0
- package/dist/smartWalletService.js +1 -0
- package/dist/types/api.d.cts +195 -0
- package/dist/types/api.d.ts +195 -0
- package/dist/types/transfer.d.cts +46 -0
- package/dist/types/transfer.d.ts +46 -0
- package/dist/utils/constants.cjs +1 -1
- package/dist/utils/constants.d.cts +5 -6
- package/dist/utils/constants.d.ts +5 -6
- package/dist/utils/constants.js +1 -1
- package/dist/utils/index.cjs +1 -0
- package/dist/utils/index.d.cts +3 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +1 -0
- package/package.json +2 -7
- package/dist/SmartWalletSDK.cjs +0 -1
- package/dist/SmartWalletSDK.js +0 -1
- package/dist/api/CrossmintWalletService.cjs +0 -1
- package/dist/api/CrossmintWalletService.d.cts +0 -31
- package/dist/api/CrossmintWalletService.d.ts +0 -31
- package/dist/api/CrossmintWalletService.js +0 -1
- package/dist/blockchain/chains.cjs +0 -1
- package/dist/blockchain/chains.js +0 -1
- package/dist/blockchain/rpc.cjs +0 -1
- package/dist/blockchain/rpc.js +0 -1
- package/dist/blockchain/transfer.cjs +0 -1
- package/dist/blockchain/transfer.d.cts +0 -23
- package/dist/blockchain/transfer.d.ts +0 -23
- package/dist/blockchain/transfer.js +0 -1
- package/dist/blockchain/wallets/EVMSmartWallet.cjs +0 -1
- package/dist/blockchain/wallets/EVMSmartWallet.d.cts +0 -102
- package/dist/blockchain/wallets/EVMSmartWallet.d.ts +0 -102
- package/dist/blockchain/wallets/EVMSmartWallet.js +0 -1
- package/dist/blockchain/wallets/SendTransactionService.cjs +0 -1
- package/dist/blockchain/wallets/SendTransactionService.d.cts +0 -84
- package/dist/blockchain/wallets/SendTransactionService.d.ts +0 -84
- package/dist/blockchain/wallets/SendTransactionService.js +0 -1
- package/dist/blockchain/wallets/account/cache.cjs +0 -1
- package/dist/blockchain/wallets/account/cache.d.cts +0 -25
- package/dist/blockchain/wallets/account/cache.d.ts +0 -25
- package/dist/blockchain/wallets/account/cache.js +0 -1
- package/dist/blockchain/wallets/account/config.cjs +0 -1
- package/dist/blockchain/wallets/account/config.d.cts +0 -47
- package/dist/blockchain/wallets/account/config.d.ts +0 -47
- package/dist/blockchain/wallets/account/config.js +0 -1
- package/dist/blockchain/wallets/account/creator.cjs +0 -1
- package/dist/blockchain/wallets/account/creator.d.cts +0 -26
- package/dist/blockchain/wallets/account/creator.d.ts +0 -26
- package/dist/blockchain/wallets/account/creator.js +0 -1
- package/dist/blockchain/wallets/account/eoa.cjs +0 -1
- package/dist/blockchain/wallets/account/eoa.d.cts +0 -21
- package/dist/blockchain/wallets/account/eoa.d.ts +0 -21
- package/dist/blockchain/wallets/account/eoa.js +0 -1
- package/dist/blockchain/wallets/account/passkey.cjs +0 -1
- package/dist/blockchain/wallets/account/passkey.d.cts +0 -29
- package/dist/blockchain/wallets/account/passkey.d.ts +0 -29
- package/dist/blockchain/wallets/account/passkey.js +0 -1
- package/dist/blockchain/wallets/account/signer.cjs +0 -1
- package/dist/blockchain/wallets/account/signer.d.cts +0 -14
- package/dist/blockchain/wallets/account/signer.d.ts +0 -14
- package/dist/blockchain/wallets/account/signer.js +0 -1
- package/dist/blockchain/wallets/account/strategy.d.cts +0 -20
- package/dist/blockchain/wallets/account/strategy.d.ts +0 -20
- package/dist/blockchain/wallets/clientDecorator.cjs +0 -1
- package/dist/blockchain/wallets/clientDecorator.d.cts +0 -38
- package/dist/blockchain/wallets/clientDecorator.d.ts +0 -38
- package/dist/blockchain/wallets/clientDecorator.js +0 -1
- package/dist/blockchain/wallets/definitions/story-testnet.cjs +0 -1
- package/dist/blockchain/wallets/definitions/story-testnet.js +0 -1
- package/dist/blockchain/wallets/definitions/story.cjs +0 -1
- package/dist/blockchain/wallets/definitions/story.js +0 -1
- package/dist/blockchain/wallets/index.cjs +0 -1
- package/dist/blockchain/wallets/index.d.cts +0 -20
- package/dist/blockchain/wallets/index.d.ts +0 -20
- package/dist/blockchain/wallets/index.js +0 -1
- package/dist/blockchain/wallets/paymaster.cjs +0 -1
- package/dist/blockchain/wallets/paymaster.d.cts +0 -29
- package/dist/blockchain/wallets/paymaster.d.ts +0 -29
- package/dist/blockchain/wallets/paymaster.js +0 -1
- package/dist/blockchain/wallets/service.cjs +0 -1
- package/dist/blockchain/wallets/service.d.cts +0 -41
- package/dist/blockchain/wallets/service.d.ts +0 -41
- package/dist/blockchain/wallets/service.js +0 -1
- package/dist/chunk-2R6HK64N.cjs +0 -1
- package/dist/chunk-2ZFSHKM6.js +0 -1
- package/dist/chunk-3F6P4HUZ.js +0 -1
- package/dist/chunk-4YV6KMFQ.js +0 -1
- package/dist/chunk-6ODPWORJ.cjs +0 -1
- package/dist/chunk-7AVDZZGD.cjs +0 -1
- package/dist/chunk-7G7GOR7X.cjs +0 -1
- package/dist/chunk-ATQ4WGCW.js +0 -1
- package/dist/chunk-BII7Y2A3.cjs +0 -1
- package/dist/chunk-BJZQA5VC.js +0 -1
- package/dist/chunk-C3VZY7VJ.js +0 -1
- package/dist/chunk-CJBR5TGN.js +0 -3
- package/dist/chunk-CUTQYF3F.js +0 -1
- package/dist/chunk-D4NDUT36.js +0 -1
- package/dist/chunk-DIDKPOO2.cjs +0 -1
- package/dist/chunk-EBIEPPSD.js +0 -1
- package/dist/chunk-ETVJGLNY.js +0 -1
- package/dist/chunk-EVNFELF3.cjs +0 -3
- package/dist/chunk-FHNNZVNU.js +0 -1
- package/dist/chunk-FWARYLZ3.js +0 -1
- package/dist/chunk-GB35YMN4.cjs +0 -1
- package/dist/chunk-GGIAHBMC.js +0 -2
- package/dist/chunk-H4CMXNVK.js +0 -1
- package/dist/chunk-IQTGPM2U.cjs +0 -1
- package/dist/chunk-JYW5DCVU.js +0 -1
- package/dist/chunk-KCVR32TQ.cjs +0 -1
- package/dist/chunk-KREX6Z32.js +0 -1
- package/dist/chunk-KROX2DDP.cjs +0 -1
- package/dist/chunk-KYPTGHC6.cjs +0 -1
- package/dist/chunk-M4K3IZTT.cjs +0 -1
- package/dist/chunk-NLGILHJS.js +0 -1
- package/dist/chunk-NOTF3PP3.cjs +0 -1
- package/dist/chunk-NQUKI27M.cjs +0 -1
- package/dist/chunk-O2ACORII.cjs +0 -1
- package/dist/chunk-OXRLBURF.js +0 -1
- package/dist/chunk-PZ6Q22YJ.js +0 -1
- package/dist/chunk-S2XBSAGM.js +0 -1
- package/dist/chunk-S4V7TF5V.cjs +0 -2
- package/dist/chunk-SCXFZMLR.cjs +0 -1
- package/dist/chunk-STH2LE35.cjs +0 -1
- package/dist/chunk-SWWOVT47.cjs +0 -1
- package/dist/chunk-UG47CBKR.js +0 -1
- package/dist/chunk-UPURFW46.js +0 -1
- package/dist/chunk-WDKJ6P7K.js +0 -1
- package/dist/chunk-WJ6XJMRD.cjs +0 -1
- package/dist/chunk-XJGFG3RT.cjs +0 -1
- package/dist/chunk-XQ2K2K23.cjs +0 -1
- package/dist/chunk-XRZ2XPQM.js +0 -1
- package/dist/chunk-YVFO5W3R.cjs +0 -1
- package/dist/chunk-Z7AZOEVX.cjs +0 -1
- package/dist/chunk-ZQM4FEXV.js +0 -1
- package/dist/service-DqYCir8s.d.ts +0 -103
- package/dist/service-Ir-Qho-9.d.cts +0 -103
- package/dist/types/internal.cjs +0 -1
- package/dist/types/internal.d.cts +0 -14
- package/dist/types/internal.d.ts +0 -14
- package/dist/types/internal.js +0 -1
- package/dist/types/params.d.cts +0 -33
- package/dist/types/params.d.ts +0 -33
- package/dist/types/schema.cjs +0 -1
- package/dist/types/schema.d.cts +0 -241
- package/dist/types/schema.d.ts +0 -241
- package/dist/types/schema.js +0 -1
- package/dist/types/service.d.cts +0 -14
- package/dist/types/service.d.ts +0 -14
- package/dist/types/token.cjs +0 -1
- package/dist/types/token.d.cts +0 -35
- package/dist/types/token.d.ts +0 -35
- package/dist/types/token.js +0 -0
- package/dist/utils/api.cjs +0 -1
- package/dist/utils/api.d.cts +0 -4
- package/dist/utils/api.d.ts +0 -4
- package/dist/utils/api.js +0 -1
- package/dist/utils/blockchain.cjs +0 -1
- package/dist/utils/blockchain.d.cts +0 -7
- package/dist/utils/blockchain.d.ts +0 -7
- package/dist/utils/blockchain.js +0 -1
- package/dist/utils/environment.cjs +0 -1
- package/dist/utils/environment.d.cts +0 -3
- package/dist/utils/environment.d.ts +0 -3
- package/dist/utils/environment.js +0 -1
- package/dist/utils/helpers.cjs +0 -1
- package/dist/utils/helpers.d.cts +0 -4
- package/dist/utils/helpers.d.ts +0 -4
- package/dist/utils/helpers.js +0 -1
- package/dist/utils/signer.cjs +0 -1
- package/dist/utils/signer.d.cts +0 -15
- package/dist/utils/signer.d.ts +0 -15
- package/dist/utils/signer.js +0 -1
- package/dist/utils/test.cjs +0 -1
- package/dist/utils/test.d.cts +0 -18
- package/dist/utils/test.d.ts +0 -18
- package/dist/utils/test.js +0 -1
- /package/dist/{chunk-HQXF6VHP.cjs → chunk-5URY3C2T.cjs} +0 -0
- /package/dist/{chunk-DYVHPARQ.js → chunk-KVFFSUF4.js} +0 -0
- /package/dist/{chunk-GPZ7PHS6.cjs → chunk-MFUN74KH.cjs} +0 -0
- /package/dist/{chunk-NT7LBRZQ.js → chunk-XLACPZJJ.js} +0 -0
- /package/dist/{blockchain/wallets → evm/chains}/definitions/story-testnet.d.cts +0 -0
- /package/dist/{blockchain/wallets → evm/chains}/definitions/story-testnet.d.ts +0 -0
- /package/dist/{blockchain/wallets → evm/chains}/definitions/story.d.cts +0 -0
- /package/dist/{blockchain/wallets → evm/chains}/definitions/story.d.ts +0 -0
- /package/dist/{blockchain/wallets/account/strategy.cjs → evm/smartWalletClient.cjs} +0 -0
- /package/dist/{blockchain/wallets/account/strategy.js → evm/smartWalletClient.js} +0 -0
- /package/dist/types/{params.cjs → api.cjs} +0 -0
- /package/dist/types/{params.js → api.js} +0 -0
- /package/dist/types/{service.cjs → transfer.cjs} +0 -0
- /package/dist/types/{service.js → transfer.js} +0 -0
package/dist/error/index.d.cts
CHANGED
|
@@ -1,58 +1,40 @@
|
|
|
1
1
|
import { CrossmintSDKError, SmartWalletErrorCode } from '@crossmint/client-sdk-base';
|
|
2
|
-
import { a as SignerDisplay, P as PasskeyDisplay } from '../service-Ir-Qho-9.cjs';
|
|
3
|
-
import 'zod';
|
|
4
|
-
import '@zerodev/sdk';
|
|
5
|
-
import 'permissionless';
|
|
6
|
-
import 'permissionless/accounts';
|
|
7
|
-
import 'permissionless/types/entrypoint';
|
|
8
|
-
import 'viem';
|
|
9
|
-
import '../blockchain/chains.cjs';
|
|
10
|
-
import 'viem/chains';
|
|
11
|
-
import '@crossmint/common-sdk-base';
|
|
12
|
-
import '../types/schema.cjs';
|
|
13
|
-
import '@zerodev/passkey-validator';
|
|
14
|
-
import '../utils/constants.cjs';
|
|
15
|
-
import '../types/params.cjs';
|
|
16
2
|
|
|
17
3
|
declare class SmartWalletError extends CrossmintSDKError {
|
|
18
4
|
constructor(message: string, details?: string, code?: SmartWalletErrorCode);
|
|
19
5
|
}
|
|
20
|
-
declare class
|
|
21
|
-
|
|
22
|
-
readonly used?: SignerDisplay;
|
|
23
|
-
constructor(message: string, required: SignerDisplay, used?: SignerDisplay);
|
|
6
|
+
declare class InvalidApiKeyError extends CrossmintSDKError {
|
|
7
|
+
constructor(message: string, details?: string, code?: SmartWalletErrorCode);
|
|
24
8
|
}
|
|
25
|
-
declare class
|
|
26
|
-
|
|
27
|
-
readonly used?: PasskeyDisplay;
|
|
28
|
-
constructor(message: string, required: PasskeyDisplay, used?: PasskeyDisplay);
|
|
9
|
+
declare class WalletCreationError extends CrossmintSDKError {
|
|
10
|
+
constructor(message: string, details?: string, code?: SmartWalletErrorCode);
|
|
29
11
|
}
|
|
30
|
-
declare class
|
|
31
|
-
|
|
32
|
-
constructor(userId: string);
|
|
12
|
+
declare class InvalidChainError extends CrossmintSDKError {
|
|
13
|
+
constructor(message: string, details?: string, code?: SmartWalletErrorCode);
|
|
33
14
|
}
|
|
34
|
-
declare class
|
|
35
|
-
|
|
36
|
-
constructor(passkeyName: string);
|
|
15
|
+
declare class InvalidTransferChainError extends CrossmintSDKError {
|
|
16
|
+
constructor(message: string, details?: string, code?: SmartWalletErrorCode);
|
|
37
17
|
}
|
|
38
|
-
declare class
|
|
39
|
-
|
|
40
|
-
constructor(passkeyName: string);
|
|
18
|
+
declare class InvalidMessageFormatError extends CrossmintSDKError {
|
|
19
|
+
constructor(message: string, details?: string, code?: SmartWalletErrorCode);
|
|
41
20
|
}
|
|
42
|
-
declare class
|
|
43
|
-
|
|
44
|
-
constructor(passkeyName: string);
|
|
21
|
+
declare class MessageSigningError extends CrossmintSDKError {
|
|
22
|
+
constructor(message: string, details?: string, code?: SmartWalletErrorCode);
|
|
45
23
|
}
|
|
46
|
-
declare class
|
|
47
|
-
constructor(message: string);
|
|
24
|
+
declare class InvalidTypedDataError extends CrossmintSDKError {
|
|
25
|
+
constructor(message: string, details?: string, code?: SmartWalletErrorCode);
|
|
48
26
|
}
|
|
49
|
-
declare class
|
|
50
|
-
|
|
51
|
-
|
|
27
|
+
declare class TypedDataSigningError extends CrossmintSDKError {
|
|
28
|
+
constructor(message: string, details?: string, code?: SmartWalletErrorCode);
|
|
29
|
+
}
|
|
30
|
+
declare class TransactionApprovalError extends CrossmintSDKError {
|
|
31
|
+
constructor(message: string, details?: string, code?: SmartWalletErrorCode);
|
|
52
32
|
}
|
|
53
|
-
declare class
|
|
54
|
-
|
|
55
|
-
|
|
33
|
+
declare class TransactionFailedError extends CrossmintSDKError {
|
|
34
|
+
constructor(message: string, details?: string, code?: SmartWalletErrorCode);
|
|
35
|
+
}
|
|
36
|
+
declare class TransactionNotFoundError extends CrossmintSDKError {
|
|
37
|
+
constructor(message: string, details?: string, code?: SmartWalletErrorCode);
|
|
56
38
|
}
|
|
57
39
|
|
|
58
|
-
export {
|
|
40
|
+
export { InvalidApiKeyError, InvalidChainError, InvalidMessageFormatError, InvalidTransferChainError, InvalidTypedDataError, MessageSigningError, SmartWalletError, TransactionApprovalError, TransactionFailedError, TransactionNotFoundError, TypedDataSigningError, WalletCreationError };
|
package/dist/error/index.d.ts
CHANGED
|
@@ -1,58 +1,40 @@
|
|
|
1
1
|
import { CrossmintSDKError, SmartWalletErrorCode } from '@crossmint/client-sdk-base';
|
|
2
|
-
import { a as SignerDisplay, P as PasskeyDisplay } from '../service-DqYCir8s.js';
|
|
3
|
-
import 'zod';
|
|
4
|
-
import '@zerodev/sdk';
|
|
5
|
-
import 'permissionless';
|
|
6
|
-
import 'permissionless/accounts';
|
|
7
|
-
import 'permissionless/types/entrypoint';
|
|
8
|
-
import 'viem';
|
|
9
|
-
import '../blockchain/chains.js';
|
|
10
|
-
import 'viem/chains';
|
|
11
|
-
import '@crossmint/common-sdk-base';
|
|
12
|
-
import '../types/schema.js';
|
|
13
|
-
import '@zerodev/passkey-validator';
|
|
14
|
-
import '../utils/constants.js';
|
|
15
|
-
import '../types/params.js';
|
|
16
2
|
|
|
17
3
|
declare class SmartWalletError extends CrossmintSDKError {
|
|
18
4
|
constructor(message: string, details?: string, code?: SmartWalletErrorCode);
|
|
19
5
|
}
|
|
20
|
-
declare class
|
|
21
|
-
|
|
22
|
-
readonly used?: SignerDisplay;
|
|
23
|
-
constructor(message: string, required: SignerDisplay, used?: SignerDisplay);
|
|
6
|
+
declare class InvalidApiKeyError extends CrossmintSDKError {
|
|
7
|
+
constructor(message: string, details?: string, code?: SmartWalletErrorCode);
|
|
24
8
|
}
|
|
25
|
-
declare class
|
|
26
|
-
|
|
27
|
-
readonly used?: PasskeyDisplay;
|
|
28
|
-
constructor(message: string, required: PasskeyDisplay, used?: PasskeyDisplay);
|
|
9
|
+
declare class WalletCreationError extends CrossmintSDKError {
|
|
10
|
+
constructor(message: string, details?: string, code?: SmartWalletErrorCode);
|
|
29
11
|
}
|
|
30
|
-
declare class
|
|
31
|
-
|
|
32
|
-
constructor(userId: string);
|
|
12
|
+
declare class InvalidChainError extends CrossmintSDKError {
|
|
13
|
+
constructor(message: string, details?: string, code?: SmartWalletErrorCode);
|
|
33
14
|
}
|
|
34
|
-
declare class
|
|
35
|
-
|
|
36
|
-
constructor(passkeyName: string);
|
|
15
|
+
declare class InvalidTransferChainError extends CrossmintSDKError {
|
|
16
|
+
constructor(message: string, details?: string, code?: SmartWalletErrorCode);
|
|
37
17
|
}
|
|
38
|
-
declare class
|
|
39
|
-
|
|
40
|
-
constructor(passkeyName: string);
|
|
18
|
+
declare class InvalidMessageFormatError extends CrossmintSDKError {
|
|
19
|
+
constructor(message: string, details?: string, code?: SmartWalletErrorCode);
|
|
41
20
|
}
|
|
42
|
-
declare class
|
|
43
|
-
|
|
44
|
-
constructor(passkeyName: string);
|
|
21
|
+
declare class MessageSigningError extends CrossmintSDKError {
|
|
22
|
+
constructor(message: string, details?: string, code?: SmartWalletErrorCode);
|
|
45
23
|
}
|
|
46
|
-
declare class
|
|
47
|
-
constructor(message: string);
|
|
24
|
+
declare class InvalidTypedDataError extends CrossmintSDKError {
|
|
25
|
+
constructor(message: string, details?: string, code?: SmartWalletErrorCode);
|
|
48
26
|
}
|
|
49
|
-
declare class
|
|
50
|
-
|
|
51
|
-
|
|
27
|
+
declare class TypedDataSigningError extends CrossmintSDKError {
|
|
28
|
+
constructor(message: string, details?: string, code?: SmartWalletErrorCode);
|
|
29
|
+
}
|
|
30
|
+
declare class TransactionApprovalError extends CrossmintSDKError {
|
|
31
|
+
constructor(message: string, details?: string, code?: SmartWalletErrorCode);
|
|
52
32
|
}
|
|
53
|
-
declare class
|
|
54
|
-
|
|
55
|
-
|
|
33
|
+
declare class TransactionFailedError extends CrossmintSDKError {
|
|
34
|
+
constructor(message: string, details?: string, code?: SmartWalletErrorCode);
|
|
35
|
+
}
|
|
36
|
+
declare class TransactionNotFoundError extends CrossmintSDKError {
|
|
37
|
+
constructor(message: string, details?: string, code?: SmartWalletErrorCode);
|
|
56
38
|
}
|
|
57
39
|
|
|
58
|
-
export {
|
|
40
|
+
export { InvalidApiKeyError, InvalidChainError, InvalidMessageFormatError, InvalidTransferChainError, InvalidTypedDataError, MessageSigningError, SmartWalletError, TransactionApprovalError, TransactionFailedError, TransactionNotFoundError, TypedDataSigningError, WalletCreationError };
|
package/dist/error/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j}from"../chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l}from"../chunk-UBRUUSMF.js";export{b as InvalidApiKeyError,d as InvalidChainError,f as InvalidMessageFormatError,e as InvalidTransferChainError,h as InvalidTypedDataError,g as MessageSigningError,a as SmartWalletError,j as TransactionApprovalError,k as TransactionFailedError,l as TransactionNotFoundError,i as TypedDataSigningError,c as WalletCreationError};
|
package/dist/error/processor.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkD33JIUOQcjs = require('../chunk-D33JIUOQ.cjs');require('../chunk-73LUJQGU.cjs');require('../chunk-EMZ5NAG2.cjs');exports.ErrorProcessor = _chunkD33JIUOQcjs.a;
|
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
import { BaseError } from 'viem';
|
|
2
2
|
import { SDKLogger } from '@crossmint/client-sdk-base';
|
|
3
3
|
import { SmartWalletError } from './index.cjs';
|
|
4
|
-
import '../service-Ir-Qho-9.cjs';
|
|
5
|
-
import 'zod';
|
|
6
|
-
import '@zerodev/sdk';
|
|
7
|
-
import 'permissionless';
|
|
8
|
-
import 'permissionless/accounts';
|
|
9
|
-
import 'permissionless/types/entrypoint';
|
|
10
|
-
import '../blockchain/chains.cjs';
|
|
11
|
-
import 'viem/chains';
|
|
12
|
-
import '@crossmint/common-sdk-base';
|
|
13
|
-
import '../types/schema.cjs';
|
|
14
|
-
import '@zerodev/passkey-validator';
|
|
15
|
-
import '../utils/constants.cjs';
|
|
16
|
-
import '../types/params.cjs';
|
|
17
4
|
|
|
18
5
|
declare class ErrorProcessor {
|
|
19
6
|
private readonly logger;
|
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
import { BaseError } from 'viem';
|
|
2
2
|
import { SDKLogger } from '@crossmint/client-sdk-base';
|
|
3
3
|
import { SmartWalletError } from './index.js';
|
|
4
|
-
import '../service-DqYCir8s.js';
|
|
5
|
-
import 'zod';
|
|
6
|
-
import '@zerodev/sdk';
|
|
7
|
-
import 'permissionless';
|
|
8
|
-
import 'permissionless/accounts';
|
|
9
|
-
import 'permissionless/types/entrypoint';
|
|
10
|
-
import '../blockchain/chains.js';
|
|
11
|
-
import 'viem/chains';
|
|
12
|
-
import '@crossmint/common-sdk-base';
|
|
13
|
-
import '../types/schema.js';
|
|
14
|
-
import '@zerodev/passkey-validator';
|
|
15
|
-
import '../utils/constants.js';
|
|
16
|
-
import '../types/params.js';
|
|
17
4
|
|
|
18
5
|
declare class ErrorProcessor {
|
|
19
6
|
private readonly logger;
|
package/dist/error/processor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-5T3HB4Y6.js";import"../chunk-UBRUUSMF.js";import"../chunk-T5PL4ATW.js";export{a as ErrorProcessor};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5URY3C2Tcjs = require('../../../chunk-5URY3C2T.cjs');exports.storyTestnet = _chunk5URY3C2Tcjs.a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../../../chunk-XLACPZJJ.js";export{a as storyTestnet};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkMFUN74KHcjs = require('../../../chunk-MFUN74KH.cjs');exports.story = _chunkMFUN74KHcjs.a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../../../chunk-KVFFSUF4.js";export{a as story};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkMLTT5BGDcjs = require('../../chunk-MLTT5BGD.cjs');require('../../chunk-5URY3C2T.cjs');require('../../chunk-MFUN74KH.cjs');exports.isMainnetChain = _chunkMLTT5BGDcjs.b; exports.isTestnetChain = _chunkMLTT5BGDcjs.a; exports.viemNetworks = _chunkMLTT5BGDcjs.c;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Chain } from 'viem/chains';
|
|
2
1
|
import { ObjectValues } from '@crossmint/common-sdk-base';
|
|
2
|
+
import { Chain } from 'viem';
|
|
3
3
|
|
|
4
4
|
declare const SmartWalletTestnet: {
|
|
5
5
|
readonly BASE_SEPOLIA: "base-sepolia";
|
|
@@ -9,7 +9,6 @@ declare const SmartWalletTestnet: {
|
|
|
9
9
|
readonly STORY_TESTNET: "story-testnet";
|
|
10
10
|
};
|
|
11
11
|
type SmartWalletTestnet = ObjectValues<typeof SmartWalletTestnet>;
|
|
12
|
-
declare const SMART_WALLET_TESTNETS: readonly ("base-sepolia" | "polygon-amoy" | "optimism-sepolia" | "arbitrum-sepolia" | "story-testnet")[];
|
|
13
12
|
declare const SmartWalletMainnet: {
|
|
14
13
|
readonly BASE: "base";
|
|
15
14
|
readonly POLYGON: "polygon";
|
|
@@ -18,7 +17,8 @@ declare const SmartWalletMainnet: {
|
|
|
18
17
|
readonly STORY: "story";
|
|
19
18
|
};
|
|
20
19
|
type SmartWalletMainnet = ObjectValues<typeof SmartWalletMainnet>;
|
|
21
|
-
declare
|
|
20
|
+
declare function isTestnetChain(chain: SmartWalletChain): chain is SmartWalletTestnet;
|
|
21
|
+
declare function isMainnetChain(chain: SmartWalletChain): chain is SmartWalletMainnet;
|
|
22
22
|
declare const SmartWalletChain: {
|
|
23
23
|
readonly BASE: "base";
|
|
24
24
|
readonly POLYGON: "polygon";
|
|
@@ -32,9 +32,6 @@ declare const SmartWalletChain: {
|
|
|
32
32
|
readonly STORY_TESTNET: "story-testnet";
|
|
33
33
|
};
|
|
34
34
|
type SmartWalletChain = ObjectValues<typeof SmartWalletChain>;
|
|
35
|
-
declare const SMART_WALLET_CHAINS: readonly ("base-sepolia" | "polygon-amoy" | "optimism-sepolia" | "arbitrum-sepolia" | "story-testnet" | "base" | "polygon" | "optimism" | "arbitrum" | "story")[];
|
|
36
|
-
declare function isTestnetChain(chain: SmartWalletChain): chain is SmartWalletTestnet;
|
|
37
|
-
declare function isMainnetChain(chain: SmartWalletChain): chain is SmartWalletMainnet;
|
|
38
35
|
declare const viemNetworks: Record<SmartWalletChain, Chain>;
|
|
39
36
|
|
|
40
|
-
export {
|
|
37
|
+
export { SmartWalletChain, isMainnetChain, isTestnetChain, viemNetworks };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Chain } from 'viem/chains';
|
|
2
1
|
import { ObjectValues } from '@crossmint/common-sdk-base';
|
|
2
|
+
import { Chain } from 'viem';
|
|
3
3
|
|
|
4
4
|
declare const SmartWalletTestnet: {
|
|
5
5
|
readonly BASE_SEPOLIA: "base-sepolia";
|
|
@@ -9,7 +9,6 @@ declare const SmartWalletTestnet: {
|
|
|
9
9
|
readonly STORY_TESTNET: "story-testnet";
|
|
10
10
|
};
|
|
11
11
|
type SmartWalletTestnet = ObjectValues<typeof SmartWalletTestnet>;
|
|
12
|
-
declare const SMART_WALLET_TESTNETS: readonly ("base-sepolia" | "polygon-amoy" | "optimism-sepolia" | "arbitrum-sepolia" | "story-testnet")[];
|
|
13
12
|
declare const SmartWalletMainnet: {
|
|
14
13
|
readonly BASE: "base";
|
|
15
14
|
readonly POLYGON: "polygon";
|
|
@@ -18,7 +17,8 @@ declare const SmartWalletMainnet: {
|
|
|
18
17
|
readonly STORY: "story";
|
|
19
18
|
};
|
|
20
19
|
type SmartWalletMainnet = ObjectValues<typeof SmartWalletMainnet>;
|
|
21
|
-
declare
|
|
20
|
+
declare function isTestnetChain(chain: SmartWalletChain): chain is SmartWalletTestnet;
|
|
21
|
+
declare function isMainnetChain(chain: SmartWalletChain): chain is SmartWalletMainnet;
|
|
22
22
|
declare const SmartWalletChain: {
|
|
23
23
|
readonly BASE: "base";
|
|
24
24
|
readonly POLYGON: "polygon";
|
|
@@ -32,9 +32,6 @@ declare const SmartWalletChain: {
|
|
|
32
32
|
readonly STORY_TESTNET: "story-testnet";
|
|
33
33
|
};
|
|
34
34
|
type SmartWalletChain = ObjectValues<typeof SmartWalletChain>;
|
|
35
|
-
declare const SMART_WALLET_CHAINS: readonly ("base-sepolia" | "polygon-amoy" | "optimism-sepolia" | "arbitrum-sepolia" | "story-testnet" | "base" | "polygon" | "optimism" | "arbitrum" | "story")[];
|
|
36
|
-
declare function isTestnetChain(chain: SmartWalletChain): chain is SmartWalletTestnet;
|
|
37
|
-
declare function isMainnetChain(chain: SmartWalletChain): chain is SmartWalletMainnet;
|
|
38
35
|
declare const viemNetworks: Record<SmartWalletChain, Chain>;
|
|
39
36
|
|
|
40
|
-
export {
|
|
37
|
+
export { SmartWalletChain, isMainnetChain, isTestnetChain, viemNetworks };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c}from"../../chunk-VEZ3PQGX.js";import"../../chunk-XLACPZJJ.js";import"../../chunk-KVFFSUF4.js";export{b as isMainnetChain,a as isTestnetChain,c as viemNetworks};
|
package/dist/evm/rpc.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk23IWY6XVcjs = require('../chunk-23IWY6XV.cjs');require('../chunk-MLTT5BGD.cjs');require('../chunk-5URY3C2T.cjs');require('../chunk-MFUN74KH.cjs');exports.ALCHEMY_RPC_SUBDOMAIN = _chunk23IWY6XVcjs.a; exports.getAlchemyRPC = _chunk23IWY6XVcjs.b; exports.getPimlicoBundlerRPC = _chunk23IWY6XVcjs.d; exports.getRPC = _chunk23IWY6XVcjs.c;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { SmartWalletChain } from './chains.cjs';
|
|
2
|
-
import 'viem/chains';
|
|
1
|
+
import { SmartWalletChain } from './chains/index.cjs';
|
|
3
2
|
import '@crossmint/common-sdk-base';
|
|
3
|
+
import 'viem';
|
|
4
4
|
|
|
5
5
|
declare const ALCHEMY_RPC_SUBDOMAIN: Partial<Record<SmartWalletChain, string>>;
|
|
6
|
+
declare function getAlchemyRPC(chain: SmartWalletChain): string;
|
|
6
7
|
declare function getRPC(chain: SmartWalletChain): string;
|
|
7
8
|
declare function getPimlicoBundlerRPC(chain: SmartWalletChain): string;
|
|
8
9
|
|
|
9
|
-
export { ALCHEMY_RPC_SUBDOMAIN, getPimlicoBundlerRPC, getRPC };
|
|
10
|
+
export { ALCHEMY_RPC_SUBDOMAIN, getAlchemyRPC, getPimlicoBundlerRPC, getRPC };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { SmartWalletChain } from './chains.js';
|
|
2
|
-
import 'viem/chains';
|
|
1
|
+
import { SmartWalletChain } from './chains/index.js';
|
|
3
2
|
import '@crossmint/common-sdk-base';
|
|
3
|
+
import 'viem';
|
|
4
4
|
|
|
5
5
|
declare const ALCHEMY_RPC_SUBDOMAIN: Partial<Record<SmartWalletChain, string>>;
|
|
6
|
+
declare function getAlchemyRPC(chain: SmartWalletChain): string;
|
|
6
7
|
declare function getRPC(chain: SmartWalletChain): string;
|
|
7
8
|
declare function getPimlicoBundlerRPC(chain: SmartWalletChain): string;
|
|
8
9
|
|
|
9
|
-
export { ALCHEMY_RPC_SUBDOMAIN, getPimlicoBundlerRPC, getRPC };
|
|
10
|
+
export { ALCHEMY_RPC_SUBDOMAIN, getAlchemyRPC, getPimlicoBundlerRPC, getRPC };
|
package/dist/evm/rpc.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d}from"../chunk-75JNTS3U.js";import"../chunk-VEZ3PQGX.js";import"../chunk-XLACPZJJ.js";import"../chunk-KVFFSUF4.js";export{a as ALCHEMY_RPC_SUBDOMAIN,b as getAlchemyRPC,d as getPimlicoBundlerRPC,c as getRPC};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Address, SignableMessage, Hex, TypedData, TypedDataDefinition, Abi, ContractFunctionName, ContractFunctionArgs, WriteContractParameters } from 'viem';
|
|
2
|
+
|
|
3
|
+
interface SmartWalletClient {
|
|
4
|
+
/**
|
|
5
|
+
* Retrieves the address of the smart wallet.
|
|
6
|
+
* @returns The address of the smart wallet.
|
|
7
|
+
*/
|
|
8
|
+
getAddress: () => Address;
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves the nonce of the smart wallet.
|
|
11
|
+
* @param parameters - The parameters.
|
|
12
|
+
* @returns The nonce of the smart wallet.
|
|
13
|
+
*/
|
|
14
|
+
getNonce?: ((parameters?: {
|
|
15
|
+
key?: bigint | undefined;
|
|
16
|
+
} | undefined) => Promise<bigint>) | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Signs a message.
|
|
19
|
+
* @param parameters - The parameters.
|
|
20
|
+
* @returns The message signature
|
|
21
|
+
* @throws {InvalidMessageFormatError} if the message is not a string.
|
|
22
|
+
* @throws {MessageSigningError} if the message signing fails.
|
|
23
|
+
*/
|
|
24
|
+
signMessage: (parameters: {
|
|
25
|
+
message: SignableMessage;
|
|
26
|
+
}) => Promise<Hex>;
|
|
27
|
+
/**
|
|
28
|
+
* Signs typed data message.
|
|
29
|
+
* @param parameters - The parameters.
|
|
30
|
+
* @returns The message signature
|
|
31
|
+
* @throws {InvalidTypedDataError} if the typed data is invalid.
|
|
32
|
+
* @throws {TypedDataSigningError} if the typed data signing fails.
|
|
33
|
+
*/
|
|
34
|
+
signTypedData: <const typedData extends TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(parameters: TypedDataDefinition<typedData, primaryType>) => Promise<Hex>;
|
|
35
|
+
/**
|
|
36
|
+
* Sends a transaction.
|
|
37
|
+
* @param parameters - The parameters.
|
|
38
|
+
* @returns The transaction hash
|
|
39
|
+
* @throws {TransactionApprovalError} if the transaction is not approved.
|
|
40
|
+
* @throws {TransactionFailedError} if the transaction fails.
|
|
41
|
+
* @throws {TransactionNotFoundError} if the transaction is not found.
|
|
42
|
+
*/
|
|
43
|
+
sendTransaction: (parameters: {
|
|
44
|
+
to: Address;
|
|
45
|
+
data?: Hex;
|
|
46
|
+
value?: bigint;
|
|
47
|
+
}) => Promise<Hex>;
|
|
48
|
+
/**
|
|
49
|
+
* Writes to a contract.
|
|
50
|
+
* @param parameters - The parameters.
|
|
51
|
+
* @returns The transaction hash
|
|
52
|
+
* @throws {TransactionApprovalError} if the transaction is not approved.
|
|
53
|
+
* @throws {TransactionFailedError} if the transaction fails.
|
|
54
|
+
* @throws {TransactionNotFoundError} if the transaction is not found.
|
|
55
|
+
*/
|
|
56
|
+
writeContract<const TAbi extends Abi | readonly unknown[], TFunctionName extends ContractFunctionName<TAbi, "nonpayable" | "payable"> = ContractFunctionName<TAbi, "nonpayable" | "payable">, TArgs extends ContractFunctionArgs<TAbi, "nonpayable" | "payable", TFunctionName> = ContractFunctionArgs<TAbi, "nonpayable" | "payable", TFunctionName>>({ address, abi, functionName, args, value, }: Omit<WriteContractParameters<TAbi, TFunctionName, TArgs>, "chain" | "account">): Promise<Hex>;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type { SmartWalletClient };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Address, SignableMessage, Hex, TypedData, TypedDataDefinition, Abi, ContractFunctionName, ContractFunctionArgs, WriteContractParameters } from 'viem';
|
|
2
|
+
|
|
3
|
+
interface SmartWalletClient {
|
|
4
|
+
/**
|
|
5
|
+
* Retrieves the address of the smart wallet.
|
|
6
|
+
* @returns The address of the smart wallet.
|
|
7
|
+
*/
|
|
8
|
+
getAddress: () => Address;
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves the nonce of the smart wallet.
|
|
11
|
+
* @param parameters - The parameters.
|
|
12
|
+
* @returns The nonce of the smart wallet.
|
|
13
|
+
*/
|
|
14
|
+
getNonce?: ((parameters?: {
|
|
15
|
+
key?: bigint | undefined;
|
|
16
|
+
} | undefined) => Promise<bigint>) | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Signs a message.
|
|
19
|
+
* @param parameters - The parameters.
|
|
20
|
+
* @returns The message signature
|
|
21
|
+
* @throws {InvalidMessageFormatError} if the message is not a string.
|
|
22
|
+
* @throws {MessageSigningError} if the message signing fails.
|
|
23
|
+
*/
|
|
24
|
+
signMessage: (parameters: {
|
|
25
|
+
message: SignableMessage;
|
|
26
|
+
}) => Promise<Hex>;
|
|
27
|
+
/**
|
|
28
|
+
* Signs typed data message.
|
|
29
|
+
* @param parameters - The parameters.
|
|
30
|
+
* @returns The message signature
|
|
31
|
+
* @throws {InvalidTypedDataError} if the typed data is invalid.
|
|
32
|
+
* @throws {TypedDataSigningError} if the typed data signing fails.
|
|
33
|
+
*/
|
|
34
|
+
signTypedData: <const typedData extends TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(parameters: TypedDataDefinition<typedData, primaryType>) => Promise<Hex>;
|
|
35
|
+
/**
|
|
36
|
+
* Sends a transaction.
|
|
37
|
+
* @param parameters - The parameters.
|
|
38
|
+
* @returns The transaction hash
|
|
39
|
+
* @throws {TransactionApprovalError} if the transaction is not approved.
|
|
40
|
+
* @throws {TransactionFailedError} if the transaction fails.
|
|
41
|
+
* @throws {TransactionNotFoundError} if the transaction is not found.
|
|
42
|
+
*/
|
|
43
|
+
sendTransaction: (parameters: {
|
|
44
|
+
to: Address;
|
|
45
|
+
data?: Hex;
|
|
46
|
+
value?: bigint;
|
|
47
|
+
}) => Promise<Hex>;
|
|
48
|
+
/**
|
|
49
|
+
* Writes to a contract.
|
|
50
|
+
* @param parameters - The parameters.
|
|
51
|
+
* @returns The transaction hash
|
|
52
|
+
* @throws {TransactionApprovalError} if the transaction is not approved.
|
|
53
|
+
* @throws {TransactionFailedError} if the transaction fails.
|
|
54
|
+
* @throws {TransactionNotFoundError} if the transaction is not found.
|
|
55
|
+
*/
|
|
56
|
+
writeContract<const TAbi extends Abi | readonly unknown[], TFunctionName extends ContractFunctionName<TAbi, "nonpayable" | "payable"> = ContractFunctionName<TAbi, "nonpayable" | "payable">, TArgs extends ContractFunctionArgs<TAbi, "nonpayable" | "payable", TFunctionName> = ContractFunctionArgs<TAbi, "nonpayable" | "payable", TFunctionName>>({ address, abi, functionName, args, value, }: Omit<WriteContractParameters<TAbi, TFunctionName, TArgs>, "chain" | "account">): Promise<Hex>;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type { SmartWalletClient };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk4PMBBA3Ocjs = require('../chunk-4PMBBA3O.cjs');require('../chunk-J5SRLI35.cjs');exports.transferParams = _chunk4PMBBA3Ocjs.a;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TransferInputParams, TransferSimulationParams } from '../types/transfer.cjs';
|
|
2
|
+
import 'viem';
|
|
3
|
+
import './chains/index.cjs';
|
|
4
|
+
import '@crossmint/common-sdk-base';
|
|
5
|
+
|
|
6
|
+
declare function transferParams({ contract, config, from, to }: TransferInputParams): TransferSimulationParams;
|
|
7
|
+
|
|
8
|
+
export { transferParams };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TransferInputParams, TransferSimulationParams } from '../types/transfer.js';
|
|
2
|
+
import 'viem';
|
|
3
|
+
import './chains/index.js';
|
|
4
|
+
import '@crossmint/common-sdk-base';
|
|
5
|
+
|
|
6
|
+
declare function transferParams({ contract, config, from, to }: TransferInputParams): TransferSimulationParams;
|
|
7
|
+
|
|
8
|
+
export { transferParams };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-NXTHA2ZL.js";import"../chunk-I5RZI2HB.js";export{a as transferParams};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLPLLPZFUcjs = require('../chunk-LPLLPZFU.cjs');require('../chunk-73LUJQGU.cjs');require('../chunk-4PMBBA3O.cjs');require('../chunk-J5SRLI35.cjs');exports.EVMSmartWallet = _chunkLPLLPZFUcjs.a;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import '../types/api.cjs';
|
|
2
|
+
import 'viem';
|
|
3
|
+
export { a as EVMSmartWallet } from '../apiService-Dum8A8_6.cjs';
|
|
4
|
+
import '../types/transfer.cjs';
|
|
5
|
+
import './chains/index.cjs';
|
|
6
|
+
import './smartWalletClient.cjs';
|
|
7
|
+
import '@crossmint/common-sdk-base';
|
|
8
|
+
import '@crossmint/client-sdk-base';
|
|
9
|
+
import 'ox';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import '../types/api.js';
|
|
2
|
+
import 'viem';
|
|
3
|
+
export { a as EVMSmartWallet } from '../apiService-D4DIxjMr.js';
|
|
4
|
+
import '../types/transfer.js';
|
|
5
|
+
import './chains/index.js';
|
|
6
|
+
import './smartWalletClient.js';
|
|
7
|
+
import '@crossmint/common-sdk-base';
|
|
8
|
+
import '@crossmint/client-sdk-base';
|
|
9
|
+
import 'ox';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-DB2QM3HB.js";import"../chunk-UBRUUSMF.js";import"../chunk-NXTHA2ZL.js";import"../chunk-I5RZI2HB.js";export{a as EVMSmartWallet};
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkQ6YGAHDRcjs = require('./chunk-Q6YGAHDR.cjs');require('./chunk-D33JIUOQ.cjs');require('./chunk-ODAUWGUU.cjs');require('./chunk-Q23CHZRT.cjs');require('./chunk-SVGKSKZD.cjs');require('./chunk-U2JMKBCC.cjs');require('./chunk-AS5VIM5V.cjs');require('./chunk-23IWY6XV.cjs');require('./chunk-MLTT5BGD.cjs');require('./chunk-5URY3C2T.cjs');require('./chunk-MFUN74KH.cjs');var _chunkLPLLPZFUcjs = require('./chunk-LPLLPZFU.cjs');var _chunk73LUJQGUcjs = require('./chunk-73LUJQGU.cjs');require('./chunk-4PMBBA3O.cjs');require('./chunk-EMZ5NAG2.cjs');require('./chunk-KXYDJTZS.cjs');require('./chunk-J5SRLI35.cjs');var _commonsdkbase = require('@crossmint/common-sdk-base');exports.Chain = _commonsdkbase.EVMBlockchainIncludingTestnet; exports.EVMSmartWallet = _chunkLPLLPZFUcjs.a; exports.InvalidApiKeyError = _chunk73LUJQGUcjs.b; exports.InvalidChainError = _chunk73LUJQGUcjs.d; exports.InvalidMessageFormatError = _chunk73LUJQGUcjs.f; exports.InvalidTransferChainError = _chunk73LUJQGUcjs.e; exports.InvalidTypedDataError = _chunk73LUJQGUcjs.h; exports.MessageSigningError = _chunk73LUJQGUcjs.g; exports.SmartWalletError = _chunk73LUJQGUcjs.a; exports.SmartWalletSDK = _chunkQ6YGAHDRcjs.a; exports.TransactionApprovalError = _chunk73LUJQGUcjs.j; exports.TransactionFailedError = _chunk73LUJQGUcjs.k; exports.TransactionNotFoundError = _chunk73LUJQGUcjs.l; exports.TypedDataSigningError = _chunk73LUJQGUcjs.i; exports.WalletCreationError = _chunk73LUJQGUcjs.c; exports.blockchainToChainId = _commonsdkbase.blockchainToChainId;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,22 +1,11 @@
|
|
|
1
1
|
export { EVMBlockchainIncludingTestnet as Chain, blockchainToChainId } from '@crossmint/common-sdk-base';
|
|
2
|
-
export { EVMSmartWallet } from './
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
|
|
8
|
-
export { CrossmintSDKError, CrossmintServiceError, JWTDecryptionError, JWTExpiredError, JWTIdentifierError, JWTInvalidError, NotAuthorizedError, SmartWalletErrorCode } from '@crossmint/client-sdk-base';
|
|
9
|
-
export { SmartWalletSDK } from './SmartWalletSDK.cjs';
|
|
2
|
+
export { a as EVMSmartWallet, E as ExternalSigner, P as PasskeySigner, U as UserParams, V as ViemAccount, W as WalletParams } from './apiService-Dum8A8_6.cjs';
|
|
3
|
+
export { SmartWalletChain as EVMSmartWalletChain } from './evm/chains/index.cjs';
|
|
4
|
+
export { ERC20TransferType, NFTTransferType, SFTTransferType, TransferType } from './types/transfer.cjs';
|
|
5
|
+
export { SmartWalletSDK, SmartWalletSDKInitParams } from './sdk.cjs';
|
|
6
|
+
export { InvalidApiKeyError, InvalidChainError, InvalidMessageFormatError, InvalidTransferChainError, InvalidTypedDataError, MessageSigningError, SmartWalletError, TransactionApprovalError, TransactionFailedError, TransactionNotFoundError, TypedDataSigningError, WalletCreationError } from './error/index.cjs';
|
|
7
|
+
import '@crossmint/client-sdk-base';
|
|
10
8
|
import 'viem';
|
|
11
|
-
import '
|
|
12
|
-
import '
|
|
13
|
-
import '
|
|
14
|
-
import './service-Ir-Qho-9.cjs';
|
|
15
|
-
import 'zod';
|
|
16
|
-
import '@zerodev/sdk';
|
|
17
|
-
import 'permissionless/accounts';
|
|
18
|
-
import './types/schema.cjs';
|
|
19
|
-
import '@zerodev/passkey-validator';
|
|
20
|
-
import './utils/constants.cjs';
|
|
21
|
-
import 'viem/chains';
|
|
22
|
-
import 'permissionless/_types/types';
|
|
9
|
+
import 'ox';
|
|
10
|
+
import './types/api.cjs';
|
|
11
|
+
import './evm/smartWalletClient.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,22 +1,11 @@
|
|
|
1
1
|
export { EVMBlockchainIncludingTestnet as Chain, blockchainToChainId } from '@crossmint/common-sdk-base';
|
|
2
|
-
export { EVMSmartWallet } from './
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
|
|
8
|
-
export { CrossmintSDKError, CrossmintServiceError, JWTDecryptionError, JWTExpiredError, JWTIdentifierError, JWTInvalidError, NotAuthorizedError, SmartWalletErrorCode } from '@crossmint/client-sdk-base';
|
|
9
|
-
export { SmartWalletSDK } from './SmartWalletSDK.js';
|
|
2
|
+
export { a as EVMSmartWallet, E as ExternalSigner, P as PasskeySigner, U as UserParams, V as ViemAccount, W as WalletParams } from './apiService-D4DIxjMr.js';
|
|
3
|
+
export { SmartWalletChain as EVMSmartWalletChain } from './evm/chains/index.js';
|
|
4
|
+
export { ERC20TransferType, NFTTransferType, SFTTransferType, TransferType } from './types/transfer.js';
|
|
5
|
+
export { SmartWalletSDK, SmartWalletSDKInitParams } from './sdk.js';
|
|
6
|
+
export { InvalidApiKeyError, InvalidChainError, InvalidMessageFormatError, InvalidTransferChainError, InvalidTypedDataError, MessageSigningError, SmartWalletError, TransactionApprovalError, TransactionFailedError, TransactionNotFoundError, TypedDataSigningError, WalletCreationError } from './error/index.js';
|
|
7
|
+
import '@crossmint/client-sdk-base';
|
|
10
8
|
import 'viem';
|
|
11
|
-
import '
|
|
12
|
-
import '
|
|
13
|
-
import '
|
|
14
|
-
import './service-DqYCir8s.js';
|
|
15
|
-
import 'zod';
|
|
16
|
-
import '@zerodev/sdk';
|
|
17
|
-
import 'permissionless/accounts';
|
|
18
|
-
import './types/schema.js';
|
|
19
|
-
import '@zerodev/passkey-validator';
|
|
20
|
-
import './utils/constants.js';
|
|
21
|
-
import 'viem/chains';
|
|
22
|
-
import 'permissionless/_types/types';
|
|
9
|
+
import 'ox';
|
|
10
|
+
import './types/api.js';
|
|
11
|
+
import './evm/smartWalletClient.js';
|