@directcryptopay/sdk 0.2.3 → 0.3.0
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/README.md +51 -87
- package/dist/core/config.d.ts +9 -46
- package/dist/core/iframe.d.ts +16 -0
- package/dist/dcp-sdk.umd.js +1 -12811
- package/dist/dcp.d.ts +12 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.js +219 -2
- package/dist/types.d.ts +26 -164
- package/package.json +3 -13
- package/dist/ExchangeController-CPMQq6Q-.js +0 -217
- package/dist/HelpersUtil-DfMFC7Bf.js +0 -120
- package/dist/NavigationUtil-kj9LEOOd.js +0 -8
- package/dist/PhArrowCircleDown-lsK25DCk.js +0 -73
- package/dist/PhArrowClockwise-NeKHZ1co.js +0 -73
- package/dist/PhArrowDown-C9AkNvLs.js +0 -73
- package/dist/PhArrowLeft-RNfIQP1X.js +0 -73
- package/dist/PhArrowRight-DM1tna0G.js +0 -73
- package/dist/PhArrowSquareOut-S5XYbAZj.js +0 -73
- package/dist/PhArrowUp-DmktzOWy.js +0 -73
- package/dist/PhArrowUpRight-BkNeW_5i.js +0 -73
- package/dist/PhArrowsClockwise-CQ4pG76b.js +0 -73
- package/dist/PhArrowsDownUp-H6gxaNM6.js +0 -73
- package/dist/PhArrowsLeftRight-DZSsfMR6.js +0 -73
- package/dist/PhBank-4_9QzqIB.js +0 -73
- package/dist/PhBrowser-B-JSznId.js +0 -73
- package/dist/PhCaretDown-vV5oHMNi.js +0 -73
- package/dist/PhCaretLeft-BLo6Y_f4.js +0 -73
- package/dist/PhCaretRight-CqQN4TT3.js +0 -73
- package/dist/PhCaretUp-Df7UCAHy.js +0 -73
- package/dist/PhCheck-gtpfK4ed.js +0 -73
- package/dist/PhCircleHalf-Uq7dwDYw.js +0 -73
- package/dist/PhClock-SDCW-NmF.js +0 -73
- package/dist/PhCompass-B7hgtdx-.js +0 -73
- package/dist/PhCopy-BcnhyXCy.js +0 -73
- package/dist/PhCreditCard-BJjByVgu.js +0 -73
- package/dist/PhCurrencyDollar-B7ZXqXBy.js +0 -73
- package/dist/PhDesktop-B3VKPuJx.js +0 -73
- package/dist/PhDeviceMobile-Bnd0TYEH.js +0 -73
- package/dist/PhDotsThree-yyMWyZ-R.js +0 -73
- package/dist/PhEnvelope-67uzHbI9.js +0 -73
- package/dist/PhFunnelSimple-B-DCsloI.js +0 -73
- package/dist/PhGlobe-TMm_6qGk.js +0 -73
- package/dist/PhIdentificationCard-CePPD2xc.js +0 -73
- package/dist/PhImage-gY96WtHR.js +0 -73
- package/dist/PhInfo-DRQM_ZDP.js +0 -73
- package/dist/PhLightbulb-B0TxPfZ1.js +0 -73
- package/dist/PhMagnifyingGlass-B8si5_6W.js +0 -73
- package/dist/PhPaperPlaneRight-DVu5PLYd.js +0 -73
- package/dist/PhPlus-BfTsQnUz.js +0 -73
- package/dist/PhPower-CxYUGOWn.js +0 -73
- package/dist/PhPuzzlePiece-CQ4wh0gV.js +0 -73
- package/dist/PhQrCode-BuJ97NYJ.js +0 -73
- package/dist/PhQuestion-kJoP8Mja.js +0 -73
- package/dist/PhQuestionMark-C46ZkFpu.js +0 -73
- package/dist/PhSealCheck-Eh8jVqSN.js +0 -73
- package/dist/PhSignOut-jk97OSVt.js +0 -73
- package/dist/PhSpinner-CiYOhwMg.js +0 -73
- package/dist/PhTrash-pxerMqzd.js +0 -73
- package/dist/PhUser-BMg0VV4A.js +0 -73
- package/dist/PhVault-DYQvx5A-.js +0 -73
- package/dist/PhWarning-NLC5Mj87.js +0 -73
- package/dist/PhWarningCircle-Ch2jU9fA.js +0 -73
- package/dist/PhX-Bx4wpwm3.js +0 -73
- package/dist/SwapController-Cti0Cyxa.js +0 -457
- package/dist/ccip-CKZd2XJ7.js +0 -150
- package/dist/core/api.d.ts +0 -39
- package/dist/core/logic.d.ts +0 -2
- package/dist/core/wallet.d.ts +0 -55
- package/dist/data-capture-7D5CL385.js +0 -490
- package/dist/email-AmK0INbZ.js +0 -344
- package/dist/embedded-wallet-Pn0I_XLn.js +0 -820
- package/dist/features-x8XNprEe.js +0 -274
- package/dist/hashTypedData-B50-z0AA.js +0 -197
- package/dist/if-defined-CdZSZ6UL.js +0 -10
- package/dist/index-4ewUtPPp.js +0 -7981
- package/dist/index-51l86yqx.js +0 -276
- package/dist/index-B6K56LF_.js +0 -85
- package/dist/index-BAmv9PxJ.js +0 -257
- package/dist/index-BEswjY9r.js +0 -117
- package/dist/index-BSKRq56S.js +0 -355
- package/dist/index-BaygXQxx.js +0 -172
- package/dist/index-BcPxaHr5.js +0 -118
- package/dist/index-Bjt7nGaJ.js +0 -199
- package/dist/index-BkTSyAJb.js +0 -21991
- package/dist/index-Bmnl7l2U.js +0 -555
- package/dist/index-BvPvouSq.js +0 -56
- package/dist/index-C-6iznUO.js +0 -174
- package/dist/index-C1QEJL-2.js +0 -572
- package/dist/index-C4M5s_AM.js +0 -228
- package/dist/index-CEqcN8QP.js +0 -1175
- package/dist/index-CM3YaYca.js +0 -8189
- package/dist/index-CclBLA5r.js +0 -517
- package/dist/index-ChTxJOiF.js +0 -46
- package/dist/index-CmAv0Tzr.js +0 -86
- package/dist/index-CmvoKY4x.js +0 -125
- package/dist/index-D7PmdQ9B.js +0 -1750
- package/dist/index-D7k2Pc4e.js +0 -1083
- package/dist/index-D7lmgqUR.js +0 -153
- package/dist/index-DG_-qYze.js +0 -107
- package/dist/index-DHot9Fdb.js +0 -218
- package/dist/index-DV2LrPtU.js +0 -123
- package/dist/index-DYBaJQ2W.js +0 -65
- package/dist/index-D_8VUmn1.js +0 -41543
- package/dist/index-D_gLn3rT.js +0 -100
- package/dist/index-DqcVUSC9.js +0 -62
- package/dist/index-I7VDqINw.js +0 -128
- package/dist/index-Oz72I9VP.js +0 -209
- package/dist/index-UclsHkJ0.js +0 -118
- package/dist/index-X8zir_1j.js +0 -110
- package/dist/index-XvlWKGCu.js +0 -1281
- package/dist/index-dO97xPlt.js +0 -171
- package/dist/index-uBeF6OAB.js +0 -387
- package/dist/index-zeA_RiCV.js +0 -159
- package/dist/localBatchGatewayRequest-BUZHGdjw.js +0 -91
- package/dist/onramp-CdnBuF0r.js +0 -855
- package/dist/parseSignature-CcyTNGr4.js +0 -3304
- package/dist/pay-with-exchange-CSM6WCOV.js +0 -525
- package/dist/property-Bd8U3_QP.js +0 -618
- package/dist/receive-DooMu4Dx.js +0 -232
- package/dist/ref-CpgjXAw7.js +0 -107
- package/dist/send-3T7CyYic.js +0 -1166
- package/dist/socials-Dt-iHL17.js +0 -620
- package/dist/swaps-CjA9Es42.js +0 -1760
- package/dist/transactions-nRm9DVzn.js +0 -37
- package/dist/ui/Modal.d.ts +0 -9
- package/dist/ui/index.d.ts +0 -6
- package/dist/w3m-modal-NV25AXhM.js +0 -1706
package/dist/index-51l86yqx.js
DELETED
|
@@ -1,276 +0,0 @@
|
|
|
1
|
-
import { B as s, E as o, d as e, f as t, F as n, W as i, i as c, c as d, g as E, h as u, e as b, j as l, l as p, n as T, p as g, a as h, j as m, b as v, s as y, k as A, k as S, z as F } from "./parseSignature-CcyTNGr4.js";
|
|
2
|
-
import { A as R, B as f, D as C, E as x, F as B, G as N, H as P, J as D, K as U, L as k, M as w, N as H, O as L, P as M, Q as z, R as q, b3 as V, aE as j, aD as O, a1 as G, al as W, a2 as K, aF as Z, T as J, a8 as Q, aG as X, a3 as Y, a4 as _, a5 as $, C as aa, a6 as ra, a9 as sa, aa as oa, ab as ea, ac as ta, V as na, W as ia, aH as ca, am as da, ak as Ea, ao as ua, ap as ba, aq as la, aA as pa, ar as Ta, ag as ga, aI as ha, as as ma, at as va, X as ya, Y as Aa, I as Sa, a as Fa, b as Ia, a0 as Ra, Z as fa, ah as Ca, a7 as xa, bd as Ba, _ as Na, c as Pa, ai as Da, aJ as Ua, b5 as ka, d as wa, e as Ha, aK as La, f as Ma, aL as za, b6 as qa, g as Va, b7 as ja, h as Oa, aM as Ga, aN as Wa, an as Ka, aO as Za, aP as Ja, au as Qa, av as Xa, aw as Ya, aQ as _a, aR as $a, aS as ar, ad as rr, aT as sr, aU as or, aV as er, aB as tr, ae as nr, aj as ir, af as cr, S as dr, b4 as Er, aW as ur, aC as br, ax as lr, b8 as pr, b9 as Tr, ba as gr, aX as hr, ay as mr, aY as vr, aZ as yr, az as Ar, a_ as Sr, U as Fr, i as Ir, a$ as Rr, b0 as fr, $ as Cr, b1 as xr, bc as Br, b2 as Nr, bb as Pr, by as Dr, cr as Ur, cs as kr, ct as wr, cu as Hr, bs as Lr, bt as Mr, bV as zr, b_ as qr, bN as Vr, bO as jr, b$ as Or, bP as Gr, bQ as Wr, bo as Kr, bv as Zr, bu as Jr, bB as Qr, bC as Xr, bD as Yr, j as _r, k as $r, l as as, be as rs, bf as ss, bg as os, bh as es, c5 as ts, bz as ns, c8 as is, cb as cs, t as ds, u as Es, bi as us, bj as bs, bk as ls, o as ps, q as Ts, v as gs, x as hs, m as ms, c6 as vs, cy as ys, cz as As, c7 as Ss, c9 as Fs, cc as Is, cd as Rs, cA as fs, bl as Cs, bp as xs, bA as Bs, c4 as Ns, ci as Ps, cj as Ds, ck as Us, cj as ks, cv as ws, y as Hs, bR as Ls, bS as Ms, bW as zs, bT as qs, bU as Vs, n as js, bq as Os, br as Gs, bE as Ws, cf as Ks, w as Zs, r as Js, bX as Qs, c0 as Xs, bF as Ys, bG as _s, bH as $s, p as ao, bm as ro, cB as so, bn as oo, co as eo, cp as to, ce as no, cw as io, cx as co, cg as Eo, s as uo, bI as bo, bJ as lo, bK as po, bL as To, bY as go, c1 as ho, cq as mo, bw as vo, bx as yo, bZ as Ao, ch as So, ci as Fo, cj as Io, ch as Ro, ck as fo, cj as Co, c2 as xo, c3 as Bo, ca as No, bM as Po, q as Do, v as Uo, z as ko, cl as wo, cm as Ho, cn as Lo } from "./index-D_8VUmn1.js";
|
|
3
|
-
import { I as zo, a as qo, b as Vo, g as jo, c as Oo, h as Go, d as Wo, e as Ko, p as Zo, t as Jo, v as Qo } from "./hashTypedData-B50-z0AA.js";
|
|
4
|
-
import { d as Yo, e as _o, a as $o } from "./localBatchGatewayRequest-BUZHGdjw.js";
|
|
5
|
-
import { ccipRequest as re, ccipRequest as se, offchainLookup as oe, offchainLookupAbiItem as ee, offchainLookupSignature as te } from "./ccip-CKZd2XJ7.js";
|
|
6
|
-
export {
|
|
7
|
-
R as AbiConstructorNotFoundError,
|
|
8
|
-
f as AbiConstructorParamsNotFoundError,
|
|
9
|
-
C as AbiDecodingDataSizeTooSmallError,
|
|
10
|
-
x as AbiDecodingZeroDataError,
|
|
11
|
-
B as AbiEncodingArrayLengthMismatchError,
|
|
12
|
-
N as AbiEncodingBytesSizeMismatchError,
|
|
13
|
-
P as AbiEncodingLengthMismatchError,
|
|
14
|
-
D as AbiErrorInputsNotFoundError,
|
|
15
|
-
U as AbiErrorNotFoundError,
|
|
16
|
-
k as AbiErrorSignatureNotFoundError,
|
|
17
|
-
w as AbiEventNotFoundError,
|
|
18
|
-
H as AbiEventSignatureEmptyTopicsError,
|
|
19
|
-
L as AbiEventSignatureNotFoundError,
|
|
20
|
-
M as AbiFunctionNotFoundError,
|
|
21
|
-
z as AbiFunctionOutputsNotFoundError,
|
|
22
|
-
q as AbiFunctionSignatureNotFoundError,
|
|
23
|
-
V as AccountStateConflictError,
|
|
24
|
-
j as AtomicReadyWalletRejectedUpgradeError,
|
|
25
|
-
O as AtomicityNotSupportedError,
|
|
26
|
-
G as BaseError,
|
|
27
|
-
W as BaseFeeScalarError,
|
|
28
|
-
K as BlockNotFoundError,
|
|
29
|
-
s as BundleFailedError,
|
|
30
|
-
Z as BundleTooLargeError,
|
|
31
|
-
J as BytesSizeMismatchError,
|
|
32
|
-
Q as CallExecutionError,
|
|
33
|
-
X as ChainDisconnectedError,
|
|
34
|
-
Y as ChainDoesNotSupportContract,
|
|
35
|
-
_ as ChainMismatchError,
|
|
36
|
-
$ as ChainNotFoundError,
|
|
37
|
-
aa as CircularReferenceError,
|
|
38
|
-
ra as ClientChainNotConfiguredError,
|
|
39
|
-
sa as ContractFunctionExecutionError,
|
|
40
|
-
oa as ContractFunctionRevertedError,
|
|
41
|
-
ea as ContractFunctionZeroDataError,
|
|
42
|
-
ta as CounterfactualDeploymentFailedError,
|
|
43
|
-
na as DecodeLogDataMismatch,
|
|
44
|
-
ia as DecodeLogTopicsMismatch,
|
|
45
|
-
ca as DuplicateIdError,
|
|
46
|
-
da as Eip1559FeesNotSupportedError,
|
|
47
|
-
o as EnsAvatarInvalidNftUriError,
|
|
48
|
-
e as EnsAvatarUnsupportedNamespaceError,
|
|
49
|
-
t as EnsAvatarUriResolutionError,
|
|
50
|
-
Ea as EstimateGasExecutionError,
|
|
51
|
-
ua as ExecutionRevertedError,
|
|
52
|
-
ba as FeeCapTooHighError,
|
|
53
|
-
la as FeeCapTooLowError,
|
|
54
|
-
n as FilterTypeNotSupportedError,
|
|
55
|
-
pa as HttpRequestError,
|
|
56
|
-
Ta as InsufficientFundsError,
|
|
57
|
-
ga as IntegerOutOfRangeError,
|
|
58
|
-
ha as InternalRpcError,
|
|
59
|
-
ma as IntrinsicGasTooHighError,
|
|
60
|
-
va as IntrinsicGasTooLowError,
|
|
61
|
-
ya as InvalidAbiDecodingTypeError,
|
|
62
|
-
Aa as InvalidAbiEncodingTypeError,
|
|
63
|
-
Sa as InvalidAbiItemError,
|
|
64
|
-
Fa as InvalidAbiParametersError,
|
|
65
|
-
Ia as InvalidAbiTypeParameterError,
|
|
66
|
-
Ra as InvalidAddressError,
|
|
67
|
-
fa as InvalidArrayError,
|
|
68
|
-
Ca as InvalidBytesBooleanError,
|
|
69
|
-
xa as InvalidChainIdError,
|
|
70
|
-
Ba as InvalidDecimalNumberError,
|
|
71
|
-
Na as InvalidDefinitionTypeError,
|
|
72
|
-
zo as InvalidDomainError,
|
|
73
|
-
Pa as InvalidFunctionModifierError,
|
|
74
|
-
Da as InvalidHexBooleanError,
|
|
75
|
-
Ua as InvalidInputRpcError,
|
|
76
|
-
ka as InvalidLegacyVError,
|
|
77
|
-
wa as InvalidModifierError,
|
|
78
|
-
Ha as InvalidParameterError,
|
|
79
|
-
La as InvalidParamsRpcError,
|
|
80
|
-
Ma as InvalidParenthesisError,
|
|
81
|
-
qo as InvalidPrimaryTypeError,
|
|
82
|
-
za as InvalidRequestRpcError,
|
|
83
|
-
qa as InvalidSerializableTransactionError,
|
|
84
|
-
Va as InvalidSignatureError,
|
|
85
|
-
ja as InvalidStorageKeySizeError,
|
|
86
|
-
Oa as InvalidStructSignatureError,
|
|
87
|
-
Vo as InvalidStructTypeError,
|
|
88
|
-
Ga as JsonRpcVersionUnsupportedError,
|
|
89
|
-
Wa as LimitExceededRpcError,
|
|
90
|
-
Ka as MaxFeePerGasTooLowError,
|
|
91
|
-
Za as MethodNotFoundRpcError,
|
|
92
|
-
Ja as MethodNotSupportedRpcError,
|
|
93
|
-
Qa as NonceMaxValueError,
|
|
94
|
-
Xa as NonceTooHighError,
|
|
95
|
-
Ya as NonceTooLowError,
|
|
96
|
-
_a as ParseRpcError,
|
|
97
|
-
$a as ProviderDisconnectedError,
|
|
98
|
-
ar as ProviderRpcError,
|
|
99
|
-
rr as RawContractError,
|
|
100
|
-
sr as ResourceNotFoundRpcError,
|
|
101
|
-
or as ResourceUnavailableRpcError,
|
|
102
|
-
er as RpcError,
|
|
103
|
-
tr as RpcRequestError,
|
|
104
|
-
nr as SizeExceedsPaddingSizeError,
|
|
105
|
-
ir as SizeOverflowError,
|
|
106
|
-
cr as SliceOffsetOutOfBoundsError,
|
|
107
|
-
dr as SolidityProtectedKeywordError,
|
|
108
|
-
Er as StateAssignmentConflictError,
|
|
109
|
-
ur as SwitchChainError,
|
|
110
|
-
br as TimeoutError,
|
|
111
|
-
lr as TipAboveFeeCapError,
|
|
112
|
-
pr as TransactionExecutionError,
|
|
113
|
-
Tr as TransactionNotFoundError,
|
|
114
|
-
gr as TransactionReceiptNotFoundError,
|
|
115
|
-
hr as TransactionRejectedRpcError,
|
|
116
|
-
mr as TransactionTypeNotSupportedError,
|
|
117
|
-
vr as UnauthorizedProviderError,
|
|
118
|
-
yr as UnknownBundleIdError,
|
|
119
|
-
Ar as UnknownNodeError,
|
|
120
|
-
Sr as UnknownRpcError,
|
|
121
|
-
Fr as UnknownSignatureError,
|
|
122
|
-
Ir as UnknownTypeError,
|
|
123
|
-
Rr as UnsupportedChainIdError,
|
|
124
|
-
fr as UnsupportedNonOptionalCapabilityError,
|
|
125
|
-
Cr as UnsupportedPackedAbiType,
|
|
126
|
-
xr as UnsupportedProviderMethodError,
|
|
127
|
-
Br as UrlRequiredError,
|
|
128
|
-
Nr as UserRejectedRequestError,
|
|
129
|
-
i as WaitForCallsStatusTimeoutError,
|
|
130
|
-
Pr as WaitForTransactionReceiptTimeoutError,
|
|
131
|
-
Dr as assertCurrentChain,
|
|
132
|
-
Ur as assertRequest,
|
|
133
|
-
kr as assertTransactionEIP1559,
|
|
134
|
-
wr as assertTransactionEIP2930,
|
|
135
|
-
Hr as assertTransactionLegacy,
|
|
136
|
-
Lr as blobsToCommitments,
|
|
137
|
-
Mr as blobsToProofs,
|
|
138
|
-
zr as boolToBytes,
|
|
139
|
-
qr as boolToHex,
|
|
140
|
-
Vr as bytesToBigInt,
|
|
141
|
-
jr as bytesToBool,
|
|
142
|
-
Or as bytesToHex,
|
|
143
|
-
Gr as bytesToNumber,
|
|
144
|
-
Wr as bytesToString,
|
|
145
|
-
re as ccipFetch,
|
|
146
|
-
se as ccipRequest,
|
|
147
|
-
Kr as checksumAddress,
|
|
148
|
-
Zr as commitmentToVersionedHash,
|
|
149
|
-
Jr as commitmentsToVersionedHashes,
|
|
150
|
-
Qr as concat,
|
|
151
|
-
Xr as concatBytes,
|
|
152
|
-
Yr as concatHex,
|
|
153
|
-
_r as createClient,
|
|
154
|
-
c as createNonceManager,
|
|
155
|
-
d as createPublicClient,
|
|
156
|
-
$r as createTransport,
|
|
157
|
-
as as custom,
|
|
158
|
-
rs as decodeAbiParameters,
|
|
159
|
-
ss as decodeErrorResult,
|
|
160
|
-
os as decodeEventLog,
|
|
161
|
-
Yo as decodeFunctionData,
|
|
162
|
-
es as decodeFunctionResult,
|
|
163
|
-
ts as defineBlock,
|
|
164
|
-
ns as defineChain,
|
|
165
|
-
is as defineTransaction,
|
|
166
|
-
cs as defineTransactionReceipt,
|
|
167
|
-
ds as deploylessCallViaBytecodeBytecode,
|
|
168
|
-
Es as deploylessCallViaFactoryBytecode,
|
|
169
|
-
us as encodeAbiParameters,
|
|
170
|
-
bs as encodeDeployData,
|
|
171
|
-
_o as encodeErrorResult,
|
|
172
|
-
E as encodeEventTopics,
|
|
173
|
-
ls as encodeFunctionData,
|
|
174
|
-
$o as encodeFunctionResult,
|
|
175
|
-
u as encodePacked,
|
|
176
|
-
ps as erc20Abi,
|
|
177
|
-
Ts as erc6492SignatureValidatorAbi,
|
|
178
|
-
gs as erc6492SignatureValidatorByteCode,
|
|
179
|
-
b as ethAddress,
|
|
180
|
-
hs as etherUnits,
|
|
181
|
-
ms as fallback,
|
|
182
|
-
vs as formatBlock,
|
|
183
|
-
ys as formatEther,
|
|
184
|
-
As as formatGwei,
|
|
185
|
-
Ss as formatLog,
|
|
186
|
-
Fs as formatTransaction,
|
|
187
|
-
Is as formatTransactionReceipt,
|
|
188
|
-
Rs as formatTransactionRequest,
|
|
189
|
-
fs as formatUnits,
|
|
190
|
-
Cs as getAbiItem,
|
|
191
|
-
xs as getAddress,
|
|
192
|
-
Bs as getChainContractAddress,
|
|
193
|
-
Ns as getContractError,
|
|
194
|
-
Ps as getEventSelector,
|
|
195
|
-
Ds as getEventSignature,
|
|
196
|
-
Us as getFunctionSelector,
|
|
197
|
-
ks as getFunctionSignature,
|
|
198
|
-
ws as getTransactionType,
|
|
199
|
-
jo as getTypesForEIP712Domain,
|
|
200
|
-
Hs as gweiUnits,
|
|
201
|
-
Oo as hashDomain,
|
|
202
|
-
Go as hashMessage,
|
|
203
|
-
Wo as hashStruct,
|
|
204
|
-
Ko as hashTypedData,
|
|
205
|
-
Ls as hexToBigInt,
|
|
206
|
-
Ms as hexToBool,
|
|
207
|
-
zs as hexToBytes,
|
|
208
|
-
qs as hexToNumber,
|
|
209
|
-
l as hexToSignature,
|
|
210
|
-
Vs as hexToString,
|
|
211
|
-
js as http,
|
|
212
|
-
Os as isAddress,
|
|
213
|
-
Gs as isAddressEqual,
|
|
214
|
-
Ws as isHex,
|
|
215
|
-
Ks as keccak256,
|
|
216
|
-
p as labelhash,
|
|
217
|
-
Zs as maxUint256,
|
|
218
|
-
Js as multicall3Abi,
|
|
219
|
-
T as namehash,
|
|
220
|
-
Qs as numberToBytes,
|
|
221
|
-
Xs as numberToHex,
|
|
222
|
-
oe as offchainLookup,
|
|
223
|
-
ee as offchainLookupAbiItem,
|
|
224
|
-
te as offchainLookupSignature,
|
|
225
|
-
Ys as pad,
|
|
226
|
-
_s as padBytes,
|
|
227
|
-
$s as padHex,
|
|
228
|
-
ao as parseAbi,
|
|
229
|
-
g as parseAbiItem,
|
|
230
|
-
h as parseAbiParameters,
|
|
231
|
-
ro as parseEventLogs,
|
|
232
|
-
m as parseSignature,
|
|
233
|
-
so as parseUnits,
|
|
234
|
-
oo as prepareEncodeFunctionData,
|
|
235
|
-
Zo as presignMessagePrefix,
|
|
236
|
-
v as publicActions,
|
|
237
|
-
eo as recoverAddress,
|
|
238
|
-
to as recoverPublicKey,
|
|
239
|
-
no as rpcTransactionType,
|
|
240
|
-
io as serializeAccessList,
|
|
241
|
-
y as serializeErc6492Signature,
|
|
242
|
-
A as serializeSignature,
|
|
243
|
-
co as serializeTransaction,
|
|
244
|
-
Eo as sha256,
|
|
245
|
-
uo as shouldThrow,
|
|
246
|
-
S as signatureToHex,
|
|
247
|
-
bo as size,
|
|
248
|
-
lo as slice,
|
|
249
|
-
po as sliceBytes,
|
|
250
|
-
To as sliceHex,
|
|
251
|
-
go as stringToBytes,
|
|
252
|
-
ho as stringToHex,
|
|
253
|
-
mo as stringify,
|
|
254
|
-
vo as toBlobSidecars,
|
|
255
|
-
yo as toBlobs,
|
|
256
|
-
Ao as toBytes,
|
|
257
|
-
So as toEventHash,
|
|
258
|
-
Fo as toEventSelector,
|
|
259
|
-
Io as toEventSignature,
|
|
260
|
-
Ro as toFunctionHash,
|
|
261
|
-
fo as toFunctionSelector,
|
|
262
|
-
Co as toFunctionSignature,
|
|
263
|
-
xo as toHex,
|
|
264
|
-
Jo as toPrefixedMessage,
|
|
265
|
-
Bo as toRlp,
|
|
266
|
-
No as transactionType,
|
|
267
|
-
Po as trim,
|
|
268
|
-
Do as universalSignatureValidatorAbi,
|
|
269
|
-
Uo as universalSignatureValidatorByteCode,
|
|
270
|
-
Qo as validateTypedData,
|
|
271
|
-
ko as weiUnits,
|
|
272
|
-
wo as withCache,
|
|
273
|
-
Ho as withRetry,
|
|
274
|
-
Lo as withTimeout,
|
|
275
|
-
F as zeroAddress
|
|
276
|
-
};
|
package/dist/index-B6K56LF_.js
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { c_ as p, cX as u, d0 as f, df as g, cY as a } from "./index-D_8VUmn1.js";
|
|
2
|
-
import { n as b, r as m, c as w } from "./index-CEqcN8QP.js";
|
|
3
|
-
import { T as l } from "./index-zeA_RiCV.js";
|
|
4
|
-
const C = {
|
|
5
|
-
interpolate(r, e, t) {
|
|
6
|
-
if (r.length !== 2 || e.length !== 2)
|
|
7
|
-
throw new Error("inputRange and outputRange must be an array of length 2");
|
|
8
|
-
const n = r[0] || 0, i = r[1] || 0, o = e[0] || 0, s = e[1] || 0;
|
|
9
|
-
return t < n ? o : t > i ? s : (s - o) / (i - n) * (t - n) + o;
|
|
10
|
-
}
|
|
11
|
-
}, v = p`
|
|
12
|
-
:host {
|
|
13
|
-
width: 100%;
|
|
14
|
-
display: block;
|
|
15
|
-
}
|
|
16
|
-
`;
|
|
17
|
-
var d = function(r, e, t, n) {
|
|
18
|
-
var i = arguments.length, o = i < 3 ? e : n === null ? n = Object.getOwnPropertyDescriptor(e, t) : n, s;
|
|
19
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(r, e, t, n);
|
|
20
|
-
else for (var h = r.length - 1; h >= 0; h--) (s = r[h]) && (o = (i < 3 ? s(o) : i > 3 ? s(e, t, o) : s(e, t)) || o);
|
|
21
|
-
return i > 3 && o && Object.defineProperty(e, t, o), o;
|
|
22
|
-
};
|
|
23
|
-
let c = class extends u {
|
|
24
|
-
constructor() {
|
|
25
|
-
super(), this.unsubscribe = [], this.text = "", this.open = l.state.open, this.unsubscribe.push(f.subscribeKey("view", () => {
|
|
26
|
-
l.hide();
|
|
27
|
-
}), g.subscribeKey("open", (e) => {
|
|
28
|
-
e || l.hide();
|
|
29
|
-
}), l.subscribeKey("open", (e) => {
|
|
30
|
-
this.open = e;
|
|
31
|
-
}));
|
|
32
|
-
}
|
|
33
|
-
disconnectedCallback() {
|
|
34
|
-
this.unsubscribe.forEach((e) => e()), l.hide();
|
|
35
|
-
}
|
|
36
|
-
render() {
|
|
37
|
-
return a`
|
|
38
|
-
<div
|
|
39
|
-
@pointermove=${this.onMouseEnter.bind(this)}
|
|
40
|
-
@pointerleave=${this.onMouseLeave.bind(this)}
|
|
41
|
-
>
|
|
42
|
-
${this.renderChildren()}
|
|
43
|
-
</div>
|
|
44
|
-
`;
|
|
45
|
-
}
|
|
46
|
-
renderChildren() {
|
|
47
|
-
return a`<slot></slot> `;
|
|
48
|
-
}
|
|
49
|
-
onMouseEnter() {
|
|
50
|
-
const e = this.getBoundingClientRect();
|
|
51
|
-
if (!this.open) {
|
|
52
|
-
const t = document.querySelector("w3m-modal"), n = {
|
|
53
|
-
width: e.width,
|
|
54
|
-
height: e.height,
|
|
55
|
-
left: e.left,
|
|
56
|
-
top: e.top
|
|
57
|
-
};
|
|
58
|
-
if (t) {
|
|
59
|
-
const i = t.getBoundingClientRect();
|
|
60
|
-
n.left = e.left - (window.innerWidth - i.width) / 2, n.top = e.top - (window.innerHeight - i.height) / 2;
|
|
61
|
-
}
|
|
62
|
-
l.showTooltip({
|
|
63
|
-
message: this.text,
|
|
64
|
-
triggerRect: n,
|
|
65
|
-
variant: "shade"
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
onMouseLeave(e) {
|
|
70
|
-
this.contains(e.relatedTarget) || l.hide();
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
c.styles = [v];
|
|
74
|
-
d([
|
|
75
|
-
b()
|
|
76
|
-
], c.prototype, "text", void 0);
|
|
77
|
-
d([
|
|
78
|
-
m()
|
|
79
|
-
], c.prototype, "open", void 0);
|
|
80
|
-
c = d([
|
|
81
|
-
w("w3m-tooltip-trigger")
|
|
82
|
-
], c);
|
|
83
|
-
export {
|
|
84
|
-
C as M
|
|
85
|
-
};
|
package/dist/index-BAmv9PxJ.js
DELETED
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
import { cC as g, cR as C, cS as w, cU as k, cV as $, cX as m, cY as d, cM as l } from "./index-D_8VUmn1.js";
|
|
2
|
-
import { n as x, c as f, r as v } from "./index-CEqcN8QP.js";
|
|
3
|
-
import { o as z } from "./if-defined-CdZSZ6UL.js";
|
|
4
|
-
import { e as _, n as E } from "./ref-CpgjXAw7.js";
|
|
5
|
-
const h = g({
|
|
6
|
-
isLegalCheckboxChecked: !1
|
|
7
|
-
}), u = {
|
|
8
|
-
state: h,
|
|
9
|
-
subscribe(e) {
|
|
10
|
-
return w(h, () => e(h));
|
|
11
|
-
},
|
|
12
|
-
subscribeKey(e, t) {
|
|
13
|
-
return C(h, e, t);
|
|
14
|
-
},
|
|
15
|
-
setIsLegalCheckboxChecked(e) {
|
|
16
|
-
h.isLegalCheckboxChecked = e;
|
|
17
|
-
}
|
|
18
|
-
}, O = k`
|
|
19
|
-
label {
|
|
20
|
-
display: inline-flex;
|
|
21
|
-
align-items: center;
|
|
22
|
-
cursor: pointer;
|
|
23
|
-
user-select: none;
|
|
24
|
-
column-gap: ${({ spacing: e }) => e[2]};
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
label > input[type='checkbox'] {
|
|
28
|
-
height: 0;
|
|
29
|
-
width: 0;
|
|
30
|
-
opacity: 0;
|
|
31
|
-
position: absolute;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
label > span {
|
|
35
|
-
display: flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
justify-content: center;
|
|
38
|
-
height: 100%;
|
|
39
|
-
width: 100%;
|
|
40
|
-
border: 1px solid ${({ colors: e }) => e.neutrals400};
|
|
41
|
-
color: ${({ colors: e }) => e.white};
|
|
42
|
-
background-color: transparent;
|
|
43
|
-
will-change: border-color, background-color;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
label > span > wui-icon {
|
|
47
|
-
opacity: 0;
|
|
48
|
-
will-change: opacity;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
label > input[type='checkbox']:checked + span > wui-icon {
|
|
52
|
-
color: ${({ colors: e }) => e.white};
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
label > input[type='checkbox']:not(:checked) > span > wui-icon {
|
|
56
|
-
color: ${({ colors: e }) => e.neutrals900};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
label > input[type='checkbox']:checked + span > wui-icon {
|
|
60
|
-
opacity: 1;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/* -- Sizes --------------------------------------------------- */
|
|
64
|
-
label[data-size='lg'] > span {
|
|
65
|
-
width: 24px;
|
|
66
|
-
height: 24px;
|
|
67
|
-
min-width: 24px;
|
|
68
|
-
min-height: 24px;
|
|
69
|
-
border-radius: ${({ borderRadius: e }) => e[10]};
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
label[data-size='md'] > span {
|
|
73
|
-
width: 20px;
|
|
74
|
-
height: 20px;
|
|
75
|
-
min-width: 20px;
|
|
76
|
-
min-height: 20px;
|
|
77
|
-
border-radius: ${({ borderRadius: e }) => e[2]};
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
label[data-size='sm'] > span {
|
|
81
|
-
width: 16px;
|
|
82
|
-
height: 16px;
|
|
83
|
-
min-width: 16px;
|
|
84
|
-
min-height: 16px;
|
|
85
|
-
border-radius: ${({ borderRadius: e }) => e[1]};
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/* -- Focus states --------------------------------------------------- */
|
|
89
|
-
label > input[type='checkbox']:focus-visible + span,
|
|
90
|
-
label > input[type='checkbox']:focus + span {
|
|
91
|
-
border: 1px solid ${({ tokens: e }) => e.core.borderAccentPrimary};
|
|
92
|
-
box-shadow: 0px 0px 0px 4px rgba(9, 136, 240, 0.2);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/* -- Checked states --------------------------------------------------- */
|
|
96
|
-
label > input[type='checkbox']:checked + span {
|
|
97
|
-
background-color: ${({ tokens: e }) => e.core.iconAccentPrimary};
|
|
98
|
-
border: 1px solid transparent;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/* -- Hover states --------------------------------------------------- */
|
|
102
|
-
input[type='checkbox']:not(:checked):not(:disabled) + span:hover {
|
|
103
|
-
border: 1px solid ${({ colors: e }) => e.neutrals700};
|
|
104
|
-
background-color: ${({ colors: e }) => e.neutrals800};
|
|
105
|
-
box-shadow: none;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
input[type='checkbox']:checked:not(:disabled) + span:hover {
|
|
109
|
-
border: 1px solid transparent;
|
|
110
|
-
background-color: ${({ colors: e }) => e.accent080};
|
|
111
|
-
box-shadow: none;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
/* -- Disabled state --------------------------------------------------- */
|
|
115
|
-
label > input[type='checkbox']:checked:disabled + span {
|
|
116
|
-
border: 1px solid transparent;
|
|
117
|
-
opacity: 0.3;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
label > input[type='checkbox']:not(:checked):disabled + span {
|
|
121
|
-
border: 1px solid ${({ colors: e }) => e.neutrals700};
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
label:has(input[type='checkbox']:disabled) {
|
|
125
|
-
cursor: auto;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
label > input[type='checkbox']:disabled + span {
|
|
129
|
-
cursor: not-allowed;
|
|
130
|
-
}
|
|
131
|
-
`;
|
|
132
|
-
var b = function(e, t, o, s) {
|
|
133
|
-
var n = arguments.length, c = n < 3 ? t : s === null ? s = Object.getOwnPropertyDescriptor(t, o) : s, i;
|
|
134
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") c = Reflect.decorate(e, t, o, s);
|
|
135
|
-
else for (var r = e.length - 1; r >= 0; r--) (i = e[r]) && (c = (n < 3 ? i(c) : n > 3 ? i(t, o, c) : i(t, o)) || c);
|
|
136
|
-
return n > 3 && c && Object.defineProperty(t, o, c), c;
|
|
137
|
-
};
|
|
138
|
-
const R = {
|
|
139
|
-
lg: "md",
|
|
140
|
-
md: "sm",
|
|
141
|
-
sm: "sm"
|
|
142
|
-
};
|
|
143
|
-
let a = class extends m {
|
|
144
|
-
constructor() {
|
|
145
|
-
super(...arguments), this.inputElementRef = _(), this.checked = void 0, this.disabled = !1, this.size = "md";
|
|
146
|
-
}
|
|
147
|
-
render() {
|
|
148
|
-
const t = R[this.size];
|
|
149
|
-
return d`
|
|
150
|
-
<label data-size=${this.size}>
|
|
151
|
-
<input
|
|
152
|
-
${E(this.inputElementRef)}
|
|
153
|
-
?checked=${z(this.checked)}
|
|
154
|
-
?disabled=${this.disabled}
|
|
155
|
-
type="checkbox"
|
|
156
|
-
@change=${this.dispatchChangeEvent}
|
|
157
|
-
/>
|
|
158
|
-
<span>
|
|
159
|
-
<wui-icon name="checkmarkBold" size=${t}></wui-icon>
|
|
160
|
-
</span>
|
|
161
|
-
<slot></slot>
|
|
162
|
-
</label>
|
|
163
|
-
`;
|
|
164
|
-
}
|
|
165
|
-
dispatchChangeEvent() {
|
|
166
|
-
var t;
|
|
167
|
-
this.dispatchEvent(new CustomEvent("checkboxChange", {
|
|
168
|
-
detail: (t = this.inputElementRef.value) == null ? void 0 : t.checked,
|
|
169
|
-
bubbles: !0,
|
|
170
|
-
composed: !0
|
|
171
|
-
}));
|
|
172
|
-
}
|
|
173
|
-
};
|
|
174
|
-
a.styles = [$, O];
|
|
175
|
-
b([
|
|
176
|
-
x({ type: Boolean })
|
|
177
|
-
], a.prototype, "checked", void 0);
|
|
178
|
-
b([
|
|
179
|
-
x({ type: Boolean })
|
|
180
|
-
], a.prototype, "disabled", void 0);
|
|
181
|
-
b([
|
|
182
|
-
x()
|
|
183
|
-
], a.prototype, "size", void 0);
|
|
184
|
-
a = b([
|
|
185
|
-
f("wui-checkbox")
|
|
186
|
-
], a);
|
|
187
|
-
const P = k`
|
|
188
|
-
:host {
|
|
189
|
-
display: flex;
|
|
190
|
-
align-items: center;
|
|
191
|
-
justify-content: center;
|
|
192
|
-
}
|
|
193
|
-
wui-checkbox {
|
|
194
|
-
padding: ${({ spacing: e }) => e[3]};
|
|
195
|
-
}
|
|
196
|
-
a {
|
|
197
|
-
text-decoration: none;
|
|
198
|
-
color: ${({ tokens: e }) => e.theme.textSecondary};
|
|
199
|
-
font-weight: 500;
|
|
200
|
-
}
|
|
201
|
-
`;
|
|
202
|
-
var y = function(e, t, o, s) {
|
|
203
|
-
var n = arguments.length, c = n < 3 ? t : s === null ? s = Object.getOwnPropertyDescriptor(t, o) : s, i;
|
|
204
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") c = Reflect.decorate(e, t, o, s);
|
|
205
|
-
else for (var r = e.length - 1; r >= 0; r--) (i = e[r]) && (c = (n < 3 ? i(c) : n > 3 ? i(t, o, c) : i(t, o)) || c);
|
|
206
|
-
return n > 3 && c && Object.defineProperty(t, o, c), c;
|
|
207
|
-
};
|
|
208
|
-
let p = class extends m {
|
|
209
|
-
constructor() {
|
|
210
|
-
super(), this.unsubscribe = [], this.checked = u.state.isLegalCheckboxChecked, this.unsubscribe.push(u.subscribeKey("isLegalCheckboxChecked", (t) => {
|
|
211
|
-
this.checked = t;
|
|
212
|
-
}));
|
|
213
|
-
}
|
|
214
|
-
disconnectedCallback() {
|
|
215
|
-
this.unsubscribe.forEach((t) => t());
|
|
216
|
-
}
|
|
217
|
-
render() {
|
|
218
|
-
var n;
|
|
219
|
-
const { termsConditionsUrl: t, privacyPolicyUrl: o } = l.state, s = (n = l.state.features) == null ? void 0 : n.legalCheckbox;
|
|
220
|
-
return !t && !o || !s ? null : d`
|
|
221
|
-
<wui-checkbox
|
|
222
|
-
?checked=${this.checked}
|
|
223
|
-
@checkboxChange=${this.onCheckboxChange.bind(this)}
|
|
224
|
-
data-testid="wui-checkbox"
|
|
225
|
-
>
|
|
226
|
-
<wui-text color="secondary" variant="sm-regular" align="left">
|
|
227
|
-
I agree to our ${this.termsTemplate()} ${this.andTemplate()} ${this.privacyTemplate()}
|
|
228
|
-
</wui-text>
|
|
229
|
-
</wui-checkbox>
|
|
230
|
-
`;
|
|
231
|
-
}
|
|
232
|
-
andTemplate() {
|
|
233
|
-
const { termsConditionsUrl: t, privacyPolicyUrl: o } = l.state;
|
|
234
|
-
return t && o ? "and" : "";
|
|
235
|
-
}
|
|
236
|
-
termsTemplate() {
|
|
237
|
-
const { termsConditionsUrl: t } = l.state;
|
|
238
|
-
return t ? d`<a rel="noreferrer" target="_blank" href=${t}>terms of service</a>` : null;
|
|
239
|
-
}
|
|
240
|
-
privacyTemplate() {
|
|
241
|
-
const { privacyPolicyUrl: t } = l.state;
|
|
242
|
-
return t ? d`<a rel="noreferrer" target="_blank" href=${t}>privacy policy</a>` : null;
|
|
243
|
-
}
|
|
244
|
-
onCheckboxChange() {
|
|
245
|
-
u.setIsLegalCheckboxChecked(!this.checked);
|
|
246
|
-
}
|
|
247
|
-
};
|
|
248
|
-
p.styles = [P];
|
|
249
|
-
y([
|
|
250
|
-
v()
|
|
251
|
-
], p.prototype, "checked", void 0);
|
|
252
|
-
p = y([
|
|
253
|
-
f("w3m-legal-checkbox")
|
|
254
|
-
], p);
|
|
255
|
-
export {
|
|
256
|
-
u as O
|
|
257
|
-
};
|