@supanovaapp/sdk 0.2.36 → 0.2.37
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/core/types.d.ts +2 -0
- package/dist/hooks/signing/signingHelpers.d.ts +7 -0
- package/dist/hooks/useSignRawHashWithModal.d.ts +1 -1
- package/dist/index.cjs.js +369 -369
- package/dist/index.esm.js +20442 -20333
- package/dist/providers/CantonProvider.d.ts +2 -83
- package/dist/providers/canton/signingWalletResolver.d.ts +16 -0
- package/dist/providers/canton/types.d.ts +83 -0
- package/package.json +1 -1
package/dist/core/types.d.ts
CHANGED
|
@@ -68,6 +68,8 @@ export interface CantonMeResponseDto {
|
|
|
68
68
|
partyId: string;
|
|
69
69
|
/** User email (can be null if not set) */
|
|
70
70
|
email: string | null;
|
|
71
|
+
/** Public key used in Canton (base64, 32 bytes Ed25519) */
|
|
72
|
+
publicKey?: string | null;
|
|
71
73
|
/** Indicates whether the transfer preapproval is set and NOT EXPIRED for the party */
|
|
72
74
|
transferPreapprovalSet: boolean;
|
|
73
75
|
/** Transfer preapproval expiration date (ISO 8601, can be null) */
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared helpers for hash-signing flows.
|
|
3
|
+
*/
|
|
4
|
+
export type SigningChainType = 'stellar' | 'solana';
|
|
5
|
+
export declare const resolveRequestedChainType: (chainType: string, withExportFallback: boolean) => SigningChainType;
|
|
6
|
+
export declare const hexToBytes: (hex: string) => Uint8Array;
|
|
7
|
+
export declare const bytesToHex: (bytes: Uint8Array) => string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Wrapper over Privy's signing with automatic confirmation modals
|
|
3
3
|
*
|
|
4
4
|
* Shows a confirmation modal before every signing operation
|
|
5
|
-
* Supports both Stellar (rawSign) and Solana (signMessage) based on
|
|
5
|
+
* Supports both Stellar (rawSign) and Solana (signMessage) based on requested chainType
|
|
6
6
|
*/
|
|
7
7
|
export interface SignRawHashModalOptions {
|
|
8
8
|
skipModal?: boolean;
|