@thru/wallet 0.2.25 → 0.2.28
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/README.md +1 -0
- package/dist/{BrowserSDK-CpRFiJsW.d.ts → BrowserSDK-CRQTOT8S.d.ts} +178 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +376 -12
- package/dist/index.js.map +1 -1
- package/dist/native/react/transparent.d.ts +104 -0
- package/dist/native/react/transparent.js +2210 -0
- package/dist/native/react/transparent.js.map +1 -0
- package/dist/native/react.d.ts +5 -90
- package/dist/native/react.js +765 -32
- package/dist/native/react.js.map +1 -1
- package/dist/native.d.ts +105 -1
- package/dist/native.js +521 -31
- package/dist/native.js.map +1 -1
- package/dist/react-ui.js +5 -0
- package/dist/react-ui.js.map +1 -1
- package/dist/react.d.ts +2 -2
- package/dist/react.js +376 -12
- package/dist/react.js.map +1 -1
- package/package.json +8 -2
- package/src/BrowserSDK.ts +32 -1
- package/src/encoding.ts +39 -0
- package/src/index.ts +5 -1
- package/src/interfaces/IThruChain.ts +50 -1
- package/src/interfaces/types.ts +52 -0
- package/src/native/NativeSDK.test.ts +200 -1
- package/src/native/NativeSDK.ts +124 -10
- package/src/native/index.ts +12 -0
- package/src/native/provider/NativeProvider.ts +106 -5
- package/src/native/provider/WebViewBridge.test.ts +22 -1
- package/src/native/provider/WebViewBridge.ts +17 -7
- package/src/native/provider/chains/ThruChain.ts +215 -5
- package/src/native/react/ThruContext.ts +3 -1
- package/src/native/react/ThruProvider.tsx +25 -0
- package/src/native/react/ThruTransparentWalletBridge.tsx +281 -0
- package/src/native/react/hooks/useWallet.ts +12 -1
- package/src/native/react/index.ts +11 -0
- package/src/native/react/transparent.ts +35 -0
- package/src/protocol/postMessage.ts +127 -2
- package/src/provider/EmbeddedProvider.ts +7 -1
- package/src/provider/IframeManager.test.ts +18 -0
- package/src/provider/IframeManager.ts +8 -1
- package/src/provider/chains/ThruChain.ts +210 -4
- package/src/provider/types/messages.ts +16 -0
- package/src/react/index.ts +6 -0
- package/src/signing-sessions.test.ts +182 -0
- package/src/signing-sessions.ts +204 -0
package/README.md
CHANGED
|
@@ -56,6 +56,34 @@ interface ThruTransactionReviewPayload {
|
|
|
56
56
|
simulation?: ThruTransactionReviewSimulation;
|
|
57
57
|
abiReflection?: ThruTransactionReviewAbiReflection;
|
|
58
58
|
}
|
|
59
|
+
type ThruSigningSessionTimestamp = Date | number | bigint | string;
|
|
60
|
+
interface ThruSigningSessionCreateOptions {
|
|
61
|
+
walletAddress?: string;
|
|
62
|
+
durationSeconds?: number;
|
|
63
|
+
expiresAt?: ThruSigningSessionTimestamp;
|
|
64
|
+
review?: ThruTransactionReviewPayload;
|
|
65
|
+
}
|
|
66
|
+
interface ThruSigningSessionInstructionCreateOptions extends Omit<ThruSigningSessionCreateOptions, "review"> {
|
|
67
|
+
walletAccountIdx: number;
|
|
68
|
+
}
|
|
69
|
+
interface ThruSigningSessionDescriptor {
|
|
70
|
+
id: string;
|
|
71
|
+
walletAddress: string;
|
|
72
|
+
publicKey: string;
|
|
73
|
+
authIdx: number;
|
|
74
|
+
expiresAt: number;
|
|
75
|
+
createdAt: number;
|
|
76
|
+
}
|
|
77
|
+
interface ThruSigningSession extends ThruSigningSessionDescriptor {
|
|
78
|
+
signTransaction(transaction: ThruTransactionIntent): Promise<string>;
|
|
79
|
+
revoke(): Promise<void>;
|
|
80
|
+
toJSON(): ThruSigningSessionDescriptor;
|
|
81
|
+
}
|
|
82
|
+
interface ThruSigningSessionInstruction {
|
|
83
|
+
session: ThruSigningSession;
|
|
84
|
+
programAddress: string;
|
|
85
|
+
instructionData: Uint8Array;
|
|
86
|
+
}
|
|
59
87
|
interface ThruTransactionIntent {
|
|
60
88
|
walletAddress?: string;
|
|
61
89
|
programAddress: string;
|
|
@@ -63,6 +91,19 @@ interface ThruTransactionIntent {
|
|
|
63
91
|
readWriteAddresses?: string[];
|
|
64
92
|
readOnlyAddresses?: string[];
|
|
65
93
|
review?: ThruTransactionReviewPayload;
|
|
94
|
+
/** @internal Used by ThruSigningSession handles. */
|
|
95
|
+
signingSessionId?: string;
|
|
96
|
+
}
|
|
97
|
+
interface ThruPasskeyChallengeIntent {
|
|
98
|
+
/** base64url-encoded passkey-manager challenge bytes. */
|
|
99
|
+
challenge: string;
|
|
100
|
+
walletAddress?: string;
|
|
101
|
+
}
|
|
102
|
+
interface ThruPasskeyChallengeSignature {
|
|
103
|
+
signatureR: string;
|
|
104
|
+
signatureS: string;
|
|
105
|
+
authenticatorData: string;
|
|
106
|
+
clientDataJSON: string;
|
|
66
107
|
}
|
|
67
108
|
interface ConnectedApp {
|
|
68
109
|
accountId: number;
|
|
@@ -113,18 +154,51 @@ interface IThruChain {
|
|
|
113
154
|
* account ordering, headers, nonces, and final wire layout.
|
|
114
155
|
*/
|
|
115
156
|
signTransaction(transaction: ThruTransactionIntent): Promise<string>;
|
|
157
|
+
/**
|
|
158
|
+
* Sign a backend-prepared passkey-manager challenge with the wallet-owned
|
|
159
|
+
* selected passkey and return submit-ready signature fields.
|
|
160
|
+
*/
|
|
161
|
+
signPasskeyChallenge(challenge: ThruPasskeyChallengeIntent): Promise<ThruPasskeyChallengeSignature>;
|
|
162
|
+
/**
|
|
163
|
+
* Create a temporary wallet-owned signing session. The SDK stores the
|
|
164
|
+
* returned descriptor in app-local storage; the wallet stores the private key.
|
|
165
|
+
*/
|
|
166
|
+
createSigningSession(options: ThruSigningSessionCreateOptions): Promise<ThruSigningSession>;
|
|
167
|
+
/**
|
|
168
|
+
* Prepare a temporary signing-session authority instruction without asking
|
|
169
|
+
* for passkey approval. The returned instruction must be included in a
|
|
170
|
+
* later passkey-approved transaction before the session can sign.
|
|
171
|
+
*/
|
|
172
|
+
createSigningSessionInstruction(options: ThruSigningSessionInstructionCreateOptions): Promise<ThruSigningSessionInstruction>;
|
|
173
|
+
/**
|
|
174
|
+
* Confirm that a prepared signing-session instruction landed on-chain and
|
|
175
|
+
* publish the resulting session descriptor into SDK storage.
|
|
176
|
+
*/
|
|
177
|
+
confirmSigningSession(id: string): Promise<ThruSigningSession>;
|
|
178
|
+
/** Return a locally known signing session by id. */
|
|
179
|
+
getSigningSession(id: string): Promise<ThruSigningSession | null>;
|
|
180
|
+
/** Return locally known signing sessions for this SDK app scope only. */
|
|
181
|
+
getSigningSessions(): Promise<ThruSigningSession[]>;
|
|
182
|
+
/** Delete a locally known session and ask the wallet to delete its key. */
|
|
183
|
+
revokeSigningSession(id: string): Promise<void>;
|
|
116
184
|
}
|
|
117
185
|
|
|
118
186
|
declare const POST_MESSAGE_REQUEST_TYPES: {
|
|
119
187
|
readonly CONNECT: "connect";
|
|
188
|
+
readonly CREATE_ACCOUNT: "createAccount";
|
|
120
189
|
readonly DISCONNECT: "disconnect";
|
|
121
190
|
readonly SIGN_MESSAGE: "signMessage";
|
|
122
191
|
readonly SIGN_TRANSACTION: "signTransaction";
|
|
192
|
+
readonly SIGN_PASSKEY_CHALLENGE: "signPasskeyChallenge";
|
|
123
193
|
readonly GET_ACCOUNTS: "getAccounts";
|
|
124
194
|
readonly GET_CONNECTION_STATE: "getConnectionState";
|
|
125
195
|
readonly GET_SIGNING_CONTEXT: "getSigningContext";
|
|
126
196
|
readonly SELECT_ACCOUNT: "selectAccount";
|
|
127
197
|
readonly MANAGE_ACCOUNTS: "manageAccounts";
|
|
198
|
+
readonly CREATE_SIGNING_SESSION: "createSigningSession";
|
|
199
|
+
readonly CREATE_SIGNING_SESSION_INSTRUCTION: "createSigningSessionInstruction";
|
|
200
|
+
readonly CONFIRM_SIGNING_SESSION: "confirmSigningSession";
|
|
201
|
+
readonly REVOKE_SIGNING_SESSION: "revokeSigningSession";
|
|
128
202
|
};
|
|
129
203
|
type RequestType = (typeof POST_MESSAGE_REQUEST_TYPES)[keyof typeof POST_MESSAGE_REQUEST_TYPES];
|
|
130
204
|
declare const EMBEDDED_PROVIDER_EVENTS: {
|
|
@@ -140,7 +214,7 @@ declare const EMBEDDED_PROVIDER_EVENTS: {
|
|
|
140
214
|
type EmbeddedProviderEvent = (typeof EMBEDDED_PROVIDER_EVENTS)[keyof typeof EMBEDDED_PROVIDER_EVENTS];
|
|
141
215
|
declare const POST_MESSAGE_EVENT_TYPE: "event";
|
|
142
216
|
declare const IFRAME_READY_EVENT: "iframe:ready";
|
|
143
|
-
declare const DEFAULT_IFRAME_URL = "http://localhost:
|
|
217
|
+
declare const DEFAULT_IFRAME_URL = "http://localhost:3010/embedded";
|
|
144
218
|
declare const createRequestId: (prefix?: string) => string;
|
|
145
219
|
interface BaseRequest {
|
|
146
220
|
id: string;
|
|
@@ -154,6 +228,10 @@ interface DisconnectRequestMessage extends BaseRequest {
|
|
|
154
228
|
type: typeof POST_MESSAGE_REQUEST_TYPES.DISCONNECT;
|
|
155
229
|
payload?: undefined;
|
|
156
230
|
}
|
|
231
|
+
interface CreateAccountRequestMessage extends BaseRequest {
|
|
232
|
+
type: typeof POST_MESSAGE_REQUEST_TYPES.CREATE_ACCOUNT;
|
|
233
|
+
payload: CreateAccountPayload;
|
|
234
|
+
}
|
|
157
235
|
interface SignMessageRequestMessage extends BaseRequest {
|
|
158
236
|
type: typeof POST_MESSAGE_REQUEST_TYPES.SIGN_MESSAGE;
|
|
159
237
|
payload: SignMessagePayload;
|
|
@@ -162,6 +240,10 @@ interface SignTransactionRequestMessage extends BaseRequest {
|
|
|
162
240
|
type: typeof POST_MESSAGE_REQUEST_TYPES.SIGN_TRANSACTION;
|
|
163
241
|
payload: SignTransactionPayload;
|
|
164
242
|
}
|
|
243
|
+
interface SignPasskeyChallengeRequestMessage extends BaseRequest {
|
|
244
|
+
type: typeof POST_MESSAGE_REQUEST_TYPES.SIGN_PASSKEY_CHALLENGE;
|
|
245
|
+
payload: SignPasskeyChallengePayload;
|
|
246
|
+
}
|
|
165
247
|
interface GetAccountsRequestMessage extends BaseRequest {
|
|
166
248
|
type: typeof POST_MESSAGE_REQUEST_TYPES.GET_ACCOUNTS;
|
|
167
249
|
payload?: undefined;
|
|
@@ -182,9 +264,38 @@ interface ManageAccountsRequestMessage extends BaseRequest {
|
|
|
182
264
|
type: typeof POST_MESSAGE_REQUEST_TYPES.MANAGE_ACCOUNTS;
|
|
183
265
|
payload?: undefined;
|
|
184
266
|
}
|
|
185
|
-
|
|
267
|
+
interface CreateSigningSessionRequestMessage extends BaseRequest {
|
|
268
|
+
type: typeof POST_MESSAGE_REQUEST_TYPES.CREATE_SIGNING_SESSION;
|
|
269
|
+
payload: CreateSigningSessionPayload;
|
|
270
|
+
}
|
|
271
|
+
interface CreateSigningSessionInstructionRequestMessage extends BaseRequest {
|
|
272
|
+
type: typeof POST_MESSAGE_REQUEST_TYPES.CREATE_SIGNING_SESSION_INSTRUCTION;
|
|
273
|
+
payload: CreateSigningSessionInstructionPayload;
|
|
274
|
+
}
|
|
275
|
+
interface ConfirmSigningSessionRequestMessage extends BaseRequest {
|
|
276
|
+
type: typeof POST_MESSAGE_REQUEST_TYPES.CONFIRM_SIGNING_SESSION;
|
|
277
|
+
payload: ConfirmSigningSessionPayload;
|
|
278
|
+
}
|
|
279
|
+
interface RevokeSigningSessionRequestMessage extends BaseRequest {
|
|
280
|
+
type: typeof POST_MESSAGE_REQUEST_TYPES.REVOKE_SIGNING_SESSION;
|
|
281
|
+
payload: RevokeSigningSessionPayload;
|
|
282
|
+
}
|
|
283
|
+
type PostMessageRequest = ConnectRequestMessage | CreateAccountRequestMessage | DisconnectRequestMessage | SignMessageRequestMessage | SignTransactionRequestMessage | SignPasskeyChallengeRequestMessage | GetAccountsRequestMessage | GetConnectionStateRequestMessage | GetSigningContextRequestMessage | SelectAccountRequestMessage | ManageAccountsRequestMessage | CreateSigningSessionRequestMessage | CreateSigningSessionInstructionRequestMessage | ConfirmSigningSessionRequestMessage | RevokeSigningSessionRequestMessage;
|
|
186
284
|
interface DisconnectResult {
|
|
187
285
|
}
|
|
286
|
+
interface CreateAccountPayload {
|
|
287
|
+
accountName?: string;
|
|
288
|
+
metadata?: ConnectMetadataInput;
|
|
289
|
+
}
|
|
290
|
+
interface CreateAccountResult {
|
|
291
|
+
account: WalletAccount;
|
|
292
|
+
accounts: WalletAccount[];
|
|
293
|
+
selectedAccount: WalletAccount;
|
|
294
|
+
signature: string | null;
|
|
295
|
+
vmError: string | null;
|
|
296
|
+
userErrorCode: string | null;
|
|
297
|
+
executionResult: string | null;
|
|
298
|
+
}
|
|
188
299
|
interface GetAccountsResult {
|
|
189
300
|
accounts: WalletAccount[];
|
|
190
301
|
}
|
|
@@ -210,14 +321,20 @@ interface ManageAccountsResult {
|
|
|
210
321
|
}
|
|
211
322
|
type RequestResultMap = {
|
|
212
323
|
[POST_MESSAGE_REQUEST_TYPES.CONNECT]: ConnectResult;
|
|
324
|
+
[POST_MESSAGE_REQUEST_TYPES.CREATE_ACCOUNT]: CreateAccountResult;
|
|
213
325
|
[POST_MESSAGE_REQUEST_TYPES.DISCONNECT]: DisconnectResult;
|
|
214
326
|
[POST_MESSAGE_REQUEST_TYPES.SIGN_MESSAGE]: SignMessageResult;
|
|
215
327
|
[POST_MESSAGE_REQUEST_TYPES.SIGN_TRANSACTION]: SignTransactionResult;
|
|
328
|
+
[POST_MESSAGE_REQUEST_TYPES.SIGN_PASSKEY_CHALLENGE]: SignPasskeyChallengeResult;
|
|
216
329
|
[POST_MESSAGE_REQUEST_TYPES.GET_ACCOUNTS]: GetAccountsResult;
|
|
217
330
|
[POST_MESSAGE_REQUEST_TYPES.GET_CONNECTION_STATE]: GetConnectionStateResult;
|
|
218
331
|
[POST_MESSAGE_REQUEST_TYPES.GET_SIGNING_CONTEXT]: GetSigningContextResult;
|
|
219
332
|
[POST_MESSAGE_REQUEST_TYPES.SELECT_ACCOUNT]: SelectAccountResult;
|
|
220
333
|
[POST_MESSAGE_REQUEST_TYPES.MANAGE_ACCOUNTS]: ManageAccountsResult;
|
|
334
|
+
[POST_MESSAGE_REQUEST_TYPES.CREATE_SIGNING_SESSION]: CreateSigningSessionResult;
|
|
335
|
+
[POST_MESSAGE_REQUEST_TYPES.CREATE_SIGNING_SESSION_INSTRUCTION]: CreateSigningSessionInstructionResult;
|
|
336
|
+
[POST_MESSAGE_REQUEST_TYPES.CONFIRM_SIGNING_SESSION]: ConfirmSigningSessionResult;
|
|
337
|
+
[POST_MESSAGE_REQUEST_TYPES.REVOKE_SIGNING_SESSION]: RevokeSigningSessionResult;
|
|
221
338
|
};
|
|
222
339
|
interface ResponseErrorPayload {
|
|
223
340
|
code: ErrorCode;
|
|
@@ -291,10 +408,60 @@ interface SignTransactionPayload {
|
|
|
291
408
|
readWriteAddresses?: string[];
|
|
292
409
|
readOnlyAddresses?: string[];
|
|
293
410
|
review?: TransactionReviewPayload;
|
|
411
|
+
signingSessionId?: string;
|
|
294
412
|
}
|
|
295
413
|
interface SignTransactionResult {
|
|
296
414
|
signedTransaction: string;
|
|
297
415
|
}
|
|
416
|
+
interface SignPasskeyChallengePayload {
|
|
417
|
+
/** base64url-encoded challenge bytes from a backend passkey-manager flow. */
|
|
418
|
+
challenge: string;
|
|
419
|
+
/** Optional expected wallet address for the selected transparent account. */
|
|
420
|
+
walletAddress?: string;
|
|
421
|
+
}
|
|
422
|
+
interface SignPasskeyChallengeResult {
|
|
423
|
+
signatureR: string;
|
|
424
|
+
signatureS: string;
|
|
425
|
+
authenticatorData: string;
|
|
426
|
+
clientDataJSON: string;
|
|
427
|
+
}
|
|
428
|
+
interface CreateSigningSessionPayload {
|
|
429
|
+
walletAddress?: string;
|
|
430
|
+
expiresAt: string;
|
|
431
|
+
review?: TransactionReviewPayload;
|
|
432
|
+
}
|
|
433
|
+
interface CreateSigningSessionInstructionPayload {
|
|
434
|
+
walletAddress?: string;
|
|
435
|
+
expiresAt: string;
|
|
436
|
+
walletAccountIdx: number;
|
|
437
|
+
}
|
|
438
|
+
interface SigningSessionDescriptorPayload {
|
|
439
|
+
id: string;
|
|
440
|
+
walletAddress: string;
|
|
441
|
+
publicKey: string;
|
|
442
|
+
authIdx: number;
|
|
443
|
+
expiresAt: string;
|
|
444
|
+
createdAt: string;
|
|
445
|
+
}
|
|
446
|
+
interface CreateSigningSessionResult {
|
|
447
|
+
session: SigningSessionDescriptorPayload;
|
|
448
|
+
}
|
|
449
|
+
interface CreateSigningSessionInstructionResult {
|
|
450
|
+
session: SigningSessionDescriptorPayload;
|
|
451
|
+
programAddress: string;
|
|
452
|
+
instructionData: string;
|
|
453
|
+
}
|
|
454
|
+
interface ConfirmSigningSessionPayload {
|
|
455
|
+
sessionId: string;
|
|
456
|
+
}
|
|
457
|
+
interface ConfirmSigningSessionResult {
|
|
458
|
+
session: SigningSessionDescriptorPayload;
|
|
459
|
+
}
|
|
460
|
+
interface RevokeSigningSessionPayload {
|
|
461
|
+
sessionId: string;
|
|
462
|
+
}
|
|
463
|
+
interface RevokeSigningSessionResult {
|
|
464
|
+
}
|
|
298
465
|
interface TransactionReviewSimulation {
|
|
299
466
|
before?: string;
|
|
300
467
|
after?: string;
|
|
@@ -320,10 +487,18 @@ interface GetSigningContextResult {
|
|
|
320
487
|
signingContext: ThruSigningContext;
|
|
321
488
|
}
|
|
322
489
|
|
|
490
|
+
interface SigningSessionStorage {
|
|
491
|
+
getItem: (key: string) => string | null | Promise<string | null>;
|
|
492
|
+
setItem: (key: string, value: string) => void | Promise<void>;
|
|
493
|
+
removeItem: (key: string) => void | Promise<void>;
|
|
494
|
+
}
|
|
495
|
+
|
|
323
496
|
interface BrowserSDKConfig {
|
|
324
497
|
iframeUrl?: string;
|
|
325
498
|
addressTypes?: AddressType[];
|
|
326
499
|
rpcUrl?: string;
|
|
500
|
+
signingSessionStorage?: SigningSessionStorage | false;
|
|
501
|
+
signingSessionStorageKey?: string;
|
|
327
502
|
}
|
|
328
503
|
interface ConnectOptions {
|
|
329
504
|
metadata?: ConnectMetadataInput;
|
|
@@ -406,4 +581,4 @@ declare class BrowserSDK {
|
|
|
406
581
|
private refreshCachedAccounts;
|
|
407
582
|
}
|
|
408
583
|
|
|
409
|
-
export { type
|
|
584
|
+
export { type SelectAccountRequestMessage as $, AddressType as A, BrowserSDK as B, type ConfirmSigningSessionPayload as C, DEFAULT_IFRAME_URL as D, EMBEDDED_PROVIDER_EVENTS as E, type GetConnectionStateRequestMessage as F, type GetAccountsRequestMessage as G, type GetConnectionStateResult as H, type GetSigningContextRequestMessage as I, type GetSigningContextResult as J, IFRAME_READY_EVENT as K, type IThruChain as L, type InferPostMessageResponse as M, type InferSuccessfulPostMessageResponse as N, type ManageAccountsRequestMessage as O, type ManageAccountsResult as P, POST_MESSAGE_EVENT_TYPE as Q, POST_MESSAGE_REQUEST_TYPES as R, type PostMessageEvent as S, type PostMessageRequest as T, type PostMessageResponse as U, type RequestType as V, type RevokeSigningSessionPayload as W, type RevokeSigningSessionRequestMessage as X, type RevokeSigningSessionResult as Y, type SDKEvent as Z, type SelectAccountPayload as _, type AppMetadata as a, type SelectAccountResult as a0, type SignMessageParams as a1, type SignMessagePayload as a2, type SignMessageRequestMessage as a3, type SignMessageResult$1 as a4, type SignPasskeyChallengePayload as a5, type SignPasskeyChallengeRequestMessage as a6, type SignPasskeyChallengeResult as a7, type SignTransactionPayload as a8, type SignTransactionRequestMessage as a9, type SignTransactionResult as aa, type SigningSessionDescriptorPayload as ab, type SigningSessionStorage as ac, type SuccessfulPostMessageResponse as ad, type ThruSigningContext as ae, type ThruSigningSession as af, type ThruSigningSessionCreateOptions as ag, type ThruSigningSessionDescriptor as ah, type ThruSigningSessionInstruction as ai, type ThruSigningSessionInstructionCreateOptions as aj, type ThruSigningSessionTimestamp as ak, ThruTransactionEncoding as al, type ThruTransactionIntent as am, type TransactionReviewAbiReflection as an, type TransactionReviewPayload as ao, type TransactionReviewSimulation as ap, type WalletAccount as aq, createRequestId as ar, type BrowserSDKConfig as b, type ConfirmSigningSessionRequestMessage as c, type ConfirmSigningSessionResult as d, type ConnectIntent as e, type ConnectMetadataInput as f, type ConnectOptions as g, type ConnectRequestMessage as h, type ConnectRequestPayload as i, type ConnectResult as j, type ConnectedApp as k, type CreateAccountPayload as l, type CreateAccountRequestMessage as m, type CreateAccountResult as n, type CreateSigningSessionInstructionPayload as o, type CreateSigningSessionInstructionRequestMessage as p, type CreateSigningSessionInstructionResult as q, type CreateSigningSessionPayload as r, type CreateSigningSessionRequestMessage as s, type CreateSigningSessionResult as t, type DisconnectRequestMessage as u, type DisconnectResult as v, type EmbeddedProviderEvent as w, ErrorCode as x, type EventCallback as y, type GetAccountsResult as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as AddressType, a as AppMetadata, B as BrowserSDK, b as BrowserSDKConfig, C as
|
|
1
|
+
import { aq as WalletAccount, H as GetConnectionStateResult } from './BrowserSDK-CRQTOT8S.js';
|
|
2
|
+
export { A as AddressType, a as AppMetadata, B as BrowserSDK, b as BrowserSDKConfig, C as ConfirmSigningSessionPayload, c as ConfirmSigningSessionRequestMessage, d as ConfirmSigningSessionResult, e as ConnectIntent, f as ConnectMetadataInput, g as ConnectOptions, h as ConnectRequestMessage, i as ConnectRequestPayload, j as ConnectResult, k as ConnectedApp, l as CreateAccountPayload, m as CreateAccountRequestMessage, n as CreateAccountResult, o as CreateSigningSessionInstructionPayload, p as CreateSigningSessionInstructionRequestMessage, q as CreateSigningSessionInstructionResult, r as CreateSigningSessionPayload, s as CreateSigningSessionRequestMessage, t as CreateSigningSessionResult, D as DEFAULT_IFRAME_URL, u as DisconnectRequestMessage, v as DisconnectResult, E as EMBEDDED_PROVIDER_EVENTS, w as EmbeddedProviderEvent, x as ErrorCode, y as EventCallback, G as GetAccountsRequestMessage, z as GetAccountsResult, F as GetConnectionStateRequestMessage, I as GetSigningContextRequestMessage, J as GetSigningContextResult, K as IFRAME_READY_EVENT, L as IThruChain, M as InferPostMessageResponse, N as InferSuccessfulPostMessageResponse, O as ManageAccountsRequestMessage, P as ManageAccountsResult, Q as POST_MESSAGE_EVENT_TYPE, R as POST_MESSAGE_REQUEST_TYPES, S as PostMessageEvent, T as PostMessageRequest, U as PostMessageResponse, V as RequestType, W as RevokeSigningSessionPayload, X as RevokeSigningSessionRequestMessage, Y as RevokeSigningSessionResult, Z as SDKEvent, _ as SelectAccountPayload, $ as SelectAccountRequestMessage, a0 as SelectAccountResult, a1 as SignMessageParams, a2 as SignMessagePayload, a3 as SignMessageRequestMessage, a4 as SignMessageResult, a5 as SignPasskeyChallengePayload, a6 as SignPasskeyChallengeRequestMessage, a7 as SignPasskeyChallengeResult, a8 as SignTransactionPayload, a9 as SignTransactionRequestMessage, aa as SignTransactionResult, ab as SigningSessionDescriptorPayload, ac as SigningSessionStorage, ad as SuccessfulPostMessageResponse, ae as ThruSigningContext, af as ThruSigningSession, ag as ThruSigningSessionCreateOptions, ah as ThruSigningSessionDescriptor, ai as ThruSigningSessionInstruction, aj as ThruSigningSessionInstructionCreateOptions, ak as ThruSigningSessionTimestamp, al as ThruTransactionEncoding, am as ThruTransactionIntent, an as TransactionReviewAbiReflection, ao as TransactionReviewPayload, ap as TransactionReviewSimulation, ar as createRequestId } from './BrowserSDK-CRQTOT8S.js';
|
|
3
3
|
import '@thru/sdk/client';
|
|
4
4
|
|
|
5
5
|
interface ActiveWalletAccounts {
|