superstack-wallet-sdk 0.5.4 → 0.5.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.d.ts CHANGED
@@ -669,6 +669,7 @@ declare const WALLET_TYPE_KEY = "superstack_wallet_type";
669
669
  declare const BACKUP_WALLET_TYPE_KEY = "superstack_backup_wallet_type";
670
670
  declare const ACCESS_TOKEN_KEY = "embedded_wallet_access_token";
671
671
  declare const SWITCHED_ACCOUNT_ADDRESS = "switched_account_address";
672
+ declare const BACKUP_WALLET_INFO = "backup_wallet_info";
672
673
  interface StorageState {
673
674
  accessToken: string;
674
675
  socials: Social[];
@@ -680,12 +681,14 @@ declare class Storage {
680
681
  static saveWalletType(type: "phantom" | "embedded"): void;
681
682
  static saveBackupWalletType(type: "phantom_backup" | "embedded_backup"): void;
682
683
  static saveSwitchedAccountAddress(address: string): void;
684
+ static saveBackupWalletInfo(wallet: WalletInfo): void;
683
685
  static getWalletType(): "phantom" | "embedded" | null;
684
686
  static getBackupWalletType(): "phantom_backup" | "embedded_backup" | null;
685
687
  static getState(): StorageState | null;
686
688
  static getSocials(): Social[] | null;
687
689
  static getAccessToken(): string | null;
688
690
  static getSwitchedAccountAddress(): string | null;
691
+ static getBackupWalletInfo(): WalletInfo | null;
689
692
  static clear(): void;
690
693
  static clearBackup(): void;
691
694
  }
@@ -799,5 +802,5 @@ declare function useCoinbaseOnramp(): {
799
802
  getCoinbaseOnrampUrl: (amount: number, blockchain?: "solana" | "ethereum", redirectUrl?: string) => Promise<string>;
800
803
  };
801
804
 
802
- export { ACCESS_TOKEN_KEY, BACKUP_WALLET_TYPE_KEY, BorrowedAsset, CollateralAsset, CrossMarginOperationType, CrossMarginPositionStatus, Network, STORAGE_STATE_KEY, SWITCHED_ACCOUNT_ADDRESS, SocialType, Storage, VaultId, WALLET_TYPE_KEY, WalletClient, WalletProvider, WalletProviderBackup, WalletType, injectStyles, isVersionedTransaction, theme, useActiveWallet, useCoinbaseOnramp, useConnect, useLoginModal, useWallet, useWalletBackup, useWalletBackupStatus, useWalletStatus };
805
+ export { ACCESS_TOKEN_KEY, BACKUP_WALLET_INFO, BACKUP_WALLET_TYPE_KEY, BorrowedAsset, CollateralAsset, CrossMarginOperationType, CrossMarginPositionStatus, Network, STORAGE_STATE_KEY, SWITCHED_ACCOUNT_ADDRESS, SocialType, Storage, VaultId, WALLET_TYPE_KEY, WalletClient, WalletProvider, WalletProviderBackup, WalletType, injectStyles, isVersionedTransaction, theme, useActiveWallet, useCoinbaseOnramp, useConnect, useLoginModal, useWallet, useWalletBackup, useWalletBackupStatus, useWalletStatus };
803
806
  export type { AccountInfo, ApiResponse, BigDecimalString, BorrowedAssetGeneralInfo, BuildTransactionRequest, BuildTransactionResponse, CoinbaseOnrampRequest, CollateralAssetGeneralInfo, CollateralAssetInfo, CrossMarginAdjustMarginRequest, CrossMarginAdjustMarginResponse, CrossMarginBorrowQuoteRequest, CrossMarginBorrowQuoteResponse, CrossMarginBorrowRequest, CrossMarginBorrowResponse, CrossMarginGeneralInfoResponse, CrossMarginRepayQuoteRequest, CrossMarginRepayQuoteResponse, CrossMarginRepayRequest, CrossMarginRepayResponse, IModalManager, LoginModalProps, LoginType, MiddleAccount, MiddleAccountRequest, OrderState, SignMessageResponse, SignRequestV1, SignRequestV2, SignTransactionResponse, SignTransactionReturnType, Social, SocialInfo, SupportedTransactionVersions, TransactionOrVersionedTransaction, TransferRequest, UnsignedTx, UserClosedPositionInfo, UserHistoryResponse, UserOpenPositionInfo, UserOpenPositionsResponse, UserOperationInfo, UserSession, Wallet, WalletInfo, WalletProviderConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "superstack-wallet-sdk",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "A wallet SDK for superstack",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -93,5 +93,6 @@
93
93
  "ts-jest": "^29.1.2",
94
94
  "tslib": "^2.6.2",
95
95
  "typescript": "^5.3.3"
96
- }
96
+ },
97
+ "packageManager": "pnpm@10.16.0+sha512.8066e7b034217b700a9a4dbb3a005061d641ba130a89915213a10b3ca4919c19c037bec8066afdc559b89635fdb806b16ea673f2468fbb28aabfa13c53e3f769"
97
98
  }