@mictonode/widget 0.3.22 → 0.3.23

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 (89) hide show
  1. package/README.md +2 -2
  2. package/dist/{ConstantsUtil-df193f67.js → ConstantsUtil-f9dc60b6.js} +3 -3
  3. package/dist/{ConstantsUtil-1b0c0436.js → ConstantsUtil-fb0ff2e5.js} +1 -1
  4. package/dist/{ExchangeController-953f14bc.js → ExchangeController-173fd1dc.js} +2 -2
  5. package/dist/{HelpersUtil-3810bb58.js → HelpersUtil-4891ff5f.js} +4 -4
  6. package/dist/{ReownAuthentication-7c5b6e79.js → ReownAuthentication-bba89dc5.js} +2 -2
  7. package/dist/{SwapController-e1a7b5f8.js → SwapController-e8b097ca.js} +3 -3
  8. package/dist/{abis-61cccfbf.js → abis-96fed285.js} +1 -1
  9. package/dist/{assertCurrentChain-0c3d6c93.js → assertCurrentChain-b60aa59f.js} +1 -1
  10. package/dist/{ccip-80fe88fb.js → ccip-8f82ae2a.js} +6 -6
  11. package/dist/{data-capture-7edeb077.js → data-capture-7009ffa0.js} +8 -8
  12. package/dist/{email-40537ec5.js → email-d6e2da58.js} +12 -12
  13. package/dist/{embedded-wallet-f71f6169.js → embedded-wallet-48284179.js} +14 -14
  14. package/dist/{encodeFunctionData-91e7c0f6.js → encodeFunctionData-b24a0b2b.js} +2 -2
  15. package/dist/{fallback-1ab5a270.js → fallback-ae0315d4.js} +2 -2
  16. package/dist/features-82db0d52.js +8 -0
  17. package/dist/{hashTypedData-1e059dc4.js → hashTypedData-c13ba550.js} +2 -2
  18. package/dist/{http-d9e0a50a.js → http-90ef23f3.js} +2 -2
  19. package/dist/{index-d3f36c31.js → index-0ac134af.js} +34 -34
  20. package/dist/{index-2cd6a2b2.js → index-19f302c4.js} +3 -3
  21. package/dist/{index-78c5b9e2.js → index-22727038.js} +3 -3
  22. package/dist/{index-144edd3f.js → index-270ff8a2.js} +11 -11
  23. package/dist/{index-abb0ff46.js → index-29eb95bd.js} +3 -3
  24. package/dist/{index-9cc1116b.js → index-2a90711e.js} +2 -2
  25. package/dist/{index-289a865f.js → index-2de6c5bf.js} +4 -4
  26. package/dist/{index-fbced89b.js → index-3de7fa96.js} +3 -3
  27. package/dist/{index-26b53c8a.js → index-42a8a5ec.js} +15 -15
  28. package/dist/{index-58ec291c.js → index-4bd03aed.js} +7 -7
  29. package/dist/{index-85bc86d7.js → index-52edc95a.js} +2 -2
  30. package/dist/{index-04dd1ab3.js → index-577d2709.js} +4 -4
  31. package/dist/{index-4a4ee1e7.js → index-582e4199.js} +7 -7
  32. package/dist/{index-72706598.js → index-617b2147.js} +6 -6
  33. package/dist/{index-0b6166c5.js → index-6a0902fc.js} +2 -2
  34. package/dist/{index-a37d4c03.js → index-6d51f24f.js} +2 -2
  35. package/dist/{index-759b09b0.js → index-80954332.js} +3 -3
  36. package/dist/{index-0e2c49ad.js → index-95777860.js} +7 -7
  37. package/dist/{index-d9effd37.js → index-96729706.js} +13 -13
  38. package/dist/{index-39f31546.js → index-997bc756.js} +2 -2
  39. package/dist/{index-cb4d3345.js → index-a41841e6.js} +3 -3
  40. package/dist/{index-c10f5e72.js → index-adaa2ea4.js} +3 -3
  41. package/dist/{index-97b58f89.js → index-b37b670f.js} +11 -11
  42. package/dist/{index-0763de43.js → index-b8e2c282.js} +3 -3
  43. package/dist/{index-1f02e7d0.js → index-bb5e4071.js} +1 -1
  44. package/dist/{index-3678e7d8.js → index-bf40b971.js} +2 -2
  45. package/dist/{index-a4f054e9.js → index-cb69565e.js} +2 -2
  46. package/dist/{index-197dfd69.js → index-cbb6096a.js} +3 -3
  47. package/dist/{index-119c358f.js → index-ce6854ef.js} +14 -14
  48. package/dist/{index-4fdc7a25.js → index-d7e2a4a3.js} +2 -2
  49. package/dist/{index-0176180b.js → index-e7fbb597.js} +4 -4
  50. package/dist/{index-d5e3e4ba.js → index-f4cd8dd1.js} +3 -3
  51. package/dist/{index-a0c590f7.js → index-f886cf92.js} +2 -2
  52. package/dist/{index-95e1a01b.js → index-faade258.js} +3 -3
  53. package/dist/{localBatchGatewayRequest-8fd1b198.js → localBatchGatewayRequest-ade4aa2f.js} +3 -3
  54. package/dist/{main-7ddb238e.js → main-3b573cfc.js} +38694 -38472
  55. package/dist/{networks-d2ae1da7.js → networks-446d3512.js} +10 -10
  56. package/dist/{onramp-2966f1b1.js → onramp-57d19c5d.js} +19 -19
  57. package/dist/{parseSignature-fca372a1.js → parseSignature-783d626a.js} +8 -8
  58. package/dist/{pay-with-exchange-b0198b3f.js → pay-with-exchange-c59a5773.js} +22 -22
  59. package/dist/ping-widget.js +1 -1
  60. package/dist/ping-widget.umd.cjs +680 -680
  61. package/dist/{query.lcd-873499ca.js → query.lcd-447fb91a.js} +1 -1
  62. package/dist/{query.rpc.Query-d2bcf632.js → query.rpc.Query-97503d87.js} +1 -1
  63. package/dist/{receive-6fbb6662.js → receive-3073a49d.js} +6 -6
  64. package/dist/{ref-2c86b029.js → ref-6c3aabc7.js} +2 -2
  65. package/dist/{send-630ed203.js → send-42403797.js} +22 -22
  66. package/dist/{serializeAuthorizationList-e95a85d8.js → serializeAuthorizationList-70ec977c.js} +4 -4
  67. package/dist/{sha2-c04ffd62.js → sha2-249ae7eb.js} +2 -2
  68. package/dist/{socials-73a5efb0.js → socials-69b0cf18.js} +18 -18
  69. package/dist/{swaps-7b57265f.js → swaps-4e99bb0f.js} +18 -18
  70. package/dist/{transactions-876c066c.js → transactions-1d0c2669.js} +9 -9
  71. package/dist/{tx.rpc.msg-4d8bd1a4.js → tx.rpc.msg-8aa727ea.js} +1 -1
  72. package/dist/{tx.rpc.msg-d08b8ebe.js → tx.rpc.msg-a26b3557.js} +1 -1
  73. package/dist/{verifyHash-ee28e3d7.js → verifyHash-c8962067.js} +5 -5
  74. package/dist/{vue-bea1a08b.js → vue-9dc93a14.js} +10 -10
  75. package/dist/{w3m-modal-7d61c210.js → w3m-modal-291afec4.js} +25 -25
  76. package/dist/{zora-1091e7bb.js → zora-061565b0.js} +4 -4
  77. package/lib/components/ConnectWallet/index.vue +113 -31
  78. package/lib/wallet/KeplrSessionManager.ts +142 -0
  79. package/lib/wallet/WalletSessionManager.ts +111 -25
  80. package/lib/wallet/reown/EvmNetworkProvisioner.ts +97 -0
  81. package/lib/wallet/reown/ReownGateway.ts +22 -3
  82. package/package.json +1 -1
  83. package/test/components/ConnectWallet.test.ts +640 -2
  84. package/test/components/ConnectWalletStorage.test.ts +113 -3
  85. package/test/wallet/KeplrSessionManager.test.ts +269 -0
  86. package/test/wallet/WalletSessionManager.test.ts +901 -2
  87. package/test/wallet/reown/EvmNetworkProvisioner.test.ts +264 -0
  88. package/test/wallet/reown/ReownGateway.test.ts +66 -1
  89. package/dist/features-a2f2ff4f.js +0 -8
@@ -1,4 +1,4 @@
1
- import { _ as e, s as n } from "./main-7ddb238e.js";
1
+ import { _ as e, s as n } from "./main-3b573cfc.js";
2
2
  class c {
3
3
  constructor({
4
4
  requestClient: i
@@ -1,4 +1,4 @@
1
- import { C as a, m as r, T as I, t as be, n as Me, L as s, D as u, o as J, P as l, p as c, A, q as K, r as V, u as Q, v as z, w as H, x as Ue, _ as Se } from "./main-7ddb238e.js";
1
+ import { C as a, m as r, T as I, t as be, n as Me, L as s, D as u, o as J, P as l, p as c, A, q as K, r as V, u as Q, v as z, w as H, x as Ue, _ as Se } from "./main-3b573cfc.js";
2
2
  function X() {
3
3
  return {
4
4
  positionId: s.UZERO,
@@ -1,9 +1,9 @@
1
- import { d as k, r as v, e as N, i as x, h as u, C as c, S as h, y as w, T as f, o as R, W as T, R as A, c as S } from "./ConstantsUtil-df193f67.js";
2
- import { n as $, c as C, U as I, o as O, r as b } from "./index-1f02e7d0.js";
3
- import "./index-3678e7d8.js";
4
- import "./index-2cd6a2b2.js";
5
- import "./main-7ddb238e.js";
6
- import "./abis-61cccfbf.js";
1
+ import { d as k, r as v, e as N, i as x, h as u, C as c, S as h, y as w, T as f, o as R, W as T, R as A, c as S } from "./ConstantsUtil-f9dc60b6.js";
2
+ import { n as $, c as C, U as I, o as O, r as b } from "./index-bb5e4071.js";
3
+ import "./index-bf40b971.js";
4
+ import "./index-19f302c4.js";
5
+ import "./main-3b573cfc.js";
6
+ import "./abis-96fed285.js";
7
7
  const _ = k`
8
8
  button {
9
9
  width: 100%;
@@ -1,5 +1,5 @@
1
- import { x as d } from "./ConstantsUtil-df193f67.js";
2
- import { i as $, t as _, e as A } from "./index-1f02e7d0.js";
1
+ import { x as d } from "./ConstantsUtil-f9dc60b6.js";
2
+ import { i as $, t as _, e as A } from "./index-bb5e4071.js";
3
3
  /**
4
4
  * @license
5
5
  * Copyright 2020 Google LLC
@@ -1,25 +1,25 @@
1
- import { d as b, i as x, c as O, C as g, n as V, K as a, h as c, R as h, N as E, M as K, S as y, b as Q, m as X, y as G, r as Y, e as J, Q as H, U as L, E as Z } from "./ConstantsUtil-df193f67.js";
2
- import { n as d, r as u, c as v, U as I, o as ee } from "./index-1f02e7d0.js";
3
- import "./index-197dfd69.js";
4
- import "./index-4fdc7a25.js";
5
- import "./index-a37d4c03.js";
6
- import { e as M, n as q } from "./ref-2c86b029.js";
7
- import "./index-cb4d3345.js";
8
- import "./index-85bc86d7.js";
9
- import "./index-0176180b.js";
10
- import { S as P } from "./SwapController-e1a7b5f8.js";
11
- import "./index-c10f5e72.js";
12
- import "./index-abb0ff46.js";
13
- import "./index-3678e7d8.js";
14
- import "./index-d5e3e4ba.js";
15
- import "./main-7ddb238e.js";
16
- import "./abis-61cccfbf.js";
17
- import "./index-0b6166c5.js";
18
- import "./index-9cc1116b.js";
19
- import "./vue-bea1a08b.js";
20
- import "./sha2-c04ffd62.js";
21
- import "./http-d9e0a50a.js";
22
- import "./fallback-1ab5a270.js";
1
+ import { d as b, i as x, c as O, C as g, n as V, K as a, h as c, R as h, N as E, M as K, S as y, b as Q, m as X, y as G, r as Y, e as J, Q as H, U as L, E as Z } from "./ConstantsUtil-f9dc60b6.js";
2
+ import { n as d, r as u, c as v, U as I, o as ee } from "./index-bb5e4071.js";
3
+ import "./index-cbb6096a.js";
4
+ import "./index-d7e2a4a3.js";
5
+ import "./index-6d51f24f.js";
6
+ import { e as M, n as q } from "./ref-6c3aabc7.js";
7
+ import "./index-a41841e6.js";
8
+ import "./index-52edc95a.js";
9
+ import "./index-e7fbb597.js";
10
+ import { S as P } from "./SwapController-e8b097ca.js";
11
+ import "./index-adaa2ea4.js";
12
+ import "./index-29eb95bd.js";
13
+ import "./index-bf40b971.js";
14
+ import "./index-f4cd8dd1.js";
15
+ import "./main-3b573cfc.js";
16
+ import "./abis-96fed285.js";
17
+ import "./index-6a0902fc.js";
18
+ import "./index-2a90711e.js";
19
+ import "./vue-9dc93a14.js";
20
+ import "./sha2-249ae7eb.js";
21
+ import "./http-90ef23f3.js";
22
+ import "./fallback-ae0315d4.js";
23
23
  const te = b`
24
24
  :host {
25
25
  width: 100%;
@@ -1,7 +1,7 @@
1
- import { s as k, l as _, B as K, y as i, x as Y, t as v, A as S } from "./abis-61cccfbf.js";
2
- import { r as T, at as j, au as q, av as D, aw as N, k as g, G as R, aq as U, a8 as P, X, Z, Y as $, $ as J, D as M } from "./verifyHash-ee28e3d7.js";
3
- import { C as p, t as b, H as O, G as F } from "./encodeFunctionData-91e7c0f6.js";
4
- import { F as E, T as Q } from "./sha2-c04ffd62.js";
1
+ import { s as k, l as _, B as K, y as i, x as Y, t as v, A as S } from "./abis-96fed285.js";
2
+ import { r as T, at as j, au as q, av as D, aw as N, k as g, G as R, aq as U, a8 as P, X, Z, Y as $, $ as J, D as M } from "./verifyHash-c8962067.js";
3
+ import { C as p, t as b, H as O, G as F } from "./encodeFunctionData-b24a0b2b.js";
4
+ import { F as E, T as Q } from "./sha2-249ae7eb.js";
5
5
  function W(e) {
6
6
  const { authorizationList: s } = e;
7
7
  if (s)
@@ -1,5 +1,5 @@
1
- import { F as We, B as x, C as ee } from "./abis-61cccfbf.js";
2
- import { y as B } from "./main-7ddb238e.js";
1
+ import { F as We, B as x, C as ee } from "./abis-96fed285.js";
2
+ import { y as B } from "./main-3b573cfc.js";
3
3
  function J(t, e = "wei") {
4
4
  return We(t, e);
5
5
  }
@@ -1,21 +1,21 @@
1
- import { d as O, i as _, k as S, O as h, A as k, R as f, b as W, h as c, c as C, C as d, n as P, E as u, D as A, S as v, M as R, T as x } from "./ConstantsUtil-df193f67.js";
2
- import { n as F, r as l, c as I, o as $ } from "./index-1f02e7d0.js";
3
- import { O as T } from "./index-0763de43.js";
4
- import { e as D } from "./index-fbced89b.js";
5
- import { W as N, A as M, E as j } from "./vue-bea1a08b.js";
6
- import "./index-4fdc7a25.js";
7
- import { C as q } from "./ConstantsUtil-1b0c0436.js";
8
- import "./index-197dfd69.js";
9
- import "./index-2cd6a2b2.js";
10
- import "./index-9cc1116b.js";
11
- import "./main-7ddb238e.js";
12
- import "./abis-61cccfbf.js";
13
- import "./ref-2c86b029.js";
14
- import "./sha2-c04ffd62.js";
15
- import "./http-d9e0a50a.js";
16
- import "./fallback-1ab5a270.js";
17
- import "./index-0b6166c5.js";
18
- import "./index-3678e7d8.js";
1
+ import { d as O, i as _, k as S, O as h, A as k, R as f, b as W, h as c, c as C, C as d, n as P, E as u, D as A, S as v, M as R, T as x } from "./ConstantsUtil-f9dc60b6.js";
2
+ import { n as F, r as l, c as I, o as $ } from "./index-bb5e4071.js";
3
+ import { O as T } from "./index-b8e2c282.js";
4
+ import { e as D } from "./index-3de7fa96.js";
5
+ import { W as N, A as M, E as j } from "./vue-9dc93a14.js";
6
+ import "./index-d7e2a4a3.js";
7
+ import { C as q } from "./ConstantsUtil-fb0ff2e5.js";
8
+ import "./index-cbb6096a.js";
9
+ import "./index-19f302c4.js";
10
+ import "./index-2a90711e.js";
11
+ import "./main-3b573cfc.js";
12
+ import "./abis-96fed285.js";
13
+ import "./ref-6c3aabc7.js";
14
+ import "./sha2-249ae7eb.js";
15
+ import "./http-90ef23f3.js";
16
+ import "./fallback-ae0315d4.js";
17
+ import "./index-6a0902fc.js";
18
+ import "./index-bf40b971.js";
19
19
  const z = O`
20
20
  :host {
21
21
  margin-top: ${({ spacing: t }) => t[1]};
@@ -1,22 +1,22 @@
1
- import { d as D, i as C, C as S, N as p, h as u, b as V, E as N, R as P, c as F, M, o as K, W as Q, r as W, e as q } from "./ConstantsUtil-df193f67.js";
2
- import { r as l, n as m, c as L } from "./index-1f02e7d0.js";
3
- import "./index-197dfd69.js";
4
- import "./index-4fdc7a25.js";
5
- import "./index-a4f054e9.js";
6
- import { S as s } from "./SwapController-e1a7b5f8.js";
7
- import "./index-9cc1116b.js";
8
- import "./index-0176180b.js";
1
+ import { d as D, i as C, C as S, N as p, h as u, b as V, E as N, R as P, c as F, M, o as K, W as Q, r as W, e as q } from "./ConstantsUtil-f9dc60b6.js";
2
+ import { r as l, n as m, c as L } from "./index-bb5e4071.js";
3
+ import "./index-cbb6096a.js";
4
+ import "./index-d7e2a4a3.js";
5
+ import "./index-cb69565e.js";
6
+ import { S as s } from "./SwapController-e8b097ca.js";
7
+ import "./index-2a90711e.js";
8
+ import "./index-e7fbb597.js";
9
9
  import { M as _ } from "./MathUtil-8172707b.js";
10
- import "./index-c10f5e72.js";
11
- import "./index-3678e7d8.js";
12
- import "./main-7ddb238e.js";
13
- import "./abis-61cccfbf.js";
14
- import "./index-0b6166c5.js";
15
- import "./vue-bea1a08b.js";
16
- import "./sha2-c04ffd62.js";
17
- import "./http-d9e0a50a.js";
18
- import "./fallback-1ab5a270.js";
19
- import "./ref-2c86b029.js";
10
+ import "./index-adaa2ea4.js";
11
+ import "./index-bf40b971.js";
12
+ import "./main-3b573cfc.js";
13
+ import "./abis-96fed285.js";
14
+ import "./index-6a0902fc.js";
15
+ import "./vue-9dc93a14.js";
16
+ import "./sha2-249ae7eb.js";
17
+ import "./http-90ef23f3.js";
18
+ import "./fallback-ae0315d4.js";
19
+ import "./ref-6c3aabc7.js";
20
20
  const H = {
21
21
  numericInputKeyDown(e, t, o) {
22
22
  const i = [
@@ -1,12 +1,12 @@
1
- import { j as a, i as f, h as m } from "./ConstantsUtil-df193f67.js";
2
- import { c as p } from "./index-1f02e7d0.js";
3
- import "./index-4a4ee1e7.js";
4
- import "./main-7ddb238e.js";
5
- import "./abis-61cccfbf.js";
6
- import "./index-4fdc7a25.js";
7
- import "./index-85bc86d7.js";
8
- import "./index-3678e7d8.js";
9
- import "./index-9cc1116b.js";
1
+ import { j as a, i as f, h as m } from "./ConstantsUtil-f9dc60b6.js";
2
+ import { c as p } from "./index-bb5e4071.js";
3
+ import "./index-582e4199.js";
4
+ import "./main-3b573cfc.js";
5
+ import "./abis-96fed285.js";
6
+ import "./index-d7e2a4a3.js";
7
+ import "./index-52edc95a.js";
8
+ import "./index-bf40b971.js";
9
+ import "./index-2a90711e.js";
10
10
  const w = a`
11
11
  :host > wui-flex:first-child {
12
12
  height: 500px;
@@ -1,4 +1,4 @@
1
- import { _ as n, b as d, c as r, m as i, d as c, e as a, f as h, g as l, h as p, i as m, j as w, k as P } from "./main-7ddb238e.js";
1
+ import { _ as n, b as d, c as r, m as i, d as c, e as a, f as h, g as l, h as p, i as m, j as w, k as P } from "./main-3b573cfc.js";
2
2
  class M {
3
3
  constructor(e) {
4
4
  n(this, "rpc", void 0), this.rpc = e, this.createPosition = this.createPosition.bind(this), this.withdrawPosition = this.withdrawPosition.bind(this), this.addToPosition = this.addToPosition.bind(this), this.collectSpreadRewards = this.collectSpreadRewards.bind(this), this.collectIncentives = this.collectIncentives.bind(this);
@@ -1,4 +1,4 @@
1
- import { _ as r, M as n, a as s, m as a } from "./main-7ddb238e.js";
1
+ import { _ as r, M as n, a as s, m as a } from "./main-3b573cfc.js";
2
2
  class l {
3
3
  constructor(e) {
4
4
  r(this, "rpc", void 0), this.rpc = e, this.createConcentratedPool = this.createConcentratedPool.bind(this);
@@ -1,7 +1,7 @@
1
- import { B as R, P as ht, x as re, j as Ve, t as Nr, c as Cs, l as Oe, q as Pe, s as Ae, C as Rs, Q as Ms, i as dt, A as Ht, y as V, R as Gn, v as Lr, L as Ns, m as Dt, T as _r, a as Vn, k as Ls } from "./abis-61cccfbf.js";
2
- import { K as le, a9 as _s, j as Us, k as js, g as Gs, E as ct, F as Zt, a as Hn, d as Dn, e as Zn, N as qn, I as Wn, b as Kn, c as Yn, f as Xn, T as qt, U as yt, Q as Vs, V as Hs, X as Ds, a1 as Zs, a4 as qs, a0 as Ws, a3 as Ks, a5 as Ys } from "./sha2-c04ffd62.js";
3
- import { F as Ur, E as Xs } from "./main-7ddb238e.js";
4
- import { V as $e, W as jr, X as Gr, Y as Vr, c as yn, b as Hr, Z as Dr, I as Js, y as Zr, J as Qs, H as Jn, P as eo, Q as pt, i as qr, w as Wr, L as pn, G as mn, C as Je, t as Qe, k as to, N as Kr, l as no, p as ro, D as Qn, m as er, n as io, A as so, a as tr, u as oo, v as mt, z as Wt } from "./encodeFunctionData-91e7c0f6.js";
1
+ import { B as R, P as ht, x as re, j as Ve, t as Nr, c as Cs, l as Oe, q as Pe, s as Ae, C as Rs, Q as Ms, i as dt, A as Ht, y as V, R as Gn, v as Lr, L as Ns, m as Dt, T as _r, a as Vn, k as Ls } from "./abis-96fed285.js";
2
+ import { K as le, a9 as _s, j as Us, k as js, g as Gs, E as ct, F as Zt, a as Hn, d as Dn, e as Zn, N as qn, I as Wn, b as Kn, c as Yn, f as Xn, T as qt, U as yt, Q as Vs, V as Hs, X as Ds, a1 as Zs, a4 as qs, a0 as Ws, a3 as Ks, a5 as Ys } from "./sha2-249ae7eb.js";
3
+ import { F as Ur, E as Xs } from "./main-3b573cfc.js";
4
+ import { V as $e, W as jr, X as Gr, Y as Vr, c as yn, b as Hr, Z as Dr, I as Js, y as Zr, J as Qs, H as Jn, P as eo, Q as pt, i as qr, w as Wr, L as pn, G as mn, C as Je, t as Qe, k as to, N as Kr, l as no, p as ro, D as Qn, m as er, n as io, A as so, a as tr, u as oo, v as mt, z as Wt } from "./encodeFunctionData-b24a0b2b.js";
5
5
  const ao = "1.2.3";
6
6
  let ae = class Kt extends Error {
7
7
  constructor(t, n = {}) {
@@ -3288,7 +3288,7 @@ async function Zi(e, t) {
3288
3288
  throw Vs(B.signal);
3289
3289
  if (Hs(j))
3290
3290
  throw j;
3291
- const G = q0(j), { offchainLookup: H, offchainLookupSignature: D } = await import("./ccip-80fe88fb.js");
3291
+ const G = q0(j), { offchainLookup: H, offchainLookupSignature: D } = await import("./ccip-8f82ae2a.js");
3292
3292
  if (e.ccipRead !== !1 && (G == null ? void 0 : G.slice(0, 10)) === D && w)
3293
3293
  return {
3294
3294
  data: await H(e, { data: G, requestOptions: B, to: w })
@@ -1,12 +1,12 @@
1
1
  var Pw = Object.defineProperty;
2
2
  var Rw = (r, e, t) => e in r ? Pw(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
3
  var ce = (r, e, t) => (Rw(r, typeof e != "symbol" ? e + "" : e, t), t);
4
- import { K as wr, I as Np, J as ae, l as dr, E as Dw, H as Ce, N as Xl, O as eh, Q as ut, R as Ql, S as os, U as Kn } from "./main-7ddb238e.js";
5
- import { W as Xr, aj as re, F as Tr, ak as $w, al as Uw, J as vt, am as kw, _ as vs, C as R, p as Pp, w as Rp, an as Dp, s as Fw, a as Kr, ao as Bw, O as K, B as Mo, A as Ze, ap as ba, aq as Lw, a7 as $p, a9 as Up, y as Js, n as ue, ar as sn, c as Me, k as we, as as th, a8 as jo, aa as Mw, at as jw, ac as qw, D as Ae, ad as zw, ag as Ww, b as We, au as Vw, ai as di, a0 as Ne, o as qo, L as Kw, M as cs, K as rh, af as Va, E as xr, Z as Hw, T as Ar, X as No, G as Dt, a2 as zo, R as Hs, av as Gw, aw as Zw, S as sh, I as Yw, t as Jw, P as nh } from "./ConstantsUtil-df193f67.js";
6
- import { D as ne, A as ih, N as Xw } from "./abis-61cccfbf.js";
7
- import { a1 as Qw, a4 as e0, a0 as t0, a3 as r0, a5 as s0 } from "./sha2-c04ffd62.js";
8
- import { h as no } from "./http-d9e0a50a.js";
9
- import { f as oh } from "./fallback-1ab5a270.js";
4
+ import { K as wr, I as Np, J as ae, l as dr, E as Dw, H as Ce, N as Xl, O as eh, Q as ut, R as Ql, S as os, U as Kn } from "./main-3b573cfc.js";
5
+ import { W as Xr, aj as re, F as Tr, ak as $w, al as Uw, J as vt, am as kw, _ as vs, C as R, p as Pp, w as Rp, an as Dp, s as Fw, a as Kr, ao as Bw, O as K, B as Mo, A as Ze, ap as ba, aq as Lw, a7 as $p, a9 as Up, y as Js, n as ue, ar as sn, c as Me, k as we, as as th, a8 as jo, aa as Mw, at as jw, ac as qw, D as Ae, ad as zw, ag as Ww, b as We, au as Vw, ai as di, a0 as Ne, o as qo, L as Kw, M as cs, K as rh, af as Va, E as xr, Z as Hw, T as Ar, X as No, G as Dt, a2 as zo, R as Hs, av as Gw, aw as Zw, S as sh, I as Yw, t as Jw, P as nh } from "./ConstantsUtil-f9dc60b6.js";
6
+ import { D as ne, A as ih, N as Xw } from "./abis-96fed285.js";
7
+ import { a1 as Qw, a4 as e0, a0 as t0, a3 as r0, a5 as s0 } from "./sha2-249ae7eb.js";
8
+ import { h as no } from "./http-90ef23f3.js";
9
+ import { f as oh } from "./fallback-ae0315d4.js";
10
10
  var xe;
11
11
  (function(r) {
12
12
  r.assertEqual = (n) => n;
@@ -20076,7 +20076,7 @@ class fk {
20076
20076
  fetchWalletRanks: !1,
20077
20077
  fetchRecommendedWallets: !0
20078
20078
  }), K.state.enableReconnect ? (await this.syncExistingConnection(), await this.syncAdapterConnections()) : await this.unSyncExistingConnection(), !e.basic && !e.manualWCControl && (this.remoteFeatures = await dk.fetchRemoteFeatures(e)), await Ze.fetchUsage(), K.setRemoteFeatures(this.remoteFeatures), this.remoteFeatures.onramp && al.setOnrampProviders(this.remoteFeatures.onramp), ((s = K.state.remoteFeatures) != null && s.email || Array.isArray((n = K.state.remoteFeatures) == null ? void 0 : n.socials) && ((i = K.state.remoteFeatures) == null ? void 0 : i.socials.length) > 0) && await this.checkAllowedOrigins(), (o = K.state.features) != null && o.reownAuthentication || (a = K.state.remoteFeatures) != null && a.reownAuthentication) {
20079
- const { ReownAuthentication: c } = await import("./features-a2f2ff4f.js"), l = K.state.siwx;
20079
+ const { ReownAuthentication: c } = await import("./features-82db0d52.js"), l = K.state.siwx;
20080
20080
  l instanceof c || (l && console.warn("ReownAuthentication option is enabled, SIWX configuration will be overridden."), K.setSIWX(new c()));
20081
20081
  }
20082
20082
  }
@@ -21589,10 +21589,10 @@ class Aw extends fk {
21589
21589
  if (!Me.isClient())
21590
21590
  return;
21591
21591
  const s = [];
21592
- (t.email || t.socials && t.socials.length > 0) && s.push(import("./embedded-wallet-f71f6169.js")), t.email && s.push(import("./email-40537ec5.js")), t.socials && s.push(import("./socials-73a5efb0.js")), t.swaps && t.swaps.length > 0 && s.push(import("./swaps-7b57265f.js")), e.send && s.push(import("./send-630ed203.js")), e.receive && s.push(import("./receive-6fbb6662.js")), t.onramp && t.onramp.length > 0 && s.push(import("./onramp-2966f1b1.js")), t.payWithExchange && s.push(import("./pay-with-exchange-b0198b3f.js")), t.activity && s.push(import("./transactions-876c066c.js")), (e.pay || t.payments) && s.push(import("./index-26b53c8a.js")), t.emailCapture && s.push(import("./data-capture-7edeb077.js")), await Promise.all([
21592
+ (t.email || t.socials && t.socials.length > 0) && s.push(import("./embedded-wallet-48284179.js")), t.email && s.push(import("./email-d6e2da58.js")), t.socials && s.push(import("./socials-69b0cf18.js")), t.swaps && t.swaps.length > 0 && s.push(import("./swaps-4e99bb0f.js")), e.send && s.push(import("./send-42403797.js")), e.receive && s.push(import("./receive-3073a49d.js")), t.onramp && t.onramp.length > 0 && s.push(import("./onramp-57d19c5d.js")), t.payWithExchange && s.push(import("./pay-with-exchange-c59a5773.js")), t.activity && s.push(import("./transactions-1d0c2669.js")), (e.pay || t.payments) && s.push(import("./index-42a8a5ec.js")), t.emailCapture && s.push(import("./data-capture-7009ffa0.js")), await Promise.all([
21593
21593
  ...s,
21594
- import("./index-d3f36c31.js"),
21595
- import("./w3m-modal-7d61c210.js")
21594
+ import("./index-0ac134af.js"),
21595
+ import("./w3m-modal-291afec4.js")
21596
21596
  ]);
21597
21597
  }
21598
21598
  }
@@ -1,29 +1,29 @@
1
- import { R as c, M as k, X as le, n as pe, d as v, r as V, i as g, h as d, e as me, C as w, v as B, y as U, P as fe, E as K, O as A, k as M, j as we, S as E, A as z, T as be, Y as ge, Z as ye } from "./ConstantsUtil-df193f67.js";
2
- import { c as f, n as l, o as $, r as h, U as ce } from "./index-1f02e7d0.js";
3
- import { A as H } from "./vue-bea1a08b.js";
4
- import { P as D } from "./index-144edd3f.js";
5
- import "./index-3678e7d8.js";
6
- import { H as ie } from "./HelpersUtil-3810bb58.js";
7
- import { C as F } from "./ConstantsUtil-1b0c0436.js";
8
- import "./index-0b6166c5.js";
9
- import "./index-4fdc7a25.js";
10
- import "./index-a4f054e9.js";
11
- import "./index-72706598.js";
12
- import { S as ve } from "./SwapController-e1a7b5f8.js";
13
- import "./index-197dfd69.js";
14
- import "./main-7ddb238e.js";
15
- import "./abis-61cccfbf.js";
16
- import "./sha2-c04ffd62.js";
17
- import "./http-d9e0a50a.js";
18
- import "./fallback-1ab5a270.js";
19
- import "./index-39f31546.js";
20
- import "./index-95e1a01b.js";
21
- import "./index-04dd1ab3.js";
22
- import "./index-a37d4c03.js";
23
- import "./index-9cc1116b.js";
1
+ import { R as c, M as k, X as le, n as pe, d as v, r as V, i as g, h as d, e as me, C as w, v as B, y as U, P as fe, E as K, O as A, k as M, j as we, S as E, A as z, T as be, Y as ge, Z as ye } from "./ConstantsUtil-f9dc60b6.js";
2
+ import { c as f, n as l, o as $, r as h, U as ce } from "./index-bb5e4071.js";
3
+ import { A as H } from "./vue-9dc93a14.js";
4
+ import { P as D } from "./index-270ff8a2.js";
5
+ import "./index-bf40b971.js";
6
+ import { H as ie } from "./HelpersUtil-4891ff5f.js";
7
+ import { C as F } from "./ConstantsUtil-fb0ff2e5.js";
8
+ import "./index-6a0902fc.js";
9
+ import "./index-d7e2a4a3.js";
10
+ import "./index-cb69565e.js";
11
+ import "./index-617b2147.js";
12
+ import { S as ve } from "./SwapController-e8b097ca.js";
13
+ import "./index-cbb6096a.js";
14
+ import "./main-3b573cfc.js";
15
+ import "./abis-96fed285.js";
16
+ import "./sha2-249ae7eb.js";
17
+ import "./http-90ef23f3.js";
18
+ import "./fallback-ae0315d4.js";
19
+ import "./index-997bc756.js";
20
+ import "./index-faade258.js";
21
+ import "./index-577d2709.js";
22
+ import "./index-6d51f24f.js";
23
+ import "./index-2a90711e.js";
24
24
  import "./MathUtil-8172707b.js";
25
- import "./index-759b09b0.js";
26
- import "./index-85bc86d7.js";
25
+ import "./index-80954332.js";
26
+ import "./index-52edc95a.js";
27
27
  const de = {
28
28
  isUnsupportedChainView() {
29
29
  return c.state.view === "UnsupportedChain" || c.state.view === "SwitchNetwork" && c.state.history.includes("UnsupportedChain");
@@ -1,7 +1,7 @@
1
- import { aa as k, ae as B, ad as F, ag as T, a8 as A, a1 as t } from "./verifyHash-ee28e3d7.js";
2
- import { j as l, l as U, A as b } from "./abis-61cccfbf.js";
3
- import { G as S, C as h, t as x } from "./encodeFunctionData-91e7c0f6.js";
4
- import { d as D } from "./serializeAuthorizationList-e95a85d8.js";
1
+ import { aa as k, ae as B, ad as F, ag as T, a8 as A, a1 as t } from "./verifyHash-c8962067.js";
2
+ import { j as l, l as U, A as b } from "./abis-96fed285.js";
3
+ import { G as S, C as h, t as x } from "./encodeFunctionData-b24a0b2b.js";
4
+ import { d as D } from "./serializeAuthorizationList-70ec977c.js";
5
5
  const v = {
6
6
  gasPriceOracle: { address: "0x420000000000000000000000000000000000000F" },
7
7
  l1Block: { address: "0x4200000000000000000000000000000000000015" },
@@ -11,6 +11,7 @@ import {
11
11
  } from '../../../lib/wallet/Wallet';
12
12
  import { buildWalletCatalog } from '../../../lib/wallet/WalletCatalog';
13
13
  import { walletErrorMessage } from '../../../lib/wallet/WalletError';
14
+ import { KeplrSessionManager } from '../../../lib/wallet/KeplrSessionManager';
14
15
  import { WalletSessionManager } from '../../../lib/wallet/WalletSessionManager';
15
16
  import { parseReownConfig } from '../../../lib/wallet/reown/ReownConfig';
16
17
  import { Icon } from '@iconify/vue';
@@ -36,10 +37,33 @@ const walletList = computed(() =>
36
37
  buildWalletCatalog(props.params, Boolean(reownConfig.value))
37
38
  );
38
39
  const connected = ref(readWallet(props.hdPath) as ConnectedWallet);
39
- let sessionManager = new WalletSessionManager(
40
- props.hdPath || DEFAULT_HDPATH
41
- );
40
+ const activeHdPath = () => props.hdPath || DEFAULT_HDPATH;
41
+ let reownSessionManager = new WalletSessionManager(activeHdPath());
42
+ let keplrSessionManager = new KeplrSessionManager(activeHdPath());
42
43
  let isMounted = false;
44
+ let sessionGeneration = 0;
45
+
46
+ function disposeManagers(): void {
47
+ sessionGeneration += 1;
48
+ reownSessionManager.dispose();
49
+ keplrSessionManager.dispose();
50
+ }
51
+
52
+ function replaceManagers(): number {
53
+ disposeManagers();
54
+ reownSessionManager = new WalletSessionManager(activeHdPath());
55
+ keplrSessionManager = new KeplrSessionManager(activeHdPath());
56
+ return sessionGeneration;
57
+ }
58
+
59
+ function isCurrentSession(generation: number): boolean {
60
+ return isMounted && sessionGeneration === generation;
61
+ }
62
+
63
+ function clearVisibleSession(): void {
64
+ connected.value = {} as ConnectedWallet;
65
+ emit('disconnect', { value: undefined });
66
+ }
43
67
 
44
68
  function sessionArgument() {
45
69
  return {
@@ -60,19 +84,37 @@ function sessionFailed(walletError: { message: string }) {
60
84
  }
61
85
 
62
86
  async function bindCurrentSession(): Promise<void> {
63
- sessionManager.dispose();
64
87
  const hdPath = props.hdPath;
65
- const manager = new WalletSessionManager(hdPath || DEFAULT_HDPATH);
66
- sessionManager = manager;
67
- connected.value = readWallet(hdPath) as ConnectedWallet;
88
+ const restored = readWallet(hdPath) as ConnectedWallet;
89
+ replaceManagers();
90
+
91
+ if (!restored.wallet) {
92
+ connected.value = {} as ConnectedWallet;
93
+ return;
94
+ }
95
+
96
+ if (restored.wallet === WalletName.Keplr) {
97
+ await keplrSessionManager.start(
98
+ sessionArgument(),
99
+ sessionChanged,
100
+ sessionFailed
101
+ );
102
+ return;
103
+ }
104
+
105
+ clearVisibleSession();
106
+ if (restored.wallet !== WalletName.Evm) {
107
+ connected.value = restored;
108
+ emit('connect', { value: restored });
109
+ return;
110
+ }
68
111
 
69
- if (connected.value.wallet !== WalletName.Evm) return;
70
112
  if (!reownConfig.value) {
71
113
  removeWallet(hdPath);
72
- connected.value = {} as ConnectedWallet;
73
114
  return;
74
115
  }
75
116
 
117
+ const manager = reownSessionManager;
76
118
  try {
77
119
  await manager.start(
78
120
  reownConfig.value,
@@ -81,10 +123,10 @@ async function bindCurrentSession(): Promise<void> {
81
123
  sessionFailed
82
124
  );
83
125
  } catch (caught) {
84
- if (sessionManager !== manager) return;
126
+ if (!isMounted || reownSessionManager !== manager) return;
85
127
  error.value = walletErrorMessage(caught, WalletName.Evm);
86
128
  removeWallet(hdPath);
87
- connected.value = {} as ConnectedWallet;
129
+ clearVisibleSession();
88
130
  }
89
131
  }
90
132
 
@@ -96,33 +138,55 @@ function selectWallet(wallet: WalletName) {
96
138
  }
97
139
 
98
140
  async function connect() {
141
+ const selectedWallet = name.value;
142
+ const generation = replaceManagers();
143
+ const changed = (value: ConnectedWallet | undefined) => {
144
+ if (isCurrentSession(generation)) sessionChanged(value);
145
+ };
146
+ const failed = (walletError: { message: string }) => {
147
+ if (!isCurrentSession(generation)) return;
148
+ sessionFailed(walletError);
149
+ if (sending.value) open.value = true;
150
+ };
99
151
  sending.value = true;
100
152
  error.value = '';
101
153
  try {
102
- if (name.value === WalletName.Evm) {
103
- if (!reownConfig.value) {
154
+ if (selectedWallet === WalletName.Keplr) {
155
+ open.value = false;
156
+ await keplrSessionManager.start(
157
+ sessionArgument(),
158
+ changed,
159
+ failed
160
+ );
161
+ return;
162
+ }
163
+
164
+ if (selectedWallet === WalletName.Evm) {
165
+ const config = reownConfig.value;
166
+ if (!config) {
104
167
  throw new Error('EVM wallet connection is unavailable');
105
168
  }
106
169
  open.value = false;
107
- await sessionManager.connect(
108
- reownConfig.value,
170
+ await reownSessionManager.connect(
171
+ config,
109
172
  sessionArgument(),
110
- sessionChanged,
111
- sessionFailed
173
+ changed,
174
+ failed
112
175
  );
113
176
  return;
114
177
  }
115
178
 
116
- const wa = createWallet(name.value, {
179
+ const wa = createWallet(selectedWallet, {
117
180
  chainId: props.chainId,
118
181
  hdPath: props.hdPath,
119
182
  prefix: props.addrPrefix
120
183
  });
121
184
  const accounts = await wa.getAccounts();
185
+ if (!isCurrentSession(generation)) return;
122
186
  if (accounts.length > 0) {
123
187
  const [first] = accounts;
124
188
  connected.value = {
125
- wallet: name.value,
189
+ wallet: selectedWallet,
126
190
  cosmosAddress: first.address,
127
191
  hdPath: props.hdPath
128
192
  };
@@ -133,39 +197,57 @@ async function connect() {
133
197
  }
134
198
  open.value = false;
135
199
  } catch (caught) {
136
- error.value = walletErrorMessage(caught, name.value);
200
+ if (!isCurrentSession(generation)) return;
201
+ error.value = walletErrorMessage(caught, selectedWallet);
137
202
  } finally {
138
- sending.value = false;
203
+ if (isCurrentSession(generation)) sending.value = false;
139
204
  }
140
205
  }
141
206
 
142
207
  async function disconnect() {
143
208
  const previous = connected.value;
209
+ disposeManagers();
210
+ const generation = sessionGeneration;
144
211
  if (previous.wallet === WalletName.Evm && reownConfig.value) {
145
212
  try {
146
- await sessionManager.disconnect(reownConfig.value);
213
+ await reownSessionManager.disconnect(reownConfig.value);
147
214
  } catch (caught) {
148
- error.value = walletErrorMessage(caught, WalletName.Evm);
215
+ if (isCurrentSession(generation)) {
216
+ error.value = walletErrorMessage(caught, WalletName.Evm);
217
+ }
149
218
  }
150
219
  } else {
151
220
  removeWallet(props.hdPath);
152
221
  }
222
+ if (!isCurrentSession(generation)) return;
153
223
  emit('disconnect', { value: previous });
154
224
  connected.value = {} as ConnectedWallet;
155
225
  }
156
226
 
157
227
  async function handleExternalDisconnect(event: Event): Promise<void> {
158
228
  const detail = (event as CustomEvent<{ hdPath?: string }>).detail;
159
- const hdPath = props.hdPath || DEFAULT_HDPATH;
229
+ const hdPath = activeHdPath();
160
230
  if (detail?.hdPath !== hdPath) return;
161
231
 
162
- if (readWallet(hdPath).wallet === WalletName.Evm && reownConfig.value) {
163
- await sessionManager.disconnect(reownConfig.value);
164
- } else {
165
- removeWallet(hdPath);
232
+ const previous = readWallet(hdPath) as ConnectedWallet;
233
+ disposeManagers();
234
+ const generation = sessionGeneration;
235
+ try {
236
+ if (previous.wallet === WalletName.Evm && reownConfig.value) {
237
+ await reownSessionManager.disconnect(reownConfig.value);
238
+ } else {
239
+ removeWallet(hdPath);
240
+ }
241
+ } catch (caught) {
242
+ if (isCurrentSession(generation)) {
243
+ error.value = walletErrorMessage(caught, previous.wallet);
244
+ }
245
+ } finally {
246
+ if (isCurrentSession(generation)) {
247
+ connected.value = {} as ConnectedWallet;
248
+ emit('disconnect', { value: undefined });
249
+ }
166
250
  }
167
- connected.value = {} as ConnectedWallet;
168
- emit('disconnect', { value: undefined });
169
251
  }
170
252
 
171
253
  function externalDisconnectListener(event: Event): void {
@@ -189,7 +271,7 @@ onBeforeUnmount(() => {
189
271
  'mictonode:wallet-disconnect',
190
272
  externalDisconnectListener
191
273
  );
192
- sessionManager.dispose();
274
+ disposeManagers();
193
275
  });
194
276
 
195
277
  watch(