@dynamic-labs-wallet/tempo 0.0.319 → 0.0.320

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.
Files changed (31) hide show
  1. package/package.json +2 -2
  2. package/src/client/client.d.ts +0 -171
  3. package/src/client/client.d.ts.map +0 -1
  4. package/src/client/index.d.ts +0 -3
  5. package/src/client/index.d.ts.map +0 -1
  6. package/src/index.d.ts +0 -4
  7. package/src/index.d.ts.map +0 -1
  8. package/src/types.d.ts +0 -48
  9. package/src/types.d.ts.map +0 -1
  10. package/src/utils/formatTempoMessage/formatTempoMessage.d.ts +0 -9
  11. package/src/utils/formatTempoMessage/formatTempoMessage.d.ts.map +0 -1
  12. package/src/utils/formatTempoMessage/index.d.ts +0 -2
  13. package/src/utils/formatTempoMessage/index.d.ts.map +0 -1
  14. package/src/utils/formatTypedData/formatTypedData.d.ts +0 -8
  15. package/src/utils/formatTypedData/formatTypedData.d.ts.map +0 -1
  16. package/src/utils/formatTypedData/index.d.ts +0 -2
  17. package/src/utils/formatTypedData/index.d.ts.map +0 -1
  18. package/src/utils/index.d.ts +0 -6
  19. package/src/utils/index.d.ts.map +0 -1
  20. package/src/utils/mapTempoTransactionToContext/index.d.ts +0 -2
  21. package/src/utils/mapTempoTransactionToContext/index.d.ts.map +0 -1
  22. package/src/utils/mapTempoTransactionToContext/mapTempoTransactionToContext.d.ts +0 -19
  23. package/src/utils/mapTempoTransactionToContext/mapTempoTransactionToContext.d.ts.map +0 -1
  24. package/src/utils/parseTempoTransaction/index.d.ts +0 -2
  25. package/src/utils/parseTempoTransaction/index.d.ts.map +0 -1
  26. package/src/utils/parseTempoTransaction/parseTempoTransaction.d.ts +0 -12
  27. package/src/utils/parseTempoTransaction/parseTempoTransaction.d.ts.map +0 -1
  28. package/src/utils/serializeECDSASignature/index.d.ts +0 -2
  29. package/src/utils/serializeECDSASignature/index.d.ts.map +0 -1
  30. package/src/utils/serializeECDSASignature/serializeECDSASignature.d.ts +0 -6
  31. package/src/utils/serializeECDSASignature/serializeECDSASignature.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@dynamic-labs-wallet/tempo",
3
- "version": "0.0.319",
3
+ "version": "0.0.320",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "dependencies": {
7
- "@dynamic-labs-wallet/browser": "0.0.319",
7
+ "@dynamic-labs-wallet/browser": "0.0.320",
8
8
  "@dynamic-labs/sdk-api-core": "^0.0.900"
9
9
  },
10
10
  "peerDependencies": {
@@ -1,171 +0,0 @@
1
- import { DynamicWalletClient, type DynamicWalletClientInternalOptions, type DynamicWalletClientProps, type EcdsaKeygenResult, type EcdsaPublicKey, type Ed25519KeygenResult, type ThresholdSignatureScheme, type TraceContext, type RequestWithElevatedAccessToken } from '@dynamic-labs-wallet/browser';
2
- import type { SignMessageContext } from '@dynamic-labs/sdk-api-core';
3
- import { type Chain, type PublicClient, type SignableMessage, type TypedData } from 'viem';
4
- import { Transaction as TempoTransaction } from 'viem/tempo';
5
- import type { TempoSignMessageContext } from '../types.js';
6
- /**
7
- * Tempo transaction type from viem/tempo.
8
- * Uses the viem/tempo Transaction namespace types.
9
- */
10
- export type TempoTransactionSerializable = Parameters<typeof TempoTransaction.serialize>[0];
11
- /**
12
- * Tempo wallet client for Tempo blockchain integration.
13
- *
14
- * Tempo is EVM-compatible but has unique characteristics:
15
- * - No native gas token (fees paid in stablecoins via fee_token)
16
- * - eth_getBalance returns a fake large value by design
17
- * - Transactions use batched calls format with validAfter/validBefore for expiring nonces
18
- *
19
- * Chain IDs:
20
- * - 4217: Tempo Mainnet
21
- * - 42429: Tempo Testnet
22
- * - 42431: Tempo Moderato (testnet)
23
- *
24
- * @see https://docs.tempo.xyz/evm-differences
25
- */
26
- export declare class DynamicTempoWalletClient extends DynamicWalletClient {
27
- readonly chainName = "TEMPO";
28
- constructor({ environmentId, authToken, backupServiceAuthToken, baseApiUrl, baseMPCRelayApiUrl, storageKey, debug, featureFlags, authMode, sdkVersion, forwardMPCClient, logger, }: DynamicWalletClientProps, internalOptions?: DynamicWalletClientInternalOptions);
29
- /**
30
- * Create a viem public client for Tempo chain.
31
- */
32
- createViemPublicClient({ chain, rpcUrl }: {
33
- chain: Chain;
34
- rpcUrl?: string;
35
- }): PublicClient;
36
- /**
37
- * Create a new Tempo wallet account using MPC key generation.
38
- */
39
- createWalletAccount({ thresholdSignatureScheme, password, onError, signedSessionId, traceContext, }: {
40
- thresholdSignatureScheme: ThresholdSignatureScheme;
41
- password?: string;
42
- onError?: (error: Error) => void;
43
- signedSessionId: string;
44
- traceContext?: TraceContext;
45
- }): Promise<{
46
- accountAddress: string;
47
- publicKeyHex: string;
48
- rawPublicKey: EcdsaPublicKey | Uint8Array | string | undefined;
49
- }>;
50
- /**
51
- * Sign a message using MPC.
52
- */
53
- signMessage({ message, accountAddress, password, signedSessionId, mfaToken, elevatedAccessToken, context, onError, traceContext, }: {
54
- message: string;
55
- accountAddress: string;
56
- password?: string;
57
- signedSessionId: string;
58
- mfaToken?: string;
59
- elevatedAccessToken?: string;
60
- context?: SignMessageContext;
61
- onError?: (error: Error) => void;
62
- traceContext?: TraceContext;
63
- }): Promise<`0x${string}`>;
64
- /**
65
- * Verify a message signature.
66
- */
67
- verifyMessageSignature({ accountAddress, message, signature, chain, rpcUrl, }: {
68
- accountAddress: string;
69
- message: SignableMessage;
70
- signature: `0x${string}`;
71
- chain: Chain;
72
- rpcUrl?: string;
73
- }): Promise<boolean>;
74
- /**
75
- * Sign a Tempo transaction using MPC.
76
- *
77
- * Tempo transactions use a batched calls format with additional fields:
78
- * - calls: Array of call operations (to, data, value)
79
- * - feeToken: TIP-20 token address used to pay gas
80
- * - validAfter/validBefore: Transaction validity window (expiring nonces)
81
- * - nonceKey: Nonce key for the transaction
82
- *
83
- * @param senderAddress - The address signing the transaction
84
- * @param transaction - Tempo transaction in TransactionSerializableTempo format
85
- * @param password - Optional wallet password
86
- * @param signedSessionId - Signed session ID for authentication
87
- * @param mfaToken - Optional MFA token
88
- * @param context - Optional signing context for policy validation
89
- * @param onError - Optional error callback
90
- * @param traceContext - Optional trace context for logging
91
- * @returns Serialized signed transaction
92
- */
93
- signTransaction({ senderAddress, transaction, password, signedSessionId, mfaToken, elevatedAccessToken, context, onError, traceContext, }: {
94
- senderAddress: string;
95
- transaction: TempoTransactionSerializable;
96
- password?: string;
97
- signedSessionId: string;
98
- mfaToken?: string;
99
- elevatedAccessToken?: string;
100
- context?: TempoSignMessageContext;
101
- onError?: (error: Error) => void;
102
- traceContext?: TraceContext;
103
- }): Promise<string>;
104
- /**
105
- * Sign typed data (EIP-712) using MPC.
106
- */
107
- signTypedData({ accountAddress, typedData, password, signedSessionId, mfaToken, onError, traceContext, }: {
108
- accountAddress: string;
109
- typedData: TypedData;
110
- password?: string;
111
- signedSessionId: string;
112
- mfaToken?: string;
113
- onError?: (error: Error) => void;
114
- traceContext?: TraceContext;
115
- }): Promise<`0x${string}`>;
116
- /**
117
- * Derive account address from ECDSA public key.
118
- * Uses the same address derivation as Ethereum (keccak256 of uncompressed public key).
119
- */
120
- deriveAccountAddress({ rawPublicKey }: {
121
- rawPublicKey: EcdsaPublicKey;
122
- }): {
123
- accountAddress: `0x${string}`;
124
- publicKeyHex: string;
125
- };
126
- /**
127
- * Export private key from MPC key shares.
128
- */
129
- exportPrivateKey({ accountAddress, password, signedSessionId, mfaToken, elevatedAccessToken, traceContext, }: RequestWithElevatedAccessToken<{
130
- accountAddress: string;
131
- password?: string;
132
- signedSessionId: string;
133
- mfaToken?: string;
134
- traceContext?: TraceContext;
135
- }>): Promise<string | undefined>;
136
- /**
137
- * Offline export of private key from key shares.
138
- */
139
- offlineExportPrivateKey({ keyShares, derivationPath, }: {
140
- keyShares: (EcdsaKeygenResult | Ed25519KeygenResult)[];
141
- derivationPath?: string;
142
- }): Promise<{
143
- derivedPrivateKey: string | undefined;
144
- }>;
145
- /**
146
- * Import an existing private key into MPC.
147
- */
148
- importPrivateKey({ privateKey, chainName, thresholdSignatureScheme, password, onError, signedSessionId, publicAddressCheck, legacyWalletId, }: {
149
- privateKey: string;
150
- chainName: string;
151
- thresholdSignatureScheme: ThresholdSignatureScheme;
152
- password?: string;
153
- onError?: (error: Error) => void;
154
- signedSessionId: string;
155
- publicAddressCheck?: string;
156
- legacyWalletId?: string;
157
- }): Promise<{
158
- accountAddress: string;
159
- publicKeyHex: string;
160
- rawPublicKey: EcdsaPublicKey | Uint8Array | string | undefined;
161
- }>;
162
- /**
163
- * Get all Tempo wallets.
164
- */
165
- getTempoWallets(): Promise<any>;
166
- /**
167
- * Check if the raw public key is a valid ECDSA public key instance.
168
- */
169
- private checkRawPublicKeyInstance;
170
- }
171
- //# sourceMappingURL=client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,mBAAmB,EAWnB,KAAK,kCAAkC,EACvC,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,cAAc,EAEnB,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EACjB,KAAK,8BAA8B,EACpC,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,kBAAkB,EAA2B,MAAM,4BAA4B,CAAC;AAC9F,OAAO,EAKL,KAAK,KAAK,EACV,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,SAAS,EACf,MAAM,MAAM,CAAC;AAEd,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAQ3D;;;GAGG;AACH,MAAM,MAAM,4BAA4B,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;AAE5F;;;;;;;;;;;;;;GAcG;AACH,qBAAa,wBAAyB,SAAQ,mB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AC;QACV,cAAc,EAAE,MAAM,CAAC;QACvB,YAAY,EAAE,MAAM,CAAC;QACrB,YAAY,EAAE,cAAc,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,CAAC;KAChE,CAAC;IA2EF;;OAEG;IACG,eAAe;IAMrB;;OAEG;IACH,OAAO,CAAC,yBAAyB;CAUlC"}
@@ -1,3 +0,0 @@
1
- export * from './client.js';
2
- export type { TempoTransactionSerializable } from './client.js';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,YAAY,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC"}
package/src/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export * from './client/index.js';
2
- export * from './types.js';
3
- export * from './utils/index.js';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC"}
package/src/types.d.ts DELETED
@@ -1,48 +0,0 @@
1
- import type { SignMessageContext } from '@dynamic-labs/sdk-api-core';
2
- /**
3
- * Tempo transaction context for policy validation.
4
- * These fields are sent to wallet-service for security validation.
5
- */
6
- export interface TempoTransactionContext {
7
- /** The RLP-serialized transaction hex string (with 0x76 type prefix) */
8
- serializedTransaction: string;
9
- /** The list of calls in the Tempo transaction batch */
10
- calls: TempoTransactionCall[];
11
- /** Fee token address (TIP-20 token used for gas) */
12
- feeToken?: string;
13
- /** Unix timestamp after which the transaction is valid */
14
- validAfter?: number;
15
- /** Unix timestamp before which the transaction is valid */
16
- validBefore?: number;
17
- /** The nonce key for the transaction */
18
- nonceKey?: string;
19
- /** Chain ID */
20
- chainId: number;
21
- }
22
- /**
23
- * Individual call within a Tempo transaction batch.
24
- */
25
- export interface TempoTransactionCall {
26
- /** Target contract address */
27
- to: string;
28
- /** Call data (encoded function call) */
29
- data?: string;
30
- /** Value to send (in wei) */
31
- value?: string;
32
- }
33
- /**
34
- * Sign message context that includes Tempo transaction data.
35
- */
36
- export interface TempoSignMessageContext extends SignMessageContext {
37
- tempoTransaction?: TempoTransactionContext;
38
- }
39
- /**
40
- * Tempo chain IDs
41
- */
42
- export declare const TEMPO_CHAIN_IDS: {
43
- readonly MAINNET: 4217;
44
- readonly TESTNET: 42429;
45
- readonly MODERATO: 42431;
46
- };
47
- export type TempoChainId = (typeof TEMPO_CHAIN_IDS)[keyof typeof TEMPO_CHAIN_IDS];
48
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../packages/src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,wEAAwE;IACxE,qBAAqB,EAAE,MAAM,CAAC;IAC9B,uDAAuD;IACvD,KAAK,EAAE,oBAAoB,EAAE,CAAC;IAC9B,oDAAoD;IACpD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0DAA0D;IAC1D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wCAAwC;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe;IACf,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,8BAA8B;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,wCAAwC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,kBAAkB;IACjE,gBAAgB,CAAC,EAAE,uBAAuB,CAAC;CAC5C;AAED;;GAEG;AACH,eAAO,MAAM,eAAe;;;;CAIlB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC"}
@@ -1,9 +0,0 @@
1
- import type { ILogger } from '@dynamic-labs-wallet/browser';
2
- /**
3
- * Format a message for Tempo signing (EIP-191 compatible).
4
- * Tempo uses the same signing format as EVM.
5
- */
6
- export declare const formatTempoMessage: (message_: string | {
7
- raw: string | Uint8Array;
8
- }, logger: ILogger) => `0x${string}`;
9
- //# sourceMappingURL=formatTempoMessage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatTempoMessage.d.ts","sourceRoot":"","sources":["../../../src/utils/formatTempoMessage/formatTempoMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAK5D;;;GAGG;AACH,eAAO,MAAM,kBAAkB,aAAc,MAAM,GAAG;IAAE,GAAG,EAAE,MAAM,GAAG,UAAU,CAAA;CAAE,UAAU,OAAO,kBAalG,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './formatTempoMessage.js';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/formatTempoMessage/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
@@ -1,8 +0,0 @@
1
- import type { TypedData } from 'viem';
2
- /**
3
- * Format typed data for Tempo signing.
4
- */
5
- export declare const formatTypedData: (typedData: TypedData | {
6
- [key: string]: unknown;
7
- }) => string;
8
- //# sourceMappingURL=formatTypedData.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatTypedData.d.ts","sourceRoot":"","sources":["../../../src/utils/formatTypedData/formatTypedData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA2B,SAAS,EAAE,MAAM,MAAM,CAAC;AAG/D;;GAEG;AACH,eAAO,MAAM,eAAe,cAAe,SAAS,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,WAEhF,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './formatTypedData.js';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/formatTypedData/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
@@ -1,6 +0,0 @@
1
- export * from './formatTempoMessage/index.js';
2
- export * from './formatTypedData/index.js';
3
- export * from './serializeECDSASignature/index.js';
4
- export * from './mapTempoTransactionToContext/index.js';
5
- export * from './parseTempoTransaction/index.js';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './mapTempoTransactionToContext.js';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/mapTempoTransactionToContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC"}
@@ -1,19 +0,0 @@
1
- import type { TempoTransactionContext } from '../../types.js';
2
- /**
3
- * Map a viem/tempo TransactionSerializableTempo to our context format.
4
- * @param transaction - The transaction object with calls, feeToken, etc.
5
- * @param serializedTransaction - The RLP-serialized transaction hex string (with 0x76 prefix)
6
- */
7
- export declare const mapTempoTransactionToContext: (transaction: {
8
- calls?: readonly {
9
- to?: string;
10
- data?: string;
11
- value?: bigint;
12
- }[];
13
- feeToken?: string | bigint;
14
- validAfter?: number | bigint;
15
- validBefore?: number | bigint;
16
- nonceKey?: bigint;
17
- chainId?: number;
18
- }, serializedTransaction: string) => TempoTransactionContext;
19
- //# sourceMappingURL=mapTempoTransactionToContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mapTempoTransactionToContext.d.ts","sourceRoot":"","sources":["../../../src/utils/mapTempoTransactionToContext/mapTempoTransactionToContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAwB,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAEpF;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,gBAC1B;IACX,KAAK,CAAC,EAAE,SAAS;QAAE,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAClE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,yBACsB,MAAM,KAC5B,uBAiBF,CAAC"}
@@ -1,2 +0,0 @@
1
- export { parseTempoTransaction } from './parseTempoTransaction.js';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/parseTempoTransaction/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC"}
@@ -1,12 +0,0 @@
1
- import type { TempoTransactionSerializable } from '../../client/client.js';
2
- /**
3
- * Parse a JSON-serialized Tempo transaction string back into a properly typed transaction object.
4
- *
5
- * This is needed because JSON serialization (via postMessage) loses BigInt types.
6
- * BigInt values are serialized as strings and need to be reconstructed.
7
- *
8
- * @param transactionJson - JSON string representation of a Tempo transaction
9
- * @returns Properly typed TempoTransactionSerializable object
10
- */
11
- export declare const parseTempoTransaction: (transactionJson: string) => TempoTransactionSerializable;
12
- //# sourceMappingURL=parseTempoTransaction.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parseTempoTransaction.d.ts","sourceRoot":"","sources":["../../../src/utils/parseTempoTransaction/parseTempoTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC;AAqB3E;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,oBAAqB,MAAM,KAAG,4BAmB/D,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './serializeECDSASignature.js';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/serializeECDSASignature/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC"}
@@ -1,6 +0,0 @@
1
- import type { EcdsaSignature, ILogger } from '@dynamic-labs-wallet/browser';
2
- /**
3
- * Serialize an ECDSA signature to the standard format.
4
- */
5
- export declare const serializeECDSASignature: (signature: EcdsaSignature, logger: ILogger) => `0x${string}`;
6
- //# sourceMappingURL=serializeECDSASignature.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"serializeECDSASignature.d.ts","sourceRoot":"","sources":["../../../src/utils/serializeECDSASignature/serializeECDSASignature.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAG5E;;GAEG;AACH,eAAO,MAAM,uBAAuB,cAAe,cAAc,UAAU,OAAO,kBAWjF,CAAC"}