@reown/appkit-common-react-native 0.0.0-chore-spring-effect-20250909214820 → 0.0.0-chore-examples-20251009175707

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.
Files changed (118) hide show
  1. package/lib/commonjs/adapters/BitcoinBaseAdapter.js +10 -0
  2. package/lib/commonjs/adapters/BitcoinBaseAdapter.js.map +1 -0
  3. package/lib/commonjs/adapters/BlockchainAdapter.js +14 -5
  4. package/lib/commonjs/adapters/BlockchainAdapter.js.map +1 -1
  5. package/lib/commonjs/adapters/EvmAdapter.js +2 -2
  6. package/lib/commonjs/adapters/EvmAdapter.js.map +1 -1
  7. package/lib/commonjs/adapters/SolanaBaseAdapter.js.map +1 -1
  8. package/lib/commonjs/index.js +9 -1
  9. package/lib/commonjs/index.js.map +1 -1
  10. package/lib/commonjs/types/index.js +4 -4
  11. package/lib/commonjs/types/index.js.map +1 -1
  12. package/lib/commonjs/types/{siwe → siwx}/config.js.map +1 -1
  13. package/lib/commonjs/types/{siwe → siwx}/index.js +22 -0
  14. package/lib/commonjs/types/siwx/index.js.map +1 -0
  15. package/lib/commonjs/types/{siwe → siwx}/message.js.map +1 -1
  16. package/lib/commonjs/types/siwx/storage.js +6 -0
  17. package/lib/commonjs/types/siwx/storage.js.map +1 -0
  18. package/lib/commonjs/types/siwx/verifier.js +35 -0
  19. package/lib/commonjs/types/siwx/verifier.js.map +1 -0
  20. package/lib/commonjs/types/storage.js +22 -0
  21. package/lib/commonjs/types/storage.js.map +1 -1
  22. package/lib/commonjs/types/wallet/connector.js.map +1 -1
  23. package/lib/commonjs/utils/ConstantsUtil.js +10 -17
  24. package/lib/commonjs/utils/ConstantsUtil.js.map +1 -1
  25. package/lib/module/adapters/BitcoinBaseAdapter.js +5 -0
  26. package/lib/module/adapters/BitcoinBaseAdapter.js.map +1 -0
  27. package/lib/module/adapters/BlockchainAdapter.js +14 -5
  28. package/lib/module/adapters/BlockchainAdapter.js.map +1 -1
  29. package/lib/module/adapters/EvmAdapter.js +2 -2
  30. package/lib/module/adapters/EvmAdapter.js.map +1 -1
  31. package/lib/module/index.js +1 -0
  32. package/lib/module/index.js.map +1 -1
  33. package/lib/module/types/index.js +2 -2
  34. package/lib/module/types/{siwe → siwx}/config.js.map +1 -1
  35. package/lib/module/types/siwx/index.js +7 -0
  36. package/lib/module/types/siwx/index.js.map +1 -0
  37. package/lib/module/types/{siwe → siwx}/message.js.map +1 -1
  38. package/lib/module/types/siwx/storage.js +4 -0
  39. package/lib/module/types/siwx/storage.js.map +1 -0
  40. package/lib/module/types/siwx/verifier.js +30 -0
  41. package/lib/module/types/siwx/verifier.js.map +1 -0
  42. package/lib/module/types/storage.js +18 -0
  43. package/lib/module/types/storage.js.map +1 -1
  44. package/lib/module/types/wallet/connector.js.map +1 -1
  45. package/lib/module/utils/ConstantsUtil.js +10 -17
  46. package/lib/module/utils/ConstantsUtil.js.map +1 -1
  47. package/lib/typescript/adapters/BitcoinBaseAdapter.d.ts +5 -0
  48. package/lib/typescript/adapters/BitcoinBaseAdapter.d.ts.map +1 -0
  49. package/lib/typescript/adapters/BlockchainAdapter.d.ts.map +1 -1
  50. package/lib/typescript/adapters/EvmAdapter.d.ts +1 -1
  51. package/lib/typescript/adapters/EvmAdapter.d.ts.map +1 -1
  52. package/lib/typescript/adapters/SolanaBaseAdapter.d.ts +1 -0
  53. package/lib/typescript/adapters/SolanaBaseAdapter.d.ts.map +1 -1
  54. package/lib/typescript/index.d.ts +1 -0
  55. package/lib/typescript/index.d.ts.map +1 -1
  56. package/lib/typescript/types/api/events.d.ts +76 -23
  57. package/lib/typescript/types/api/events.d.ts.map +1 -1
  58. package/lib/typescript/types/blockchain/balance.d.ts +1 -1
  59. package/lib/typescript/types/blockchain/balance.d.ts.map +1 -1
  60. package/lib/typescript/types/blockchain/network.d.ts +1 -1
  61. package/lib/typescript/types/blockchain/network.d.ts.map +1 -1
  62. package/lib/typescript/types/common.d.ts +1 -1
  63. package/lib/typescript/types/common.d.ts.map +1 -1
  64. package/lib/typescript/types/index.d.ts +1 -1
  65. package/lib/typescript/types/siwx/config.d.ts +73 -0
  66. package/lib/typescript/types/siwx/config.d.ts.map +1 -0
  67. package/lib/typescript/types/siwx/index.d.ts +5 -0
  68. package/lib/typescript/types/siwx/index.d.ts.map +1 -0
  69. package/lib/typescript/types/siwx/message.d.ts +92 -0
  70. package/lib/typescript/types/siwx/message.d.ts.map +1 -0
  71. package/lib/typescript/types/siwx/storage.d.ts +41 -0
  72. package/lib/typescript/types/siwx/storage.d.ts.map +1 -0
  73. package/lib/typescript/types/siwx/verifier.d.ts +28 -0
  74. package/lib/typescript/types/siwx/verifier.d.ts.map +1 -0
  75. package/lib/typescript/types/storage.d.ts +32 -0
  76. package/lib/typescript/types/storage.d.ts.map +1 -1
  77. package/lib/typescript/types/wallet/connector.d.ts +0 -2
  78. package/lib/typescript/types/wallet/connector.d.ts.map +1 -1
  79. package/lib/typescript/types/wallet/wallet-info.d.ts +1 -0
  80. package/lib/typescript/types/wallet/wallet-info.d.ts.map +1 -1
  81. package/lib/typescript/utils/ConstantsUtil.d.ts +9 -14
  82. package/lib/typescript/utils/ConstantsUtil.d.ts.map +1 -1
  83. package/package.json +4 -3
  84. package/src/adapters/BitcoinBaseAdapter.ts +5 -0
  85. package/src/adapters/BlockchainAdapter.ts +15 -5
  86. package/src/adapters/EvmAdapter.ts +2 -2
  87. package/src/adapters/SolanaBaseAdapter.ts +1 -0
  88. package/src/index.ts +1 -0
  89. package/src/types/api/events.ts +95 -27
  90. package/src/types/blockchain/balance.ts +1 -1
  91. package/src/types/blockchain/network.ts +1 -1
  92. package/src/types/common.ts +1 -1
  93. package/src/types/index.ts +2 -2
  94. package/src/types/siwx/config.ts +73 -0
  95. package/src/types/siwx/index.ts +4 -0
  96. package/src/types/siwx/message.ts +92 -0
  97. package/src/types/siwx/storage.ts +44 -0
  98. package/src/types/siwx/verifier.ts +32 -0
  99. package/src/types/storage.ts +34 -0
  100. package/src/types/wallet/connector.ts +0 -2
  101. package/src/types/wallet/wallet-info.ts +1 -0
  102. package/src/utils/ConstantsUtil.ts +11 -17
  103. package/lib/commonjs/types/siwe/index.js.map +0 -1
  104. package/lib/module/types/siwe/index.js +0 -6
  105. package/lib/module/types/siwe/index.js.map +0 -1
  106. package/lib/typescript/types/siwe/config.d.ts +0 -31
  107. package/lib/typescript/types/siwe/config.d.ts.map +0 -1
  108. package/lib/typescript/types/siwe/index.d.ts +0 -3
  109. package/lib/typescript/types/siwe/index.d.ts.map +0 -1
  110. package/lib/typescript/types/siwe/message.d.ts +0 -57
  111. package/lib/typescript/types/siwe/message.d.ts.map +0 -1
  112. package/src/types/siwe/config.ts +0 -44
  113. package/src/types/siwe/index.ts +0 -3
  114. package/src/types/siwe/message.ts +0 -62
  115. /package/lib/commonjs/types/{siwe → siwx}/config.js +0 -0
  116. /package/lib/commonjs/types/{siwe → siwx}/message.js +0 -0
  117. /package/lib/module/types/{siwe → siwx}/config.js +0 -0
  118. /package/lib/module/types/{siwe → siwx}/message.js +0 -0
@@ -1,31 +0,0 @@
1
- import type { SIWESession, SIWECreateMessageArgs, SIWEMessageArgs, SIWEVerifyMessageArgs } from './message';
2
- export interface SIWEClientMethods {
3
- getNonce: (address?: string) => Promise<string>;
4
- createMessage: (args: SIWECreateMessageArgs) => string;
5
- verifyMessage: (args: SIWEVerifyMessageArgs) => Promise<boolean>;
6
- getSession: () => Promise<SIWESession | null>;
7
- signOut: () => Promise<boolean>;
8
- getMessageParams?: () => Promise<SIWEMessageArgs>;
9
- onSignIn?: (session?: SIWESession) => void;
10
- onSignOut?: () => void;
11
- }
12
- export interface SIWEConfig extends SIWEClientMethods {
13
- enabled?: boolean;
14
- nonceRefetchIntervalMs?: number;
15
- sessionRefetchIntervalMs?: number;
16
- signOutOnDisconnect?: boolean;
17
- signOutOnAccountChange?: boolean;
18
- signOutOnNetworkChange?: boolean;
19
- }
20
- export interface AppKitSIWEClient extends SIWEClientMethods {
21
- signIn: () => Promise<SIWESession | undefined>;
22
- options: {
23
- enabled: boolean;
24
- nonceRefetchIntervalMs: number;
25
- sessionRefetchIntervalMs: number;
26
- signOutOnDisconnect: boolean;
27
- signOutOnAccountChange: boolean;
28
- signOutOnNetworkChange: boolean;
29
- };
30
- }
31
- //# sourceMappingURL=config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/types/siwe/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,qBAAqB,EACrB,eAAe,EACf,qBAAqB,EACtB,MAAM,WAAW,CAAC;AAEnB,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IAChD,aAAa,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,MAAM,CAAC;IACvD,aAAa,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACjE,UAAU,EAAE,MAAM,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC9C,OAAO,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,OAAO,CAAC,eAAe,CAAC,CAAC;IAClD,QAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC;IAC3C,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,UAAW,SAAQ,iBAAiB;IAEnD,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAElC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAEjC,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED,MAAM,WAAW,gBAAiB,SAAQ,iBAAiB;IACzD,MAAM,EAAE,MAAM,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC,CAAC;IAC/C,OAAO,EAAE;QACP,OAAO,EAAE,OAAO,CAAC;QACjB,sBAAsB,EAAE,MAAM,CAAC;QAC/B,wBAAwB,EAAE,MAAM,CAAC;QACjC,mBAAmB,EAAE,OAAO,CAAC;QAC7B,sBAAsB,EAAE,OAAO,CAAC;QAChC,sBAAsB,EAAE,OAAO,CAAC;KACjC,CAAC;CACH"}
@@ -1,3 +0,0 @@
1
- export * from './config';
2
- export * from './message';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/siwe/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
@@ -1,57 +0,0 @@
1
- import type { CaipAddress, CaipNetworkId } from '../common';
2
- export interface SIWESession {
3
- address: string;
4
- chainId: number;
5
- }
6
- interface CacaoHeader {
7
- t: 'caip122';
8
- }
9
- export interface SIWECreateMessageArgs {
10
- domain: string;
11
- nonce: string;
12
- uri: string;
13
- address: CaipAddress;
14
- version: '1';
15
- type?: CacaoHeader['t'];
16
- nbf?: string;
17
- exp?: string;
18
- statement?: string;
19
- requestId?: string;
20
- resources?: string[];
21
- expiry?: number;
22
- iat?: string;
23
- }
24
- export type SIWEMessageArgs = {
25
- chains: CaipNetworkId[];
26
- methods?: string[];
27
- } & Omit<SIWECreateMessageArgs, 'address' | 'nonce' | 'version'>;
28
- interface CacaoPayload {
29
- domain: string;
30
- aud: string;
31
- nonce: string;
32
- iss: string;
33
- version?: string;
34
- iat?: string;
35
- nbf?: string;
36
- exp?: string;
37
- statement?: string;
38
- requestId?: string;
39
- resources?: string[];
40
- type?: string;
41
- }
42
- interface Cacao {
43
- h: CacaoHeader;
44
- p: CacaoPayload;
45
- s: {
46
- t: 'eip191' | 'eip1271';
47
- s: string;
48
- m?: string;
49
- };
50
- }
51
- export interface SIWEVerifyMessageArgs {
52
- message: string;
53
- signature: string;
54
- cacao?: Cacao;
55
- }
56
- export {};
57
- //# sourceMappingURL=message.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../../src/types/siwe/message.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE5D,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,WAAW;IACnB,CAAC,EAAE,SAAS,CAAC;CACd;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,WAAW,CAAC;IACrB,OAAO,EAAE,GAAG,CAAC;IACb,IAAI,CAAC,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB,GAAG,IAAI,CAAC,qBAAqB,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC,CAAC;AAEjE,UAAU,YAAY;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,UAAU,KAAK;IACb,CAAC,EAAE,WAAW,CAAC;IACf,CAAC,EAAE,YAAY,CAAC;IAChB,CAAC,EAAE;QACD,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;QACxB,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,CAAC,EAAE,MAAM,CAAC;KACZ,CAAC;CACH;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf"}
@@ -1,44 +0,0 @@
1
- import type {
2
- SIWESession,
3
- SIWECreateMessageArgs,
4
- SIWEMessageArgs,
5
- SIWEVerifyMessageArgs
6
- } from './message';
7
-
8
- export interface SIWEClientMethods {
9
- getNonce: (address?: string) => Promise<string>;
10
- createMessage: (args: SIWECreateMessageArgs) => string;
11
- verifyMessage: (args: SIWEVerifyMessageArgs) => Promise<boolean>;
12
- getSession: () => Promise<SIWESession | null>;
13
- signOut: () => Promise<boolean>;
14
- getMessageParams?: () => Promise<SIWEMessageArgs>;
15
- onSignIn?: (session?: SIWESession) => void;
16
- onSignOut?: () => void;
17
- }
18
-
19
- export interface SIWEConfig extends SIWEClientMethods {
20
- // Defaults to true
21
- enabled?: boolean;
22
- // In milliseconds, defaults to 5 minutes
23
- nonceRefetchIntervalMs?: number;
24
- // In milliseconds, defaults to 5 minutes
25
- sessionRefetchIntervalMs?: number;
26
- // Defaults to true
27
- signOutOnDisconnect?: boolean;
28
- // Defaults to true
29
- signOutOnAccountChange?: boolean;
30
- // Defaults to true
31
- signOutOnNetworkChange?: boolean;
32
- }
33
-
34
- export interface AppKitSIWEClient extends SIWEClientMethods {
35
- signIn: () => Promise<SIWESession | undefined>;
36
- options: {
37
- enabled: boolean;
38
- nonceRefetchIntervalMs: number;
39
- sessionRefetchIntervalMs: number;
40
- signOutOnDisconnect: boolean;
41
- signOutOnAccountChange: boolean;
42
- signOutOnNetworkChange: boolean;
43
- };
44
- }
@@ -1,3 +0,0 @@
1
- // SIWE types barrel export
2
- export * from './config';
3
- export * from './message';
@@ -1,62 +0,0 @@
1
- import type { CaipAddress, CaipNetworkId } from '../common';
2
-
3
- export interface SIWESession {
4
- address: string;
5
- chainId: number;
6
- }
7
-
8
- interface CacaoHeader {
9
- t: 'caip122';
10
- }
11
-
12
- export interface SIWECreateMessageArgs {
13
- domain: string;
14
- nonce: string;
15
- uri: string;
16
- address: CaipAddress;
17
- version: '1';
18
- type?: CacaoHeader['t'];
19
- nbf?: string;
20
- exp?: string;
21
- statement?: string;
22
- requestId?: string;
23
- resources?: string[];
24
- expiry?: number;
25
- iat?: string;
26
- }
27
-
28
- export type SIWEMessageArgs = {
29
- chains: CaipNetworkId[];
30
- methods?: string[];
31
- } & Omit<SIWECreateMessageArgs, 'address' | 'nonce' | 'version'>;
32
-
33
- interface CacaoPayload {
34
- domain: string;
35
- aud: string;
36
- nonce: string;
37
- iss: string;
38
- version?: string;
39
- iat?: string;
40
- nbf?: string;
41
- exp?: string;
42
- statement?: string;
43
- requestId?: string;
44
- resources?: string[];
45
- type?: string;
46
- }
47
-
48
- interface Cacao {
49
- h: CacaoHeader;
50
- p: CacaoPayload;
51
- s: {
52
- t: 'eip191' | 'eip1271';
53
- s: string;
54
- m?: string;
55
- };
56
- }
57
-
58
- export interface SIWEVerifyMessageArgs {
59
- message: string;
60
- signature: string;
61
- cacao?: Cacao;
62
- }
File without changes
File without changes
File without changes
File without changes