zigap-utils 0.0.2 → 0.0.22

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 CHANGED
@@ -19,6 +19,7 @@ const App = () => {
19
19
  return (
20
20
  <div>
21
21
  <LoginQR
22
+ dapp='Mintus'
22
23
  validTime={10}
23
24
  sigMessage="hello world"
24
25
  onReceive={({ isSuccess, address })=>{
@@ -40,6 +41,7 @@ const App = () => {
40
41
 
41
42
  | prop | required | type | default value | description |
42
43
  | ------------ | :------: | --------------- | ------------- | -------------------------------------------------- |
44
+ | `dapp` | true | string | | Name of the dapp to use |
43
45
  | `sigMessage` | true | string | | Messages signed to verify the identity of the user |
44
46
  | `validTime` | true | number | | QR code valid time(minutes) |
45
47
  | `onReceive` | true | (value) => void | | Function called after login request |
@@ -52,12 +54,12 @@ const App = () => {
52
54
 
53
55
  ### `AddressProvideQR` props
54
56
 
55
- | prop | required | type | default value | description |
56
- | ------------ | :------: | --------------- | ------------- | -------------------------------------------------- |
57
- | `sigMessage` | true | string | | Messages signed to verify the identity of the user |
58
- | `validTime` | true | number | | QR code valid time(minutes) |
59
- | `onReceive` | true | (value) => void | | Function called after login request |
60
- | `size` | false | number | 128 | canvas width |
61
- | `bgColor` | false | string | #fff | background color |
62
- | `fgColor` | false | string | #000 | foreground color |
63
- | `style` | false | CSSProperties | | custom css style |
57
+ | prop | required | type | default value | description |
58
+ | ----------- | :------: | --------------- | ------------- | ----------------------------------- |
59
+ | `dapp` | true | string | | Name of the dapp to use |
60
+ | `validTime` | true | number | | QR code valid time(minutes) |
61
+ | `onReceive` | true | (value) => void | | Function called after login request |
62
+ | `size` | false | number | 128 | canvas width |
63
+ | `bgColor` | false | string | #fff | background color |
64
+ | `fgColor` | false | string | #000 | foreground color |
65
+ | `style` | false | CSSProperties | | custom css style |
@@ -1,4 +1,4 @@
1
1
  import { AddressProvideQRProps } from './AddressProvideQR.types';
2
2
 
3
- declare const AddressProvideQR: ({ validTime, onReceive, ...props }: AddressProvideQRProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const AddressProvideQR: ({ dapp, validTime, onReceive, ...props }: AddressProvideQRProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default AddressProvideQR;
@@ -5,6 +5,7 @@ export type AddressProvideResultType = {
5
5
  address?: string;
6
6
  };
7
7
  export type AddressProvideQRProps = {
8
+ dapp: string;
8
9
  validTime: number;
9
10
  onReceive: (result: AddressProvideResultType) => void;
10
11
  size?: number;
@@ -1,4 +1,4 @@
1
1
  import { LoginQRProps } from './LoginQR.types';
2
2
 
3
- declare const LoginQR: ({ sigMessage, validTime, onReceive, ...props }: LoginQRProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const LoginQR: ({ dapp, sigMessage, validTime, onReceive, ...props }: LoginQRProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default LoginQR;
@@ -5,6 +5,7 @@ export type LoginResultType = {
5
5
  address?: string;
6
6
  };
7
7
  export type LoginQRProps = {
8
+ dapp: string;
8
9
  sigMessage: string;
9
10
  validTime: number;
10
11
  onReceive: (result: LoginResultType) => void;