@blockend/widget 1.0.41 → 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-QrZ7pQLj.js → AllRoutes-DZD7D5-7.js} +9 -9
  2. package/dist/{Box-DSFgexHP.js → Box-Dzh_WtCl.js} +12 -12
  3. package/dist/{EstGas-Cfyys8c-.js → EstGas-BsHGw6jd.js} +7 -7
  4. package/dist/{Grow-5d7ST43Z.js → Grow-iau12ci1.js} +2 -2
  5. package/dist/{InputComp-CnUyfHBk.js → InputComp-BgwhfRJo.js} +11 -11
  6. package/dist/{LoadRoute-BcCbw9It.js → LoadRoute-FRPd_uiC.js} +4 -4
  7. package/dist/{QuotesProgress-DzZhqliF.js → QuotesProgress-DShC8Cqo.js} +1 -1
  8. package/dist/{SwapAsset-D5NIoW3H.js → SwapAsset-Dgs7iZyA.js} +1 -1
  9. package/dist/{Tooltip-DX--M-2s.js → Tooltip-DCX9lYmC.js} +3 -3
  10. package/dist/{TxnButton-oruKvtpk.js → TxnButton-DRdcLQmQ.js} +40 -39
  11. package/dist/{add-BBfsffzS.js → add-DDtmtPvo.js} +1 -1
  12. package/dist/{all-wallets-GSM-S2EY.js → all-wallets-bxuatxbR.js} +1 -1
  13. package/dist/{app-store-DeN1wZ28.js → app-store-BqgLQQ93.js} +1 -1
  14. package/dist/{apple-f0rhDBWf.js → apple-CJsdxjoW.js} +1 -1
  15. package/dist/{arrow-bottom-ClXTWJiE.js → arrow-bottom-CCyYBkBK.js} +1 -1
  16. package/dist/{arrow-bottom-circle-B2bkO_jM.js → arrow-bottom-circle-TODM2wkv.js} +1 -1
  17. package/dist/{arrow-left-D5fs189Z.js → arrow-left-CKLaqeSe.js} +1 -1
  18. package/dist/{arrow-right-CZH_01OV.js → arrow-right-CIOAHh8U.js} +1 -1
  19. package/dist/{arrow-top-DOKGpBV5.js → arrow-top-C4UsdxAE.js} +1 -1
  20. package/dist/{bank-Ci1bIrxU.js → bank-BYJPgsE0.js} +1 -1
  21. package/dist/{basic-CBd897q3.js → basic-lq14gOxp.js} +3 -3
  22. package/dist/{browser-DPEFcFPn.js → browser-IKcrlTkv.js} +1 -1
  23. package/dist/{card-BrTdcKSB.js → card-BD5lr4mZ.js} +1 -1
  24. package/dist/{checkmark-bold-UKTXTe3X.js → checkmark-bold-DPFamGxu.js} +1 -1
  25. package/dist/{checkmark-B_2wOwp3.js → checkmark-easEA7tu.js} +1 -1
  26. package/dist/{chevron-bottom-C4i9UknS.js → chevron-bottom-D1DtVTxR.js} +1 -1
  27. package/dist/{chevron-left-CEQSGR4I.js → chevron-left-BECE6BGO.js} +1 -1
  28. package/dist/{chevron-right-DPaIl5bS.js → chevron-right-BqQfDgc0.js} +1 -1
  29. package/dist/{chevron-top-EO3i_g8u.js → chevron-top-C9W1eUML.js} +1 -1
  30. package/dist/{chrome-store-WaI848dE.js → chrome-store-BkDKfGoT.js} +1 -1
  31. package/dist/{clock-D6S6VuYv.js → clock-DNIdQSFa.js} +1 -1
  32. package/dist/{close-Dyuh-pfe.js → close-pzcuYLWf.js} +1 -1
  33. package/dist/{coinPlaceholder-DPiN3u1C.js → coinPlaceholder-DQ0W26Oo.js} +1 -1
  34. package/dist/{compass-Caeab2lN.js → compass-DJY4sLHr.js} +1 -1
  35. package/dist/{copy-CXjVowLP.js → copy-m5YiPsf9.js} +1 -1
  36. package/dist/{core-D4HnN6eG.js → core-BI7GlSQQ.js} +3 -3
  37. package/dist/{cursor-BiavFYeB.js → cursor-Ddz0gQ35.js} +1 -1
  38. package/dist/{cursor-transparent-C-o5nPnW.js → cursor-transparent-B5zAQBSe.js} +1 -1
  39. package/dist/{desktop-cftg6BMC.js → desktop-CmQdXq76.js} +1 -1
  40. package/dist/{disconnect-CBVHZmy5.js → disconnect-ZM9xlXig.js} +1 -1
  41. package/dist/{discord-DL5vSQIe.js → discord-HNXUhlnS.js} +1 -1
  42. package/dist/{down-CSXSe02P.js → down-CjLDSeju.js} +2 -2
  43. package/dist/{etherscan-B0ZqMrl5.js → etherscan-Ce3s4U_7.js} +1 -1
  44. package/dist/{exclamation-triangle-DMJwxev5.js → exclamation-triangle-n_cohfRW.js} +1 -1
  45. package/dist/{extension-Cw3kEP0F.js → extension-D-WWZ6e4.js} +1 -1
  46. package/dist/{external-link-D2k06cXi.js → external-link-aJgbTjkL.js} +1 -1
  47. package/dist/{facebook-BFQhh4JT.js → facebook-0rRa1zVC.js} +1 -1
  48. package/dist/{farcaster-CTkrWMPV.js → farcaster-DRRFmE1F.js} +1 -1
  49. package/dist/{filters-BNRidIfb.js → filters-BDLqhPOh.js} +1 -1
  50. package/dist/{getChainIds-dbxa6OPC.js → getChainIds-C2FxTGbk.js} +2 -2
  51. package/dist/getCosmosAddress-ACoKmza-.js +11859 -0
  52. package/dist/{github-BSvlr7uB.js → github-Obng17RA.js} +1 -1
  53. package/dist/{google-b7Ou74GO.js → google-BIXlIx3J.js} +1 -1
  54. package/dist/{hamburger-adHT75Tv.js → hamburger-CUt6_9MP.js} +5 -5
  55. package/dist/{help-circle-DVVgUa0A.js → help-circle-CB9MlFPx.js} +1 -1
  56. package/dist/{id-C1VTodFX.js → id-CSF1vlyc.js} +1 -1
  57. package/dist/{image-oiGiQrkv.js → image-Cq7nyoSF.js} +1 -1
  58. package/dist/{index-CxnNzJCI.js → index-BFuPcLQl.js} +7 -7
  59. package/dist/{index-Qvs-AUhn.js → index-Bl9Ckfvc.js} +4 -4
  60. package/dist/{index-DZx5rYk6.js → index-ByxiUEcM.js} +1 -1
  61. package/dist/{index-D35_epCA.js → index-CA-JZieb.js} +1 -1
  62. package/dist/index-CBTT9uoz.js +16939 -0
  63. package/dist/{index-Dtl4ODqT.js → index-DBYtMVsX.js} +4 -4
  64. package/dist/{index-BDSA6Vmh.js → index-DHRd9r4E.js} +78 -78
  65. package/dist/{index-vsTy-v7A.js → index-DitHVC8k.js} +11 -11
  66. package/dist/{index-uv8Q24to.js → index-LcA9mS3g.js} +10 -10
  67. package/dist/{index-Cce3Jr06.js → index-aNL4las-.js} +5 -5
  68. package/dist/{index-DFOB2nyL.js → index-zQJSlLTK.js} +2 -2
  69. package/dist/{index.es-ufjHqxj5.js → index.es-4EAPyRWu.js} +1 -1
  70. package/dist/{index.es-oVEjdXD9.js → index.es-BbqQAF75.js} +2 -2
  71. package/dist/index.es.js +1 -1
  72. package/dist/{info-CVKjuEYq.js → info-DTwm7mjV.js} +1 -1
  73. package/dist/{info-circle-D_MX3SA4.js → info-circle-BgP1cn6l.js} +1 -1
  74. package/dist/{lightbulb-xAPRcMv4.js → lightbulb-cdKRqxNY.js} +1 -1
  75. package/dist/{mail-D4ovKCpV.js → mail-BYrqL901.js} +1 -1
  76. package/dist/{mobile-BW9ciV-w.js → mobile-C38shLyr.js} +1 -1
  77. package/dist/{more-DVJG6d4w.js → more-gvTAE7al.js} +1 -1
  78. package/dist/{network-placeholder-BRna6-nm.js → network-placeholder-B0yFXA2M.js} +1 -1
  79. package/dist/{nftPlaceholder-uwZhnmIc.js → nftPlaceholder-kmLC1995.js} +1 -1
  80. package/dist/{off-DFC1yPv3.js → off-D0x4UmXZ.js} +1 -1
  81. package/dist/{play-store-Byn_mMq_.js → play-store-RbbrnDa4.js} +1 -1
  82. package/dist/{plus-zUlg00_a.js → plus-Dxwb-0cG.js} +1 -1
  83. package/dist/{qr-code-DDbZcl7e.js → qr-code-GqZ3Mb5_.js} +1 -1
  84. package/dist/{recycle-horizontal-ML8sklv5.js → recycle-horizontal-BYh8pAZF.js} +1 -1
  85. package/dist/{refresh-iUqYawLt.js → refresh-C4zqMfSb.js} +1 -1
  86. package/dist/{reown-logo-BMLlwYGo.js → reown-logo-91rFej6P.js} +1 -1
  87. package/dist/{search-htBtAh5x.js → search-Du4hJfnF.js} +1 -1
  88. package/dist/{send-5NnEyeqk.js → send-D8srhqkz.js} +1 -1
  89. package/dist/{swapHorizontal-C0RjVePv.js → swapHorizontal-BLYPf5tb.js} +1 -1
  90. package/dist/{swapHorizontalBold-oabGP6AT.js → swapHorizontalBold-C67TzlMe.js} +1 -1
  91. package/dist/{swapHorizontalMedium-BPycpUZj.js → swapHorizontalMedium-CzpKc1YY.js} +1 -1
  92. package/dist/{swapHorizontalRoundedBold-BrWMh09O.js → swapHorizontalRoundedBold-DLunu-y4.js} +1 -1
  93. package/dist/{swapVertical-Dab90B-o.js → swapVertical-DLqVANj3.js} +1 -1
  94. package/dist/{telegram-BTgVizd-.js → telegram-C99wI1J_.js} +1 -1
  95. package/dist/{three-dots-BWl-R2fX.js → three-dots-DpwwokeP.js} +1 -1
  96. package/dist/{twitch-BBSyKIRq.js → twitch-K-Z_CxH8.js} +1 -1
  97. package/dist/{twitterIcon-DJa7a5mH.js → twitterIcon-PaM7mQWK.js} +1 -1
  98. package/dist/{unsupportedProp-DFyakPn7.js → unsupportedProp-X0IfYgnd.js} +1 -1
  99. package/dist/{useRegisterError-BIERR-27.js → useRegisterError-Czs99ziS.js} +1 -1
  100. package/dist/{verify-CzlzFBIk.js → verify-S_ANES9T.js} +1 -1
  101. package/dist/{verify-filled-DhPXgKCQ.js → verify-filled-CH-zFriN.js} +1 -1
  102. package/dist/{w3m-modal-Chxai-K2.js → w3m-modal-PmO-JR-7.js} +2 -2
  103. package/dist/{wallet-DSL4tZXp.js → wallet-DMWvMKpU.js} +1 -1
  104. package/dist/{wallet-placeholder-gRdwNEYW.js → wallet-placeholder-WaUzlVmk.js} +1 -1
  105. package/dist/{walletconnect-DorsPqE9.js → walletconnect-DNh4G8zR.js} +1 -1
  106. package/dist/{warning-circle-Cm3eg6Rl.js → warning-circle-BHUoOEkq.js} +1 -1
  107. package/dist/{x-D9vS5YT4.js → x-y9xMGpeI.js} +1 -1
  108. package/package.json +1 -1
  109. package/dist/ccip-DvQaBUxu.js +0 -228
  110. package/dist/getCosmosAddress-VGyJ48hD.js +0 -9565
  111. package/dist/index-B9Yj3lNG.js +0 -30399
@@ -1,4 +1,4 @@
1
- import { m as l } from "./core-D4HnN6eG.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.41",
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-B9Yj3lNG.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
- };