@blockend/widget 1.0.63-beta.6 → 1.0.63-beta.8
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.
- package/dist/{AllRoutes-C-bg1G1T.js → AllRoutes-DoSeqp2j.js} +201 -198
- package/dist/{Box-CKZDZLl4.js → Box-FrZ2tCTh.js} +1 -1
- package/dist/{EstGas-Y6UghgVY.js → EstGas-BpIoY_ji.js} +508 -503
- package/dist/{Grow-DffHd2Lw.js → Grow-DBvdz5UZ.js} +196 -192
- package/dist/{InputComp-ChJ6QQhG.js → InputComp-BK2N4hFi.js} +3 -3
- package/dist/{LoadRoute-Di3FyCZ1.js → LoadRoute-De5aGnca.js} +4 -4
- package/dist/{QuotesProgress-yrW4aE32.js → QuotesProgress-CSOReaT-.js} +1 -1
- package/dist/{SwapAsset-DMfKKlC2.js → SwapAsset-BUX68B5Z.js} +1 -1
- package/dist/{Tooltip-B9ycbCMm.js → Tooltip-D2ib9GDE.js} +9 -6
- package/dist/{TxnButton-D3jSURHd.js → TxnButton-1FU3avMw.js} +65 -62
- package/dist/{add-BCSWxwHS.js → add-wYooH1gK.js} +1 -1
- package/dist/{all-wallets-BK_UZQNa.js → all-wallets-C6LJRbpy.js} +1 -1
- package/dist/{app-store-Csa7gIlA.js → app-store-BSWYiqvs.js} +1 -1
- package/dist/{apple-L7GXZYaA.js → apple-CN5Y3Csn.js} +1 -1
- package/dist/{arrow-bottom-B6KjSW0o.js → arrow-bottom-BA21m35g.js} +1 -1
- package/dist/{arrow-bottom-circle-BE_HzVD_.js → arrow-bottom-circle-Dax7dvSP.js} +1 -1
- package/dist/{arrow-left-CrLpeusP.js → arrow-left-CkNoSoW3.js} +1 -1
- package/dist/{arrow-right-vjIbwdKA.js → arrow-right-uzRBP5Kz.js} +1 -1
- package/dist/{arrow-top-BGZ_Nko4.js → arrow-top-B-b_hBCW.js} +1 -1
- package/dist/{bank-DAXIRSNX.js → bank-DVkdUvcz.js} +1 -1
- package/dist/{basic-DHSzNV8S.js → basic-BUlpVIZA.js} +4 -4
- package/dist/{browser-Dyy8p-Si.js → browser-iWNSfbqX.js} +1 -1
- package/dist/{card-BxxY5wwZ.js → card-FxQGBFjD.js} +1 -1
- package/dist/{ccip-Cd9s53s3.js → ccip-BsMDpChz.js} +1 -1
- package/dist/{checkmark-bold-D0YLV0Gj.js → checkmark-bold-BOebxKPv.js} +1 -1
- package/dist/{checkmark-BmDsigGt.js → checkmark-gt7SsdNC.js} +1 -1
- package/dist/{chevron-bottom-QExywqC5.js → chevron-bottom-Ca2sqnim.js} +1 -1
- package/dist/{chevron-left-Dvm0tgmo.js → chevron-left-BWFXvYsO.js} +1 -1
- package/dist/{chevron-right-Dfu2y4ja.js → chevron-right-sRcIaRxa.js} +1 -1
- package/dist/{chevron-top-BM4FFy1t.js → chevron-top-BOaOwVgQ.js} +1 -1
- package/dist/{chrome-store-CQ5YM81g.js → chrome-store-CZ1bDAhi.js} +1 -1
- package/dist/{clock-brI-HWoi.js → clock-PWxIVDxr.js} +1 -1
- package/dist/{close-CjZyNBj9.js → close-BsvKkfca.js} +1 -1
- package/dist/{coinPlaceholder-DfquJeIO.js → coinPlaceholder-DRu8YOSK.js} +1 -1
- package/dist/{compass-E5Qrb0R3.js → compass-B2Qx88h0.js} +1 -1
- package/dist/{copy-BhX3bqeP.js → copy-BXWcyQTW.js} +1 -1
- package/dist/{core-DMQn3TEv.js → core-aF38ikHl.js} +390 -324
- package/dist/{cursor-rW4t6k7C.js → cursor-DKcaK5Bk.js} +1 -1
- package/dist/{cursor-transparent-gL3FEsIs.js → cursor-transparent-BrkSSIaF.js} +1 -1
- package/dist/{desktop-CTtG5hNw.js → desktop-cQ1liLSp.js} +1 -1
- package/dist/{disconnect-DzFwc8XR.js → disconnect-D7sGAcTp.js} +1 -1
- package/dist/{discord-DlYoXVoz.js → discord-DHrqUV5c.js} +1 -1
- package/dist/{down-BhSlN_iU.js → down-DbLP0h4h.js} +4 -3
- package/dist/{etherscan-BC-Eui10.js → etherscan-Dy21HjdF.js} +1 -1
- package/dist/{exclamation-triangle-BQfTkdC_.js → exclamation-triangle-ND9JGDNp.js} +1 -1
- package/dist/{extension-RXz8FN2P.js → extension-BrEPTdg3.js} +1 -1
- package/dist/{external-link-BGuVid3j.js → external-link-Cr1mVYbV.js} +1 -1
- package/dist/{facebook-aDLZabgs.js → facebook-BwOKyhST.js} +1 -1
- package/dist/{farcaster-Dlz_3uh1.js → farcaster-BXI7d_13.js} +1 -1
- package/dist/{filters-DjrngKfX.js → filters-PLSIQrIb.js} +1 -1
- package/dist/{getChainIds-BgdYYYw4.js → getChainIds-DtsR3oXI.js} +6 -4
- package/dist/{getCosmosAddress-DdiKfggl.js → getCosmosAddress-Cda_QoF0.js} +17 -15
- package/dist/{github-jQXBovn4.js → github-Cu2gm8_M.js} +1 -1
- package/dist/{google-juhpPfSN.js → google-C_oZx5UJ.js} +1 -1
- package/dist/{hamburger-enC3srT9.js → hamburger-BbNsjjIW.js} +436 -427
- package/dist/{help-circle-B34SjgAa.js → help-circle-mjNpnYGn.js} +1 -1
- package/dist/{id-DTg4dqLJ.js → id-CkOsoSyg.js} +1 -1
- package/dist/{image-BfaTspT1.js → image-BmMbJrtD.js} +1 -1
- package/dist/{index-BP8wBV05.js → index-BHJL0INc.js} +5508 -5436
- package/dist/{index-DTish3yr.js → index-Bl2UpALc.js} +3 -1
- package/dist/{index-Ch78IFCL.js → index-BpovjW_q.js} +306 -305
- package/dist/{index-CeXHLGpN.js → index-ByCz02Nd.js} +1151 -1134
- package/dist/{index-BYH4tXlz.js → index-C0eMjgxx.js} +1 -1
- package/dist/{index-Dbq_Uq3C.js → index-C6391ncZ.js} +32 -21
- package/dist/{index-AY1swC9S.js → index-Cu1zb9Vh.js} +78 -78
- package/dist/{index-A2zB7LtZ.js → index-CvkScNdo.js} +19 -14
- package/dist/{index-CkO12dzp.js → index-DWVfD1iH.js} +1 -1
- package/dist/{index-Dy825CPY.js → index-Dt6pc29P.js} +33 -19
- package/dist/{index-BE7nGP8x.js → index-VMjoWWTF.js} +2 -2
- package/dist/{index-Bcf_V0vR.js → index-WSRoS5bE.js} +4 -4
- package/dist/{index.es-DAnpsBBV.js → index.es-BYP1FMWM.js} +978 -958
- package/dist/{index.es-KYOLIFvY.js → index.es-Ccdd2zBW.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{info-circle-BMGdz31T.js → info-circle-C9t_2-0o.js} +1 -1
- package/dist/{info-DXR5_pCm.js → info-o12C44h6.js} +1 -1
- package/dist/{lightbulb-CdOoPgKL.js → lightbulb-CFUkH4-D.js} +1 -1
- package/dist/{mail-CeFdTx-v.js → mail-uP1qUZ_i.js} +1 -1
- package/dist/{mobile-CkqO6MX_.js → mobile-DixqXR0f.js} +1 -1
- package/dist/{more-D_LzvhpH.js → more-DgsI8N8X.js} +1 -1
- package/dist/{network-placeholder-DawOGq0q.js → network-placeholder-BrR90hPT.js} +1 -1
- package/dist/{nftPlaceholder-BwVP_ztO.js → nftPlaceholder-CWEsPKB-.js} +1 -1
- package/dist/{off-DKTjO0JH.js → off-CUd-_5nY.js} +1 -1
- package/dist/{play-store-D9HgU1YM.js → play-store-Cmr6xelI.js} +1 -1
- package/dist/{plus-XBvNjfM5.js → plus-tMp0VWtD.js} +1 -1
- package/dist/{qr-code-td4y6spM.js → qr-code-BsESP39Q.js} +1 -1
- package/dist/{recycle-horizontal-CF_Q90px.js → recycle-horizontal-DGoMsnJ_.js} +1 -1
- package/dist/{refresh-CJM59Ha2.js → refresh-D5_Pyj_U.js} +1 -1
- package/dist/{reown-logo-CfquSlUp.js → reown-logo-C-R8XQgl.js} +1 -1
- package/dist/{search-eqn-cEXl.js → search-DG8Ckas2.js} +1 -1
- package/dist/{send-4M8qiOxg.js → send-Dc3NVWdG.js} +1 -1
- package/dist/{swapHorizontal-Cp0wJcng.js → swapHorizontal-Dvlln8P-.js} +1 -1
- package/dist/{swapHorizontalBold-YzgskIUT.js → swapHorizontalBold-CcTTrQAV.js} +1 -1
- package/dist/{swapHorizontalMedium-CkfCXGoR.js → swapHorizontalMedium-C5A8jqx1.js} +1 -1
- package/dist/{swapHorizontalRoundedBold-9-91rUX_.js → swapHorizontalRoundedBold-tW-YwI32.js} +1 -1
- package/dist/{swapVertical-Dnq_-N6W.js → swapVertical-BljauHkF.js} +1 -1
- package/dist/{telegram-DcW73J68.js → telegram-o4Wg_e4w.js} +1 -1
- package/dist/{three-dots-S-bKyjz1.js → three-dots-CM5EXIBR.js} +1 -1
- package/dist/{twitch-BfOZoT8l.js → twitch-Bv2ehoaq.js} +1 -1
- package/dist/{twitterIcon-CgXW2ZuR.js → twitterIcon-Dhg6xNIq.js} +1 -1
- package/dist/{unsupportedProp-6VTSRJm-.js → unsupportedProp-BHYAXJVy.js} +1 -1
- package/dist/{useRegisterError-qXWGu3GR.js → useRegisterError-Cdz9-RAY.js} +126 -122
- package/dist/{verify-filled-DX9iyuvD.js → verify-filled-ZGfQ4M0_.js} +1 -1
- package/dist/{verify-CUsfxmX5.js → verify-kJKoDAtL.js} +1 -1
- package/dist/{w3m-modal-BQTw_53B.js → w3m-modal-NOYXxJxN.js} +2 -2
- package/dist/{wallet-z3Rs6j-C.js → wallet-BXekW4Rx.js} +1 -1
- package/dist/{wallet-placeholder-CaGeJgid.js → wallet-placeholder-DNvWxMPk.js} +1 -1
- package/dist/{walletconnect-oumirz7I.js → walletconnect-CBQH2nMt.js} +1 -1
- package/dist/{warning-circle-BlQqf0xM.js → warning-circle-Dx0pFR-L.js} +1 -1
- package/dist/{x-6GxPtZEq.js → x-C3hoICgM.js} +1 -1
- package/package.json +2 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as st } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as _e, useEffect as xe } from "react";
|
|
3
|
-
import { m as X, u as me } from "./index-
|
|
4
|
-
import { L as ve } from "./useRegisterError-
|
|
3
|
+
import { m as X, u as me } from "./index-BHJL0INc.js";
|
|
4
|
+
import { L as ve } from "./useRegisterError-Cdz9-RAY.js";
|
|
5
5
|
var m = {}, F = { exports: {} };
|
|
6
6
|
F.exports;
|
|
7
7
|
var qt;
|
|
@@ -607,7 +607,8 @@ function Ve() {
|
|
|
607
607
|
container: p.current,
|
|
608
608
|
animationData: Te.colorify([(_ = y == null ? void 0 : y.gradientStyle) != null && _.spinnerColor ? Fe(((x = y == null ? void 0 : y.gradientStyle) == null ? void 0 : x.spinnerColor) || "") : "#2CFFE4"], Be)
|
|
609
609
|
});
|
|
610
|
-
} catch {
|
|
610
|
+
} catch (w) {
|
|
611
|
+
console.log(w, "error");
|
|
611
612
|
}
|
|
612
613
|
return () => h && h.destroy();
|
|
613
614
|
}, []), /* @__PURE__ */ st("div", { style: { width: "100%", height: "100%" }, ref: p });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as C } from "./core-
|
|
1
|
+
import { m as C } from "./core-aF38ikHl.js";
|
|
2
2
|
const t = C`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path d="M15.0162 11.6312L9.55059 2.13937C9.39228 1.86862 9.16584 1.64405 8.8938 1.48798C8.62176 1.33192 8.3136 1.2498 7.99997 1.2498C7.68634 1.2498 7.37817 1.33192 7.10613 1.48798C6.83409 1.64405 6.60765 1.86862 6.44934 2.13937L0.983716 11.6312C0.830104 11.894 0.749146 12.1928 0.749146 12.4972C0.749146 12.8015 0.830104 13.1004 0.983716 13.3631C1.14027 13.6352 1.3664 13.8608 1.63889 14.0166C1.91139 14.1725 2.22044 14.253 2.53434 14.25H13.4656C13.7793 14.2528 14.0881 14.1721 14.3603 14.0163C14.6326 13.8604 14.8585 13.635 15.015 13.3631C15.1688 13.1005 15.2499 12.8017 15.2502 12.4973C15.2504 12.193 15.1696 11.8941 15.0162 11.6312ZM13.7162 12.6125C13.6908 12.6558 13.6541 12.6914 13.6101 12.7157C13.5661 12.7399 13.5164 12.7517 13.4662 12.75H2.53434C2.48415 12.7517 2.43442 12.7399 2.39042 12.7157C2.34641 12.6914 2.30976 12.6558 2.28434 12.6125C2.26278 12.5774 2.25137 12.5371 2.25137 12.4959C2.25137 12.4548 2.26278 12.4144 2.28434 12.3794L7.74997 2.88749C7.77703 2.84583 7.81408 2.8116 7.85774 2.7879C7.9014 2.7642 7.95029 2.75178 7.99997 2.75178C8.04964 2.75178 8.09854 2.7642 8.1422 2.7879C8.18586 2.8116 8.2229 2.84583 8.24997 2.88749L13.715 12.3794C13.7367 12.4143 13.7483 12.4546 13.7486 12.4958C13.7488 12.5369 13.7376 12.5773 13.7162 12.6125ZM7.24997 8.49999V6.49999C7.24997 6.30108 7.32898 6.11031 7.46964 5.96966C7.61029 5.82901 7.80105 5.74999 7.99997 5.74999C8.19888 5.74999 8.38964 5.82901 8.5303 5.96966C8.67095 6.11031 8.74997 6.30108 8.74997 6.49999V8.49999C8.74997 8.6989 8.67095 8.88967 8.5303 9.03032C8.38964 9.17097 8.19888 9.24999 7.99997 9.24999C7.80105 9.24999 7.61029 9.17097 7.46964 9.03032C7.32898 8.88967 7.24997 8.6989 7.24997 8.49999ZM8.99997 11C8.99997 11.1978 8.94132 11.3911 8.83144 11.5556C8.72155 11.72 8.56538 11.8482 8.38265 11.9239C8.19992 11.9996 7.99886 12.0194 7.80488 11.9808C7.6109 11.9422 7.43271 11.847 7.29286 11.7071C7.15301 11.5672 7.05777 11.3891 7.01918 11.1951C6.9806 11.0011 7.0004 10.8 7.07609 10.6173C7.15177 10.4346 7.27995 10.2784 7.4444 10.1685C7.60885 10.0586 7.80219 9.99999 7.99997 9.99999C8.26518 9.99999 8.51954 10.1053 8.70707 10.2929C8.89461 10.4804 8.99997 10.7348 8.99997 11Z" fill="currentColor"/>
|
|
4
4
|
</svg>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as h } from "./core-
|
|
1
|
+
import { m as h } from "./core-aF38ikHl.js";
|
|
2
2
|
const a = h`<svg style="border-radius: 9999px; overflow: hidden;" fill="none" viewBox="0 0 1000 1000">
|
|
3
3
|
<rect width="1000" height="1000" rx="9999" ry="9999" fill="#855DCD"/>
|
|
4
4
|
<path fill="#855DCD" d="M0 0h1000v1000H0V0Z" />
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { P as e, d as M, _ as Z, p as z, e as U, b as he, i as me, s as ee, E as Pe, g as ke, h as Me, u as ln, l as cn } from "./index-
|
|
1
|
+
import { P as e, d as M, _ as Z, p as z, e as U, b as he, i as me, s as ee, E as Pe, g as ke, h as Me, u as ln, l as cn } from "./index-BHJL0INc.js";
|
|
2
2
|
import * as u from "react";
|
|
3
3
|
import ue, { isValidElement as de, cloneElement as pe, Children as un } from "react";
|
|
4
4
|
import { jsx as A, jsxs as Ne } from "react/jsx-runtime";
|
|
5
|
-
import { h as dn, o as Y, _ as pn, p as Le, q as fn, b as re, s as hn, l as Q, r as mn, j as bn, T as gn, n as We, t as Ve, v as En, w as we, x as yn, y as Tn, m as Ae, P as Rn, H as xn } from "./useRegisterError-
|
|
5
|
+
import { h as dn, o as Y, _ as pn, p as Le, q as fn, b as re, s as hn, l as Q, r as mn, j as bn, T as gn, n as We, t as Ve, v as En, w as we, x as yn, y as Tn, m as Ae, P as Rn, H as xn } from "./useRegisterError-Cdz9-RAY.js";
|
|
6
6
|
import { getWallet as vn, WalletType as Cn } from "graz";
|
|
7
7
|
function Pn(n) {
|
|
8
8
|
const {
|
|
@@ -646,7 +646,8 @@ const Hn = he("MuiButtonBase", ["root", "disabled", "focusVisible"]), Kn = ["act
|
|
|
646
646
|
ce === "button" ? (te.type = O === void 0 ? "button" : O, te.disabled = d) : (!g.href && !g.to && (te.role = "button"), d && (te["aria-disabled"] = d));
|
|
647
647
|
const rn = re(s, ae, R);
|
|
648
648
|
z.env.NODE_ENV !== "production" && u.useEffect(() => {
|
|
649
|
-
G && N.current
|
|
649
|
+
G && !N.current && console.error(["MUI: The `component` prop provided to ButtonBase is invalid.", "Please make sure the children prop is rendered in this custom component."].join(`
|
|
650
|
+
`));
|
|
650
651
|
}, [G]);
|
|
651
652
|
const Be = M({}, o, {
|
|
652
653
|
centerRipple: r,
|
|
@@ -1332,7 +1333,8 @@ function fe(n) {
|
|
|
1332
1333
|
if (!l || !p.current)
|
|
1333
1334
|
return;
|
|
1334
1335
|
const h = Y(p.current);
|
|
1335
|
-
return p.current.contains(h.activeElement) || (p.current.hasAttribute("tabIndex") || (z.env.NODE_ENV
|
|
1336
|
+
return p.current.contains(h.activeElement) || (p.current.hasAttribute("tabIndex") || (z.env.NODE_ENV !== "production" && console.error(["MUI: The modal content node does not accept focus.", 'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
1337
|
+
`)), p.current.setAttribute("tabIndex", "-1")), v.current && p.current.focus()), () => {
|
|
1336
1338
|
i || (y.current && y.current.focus && (c.current = !0, y.current.focus()), y.current = null);
|
|
1337
1339
|
};
|
|
1338
1340
|
}, [l]), u.useEffect(() => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useState as as, useEffect as cs } from "react";
|
|
2
2
|
import { useQuery as ui } from "@tanstack/react-query";
|
|
3
|
-
import { u as Je, I as bo, J as fi, K as _o, N as li, O as hi, Q as di, R as pi, U as us, V as Fe, W as gi, X as pe, Y as Rn, Z as Bn, $ as xo, a0 as mi, a1 as fs, a2 as yi, a3 as ye, a4 as fe, a5 as wi, a6 as Cn, n as $e, a7 as So, a8 as On, F as st, a9 as ls, aa as ko, ab as vi } from "./index-
|
|
4
|
-
import { d as bi, u as _i } from "./useRegisterError-
|
|
3
|
+
import { u as Je, I as bo, J as fi, K as _o, N as li, O as hi, Q as di, R as pi, U as us, V as Fe, W as gi, X as pe, Y as Rn, Z as Bn, $ as xo, a0 as mi, a1 as fs, a2 as yi, a3 as ye, a4 as fe, a5 as wi, a6 as Cn, n as $e, a7 as So, a8 as On, F as st, a9 as ls, aa as ko, ab as vi } from "./index-BHJL0INc.js";
|
|
4
|
+
import { d as bi, u as _i } from "./useRegisterError-Cdz9-RAY.js";
|
|
5
5
|
import { getQuotes as xi } from "@blockend/compass-sdk";
|
|
6
|
-
import { B as Vt } from "./index-
|
|
6
|
+
import { B as Vt } from "./index-Bl2UpALc.js";
|
|
7
7
|
function nf({ enabled: s, dependency: e, payload: t }) {
|
|
8
8
|
const r = Je((E) => E.configuration);
|
|
9
9
|
async function o(E, z, B, O, b, g, A, k, U) {
|
|
@@ -39,7 +39,7 @@ function nf({ enabled: s, dependency: e, payload: t }) {
|
|
|
39
39
|
let A = M.data;
|
|
40
40
|
if (A.status == "error" ? c({ error: A.message || A.error }) : c({ error: "" }), v.length) {
|
|
41
41
|
let k = (z = (E = A == null ? void 0 : A.data) == null ? void 0 : E.quotes) == null ? void 0 : z.find((U) => U.provider == v);
|
|
42
|
-
h(k || ((O = (B = A == null ? void 0 : A.data) == null ? void 0 : B.quotes) == null ? void 0 : O[0]) || {});
|
|
42
|
+
console.log(k, "findSelectedQuote"), h(k || ((O = (B = A == null ? void 0 : A.data) == null ? void 0 : B.quotes) == null ? void 0 : O[0]) || {});
|
|
43
43
|
} else
|
|
44
44
|
h(((g = (b = A == null ? void 0 : A.data) == null ? void 0 : b.quotes) == null ? void 0 : g[0]) || {});
|
|
45
45
|
} else
|
|
@@ -5718,7 +5718,7 @@ class ve {
|
|
|
5718
5718
|
let e, t;
|
|
5719
5719
|
if (this.nonceInfo ? (e = this.nonceInfo.nonce, this.instructions[0] != this.nonceInfo.nonceInstruction ? t = [this.nonceInfo.nonceInstruction, ...this.instructions] : t = this.instructions) : (e = this.recentBlockhash, t = this.instructions), !e)
|
|
5720
5720
|
throw new Error("Transaction recentBlockhash required");
|
|
5721
|
-
t.length < 1;
|
|
5721
|
+
t.length < 1 && console.warn("No instructions provided");
|
|
5722
5722
|
let r;
|
|
5723
5723
|
if (this.feePayer)
|
|
5724
5724
|
r = this.feePayer;
|
|
@@ -5777,7 +5777,7 @@ class ve {
|
|
|
5777
5777
|
for (const b of this.signatures) {
|
|
5778
5778
|
const g = c.findIndex((A) => A.pubkey.equals(b.publicKey));
|
|
5779
5779
|
if (g > -1)
|
|
5780
|
-
c[g].isSigner || (c[g].isSigner = !0);
|
|
5780
|
+
c[g].isSigner || (c[g].isSigner = !0, console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."));
|
|
5781
5781
|
else
|
|
5782
5782
|
throw new Error(`unknown signer: ${b.publicKey.toString()}`);
|
|
5783
5783
|
}
|
|
@@ -6515,7 +6515,7 @@ const Ic = G({
|
|
|
6515
6515
|
function Fc(s, e, t, r, o, n) {
|
|
6516
6516
|
const c = t || _c;
|
|
6517
6517
|
let l;
|
|
6518
|
-
n != null;
|
|
6518
|
+
n != null && console.warn("You have supplied an `httpAgent` when creating a `Connection` in a browser environment.It has been ignored; `httpAgent` is only used in Node environments.");
|
|
6519
6519
|
let h;
|
|
6520
6520
|
return r && (h = async (M, E) => {
|
|
6521
6521
|
const z = await new Promise((B, O) => {
|
|
@@ -6538,7 +6538,7 @@ function Fc(s, e, t, r, o, n) {
|
|
|
6538
6538
|
try {
|
|
6539
6539
|
let B = 5, O, b = 500;
|
|
6540
6540
|
for (; h ? O = await h(s, z) : O = await c(s, z), !(O.status !== 429 || o === !0 || (B -= 1, B === 0)); )
|
|
6541
|
-
await Oe(b), b *= 2;
|
|
6541
|
+
console.error(`Server responded with ${O.status} ${O.statusText}. Retrying after ${b}ms delay...`), await Oe(b), b *= 2;
|
|
6542
6542
|
const g = await O.text();
|
|
6543
6543
|
O.ok ? E(null, g) : E(new Error(`${O.status} ${O.statusText}: ${g}`));
|
|
6544
6544
|
} catch (B) {
|
|
@@ -7715,7 +7715,7 @@ class af {
|
|
|
7715
7715
|
*/
|
|
7716
7716
|
async getMinimumBalanceForRentExemption(e, t) {
|
|
7717
7717
|
const r = this._buildArgs([e], t), o = await this._rpcRequest("getMinimumBalanceForRentExemption", r), n = V(o, xu);
|
|
7718
|
-
return "error" in n ? 0 : n.result;
|
|
7718
|
+
return "error" in n ? (console.warn("Unable to fetch minimum balance for rent exemption"), 0) : n.result;
|
|
7719
7719
|
}
|
|
7720
7720
|
/**
|
|
7721
7721
|
* Fetch a recent blockhash from the cluster, return with context
|
|
@@ -8437,6 +8437,7 @@ class af {
|
|
|
8437
8437
|
if ("data" in B.error && (O = B.error.data.logs, O && Array.isArray(O))) {
|
|
8438
8438
|
const b = `
|
|
8439
8439
|
`, g = b + O.join(b);
|
|
8440
|
+
console.error(B.error.message, g);
|
|
8440
8441
|
}
|
|
8441
8442
|
throw new so("failed to simulate transaction: " + B.error.message, O);
|
|
8442
8443
|
}
|
|
@@ -8527,7 +8528,7 @@ class af {
|
|
|
8527
8528
|
* @internal
|
|
8528
8529
|
*/
|
|
8529
8530
|
_wsOnError(e) {
|
|
8530
|
-
this._rpcWebSocketConnected = !1;
|
|
8531
|
+
this._rpcWebSocketConnected = !1, console.error("ws error:", e.message);
|
|
8531
8532
|
}
|
|
8532
8533
|
/**
|
|
8533
8534
|
* @internal
|
|
@@ -8584,7 +8585,7 @@ class af {
|
|
|
8584
8585
|
try {
|
|
8585
8586
|
this._rpcWebSocket.close();
|
|
8586
8587
|
} catch (r) {
|
|
8587
|
-
r instanceof Error;
|
|
8588
|
+
r instanceof Error && console.log(`Error when closing socket connection: ${r.message}`);
|
|
8588
8589
|
}
|
|
8589
8590
|
}, 500));
|
|
8590
8591
|
return;
|
|
@@ -8626,7 +8627,7 @@ class af {
|
|
|
8626
8627
|
state: "subscribed"
|
|
8627
8628
|
}), this._subscriptionCallbacksByServerSubscriptionId[l] = o.callbacks, await this._updateSubscriptions();
|
|
8628
8629
|
} catch (l) {
|
|
8629
|
-
if (l instanceof Error, !t())
|
|
8630
|
+
if (l instanceof Error && console.error(`${c} error for argument`, n, l.message), !t())
|
|
8630
8631
|
return;
|
|
8631
8632
|
this._setSubscription(r, {
|
|
8632
8633
|
...o,
|
|
@@ -8654,7 +8655,7 @@ class af {
|
|
|
8654
8655
|
try {
|
|
8655
8656
|
await this._rpcWebSocket.call(c, [n]);
|
|
8656
8657
|
} catch (l) {
|
|
8657
|
-
if (l instanceof Error, !t())
|
|
8658
|
+
if (l instanceof Error && console.error(`${c} error:`, l.message), !t())
|
|
8658
8659
|
return;
|
|
8659
8660
|
this._setSubscription(r, {
|
|
8660
8661
|
...o,
|
|
@@ -8683,7 +8684,8 @@ class af {
|
|
|
8683
8684
|
o(
|
|
8684
8685
|
...t
|
|
8685
8686
|
);
|
|
8686
|
-
} catch {
|
|
8687
|
+
} catch (n) {
|
|
8688
|
+
console.error(n);
|
|
8687
8689
|
}
|
|
8688
8690
|
});
|
|
8689
8691
|
}
|
|
@@ -8901,7 +8903,7 @@ class af {
|
|
|
8901
8903
|
*/
|
|
8902
8904
|
async _unsubscribeClientSubscription(e, t) {
|
|
8903
8905
|
const r = this._subscriptionDisposeFunctionsByClientSubscriptionId[e];
|
|
8904
|
-
r
|
|
8906
|
+
r ? await r() : console.warn(`Ignored unsubscribe request because an active subscription with id \`${e}\` for '${t}' events could not be found.`);
|
|
8905
8907
|
}
|
|
8906
8908
|
_buildArgs(e, t, r, o) {
|
|
8907
8909
|
const n = t || this._commitment;
|