@solana-mobile/mobile-wallet-adapter-walletlib 1.4.0-beta1 → 1.4.0-beta2
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 +3 -3
- package/lib/types/index.d.ts +1 -1
- package/lib/types/index.native.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
initializeMWAEventListener,
|
|
20
20
|
MWARequest,
|
|
21
21
|
MWASessionEvent,
|
|
22
|
-
} from '@solana-mobile/mobile-wallet-adapter-
|
|
22
|
+
} from '@solana-mobile/mobile-wallet-adapter-walletlib';
|
|
23
23
|
|
|
24
24
|
const listener: EmitterSubscription = initializeMWAEventListener(
|
|
25
25
|
(request: MWARequest) => { /* ... */ },
|
|
@@ -113,7 +113,7 @@ An example of handling an `AuthorizationRequest`:
|
|
|
113
113
|
```typescript
|
|
114
114
|
import {
|
|
115
115
|
AuthorizeDappResponse
|
|
116
|
-
} from '@solana-mobile/mobile-wallet-adapter-
|
|
116
|
+
} from '@solana-mobile/mobile-wallet-adapter-walletlib';
|
|
117
117
|
|
|
118
118
|
const response = {
|
|
119
119
|
publicKey: Keypair.generate().publicKey.toBytes(),
|
|
@@ -127,7 +127,7 @@ There are a a selection of "fail" responses that you can return to the dApp. The
|
|
|
127
127
|
```typescript
|
|
128
128
|
import {
|
|
129
129
|
UserDeclinedResponse
|
|
130
|
-
} from '@solana-mobile/mobile-wallet-adapter-
|
|
130
|
+
} from '@solana-mobile/mobile-wallet-adapter-walletlib';
|
|
131
131
|
|
|
132
132
|
const response = {
|
|
133
133
|
failReason: MWARequestFailReason.UserDeclined,
|
package/lib/types/index.d.ts
CHANGED
|
@@ -151,7 +151,7 @@ type InvalidSignaturesResponse = Readonly<{
|
|
|
151
151
|
}>;
|
|
152
152
|
/* Authorize Dapp */
|
|
153
153
|
type AuthorizedAccount = Readonly<{
|
|
154
|
-
publicKey:
|
|
154
|
+
publicKey: Uint8Array;
|
|
155
155
|
accountLabel?: string;
|
|
156
156
|
icon?: string;
|
|
157
157
|
chains?: IdentifierArray;
|
|
@@ -151,7 +151,7 @@ type InvalidSignaturesResponse = Readonly<{
|
|
|
151
151
|
}>;
|
|
152
152
|
/* Authorize Dapp */
|
|
153
153
|
type AuthorizedAccount = Readonly<{
|
|
154
|
-
publicKey:
|
|
154
|
+
publicKey: Uint8Array;
|
|
155
155
|
accountLabel?: string;
|
|
156
156
|
icon?: string;
|
|
157
157
|
chains?: IdentifierArray;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solana-mobile/mobile-wallet-adapter-walletlib",
|
|
3
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.0-
|
|
4
|
+
"version": "1.4.0-beta2",
|
|
5
5
|
"author": "Michael Sulistio <mike.sulistio@solanamobile.com>",
|
|
6
6
|
"repository": "https://github.com/solana-mobile/mobile-wallet-adapter",
|
|
7
7
|
"license": "Apache-2.0",
|