@blockend/widget 1.0.40 → 1.0.42

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 (111) hide show
  1. package/dist/{AllRoutes-pVn5r2AF.js → AllRoutes-DZD7D5-7.js} +9 -9
  2. package/dist/{Box-2EhEu03K.js → Box-Dzh_WtCl.js} +12 -12
  3. package/dist/{EstGas-WwkfFHpv.js → EstGas-BsHGw6jd.js} +7 -7
  4. package/dist/{Grow-D4EVow-M.js → Grow-iau12ci1.js} +2 -2
  5. package/dist/{InputComp-DQBDoD71.js → InputComp-BgwhfRJo.js} +11 -11
  6. package/dist/{LoadRoute-42ZgErfe.js → LoadRoute-FRPd_uiC.js} +4 -4
  7. package/dist/{QuotesProgress-CTlZ7elT.js → QuotesProgress-DShC8Cqo.js} +1 -1
  8. package/dist/{SwapAsset-CU5YEZ75.js → SwapAsset-Dgs7iZyA.js} +1 -1
  9. package/dist/{Tooltip-DSOAqpED.js → Tooltip-DCX9lYmC.js} +3 -3
  10. package/dist/{TxnButton-CfruxaOs.js → TxnButton-DRdcLQmQ.js} +40 -39
  11. package/dist/{add-DayuYwbp.js → add-DDtmtPvo.js} +1 -1
  12. package/dist/{all-wallets-B7lOWwQ-.js → all-wallets-bxuatxbR.js} +1 -1
  13. package/dist/{app-store-CWVen5K_.js → app-store-BqgLQQ93.js} +1 -1
  14. package/dist/{apple-Xce5ePDw.js → apple-CJsdxjoW.js} +1 -1
  15. package/dist/{arrow-bottom-CJ5QodIU.js → arrow-bottom-CCyYBkBK.js} +1 -1
  16. package/dist/{arrow-bottom-circle-m6M-yL2m.js → arrow-bottom-circle-TODM2wkv.js} +1 -1
  17. package/dist/{arrow-left-gbgYje3p.js → arrow-left-CKLaqeSe.js} +1 -1
  18. package/dist/{arrow-right-BWBYQ-3w.js → arrow-right-CIOAHh8U.js} +1 -1
  19. package/dist/{arrow-top-TV0fK_PC.js → arrow-top-C4UsdxAE.js} +1 -1
  20. package/dist/{bank-D5WUpbbn.js → bank-BYJPgsE0.js} +1 -1
  21. package/dist/{basic-yKyoIw_n.js → basic-lq14gOxp.js} +3 -3
  22. package/dist/{browser-C1Gw-601.js → browser-IKcrlTkv.js} +1 -1
  23. package/dist/{card-BGu7Ytfr.js → card-BD5lr4mZ.js} +1 -1
  24. package/dist/{checkmark-bold-C-Za8drF.js → checkmark-bold-DPFamGxu.js} +1 -1
  25. package/dist/{checkmark-DXjp9482.js → checkmark-easEA7tu.js} +1 -1
  26. package/dist/{chevron-bottom-pyAIkjST.js → chevron-bottom-D1DtVTxR.js} +1 -1
  27. package/dist/{chevron-left-Fo0wnlZX.js → chevron-left-BECE6BGO.js} +1 -1
  28. package/dist/{chevron-right-DkmxB-lW.js → chevron-right-BqQfDgc0.js} +1 -1
  29. package/dist/{chevron-top-r9CVQcQg.js → chevron-top-C9W1eUML.js} +1 -1
  30. package/dist/{chrome-store-CRlb0bJh.js → chrome-store-BkDKfGoT.js} +1 -1
  31. package/dist/{clock-TqJS2h0Z.js → clock-DNIdQSFa.js} +1 -1
  32. package/dist/{close-C2cPb_3q.js → close-pzcuYLWf.js} +1 -1
  33. package/dist/{coinPlaceholder-D-_tUshz.js → coinPlaceholder-DQ0W26Oo.js} +1 -1
  34. package/dist/{compass-D-JOMMbC.js → compass-DJY4sLHr.js} +1 -1
  35. package/dist/{copy-CS7IA_r_.js → copy-m5YiPsf9.js} +1 -1
  36. package/dist/{core-DbjedOio.js → core-BI7GlSQQ.js} +3 -3
  37. package/dist/{cursor-3K2-QZLT.js → cursor-Ddz0gQ35.js} +1 -1
  38. package/dist/{cursor-transparent-DKdHMJra.js → cursor-transparent-B5zAQBSe.js} +1 -1
  39. package/dist/{desktop-CAxsE6Ga.js → desktop-CmQdXq76.js} +1 -1
  40. package/dist/{disconnect-Dc-LNqNb.js → disconnect-ZM9xlXig.js} +1 -1
  41. package/dist/{discord-VfiQtaLg.js → discord-HNXUhlnS.js} +1 -1
  42. package/dist/{down-C69EIwo1.js → down-CjLDSeju.js} +2 -2
  43. package/dist/{etherscan-nfJcVg9R.js → etherscan-Ce3s4U_7.js} +1 -1
  44. package/dist/{exclamation-triangle-DaMU5L_4.js → exclamation-triangle-n_cohfRW.js} +1 -1
  45. package/dist/{extension-BaO8FLXh.js → extension-D-WWZ6e4.js} +1 -1
  46. package/dist/{external-link-B9oCkuPJ.js → external-link-aJgbTjkL.js} +1 -1
  47. package/dist/{facebook-nSdQubUH.js → facebook-0rRa1zVC.js} +1 -1
  48. package/dist/{farcaster-BtInSUqS.js → farcaster-DRRFmE1F.js} +1 -1
  49. package/dist/{filters-C9LrueAm.js → filters-BDLqhPOh.js} +1 -1
  50. package/dist/{getChainIds-CQg6djVc.js → getChainIds-C2FxTGbk.js} +2 -2
  51. package/dist/getCosmosAddress-ACoKmza-.js +11859 -0
  52. package/dist/{github-BVzfRJXr.js → github-Obng17RA.js} +1 -1
  53. package/dist/{google-C_Zkq44M.js → google-BIXlIx3J.js} +1 -1
  54. package/dist/{hamburger-Bss9ENTU.js → hamburger-CUt6_9MP.js} +5 -5
  55. package/dist/{help-circle-D9KC2TTg.js → help-circle-CB9MlFPx.js} +1 -1
  56. package/dist/{id-D5ODDUPi.js → id-CSF1vlyc.js} +1 -1
  57. package/dist/{image-D9BguVkX.js → image-Cq7nyoSF.js} +1 -1
  58. package/dist/{index-Csnr5wYZ.js → index-BFuPcLQl.js} +7 -7
  59. package/dist/{index-Bknn7U1s.js → index-Bl9Ckfvc.js} +4 -4
  60. package/dist/{index-DTTNs7X2.js → index-ByxiUEcM.js} +1 -1
  61. package/dist/{index-D7cNHH01.js → index-CA-JZieb.js} +1 -1
  62. package/dist/index-CBTT9uoz.js +16939 -0
  63. package/dist/{index-B8BzdUYX.js → index-DBYtMVsX.js} +5 -5
  64. package/dist/{index-D1suJrBe.js → index-DHRd9r4E.js} +78 -78
  65. package/dist/{index-mLOjEWq5.js → index-DitHVC8k.js} +13 -23
  66. package/dist/{index-C3Yx39QI.js → index-LcA9mS3g.js} +10 -10
  67. package/dist/{index-B-LMuVus.js → index-aNL4las-.js} +5 -5
  68. package/dist/{index-B-Y6H6ZT.js → index-zQJSlLTK.js} +2 -2
  69. package/dist/{index.es-BvpkVeYn.js → index.es-4EAPyRWu.js} +1 -1
  70. package/dist/{index.es-J7Adt0qn.js → index.es-BbqQAF75.js} +2 -2
  71. package/dist/index.es.js +1 -1
  72. package/dist/{info-BbZu8EmP.js → info-DTwm7mjV.js} +1 -1
  73. package/dist/{info-circle-DC4d8t58.js → info-circle-BgP1cn6l.js} +1 -1
  74. package/dist/{lightbulb-B_XHWcwO.js → lightbulb-cdKRqxNY.js} +1 -1
  75. package/dist/{mail-DUBlSWnW.js → mail-BYrqL901.js} +1 -1
  76. package/dist/{mobile-DW7n1RaC.js → mobile-C38shLyr.js} +1 -1
  77. package/dist/{more-CHiJ0jdA.js → more-gvTAE7al.js} +1 -1
  78. package/dist/{network-placeholder-fkXdFnU3.js → network-placeholder-B0yFXA2M.js} +1 -1
  79. package/dist/{nftPlaceholder-CzdJZ_xc.js → nftPlaceholder-kmLC1995.js} +1 -1
  80. package/dist/{off-liaZCdZH.js → off-D0x4UmXZ.js} +1 -1
  81. package/dist/{play-store-Dlmh4PlW.js → play-store-RbbrnDa4.js} +1 -1
  82. package/dist/{plus-QBGWemZZ.js → plus-Dxwb-0cG.js} +1 -1
  83. package/dist/{qr-code-2rARSIxP.js → qr-code-GqZ3Mb5_.js} +1 -1
  84. package/dist/{recycle-horizontal-DByCihYW.js → recycle-horizontal-BYh8pAZF.js} +1 -1
  85. package/dist/{refresh-BFM457iN.js → refresh-C4zqMfSb.js} +1 -1
  86. package/dist/{reown-logo-C9dbpsPZ.js → reown-logo-91rFej6P.js} +1 -1
  87. package/dist/{search-_GMCgtU4.js → search-Du4hJfnF.js} +1 -1
  88. package/dist/{send-CBnSvpXY.js → send-D8srhqkz.js} +1 -1
  89. package/dist/{swapHorizontal-BiN3nSBx.js → swapHorizontal-BLYPf5tb.js} +1 -1
  90. package/dist/{swapHorizontalBold-CAWIrlnq.js → swapHorizontalBold-C67TzlMe.js} +1 -1
  91. package/dist/{swapHorizontalMedium-DrfkO94z.js → swapHorizontalMedium-CzpKc1YY.js} +1 -1
  92. package/dist/{swapHorizontalRoundedBold-DbJnc4Gs.js → swapHorizontalRoundedBold-DLunu-y4.js} +1 -1
  93. package/dist/{swapVertical-nx3G0q67.js → swapVertical-DLqVANj3.js} +1 -1
  94. package/dist/{telegram-BBmONWiX.js → telegram-C99wI1J_.js} +1 -1
  95. package/dist/{three-dots-CxLcYR_u.js → three-dots-DpwwokeP.js} +1 -1
  96. package/dist/{twitch-BCER0FU2.js → twitch-K-Z_CxH8.js} +1 -1
  97. package/dist/{twitterIcon-D7lNSGDl.js → twitterIcon-PaM7mQWK.js} +1 -1
  98. package/dist/{unsupportedProp-Cgx_R3Ro.js → unsupportedProp-X0IfYgnd.js} +1 -1
  99. package/dist/{useRegisterError-CIj7yT4N.js → useRegisterError-Czs99ziS.js} +1 -1
  100. package/dist/{verify-BtPqlMYv.js → verify-S_ANES9T.js} +1 -1
  101. package/dist/{verify-filled-D69dNjXa.js → verify-filled-CH-zFriN.js} +1 -1
  102. package/dist/{w3m-modal-BRaqvs1m.js → w3m-modal-PmO-JR-7.js} +2 -2
  103. package/dist/{wallet-B0uYbj_y.js → wallet-DMWvMKpU.js} +1 -1
  104. package/dist/{wallet-placeholder-C64Kayjj.js → wallet-placeholder-WaUzlVmk.js} +1 -1
  105. package/dist/{walletconnect-Bl6U4E40.js → walletconnect-DNh4G8zR.js} +1 -1
  106. package/dist/{warning-circle-DdcOPYkT.js → warning-circle-BHUoOEkq.js} +1 -1
  107. package/dist/{x-PEBthjJm.js → x-y9xMGpeI.js} +1 -1
  108. package/package.json +1 -1
  109. package/dist/ccip-8pKaCE7W.js +0 -228
  110. package/dist/getCosmosAddress-Qwk5Y2WB.js +0 -9565
  111. package/dist/index-CCJxyv13.js +0 -30400
@@ -1,4 +1,4 @@
1
- import { m as c } from "./core-DbjedOio.js";
1
+ import { m as c } from "./core-BI7GlSQQ.js";
2
2
  const v = c`<svg fill="none" viewBox="0 0 20 20">
3
3
  <path
4
4
  fill="currentColor"
@@ -1,4 +1,4 @@
1
- import { m as a } from "./core-DbjedOio.js";
1
+ import { m as a } from "./core-BI7GlSQQ.js";
2
2
  const v = a`
3
3
  <svg fill="none" viewBox="0 0 48 44">
4
4
  <path
@@ -1,4 +1,4 @@
1
- import { m as l } from "./core-DbjedOio.js";
1
+ import { m as l } from "./core-BI7GlSQQ.js";
2
2
  const t = l`<svg fill="none" viewBox="0 0 96 67">
3
3
  <path
4
4
  fill="currentColor"
@@ -1,4 +1,4 @@
1
- import { m as l } from "./core-DbjedOio.js";
1
+ import { m as l } from "./core-BI7GlSQQ.js";
2
2
  const e = l`<svg fill="none" viewBox="0 0 20 20">
3
3
  <path
4
4
  fill="currentColor"
@@ -1,4 +1,4 @@
1
- import { m as l } from "./core-DbjedOio.js";
1
+ import { m as l } from "./core-BI7GlSQQ.js";
2
2
  const h = l`<svg fill="none" viewBox="0 0 41 40">
3
3
  <g clip-path="url(#a)">
4
4
  <path fill="#000" d="M.8 0h40v40H.8z" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockend/widget",
3
- "version": "1.0.40",
3
+ "version": "1.0.42",
4
4
  "description": "Blockend",
5
5
  "type": "module",
6
6
  "main": "dist/index.es.js",
@@ -1,228 +0,0 @@
1
- import { ac as L, ad as b, ae as F, af as N, ag as P, ah as w, ai as S, aj as E, ak as $, al as C, am as I, an as m, ao as G, ap as R, aq as k, ar as y, as as O, at as q, au as T, av as v, aw as D, ax as A, ay as H } from "./index-CCJxyv13.js";
2
- const h = "/docs/contract/encodeErrorResult";
3
- function x(t) {
4
- const { abi: s, errorName: a, args: r } = t;
5
- let e = s[0];
6
- if (a) {
7
- const u = L({ abi: s, args: r, name: a });
8
- if (!u)
9
- throw new b(a, { docsPath: h });
10
- e = u;
11
- }
12
- if (e.type !== "error")
13
- throw new b(void 0, { docsPath: h });
14
- const c = F(e), n = N(c);
15
- let o = "0x";
16
- if (r && r.length > 0) {
17
- if (!e.inputs)
18
- throw new P(e.name, { docsPath: h });
19
- o = w(e.inputs, r);
20
- }
21
- return S([n, o]);
22
- }
23
- const p = "/docs/contract/encodeFunctionResult";
24
- function j(t) {
25
- const { abi: s, functionName: a, result: r } = t;
26
- let e = s[0];
27
- if (a) {
28
- const n = L({ abi: s, name: a });
29
- if (!n)
30
- throw new E(a, { docsPath: p });
31
- e = n;
32
- }
33
- if (e.type !== "function")
34
- throw new E(void 0, { docsPath: p });
35
- if (!e.outputs)
36
- throw new $(e.name, { docsPath: p });
37
- const c = (() => {
38
- if (e.outputs.length === 0)
39
- return [];
40
- if (e.outputs.length === 1)
41
- return [r];
42
- if (Array.isArray(r))
43
- return r;
44
- throw new C(r);
45
- })();
46
- return w(e.outputs, c);
47
- }
48
- const U = "x-batch-gateway:true";
49
- async function B(t) {
50
- const { data: s, ccipRequest: a } = t, { args: [r] } = I({ abi: m, data: s }), e = [], c = [];
51
- return await Promise.all(r.map(async (n, o) => {
52
- try {
53
- c[o] = await a(n), e[o] = !1;
54
- } catch (u) {
55
- e[o] = !0, c[o] = _(u);
56
- }
57
- })), j({
58
- abi: m,
59
- functionName: "query",
60
- result: [e, c]
61
- });
62
- }
63
- function _(t) {
64
- return t.name === "HttpRequestError" && t.status ? x({
65
- abi: m,
66
- errorName: "HttpError",
67
- args: [t.status, t.shortMessage]
68
- }) : x({
69
- abi: [G],
70
- errorName: "Error",
71
- args: ["shortMessage" in t ? t.shortMessage : t.message]
72
- });
73
- }
74
- function J(t, s) {
75
- if (!R(t, { strict: !1 }))
76
- throw new k({ address: t });
77
- if (!R(s, { strict: !1 }))
78
- throw new k({ address: s });
79
- return t.toLowerCase() === s.toLowerCase();
80
- }
81
- class W extends y {
82
- constructor({ callbackSelector: s, cause: a, data: r, extraData: e, sender: c, urls: n }) {
83
- var o;
84
- super(a.shortMessage || "An error occurred while fetching for an offchain result.", {
85
- cause: a,
86
- metaMessages: [
87
- ...a.metaMessages || [],
88
- (o = a.metaMessages) != null && o.length ? "" : [],
89
- "Offchain Gateway Call:",
90
- n && [
91
- " Gateway URL(s):",
92
- ...n.map((u) => ` ${O(u)}`)
93
- ],
94
- ` Sender: ${c}`,
95
- ` Data: ${r}`,
96
- ` Callback selector: ${s}`,
97
- ` Extra data: ${e}`
98
- ].flat(),
99
- name: "OffchainLookupError"
100
- });
101
- }
102
- }
103
- class z extends y {
104
- constructor({ result: s, url: a }) {
105
- super("Offchain gateway response is malformed. Response data must be a hex value.", {
106
- metaMessages: [
107
- `Gateway URL: ${O(a)}`,
108
- `Response: ${q(s)}`
109
- ],
110
- name: "OffchainLookupResponseMalformedError"
111
- });
112
- }
113
- }
114
- class K extends y {
115
- constructor({ sender: s, to: a }) {
116
- super("Reverted sender address does not match target contract address (`to`).", {
117
- metaMessages: [
118
- `Contract address: ${a}`,
119
- `OffchainLookup sender address: ${s}`
120
- ],
121
- name: "OffchainLookupSenderMismatchError"
122
- });
123
- }
124
- }
125
- const Y = "0x556f1830", Q = {
126
- name: "OffchainLookup",
127
- type: "error",
128
- inputs: [
129
- {
130
- name: "sender",
131
- type: "address"
132
- },
133
- {
134
- name: "urls",
135
- type: "string[]"
136
- },
137
- {
138
- name: "callData",
139
- type: "bytes"
140
- },
141
- {
142
- name: "callbackFunction",
143
- type: "bytes4"
144
- },
145
- {
146
- name: "extraData",
147
- type: "bytes"
148
- }
149
- ]
150
- };
151
- async function Z(t, { blockNumber: s, blockTag: a, data: r, to: e }) {
152
- const { args: c } = T({
153
- data: r,
154
- abi: [Q]
155
- }), [n, o, u, f, d] = c, { ccipRead: i } = t, g = i && typeof (i == null ? void 0 : i.request) == "function" ? i.request : V;
156
- try {
157
- if (!J(e, n))
158
- throw new K({ sender: n, to: e });
159
- const l = o.includes(U) ? await B({
160
- data: u,
161
- ccipRequest: g
162
- }) : await g({ data: u, sender: n, urls: o }), { data: M } = await v(t, {
163
- blockNumber: s,
164
- blockTag: a,
165
- data: D([
166
- f,
167
- w([{ type: "bytes" }, { type: "bytes" }], [l, d])
168
- ]),
169
- to: e
170
- });
171
- return M;
172
- } catch (l) {
173
- throw new W({
174
- callbackSelector: f,
175
- cause: l,
176
- data: r,
177
- extraData: d,
178
- sender: n,
179
- urls: o
180
- });
181
- }
182
- }
183
- async function V({ data: t, sender: s, urls: a }) {
184
- var e;
185
- let r = new Error("An unknown error occurred.");
186
- for (let c = 0; c < a.length; c++) {
187
- const n = a[c], o = n.includes("{data}") ? "GET" : "POST", u = o === "POST" ? { data: t, sender: s } : void 0, f = o === "POST" ? { "Content-Type": "application/json" } : {};
188
- try {
189
- const d = await fetch(n.replace("{sender}", s.toLowerCase()).replace("{data}", t), {
190
- body: JSON.stringify(u),
191
- headers: f,
192
- method: o
193
- });
194
- let i;
195
- if ((e = d.headers.get("Content-Type")) != null && e.startsWith("application/json") ? i = (await d.json()).data : i = await d.text(), !d.ok) {
196
- r = new A({
197
- body: u,
198
- details: i != null && i.error ? q(i.error) : d.statusText,
199
- headers: d.headers,
200
- status: d.status,
201
- url: n
202
- });
203
- continue;
204
- }
205
- if (!H(i)) {
206
- r = new z({
207
- result: i,
208
- url: n
209
- });
210
- continue;
211
- }
212
- return i;
213
- } catch (d) {
214
- r = new A({
215
- body: u,
216
- details: d.message,
217
- url: n
218
- });
219
- }
220
- }
221
- throw r;
222
- }
223
- export {
224
- V as ccipRequest,
225
- Z as offchainLookup,
226
- Q as offchainLookupAbiItem,
227
- Y as offchainLookupSignature
228
- };