zigap-utils 0.0.39 → 0.0.41
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 -1
- package/dist/components/AddressProvideQR/AddressProvideQR.types.d.ts +0 -1
- package/dist/components/LoginQR/LoginQR.types.d.ts +3 -7
- package/dist/index.cjs.js +11 -11
- package/dist/index.es.js +391 -499
- package/dist/util/addressProvide.d.ts +3 -3
- package/dist/util/index.d.ts +2 -2
- package/dist/util/socketService.d.ts +11 -0
- package/dist/util/types.d.ts +1 -4
- package/dist/validation/hashing.d.ts +2 -0
- package/dist/validation/token.d.ts +5 -0
- package/package.json +15 -1
- package/dist/util/test/index.d.ts +0 -1
- package/dist/util/test/test.d.ts +0 -2
- package/dist/util/test2.d.ts +0 -2
- package/dist/xphere/validation.d.ts +0 -10
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ const App = () => {
|
|
|
26
26
|
logoSize={25}
|
|
27
27
|
validTime={10}
|
|
28
28
|
sigMessage="hello world"
|
|
29
|
-
onReceive={({ isSuccess,
|
|
29
|
+
onReceive={({ isSuccess, address, network, signature, payload }) => {
|
|
30
30
|
if(isSuccess) {
|
|
31
31
|
// something to do after login
|
|
32
32
|
}
|
|
@@ -12,16 +12,12 @@ export type PayloadType = {
|
|
|
12
12
|
publicKey: string;
|
|
13
13
|
message: string;
|
|
14
14
|
};
|
|
15
|
-
export type AccountType = {
|
|
16
|
-
address: string;
|
|
17
|
-
network: string;
|
|
18
|
-
nickName: string;
|
|
19
|
-
};
|
|
20
15
|
export type LoginResultType = {
|
|
21
16
|
isSuccess: boolean;
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
address?: string;
|
|
18
|
+
network?: string;
|
|
24
19
|
signature?: string;
|
|
20
|
+
payload?: PayloadType;
|
|
25
21
|
};
|
|
26
22
|
export type LoginQRProps = {
|
|
27
23
|
availableNetworks: string[];
|