@crossmint/wallets-sdk 0.8.0 → 0.9.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 +18 -18
- package/dist/api/client.cjs +1 -1
- package/dist/api/client.d.cts +3 -3
- package/dist/api/client.d.ts +3 -3
- package/dist/api/client.js +1 -1
- package/dist/api/gen/index.cjs +1 -1
- package/dist/api/gen/index.js +1 -1
- package/dist/api/gen/sdk.gen.cjs +1 -1
- package/dist/api/gen/sdk.gen.d.cts +1 -1
- package/dist/api/gen/sdk.gen.d.ts +1 -1
- package/dist/api/gen/sdk.gen.js +1 -1
- package/dist/api/gen/types.gen.d.cts +84 -37
- package/dist/api/gen/types.gen.d.ts +84 -37
- package/dist/api/index.cjs +1 -1
- package/dist/api/index.d.cts +1 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +1 -1
- package/dist/api/types.d.cts +5 -3
- package/dist/api/types.d.ts +5 -3
- package/dist/chains/chains.cjs +1 -0
- package/dist/{evm/chains/index.d.cts → chains/chains.d.cts} +6 -6
- package/dist/{evm/chains/index.d.ts → chains/chains.d.ts} +6 -6
- package/dist/chains/chains.js +1 -0
- package/dist/chains/definitions/story.cjs +1 -0
- package/dist/chains/definitions/story.js +1 -0
- package/dist/chains/definitions/storyTestnet.cjs +1 -0
- package/dist/chains/definitions/storyTestnet.js +1 -0
- package/dist/chunk-2WI3SDNA.cjs +1 -0
- package/dist/chunk-3J7G6OXZ.cjs +1 -0
- package/dist/chunk-3V3TVDQL.cjs +1 -0
- package/dist/chunk-5HYE5LK5.cjs +1 -0
- package/dist/chunk-6BN4ICHP.cjs +1 -0
- package/dist/chunk-6EFZZZFC.js +1 -0
- package/dist/chunk-6VJEBYPN.cjs +1 -0
- package/dist/chunk-7DPGK746.cjs +1 -0
- package/dist/chunk-AN25LSQB.js +1 -0
- package/dist/chunk-BJDS5BJG.js +1 -0
- package/dist/chunk-BQJLKREV.cjs +1 -0
- package/dist/chunk-E5GSFWJV.js +1 -0
- package/dist/chunk-EBPF52SZ.cjs +1 -0
- package/dist/{chunk-MV7LJCAB.cjs → chunk-EHGCJCNZ.cjs} +1 -1
- package/dist/chunk-EOCGMBYW.js +1 -0
- package/dist/chunk-FHE35PRI.js +1 -0
- package/dist/chunk-FI42UB34.js +1 -0
- package/dist/chunk-FO5JCAOP.js +1 -0
- package/dist/chunk-ICJBF526.cjs +1 -0
- package/dist/chunk-ICWGBL27.js +1 -0
- package/dist/chunk-IVDTXN3O.js +1 -0
- package/dist/chunk-LBJIX2VH.cjs +1 -0
- package/dist/chunk-LG7WZW3Q.js +1 -0
- package/dist/chunk-M4ELAV7U.js +1 -0
- package/dist/chunk-N3Q3MSAS.cjs +1 -0
- package/dist/chunk-NFQHDB4C.cjs +1 -0
- package/dist/chunk-NSZEPQXP.cjs +1 -0
- package/dist/chunk-O4X74PTP.cjs +1 -0
- package/dist/chunk-Q3ZJOXAP.js +1 -0
- package/dist/chunk-Q4WJ7QNP.js +1 -0
- package/dist/chunk-QIHAACUW.js +1 -0
- package/dist/chunk-QPG5RPLB.js +1 -0
- package/dist/chunk-RCGA5LLF.cjs +1 -0
- package/dist/{chunk-3J4NDFR5.js → chunk-SCSTKTGR.js} +1 -1
- package/dist/chunk-VNNOPP7M.cjs +1 -0
- package/dist/chunk-WO3S2YII.js +1 -0
- package/dist/chunk-YE5N5ADW.js +1 -0
- package/dist/chunk-ZSWIQU3U.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +16 -12
- package/dist/index.d.ts +16 -12
- package/dist/index.js +1 -1
- package/dist/sdk.cjs +1 -1
- package/dist/sdk.d.cts +21 -21
- package/dist/sdk.d.ts +21 -21
- package/dist/sdk.js +1 -1
- package/dist/signers/email-iframe-manager.cjs +1 -0
- package/dist/signers/email-iframe-manager.d.cts +15 -0
- package/dist/signers/email-iframe-manager.d.ts +15 -0
- package/dist/signers/email-iframe-manager.js +1 -0
- package/dist/signers/email-signer-api-client.cjs +1 -0
- package/dist/signers/email-signer-api-client.d.cts +13 -0
- package/dist/signers/email-signer-api-client.d.ts +13 -0
- package/dist/signers/email-signer-api-client.js +1 -0
- package/dist/signers/email.cjs +1 -0
- package/dist/signers/email.d.cts +29 -0
- package/dist/signers/email.d.ts +29 -0
- package/dist/signers/email.js +1 -0
- package/dist/signers/evm-api-key.cjs +1 -0
- package/dist/signers/evm-api-key.d.cts +19 -0
- package/dist/signers/evm-api-key.d.ts +19 -0
- package/dist/signers/evm-api-key.js +1 -0
- package/dist/signers/evm-external-wallet.cjs +1 -0
- package/dist/signers/evm-external-wallet.d.cts +25 -0
- package/dist/signers/evm-external-wallet.d.ts +25 -0
- package/dist/signers/evm-external-wallet.js +1 -0
- package/dist/signers/index.cjs +1 -0
- package/dist/signers/index.d.cts +12 -0
- package/dist/signers/index.d.ts +12 -0
- package/dist/signers/index.js +1 -0
- package/dist/signers/passkey.cjs +1 -0
- package/dist/signers/passkey.d.cts +20 -0
- package/dist/signers/passkey.d.ts +20 -0
- package/dist/signers/passkey.js +1 -0
- package/dist/signers/solana-api-key.cjs +1 -0
- package/dist/signers/solana-api-key.d.cts +19 -0
- package/dist/signers/solana-api-key.d.ts +19 -0
- package/dist/signers/solana-api-key.js +1 -0
- package/dist/{solana/utils.cjs → signers/solana-external-wallet.cjs} +1 -1
- package/dist/signers/solana-external-wallet.d.cts +22 -0
- package/dist/signers/solana-external-wallet.d.ts +22 -0
- package/dist/signers/solana-external-wallet.js +1 -0
- package/dist/signers/types.cjs +1 -0
- package/dist/signers/types.d.cts +91 -0
- package/dist/signers/types.d.ts +91 -0
- package/dist/signers/types.js +1 -0
- package/dist/utils/constants.cjs +1 -1
- package/dist/utils/constants.d.cts +2 -3
- package/dist/utils/constants.d.ts +2 -3
- package/dist/utils/constants.js +1 -1
- package/dist/wallets/evm.cjs +1 -0
- package/dist/wallets/evm.d.cts +134 -0
- package/dist/wallets/evm.d.ts +134 -0
- package/dist/wallets/evm.js +1 -0
- package/dist/wallets/solana.cjs +1 -0
- package/dist/wallets/solana.d.cts +21 -0
- package/dist/wallets/solana.d.ts +21 -0
- package/dist/wallets/solana.js +1 -0
- package/dist/wallets/types.cjs +1 -0
- package/dist/wallets/types.d.cts +30 -0
- package/dist/wallets/types.d.ts +30 -0
- package/dist/wallets/types.js +1 -0
- package/dist/wallets/wallet-factory.cjs +1 -0
- package/dist/wallets/wallet-factory.d.cts +32 -0
- package/dist/wallets/wallet-factory.d.ts +32 -0
- package/dist/wallets/wallet-factory.js +1 -0
- package/dist/wallets/wallet.cjs +1 -0
- package/dist/wallets/wallet.d.cts +98 -0
- package/dist/wallets/wallet.d.ts +98 -0
- package/dist/wallets/wallet.js +1 -0
- package/package.json +6 -4
- package/dist/chunk-3YDBLQ73.cjs +0 -1
- package/dist/chunk-53ZDAWYY.js +0 -1
- package/dist/chunk-5CX3CGJS.cjs +0 -1
- package/dist/chunk-6ARPMYUZ.js +0 -1
- package/dist/chunk-6DTBGTSS.cjs +0 -1
- package/dist/chunk-6W35AARC.js +0 -1
- package/dist/chunk-6XOH62PV.cjs +0 -1
- package/dist/chunk-7WRWCJJ6.js +0 -1
- package/dist/chunk-DANM4IBF.cjs +0 -1
- package/dist/chunk-DLYUSTHS.js +0 -1
- package/dist/chunk-DNWDTJR6.cjs +0 -1
- package/dist/chunk-EFRCLQXM.js +0 -1
- package/dist/chunk-ER6A2LAJ.cjs +0 -1
- package/dist/chunk-EZ7PEO5P.cjs +0 -1
- package/dist/chunk-F7GTDFYC.cjs +0 -1
- package/dist/chunk-HKY6CBZC.js +0 -1
- package/dist/chunk-LWGUOI5G.js +0 -1
- package/dist/chunk-LX6WD7J6.js +0 -1
- package/dist/chunk-MCMCLRNB.js +0 -1
- package/dist/chunk-MTWDHWDY.js +0 -1
- package/dist/chunk-OKXV3IAA.js +0 -1
- package/dist/chunk-PBD5HUCH.cjs +0 -1
- package/dist/chunk-PQH5C2OM.cjs +0 -1
- package/dist/chunk-QYX3J3RZ.js +0 -1
- package/dist/chunk-SDH5CVH7.js +0 -0
- package/dist/chunk-TCIZIST7.js +0 -1
- package/dist/chunk-UWWXOC7Y.cjs +0 -1
- package/dist/chunk-V445PZHL.cjs +0 -1
- package/dist/chunk-VDYYOSPR.cjs +0 -1
- package/dist/chunk-VEJMHFK7.cjs +0 -1
- package/dist/chunk-WNXCWDJQ.cjs +0 -1
- package/dist/chunk-WZAT3LML.js +0 -0
- package/dist/chunk-XKXW2FNY.cjs +0 -1
- package/dist/chunk-XP4DDN2K.cjs +0 -1
- package/dist/chunk-YLMKJ56K.js +0 -1
- package/dist/chunk-ZXV5SOXM.js +0 -1
- package/dist/evm/abi/entryPoint.cjs +0 -1
- package/dist/evm/abi/entryPoint.d.cts +0 -777
- package/dist/evm/abi/entryPoint.d.ts +0 -777
- package/dist/evm/abi/entryPoint.js +0 -1
- package/dist/evm/chains/definitions/story.cjs +0 -1
- package/dist/evm/chains/definitions/story.js +0 -1
- package/dist/evm/chains/definitions/storyTestnet.cjs +0 -1
- package/dist/evm/chains/definitions/storyTestnet.js +0 -1
- package/dist/evm/chains/index.cjs +0 -1
- package/dist/evm/chains/index.js +0 -1
- package/dist/evm/index.cjs +0 -1
- package/dist/evm/index.d.cts +0 -16
- package/dist/evm/index.d.ts +0 -16
- package/dist/evm/index.js +0 -1
- package/dist/evm/services/delegated-signers-service.cjs +0 -1
- package/dist/evm/services/delegated-signers-service.d.cts +0 -154
- package/dist/evm/services/delegated-signers-service.d.ts +0 -154
- package/dist/evm/services/delegated-signers-service.js +0 -1
- package/dist/evm/types/signers.cjs +0 -1
- package/dist/evm/types/signers.d.cts +0 -40
- package/dist/evm/types/signers.d.ts +0 -40
- package/dist/evm/types/signers.js +0 -0
- package/dist/evm/types/wallet.cjs +0 -1
- package/dist/evm/types/wallet.d.cts +0 -48
- package/dist/evm/types/wallet.d.ts +0 -48
- package/dist/evm/types/wallet.js +0 -0
- package/dist/evm/utils.cjs +0 -1
- package/dist/evm/utils.d.cts +0 -20
- package/dist/evm/utils.d.ts +0 -20
- package/dist/evm/utils.js +0 -1
- package/dist/evm/wallet.cjs +0 -1
- package/dist/evm/wallet.d.cts +0 -16
- package/dist/evm/wallet.d.ts +0 -16
- package/dist/evm/wallet.js +0 -1
- package/dist/options-DQUNKXxn.d.ts +0 -109
- package/dist/options-IchphkHW.d.cts +0 -109
- package/dist/services/types.cjs +0 -1
- package/dist/services/types.d.cts +0 -35
- package/dist/services/types.d.ts +0 -35
- package/dist/services/types.js +0 -0
- package/dist/services/wallet-factory.cjs +0 -1
- package/dist/services/wallet-factory.d.cts +0 -37
- package/dist/services/wallet-factory.d.ts +0 -37
- package/dist/services/wallet-factory.js +0 -1
- package/dist/solana/index.cjs +0 -1
- package/dist/solana/index.d.cts +0 -13
- package/dist/solana/index.d.ts +0 -13
- package/dist/solana/index.js +0 -1
- package/dist/solana/services/approvals-service.cjs +0 -1
- package/dist/solana/services/approvals-service.d.cts +0 -18
- package/dist/solana/services/approvals-service.d.ts +0 -18
- package/dist/solana/services/approvals-service.js +0 -1
- package/dist/solana/services/delegated-signers-service.cjs +0 -1
- package/dist/solana/services/delegated-signers-service.d.cts +0 -13
- package/dist/solana/services/delegated-signers-service.d.ts +0 -13
- package/dist/solana/services/delegated-signers-service.js +0 -1
- package/dist/solana/services/transactions-service.cjs +0 -1
- package/dist/solana/services/transactions-service.d.cts +0 -13
- package/dist/solana/services/transactions-service.d.ts +0 -13
- package/dist/solana/services/transactions-service.js +0 -1
- package/dist/solana/tokens.cjs +0 -1
- package/dist/solana/tokens.d.cts +0 -3
- package/dist/solana/tokens.d.ts +0 -3
- package/dist/solana/tokens.js +0 -1
- package/dist/solana/types/signers.cjs +0 -1
- package/dist/solana/types/signers.d.cts +0 -38
- package/dist/solana/types/signers.d.ts +0 -38
- package/dist/solana/types/signers.js +0 -1
- package/dist/solana/types/wallet.cjs +0 -1
- package/dist/solana/types/wallet.d.cts +0 -62
- package/dist/solana/types/wallet.d.ts +0 -62
- package/dist/solana/types/wallet.js +0 -0
- package/dist/solana/utils.d.cts +0 -6
- package/dist/solana/utils.d.ts +0 -6
- package/dist/solana/utils.js +0 -1
- package/dist/solana/wallet.cjs +0 -1
- package/dist/solana/wallet.d.cts +0 -13
- package/dist/solana/wallet.d.ts +0 -13
- package/dist/solana/wallet.js +0 -1
- package/dist/utils/index.cjs +0 -1
- package/dist/utils/index.d.cts +0 -3
- package/dist/utils/index.d.ts +0 -3
- package/dist/utils/index.js +0 -1
- package/dist/utils/options.cjs +0 -1
- package/dist/utils/options.d.cts +0 -13
- package/dist/utils/options.d.ts +0 -13
- package/dist/utils/options.js +0 -0
- /package/dist/{evm/chains → chains}/definitions/story.d.cts +0 -0
- /package/dist/{evm/chains → chains}/definitions/story.d.ts +0 -0
- /package/dist/{evm/chains → chains}/definitions/storyTestnet.d.cts +0 -0
- /package/dist/{evm/chains → chains}/definitions/storyTestnet.d.ts +0 -0
- /package/dist/{chunk-F2XDGZCB.cjs → chunk-GEY574TH.cjs} +0 -0
- /package/dist/{chunk-MFUN74KH.cjs → chunk-IR5WN6FQ.cjs} +0 -0
- /package/dist/{chunk-KVFFSUF4.js → chunk-KKQBZXFE.js} +0 -0
- /package/dist/{chunk-3TTYXSH3.cjs → chunk-MHKWLGN5.cjs} +0 -0
- /package/dist/{chunk-ITCP6W2T.js → chunk-PJUVPRKB.js} +0 -0
- /package/dist/{chunk-SILEK5O4.js → chunk-S3DYQVRD.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-HKY6CBZC.js";import"../../chunk-22GIA4MK.js";export{a as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkMFUN74KHcjs = require('../../../chunk-MFUN74KH.cjs');require('../../../chunk-CK4JCQY6.cjs');exports.story = _chunkMFUN74KHcjs.a;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../../chunk-KVFFSUF4.js";import"../../../chunk-22GIA4MK.js";export{a as story};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkF2XDGZCBcjs = require('../../../chunk-F2XDGZCB.cjs');require('../../../chunk-CK4JCQY6.cjs');exports.storyTestnet = _chunkF2XDGZCBcjs.a;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../../chunk-SILEK5O4.js";import"../../../chunk-22GIA4MK.js";export{a as storyTestnet};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkEZ7PEO5Pcjs = require('../../chunk-EZ7PEO5P.cjs');require('../../chunk-MFUN74KH.cjs');require('../../chunk-F2XDGZCB.cjs');require('../../chunk-CK4JCQY6.cjs');exports.isMainnetChain = _chunkEZ7PEO5Pcjs.b; exports.isTestnetChain = _chunkEZ7PEO5Pcjs.a; exports.isValidChain = _chunkEZ7PEO5Pcjs.c; exports.toViemChain = _chunkEZ7PEO5Pcjs.d;
|
package/dist/evm/chains/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,c,d}from"../../chunk-53ZDAWYY.js";import"../../chunk-KVFFSUF4.js";import"../../chunk-SILEK5O4.js";import"../../chunk-22GIA4MK.js";export{b as isMainnetChain,a as isTestnetChain,c as isValidChain,d as toViemChain};
|
package/dist/evm/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-5CX3CGJS.cjs');var _chunkV445PZHLcjs = require('../chunk-V445PZHL.cjs');require('../chunk-WNXCWDJQ.cjs');require('../chunk-6DTBGTSS.cjs');var _chunkEZ7PEO5Pcjs = require('../chunk-EZ7PEO5P.cjs');require('../chunk-MFUN74KH.cjs');require('../chunk-F2XDGZCB.cjs');require('../chunk-DANM4IBF.cjs');require('../chunk-ER6A2LAJ.cjs');require('../chunk-CT2UGJEL.cjs');require('../chunk-CK4JCQY6.cjs');exports.EVMSmartWalletImpl = _chunkV445PZHLcjs.a; exports.isMainnetChain = _chunkEZ7PEO5Pcjs.b; exports.isTestnetChain = _chunkEZ7PEO5Pcjs.a; exports.isValidChain = _chunkEZ7PEO5Pcjs.c; exports.toViemChain = _chunkEZ7PEO5Pcjs.d;
|
package/dist/evm/index.d.cts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export { E as EVMSmartWalletImpl } from './services/delegated-signers-service.cjs';
|
|
2
|
-
export { EVMSmartWalletChain, EVMSmartWalletMainnet, EVMSmartWalletTestnet, isMainnetChain, isTestnetChain, isValidChain, toViemChain } from './chains/index.cjs';
|
|
3
|
-
export { EVMSmartWallet, TransactionInput } from './types/wallet.cjs';
|
|
4
|
-
export { EVMSigner, EVMSignerInput } from './types/signers.cjs';
|
|
5
|
-
import '../api/client.cjs';
|
|
6
|
-
import '@crossmint/common-sdk-base';
|
|
7
|
-
import '../api/types.cjs';
|
|
8
|
-
import 'viem';
|
|
9
|
-
import '../api/gen/types.gen.cjs';
|
|
10
|
-
import '../options-IchphkHW.cjs';
|
|
11
|
-
import '../solana/tokens.cjs';
|
|
12
|
-
import '../solana/types/signers.cjs';
|
|
13
|
-
import '@solana/web3.js';
|
|
14
|
-
import '../solana/types/wallet.cjs';
|
|
15
|
-
import '../solana/services/approvals-service.cjs';
|
|
16
|
-
import 'ox';
|
package/dist/evm/index.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export { E as EVMSmartWalletImpl } from './services/delegated-signers-service.js';
|
|
2
|
-
export { EVMSmartWalletChain, EVMSmartWalletMainnet, EVMSmartWalletTestnet, isMainnetChain, isTestnetChain, isValidChain, toViemChain } from './chains/index.js';
|
|
3
|
-
export { EVMSmartWallet, TransactionInput } from './types/wallet.js';
|
|
4
|
-
export { EVMSigner, EVMSignerInput } from './types/signers.js';
|
|
5
|
-
import '../api/client.js';
|
|
6
|
-
import '@crossmint/common-sdk-base';
|
|
7
|
-
import '../api/types.js';
|
|
8
|
-
import 'viem';
|
|
9
|
-
import '../api/gen/types.gen.js';
|
|
10
|
-
import '../options-DQUNKXxn.js';
|
|
11
|
-
import '../solana/tokens.js';
|
|
12
|
-
import '../solana/types/signers.js';
|
|
13
|
-
import '@solana/web3.js';
|
|
14
|
-
import '../solana/types/wallet.js';
|
|
15
|
-
import '../solana/services/approvals-service.js';
|
|
16
|
-
import 'ox';
|
package/dist/evm/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"../chunk-WZAT3LML.js";import{a as e}from"../chunk-6ARPMYUZ.js";import"../chunk-QYX3J3RZ.js";import"../chunk-HKY6CBZC.js";import{a,b,c,d}from"../chunk-53ZDAWYY.js";import"../chunk-KVFFSUF4.js";import"../chunk-SILEK5O4.js";import"../chunk-LX6WD7J6.js";import"../chunk-TCIZIST7.js";import"../chunk-7ENJXL4H.js";import"../chunk-22GIA4MK.js";export{e as EVMSmartWalletImpl,b as isMainnetChain,a as isTestnetChain,c as isValidChain,d as toViemChain};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWNXCWDJQcjs = require('../../chunk-WNXCWDJQ.cjs');require('../../chunk-CT2UGJEL.cjs');require('../../chunk-CK4JCQY6.cjs');exports.EVMDelegatedSignerService = _chunkWNXCWDJQcjs.a;
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import { ApiClient } from '../../api/client.cjs';
|
|
2
|
-
import { EvmWalletLocator, GetSignerResponse, WalletBalance, GetTransactionsResponse, GetNftsResponse, DelegatedSigner, CreateTransactionSuccessResponse } from '../../api/types.cjs';
|
|
3
|
-
import { Address, HttpTransport, SignableMessage, Hex, TypedData, TypedDataDefinition, PublicClient } from 'viem';
|
|
4
|
-
import { C as Callbacks } from '../../options-IchphkHW.cjs';
|
|
5
|
-
import { EVMSmartWalletChain } from '../chains/index.cjs';
|
|
6
|
-
import { EVMSigner } from '../types/signers.cjs';
|
|
7
|
-
import { EVMSmartWallet, TransactionInput } from '../types/wallet.cjs';
|
|
8
|
-
import { DelegatedSignerDto } from '../../api/gen/types.gen.cjs';
|
|
9
|
-
import '@crossmint/common-sdk-base';
|
|
10
|
-
import '../../solana/tokens.cjs';
|
|
11
|
-
import '../../solana/types/signers.cjs';
|
|
12
|
-
import '@solana/web3.js';
|
|
13
|
-
import '../../solana/types/wallet.cjs';
|
|
14
|
-
import '../../solana/services/approvals-service.cjs';
|
|
15
|
-
import 'ox';
|
|
16
|
-
|
|
17
|
-
declare class EVMDelegatedSignerService {
|
|
18
|
-
private readonly walletLocator;
|
|
19
|
-
private readonly wallet;
|
|
20
|
-
private readonly apiClient;
|
|
21
|
-
constructor(walletLocator: EvmWalletLocator, wallet: EVMSmartWalletImpl, apiClient: ApiClient);
|
|
22
|
-
registerDelegatedSigner(chain: EVMSmartWalletChain, signer: string, options?: {
|
|
23
|
-
expiresAt?: number;
|
|
24
|
-
adminSigner?: EVMSigner;
|
|
25
|
-
}): Promise<GetSignerResponse>;
|
|
26
|
-
getDelegatedSigner(signer: string): Promise<GetSignerResponse>;
|
|
27
|
-
getDelegatedSigners(): Promise<DelegatedSignerDto[]>;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
type PendingApproval = NonNullable<NonNullable<CreateTransactionSuccessResponse["approvals"]>["pending"]>[number];
|
|
31
|
-
declare class EVMSmartWalletImpl implements EVMSmartWallet {
|
|
32
|
-
readonly address: Address;
|
|
33
|
-
private readonly apiClient;
|
|
34
|
-
private readonly adminSigner;
|
|
35
|
-
private readonly callbacks;
|
|
36
|
-
protected readonly delegatedSignerService: EVMDelegatedSignerService;
|
|
37
|
-
constructor(address: Address, apiClient: ApiClient, adminSigner: EVMSigner, callbacks: Callbacks);
|
|
38
|
-
/**
|
|
39
|
-
* Get the wallet balances
|
|
40
|
-
* @param {Object} params - The parameters
|
|
41
|
-
* @param {EVMSmartWalletChain} params.chain - The chain
|
|
42
|
-
* @param {Address[]} params.tokens - The tokens
|
|
43
|
-
* @returns {Promise<WalletBalance>} The balances
|
|
44
|
-
* @throws {Error} If the balances cannot be retrieved
|
|
45
|
-
*/
|
|
46
|
-
getBalances(params: {
|
|
47
|
-
chain: EVMSmartWalletChain;
|
|
48
|
-
tokens: string[];
|
|
49
|
-
}): Promise<WalletBalance>;
|
|
50
|
-
/**
|
|
51
|
-
* Get the wallet transactions
|
|
52
|
-
* @returns The transactions
|
|
53
|
-
*/
|
|
54
|
-
getTransactions(): Promise<GetTransactionsResponse>;
|
|
55
|
-
/**
|
|
56
|
-
* Get the wallet NFTs
|
|
57
|
-
* @param {Object} params - The parameters
|
|
58
|
-
* @param {number} params.perPage - The number of NFTs per page
|
|
59
|
-
* @param {number} params.page - The page number
|
|
60
|
-
* @param {EVMSmartWalletChain} params.chain - The chain
|
|
61
|
-
* @param {EvmWalletLocator} [params.locator] - The locator
|
|
62
|
-
* @returns The NFTs
|
|
63
|
-
* @unstable This API is unstable and may change in the future
|
|
64
|
-
*/
|
|
65
|
-
unstable_getNfts(params: {
|
|
66
|
-
perPage: number;
|
|
67
|
-
page: number;
|
|
68
|
-
chain: EVMSmartWalletChain;
|
|
69
|
-
}): Promise<GetNftsResponse>;
|
|
70
|
-
/**
|
|
71
|
-
* Get the nonce
|
|
72
|
-
* @param {Object} params - The parameters
|
|
73
|
-
* @param {EVMSmartWalletChain} params.chain - The chain
|
|
74
|
-
* @param {bigint} [params.key] - The key
|
|
75
|
-
* @param {HttpTransport} [params.transport] - Custom transport
|
|
76
|
-
* @returns {Promise<bigint>} The nonce
|
|
77
|
-
*/
|
|
78
|
-
getNonce(params: {
|
|
79
|
-
chain: EVMSmartWalletChain;
|
|
80
|
-
key?: bigint | undefined;
|
|
81
|
-
transport?: HttpTransport;
|
|
82
|
-
}): Promise<bigint>;
|
|
83
|
-
/**
|
|
84
|
-
* Sign a message
|
|
85
|
-
* @param {Object} params - The parameters
|
|
86
|
-
* @param {SignableMessage} params.message - The message
|
|
87
|
-
* @param {EVMSmartWalletChain} params.chain - The chain
|
|
88
|
-
* @returns {Promise<Hex>} The signature
|
|
89
|
-
*/
|
|
90
|
-
signMessage(params: {
|
|
91
|
-
message: SignableMessage;
|
|
92
|
-
chain: EVMSmartWalletChain;
|
|
93
|
-
}): Promise<Hex>;
|
|
94
|
-
signTypedData<const typedData extends TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(params: TypedDataDefinition<typedData, primaryType> & {
|
|
95
|
-
chain: EVMSmartWalletChain;
|
|
96
|
-
}): Promise<Hex>;
|
|
97
|
-
/**
|
|
98
|
-
* Send a transaction
|
|
99
|
-
* @param {TransactionInput} params - The parameters
|
|
100
|
-
* @param {Address} params.to - The recipient address
|
|
101
|
-
* @param {EVMSmartWalletChain} params.chain - The blockchain network
|
|
102
|
-
* @param {Hex} [params.data] - The transaction calldata
|
|
103
|
-
* @param {bigint} [params.value] - The amount of native currency to send (in wei)
|
|
104
|
-
* @returns {Promise<Hex>} The transaction hash
|
|
105
|
-
*/
|
|
106
|
-
sendTransaction(params: TransactionInput): Promise<Hex>;
|
|
107
|
-
/**
|
|
108
|
-
* Get a viem client for a chain
|
|
109
|
-
* @param {Object} params - The parameters
|
|
110
|
-
* @param {EVMSmartWalletChain} params.chain - The chain
|
|
111
|
-
* @param {HttpTransport} [params.transport] - Optional custom transport
|
|
112
|
-
* @returns {PublicClient<HttpTransport>} The viem client
|
|
113
|
-
*/
|
|
114
|
-
getViemClient(params: {
|
|
115
|
-
chain: EVMSmartWalletChain;
|
|
116
|
-
transport?: HttpTransport;
|
|
117
|
-
}): PublicClient<HttpTransport>;
|
|
118
|
-
/**
|
|
119
|
-
* Add a delegated signer to the wallet
|
|
120
|
-
* @param {Object} params - The parameters
|
|
121
|
-
* @param {EVMSmartWalletChain} params.chain - The chain
|
|
122
|
-
* @param {string} params.signer - The signer
|
|
123
|
-
* @returns The delegated signer
|
|
124
|
-
*/
|
|
125
|
-
addDelegatedSigner(params: {
|
|
126
|
-
chain: EVMSmartWalletChain;
|
|
127
|
-
signer: string;
|
|
128
|
-
}): Promise<GetSignerResponse>;
|
|
129
|
-
/**
|
|
130
|
-
* Gets delegated signers for the wallet
|
|
131
|
-
* @returns The delegated signers
|
|
132
|
-
* @throws {WalletNotAvailableError} If the wallet is not found
|
|
133
|
-
* @throws {WalletTypeNotSupportedError} If the wallet type is not supported
|
|
134
|
-
*/
|
|
135
|
-
getDelegatedSigners(): Promise<DelegatedSigner[]>;
|
|
136
|
-
private get walletLocator();
|
|
137
|
-
private get signerLocator();
|
|
138
|
-
private signWithAdminSigner;
|
|
139
|
-
private createTransaction;
|
|
140
|
-
private approveTransaction;
|
|
141
|
-
private waitForTransaction;
|
|
142
|
-
/**
|
|
143
|
-
* @internal Used by DelegatedSignerService
|
|
144
|
-
*/
|
|
145
|
-
approveSignature(pendingApprovals: Array<PendingApproval>, signatureId: string): Promise<`0x${string}`>;
|
|
146
|
-
/**
|
|
147
|
-
* @internal Used by DelegatedSignerService
|
|
148
|
-
*/
|
|
149
|
-
waitForSignature(signatureId: string): Promise<void>;
|
|
150
|
-
private createSignature;
|
|
151
|
-
private createTypedDataSignature;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
export { EVMSmartWalletImpl as E, EVMDelegatedSignerService };
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import { ApiClient } from '../../api/client.js';
|
|
2
|
-
import { EvmWalletLocator, GetSignerResponse, WalletBalance, GetTransactionsResponse, GetNftsResponse, DelegatedSigner, CreateTransactionSuccessResponse } from '../../api/types.js';
|
|
3
|
-
import { Address, HttpTransport, SignableMessage, Hex, TypedData, TypedDataDefinition, PublicClient } from 'viem';
|
|
4
|
-
import { C as Callbacks } from '../../options-DQUNKXxn.js';
|
|
5
|
-
import { EVMSmartWalletChain } from '../chains/index.js';
|
|
6
|
-
import { EVMSigner } from '../types/signers.js';
|
|
7
|
-
import { EVMSmartWallet, TransactionInput } from '../types/wallet.js';
|
|
8
|
-
import { DelegatedSignerDto } from '../../api/gen/types.gen.js';
|
|
9
|
-
import '@crossmint/common-sdk-base';
|
|
10
|
-
import '../../solana/tokens.js';
|
|
11
|
-
import '../../solana/types/signers.js';
|
|
12
|
-
import '@solana/web3.js';
|
|
13
|
-
import '../../solana/types/wallet.js';
|
|
14
|
-
import '../../solana/services/approvals-service.js';
|
|
15
|
-
import 'ox';
|
|
16
|
-
|
|
17
|
-
declare class EVMDelegatedSignerService {
|
|
18
|
-
private readonly walletLocator;
|
|
19
|
-
private readonly wallet;
|
|
20
|
-
private readonly apiClient;
|
|
21
|
-
constructor(walletLocator: EvmWalletLocator, wallet: EVMSmartWalletImpl, apiClient: ApiClient);
|
|
22
|
-
registerDelegatedSigner(chain: EVMSmartWalletChain, signer: string, options?: {
|
|
23
|
-
expiresAt?: number;
|
|
24
|
-
adminSigner?: EVMSigner;
|
|
25
|
-
}): Promise<GetSignerResponse>;
|
|
26
|
-
getDelegatedSigner(signer: string): Promise<GetSignerResponse>;
|
|
27
|
-
getDelegatedSigners(): Promise<DelegatedSignerDto[]>;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
type PendingApproval = NonNullable<NonNullable<CreateTransactionSuccessResponse["approvals"]>["pending"]>[number];
|
|
31
|
-
declare class EVMSmartWalletImpl implements EVMSmartWallet {
|
|
32
|
-
readonly address: Address;
|
|
33
|
-
private readonly apiClient;
|
|
34
|
-
private readonly adminSigner;
|
|
35
|
-
private readonly callbacks;
|
|
36
|
-
protected readonly delegatedSignerService: EVMDelegatedSignerService;
|
|
37
|
-
constructor(address: Address, apiClient: ApiClient, adminSigner: EVMSigner, callbacks: Callbacks);
|
|
38
|
-
/**
|
|
39
|
-
* Get the wallet balances
|
|
40
|
-
* @param {Object} params - The parameters
|
|
41
|
-
* @param {EVMSmartWalletChain} params.chain - The chain
|
|
42
|
-
* @param {Address[]} params.tokens - The tokens
|
|
43
|
-
* @returns {Promise<WalletBalance>} The balances
|
|
44
|
-
* @throws {Error} If the balances cannot be retrieved
|
|
45
|
-
*/
|
|
46
|
-
getBalances(params: {
|
|
47
|
-
chain: EVMSmartWalletChain;
|
|
48
|
-
tokens: string[];
|
|
49
|
-
}): Promise<WalletBalance>;
|
|
50
|
-
/**
|
|
51
|
-
* Get the wallet transactions
|
|
52
|
-
* @returns The transactions
|
|
53
|
-
*/
|
|
54
|
-
getTransactions(): Promise<GetTransactionsResponse>;
|
|
55
|
-
/**
|
|
56
|
-
* Get the wallet NFTs
|
|
57
|
-
* @param {Object} params - The parameters
|
|
58
|
-
* @param {number} params.perPage - The number of NFTs per page
|
|
59
|
-
* @param {number} params.page - The page number
|
|
60
|
-
* @param {EVMSmartWalletChain} params.chain - The chain
|
|
61
|
-
* @param {EvmWalletLocator} [params.locator] - The locator
|
|
62
|
-
* @returns The NFTs
|
|
63
|
-
* @unstable This API is unstable and may change in the future
|
|
64
|
-
*/
|
|
65
|
-
unstable_getNfts(params: {
|
|
66
|
-
perPage: number;
|
|
67
|
-
page: number;
|
|
68
|
-
chain: EVMSmartWalletChain;
|
|
69
|
-
}): Promise<GetNftsResponse>;
|
|
70
|
-
/**
|
|
71
|
-
* Get the nonce
|
|
72
|
-
* @param {Object} params - The parameters
|
|
73
|
-
* @param {EVMSmartWalletChain} params.chain - The chain
|
|
74
|
-
* @param {bigint} [params.key] - The key
|
|
75
|
-
* @param {HttpTransport} [params.transport] - Custom transport
|
|
76
|
-
* @returns {Promise<bigint>} The nonce
|
|
77
|
-
*/
|
|
78
|
-
getNonce(params: {
|
|
79
|
-
chain: EVMSmartWalletChain;
|
|
80
|
-
key?: bigint | undefined;
|
|
81
|
-
transport?: HttpTransport;
|
|
82
|
-
}): Promise<bigint>;
|
|
83
|
-
/**
|
|
84
|
-
* Sign a message
|
|
85
|
-
* @param {Object} params - The parameters
|
|
86
|
-
* @param {SignableMessage} params.message - The message
|
|
87
|
-
* @param {EVMSmartWalletChain} params.chain - The chain
|
|
88
|
-
* @returns {Promise<Hex>} The signature
|
|
89
|
-
*/
|
|
90
|
-
signMessage(params: {
|
|
91
|
-
message: SignableMessage;
|
|
92
|
-
chain: EVMSmartWalletChain;
|
|
93
|
-
}): Promise<Hex>;
|
|
94
|
-
signTypedData<const typedData extends TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(params: TypedDataDefinition<typedData, primaryType> & {
|
|
95
|
-
chain: EVMSmartWalletChain;
|
|
96
|
-
}): Promise<Hex>;
|
|
97
|
-
/**
|
|
98
|
-
* Send a transaction
|
|
99
|
-
* @param {TransactionInput} params - The parameters
|
|
100
|
-
* @param {Address} params.to - The recipient address
|
|
101
|
-
* @param {EVMSmartWalletChain} params.chain - The blockchain network
|
|
102
|
-
* @param {Hex} [params.data] - The transaction calldata
|
|
103
|
-
* @param {bigint} [params.value] - The amount of native currency to send (in wei)
|
|
104
|
-
* @returns {Promise<Hex>} The transaction hash
|
|
105
|
-
*/
|
|
106
|
-
sendTransaction(params: TransactionInput): Promise<Hex>;
|
|
107
|
-
/**
|
|
108
|
-
* Get a viem client for a chain
|
|
109
|
-
* @param {Object} params - The parameters
|
|
110
|
-
* @param {EVMSmartWalletChain} params.chain - The chain
|
|
111
|
-
* @param {HttpTransport} [params.transport] - Optional custom transport
|
|
112
|
-
* @returns {PublicClient<HttpTransport>} The viem client
|
|
113
|
-
*/
|
|
114
|
-
getViemClient(params: {
|
|
115
|
-
chain: EVMSmartWalletChain;
|
|
116
|
-
transport?: HttpTransport;
|
|
117
|
-
}): PublicClient<HttpTransport>;
|
|
118
|
-
/**
|
|
119
|
-
* Add a delegated signer to the wallet
|
|
120
|
-
* @param {Object} params - The parameters
|
|
121
|
-
* @param {EVMSmartWalletChain} params.chain - The chain
|
|
122
|
-
* @param {string} params.signer - The signer
|
|
123
|
-
* @returns The delegated signer
|
|
124
|
-
*/
|
|
125
|
-
addDelegatedSigner(params: {
|
|
126
|
-
chain: EVMSmartWalletChain;
|
|
127
|
-
signer: string;
|
|
128
|
-
}): Promise<GetSignerResponse>;
|
|
129
|
-
/**
|
|
130
|
-
* Gets delegated signers for the wallet
|
|
131
|
-
* @returns The delegated signers
|
|
132
|
-
* @throws {WalletNotAvailableError} If the wallet is not found
|
|
133
|
-
* @throws {WalletTypeNotSupportedError} If the wallet type is not supported
|
|
134
|
-
*/
|
|
135
|
-
getDelegatedSigners(): Promise<DelegatedSigner[]>;
|
|
136
|
-
private get walletLocator();
|
|
137
|
-
private get signerLocator();
|
|
138
|
-
private signWithAdminSigner;
|
|
139
|
-
private createTransaction;
|
|
140
|
-
private approveTransaction;
|
|
141
|
-
private waitForTransaction;
|
|
142
|
-
/**
|
|
143
|
-
* @internal Used by DelegatedSignerService
|
|
144
|
-
*/
|
|
145
|
-
approveSignature(pendingApprovals: Array<PendingApproval>, signatureId: string): Promise<`0x${string}`>;
|
|
146
|
-
/**
|
|
147
|
-
* @internal Used by DelegatedSignerService
|
|
148
|
-
*/
|
|
149
|
-
waitForSignature(signatureId: string): Promise<void>;
|
|
150
|
-
private createSignature;
|
|
151
|
-
private createTypedDataSignature;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
export { EVMSmartWalletImpl as E, EVMDelegatedSignerService };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-QYX3J3RZ.js";import"../../chunk-7ENJXL4H.js";import"../../chunk-22GIA4MK.js";export{a as EVMDelegatedSignerService};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { WebAuthnP256 } from 'ox';
|
|
2
|
-
import { EIP1193Provider, Account, Hex } from 'viem';
|
|
3
|
-
|
|
4
|
-
type PasskeySigningCallback = (message: string) => Promise<{
|
|
5
|
-
signature: Hex;
|
|
6
|
-
metadata: WebAuthnP256.SignMetadata;
|
|
7
|
-
}>;
|
|
8
|
-
type PasskeyCreationCallback = (name: string) => Promise<{
|
|
9
|
-
id: string;
|
|
10
|
-
publicKey: {
|
|
11
|
-
x: string;
|
|
12
|
-
y: string;
|
|
13
|
-
};
|
|
14
|
-
}>;
|
|
15
|
-
type EVMSignerInput = {
|
|
16
|
-
type: "evm-keypair";
|
|
17
|
-
address: string;
|
|
18
|
-
signer: {
|
|
19
|
-
type: "provider";
|
|
20
|
-
provider: EIP1193Provider;
|
|
21
|
-
} | {
|
|
22
|
-
type: "viem_v2";
|
|
23
|
-
account: Account;
|
|
24
|
-
};
|
|
25
|
-
} | {
|
|
26
|
-
type: "evm-passkey";
|
|
27
|
-
name?: string;
|
|
28
|
-
signingCallback?: PasskeySigningCallback;
|
|
29
|
-
creationCallback?: PasskeyCreationCallback;
|
|
30
|
-
};
|
|
31
|
-
type EVMSigner = EVMSignerInput & {
|
|
32
|
-
locator: string;
|
|
33
|
-
} & ({
|
|
34
|
-
type: "evm-passkey";
|
|
35
|
-
id: string;
|
|
36
|
-
} | {
|
|
37
|
-
type: "evm-keypair";
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
export type { EVMSigner, EVMSignerInput, PasskeyCreationCallback, PasskeySigningCallback };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { WebAuthnP256 } from 'ox';
|
|
2
|
-
import { EIP1193Provider, Account, Hex } from 'viem';
|
|
3
|
-
|
|
4
|
-
type PasskeySigningCallback = (message: string) => Promise<{
|
|
5
|
-
signature: Hex;
|
|
6
|
-
metadata: WebAuthnP256.SignMetadata;
|
|
7
|
-
}>;
|
|
8
|
-
type PasskeyCreationCallback = (name: string) => Promise<{
|
|
9
|
-
id: string;
|
|
10
|
-
publicKey: {
|
|
11
|
-
x: string;
|
|
12
|
-
y: string;
|
|
13
|
-
};
|
|
14
|
-
}>;
|
|
15
|
-
type EVMSignerInput = {
|
|
16
|
-
type: "evm-keypair";
|
|
17
|
-
address: string;
|
|
18
|
-
signer: {
|
|
19
|
-
type: "provider";
|
|
20
|
-
provider: EIP1193Provider;
|
|
21
|
-
} | {
|
|
22
|
-
type: "viem_v2";
|
|
23
|
-
account: Account;
|
|
24
|
-
};
|
|
25
|
-
} | {
|
|
26
|
-
type: "evm-passkey";
|
|
27
|
-
name?: string;
|
|
28
|
-
signingCallback?: PasskeySigningCallback;
|
|
29
|
-
creationCallback?: PasskeyCreationCallback;
|
|
30
|
-
};
|
|
31
|
-
type EVMSigner = EVMSignerInput & {
|
|
32
|
-
locator: string;
|
|
33
|
-
} & ({
|
|
34
|
-
type: "evm-passkey";
|
|
35
|
-
id: string;
|
|
36
|
-
} | {
|
|
37
|
-
type: "evm-keypair";
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
export type { EVMSigner, EVMSignerInput, PasskeyCreationCallback, PasskeySigningCallback };
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { Address, SignableMessage, Hex, HttpTransport, PublicClient, TypedData, TypedDataDefinition } from 'viem';
|
|
2
|
-
import { WalletBalance, GetTransactionsResponse, GetNftsResponse, GetSignerResponse, DelegatedSigner } from '../../api/types.cjs';
|
|
3
|
-
import { EVMSmartWalletChain } from '../chains/index.cjs';
|
|
4
|
-
import '../../api/gen/types.gen.cjs';
|
|
5
|
-
|
|
6
|
-
interface EVMSmartWallet {
|
|
7
|
-
address: Address;
|
|
8
|
-
getBalances(params: {
|
|
9
|
-
chain: EVMSmartWalletChain;
|
|
10
|
-
tokens: string[];
|
|
11
|
-
}): Promise<WalletBalance>;
|
|
12
|
-
getTransactions(): Promise<GetTransactionsResponse>;
|
|
13
|
-
unstable_getNfts(params: {
|
|
14
|
-
perPage: number;
|
|
15
|
-
page: number;
|
|
16
|
-
chain: EVMSmartWalletChain;
|
|
17
|
-
}): Promise<GetNftsResponse>;
|
|
18
|
-
signMessage(params: {
|
|
19
|
-
message: SignableMessage;
|
|
20
|
-
chain: EVMSmartWalletChain;
|
|
21
|
-
}): Promise<Hex>;
|
|
22
|
-
sendTransaction(params: TransactionInput): Promise<Hex>;
|
|
23
|
-
getViemClient(params: {
|
|
24
|
-
chain: EVMSmartWalletChain;
|
|
25
|
-
transport?: HttpTransport;
|
|
26
|
-
}): PublicClient<HttpTransport>;
|
|
27
|
-
getNonce(params: {
|
|
28
|
-
chain: EVMSmartWalletChain;
|
|
29
|
-
key?: bigint | undefined;
|
|
30
|
-
transport?: HttpTransport;
|
|
31
|
-
}): Promise<bigint>;
|
|
32
|
-
signTypedData<const typedData extends TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(params: TypedDataDefinition<typedData, primaryType> & {
|
|
33
|
-
chain: EVMSmartWalletChain;
|
|
34
|
-
}): Promise<Hex>;
|
|
35
|
-
addDelegatedSigner(params: {
|
|
36
|
-
chain: EVMSmartWalletChain;
|
|
37
|
-
signer: string;
|
|
38
|
-
}): Promise<GetSignerResponse>;
|
|
39
|
-
getDelegatedSigners(): Promise<DelegatedSigner[]>;
|
|
40
|
-
}
|
|
41
|
-
interface TransactionInput {
|
|
42
|
-
to: Address;
|
|
43
|
-
chain: EVMSmartWalletChain;
|
|
44
|
-
data?: Hex;
|
|
45
|
-
value?: bigint;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export type { EVMSmartWallet, TransactionInput };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { Address, SignableMessage, Hex, HttpTransport, PublicClient, TypedData, TypedDataDefinition } from 'viem';
|
|
2
|
-
import { WalletBalance, GetTransactionsResponse, GetNftsResponse, GetSignerResponse, DelegatedSigner } from '../../api/types.js';
|
|
3
|
-
import { EVMSmartWalletChain } from '../chains/index.js';
|
|
4
|
-
import '../../api/gen/types.gen.js';
|
|
5
|
-
|
|
6
|
-
interface EVMSmartWallet {
|
|
7
|
-
address: Address;
|
|
8
|
-
getBalances(params: {
|
|
9
|
-
chain: EVMSmartWalletChain;
|
|
10
|
-
tokens: string[];
|
|
11
|
-
}): Promise<WalletBalance>;
|
|
12
|
-
getTransactions(): Promise<GetTransactionsResponse>;
|
|
13
|
-
unstable_getNfts(params: {
|
|
14
|
-
perPage: number;
|
|
15
|
-
page: number;
|
|
16
|
-
chain: EVMSmartWalletChain;
|
|
17
|
-
}): Promise<GetNftsResponse>;
|
|
18
|
-
signMessage(params: {
|
|
19
|
-
message: SignableMessage;
|
|
20
|
-
chain: EVMSmartWalletChain;
|
|
21
|
-
}): Promise<Hex>;
|
|
22
|
-
sendTransaction(params: TransactionInput): Promise<Hex>;
|
|
23
|
-
getViemClient(params: {
|
|
24
|
-
chain: EVMSmartWalletChain;
|
|
25
|
-
transport?: HttpTransport;
|
|
26
|
-
}): PublicClient<HttpTransport>;
|
|
27
|
-
getNonce(params: {
|
|
28
|
-
chain: EVMSmartWalletChain;
|
|
29
|
-
key?: bigint | undefined;
|
|
30
|
-
transport?: HttpTransport;
|
|
31
|
-
}): Promise<bigint>;
|
|
32
|
-
signTypedData<const typedData extends TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(params: TypedDataDefinition<typedData, primaryType> & {
|
|
33
|
-
chain: EVMSmartWalletChain;
|
|
34
|
-
}): Promise<Hex>;
|
|
35
|
-
addDelegatedSigner(params: {
|
|
36
|
-
chain: EVMSmartWalletChain;
|
|
37
|
-
signer: string;
|
|
38
|
-
}): Promise<GetSignerResponse>;
|
|
39
|
-
getDelegatedSigners(): Promise<DelegatedSigner[]>;
|
|
40
|
-
}
|
|
41
|
-
interface TransactionInput {
|
|
42
|
-
to: Address;
|
|
43
|
-
chain: EVMSmartWalletChain;
|
|
44
|
-
data?: Hex;
|
|
45
|
-
value?: bigint;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export type { EVMSmartWallet, TransactionInput };
|
package/dist/evm/types/wallet.js
DELETED
|
File without changes
|
package/dist/evm/utils.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkXKXW2FNYcjs = require('../chunk-XKXW2FNY.cjs');require('../chunk-CT2UGJEL.cjs');require('../chunk-CK4JCQY6.cjs');exports.createPasskeySigner = _chunkXKXW2FNYcjs.b; exports.getEvmAdminSigner = _chunkXKXW2FNYcjs.a;
|
package/dist/evm/utils.d.cts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { CreateWalletResponse } from '../api/types.cjs';
|
|
2
|
-
import { EVMSignerInput, EVMSigner, PasskeyCreationCallback } from './types/signers.cjs';
|
|
3
|
-
import 'viem';
|
|
4
|
-
import '../api/gen/types.gen.cjs';
|
|
5
|
-
import 'ox';
|
|
6
|
-
|
|
7
|
-
declare function getEvmAdminSigner(input: EVMSignerInput, response: Extract<CreateWalletResponse, {
|
|
8
|
-
type: "evm-smart-wallet";
|
|
9
|
-
}>): EVMSigner;
|
|
10
|
-
declare function createPasskeySigner(name?: string, creationCallback?: PasskeyCreationCallback): Promise<{
|
|
11
|
-
readonly type: "evm-passkey";
|
|
12
|
-
readonly id: string;
|
|
13
|
-
readonly name: string;
|
|
14
|
-
readonly publicKey: {
|
|
15
|
-
readonly x: string;
|
|
16
|
-
readonly y: string;
|
|
17
|
-
};
|
|
18
|
-
}>;
|
|
19
|
-
|
|
20
|
-
export { createPasskeySigner, getEvmAdminSigner };
|
package/dist/evm/utils.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { CreateWalletResponse } from '../api/types.js';
|
|
2
|
-
import { EVMSignerInput, EVMSigner, PasskeyCreationCallback } from './types/signers.js';
|
|
3
|
-
import 'viem';
|
|
4
|
-
import '../api/gen/types.gen.js';
|
|
5
|
-
import 'ox';
|
|
6
|
-
|
|
7
|
-
declare function getEvmAdminSigner(input: EVMSignerInput, response: Extract<CreateWalletResponse, {
|
|
8
|
-
type: "evm-smart-wallet";
|
|
9
|
-
}>): EVMSigner;
|
|
10
|
-
declare function createPasskeySigner(name?: string, creationCallback?: PasskeyCreationCallback): Promise<{
|
|
11
|
-
readonly type: "evm-passkey";
|
|
12
|
-
readonly id: string;
|
|
13
|
-
readonly name: string;
|
|
14
|
-
readonly publicKey: {
|
|
15
|
-
readonly x: string;
|
|
16
|
-
readonly y: string;
|
|
17
|
-
};
|
|
18
|
-
}>;
|
|
19
|
-
|
|
20
|
-
export { createPasskeySigner, getEvmAdminSigner };
|
package/dist/evm/utils.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b}from"../chunk-7WRWCJJ6.js";import"../chunk-7ENJXL4H.js";import"../chunk-22GIA4MK.js";export{b as createPasskeySigner,a as getEvmAdminSigner};
|
package/dist/evm/wallet.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkV445PZHLcjs = require('../chunk-V445PZHL.cjs');require('../chunk-WNXCWDJQ.cjs');require('../chunk-6DTBGTSS.cjs');require('../chunk-EZ7PEO5P.cjs');require('../chunk-MFUN74KH.cjs');require('../chunk-F2XDGZCB.cjs');require('../chunk-DANM4IBF.cjs');require('../chunk-ER6A2LAJ.cjs');require('../chunk-CT2UGJEL.cjs');require('../chunk-CK4JCQY6.cjs');exports.EVMSmartWalletImpl = _chunkV445PZHLcjs.a;
|
package/dist/evm/wallet.d.cts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import '../api/client.cjs';
|
|
2
|
-
import '../api/types.cjs';
|
|
3
|
-
import 'viem';
|
|
4
|
-
import '../options-IchphkHW.cjs';
|
|
5
|
-
import './chains/index.cjs';
|
|
6
|
-
import './types/signers.cjs';
|
|
7
|
-
import './types/wallet.cjs';
|
|
8
|
-
export { E as EVMSmartWalletImpl } from './services/delegated-signers-service.cjs';
|
|
9
|
-
import '@crossmint/common-sdk-base';
|
|
10
|
-
import '../api/gen/types.gen.cjs';
|
|
11
|
-
import '../solana/tokens.cjs';
|
|
12
|
-
import '../solana/types/signers.cjs';
|
|
13
|
-
import '@solana/web3.js';
|
|
14
|
-
import '../solana/types/wallet.cjs';
|
|
15
|
-
import '../solana/services/approvals-service.cjs';
|
|
16
|
-
import 'ox';
|