@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
@@ -0,0 +1,92 @@
1
+ import type { CaipNetworkId } from '../common';
2
+ /**
3
+ * This interface represents a SIWX session, which is used to store the user's identity information.
4
+ */
5
+ export interface SIWXSession {
6
+ data: SIWXMessage.Data;
7
+ message: string;
8
+ signature: string;
9
+ cacao?: Cacao;
10
+ }
11
+ /**
12
+ * This interface represents a SIWX message, which is used to create a message to be signed by the user.
13
+ * This must contain the necessary information to verify the user's identity and how to generate the string message.
14
+ */
15
+ export interface SIWXMessage extends SIWXMessage.Data, SIWXMessage.Methods {
16
+ }
17
+ export declare namespace SIWXMessage {
18
+ /**
19
+ * This interface represents the SIWX message data, which is used to create a message to be signed by the user.
20
+ */
21
+ interface Data extends Input, Metadata, Identifier {
22
+ }
23
+ /**
24
+ * This interface represents the SIWX message input.
25
+ * Here must contain what is different for each user of the application.
26
+ */
27
+ interface Input {
28
+ accountAddress: string;
29
+ chainId: CaipNetworkId;
30
+ notBefore?: Timestamp;
31
+ }
32
+ /**
33
+ * This interface represents the SIWX message metadata.
34
+ * Here must contain the main data related to the app.
35
+ */
36
+ interface Metadata {
37
+ domain: string;
38
+ uri: string;
39
+ version: string;
40
+ nonce: string;
41
+ statement?: string;
42
+ resources?: string[];
43
+ }
44
+ /**
45
+ * This interface represents the SIWX message identifier.
46
+ * Here must contain the request id and the timestamps.
47
+ */
48
+ interface Identifier {
49
+ requestId?: string;
50
+ issuedAt?: Timestamp;
51
+ expirationTime?: Timestamp;
52
+ }
53
+ /**
54
+ * This interface represents the SIWX message methods.
55
+ * Here must contain the method to generate the message string and any other method performed by the SIWX message.
56
+ */
57
+ interface Methods {
58
+ toString: () => string;
59
+ }
60
+ /**
61
+ * The timestamp is a UTC string representing the time in ISO 8601 format.
62
+ */
63
+ type Timestamp = string;
64
+ }
65
+ interface CacaoHeader {
66
+ t: 'caip122';
67
+ }
68
+ interface CacaoPayload {
69
+ domain: string;
70
+ aud: string;
71
+ nonce: string;
72
+ iss: string;
73
+ version?: string;
74
+ iat?: string;
75
+ nbf?: string;
76
+ exp?: string;
77
+ statement?: string;
78
+ requestId?: string;
79
+ resources?: string[];
80
+ type?: string;
81
+ }
82
+ interface Cacao {
83
+ h: CacaoHeader;
84
+ p: CacaoPayload;
85
+ s: {
86
+ t: 'eip191' | 'eip1271';
87
+ s: string;
88
+ m?: string;
89
+ };
90
+ }
91
+ export {};
92
+ //# sourceMappingURL=message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../../src/types/siwx/message.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE/C;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AACD;;;GAGG;AAC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ACnB,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"}
@@ -0,0 +1,41 @@
1
+ import type { CaipNetworkId } from '../common';
2
+ import type { SIWXSession } from './message';
3
+ /**
4
+ * This is the interface for a SIWX storage.
5
+ */
6
+ export interface SIWXStorage {
7
+ /**
8
+ * Adds a new session for the storage.
9
+ * This method should not verify the session, only store it.
10
+ *
11
+ * @param session SIWXSession
12
+ * @returns Promise<void>
13
+ */
14
+ add(session: SIWXSession): Promise<void>;
15
+ /**
16
+ * Deletes a session from the storage.
17
+ *
18
+ * @param chainId CaipNetworkId
19
+ * @param address string
20
+ * @returns Promise<void>
21
+ */
22
+ delete(chainId: CaipNetworkId, address: string): Promise<void>;
23
+ /**
24
+ * Gets a list of sessions for a given chainId and address.
25
+ * This method should not verify sessions, only return the sessions that are stored.
26
+ *
27
+ * @param chainId CaipNetworkId
28
+ * @param address string
29
+ * @returns Promise<SIWXSession[]>
30
+ */
31
+ get(chainId: CaipNetworkId, address: string): Promise<SIWXSession[]>;
32
+ /**
33
+ * Replaces the current sessions with the new list of sessions.
34
+ * This method should not verify sessions, only store them.
35
+ *
36
+ * @param sessions SIWXSession[]
37
+ * @returns Promise<void>
38
+ */
39
+ set(sessions: SIWXSession[]): Promise<void>;
40
+ }
41
+ //# sourceMappingURL=storage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../../src/types/siwx/storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;;OAMG;IACH,GAAG,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzC;;;;;;OAMG;IACH,MAAM,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE/D;;;;;;;OAOG;IACH,GAAG,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IAErE;;;;;;OAMG;IACH,GAAG,CAAC,QAAQ,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7C"}
@@ -0,0 +1,28 @@
1
+ import type { ChainNamespace } from '../common';
2
+ import type { SIWXSession } from './message';
3
+ /**
4
+ * This is the base class for a SIWX verifier.
5
+ */
6
+ export declare abstract class SIWXVerifier {
7
+ /**
8
+ * The chain namespace that this verifier should verify.
9
+ */
10
+ abstract readonly chainNamespace: ChainNamespace;
11
+ /**
12
+ * This method should return true if the verifier should verify the session.
13
+ * By default it will check by the chain namespace, but you may override it for a specific requirement.
14
+ *
15
+ * @param session SIWXSession
16
+ * @returns boolean
17
+ */
18
+ shouldVerify(session: SIWXSession): boolean;
19
+ /**
20
+ * This method should verify the session.
21
+ * You must implement this method with the verification logic.
22
+ *
23
+ * @param session SIWXSession
24
+ * @returns Promise<boolean> - If `true` means the session is valid.
25
+ */
26
+ abstract verify(session: SIWXSession): Promise<boolean>;
27
+ }
28
+ //# sourceMappingURL=verifier.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verifier.d.ts","sourceRoot":"","sources":["../../../../src/types/siwx/verifier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAE7C;;GAEG;AACH,8BAAsB,YAAY;IAChC;;OAEG;IACH,kBAAyB,cAAc,EAAE,cAAc,CAAC;IAExD;;;;;;OAMG;IACI,YAAY,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO;IAIlD;;;;;;OAMG;IACH,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC;CACxD"}
@@ -24,4 +24,36 @@ export interface Storage {
24
24
  */
25
25
  removeItem(key: string): Promise<void>;
26
26
  }
27
+ export interface SafeStorageItems {
28
+ 'WALLETCONNECT_DEEPLINK_CHOICE': string;
29
+ '@appkit/recent_wallet': string;
30
+ '@appkit/connected_connectors': string;
31
+ '@appkit/onramp_preferred_country': string;
32
+ '@appkit/onramp_countries': string;
33
+ '@appkit/onramp_service_providers': string;
34
+ '@appkit/onramp_fiat_limits': string;
35
+ '@appkit/onramp_fiat_currencies': string;
36
+ '@appkit/onramp_preferred_fiat_currency': string;
37
+ '@appkit/onramp_countries_defaults': string;
38
+ '@appkit/active_namespace': string;
39
+ '@appkit/coinbase_connector/session': string;
40
+ '@appkit/siwx-auth-token': string;
41
+ '@appkit/siwx-nonce-token': string;
42
+ }
43
+ export declare const SafeStorageKeys: {
44
+ readonly WC_DEEPLINK: "WALLETCONNECT_DEEPLINK_CHOICE";
45
+ readonly RECENT_WALLET: "@appkit/recent_wallet";
46
+ readonly CONNECTED_CONNECTORS: "@appkit/connected_connectors";
47
+ readonly ONRAMP_PREFERRED_COUNTRY: "@appkit/onramp_preferred_country";
48
+ readonly ONRAMP_COUNTRIES: "@appkit/onramp_countries";
49
+ readonly ONRAMP_SERVICE_PROVIDERS: "@appkit/onramp_service_providers";
50
+ readonly ONRAMP_FIAT_LIMITS: "@appkit/onramp_fiat_limits";
51
+ readonly ONRAMP_FIAT_CURRENCIES: "@appkit/onramp_fiat_currencies";
52
+ readonly ONRAMP_PREFERRED_FIAT_CURRENCY: "@appkit/onramp_preferred_fiat_currency";
53
+ readonly ONRAMP_COUNTRIES_DEFAULTS: "@appkit/onramp_countries_defaults";
54
+ readonly ACTIVE_NAMESPACE: "@appkit/active_namespace";
55
+ readonly COINBASE_CONNECTOR_SESSION: "@appkit/coinbase_connector/session";
56
+ readonly SIWX_AUTH_TOKEN: "@appkit/siwx-auth-token";
57
+ readonly SIWX_NONCE_TOKEN: "@appkit/siwx-nonce-token";
58
+ };
27
59
  //# sourceMappingURL=storage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/types/storage.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAE7B;;OAEG;IACH,UAAU,CAAC,CAAC,GAAG,GAAG,KAAK,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IAE9C;;;OAGG;IACH,OAAO,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC;IAEtD;;;;OAIG;IACH,OAAO,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvD;;;OAGG;IACH,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACxC"}
1
+ {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/types/storage.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAE7B;;OAEG;IACH,UAAU,CAAC,CAAC,GAAG,GAAG,KAAK,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IAE9C;;;OAGG;IACH,OAAO,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC;IAEtD;;;;OAIG;IACH,OAAO,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvD;;;OAGG;IACH,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACxC;AAED,MAAM,WAAW,gBAAgB;IAC/B,+BAA+B,EAAE,MAAM,CAAC;IACxC,uBAAuB,EAAE,MAAM,CAAC;IAChC,8BAA8B,EAAE,MAAM,CAAC;IACvC,kCAAkC,EAAE,MAAM,CAAC;IAC3C,0BAA0B,EAAE,MAAM,CAAC;IACnC,kCAAkC,EAAE,MAAM,CAAC;IAC3C,4BAA4B,EAAE,MAAM,CAAC;IACrC,gCAAgC,EAAE,MAAM,CAAC;IACzC,wCAAwC,EAAE,MAAM,CAAC;IACjD,mCAAmC,EAAE,MAAM,CAAC;IAC5C,0BAA0B,EAAE,MAAM,CAAC;IACnC,oCAAoC,EAAE,MAAM,CAAC;IAC7C,yBAAyB,EAAE,MAAM,CAAC;IAClC,0BAA0B,EAAE,MAAM,CAAC;CACpC;AAED,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;CAelB,CAAC"}
@@ -5,7 +5,6 @@ import type { AppKitNetwork } from '../blockchain/network';
5
5
  import type { Provider } from '../blockchain/adapter';
6
6
  import type { WalletInfo, Metadata } from './wallet-info';
7
7
  import type { ConnectionProperties } from './connection';
8
- import type { AppKitSIWEClient } from '../siwe';
9
8
  import type { Storage } from '../storage';
10
9
  import type { WcWallet } from '../api/wallet-api';
11
10
  export type ConnectorType = 'walletconnect' | 'coinbase' | 'phantom' | 'solflare';
@@ -24,7 +23,6 @@ export type ConnectOptions = {
24
23
  namespaces?: ProposalNamespaces;
25
24
  defaultNetwork?: AppKitNetwork;
26
25
  universalLink?: string;
27
- siweConfig?: AppKitSIWEClient;
28
26
  };
29
27
  export type ConnectorInitOptions = {
30
28
  storage: Storage;
@@ -1 +1 @@
1
- {"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../../../../src/types/wallet/connector.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,MAAM,aAAa,GAAG,eAAe,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,CAAC;AAElF,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE,aAAa,EAAE,CAAC;IACzB,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,KAAK,SAAS,GAAG,aAAa,CAAC;AAE/B,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AAEnD,MAAM,MAAM,kBAAkB,GAAG,MAAM,CACrC,MAAM,EACN,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,GACzB,QAAQ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CAAC,EAAE,cAAc,GAAG,QAAQ;IAC1D,QAAQ,CAAC,aAAa,IAAI,UAAU;IACpC,QAAQ,CAAC,UAAU,CAAC,SAAS,EAAE,cAAc,GAAG,aAAa,GAAG,SAAS;IACzE,QAAQ,CAAC,aAAa,IAAI,UAAU,GAAG,SAAS;IAChD,QAAQ,CAAC,aAAa,IAAI,oBAAoB,GAAG,SAAS;IAC1D,QAAQ,CAAC,aAAa,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAC7D,QAAQ,CAAC,cAAc,IAAI,OAAO,CAAC,OAAO,CAAC;CAC5C;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,QAAQ,CAAC;CACnB,CAAC"}
@@ -10,6 +10,7 @@ export interface WalletInfo {
10
10
  universal?: string;
11
11
  linkMode?: boolean;
12
12
  };
13
+ type?: 'walletconnect' | 'external' | 'unknown';
13
14
  [key: string]: unknown;
14
15
  }
15
16
  export type Metadata = {
@@ -1 +1 @@
1
- {"version":3,"file":"wallet-info.d.ts","sourceRoot":"","sources":["../../../../src/types/wallet/wallet-info.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE/C,MAAM,WAAW,UAAU;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,CAAC,EAAE;QACT,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,CAAC;IACF,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,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,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,CAAC,EAAE;QACT,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,CAAC;CACH,CAAC;AAEF,MAAM,WAAW,KAAK;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;AAElD,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,SAAS,CAAC"}
@@ -12,6 +12,15 @@ export declare const ConstantsUtil: {
12
12
  SECURE_SITE_DASHBOARD: string;
13
13
  SECURE_SITE_ICON: string;
14
14
  REOWN_URL: string;
15
+ CHAIN_NAME_MAP: {
16
+ eip155: string;
17
+ solana: string;
18
+ polkadot: string;
19
+ bip122: string;
20
+ cosmos: string;
21
+ sui: string;
22
+ stacks: string;
23
+ };
15
24
  USDT_CONTRACT_ADDRESSES: string[];
16
25
  PHANTOM_CUSTOM_WALLET: {
17
26
  id: string;
@@ -43,19 +52,5 @@ export declare const ConstantsUtil: {
43
52
  android_app_id: string;
44
53
  ios_schema: string;
45
54
  };
46
- STORAGE_KEYS: {
47
- WC_DEEPLINK: string;
48
- RECENT_WALLET: string;
49
- CONNECTED_CONNECTORS: string;
50
- ONRAMP_PREFERRED_COUNTRY: string;
51
- ONRAMP_COUNTRIES: string;
52
- ONRAMP_SERVICE_PROVIDERS: string;
53
- ONRAMP_FIAT_LIMITS: string;
54
- ONRAMP_FIAT_CURRENCIES: string;
55
- ONRAMP_PREFERRED_FIAT_CURRENCY: string;
56
- ONRAMP_COUNTRIES_DEFAULTS: string;
57
- ACTIVE_NAMESPACE: string;
58
- COINBASE_CONNECTOR_SESSION: string;
59
- };
60
55
  };
61
56
  //# sourceMappingURL=ConstantsUtil.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConstantsUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/ConstantsUtil.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmFzB,CAAC"}
1
+ {"version":3,"file":"ConstantsUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/ConstantsUtil.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6EzB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reown/appkit-common-react-native",
3
- "version": "0.0.0-chore-spring-effect-20250909214820",
3
+ "version": "0.0.0-chore-examples-20251009175707",
4
4
  "main": "lib/commonjs/index.js",
5
5
  "types": "lib/typescript/index.d.ts",
6
6
  "module": "lib/module/index.js",
@@ -35,13 +35,14 @@
35
35
  "repository": "https://github.com/reown-com/appkit-react-native",
36
36
  "author": "Reown (https://discord.gg/reown)",
37
37
  "homepage": "https://reown.com/appkit",
38
- "license": "Apache-2.0",
38
+ "license": "SEE LICENSE IN LICENSE.md",
39
39
  "bugs": {
40
40
  "url": "https://github.com/reown-com/appkit-react-native/issues"
41
41
  },
42
42
  "publishConfig": {
43
43
  "registry": "https://registry.npmjs.org/",
44
- "access": "public"
44
+ "access": "public",
45
+ "provenance": true
45
46
  },
46
47
  "eslintIgnore": [
47
48
  "node_modules/",
@@ -0,0 +1,5 @@
1
+ import { BlockchainAdapter } from './BlockchainAdapter';
2
+
3
+ export abstract class BitcoinBaseAdapter extends BlockchainAdapter {
4
+ abstract signMessage(address: string, message: string, chainId?: string): Promise<string>;
5
+ }
@@ -79,16 +79,26 @@ export abstract class BlockchainAdapter extends EventEmitter {
79
79
 
80
80
  onAccountsChanged(accounts: string[]): void {
81
81
  const _accounts = this.getAccounts();
82
+ // Normalize incoming accounts to lowercase for case-insensitive comparison
83
+ const normalizedIncomingAccounts = accounts.map(addr => addr.toLowerCase());
84
+
85
+ // Filter: Keep only adapter accounts (CAIP) whose plain address is in the incoming accounts array
82
86
  const updatedAccounts =
83
87
  _accounts
84
88
  ?.filter(account => {
85
- const accountAddress = NetworkUtil.getPlainAddress(account);
89
+ // Normalize to lowercase for case-insensitive comparison since plain addresses from CAIP may vary in casing
90
+ const accountAddress = NetworkUtil.getPlainAddress(account)?.toLowerCase();
86
91
 
87
- return accountAddress !== undefined && accounts.includes(accountAddress);
92
+ return (
93
+ accountAddress !== undefined && normalizedIncomingAccounts.includes(accountAddress)
94
+ );
88
95
  })
89
- ?.sort((a, b) => {
90
- const aIndex = accounts.indexOf(NetworkUtil.getPlainAddress(a) ?? '');
91
- const bIndex = accounts.indexOf(NetworkUtil.getPlainAddress(b) ?? '');
96
+ // Sort: Maintain the order from the incoming accounts parameter
97
+ .sort((a, b) => {
98
+ const aAddress = NetworkUtil.getPlainAddress(a)?.toLowerCase() ?? '';
99
+ const bAddress = NetworkUtil.getPlainAddress(b)?.toLowerCase() ?? '';
100
+ const aIndex = normalizedIncomingAccounts.indexOf(aAddress);
101
+ const bIndex = normalizedIncomingAccounts.indexOf(bAddress);
92
102
 
93
103
  return aIndex - bIndex;
94
104
  }) ?? [];
@@ -71,7 +71,7 @@ function encodeERC20Function(method: string, params: any[]): string {
71
71
  }
72
72
 
73
73
  export abstract class EVMAdapter extends BlockchainAdapter {
74
- async signMessage(address: string, message: string, chain?: string): Promise<string> {
74
+ async signMessage(address: string, message: string, chainId?: string): Promise<string> {
75
75
  const provider = this.getProvider();
76
76
 
77
77
  if (!provider) {
@@ -83,7 +83,7 @@ export abstract class EVMAdapter extends BlockchainAdapter {
83
83
  method: 'personal_sign',
84
84
  params: [message, address]
85
85
  },
86
- `eip155:${chain}`
86
+ `eip155:${chainId}`
87
87
  );
88
88
 
89
89
  return signature as string;
@@ -3,4 +3,5 @@ import { BlockchainAdapter } from './BlockchainAdapter';
3
3
  export abstract class SolanaBaseAdapter extends BlockchainAdapter {
4
4
  abstract signTransaction(data: any): Promise<string | null>;
5
5
  abstract sendTransaction(data: any): Promise<string | null>;
6
+ abstract signMessage(address: string, message: string, chainId?: string): Promise<string>;
6
7
  }
package/src/index.ts CHANGED
@@ -13,5 +13,6 @@ export { bitcoin, bitcoinTestnet } from './networks/bitcoin';
13
13
  export { BlockchainAdapter } from './adapters/BlockchainAdapter';
14
14
  export { EVMAdapter } from './adapters/EvmAdapter';
15
15
  export { SolanaBaseAdapter } from './adapters/SolanaBaseAdapter';
16
+ export { BitcoinBaseAdapter } from './adapters/BitcoinBaseAdapter';
16
17
 
17
18
  export * from './types';