superstack-wallet-sdk 0.4.12 → 0.5.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/dist/esm/src/client.js +1 -1
- package/dist/esm/src/client.js.map +1 -1
- package/dist/esm/src/index.js +1 -1
- package/dist/esm/src/index.js.map +1 -1
- package/dist/esm/src/storage.js +1 -1
- package/dist/esm/src/storage.js.map +1 -1
- package/dist/esm/src/types.js +1 -1
- package/dist/esm/src/types.js.map +1 -1
- package/dist/esm/types/client.d.ts +2 -2
- package/dist/esm/types/storage.d.ts +3 -0
- package/dist/esm/types/types.d.ts +1 -0
- package/dist/index.cjs +123 -123
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +7 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -150,6 +150,7 @@ declare enum VaultId {
|
|
|
150
150
|
HyperbeatUltraUbtc = "HyperbeatUltraUbtc",
|
|
151
151
|
HyperbeatUsdt = "HyperbeatUsdt",
|
|
152
152
|
HyperbeatUsdc = "HyperbeatUsdc",
|
|
153
|
+
HyperbeatXaut = "HyperbeatXaut",
|
|
153
154
|
VentualsVlp = "VentualsVlp",
|
|
154
155
|
DnHype = "DnHype",
|
|
155
156
|
DnPump = "DnPump"
|
|
@@ -291,11 +292,11 @@ declare class WalletClient {
|
|
|
291
292
|
sendEthereumTransaction(signedTransaction: string): Promise<string>;
|
|
292
293
|
sendEmailVerificationCode(email: string): Promise<void>;
|
|
293
294
|
sendPhoneVerificationCode(phone: string): Promise<void>;
|
|
294
|
-
verifyEmailVerificationCode({ email, code
|
|
295
|
+
verifyEmailVerificationCode({ email, code }: {
|
|
295
296
|
email: string;
|
|
296
297
|
code: string;
|
|
297
298
|
}): Promise<WalletInfo | null>;
|
|
298
|
-
verifyPhoneVerificationCode({ phone, code
|
|
299
|
+
verifyPhoneVerificationCode({ phone, code }: {
|
|
299
300
|
phone: string;
|
|
300
301
|
code: string;
|
|
301
302
|
}): Promise<WalletInfo | null>;
|
|
@@ -486,6 +487,7 @@ declare function useLoginModal({ client, isOpen, onClose, onLogin, isLoading, }:
|
|
|
486
487
|
declare const STORAGE_STATE_KEY = "embedded_wallet_state";
|
|
487
488
|
declare const WALLET_TYPE_KEY = "superstack_wallet_type";
|
|
488
489
|
declare const ACCESS_TOKEN_KEY = "embedded_wallet_access_token";
|
|
490
|
+
declare const SWITCHED_ACCOUNT_ADDRESS = "switched_account_address";
|
|
489
491
|
interface StorageState {
|
|
490
492
|
accessToken: string;
|
|
491
493
|
socials: Social[];
|
|
@@ -495,10 +497,12 @@ declare class Storage {
|
|
|
495
497
|
static saveState(token: string, socials: Social[]): void;
|
|
496
498
|
static saveAccessToken(token: string): void;
|
|
497
499
|
static saveWalletType(type: "phantom" | "embedded"): void;
|
|
500
|
+
static saveSwitchedAccountAddress(address: string): void;
|
|
498
501
|
static getWalletType(): "phantom" | "embedded" | null;
|
|
499
502
|
static getState(): StorageState | null;
|
|
500
503
|
static getSocials(): Social[] | null;
|
|
501
504
|
static getAccessToken(): string | null;
|
|
505
|
+
static getSwitchedAccountAddress(): string | null;
|
|
502
506
|
static clear(): void;
|
|
503
507
|
}
|
|
504
508
|
|
|
@@ -611,5 +615,5 @@ declare function useCoinbaseOnramp(): {
|
|
|
611
615
|
getCoinbaseOnrampUrl: (amount: number, blockchain?: "solana" | "ethereum", redirectUrl?: string) => Promise<string>;
|
|
612
616
|
};
|
|
613
617
|
|
|
614
|
-
export { ACCESS_TOKEN_KEY, Network, STORAGE_STATE_KEY, SocialType, Storage, VaultId, WALLET_TYPE_KEY, WalletClient, WalletProvider, WalletType, injectStyles, isVersionedTransaction, theme, useActiveWallet, useCoinbaseOnramp, useConnect, useLoginModal, useWallet, useWalletStatus };
|
|
618
|
+
export { ACCESS_TOKEN_KEY, Network, STORAGE_STATE_KEY, SWITCHED_ACCOUNT_ADDRESS, SocialType, Storage, VaultId, WALLET_TYPE_KEY, WalletClient, WalletProvider, WalletType, injectStyles, isVersionedTransaction, theme, useActiveWallet, useCoinbaseOnramp, useConnect, useLoginModal, useWallet, useWalletStatus };
|
|
615
619
|
export type { AccountInfo, ApiResponse, BuildTransactionRequest, BuildTransactionResponse, CoinbaseOnrampRequest, IModalManager, LoginModalProps, LoginType, MiddleAccount, MiddleAccountRequest, OrderState, SignMessageResponse, SignRequestV1, SignRequestV2, SignTransactionResponse, SignTransactionReturnType, Social, SocialInfo, SupportedTransactionVersions, TransactionOrVersionedTransaction, TransferRequest, UnsignedTx, UserSession, Wallet, WalletInfo, WalletProviderConfig };
|