@solana-mobile/mobile-wallet-adapter-walletlib 1.4.0 → 1.4.2
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/LICENSE +12 -12
- package/README.md +202 -196
- package/android/build.gradle +151 -151
- package/android/gradle/wrapper/gradle-wrapper.properties +5 -5
- package/android/gradle.properties +5 -5
- package/android/gradlew +185 -185
- package/android/src/main/java/com/solanamobile/mobilewalletadapterwalletlib/reactnative/Extensions.kt +98 -98
- package/android/src/main/java/com/solanamobile/mobilewalletadapterwalletlib/reactnative/JsonSerializationUtils.kt +156 -156
- package/android/src/main/java/com/solanamobile/mobilewalletadapterwalletlib/reactnative/MobileWalletAdapterWalletLibReactNativePackage.kt +18 -18
- package/android/src/main/java/com/solanamobile/mobilewalletadapterwalletlib/reactnative/SolanaMobileWalletAdapterWalletLibModule.kt +691 -691
- package/android/src/main/java/com/solanamobile/mobilewalletadapterwalletlib/reactnative/model/MobileWalletAdapterConfig.kt +59 -59
- package/android/src/main/java/com/solanamobile/mobilewalletadapterwalletlib/reactnative/model/MobileWalletAdapterRequest.kt +97 -97
- package/android/src/main/java/com/solanamobile/mobilewalletadapterwalletlib/reactnative/model/MobileWalletAdapterResponse.kt +68 -68
- package/lib/esm/index.js +119 -194
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/index.native.js +119 -194
- package/lib/esm/index.native.js.map +1 -0
- package/lib/esm/package.json +1 -3
- package/lib/types/index.d.ts +124 -112
- package/lib/types/index.d.ts.map +1 -1
- package/package.json +49 -46
- package/lib/types/index.native.d.ts +0 -226
- package/lib/types/index.native.d.ts.map +0 -1
package/lib/types/index.d.ts
CHANGED
|
@@ -1,71 +1,74 @@
|
|
|
1
1
|
import { IdentifierArray } from "@wallet-standard/core";
|
|
2
|
-
import { TransactionVersion } from "@solana/web3.js";
|
|
3
2
|
import { EmitterSubscription } from "react-native";
|
|
3
|
+
|
|
4
|
+
//#region src/mwaSessionEvents.d.ts
|
|
4
5
|
/**
|
|
5
6
|
* Mobile Wallet Adapter Session Events are notifications and events
|
|
6
7
|
* about the underlying session between the wallet and the dApp.
|
|
7
8
|
*/
|
|
8
9
|
declare enum MWASessionEventType {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
SessionStartEvent = "SESSION_START",
|
|
11
|
+
SessionReadyEvent = "SESSION_READY",
|
|
12
|
+
SessionTerminatedEvent = "SESSION_TERMINATED",
|
|
13
|
+
SessionServingClientsEvent = "SESSION_SERVING_CLIENTS",
|
|
14
|
+
SessionServingCompleteEvent = "SESSION_SERVING_COMPLETE",
|
|
15
|
+
SessionCompleteEvent = "SESSION_COMPLETE",
|
|
16
|
+
SessionErrorEvent = "SESSION_ERROR",
|
|
17
|
+
SessionTeardownCompleteEvent = "SESSION_TEARDOWN_COMPLETE",
|
|
18
|
+
LowPowerNoConnectionEvent = "LOW_POWER_NO_CONNECTION"
|
|
18
19
|
}
|
|
19
20
|
interface IMWASessionEvent {
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
__type: MWASessionEventType;
|
|
22
|
+
sessionId: string;
|
|
22
23
|
}
|
|
23
24
|
type SessionStartEvent = Readonly<{
|
|
24
|
-
|
|
25
|
+
__type: MWASessionEventType.SessionStartEvent;
|
|
25
26
|
}> & IMWASessionEvent;
|
|
26
27
|
type SessionReadyEvent = Readonly<{
|
|
27
|
-
|
|
28
|
+
__type: MWASessionEventType.SessionReadyEvent;
|
|
28
29
|
}> & IMWASessionEvent;
|
|
29
30
|
type SessionTerminatedEvent = Readonly<{
|
|
30
|
-
|
|
31
|
+
__type: MWASessionEventType.SessionTerminatedEvent;
|
|
31
32
|
}> & IMWASessionEvent;
|
|
32
33
|
type SessionServingClientsEvent = Readonly<{
|
|
33
|
-
|
|
34
|
+
__type: MWASessionEventType.SessionServingClientsEvent;
|
|
34
35
|
}> & IMWASessionEvent;
|
|
35
36
|
type SessionServingCompleteEvent = Readonly<{
|
|
36
|
-
|
|
37
|
+
__type: MWASessionEventType.SessionServingCompleteEvent;
|
|
37
38
|
}> & IMWASessionEvent;
|
|
38
39
|
type SessionCompleteEvent = Readonly<{
|
|
39
|
-
|
|
40
|
+
__type: MWASessionEventType.SessionCompleteEvent;
|
|
40
41
|
}> & IMWASessionEvent;
|
|
41
42
|
type SessionErrorEvent = Readonly<{
|
|
42
|
-
|
|
43
|
+
__type: MWASessionEventType.SessionErrorEvent;
|
|
43
44
|
}> & IMWASessionEvent;
|
|
44
45
|
type SessionTeardownCompleteEvent = Readonly<{
|
|
45
|
-
|
|
46
|
+
__type: MWASessionEventType.SessionTeardownCompleteEvent;
|
|
46
47
|
}> & IMWASessionEvent;
|
|
47
48
|
type LowPowerNoConnectionEvent = Readonly<{
|
|
48
|
-
|
|
49
|
+
__type: MWASessionEventType.LowPowerNoConnectionEvent;
|
|
49
50
|
}> & IMWASessionEvent;
|
|
50
51
|
type MWASessionEvent = SessionStartEvent | SessionReadyEvent | SessionTerminatedEvent | SessionServingClientsEvent | SessionServingCompleteEvent | SessionCompleteEvent | SessionErrorEvent | SessionTeardownCompleteEvent | LowPowerNoConnectionEvent;
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/resolve.d.ts
|
|
51
54
|
type AppIdentity = Readonly<{
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
+
identityUri?: string;
|
|
56
|
+
iconRelativeUri?: string;
|
|
57
|
+
identityName?: string;
|
|
55
58
|
}>;
|
|
56
59
|
type SignInPayload = Readonly<{
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
60
|
+
domain?: string;
|
|
61
|
+
address?: string;
|
|
62
|
+
statement?: string;
|
|
63
|
+
uri?: string;
|
|
64
|
+
version?: string;
|
|
65
|
+
chainId?: string;
|
|
66
|
+
nonce?: string;
|
|
67
|
+
issuedAt?: string;
|
|
68
|
+
expirationTime?: string;
|
|
69
|
+
notBefore?: string;
|
|
70
|
+
requestId?: string;
|
|
71
|
+
resources?: readonly string[];
|
|
69
72
|
}>;
|
|
70
73
|
type Base64EncodedAddress = string;
|
|
71
74
|
type Base64EncodedSignature = string;
|
|
@@ -76,119 +79,111 @@ type Base64EncodedSignedMessage = string;
|
|
|
76
79
|
*/
|
|
77
80
|
type MWARequest = SignMessagesRequest | SignTransactionsRequest | SignAndSendTransactionsRequest | AuthorizeDappRequest | ReauthorizeDappRequest | DeauthorizeDappRequest;
|
|
78
81
|
declare enum MWARequestType {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
AuthorizeDappRequest = "AUTHORIZE_DAPP",
|
|
83
|
+
ReauthorizeDappRequest = "REAUTHORIZE_DAPP",
|
|
84
|
+
DeauthorizeDappRequest = "DEAUTHORIZE_DAPP",
|
|
85
|
+
SignMessagesRequest = "SIGN_MESSAGES",
|
|
86
|
+
SignTransactionsRequest = "SIGN_TRANSACTIONS",
|
|
87
|
+
SignAndSendTransactionsRequest = "SIGN_AND_SEND_TRANSACTIONS"
|
|
85
88
|
}
|
|
86
89
|
interface IMWARequest {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
+
__type: MWARequestType;
|
|
91
|
+
requestId: string;
|
|
92
|
+
sessionId: string;
|
|
90
93
|
}
|
|
91
94
|
interface IVerifiableIdentityRequest {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
+
chain: string;
|
|
96
|
+
authorizationScope: Uint8Array;
|
|
97
|
+
appIdentity?: AppIdentity;
|
|
95
98
|
}
|
|
96
99
|
type AuthorizeDappRequest = Readonly<{
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
];
|
|
104
|
-
signInPayload?: SignInPayload;
|
|
100
|
+
__type: MWARequestType.AuthorizeDappRequest;
|
|
101
|
+
chain: string;
|
|
102
|
+
appIdentity?: AppIdentity;
|
|
103
|
+
features?: IdentifierArray;
|
|
104
|
+
addresses?: [string];
|
|
105
|
+
signInPayload?: SignInPayload;
|
|
105
106
|
}> & IMWARequest;
|
|
106
107
|
type ReauthorizeDappRequest = Readonly<{
|
|
107
|
-
|
|
108
|
+
__type: MWARequestType.ReauthorizeDappRequest;
|
|
108
109
|
}> & IMWARequest & IVerifiableIdentityRequest;
|
|
109
110
|
type DeauthorizeDappRequest = Readonly<{
|
|
110
|
-
|
|
111
|
+
__type: MWARequestType.DeauthorizeDappRequest;
|
|
111
112
|
}> & IMWARequest & IVerifiableIdentityRequest;
|
|
112
113
|
type SignMessagesRequest = Readonly<{
|
|
113
|
-
|
|
114
|
-
|
|
114
|
+
__type: MWARequestType.SignMessagesRequest;
|
|
115
|
+
payloads: Uint8Array[];
|
|
115
116
|
}> & IMWARequest & IVerifiableIdentityRequest;
|
|
116
117
|
type SignTransactionsRequest = Readonly<{
|
|
117
|
-
|
|
118
|
-
|
|
118
|
+
__type: MWARequestType.SignTransactionsRequest;
|
|
119
|
+
payloads: Uint8Array[];
|
|
119
120
|
}> & IMWARequest & IVerifiableIdentityRequest;
|
|
120
121
|
type SignAndSendTransactionsRequest = Readonly<{
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
122
|
+
__type: MWARequestType.SignAndSendTransactionsRequest;
|
|
123
|
+
payloads: Uint8Array[];
|
|
124
|
+
minContextSlot?: number;
|
|
125
|
+
commitment?: string;
|
|
126
|
+
skipPreflight?: boolean;
|
|
127
|
+
maxRetries?: number;
|
|
128
|
+
waitForCommitmentToSendNextTransaction?: boolean;
|
|
128
129
|
}> & IMWARequest & IVerifiableIdentityRequest;
|
|
129
130
|
/**
|
|
130
131
|
* MWA Request Responses
|
|
131
132
|
*/
|
|
132
133
|
type MWAResponse = AuthorizeDappResponse | ReauthorizeDappResponse | DeauthorizeDappResponse | SignMessagesResponse | SignTransactionsResponse | SignAndSendTransactionsResponse;
|
|
133
|
-
/* Failure Responses */
|
|
134
134
|
declare enum MWARequestFailReason {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
135
|
+
UserDeclined = "USER_DECLINED",
|
|
136
|
+
TooManyPayloads = "TOO_MANY_PAYLOADS",
|
|
137
|
+
InvalidSignatures = "INVALID_SIGNATURES",
|
|
138
|
+
AuthorizationNotValid = "AUTHORIZATION_NOT_VALID"
|
|
139
139
|
}
|
|
140
140
|
type UserDeclinedResponse = Readonly<{
|
|
141
|
-
|
|
141
|
+
failReason: MWARequestFailReason.UserDeclined;
|
|
142
142
|
}>;
|
|
143
143
|
type TooManyPayloadsResponse = Readonly<{
|
|
144
|
-
|
|
144
|
+
failReason: MWARequestFailReason.TooManyPayloads;
|
|
145
145
|
}>;
|
|
146
146
|
type AuthorizationNotValidResponse = Readonly<{
|
|
147
|
-
|
|
147
|
+
failReason: MWARequestFailReason.AuthorizationNotValid;
|
|
148
148
|
}>;
|
|
149
149
|
type InvalidSignaturesResponse = Readonly<{
|
|
150
|
-
|
|
151
|
-
|
|
150
|
+
failReason: MWARequestFailReason.InvalidSignatures;
|
|
151
|
+
valid: boolean[];
|
|
152
152
|
}>;
|
|
153
|
-
/* Authorize Dapp */
|
|
154
153
|
type AuthorizedAccount = Readonly<{
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
154
|
+
publicKey: Uint8Array;
|
|
155
|
+
accountLabel?: string;
|
|
156
|
+
icon?: string;
|
|
157
|
+
chains?: IdentifierArray;
|
|
158
|
+
features?: IdentifierArray;
|
|
160
159
|
}>;
|
|
161
160
|
type SignInResult = Readonly<{
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
161
|
+
address: Base64EncodedAddress;
|
|
162
|
+
signed_message: Base64EncodedSignedMessage;
|
|
163
|
+
signature: Base64EncodedSignature;
|
|
164
|
+
signature_type?: string;
|
|
166
165
|
}>;
|
|
167
166
|
type AuthorizeDappCompleteResponse = Readonly<{
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
167
|
+
accounts: Array<AuthorizedAccount>;
|
|
168
|
+
walletUriBase?: string;
|
|
169
|
+
authorizationScope?: Uint8Array;
|
|
170
|
+
signInResult?: SignInResult;
|
|
172
171
|
}>;
|
|
173
172
|
type AuthorizeDappResponse = AuthorizeDappCompleteResponse | UserDeclinedResponse;
|
|
174
|
-
/* Reauthorize Dapp */
|
|
175
173
|
type ReauthorizeDappCompleteResponse = Readonly<{
|
|
176
|
-
|
|
174
|
+
authorizationScope?: Uint8Array;
|
|
177
175
|
}>;
|
|
178
176
|
type ReauthorizeDappResponse = ReauthorizeDappCompleteResponse | AuthorizationNotValidResponse;
|
|
179
|
-
/* Deauthorize Dapp */
|
|
180
177
|
type DeauthorizeDappCompleteResponse = Readonly<{}>;
|
|
181
178
|
type DeauthorizeDappResponse = DeauthorizeDappCompleteResponse | AuthorizationNotValidResponse;
|
|
182
|
-
/* Sign Transactions/Messages */
|
|
183
179
|
type SignPayloadsCompleteResponse = Readonly<{
|
|
184
|
-
|
|
180
|
+
signedPayloads: Uint8Array[];
|
|
185
181
|
}>;
|
|
186
182
|
type SignPayloadsFailResponse = UserDeclinedResponse | TooManyPayloadsResponse | AuthorizationNotValidResponse | InvalidSignaturesResponse;
|
|
187
183
|
type SignTransactionsResponse = SignPayloadsCompleteResponse | SignPayloadsFailResponse;
|
|
188
184
|
type SignMessagesResponse = SignPayloadsCompleteResponse | SignPayloadsFailResponse;
|
|
189
|
-
/* Sign and Send Transaction */
|
|
190
185
|
type SignAndSendTransactionsCompleteResponse = Readonly<{
|
|
191
|
-
|
|
186
|
+
signedTransactions: Uint8Array[];
|
|
192
187
|
}>;
|
|
193
188
|
type SignAndSendTransactionsResponse = SignAndSendTransactionsCompleteResponse | UserDeclinedResponse | TooManyPayloadsResponse | AuthorizationNotValidResponse | InvalidSignaturesResponse;
|
|
194
189
|
declare function resolve(request: AuthorizeDappRequest, response: AuthorizeDappResponse): void;
|
|
@@ -197,30 +192,47 @@ declare function resolve(request: DeauthorizeDappRequest, response: DeauthorizeD
|
|
|
197
192
|
declare function resolve(request: SignMessagesRequest, response: SignMessagesResponse): void;
|
|
198
193
|
declare function resolve(request: SignTransactionsRequest, response: SignTransactionsResponse): void;
|
|
199
194
|
declare function resolve(request: SignAndSendTransactionsRequest, response: SignAndSendTransactionsResponse): void;
|
|
195
|
+
//#endregion
|
|
196
|
+
//#region ../../node_modules/.pnpm/@solana+web3.js@1.98.4_bufferutil@4.1.0_typescript@5.6.3_utf-8-validate@5.0.10/node_modules/@solana/web3.js/lib/index.d.ts
|
|
197
|
+
type TransactionVersion = 'legacy' | 0;
|
|
198
|
+
/**
|
|
199
|
+
* Versioned transaction class
|
|
200
|
+
*/
|
|
201
|
+
//#endregion
|
|
202
|
+
//#region src/initializeMobileWalletAdapterSession.d.ts
|
|
200
203
|
type MWASessionId = string;
|
|
201
204
|
interface MobileWalletAdapterConfig {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
205
|
+
maxTransactionsPerSigningRequest: number;
|
|
206
|
+
maxMessagesPerSigningRequest: number;
|
|
207
|
+
supportedTransactionVersions: Array<TransactionVersion>;
|
|
208
|
+
noConnectionWarningTimeoutMs: number;
|
|
209
|
+
optionalFeatures: IdentifierArray;
|
|
207
210
|
}
|
|
208
211
|
declare function initializeMobileWalletAdapterSession(walletName: string, config: MobileWalletAdapterConfig): Promise<MWASessionId>;
|
|
212
|
+
//#endregion
|
|
213
|
+
//#region src/useMobileWalletAdapterSession.d.ts
|
|
209
214
|
declare function useMobileWalletAdapterSession(walletName: string, config: MobileWalletAdapterConfig, handleRequest: (request: MWARequest) => void, handleSessionEvent: (sessionEvent: MWASessionEvent) => void): void;
|
|
215
|
+
//#endregion
|
|
216
|
+
//#region src/initializeMWAEventListener.d.ts
|
|
210
217
|
declare function initializeMWAEventListener(handleRequest: (request: MWARequest) => void, handleSessionEvent: (sessionEvent: MWASessionEvent) => void): EmitterSubscription;
|
|
218
|
+
//#endregion
|
|
219
|
+
//#region src/useDigitalAssetLinks.d.ts
|
|
211
220
|
declare function getCallingPackage(): Promise<string | undefined>;
|
|
212
221
|
declare function verifyCallingPackage(clientIdentityUri: string): Promise<any>;
|
|
213
222
|
declare function getCallingPackageUid(): Promise<any>;
|
|
214
223
|
declare function getUidForPackage(packageName: string): Promise<any>;
|
|
224
|
+
//#endregion
|
|
225
|
+
//#region src/errors.d.ts
|
|
215
226
|
declare enum SolanaMWAWalletLibErrorCode {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
227
|
+
ERROR_INTENT_DATA_NOT_FOUND = "ERROR_INTENT_DATA_NOT_FOUND",
|
|
228
|
+
ERROR_SESSION_ALREADY_CREATED = "ERROR_SESSION_ALREADY_CREATED",
|
|
229
|
+
ERROR_UNSUPPORTED_ASSOCIATION_URI = "ERROR_UNSUPPORTED_ASSOCIATION_URI",
|
|
230
|
+
ERROR_UNSUPPORTED_ASSOCIATION_TYPE = "ERROR_UNSUPPORTED_ASSOCIATION_TYPE"
|
|
220
231
|
}
|
|
221
232
|
declare class SolanaMWAWalletLibError extends Error {
|
|
222
|
-
|
|
223
|
-
|
|
233
|
+
code: SolanaMWAWalletLibErrorCode;
|
|
234
|
+
constructor(code: SolanaMWAWalletLibErrorCode, message: string);
|
|
224
235
|
}
|
|
225
|
-
|
|
236
|
+
//#endregion
|
|
237
|
+
export { AuthorizationNotValidResponse, AuthorizeDappCompleteResponse, AuthorizeDappRequest, AuthorizeDappResponse, AuthorizedAccount, Base64EncodedAddress, Base64EncodedSignature, DeauthorizeDappCompleteResponse, DeauthorizeDappRequest, DeauthorizeDappResponse, IMWASessionEvent, InvalidSignaturesResponse, LowPowerNoConnectionEvent, MWARequest, MWARequestFailReason, MWARequestType, MWAResponse, MWASessionEvent, MWASessionEventType, MWASessionId, MobileWalletAdapterConfig, ReauthorizeDappCompleteResponse, ReauthorizeDappRequest, ReauthorizeDappResponse, SessionCompleteEvent, SessionErrorEvent, SessionReadyEvent, SessionServingClientsEvent, SessionServingCompleteEvent, SessionStartEvent, SessionTeardownCompleteEvent, SessionTerminatedEvent, SignAndSendTransactionsCompleteResponse, SignAndSendTransactionsRequest, SignAndSendTransactionsResponse, SignInPayload, SignInResult, SignMessagesRequest, SignMessagesResponse, SignPayloadsCompleteResponse, SignPayloadsFailResponse, SignTransactionsRequest, SignTransactionsResponse, SolanaMWAWalletLibError, SolanaMWAWalletLibErrorCode, TooManyPayloadsResponse, UserDeclinedResponse, getCallingPackage, getCallingPackageUid, getUidForPackage, initializeMWAEventListener, initializeMobileWalletAdapterSession, resolve, useMobileWalletAdapterSession, verifyCallingPackage };
|
|
226
238
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts","../../src/mwaSessionEvents.ts","../../src/resolve.ts","../../src/errors.ts","../../src/initializeMobileWalletAdapterSession.ts","../../src/initializeMWAEventListener.ts","../../src/useMobileWalletAdapterSession.ts","../../src/useDigitalAssetLinks.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":["Buffer","Agent","Agent$1","Struct","constructor","properties","encode","decode","data","decodeUnchecked","Enum","enum","SOLANA_SCHEMA","Function","Map","MAX_SEED_LENGTH","PUBLIC_KEY_LENGTH","PublicKeyInitData","Uint8Array","Array","PublicKeyData","PublicKey","Symbol","toStringTag","Promise","value","unique","default","equals","publicKey","toBase58","toJSON","toBytes","toBuffer","toString","createWithSeed","fromPublicKey","seed","programId","createProgramAddressSync","seeds","createProgramAddress","findProgramAddressSync","findProgramAddress","isOnCurve","pubkeyData","Account","secretKey","Blockhash","BPF_LOADER_DEPRECATED_PROGRAM_ID","EpochSchedule","slotsPerEpoch","leaderScheduleSlotOffset","warmup","firstNormalEpoch","firstNormalSlot","getEpoch","slot","getEpochAndSlotIndex","getFirstSlotInEpoch","epoch","getLastSlotInEpoch","getSlotsInEpoch","_default","globalThis","fetch","FeeCalculator","lamportsPerSignature","NONCE_ACCOUNT_LENGTH","DurableNonce","NonceAccount","authorizedPubkey","nonce","feeCalculator","fromAccountData","buffer","Ed25519SecretKey","Ed25519Keypair","Signer","Keypair","_keypair","keypair","generate","fromSecretKey","skipValidation","options","fromSeed","PACKET_DATA_SIZE","VERSION_PREFIX_MASK","SIGNATURE_LENGTH_IN_BYTES","TransactionExpiredBlockheightExceededError","Error","signature","TransactionExpiredTimeoutError","timeoutSeconds","TransactionExpiredNonceInvalidError","AccountKeysFromLookups","LoadedAddresses","MessageAccountKeys","TransactionInstruction","MessageCompiledInstruction","staticAccountKeys","accountKeysFromLookups","keySegments","get","index","length","compileInstructions","instructions","CompiledInstruction","programIdIndex","accounts","MessageArgs","MessageHeader","header","accountKeys","recentBlockhash","CompileLegacyArgs","payerKey","Message","MessageAddressTableLookup","indexToProgramIds","args","version","compiledInstructions","addressTableLookups","getAccountKeys","compile","isAccountSigner","isAccountWritable","isProgramId","programIds","nonProgramIds","serialize","from","AddressLookupTableState","deactivationSlot","lastExtendedSlot","lastExtendedSlotStartIndex","authority","addresses","AddressLookupTableAccountArgs","key","state","AddressLookupTableAccount","isActive","deserialize","accountData","CreateLookupTableParams","payer","recentSlot","FreezeLookupTableParams","lookupTable","ExtendLookupTableParams","DeactivateLookupTableParams","CloseLookupTableParams","recipient","LookupTableInstructionType","AddressLookupTableInstruction","decodeInstructionType","instruction","decodeCreateLookupTable","decodeExtendLookupTable","decodeCloseLookupTable","decodeFreezeLookupTable","decodeDeactivateLookupTable","AddressLookupTableProgram","createLookupTable","params","freezeLookupTable","extendLookupTable","deactivateLookupTable","closeLookupTable","ComputeBudgetInstruction","ComputeBudgetInstructionType","RequestUnitsParams","RequestHeapFrameParams","SetComputeUnitLimitParams","SetComputeUnitPriceParams","decodeRequestUnits","decodeRequestHeapFrame","decodeSetComputeUnitLimit","decodeSetComputeUnitPrice","units","additionalFee","bytes","microLamports","ComputeBudgetProgram","requestUnits","requestHeapFrame","setComputeUnitLimit","setComputeUnitPrice","CreateEd25519InstructionWithPublicKeyParams","message","instructionIndex","CreateEd25519InstructionWithPrivateKeyParams","privateKey","Ed25519Program","createInstructionWithPublicKey","createInstructionWithPrivateKey","CreateSecp256k1InstructionWithPublicKeyParams","recoveryId","CreateSecp256k1InstructionWithEthAddressParams","ethAddress","CreateSecp256k1InstructionWithPrivateKeyParams","Secp256k1Program","publicKeyToEthAddress","createInstructionWithEthAddress","STAKE_CONFIG_ID","Authorized","staker","withdrawer","Lockup","unixTimestamp","custodian","CreateStakeAccountParams","fromPubkey","stakePubkey","authorized","lockup","lamports","CreateStakeAccountWithSeedParams","basePubkey","InitializeStakeParams","DelegateStakeParams","votePubkey","AuthorizeStakeParams","StakeAuthorizationType","newAuthorizedPubkey","stakeAuthorizationType","custodianPubkey","AuthorizeWithSeedStakeParams","authorityBase","authoritySeed","authorityOwner","SplitStakeParams","splitStakePubkey","SplitStakeWithSeedParams","WithdrawStakeParams","toPubkey","DeactivateStakeParams","MergeStakeParams","sourceStakePubKey","StakeInstruction","StakeInstructionType","decodeInitialize","decodeDelegate","decodeAuthorize","decodeAuthorizeWithSeed","decodeSplit","decodeMerge","decodeWithdraw","decodeDeactivate","StakeAuthorizationLayout","Readonly","Staker","Withdrawer","StakeProgram","Transaction","space","initialize","createAccountWithSeed","createAccount","delegate","authorize","authorizeWithSeed","split","rentExemptReserve","splitWithSeed","merge","withdraw","deactivate","CreateAccountParams","newAccountPubkey","TransferParams","AssignParams","accountPubkey","CreateAccountWithSeedParams","CreateNonceAccountParams","noncePubkey","CreateNonceAccountWithSeedParams","InitializeNonceParams","AdvanceNonceParams","WithdrawNonceParams","AuthorizeNonceParams","AllocateParams","AllocateWithSeedParams","AssignWithSeedParams","TransferWithSeedParams","DecodedTransferInstruction","DecodedTransferWithSeedInstruction","SystemInstruction","SystemInstructionType","decodeCreateAccount","decodeTransfer","decodeTransferWithSeed","decodeAllocate","decodeAllocateWithSeed","decodeAssign","decodeAssignWithSeed","decodeCreateWithSeed","decodeNonceInitialize","decodeNonceAdvance","decodeNonceWithdraw","decodeNonceAuthorize","SystemProgram","transfer","assign","createNonceAccount","nonceInitialize","nonceAdvance","nonceWithdraw","nonceAuthorize","allocate","VoteInit","nodePubkey","authorizedVoter","authorizedWithdrawer","commission","CreateVoteAccountParams","voteInit","InitializeAccountParams","AuthorizeVoteParams","VoteAuthorizationType","voteAuthorizationType","AuthorizeVoteWithSeedParams","currentAuthorityDerivedKeyBasePubkey","currentAuthorityDerivedKeyOwnerPubkey","currentAuthorityDerivedKeySeed","WithdrawFromVoteAccountParams","authorizedWithdrawerPubkey","UpdateValidatorIdentityParams","VoteInstruction","VoteInstructionType","decodeInitializeAccount","VoteAuthorizationLayout","Voter","VoteProgram","initializeAccount","safeWithdraw","currentVoteAccountBalance","rentExemptMinimum","updateValidatorIdentity","MessageV0Args","CompileV0Args","addressLookupTableAccounts","GetAccountKeysArgs","MessageV0","numAccountKeysFromLookups","resolveAddressTableLookups","serializeInstructions","serializeAddressTableLookups","serializedMessage","VersionedMessage","deserializeMessageVersion","numRequiredSignatures","numReadonlySignedAccounts","numReadonlyUnsignedAccounts","accountKey","writableIndexes","readonlyIndexes","accountKeyIndexes","TransactionSignature","TransactionStatus","BLOCKHEIGHT_EXCEEDED","PROCESSED","TIMED_OUT","NONCE_INVALID","AccountMeta","pubkey","isSigner","isWritable","TransactionInstructionCtorFields","keys","SerializeConfig","requireAllSignatures","verifySignatures","opts","SignaturePubkeyPair","TransactionCtorFields_DEPRECATED","NonceInformation","nonceInfo","feePayer","signatures","TransactionCtorFields","TransactionBlockhashCtor","blockhash","lastValidBlockHeight","TransactionNonceCtor","minContextSlot","nonceInstruction","Connection","minNonceContextSlot","add","items","compileMessage","serializeMessage","getEstimatedFee","connection","setSigners","signers","sign","partialSign","addSignature","config","populate","TransactionMessageArgs","DecompileArgs","TransactionMessage","decompile","compileToLegacyMessage","compileToV0Message","TransactionVersion","VersionedTransaction","serializedTransaction","ClientSubscriptionId","TokenAccountsFilter","mint","Context","SendOptions","Commitment","skipPreflight","preflightCommitment","maxRetries","ConfirmOptions","commitment","ConfirmedSignaturesForAddress2Options","before","until","limit","SignaturesForAddressOptions","RpcResponseAndContext","T","context","BlockhashWithExpiryBlockHeight","BlockheightBasedTransactionConfirmationStrategy","BaseTransactionConfirmationStrategy","DurableNonceTransactionConfirmationStrategy","nonceAccountPubkey","nonceValue","AbortSignal","abortSignal","TransactionConfirmationStrategy","Finality","LargestAccountsFilter","GetAccountInfoConfig","DataSlice","dataSlice","GetBalanceConfig","GetBlockConfig","rewards","transactionDetails","GetVersionedBlockConfig","maxSupportedTransactionVersion","GetStakeMinimumDelegationConfig","GetBlockHeightConfig","GetEpochInfoConfig","GetInflationRewardConfig","GetLatestBlockhashConfig","IsBlockhashValidConfig","GetSlotConfig","GetSlotLeaderConfig","GetTransactionConfig","GetVersionedTransactionConfig","GetLargestAccountsConfig","filter","GetSupplyConfig","excludeNonCirculatingAccountsList","SignatureStatusConfig","searchTransactionHistory","ContactInfo","gossip","tpu","rpc","VoteAccountInfo","activatedStake","epochVoteAccount","epochCredits","lastVote","VoteAccountStatus","current","delinquent","InflationGovernor","foundation","foundationTerm","initial","taper","terminal","InflationReward","effectiveSlot","amount","postBalance","RecentPrioritizationFees","prioritizationFee","GetRecentPrioritizationFeesConfig","lockedWritableAccounts","InflationRate","total","validator","EpochInfo","slotIndex","slotsInEpoch","absoluteSlot","blockHeight","transactionCount","LeaderSchedule","address","Version","SimulatedTransactionAccountInfo","executable","owner","rentEpoch","TransactionReturnDataEncoding","TransactionReturnData","SimulateTransactionConfig","sigVerify","replaceRecentBlockhash","encoding","innerInstructions","SimulatedTransactionResponse","TransactionError","ParsedInnerInstruction","err","logs","unitsConsumed","returnData","ParsedInstruction","PartiallyDecodedInstruction","TokenBalance","TokenAmount","accountIndex","uiTokenAmount","ParsedConfirmedTransactionMeta","ParsedTransactionMeta","writable","readonly","fee","preBalances","postBalances","logMessages","preTokenBalances","postTokenBalances","loadedAddresses","computeUnitsConsumed","costUnits","CompiledInnerInstruction","ConfirmedTransactionMeta","TransactionResponse","transaction","meta","blockTime","VersionedTransactionResponse","ConfirmedTransaction","ParsedMessageAccount","signer","source","program","parsed","ParsedAddressTableLookup","ParsedMessage","ParsedTransaction","ParsedConfirmedTransaction","ParsedTransactionWithMeta","BlockResponse","previousBlockhash","parentSlot","transactions","rewardType","AccountsModeBlockResponse","VersionedAccountsModeBlockResponse","NoneModeBlockResponse","VersionedNoneModeBlockResponse","ParsedBlockResponse","ParsedAccountsModeBlockResponse","Omit","Pick","ParsedNoneModeBlockResponse","VersionedBlockResponse","ConfirmedBlock","BlockSignatures","BlockProduction","ReadonlyArray","Record","byIdentity","range","firstSlot","lastSlot","GetBlockProductionConfig","identity","PerfSample","numTransactions","numSlots","samplePeriodSecs","Supply","circulating","nonCirculating","nonCirculatingAccounts","decimals","uiAmount","uiAmountString","TokenAccountBalancePair","AccountBalancePair","SlotUpdate","type","timestamp","parent","stats","numTransactionEntries","numSuccessfulTransactions","numFailedTransactions","maxTransactionsPerEntry","SlotInfo","root","ParsedAccountData","StakeActivationData","active","inactive","offset","MemcmpFilter","memcmp","DataSizeFilter","dataSize","GetProgramAccountsFilter","GetProgramAccountsConfig","filters","withContext","GetProgramAccountsResponse","AccountInfo","account","GetParsedProgramAccountsConfig","GetMultipleAccountsConfig","GetStakeActivationConfig","GetTokenAccountsByOwnerConfig","GetTransactionCountConfig","GetNonceConfig","GetNonceAndContextConfig","AccountSubscriptionConfig","ProgramAccountSubscriptionConfig","KeyedAccountInfo","accountId","accountInfo","AccountChangeCallback","ProgramAccountChangeCallback","keyedAccountInfo","SlotChangeCallback","slotInfo","SlotUpdateCallback","slotUpdate","SignatureResultCallback","SignatureResult","signatureResult","SignatureStatusNotification","result","SignatureReceivedNotification","SignatureSubscriptionCallback","notification","SignatureSubscriptionOptions","enableReceivedNotification","RootChangeCallback","Logs","LogsFilter","LogsCallback","ctx","TransactionConfirmationStatus","SignatureStatus","confirmations","confirmationStatus","ConfirmedSignatureInfo","memo","HttpHeaders","FetchFn","FetchMiddleware","Parameters","info","init","a","ConnectionConfig","httpAgent","wsEndpoint","httpHeaders","fetchMiddleware","disableRetryOnRateLimit","confirmTransactionInitialTimeout","endpoint","commitmentOrConfig","rpcEndpoint","getBalanceAndContext","getBalance","getBlockTime","getMinimumLedgerSlot","getFirstAvailableBlock","getSupply","getTokenSupply","tokenMintAddress","getTokenAccountBalance","tokenAddress","getTokenAccountsByOwner","ownerAddress","getParsedTokenAccountsByOwner","getLargestAccounts","getTokenLargestAccounts","mintAddress","getAccountInfoAndContext","getParsedAccountInfo","getAccountInfo","getMultipleParsedAccounts","publicKeys","rawConfig","getMultipleAccountsInfoAndContext","getMultipleAccountsInfo","getStakeActivation","getProgramAccounts","configOrCommitment","getParsedProgramAccounts","confirmTransaction","strategy","getCancellationPromise","getTransactionConfirmationPromise","confirmTransactionUsingBlockHeightExceedanceStrategy","confirmTransactionUsingDurableNonceStrategy","confirmTransactionUsingLegacyTimeoutStrategy","getClusterNodes","getVoteAccounts","getSlot","getSlotLeader","getSlotLeaders","startSlot","getSignatureStatus","getSignatureStatuses","getTransactionCount","getTotalSupply","getInflationGovernor","getInflationReward","getInflationRate","getEpochInfo","getEpochSchedule","getLeaderSchedule","getMinimumBalanceForRentExemption","dataLength","getRecentBlockhashAndContext","getRecentPerformanceSamples","getFeeCalculatorForBlockhash","getFeeForMessage","getRecentPrioritizationFees","getRecentBlockhash","getLatestBlockhash","getLatestBlockhashAndContext","isBlockhashValid","getVersion","getGenesisHash","getBlock","getParsedBlock","getBlockHeight","getBlockProduction","getTransaction","getParsedTransaction","getParsedTransactions","getTransactions","getConfirmedBlock","getBlocks","endSlot","getBlockSignatures","getConfirmedBlockSignatures","getConfirmedTransaction","getParsedConfirmedTransaction","getParsedConfirmedTransactions","getConfirmedSignaturesForAddress","getConfirmedSignaturesForAddress2","getSignaturesForAddress","getAddressLookupTable","getNonceAndContext","nonceAccount","getNonce","requestAirdrop","to","getStakeMinimumDelegation","simulateTransaction","transactionOrMessage","includeAccounts","sendTransaction","sendRawTransaction","rawTransaction","sendEncodedTransaction","encodedTransaction","onAccountChange","callback","removeAccountChangeListener","clientSubscriptionId","onProgramAccountChange","removeProgramAccountChangeListener","onLogs","removeOnLogsListener","onSlotChange","removeSlotChangeListener","onSlotUpdate","removeSlotUpdateListener","_buildArgs","override","extra","onSignature","onSignatureWithOptions","removeSignatureListener","onRootChange","removeRootChangeListener","BPF_LOADER_PROGRAM_ID","BpfLoader","getMinNumSignatures","load","elf","loaderProgramId","SendTransactionError","action","transactionMessage","transactionLogs","transactionError","getLogs","SolanaJSONRPCErrorCode","JSON_RPC_SERVER_ERROR_BLOCK_CLEANED_UP","JSON_RPC_SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE","JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_VERIFICATION_FAILURE","JSON_RPC_SERVER_ERROR_BLOCK_NOT_AVAILABLE","JSON_RPC_SERVER_ERROR_NODE_UNHEALTHY","JSON_RPC_SERVER_ERROR_TRANSACTION_PRECOMPILE_VERIFICATION_FAILURE","JSON_RPC_SERVER_ERROR_SLOT_SKIPPED","JSON_RPC_SERVER_ERROR_NO_SNAPSHOT","JSON_RPC_SERVER_ERROR_LONG_TERM_STORAGE_SLOT_SKIPPED","JSON_RPC_SERVER_ERROR_KEY_EXCLUDED_FROM_SECONDARY_INDEX","JSON_RPC_SERVER_ERROR_TRANSACTION_HISTORY_NOT_AVAILABLE","JSON_RPC_SCAN_ERROR","JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_LEN_MISMATCH","JSON_RPC_SERVER_ERROR_BLOCK_STATUS_NOT_AVAILABLE_YET","JSON_RPC_SERVER_ERROR_UNSUPPORTED_TRANSACTION_VERSION","JSON_RPC_SERVER_ERROR_MIN_CONTEXT_SLOT_NOT_REACHED","SolanaJSONRPCErrorCodeEnum","SolanaJSONRPCError","code","customMessage","Loader","chunkSize","VALIDATOR_INFO_KEY","Info","name","website","details","iconUrl","keybaseUsername","ValidatorInfo","fromConfigData","VOTE_PROGRAM_ID","Lockout","confirmationCount","EpochCredits","credits","prevCredits","AuthorizedVoter","PriorVoter","epochOfLastAuthorizedSwitch","targetEpoch","BlockTimestamp","VoteAccount","rootSlot","votes","authorizedVoters","priorVoters","lastTimestamp","SYSVAR_CLOCK_PUBKEY","SYSVAR_EPOCH_SCHEDULE_PUBKEY","SYSVAR_INSTRUCTIONS_PUBKEY","SYSVAR_RECENT_BLOCKHASHES_PUBKEY","SYSVAR_RENT_PUBKEY","SYSVAR_REWARDS_PUBKEY","SYSVAR_SLOT_HASHES_PUBKEY","SYSVAR_SLOT_HISTORY_PUBKEY","SYSVAR_STAKE_HISTORY_PUBKEY","Cluster","clusterApiUrl","cluster","tls","sendAndConfirmRawTransaction","confirmationStrategy","sendAndConfirmTransaction","LAMPORTS_PER_SOL"],"sources":["../../src/mwaSessionEvents.ts","../../src/resolve.ts","../../../../node_modules/.pnpm/@solana+web3.js@1.98.4_bufferutil@4.1.0_typescript@5.6.3_utf-8-validate@5.0.10/node_modules/@solana/web3.js/lib/index.d.ts","../../src/initializeMobileWalletAdapterSession.ts","../../src/useMobileWalletAdapterSession.ts","../../src/initializeMWAEventListener.ts","../../src/useDigitalAssetLinks.ts","../../src/errors.ts"],"x_google_ignoreList":[2],"mappings":";;;;;;;;aAIY,mBAAA;EACR,iBAAA;EACA,iBAAA;EACA,sBAAA;EACA,0BAAA;EACA,2BAAA;EACA,oBAAA;EACA,iBAAA;EACA,4BAAA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,EAAc,eAAA,YACpC,mBAAA;;;iBCgBmB,iBAAA,CAAA,GAAqB,OAAA;AAAA,iBAIrB,oBAAA,CAAqB,iBAAA,WAAyB,OAAA;AAAA,iBAI9C,oBAAA,CAAA,GAAoB,OAAA;AAAA,iBAIpB,gBAAA,CAAiB,WAAA,WAAmB,OAAA;;;aCtC9C,2BAAA;EACR,2BAAA;EACA,6BAAA;EACA,iCAAA;EACA,kCAAA;AAAA;AAAA,cAGS,uBAAA,SAAgC,KAAA;EACzC,IAAA,EAAM,2BAAA;cACM,IAAA,EAAM,2BAAA,EAA6B,OAAA;AAAA"}
|
package/package.json
CHANGED
|
@@ -1,48 +1,51 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
},
|
|
13
|
-
"react-native": "./lib/cjs/index.native.js",
|
|
14
|
-
"types": "./lib/types/index.d.ts"
|
|
2
|
+
"name": "@solana-mobile/mobile-wallet-adapter-walletlib",
|
|
3
|
+
"description": "A React Native wrapper of the Solana Mobile, Mobile Wallet Adapter Wallet Library. Wallet apps can use this to handle dapp requests for signing and sending.",
|
|
4
|
+
"version": "1.4.2",
|
|
5
|
+
"author": "Michael Sulistio <mike.sulistio@solanamobile.com>",
|
|
6
|
+
"repository": "https://github.com/solana-mobile/mobile-wallet-adapter",
|
|
7
|
+
"license": "Apache-2.0",
|
|
8
|
+
"exports": {
|
|
9
|
+
"node": {
|
|
10
|
+
"import": "./lib/esm/index.js",
|
|
11
|
+
"require": "./lib/cjs/index.js"
|
|
15
12
|
},
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
13
|
+
"react-native": "./lib/cjs/index.native.js",
|
|
14
|
+
"types": "./lib/types/index.d.ts"
|
|
15
|
+
},
|
|
16
|
+
"main": "lib/esm/index",
|
|
17
|
+
"module": "lib/esm/index",
|
|
18
|
+
"react-native": "lib/esm/index",
|
|
19
|
+
"types": "lib/types/index.d.ts",
|
|
20
|
+
"type": "module",
|
|
21
|
+
"files": [
|
|
22
|
+
"lib",
|
|
23
|
+
"android",
|
|
24
|
+
"LICENSE"
|
|
25
|
+
],
|
|
26
|
+
"sideEffects": false,
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@solana/web3.js": "^1.98.4",
|
|
32
|
+
"@types/react": "^19.2.0",
|
|
33
|
+
"@types/react-native": "^0.69.3",
|
|
34
|
+
"@wallet-standard/core": "^1.1.1",
|
|
35
|
+
"react": "^19.2.3",
|
|
36
|
+
"cross-env": "^10.1.0",
|
|
37
|
+
"shx": "^0.4.0"
|
|
38
|
+
},
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"react-native": ">0.74"
|
|
41
|
+
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"clean": "shx rm -rf lib/*",
|
|
44
|
+
"build": "pnpm clean && tsdown --config tsdown.config.ts",
|
|
45
|
+
"build:watch": "pnpm clean && tsdown --config tsdown.config.ts --watch",
|
|
46
|
+
"check-types": "tsc -p tsconfig.json --noEmit",
|
|
47
|
+
"postbuild": "printf '%s' '{\"type\":\"module\"}' > lib/esm/package.json",
|
|
48
|
+
"example": "pnpm --cwd example",
|
|
49
|
+
"bootstrap": "pnpm example && pnpm install && pnpm example pods"
|
|
50
|
+
}
|
|
51
|
+
}
|