@human.tech/waap-sdk 2.3.0 → 2.4.1
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/.agent/SKILL.md +28 -13
- package/CHANGELOG.md +152 -0
- package/README.md +16 -2
- package/dist/SolanaProvider-BdeBP_ro.js +1 -0
- package/dist/SolanaProvider-DP9J8JuJ.mjs +1 -0
- package/dist/UIMessageManager-4xqSTTBS.d.mts +11 -0
- package/dist/UIMessageManager-4xqSTTBS.d.ts +11 -0
- package/dist/UIMessageManager-CtnIZgIY.mjs +1 -0
- package/dist/UIMessageManager-D-OTya1E.js +1 -0
- package/dist/WaaPError-C2TOEGPx.d.mts +52 -0
- package/dist/WaaPError-C2TOEGPx.d.ts +52 -0
- package/dist/{WalletConnect-Dn40Omgo.js → WalletConnect-B21f4Vvh.js} +1 -1
- package/dist/{WalletConnect-UfxGn2M_.mjs → WalletConnect-DXiTxC-F.mjs} +1 -1
- package/dist/{WaaPError-CMOAWUlN.d.ts → WalletModalController-16mHsFv2.d.ts} +17 -55
- package/dist/{WaaPError-BjukImOz.d.mts → WalletModalController-DxiBiqDf.d.mts} +17 -55
- package/dist/bridge.d.mts +158 -0
- package/dist/bridge.d.ts +158 -0
- package/dist/bridge.js +1 -0
- package/dist/bridge.mjs +1 -0
- package/dist/evm-dDMLwSQe.mjs +2 -0
- package/dist/evm-rUSuf-iy.js +2 -0
- package/dist/evm.d.mts +3 -2
- package/dist/evm.d.ts +3 -2
- package/dist/evm.js +1 -1
- package/dist/evm.mjs +1 -1
- package/dist/{index-DOIss_GK.d.ts → index-BOExImk3.d.mts} +29 -192
- package/dist/{index-C0mLQs_a.d.mts → index-BkKBZpqc.d.ts} +29 -192
- package/dist/index.d.mts +33 -8
- package/dist/index.d.ts +33 -8
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/dist/init-BkrqKNet.js +1 -0
- package/dist/init-C-52fEJS.d.ts +84 -0
- package/dist/init-C3zCj5Lc.d.mts +84 -0
- package/dist/init-CkYgm7Zu.mjs +1 -0
- package/dist/react.d.mts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +1 -1
- package/dist/react.mjs +1 -1
- package/dist/register-B2G1larb.mjs +1 -0
- package/dist/{register-9bEe9ATz.d.mts → register-BKCJXsHB.d.mts} +9 -6
- package/dist/register-BL_2Xqcc.js +1 -0
- package/dist/{register-XzDVa7r8.d.mts → register-C1hFwh4A.d.ts} +4 -3
- package/dist/register-CLpzYN7U.mjs +1 -0
- package/dist/{register-DgN7qh23.js → register-Diu5wxsG.js} +1 -1
- package/dist/{register-PWKDsSRv.d.ts → register-GiWQpcBY.d.ts} +9 -6
- package/dist/{register-Mb1D_xW4.d.ts → register-mq9fTaSt.d.mts} +4 -3
- package/dist/solana.d.mts +6 -4
- package/dist/solana.d.ts +6 -4
- package/dist/solana.js +1 -1
- package/dist/solana.mjs +1 -1
- package/dist/stellar.d.mts +6 -0
- package/dist/stellar.d.ts +6 -0
- package/dist/stellar.js +1 -0
- package/dist/stellar.mjs +1 -0
- package/dist/sui.d.mts +5 -4
- package/dist/sui.d.ts +5 -4
- package/dist/sui.js +1 -1
- package/dist/sui.mjs +1 -1
- package/dist/types-Bai14yLc.d.mts +95 -0
- package/dist/types-Bj5dDE-C.d.ts +198 -0
- package/dist/types-C7JDjWnt.d.mts +198 -0
- package/dist/{types-BmCqyQtu.d.mts → types-Cc6tc4ut.d.mts} +18 -1
- package/dist/{types-BmCqyQtu.d.ts → types-Cc6tc4ut.d.ts} +18 -1
- package/dist/types-DqdVfkaW.d.ts +95 -0
- package/dist/ui-CnG74RaM.js +1 -0
- package/dist/ui-lV9LVoom.mjs +1 -0
- package/dist/{useWaapAuth-vJAk2n_I.d.mts → useWaapAuth-Be1YJk-7.d.mts} +2 -2
- package/dist/useWaapAuth-C9Cwu4XG.js +1 -0
- package/dist/{useWaapAuth-DgYO5KxO.d.ts → useWaapAuth-DSFDwJtt.d.ts} +2 -2
- package/dist/useWaapAuth-Vh8gUs6Y.mjs +1 -0
- package/dist/walletconnect.js +1 -1
- package/dist/walletconnect.mjs +1 -1
- package/docs/solana-wallet-adapter.md +157 -0
- package/package.json +32 -4
- package/dist/esm-BUfmyWbN.mjs +0 -1
- package/dist/esm-DFwVZkjo.js +0 -1
- package/dist/evm-9r6LecIW.mjs +0 -2
- package/dist/evm-D_LHHo3z.js +0 -2
- package/dist/initializerContext-DIrqEE6B.d.ts +0 -20
- package/dist/initializerContext-_YjbVTiL.d.mts +0 -20
- package/dist/register-CEeLG7qz.mjs +0 -1
- package/dist/register-CodxV1XG.js +0 -1
- package/dist/register-I8d7v41B.mjs +0 -1
- package/dist/ui-BjcwM6px.js +0 -1
- package/dist/ui-CrnBoTQL.mjs +0 -1
- package/dist/useWaapAuth-BPvve-_3.js +0 -1
- package/dist/useWaapAuth-BcmVGb-D.mjs +0 -1
package/dist/evm.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
1
|
+
import { I as WaaPSessionProtection, _ as resolveWalletOrigin, a as PermissionTokenClearResult, d as WaaPAccountMode, f as WaaPAccountStatus, g as WaaPWalletTargetOptions, h as WaaPEnvironment, l as SilkEthereumProviderInterface, n as InitSilkOptions, o as PermissionTokenQuery, p as WaaPLoginOptions, s as PermissionTokenStatus, u as SilkProvider, v as validateWalletOrigin } from "./types-Cc6tc4ut.mjs";
|
|
2
|
+
import { a as subscribeWaaPIframeLifecycle, i as getWaaPIframeDiagnostics, n as WaaPIframeLifecycleEvent, r as WaaPIframeLifecyclePhase, t as WaaPIframeDiagnostics } from "./WalletModalController-DxiBiqDf.mjs";
|
|
3
|
+
import { a as CancelWaaPPreload, c as preloadWaaPOnIdle, i as normalizeWaaPError, n as WaaPErrorCode, o as WaaPIdlePreloadOptions, r as WaaPOperationMetadata, s as WaaPPreloadTarget, t as WaaPError } from "./WaaPError-C2TOEGPx.mjs";
|
|
3
4
|
//#region src/ui/evm.d.ts
|
|
4
5
|
/** Initialize the TAP t1 EVM EIP-1193 provider. */
|
|
5
6
|
declare const initWaaP: (params?: InitSilkOptions) => SilkEthereumProviderInterface;
|
package/dist/evm.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
1
|
+
import { I as WaaPSessionProtection, _ as resolveWalletOrigin, a as PermissionTokenClearResult, d as WaaPAccountMode, f as WaaPAccountStatus, g as WaaPWalletTargetOptions, h as WaaPEnvironment, l as SilkEthereumProviderInterface, n as InitSilkOptions, o as PermissionTokenQuery, p as WaaPLoginOptions, s as PermissionTokenStatus, u as SilkProvider, v as validateWalletOrigin } from "./types-Cc6tc4ut.js";
|
|
2
|
+
import { a as subscribeWaaPIframeLifecycle, i as getWaaPIframeDiagnostics, n as WaaPIframeLifecycleEvent, r as WaaPIframeLifecyclePhase, t as WaaPIframeDiagnostics } from "./WalletModalController-16mHsFv2.js";
|
|
3
|
+
import { a as CancelWaaPPreload, c as preloadWaaPOnIdle, i as normalizeWaaPError, n as WaaPErrorCode, o as WaaPIdlePreloadOptions, r as WaaPOperationMetadata, s as WaaPPreloadTarget, t as WaaPError } from "./WaaPError-C2TOEGPx.js";
|
|
3
4
|
//#region src/ui/evm.d.ts
|
|
4
5
|
/** Initialize the TAP t1 EVM EIP-1193 provider. */
|
|
5
6
|
declare const initWaaP: (params?: InitSilkOptions) => SilkEthereumProviderInterface;
|
package/dist/evm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./evm-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./UIMessageManager-D-OTya1E.js"),t=require("./evm-rUSuf-iy.js");exports.WaaPError=e.x,exports.getWaaPIframeDiagnostics=e.s,exports.initWaaP=t.t,exports.normalizeWaaPError=e.S,exports.preloadWaaPOnIdle=e.r,exports.resolveWalletOrigin=e.v,exports.subscribeWaaPIframeLifecycle=e.u,exports.validateWalletOrigin=e.y;
|
package/dist/evm.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as e,
|
|
1
|
+
import{S as e,r as t,s as n,u as r,v as i,x as a,y as o}from"./UIMessageManager-CtnIZgIY.mjs";import{t as s}from"./evm-dDMLwSQe.mjs";export{a as WaaPError,n as getWaaPIframeDiagnostics,s as initWaaP,e as normalizeWaaPError,t as preloadWaaPOnIdle,i as resolveWalletOrigin,r as subscribeWaaPIframeLifecycle,o as validateWalletOrigin};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as RequestPermissionTokenResult, T as RequestPermissionTokenParams, a as PermissionTokenClearResult, f as WaaPAccountStatus, g as WaaPWalletTargetOptions, l as SilkEthereumProviderInterface, m as WaaPSessionExtension, n as InitSilkOptions, o as PermissionTokenQuery, r as LoginResponse, s as PermissionTokenStatus, w as ProjectConfig, x as CustomConfig, y as AuthenticationMethod } from "./types-Cc6tc4ut.mjs";
|
|
2
|
+
import { t as InitWaaPSolanaOptions, y as WaaPSolanaProviderInterface } from "./types-C7JDjWnt.mjs";
|
|
3
|
+
import { s as WaaPStellarProviderInterface, t as InitWaaPStellarOptions } from "./types-Bai14yLc.mjs";
|
|
2
4
|
//#region src/lib/sui/types.d.ts
|
|
3
5
|
/**
|
|
4
6
|
* Sui chain identifiers.
|
|
@@ -342,191 +344,9 @@ interface InitWaaPSuiOptions extends WaaPWalletTargetOptions {
|
|
|
342
344
|
deferIframe?: boolean;
|
|
343
345
|
}
|
|
344
346
|
//#endregion
|
|
345
|
-
//#region src/lib/solana/types.d.ts
|
|
346
|
-
/** A Solana cluster identifier (CAIP-2-ish, matching wallet-adapter usage). */
|
|
347
|
-
type SolanaChain = 'solana:mainnet' | 'solana:devnet' | 'solana:testnet' | 'solana:localnet';
|
|
348
|
-
/** A connected Solana account. */
|
|
349
|
-
interface SolanaAccount {
|
|
350
|
-
/** base58-encoded address. */
|
|
351
|
-
address: string;
|
|
352
|
-
/** Raw 32-byte ed25519 public key. */
|
|
353
|
-
publicKey: Uint8Array;
|
|
354
|
-
chains: readonly SolanaChain[];
|
|
355
|
-
features: readonly `${string}:${string}`[];
|
|
356
|
-
}
|
|
357
|
-
/** Public Wallet Standard features supported by the WaaP Solana wallet. */
|
|
358
|
-
type WaaPSolanaWalletFeatures = {
|
|
359
|
-
'standard:connect': {
|
|
360
|
-
version: '1.0.0';
|
|
361
|
-
connect: (input?: {
|
|
362
|
-
silent?: boolean;
|
|
363
|
-
}) => Promise<SolanaConnectOutput>;
|
|
364
|
-
};
|
|
365
|
-
'standard:disconnect': {
|
|
366
|
-
version: '1.0.0';
|
|
367
|
-
disconnect: () => Promise<void>;
|
|
368
|
-
};
|
|
369
|
-
'standard:events': {
|
|
370
|
-
version: '1.0.0';
|
|
371
|
-
on: (event: 'change', listener: SolanaWalletEventListener) => () => void;
|
|
372
|
-
};
|
|
373
|
-
'solana:signMessage': {
|
|
374
|
-
version: '1.1.0';
|
|
375
|
-
signMessage: (...inputs: readonly SolanaStandardSignMessageInput[]) => Promise<readonly SolanaStandardSignMessageOutput[]>;
|
|
376
|
-
};
|
|
377
|
-
'solana:signTransaction': {
|
|
378
|
-
version: '1.0.0';
|
|
379
|
-
supportedTransactionVersions: readonly ('legacy' | 0)[];
|
|
380
|
-
signTransaction: (...inputs: readonly SolanaStandardSignTransactionInput[]) => Promise<readonly SolanaStandardSignTransactionOutput[]>;
|
|
381
|
-
};
|
|
382
|
-
'solana:signAndSendTransaction': {
|
|
383
|
-
version: '1.0.0';
|
|
384
|
-
supportedTransactionVersions: readonly ('legacy' | 0)[];
|
|
385
|
-
signAndSendTransaction: (...inputs: readonly SolanaStandardSignAndSendTransactionInput[]) => Promise<readonly SolanaStandardSignAndSendTransactionOutput[]>;
|
|
386
|
-
};
|
|
387
|
-
};
|
|
388
|
-
/** Solana Wallet Standard's variadic message-signing input. */
|
|
389
|
-
interface SolanaStandardSignMessageInput {
|
|
390
|
-
account: SolanaAccount;
|
|
391
|
-
message: Uint8Array;
|
|
392
|
-
}
|
|
393
|
-
interface SolanaStandardSignMessageOutput {
|
|
394
|
-
signedMessage: Uint8Array;
|
|
395
|
-
signature: Uint8Array;
|
|
396
|
-
signatureType?: 'ed25519';
|
|
397
|
-
}
|
|
398
|
-
/** Solana Wallet Standard's serialized-transaction signing input. */
|
|
399
|
-
interface SolanaStandardSignTransactionInput {
|
|
400
|
-
account: SolanaAccount;
|
|
401
|
-
transaction: Uint8Array;
|
|
402
|
-
chain?: SolanaChain;
|
|
403
|
-
options?: {
|
|
404
|
-
preflightCommitment?: 'processed' | 'confirmed' | 'finalized';
|
|
405
|
-
minContextSlot?: number;
|
|
406
|
-
};
|
|
407
|
-
}
|
|
408
|
-
interface SolanaStandardSignTransactionOutput {
|
|
409
|
-
signedTransaction: Uint8Array;
|
|
410
|
-
}
|
|
411
|
-
interface SolanaStandardSignAndSendTransactionInput extends SolanaStandardSignTransactionInput {
|
|
412
|
-
chain: SolanaChain;
|
|
413
|
-
options?: SolanaStandardSignTransactionInput['options'] & {
|
|
414
|
-
commitment?: 'processed' | 'confirmed' | 'finalized';
|
|
415
|
-
skipPreflight?: boolean;
|
|
416
|
-
maxRetries?: number;
|
|
417
|
-
};
|
|
418
|
-
}
|
|
419
|
-
interface SolanaStandardSignAndSendTransactionOutput {
|
|
420
|
-
signature: Uint8Array;
|
|
421
|
-
}
|
|
422
|
-
interface SolanaConnectInput {
|
|
423
|
-
/** Silent (non-interactive) reconnect. */
|
|
424
|
-
silent?: boolean;
|
|
425
|
-
signal?: AbortSignal;
|
|
426
|
-
timeoutMs?: number;
|
|
427
|
-
}
|
|
428
|
-
interface SolanaConnectOutput {
|
|
429
|
-
accounts: readonly SolanaAccount[];
|
|
430
|
-
}
|
|
431
|
-
interface SolanaSignMessageInput {
|
|
432
|
-
message: Uint8Array;
|
|
433
|
-
account: SolanaAccount;
|
|
434
|
-
signal?: AbortSignal;
|
|
435
|
-
timeoutMs?: number;
|
|
436
|
-
}
|
|
437
|
-
interface SolanaSignMessageOutput {
|
|
438
|
-
/** The message that was signed. */
|
|
439
|
-
signedMessage: Uint8Array;
|
|
440
|
-
/** The 64-byte ed25519 signature. */
|
|
441
|
-
signature: Uint8Array;
|
|
442
|
-
}
|
|
443
|
-
interface SolanaSignTransactionInput {
|
|
444
|
-
/** A serialized VersionedTransaction (bytes) or a `@solana/web3.js` tx object. */
|
|
445
|
-
transaction: Uint8Array | {
|
|
446
|
-
serialize(): Uint8Array;
|
|
447
|
-
};
|
|
448
|
-
account: SolanaAccount;
|
|
449
|
-
chain?: SolanaChain;
|
|
450
|
-
signal?: AbortSignal;
|
|
451
|
-
timeoutMs?: number;
|
|
452
|
-
/** Use a matching permission token when the wallet has one. */
|
|
453
|
-
withPT?: boolean;
|
|
454
|
-
}
|
|
455
|
-
interface SolanaSignTransactionOutput {
|
|
456
|
-
/** The signed, serialized transaction bytes. */
|
|
457
|
-
signedTransaction: Uint8Array;
|
|
458
|
-
/** The 64-byte ed25519 signature. */
|
|
459
|
-
signature: Uint8Array;
|
|
460
|
-
}
|
|
461
|
-
interface SolanaSignAndSendTransactionInput extends SolanaSignTransactionInput {
|
|
462
|
-
options?: {
|
|
463
|
-
skipPreflight?: boolean;
|
|
464
|
-
maxRetries?: number;
|
|
465
|
-
};
|
|
466
|
-
}
|
|
467
|
-
interface SolanaSignAndSendTransactionOutput {
|
|
468
|
-
/** base58 transaction signature (the on-chain txid). */
|
|
469
|
-
signature: string;
|
|
470
|
-
}
|
|
471
|
-
type SolanaWalletEventListener = (properties: {
|
|
472
|
-
chains?: readonly SolanaChain[];
|
|
473
|
-
features?: WaaPSolanaWalletFeatures;
|
|
474
|
-
accounts?: readonly SolanaAccount[];
|
|
475
|
-
}) => void;
|
|
476
|
-
interface InitWaaPSolanaOptions extends WaaPWalletTargetOptions {
|
|
477
|
-
referralCode?: string;
|
|
478
|
-
project?: ProjectConfig;
|
|
479
|
-
config?: CustomConfig;
|
|
480
|
-
/**
|
|
481
|
-
* Defer iframe navigation until `preload()` or the first wallet operation.
|
|
482
|
-
* The default warms the iframe at browser idle; pass `false` to mount eagerly.
|
|
483
|
-
*/
|
|
484
|
-
deferIframe?: boolean;
|
|
485
|
-
}
|
|
486
|
-
interface WaaPSolanaProviderInterface {
|
|
487
|
-
readonly name: string;
|
|
488
|
-
readonly version: string;
|
|
489
|
-
/** Wallet Standard icon data URI. */
|
|
490
|
-
readonly icon: `data:image/${'svg+xml' | 'webp' | 'png' | 'gif'};base64,${string}`;
|
|
491
|
-
readonly chains: readonly SolanaChain[];
|
|
492
|
-
readonly accounts: readonly SolanaAccount[];
|
|
493
|
-
/** Wallet Standard capabilities exposed by this Solana facade. */
|
|
494
|
-
readonly features: WaaPSolanaWalletFeatures;
|
|
495
|
-
/** Public-safe local connection status for this facade. */
|
|
496
|
-
getAccountStatus(): WaaPAccountStatus;
|
|
497
|
-
session: WaaPSessionExtension;
|
|
498
|
-
/** Open the WaaP login flow without connecting this chain facade. */
|
|
499
|
-
login(): Promise<LoginResponse>;
|
|
500
|
-
/** End the WaaP session without implying a chain disconnect is a logout. */
|
|
501
|
-
logout(): Promise<void>;
|
|
502
|
-
getLoginMethod(): LoginResponse;
|
|
503
|
-
connect(input?: SolanaConnectInput): Promise<SolanaConnectOutput>;
|
|
504
|
-
disconnect(): Promise<void>;
|
|
505
|
-
/** Release SDK message listeners owned by this Solana facade. */
|
|
506
|
-
destroy(): void;
|
|
507
|
-
/** Mount (if deferred) and complete the wallet handshake ahead of use. */
|
|
508
|
-
preload(): Promise<void>;
|
|
509
|
-
signMessage(input: SolanaSignMessageInput): Promise<SolanaSignMessageOutput>;
|
|
510
|
-
signTransaction(input: SolanaSignTransactionInput): Promise<SolanaSignTransactionOutput>;
|
|
511
|
-
signAndSendTransaction(input: SolanaSignAndSendTransactionInput): Promise<SolanaSignAndSendTransactionOutput>;
|
|
512
|
-
requestPermissionToken(params: RequestPermissionTokenParams): Promise<RequestPermissionTokenResult>;
|
|
513
|
-
getPermissionTokenStatus(query: PermissionTokenQuery): Promise<PermissionTokenStatus>;
|
|
514
|
-
clearPermissionToken(query: PermissionTokenQuery): Promise<PermissionTokenClearResult>;
|
|
515
|
-
/**
|
|
516
|
-
* Subscribe to wallet events. Supports `change` plus EVM-style `connect` /
|
|
517
|
-
* `accountsChanged` (so cross-chain hooks like `useWaapAuth` can subscribe to
|
|
518
|
-
* any facade uniformly).
|
|
519
|
-
* @returns Unsubscribe function
|
|
520
|
-
*/
|
|
521
|
-
on(event: 'change', listener: SolanaWalletEventListener): () => void;
|
|
522
|
-
on(event: string, listener: (...args: any[]) => void): () => void;
|
|
523
|
-
/** Remove a `connect` / `accountsChanged` listener. */
|
|
524
|
-
removeListener(event: string, listener: (...args: any[]) => void): void;
|
|
525
|
-
}
|
|
526
|
-
//#endregion
|
|
527
347
|
//#region src/ui/index.d.ts
|
|
528
348
|
/** Chain selected by a direct WaaP initializer. */
|
|
529
|
-
type WaaPChain = 'evm' | 'sui' | 'solana';
|
|
349
|
+
type WaaPChain = 'evm' | 'sui' | 'solana' | 'stellar';
|
|
530
350
|
/**
|
|
531
351
|
* Options for the direct WaaP initializers.
|
|
532
352
|
*
|
|
@@ -553,23 +373,31 @@ type LegacyInitWaaPSuiOptions = Omit<InitWaaPOptions, 'chain' | 'config'> & {
|
|
|
553
373
|
chain: 'sui';
|
|
554
374
|
config?: InitWaaPSuiOptions['config'];
|
|
555
375
|
};
|
|
556
|
-
type LegacyInitWaaPSolanaOptions = InitWaaPOptions & {
|
|
376
|
+
type LegacyInitWaaPSolanaOptions = InitWaaPOptions & Pick<InitWaaPSolanaOptions, 'defaultChain'> & {
|
|
557
377
|
chain: 'solana';
|
|
558
378
|
};
|
|
379
|
+
type LegacyInitWaaPStellarOptions = Omit<InitWaaPOptions, 'chain'> & {
|
|
380
|
+
chain: 'stellar';
|
|
381
|
+
/** Defaults to pubnet; testnet is opt-in. */
|
|
382
|
+
network?: InitWaaPStellarOptions['network'];
|
|
383
|
+
};
|
|
559
384
|
/**
|
|
560
385
|
* Initialize the TAP wallet.
|
|
561
386
|
*
|
|
562
387
|
* Existing `initWaaP(options)` calls retain their EVM provider behavior. Use
|
|
563
388
|
* `chain: 'sui'` or `chain: 'solana'` to select a direct Wallet Standard
|
|
564
|
-
* facade
|
|
389
|
+
* facade, or `chain: 'stellar'` for the SEP-43 module interface — Stellar has
|
|
390
|
+
* no Wallet Standard registration because SEP-43 is not one. Use
|
|
391
|
+
* `initWaaPMulti({ chains })` for a shared multichain wallet.
|
|
565
392
|
*/
|
|
566
393
|
declare function initWaaP(options?: LegacyInitWaaPEvmOptions): SilkEthereumProviderInterface;
|
|
567
394
|
declare function initWaaP(options: LegacyInitWaaPSuiOptions): WaaPSuiWalletInterface;
|
|
568
395
|
declare function initWaaP(options: LegacyInitWaaPSolanaOptions): WaaPSolanaProviderInterface;
|
|
396
|
+
declare function initWaaP(options: LegacyInitWaaPStellarOptions): WaaPStellarProviderInterface;
|
|
569
397
|
/** Accepts a runtime-selected chain when callers cannot preserve a literal. */
|
|
570
398
|
declare function initWaaP(options: InitWaaPOptions & {
|
|
571
399
|
chain?: WaaPChain;
|
|
572
|
-
}): SilkEthereumProviderInterface | WaaPSuiWalletInterface | WaaPSolanaProviderInterface;
|
|
400
|
+
}): SilkEthereumProviderInterface | WaaPSuiWalletInterface | WaaPSolanaProviderInterface | WaaPStellarProviderInterface;
|
|
573
401
|
/**
|
|
574
402
|
* Options for the multichain `initWaaPSquid` entry point.
|
|
575
403
|
*
|
|
@@ -617,9 +445,18 @@ interface WaaPSquidStatus {
|
|
|
617
445
|
* surface, while `initWaaP({ chain: 'sui' })` remains the best choice for a
|
|
618
446
|
* single-chain integration.
|
|
619
447
|
*/
|
|
448
|
+
/**
|
|
449
|
+
* Chains the multichain initializer can share one iframe between.
|
|
450
|
+
*
|
|
451
|
+
* Stellar is deliberately absent. It has no Squid account — the shared dWallet
|
|
452
|
+
* has no funded Stellar account to send from — so a facade here would be one
|
|
453
|
+
* the multichain surface cannot actually complete an operation on. Reach it
|
|
454
|
+
* with `initWaaP({ chain: 'stellar' })`, which is TAP-only by construction.
|
|
455
|
+
*/
|
|
456
|
+
type WaaPMultiChain = WaaPSquidChain;
|
|
620
457
|
interface InitWaaPMultiOptions extends InitWaaPOptions {
|
|
621
458
|
/** Chain facades to expose from one shared wallet iframe. */
|
|
622
|
-
chains: readonly
|
|
459
|
+
chains: readonly WaaPMultiChain[];
|
|
623
460
|
}
|
|
624
461
|
/** @deprecated Use `InitWaaPMultiOptions`. */
|
|
625
462
|
type InitWaaPTapOptions = InitWaaPMultiOptions;
|
|
@@ -660,7 +497,7 @@ interface WaaPTapSession extends WaaPSessionExtension {
|
|
|
660
497
|
* the session consumed by EVM, Sui, and Solana. TAP does not have a separate
|
|
661
498
|
* provisioning step; connect and sign through the requested native facade.
|
|
662
499
|
*/
|
|
663
|
-
type WaaPTap<Chains extends readonly
|
|
500
|
+
type WaaPTap<Chains extends readonly WaaPMultiChain[] = typeof ALL_TAP_CHAINS> = {
|
|
664
501
|
/** Combined public-safe local status for the shared TAP initializer. */
|
|
665
502
|
getAccountStatus: () => WaaPAccountStatus;
|
|
666
503
|
/** Shared canonical authentication, status, and lifecycle event surface. */
|
|
@@ -766,7 +603,7 @@ declare function initWaaPSquid<const Chains extends readonly [WaaPSquidChain, ..
|
|
|
766
603
|
* const { accounts } = await waap.sui.connect()
|
|
767
604
|
* ```
|
|
768
605
|
*/
|
|
769
|
-
declare function initWaaPMulti<const Chains extends readonly
|
|
606
|
+
declare function initWaaPMulti<const Chains extends readonly WaaPMultiChain[]>(options: InitWaaPMultiOptions & {
|
|
770
607
|
chains: Chains;
|
|
771
608
|
}): WaaPTap<Chains>;
|
|
772
609
|
/**
|
|
@@ -783,9 +620,9 @@ declare function initWaaPSui(options?: InitWaaPSuiOptions): WaaPSuiWalletInterfa
|
|
|
783
620
|
*/
|
|
784
621
|
declare function initWaaPSolana(options?: InitWaaPSolanaOptions): WaaPSolanaProviderInterface;
|
|
785
622
|
/** @deprecated Use `initWaaPMulti({ chains })` instead. */
|
|
786
|
-
declare function initWaaPTap<const Chains extends readonly
|
|
623
|
+
declare function initWaaPTap<const Chains extends readonly WaaPMultiChain[]>(options: InitWaaPTapOptions & {
|
|
787
624
|
chains: Chains;
|
|
788
625
|
}): WaaPTap<Chains>;
|
|
789
626
|
declare function initWaaPTap(options?: Partial<InitWaaPTapOptions>): WaaPTap;
|
|
790
627
|
//#endregion
|
|
791
|
-
export {
|
|
628
|
+
export { SuiSignPersonalMessageInput as A, WalletIcon as B, SuiChain as C, SuiSignAndExecuteTransactionBlockOutput as D, SuiSignAndExecuteTransactionBlockInput as E, SuiSignTransactionOutput as F, SuiTransactionInput as I, SuiWalletEventListener as L, SuiSignTransactionBlockInput as M, SuiSignTransactionBlockOutput as N, SuiSignAndExecuteTransactionInput as O, SuiSignTransactionInput as P, WaaPSuiWalletFeatures as R, SuiAccount as S, SuiConnectOutput as T, initWaaPSolana as _, WaaPChain as a, initWaaPTap as b, WaaPSquidChain as c, WaaPSquidStatus as d, WaaPSquidStatusState as f, initWaaPMulti as g, initWaaP as h, InitWaaPTapOptions as i, SuiSignPersonalMessageOutput as j, SuiSignAndExecuteTransactionOutput as k, WaaPSquidLifecycle as l, WaaPTapSession as m, InitWaaPOptions as n, WaaPMultiChain as o, WaaPTap as p, InitWaaPSquidOptions as r, WaaPSquid as s, InitWaaPMultiOptions as t, WaaPSquidSession as u, initWaaPSquid as v, SuiConnectInput as w, InitWaaPSuiOptions as x, initWaaPSui as y, WaaPSuiWalletInterface as z };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as RequestPermissionTokenResult, T as RequestPermissionTokenParams, a as PermissionTokenClearResult, f as WaaPAccountStatus, g as WaaPWalletTargetOptions, l as SilkEthereumProviderInterface, m as WaaPSessionExtension, n as InitSilkOptions, o as PermissionTokenQuery, r as LoginResponse, s as PermissionTokenStatus, w as ProjectConfig, x as CustomConfig, y as AuthenticationMethod } from "./types-Cc6tc4ut.js";
|
|
2
|
+
import { t as InitWaaPSolanaOptions, y as WaaPSolanaProviderInterface } from "./types-Bj5dDE-C.js";
|
|
3
|
+
import { s as WaaPStellarProviderInterface, t as InitWaaPStellarOptions } from "./types-DqdVfkaW.js";
|
|
2
4
|
//#region src/lib/sui/types.d.ts
|
|
3
5
|
/**
|
|
4
6
|
* Sui chain identifiers.
|
|
@@ -342,191 +344,9 @@ interface InitWaaPSuiOptions extends WaaPWalletTargetOptions {
|
|
|
342
344
|
deferIframe?: boolean;
|
|
343
345
|
}
|
|
344
346
|
//#endregion
|
|
345
|
-
//#region src/lib/solana/types.d.ts
|
|
346
|
-
/** A Solana cluster identifier (CAIP-2-ish, matching wallet-adapter usage). */
|
|
347
|
-
type SolanaChain = 'solana:mainnet' | 'solana:devnet' | 'solana:testnet' | 'solana:localnet';
|
|
348
|
-
/** A connected Solana account. */
|
|
349
|
-
interface SolanaAccount {
|
|
350
|
-
/** base58-encoded address. */
|
|
351
|
-
address: string;
|
|
352
|
-
/** Raw 32-byte ed25519 public key. */
|
|
353
|
-
publicKey: Uint8Array;
|
|
354
|
-
chains: readonly SolanaChain[];
|
|
355
|
-
features: readonly `${string}:${string}`[];
|
|
356
|
-
}
|
|
357
|
-
/** Public Wallet Standard features supported by the WaaP Solana wallet. */
|
|
358
|
-
type WaaPSolanaWalletFeatures = {
|
|
359
|
-
'standard:connect': {
|
|
360
|
-
version: '1.0.0';
|
|
361
|
-
connect: (input?: {
|
|
362
|
-
silent?: boolean;
|
|
363
|
-
}) => Promise<SolanaConnectOutput>;
|
|
364
|
-
};
|
|
365
|
-
'standard:disconnect': {
|
|
366
|
-
version: '1.0.0';
|
|
367
|
-
disconnect: () => Promise<void>;
|
|
368
|
-
};
|
|
369
|
-
'standard:events': {
|
|
370
|
-
version: '1.0.0';
|
|
371
|
-
on: (event: 'change', listener: SolanaWalletEventListener) => () => void;
|
|
372
|
-
};
|
|
373
|
-
'solana:signMessage': {
|
|
374
|
-
version: '1.1.0';
|
|
375
|
-
signMessage: (...inputs: readonly SolanaStandardSignMessageInput[]) => Promise<readonly SolanaStandardSignMessageOutput[]>;
|
|
376
|
-
};
|
|
377
|
-
'solana:signTransaction': {
|
|
378
|
-
version: '1.0.0';
|
|
379
|
-
supportedTransactionVersions: readonly ('legacy' | 0)[];
|
|
380
|
-
signTransaction: (...inputs: readonly SolanaStandardSignTransactionInput[]) => Promise<readonly SolanaStandardSignTransactionOutput[]>;
|
|
381
|
-
};
|
|
382
|
-
'solana:signAndSendTransaction': {
|
|
383
|
-
version: '1.0.0';
|
|
384
|
-
supportedTransactionVersions: readonly ('legacy' | 0)[];
|
|
385
|
-
signAndSendTransaction: (...inputs: readonly SolanaStandardSignAndSendTransactionInput[]) => Promise<readonly SolanaStandardSignAndSendTransactionOutput[]>;
|
|
386
|
-
};
|
|
387
|
-
};
|
|
388
|
-
/** Solana Wallet Standard's variadic message-signing input. */
|
|
389
|
-
interface SolanaStandardSignMessageInput {
|
|
390
|
-
account: SolanaAccount;
|
|
391
|
-
message: Uint8Array;
|
|
392
|
-
}
|
|
393
|
-
interface SolanaStandardSignMessageOutput {
|
|
394
|
-
signedMessage: Uint8Array;
|
|
395
|
-
signature: Uint8Array;
|
|
396
|
-
signatureType?: 'ed25519';
|
|
397
|
-
}
|
|
398
|
-
/** Solana Wallet Standard's serialized-transaction signing input. */
|
|
399
|
-
interface SolanaStandardSignTransactionInput {
|
|
400
|
-
account: SolanaAccount;
|
|
401
|
-
transaction: Uint8Array;
|
|
402
|
-
chain?: SolanaChain;
|
|
403
|
-
options?: {
|
|
404
|
-
preflightCommitment?: 'processed' | 'confirmed' | 'finalized';
|
|
405
|
-
minContextSlot?: number;
|
|
406
|
-
};
|
|
407
|
-
}
|
|
408
|
-
interface SolanaStandardSignTransactionOutput {
|
|
409
|
-
signedTransaction: Uint8Array;
|
|
410
|
-
}
|
|
411
|
-
interface SolanaStandardSignAndSendTransactionInput extends SolanaStandardSignTransactionInput {
|
|
412
|
-
chain: SolanaChain;
|
|
413
|
-
options?: SolanaStandardSignTransactionInput['options'] & {
|
|
414
|
-
commitment?: 'processed' | 'confirmed' | 'finalized';
|
|
415
|
-
skipPreflight?: boolean;
|
|
416
|
-
maxRetries?: number;
|
|
417
|
-
};
|
|
418
|
-
}
|
|
419
|
-
interface SolanaStandardSignAndSendTransactionOutput {
|
|
420
|
-
signature: Uint8Array;
|
|
421
|
-
}
|
|
422
|
-
interface SolanaConnectInput {
|
|
423
|
-
/** Silent (non-interactive) reconnect. */
|
|
424
|
-
silent?: boolean;
|
|
425
|
-
signal?: AbortSignal;
|
|
426
|
-
timeoutMs?: number;
|
|
427
|
-
}
|
|
428
|
-
interface SolanaConnectOutput {
|
|
429
|
-
accounts: readonly SolanaAccount[];
|
|
430
|
-
}
|
|
431
|
-
interface SolanaSignMessageInput {
|
|
432
|
-
message: Uint8Array;
|
|
433
|
-
account: SolanaAccount;
|
|
434
|
-
signal?: AbortSignal;
|
|
435
|
-
timeoutMs?: number;
|
|
436
|
-
}
|
|
437
|
-
interface SolanaSignMessageOutput {
|
|
438
|
-
/** The message that was signed. */
|
|
439
|
-
signedMessage: Uint8Array;
|
|
440
|
-
/** The 64-byte ed25519 signature. */
|
|
441
|
-
signature: Uint8Array;
|
|
442
|
-
}
|
|
443
|
-
interface SolanaSignTransactionInput {
|
|
444
|
-
/** A serialized VersionedTransaction (bytes) or a `@solana/web3.js` tx object. */
|
|
445
|
-
transaction: Uint8Array | {
|
|
446
|
-
serialize(): Uint8Array;
|
|
447
|
-
};
|
|
448
|
-
account: SolanaAccount;
|
|
449
|
-
chain?: SolanaChain;
|
|
450
|
-
signal?: AbortSignal;
|
|
451
|
-
timeoutMs?: number;
|
|
452
|
-
/** Use a matching permission token when the wallet has one. */
|
|
453
|
-
withPT?: boolean;
|
|
454
|
-
}
|
|
455
|
-
interface SolanaSignTransactionOutput {
|
|
456
|
-
/** The signed, serialized transaction bytes. */
|
|
457
|
-
signedTransaction: Uint8Array;
|
|
458
|
-
/** The 64-byte ed25519 signature. */
|
|
459
|
-
signature: Uint8Array;
|
|
460
|
-
}
|
|
461
|
-
interface SolanaSignAndSendTransactionInput extends SolanaSignTransactionInput {
|
|
462
|
-
options?: {
|
|
463
|
-
skipPreflight?: boolean;
|
|
464
|
-
maxRetries?: number;
|
|
465
|
-
};
|
|
466
|
-
}
|
|
467
|
-
interface SolanaSignAndSendTransactionOutput {
|
|
468
|
-
/** base58 transaction signature (the on-chain txid). */
|
|
469
|
-
signature: string;
|
|
470
|
-
}
|
|
471
|
-
type SolanaWalletEventListener = (properties: {
|
|
472
|
-
chains?: readonly SolanaChain[];
|
|
473
|
-
features?: WaaPSolanaWalletFeatures;
|
|
474
|
-
accounts?: readonly SolanaAccount[];
|
|
475
|
-
}) => void;
|
|
476
|
-
interface InitWaaPSolanaOptions extends WaaPWalletTargetOptions {
|
|
477
|
-
referralCode?: string;
|
|
478
|
-
project?: ProjectConfig;
|
|
479
|
-
config?: CustomConfig;
|
|
480
|
-
/**
|
|
481
|
-
* Defer iframe navigation until `preload()` or the first wallet operation.
|
|
482
|
-
* The default warms the iframe at browser idle; pass `false` to mount eagerly.
|
|
483
|
-
*/
|
|
484
|
-
deferIframe?: boolean;
|
|
485
|
-
}
|
|
486
|
-
interface WaaPSolanaProviderInterface {
|
|
487
|
-
readonly name: string;
|
|
488
|
-
readonly version: string;
|
|
489
|
-
/** Wallet Standard icon data URI. */
|
|
490
|
-
readonly icon: `data:image/${'svg+xml' | 'webp' | 'png' | 'gif'};base64,${string}`;
|
|
491
|
-
readonly chains: readonly SolanaChain[];
|
|
492
|
-
readonly accounts: readonly SolanaAccount[];
|
|
493
|
-
/** Wallet Standard capabilities exposed by this Solana facade. */
|
|
494
|
-
readonly features: WaaPSolanaWalletFeatures;
|
|
495
|
-
/** Public-safe local connection status for this facade. */
|
|
496
|
-
getAccountStatus(): WaaPAccountStatus;
|
|
497
|
-
session: WaaPSessionExtension;
|
|
498
|
-
/** Open the WaaP login flow without connecting this chain facade. */
|
|
499
|
-
login(): Promise<LoginResponse>;
|
|
500
|
-
/** End the WaaP session without implying a chain disconnect is a logout. */
|
|
501
|
-
logout(): Promise<void>;
|
|
502
|
-
getLoginMethod(): LoginResponse;
|
|
503
|
-
connect(input?: SolanaConnectInput): Promise<SolanaConnectOutput>;
|
|
504
|
-
disconnect(): Promise<void>;
|
|
505
|
-
/** Release SDK message listeners owned by this Solana facade. */
|
|
506
|
-
destroy(): void;
|
|
507
|
-
/** Mount (if deferred) and complete the wallet handshake ahead of use. */
|
|
508
|
-
preload(): Promise<void>;
|
|
509
|
-
signMessage(input: SolanaSignMessageInput): Promise<SolanaSignMessageOutput>;
|
|
510
|
-
signTransaction(input: SolanaSignTransactionInput): Promise<SolanaSignTransactionOutput>;
|
|
511
|
-
signAndSendTransaction(input: SolanaSignAndSendTransactionInput): Promise<SolanaSignAndSendTransactionOutput>;
|
|
512
|
-
requestPermissionToken(params: RequestPermissionTokenParams): Promise<RequestPermissionTokenResult>;
|
|
513
|
-
getPermissionTokenStatus(query: PermissionTokenQuery): Promise<PermissionTokenStatus>;
|
|
514
|
-
clearPermissionToken(query: PermissionTokenQuery): Promise<PermissionTokenClearResult>;
|
|
515
|
-
/**
|
|
516
|
-
* Subscribe to wallet events. Supports `change` plus EVM-style `connect` /
|
|
517
|
-
* `accountsChanged` (so cross-chain hooks like `useWaapAuth` can subscribe to
|
|
518
|
-
* any facade uniformly).
|
|
519
|
-
* @returns Unsubscribe function
|
|
520
|
-
*/
|
|
521
|
-
on(event: 'change', listener: SolanaWalletEventListener): () => void;
|
|
522
|
-
on(event: string, listener: (...args: any[]) => void): () => void;
|
|
523
|
-
/** Remove a `connect` / `accountsChanged` listener. */
|
|
524
|
-
removeListener(event: string, listener: (...args: any[]) => void): void;
|
|
525
|
-
}
|
|
526
|
-
//#endregion
|
|
527
347
|
//#region src/ui/index.d.ts
|
|
528
348
|
/** Chain selected by a direct WaaP initializer. */
|
|
529
|
-
type WaaPChain = 'evm' | 'sui' | 'solana';
|
|
349
|
+
type WaaPChain = 'evm' | 'sui' | 'solana' | 'stellar';
|
|
530
350
|
/**
|
|
531
351
|
* Options for the direct WaaP initializers.
|
|
532
352
|
*
|
|
@@ -553,23 +373,31 @@ type LegacyInitWaaPSuiOptions = Omit<InitWaaPOptions, 'chain' | 'config'> & {
|
|
|
553
373
|
chain: 'sui';
|
|
554
374
|
config?: InitWaaPSuiOptions['config'];
|
|
555
375
|
};
|
|
556
|
-
type LegacyInitWaaPSolanaOptions = InitWaaPOptions & {
|
|
376
|
+
type LegacyInitWaaPSolanaOptions = InitWaaPOptions & Pick<InitWaaPSolanaOptions, 'defaultChain'> & {
|
|
557
377
|
chain: 'solana';
|
|
558
378
|
};
|
|
379
|
+
type LegacyInitWaaPStellarOptions = Omit<InitWaaPOptions, 'chain'> & {
|
|
380
|
+
chain: 'stellar';
|
|
381
|
+
/** Defaults to pubnet; testnet is opt-in. */
|
|
382
|
+
network?: InitWaaPStellarOptions['network'];
|
|
383
|
+
};
|
|
559
384
|
/**
|
|
560
385
|
* Initialize the TAP wallet.
|
|
561
386
|
*
|
|
562
387
|
* Existing `initWaaP(options)` calls retain their EVM provider behavior. Use
|
|
563
388
|
* `chain: 'sui'` or `chain: 'solana'` to select a direct Wallet Standard
|
|
564
|
-
* facade
|
|
389
|
+
* facade, or `chain: 'stellar'` for the SEP-43 module interface — Stellar has
|
|
390
|
+
* no Wallet Standard registration because SEP-43 is not one. Use
|
|
391
|
+
* `initWaaPMulti({ chains })` for a shared multichain wallet.
|
|
565
392
|
*/
|
|
566
393
|
declare function initWaaP(options?: LegacyInitWaaPEvmOptions): SilkEthereumProviderInterface;
|
|
567
394
|
declare function initWaaP(options: LegacyInitWaaPSuiOptions): WaaPSuiWalletInterface;
|
|
568
395
|
declare function initWaaP(options: LegacyInitWaaPSolanaOptions): WaaPSolanaProviderInterface;
|
|
396
|
+
declare function initWaaP(options: LegacyInitWaaPStellarOptions): WaaPStellarProviderInterface;
|
|
569
397
|
/** Accepts a runtime-selected chain when callers cannot preserve a literal. */
|
|
570
398
|
declare function initWaaP(options: InitWaaPOptions & {
|
|
571
399
|
chain?: WaaPChain;
|
|
572
|
-
}): SilkEthereumProviderInterface | WaaPSuiWalletInterface | WaaPSolanaProviderInterface;
|
|
400
|
+
}): SilkEthereumProviderInterface | WaaPSuiWalletInterface | WaaPSolanaProviderInterface | WaaPStellarProviderInterface;
|
|
573
401
|
/**
|
|
574
402
|
* Options for the multichain `initWaaPSquid` entry point.
|
|
575
403
|
*
|
|
@@ -617,9 +445,18 @@ interface WaaPSquidStatus {
|
|
|
617
445
|
* surface, while `initWaaP({ chain: 'sui' })` remains the best choice for a
|
|
618
446
|
* single-chain integration.
|
|
619
447
|
*/
|
|
448
|
+
/**
|
|
449
|
+
* Chains the multichain initializer can share one iframe between.
|
|
450
|
+
*
|
|
451
|
+
* Stellar is deliberately absent. It has no Squid account — the shared dWallet
|
|
452
|
+
* has no funded Stellar account to send from — so a facade here would be one
|
|
453
|
+
* the multichain surface cannot actually complete an operation on. Reach it
|
|
454
|
+
* with `initWaaP({ chain: 'stellar' })`, which is TAP-only by construction.
|
|
455
|
+
*/
|
|
456
|
+
type WaaPMultiChain = WaaPSquidChain;
|
|
620
457
|
interface InitWaaPMultiOptions extends InitWaaPOptions {
|
|
621
458
|
/** Chain facades to expose from one shared wallet iframe. */
|
|
622
|
-
chains: readonly
|
|
459
|
+
chains: readonly WaaPMultiChain[];
|
|
623
460
|
}
|
|
624
461
|
/** @deprecated Use `InitWaaPMultiOptions`. */
|
|
625
462
|
type InitWaaPTapOptions = InitWaaPMultiOptions;
|
|
@@ -660,7 +497,7 @@ interface WaaPTapSession extends WaaPSessionExtension {
|
|
|
660
497
|
* the session consumed by EVM, Sui, and Solana. TAP does not have a separate
|
|
661
498
|
* provisioning step; connect and sign through the requested native facade.
|
|
662
499
|
*/
|
|
663
|
-
type WaaPTap<Chains extends readonly
|
|
500
|
+
type WaaPTap<Chains extends readonly WaaPMultiChain[] = typeof ALL_TAP_CHAINS> = {
|
|
664
501
|
/** Combined public-safe local status for the shared TAP initializer. */
|
|
665
502
|
getAccountStatus: () => WaaPAccountStatus;
|
|
666
503
|
/** Shared canonical authentication, status, and lifecycle event surface. */
|
|
@@ -766,7 +603,7 @@ declare function initWaaPSquid<const Chains extends readonly [WaaPSquidChain, ..
|
|
|
766
603
|
* const { accounts } = await waap.sui.connect()
|
|
767
604
|
* ```
|
|
768
605
|
*/
|
|
769
|
-
declare function initWaaPMulti<const Chains extends readonly
|
|
606
|
+
declare function initWaaPMulti<const Chains extends readonly WaaPMultiChain[]>(options: InitWaaPMultiOptions & {
|
|
770
607
|
chains: Chains;
|
|
771
608
|
}): WaaPTap<Chains>;
|
|
772
609
|
/**
|
|
@@ -783,9 +620,9 @@ declare function initWaaPSui(options?: InitWaaPSuiOptions): WaaPSuiWalletInterfa
|
|
|
783
620
|
*/
|
|
784
621
|
declare function initWaaPSolana(options?: InitWaaPSolanaOptions): WaaPSolanaProviderInterface;
|
|
785
622
|
/** @deprecated Use `initWaaPMulti({ chains })` instead. */
|
|
786
|
-
declare function initWaaPTap<const Chains extends readonly
|
|
623
|
+
declare function initWaaPTap<const Chains extends readonly WaaPMultiChain[]>(options: InitWaaPTapOptions & {
|
|
787
624
|
chains: Chains;
|
|
788
625
|
}): WaaPTap<Chains>;
|
|
789
626
|
declare function initWaaPTap(options?: Partial<InitWaaPTapOptions>): WaaPTap;
|
|
790
627
|
//#endregion
|
|
791
|
-
export {
|
|
628
|
+
export { SuiSignPersonalMessageInput as A, WalletIcon as B, SuiChain as C, SuiSignAndExecuteTransactionBlockOutput as D, SuiSignAndExecuteTransactionBlockInput as E, SuiSignTransactionOutput as F, SuiTransactionInput as I, SuiWalletEventListener as L, SuiSignTransactionBlockInput as M, SuiSignTransactionBlockOutput as N, SuiSignAndExecuteTransactionInput as O, SuiSignTransactionInput as P, WaaPSuiWalletFeatures as R, SuiAccount as S, SuiConnectOutput as T, initWaaPSolana as _, WaaPChain as a, initWaaPTap as b, WaaPSquidChain as c, WaaPSquidStatus as d, WaaPSquidStatusState as f, initWaaPMulti as g, initWaaP as h, InitWaaPTapOptions as i, SuiSignPersonalMessageOutput as j, SuiSignAndExecuteTransactionOutput as k, WaaPSquidLifecycle as l, WaaPTapSession as m, InitWaaPOptions as n, WaaPMultiChain as o, WaaPTap as p, InitWaaPSquidOptions as r, WaaPSquid as s, InitWaaPMultiOptions as t, WaaPSquidSession as u, initWaaPSquid as v, SuiConnectInput as w, InitWaaPSuiOptions as x, initWaaPSui as y, WaaPSuiWalletInterface as z };
|