@cavos/kit 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { BackupSigner, Cavos, CavosAuth, CavosSolana, CavosStellar, DEVICE_ACCOUNT_CLASS_HASH, DEVICE_ACCOUNT_PROGRAM_ID, DEVICE_ACCOUNT_WASM_HASH, FACTORY_CONTRACT_ID, HttpRecoveryClient, HttpWalletRegistry, InMemoryWalletRegistry, NATIVE_SAC_ID, PasskeySigner, SECP256R1_PROGRAM_ID, SOLANA_NETWORKS, STARKNET_NETWORKS, STELLAR_NETWORKS, SolanaAdapter, SolanaRelayer, StarknetAdapter, StarknetDeviceSigner, StellarAdapter, StellarRelayer, UDC_ADDRESS, WebCryptoSigner, anchorDiscriminator, approveDeviceEverywhere, base64urlEncode, batchChallenge, bigIntTo32Bytes, buildSecp256r1Instruction, bytesToBigInt, bytesToHex, compressedPubkey, deriveAddressSeed, deriveAddressSeedSolana, deriveAddressSeedStellar, deriveBackupKey, deviceSignatureScVal, encodeLowSSignature, encodeLowSSignature2 as encodeStellarLowSSignature, generateRecoveryCode, hexToBytes, lowS, recoverCandidatePublicKeys, recoverYParity, sec1Pubkey, serializeInstructions, signatureToFelts, u256ToFelts, webauthnDigest } from './chunk-F2J25XSL.mjs';
1
+ export { BackupSigner, Cavos, CavosAuth, CavosSolana, CavosStellar, DEVICE_ACCOUNT_CLASS_HASH, DEVICE_ACCOUNT_PROGRAM_ID, HORIZON_URL, HttpRecoveryClient, HttpWalletRegistry, InMemoryWalletRegistry, LocalDeviceUnwrapKey, PasskeyPrf, PasskeySigner, SECP256R1_PROGRAM_ID, SOLANA_NETWORKS, STARKNET_NETWORKS, STELLAR_NETWORKS, SolanaAdapter, SolanaRelayer, StarknetAdapter, StarknetDeviceSigner, StellarAdapter, StellarRelayer, UDC_ADDRESS, WebCryptoDeviceUnwrapKey, WebCryptoSigner, XLM_DECIMALS, anchorDiscriminator, approveDeviceEverywhere, base64urlEncode, batchChallenge, bigIntTo32Bytes, buildSecp256r1Instruction, bytesToBigInt, bytesToHex, compressedPubkey, deriveAddressSeed, deriveAddressSeedSolana, deriveAddressSeedStellar, deriveBackupKey, derivePasskeyKEK, deriveRecoveryKEK, deriveStellarAddress, deriveStellarMasterKeypair, deviceSlotId, eciesUnwrapDEK, eciesWrapDEK, encodeLowSSignature, fromDataEntries, generateControlKey, generateDEK, generateRecoveryCode, hexToBytes, lowS, openControlSeed, recoverCandidatePublicKeys, recoverYParity, sealControlSeed, serializeInstructions, signatureToFelts, toDataEntries, u256ToFelts, unwrapDEK, webauthnDigest, wrapDEK } from './chunk-M5BGBODC.mjs';
2
2
 
3
3
  // src/auth/AuthProvider.ts
4
4
  var StaticIdentity = class {
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import react__default, { ReactNode } from 'react';
3
- import { k as Chain, u as NetworkEnv, j as CavosWallet, e as ChainCall, x as PasskeySigner, w as PasskeyEnrollParams } from '../Cavos-x9qFpOvJ.mjs';
3
+ import { l as Chain, N as NetworkEnv, k as CavosWallet, e as ChainCall, r as ExecuteOptions, x as PasskeySigner, w as PasskeyEnrollParams } from '../Cavos-D20EtgOK.mjs';
4
4
  import 'starknet';
5
5
  import '@solana/web3.js';
6
6
  import '@stellar/stellar-sdk';
@@ -88,8 +88,13 @@ interface CavosContextValue {
88
88
  verifyOtp: (email: string, code: string) => Promise<void>;
89
89
  /** Resolve identity from an OAuth callback (?auth_data=…) and deploy. */
90
90
  handleCallback: (authData: string) => Promise<void>;
91
- /** Execute a sponsored (gasless) multicall, signed by the device key (Starknet). */
92
- execute: (calls: ChainCall[]) => Promise<{
91
+ /**
92
+ * Execute a multicall signed by the device key (Starknet-only on Solana /
93
+ * Stellar call `wallet.execute(...)` directly). Sponsored (gasless) by default;
94
+ * pass `{ sponsored: false }` to submit directly with the account paying its
95
+ * own fee.
96
+ */
97
+ execute: (calls: ChainCall[], opts?: ExecuteOptions) => Promise<{
93
98
  transactionHash: string;
94
99
  }>;
95
100
  /** Authorize another device signer on this wallet (sponsored add_signer). */
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import react__default, { ReactNode } from 'react';
3
- import { k as Chain, u as NetworkEnv, j as CavosWallet, e as ChainCall, x as PasskeySigner, w as PasskeyEnrollParams } from '../Cavos-x9qFpOvJ.js';
3
+ import { l as Chain, N as NetworkEnv, k as CavosWallet, e as ChainCall, r as ExecuteOptions, x as PasskeySigner, w as PasskeyEnrollParams } from '../Cavos-D20EtgOK.js';
4
4
  import 'starknet';
5
5
  import '@solana/web3.js';
6
6
  import '@stellar/stellar-sdk';
@@ -88,8 +88,13 @@ interface CavosContextValue {
88
88
  verifyOtp: (email: string, code: string) => Promise<void>;
89
89
  /** Resolve identity from an OAuth callback (?auth_data=…) and deploy. */
90
90
  handleCallback: (authData: string) => Promise<void>;
91
- /** Execute a sponsored (gasless) multicall, signed by the device key (Starknet). */
92
- execute: (calls: ChainCall[]) => Promise<{
91
+ /**
92
+ * Execute a multicall signed by the device key (Starknet-only on Solana /
93
+ * Stellar call `wallet.execute(...)` directly). Sponsored (gasless) by default;
94
+ * pass `{ sponsored: false }` to submit directly with the account paying its
95
+ * own fee.
96
+ */
97
+ execute: (calls: ChainCall[], opts?: ExecuteOptions) => Promise<{
93
98
  transactionHash: string;
94
99
  }>;
95
100
  /** Authorize another device signer on this wallet (sponsored add_signer). */