@mictonode/widget 0.3.23 → 0.3.24

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 (104) hide show
  1. package/dist/{ConstantsUtil-f9dc60b6.js → ConstantsUtil-69f4aadb.js} +3 -3
  2. package/dist/{ConstantsUtil-fb0ff2e5.js → ConstantsUtil-ffeefb33.js} +1 -1
  3. package/dist/{ExchangeController-173fd1dc.js → ExchangeController-920db609.js} +2 -2
  4. package/dist/{HelpersUtil-4891ff5f.js → HelpersUtil-e60d77c2.js} +4 -4
  5. package/dist/{ReownAuthentication-bba89dc5.js → ReownAuthentication-a05128a9.js} +2 -2
  6. package/dist/{SwapController-e8b097ca.js → SwapController-3307b7d5.js} +3 -3
  7. package/dist/{abis-96fed285.js → abis-5e7391e2.js} +1 -1
  8. package/dist/{assertCurrentChain-b60aa59f.js → assertCurrentChain-42cdea0e.js} +1 -1
  9. package/dist/{ccip-8f82ae2a.js → ccip-b3df1d28.js} +6 -6
  10. package/dist/{data-capture-7009ffa0.js → data-capture-6b7e5c19.js} +8 -8
  11. package/dist/{email-d6e2da58.js → email-5c6fce3f.js} +12 -12
  12. package/dist/{embedded-wallet-48284179.js → embedded-wallet-87192e5a.js} +14 -14
  13. package/dist/{encodeFunctionData-b24a0b2b.js → encodeFunctionData-929ae2a4.js} +2 -2
  14. package/dist/{fallback-ae0315d4.js → fallback-366fc17d.js} +2 -2
  15. package/dist/features-cf9f5cda.js +8 -0
  16. package/dist/{hashTypedData-c13ba550.js → hashTypedData-f86861cf.js} +2 -2
  17. package/dist/{http-90ef23f3.js → http-b4045adf.js} +2 -2
  18. package/dist/{index-3de7fa96.js → index-0313c561.js} +3 -3
  19. package/dist/{index-4bd03aed.js → index-0d05a79e.js} +7 -7
  20. package/dist/{index-b8e2c282.js → index-1450179f.js} +3 -3
  21. package/dist/{index-bb5e4071.js → index-20c073be.js} +1 -1
  22. package/dist/{index-b37b670f.js → index-23d992c9.js} +11 -11
  23. package/dist/{index-ce6854ef.js → index-2b5ce2e7.js} +14 -14
  24. package/dist/{index-cb69565e.js → index-2b935b7c.js} +2 -2
  25. package/dist/{index-bf40b971.js → index-311166f4.js} +2 -2
  26. package/dist/{index-cbb6096a.js → index-3d20f99e.js} +3 -3
  27. package/dist/{index-0ac134af.js → index-4552387b.js} +34 -34
  28. package/dist/{index-2a90711e.js → index-48fbe63e.js} +2 -2
  29. package/dist/{index-617b2147.js → index-4d538f05.js} +6 -6
  30. package/dist/{index-577d2709.js → index-4ecd4250.js} +4 -4
  31. package/dist/{index-95777860.js → index-50a00b25.js} +7 -7
  32. package/dist/{index-582e4199.js → index-566c48ac.js} +7 -7
  33. package/dist/{index-270ff8a2.js → index-58f616f1.js} +11 -11
  34. package/dist/{index-d7e2a4a3.js → index-5ae39b48.js} +2 -2
  35. package/dist/{index-6d51f24f.js → index-5f3d0c2f.js} +2 -2
  36. package/dist/{index-6a0902fc.js → index-6f8bfdd4.js} +2 -2
  37. package/dist/{index-997bc756.js → index-806b59ae.js} +2 -2
  38. package/dist/{index-96729706.js → index-8327440a.js} +13 -13
  39. package/dist/{index-80954332.js → index-986ea4f3.js} +3 -3
  40. package/dist/{index-2de6c5bf.js → index-9ee4129a.js} +4 -4
  41. package/dist/{index-f886cf92.js → index-a16b0b1a.js} +2 -2
  42. package/dist/{index-29eb95bd.js → index-a84fb2d4.js} +3 -3
  43. package/dist/{index-a41841e6.js → index-a8cfb216.js} +3 -3
  44. package/dist/{index-19f302c4.js → index-acb4d6e1.js} +3 -3
  45. package/dist/{index-f4cd8dd1.js → index-bc8dc6e6.js} +3 -3
  46. package/dist/{index-22727038.js → index-be60697a.js} +3 -3
  47. package/dist/{index-e7fbb597.js → index-cf5dc9e0.js} +4 -4
  48. package/dist/{index-faade258.js → index-d29e5bfc.js} +3 -3
  49. package/dist/{index-52edc95a.js → index-d333ef20.js} +2 -2
  50. package/dist/{index-42a8a5ec.js → index-d5d48d61.js} +15 -15
  51. package/dist/{index-adaa2ea4.js → index-f706ea18.js} +3 -3
  52. package/dist/{localBatchGatewayRequest-ade4aa2f.js → localBatchGatewayRequest-bd902016.js} +3 -3
  53. package/dist/{main-3b573cfc.js → main-cce20875.js} +42707 -42613
  54. package/dist/{networks-446d3512.js → networks-fcbf0c74.js} +10 -10
  55. package/dist/{onramp-57d19c5d.js → onramp-eb02e46e.js} +19 -19
  56. package/dist/{parseSignature-783d626a.js → parseSignature-0f866446.js} +8 -8
  57. package/dist/{pay-with-exchange-c59a5773.js → pay-with-exchange-5073a468.js} +22 -22
  58. package/dist/ping-widget.js +1 -1
  59. package/dist/ping-widget.umd.cjs +727 -727
  60. package/dist/{query.lcd-447fb91a.js → query.lcd-cefcdaf4.js} +1 -1
  61. package/dist/{query.rpc.Query-97503d87.js → query.rpc.Query-f2981fc7.js} +1 -1
  62. package/dist/{receive-3073a49d.js → receive-11a25c5f.js} +6 -6
  63. package/dist/{ref-6c3aabc7.js → ref-7866a390.js} +2 -2
  64. package/dist/{send-42403797.js → send-a8333bb0.js} +22 -22
  65. package/dist/{serializeAuthorizationList-70ec977c.js → serializeAuthorizationList-b5a1a7f6.js} +4 -4
  66. package/dist/{sha2-249ae7eb.js → sha2-fb4e167b.js} +2 -2
  67. package/dist/{socials-69b0cf18.js → socials-3184225d.js} +18 -18
  68. package/dist/{swaps-4e99bb0f.js → swaps-196b9a1a.js} +18 -18
  69. package/dist/{transactions-1d0c2669.js → transactions-cb14f528.js} +9 -9
  70. package/dist/{tx.rpc.msg-a26b3557.js → tx.rpc.msg-c784af37.js} +1 -1
  71. package/dist/{tx.rpc.msg-8aa727ea.js → tx.rpc.msg-ca20b10a.js} +1 -1
  72. package/dist/{verifyHash-c8962067.js → verifyHash-fa9728b0.js} +5 -5
  73. package/dist/{vue-9dc93a14.js → vue-634e8253.js} +10 -10
  74. package/dist/{w3m-modal-291afec4.js → w3m-modal-7b0a1b01.js} +25 -25
  75. package/dist/{zora-061565b0.js → zora-e0295798.js} +4 -4
  76. package/lib/components/ConnectWallet/index.vue +38 -18
  77. package/lib/components/TokenConvert/index.vue +0 -2
  78. package/lib/components/TxDialog/index.vue +40 -20
  79. package/lib/components/TxDialog/messages/Delegate.vue +8 -2
  80. package/lib/components/TxDialog/messages/Deposit.vue +9 -3
  81. package/lib/components/TxDialog/messages/Redelegate.vue +10 -3
  82. package/lib/components/TxDialog/messages/Send.vue +7 -2
  83. package/lib/components/TxDialog/messages/Transfer.vue +8 -2
  84. package/lib/components/TxDialog/messages/Unbond.vue +9 -3
  85. package/lib/components/TxDialog/messages/Vote.vue +9 -3
  86. package/lib/components/TxDialog/messages/Withdraw.vue +7 -2
  87. package/lib/components/TxDialog/messages/WithdrawCommission.vue +10 -3
  88. package/lib/components/TxDialog/txParams.ts +30 -0
  89. package/lib/components/TxDialog/wasm/ClearAdmin.vue +10 -3
  90. package/lib/components/TxDialog/wasm/ExecuteContract.vue +11 -5
  91. package/lib/components/TxDialog/wasm/InstantiateContract.vue +9 -3
  92. package/lib/components/TxDialog/wasm/MigrateContract.vue +10 -3
  93. package/lib/components/TxDialog/wasm/MigrateContract2.vue +10 -3
  94. package/lib/components/TxDialog/wasm/StoreCode.vue +6 -2
  95. package/lib/components/TxDialog/wasm/UpdateAdmin.vue +10 -3
  96. package/lib/wallet/UniClient.ts +0 -1
  97. package/lib/wallet/WalletError.ts +110 -29
  98. package/package.json +1 -1
  99. package/test/components/ConnectWallet.test.ts +68 -9
  100. package/test/components/TxDialogParams.test.ts +23 -0
  101. package/test/components/TxDialogSecurity.test.ts +154 -0
  102. package/test/wallet/WalletError.test.ts +38 -14
  103. package/test/wallet/WalletSecurity.test.ts +19 -14
  104. package/dist/features-82db0d52.js +0 -8
@@ -1,4 +1,4 @@
1
- import { _ as e, s as n } from "./main-3b573cfc.js";
1
+ import { _ as e, s as n } from "./main-cce20875.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-3b573cfc.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-cce20875.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-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";
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-69f4aadb.js";
2
+ import { n as $, c as C, U as I, o as O, r as b } from "./index-20c073be.js";
3
+ import "./index-311166f4.js";
4
+ import "./index-acb4d6e1.js";
5
+ import "./main-cce20875.js";
6
+ import "./abis-5e7391e2.js";
7
7
  const _ = k`
8
8
  button {
9
9
  width: 100%;
@@ -1,5 +1,5 @@
1
- import { x as d } from "./ConstantsUtil-f9dc60b6.js";
2
- import { i as $, t as _, e as A } from "./index-bb5e4071.js";
1
+ import { x as d } from "./ConstantsUtil-69f4aadb.js";
2
+ import { i as $, t as _, e as A } from "./index-20c073be.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-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";
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-69f4aadb.js";
2
+ import { n as d, r as u, c as v, U as I, o as ee } from "./index-20c073be.js";
3
+ import "./index-3d20f99e.js";
4
+ import "./index-5ae39b48.js";
5
+ import "./index-5f3d0c2f.js";
6
+ import { e as M, n as q } from "./ref-7866a390.js";
7
+ import "./index-a8cfb216.js";
8
+ import "./index-d333ef20.js";
9
+ import "./index-cf5dc9e0.js";
10
+ import { S as P } from "./SwapController-3307b7d5.js";
11
+ import "./index-f706ea18.js";
12
+ import "./index-a84fb2d4.js";
13
+ import "./index-311166f4.js";
14
+ import "./index-bc8dc6e6.js";
15
+ import "./main-cce20875.js";
16
+ import "./abis-5e7391e2.js";
17
+ import "./index-6f8bfdd4.js";
18
+ import "./index-48fbe63e.js";
19
+ import "./vue-634e8253.js";
20
+ import "./sha2-fb4e167b.js";
21
+ import "./http-b4045adf.js";
22
+ import "./fallback-366fc17d.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-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";
1
+ import { s as k, l as _, B as K, y as i, x as Y, t as v, A as S } from "./abis-5e7391e2.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-fa9728b0.js";
3
+ import { C as p, t as b, H as O, G as F } from "./encodeFunctionData-929ae2a4.js";
4
+ import { F as E, T as Q } from "./sha2-fb4e167b.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-96fed285.js";
2
- import { y as B } from "./main-3b573cfc.js";
1
+ import { F as We, B as x, C as ee } from "./abis-5e7391e2.js";
2
+ import { y as B } from "./main-cce20875.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-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";
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-69f4aadb.js";
2
+ import { n as F, r as l, c as I, o as $ } from "./index-20c073be.js";
3
+ import { O as T } from "./index-1450179f.js";
4
+ import { e as D } from "./index-0313c561.js";
5
+ import { W as N, A as M, E as j } from "./vue-634e8253.js";
6
+ import "./index-5ae39b48.js";
7
+ import { C as q } from "./ConstantsUtil-ffeefb33.js";
8
+ import "./index-3d20f99e.js";
9
+ import "./index-acb4d6e1.js";
10
+ import "./index-48fbe63e.js";
11
+ import "./main-cce20875.js";
12
+ import "./abis-5e7391e2.js";
13
+ import "./ref-7866a390.js";
14
+ import "./sha2-fb4e167b.js";
15
+ import "./http-b4045adf.js";
16
+ import "./fallback-366fc17d.js";
17
+ import "./index-6f8bfdd4.js";
18
+ import "./index-311166f4.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-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";
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-69f4aadb.js";
2
+ import { r as l, n as m, c as L } from "./index-20c073be.js";
3
+ import "./index-3d20f99e.js";
4
+ import "./index-5ae39b48.js";
5
+ import "./index-2b935b7c.js";
6
+ import { S as s } from "./SwapController-3307b7d5.js";
7
+ import "./index-48fbe63e.js";
8
+ import "./index-cf5dc9e0.js";
9
9
  import { M as _ } from "./MathUtil-8172707b.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";
10
+ import "./index-f706ea18.js";
11
+ import "./index-311166f4.js";
12
+ import "./main-cce20875.js";
13
+ import "./abis-5e7391e2.js";
14
+ import "./index-6f8bfdd4.js";
15
+ import "./vue-634e8253.js";
16
+ import "./sha2-fb4e167b.js";
17
+ import "./http-b4045adf.js";
18
+ import "./fallback-366fc17d.js";
19
+ import "./ref-7866a390.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-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";
1
+ import { j as a, i as f, h as m } from "./ConstantsUtil-69f4aadb.js";
2
+ import { c as p } from "./index-20c073be.js";
3
+ import "./index-566c48ac.js";
4
+ import "./main-cce20875.js";
5
+ import "./abis-5e7391e2.js";
6
+ import "./index-5ae39b48.js";
7
+ import "./index-d333ef20.js";
8
+ import "./index-311166f4.js";
9
+ import "./index-48fbe63e.js";
10
10
  const w = a`
11
11
  :host > wui-flex:first-child {
12
12
  height: 500px;
@@ -1,4 +1,4 @@
1
- import { _ as r, M as n, a as s, m as a } from "./main-3b573cfc.js";
1
+ import { _ as r, M as n, a as s, m as a } from "./main-cce20875.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,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-3b573cfc.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-cce20875.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,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-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";
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-5e7391e2.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-fb4e167b.js";
3
+ import { F as Ur, E as Xs } from "./main-cce20875.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-929ae2a4.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-8f82ae2a.js");
3291
+ const G = q0(j), { offchainLookup: H, offchainLookupSignature: D } = await import("./ccip-b3df1d28.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-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";
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-cce20875.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-69f4aadb.js";
6
+ import { D as ne, A as ih, N as Xw } from "./abis-5e7391e2.js";
7
+ import { a1 as Qw, a4 as e0, a0 as t0, a3 as r0, a5 as s0 } from "./sha2-fb4e167b.js";
8
+ import { h as no } from "./http-b4045adf.js";
9
+ import { f as oh } from "./fallback-366fc17d.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-82db0d52.js"), l = K.state.siwx;
20079
+ const { ReownAuthentication: c } = await import("./features-cf9f5cda.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-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([
21592
+ (t.email || t.socials && t.socials.length > 0) && s.push(import("./embedded-wallet-87192e5a.js")), t.email && s.push(import("./email-5c6fce3f.js")), t.socials && s.push(import("./socials-3184225d.js")), t.swaps && t.swaps.length > 0 && s.push(import("./swaps-196b9a1a.js")), e.send && s.push(import("./send-a8333bb0.js")), e.receive && s.push(import("./receive-11a25c5f.js")), t.onramp && t.onramp.length > 0 && s.push(import("./onramp-eb02e46e.js")), t.payWithExchange && s.push(import("./pay-with-exchange-5073a468.js")), t.activity && s.push(import("./transactions-cb14f528.js")), (e.pay || t.payments) && s.push(import("./index-d5d48d61.js")), t.emailCapture && s.push(import("./data-capture-6b7e5c19.js")), await Promise.all([
21593
21593
  ...s,
21594
- import("./index-0ac134af.js"),
21595
- import("./w3m-modal-291afec4.js")
21594
+ import("./index-4552387b.js"),
21595
+ import("./w3m-modal-7b0a1b01.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-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";
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-69f4aadb.js";
2
+ import { c as f, n as l, o as $, r as h, U as ce } from "./index-20c073be.js";
3
+ import { A as H } from "./vue-634e8253.js";
4
+ import { P as D } from "./index-58f616f1.js";
5
+ import "./index-311166f4.js";
6
+ import { H as ie } from "./HelpersUtil-e60d77c2.js";
7
+ import { C as F } from "./ConstantsUtil-ffeefb33.js";
8
+ import "./index-6f8bfdd4.js";
9
+ import "./index-5ae39b48.js";
10
+ import "./index-2b935b7c.js";
11
+ import "./index-4d538f05.js";
12
+ import { S as ve } from "./SwapController-3307b7d5.js";
13
+ import "./index-3d20f99e.js";
14
+ import "./main-cce20875.js";
15
+ import "./abis-5e7391e2.js";
16
+ import "./sha2-fb4e167b.js";
17
+ import "./http-b4045adf.js";
18
+ import "./fallback-366fc17d.js";
19
+ import "./index-806b59ae.js";
20
+ import "./index-d29e5bfc.js";
21
+ import "./index-4ecd4250.js";
22
+ import "./index-5f3d0c2f.js";
23
+ import "./index-48fbe63e.js";
24
24
  import "./MathUtil-8172707b.js";
25
- import "./index-80954332.js";
26
- import "./index-52edc95a.js";
25
+ import "./index-986ea4f3.js";
26
+ import "./index-d333ef20.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-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";
1
+ import { aa as k, ae as B, ad as F, ag as T, a8 as A, a1 as t } from "./verifyHash-fa9728b0.js";
2
+ import { j as l, l as U, A as b } from "./abis-5e7391e2.js";
3
+ import { G as S, C as h, t as x } from "./encodeFunctionData-929ae2a4.js";
4
+ import { d as D } from "./serializeAuthorizationList-b5a1a7f6.js";
5
5
  const v = {
6
6
  gasPriceOracle: { address: "0x420000000000000000000000000000000000000F" },
7
7
  l1Block: { address: "0x4200000000000000000000000000000000000015" },
@@ -10,7 +10,10 @@ import {
10
10
  writeWallet
11
11
  } from '../../../lib/wallet/Wallet';
12
12
  import { buildWalletCatalog } from '../../../lib/wallet/WalletCatalog';
13
- import { walletErrorMessage } from '../../../lib/wallet/WalletError';
13
+ import {
14
+ normalizeWalletError,
15
+ type WalletUserError
16
+ } from '../../../lib/wallet/WalletError';
14
17
  import { KeplrSessionManager } from '../../../lib/wallet/KeplrSessionManager';
15
18
  import { WalletSessionManager } from '../../../lib/wallet/WalletSessionManager';
16
19
  import { parseReownConfig } from '../../../lib/wallet/reown/ReownConfig';
@@ -28,7 +31,8 @@ const emit = defineEmits(['connect', 'disconnect', 'update', 'keplr-config']);
28
31
 
29
32
  const sending = ref(false);
30
33
  const open = ref(false);
31
- const error = ref('');
34
+ const error = ref<WalletUserError>();
35
+ const errorWallet = ref<WalletName>();
32
36
  const name = ref(WalletName.Keplr);
33
37
  const reownConfig = computed(() =>
34
38
  parseReownConfig(props.evmConfig, props.hdPath)
@@ -60,6 +64,22 @@ function isCurrentSession(generation: number): boolean {
60
64
  return isMounted && sessionGeneration === generation;
61
65
  }
62
66
 
67
+ const canSuggestKeplr = computed(
68
+ () =>
69
+ error.value?.category === 'wrong-network' &&
70
+ errorWallet.value === WalletName.Keplr
71
+ );
72
+
73
+ function setWalletError(cause: unknown, wallet: WalletName): void {
74
+ error.value = normalizeWalletError(cause);
75
+ errorWallet.value = wallet;
76
+ }
77
+
78
+ function clearWalletError(): void {
79
+ error.value = undefined;
80
+ errorWallet.value = undefined;
81
+ }
82
+
63
83
  function clearVisibleSession(): void {
64
84
  connected.value = {} as ConnectedWallet;
65
85
  emit('disconnect', { value: undefined });
@@ -75,18 +95,18 @@ function sessionArgument() {
75
95
 
76
96
  function sessionChanged(value: ConnectedWallet | undefined) {
77
97
  connected.value = value || ({} as ConnectedWallet);
78
- if (value) emit('connect', { value });
98
+ if (value) {
99
+ clearWalletError();
100
+ emit('connect', { value });
101
+ }
79
102
  else emit('disconnect', { value: undefined });
80
103
  }
81
104
 
82
- function sessionFailed(walletError: { message: string }) {
83
- error.value = walletError.message;
84
- }
85
-
86
105
  async function bindCurrentSession(): Promise<void> {
87
106
  const hdPath = props.hdPath;
88
107
  const restored = readWallet(hdPath) as ConnectedWallet;
89
108
  replaceManagers();
109
+ clearWalletError();
90
110
 
91
111
  if (!restored.wallet) {
92
112
  connected.value = {} as ConnectedWallet;
@@ -97,7 +117,7 @@ async function bindCurrentSession(): Promise<void> {
97
117
  await keplrSessionManager.start(
98
118
  sessionArgument(),
99
119
  sessionChanged,
100
- sessionFailed
120
+ (cause) => setWalletError(cause, WalletName.Keplr)
101
121
  );
102
122
  return;
103
123
  }
@@ -120,11 +140,11 @@ async function bindCurrentSession(): Promise<void> {
120
140
  reownConfig.value,
121
141
  sessionArgument(),
122
142
  sessionChanged,
123
- sessionFailed
143
+ (cause) => setWalletError(cause, WalletName.Evm)
124
144
  );
125
145
  } catch (caught) {
126
146
  if (!isMounted || reownSessionManager !== manager) return;
127
- error.value = walletErrorMessage(caught, WalletName.Evm);
147
+ setWalletError(caught, WalletName.Evm);
128
148
  removeWallet(hdPath);
129
149
  clearVisibleSession();
130
150
  }
@@ -145,11 +165,11 @@ async function connect() {
145
165
  };
146
166
  const failed = (walletError: { message: string }) => {
147
167
  if (!isCurrentSession(generation)) return;
148
- sessionFailed(walletError);
168
+ setWalletError(walletError, selectedWallet);
149
169
  if (sending.value) open.value = true;
150
170
  };
151
171
  sending.value = true;
152
- error.value = '';
172
+ clearWalletError();
153
173
  try {
154
174
  if (selectedWallet === WalletName.Keplr) {
155
175
  open.value = false;
@@ -198,7 +218,7 @@ async function connect() {
198
218
  open.value = false;
199
219
  } catch (caught) {
200
220
  if (!isCurrentSession(generation)) return;
201
- error.value = walletErrorMessage(caught, selectedWallet);
221
+ setWalletError(caught, selectedWallet);
202
222
  } finally {
203
223
  if (isCurrentSession(generation)) sending.value = false;
204
224
  }
@@ -213,7 +233,7 @@ async function disconnect() {
213
233
  await reownSessionManager.disconnect(reownConfig.value);
214
234
  } catch (caught) {
215
235
  if (isCurrentSession(generation)) {
216
- error.value = walletErrorMessage(caught, WalletName.Evm);
236
+ setWalletError(caught, WalletName.Evm);
217
237
  }
218
238
  }
219
239
  } else {
@@ -240,7 +260,7 @@ async function handleExternalDisconnect(event: Event): Promise<void> {
240
260
  }
241
261
  } catch (caught) {
242
262
  if (isCurrentSession(generation)) {
243
- error.value = walletErrorMessage(caught, previous.wallet);
263
+ setWalletError(caught, previous.wallet || name.value);
244
264
  }
245
265
  } finally {
246
266
  if (isCurrentSession(generation)) {
@@ -252,7 +272,7 @@ async function handleExternalDisconnect(event: Event): Promise<void> {
252
272
 
253
273
  function externalDisconnectListener(event: Event): void {
254
274
  void handleExternalDisconnect(event).catch((caught) => {
255
- error.value = walletErrorMessage(caught, connected.value.wallet);
275
+ setWalletError(caught, connected.value.wallet || name.value);
256
276
  });
257
277
  }
258
278
 
@@ -386,8 +406,8 @@ const customKeplr = computed(() => {
386
406
  </li>
387
407
  </ul>
388
408
  <div v-show="error" class="text-error mt-3">
389
- <span>{{ error }}.</span>
390
- <div v-show="String(error).search('no chain info') > -1">
409
+ <span>{{ error?.message }}.</span>
410
+ <div v-if="canSuggestKeplr">
391
411
  <a :href="customKeplr" class="btn btn-link">Suggest a chain to Keplr</a>
392
412
  </div>
393
413
  </div>
@@ -282,7 +282,6 @@ const pool = computed(() => {
282
282
  (a, b) =>
283
283
  Number(b.total_shares.amount) - Number(a.total_shares.amount)
284
284
  );
285
- // console.log(a)
286
285
  return a.length > 0 ? a[0] : null;
287
286
  });
288
287
 
@@ -471,7 +470,6 @@ async function doDeposit() {
471
470
  try {
472
471
  const client = new UniClient(WalletName.Keplr, { chainId });
473
472
 
474
- // console.log("gasInfo:", gasInfo)
475
473
  const txRaw = await client.sign(tx);
476
474
  const response = await client.broadcastTx(props.endpoint, txRaw);
477
475
  if (response.tx_response?.code === 0) {