@crossmint/client-sdk-smart-wallet 0.1.13 → 0.1.15

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crossmint/client-sdk-smart-wallet",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "repository": "https://github.com/Crossmint/crossmint-sdk",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Paella Labs Inc",
@@ -26,8 +26,8 @@
26
26
  "permissionless": "0.1.36",
27
27
  "viem": "2.17.5",
28
28
  "zod": "3.22.4",
29
- "@crossmint/client-sdk-base": "1.2.6",
30
- "@crossmint/common-sdk-base": "0.1.4"
29
+ "@crossmint/common-sdk-base": "0.1.4",
30
+ "@crossmint/client-sdk-base": "1.2.6"
31
31
  },
32
32
  "devDependencies": {
33
33
  "typedoc": "0.26.5",
package/src/index.ts CHANGED
@@ -7,7 +7,7 @@ export type {
7
7
  UserParams,
8
8
  ViemAccount,
9
9
  PasskeySigner,
10
- EOASigner,
10
+ ExternalSigner,
11
11
  WalletParams,
12
12
  } from "./types/params";
13
13
 
@@ -28,6 +28,11 @@ export {
28
28
  SmartWalletsNotEnabledError,
29
29
  } from "./error";
30
30
 
31
+ export {
32
+ EVMSendTransactionError,
33
+ EVMSendTransactionExecutionRevertedError,
34
+ } from "./blockchain/wallets/SendTransactionService";
35
+
31
36
  export {
32
37
  SmartWalletErrorCode,
33
38
  CrossmintSDKError,
@@ -7,7 +7,7 @@ import type { Address, Chain, HttpTransport, PublicClient } from "viem";
7
7
  import type { SmartWalletChain } from "../blockchain/chains";
8
8
  import type { EOASignerConfig, PasskeySignerConfig, SignerConfig } from "../blockchain/wallets/account/signer";
9
9
  import { SUPPORTED_ENTRYPOINT_VERSIONS, SUPPORTED_KERNEL_VERSIONS } from "../utils/constants";
10
- import type { EOASigner, PasskeySigner, UserParams, WalletParams } from "./params";
10
+ import type { ExternalSigner, PasskeySigner, UserParams, WalletParams } from "./params";
11
11
 
12
12
  export type SupportedKernelVersion = (typeof SUPPORTED_KERNEL_VERSIONS)[number];
13
13
  export function isSupportedKernelVersion(version: string): version is SupportedKernelVersion {
@@ -40,7 +40,7 @@ export interface PasskeyCreationContext extends WalletCreationContext {
40
40
  }
41
41
 
42
42
  export interface EOACreationContext extends WalletCreationContext {
43
- walletParams: WalletParams & { signer: EOASigner };
43
+ walletParams: WalletParams & { signer: ExternalSigner };
44
44
  existing?: { signerConfig: EOASignerConfig; address: Address };
45
45
  }
46
46
 
@@ -54,7 +54,7 @@ export function isPasskeyCreationContext(params: WalletCreationContext): params
54
54
  return isPasskeyWalletParams(params.walletParams) && signerIsPasskeyOrUndefined;
55
55
  }
56
56
 
57
- export function isEOAWalletParams(params: WalletParams): params is WalletParams & { signer: EOASigner } {
57
+ export function isEOAWalletParams(params: WalletParams): params is WalletParams & { signer: ExternalSigner } {
58
58
  return (
59
59
  "signer" in params &&
60
60
  (("type" in params.signer && params.signer.type === "VIEM_ACCOUNT") ||
@@ -24,7 +24,7 @@ export type PasskeySigner = {
24
24
  passkeyName?: string;
25
25
  };
26
26
 
27
- export type EOASigner = EIP1193Provider | ViemAccount;
27
+ export type ExternalSigner = EIP1193Provider | ViemAccount;
28
28
  export interface WalletParams {
29
- signer: EOASigner | PasskeySigner;
29
+ signer: ExternalSigner | PasskeySigner;
30
30
  }