@prohetamine/redstone 0.0.1
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/PhArrowCircleDown-BR-zH4LC.js +14 -0
- package/dist/PhArrowCircleDown-Sb38khBy.mjs +73 -0
- package/dist/PhArrowClockwise-BE5j9P0Z.mjs +73 -0
- package/dist/PhArrowClockwise-BRaehQGe.js +14 -0
- package/dist/PhArrowDown-B_WmmmY9.js +14 -0
- package/dist/PhArrowDown-CFEyR2dR.mjs +73 -0
- package/dist/PhArrowLeft-CYfU7NZj.mjs +73 -0
- package/dist/PhArrowLeft-CkEd70hm.js +14 -0
- package/dist/PhArrowRight-C07Qkx86.js +14 -0
- package/dist/PhArrowRight-EermNu0V.mjs +73 -0
- package/dist/PhArrowSquareOut-BjTBfzOP.js +14 -0
- package/dist/PhArrowSquareOut-DZwTtw54.mjs +73 -0
- package/dist/PhArrowUp-DB4CCSss.js +14 -0
- package/dist/PhArrowUp-xTpLFQkg.mjs +73 -0
- package/dist/PhArrowUpRight-CQbvn6NO.mjs +73 -0
- package/dist/PhArrowUpRight-GpCIMsAh.js +14 -0
- package/dist/PhArrowsClockwise-BgcIUg-Z.js +14 -0
- package/dist/PhArrowsClockwise-DnUYZTVx.mjs +73 -0
- package/dist/PhArrowsDownUp-C8KXUqtu.js +14 -0
- package/dist/PhArrowsDownUp-DgoprEe2.mjs +73 -0
- package/dist/PhArrowsLeftRight-CahChzCj.js +14 -0
- package/dist/PhArrowsLeftRight-FD4AZiLh.mjs +73 -0
- package/dist/PhBank-DIqIL4x_.js +14 -0
- package/dist/PhBank-DbQOQ9zJ.mjs +73 -0
- package/dist/PhBrowser-BCBXK2IM.mjs +73 -0
- package/dist/PhBrowser-laCKtn7T.js +14 -0
- package/dist/PhCaretDown-CnjP-QjZ.mjs +73 -0
- package/dist/PhCaretDown-DDe42xDU.js +14 -0
- package/dist/PhCaretLeft-Cskc5OY9.js +14 -0
- package/dist/PhCaretLeft-DkuXxjf_.mjs +73 -0
- package/dist/PhCaretRight-CBWpghxt.mjs +73 -0
- package/dist/PhCaretRight-DNgI5w_B.js +14 -0
- package/dist/PhCaretUp-CQ-OztBV.mjs +73 -0
- package/dist/PhCaretUp-CUZ4g_Me.js +14 -0
- package/dist/PhCheck-BVV_Dwfo.js +14 -0
- package/dist/PhCheck-t515emYS.mjs +73 -0
- package/dist/PhCircleHalf-BuQTmrKW.mjs +73 -0
- package/dist/PhCircleHalf-DDC7rige.js +14 -0
- package/dist/PhClock-BqynEKWl.js +14 -0
- package/dist/PhClock-D6XkTmM_.mjs +73 -0
- package/dist/PhCompass-2QeeX5Ad.mjs +73 -0
- package/dist/PhCompass-BsuJwXAE.js +14 -0
- package/dist/PhCopy-CO34-_xD.mjs +73 -0
- package/dist/PhCopy-MVqtRS6X.js +14 -0
- package/dist/PhCreditCard-Dq4kdjCw.js +14 -0
- package/dist/PhCreditCard-bfnqYflD.mjs +73 -0
- package/dist/PhCurrencyDollar-6k8UWxal.js +14 -0
- package/dist/PhCurrencyDollar-BekVYPtC.mjs +73 -0
- package/dist/PhDesktop-BkNzf3rT.mjs +73 -0
- package/dist/PhDesktop-CfsXQ0vC.js +14 -0
- package/dist/PhDeviceMobile-BT3Mg_b0.mjs +73 -0
- package/dist/PhDeviceMobile-BnrrDrwf.js +14 -0
- package/dist/PhDotsThree-6LRvhAcL.js +14 -0
- package/dist/PhDotsThree-kpf2OKxJ.mjs +73 -0
- package/dist/PhEnvelope-CHsfC2e0.js +14 -0
- package/dist/PhEnvelope-UFKpKtwf.mjs +73 -0
- package/dist/PhFunnelSimple-CdAqSIhK.mjs +73 -0
- package/dist/PhFunnelSimple-JAk7X9Wo.js +14 -0
- package/dist/PhGlobe-B3RYXl8h.mjs +73 -0
- package/dist/PhGlobe-Tfs4MfpG.js +14 -0
- package/dist/PhIdentificationCard-Dqmd6eY1.js +14 -0
- package/dist/PhIdentificationCard-rSq59Czm.mjs +73 -0
- package/dist/PhImage-aEryzfCi.js +14 -0
- package/dist/PhImage-ynsEnFd_.mjs +73 -0
- package/dist/PhInfo-B7lsWl6m.mjs +73 -0
- package/dist/PhInfo-D6oUrWpA.js +14 -0
- package/dist/PhLightbulb-FQDaMMqu.mjs +73 -0
- package/dist/PhLightbulb-qbEduhPa.js +14 -0
- package/dist/PhMagnifyingGlass-COdRH2k5.js +14 -0
- package/dist/PhMagnifyingGlass-_NXk13-0.mjs +73 -0
- package/dist/PhPaperPlaneRight-BYi7SorW.mjs +73 -0
- package/dist/PhPaperPlaneRight-DrpVAQOZ.js +14 -0
- package/dist/PhPlus-25KQTPHG.mjs +73 -0
- package/dist/PhPlus-BhUXef08.js +14 -0
- package/dist/PhPower-BKl7gzsB.mjs +73 -0
- package/dist/PhPower-BNJf1AGQ.js +14 -0
- package/dist/PhPuzzlePiece-BkZeF8CX.js +14 -0
- package/dist/PhPuzzlePiece-BqUI4GRs.mjs +73 -0
- package/dist/PhQrCode-C-tqZKPP.mjs +73 -0
- package/dist/PhQrCode-C0v0iXQN.js +14 -0
- package/dist/PhQuestion-BBAiRWgt.js +14 -0
- package/dist/PhQuestion-CtYvffyD.mjs +73 -0
- package/dist/PhQuestionMark-BNbtL2yx.mjs +73 -0
- package/dist/PhQuestionMark-BvGUBZ1h.js +14 -0
- package/dist/PhSealCheck-B0TEqWpq.mjs +73 -0
- package/dist/PhSealCheck-BwNkuF7G.js +14 -0
- package/dist/PhSignOut-C1rMSNaS.js +14 -0
- package/dist/PhSignOut-HX2_BVsD.mjs +73 -0
- package/dist/PhSpinner-CoDYLYOX.mjs +73 -0
- package/dist/PhSpinner-nmsGWDQl.js +14 -0
- package/dist/PhTrash-CALlKx3e.js +14 -0
- package/dist/PhTrash-DeQHS8ZP.mjs +73 -0
- package/dist/PhUser-CA0e5OPI.js +14 -0
- package/dist/PhUser-Cy5EY3vX.mjs +73 -0
- package/dist/PhVault-DdXjVOO9.mjs +73 -0
- package/dist/PhVault-DqxV75cz.js +14 -0
- package/dist/PhWallet-CeQrfGYc.mjs +73 -0
- package/dist/PhWallet-CyCuEs2U.js +14 -0
- package/dist/PhWarning-BKaHv_wT.mjs +73 -0
- package/dist/PhWarning-C7oj86bY.js +14 -0
- package/dist/PhWarningCircle-8MWw-QgE.mjs +73 -0
- package/dist/PhWarningCircle-CrNPXGj4.js +14 -0
- package/dist/PhX-9lsrXjyl.js +14 -0
- package/dist/PhX-DgXr_Fb0.mjs +73 -0
- package/dist/ReownAuthentication-Bfv31LzI.mjs +274 -0
- package/dist/ReownAuthentication-d8aYgGOq.js +5 -0
- package/dist/SwapController-4lzoYsYr.js +1 -0
- package/dist/SwapController-DjzUWRyQ.mjs +462 -0
- package/dist/ccip-CvwbEhki.js +1 -0
- package/dist/ccip-TuO68NeE.mjs +150 -0
- package/dist/data-capture-BwdjH2vc.mjs +489 -0
- package/dist/data-capture-xVUNZJ2T.js +242 -0
- package/dist/email-BCZObJCY.js +90 -0
- package/dist/email-m-wo60fN.mjs +338 -0
- package/dist/embedded-wallet-CGSri-4g.js +410 -0
- package/dist/embedded-wallet-DdZmv5qP.mjs +808 -0
- package/dist/features-BJ8kNaE8.js +1 -0
- package/dist/features-CJ34oImB.mjs +6 -0
- package/dist/index-4lfXeo30.js +132 -0
- package/dist/index-B6Mg114Z.mjs +69182 -0
- package/dist/index-BX7gAgT3.mjs +35 -0
- package/dist/index-BYQqNbCe.js +1 -0
- package/dist/index-BmdHwtJo.js +1 -0
- package/dist/index-BvUx3ULC.js +78 -0
- package/dist/index-CD-QGO70.mjs +196 -0
- package/dist/index-CJtXfdoM.mjs +29621 -0
- package/dist/index-CMzdgE-y.mjs +215 -0
- package/dist/index-CjZQCcwG.js +7203 -0
- package/dist/index-D7VuOaCI.js +19 -0
- package/dist/index-DV7SQwgn.mjs +2688 -0
- package/dist/index-DVf4BnNh.mjs +352 -0
- package/dist/index-DhN9vL4k.js +138 -0
- package/dist/index-DvllakY0.mjs +274 -0
- package/dist/index-Ho06VKh2.mjs +151 -0
- package/dist/index-a8mS2Eh1.js +1062 -0
- package/dist/index-aamBi9Tu.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.es.js +14 -0
- package/dist/onramp-DLlhSPQg.js +422 -0
- package/dist/onramp-k-EAEepC.mjs +842 -0
- package/dist/parseSignature-D1tZHglo.js +16 -0
- package/dist/parseSignature-DM0lwcDr.mjs +8883 -0
- package/dist/pay-with-exchange---G2M1Ag.js +280 -0
- package/dist/pay-with-exchange-CFIcUXUe.mjs +512 -0
- package/dist/property-Bd8U3_QP.mjs +618 -0
- package/dist/property-DissjCbZ.js +27 -0
- package/dist/receive-B9LCljO6.mjs +228 -0
- package/dist/receive-E8H6GDOX.js +131 -0
- package/dist/send-B-AooLph.js +554 -0
- package/dist/send-DZd_xhsd.mjs +1155 -0
- package/dist/socials-ChWFLEFe.mjs +611 -0
- package/dist/socials-YSUYSh8o.js +250 -0
- package/dist/swaps-DpR9W9Ld.js +1050 -0
- package/dist/swaps-Du7-Ui_V.mjs +1752 -0
- package/dist/transactions-DhsK5-QJ.mjs +35 -0
- package/dist/transactions-VPsz2OLe.js +16 -0
- package/dist/w3m-modal-DhomfjKU.js +891 -0
- package/dist/w3m-modal-KuYD-zqQ.mjs +1759 -0
- package/package.json +51 -0
- package/readme.md +1 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { A as a, a as s, b as i, c as n, W, d as o, e as m, f as w, g as c, h as l, i as V, j as u, k as r, l as A, m as C, n as p, o as B, p as h, q as g, r as k, s as N, t as S, u as d, v as K, w as f, x, y as I, z as b, B as v, C as D, D as E, E as F } from "./index-B6Mg114Z.mjs";
|
|
2
|
+
export {
|
|
3
|
+
a as AppKitAccountButton,
|
|
4
|
+
s as AppKitButton,
|
|
5
|
+
i as AppKitConnectButton,
|
|
6
|
+
n as AppKitNetworkButton,
|
|
7
|
+
W as W3mAccountButton,
|
|
8
|
+
o as W3mAccountSettingsView,
|
|
9
|
+
m as W3mAccountView,
|
|
10
|
+
w as W3mAllWalletsView,
|
|
11
|
+
c as W3mButton,
|
|
12
|
+
l as W3mChooseAccountNameView,
|
|
13
|
+
V as W3mConnectButton,
|
|
14
|
+
u as W3mConnectView,
|
|
15
|
+
r as W3mConnectWalletsView,
|
|
16
|
+
A as W3mConnectingExternalView,
|
|
17
|
+
C as W3mConnectingMultiChainView,
|
|
18
|
+
p as W3mConnectingWcBasicView,
|
|
19
|
+
B as W3mConnectingWcView,
|
|
20
|
+
h as W3mDownloadsView,
|
|
21
|
+
g as W3mFooter,
|
|
22
|
+
k as W3mFundWalletView,
|
|
23
|
+
N as W3mGetWalletView,
|
|
24
|
+
S as W3mNetworkButton,
|
|
25
|
+
d as W3mNetworkSwitchView,
|
|
26
|
+
K as W3mNetworksView,
|
|
27
|
+
f as W3mProfileWalletsView,
|
|
28
|
+
x as W3mRouter,
|
|
29
|
+
I as W3mSIWXSignMessageView,
|
|
30
|
+
b as W3mSwitchActiveChainView,
|
|
31
|
+
v as W3mUnsupportedChainView,
|
|
32
|
+
D as W3mWalletCompatibleNetworksView,
|
|
33
|
+
E as W3mWhatIsANetworkView,
|
|
34
|
+
F as W3mWhatIsAWalletView
|
|
35
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./parseSignature-D1tZHglo.js"),r=require("./index-CjZQCcwG.js"),o=require("./ccip-CvwbEhki.js");exports.AccountStateConflictError=e.AccountStateConflictError;exports.BaseFeeScalarError=e.BaseFeeScalarError;exports.BlockNotFoundError=e.BlockNotFoundError;exports.BundleFailedError=e.BundleFailedError;exports.CallExecutionError=e.CallExecutionError;exports.ChainDoesNotSupportContract=e.ChainDoesNotSupportContract;exports.CircularReferenceError=e.CircularReferenceError;exports.ClientChainNotConfiguredError=e.ClientChainNotConfiguredError;exports.ContractFunctionExecutionError=e.ContractFunctionExecutionError;exports.ContractFunctionRevertedError=e.ContractFunctionRevertedError;exports.ContractFunctionZeroDataError=e.ContractFunctionZeroDataError;exports.CounterfactualDeploymentFailedError=e.CounterfactualDeploymentFailedError;exports.Eip1559FeesNotSupportedError=e.Eip1559FeesNotSupportedError;exports.EnsAvatarInvalidNftUriError=e.EnsAvatarInvalidNftUriError;exports.EnsAvatarUnsupportedNamespaceError=e.EnsAvatarUnsupportedNamespaceError;exports.EnsAvatarUriResolutionError=e.EnsAvatarUriResolutionError;exports.EstimateGasExecutionError=e.EstimateGasExecutionError;exports.FilterTypeNotSupportedError=e.FilterTypeNotSupportedError;exports.InvalidAbiItemError=e.InvalidAbiItemError;exports.InvalidAbiParametersError=e.InvalidAbiParametersError;exports.InvalidAbiTypeParameterError=e.InvalidAbiTypeParameterError;exports.InvalidChainIdError=e.InvalidChainIdError;exports.InvalidDecimalNumberError=e.InvalidDecimalNumberError;exports.InvalidFunctionModifierError=e.InvalidFunctionModifierError;exports.InvalidLegacyVError=e.InvalidLegacyVError;exports.InvalidModifierError=e.InvalidModifierError;exports.InvalidParameterError=e.InvalidParameterError;exports.InvalidParenthesisError=e.InvalidParenthesisError;exports.InvalidSerializableTransactionError=e.InvalidSerializableTransactionError;exports.InvalidSignatureError=e.InvalidSignatureError;exports.InvalidStorageKeySizeError=e.InvalidStorageKeySizeError;exports.InvalidStructSignatureError=e.InvalidStructSignatureError;exports.MaxFeePerGasTooLowError=e.MaxFeePerGasTooLowError;exports.RawContractError=e.RawContractError;exports.SolidityProtectedKeywordError=e.SolidityProtectedKeywordError;exports.StateAssignmentConflictError=e.StateAssignmentConflictError;exports.TransactionExecutionError=e.TransactionExecutionError;exports.TransactionNotFoundError=e.TransactionNotFoundError;exports.TransactionReceiptNotFoundError=e.TransactionReceiptNotFoundError;exports.UnknownSignatureError=e.UnknownSignatureError;exports.UnknownTypeError=e.UnknownTypeError;exports.WaitForCallsStatusTimeoutError=e.WaitForCallsStatusTimeoutError;exports.WaitForTransactionReceiptTimeoutError=e.WaitForTransactionReceiptTimeoutError;exports.assertRequest=e.assertRequest;exports.assertTransactionEIP1559=e.assertTransactionEIP1559;exports.assertTransactionEIP2930=e.assertTransactionEIP2930;exports.assertTransactionLegacy=e.assertTransactionLegacy;exports.blobsToCommitments=e.blobsToCommitments;exports.blobsToProofs=e.blobsToProofs;exports.bytesToBigInt=e.bytesToBigInt;exports.bytesToBool=e.bytesToBool;exports.bytesToNumber=e.bytesToNumber;exports.bytesToString=e.bytesToString;exports.commitmentToVersionedHash=e.commitmentToVersionedHash;exports.commitmentsToVersionedHashes=e.commitmentsToVersionedHashes;exports.createClient=e.createClient;exports.createNonceManager=e.createNonceManager;exports.createPublicClient=e.createPublicClient;exports.decodeAbiParameters=e.decodeAbiParameters;exports.decodeErrorResult=e.decodeErrorResult;exports.decodeEventLog=e.decodeEventLog;exports.decodeFunctionData=e.decodeFunctionData;exports.decodeFunctionResult=e.decodeFunctionResult;exports.defineBlock=e.defineBlock;exports.defineChain=e.defineChain;exports.defineTransaction=e.defineTransaction;exports.defineTransactionReceipt=e.defineTransactionReceipt;exports.defineTransactionRequest=e.defineTransactionRequest;exports.deploylessCallViaBytecodeBytecode=e.deploylessCallViaBytecodeBytecode;exports.deploylessCallViaFactoryBytecode=e.deploylessCallViaFactoryBytecode;exports.encodeDeployData=e.encodeDeployData;exports.encodeErrorResult=e.encodeErrorResult;exports.encodeEventTopics=e.encodeEventTopics;exports.encodeFunctionResult=e.encodeFunctionResult;exports.encodePacked=e.encodePacked;exports.erc6492SignatureValidatorByteCode=e.erc6492SignatureValidatorByteCode;exports.ethAddress=e.ethAddress;exports.extendSchema=e.extendSchema;exports.formatBlock=e.formatBlock;exports.formatEther=e.formatEther;exports.formatLog=e.formatLog;exports.formatTransaction=e.formatTransaction;exports.formatTransactionReceipt=e.formatTransactionReceipt;exports.formatTransactionRequest=e.formatTransactionRequest;exports.getChainContractAddress=e.getChainContractAddress;exports.getContractError=e.getContractError;exports.getTransactionType=e.getTransactionType;exports.hexToSignature=e.parseSignature;exports.isAddressEqual=e.isAddressEqual;exports.labelhash=e.labelhash;exports.maxUint16=e.maxUint16;exports.maxUint256=e.maxUint256;exports.namehash=e.namehash;exports.parseAbi=e.parseAbi;exports.parseAbiItem=e.parseAbiItem;exports.parseAbiParameters=e.parseAbiParameters;exports.parseEventLogs=e.parseEventLogs;exports.parseSignature=e.parseSignature;exports.parseUnits=e.parseUnits;exports.publicActions=e.publicActions;exports.recoverAddress=e.recoverAddress;exports.recoverPublicKey=e.recoverPublicKey;exports.rpcTransactionType=e.rpcTransactionType;exports.serializeAccessList=e.serializeAccessList;exports.serializeErc6492Signature=e.serializeErc6492Signature;exports.serializeSignature=e.serializeSignature;exports.serializeTransaction=e.serializeTransaction;exports.sha256=e.sha256;exports.signatureToHex=e.serializeSignature;exports.toBlobSidecars=e.toBlobSidecars;exports.toBlobs=e.toBlobs;exports.toRlp=e.toRlp;exports.transactionType=e.transactionType;exports.universalSignatureValidatorByteCode=e.erc6492SignatureValidatorByteCode;exports.withCache=e.withCache;exports.zeroAddress=e.zeroAddress;exports.AbiConstructorNotFoundError=r.AbiConstructorNotFoundError;exports.AbiConstructorParamsNotFoundError=r.AbiConstructorParamsNotFoundError;exports.AbiDecodingDataSizeTooSmallError=r.AbiDecodingDataSizeTooSmallError;exports.AbiDecodingZeroDataError=r.AbiDecodingZeroDataError;exports.AbiEncodingArrayLengthMismatchError=r.AbiEncodingArrayLengthMismatchError;exports.AbiEncodingBytesSizeMismatchError=r.AbiEncodingBytesSizeMismatchError;exports.AbiEncodingLengthMismatchError=r.AbiEncodingLengthMismatchError;exports.AbiErrorInputsNotFoundError=r.AbiErrorInputsNotFoundError;exports.AbiErrorNotFoundError=r.AbiErrorNotFoundError;exports.AbiErrorSignatureNotFoundError=r.AbiErrorSignatureNotFoundError;exports.AbiEventNotFoundError=r.AbiEventNotFoundError;exports.AbiEventSignatureEmptyTopicsError=r.AbiEventSignatureEmptyTopicsError;exports.AbiEventSignatureNotFoundError=r.AbiEventSignatureNotFoundError;exports.AbiFunctionNotFoundError=r.AbiFunctionNotFoundError;exports.AbiFunctionOutputsNotFoundError=r.AbiFunctionOutputsNotFoundError;exports.AbiFunctionSignatureNotFoundError=r.AbiFunctionSignatureNotFoundError;exports.AtomicReadyWalletRejectedUpgradeError=r.AtomicReadyWalletRejectedUpgradeError;exports.AtomicityNotSupportedError=r.AtomicityNotSupportedError;exports.BaseError=r.BaseError;exports.BundleTooLargeError=r.BundleTooLargeError;exports.BytesSizeMismatchError=r.BytesSizeMismatchError;exports.ChainDisconnectedError=r.ChainDisconnectedError;exports.DecodeLogDataMismatch=r.DecodeLogDataMismatch;exports.DecodeLogTopicsMismatch=r.DecodeLogTopicsMismatch;exports.DuplicateIdError=r.DuplicateIdError;exports.ExecutionRevertedError=r.ExecutionRevertedError;exports.FeeCapTooHighError=r.FeeCapTooHighError;exports.FeeCapTooLowError=r.FeeCapTooLowError;exports.HttpRequestError=r.HttpRequestError;exports.InsufficientFundsError=r.InsufficientFundsError;exports.IntegerOutOfRangeError=r.IntegerOutOfRangeError;exports.InternalRpcError=r.InternalRpcError;exports.IntrinsicGasTooHighError=r.IntrinsicGasTooHighError;exports.IntrinsicGasTooLowError=r.IntrinsicGasTooLowError;exports.InvalidAbiDecodingTypeError=r.InvalidAbiDecodingTypeError;exports.InvalidAbiEncodingTypeError=r.InvalidAbiEncodingTypeError;exports.InvalidAddressError=r.InvalidAddressError;exports.InvalidArrayError=r.InvalidArrayError;exports.InvalidBytesBooleanError=r.InvalidBytesBooleanError;exports.InvalidDefinitionTypeError=r.InvalidDefinitionTypeError;exports.InvalidDomainError=r.InvalidDomainError;exports.InvalidHexBooleanError=r.InvalidHexBooleanError;exports.InvalidInputRpcError=r.InvalidInputRpcError;exports.InvalidParamsRpcError=r.InvalidParamsRpcError;exports.InvalidPrimaryTypeError=r.InvalidPrimaryTypeError;exports.InvalidRequestRpcError=r.InvalidRequestRpcError;exports.InvalidStructTypeError=r.InvalidStructTypeError;exports.JsonRpcVersionUnsupportedError=r.JsonRpcVersionUnsupportedError;exports.LimitExceededRpcError=r.LimitExceededRpcError;exports.MethodNotFoundRpcError=r.MethodNotFoundRpcError;exports.MethodNotSupportedRpcError=r.MethodNotSupportedRpcError;exports.NonceMaxValueError=r.NonceMaxValueError;exports.NonceTooHighError=r.NonceTooHighError;exports.NonceTooLowError=r.NonceTooLowError;exports.ParseRpcError=r.ParseRpcError;exports.ProviderDisconnectedError=r.ProviderDisconnectedError;exports.ProviderRpcError=r.ProviderRpcError;exports.ResourceNotFoundRpcError=r.ResourceNotFoundRpcError;exports.ResourceUnavailableRpcError=r.ResourceUnavailableRpcError;exports.RpcError=r.RpcError;exports.RpcRequestError=r.RpcRequestError;exports.SizeExceedsPaddingSizeError=r.SizeExceedsPaddingSizeError;exports.SizeOverflowError=r.SizeOverflowError;exports.SliceOffsetOutOfBoundsError=r.SliceOffsetOutOfBoundsError;exports.SwitchChainError=r.SwitchChainError;exports.TimeoutError=r.TimeoutError;exports.TipAboveFeeCapError=r.TipAboveFeeCapError;exports.TransactionRejectedRpcError=r.TransactionRejectedRpcError;exports.TransactionTypeNotSupportedError=r.TransactionTypeNotSupportedError;exports.UnauthorizedProviderError=r.UnauthorizedProviderError;exports.UnknownBundleIdError=r.UnknownBundleIdError;exports.UnknownNodeError=r.UnknownNodeError;exports.UnknownRpcError=r.UnknownRpcError;exports.UnsupportedChainIdError=r.UnsupportedChainIdError;exports.UnsupportedNonOptionalCapabilityError=r.UnsupportedNonOptionalCapabilityError;exports.UnsupportedPackedAbiType=r.UnsupportedPackedAbiType;exports.UnsupportedProviderMethodError=r.UnsupportedProviderMethodError;exports.UrlRequiredError=r.UrlRequiredError;exports.UserRejectedRequestError=r.UserRejectedRequestError;exports.boolToBytes=r.boolToBytes;exports.boolToHex=r.boolToHex;exports.bytesToHex=r.bytesToHex;exports.checksumAddress=r.checksumAddress;exports.concat=r.concat;exports.concatBytes=r.concatBytes;exports.concatHex=r.concatHex;exports.createTransport=r.createTransport;exports.encodeAbiParameters=r.encodeAbiParameters;exports.encodeFunctionData=r.encodeFunctionData;exports.erc20Abi=r.erc20Abi;exports.erc6492SignatureValidatorAbi=r.erc6492SignatureValidatorAbi;exports.etherUnits=r.etherUnits;exports.fallback=r.fallback;exports.formatGwei=r.formatGwei;exports.formatUnits=r.formatUnits;exports.getAbiItem=r.getAbiItem;exports.getAddress=r.getAddress;exports.getEventSelector=r.toEventSelector;exports.getEventSignature=r.toSignature;exports.getFunctionSelector=r.toFunctionSelector;exports.getFunctionSignature=r.toSignature;exports.getTypesForEIP712Domain=r.getTypesForEIP712Domain;exports.gweiUnits=r.gweiUnits;exports.hashDomain=r.hashDomain;exports.hashMessage=r.hashMessage;exports.hashStruct=r.hashStruct;exports.hashTypedData=r.hashTypedData;exports.hexToBigInt=r.hexToBigInt;exports.hexToBool=r.hexToBool;exports.hexToBytes=r.hexToBytes;exports.hexToNumber=r.hexToNumber;exports.hexToString=r.hexToString;exports.http=r.http;exports.isAddress=r.isAddress;exports.isHex=r.isHex;exports.keccak256=r.keccak256;exports.multicall3Abi=r.multicall3Abi;exports.numberToBytes=r.numberToBytes;exports.numberToHex=r.numberToHex;exports.pad=r.pad;exports.padBytes=r.padBytes;exports.padHex=r.padHex;exports.prepareEncodeFunctionData=r.prepareEncodeFunctionData;exports.presignMessagePrefix=r.presignMessagePrefix;exports.shouldThrow=r.shouldThrow;exports.size=r.size;exports.slice=r.slice;exports.sliceBytes=r.sliceBytes;exports.sliceHex=r.sliceHex;exports.stringToBytes=r.stringToBytes;exports.stringToHex=r.stringToHex;exports.stringify=r.stringify;exports.toBytes=r.toBytes;exports.toEventHash=r.toSignatureHash;exports.toEventSelector=r.toEventSelector;exports.toEventSignature=r.toSignature;exports.toFunctionHash=r.toSignatureHash;exports.toFunctionSelector=r.toFunctionSelector;exports.toFunctionSignature=r.toSignature;exports.toHex=r.toHex;exports.toPrefixedMessage=r.toPrefixedMessage;exports.trim=r.trim;exports.universalSignatureValidatorAbi=r.erc6492SignatureValidatorAbi;exports.validateTypedData=r.validateTypedData;exports.withRetry=r.withRetry;exports.withTimeout=r.withTimeout;exports.ccipFetch=o.ccipRequest;exports.ccipRequest=o.ccipRequest;exports.offchainLookup=o.offchainLookup;exports.offchainLookupAbiItem=o.offchainLookupAbiItem;exports.offchainLookupSignature=o.offchainLookupSignature;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-a8mS2Eh1.js"),P=3e5;async function u(t){return e.PayController.handleOpenPay(t)}async function D(t,s=P){if(s<=0)throw new e.AppKitPayError(e.AppKitPayErrorCodes.INVALID_PAYMENT_CONFIG,"Timeout must be greater than 0");try{await u(t)}catch(r){throw r instanceof e.AppKitPayError?r:new e.AppKitPayError(e.AppKitPayErrorCodes.UNABLE_TO_INITIATE_PAYMENT,r.message)}return new Promise((r,y)=>{let n=!1;const i=setTimeout(()=>{n||(n=!0,c(),y(new e.AppKitPayError(e.AppKitPayErrorCodes.GENERIC_PAYMENT_ERROR,"Payment timeout")))},s);function o(){if(n)return;const a=e.PayController.state.currentPayment,m=e.PayController.state.error,C=e.PayController.state.isPaymentInProgress;if((a==null?void 0:a.status)==="SUCCESS"){n=!0,c(),clearTimeout(i),r({success:!0,result:a.result});return}if((a==null?void 0:a.status)==="FAILED"){n=!0,c(),clearTimeout(i),r({success:!1,error:m||"Payment failed"});return}m&&!C&&!a&&(n=!0,c(),clearTimeout(i),r({success:!1,error:m}))}const d=l("currentPayment",o),b=l("error",o),S=l("isPaymentInProgress",o),c=f([d,b,S]);o()})}function p(){return e.PayController.getExchanges()}function U(){var t;return(t=e.PayController.state.currentPayment)==null?void 0:t.result}function E(){return e.PayController.state.error}function T(){return e.PayController.state.isPaymentInProgress}function l(t,s){return e.PayController.subscribeKey(t,s)}function f(t){return()=>{t.forEach(s=>{try{s()}catch{}})}}const g={network:"eip155:8453",asset:"native",metadata:{name:"Ethereum",symbol:"ETH",decimals:18}},w={network:"eip155:8453",asset:"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",metadata:{name:"USD Coin",symbol:"USDC",decimals:6}},h={network:"eip155:84532",asset:"native",metadata:{name:"Ethereum",symbol:"ETH",decimals:18}},A={network:"eip155:1",asset:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",metadata:{name:"USD Coin",symbol:"USDC",decimals:6}},k={network:"eip155:10",asset:"0x0b2c639c533813f4aa9d7837caf62653d097ff85",metadata:{name:"USD Coin",symbol:"USDC",decimals:6}},I={network:"eip155:42161",asset:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831",metadata:{name:"USD Coin",symbol:"USDC",decimals:6}},K={network:"eip155:137",asset:"0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",metadata:{name:"USD Coin",symbol:"USDC",decimals:6}},N={network:"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",asset:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",metadata:{name:"USD Coin",symbol:"USDC",decimals:6}},v={network:"eip155:1",asset:"0xdAC17F958D2ee523a2206206994597C13D831ec7",metadata:{name:"Tether USD",symbol:"USDT",decimals:6}},x={network:"eip155:10",asset:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",metadata:{name:"Tether USD",symbol:"USDT",decimals:6}},F={network:"eip155:42161",asset:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",metadata:{name:"Tether USD",symbol:"USDT",decimals:6}},O={network:"eip155:137",asset:"0xc2132d05d31c914a87c6611c10748aeb04b58e8f",metadata:{name:"Tether USD",symbol:"USDT",decimals:6}},R={network:"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",asset:"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",metadata:{name:"Tether USD",symbol:"USDT",decimals:6}},q={network:"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",asset:"native",metadata:{name:"Solana",symbol:"SOL",decimals:9}};exports.PayController=e.PayController;Object.defineProperty(exports,"W3mPayLoadingView",{enumerable:!0,get:()=>e.W3mPayLoadingView});Object.defineProperty(exports,"W3mPayQuoteView",{enumerable:!0,get:()=>e.W3mPayQuoteView});Object.defineProperty(exports,"W3mPayView",{enumerable:!0,get:()=>e.W3mPayView});exports.arbitrumUSDC=I;exports.arbitrumUSDT=F;exports.baseETH=g;exports.baseSepoliaETH=h;exports.baseUSDC=w;exports.ethereumUSDC=A;exports.ethereumUSDT=v;exports.getExchanges=p;exports.getIsPaymentInProgress=T;exports.getPayError=E;exports.getPayResult=U;exports.openPay=u;exports.optimismUSDC=k;exports.optimismUSDT=x;exports.pay=D;exports.polygonUSDC=K;exports.polygonUSDT=O;exports.solanaSOL=q;exports.solanaUSDC=N;exports.solanaUSDT=R;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";const e=require("./index-CjZQCcwG.js"),h=e.css`
|
|
2
|
+
:host {
|
|
3
|
+
position: relative;
|
|
4
|
+
display: inline-block;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
:host([data-error='true']) > input {
|
|
8
|
+
color: ${({tokens:t})=>t.core.textError};
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:host([data-error='false']) > input {
|
|
12
|
+
color: ${({tokens:t})=>t.theme.textPrimary};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
input {
|
|
16
|
+
background: transparent;
|
|
17
|
+
height: auto;
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
color: ${({tokens:t})=>t.theme.textPrimary};
|
|
20
|
+
font-feature-settings: 'case' on;
|
|
21
|
+
font-size: ${({textSize:t})=>t.h4};
|
|
22
|
+
caret-color: ${({tokens:t})=>t.core.backgroundAccentPrimary};
|
|
23
|
+
line-height: ${({typography:t})=>t["h4-regular-mono"].lineHeight};
|
|
24
|
+
letter-spacing: ${({typography:t})=>t["h4-regular-mono"].letterSpacing};
|
|
25
|
+
-webkit-appearance: none;
|
|
26
|
+
-moz-appearance: textfield;
|
|
27
|
+
padding: 0px;
|
|
28
|
+
font-family: ${({fontFamily:t})=>t.mono};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:host([data-width-variant='auto']) input {
|
|
32
|
+
width: 100%;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:host([data-width-variant='fit']) input {
|
|
36
|
+
width: 1ch;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.wui-input-amount-fit-mirror {
|
|
40
|
+
position: absolute;
|
|
41
|
+
visibility: hidden;
|
|
42
|
+
white-space: pre;
|
|
43
|
+
font-size: var(--local-font-size);
|
|
44
|
+
line-height: 130%;
|
|
45
|
+
letter-spacing: -1.28px;
|
|
46
|
+
font-family: ${({fontFamily:t})=>t.mono};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.wui-input-amount-fit-width {
|
|
50
|
+
display: inline-block;
|
|
51
|
+
position: relative;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
input::-webkit-outer-spin-button,
|
|
55
|
+
input::-webkit-inner-spin-button {
|
|
56
|
+
-webkit-appearance: none;
|
|
57
|
+
margin: 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
input::placeholder {
|
|
61
|
+
color: ${({tokens:t})=>t.theme.textSecondary};
|
|
62
|
+
}
|
|
63
|
+
`;var r=function(t,i,a,s){var u=arguments.length,o=u<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,a):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,i,a,s);else for(var l=t.length-1;l>=0;l--)(p=t[l])&&(o=(u<3?p(o):u>3?p(i,a,o):p(i,a))||o);return u>3&&o&&Object.defineProperty(i,a,o),o};let n=class extends e.i{constructor(){super(...arguments),this.inputElementRef=e.e(),this.disabled=!1,this.value="",this.placeholder="0",this.widthVariant="auto",this.maxDecimals=void 0,this.maxIntegers=void 0,this.fontSize="h4",this.error=!1}firstUpdated(){this.resizeInput()}updated(){this.style.setProperty("--local-font-size",e.vars.textSize[this.fontSize]),this.resizeInput()}render(){var i;return this.dataset.widthVariant=this.widthVariant,this.dataset.error=String(this.error),(i=this.inputElementRef)!=null&&i.value&&this.value&&(this.inputElementRef.value.value=this.value),this.widthVariant==="auto"?this.inputTemplate():e.b`
|
|
64
|
+
<div class="wui-input-amount-fit-width">
|
|
65
|
+
<span class="wui-input-amount-fit-mirror"></span>
|
|
66
|
+
${this.inputTemplate()}
|
|
67
|
+
</div>
|
|
68
|
+
`}inputTemplate(){return e.b`<input
|
|
69
|
+
${e.n$1(this.inputElementRef)}
|
|
70
|
+
type="text"
|
|
71
|
+
inputmode="decimal"
|
|
72
|
+
pattern="[0-9,.]*"
|
|
73
|
+
placeholder=${this.placeholder}
|
|
74
|
+
?disabled=${this.disabled}
|
|
75
|
+
autofocus
|
|
76
|
+
value=${this.value??""}
|
|
77
|
+
@input=${this.dispatchInputChangeEvent.bind(this)}
|
|
78
|
+
/>`}dispatchInputChangeEvent(){this.inputElementRef.value&&(this.inputElementRef.value.value=e.UiHelperUtil.maskInput({value:this.inputElementRef.value.value,decimals:this.maxDecimals,integers:this.maxIntegers}),this.dispatchEvent(new CustomEvent("inputChange",{detail:this.inputElementRef.value.value,bubbles:!0,composed:!0})),this.resizeInput())}resizeInput(){if(this.widthVariant==="fit"){const i=this.inputElementRef.value;if(i){const a=i.previousElementSibling;a&&(a.textContent=i.value||"0",i.style.width=`${a.offsetWidth}px`)}}}};n.styles=[e.resetStyles,e.elementStyles,h];r([e.n({type:Boolean})],n.prototype,"disabled",void 0);r([e.n({type:String})],n.prototype,"value",void 0);r([e.n({type:String})],n.prototype,"placeholder",void 0);r([e.n({type:String})],n.prototype,"widthVariant",void 0);r([e.n({type:Number})],n.prototype,"maxDecimals",void 0);r([e.n({type:Number})],n.prototype,"maxIntegers",void 0);r([e.n({type:String})],n.prototype,"fontSize",void 0);r([e.n({type:Boolean})],n.prototype,"error",void 0);n=r([e.customElement("wui-input-amount")],n);
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { bR as u, bS as g, bT as m, bU as r, bV as p, bW as b, bX as n } from "./index-B6Mg114Z.mjs";
|
|
2
|
+
const x = u`
|
|
3
|
+
button {
|
|
4
|
+
display: block;
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
padding: ${({ spacing: e }) => e[1]};
|
|
8
|
+
transition: background-color ${({ durations: e }) => e.lg}
|
|
9
|
+
${({ easings: e }) => e["ease-out-power-2"]};
|
|
10
|
+
will-change: background-color;
|
|
11
|
+
background-color: ${({ tokens: e }) => e.theme.foregroundPrimary};
|
|
12
|
+
border-radius: ${({ borderRadius: e }) => e[32]};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
wui-image {
|
|
16
|
+
border-radius: ${({ borderRadius: e }) => e[32]};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
wui-text {
|
|
20
|
+
padding-left: ${({ spacing: e }) => e[1]};
|
|
21
|
+
padding-right: ${({ spacing: e }) => e[1]};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.left-icon-container {
|
|
25
|
+
width: 24px;
|
|
26
|
+
height: 24px;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
align-items: center;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.left-image-container {
|
|
32
|
+
position: relative;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
align-items: center;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.chain-image {
|
|
38
|
+
position: absolute;
|
|
39
|
+
border: 1px solid ${({ tokens: e }) => e.theme.foregroundPrimary};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* -- Sizes --------------------------------------------------- */
|
|
43
|
+
button[data-size='lg'] {
|
|
44
|
+
height: 32px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
button[data-size='md'] {
|
|
48
|
+
height: 28px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
button[data-size='sm'] {
|
|
52
|
+
height: 24px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
button[data-size='lg'] .token-image {
|
|
56
|
+
width: 24px;
|
|
57
|
+
height: 24px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
button[data-size='md'] .token-image {
|
|
61
|
+
width: 20px;
|
|
62
|
+
height: 20px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
button[data-size='sm'] .token-image {
|
|
66
|
+
width: 16px;
|
|
67
|
+
height: 16px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
button[data-size='lg'] .left-icon-container {
|
|
71
|
+
width: 24px;
|
|
72
|
+
height: 24px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
button[data-size='md'] .left-icon-container {
|
|
76
|
+
width: 20px;
|
|
77
|
+
height: 20px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
button[data-size='sm'] .left-icon-container {
|
|
81
|
+
width: 16px;
|
|
82
|
+
height: 16px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
button[data-size='lg'] .chain-image {
|
|
86
|
+
width: 12px;
|
|
87
|
+
height: 12px;
|
|
88
|
+
bottom: 2px;
|
|
89
|
+
right: -4px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
button[data-size='md'] .chain-image {
|
|
93
|
+
width: 10px;
|
|
94
|
+
height: 10px;
|
|
95
|
+
bottom: 2px;
|
|
96
|
+
right: -4px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
button[data-size='sm'] .chain-image {
|
|
100
|
+
width: 8px;
|
|
101
|
+
height: 8px;
|
|
102
|
+
bottom: 2px;
|
|
103
|
+
right: -3px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* -- Focus states --------------------------------------------------- */
|
|
107
|
+
button:focus-visible:enabled {
|
|
108
|
+
background-color: ${({ tokens: e }) => e.theme.foregroundSecondary};
|
|
109
|
+
box-shadow: 0 0 0 4px ${({ tokens: e }) => e.core.foregroundAccent040};
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* -- Hover & Active states ----------------------------------------------------------- */
|
|
113
|
+
@media (hover: hover) {
|
|
114
|
+
button:hover:enabled,
|
|
115
|
+
button:active:enabled {
|
|
116
|
+
background-color: ${({ tokens: e }) => e.theme.foregroundSecondary};
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* -- Disabled states --------------------------------------------------- */
|
|
121
|
+
button:disabled {
|
|
122
|
+
background-color: ${({ tokens: e }) => e.theme.foregroundSecondary};
|
|
123
|
+
opacity: 0.5;
|
|
124
|
+
}
|
|
125
|
+
`;
|
|
126
|
+
var a = function(e, t, s, d) {
|
|
127
|
+
var c = arguments.length, o = c < 3 ? t : d === null ? d = Object.getOwnPropertyDescriptor(t, s) : d, l;
|
|
128
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(e, t, s, d);
|
|
129
|
+
else for (var h = e.length - 1; h >= 0; h--) (l = e[h]) && (o = (c < 3 ? l(o) : c > 3 ? l(t, s, o) : l(t, s)) || o);
|
|
130
|
+
return c > 3 && o && Object.defineProperty(t, s, o), o;
|
|
131
|
+
};
|
|
132
|
+
const f = {
|
|
133
|
+
lg: "lg-regular",
|
|
134
|
+
md: "lg-regular",
|
|
135
|
+
sm: "md-regular"
|
|
136
|
+
}, w = {
|
|
137
|
+
lg: "lg",
|
|
138
|
+
md: "md",
|
|
139
|
+
sm: "sm"
|
|
140
|
+
};
|
|
141
|
+
let i = class extends b {
|
|
142
|
+
constructor() {
|
|
143
|
+
super(...arguments), this.size = "md", this.disabled = !1, this.text = "", this.loading = !1;
|
|
144
|
+
}
|
|
145
|
+
render() {
|
|
146
|
+
return this.loading ? n` <wui-flex alignItems="center" gap="01" padding="01">
|
|
147
|
+
<wui-shimmer width="20px" height="20px"></wui-shimmer>
|
|
148
|
+
<wui-shimmer width="32px" height="18px" borderRadius="4xs"></wui-shimmer>
|
|
149
|
+
</wui-flex>` : n`
|
|
150
|
+
<button ?disabled=${this.disabled} data-size=${this.size}>
|
|
151
|
+
${this.imageTemplate()} ${this.textTemplate()}
|
|
152
|
+
</button>
|
|
153
|
+
`;
|
|
154
|
+
}
|
|
155
|
+
imageTemplate() {
|
|
156
|
+
if (this.imageSrc && this.chainImageSrc)
|
|
157
|
+
return n`<wui-flex class="left-image-container">
|
|
158
|
+
<wui-image src=${this.imageSrc} class="token-image"></wui-image>
|
|
159
|
+
<wui-image src=${this.chainImageSrc} class="chain-image"></wui-image>
|
|
160
|
+
</wui-flex>`;
|
|
161
|
+
if (this.imageSrc)
|
|
162
|
+
return n`<wui-image src=${this.imageSrc} class="token-image"></wui-image>`;
|
|
163
|
+
const t = w[this.size];
|
|
164
|
+
return n`<wui-flex class="left-icon-container">
|
|
165
|
+
<wui-icon size=${t} name="networkPlaceholder"></wui-icon>
|
|
166
|
+
</wui-flex>`;
|
|
167
|
+
}
|
|
168
|
+
textTemplate() {
|
|
169
|
+
const t = f[this.size];
|
|
170
|
+
return n`<wui-text color="primary" variant=${t}
|
|
171
|
+
>${this.text}</wui-text
|
|
172
|
+
>`;
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
i.styles = [g, m, x];
|
|
176
|
+
a([
|
|
177
|
+
r()
|
|
178
|
+
], i.prototype, "size", void 0);
|
|
179
|
+
a([
|
|
180
|
+
r()
|
|
181
|
+
], i.prototype, "imageSrc", void 0);
|
|
182
|
+
a([
|
|
183
|
+
r()
|
|
184
|
+
], i.prototype, "chainImageSrc", void 0);
|
|
185
|
+
a([
|
|
186
|
+
r({ type: Boolean })
|
|
187
|
+
], i.prototype, "disabled", void 0);
|
|
188
|
+
a([
|
|
189
|
+
r()
|
|
190
|
+
], i.prototype, "text", void 0);
|
|
191
|
+
a([
|
|
192
|
+
r({ type: Boolean })
|
|
193
|
+
], i.prototype, "loading", void 0);
|
|
194
|
+
i = a([
|
|
195
|
+
p("wui-token-button")
|
|
196
|
+
], i);
|