@crossmint/wallets-sdk 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/dist/api/client.cjs +1 -1
  2. package/dist/api/client.d.cts +0 -1
  3. package/dist/api/client.d.ts +0 -1
  4. package/dist/api/client.js +1 -1
  5. package/dist/api/gen/index.cjs +1 -1
  6. package/dist/api/gen/index.js +1 -1
  7. package/dist/api/gen/types.gen.d.cts +35 -0
  8. package/dist/api/gen/types.gen.d.ts +35 -0
  9. package/dist/api/index.cjs +1 -1
  10. package/dist/api/index.d.cts +1 -1
  11. package/dist/api/index.d.ts +1 -1
  12. package/dist/api/index.js +1 -1
  13. package/dist/api/types.d.cts +4 -1
  14. package/dist/api/types.d.ts +4 -1
  15. package/dist/{chunk-D67AZHCX.cjs → chunk-2JSYGDAP.cjs} +1 -1
  16. package/dist/{chunk-FK6GUFCI.js → chunk-46HOKNA7.js} +1 -1
  17. package/dist/chunk-BAEWGOIC.cjs +1 -0
  18. package/dist/{chunk-O3UGYUNV.js → chunk-DAZ4XSAW.js} +1 -1
  19. package/dist/chunk-DNWDTJR6.cjs +1 -0
  20. package/dist/chunk-DSZ2SEZW.js +1 -0
  21. package/dist/{chunk-C4BKKX7I.cjs → chunk-EIYO37J7.cjs} +1 -1
  22. package/dist/{chunk-FEHPDTLM.js → chunk-GZO7YY5G.js} +1 -1
  23. package/dist/{chunk-USEBBJLH.cjs → chunk-MILONSAH.cjs} +1 -1
  24. package/dist/chunk-NNEAJN24.js +1 -0
  25. package/dist/{chunk-RF3DRJOH.js → chunk-NRPUIFKC.js} +1 -1
  26. package/dist/chunk-PBZUAHQL.cjs +1 -0
  27. package/dist/{chunk-7QMIL57Y.cjs → chunk-TJTBZ2QF.cjs} +1 -1
  28. package/dist/{chunk-NOQASYSI.cjs → chunk-WQEO47FG.cjs} +1 -1
  29. package/dist/{chunk-THYR3NRL.js → chunk-XH7JPM65.js} +1 -1
  30. package/dist/chunk-YLMKJ56K.js +1 -0
  31. package/dist/evm/index.cjs +1 -1
  32. package/dist/evm/index.d.cts +1 -1
  33. package/dist/evm/index.d.ts +1 -1
  34. package/dist/evm/index.js +1 -1
  35. package/dist/evm/wallet.cjs +1 -1
  36. package/dist/evm/wallet.d.cts +4 -3
  37. package/dist/evm/wallet.d.ts +4 -3
  38. package/dist/evm/wallet.js +1 -1
  39. package/dist/index.cjs +1 -1
  40. package/dist/index.d.cts +5 -5
  41. package/dist/index.d.ts +5 -5
  42. package/dist/index.js +1 -1
  43. package/dist/{options-DmcWBOpe.d.ts → options-C2ts4NaO.d.ts} +8 -5
  44. package/dist/{options-DGElO-xR.d.cts → options-Cwj5EWYL.d.cts} +8 -5
  45. package/dist/sdk.cjs +1 -1
  46. package/dist/sdk.d.cts +1 -1
  47. package/dist/sdk.d.ts +1 -1
  48. package/dist/sdk.js +1 -1
  49. package/dist/services/wallet-factory.cjs +1 -1
  50. package/dist/services/wallet-factory.d.cts +1 -1
  51. package/dist/services/wallet-factory.d.ts +1 -1
  52. package/dist/services/wallet-factory.js +1 -1
  53. package/dist/solana/index.cjs +1 -1
  54. package/dist/solana/index.d.cts +2 -2
  55. package/dist/solana/index.d.ts +2 -2
  56. package/dist/solana/index.js +1 -1
  57. package/dist/solana/services/delegated-signers-service.cjs +1 -1
  58. package/dist/solana/services/delegated-signers-service.d.cts +2 -2
  59. package/dist/solana/services/delegated-signers-service.d.ts +2 -2
  60. package/dist/solana/services/delegated-signers-service.js +1 -1
  61. package/dist/solana/services/transactions-service.cjs +1 -1
  62. package/dist/solana/services/transactions-service.d.cts +1 -1
  63. package/dist/solana/services/transactions-service.d.ts +1 -1
  64. package/dist/solana/services/transactions-service.js +1 -1
  65. package/dist/solana/types/wallet.d.cts +3 -3
  66. package/dist/solana/types/wallet.d.ts +3 -3
  67. package/dist/solana/wallet.cjs +1 -1
  68. package/dist/solana/wallet.d.cts +2 -2
  69. package/dist/solana/wallet.d.ts +2 -2
  70. package/dist/solana/wallet.js +1 -1
  71. package/dist/utils/constants.cjs +1 -1
  72. package/dist/utils/constants.js +1 -1
  73. package/dist/utils/options.d.cts +1 -1
  74. package/dist/utils/options.d.ts +1 -1
  75. package/package.json +4 -4
  76. package/dist/chunk-7IGI7P26.js +0 -1
  77. package/dist/chunk-CKCQ2NTZ.js +0 -1
  78. package/dist/chunk-EOV2V3ZM.cjs +0 -1
  79. package/dist/chunk-RB66U3DD.cjs +0 -1
  80. package/dist/chunk-RNRZUJGI.js +0 -1
  81. package/dist/chunk-RWCX6PZU.cjs +0 -1
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{a as I,b as T}from"./chunk-FEHPDTLM.js";import"./chunk-FK6GUFCI.js";import"./chunk-ITCP6W2T.js";import"./chunk-SDH5CVH7.js";import"./chunk-OKXV3IAA.js";import"./chunk-7IGI7P26.js";import"./chunk-RNRZUJGI.js";import"./chunk-O3UGYUNV.js";import"./chunk-SYBJ7MT3.js";import"./chunk-6W35AARC.js";import"./chunk-5IFDVB4Y.js";import"./chunk-RF3DRJOH.js";import"./chunk-KBJA7JDT.js";import"./chunk-CGHMCYX6.js";import"./chunk-7WRWCJJ6.js";import"./chunk-CKCQ2NTZ.js";import"./chunk-HKY6CBZC.js";import"./chunk-DGSYBCLX.js";import"./chunk-SILEK5O4.js";import"./chunk-KVFFSUF4.js";import"./chunk-LX6WD7J6.js";import"./chunk-THYR3NRL.js";import{a as e,b as t,c as r,d as a,e as o,f as l,g as p,h as n,i as m,j as S,k as s,l as i,m as f,n as x,o as y,p as M,q as W,r as g,s as E,t as V,u,v as C,w as c,x as v}from"./chunk-7ENJXL4H.js";import"./chunk-22GIA4MK.js";export{T as CrossmintWallets,e as InvalidApiKeyError,t as InvalidEnvironmentError,S as InvalidMessageFormatError,m as InvalidSignerError,s as InvalidTypedDataError,o as InvalidWalletConfigError,x as MessageSigningNotSupportedError,v as PendingApprovalsError,M as SignatureNotAvailableError,y as SignatureNotCreatedError,i as SignatureNotFoundError,n as SignerTypeMismatchError,f as SigningFailedError,u as TransactionAwaitingApprovalError,E as TransactionConfirmationTimeoutError,c as TransactionFailedError,C as TransactionHashNotFoundError,g as TransactionNotAvailableError,W as TransactionNotCreatedError,V as TransactionSendingFailedError,l as WalletCreationError,a as WalletNotAvailableError,p as WalletTypeMismatchError,r as WalletTypeNotSupportedError,I as createCrossmint};
1
+ import{a as I,b as T}from"./chunk-GZO7YY5G.js";import"./chunk-46HOKNA7.js";import"./chunk-ITCP6W2T.js";import"./chunk-SDH5CVH7.js";import"./chunk-OKXV3IAA.js";import"./chunk-NNEAJN24.js";import"./chunk-YLMKJ56K.js";import"./chunk-DAZ4XSAW.js";import"./chunk-SYBJ7MT3.js";import"./chunk-6W35AARC.js";import"./chunk-CGHMCYX6.js";import"./chunk-7WRWCJJ6.js";import"./chunk-DSZ2SEZW.js";import"./chunk-HKY6CBZC.js";import"./chunk-DGSYBCLX.js";import"./chunk-SILEK5O4.js";import"./chunk-KVFFSUF4.js";import"./chunk-LX6WD7J6.js";import"./chunk-5IFDVB4Y.js";import"./chunk-NRPUIFKC.js";import"./chunk-XH7JPM65.js";import{a as e,b as t,c as a,d as r,e as l,f as o,g as p,h as n,i as m,j as S,k as i,l as s,m as f,n as x,o as y,p as g,q as W,r as M,s as E,t as V,u as c,v as u,w as C,x as v}from"./chunk-7ENJXL4H.js";import"./chunk-22GIA4MK.js";import"./chunk-KBJA7JDT.js";export{T as CrossmintWallets,e as InvalidApiKeyError,t as InvalidEnvironmentError,S as InvalidMessageFormatError,m as InvalidSignerError,i as InvalidTypedDataError,l as InvalidWalletConfigError,x as MessageSigningNotSupportedError,v as PendingApprovalsError,g as SignatureNotAvailableError,y as SignatureNotCreatedError,s as SignatureNotFoundError,n as SignerTypeMismatchError,f as SigningFailedError,c as TransactionAwaitingApprovalError,E as TransactionConfirmationTimeoutError,C as TransactionFailedError,u as TransactionHashNotFoundError,M as TransactionNotAvailableError,W as TransactionNotCreatedError,V as TransactionSendingFailedError,o as WalletCreationError,r as WalletNotAvailableError,p as WalletTypeMismatchError,a as WalletTypeNotSupportedError,I as createCrossmint};
@@ -2,10 +2,11 @@ import { SolanaSupportedToken } from './solana/tokens.js';
2
2
  import { SolanaNonCustodialSigner, SolanaSigner, SolanaSignerInput, SolanaNonCustodialSignerInput } from './solana/types/signers.js';
3
3
  import { BaseSolanaWallet, SolanaSmartWallet, SmartWalletTransactionParams, SolanaMPCWallet } from './solana/types/wallet.js';
4
4
  import { EVMSmartWallet, TransactionInput } from './evm/types/wallet.js';
5
- import { VersionedTransaction, PublicKey, Connection } from '@solana/web3.js';
6
5
  import { ApiClient } from './api/client.js';
7
- import { SolanaWalletLocator, GetTransactionsResponse, GetSignerResponse, GetBalanceResponse, GetNftsResponse } from './api/types.js';
6
+ import { SolanaWalletLocator, GetTransactionsResponse, GetSignerResponse, WalletBalance, GetNftsResponse, DelegatedSigner } from './api/types.js';
7
+ import { VersionedTransaction, PublicKey, Connection } from '@solana/web3.js';
8
8
  import { SolanaApprovalsService } from './solana/services/approvals-service.js';
9
+ import { DelegatedSignerDto } from './api/gen/types.gen.js';
9
10
 
10
11
  declare class SolanaTransactionsService {
11
12
  private readonly walletLocator;
@@ -31,7 +32,7 @@ declare class SolanaDelegatedSignerService {
31
32
  constructor(walletLocator: SolanaWalletLocator, transactionsService: SolanaTransactionsService, apiClient: ApiClient);
32
33
  registerDelegatedSigner(signer: string, adminSigner?: SolanaNonCustodialSigner): Promise<GetSignerResponse>;
33
34
  getDelegatedSigner(signer: string): Promise<GetSignerResponse>;
34
- getDelegatedSigners(): Promise<GetSignerResponse[]>;
35
+ getDelegatedSigners(): Promise<DelegatedSignerDto[]>;
35
36
  }
36
37
 
37
38
  type Transaction$1 = VersionedTransaction;
@@ -56,7 +57,7 @@ declare abstract class SolanaWallet implements BaseSolanaWallet {
56
57
  * @param tokens - The tokens
57
58
  * @returns The balances
58
59
  */
59
- getBalances(tokens: SolanaSupportedToken[]): Promise<GetBalanceResponse>;
60
+ getBalances(tokens: SolanaSupportedToken[]): Promise<WalletBalance>;
60
61
  /**
61
62
  * Get the wallet transactions
62
63
  * @returns The transactions
@@ -91,8 +92,10 @@ declare class SolanaSmartWalletImpl extends SolanaWallet implements SolanaSmartW
91
92
  /**
92
93
  * Gets delegated signers for the wallet
93
94
  * @returns The delegated signers
95
+ * @throws {WalletNotAvailableError} If the wallet is not found
96
+ * @throws {WalletTypeNotSupportedError} If the wallet type is not supported
94
97
  */
95
- getDelegatedSigners(): Promise<GetSignerResponse[]>;
98
+ getDelegatedSigners(): Promise<DelegatedSigner[]>;
96
99
  private getEffectiveTransactionSigner;
97
100
  }
98
101
  declare class SolanaMPCWalletImpl extends SolanaWallet implements SolanaMPCWallet {
@@ -2,10 +2,11 @@ import { SolanaSupportedToken } from './solana/tokens.cjs';
2
2
  import { SolanaNonCustodialSigner, SolanaSigner, SolanaSignerInput, SolanaNonCustodialSignerInput } from './solana/types/signers.cjs';
3
3
  import { BaseSolanaWallet, SolanaSmartWallet, SmartWalletTransactionParams, SolanaMPCWallet } from './solana/types/wallet.cjs';
4
4
  import { EVMSmartWallet, TransactionInput } from './evm/types/wallet.cjs';
5
- import { VersionedTransaction, PublicKey, Connection } from '@solana/web3.js';
6
5
  import { ApiClient } from './api/client.cjs';
7
- import { SolanaWalletLocator, GetTransactionsResponse, GetSignerResponse, GetBalanceResponse, GetNftsResponse } from './api/types.cjs';
6
+ import { SolanaWalletLocator, GetTransactionsResponse, GetSignerResponse, WalletBalance, GetNftsResponse, DelegatedSigner } from './api/types.cjs';
7
+ import { VersionedTransaction, PublicKey, Connection } from '@solana/web3.js';
8
8
  import { SolanaApprovalsService } from './solana/services/approvals-service.cjs';
9
+ import { DelegatedSignerDto } from './api/gen/types.gen.cjs';
9
10
 
10
11
  declare class SolanaTransactionsService {
11
12
  private readonly walletLocator;
@@ -31,7 +32,7 @@ declare class SolanaDelegatedSignerService {
31
32
  constructor(walletLocator: SolanaWalletLocator, transactionsService: SolanaTransactionsService, apiClient: ApiClient);
32
33
  registerDelegatedSigner(signer: string, adminSigner?: SolanaNonCustodialSigner): Promise<GetSignerResponse>;
33
34
  getDelegatedSigner(signer: string): Promise<GetSignerResponse>;
34
- getDelegatedSigners(): Promise<GetSignerResponse[]>;
35
+ getDelegatedSigners(): Promise<DelegatedSignerDto[]>;
35
36
  }
36
37
 
37
38
  type Transaction$1 = VersionedTransaction;
@@ -56,7 +57,7 @@ declare abstract class SolanaWallet implements BaseSolanaWallet {
56
57
  * @param tokens - The tokens
57
58
  * @returns The balances
58
59
  */
59
- getBalances(tokens: SolanaSupportedToken[]): Promise<GetBalanceResponse>;
60
+ getBalances(tokens: SolanaSupportedToken[]): Promise<WalletBalance>;
60
61
  /**
61
62
  * Get the wallet transactions
62
63
  * @returns The transactions
@@ -91,8 +92,10 @@ declare class SolanaSmartWalletImpl extends SolanaWallet implements SolanaSmartW
91
92
  /**
92
93
  * Gets delegated signers for the wallet
93
94
  * @returns The delegated signers
95
+ * @throws {WalletNotAvailableError} If the wallet is not found
96
+ * @throws {WalletTypeNotSupportedError} If the wallet type is not supported
94
97
  */
95
- getDelegatedSigners(): Promise<GetSignerResponse[]>;
98
+ getDelegatedSigners(): Promise<DelegatedSigner[]>;
96
99
  private getEffectiveTransactionSigner;
97
100
  }
98
101
  declare class SolanaMPCWalletImpl extends SolanaWallet implements SolanaMPCWallet {
package/dist/sdk.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk7QMIL57Ycjs = require('./chunk-7QMIL57Y.cjs');require('./chunk-C4BKKX7I.cjs');require('./chunk-3TTYXSH3.cjs');require('./chunk-F7GTDFYC.cjs');require('./chunk-VDYYOSPR.cjs');require('./chunk-EOV2V3ZM.cjs');require('./chunk-RB66U3DD.cjs');require('./chunk-D67AZHCX.cjs');require('./chunk-B62JJITC.cjs');require('./chunk-6XOH62PV.cjs');require('./chunk-6HXIZLEQ.cjs');require('./chunk-USEBBJLH.cjs');require('./chunk-ECAM5KTH.cjs');require('./chunk-C2WL57HT.cjs');require('./chunk-XKXW2FNY.cjs');require('./chunk-RWCX6PZU.cjs');require('./chunk-6DTBGTSS.cjs');require('./chunk-JFUBHJ2C.cjs');require('./chunk-F2XDGZCB.cjs');require('./chunk-MFUN74KH.cjs');require('./chunk-DANM4IBF.cjs');require('./chunk-NOQASYSI.cjs');require('./chunk-CT2UGJEL.cjs');require('./chunk-CK4JCQY6.cjs');exports.CrossmintWallets = _chunk7QMIL57Ycjs.b; exports.createCrossmint = _chunk7QMIL57Ycjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkTJTBZ2QFcjs = require('./chunk-TJTBZ2QF.cjs');require('./chunk-EIYO37J7.cjs');require('./chunk-3TTYXSH3.cjs');require('./chunk-F7GTDFYC.cjs');require('./chunk-VDYYOSPR.cjs');require('./chunk-BAEWGOIC.cjs');require('./chunk-DNWDTJR6.cjs');require('./chunk-2JSYGDAP.cjs');require('./chunk-B62JJITC.cjs');require('./chunk-6XOH62PV.cjs');require('./chunk-C2WL57HT.cjs');require('./chunk-XKXW2FNY.cjs');require('./chunk-PBZUAHQL.cjs');require('./chunk-6DTBGTSS.cjs');require('./chunk-JFUBHJ2C.cjs');require('./chunk-F2XDGZCB.cjs');require('./chunk-MFUN74KH.cjs');require('./chunk-DANM4IBF.cjs');require('./chunk-6HXIZLEQ.cjs');require('./chunk-MILONSAH.cjs');require('./chunk-WQEO47FG.cjs');require('./chunk-CT2UGJEL.cjs');require('./chunk-CK4JCQY6.cjs');require('./chunk-ECAM5KTH.cjs');exports.CrossmintWallets = _chunkTJTBZ2QFcjs.b; exports.createCrossmint = _chunkTJTBZ2QFcjs.a;
package/dist/sdk.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Crossmint } from '@crossmint/common-sdk-base';
2
2
  export { Crossmint, createCrossmint } from '@crossmint/common-sdk-base';
3
3
  import { WalletTypeToArgs, WalletTypeToWallet } from './services/types.cjs';
4
- import { W as WalletOptions } from './options-DGElO-xR.cjs';
4
+ import { W as WalletOptions } from './options-Cwj5EWYL.cjs';
5
5
  import './evm/types/signers.cjs';
6
6
  import 'ox';
7
7
  import 'viem';
package/dist/sdk.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Crossmint } from '@crossmint/common-sdk-base';
2
2
  export { Crossmint, createCrossmint } from '@crossmint/common-sdk-base';
3
3
  import { WalletTypeToArgs, WalletTypeToWallet } from './services/types.js';
4
- import { W as WalletOptions } from './options-DmcWBOpe.js';
4
+ import { W as WalletOptions } from './options-C2ts4NaO.js';
5
5
  import './evm/types/signers.js';
6
6
  import 'ox';
7
7
  import 'viem';
package/dist/sdk.js CHANGED
@@ -1 +1 @@
1
- import{a,b}from"./chunk-FEHPDTLM.js";import"./chunk-FK6GUFCI.js";import"./chunk-ITCP6W2T.js";import"./chunk-SDH5CVH7.js";import"./chunk-OKXV3IAA.js";import"./chunk-7IGI7P26.js";import"./chunk-RNRZUJGI.js";import"./chunk-O3UGYUNV.js";import"./chunk-SYBJ7MT3.js";import"./chunk-6W35AARC.js";import"./chunk-5IFDVB4Y.js";import"./chunk-RF3DRJOH.js";import"./chunk-KBJA7JDT.js";import"./chunk-CGHMCYX6.js";import"./chunk-7WRWCJJ6.js";import"./chunk-CKCQ2NTZ.js";import"./chunk-HKY6CBZC.js";import"./chunk-DGSYBCLX.js";import"./chunk-SILEK5O4.js";import"./chunk-KVFFSUF4.js";import"./chunk-LX6WD7J6.js";import"./chunk-THYR3NRL.js";import"./chunk-7ENJXL4H.js";import"./chunk-22GIA4MK.js";export{b as CrossmintWallets,a as createCrossmint};
1
+ import{a,b}from"./chunk-GZO7YY5G.js";import"./chunk-46HOKNA7.js";import"./chunk-ITCP6W2T.js";import"./chunk-SDH5CVH7.js";import"./chunk-OKXV3IAA.js";import"./chunk-NNEAJN24.js";import"./chunk-YLMKJ56K.js";import"./chunk-DAZ4XSAW.js";import"./chunk-SYBJ7MT3.js";import"./chunk-6W35AARC.js";import"./chunk-CGHMCYX6.js";import"./chunk-7WRWCJJ6.js";import"./chunk-DSZ2SEZW.js";import"./chunk-HKY6CBZC.js";import"./chunk-DGSYBCLX.js";import"./chunk-SILEK5O4.js";import"./chunk-KVFFSUF4.js";import"./chunk-LX6WD7J6.js";import"./chunk-5IFDVB4Y.js";import"./chunk-NRPUIFKC.js";import"./chunk-XH7JPM65.js";import"./chunk-7ENJXL4H.js";import"./chunk-22GIA4MK.js";import"./chunk-KBJA7JDT.js";export{b as CrossmintWallets,a as createCrossmint};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkC4BKKX7Icjs = require('../chunk-C4BKKX7I.cjs');require('../chunk-3TTYXSH3.cjs');require('../chunk-F7GTDFYC.cjs');require('../chunk-VDYYOSPR.cjs');require('../chunk-EOV2V3ZM.cjs');require('../chunk-RB66U3DD.cjs');require('../chunk-D67AZHCX.cjs');require('../chunk-B62JJITC.cjs');require('../chunk-6XOH62PV.cjs');require('../chunk-C2WL57HT.cjs');require('../chunk-XKXW2FNY.cjs');require('../chunk-RWCX6PZU.cjs');require('../chunk-6DTBGTSS.cjs');require('../chunk-JFUBHJ2C.cjs');require('../chunk-F2XDGZCB.cjs');require('../chunk-MFUN74KH.cjs');require('../chunk-DANM4IBF.cjs');require('../chunk-NOQASYSI.cjs');require('../chunk-CT2UGJEL.cjs');require('../chunk-CK4JCQY6.cjs');exports.WalletFactory = _chunkC4BKKX7Icjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkEIYO37J7cjs = require('../chunk-EIYO37J7.cjs');require('../chunk-3TTYXSH3.cjs');require('../chunk-F7GTDFYC.cjs');require('../chunk-VDYYOSPR.cjs');require('../chunk-BAEWGOIC.cjs');require('../chunk-DNWDTJR6.cjs');require('../chunk-2JSYGDAP.cjs');require('../chunk-B62JJITC.cjs');require('../chunk-6XOH62PV.cjs');require('../chunk-C2WL57HT.cjs');require('../chunk-XKXW2FNY.cjs');require('../chunk-PBZUAHQL.cjs');require('../chunk-6DTBGTSS.cjs');require('../chunk-JFUBHJ2C.cjs');require('../chunk-F2XDGZCB.cjs');require('../chunk-MFUN74KH.cjs');require('../chunk-DANM4IBF.cjs');require('../chunk-WQEO47FG.cjs');require('../chunk-CT2UGJEL.cjs');require('../chunk-CK4JCQY6.cjs');exports.WalletFactory = _chunkEIYO37J7cjs.a;
@@ -1,6 +1,6 @@
1
1
  import { WalletTypeToArgs, WalletTypeToWallet } from './types.cjs';
2
2
  import { ApiClient } from '../api/client.cjs';
3
- import { W as WalletOptions } from '../options-DGElO-xR.cjs';
3
+ import { W as WalletOptions } from '../options-Cwj5EWYL.cjs';
4
4
  import '../evm/types/signers.cjs';
5
5
  import 'ox';
6
6
  import 'viem';
@@ -1,6 +1,6 @@
1
1
  import { WalletTypeToArgs, WalletTypeToWallet } from './types.js';
2
2
  import { ApiClient } from '../api/client.js';
3
- import { W as WalletOptions } from '../options-DmcWBOpe.js';
3
+ import { W as WalletOptions } from '../options-C2ts4NaO.js';
4
4
  import '../evm/types/signers.js';
5
5
  import 'ox';
6
6
  import 'viem';
@@ -1 +1 @@
1
- import{a}from"../chunk-FK6GUFCI.js";import"../chunk-ITCP6W2T.js";import"../chunk-SDH5CVH7.js";import"../chunk-OKXV3IAA.js";import"../chunk-7IGI7P26.js";import"../chunk-RNRZUJGI.js";import"../chunk-O3UGYUNV.js";import"../chunk-SYBJ7MT3.js";import"../chunk-6W35AARC.js";import"../chunk-CGHMCYX6.js";import"../chunk-7WRWCJJ6.js";import"../chunk-CKCQ2NTZ.js";import"../chunk-HKY6CBZC.js";import"../chunk-DGSYBCLX.js";import"../chunk-SILEK5O4.js";import"../chunk-KVFFSUF4.js";import"../chunk-LX6WD7J6.js";import"../chunk-THYR3NRL.js";import"../chunk-7ENJXL4H.js";import"../chunk-22GIA4MK.js";export{a as WalletFactory};
1
+ import{a}from"../chunk-46HOKNA7.js";import"../chunk-ITCP6W2T.js";import"../chunk-SDH5CVH7.js";import"../chunk-OKXV3IAA.js";import"../chunk-NNEAJN24.js";import"../chunk-YLMKJ56K.js";import"../chunk-DAZ4XSAW.js";import"../chunk-SYBJ7MT3.js";import"../chunk-6W35AARC.js";import"../chunk-CGHMCYX6.js";import"../chunk-7WRWCJJ6.js";import"../chunk-DSZ2SEZW.js";import"../chunk-HKY6CBZC.js";import"../chunk-DGSYBCLX.js";import"../chunk-SILEK5O4.js";import"../chunk-KVFFSUF4.js";import"../chunk-LX6WD7J6.js";import"../chunk-XH7JPM65.js";import"../chunk-7ENJXL4H.js";import"../chunk-22GIA4MK.js";export{a as WalletFactory};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-3TTYXSH3.cjs');require('../chunk-F7GTDFYC.cjs');var _chunkEOV2V3ZMcjs = require('../chunk-EOV2V3ZM.cjs');require('../chunk-RB66U3DD.cjs');require('../chunk-D67AZHCX.cjs');require('../chunk-B62JJITC.cjs');var _chunk6XOH62PVcjs = require('../chunk-6XOH62PV.cjs');require('../chunk-DANM4IBF.cjs');require('../chunk-NOQASYSI.cjs');require('../chunk-CT2UGJEL.cjs');require('../chunk-CK4JCQY6.cjs');exports.SolanaMPCWalletImpl = _chunkEOV2V3ZMcjs.c; exports.SolanaSmartWalletImpl = _chunkEOV2V3ZMcjs.b; exports.SolanaWallet = _chunkEOV2V3ZMcjs.a; exports.isCustodialSigner = _chunk6XOH62PVcjs.b; exports.isNonCustodialSigner = _chunk6XOH62PVcjs.c; exports.parseSolanaNonCustodialSignerInput = _chunk6XOH62PVcjs.a; exports.parseSolanaSignerInput = _chunk6XOH62PVcjs.d;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-3TTYXSH3.cjs');require('../chunk-F7GTDFYC.cjs');var _chunkBAEWGOICcjs = require('../chunk-BAEWGOIC.cjs');require('../chunk-DNWDTJR6.cjs');require('../chunk-2JSYGDAP.cjs');require('../chunk-B62JJITC.cjs');var _chunk6XOH62PVcjs = require('../chunk-6XOH62PV.cjs');require('../chunk-DANM4IBF.cjs');require('../chunk-WQEO47FG.cjs');require('../chunk-CT2UGJEL.cjs');require('../chunk-CK4JCQY6.cjs');exports.SolanaMPCWalletImpl = _chunkBAEWGOICcjs.c; exports.SolanaSmartWalletImpl = _chunkBAEWGOICcjs.b; exports.SolanaWallet = _chunkBAEWGOICcjs.a; exports.isCustodialSigner = _chunk6XOH62PVcjs.b; exports.isNonCustodialSigner = _chunk6XOH62PVcjs.c; exports.parseSolanaNonCustodialSignerInput = _chunk6XOH62PVcjs.a; exports.parseSolanaSignerInput = _chunk6XOH62PVcjs.d;
@@ -1,4 +1,4 @@
1
- export { d as SolanaMPCWalletImpl, c as SolanaSmartWalletImpl, b as SolanaWallet, T as Transaction } from '../options-DGElO-xR.cjs';
1
+ export { d as SolanaMPCWalletImpl, c as SolanaSmartWalletImpl, b as SolanaWallet, T as Transaction } from '../options-Cwj5EWYL.cjs';
2
2
  export { SolanaSupportedToken } from './tokens.cjs';
3
3
  export { SolanaAddress, SolanaCustodialSigner, SolanaCustodialSignerInput, SolanaExternalSignerInput, SolanaKeypairSignerInput, SolanaNonCustodialSigner, SolanaNonCustodialSignerInput, SolanaSigner, SolanaSignerInput, isCustodialSigner, isNonCustodialSigner, parseSolanaNonCustodialSignerInput, parseSolanaSignerInput } from './types/signers.cjs';
4
4
  export { SolanaMPCWallet, SolanaSmartWallet } from './types/wallet.cjs';
@@ -7,7 +7,7 @@ import 'viem';
7
7
  import '../api/types.cjs';
8
8
  import '../api/gen/types.gen.cjs';
9
9
  import '../evm/chains/index.cjs';
10
- import '@solana/web3.js';
11
10
  import '../api/client.cjs';
12
11
  import '@crossmint/common-sdk-base';
12
+ import '@solana/web3.js';
13
13
  import './services/approvals-service.cjs';
@@ -1,4 +1,4 @@
1
- export { d as SolanaMPCWalletImpl, c as SolanaSmartWalletImpl, b as SolanaWallet, T as Transaction } from '../options-DmcWBOpe.js';
1
+ export { d as SolanaMPCWalletImpl, c as SolanaSmartWalletImpl, b as SolanaWallet, T as Transaction } from '../options-C2ts4NaO.js';
2
2
  export { SolanaSupportedToken } from './tokens.js';
3
3
  export { SolanaAddress, SolanaCustodialSigner, SolanaCustodialSignerInput, SolanaExternalSignerInput, SolanaKeypairSignerInput, SolanaNonCustodialSigner, SolanaNonCustodialSignerInput, SolanaSigner, SolanaSignerInput, isCustodialSigner, isNonCustodialSigner, parseSolanaNonCustodialSignerInput, parseSolanaSignerInput } from './types/signers.js';
4
4
  export { SolanaMPCWallet, SolanaSmartWallet } from './types/wallet.js';
@@ -7,7 +7,7 @@ import 'viem';
7
7
  import '../api/types.js';
8
8
  import '../api/gen/types.gen.js';
9
9
  import '../evm/chains/index.js';
10
- import '@solana/web3.js';
11
10
  import '../api/client.js';
12
11
  import '@crossmint/common-sdk-base';
12
+ import '@solana/web3.js';
13
13
  import './services/approvals-service.js';
@@ -1 +1 @@
1
- import"../chunk-ITCP6W2T.js";import"../chunk-SDH5CVH7.js";import{a as e,b as f,c as g}from"../chunk-7IGI7P26.js";import"../chunk-RNRZUJGI.js";import"../chunk-O3UGYUNV.js";import"../chunk-SYBJ7MT3.js";import{a,b,c,d}from"../chunk-6W35AARC.js";import"../chunk-LX6WD7J6.js";import"../chunk-THYR3NRL.js";import"../chunk-7ENJXL4H.js";import"../chunk-22GIA4MK.js";export{g as SolanaMPCWalletImpl,f as SolanaSmartWalletImpl,e as SolanaWallet,b as isCustodialSigner,c as isNonCustodialSigner,a as parseSolanaNonCustodialSignerInput,d as parseSolanaSignerInput};
1
+ import"../chunk-ITCP6W2T.js";import"../chunk-SDH5CVH7.js";import{a as e,b as f,c as g}from"../chunk-NNEAJN24.js";import"../chunk-YLMKJ56K.js";import"../chunk-DAZ4XSAW.js";import"../chunk-SYBJ7MT3.js";import{a,b,c,d}from"../chunk-6W35AARC.js";import"../chunk-LX6WD7J6.js";import"../chunk-XH7JPM65.js";import"../chunk-7ENJXL4H.js";import"../chunk-22GIA4MK.js";export{g as SolanaMPCWalletImpl,f as SolanaSmartWalletImpl,e as SolanaWallet,b as isCustodialSigner,c as isNonCustodialSigner,a as parseSolanaNonCustodialSignerInput,d as parseSolanaSignerInput};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRB66U3DDcjs = require('../../chunk-RB66U3DD.cjs');require('../../chunk-CK4JCQY6.cjs');exports.SolanaDelegatedSignerService = _chunkRB66U3DDcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkDNWDTJR6cjs = require('../../chunk-DNWDTJR6.cjs');require('../../chunk-CT2UGJEL.cjs');require('../../chunk-CK4JCQY6.cjs');exports.SolanaDelegatedSignerService = _chunkDNWDTJR6cjs.a;
@@ -1,10 +1,10 @@
1
+ import '../../api/gen/types.gen.cjs';
1
2
  import '../../api/client.cjs';
2
3
  import '../../api/types.cjs';
3
- export { a as SolanaDelegatedSignerService } from '../../options-DGElO-xR.cjs';
4
+ export { a as SolanaDelegatedSignerService } from '../../options-Cwj5EWYL.cjs';
4
5
  import '../types/signers.cjs';
5
6
  import '@crossmint/common-sdk-base';
6
7
  import 'viem';
7
- import '../../api/gen/types.gen.cjs';
8
8
  import '../tokens.cjs';
9
9
  import '../types/wallet.cjs';
10
10
  import '@solana/web3.js';
@@ -1,10 +1,10 @@
1
+ import '../../api/gen/types.gen.js';
1
2
  import '../../api/client.js';
2
3
  import '../../api/types.js';
3
- export { a as SolanaDelegatedSignerService } from '../../options-DmcWBOpe.js';
4
+ export { a as SolanaDelegatedSignerService } from '../../options-C2ts4NaO.js';
4
5
  import '../types/signers.js';
5
6
  import '@crossmint/common-sdk-base';
6
7
  import 'viem';
7
- import '../../api/gen/types.gen.js';
8
8
  import '../tokens.js';
9
9
  import '../types/wallet.js';
10
10
  import '@solana/web3.js';
@@ -1 +1 @@
1
- import{a}from"../../chunk-RNRZUJGI.js";import"../../chunk-22GIA4MK.js";export{a as SolanaDelegatedSignerService};
1
+ import{a}from"../../chunk-YLMKJ56K.js";import"../../chunk-7ENJXL4H.js";import"../../chunk-22GIA4MK.js";export{a as SolanaDelegatedSignerService};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkD67AZHCXcjs = require('../../chunk-D67AZHCX.cjs');require('../../chunk-B62JJITC.cjs');require('../../chunk-DANM4IBF.cjs');require('../../chunk-NOQASYSI.cjs');require('../../chunk-CT2UGJEL.cjs');require('../../chunk-CK4JCQY6.cjs');exports.SolanaTransactionsService = _chunkD67AZHCXcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2JSYGDAPcjs = require('../../chunk-2JSYGDAP.cjs');require('../../chunk-B62JJITC.cjs');require('../../chunk-DANM4IBF.cjs');require('../../chunk-WQEO47FG.cjs');require('../../chunk-CT2UGJEL.cjs');require('../../chunk-CK4JCQY6.cjs');exports.SolanaTransactionsService = _chunk2JSYGDAPcjs.a;
@@ -3,7 +3,7 @@ import '../../api/types.cjs';
3
3
  import '../types/signers.cjs';
4
4
  import '@solana/web3.js';
5
5
  import './approvals-service.cjs';
6
- export { S as SolanaTransactionsService } from '../../options-DGElO-xR.cjs';
6
+ export { S as SolanaTransactionsService } from '../../options-Cwj5EWYL.cjs';
7
7
  import '@crossmint/common-sdk-base';
8
8
  import 'viem';
9
9
  import '../../api/gen/types.gen.cjs';
@@ -3,7 +3,7 @@ import '../../api/types.js';
3
3
  import '../types/signers.js';
4
4
  import '@solana/web3.js';
5
5
  import './approvals-service.js';
6
- export { S as SolanaTransactionsService } from '../../options-DmcWBOpe.js';
6
+ export { S as SolanaTransactionsService } from '../../options-C2ts4NaO.js';
7
7
  import '@crossmint/common-sdk-base';
8
8
  import 'viem';
9
9
  import '../../api/gen/types.gen.js';
@@ -1 +1 @@
1
- import{a}from"../../chunk-O3UGYUNV.js";import"../../chunk-SYBJ7MT3.js";import"../../chunk-LX6WD7J6.js";import"../../chunk-THYR3NRL.js";import"../../chunk-7ENJXL4H.js";import"../../chunk-22GIA4MK.js";export{a as SolanaTransactionsService};
1
+ import{a}from"../../chunk-DAZ4XSAW.js";import"../../chunk-SYBJ7MT3.js";import"../../chunk-LX6WD7J6.js";import"../../chunk-XH7JPM65.js";import"../../chunk-7ENJXL4H.js";import"../../chunk-22GIA4MK.js";export{a as SolanaTransactionsService};
@@ -1,4 +1,4 @@
1
- import { GetBalanceResponse, GetTransactionsResponse, SolanaWalletLocator, GetNftsResponse, GetSignerResponse } from '../../api/types.cjs';
1
+ import { WalletBalance, GetTransactionsResponse, SolanaWalletLocator, GetNftsResponse, GetSignerResponse, DelegatedSigner } from '../../api/types.cjs';
2
2
  import { SolanaSigner, SolanaNonCustodialSignerInput } from './signers.cjs';
3
3
  import { PublicKey, VersionedTransaction } from '@solana/web3.js';
4
4
  import { SolanaSupportedToken } from '../tokens.cjs';
@@ -19,7 +19,7 @@ interface BaseSolanaWallet {
19
19
  * @param tokens - The tokens
20
20
  * @returns The balances
21
21
  */
22
- getBalances(tokens: SolanaSupportedToken[]): Promise<GetBalanceResponse>;
22
+ getBalances(tokens: SolanaSupportedToken[]): Promise<WalletBalance>;
23
23
  /**
24
24
  * Get the wallet transactions
25
25
  * @returns The transactions
@@ -36,7 +36,7 @@ interface BaseSolanaWallet {
36
36
  }
37
37
  interface SolanaSmartWallet extends BaseSolanaWallet {
38
38
  addDelegatedSigner(signer: string): Promise<GetSignerResponse>;
39
- getDelegatedSigners(): Promise<GetSignerResponse[]>;
39
+ getDelegatedSigners(): Promise<DelegatedSigner[]>;
40
40
  adminSigner: SolanaSigner;
41
41
  sendTransaction(parameters: SmartWalletTransactionParams): Promise<string>;
42
42
  }
@@ -1,4 +1,4 @@
1
- import { GetBalanceResponse, GetTransactionsResponse, SolanaWalletLocator, GetNftsResponse, GetSignerResponse } from '../../api/types.js';
1
+ import { WalletBalance, GetTransactionsResponse, SolanaWalletLocator, GetNftsResponse, GetSignerResponse, DelegatedSigner } from '../../api/types.js';
2
2
  import { SolanaSigner, SolanaNonCustodialSignerInput } from './signers.js';
3
3
  import { PublicKey, VersionedTransaction } from '@solana/web3.js';
4
4
  import { SolanaSupportedToken } from '../tokens.js';
@@ -19,7 +19,7 @@ interface BaseSolanaWallet {
19
19
  * @param tokens - The tokens
20
20
  * @returns The balances
21
21
  */
22
- getBalances(tokens: SolanaSupportedToken[]): Promise<GetBalanceResponse>;
22
+ getBalances(tokens: SolanaSupportedToken[]): Promise<WalletBalance>;
23
23
  /**
24
24
  * Get the wallet transactions
25
25
  * @returns The transactions
@@ -36,7 +36,7 @@ interface BaseSolanaWallet {
36
36
  }
37
37
  interface SolanaSmartWallet extends BaseSolanaWallet {
38
38
  addDelegatedSigner(signer: string): Promise<GetSignerResponse>;
39
- getDelegatedSigners(): Promise<GetSignerResponse[]>;
39
+ getDelegatedSigners(): Promise<DelegatedSigner[]>;
40
40
  adminSigner: SolanaSigner;
41
41
  sendTransaction(parameters: SmartWalletTransactionParams): Promise<string>;
42
42
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkEOV2V3ZMcjs = require('../chunk-EOV2V3ZM.cjs');require('../chunk-RB66U3DD.cjs');require('../chunk-D67AZHCX.cjs');require('../chunk-B62JJITC.cjs');require('../chunk-6XOH62PV.cjs');require('../chunk-DANM4IBF.cjs');require('../chunk-NOQASYSI.cjs');require('../chunk-CT2UGJEL.cjs');require('../chunk-CK4JCQY6.cjs');exports.SolanaMPCWalletImpl = _chunkEOV2V3ZMcjs.c; exports.SolanaSmartWalletImpl = _chunkEOV2V3ZMcjs.b; exports.SolanaWallet = _chunkEOV2V3ZMcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkBAEWGOICcjs = require('../chunk-BAEWGOIC.cjs');require('../chunk-DNWDTJR6.cjs');require('../chunk-2JSYGDAP.cjs');require('../chunk-B62JJITC.cjs');require('../chunk-6XOH62PV.cjs');require('../chunk-DANM4IBF.cjs');require('../chunk-WQEO47FG.cjs');require('../chunk-CT2UGJEL.cjs');require('../chunk-CK4JCQY6.cjs');exports.SolanaMPCWalletImpl = _chunkBAEWGOICcjs.c; exports.SolanaSmartWalletImpl = _chunkBAEWGOICcjs.b; exports.SolanaWallet = _chunkBAEWGOICcjs.a;
@@ -1,7 +1,7 @@
1
- import '@solana/web3.js';
2
1
  import '../api/client.cjs';
3
2
  import '../api/types.cjs';
4
- export { d as SolanaMPCWalletImpl, c as SolanaSmartWalletImpl, b as SolanaWallet, T as Transaction } from '../options-DGElO-xR.cjs';
3
+ import '@solana/web3.js';
4
+ export { d as SolanaMPCWalletImpl, c as SolanaSmartWalletImpl, b as SolanaWallet, T as Transaction } from '../options-Cwj5EWYL.cjs';
5
5
  import './tokens.cjs';
6
6
  import './types/signers.cjs';
7
7
  import './types/wallet.cjs';
@@ -1,7 +1,7 @@
1
- import '@solana/web3.js';
2
1
  import '../api/client.js';
3
2
  import '../api/types.js';
4
- export { d as SolanaMPCWalletImpl, c as SolanaSmartWalletImpl, b as SolanaWallet, T as Transaction } from '../options-DmcWBOpe.js';
3
+ import '@solana/web3.js';
4
+ export { d as SolanaMPCWalletImpl, c as SolanaSmartWalletImpl, b as SolanaWallet, T as Transaction } from '../options-C2ts4NaO.js';
5
5
  import './tokens.js';
6
6
  import './types/signers.js';
7
7
  import './types/wallet.js';
@@ -1 +1 @@
1
- import{a,b,c}from"../chunk-7IGI7P26.js";import"../chunk-RNRZUJGI.js";import"../chunk-O3UGYUNV.js";import"../chunk-SYBJ7MT3.js";import"../chunk-6W35AARC.js";import"../chunk-LX6WD7J6.js";import"../chunk-THYR3NRL.js";import"../chunk-7ENJXL4H.js";import"../chunk-22GIA4MK.js";export{c as SolanaMPCWalletImpl,b as SolanaSmartWalletImpl,a as SolanaWallet};
1
+ import{a,b,c}from"../chunk-NNEAJN24.js";import"../chunk-YLMKJ56K.js";import"../chunk-DAZ4XSAW.js";import"../chunk-SYBJ7MT3.js";import"../chunk-6W35AARC.js";import"../chunk-LX6WD7J6.js";import"../chunk-XH7JPM65.js";import"../chunk-7ENJXL4H.js";import"../chunk-22GIA4MK.js";export{c as SolanaMPCWalletImpl,b as SolanaSmartWalletImpl,a as SolanaWallet};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNOQASYSIcjs = require('../chunk-NOQASYSI.cjs');require('../chunk-CK4JCQY6.cjs');exports.ENTRY_POINT_ADDRESS = _chunkNOQASYSIcjs.d; exports.SDK_NAME = _chunkNOQASYSIcjs.c; exports.SDK_VERSION = _chunkNOQASYSIcjs.b; exports.STATUS_POLLING_INTERVAL_MS = _chunkNOQASYSIcjs.e; exports.WALLETS_SERVICE = _chunkNOQASYSIcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWQEO47FGcjs = require('../chunk-WQEO47FG.cjs');require('../chunk-CK4JCQY6.cjs');exports.ENTRY_POINT_ADDRESS = _chunkWQEO47FGcjs.d; exports.SDK_NAME = _chunkWQEO47FGcjs.c; exports.SDK_VERSION = _chunkWQEO47FGcjs.b; exports.STATUS_POLLING_INTERVAL_MS = _chunkWQEO47FGcjs.e; exports.WALLETS_SERVICE = _chunkWQEO47FGcjs.a;
@@ -1 +1 @@
1
- import{a,b,c,d,e}from"../chunk-THYR3NRL.js";import"../chunk-22GIA4MK.js";export{d as ENTRY_POINT_ADDRESS,c as SDK_NAME,b as SDK_VERSION,e as STATUS_POLLING_INTERVAL_MS,a as WALLETS_SERVICE};
1
+ import{a,b,c,d,e}from"../chunk-XH7JPM65.js";import"../chunk-22GIA4MK.js";export{d as ENTRY_POINT_ADDRESS,c as SDK_NAME,b as SDK_VERSION,e as STATUS_POLLING_INTERVAL_MS,a as WALLETS_SERVICE};
@@ -1,4 +1,4 @@
1
- export { C as Callbacks, f as Transaction, e as Wallet, W as WalletOptions } from '../options-DGElO-xR.cjs';
1
+ export { C as Callbacks, f as Transaction, e as Wallet, W as WalletOptions } from '../options-Cwj5EWYL.cjs';
2
2
  import '../evm/types/wallet.cjs';
3
3
  import '../solana/types/wallet.cjs';
4
4
  import '../solana/tokens.cjs';
@@ -1,4 +1,4 @@
1
- export { C as Callbacks, f as Transaction, e as Wallet, W as WalletOptions } from '../options-DmcWBOpe.js';
1
+ export { C as Callbacks, f as Transaction, e as Wallet, W as WalletOptions } from '../options-C2ts4NaO.js';
2
2
  import '../evm/types/wallet.js';
3
3
  import '../solana/types/wallet.js';
4
4
  import '../solana/tokens.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crossmint/wallets-sdk",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "repository": "https://github.com/Crossmint/crossmint-sdk",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Paella Labs Inc",
@@ -24,11 +24,11 @@
24
24
  "ox": "0.6.9",
25
25
  "tweetnacl": "1.0.3",
26
26
  "viem": "2.23.6",
27
- "@crossmint/common-sdk-auth": "1.0.24",
28
- "@crossmint/common-sdk-base": "0.4.0"
27
+ "@crossmint/common-sdk-base": "0.4.0",
28
+ "@crossmint/common-sdk-auth": "1.0.24"
29
29
  },
30
30
  "devDependencies": {
31
- "@hey-api/openapi-ts": "0.64.5",
31
+ "@hey-api/openapi-ts": "0.66.3",
32
32
  "typedoc": "0.26.5",
33
33
  "typedoc-plugin-frontmatter": "1.0.0",
34
34
  "typedoc-plugin-markdown": "4.2.3"
@@ -1 +0,0 @@
1
- import{a as d}from"./chunk-RNRZUJGI.js";import{a as S}from"./chunk-O3UGYUNV.js";import{a as r,c as o,d as c}from"./chunk-6W35AARC.js";import{c as t}from"./chunk-22GIA4MK.js";var s=class{constructor(e,n,a,i){this.apiClient=e;this.publicKey=n;this.client=a;this.callbacks=i;this.transactionsService=new S(this.walletLocator,this.apiClient),this.delegatedSignerService=new d(this.walletLocator,this.transactionsService,e)}get address(){return this.publicKey.toBase58()}getBalances(e){return t(this,null,function*(){return yield this.apiClient.getBalance(this.address,{tokens:e})})}getTransactions(){return t(this,null,function*(){return yield this.transactionsService.getTransactions()})}unstable_getNfts(e,n,a){return t(this,null,function*(){return yield this.apiClient.unstable_getNfts("solana",a!=null?a:this.walletLocator,e,n)})}get walletLocator(){return this.apiClient.isServerSide?this.address:"me:solana-smart-wallet"}},p=class extends s{constructor(e,n,a,i,u){super(e,n,i,u),this.adminSigner=c(a)}sendTransaction(e){return t(this,null,function*(){var i;let n=this.getEffectiveTransactionSigner(e.delegatedSigner),a=(i=e.additionalSigners)==null?void 0:i.map(r);return yield this.transactionsService.createSignAndConfirm({transaction:e.transaction,signer:n,additionalSigners:a})})}addDelegatedSigner(e){return t(this,null,function*(){return yield this.delegatedSignerService.registerDelegatedSigner(e,o(this.adminSigner)?this.adminSigner:void 0)})}getDelegatedSigners(){return t(this,null,function*(){return yield this.delegatedSignerService.getDelegatedSigners()})}getEffectiveTransactionSigner(e){return e==null?o(this.adminSigner)?this.adminSigner:void 0:r(e)}},g=class extends s{sendTransaction(e){return t(this,null,function*(){var n;return yield this.transactionsService.createSignAndConfirm({transaction:e.transaction,additionalSigners:(n=e.additionalSigners)==null?void 0:n.map(r)})})}};export{s as a,p as b,g as c};
@@ -1 +0,0 @@
1
- import{a as F}from"./chunk-HKY6CBZC.js";import{c as M}from"./chunk-DGSYBCLX.js";import{a as S}from"./chunk-LX6WD7J6.js";import{d as b,e as u}from"./chunk-THYR3NRL.js";import{i as h,j as C,k as y,l as D,m as A,n as N,o as w,p as E,q as L,r as m,s as k,t as x,u as R,v as I,w as P}from"./chunk-7ENJXL4H.js";import{a as T,c as s}from"./chunk-22GIA4MK.js";import{WebAuthnP256 as W}from"ox";import{http as O,createPublicClient as _,concat as J}from"viem";var H=class{constructor(t,a,i,n,e){this.chain=t;this.address=a;this.apiClient=i;this.adminSigner=n;this.callbacks=e;this.publicClient=_({chain:M(t),transport:O()})}getBalances(t){return s(this,null,function*(){return yield this.apiClient.getBalance(this.address,{chains:[this.chain],tokens:t})})}getTransactions(){return s(this,null,function*(){let t=yield this.apiClient.getTransactions(this.walletLocator);if("error"in t)throw new m(JSON.stringify(t));return t.transactions.filter(a=>a.walletType==="evm-smart-wallet")})}unstable_getNfts(t,a,i,n){return s(this,null,function*(){return yield this.apiClient.unstable_getNfts(i,n!=null?n:this.walletLocator,t,a)})}getNonce(t){return s(this,null,function*(){var i;return yield this.publicClient.readContract({abi:F,address:b,functionName:"getNonce",args:[this.address,(i=t==null?void 0:t.key)!=null?i:BigInt(0)]})})}signMessage(t){return s(this,null,function*(){var r;let a=yield this.createSignature(t.message),i=a.id,n=((r=a.approvals)==null?void 0:r.pending)||[],e=yield this.approveSignature(n,i);return yield this.waitForSignature(i),e})}signTypedData(t){return s(this,null,function*(){var r;let a=yield this.createTypedDataSignature(t),i=a.id,n=((r=a.approvals)==null?void 0:r.pending)||[],e=yield this.approveSignature(n,i);return yield this.waitForSignature(i),e})}sendTransaction(t){return s(this,null,function*(){var n,e,r;yield(e=(n=this.callbacks)==null?void 0:n.onTransactionStart)==null?void 0:e.call(n,t);let a=yield this.createTransaction(t),i=a.id;return yield this.approveTransaction(((r=a.approvals)==null?void 0:r.pending)||[],i),yield this.waitForTransaction(i)})}get walletLocator(){return this.apiClient.isServerSide?this.address:"me:evm-smart-wallet"}get signerLocator(){return this.adminSigner.locator}signWithAdminSigner(t){return s(this,null,function*(){switch(this.adminSigner.type){case"evm-passkey":{if(this.adminSigner.signingCallback)return this.adminSigner.signingCallback(t);let{metadata:a,signature:i}=yield W.sign({credentialId:this.adminSigner.id,challenge:t});return{signature:J([`0x${i.r.toString(16)}`,`0x${i.s.toString(16)}`]),metadata:a}}case"evm-keypair":{let a=this.adminSigner.address;if(this.adminSigner.signer.type==="viem_v2"){let i=this.adminSigner.signer.account;if(!i.signMessage)throw new N("Account does not support signMessage");return{signature:yield i.signMessage({message:{raw:t}})}}else return{signature:yield this.adminSigner.signer.provider.request({method:"personal_sign",params:[t,a]})}}}})}createTransaction(t){return s(this,null,function*(){var i;let a=yield this.apiClient.createTransaction(this.walletLocator,{params:{signer:this.signerLocator,chain:this.chain,calls:[{to:t.to,value:t.value?t.value.toString():"0",data:(i=t.data)!=null?i:"0x"}]}});if("error"in a)throw new L(JSON.stringify(a));return a})}approveTransaction(t,a){return s(this,null,function*(){var c,g;let i=t.find(l=>l.signer===this.signerLocator);if(!i){let l=new h(`Signer ${this.signerLocator} not found in pending approvals`);throw yield(g=(c=this.callbacks)==null?void 0:c.onTransactionFail)==null?void 0:g.call(c,l),l}let n=i.message,{signature:e,metadata:r}=yield this.signWithAdminSigner(n),p=yield this.apiClient.approveTransaction(this.walletLocator,a,{approvals:[T({signer:this.signerLocator,signature:this.adminSigner.type==="evm-passkey"?{r:e.slice(0,66),s:`0x${e.slice(66)}`}:e},r&&{metadata:r})]});if("error"in p)throw new P(JSON.stringify(p))})}waitForTransaction(t,a=6e4){return s(this,null,function*(){var r,p,c,g,l,d,f,v;let i=Date.now(),n;do{if(Date.now()-i>a){let o=new k("Transaction confirmation timeout");throw yield(p=(r=this.callbacks).onTransactionFail)==null?void 0:p.call(r,o),o}if(n=yield this.apiClient.getTransaction(this.walletLocator,t),"error"in n)throw new m(JSON.stringify(n));yield S(u)}while(n.status==="pending");if(n.status==="failed"){let o=new x(`Transaction sending failed: ${JSON.stringify(n.error)}`);throw yield(g=(c=this.callbacks).onTransactionFail)==null?void 0:g.call(c,o),o}if(n.status==="awaiting-approval"){let o=new R("Transaction is awaiting approval. Please submit required approvals before waiting for completion.");throw yield(d=(l=this.callbacks).onTransactionFail)==null?void 0:d.call(l,o),o}let e=n.onChain.txId;if(e==null){let o=new I("Transaction hash not found on transaction response");throw yield(v=(f=this.callbacks).onTransactionFail)==null?void 0:v.call(f,o),o}return e})}createSignature(t){return s(this,null,function*(){if(typeof t!="string")throw new C("Message must be a string");let a=yield this.apiClient.createSignature(this.walletLocator,{type:"evm-message",params:{message:t,signer:this.signerLocator,chain:this.chain}});if("error"in a)throw new w(JSON.stringify(a));return a})}createTypedDataSignature(t){return s(this,null,function*(){let{domain:a,message:i,primaryType:n,types:e}=t;if(!a||!i||!e)throw new y("Invalid typed data");let{name:r,version:p,chainId:c,verifyingContract:g,salt:l}=a;if(!r||!p||!c||!g)throw new y("Invalid typed data domain");let d=yield this.apiClient.createSignature(this.walletLocator,{type:"evm-typed-data",params:{typedData:{domain:{name:r,version:p,chainId:Number(c),verifyingContract:g,salt:l},message:i,primaryType:n,types:e},signer:this.signerLocator,chain:this.chain,isSmartWalletSignature:!1}});if("error"in d)throw new w(JSON.stringify(d));return d})}approveSignature(t,a){return s(this,null,function*(){let i=t.find(p=>p.signer===this.signerLocator);if(!i)throw new h(`Signer ${this.signerLocator} not found in pending approvals`);let n=i.message,{signature:e,metadata:r}=yield this.signWithAdminSigner(n);if(e===void 0)throw new D("Signature not available");return yield this.apiClient.approveSignature(this.walletLocator,a,{approvals:[{signer:this.signerLocator,signature:this.adminSigner.type==="evm-passkey"?{r:e.slice(0,66),s:`0x${e.slice(66)}`}:e,metadata:r}]}),e})}waitForSignature(t){return s(this,null,function*(){let a=null;do if(yield S(u),a=yield this.apiClient.getSignature(this.walletLocator,t),"error"in a)throw new E(JSON.stringify(a));while(a===null||a.status==="pending");if(a.status==="failed")throw new A("Signature signing failed")})}};export{H as a};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRB66U3DDcjs = require('./chunk-RB66U3DD.cjs');var _chunkD67AZHCXcjs = require('./chunk-D67AZHCX.cjs');var _chunk6XOH62PVcjs = require('./chunk-6XOH62PV.cjs');var _chunkCK4JCQY6cjs = require('./chunk-CK4JCQY6.cjs');var s=class{constructor(e,n,a,i){this.apiClient=e;this.publicKey=n;this.client=a;this.callbacks=i;this.transactionsService=new (0, _chunkD67AZHCXcjs.a)(this.walletLocator,this.apiClient),this.delegatedSignerService=new (0, _chunkRB66U3DDcjs.a)(this.walletLocator,this.transactionsService,e)}get address(){return this.publicKey.toBase58()}getBalances(e){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){return yield this.apiClient.getBalance(this.address,{tokens:e})})}getTransactions(){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){return yield this.transactionsService.getTransactions()})}unstable_getNfts(e,n,a){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){return yield this.apiClient.unstable_getNfts("solana",a!=null?a:this.walletLocator,e,n)})}get walletLocator(){return this.apiClient.isServerSide?this.address:"me:solana-smart-wallet"}},p= exports.b =class extends s{constructor(e,n,a,i,u){super(e,n,i,u),this.adminSigner=_chunk6XOH62PVcjs.d.call(void 0, a)}sendTransaction(e){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){var i;let n=this.getEffectiveTransactionSigner(e.delegatedSigner),a=(i=e.additionalSigners)==null?void 0:i.map(_chunk6XOH62PVcjs.a);return yield this.transactionsService.createSignAndConfirm({transaction:e.transaction,signer:n,additionalSigners:a})})}addDelegatedSigner(e){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){return yield this.delegatedSignerService.registerDelegatedSigner(e,_chunk6XOH62PVcjs.c.call(void 0, this.adminSigner)?this.adminSigner:void 0)})}getDelegatedSigners(){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){return yield this.delegatedSignerService.getDelegatedSigners()})}getEffectiveTransactionSigner(e){return e==null?_chunk6XOH62PVcjs.c.call(void 0, this.adminSigner)?this.adminSigner:void 0:_chunk6XOH62PVcjs.a.call(void 0, e)}},g= exports.c =class extends s{sendTransaction(e){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){var n;return yield this.transactionsService.createSignAndConfirm({transaction:e.transaction,additionalSigners:(n=e.additionalSigners)==null?void 0:n.map(_chunk6XOH62PVcjs.a)})})}};exports.a = s; exports.b = p; exports.c = g;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkCK4JCQY6cjs = require('./chunk-CK4JCQY6.cjs');var r=class{constructor(t,e,n){this.walletLocator=t;this.transactionsService=e;this.apiClient=n}registerDelegatedSigner(t,e){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){let i=(yield this.apiClient.registerSigner(this.walletLocator,{signer:t})).transaction.id;return yield this.transactionsService.approveTransaction(i,e?[e]:[]),yield this.transactionsService.waitForTransaction(i),this.getDelegatedSigner(t)})}getDelegatedSigner(t){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){return yield this.apiClient.getSigner(this.walletLocator,t)})}getDelegatedSigners(){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){return yield this.apiClient.getDelegatedSigners(this.walletLocator)})}};exports.a = r;
@@ -1 +0,0 @@
1
- import{c as a}from"./chunk-22GIA4MK.js";var r=class{constructor(t,e,n){this.walletLocator=t;this.transactionsService=e;this.apiClient=n}registerDelegatedSigner(t,e){return a(this,null,function*(){let i=(yield this.apiClient.registerSigner(this.walletLocator,{signer:t})).transaction.id;return yield this.transactionsService.approveTransaction(i,e?[e]:[]),yield this.transactionsService.waitForTransaction(i),this.getDelegatedSigner(t)})}getDelegatedSigner(t){return a(this,null,function*(){return yield this.apiClient.getSigner(this.walletLocator,t)})}getDelegatedSigners(){return a(this,null,function*(){return yield this.apiClient.getDelegatedSigners(this.walletLocator)})}};export{r as a};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk6DTBGTSScjs = require('./chunk-6DTBGTSS.cjs');var _chunkJFUBHJ2Ccjs = require('./chunk-JFUBHJ2C.cjs');var _chunkDANM4IBFcjs = require('./chunk-DANM4IBF.cjs');var _chunkNOQASYSIcjs = require('./chunk-NOQASYSI.cjs');var _chunkCT2UGJELcjs = require('./chunk-CT2UGJEL.cjs');var _chunkCK4JCQY6cjs = require('./chunk-CK4JCQY6.cjs');var _ox = require('ox');var _viem = require('viem');var H=class{constructor(t,a,i,n,e){this.chain=t;this.address=a;this.apiClient=i;this.adminSigner=n;this.callbacks=e;this.publicClient=_viem.createPublicClient.call(void 0, {chain:_chunkJFUBHJ2Ccjs.c.call(void 0, t),transport:_viem.http.call(void 0, )})}getBalances(t){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){return yield this.apiClient.getBalance(this.address,{chains:[this.chain],tokens:t})})}getTransactions(){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){let t=yield this.apiClient.getTransactions(this.walletLocator);if("error"in t)throw new (0, _chunkCT2UGJELcjs.r)(JSON.stringify(t));return t.transactions.filter(a=>a.walletType==="evm-smart-wallet")})}unstable_getNfts(t,a,i,n){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){return yield this.apiClient.unstable_getNfts(i,n!=null?n:this.walletLocator,t,a)})}getNonce(t){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){var i;return yield this.publicClient.readContract({abi:_chunk6DTBGTSScjs.a,address:_chunkNOQASYSIcjs.d,functionName:"getNonce",args:[this.address,(i=t==null?void 0:t.key)!=null?i:BigInt(0)]})})}signMessage(t){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){var r;let a=yield this.createSignature(t.message),i=a.id,n=((r=a.approvals)==null?void 0:r.pending)||[],e=yield this.approveSignature(n,i);return yield this.waitForSignature(i),e})}signTypedData(t){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){var r;let a=yield this.createTypedDataSignature(t),i=a.id,n=((r=a.approvals)==null?void 0:r.pending)||[],e=yield this.approveSignature(n,i);return yield this.waitForSignature(i),e})}sendTransaction(t){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){var n,e,r;yield(e=(n=this.callbacks)==null?void 0:n.onTransactionStart)==null?void 0:e.call(n,t);let a=yield this.createTransaction(t),i=a.id;return yield this.approveTransaction(((r=a.approvals)==null?void 0:r.pending)||[],i),yield this.waitForTransaction(i)})}get walletLocator(){return this.apiClient.isServerSide?this.address:"me:evm-smart-wallet"}get signerLocator(){return this.adminSigner.locator}signWithAdminSigner(t){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){switch(this.adminSigner.type){case"evm-passkey":{if(this.adminSigner.signingCallback)return this.adminSigner.signingCallback(t);let{metadata:a,signature:i}=yield _ox.WebAuthnP256.sign({credentialId:this.adminSigner.id,challenge:t});return{signature:_viem.concat.call(void 0, [`0x${i.r.toString(16)}`,`0x${i.s.toString(16)}`]),metadata:a}}case"evm-keypair":{let a=this.adminSigner.address;if(this.adminSigner.signer.type==="viem_v2"){let i=this.adminSigner.signer.account;if(!i.signMessage)throw new (0, _chunkCT2UGJELcjs.n)("Account does not support signMessage");return{signature:yield i.signMessage({message:{raw:t}})}}else return{signature:yield this.adminSigner.signer.provider.request({method:"personal_sign",params:[t,a]})}}}})}createTransaction(t){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){var i;let a=yield this.apiClient.createTransaction(this.walletLocator,{params:{signer:this.signerLocator,chain:this.chain,calls:[{to:t.to,value:t.value?t.value.toString():"0",data:(i=t.data)!=null?i:"0x"}]}});if("error"in a)throw new (0, _chunkCT2UGJELcjs.q)(JSON.stringify(a));return a})}approveTransaction(t,a){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){var c,g;let i=t.find(l=>l.signer===this.signerLocator);if(!i){let l=new (0, _chunkCT2UGJELcjs.i)(`Signer ${this.signerLocator} not found in pending approvals`);throw yield(g=(c=this.callbacks)==null?void 0:c.onTransactionFail)==null?void 0:g.call(c,l),l}let n=i.message,{signature:e,metadata:r}=yield this.signWithAdminSigner(n),p=yield this.apiClient.approveTransaction(this.walletLocator,a,{approvals:[_chunkCK4JCQY6cjs.a.call(void 0, {signer:this.signerLocator,signature:this.adminSigner.type==="evm-passkey"?{r:e.slice(0,66),s:`0x${e.slice(66)}`}:e},r&&{metadata:r})]});if("error"in p)throw new (0, _chunkCT2UGJELcjs.w)(JSON.stringify(p))})}waitForTransaction(t,a=6e4){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){var r,p,c,g,l,d,f,v;let i=Date.now(),n;do{if(Date.now()-i>a){let o=new (0, _chunkCT2UGJELcjs.s)("Transaction confirmation timeout");throw yield(p=(r=this.callbacks).onTransactionFail)==null?void 0:p.call(r,o),o}if(n=yield this.apiClient.getTransaction(this.walletLocator,t),"error"in n)throw new (0, _chunkCT2UGJELcjs.r)(JSON.stringify(n));yield _chunkDANM4IBFcjs.a.call(void 0, _chunkNOQASYSIcjs.e)}while(n.status==="pending");if(n.status==="failed"){let o=new (0, _chunkCT2UGJELcjs.t)(`Transaction sending failed: ${JSON.stringify(n.error)}`);throw yield(g=(c=this.callbacks).onTransactionFail)==null?void 0:g.call(c,o),o}if(n.status==="awaiting-approval"){let o=new (0, _chunkCT2UGJELcjs.u)("Transaction is awaiting approval. Please submit required approvals before waiting for completion.");throw yield(d=(l=this.callbacks).onTransactionFail)==null?void 0:d.call(l,o),o}let e=n.onChain.txId;if(e==null){let o=new (0, _chunkCT2UGJELcjs.v)("Transaction hash not found on transaction response");throw yield(v=(f=this.callbacks).onTransactionFail)==null?void 0:v.call(f,o),o}return e})}createSignature(t){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){if(typeof t!="string")throw new (0, _chunkCT2UGJELcjs.j)("Message must be a string");let a=yield this.apiClient.createSignature(this.walletLocator,{type:"evm-message",params:{message:t,signer:this.signerLocator,chain:this.chain}});if("error"in a)throw new (0, _chunkCT2UGJELcjs.o)(JSON.stringify(a));return a})}createTypedDataSignature(t){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){let{domain:a,message:i,primaryType:n,types:e}=t;if(!a||!i||!e)throw new (0, _chunkCT2UGJELcjs.k)("Invalid typed data");let{name:r,version:p,chainId:c,verifyingContract:g,salt:l}=a;if(!r||!p||!c||!g)throw new (0, _chunkCT2UGJELcjs.k)("Invalid typed data domain");let d=yield this.apiClient.createSignature(this.walletLocator,{type:"evm-typed-data",params:{typedData:{domain:{name:r,version:p,chainId:Number(c),verifyingContract:g,salt:l},message:i,primaryType:n,types:e},signer:this.signerLocator,chain:this.chain,isSmartWalletSignature:!1}});if("error"in d)throw new (0, _chunkCT2UGJELcjs.o)(JSON.stringify(d));return d})}approveSignature(t,a){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){let i=t.find(p=>p.signer===this.signerLocator);if(!i)throw new (0, _chunkCT2UGJELcjs.i)(`Signer ${this.signerLocator} not found in pending approvals`);let n=i.message,{signature:e,metadata:r}=yield this.signWithAdminSigner(n);if(e===void 0)throw new (0, _chunkCT2UGJELcjs.l)("Signature not available");return yield this.apiClient.approveSignature(this.walletLocator,a,{approvals:[{signer:this.signerLocator,signature:this.adminSigner.type==="evm-passkey"?{r:e.slice(0,66),s:`0x${e.slice(66)}`}:e,metadata:r}]}),e})}waitForSignature(t){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){let a=null;do if(yield _chunkDANM4IBFcjs.a.call(void 0, _chunkNOQASYSIcjs.e),a=yield this.apiClient.getSignature(this.walletLocator,t),"error"in a)throw new (0, _chunkCT2UGJELcjs.p)(JSON.stringify(a));while(a===null||a.status==="pending");if(a.status==="failed")throw new (0, _chunkCT2UGJELcjs.m)("Signature signing failed")})}};exports.a = H;