@trifle/trifle-hub 1.0.151 → 1.0.156
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/{AccountIndex-B_Ou0TFB.js → AccountIndex-B_40_V9z.js} +96 -97
- package/dist/{Earn-kDxqogx4.js → Earn-DnV9HWuV.js} +23 -24
- package/dist/{ExchangeController-gSxJHdQt.js → ExchangeController-DBz5v5jj.js} +1 -1
- package/dist/{Games-CTYGxgX0.js → Games-D5h48SZi.js} +6 -6
- package/dist/{HelpersUtil-5nQJ6wY6.js → HelpersUtil-qhATPC5Y.js} +2 -2
- package/dist/{Leaderboard-sRL2OCQL.js → Leaderboard-EdV3BAoK.js} +8 -8
- package/dist/{Profile-E4ZcU8CN.js → Profile-Cn96DyCP.js} +23 -24
- package/dist/{ReownAuthentication-Di8rcCeN.js → ReownAuthentication-CQAaojk-.js} +1 -1
- package/dist/{SocialsButtons-DuKNWWyT.js → SocialsButtons-CbfOofMb.js} +1 -1
- package/dist/{SwapController-1hNCImxA.js → SwapController-TeYIZyDx.js} +1 -1
- package/dist/{TrifleGuide-CM28xPeI.js → TrifleGuide-c-FsalcZ.js} +3 -4
- package/dist/config/tailwindTheme.d.ts +106 -0
- package/dist/{data-capture-C8gBcUAz.js → data-capture-BQDIOlZ6.js} +4 -4
- package/dist/{email-47OWR5ic.js → email-B_P_PIYp.js} +8 -8
- package/dist/{embedded-wallet-CioJEeZc.js → embedded-wallet-Cbdk4D3M.js} +24 -24
- package/dist/{features-C0dlIrw9.js → features-3M-JebNm.js} +1 -1
- package/dist/{if-defined-B43-_6p0.js → if-defined-CL_w2h9s.js} +1 -1
- package/dist/{index-CWJdZnF1.js → index-BC3PxeaV.js} +4 -4
- package/dist/{index-pUaszRcx.js → index-BG8WBtus.js} +4 -4
- package/dist/{index-Bow_YVA5.js → index-BQjDT8wB.js} +29 -29
- package/dist/{index-BCsUxxKH.js → index-BTZSDJeD.js} +101 -101
- package/dist/{index-DlXWWIlL.js → index-BzLrBrW7.js} +4 -4
- package/dist/{index-CNddgQsA.js → index-C3O7bhi-.js} +23 -23
- package/dist/{index-ooJHEF0X.js → index-CF5xjd8r.js} +3 -3
- package/dist/{index-C4zYI_FR.js → index-CIkXhRhF.js} +4 -4
- package/dist/{index-T_37mhlM.js → index-CM2VNHu3.js} +15 -15
- package/dist/{index-Q36WAF-v.js → index-CZWqIYg0.js} +12 -12
- package/dist/{index-B4zPt8Wh.js → index-Cb_G9OGn.js} +2 -2
- package/dist/{index-DQH0MrgS.js → index-CfayJH5k.js} +7 -7
- package/dist/{index-DDHCcAv8.js → index-CikE1ZN4.js} +5 -5
- package/dist/{index-D0c7If0w.js → index-CwSqyI8B.js} +2 -2
- package/dist/{index-DP6kY3tX.js → index-CzMOvDNh.js} +3 -3
- package/dist/{index-BugNi7pt.js → index-D1WUKm51.js} +5 -5
- package/dist/{index-C1jrG5gq.js → index-D5pBThsm.js} +8 -8
- package/dist/{index-DjRjpqXH.js → index-D98a5Qj6.js} +5 -5
- package/dist/{index-C9c4QYTu.js → index-DAlsFLGc.js} +7 -7
- package/dist/{index-29kdY3cx.js → index-DLCPfb_7.js} +1 -1
- package/dist/{index-DM3eGdgR.js → index-DP9l26GA.js} +8 -8
- package/dist/{index-CzDOsElk.js → index-DblNI6pa.js} +1 -1
- package/dist/{index-DjaghxYb.js → index-Dq9bPRct.js} +4 -4
- package/dist/{index-BJGcUhRN.js → index-DzDNVHa8.js} +6 -6
- package/dist/{index-DtYMR-pV.js → index-JSn3sWqo.js} +86 -86
- package/dist/{index-Bat0p7Dx.js → index-c0ctRyET.js} +7025 -6524
- package/dist/{index-CRKGT_Oy.js → index-cMENwV_7.js} +3 -3
- package/dist/{index-CMcvsDWI.js → index-ehVUl84L.js} +3 -3
- package/dist/{index-CN62y8bC.js → index-iWd_iyNw.js} +3 -3
- package/dist/{index-BGxaoVbI.js → index-ie1ya1eW.js} +5 -5
- package/dist/{index-B29R3Z3w.js → index-ojkumN8c.js} +2 -2
- package/dist/{index-BSHLBMZ5.js → index-sUrD6Kmm.js} +4 -4
- package/dist/{index-Bd8P9SAB.js → index-te274hq1.js} +3 -3
- package/dist/{index-Cjaeoc9N.js → index-tnsmPMe3.js} +5 -5
- package/dist/{index-BJlnvJo0.js → index-wNi_k25W.js} +5 -5
- package/dist/{index-D8S3Fcb1.js → index-zzijiCRI.js} +3 -3
- package/dist/index.d.ts +7 -0
- package/dist/index.es.js +9 -6
- package/dist/{onramp-BDBBJfrQ.js → onramp-BJKUD5DU.js} +24 -24
- package/dist/{pay-with-exchange-W2K9vGVg.js → pay-with-exchange-DE_fuVog.js} +15 -15
- package/dist/{receive-BuIzazj_.js → receive-DFEOOajx.js} +7 -7
- package/dist/{ref-DTrRiGBQ.js → ref-C5suDmcq.js} +2 -2
- package/dist/{send-CZrTx0nY.js → send-BlZtaBse.js} +20 -20
- package/dist/{socials-Bx0qKu0v.js → socials-BoDWW9rI.js} +29 -29
- package/dist/{swaps-Dh2kSVyN.js → swaps-BdZpjh1F.js} +11 -11
- package/dist/{transactions-C0pjJ6C7.js → transactions-HeJwh4QN.js} +5 -5
- package/dist/{w3m-modal-CXpZ9dMX.js → w3m-modal-CbZgg44Z.js} +14 -14
- package/package.json +5 -1
- package/dist/pointsConfig-YhvcEO5L.js +0 -357
- package/dist/socialsConfig-BKT8EAyu.js +0 -63
|
@@ -2,7 +2,7 @@ var Xa = Object.defineProperty;
|
|
|
2
2
|
var Ga = (e, t, n) => t in e ? Xa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var U = (e, t, n) => Ga(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { createPublicClient as $a, http as Nn, defineChain as ei, isAddress as bt, isHex as Be, hashTypedData as ln, hashMessage as _r, numberToHex as he, slice as ti, keccak256 as ni, toHex as je, stringToBytes as Bn, hexToBytes as Ft, trim as Rn, encodeFunctionData as Te, decodeFunctionData as Or, BaseError as Nr, size as ri, parseSignature as ai, encodePacked as ii, encodeAbiParameters as Br, stringToHex as oi, hexToString as jn, pad as si, decodeAbiParameters as Rr, hexToBigInt as ci, hexToNumber as nt, isAddressEqual as ui } from "viem";
|
|
5
|
-
import {
|
|
5
|
+
import { au as jr, ao as li, av as di, aw as fi, ax as pi, ay as mi, az as hi, aA as gi } from "./index-c0ctRyET.js";
|
|
6
6
|
import { createBundlerClient as bi, toSmartAccount as yi, entryPoint06Address as wi, entryPoint06Abi as vi, getUserOperationHash as xi } from "viem/account-abstraction";
|
|
7
7
|
import { base as Ei, avalanche as ki, arbitrum as Si, polygon as Ai, mainnet as Ii, bsc as Ci, zora as Ti, optimism as Pi, baseSepolia as _i, sepolia as Oi, optimismSepolia as Ni } from "viem/chains";
|
|
8
8
|
import { waitForCallsStatus as Bi, getCode as Ri, readContract as Un } from "viem/actions";
|
|
@@ -116,8 +116,8 @@ function Mi() {
|
|
|
116
116
|
}(Nt)), Nt.exports;
|
|
117
117
|
}
|
|
118
118
|
var Di = Mi();
|
|
119
|
-
const
|
|
120
|
-
name:
|
|
119
|
+
const Ki = /* @__PURE__ */ li(Di), qi = "@base-org/account", Li = "2.4.0", Ur = {
|
|
120
|
+
name: qi,
|
|
121
121
|
version: Li
|
|
122
122
|
}, Hi = "https://keys.coinbase.com/connect", Zt = "https://rpc.wallet.coinbase.com", Et = Ur.name, He = Ur.version;
|
|
123
123
|
function Mr(e, t) {
|
|
@@ -793,7 +793,7 @@ const Vt = (e) => (t) => {
|
|
|
793
793
|
type: "function"
|
|
794
794
|
},
|
|
795
795
|
{ stateMutability: "payable", type: "receive" }
|
|
796
|
-
],
|
|
796
|
+
], Kr = [
|
|
797
797
|
{
|
|
798
798
|
inputs: [{ name: "implementation_", type: "address" }],
|
|
799
799
|
stateMutability: "payable",
|
|
@@ -930,8 +930,8 @@ const Vt = (e) => (t) => {
|
|
|
930
930
|
standard: "EIP-3085",
|
|
931
931
|
message: "Unrecognized chain ID."
|
|
932
932
|
}
|
|
933
|
-
},
|
|
934
|
-
function pn(e, t =
|
|
933
|
+
}, qr = "Unspecified error message.", co = "Unspecified server error.";
|
|
934
|
+
function pn(e, t = qr) {
|
|
935
935
|
if (e && Number.isInteger(e)) {
|
|
936
936
|
const n = e.toString();
|
|
937
937
|
if (Jt(Wt, n))
|
|
@@ -951,21 +951,21 @@ function lo(e, { shouldIncludeStack: t = !1 } = {}) {
|
|
|
951
951
|
const n = {};
|
|
952
952
|
if (e && typeof e == "object" && !Array.isArray(e) && Jt(e, "code") && uo(e.code)) {
|
|
953
953
|
const r = e;
|
|
954
|
-
n.code = r.code, r.message && typeof r.message == "string" ? (n.message = r.message, Jt(r, "data") && (n.data = r.data)) : (n.message = pn(n.code), n.data = { originalError:
|
|
954
|
+
n.code = r.code, r.message && typeof r.message == "string" ? (n.message = r.message, Jt(r, "data") && (n.data = r.data)) : (n.message = pn(n.code), n.data = { originalError: Kn(e) });
|
|
955
955
|
} else
|
|
956
|
-
n.code = F.rpc.internal, n.message =
|
|
957
|
-
return t && (n.stack =
|
|
956
|
+
n.code = F.rpc.internal, n.message = qn(e, "message") ? e.message : qr, n.data = { originalError: Kn(e) };
|
|
957
|
+
return t && (n.stack = qn(e, "stack") ? e.stack : void 0), n;
|
|
958
958
|
}
|
|
959
959
|
function Lr(e) {
|
|
960
960
|
return e >= -32099 && e <= -32e3;
|
|
961
961
|
}
|
|
962
|
-
function
|
|
962
|
+
function Kn(e) {
|
|
963
963
|
return e && typeof e == "object" && !Array.isArray(e) ? Object.assign({}, e) : e;
|
|
964
964
|
}
|
|
965
965
|
function Jt(e, t) {
|
|
966
966
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
967
967
|
}
|
|
968
|
-
function
|
|
968
|
+
function qn(e, t) {
|
|
969
969
|
return typeof e == "object" && e !== null && t in e && typeof e[t] == "string";
|
|
970
970
|
}
|
|
971
971
|
const x = {
|
|
@@ -1122,14 +1122,14 @@ var D;
|
|
|
1122
1122
|
(function(e) {
|
|
1123
1123
|
e.unknown = "unknown", e.banner = "banner", e.button = "button", e.card = "card", e.chart = "chart", e.content_script = "content_script", e.dropdown = "dropdown", e.link = "link", e.page = "page", e.modal = "modal", e.table = "table", e.search_bar = "search_bar", e.service_worker = "service_worker", e.text = "text", e.text_input = "text_input", e.tray = "tray", e.checkbox = "checkbox", e.icon = "icon";
|
|
1124
1124
|
})(D || (D = {}));
|
|
1125
|
-
var
|
|
1125
|
+
var K;
|
|
1126
1126
|
(function(e) {
|
|
1127
1127
|
e.unknown = "unknown", e.blur = "blur", e.click = "click", e.change = "change", e.dismiss = "dismiss", e.focus = "focus", e.hover = "hover", e.select = "select", e.measurement = "measurement", e.move = "move", e.process = "process", e.render = "render", e.scroll = "scroll", e.view = "view", e.search = "search", e.keyPress = "keyPress", e.error = "error";
|
|
1128
|
-
})(
|
|
1129
|
-
var
|
|
1128
|
+
})(K || (K = {}));
|
|
1129
|
+
var q;
|
|
1130
1130
|
(function(e) {
|
|
1131
1131
|
e.low = "low", e.high = "high";
|
|
1132
|
-
})(
|
|
1132
|
+
})(q || (q = {}));
|
|
1133
1133
|
function H(e, t, n) {
|
|
1134
1134
|
var r, a;
|
|
1135
1135
|
typeof window < "u" && window.ClientAnalytics && ((a = window.ClientAnalytics) == null || a.logEvent(e, {
|
|
@@ -1142,38 +1142,38 @@ function H(e, t, n) {
|
|
|
1142
1142
|
}
|
|
1143
1143
|
const wo = () => {
|
|
1144
1144
|
H("communicator.popup_setup.started", {
|
|
1145
|
-
action:
|
|
1145
|
+
action: K.unknown,
|
|
1146
1146
|
componentType: D.unknown
|
|
1147
|
-
},
|
|
1147
|
+
}, q.high);
|
|
1148
1148
|
}, vo = () => {
|
|
1149
1149
|
H("communicator.popup_setup.completed", {
|
|
1150
|
-
action:
|
|
1150
|
+
action: K.unknown,
|
|
1151
1151
|
componentType: D.unknown
|
|
1152
|
-
},
|
|
1152
|
+
}, q.high);
|
|
1153
1153
|
}, xo = () => {
|
|
1154
1154
|
H("communicator.popup_unload.received", {
|
|
1155
|
-
action:
|
|
1155
|
+
action: K.unknown,
|
|
1156
1156
|
componentType: D.unknown
|
|
1157
|
-
},
|
|
1157
|
+
}, q.high);
|
|
1158
1158
|
}, hn = ({ dialogContext: e }) => {
|
|
1159
1159
|
H(`dialog.${e}.shown`, {
|
|
1160
|
-
action:
|
|
1160
|
+
action: K.render,
|
|
1161
1161
|
componentType: D.modal,
|
|
1162
1162
|
dialogContext: e
|
|
1163
|
-
},
|
|
1163
|
+
}, q.high);
|
|
1164
1164
|
}, Zr = ({ dialogContext: e }) => {
|
|
1165
1165
|
H(`dialog.${e}.dismissed`, {
|
|
1166
|
-
action:
|
|
1166
|
+
action: K.dismiss,
|
|
1167
1167
|
componentType: D.modal,
|
|
1168
1168
|
dialogContext: e
|
|
1169
|
-
},
|
|
1169
|
+
}, q.high);
|
|
1170
1170
|
}, Ae = ({ dialogContext: e, dialogAction: t }) => {
|
|
1171
1171
|
H(`dialog.${e}.action_clicked`, {
|
|
1172
|
-
action:
|
|
1172
|
+
action: K.click,
|
|
1173
1173
|
componentType: D.button,
|
|
1174
1174
|
dialogContext: e,
|
|
1175
1175
|
dialogAction: t
|
|
1176
|
-
},
|
|
1176
|
+
}, q.high);
|
|
1177
1177
|
}, Eo = `
|
|
1178
1178
|
@font-face {
|
|
1179
1179
|
font-family: "BaseSans-Regular";
|
|
@@ -1574,7 +1574,7 @@ function aa(e, t) {
|
|
|
1574
1574
|
function ia(e, t) {
|
|
1575
1575
|
return typeof t == "function" ? t(e) : t;
|
|
1576
1576
|
}
|
|
1577
|
-
const
|
|
1577
|
+
const Ko = '.-base-acc-sdk-css-reset{-webkit-font-smoothing:antialiased;pointer-events:auto !important}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-container{position:fixed;top:0;left:0;width:100%;height:100%;z-index:2147483647}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-container *{user-select:none;box-sizing:border-box}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-backdrop{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;padding:20px}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-backdrop{align-items:flex-end;justify-content:stretch;padding:0}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog{position:relative;z-index:2147483648}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog{width:100%}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance{background:#fff;border-radius:12px;box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 10px 10px -5px rgba(0,0,0,.04);width:380px;max-height:90vh;overflow:hidden;transform:scale(0.95);opacity:0;transition:all .2s ease-in-out}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance{touch-action:pan-y;user-select:none}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-hidden{transform:scale(0.9);opacity:0}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-hidden{transform:translateY(100%)}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance:not(.-base-acc-sdk-dialog-instance-hidden){transform:scale(1);opacity:1}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance:not(.-base-acc-sdk-dialog-instance-hidden){transform:translateY(0)}}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance{width:100%;max-width:100%;border-radius:20px 20px 0 0;box-shadow:0 -10px 25px rgba(0,0,0,.15);max-height:80vh;transform:translateY(0)}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-hidden{transform:translateY(100%);opacity:1}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance:not(.-base-acc-sdk-dialog-instance-hidden){transform:translateY(0);opacity:1}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px 0 20px}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header{padding:16px 20px 12px 20px}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-icon-and-title{display:flex;align-items:center;gap:8px}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-icon-and-title-title{font-family:"BaseSans-Regular",sans-serif;font-size:14px;font-weight:400;color:#5b616e}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-cblogo{width:32px;height:32px}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-close{display:flex;align-items:center;justify-content:center;width:32px;height:32px;cursor:pointer;border-radius:6px;transition:background-color .2s}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-close:hover{background-color:#f5f7f8}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-close-icon{width:14px;height:14px}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-close-icon{display:none}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-content{padding:20px 20px 16px 20px;font-family:"BaseSans-Regular",sans-serif}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-content{padding:8px 20px 12px 20px}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-content-title{font-size:20px;font-weight:600;line-height:28px;color:#0a0b0d;margin-bottom:10px}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-content-message{font-size:16px;font-weight:400;line-height:24px;color:#5b616e;margin-bottom:0}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-actions{display:flex;padding:16px 20px 20px 20px;flex-direction:column}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-actions{padding:16px 20px calc(20px + env(safe-area-inset-bottom)) 20px;gap:6px}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button{font-family:"BaseSans-Regular",sans-serif;font-size:16px;font-weight:500;line-height:24px;border:none;border-radius:12px;padding:16px 24px;cursor:pointer;transition:all .2s ease-in-out;width:100%;margin:4px 0}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button:disabled{opacity:.5;cursor:not-allowed}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-primary{background-color:#0a0b0d;color:#fff}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-primary:hover:not(:disabled){background-color:#1c1e20}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-primary:active:not(:disabled){background-color:#2a2d31}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-secondary{background-color:#eef0f3;color:#0a0b0d}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-secondary:hover:not(:disabled){background-color:#e1e4e8}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-secondary:active:not(:disabled){background-color:#d4d8dd}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-handle-bar{position:absolute;top:-16px;left:50%;transform:translateX(-50%);width:64px;height:4px;background-color:#d1d5db;border-radius:2px;opacity:0;animation:handleBarFadeIn .2s ease-in-out .2s forwards}@keyframes handleBarFadeIn{from{opacity:0}to{opacity:1}}', qo = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEzIDFMMSAxM20wLTEyTDEzIDEzIiBzdHJva2U9IiM5Q0EzQUYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PC9zdmc+";
|
|
1578
1578
|
function oa() {
|
|
1579
1579
|
return window.innerWidth <= 600 && window.innerHeight > window.innerWidth;
|
|
1580
1580
|
}
|
|
@@ -1631,7 +1631,7 @@ const zo = (e) => {
|
|
|
1631
1631
|
} else
|
|
1632
1632
|
n(0);
|
|
1633
1633
|
};
|
|
1634
|
-
return z("div", { class: Gt("-base-acc-sdk-dialog-container"), children: [z("style", { children:
|
|
1634
|
+
return z("div", { class: Gt("-base-acc-sdk-dialog-container"), children: [z("style", { children: Ko }), z("div", { class: "-base-acc-sdk-dialog-backdrop", onTouchStart: c, onTouchMove: s, onTouchEnd: o, children: z("div", { class: "-base-acc-sdk-dialog", style: {
|
|
1635
1635
|
transform: `translateY(${t}px)`,
|
|
1636
1636
|
transition: r ? "none" : "transform 0.2s ease-out"
|
|
1637
1637
|
}, children: [z(Lo, {}), e.children] }) })] });
|
|
@@ -1656,7 +1656,7 @@ const zo = (e) => {
|
|
|
1656
1656
|
})();
|
|
1657
1657
|
}, []);
|
|
1658
1658
|
const d = Uo(() => s ? `Signed in as ${s}` : "Base Account", [s]), l = !u;
|
|
1659
|
-
return z("div", { class: Gt("-base-acc-sdk-dialog-instance", a && "-base-acc-sdk-dialog-instance-hidden"), children: [z("div", { class: "-base-acc-sdk-dialog-instance-header", children: [z("div", { class: "-base-acc-sdk-dialog-instance-header-icon-and-title", children: [z(Ro, { fill: "blue" }), l && z("div", { class: "-base-acc-sdk-dialog-instance-header-icon-and-title-title", children: d })] }), z("div", { class: "-base-acc-sdk-dialog-instance-header-close", onClick: r, children: z("img", { src:
|
|
1659
|
+
return z("div", { class: Gt("-base-acc-sdk-dialog-instance", a && "-base-acc-sdk-dialog-instance-hidden"), children: [z("div", { class: "-base-acc-sdk-dialog-instance-header", children: [z("div", { class: "-base-acc-sdk-dialog-instance-header-icon-and-title", children: [z(Ro, { fill: "blue" }), l && z("div", { class: "-base-acc-sdk-dialog-instance-header-icon-and-title-title", children: d })] }), z("div", { class: "-base-acc-sdk-dialog-instance-header-close", onClick: r, children: z("img", { src: qo, class: "-base-acc-sdk-dialog-instance-header-close-icon" }) })] }), z("div", { class: "-base-acc-sdk-dialog-instance-content", children: [z("div", { class: "-base-acc-sdk-dialog-instance-content-title", children: e }), z("div", { class: "-base-acc-sdk-dialog-instance-content-message", children: t })] }), n && n.length > 0 && z("div", { class: "-base-acc-sdk-dialog-instance-actions", children: n.map((m, p) => z("button", { class: Gt("-base-acc-sdk-dialog-instance-button", m.variant === "primary" && "-base-acc-sdk-dialog-instance-button-primary", m.variant === "secondary" && "-base-acc-sdk-dialog-instance-button-secondary"), onClick: m.onClick, children: m.text }, p)) })] });
|
|
1660
1660
|
};
|
|
1661
1661
|
let at = null;
|
|
1662
1662
|
function xn() {
|
|
@@ -1824,33 +1824,33 @@ function es(e) {
|
|
|
1824
1824
|
}
|
|
1825
1825
|
return e;
|
|
1826
1826
|
}
|
|
1827
|
-
class ts extends
|
|
1827
|
+
class ts extends Ki {
|
|
1828
1828
|
}
|
|
1829
1829
|
const ns = ({ method: e, correlationId: t }) => {
|
|
1830
1830
|
H("provider.request.started", {
|
|
1831
|
-
action:
|
|
1831
|
+
action: K.unknown,
|
|
1832
1832
|
componentType: D.unknown,
|
|
1833
1833
|
method: e,
|
|
1834
1834
|
signerType: "base-account",
|
|
1835
1835
|
correlationId: t
|
|
1836
|
-
},
|
|
1836
|
+
}, q.high);
|
|
1837
1837
|
}, rs = ({ method: e, correlationId: t, errorMessage: n }) => {
|
|
1838
1838
|
H("provider.request.error", {
|
|
1839
|
-
action:
|
|
1839
|
+
action: K.error,
|
|
1840
1840
|
componentType: D.unknown,
|
|
1841
1841
|
method: e,
|
|
1842
1842
|
signerType: "base-account",
|
|
1843
1843
|
correlationId: t,
|
|
1844
1844
|
errorMessage: n
|
|
1845
|
-
},
|
|
1845
|
+
}, q.high);
|
|
1846
1846
|
}, as = ({ method: e, correlationId: t }) => {
|
|
1847
1847
|
H("provider.request.responded", {
|
|
1848
|
-
action:
|
|
1848
|
+
action: K.unknown,
|
|
1849
1849
|
componentType: D.unknown,
|
|
1850
1850
|
method: e,
|
|
1851
1851
|
signerType: "base-account",
|
|
1852
1852
|
correlationId: t
|
|
1853
|
-
},
|
|
1853
|
+
}, q.high);
|
|
1854
1854
|
}, Re = (e) => "message" in e && typeof e.message == "string" ? e.message : "";
|
|
1855
1855
|
function is() {
|
|
1856
1856
|
return (e) => e;
|
|
@@ -1907,18 +1907,18 @@ function fs(e) {
|
|
|
1907
1907
|
const ps = ({ method: e, correlationId: t }) => {
|
|
1908
1908
|
const n = v.subAccountsConfig.get();
|
|
1909
1909
|
H("scw_signer.handshake.started", {
|
|
1910
|
-
action:
|
|
1910
|
+
action: K.unknown,
|
|
1911
1911
|
componentType: D.unknown,
|
|
1912
1912
|
method: e,
|
|
1913
1913
|
correlationId: t,
|
|
1914
1914
|
subAccountCreation: n == null ? void 0 : n.creation,
|
|
1915
1915
|
subAccountDefaultAccount: n == null ? void 0 : n.defaultAccount,
|
|
1916
1916
|
subAccountFunding: n == null ? void 0 : n.funding
|
|
1917
|
-
},
|
|
1917
|
+
}, q.high);
|
|
1918
1918
|
}, ms = ({ method: e, correlationId: t, errorMessage: n }) => {
|
|
1919
1919
|
const r = v.subAccountsConfig.get();
|
|
1920
1920
|
H("scw_signer.handshake.error", {
|
|
1921
|
-
action:
|
|
1921
|
+
action: K.error,
|
|
1922
1922
|
componentType: D.unknown,
|
|
1923
1923
|
method: e,
|
|
1924
1924
|
correlationId: t,
|
|
@@ -1926,33 +1926,33 @@ const ps = ({ method: e, correlationId: t }) => {
|
|
|
1926
1926
|
subAccountCreation: r == null ? void 0 : r.creation,
|
|
1927
1927
|
subAccountDefaultAccount: r == null ? void 0 : r.defaultAccount,
|
|
1928
1928
|
subAccountFunding: r == null ? void 0 : r.funding
|
|
1929
|
-
},
|
|
1929
|
+
}, q.high);
|
|
1930
1930
|
}, hs = ({ method: e, correlationId: t }) => {
|
|
1931
1931
|
const n = v.subAccountsConfig.get();
|
|
1932
1932
|
H("scw_signer.handshake.completed", {
|
|
1933
|
-
action:
|
|
1933
|
+
action: K.unknown,
|
|
1934
1934
|
componentType: D.unknown,
|
|
1935
1935
|
method: e,
|
|
1936
1936
|
correlationId: t,
|
|
1937
1937
|
subAccountCreation: n == null ? void 0 : n.creation,
|
|
1938
1938
|
subAccountDefaultAccount: n == null ? void 0 : n.defaultAccount,
|
|
1939
1939
|
subAccountFunding: n == null ? void 0 : n.funding
|
|
1940
|
-
},
|
|
1940
|
+
}, q.high);
|
|
1941
1941
|
}, gs = ({ method: e, correlationId: t }) => {
|
|
1942
1942
|
const n = v.subAccountsConfig.get();
|
|
1943
1943
|
H("scw_signer.request.started", {
|
|
1944
|
-
action:
|
|
1944
|
+
action: K.unknown,
|
|
1945
1945
|
componentType: D.unknown,
|
|
1946
1946
|
method: e,
|
|
1947
1947
|
correlationId: t,
|
|
1948
1948
|
subAccountCreation: n == null ? void 0 : n.creation,
|
|
1949
1949
|
subAccountDefaultAccount: n == null ? void 0 : n.defaultAccount,
|
|
1950
1950
|
subAccountFunding: n == null ? void 0 : n.funding
|
|
1951
|
-
},
|
|
1951
|
+
}, q.high);
|
|
1952
1952
|
}, bs = ({ method: e, correlationId: t, errorMessage: n }) => {
|
|
1953
1953
|
const r = v.subAccountsConfig.get();
|
|
1954
1954
|
H("scw_signer.request.error", {
|
|
1955
|
-
action:
|
|
1955
|
+
action: K.error,
|
|
1956
1956
|
componentType: D.unknown,
|
|
1957
1957
|
method: e,
|
|
1958
1958
|
correlationId: t,
|
|
@@ -1960,44 +1960,44 @@ const ps = ({ method: e, correlationId: t }) => {
|
|
|
1960
1960
|
subAccountCreation: r == null ? void 0 : r.creation,
|
|
1961
1961
|
subAccountDefaultAccount: r == null ? void 0 : r.defaultAccount,
|
|
1962
1962
|
subAccountFunding: r == null ? void 0 : r.funding
|
|
1963
|
-
},
|
|
1963
|
+
}, q.high);
|
|
1964
1964
|
}, ys = ({ method: e, correlationId: t }) => {
|
|
1965
1965
|
const n = v.subAccountsConfig.get();
|
|
1966
1966
|
H("scw_signer.request.completed", {
|
|
1967
|
-
action:
|
|
1967
|
+
action: K.unknown,
|
|
1968
1968
|
componentType: D.unknown,
|
|
1969
1969
|
method: e,
|
|
1970
1970
|
correlationId: t,
|
|
1971
1971
|
subAccountCreation: n == null ? void 0 : n.creation,
|
|
1972
1972
|
subAccountDefaultAccount: n == null ? void 0 : n.defaultAccount,
|
|
1973
1973
|
subAccountFunding: n == null ? void 0 : n.funding
|
|
1974
|
-
},
|
|
1974
|
+
}, q.high);
|
|
1975
1975
|
}, ws = ({ method: e, correlationId: t }) => {
|
|
1976
1976
|
const n = v.subAccountsConfig.get();
|
|
1977
1977
|
H("scw_sub_account.request.started", {
|
|
1978
|
-
action:
|
|
1978
|
+
action: K.unknown,
|
|
1979
1979
|
componentType: D.unknown,
|
|
1980
1980
|
method: e,
|
|
1981
1981
|
correlationId: t,
|
|
1982
1982
|
subAccountCreation: n == null ? void 0 : n.creation,
|
|
1983
1983
|
subAccountDefaultAccount: n == null ? void 0 : n.defaultAccount,
|
|
1984
1984
|
subAccountFunding: n == null ? void 0 : n.funding
|
|
1985
|
-
},
|
|
1985
|
+
}, q.high);
|
|
1986
1986
|
}, vs = ({ method: e, correlationId: t }) => {
|
|
1987
1987
|
const n = v.subAccountsConfig.get();
|
|
1988
1988
|
H("scw_sub_account.request.completed", {
|
|
1989
|
-
action:
|
|
1989
|
+
action: K.unknown,
|
|
1990
1990
|
componentType: D.unknown,
|
|
1991
1991
|
method: e,
|
|
1992
1992
|
correlationId: t,
|
|
1993
1993
|
subAccountCreation: n == null ? void 0 : n.creation,
|
|
1994
1994
|
subAccountDefaultAccount: n == null ? void 0 : n.defaultAccount,
|
|
1995
1995
|
subAccountFunding: n == null ? void 0 : n.funding
|
|
1996
|
-
},
|
|
1996
|
+
}, q.high);
|
|
1997
1997
|
}, xs = ({ method: e, correlationId: t, errorMessage: n }) => {
|
|
1998
1998
|
const r = v.subAccountsConfig.get();
|
|
1999
1999
|
H("scw_sub_account.request.error", {
|
|
2000
|
-
action:
|
|
2000
|
+
action: K.error,
|
|
2001
2001
|
componentType: D.unknown,
|
|
2002
2002
|
method: e,
|
|
2003
2003
|
correlationId: t,
|
|
@@ -2005,33 +2005,33 @@ const ps = ({ method: e, correlationId: t }) => {
|
|
|
2005
2005
|
subAccountCreation: r == null ? void 0 : r.creation,
|
|
2006
2006
|
subAccountDefaultAccount: r == null ? void 0 : r.defaultAccount,
|
|
2007
2007
|
subAccountFunding: r == null ? void 0 : r.funding
|
|
2008
|
-
},
|
|
2008
|
+
}, q.high);
|
|
2009
2009
|
}, Es = ({ method: e, correlationId: t }) => {
|
|
2010
2010
|
const n = v.subAccountsConfig.get();
|
|
2011
2011
|
H("scw_sub_account.add_owner.started", {
|
|
2012
|
-
action:
|
|
2012
|
+
action: K.unknown,
|
|
2013
2013
|
componentType: D.unknown,
|
|
2014
2014
|
method: e,
|
|
2015
2015
|
correlationId: t,
|
|
2016
2016
|
subAccountCreation: n == null ? void 0 : n.creation,
|
|
2017
2017
|
subAccountDefaultAccount: n == null ? void 0 : n.defaultAccount,
|
|
2018
2018
|
subAccountFunding: n == null ? void 0 : n.funding
|
|
2019
|
-
},
|
|
2019
|
+
}, q.high);
|
|
2020
2020
|
}, ks = ({ method: e, correlationId: t }) => {
|
|
2021
2021
|
const n = v.subAccountsConfig.get();
|
|
2022
2022
|
H("scw_sub_account.add_owner.completed", {
|
|
2023
|
-
action:
|
|
2023
|
+
action: K.unknown,
|
|
2024
2024
|
componentType: D.unknown,
|
|
2025
2025
|
method: e,
|
|
2026
2026
|
correlationId: t,
|
|
2027
2027
|
subAccountCreation: n == null ? void 0 : n.creation,
|
|
2028
2028
|
subAccountDefaultAccount: n == null ? void 0 : n.defaultAccount,
|
|
2029
2029
|
subAccountFunding: n == null ? void 0 : n.funding
|
|
2030
|
-
},
|
|
2030
|
+
}, q.high);
|
|
2031
2031
|
}, Ss = ({ method: e, correlationId: t, errorMessage: n }) => {
|
|
2032
2032
|
const r = v.subAccountsConfig.get();
|
|
2033
2033
|
H("scw_sub_account.add_owner.error", {
|
|
2034
|
-
action:
|
|
2034
|
+
action: K.error,
|
|
2035
2035
|
componentType: D.unknown,
|
|
2036
2036
|
method: e,
|
|
2037
2037
|
correlationId: t,
|
|
@@ -2039,33 +2039,33 @@ const ps = ({ method: e, correlationId: t }) => {
|
|
|
2039
2039
|
subAccountCreation: r == null ? void 0 : r.creation,
|
|
2040
2040
|
subAccountDefaultAccount: r == null ? void 0 : r.defaultAccount,
|
|
2041
2041
|
subAccountFunding: r == null ? void 0 : r.funding
|
|
2042
|
-
},
|
|
2042
|
+
}, q.high);
|
|
2043
2043
|
}, As = ({ method: e, correlationId: t }) => {
|
|
2044
2044
|
const n = v.subAccountsConfig.get();
|
|
2045
2045
|
H("scw_sub_account.insufficient_balance.error_handling.started", {
|
|
2046
|
-
action:
|
|
2046
|
+
action: K.unknown,
|
|
2047
2047
|
componentType: D.unknown,
|
|
2048
2048
|
method: e,
|
|
2049
2049
|
correlationId: t,
|
|
2050
2050
|
subAccountCreation: n == null ? void 0 : n.creation,
|
|
2051
2051
|
subAccountDefaultAccount: n == null ? void 0 : n.defaultAccount,
|
|
2052
2052
|
subAccountFunding: n == null ? void 0 : n.funding
|
|
2053
|
-
},
|
|
2053
|
+
}, q.high);
|
|
2054
2054
|
}, Is = ({ method: e, correlationId: t }) => {
|
|
2055
2055
|
const n = v.subAccountsConfig.get();
|
|
2056
2056
|
H("scw_sub_account.insufficient_balance.error_handling.completed", {
|
|
2057
|
-
action:
|
|
2057
|
+
action: K.unknown,
|
|
2058
2058
|
componentType: D.unknown,
|
|
2059
2059
|
method: e,
|
|
2060
2060
|
correlationId: t,
|
|
2061
2061
|
subAccountCreation: n == null ? void 0 : n.creation,
|
|
2062
2062
|
subAccountDefaultAccount: n == null ? void 0 : n.defaultAccount,
|
|
2063
2063
|
subAccountFunding: n == null ? void 0 : n.funding
|
|
2064
|
-
},
|
|
2064
|
+
}, q.high);
|
|
2065
2065
|
}, Cs = ({ method: e, correlationId: t, errorMessage: n }) => {
|
|
2066
2066
|
const r = v.subAccountsConfig.get();
|
|
2067
2067
|
H("scw_sub_account.insufficient_balance.error_handling.error", {
|
|
2068
|
-
action:
|
|
2068
|
+
action: K.error,
|
|
2069
2069
|
componentType: D.unknown,
|
|
2070
2070
|
method: e,
|
|
2071
2071
|
correlationId: t,
|
|
@@ -2073,7 +2073,7 @@ const ps = ({ method: e, correlationId: t }) => {
|
|
|
2073
2073
|
subAccountCreation: r == null ? void 0 : r.creation,
|
|
2074
2074
|
subAccountDefaultAccount: r == null ? void 0 : r.defaultAccount,
|
|
2075
2075
|
subAccountFunding: r == null ? void 0 : r.funding
|
|
2076
|
-
},
|
|
2076
|
+
}, q.high);
|
|
2077
2077
|
}, la = dn(() => ({})), Ts = [
|
|
2078
2078
|
Ei,
|
|
2079
2079
|
ki,
|
|
@@ -2288,7 +2288,7 @@ async function We(e, t) {
|
|
|
2288
2288
|
throw i;
|
|
2289
2289
|
return a;
|
|
2290
2290
|
}
|
|
2291
|
-
function
|
|
2291
|
+
function Ks(e) {
|
|
2292
2292
|
if (!e || typeof e != "object" || Array.isArray(e))
|
|
2293
2293
|
throw x.rpc.invalidParams({
|
|
2294
2294
|
message: "Expected a single, non-array, object argument.",
|
|
@@ -2313,9 +2313,9 @@ function qs(e) {
|
|
|
2313
2313
|
throw x.provider.unsupportedMethod();
|
|
2314
2314
|
}
|
|
2315
2315
|
}
|
|
2316
|
-
const
|
|
2316
|
+
const qs = "0.1.1";
|
|
2317
2317
|
function Ls() {
|
|
2318
|
-
return
|
|
2318
|
+
return qs;
|
|
2319
2319
|
}
|
|
2320
2320
|
class L extends Error {
|
|
2321
2321
|
constructor(t, n = {}) {
|
|
@@ -2574,26 +2574,26 @@ function Ct(e, t, n) {
|
|
|
2574
2574
|
return JSON.stringify(e, (r, a) => typeof a == "bigint" ? a.toString() + Vs : a, n);
|
|
2575
2575
|
}
|
|
2576
2576
|
function Ws(e, t) {
|
|
2577
|
-
if (
|
|
2577
|
+
if (qe(e) > t)
|
|
2578
2578
|
throw new uc({
|
|
2579
|
-
givenSize:
|
|
2579
|
+
givenSize: qe(e),
|
|
2580
2580
|
maxSize: t
|
|
2581
2581
|
});
|
|
2582
2582
|
}
|
|
2583
2583
|
function Js(e, t) {
|
|
2584
|
-
if (typeof t == "number" && t > 0 && t >
|
|
2584
|
+
if (typeof t == "number" && t > 0 && t > qe(e) - 1)
|
|
2585
2585
|
throw new Oa({
|
|
2586
2586
|
offset: t,
|
|
2587
2587
|
position: "start",
|
|
2588
|
-
size:
|
|
2588
|
+
size: qe(e)
|
|
2589
2589
|
});
|
|
2590
2590
|
}
|
|
2591
2591
|
function Ys(e, t, n) {
|
|
2592
|
-
if (typeof t == "number" && typeof n == "number" &&
|
|
2592
|
+
if (typeof t == "number" && typeof n == "number" && qe(e) !== n - t)
|
|
2593
2593
|
throw new Oa({
|
|
2594
2594
|
offset: n,
|
|
2595
2595
|
position: "end",
|
|
2596
|
-
size:
|
|
2596
|
+
size: qe(e)
|
|
2597
2597
|
});
|
|
2598
2598
|
}
|
|
2599
2599
|
const de = {
|
|
@@ -2664,9 +2664,9 @@ function Tt(...e) {
|
|
|
2664
2664
|
return `0x${e.reduce((t, n) => t + n.replace("0x", ""), "")}`;
|
|
2665
2665
|
}
|
|
2666
2666
|
function Sa(e) {
|
|
2667
|
-
return e instanceof Uint8Array ?
|
|
2667
|
+
return e instanceof Uint8Array ? Ke(e) : Array.isArray(e) ? Ke(new Uint8Array(e)) : e;
|
|
2668
2668
|
}
|
|
2669
|
-
function
|
|
2669
|
+
function Ke(e, t = {}) {
|
|
2670
2670
|
let n = "";
|
|
2671
2671
|
for (let a = 0; a < e.length; a++)
|
|
2672
2672
|
n += $s[e[a]];
|
|
@@ -2692,7 +2692,7 @@ function we(e, t = {}) {
|
|
|
2692
2692
|
return r ? tc(s, r) : s;
|
|
2693
2693
|
}
|
|
2694
2694
|
function Aa(e, t = {}) {
|
|
2695
|
-
return
|
|
2695
|
+
return Ke(Gs.encode(e), t);
|
|
2696
2696
|
}
|
|
2697
2697
|
function tc(e, t) {
|
|
2698
2698
|
return ka(e, { dir: "left", size: t });
|
|
@@ -2824,7 +2824,7 @@ function _a(e, t = {}) {
|
|
|
2824
2824
|
}
|
|
2825
2825
|
return u;
|
|
2826
2826
|
}
|
|
2827
|
-
function
|
|
2827
|
+
function qe(e) {
|
|
2828
2828
|
return e.length;
|
|
2829
2829
|
}
|
|
2830
2830
|
function fr(e, t, n, r = {}) {
|
|
@@ -2836,7 +2836,7 @@ function fr(e, t, n, r = {}) {
|
|
|
2836
2836
|
function pr(e, t = {}) {
|
|
2837
2837
|
const { size: n } = t;
|
|
2838
2838
|
typeof n < "u" && Ws(e, n);
|
|
2839
|
-
const r =
|
|
2839
|
+
const r = Ke(e, t);
|
|
2840
2840
|
return nc(r, t);
|
|
2841
2841
|
}
|
|
2842
2842
|
function cc(e) {
|
|
@@ -2880,7 +2880,7 @@ class Oa extends L {
|
|
|
2880
2880
|
}
|
|
2881
2881
|
function Na(e, t = {}) {
|
|
2882
2882
|
const { as: n = typeof e == "string" ? "Hex" : "Bytes" } = t, r = Ui(Ta(e));
|
|
2883
|
-
return n === "Bytes" ? r :
|
|
2883
|
+
return n === "Bytes" ? r : Ke(r);
|
|
2884
2884
|
}
|
|
2885
2885
|
function Ba(e, t = {}) {
|
|
2886
2886
|
const { compressed: n } = t, { prefix: r, x: a, y: i } = e;
|
|
@@ -2914,7 +2914,7 @@ function lc(e) {
|
|
|
2914
2914
|
return Ba(t), t;
|
|
2915
2915
|
}
|
|
2916
2916
|
function dc(e) {
|
|
2917
|
-
return Ra(
|
|
2917
|
+
return Ra(Ke(e));
|
|
2918
2918
|
}
|
|
2919
2919
|
function Ra(e) {
|
|
2920
2920
|
if (e.length !== 132 && e.length !== 130 && e.length !== 68)
|
|
@@ -3217,12 +3217,12 @@ function Mt(e, t) {
|
|
|
3217
3217
|
const n = t.negate();
|
|
3218
3218
|
return e ? n : t;
|
|
3219
3219
|
}
|
|
3220
|
-
function
|
|
3220
|
+
function Ka(e, t) {
|
|
3221
3221
|
if (!Number.isSafeInteger(e) || e <= 0 || e > t)
|
|
3222
3222
|
throw new Error("invalid window size, expected [1.." + t + "], got W=" + e);
|
|
3223
3223
|
}
|
|
3224
3224
|
function Dt(e, t) {
|
|
3225
|
-
|
|
3225
|
+
Ka(e, t);
|
|
3226
3226
|
const n = Math.ceil(t / e) + 1, r = 2 ** (e - 1), a = 2 ** e, i = At(e), u = BigInt(e);
|
|
3227
3227
|
return { windows: n, windowSize: r, mask: i, maxNumber: a, shiftBy: u };
|
|
3228
3228
|
}
|
|
@@ -3249,15 +3249,15 @@ function Ac(e, t) {
|
|
|
3249
3249
|
throw new Error("invalid scalar at index " + r);
|
|
3250
3250
|
});
|
|
3251
3251
|
}
|
|
3252
|
-
const
|
|
3253
|
-
function
|
|
3254
|
-
return
|
|
3252
|
+
const Kt = /* @__PURE__ */ new WeakMap(), qa = /* @__PURE__ */ new WeakMap();
|
|
3253
|
+
function qt(e) {
|
|
3254
|
+
return qa.get(e) || 1;
|
|
3255
3255
|
}
|
|
3256
3256
|
function Ic(e, t) {
|
|
3257
3257
|
return {
|
|
3258
3258
|
constTimeNegate: Mt,
|
|
3259
3259
|
hasPrecomputes(n) {
|
|
3260
|
-
return
|
|
3260
|
+
return qt(n) !== 1;
|
|
3261
3261
|
},
|
|
3262
3262
|
// non-const time multiplication ladder
|
|
3263
3263
|
unsafeLadder(n, r, a = e.ZERO) {
|
|
@@ -3325,22 +3325,22 @@ function Ic(e, t) {
|
|
|
3325
3325
|
return i;
|
|
3326
3326
|
},
|
|
3327
3327
|
getPrecomputes(n, r, a) {
|
|
3328
|
-
let i =
|
|
3329
|
-
return i || (i = this.precomputeWindow(r, n), n !== 1 &&
|
|
3328
|
+
let i = Kt.get(r);
|
|
3329
|
+
return i || (i = this.precomputeWindow(r, n), n !== 1 && Kt.set(r, a(i))), i;
|
|
3330
3330
|
},
|
|
3331
3331
|
wNAFCached(n, r, a) {
|
|
3332
|
-
const i =
|
|
3332
|
+
const i = qt(n);
|
|
3333
3333
|
return this.wNAF(i, this.getPrecomputes(i, n, a), r);
|
|
3334
3334
|
},
|
|
3335
3335
|
wNAFCachedUnsafe(n, r, a, i) {
|
|
3336
|
-
const u =
|
|
3336
|
+
const u = qt(n);
|
|
3337
3337
|
return u === 1 ? this.unsafeLadder(n, r, i) : this.wNAFUnsafe(u, this.getPrecomputes(u, n, a), r, i);
|
|
3338
3338
|
},
|
|
3339
3339
|
// We calculate precomputes for elliptic curve point multiplication
|
|
3340
3340
|
// using windowed method. This specifies window size and
|
|
3341
3341
|
// stores precomputed values. Usually only base point would be precomputed.
|
|
3342
3342
|
setWindowSize(n, r) {
|
|
3343
|
-
|
|
3343
|
+
Ka(r, t), qa.set(n, r), Kt.delete(n);
|
|
3344
3344
|
}
|
|
3345
3345
|
};
|
|
3346
3346
|
}
|
|
@@ -4036,9 +4036,9 @@ function Rc(e, t = {}) {
|
|
|
4036
4036
|
if (n && typeof e.yParity > "u")
|
|
4037
4037
|
throw new Lt({ signature: e });
|
|
4038
4038
|
if (e.r < 0n || e.r > hr)
|
|
4039
|
-
throw new
|
|
4039
|
+
throw new Kc({ value: e.r });
|
|
4040
4040
|
if (e.s < 0n || e.s > hr)
|
|
4041
|
-
throw new
|
|
4041
|
+
throw new qc({ value: e.s });
|
|
4042
4042
|
if (typeof e.yParity == "number" && e.yParity !== 0 && e.yParity !== 1)
|
|
4043
4043
|
throw new Pn({ value: e.yParity });
|
|
4044
4044
|
}
|
|
@@ -4114,7 +4114,7 @@ class Lt extends L {
|
|
|
4114
4114
|
});
|
|
4115
4115
|
}
|
|
4116
4116
|
}
|
|
4117
|
-
class
|
|
4117
|
+
class Kc extends L {
|
|
4118
4118
|
constructor({ value: t }) {
|
|
4119
4119
|
super(`Value \`${t}\` is an invalid r value. r must be a positive integer less than 2^256.`), Object.defineProperty(this, "name", {
|
|
4120
4120
|
enumerable: !0,
|
|
@@ -4124,7 +4124,7 @@ class qc extends L {
|
|
|
4124
4124
|
});
|
|
4125
4125
|
}
|
|
4126
4126
|
}
|
|
4127
|
-
class
|
|
4127
|
+
class qc extends L {
|
|
4128
4128
|
constructor({ value: t }) {
|
|
4129
4129
|
super(`Value \`${t}\` is an invalid s value. s must be a positive integer less than 2^256.`), Object.defineProperty(this, "name", {
|
|
4130
4130
|
enumerable: !0,
|
|
@@ -4665,7 +4665,7 @@ async function Iu(e) {
|
|
|
4665
4665
|
address: wi,
|
|
4666
4666
|
version: "0.6"
|
|
4667
4667
|
}, c = {
|
|
4668
|
-
abi:
|
|
4668
|
+
abi: Kr,
|
|
4669
4669
|
address: so
|
|
4670
4670
|
};
|
|
4671
4671
|
return yi({
|
|
@@ -5056,7 +5056,7 @@ async function Ya({ address: e, client: t, publicKey: n, factory: r, factoryData
|
|
|
5056
5056
|
address: e
|
|
5057
5057
|
}) && r && a) {
|
|
5058
5058
|
const c = Or({
|
|
5059
|
-
abi:
|
|
5059
|
+
abi: Kr,
|
|
5060
5060
|
data: a
|
|
5061
5061
|
});
|
|
5062
5062
|
if (c.functionName !== "createAccount")
|
|
@@ -5714,7 +5714,7 @@ class Bu extends ts {
|
|
|
5714
5714
|
async _request(n) {
|
|
5715
5715
|
var r;
|
|
5716
5716
|
try {
|
|
5717
|
-
if (
|
|
5717
|
+
if (Ks(n), !this.signer.isConnected)
|
|
5718
5718
|
switch (n.method) {
|
|
5719
5719
|
case "eth_requestAccounts": {
|
|
5720
5720
|
await this.signer.handshake({ method: "handshake" }), await un(), await this.signer.request({
|