@reown/appkit-react-native 0.0.0-feat-multi-social-20250701185040 → 0.0.0-feat-multi-social-20250703185818

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 (138) hide show
  1. package/lib/commonjs/AppKit.js +13 -9
  2. package/lib/commonjs/AppKit.js.map +1 -1
  3. package/lib/commonjs/connectors/WalletConnectConnector.js +10 -4
  4. package/lib/commonjs/connectors/WalletConnectConnector.js.map +1 -1
  5. package/lib/commonjs/modal/w3m-router/index.js +0 -3
  6. package/lib/commonjs/modal/w3m-router/index.js.map +1 -1
  7. package/lib/commonjs/partials/w3m-account-activity/index.js +4 -4
  8. package/lib/commonjs/partials/w3m-account-activity/index.js.map +1 -1
  9. package/lib/commonjs/partials/w3m-account-tokens/index.js +11 -10
  10. package/lib/commonjs/partials/w3m-account-tokens/index.js.map +1 -1
  11. package/lib/commonjs/partials/w3m-account-wallet-features/index.js +10 -10
  12. package/lib/commonjs/partials/w3m-account-wallet-features/index.js.map +1 -1
  13. package/lib/commonjs/partials/w3m-header/index.js +0 -1
  14. package/lib/commonjs/partials/w3m-header/index.js.map +1 -1
  15. package/lib/commonjs/partials/w3m-send-input-token/index.js +3 -3
  16. package/lib/commonjs/partials/w3m-send-input-token/index.js.map +1 -1
  17. package/lib/commonjs/partials/w3m-send-input-token/utils.js +2 -2
  18. package/lib/commonjs/partials/w3m-send-input-token/utils.js.map +1 -1
  19. package/lib/commonjs/views/w3m-account-default-view/components/auth-buttons.js +4 -13
  20. package/lib/commonjs/views/w3m-account-default-view/components/auth-buttons.js.map +1 -1
  21. package/lib/commonjs/views/w3m-account-default-view/index.js +19 -32
  22. package/lib/commonjs/views/w3m-account-default-view/index.js.map +1 -1
  23. package/lib/commonjs/views/w3m-account-view/index.js +11 -22
  24. package/lib/commonjs/views/w3m-account-view/index.js.map +1 -1
  25. package/lib/commonjs/views/w3m-account-view/styles.js +0 -5
  26. package/lib/commonjs/views/w3m-account-view/styles.js.map +1 -1
  27. package/lib/commonjs/views/w3m-connecting-siwe-view/index.js +10 -8
  28. package/lib/commonjs/views/w3m-connecting-siwe-view/index.js.map +1 -1
  29. package/lib/commonjs/views/w3m-connecting-social-view/index.js +1 -1
  30. package/lib/commonjs/views/w3m-connecting-social-view/index.js.map +1 -1
  31. package/lib/commonjs/views/w3m-swap-view/index.js +1 -1
  32. package/lib/commonjs/views/w3m-swap-view/index.js.map +1 -1
  33. package/lib/commonjs/views/w3m-wallet-compatible-networks-view/index.js +5 -4
  34. package/lib/commonjs/views/w3m-wallet-compatible-networks-view/index.js.map +1 -1
  35. package/lib/commonjs/views/w3m-wallet-receive-view/index.js +10 -12
  36. package/lib/commonjs/views/w3m-wallet-receive-view/index.js.map +1 -1
  37. package/lib/commonjs/views/w3m-wallet-send-preview-view/index.js +1 -1
  38. package/lib/commonjs/views/w3m-wallet-send-preview-view/index.js.map +1 -1
  39. package/lib/commonjs/views/w3m-wallet-send-select-token-view/index.js +7 -9
  40. package/lib/commonjs/views/w3m-wallet-send-select-token-view/index.js.map +1 -1
  41. package/lib/commonjs/views/w3m-wallet-send-view/index.js +5 -5
  42. package/lib/commonjs/views/w3m-wallet-send-view/index.js.map +1 -1
  43. package/lib/module/AppKit.js +13 -9
  44. package/lib/module/AppKit.js.map +1 -1
  45. package/lib/module/connectors/WalletConnectConnector.js +10 -4
  46. package/lib/module/connectors/WalletConnectConnector.js.map +1 -1
  47. package/lib/module/modal/w3m-router/index.js +0 -3
  48. package/lib/module/modal/w3m-router/index.js.map +1 -1
  49. package/lib/module/partials/w3m-account-activity/index.js +5 -5
  50. package/lib/module/partials/w3m-account-activity/index.js.map +1 -1
  51. package/lib/module/partials/w3m-account-tokens/index.js +12 -11
  52. package/lib/module/partials/w3m-account-tokens/index.js.map +1 -1
  53. package/lib/module/partials/w3m-account-wallet-features/index.js +11 -11
  54. package/lib/module/partials/w3m-account-wallet-features/index.js.map +1 -1
  55. package/lib/module/partials/w3m-header/index.js +0 -1
  56. package/lib/module/partials/w3m-header/index.js.map +1 -1
  57. package/lib/module/partials/w3m-send-input-token/index.js +3 -3
  58. package/lib/module/partials/w3m-send-input-token/index.js.map +1 -1
  59. package/lib/module/partials/w3m-send-input-token/utils.js +2 -2
  60. package/lib/module/partials/w3m-send-input-token/utils.js.map +1 -1
  61. package/lib/module/views/w3m-account-default-view/components/auth-buttons.js +5 -14
  62. package/lib/module/views/w3m-account-default-view/components/auth-buttons.js.map +1 -1
  63. package/lib/module/views/w3m-account-default-view/index.js +20 -33
  64. package/lib/module/views/w3m-account-default-view/index.js.map +1 -1
  65. package/lib/module/views/w3m-account-view/index.js +13 -24
  66. package/lib/module/views/w3m-account-view/index.js.map +1 -1
  67. package/lib/module/views/w3m-account-view/styles.js +0 -5
  68. package/lib/module/views/w3m-account-view/styles.js.map +1 -1
  69. package/lib/module/views/w3m-connecting-siwe-view/index.js +11 -9
  70. package/lib/module/views/w3m-connecting-siwe-view/index.js.map +1 -1
  71. package/lib/module/views/w3m-connecting-social-view/index.js +1 -1
  72. package/lib/module/views/w3m-connecting-social-view/index.js.map +1 -1
  73. package/lib/module/views/w3m-swap-view/index.js +2 -2
  74. package/lib/module/views/w3m-swap-view/index.js.map +1 -1
  75. package/lib/module/views/w3m-wallet-compatible-networks-view/index.js +6 -5
  76. package/lib/module/views/w3m-wallet-compatible-networks-view/index.js.map +1 -1
  77. package/lib/module/views/w3m-wallet-receive-view/index.js +11 -13
  78. package/lib/module/views/w3m-wallet-receive-view/index.js.map +1 -1
  79. package/lib/module/views/w3m-wallet-send-preview-view/index.js +1 -1
  80. package/lib/module/views/w3m-wallet-send-preview-view/index.js.map +1 -1
  81. package/lib/module/views/w3m-wallet-send-select-token-view/index.js +8 -10
  82. package/lib/module/views/w3m-wallet-send-select-token-view/index.js.map +1 -1
  83. package/lib/module/views/w3m-wallet-send-view/index.js +6 -6
  84. package/lib/module/views/w3m-wallet-send-view/index.js.map +1 -1
  85. package/lib/typescript/AppKit.d.ts.map +1 -1
  86. package/lib/typescript/connectors/WalletConnectConnector.d.ts +0 -1
  87. package/lib/typescript/connectors/WalletConnectConnector.d.ts.map +1 -1
  88. package/lib/typescript/modal/w3m-router/index.d.ts.map +1 -1
  89. package/lib/typescript/partials/w3m-account-activity/index.d.ts.map +1 -1
  90. package/lib/typescript/partials/w3m-account-tokens/index.d.ts.map +1 -1
  91. package/lib/typescript/partials/w3m-account-wallet-features/index.d.ts.map +1 -1
  92. package/lib/typescript/partials/w3m-header/index.d.ts.map +1 -1
  93. package/lib/typescript/views/w3m-account-default-view/components/auth-buttons.d.ts.map +1 -1
  94. package/lib/typescript/views/w3m-account-default-view/index.d.ts.map +1 -1
  95. package/lib/typescript/views/w3m-account-view/index.d.ts.map +1 -1
  96. package/lib/typescript/views/w3m-account-view/styles.d.ts +0 -5
  97. package/lib/typescript/views/w3m-account-view/styles.d.ts.map +1 -1
  98. package/lib/typescript/views/w3m-connecting-siwe-view/index.d.ts.map +1 -1
  99. package/lib/typescript/views/w3m-swap-view/index.d.ts.map +1 -1
  100. package/lib/typescript/views/w3m-wallet-compatible-networks-view/index.d.ts.map +1 -1
  101. package/lib/typescript/views/w3m-wallet-receive-view/index.d.ts.map +1 -1
  102. package/lib/typescript/views/w3m-wallet-send-select-token-view/index.d.ts.map +1 -1
  103. package/package.json +5 -5
  104. package/src/AppKit.ts +15 -8
  105. package/src/connectors/WalletConnectConnector.ts +15 -5
  106. package/src/modal/w3m-router/index.tsx +0 -3
  107. package/src/partials/w3m-account-activity/index.tsx +4 -5
  108. package/src/partials/w3m-account-tokens/index.tsx +10 -9
  109. package/src/partials/w3m-account-wallet-features/index.tsx +7 -15
  110. package/src/partials/w3m-header/index.tsx +0 -1
  111. package/src/partials/w3m-send-input-token/index.tsx +4 -4
  112. package/src/partials/w3m-send-input-token/utils.ts +2 -2
  113. package/src/views/w3m-account-default-view/components/auth-buttons.tsx +4 -15
  114. package/src/views/w3m-account-default-view/index.tsx +23 -36
  115. package/src/views/w3m-account-view/index.tsx +9 -26
  116. package/src/views/w3m-account-view/styles.ts +0 -5
  117. package/src/views/w3m-connecting-siwe-view/index.tsx +6 -17
  118. package/src/views/w3m-connecting-social-view/index.tsx +1 -1
  119. package/src/views/w3m-swap-view/index.tsx +1 -2
  120. package/src/views/w3m-wallet-compatible-networks-view/index.tsx +9 -11
  121. package/src/views/w3m-wallet-receive-view/index.tsx +16 -10
  122. package/src/views/w3m-wallet-send-preview-view/index.tsx +1 -1
  123. package/src/views/w3m-wallet-send-select-token-view/index.tsx +7 -9
  124. package/src/views/w3m-wallet-send-view/index.tsx +5 -5
  125. package/lib/commonjs/views/w3m-upgrade-to-smart-account-view/index.js +0 -103
  126. package/lib/commonjs/views/w3m-upgrade-to-smart-account-view/index.js.map +0 -1
  127. package/lib/commonjs/views/w3m-upgrade-to-smart-account-view/styles.js +0 -35
  128. package/lib/commonjs/views/w3m-upgrade-to-smart-account-view/styles.js.map +0 -1
  129. package/lib/module/views/w3m-upgrade-to-smart-account-view/index.js +0 -96
  130. package/lib/module/views/w3m-upgrade-to-smart-account-view/index.js.map +0 -1
  131. package/lib/module/views/w3m-upgrade-to-smart-account-view/styles.js +0 -29
  132. package/lib/module/views/w3m-upgrade-to-smart-account-view/styles.js.map +0 -1
  133. package/lib/typescript/views/w3m-upgrade-to-smart-account-view/index.d.ts +0 -2
  134. package/lib/typescript/views/w3m-upgrade-to-smart-account-view/index.d.ts.map +0 -1
  135. package/lib/typescript/views/w3m-upgrade-to-smart-account-view/styles.d.ts +0 -28
  136. package/lib/typescript/views/w3m-upgrade-to-smart-account-view/styles.d.ts.map +0 -1
  137. package/src/views/w3m-upgrade-to-smart-account-view/index.tsx +0 -106
  138. package/src/views/w3m-upgrade-to-smart-account-view/styles.ts +0 -29
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-account-activity/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,SAAS,EAAE,KAAK,SAAS,EAAkB,MAAM,cAAc,CAAC;AAwBhG,UAAU,KAAK;IACb,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,2CA+J/C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-account-activity/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,SAAS,EAAE,KAAK,SAAS,EAAkB,MAAM,cAAc,CAAC;AAuBhG,UAAU,KAAK;IACb,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,2CA+J/C"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-account-tokens/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAiBtB,UAAU,KAAK;IACb,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,2CAgE7C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-account-tokens/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAgBtB,UAAU,KAAK;IACb,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,2CAkE7C"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-account-wallet-features/index.tsx"],"names":[],"mappings":"AAmBA,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,qBAAqB,4CAiIpC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-account-wallet-features/index.tsx"],"names":[],"mappings":"AAkBA,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,qBAAqB,4CA0HpC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-header/index.tsx"],"names":[],"mappings":"AAYA,wBAAgB,MAAM,mDAkHrB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-header/index.tsx"],"names":[],"mappings":"AAYA,wBAAgB,MAAM,mDAiHrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"auth-buttons.d.ts","sourceRoot":"","sources":["../../../../../src/views/w3m-account-default-view/components/auth-buttons.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAG1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAExE,MAAM,WAAW,gBAAgB;IAC/B,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,WAAW,CAAC,EAC1B,cAAc,EACd,OAAO,EACP,cAAc,EACd,IAAI,EACJ,KAAK,EACN,EAAE,gBAAgB,2CA+BlB"}
1
+ {"version":3,"file":"auth-buttons.d.ts","sourceRoot":"","sources":["../../../../../src/views/w3m-account-default-view/components/auth-buttons.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAG1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAExE,MAAM,WAAW,gBAAgB;IAC/B,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,WAAW,CAAC,EAC1B,cAAc,EACd,OAAO,EACP,cAAc,EACd,IAAI,EACJ,KAAK,EACN,EAAE,gBAAgB,2CAoBlB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-account-default-view/index.tsx"],"names":[],"mappings":"AAuCA,wBAAgB,kBAAkB,4CAySjC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-account-default-view/index.tsx"],"names":[],"mappings":"AAmCA,wBAAgB,kBAAkB,4CAgSjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-account-view/index.tsx"],"names":[],"mappings":"AA2BA,wBAAgB,WAAW,4CA8E1B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-account-view/index.tsx"],"names":[],"mappings":"AAyBA,wBAAgB,WAAW,4CA+D1B"}
@@ -21,11 +21,6 @@ declare const _default: {
21
21
  marginBottom: number;
22
22
  marginHorizontal: number;
23
23
  };
24
- promoPill: {
25
- marginTop: number;
26
- marginBottom: number;
27
- alignSelf: "center";
28
- };
29
24
  };
30
25
  export default _default;
31
26
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-account-view/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBA4BG"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-account-view/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAuBG"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connecting-siwe-view/index.tsx"],"names":[],"mappings":"AA0BA,wBAAgB,kBAAkB,4CAoHjC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connecting-siwe-view/index.tsx"],"names":[],"mappings":"AAyBA,wBAAgB,kBAAkB,4CA0GjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-swap-view/index.tsx"],"names":[],"mappings":"AAqBA,wBAAgB,QAAQ,4CA+LvB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-swap-view/index.tsx"],"names":[],"mappings":"AAoBA,wBAAgB,QAAQ,4CA+LvB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-compatible-networks-view/index.tsx"],"names":[],"mappings":"AAYA,wBAAgB,wBAAwB,4CAmCvC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-compatible-networks-view/index.tsx"],"names":[],"mappings":"AAOA,wBAAgB,wBAAwB,4CAsCvC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-receive-view/index.tsx"],"names":[],"mappings":"AAsBA,wBAAgB,iBAAiB,wDA8DhC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-receive-view/index.tsx"],"names":[],"mappings":"AAuBA,wBAAgB,iBAAiB,wDAmEhC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-send-select-token-view/index.tsx"],"names":[],"mappings":"AAiBA,wBAAgB,yBAAyB,4CAiExC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-send-select-token-view/index.tsx"],"names":[],"mappings":"AAgBA,wBAAgB,yBAAyB,4CAgExC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reown/appkit-react-native",
3
- "version": "0.0.0-feat-multi-social-20250701185040",
3
+ "version": "0.0.0-feat-multi-social-20250703185818",
4
4
  "main": "lib/commonjs/index.js",
5
5
  "types": "lib/typescript/index.d.ts",
6
6
  "module": "lib/module/index.js",
@@ -37,10 +37,10 @@
37
37
  "access": "public"
38
38
  },
39
39
  "dependencies": {
40
- "@reown/appkit-common-react-native": "0.0.0-feat-multi-social-20250701185040",
41
- "@reown/appkit-core-react-native": "0.0.0-feat-multi-social-20250701185040",
42
- "@reown/appkit-siwe-react-native": "0.0.0-feat-multi-social-20250701185040",
43
- "@reown/appkit-ui-react-native": "0.0.0-feat-multi-social-20250701185040",
40
+ "@reown/appkit-common-react-native": "0.0.0-feat-multi-social-20250703185818",
41
+ "@reown/appkit-core-react-native": "0.0.0-feat-multi-social-20250703185818",
42
+ "@reown/appkit-siwe-react-native": "0.0.0-feat-multi-social-20250703185818",
43
+ "@reown/appkit-ui-react-native": "0.0.0-feat-multi-social-20250703185818",
44
44
  "@walletconnect/universal-provider": "2.20.2",
45
45
  "valtio": "^1.13.2"
46
46
  },
package/src/AppKit.ts CHANGED
@@ -154,7 +154,10 @@ export class AppKit {
154
154
  //TODO: Replace this
155
155
  AccountController.setIsConnected(true);
156
156
 
157
- if (ConnectionsController.state.activeNamespace === 'eip155') {
157
+ if (
158
+ OptionsController.state.isSiweEnabled &&
159
+ ConnectionsController.state.activeNamespace === 'eip155'
160
+ ) {
158
161
  this.handleSiweChange();
159
162
  } else {
160
163
  ModalController.close();
@@ -411,20 +414,23 @@ export class AppKit {
411
414
  adapters.forEach(async adapter => {
412
415
  const namespace = adapter.getSupportedNamespace();
413
416
  const namespaceDetails = approvedNamespaces[namespace];
414
- if (!namespaceDetails) return; // Should not happen if filtering is correct
417
+ if (!namespaceDetails) return;
415
418
 
416
419
  const accounts = namespaceDetails.accounts ?? [];
417
420
  const chains = namespaceDetails.chains ?? [];
418
421
  const caipNetwork = adapter?.connector?.getChainId(namespace);
422
+ const namespaceProperties = {
423
+ ...properties,
424
+ smartAccounts: properties?.smartAccounts?.filter(account => account.startsWith(namespace))
425
+ };
419
426
 
420
427
  ConnectionsController.setConnection({
421
- namespace,
422
- adapter,
423
428
  accounts,
424
- chains,
425
- caipNetwork,
426
- wallet,
427
- properties
429
+ adapter,
430
+ caipNetwork: caipNetwork ?? chains[0]!,
431
+ namespace,
432
+ properties: namespaceProperties,
433
+ wallet
428
434
  });
429
435
  });
430
436
 
@@ -473,6 +479,7 @@ export class AppKit {
473
479
  this.disconnect(namespace, false);
474
480
  });
475
481
 
482
+ //TODO: Add types to this events
476
483
  adapter.on('balanceChanged', ({ address, balance }) => {
477
484
  const namespace = adapter.getSupportedNamespace();
478
485
  ConnectionsController.updateBalance(namespace, address, balance);
@@ -50,6 +50,15 @@ export class WalletConnectConnector extends WalletConnector {
50
50
  this.namespaces = provider.session.namespaces as Namespaces;
51
51
  }
52
52
 
53
+ if (provider.session?.sessionProperties) {
54
+ this.properties = {
55
+ ...provider.session.sessionProperties,
56
+ smartAccounts: provider.session.sessionProperties['smartAccounts']
57
+ ? JSON.parse(provider.session.sessionProperties['smartAccounts'])
58
+ : []
59
+ };
60
+ }
61
+
53
62
  if (provider.session?.peer?.metadata) {
54
63
  const metadata = provider.session?.peer.metadata;
55
64
  if (metadata) {
@@ -82,10 +91,6 @@ export class WalletConnectConnector extends WalletConnector {
82
91
  return this.provider as IUniversalProvider;
83
92
  }
84
93
 
85
- override disconnect(): Promise<void> {
86
- return this.getProvider().disconnect();
87
- }
88
-
89
94
  override async connect(opts: ConnectOptions) {
90
95
  const { siweConfig, namespaces, defaultChain, universalLink } = opts;
91
96
  function onUri(uri: string) {
@@ -179,7 +184,12 @@ export class WalletConnectConnector extends WalletConnector {
179
184
  }
180
185
 
181
186
  if (session?.sessionProperties) {
182
- this.properties = session.sessionProperties;
187
+ this.properties = {
188
+ ...session.sessionProperties,
189
+ smartAccounts: session.sessionProperties['smartAccounts']
190
+ ? JSON.parse(session.sessionProperties['smartAccounts'])
191
+ : []
192
+ };
183
193
  }
184
194
 
185
195
  this.namespaces = session?.namespaces as Namespaces;
@@ -28,7 +28,6 @@ import { UpdateEmailWalletView } from '../../views/w3m-update-email-wallet-view'
28
28
  import { UpdateEmailPrimaryOtpView } from '../../views/w3m-update-email-primary-otp-view';
29
29
  import { UpdateEmailSecondaryOtpView } from '../../views/w3m-update-email-secondary-otp-view';
30
30
  import { UpgradeEmailWalletView } from '../../views/w3m-upgrade-email-wallet-view';
31
- import { UpgradeToSmartAccountView } from '../../views/w3m-upgrade-to-smart-account-view';
32
31
  import { WalletCompatibleNetworks } from '../../views/w3m-wallet-compatible-networks-view';
33
32
  import { WalletReceiveView } from '../../views/w3m-wallet-receive-view';
34
33
  import { WalletSendView } from '../../views/w3m-wallet-send-view';
@@ -99,8 +98,6 @@ export function AppKitRouter() {
99
98
  return UpdateEmailWalletView;
100
99
  case 'UpgradeEmailWallet':
101
100
  return UpgradeEmailWalletView;
102
- case 'UpgradeToSmartAccount':
103
- return UpgradeToSmartAccountView;
104
101
  case 'WalletCompatibleNetworks':
105
102
  return WalletCompatibleNetworks;
106
103
  case 'WalletReceive':
@@ -12,7 +12,6 @@ import {
12
12
  } from '@reown/appkit-ui-react-native';
13
13
  import { type Transaction, type TransactionImage } from '@reown/appkit-common-react-native';
14
14
  import {
15
- AccountController,
16
15
  AssetUtil,
17
16
  ConnectionsController,
18
17
  ConstantsUtil,
@@ -40,7 +39,7 @@ export function AccountActivity({ style }: Props) {
40
39
  ConstantsUtil.ACTIVITY_SUPPORTED_CHAINS.includes(activeNetwork.caipNetworkId);
41
40
 
42
41
  const handleLoadMore = () => {
43
- const address = ConnectionsController.state.activeAddress?.split(':')[2];
42
+ const address = ConnectionsController.state.activeAddress;
44
43
  TransactionsController.fetchTransactions(address);
45
44
  EventsController.sendEvent({
46
45
  type: 'track',
@@ -49,14 +48,14 @@ export function AccountActivity({ style }: Props) {
49
48
  address,
50
49
  projectId: OptionsController.state.projectId,
51
50
  cursor: TransactionsController.state.next,
52
- isSmartAccount: AccountController.state.preferredAccountType === 'smartAccount'
51
+ isSmartAccount: ConnectionsController.state.accountType === 'smartAccount'
53
52
  }
54
53
  });
55
54
  };
56
55
 
57
56
  const onRefresh = useCallback(async () => {
58
57
  setRefreshing(true);
59
- const address = ConnectionsController.state.activeAddress?.split(':')[2];
58
+ const address = ConnectionsController.state.activeAddress;
60
59
  await TransactionsController.fetchTransactions(address, true);
61
60
  setRefreshing(false);
62
61
  }, []);
@@ -67,7 +66,7 @@ export function AccountActivity({ style }: Props) {
67
66
 
68
67
  useEffect(() => {
69
68
  if (!TransactionsController.state.transactions.length) {
70
- const address = ConnectionsController.state.activeAddress?.split(':')[2];
69
+ const address = ConnectionsController.state.activeAddress;
71
70
  TransactionsController.fetchTransactions(address, true);
72
71
  }
73
72
  // Set initial load to false after first fetch
@@ -8,7 +8,6 @@ import {
8
8
  } from 'react-native';
9
9
  import { useSnapshot } from 'valtio';
10
10
  import {
11
- AccountController,
12
11
  AssetUtil,
13
12
  ConnectionsController,
14
13
  RouterController
@@ -29,13 +28,15 @@ interface Props {
29
28
  export function AccountTokens({ style }: Props) {
30
29
  const Theme = useTheme();
31
30
  const [refreshing, setRefreshing] = useState(false);
32
- const { tokenBalance } = useSnapshot(AccountController.state);
33
- const { activeNetwork } = useSnapshot(ConnectionsController.state);
31
+ const { activeNetwork, balances } = useSnapshot(ConnectionsController.state);
34
32
  const networkImage = AssetUtil.getNetworkImage(activeNetwork?.id);
35
33
 
34
+ // Show all tokens that come from the API
35
+ const filteredBalances = balances?.filter(balance => balance.quantity);
36
+
36
37
  const onRefresh = useCallback(async () => {
37
38
  setRefreshing(true);
38
- AccountController.fetchTokenBalance();
39
+ await ConnectionsController.fetchBalance();
39
40
  setRefreshing(false);
40
41
  }, []);
41
42
 
@@ -43,7 +44,7 @@ export function AccountTokens({ style }: Props) {
43
44
  RouterController.push('WalletReceive');
44
45
  };
45
46
 
46
- if (!tokenBalance?.length) {
47
+ if (!filteredBalances?.length) {
47
48
  return (
48
49
  <ListItem
49
50
  icon="arrowBottomCircle"
@@ -76,14 +77,14 @@ export function AccountTokens({ style }: Props) {
76
77
  />
77
78
  }
78
79
  >
79
- {tokenBalance.map(token => (
80
+ {filteredBalances.map(token => (
80
81
  <ListToken
81
- key={token.name}
82
- name={token.name}
82
+ key={token.symbol}
83
+ name={token.name || 'Unknown'}
83
84
  imageSrc={token.iconUrl}
84
85
  networkSrc={networkImage}
85
86
  value={token.value}
86
- amount={token.quantity.numeric}
87
+ amount={token.quantity?.numeric}
87
88
  currency={token.symbol}
88
89
  pressable={false}
89
90
  />
@@ -2,7 +2,6 @@ import { useState } from 'react';
2
2
  import { useSnapshot } from 'valtio';
3
3
  import { Balance, FlexView, IconLink, Tabs } from '@reown/appkit-ui-react-native';
4
4
  import {
5
- AccountController,
6
5
  ConnectionsController,
7
6
  ConstantsUtil,
8
7
  CoreHelperUtil,
@@ -23,10 +22,11 @@ export interface AccountWalletFeaturesProps {
23
22
 
24
23
  export function AccountWalletFeatures() {
25
24
  const [activeTab, setActiveTab] = useState(0);
26
- const { tokenBalance } = useSnapshot(AccountController.state);
27
25
  const { features, isOnRampEnabled } = useSnapshot(OptionsController.state);
28
- const { activeNetwork } = useSnapshot(ConnectionsController.state);
29
- const balance = CoreHelperUtil.calculateAndFormatBalance(tokenBalance as BalanceType[]);
26
+ const { activeNetwork, balances } = useSnapshot(ConnectionsController.state);
27
+ const balance = CoreHelperUtil.calculateAndFormatBalance(balances as BalanceType[]);
28
+ const network = ConnectionsController.state.activeNetwork?.caipNetworkId || '';
29
+ const isSmartAccount = ConnectionsController.state.accountType === 'smartAccount';
30
30
  const isSwapsEnabled =
31
31
  features?.swaps &&
32
32
  activeNetwork?.caipNetworkId &&
@@ -43,9 +43,7 @@ export function AccountWalletFeatures() {
43
43
  EventsController.sendEvent({
44
44
  type: 'track',
45
45
  event: 'CLICK_TRANSACTIONS',
46
- properties: {
47
- isSmartAccount: AccountController.state.preferredAccountType === 'smartAccount'
48
- }
46
+ properties: { isSmartAccount }
49
47
  });
50
48
  };
51
49
 
@@ -54,10 +52,7 @@ export function AccountWalletFeatures() {
54
52
  EventsController.sendEvent({
55
53
  type: 'track',
56
54
  event: 'OPEN_SWAP',
57
- properties: {
58
- network: ConnectionsController.state.activeNetwork?.caipNetworkId || '',
59
- isSmartAccount: AccountController.state.preferredAccountType === 'smartAccount'
60
- }
55
+ properties: { network, isSmartAccount }
61
56
  });
62
57
  RouterController.push('Swap');
63
58
  };
@@ -66,10 +61,7 @@ export function AccountWalletFeatures() {
66
61
  EventsController.sendEvent({
67
62
  type: 'track',
68
63
  event: 'OPEN_SEND',
69
- properties: {
70
- network: ConnectionsController.state.activeNetwork?.caipNetworkId || '',
71
- isSmartAccount: AccountController.state.preferredAccountType === 'smartAccount'
72
- }
64
+ properties: { network, isSmartAccount }
73
65
  });
74
66
  RouterController.push('WalletSend');
75
67
  };
@@ -52,7 +52,6 @@ export function Header() {
52
52
  UpdateEmailSecondaryOtp: 'Confirm new email',
53
53
  UpdateEmailWallet: 'Edit email',
54
54
  UpgradeEmailWallet: 'Upgrade wallet',
55
- UpgradeToSmartAccount: undefined,
56
55
  WalletCompatibleNetworks: 'Compatible networks',
57
56
  WalletReceive: 'Receive',
58
57
  WalletSend: 'Send',
@@ -27,7 +27,7 @@ export function SendInputToken({
27
27
  const [inputValue, setInputValue] = useState<string | undefined>(sendTokenAmount?.toString());
28
28
  const sendValue = getSendValue(token, sendTokenAmount);
29
29
  const maxAmount = getMaxAmount(token);
30
- const maxError = token && sendTokenAmount && sendTokenAmount > Number(token.quantity.numeric);
30
+ const maxError = token && sendTokenAmount && sendTokenAmount > Number(token?.quantity?.numeric);
31
31
 
32
32
  const onInputChange = (value: string) => {
33
33
  const formattedValue = value.replace(/,/g, '.');
@@ -39,11 +39,11 @@ export function SendInputToken({
39
39
  };
40
40
 
41
41
  const onMaxPress = () => {
42
- if (token && gasPrice) {
42
+ if (token?.quantity && gasPrice) {
43
43
  const isNetworkToken =
44
- token.address === undefined ||
44
+ token.contractAddress === undefined ||
45
45
  Object.values(ConstantsUtil.NATIVE_TOKEN_ADDRESS).some(
46
- nativeAddress => token?.address?.split(':')[2] === nativeAddress
46
+ nativeAddress => token?.contractAddress?.split(':')[2] === nativeAddress
47
47
  );
48
48
 
49
49
  const numericGas = NumberUtil.bigNumber(gasPrice).shiftedBy(-token.quantity.decimals);
@@ -2,7 +2,7 @@ import { type Balance, NumberUtil } from '@reown/appkit-common-react-native';
2
2
  import { UiUtil } from '@reown/appkit-ui-react-native';
3
3
 
4
4
  export function getSendValue(token?: Balance, sendTokenAmount?: number) {
5
- if (token && sendTokenAmount) {
5
+ if (token?.price && sendTokenAmount) {
6
6
  const price = token.price;
7
7
  const totalValue = price * sendTokenAmount;
8
8
 
@@ -13,7 +13,7 @@ export function getSendValue(token?: Balance, sendTokenAmount?: number) {
13
13
  }
14
14
 
15
15
  export function getMaxAmount(token?: Balance) {
16
- if (token) {
16
+ if (token?.quantity) {
17
17
  return NumberUtil.roundNumber(Number(token.quantity.numeric), 6, 5);
18
18
  }
19
19
 
@@ -1,6 +1,6 @@
1
1
  import { StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
2
2
  import { UpgradeWalletButton } from './upgrade-wallet-button';
3
- import { ListItem, ListSocial, Spacing, Text } from '@reown/appkit-ui-react-native';
3
+ import { ListSocial, Spacing, Text } from '@reown/appkit-ui-react-native';
4
4
  import type { SocialProvider } from '@reown/appkit-common-react-native';
5
5
 
6
6
  export interface AuthButtonsProps {
@@ -21,30 +21,19 @@ export function AuthButtons({
21
21
  return (
22
22
  <>
23
23
  <UpgradeWalletButton onPress={onUpgradePress} style={styles.upgradeButton} />
24
- {socialProvider ? (
24
+ {socialProvider && (
25
25
  <ListSocial
26
26
  logo={socialProvider}
27
27
  logoHeight={32}
28
28
  logoWidth={32}
29
29
  style={[styles.socialContainer, style]}
30
+ onPress={onPress}
31
+ chevron={socialProvider === 'email'}
30
32
  >
31
33
  <Text color="fg-100" numberOfLines={1} ellipsizeMode="tail" style={styles.socialText}>
32
34
  {text}
33
35
  </Text>
34
36
  </ListSocial>
35
- ) : (
36
- <ListItem
37
- icon="email"
38
- onPress={onPress}
39
- chevron
40
- testID="button-email"
41
- iconColor="fg-100"
42
- style={style}
43
- >
44
- <Text color="fg-100" numberOfLines={1} ellipsizeMode="tail">
45
- {text}
46
- </Text>
47
- </ListItem>
48
37
  )}
49
38
  </>
50
39
  );
@@ -5,16 +5,12 @@ import {
5
5
  AccountController,
6
6
  ApiController,
7
7
  AssetUtil,
8
- ConnectionController,
9
- ConnectorController,
10
8
  CoreHelperUtil,
11
9
  EventsController,
12
10
  ModalController,
13
- NetworkController,
14
11
  OptionsController,
15
12
  RouterController,
16
13
  SnackController,
17
- type AppKitFrameProvider,
18
14
  ConstantsUtil,
19
15
  SwapController,
20
16
  OnRampController,
@@ -38,27 +34,27 @@ import { AuthButtons } from './components/auth-buttons';
38
34
  import styles from './styles';
39
35
 
40
36
  export function AccountDefaultView() {
41
- const { profileName, profileImage, preferredAccountType } = useSnapshot(AccountController.state);
37
+ const { profileName, profileImage } = useSnapshot(AccountController.state);
42
38
  const { loading } = useSnapshot(ModalController.state);
43
39
  const {
44
40
  activeAddress: address,
45
41
  activeBalance: balance,
46
42
  activeNetwork,
47
- activeNamespace
43
+ activeNamespace,
44
+ connection,
45
+ accountType
48
46
  } = useSnapshot(ConnectionsController.state);
49
47
  const account = address?.split(':')[2];
50
48
  const [disconnecting, setDisconnecting] = useState(false);
51
- const { connectedConnector } = useSnapshot(ConnectorController.state);
52
- const { connectedSocialProvider } = useSnapshot(ConnectionController.state);
53
49
  const { features, isOnRampEnabled } = useSnapshot(OptionsController.state);
54
50
  const { history } = useSnapshot(RouterController.state);
55
51
  const networkImage = AssetUtil.getNetworkImage(activeNetwork?.id);
56
52
  const showCopy = OptionsController.isClipboardAvailable();
57
- const isAuth = connectedConnector === 'AUTH';
53
+ const isAuth = connection?.properties?.email || connection?.properties?.username;
58
54
  const showBalance = balance && !isAuth;
59
55
  const showExplorer = Object.keys(activeNetwork?.blockExplorers ?? {}).length > 0 && !isAuth;
60
56
  const showBack = history.length > 1;
61
- const showSwitchAccountType = isAuth && NetworkController.checkIfSmartAccountEnabled();
57
+ const showSwitchAccountType = isAuth;
62
58
  const showActivity =
63
59
  !isAuth &&
64
60
  activeNamespace &&
@@ -80,17 +76,20 @@ export function AccountDefaultView() {
80
76
 
81
77
  const onSwitchAccountType = async () => {
82
78
  try {
83
- if (isAuth) {
84
- ModalController.setLoading(true);
85
- const accountType =
86
- AccountController.state.preferredAccountType === 'eoa' ? 'smartAccount' : 'eoa';
87
- const provider = ConnectorController.getAuthConnector()?.provider as AppKitFrameProvider;
88
- await provider?.setPreferredAccount(accountType);
79
+ if (isAuth && ConnectionsController.state.activeNamespace) {
80
+ const newType = ConnectionsController.state.accountType === 'eoa' ? 'smartAccount' : 'eoa';
81
+ ConnectionsController.setAccountType(
82
+ ConnectionsController.state.activeNamespace,
83
+ ConnectionsController.state.accountType === 'eoa' ? 'smartAccount' : 'eoa'
84
+ );
85
+ ConnectionsController.fetchBalance();
86
+
89
87
  EventsController.sendEvent({
90
88
  type: 'track',
91
89
  event: 'SET_PREFERRED_ACCOUNT_TYPE',
92
90
  properties: {
93
- accountType,
91
+ // eslint-disable-next-line valtio/state-snapshot-rule
92
+ accountType: newType,
94
93
  network: ConnectionsController.state.activeNetwork?.caipNetworkId || ''
95
94
  }
96
95
  });
@@ -101,20 +100,6 @@ export function AccountDefaultView() {
101
100
  }
102
101
  };
103
102
 
104
- const getUserEmail = () => {
105
- const provider = ConnectorController.getAuthConnector()?.provider as AppKitFrameProvider;
106
- if (!provider) return '';
107
-
108
- return provider.getEmail();
109
- };
110
-
111
- const getUsername = () => {
112
- const provider = ConnectorController.getAuthConnector()?.provider as AppKitFrameProvider;
113
- if (!provider) return '';
114
-
115
- return provider.getUsername();
116
- };
117
-
118
103
  const onExplorerPress = () => {
119
104
  if (showExplorer && ConnectionsController.state.activeNetwork?.blockExplorers?.default?.url) {
120
105
  Linking.openURL(ConnectionsController.state.activeNetwork?.blockExplorers?.default?.url);
@@ -174,8 +159,10 @@ export function AccountDefaultView() {
174
159
  };
175
160
 
176
161
  const onEmailPress = () => {
177
- if (ConnectionController.state.connectedSocialProvider) return;
178
- RouterController.push('UpdateEmailWallet', { email: getUserEmail() });
162
+ const email = ConnectionsController.state.connection?.properties?.email;
163
+ const provider = ConnectionsController.state.connection?.properties?.provider;
164
+ if (provider !== 'email' || !email) return;
165
+ RouterController.push('UpdateEmailWallet', { email });
179
166
  };
180
167
 
181
168
  return (
@@ -239,11 +226,11 @@ export function AccountDefaultView() {
239
226
  {isAuth && (
240
227
  <AuthButtons
241
228
  onUpgradePress={onUpgradePress}
242
- socialProvider={connectedSocialProvider}
229
+ socialProvider={connection?.properties?.provider}
243
230
  onPress={onEmailPress}
244
231
  style={styles.actionButton}
245
232
  text={UiUtil.getTruncateString({
246
- string: getUsername() || getUserEmail() || '',
233
+ string: connection?.properties?.username || connection?.properties?.email || '',
247
234
  charsStart: 30,
248
235
  charsEnd: 0,
249
236
  truncate: 'end'
@@ -316,7 +303,7 @@ export function AccountDefaultView() {
316
303
  loading={loading}
317
304
  >
318
305
  <Text color="fg-100">{`Switch to your ${
319
- preferredAccountType === 'eoa' ? 'smart account' : 'EOA'
306
+ accountType === 'eoa' ? 'smart account' : 'EOA'
320
307
  }`}</Text>
321
308
  </ListItem>
322
309
  )}