From 3eab9f6c1eb74aa1486d2be07d2a96515c8221fa Mon Sep 17 00:00:00 2001 From: paintoshi <88572775+paintoshi@users.noreply.github.com> Date: Fri, 20 Dec 2024 17:20:49 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20PaintSwa?= =?UTF-8?q?p/brush-bridge@480b14c765309d9a0cc29d6f8e3ddb9a72753fe6=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 2 +- .../_buildManifest.js | 2 +- .../_ssgManifest.js | 0 .../{index-727d35ca2c27f935.js => index-da293678d2f81185.js} | 2 +- index.html | 2 +- registry.html | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) rename _next/static/{vHA_4AKSzkjsrvphcb1hF => GHyG3FT8v_XZQ5msSzXQa}/_buildManifest.js (86%) rename _next/static/{vHA_4AKSzkjsrvphcb1hF => GHyG3FT8v_XZQ5msSzXQa}/_ssgManifest.js (100%) rename _next/static/chunks/pages/{index-727d35ca2c27f935.js => index-da293678d2f81185.js} (82%) diff --git a/404.html b/404.html index b08d228..1fcae53 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/_next/static/vHA_4AKSzkjsrvphcb1hF/_buildManifest.js b/_next/static/GHyG3FT8v_XZQ5msSzXQa/_buildManifest.js similarity index 86% rename from _next/static/vHA_4AKSzkjsrvphcb1hF/_buildManifest.js rename to _next/static/GHyG3FT8v_XZQ5msSzXQa/_buildManifest.js index bb8302a..3293d8b 100644 --- a/_next/static/vHA_4AKSzkjsrvphcb1hF/_buildManifest.js +++ b/_next/static/GHyG3FT8v_XZQ5msSzXQa/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/chunks/550-3e911c8edc0555b7.js","static/chunks/258-2938b845ae4d2778.js","static/css/e3eea13a285e1a4e.css","static/chunks/pages/index-727d35ca2c27f935.js"],"/_error":["static/chunks/pages/_error-a59e2db023c5e431.js"],"/registry":["static/chunks/pages/registry-03f01da98e94f2b1.js"],sortedPages:["/","/_app","/_error","/registry"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file +self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/chunks/550-3e911c8edc0555b7.js","static/chunks/258-2938b845ae4d2778.js","static/css/e3eea13a285e1a4e.css","static/chunks/pages/index-da293678d2f81185.js"],"/_error":["static/chunks/pages/_error-a59e2db023c5e431.js"],"/registry":["static/chunks/pages/registry-03f01da98e94f2b1.js"],sortedPages:["/","/_app","/_error","/registry"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/_next/static/vHA_4AKSzkjsrvphcb1hF/_ssgManifest.js b/_next/static/GHyG3FT8v_XZQ5msSzXQa/_ssgManifest.js similarity index 100% rename from _next/static/vHA_4AKSzkjsrvphcb1hF/_ssgManifest.js rename to _next/static/GHyG3FT8v_XZQ5msSzXQa/_ssgManifest.js diff --git a/_next/static/chunks/pages/index-727d35ca2c27f935.js b/_next/static/chunks/pages/index-da293678d2f81185.js similarity index 82% rename from _next/static/chunks/pages/index-727d35ca2c27f935.js rename to _next/static/chunks/pages/index-da293678d2f81185.js index c4f076a..64e4c75 100644 --- a/_next/static/chunks/pages/index-727d35ca2c27f935.js +++ b/_next/static/chunks/pages/index-da293678d2f81185.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{48312:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(61090)}])},61090:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return pages}});var a=n(85893),i=n(67294),s=n(36612),r=n.n(s),p=n(56441),u=n(92321),o=n(88168),l=n(5870),y=n(49089),d=n(49321),m=n(70794);let firstFew=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;return e.substring(0,t)},lastFew=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;return e.slice(-t)},abbreviateAddressAsString=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;try{return"".concat(firstFew(e,t+1),"...").concat(lastFew(e,t))}catch(e){return null}};function trackEvent(e,t,n,a){y.ZP.event({action:e,category:null!=t?t:"event",label:null!=n?n:"event",value:null!=a?a:0})}let sleep=e=>new Promise(t=>setTimeout(t,e)),getBaseAPIQueryOptions=e=>({staleTime:e?2e3:1/0,refetchInterval:null!=e?e:0,refetchIntervalInBackground:!1,retry:5,retryOnMount:!0,retryDelay:e=>(1+2**e)*1e3});function isValidAddressNonStrict(e){return(0,d.U)(e,{strict:!1})}let formatNumber=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if((null==e?void 0:e.toString())==="0")return"0";let i=a?new m.Z(null!=e?e:"0").div("1000000000000000000").toNumber():new m.Z(null!=e?e:"0");return Number(i).toLocaleString("en-US",{minimumFractionDigits:t,maximumFractionDigits:n})};var c=n(31536),b=n(33454),T=n(96420),f=n(98456),g=n(87357),v=n(21519),h=n(9008),x=n.n(h),w=n(66398),S=n(71268),_=n(54261),M=n(39625),j=n(33305),O=n(61769),B=n(87536),F=n(80455),E=JSON.parse('[{"inputs":[{"internalType":"address","name":"lzEndpoint","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[],"name":"InvalidDelegate","type":"error"},{"inputs":[],"name":"InvalidEndpointCall","type":"error"},{"inputs":[],"name":"InvalidLocalDecimals","type":"error"},{"inputs":[{"internalType":"bytes","name":"options","type":"bytes"}],"name":"InvalidOptions","type":"error"},{"inputs":[],"name":"LengthMismatch","type":"error"},{"inputs":[],"name":"LzTokenUnavailable","type":"error"},{"inputs":[{"internalType":"uint32","name":"eid","type":"uint32"}],"name":"NoPeer","type":"error"},{"inputs":[{"internalType":"uint256","name":"msgValue","type":"uint256"}],"name":"NotEnoughNative","type":"error"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"OnlyEndpoint","type":"error"},{"inputs":[{"internalType":"uint32","name":"eid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"}],"name":"OnlyPeer","type":"error"},{"inputs":[],"name":"OnlySelf","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[{"internalType":"bytes","name":"result","type":"bytes"}],"name":"SimulationResult","type":"error"},{"inputs":[{"internalType":"uint256","name":"amountLD","type":"uint256"},{"internalType":"uint256","name":"minAmountLD","type":"uint256"}],"name":"SlippageExceeded","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"uint32","name":"eid","type":"uint32"},{"internalType":"uint16","name":"msgType","type":"uint16"},{"internalType":"bytes","name":"options","type":"bytes"}],"indexed":false,"internalType":"struct EnforcedOptionParam[]","name":"_enforcedOptions","type":"tuple[]"}],"name":"EnforcedOptionSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"inspector","type":"address"}],"name":"MsgInspectorSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"guid","type":"bytes32"},{"indexed":false,"internalType":"uint32","name":"srcEid","type":"uint32"},{"indexed":true,"internalType":"address","name":"toAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountReceivedLD","type":"uint256"}],"name":"OFTReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"guid","type":"bytes32"},{"indexed":false,"internalType":"uint32","name":"dstEid","type":"uint32"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountSentLD","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountReceivedLD","type":"uint256"}],"name":"OFTSent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint32","name":"eid","type":"uint32"},{"indexed":false,"internalType":"bytes32","name":"peer","type":"bytes32"}],"name":"PeerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"preCrimeAddress","type":"address"}],"name":"PreCrimeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"SEND","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SEND_AND_CALL","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"srcEid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"}],"internalType":"struct Origin","name":"origin","type":"tuple"}],"name":"allowInitializePath","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"approvalRequired","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_eid","type":"uint32"},{"internalType":"uint16","name":"_msgType","type":"uint16"},{"internalType":"bytes","name":"_extraOptions","type":"bytes"}],"name":"combineOptions","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimalConversionRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endpoint","outputs":[{"internalType":"contract ILayerZeroEndpointV2","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"eid","type":"uint32"},{"internalType":"uint16","name":"msgType","type":"uint16"}],"name":"enforcedOptions","outputs":[{"internalType":"bytes","name":"enforcedOption","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"srcEid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"}],"internalType":"struct Origin","name":"","type":"tuple"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"address","name":"_sender","type":"address"}],"name":"isComposeMsgSender","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_eid","type":"uint32"},{"internalType":"bytes32","name":"_peer","type":"bytes32"}],"name":"isPeer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"srcEid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"}],"internalType":"struct Origin","name":"_origin","type":"tuple"},{"internalType":"bytes32","name":"_guid","type":"bytes32"},{"internalType":"bytes","name":"_message","type":"bytes"},{"internalType":"address","name":"_executor","type":"address"},{"internalType":"bytes","name":"_extraData","type":"bytes"}],"name":"lzReceive","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"uint32","name":"srcEid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"}],"internalType":"struct Origin","name":"origin","type":"tuple"},{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"bytes32","name":"guid","type":"bytes32"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"address","name":"executor","type":"address"},{"internalType":"bytes","name":"message","type":"bytes"},{"internalType":"bytes","name":"extraData","type":"bytes"}],"internalType":"struct InboundPacket[]","name":"_packets","type":"tuple[]"}],"name":"lzReceiveAndRevert","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"srcEid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"}],"internalType":"struct Origin","name":"_origin","type":"tuple"},{"internalType":"bytes32","name":"_guid","type":"bytes32"},{"internalType":"bytes","name":"_message","type":"bytes"},{"internalType":"address","name":"_executor","type":"address"},{"internalType":"bytes","name":"_extraData","type":"bytes"}],"name":"lzReceiveSimulate","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"msgInspector","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"","type":"uint32"},{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"nextNonce","outputs":[{"internalType":"uint64","name":"nonce","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oApp","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oAppVersion","outputs":[{"internalType":"uint64","name":"senderVersion","type":"uint64"},{"internalType":"uint64","name":"receiverVersion","type":"uint64"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"oftVersion","outputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"},{"internalType":"uint64","name":"version","type":"uint64"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"eid","type":"uint32"}],"name":"peers","outputs":[{"internalType":"bytes32","name":"peer","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preCrime","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"bytes32","name":"to","type":"bytes32"},{"internalType":"uint256","name":"amountLD","type":"uint256"},{"internalType":"uint256","name":"minAmountLD","type":"uint256"},{"internalType":"bytes","name":"extraOptions","type":"bytes"},{"internalType":"bytes","name":"composeMsg","type":"bytes"},{"internalType":"bytes","name":"oftCmd","type":"bytes"}],"internalType":"struct SendParam","name":"_sendParam","type":"tuple"}],"name":"quoteOFT","outputs":[{"components":[{"internalType":"uint256","name":"minAmountLD","type":"uint256"},{"internalType":"uint256","name":"maxAmountLD","type":"uint256"}],"internalType":"struct OFTLimit","name":"oftLimit","type":"tuple"},{"components":[{"internalType":"int256","name":"feeAmountLD","type":"int256"},{"internalType":"string","name":"description","type":"string"}],"internalType":"struct OFTFeeDetail[]","name":"oftFeeDetails","type":"tuple[]"},{"components":[{"internalType":"uint256","name":"amountSentLD","type":"uint256"},{"internalType":"uint256","name":"amountReceivedLD","type":"uint256"}],"internalType":"struct OFTReceipt","name":"oftReceipt","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"bytes32","name":"to","type":"bytes32"},{"internalType":"uint256","name":"amountLD","type":"uint256"},{"internalType":"uint256","name":"minAmountLD","type":"uint256"},{"internalType":"bytes","name":"extraOptions","type":"bytes"},{"internalType":"bytes","name":"composeMsg","type":"bytes"},{"internalType":"bytes","name":"oftCmd","type":"bytes"}],"internalType":"struct SendParam","name":"_sendParam","type":"tuple"},{"internalType":"bool","name":"_payInLzToken","type":"bool"}],"name":"quoteSend","outputs":[{"components":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"lzTokenFee","type":"uint256"}],"internalType":"struct MessagingFee","name":"msgFee","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"bytes32","name":"to","type":"bytes32"},{"internalType":"uint256","name":"amountLD","type":"uint256"},{"internalType":"uint256","name":"minAmountLD","type":"uint256"},{"internalType":"bytes","name":"extraOptions","type":"bytes"},{"internalType":"bytes","name":"composeMsg","type":"bytes"},{"internalType":"bytes","name":"oftCmd","type":"bytes"}],"internalType":"struct SendParam","name":"_sendParam","type":"tuple"},{"components":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"lzTokenFee","type":"uint256"}],"internalType":"struct MessagingFee","name":"_fee","type":"tuple"},{"internalType":"address","name":"_refundAddress","type":"address"}],"name":"send","outputs":[{"components":[{"internalType":"bytes32","name":"guid","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"},{"components":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"lzTokenFee","type":"uint256"}],"internalType":"struct MessagingFee","name":"fee","type":"tuple"}],"internalType":"struct MessagingReceipt","name":"msgReceipt","type":"tuple"},{"components":[{"internalType":"uint256","name":"amountSentLD","type":"uint256"},{"internalType":"uint256","name":"amountReceivedLD","type":"uint256"}],"internalType":"struct OFTReceipt","name":"oftReceipt","type":"tuple"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_delegate","type":"address"}],"name":"setDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"eid","type":"uint32"},{"internalType":"uint16","name":"msgType","type":"uint16"},{"internalType":"bytes","name":"options","type":"bytes"}],"internalType":"struct EnforcedOptionParam[]","name":"_enforcedOptions","type":"tuple[]"}],"name":"setEnforcedOptions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_msgInspector","type":"address"}],"name":"setMsgInspector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_eid","type":"uint32"},{"internalType":"bytes32","name":"_peer","type":"bytes32"}],"name":"setPeer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_preCrime","type":"address"}],"name":"setPreCrime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sharedDecimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tos","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"transferBulk","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address[]","name":"tos","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"transferFromBulk","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]'),C=JSON.parse('[{"inputs":[{"internalType":"address","name":"brush","type":"address"},{"internalType":"address","name":"lzEndpoint","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"BurnPhaseNotStarted","type":"error"},{"inputs":[],"name":"InvalidDelegate","type":"error"},{"inputs":[],"name":"InvalidEndpointCall","type":"error"},{"inputs":[],"name":"InvalidLocalDecimals","type":"error"},{"inputs":[{"internalType":"bytes","name":"options","type":"bytes"}],"name":"InvalidOptions","type":"error"},{"inputs":[],"name":"InvalidState","type":"error"},{"inputs":[],"name":"LzTokenUnavailable","type":"error"},{"inputs":[{"internalType":"uint32","name":"eid","type":"uint32"}],"name":"NoPeer","type":"error"},{"inputs":[{"internalType":"uint256","name":"msgValue","type":"uint256"}],"name":"NotEnoughNative","type":"error"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"OnlyEndpoint","type":"error"},{"inputs":[{"internalType":"uint32","name":"eid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"}],"name":"OnlyPeer","type":"error"},{"inputs":[],"name":"OnlySelf","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[{"internalType":"bytes","name":"result","type":"bytes"}],"name":"SimulationResult","type":"error"},{"inputs":[{"internalType":"uint256","name":"amountLD","type":"uint256"},{"internalType":"uint256","name":"minAmountLD","type":"uint256"}],"name":"SlippageExceeded","type":"error"},{"inputs":[],"name":"TokenTransferFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BridgeIn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BridgeOut","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BurnedBridgeBalance","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"uint32","name":"eid","type":"uint32"},{"internalType":"uint16","name":"msgType","type":"uint16"},{"internalType":"bytes","name":"options","type":"bytes"}],"indexed":false,"internalType":"struct EnforcedOptionParam[]","name":"_enforcedOptions","type":"tuple[]"}],"name":"EnforcedOptionSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"inspector","type":"address"}],"name":"MsgInspectorSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"guid","type":"bytes32"},{"indexed":false,"internalType":"uint32","name":"srcEid","type":"uint32"},{"indexed":true,"internalType":"address","name":"toAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountReceivedLD","type":"uint256"}],"name":"OFTReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"guid","type":"bytes32"},{"indexed":false,"internalType":"uint32","name":"dstEid","type":"uint32"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountSentLD","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountReceivedLD","type":"uint256"}],"name":"OFTSent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint32","name":"eid","type":"uint32"},{"indexed":false,"internalType":"bytes32","name":"peer","type":"bytes32"}],"name":"PeerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"preCrimeAddress","type":"address"}],"name":"PreCrimeSet","type":"event"},{"inputs":[],"name":"SEND","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SEND_AND_CALL","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TWO_WAY_BRIDGING","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"srcEid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"}],"internalType":"struct Origin","name":"origin","type":"tuple"}],"name":"allowInitializePath","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"approvalRequired","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"burnRemainingTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnStartTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_eid","type":"uint32"},{"internalType":"uint16","name":"_msgType","type":"uint16"},{"internalType":"bytes","name":"_extraOptions","type":"bytes"}],"name":"combineOptions","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimalConversionRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endpoint","outputs":[{"internalType":"contract ILayerZeroEndpointV2","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"eid","type":"uint32"},{"internalType":"uint16","name":"msgType","type":"uint16"}],"name":"enforcedOptions","outputs":[{"internalType":"bytes","name":"enforcedOption","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"srcEid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"}],"internalType":"struct Origin","name":"","type":"tuple"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"address","name":"_sender","type":"address"}],"name":"isComposeMsgSender","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_eid","type":"uint32"},{"internalType":"bytes32","name":"_peer","type":"bytes32"}],"name":"isPeer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"srcEid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"}],"internalType":"struct Origin","name":"_origin","type":"tuple"},{"internalType":"bytes32","name":"_guid","type":"bytes32"},{"internalType":"bytes","name":"_message","type":"bytes"},{"internalType":"address","name":"_executor","type":"address"},{"internalType":"bytes","name":"_extraData","type":"bytes"}],"name":"lzReceive","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"uint32","name":"srcEid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"}],"internalType":"struct Origin","name":"origin","type":"tuple"},{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"bytes32","name":"guid","type":"bytes32"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"address","name":"executor","type":"address"},{"internalType":"bytes","name":"message","type":"bytes"},{"internalType":"bytes","name":"extraData","type":"bytes"}],"internalType":"struct InboundPacket[]","name":"_packets","type":"tuple[]"}],"name":"lzReceiveAndRevert","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"srcEid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"}],"internalType":"struct Origin","name":"_origin","type":"tuple"},{"internalType":"bytes32","name":"_guid","type":"bytes32"},{"internalType":"bytes","name":"_message","type":"bytes"},{"internalType":"address","name":"_executor","type":"address"},{"internalType":"bytes","name":"_extraData","type":"bytes"}],"name":"lzReceiveSimulate","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"msgInspector","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"","type":"uint32"},{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"nextNonce","outputs":[{"internalType":"uint64","name":"nonce","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oApp","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oAppVersion","outputs":[{"internalType":"uint64","name":"senderVersion","type":"uint64"},{"internalType":"uint64","name":"receiverVersion","type":"uint64"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"oftVersion","outputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"},{"internalType":"uint64","name":"version","type":"uint64"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"eid","type":"uint32"}],"name":"peers","outputs":[{"internalType":"bytes32","name":"peer","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preCrime","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"bytes32","name":"to","type":"bytes32"},{"internalType":"uint256","name":"amountLD","type":"uint256"},{"internalType":"uint256","name":"minAmountLD","type":"uint256"},{"internalType":"bytes","name":"extraOptions","type":"bytes"},{"internalType":"bytes","name":"composeMsg","type":"bytes"},{"internalType":"bytes","name":"oftCmd","type":"bytes"}],"internalType":"struct SendParam","name":"_sendParam","type":"tuple"}],"name":"quoteOFT","outputs":[{"components":[{"internalType":"uint256","name":"minAmountLD","type":"uint256"},{"internalType":"uint256","name":"maxAmountLD","type":"uint256"}],"internalType":"struct OFTLimit","name":"oftLimit","type":"tuple"},{"components":[{"internalType":"int256","name":"feeAmountLD","type":"int256"},{"internalType":"string","name":"description","type":"string"}],"internalType":"struct OFTFeeDetail[]","name":"oftFeeDetails","type":"tuple[]"},{"components":[{"internalType":"uint256","name":"amountSentLD","type":"uint256"},{"internalType":"uint256","name":"amountReceivedLD","type":"uint256"}],"internalType":"struct OFTReceipt","name":"oftReceipt","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"bytes32","name":"to","type":"bytes32"},{"internalType":"uint256","name":"amountLD","type":"uint256"},{"internalType":"uint256","name":"minAmountLD","type":"uint256"},{"internalType":"bytes","name":"extraOptions","type":"bytes"},{"internalType":"bytes","name":"composeMsg","type":"bytes"},{"internalType":"bytes","name":"oftCmd","type":"bytes"}],"internalType":"struct SendParam","name":"_sendParam","type":"tuple"},{"internalType":"bool","name":"_payInLzToken","type":"bool"}],"name":"quoteSend","outputs":[{"components":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"lzTokenFee","type":"uint256"}],"internalType":"struct MessagingFee","name":"msgFee","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"bytes32","name":"to","type":"bytes32"},{"internalType":"uint256","name":"amountLD","type":"uint256"},{"internalType":"uint256","name":"minAmountLD","type":"uint256"},{"internalType":"bytes","name":"extraOptions","type":"bytes"},{"internalType":"bytes","name":"composeMsg","type":"bytes"},{"internalType":"bytes","name":"oftCmd","type":"bytes"}],"internalType":"struct SendParam","name":"_sendParam","type":"tuple"},{"components":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"lzTokenFee","type":"uint256"}],"internalType":"struct MessagingFee","name":"_fee","type":"tuple"},{"internalType":"address","name":"_refundAddress","type":"address"}],"name":"send","outputs":[{"components":[{"internalType":"bytes32","name":"guid","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"},{"components":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"lzTokenFee","type":"uint256"}],"internalType":"struct MessagingFee","name":"fee","type":"tuple"}],"internalType":"struct MessagingReceipt","name":"msgReceipt","type":"tuple"},{"components":[{"internalType":"uint256","name":"amountSentLD","type":"uint256"},{"internalType":"uint256","name":"amountReceivedLD","type":"uint256"}],"internalType":"struct OFTReceipt","name":"oftReceipt","type":"tuple"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_delegate","type":"address"}],"name":"setDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"eid","type":"uint32"},{"internalType":"uint16","name":"msgType","type":"uint16"},{"internalType":"bytes","name":"options","type":"bytes"}],"internalType":"struct EnforcedOptionParam[]","name":"_enforcedOptions","type":"tuple[]"}],"name":"setEnforcedOptions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_msgInspector","type":"address"}],"name":"setMsgInspector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_eid","type":"uint32"},{"internalType":"bytes32","name":"_peer","type":"bytes32"}],"name":"setPeer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_preCrime","type":"address"}],"name":"setPreCrime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sharedDecimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]');let useBrush=()=>(0,i.useMemo)(()=>({abi:E,address:S.X4}),[]),useBrushBridgeFromFantom=()=>(0,i.useMemo)(()=>({abi:C,address:S.UG}),[]),useBrushBridgeFromSonic=()=>(0,i.useMemo)(()=>({abi:C,address:S.ui}),[]);var k=n(92526),R=n(14679),I=n(59691);let tryParseFromEthjsQuery=e=>{try{var t,n,a;console.info("Raw message",e);let i=e.match(/message(?:':\s+'|":\s+")([^'"]+)/),s=i?i[1]:null;if(!s)try{let t=e.indexOf("{"),n=e.lastIndexOf("}"),a=e.substring(t,n+1),i=JSON.parse(a),traverse=e=>{for(let t in e)if("object"==typeof e[t]&&null!==e[t])traverse(e[t]);else if("message"===t){s=e[t];break}};traverse(i)}catch(e){console.error("JSON parsing failed",e);return}let r="".concat(null!==(n=null==s?void 0:null===(t=s[0])||void 0===t?void 0:t.toUpperCase())&&void 0!==n?n:"").concat(null!==(a=null==s?void 0:s.slice(1))&&void 0!==a?a:"");return r}catch(e){return}};var A=n(81938),hooks_useMaterialToastExtra=()=>{let e=(0,i.useContext)(A.N);if(void 0===e)throw Error("Toasts context undefined");return e};let getEvents=(e,t)=>{if(!t)return{};let n=(0,I.h)({abi:e,logs:null==t?void 0:t.logs});return Object.fromEntries(n.map(e=>[e.eventName,e]))},createSendTx=async e=>{let{abi:t,writeContractAsync:n,onErrorMessage:a,writeData:i}=e;try{let e;let a=await n(i);for(let t=0;t<10;++t){try{e=await (0,R.e)(w.wagmiConfig,{hash:a,onReplaced:e=>console.info("Tx replaced:",e)});break}catch(e){if(9===t)throw e}await sleep((t+1)*1e3)}if(!a&&!e)throw Error("No hash and receipt returned");return{receipt:e,events:getEvents(t,e)}}catch(t){var s;console.info(null==t?void 0:t.code,null==t?void 0:t.message,null==t?void 0:t.details,null==t?void 0:t.shortMessage);let e=null!==(s=tryParseFromEthjsQuery(null==t?void 0:t.details))&&void 0!==s?s:null==t?void 0:t.shortMessage;throw a&&e&&a(e),t}};var hooks_useEstimateGasAndSend=e=>{let{abi:t,address:n,method:a}=e,{writeContractAsync:i}=(0,k.S)(),s=hooks_useMaterialToastExtra(),r=null==s?void 0:s.toastInfo,sendTx=async(e,s)=>{let p={abi:t,address:n,functionName:a,args:e,...s?{value:BigInt(s.toString())}:{}};return await createSendTx({abi:t,writeContractAsync:i,onErrorMessage:null!=r?r:()=>{},writeData:p})};return sendTx};let useTxHooksBrushBridge=()=>{let e=useBrushBridgeFromFantom(),t=useBrushBridgeFromSonic(),n=hooks_useEstimateGasAndSend({abi:e.abi,address:e.address,method:"send"}),a=hooks_useEstimateGasAndSend({abi:t.abi,address:t.address,method:"send"});return{estimateGasAndSendBrushBridgeSendFromFantom:n,estimateGasAndSendBrushBridgeSendFromSonic:a}},useTxHooksBrush=()=>{let e=useBrush(),t=hooks_useEstimateGasAndSend({abi:e.abi,address:e.address,method:"approve"}),n=hooks_useEstimateGasAndSend({abi:e.abi,address:e.address,method:"transfer"});return{estimateGasAndSendBrushApprove:t,estimateGasAndSendBrush:n}};var D=n(10777),N=n(16693),hooks_useMultichainCalls=e=>{let{client:t}=e,n=(0,i.useCallback)(async e=>{let{address:n,abi:a,functionName:i,args:s}=e;return new Promise((e,r)=>{t.readContract({address:n,abi:a,functionName:i,args:s}).then(t=>{null!=t?e(t):r(Error("No contract data found"))}).catch(e=>{console.error("Failed reading contract data",e),r(e)})})},[t]),a=(0,i.useCallback)(async e=>{let{txHash:n}=e;return new Promise((e,a)=>{t.getTransactionReceipt({hash:n}).then(t=>{t?e(t):a(Error("Transaction receipt not found"))}).catch(e=>{console.error("Error getting transaction receipt:",e),a(e)})})},[t]),s=(0,i.useCallback)(async e=>{let{address:n}=e;return new Promise((e,a)=>{t.getBalance({address:n}).then(t=>{e(t)}).catch(e=>{console.error("Error getting account balance:",e),a(e)})})},[t]);return{readContractSingle:n,getTransactionReceipt:a,getAccountBalance:s}},hooks_useMultichainTokenBalance=e=>{var t,n;let{client:a,tokenAddress:i,address:s,refresh:r=!0}=e,{readContractSingle:p}=hooks_useMultichainCalls({client:a}),{address:o}=(0,u.m)(),l=s||o,fetchNFTBalance=async()=>{var e;if(!(null==a?void 0:null===(e=a.chain)||void 0===e?void 0:e.id)||!i||!isValidAddressNonStrict(i)||l&&!isValidAddressNonStrict(l))return null;try{let e={address:i,abi:N.Wo,functionName:"balanceOf",args:[l]},t=await p(e);return t?BigInt(t):0n}catch(e){return console.error("Error fetching NFT balance:",e),null}},y=(0,D.a)({queryKey:["useMultichainTokenBalance",null==a?void 0:null===(t=a.chain)||void 0===t?void 0:t.id,i,l,r],queryFn:fetchNFTBalance,enabled:!!(null==a?void 0:null===(n=a.chain)||void 0===n?void 0:n.id)&&!!i&&isValidAddressNonStrict(i)&&!!l&&isValidAddressNonStrict(l),...getBaseAPIQueryOptions(r?S.sR:null)});return y},L=n(41442);let useBrushAllowance=(e,t)=>{let{address:n}=(0,u.m)(),a=useBrush(),s=(0,i.useMemo)(()=>(0,d.U)(e,{strict:!1}),[e]),r=(0,i.useMemo)(()=>(0,d.U)(null!=n?n:"",{strict:!1}),[n]),p=(0,i.useMemo)(()=>(0,d.U)(a.address,{strict:!1}),[a.address]),{data:o,refetch:l,isLoading:y,isError:m,error:c}=(0,L.u)({address:p?a.address:void 0,abi:a.abi,functionName:"allowance",args:r&&s?[n,e]:void 0,query:{enabled:!!r&&!!s&&!!p,refetchInterval:S.sR,staleTime:100}}),b=(0,i.useMemo)(()=>{if(null!=o)try{return BigInt(o.toString())}catch(e){console.error("Error formatting BRUSH allowance:",e)}return t?null:0n},[o,t]),T=(0,i.useCallback)(()=>{r&&s&&p&&l()},[l,r,s,p]),f=(0,i.useMemo)(()=>r?s?p?m?(null==c?void 0:c.message)||"Error fetching BRUSH allowance":"":"Invalid BRUSH token address":"Invalid spender address":"Invalid account address",[r,s,p,m,c]);return{data:b,refetch:T,isLoading:y,isError:m||!r||!s||!p,errorMessage:f}};var P=n(87190),z=n(37003),H=n(82729),U=n(15437),Z=n(2734);function _templateObject(){let e=(0,H._)(['\n /* These can be overridden both by parameter or by styling() */\n /* May have to increase the specificity in some cases such as "${mediaQueries.sm} {}". Then to "&&& { ${mediaQueries.sm}{} }" */\n font-size: ',";\n font-weight: ",";\n line-height: ",";\n color: ",";\n"],['\n /* These can be overridden both by parameter or by styling() */\n /* May have to increase the specificity in some cases such as "\\${mediaQueries.sm} {}". Then to "&&& { \\${mediaQueries.sm}{} }" */\n font-size: ',";\n font-weight: ",";\n line-height: ",";\n color: ",";\n"]);return _templateObject=function(){return e},e}let getFontSize=(e,t)=>e?"14px":t,V=(0,U.ZP)(e=>{let{small:t,bold:n,fontSize:i,color:s,lineHeight:r,muiTheme:p,...u}=e;return(0,a.jsx)(g.Z,{...u})})(_templateObject(),e=>{let{small:t,fontSize:n}=e;return getFontSize(null!=t&&t,null!=n?n:"16px")},e=>{let{bold:t}=e;return t?700:400},e=>{let{lineHeight:t}=e;return t},e=>{let{muiTheme:t,color:n}=e;return n?(null==t?void 0:t.palette[n]).main:null==t?void 0:t.palette.secondary.main});var Components_SuperText=e=>{let{small:t=!1,bold:n=!1,fontSize:i="16px",color:s,lineHeight:r=1.5,children:p,...u}=e,o=(0,Z.Z)(),l=(0,a.jsx)(V,{muiTheme:o,small:t,bold:n,fontSize:i,color:s,lineHeight:r,...u,children:p});return l},q=n(84243),$=n(69417),G=n(41664),Q=n.n(G);function SuperButton_templateObject(){let e=(0,H._)(["\n border-radius: 4px;\n text-transform: capitalize;\n pointer-events: auto !important;\n padding-left: 16px;\n padding-right: 16px;\n line-height: 1.1;\n min-width: 54px;\n ","\n\n ","\n\n :hover {\n cursor: ",";\n\n ","\n }\n\n path {\n ","\n }\n\n svg {\n transform: ",";\n ","\n ","\n }\n\n ","\n\n ","\n\n "," {\n ","\n }\n\n span {\n ","\n }\n\n ","\n"]);return SuperButton_templateObject=function(){return e},e}function _templateObject1(){let e=(0,H._)(["\n svg {\n color: ",";\n }\n"]);return _templateObject1=function(){return e},e}let W=(0,U.ZP)(e=>{let{muiTheme:t,isDark:n,rotate:i,fullBelowBreakpoint:s,containschildren:r,iconWidth:p,iconHeight:u,tooltip:o,tooltipPlacement:l,loading:y,ant:d,...m}=e;return(0,a.jsx)(q.Z,{title:o||"",placement:l,children:(0,a.jsx)($.Z,{...m})})})(SuperButton_templateObject(),e=>{let{size:t,ant:n}=e;return"small"===t&&n&&"font-size: 0.7125rem;"},e=>{let{variant:t,isDark:n}=e;return"outlined"===t&&"\n border: ".concat(n?"1px solid rgb(109 162 243 / 50%)":"2px solid rgb(24 59 110 / 50%)",";\n ")},e=>{let{disabled:t}=e;return t?"var(--cursor-not-allowed)":"var(--cursor-pointer)"},e=>{let{variant:t,isDark:n}=e;return"outlined"===t&&"\n border: ".concat(n?"1px solid #c0d6f7":"2px solid #37474f",";\n ")},e=>{let{muiTheme:t,color:n,variant:a}=e;return"contained"===a?"fill: ".concat(t.palette[n||"primary"].contrastText,";"):""},e=>{let{rotate:t}=e;return t?"rotate(".concat(t,"deg)"):"none"},e=>{let{iconWidth:t}=e;return t&&"width: ".concat(t,";")},e=>{let{iconHeight:t}=e;return t&&"height: ".concat(t,";")},e=>{let{height:t}=e;return t&&"height: ".concat(t,";")},e=>{let{fullBelowBreakpoint:t,width:n}=e;return t?"width: 100%;":n&&"width: ".concat(n,";")},e=>{let{fullBelowBreakpoint:t}=e;return t},e=>{let{width:t}=e;return t?"width: ".concat(t,";"):"width: fit-content;"},e=>{let{disabled:t,loading:n}=e;return t&&!n&&"opacity: 0.5;"},e=>{let{containschildren:t}=e;return!t&&"\n .MuiButton-startIcon {\n margin-right: 0;\n margin-left: 0;\n }\n .MuiButton-endIcon {\n margin-right: 0;\n margin-left: 0;\n }\n padding-left: 0;\n padding-right: 0;\n "}),X=(0,U.ZP)(e=>{let{muiTheme:t,size:n,...i}=e;return(0,a.jsx)(f.Z,{size:n,...i})})(_templateObject1(),e=>{let{muiTheme:t}=e;return t.palette.subtle.main});var Components_SuperButton=e=>{let t,{onClick:n,href:i,externalLink:s,variant:r="outlined",color:p="primary",size:u="large",startIcon:o,endIcon:l,disabled:y=!1,tooltip:d,tooltipPlacement:m="right",loading:c,loadingPosition:b="start",height:T,children:f,...g}=e,v=(0,Z.Z)();switch(u){case"small":t=null!=T?T:"32px";break;case"medium":t=null!=T?T:"40px";break;default:t=null!=T?T:"48px"}let h=(0,a.jsx)(W,{size:u||"large",height:t,onClick:y?void 0:n,variant:r,disabled:y,loading:c,startIcon:c&&("start"===b||"center"===b)?(0,a.jsx)(X,{size:"1rem",muiTheme:v}):o,endIcon:c&&"end"===b?(0,a.jsx)(X,{size:"1rem",muiTheme:v}):l,href:y?void 0:i,LinkComponent:s?"a":Q(),to:y?void 0:i,target:s?"_blank":void 0,color:p,containschildren:(!c||"center"!==b)&&!!f,muiTheme:v,isDark:!0,tooltip:d,tooltipPlacement:m,ant:!1,component:y?"div":void 0,focusRipple:!0,...g,children:c&&"center"===b?void 0:f});return h},K=n(4989);function GameInput_templateObject(){let e=(0,H._)(["\n border-radius: 8px;\n\n fieldset {\n border-radius: 8px;\n }\n"]);return GameInput_templateObject=function(){return e},e}let J=(0,U.ZP)(K.Z)(GameInput_templateObject()),Y=i.forwardRef(function(e,t){let{min:n,max:s,startAdornment:r,endAdornment:p,mode:u="numeric",disableReturn:o=!1,disabledShift:l=!1,error:y=null,onEnter:d,onEscape:m,...c}=e;return(0,i.useEffect)(()=>{let e=null==t?void 0:t.current,focusHandler=()=>{if(e){let{length:t}=e.value;e.setSelectionRange(t,t)}};return e&&e.addEventListener("focus",focusHandler),()=>{e&&e.removeEventListener("focus",focusHandler)}},[t]),(0,a.jsx)(J,{inputProps:{inputMode:u,min:n,max:s,onKeyDown:e=>{"Enter"===e.key&&(!e.shiftKey||e.shiftKey&&l)&&o&&(e.preventDefault(),d&&d()),"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),m&&m())}},InputProps:{startAdornment:r,endAdornment:p},InputLabelProps:{shrink:!0},size:"small",error:null!=y&&y,inputRef:t,...c})}),FormInputText=e=>{let{name:t,control:n,label:i,mode:s,min:r,max:p,placeholder:u,autoComplete:o,disabled:l,rules:y,multiline:d,disableReturn:m,disabledShift:c,hideHelperText:b,endAdornment:T,startAdornment:f,onEnter:g,onChangeInput:v}=e;return(0,a.jsx)(B.Qr,{name:t,control:n,rules:y,render:e=>{let{field:{onChange:t,value:n},fieldState:{error:y}}=e;return(0,a.jsx)(Y,{helperText:(null==y?void 0:y.type)==="totalNotExceed"?null:b?null:y?y.message:" ",error:!!y,onChange:e=>{v&&v(e),t(e)},value:n,fullWidth:!0,label:i,variant:"outlined",mode:s,min:r,max:p,placeholder:u,autoComplete:o,disabled:l,multiline:d,disableReturn:m,disabledShift:c,startAdornment:f,endAdornment:T,onEnter:g})}})};var ee=n(25675),et=n.n(ee),en=n(13123),ea=n.n(en);let noFantom=(e,t)=>(0,a.jsx)(a.Fragment,{children:!e&&(0,a.jsx)("div",{className:r().switchContent,onClick:()=>t({chainId:250}),children:(0,a.jsxs)(c.Z,{spacing:1,alignItems:"center",direction:"row",children:[(0,a.jsx)(Components_SuperText,{textAlign:"center",width:"100%",fontSize:"14px",color:"warning",children:"Switch to Fantom Network"}),(0,a.jsx)(et(),{src:"/images/fantom.png",alt:"F",width:22,height:22})]})})}),noSonic=(e,t)=>(0,a.jsx)(a.Fragment,{children:!e&&(0,a.jsx)("div",{className:r().switchContent,onClick:()=>t({chainId:S.zN}),children:(0,a.jsxs)(c.Z,{spacing:1,alignItems:"center",direction:"row",children:[(0,a.jsx)(Components_SuperText,{textAlign:"center",width:"100%",fontSize:"14px",color:"warning",children:"Switch to Sonic Network"}),(0,a.jsx)(et(),{src:"/images/sonic.png",alt:"S",width:22,height:22})]})})});var pages=()=>{var e;let[t,n]=(0,i.useState)(void 0),[s,y]=(0,i.useState)(250),[m,h]=(0,i.useState)(0),[E,C]=(0,i.useState)(!1),[k,R]=(0,i.useState)(!1),[I,A]=(0,i.useState)(!1),[D,N]=(0,i.useState)(!1),[L,H]=(0,i.useState)(!1),[U,Z]=(0,i.useState)(0xd3c21bcecceda1000000n),{address:V,chain:q}=(0,u.m)(),{open:$}=(0,p.k_)(),{switchChain:G,switchChainAsync:Q}=(0,o.o)({config:w.wagmiConfig,mutation:{onSuccess(){console.info("Switch Network Success")}}}),W=(0,i.useRef)(m),X=(0,i.useRef)(V),K=(0,_.v)({chain:S.ZU,transport:(0,l.t)([...(0,w.createHttpTransports)(S.YD)],{rank:{interval:6e4}})}),J=(0,_.v)({chain:S.qB,transport:(0,l.t)([...(0,w.createHttpTransports)(S.ts)],{rank:{interval:6e4}})}),Y=(null==q?void 0:q.id)===S.oA,ee=(null==q?void 0:q.id)===S.zN,en=0===m&&!Y||1===m&&!ee,ei=(null===(e=process.env)||void 0===e?void 0:"67208fc2a5c53de1dd3efe855b2d3724")||"",{handleSubmit:es,setValue:er,trigger:ep,control:eu,formState:{isValid:eo,errors:el}}=(0,B.cI)({mode:"all",shouldUseNativeValidation:!1,defaultValues:{amount:"",address:null!=V?V:""}}),ey=(0,B.qo)({control:eu,name:"amount"}),ed=(0,B.qo)({control:eu,name:"address"}),em=(0,i.useMemo)(()=>{var e;return Number.isFinite(Number(ey))&&null!==(e=null==ey?void 0:ey.toString())&&void 0!==e?e:"0"},[ey]),ec=(0,i.useMemo)(()=>E||k||!V||D||L,[E,k,V,D,L]),eb=(0,F.Z)(),eT=null==eb?void 0:eb.toastError,ef=null==eb?void 0:eb.toastSuccess,eg=useBrushBridgeFromFantom(),ev=useBrushBridgeFromSonic(),{estimateGasAndSendBrushBridgeSendFromFantom:eh,estimateGasAndSendBrushBridgeSendFromSonic:ex}=useTxHooksBrushBridge(),{estimateGasAndSendBrushApprove:ew}=useTxHooksBrush(),{data:eS,refetch:e_}=hooks_useMultichainTokenBalance({client:J,tokenAddress:ev.address,address:V,refresh:!0}),{data:eM,refetch:ej}=hooks_useMultichainTokenBalance({client:K,tokenAddress:S.X4,address:V,refresh:!0}),eO=(0,M.d)(null!=eS?eS:0n),eB=(0,M.d)(null!=eM?eM:0n),{data:eF}=useBrushAllowance(eg.address,!0);(0,i.useEffect)(()=>{console.info("WC","".concat(null==ei?void 0:ei.slice(0,4),"..."))},[ei]),(0,i.useEffect)(()=>{V?n(V):n(void 0)},[V]),(0,i.useEffect)(()=>{(null==q?void 0:q.id)&&(null==q?void 0:q.id)!==s&&y(q.id)},[null==q?void 0:q.id,s]),(0,i.useEffect)(()=>{null!==eF&&Z(null!=eF?eF:0n)},[eF]),(0,i.useEffect)(()=>{X.current!==V&&(A(!1),er("address",null!=V?V:""),ep("address"),ep("amount")),X.current=V},[V,er,ep]),(0,i.useEffect)(()=>{W.current!==m&&(ep("amount"),ep("address")),W.current=m},[m,ep]),(0,i.useEffect)(()=>{void 0!==eM&&N(!1)},[eM]),(0,i.useEffect)(()=>{void 0!==eS&&H(!1)},[eS]);let eE=(0,i.useMemo)(()=>U<(0,j.f)(em)&&!I&&0===m,[U,I,em,m]),toggleDirection=e=>{h(e)},onBridge=async e=>{var t;let n=(0,j.f)(null!==(t=e.amount)&&void 0!==t?t:"0"),a=e.address;if(!V||!n||!a||!(0,d.U)(a,{strict:!1})||a.toLowerCase()!==ed.toLowerCase()||e.amount!==ey||en)return;let i=0===m;if(i&&eE){C(!0);try{let{receipt:e,events:t}=await ew([eg.address,n]),a=BigInt(null==t?void 0:t.Approval.args.value.toString()),i=a>=n;if(!i){eT&&eT("Approval amount is not enough. Please try again.","Failed");return}ef&&ef("Approved BRUSH!","Success")}catch(e){console.error("Failed approving BRUSH:",e),eT&&eT("Could not approve BRUSH. Please try again.","Failed");return}finally{await sleep(2e3),C(!1),A(!1),R(!1)}}i?console.info("Bridging ".concat(e.amount," BRUSH from Fantom to Sonic")):console.info("Bridging ".concat(e.amount," BRUSH from Sonic to Fantom")),R(!0);try{let t=P.Ei.newOptions().addExecutorLzReceiveOption(2e5,0).toHex().toString(),s={dstEid:i?30332:30112,to:(0,O.vk)(a,{size:32}),amountLD:n,minAmountLD:n,extraOptions:t,composeMsg:"0x",oftCmd:"0x"},r=await (0,z.L)(w.wagmiConfig,{abi:i?eg.abi:ev.abi,address:i?eg.address:ev.address,functionName:"quoteSend",args:[s,!1]});if(!r||0n===r.nativeFee){eT&&eT("Can't get bridge fee. Please try again.","Failed");return}console.info("Bridge fee:",r);let p={nativeFee:r.nativeFee,lzTokenFee:0n},u=i?eh:ex,{receipt:o,events:l}=await u([s,p,V],r.nativeFee);console.info("Bridge receipt:",o),i?(ef&&ef("Sent ".concat(e.amount," BRUSH! Funds will arrive on Sonic shortly."),"Success"),H(!0)):(ef&&ef("Sent ".concat(e.amount," BRUSH! Funds will arrive on Fantom shortly."),"Success"),N(!0)),er("amount",""),await sleep(1e3),ej(),e_(),trackEvent("BRUSH Bridging","Bridged BRUSH to ".concat(i?"Sonic":"Fantom"),"Bridge done")}catch(e){console.error("Failed bridging BRUSH:",e),eT&&eT("Could not bridge BRUSH. Please try again.","Failed"),trackEvent("BRUSH Bridging","Failed: Bridging BRUSH to ".concat(i?"Sonic":"Fantom"),"Contract Fail: ".concat(null==e?void 0:e.code))}finally{R(!1),A(!1)}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(x(),{children:[(0,a.jsx)("title",{children:"$BRUSH Bridge"}),(0,a.jsx)("meta",{name:"description",content:"Bridge $BRUSH between Fantom and Sonic"}),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,a.jsx)("link",{rel:"icon",href:"/favicon.ico"}),(0,a.jsx)("meta",{name:"keywords",content:"brush, $brush, bridge, fantom, sonic, $S"}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,a.jsx)("meta",{name:"twitter:title",content:"BRUSH Bridge"}),(0,a.jsx)("meta",{name:"twitter:image",content:"https://bridge.paintswap.io/og.png"}),(0,a.jsx)("meta",{name:"twitter:domain",content:"bridge.paintswap.io"}),(0,a.jsx)("meta",{name:"twitter:site",content:"@paintoshi"}),(0,a.jsx)("meta",{name:"twitter:creator",content:"@paintoshi"}),(0,a.jsx)("meta",{name:"twitter:description",content:"Bridge $BRUSH between Fantom and Sonic"}),(0,a.jsx)("meta",{property:"og:title",content:"BRUSH Bridge"}),(0,a.jsx)("meta",{property:"og:description",content:"Bridge $BRUSH between Fantom and Sonic"}),(0,a.jsx)("meta",{property:"og:image",content:"https://bridge.paintswap.io/og.png"}),(0,a.jsx)("meta",{property:"og:url",content:"https://bridge.paintswap.io"})]}),(0,a.jsx)("main",{className:"".concat(ea().className," ").concat(r().main),children:(0,a.jsx)("div",{className:r().center,children:(0,a.jsxs)("div",{className:r().mainPanel,children:[(0,a.jsx)("h1",{className:r().title,children:"BRUSH Bridge"}),(0,a.jsxs)("p",{className:r().titleSub,children:["Move $BRUSH between Fantom and Sonic",(0,a.jsx)("br",{})]}),(0,a.jsxs)(c.Z,{width:"100%",spacing:2,alignItems:"center",pt:"16px",children:[(0,a.jsxs)(c.Z,{width:"100%",direction:{xs:"column",sm:"row"},alignItems:"center",justifyContent:"space-between",spacing:2,children:[t&&(0,a.jsx)(Components_SuperButton,{size:"large",width:"100%",variant:"contained",onClick:()=>$(),children:abbreviateAddressAsString(null!=V?V:"N/A")}),!t&&(0,a.jsx)(Components_SuperButton,{size:"large",width:"100%",variant:"contained",onClick:()=>$(),children:"Connect Wallet"})]}),(0,a.jsxs)(c.Z,{width:"100%",spacing:2,alignItems:"center",children:[(0,a.jsxs)(c.Z,{width:"100%",spacing:1.5,alignItems:"center",children:[(0,a.jsxs)(b.Z,{fullWidth:!0,value:m,size:"medium",exclusive:!0,onChange:e=>toggleDirection(Number(e.target.value)),disabled:ec,children:[(0,a.jsx)(T.Z,{value:0,"aria-label":"fantom-to-sonic",children:"To Sonic"}),(0,a.jsx)(T.Z,{value:1,"aria-label":"sonic-to-fantom",children:"To Fantom"})]}),1===m&&(0,a.jsx)(Components_SuperText,{fontSize:"12px",lineHeight:.5,color:"warning",children:"Sonic to Fantom bridge ends on Mar 28th, 2025"})]}),(0,a.jsxs)(c.Z,{width:"fit-content",spacing:.5,alignItems:"center",children:[(0,a.jsx)(Components_SuperText,{children:"BRUSH Balances"}),(0,a.jsxs)(c.Z,{spacing:2,width:"100%",justifyContent:"center",direction:"row",children:[(0,a.jsxs)(c.Z,{spacing:1,alignItems:"end",justifyContent:"space-around",children:[(0,a.jsx)(Components_SuperText,{fontSize:"14px",color:"subtle",children:(0,a.jsx)("a",{href:"https://ftmscan.com/token/".concat(S.X4,"?a=").concat(V),target:"_blank",children:"On Fantom"})}),(0,a.jsx)(Components_SuperText,{fontSize:"14px",color:"subtle",children:(0,a.jsx)("a",{href:"https://sonicscan.org/token/".concat(ev.address,"?a=").concat(V),target:"_blank",children:"On Sonic"})})]}),(0,a.jsxs)(c.Z,{spacing:1,justifyContent:"space-around",children:[(0,a.jsxs)(c.Z,{spacing:1,direction:"row",alignItems:"center",children:[(0,a.jsx)(et(),{src:"/images/brush_dark.png",alt:"$BRUSH",width:22,height:22}),(0,a.jsx)(Components_SuperText,{children:formatNumber(eB,0,6)}),D&&(0,a.jsx)(f.Z,{size:18})]}),(0,a.jsxs)(c.Z,{spacing:1,direction:"row",alignItems:"center",children:[(0,a.jsx)(et(),{src:"/images/brush_dark.png",alt:"$BRUSH",width:22,height:22}),(0,a.jsx)(Components_SuperText,{children:formatNumber(eO,0,6)}),L&&(0,a.jsx)(f.Z,{size:18})]})]})]})]}),(0,a.jsx)("form",{onSubmit:es(onBridge),style:{width:"100%"},children:(0,a.jsxs)(c.Z,{width:"100%",spacing:2,alignItems:"center",children:[(0,a.jsx)(FormInputText,{mode:"text",name:"amount",control:eu,label:"BRUSH Amount",placeholder:0===m?eB:eO,autoComplete:"off",disabled:ec,disableReturn:!0,min:0,max:0===m?Number(eB):Number(eO),endAdornment:(0,a.jsx)(Components_SuperButton,{size:"small",variant:"text",onClick:()=>{er("amount",0===m?eB:eO),ep("amount")},style:{marginLeft:"8px",padding:"0px 8px",minWidth:"40px",maxHeight:"24px"},disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,disabled:ec||!V,children:"Max"}),rules:{required:"Required",min:{value:1e-6,message:"Must be at least ".concat(1e-6)},max:{value:0===m?Number(eB):Number(eO),message:"Max ".concat(0===m?eB:eO)},validate:{isNumber:e=>/^\d+\.?\d*$/.test(e)||"Must be a number",maxDecimals:e=>!e.includes(".")||e.split(".")[1].length<=6||"Max 6 decimals"}}}),(0,a.jsx)(FormInputText,{mode:"text",name:"address",control:eu,label:(0,a.jsxs)("span",{style:{color:"#ffffffb3"},children:["Bridge To",(null==V?void 0:V.toLowerCase())===(null==ed?void 0:ed.toLowerCase())?(0,a.jsx)("span",{style:{color:"#66bb6a"},children:" (Self)"}):(0,a.jsx)("span",{style:{color:"#ffa726"},children:" (Other)"})]}),placeholder:"0x...",autoComplete:"off",disabled:ec,disableReturn:!0,endAdornment:(0,a.jsx)(Components_SuperButton,{size:"small",variant:"text",onClick:()=>{er("address",null!=V?V:""),ep("address")},style:{marginLeft:"8px",padding:"0px 8px",minWidth:"40px",maxHeight:"24px"},disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,disabled:ec||!V,children:"Self"}),rules:{required:"Address is required",validate:e=>(0,d.U)(e,{strict:!1})?null:"Invalid Address"}}),(0,a.jsxs)(c.Z,{width:"fit-content",children:[0===m&&!Y&&V&&noFantom(Y,G),1===m&&!ee&&V&&noSonic(ee,G)]}),(0,a.jsx)(Components_SuperButton,{size:"large",type:"submit",variant:"contained",width:"100%",loading:E||k||D||L,disabled:ec||!eo||en,children:eE&&!k?E?"Approving...":"Approve":k?"Bridging...":"Bridge ".concat(0===m?"to Sonic":"to Fantom")})]})})]})]}),(0,a.jsx)(g.Z,{width:"100%",mt:"16px",mb:"16px",children:(0,a.jsx)(v.Z,{})}),(0,a.jsxs)(g.Z,{mb:"0",children:[(0,a.jsx)(Components_SuperText,{fontSize:"12px",color:"subtle",children:"No extra fees are added by us"}),(0,a.jsx)("a",{href:"https://paintswap.finance",target:"_blank",className:r().linkContent,children:(0,a.jsxs)(c.Z,{width:"100%",direction:"row",justifyContent:"center",spacing:1,mt:"4px",children:[(0,a.jsx)(et(),{src:"/images/paintswap_logo.svg",alt:"PaintSwap",width:24,height:24}),(0,a.jsx)("span",{children:"Visit PaintSwap"})]})})]})]})})})]})}},36612:function(e){e.exports={main:"Home_main__VkIEL",center:"Home_center__O_TIN",title:"Home_title__hYX6j",titleSub:"Home_titleSub__nszZn",sub:"Home_sub__3Mk3_",mainPanel:"Home_mainPanel__6Ksuj",mainButton:"Home_mainButton__nIVdf",linkContent:"Home_linkContent__DTk1m",switchContent:"Home_switchContent__Z9CQd"}},46601:function(){}},function(e){e.O(0,[550,258,774,888,179],function(){return e(e.s=48312)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{48312:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(61090)}])},61090:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return pages}});var a=n(85893),i=n(67294),s=n(36612),r=n.n(s),p=n(56441),u=n(92321),o=n(88168),l=n(5870),y=n(49089),d=n(49321),m=n(70794);let firstFew=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;return e.substring(0,t)},lastFew=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;return e.slice(-t)},abbreviateAddressAsString=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;try{return"".concat(firstFew(e,t+1),"...").concat(lastFew(e,t))}catch(e){return null}};function trackEvent(e,t,n,a){y.ZP.event({action:e,category:null!=t?t:"event",label:null!=n?n:"event",value:null!=a?a:0})}let sleep=e=>new Promise(t=>setTimeout(t,e)),getBaseAPIQueryOptions=e=>({staleTime:e?2e3:1/0,refetchInterval:null!=e?e:0,refetchIntervalInBackground:!1,retry:5,retryOnMount:!0,retryDelay:e=>(1+2**e)*1e3});function isValidAddressNonStrict(e){return(0,d.U)(e,{strict:!1})}let formatNumber=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if((null==e?void 0:e.toString())==="0")return"0";let i=a?new m.Z(null!=e?e:"0").div("1000000000000000000").toNumber():new m.Z(null!=e?e:"0");return Number(i).toLocaleString("en-US",{minimumFractionDigits:t,maximumFractionDigits:n})};var c=n(31536),b=n(33454),T=n(96420),f=n(98456),g=n(87357),h=n(21519),v=n(9008),x=n.n(v),w=n(66398),S=n(71268),_=n(54261),M=n(39625),F=n(33305),j=n(61769),O=n(87536),B=n(80455),E=JSON.parse('[{"inputs":[{"internalType":"address","name":"lzEndpoint","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[],"name":"InvalidDelegate","type":"error"},{"inputs":[],"name":"InvalidEndpointCall","type":"error"},{"inputs":[],"name":"InvalidLocalDecimals","type":"error"},{"inputs":[{"internalType":"bytes","name":"options","type":"bytes"}],"name":"InvalidOptions","type":"error"},{"inputs":[],"name":"LengthMismatch","type":"error"},{"inputs":[],"name":"LzTokenUnavailable","type":"error"},{"inputs":[{"internalType":"uint32","name":"eid","type":"uint32"}],"name":"NoPeer","type":"error"},{"inputs":[{"internalType":"uint256","name":"msgValue","type":"uint256"}],"name":"NotEnoughNative","type":"error"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"OnlyEndpoint","type":"error"},{"inputs":[{"internalType":"uint32","name":"eid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"}],"name":"OnlyPeer","type":"error"},{"inputs":[],"name":"OnlySelf","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[{"internalType":"bytes","name":"result","type":"bytes"}],"name":"SimulationResult","type":"error"},{"inputs":[{"internalType":"uint256","name":"amountLD","type":"uint256"},{"internalType":"uint256","name":"minAmountLD","type":"uint256"}],"name":"SlippageExceeded","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"uint32","name":"eid","type":"uint32"},{"internalType":"uint16","name":"msgType","type":"uint16"},{"internalType":"bytes","name":"options","type":"bytes"}],"indexed":false,"internalType":"struct EnforcedOptionParam[]","name":"_enforcedOptions","type":"tuple[]"}],"name":"EnforcedOptionSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"inspector","type":"address"}],"name":"MsgInspectorSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"guid","type":"bytes32"},{"indexed":false,"internalType":"uint32","name":"srcEid","type":"uint32"},{"indexed":true,"internalType":"address","name":"toAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountReceivedLD","type":"uint256"}],"name":"OFTReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"guid","type":"bytes32"},{"indexed":false,"internalType":"uint32","name":"dstEid","type":"uint32"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountSentLD","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountReceivedLD","type":"uint256"}],"name":"OFTSent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint32","name":"eid","type":"uint32"},{"indexed":false,"internalType":"bytes32","name":"peer","type":"bytes32"}],"name":"PeerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"preCrimeAddress","type":"address"}],"name":"PreCrimeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"SEND","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SEND_AND_CALL","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"srcEid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"}],"internalType":"struct Origin","name":"origin","type":"tuple"}],"name":"allowInitializePath","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"approvalRequired","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_eid","type":"uint32"},{"internalType":"uint16","name":"_msgType","type":"uint16"},{"internalType":"bytes","name":"_extraOptions","type":"bytes"}],"name":"combineOptions","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimalConversionRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endpoint","outputs":[{"internalType":"contract ILayerZeroEndpointV2","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"eid","type":"uint32"},{"internalType":"uint16","name":"msgType","type":"uint16"}],"name":"enforcedOptions","outputs":[{"internalType":"bytes","name":"enforcedOption","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"srcEid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"}],"internalType":"struct Origin","name":"","type":"tuple"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"address","name":"_sender","type":"address"}],"name":"isComposeMsgSender","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_eid","type":"uint32"},{"internalType":"bytes32","name":"_peer","type":"bytes32"}],"name":"isPeer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"srcEid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"}],"internalType":"struct Origin","name":"_origin","type":"tuple"},{"internalType":"bytes32","name":"_guid","type":"bytes32"},{"internalType":"bytes","name":"_message","type":"bytes"},{"internalType":"address","name":"_executor","type":"address"},{"internalType":"bytes","name":"_extraData","type":"bytes"}],"name":"lzReceive","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"uint32","name":"srcEid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"}],"internalType":"struct Origin","name":"origin","type":"tuple"},{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"bytes32","name":"guid","type":"bytes32"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"address","name":"executor","type":"address"},{"internalType":"bytes","name":"message","type":"bytes"},{"internalType":"bytes","name":"extraData","type":"bytes"}],"internalType":"struct InboundPacket[]","name":"_packets","type":"tuple[]"}],"name":"lzReceiveAndRevert","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"srcEid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"}],"internalType":"struct Origin","name":"_origin","type":"tuple"},{"internalType":"bytes32","name":"_guid","type":"bytes32"},{"internalType":"bytes","name":"_message","type":"bytes"},{"internalType":"address","name":"_executor","type":"address"},{"internalType":"bytes","name":"_extraData","type":"bytes"}],"name":"lzReceiveSimulate","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"msgInspector","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"","type":"uint32"},{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"nextNonce","outputs":[{"internalType":"uint64","name":"nonce","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oApp","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oAppVersion","outputs":[{"internalType":"uint64","name":"senderVersion","type":"uint64"},{"internalType":"uint64","name":"receiverVersion","type":"uint64"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"oftVersion","outputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"},{"internalType":"uint64","name":"version","type":"uint64"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"eid","type":"uint32"}],"name":"peers","outputs":[{"internalType":"bytes32","name":"peer","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preCrime","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"bytes32","name":"to","type":"bytes32"},{"internalType":"uint256","name":"amountLD","type":"uint256"},{"internalType":"uint256","name":"minAmountLD","type":"uint256"},{"internalType":"bytes","name":"extraOptions","type":"bytes"},{"internalType":"bytes","name":"composeMsg","type":"bytes"},{"internalType":"bytes","name":"oftCmd","type":"bytes"}],"internalType":"struct SendParam","name":"_sendParam","type":"tuple"}],"name":"quoteOFT","outputs":[{"components":[{"internalType":"uint256","name":"minAmountLD","type":"uint256"},{"internalType":"uint256","name":"maxAmountLD","type":"uint256"}],"internalType":"struct OFTLimit","name":"oftLimit","type":"tuple"},{"components":[{"internalType":"int256","name":"feeAmountLD","type":"int256"},{"internalType":"string","name":"description","type":"string"}],"internalType":"struct OFTFeeDetail[]","name":"oftFeeDetails","type":"tuple[]"},{"components":[{"internalType":"uint256","name":"amountSentLD","type":"uint256"},{"internalType":"uint256","name":"amountReceivedLD","type":"uint256"}],"internalType":"struct OFTReceipt","name":"oftReceipt","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"bytes32","name":"to","type":"bytes32"},{"internalType":"uint256","name":"amountLD","type":"uint256"},{"internalType":"uint256","name":"minAmountLD","type":"uint256"},{"internalType":"bytes","name":"extraOptions","type":"bytes"},{"internalType":"bytes","name":"composeMsg","type":"bytes"},{"internalType":"bytes","name":"oftCmd","type":"bytes"}],"internalType":"struct SendParam","name":"_sendParam","type":"tuple"},{"internalType":"bool","name":"_payInLzToken","type":"bool"}],"name":"quoteSend","outputs":[{"components":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"lzTokenFee","type":"uint256"}],"internalType":"struct MessagingFee","name":"msgFee","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"bytes32","name":"to","type":"bytes32"},{"internalType":"uint256","name":"amountLD","type":"uint256"},{"internalType":"uint256","name":"minAmountLD","type":"uint256"},{"internalType":"bytes","name":"extraOptions","type":"bytes"},{"internalType":"bytes","name":"composeMsg","type":"bytes"},{"internalType":"bytes","name":"oftCmd","type":"bytes"}],"internalType":"struct SendParam","name":"_sendParam","type":"tuple"},{"components":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"lzTokenFee","type":"uint256"}],"internalType":"struct MessagingFee","name":"_fee","type":"tuple"},{"internalType":"address","name":"_refundAddress","type":"address"}],"name":"send","outputs":[{"components":[{"internalType":"bytes32","name":"guid","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"},{"components":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"lzTokenFee","type":"uint256"}],"internalType":"struct MessagingFee","name":"fee","type":"tuple"}],"internalType":"struct MessagingReceipt","name":"msgReceipt","type":"tuple"},{"components":[{"internalType":"uint256","name":"amountSentLD","type":"uint256"},{"internalType":"uint256","name":"amountReceivedLD","type":"uint256"}],"internalType":"struct OFTReceipt","name":"oftReceipt","type":"tuple"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_delegate","type":"address"}],"name":"setDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"eid","type":"uint32"},{"internalType":"uint16","name":"msgType","type":"uint16"},{"internalType":"bytes","name":"options","type":"bytes"}],"internalType":"struct EnforcedOptionParam[]","name":"_enforcedOptions","type":"tuple[]"}],"name":"setEnforcedOptions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_msgInspector","type":"address"}],"name":"setMsgInspector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_eid","type":"uint32"},{"internalType":"bytes32","name":"_peer","type":"bytes32"}],"name":"setPeer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_preCrime","type":"address"}],"name":"setPreCrime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sharedDecimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tos","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"transferBulk","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address[]","name":"tos","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"transferFromBulk","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]'),C=JSON.parse('[{"inputs":[{"internalType":"address","name":"brush","type":"address"},{"internalType":"address","name":"lzEndpoint","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"BurnPhaseNotStarted","type":"error"},{"inputs":[],"name":"InvalidDelegate","type":"error"},{"inputs":[],"name":"InvalidEndpointCall","type":"error"},{"inputs":[],"name":"InvalidLocalDecimals","type":"error"},{"inputs":[{"internalType":"bytes","name":"options","type":"bytes"}],"name":"InvalidOptions","type":"error"},{"inputs":[],"name":"InvalidState","type":"error"},{"inputs":[],"name":"LzTokenUnavailable","type":"error"},{"inputs":[{"internalType":"uint32","name":"eid","type":"uint32"}],"name":"NoPeer","type":"error"},{"inputs":[{"internalType":"uint256","name":"msgValue","type":"uint256"}],"name":"NotEnoughNative","type":"error"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"OnlyEndpoint","type":"error"},{"inputs":[{"internalType":"uint32","name":"eid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"}],"name":"OnlyPeer","type":"error"},{"inputs":[],"name":"OnlySelf","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[{"internalType":"bytes","name":"result","type":"bytes"}],"name":"SimulationResult","type":"error"},{"inputs":[{"internalType":"uint256","name":"amountLD","type":"uint256"},{"internalType":"uint256","name":"minAmountLD","type":"uint256"}],"name":"SlippageExceeded","type":"error"},{"inputs":[],"name":"TokenTransferFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BridgeIn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BridgeOut","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BurnedBridgeBalance","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"uint32","name":"eid","type":"uint32"},{"internalType":"uint16","name":"msgType","type":"uint16"},{"internalType":"bytes","name":"options","type":"bytes"}],"indexed":false,"internalType":"struct EnforcedOptionParam[]","name":"_enforcedOptions","type":"tuple[]"}],"name":"EnforcedOptionSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"inspector","type":"address"}],"name":"MsgInspectorSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"guid","type":"bytes32"},{"indexed":false,"internalType":"uint32","name":"srcEid","type":"uint32"},{"indexed":true,"internalType":"address","name":"toAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountReceivedLD","type":"uint256"}],"name":"OFTReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"guid","type":"bytes32"},{"indexed":false,"internalType":"uint32","name":"dstEid","type":"uint32"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountSentLD","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountReceivedLD","type":"uint256"}],"name":"OFTSent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint32","name":"eid","type":"uint32"},{"indexed":false,"internalType":"bytes32","name":"peer","type":"bytes32"}],"name":"PeerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"preCrimeAddress","type":"address"}],"name":"PreCrimeSet","type":"event"},{"inputs":[],"name":"SEND","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SEND_AND_CALL","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TWO_WAY_BRIDGING","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"srcEid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"}],"internalType":"struct Origin","name":"origin","type":"tuple"}],"name":"allowInitializePath","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"approvalRequired","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"burnRemainingTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnStartTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_eid","type":"uint32"},{"internalType":"uint16","name":"_msgType","type":"uint16"},{"internalType":"bytes","name":"_extraOptions","type":"bytes"}],"name":"combineOptions","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimalConversionRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endpoint","outputs":[{"internalType":"contract ILayerZeroEndpointV2","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"eid","type":"uint32"},{"internalType":"uint16","name":"msgType","type":"uint16"}],"name":"enforcedOptions","outputs":[{"internalType":"bytes","name":"enforcedOption","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"srcEid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"}],"internalType":"struct Origin","name":"","type":"tuple"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"address","name":"_sender","type":"address"}],"name":"isComposeMsgSender","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_eid","type":"uint32"},{"internalType":"bytes32","name":"_peer","type":"bytes32"}],"name":"isPeer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"srcEid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"}],"internalType":"struct Origin","name":"_origin","type":"tuple"},{"internalType":"bytes32","name":"_guid","type":"bytes32"},{"internalType":"bytes","name":"_message","type":"bytes"},{"internalType":"address","name":"_executor","type":"address"},{"internalType":"bytes","name":"_extraData","type":"bytes"}],"name":"lzReceive","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"uint32","name":"srcEid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"}],"internalType":"struct Origin","name":"origin","type":"tuple"},{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"bytes32","name":"guid","type":"bytes32"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"address","name":"executor","type":"address"},{"internalType":"bytes","name":"message","type":"bytes"},{"internalType":"bytes","name":"extraData","type":"bytes"}],"internalType":"struct InboundPacket[]","name":"_packets","type":"tuple[]"}],"name":"lzReceiveAndRevert","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"srcEid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"}],"internalType":"struct Origin","name":"_origin","type":"tuple"},{"internalType":"bytes32","name":"_guid","type":"bytes32"},{"internalType":"bytes","name":"_message","type":"bytes"},{"internalType":"address","name":"_executor","type":"address"},{"internalType":"bytes","name":"_extraData","type":"bytes"}],"name":"lzReceiveSimulate","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"msgInspector","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"","type":"uint32"},{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"nextNonce","outputs":[{"internalType":"uint64","name":"nonce","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oApp","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oAppVersion","outputs":[{"internalType":"uint64","name":"senderVersion","type":"uint64"},{"internalType":"uint64","name":"receiverVersion","type":"uint64"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"oftVersion","outputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"},{"internalType":"uint64","name":"version","type":"uint64"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"eid","type":"uint32"}],"name":"peers","outputs":[{"internalType":"bytes32","name":"peer","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preCrime","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"bytes32","name":"to","type":"bytes32"},{"internalType":"uint256","name":"amountLD","type":"uint256"},{"internalType":"uint256","name":"minAmountLD","type":"uint256"},{"internalType":"bytes","name":"extraOptions","type":"bytes"},{"internalType":"bytes","name":"composeMsg","type":"bytes"},{"internalType":"bytes","name":"oftCmd","type":"bytes"}],"internalType":"struct SendParam","name":"_sendParam","type":"tuple"}],"name":"quoteOFT","outputs":[{"components":[{"internalType":"uint256","name":"minAmountLD","type":"uint256"},{"internalType":"uint256","name":"maxAmountLD","type":"uint256"}],"internalType":"struct OFTLimit","name":"oftLimit","type":"tuple"},{"components":[{"internalType":"int256","name":"feeAmountLD","type":"int256"},{"internalType":"string","name":"description","type":"string"}],"internalType":"struct OFTFeeDetail[]","name":"oftFeeDetails","type":"tuple[]"},{"components":[{"internalType":"uint256","name":"amountSentLD","type":"uint256"},{"internalType":"uint256","name":"amountReceivedLD","type":"uint256"}],"internalType":"struct OFTReceipt","name":"oftReceipt","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"bytes32","name":"to","type":"bytes32"},{"internalType":"uint256","name":"amountLD","type":"uint256"},{"internalType":"uint256","name":"minAmountLD","type":"uint256"},{"internalType":"bytes","name":"extraOptions","type":"bytes"},{"internalType":"bytes","name":"composeMsg","type":"bytes"},{"internalType":"bytes","name":"oftCmd","type":"bytes"}],"internalType":"struct SendParam","name":"_sendParam","type":"tuple"},{"internalType":"bool","name":"_payInLzToken","type":"bool"}],"name":"quoteSend","outputs":[{"components":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"lzTokenFee","type":"uint256"}],"internalType":"struct MessagingFee","name":"msgFee","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"bytes32","name":"to","type":"bytes32"},{"internalType":"uint256","name":"amountLD","type":"uint256"},{"internalType":"uint256","name":"minAmountLD","type":"uint256"},{"internalType":"bytes","name":"extraOptions","type":"bytes"},{"internalType":"bytes","name":"composeMsg","type":"bytes"},{"internalType":"bytes","name":"oftCmd","type":"bytes"}],"internalType":"struct SendParam","name":"_sendParam","type":"tuple"},{"components":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"lzTokenFee","type":"uint256"}],"internalType":"struct MessagingFee","name":"_fee","type":"tuple"},{"internalType":"address","name":"_refundAddress","type":"address"}],"name":"send","outputs":[{"components":[{"internalType":"bytes32","name":"guid","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"},{"components":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"lzTokenFee","type":"uint256"}],"internalType":"struct MessagingFee","name":"fee","type":"tuple"}],"internalType":"struct MessagingReceipt","name":"msgReceipt","type":"tuple"},{"components":[{"internalType":"uint256","name":"amountSentLD","type":"uint256"},{"internalType":"uint256","name":"amountReceivedLD","type":"uint256"}],"internalType":"struct OFTReceipt","name":"oftReceipt","type":"tuple"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_delegate","type":"address"}],"name":"setDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"eid","type":"uint32"},{"internalType":"uint16","name":"msgType","type":"uint16"},{"internalType":"bytes","name":"options","type":"bytes"}],"internalType":"struct EnforcedOptionParam[]","name":"_enforcedOptions","type":"tuple[]"}],"name":"setEnforcedOptions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_msgInspector","type":"address"}],"name":"setMsgInspector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_eid","type":"uint32"},{"internalType":"bytes32","name":"_peer","type":"bytes32"}],"name":"setPeer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_preCrime","type":"address"}],"name":"setPreCrime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sharedDecimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]');let useBrush=()=>(0,i.useMemo)(()=>({abi:E,address:S.X4}),[]),useBrushBridgeFromFantom=()=>(0,i.useMemo)(()=>({abi:C,address:S.UG}),[]),useBrushBridgeFromSonic=()=>(0,i.useMemo)(()=>({abi:C,address:S.ui}),[]);var k=n(92526),R=n(14679),I=n(59691);let tryParseFromEthjsQuery=e=>{try{var t,n,a;console.info("Raw message",e);let i=e.match(/message(?:':\s+'|":\s+")([^'"]+)/),s=i?i[1]:null;if(!s)try{let t=e.indexOf("{"),n=e.lastIndexOf("}"),a=e.substring(t,n+1),i=JSON.parse(a),traverse=e=>{for(let t in e)if("object"==typeof e[t]&&null!==e[t])traverse(e[t]);else if("message"===t){s=e[t];break}};traverse(i)}catch(e){console.error("JSON parsing failed",e);return}let r="".concat(null!==(n=null==s?void 0:null===(t=s[0])||void 0===t?void 0:t.toUpperCase())&&void 0!==n?n:"").concat(null!==(a=null==s?void 0:s.slice(1))&&void 0!==a?a:"");return r}catch(e){return}};var N=n(81938),hooks_useMaterialToastExtra=()=>{let e=(0,i.useContext)(N.N);if(void 0===e)throw Error("Toasts context undefined");return e};let getEvents=(e,t)=>{if(!t)return{};let n=(0,I.h)({abi:e,logs:null==t?void 0:t.logs});return Object.fromEntries(n.map(e=>[e.eventName,e]))},createSendTx=async e=>{let{abi:t,writeContractAsync:n,onErrorMessage:a,writeData:i}=e;try{let e;let a=await n(i);for(let t=0;t<10;++t){try{e=await (0,R.e)(w.wagmiConfig,{hash:a,onReplaced:e=>console.info("Tx replaced:",e)});break}catch(e){if(9===t)throw e}await sleep((t+1)*1e3)}if(!a&&!e)throw Error("No hash and receipt returned");return{receipt:e,events:getEvents(t,e)}}catch(t){var s;console.info(null==t?void 0:t.code,null==t?void 0:t.message,null==t?void 0:t.details,null==t?void 0:t.shortMessage);let e=null!==(s=tryParseFromEthjsQuery(null==t?void 0:t.details))&&void 0!==s?s:null==t?void 0:t.shortMessage;throw a&&e&&a(e),t}};var hooks_useEstimateGasAndSend=e=>{let{abi:t,address:n,method:a}=e,{writeContractAsync:i}=(0,k.S)(),s=hooks_useMaterialToastExtra(),r=null==s?void 0:s.toastInfo,sendTx=async(e,s)=>{let p={abi:t,address:n,functionName:a,args:e,...s?{value:BigInt(s.toString())}:{}};return await createSendTx({abi:t,writeContractAsync:i,onErrorMessage:null!=r?r:()=>{},writeData:p})};return sendTx};let useTxHooksBrushBridge=()=>{let e=useBrushBridgeFromFantom(),t=useBrushBridgeFromSonic(),n=hooks_useEstimateGasAndSend({abi:e.abi,address:e.address,method:"send"}),a=hooks_useEstimateGasAndSend({abi:t.abi,address:t.address,method:"send"});return{estimateGasAndSendBrushBridgeSendFromFantom:n,estimateGasAndSendBrushBridgeSendFromSonic:a}},useTxHooksBrush=()=>{let e=useBrush(),t=hooks_useEstimateGasAndSend({abi:e.abi,address:e.address,method:"approve"}),n=hooks_useEstimateGasAndSend({abi:e.abi,address:e.address,method:"transfer"});return{estimateGasAndSendBrushApprove:t,estimateGasAndSendBrush:n}};var A=n(10777),D=n(16693),hooks_useMultichainCalls=e=>{let{client:t}=e,n=(0,i.useCallback)(async e=>{let{address:n,abi:a,functionName:i,args:s}=e;return new Promise((e,r)=>{t.readContract({address:n,abi:a,functionName:i,args:s}).then(t=>{null!=t?e(t):r(Error("No contract data found"))}).catch(e=>{console.error("Failed reading contract data",e),r(e)})})},[t]),a=(0,i.useCallback)(async e=>{let{txHash:n}=e;return new Promise((e,a)=>{t.getTransactionReceipt({hash:n}).then(t=>{t?e(t):a(Error("Transaction receipt not found"))}).catch(e=>{console.error("Error getting transaction receipt:",e),a(e)})})},[t]),s=(0,i.useCallback)(async e=>{let{address:n}=e;return new Promise((e,a)=>{t.getBalance({address:n}).then(t=>{e(t)}).catch(e=>{console.error("Error getting account balance:",e),a(e)})})},[t]);return{readContractSingle:n,getTransactionReceipt:a,getAccountBalance:s}},hooks_useMultichainTokenBalance=e=>{var t,n;let{client:a,tokenAddress:i,address:s,refresh:r=!0}=e,{readContractSingle:p}=hooks_useMultichainCalls({client:a}),{address:o}=(0,u.m)(),l=s||o,fetchNFTBalance=async()=>{var e;if(!(null==a?void 0:null===(e=a.chain)||void 0===e?void 0:e.id)||!i||!isValidAddressNonStrict(i)||l&&!isValidAddressNonStrict(l))return null;try{let e={address:i,abi:D.Wo,functionName:"balanceOf",args:[l]},t=await p(e);return t?BigInt(t):0n}catch(e){return console.error("Error fetching NFT balance:",e),null}},y=(0,A.a)({queryKey:["useMultichainTokenBalance",null==a?void 0:null===(t=a.chain)||void 0===t?void 0:t.id,i,l,r],queryFn:fetchNFTBalance,enabled:!!(null==a?void 0:null===(n=a.chain)||void 0===n?void 0:n.id)&&!!i&&isValidAddressNonStrict(i)&&!!l&&isValidAddressNonStrict(l),...getBaseAPIQueryOptions(r?S.sR:null)});return y},L=n(41442);let useBrushAllowance=(e,t)=>{let{address:n}=(0,u.m)(),a=useBrush(),s=(0,i.useMemo)(()=>(0,d.U)(e,{strict:!1}),[e]),r=(0,i.useMemo)(()=>(0,d.U)(null!=n?n:"",{strict:!1}),[n]),p=(0,i.useMemo)(()=>(0,d.U)(a.address,{strict:!1}),[a.address]),{data:o,refetch:l,isLoading:y,isError:m,error:c}=(0,L.u)({address:p?a.address:void 0,abi:a.abi,functionName:"allowance",args:r&&s?[n,e]:void 0,query:{enabled:!!r&&!!s&&!!p,refetchInterval:S.sR,staleTime:100}}),b=(0,i.useMemo)(()=>{if(null!=o)try{return BigInt(o.toString())}catch(e){console.error("Error formatting BRUSH allowance:",e)}return t?null:0n},[o,t]),T=(0,i.useCallback)(()=>{r&&s&&p&&l()},[l,r,s,p]),f=(0,i.useMemo)(()=>r?s?p?m?(null==c?void 0:c.message)||"Error fetching BRUSH allowance":"":"Invalid BRUSH token address":"Invalid spender address":"Invalid account address",[r,s,p,m,c]);return{data:b,refetch:T,isLoading:y,isError:m||!r||!s||!p,errorMessage:f}};var P=n(87190),z=n(37003),H=n(82729),Z=n(15437),U=n(2734);function _templateObject(){let e=(0,H._)(['\n /* These can be overridden both by parameter or by styling() */\n /* May have to increase the specificity in some cases such as "${mediaQueries.sm} {}". Then to "&&& { ${mediaQueries.sm}{} }" */\n font-size: ',";\n font-weight: ",";\n line-height: ",";\n color: ",";\n"],['\n /* These can be overridden both by parameter or by styling() */\n /* May have to increase the specificity in some cases such as "\\${mediaQueries.sm} {}". Then to "&&& { \\${mediaQueries.sm}{} }" */\n font-size: ',";\n font-weight: ",";\n line-height: ",";\n color: ",";\n"]);return _templateObject=function(){return e},e}let getFontSize=(e,t)=>e?"14px":t,V=(0,Z.ZP)(e=>{let{small:t,bold:n,fontSize:i,color:s,lineHeight:r,muiTheme:p,...u}=e;return(0,a.jsx)(g.Z,{...u})})(_templateObject(),e=>{let{small:t,fontSize:n}=e;return getFontSize(null!=t&&t,null!=n?n:"16px")},e=>{let{bold:t}=e;return t?700:400},e=>{let{lineHeight:t}=e;return t},e=>{let{muiTheme:t,color:n}=e;return n?(null==t?void 0:t.palette[n]).main:null==t?void 0:t.palette.secondary.main});var Components_SuperText=e=>{let{small:t=!1,bold:n=!1,fontSize:i="16px",color:s,lineHeight:r=1.5,children:p,...u}=e,o=(0,U.Z)(),l=(0,a.jsx)(V,{muiTheme:o,small:t,bold:n,fontSize:i,color:s,lineHeight:r,...u,children:p});return l},q=n(84243),W=n(69417),$=n(41664),G=n.n($);function SuperButton_templateObject(){let e=(0,H._)(["\n border-radius: 4px;\n text-transform: capitalize;\n pointer-events: auto !important;\n padding-left: 16px;\n padding-right: 16px;\n line-height: 1.1;\n min-width: 54px;\n ","\n\n ","\n\n :hover {\n cursor: ",";\n\n ","\n }\n\n path {\n ","\n }\n\n svg {\n transform: ",";\n ","\n ","\n }\n\n ","\n\n ","\n\n "," {\n ","\n }\n\n span {\n ","\n }\n\n ","\n"]);return SuperButton_templateObject=function(){return e},e}function _templateObject1(){let e=(0,H._)(["\n svg {\n color: ",";\n }\n"]);return _templateObject1=function(){return e},e}let Q=(0,Z.ZP)(e=>{let{muiTheme:t,isDark:n,rotate:i,fullBelowBreakpoint:s,containschildren:r,iconWidth:p,iconHeight:u,tooltip:o,tooltipPlacement:l,loading:y,ant:d,...m}=e;return(0,a.jsx)(q.Z,{title:o||"",placement:l,children:(0,a.jsx)(W.Z,{...m})})})(SuperButton_templateObject(),e=>{let{size:t,ant:n}=e;return"small"===t&&n&&"font-size: 0.7125rem;"},e=>{let{variant:t,isDark:n}=e;return"outlined"===t&&"\n border: ".concat(n?"1px solid rgb(109 162 243 / 50%)":"2px solid rgb(24 59 110 / 50%)",";\n ")},e=>{let{disabled:t}=e;return t?"var(--cursor-not-allowed)":"var(--cursor-pointer)"},e=>{let{variant:t,isDark:n}=e;return"outlined"===t&&"\n border: ".concat(n?"1px solid #c0d6f7":"2px solid #37474f",";\n ")},e=>{let{muiTheme:t,color:n,variant:a}=e;return"contained"===a?"fill: ".concat(t.palette[n||"primary"].contrastText,";"):""},e=>{let{rotate:t}=e;return t?"rotate(".concat(t,"deg)"):"none"},e=>{let{iconWidth:t}=e;return t&&"width: ".concat(t,";")},e=>{let{iconHeight:t}=e;return t&&"height: ".concat(t,";")},e=>{let{height:t}=e;return t&&"height: ".concat(t,";")},e=>{let{fullBelowBreakpoint:t,width:n}=e;return t?"width: 100%;":n&&"width: ".concat(n,";")},e=>{let{fullBelowBreakpoint:t}=e;return t},e=>{let{width:t}=e;return t?"width: ".concat(t,";"):"width: fit-content;"},e=>{let{disabled:t,loading:n}=e;return t&&!n&&"opacity: 0.5;"},e=>{let{containschildren:t}=e;return!t&&"\n .MuiButton-startIcon {\n margin-right: 0;\n margin-left: 0;\n }\n .MuiButton-endIcon {\n margin-right: 0;\n margin-left: 0;\n }\n padding-left: 0;\n padding-right: 0;\n "}),X=(0,Z.ZP)(e=>{let{muiTheme:t,size:n,...i}=e;return(0,a.jsx)(f.Z,{size:n,...i})})(_templateObject1(),e=>{let{muiTheme:t}=e;return t.palette.subtle.main});var Components_SuperButton=e=>{let t,{onClick:n,href:i,externalLink:s,variant:r="outlined",color:p="primary",size:u="large",startIcon:o,endIcon:l,disabled:y=!1,tooltip:d,tooltipPlacement:m="right",loading:c,loadingPosition:b="start",height:T,children:f,...g}=e,h=(0,U.Z)();switch(u){case"small":t=null!=T?T:"32px";break;case"medium":t=null!=T?T:"40px";break;default:t=null!=T?T:"48px"}let v=(0,a.jsx)(Q,{size:u||"large",height:t,onClick:y?void 0:n,variant:r,disabled:y,loading:c,startIcon:c&&("start"===b||"center"===b)?(0,a.jsx)(X,{size:"1rem",muiTheme:h}):o,endIcon:c&&"end"===b?(0,a.jsx)(X,{size:"1rem",muiTheme:h}):l,href:y?void 0:i,LinkComponent:s?"a":G(),to:y?void 0:i,target:s?"_blank":void 0,color:p,containschildren:(!c||"center"!==b)&&!!f,muiTheme:h,isDark:!0,tooltip:d,tooltipPlacement:m,ant:!1,component:y?"div":void 0,focusRipple:!0,...g,children:c&&"center"===b?void 0:f});return v},K=n(4989);function GameInput_templateObject(){let e=(0,H._)(["\n border-radius: 8px;\n\n fieldset {\n border-radius: 8px;\n }\n"]);return GameInput_templateObject=function(){return e},e}let J=(0,Z.ZP)(K.Z)(GameInput_templateObject()),Y=i.forwardRef(function(e,t){let{min:n,max:s,startAdornment:r,endAdornment:p,mode:u="numeric",disableReturn:o=!1,disabledShift:l=!1,error:y=null,onEnter:d,onEscape:m,...c}=e;return(0,i.useEffect)(()=>{let e=null==t?void 0:t.current,focusHandler=()=>{if(e){let{length:t}=e.value;e.setSelectionRange(t,t)}};return e&&e.addEventListener("focus",focusHandler),()=>{e&&e.removeEventListener("focus",focusHandler)}},[t]),(0,a.jsx)(J,{inputProps:{inputMode:u,min:n,max:s,onKeyDown:e=>{"Enter"===e.key&&(!e.shiftKey||e.shiftKey&&l)&&o&&(e.preventDefault(),d&&d()),"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),m&&m())}},InputProps:{startAdornment:r,endAdornment:p},InputLabelProps:{shrink:!0},size:"small",error:null!=y&&y,inputRef:t,...c})}),FormInputText=e=>{let{name:t,control:n,label:i,mode:s,min:r,max:p,placeholder:u,autoComplete:o,disabled:l,rules:y,multiline:d,disableReturn:m,disabledShift:c,hideHelperText:b,endAdornment:T,startAdornment:f,onEnter:g,onChangeInput:h}=e;return(0,a.jsx)(O.Qr,{name:t,control:n,rules:y,render:e=>{let{field:{onChange:t,value:n},fieldState:{error:y}}=e;return(0,a.jsx)(Y,{helperText:(null==y?void 0:y.type)==="totalNotExceed"?null:b?null:y?y.message:" ",error:!!y,onChange:e=>{h&&h(e),t(e)},value:n,fullWidth:!0,label:i,variant:"outlined",mode:s,min:r,max:p,placeholder:u,autoComplete:o,disabled:l,multiline:d,disableReturn:m,disabledShift:c,startAdornment:f,endAdornment:T,onEnter:g})}})};var ee=n(25675),et=n.n(ee),en=n(13123),ea=n.n(en);let noFantom=(e,t)=>(0,a.jsx)(a.Fragment,{children:!e&&(0,a.jsx)("div",{className:r().switchContent,onClick:()=>t({chainId:250}),children:(0,a.jsxs)(c.Z,{spacing:1,alignItems:"center",direction:"row",children:[(0,a.jsx)(Components_SuperText,{textAlign:"center",width:"100%",fontSize:"14px",color:"warning",children:"Switch to Fantom Network"}),(0,a.jsx)(et(),{src:"/images/fantom.png",alt:"F",width:22,height:22})]})})}),noSonic=(e,t)=>(0,a.jsx)(a.Fragment,{children:!e&&(0,a.jsx)("div",{className:r().switchContent,onClick:()=>t({chainId:S.zN}),children:(0,a.jsxs)(c.Z,{spacing:1,alignItems:"center",direction:"row",children:[(0,a.jsx)(Components_SuperText,{textAlign:"center",width:"100%",fontSize:"14px",color:"warning",children:"Switch to Sonic Network"}),(0,a.jsx)(et(),{src:"/images/sonic.png",alt:"S",width:22,height:22})]})})});var pages=()=>{var e;let[t,n]=(0,i.useState)(void 0),[s,y]=(0,i.useState)(250),[m,v]=(0,i.useState)(0),[E,C]=(0,i.useState)(!1),[k,R]=(0,i.useState)(!1),[I,N]=(0,i.useState)(!1),[A,D]=(0,i.useState)(!1),[L,H]=(0,i.useState)(!1),[Z,U]=(0,i.useState)(0xd3c21bcecceda1000000n),{address:V,chain:q}=(0,u.m)(),{open:W}=(0,p.k_)(),{switchChain:$,switchChainAsync:G}=(0,o.o)({config:w.wagmiConfig,mutation:{onSuccess(){console.info("Switch Network Success")}}}),Q=(0,i.useRef)(m),X=(0,i.useRef)(V),K=(0,_.v)({chain:S.ZU,transport:(0,l.t)([...(0,w.createHttpTransports)(S.YD)],{rank:{interval:6e4}})}),J=(0,_.v)({chain:S.qB,transport:(0,l.t)([...(0,w.createHttpTransports)(S.ts)],{rank:{interval:6e4}})}),Y=(null==q?void 0:q.id)===S.oA,ee=(null==q?void 0:q.id)===S.zN,en=0===m&&!Y||1===m&&!ee,ei=(null===(e=process.env)||void 0===e?void 0:"67208fc2a5c53de1dd3efe855b2d3724")||"",{handleSubmit:es,setValue:er,trigger:ep,control:eu,formState:{isValid:eo,errors:el}}=(0,O.cI)({mode:"all",shouldUseNativeValidation:!1,defaultValues:{amount:"",address:null!=V?V:""}}),ey=(0,O.qo)({control:eu,name:"amount"}),ed=(0,O.qo)({control:eu,name:"address"}),em=(0,i.useMemo)(()=>{var e;return Number.isFinite(Number(ey))&&null!==(e=null==ey?void 0:ey.toString())&&void 0!==e?e:"0"},[ey]),ec=(0,i.useMemo)(()=>E||k||!V||A||L,[E,k,V,A,L]),eb=(0,B.Z)(),eT=null==eb?void 0:eb.toastError,ef=null==eb?void 0:eb.toastSuccess,eg=useBrushBridgeFromFantom(),eh=useBrushBridgeFromSonic(),{estimateGasAndSendBrushBridgeSendFromFantom:ev,estimateGasAndSendBrushBridgeSendFromSonic:ex}=useTxHooksBrushBridge(),{estimateGasAndSendBrushApprove:ew}=useTxHooksBrush(),{data:eS,refetch:e_}=hooks_useMultichainTokenBalance({client:J,tokenAddress:eh.address,address:V,refresh:!0}),{data:eM,refetch:eF}=hooks_useMultichainTokenBalance({client:K,tokenAddress:S.X4,address:V,refresh:!0}),ej=(0,M.d)(null!=eS?eS:0n),eO=(0,M.d)(null!=eM?eM:0n),{data:eB}=useBrushAllowance(eg.address,!0);(0,i.useEffect)(()=>{console.info("WC","".concat(null==ei?void 0:ei.slice(0,4),"..."))},[ei]),(0,i.useEffect)(()=>{V?n(V):n(void 0)},[V]),(0,i.useEffect)(()=>{(null==q?void 0:q.id)&&(null==q?void 0:q.id)!==s&&y(q.id)},[null==q?void 0:q.id,s]),(0,i.useEffect)(()=>{null!==eB&&U(null!=eB?eB:0n)},[eB]),(0,i.useEffect)(()=>{X.current!==V&&(N(!1),er("address",null!=V?V:""),ep("address"),ep("amount")),X.current=V},[V,er,ep]),(0,i.useEffect)(()=>{Q.current!==m&&(ep("amount"),ep("address")),Q.current=m},[m,ep]),(0,i.useEffect)(()=>{void 0!==eM&&D(!1)},[eM]),(0,i.useEffect)(()=>{void 0!==eS&&H(!1)},[eS]);let eE=(0,i.useMemo)(()=>Z<(0,F.f)(em)&&!I&&0===m,[Z,I,em,m]),toggleDirection=e=>{v(e)},onBridge=async e=>{var t;let n=(0,F.f)(null!==(t=e.amount)&&void 0!==t?t:"0"),a=e.address;if(!V||!n||!a||!(0,d.U)(a,{strict:!1})||a.toLowerCase()!==ed.toLowerCase()||e.amount!==ey||en)return;let i=0===m;if(i&&eE){C(!0);try{let{receipt:e,events:t}=await ew([eg.address,n]),a=BigInt(null==t?void 0:t.Approval.args.value.toString()),i=a>=n;if(!i){eT&&eT("Approval amount is not enough. Please try again.","Failed");return}ef&&ef("Approved BRUSH!","Success")}catch(e){console.error("Failed approving BRUSH:",e),eT&&eT("Could not approve BRUSH. Please try again.","Failed");return}finally{await sleep(2e3),C(!1),N(!1),R(!1)}}i?console.info("Bridging ".concat(e.amount," BRUSH from Fantom to Sonic")):console.info("Bridging ".concat(e.amount," BRUSH from Sonic to Fantom")),R(!0);try{let t=P.Ei.newOptions().addExecutorLzReceiveOption(2e5,0).toHex().toString(),s={dstEid:i?30332:30112,to:(0,j.vk)(a,{size:32}),amountLD:n,minAmountLD:n,extraOptions:t,composeMsg:"0x",oftCmd:"0x"},r=await (0,z.L)(w.wagmiConfig,{abi:i?eg.abi:eh.abi,address:i?eg.address:eh.address,functionName:"quoteSend",args:[s,!1]});if(!r||0n===r.nativeFee){eT&&eT("Can't get bridge fee. Please try again.","Failed");return}console.info("Bridge fee:",r);let p={nativeFee:r.nativeFee,lzTokenFee:0n},u=i?ev:ex,{receipt:o,events:l}=await u([s,p,V],r.nativeFee);console.info("Bridge receipt:",o),i?(ef&&ef("Sent ".concat(e.amount," BRUSH! Funds will arrive on Sonic shortly."),"Success"),H(!0)):(ef&&ef("Sent ".concat(e.amount," BRUSH! Funds will arrive on Fantom shortly."),"Success"),D(!0)),er("amount",""),await sleep(1e3),eF(),e_(),trackEvent("BRUSH Bridging","Bridged BRUSH to ".concat(i?"Sonic":"Fantom"),"Bridge done")}catch(e){console.error("Failed bridging BRUSH:",e),eT&&eT("Could not bridge BRUSH. Please try again.","Failed"),trackEvent("BRUSH Bridging","Failed: Bridging BRUSH to ".concat(i?"Sonic":"Fantom"),"Contract Fail: ".concat(null==e?void 0:e.code))}finally{R(!1),N(!1)}},toFixedNumberStringWithoutTrailingZeros=(e,t)=>Number(e).toFixed(t).replace(/\.?0+$/,"");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(x(),{children:[(0,a.jsx)("title",{children:"$BRUSH Bridge"}),(0,a.jsx)("meta",{name:"description",content:"Bridge $BRUSH between Fantom and Sonic"}),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,a.jsx)("link",{rel:"icon",href:"/favicon.ico"}),(0,a.jsx)("meta",{name:"keywords",content:"brush, $brush, bridge, fantom, sonic, $S"}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,a.jsx)("meta",{name:"twitter:title",content:"BRUSH Bridge"}),(0,a.jsx)("meta",{name:"twitter:image",content:"https://bridge.paintswap.io/og.png"}),(0,a.jsx)("meta",{name:"twitter:domain",content:"bridge.paintswap.io"}),(0,a.jsx)("meta",{name:"twitter:site",content:"@paintoshi"}),(0,a.jsx)("meta",{name:"twitter:creator",content:"@paintoshi"}),(0,a.jsx)("meta",{name:"twitter:description",content:"Bridge $BRUSH between Fantom and Sonic"}),(0,a.jsx)("meta",{property:"og:title",content:"BRUSH Bridge"}),(0,a.jsx)("meta",{property:"og:description",content:"Bridge $BRUSH between Fantom and Sonic"}),(0,a.jsx)("meta",{property:"og:image",content:"https://bridge.paintswap.io/og.png"}),(0,a.jsx)("meta",{property:"og:url",content:"https://bridge.paintswap.io"})]}),(0,a.jsx)("main",{className:"".concat(ea().className," ").concat(r().main),children:(0,a.jsx)("div",{className:r().center,children:(0,a.jsxs)("div",{className:r().mainPanel,children:[(0,a.jsx)("h1",{className:r().title,children:"BRUSH Bridge"}),(0,a.jsxs)("p",{className:r().titleSub,children:["Move $BRUSH between Fantom and Sonic",(0,a.jsx)("br",{})]}),(0,a.jsxs)(c.Z,{width:"100%",spacing:2,alignItems:"center",pt:"16px",children:[(0,a.jsxs)(c.Z,{width:"100%",direction:{xs:"column",sm:"row"},alignItems:"center",justifyContent:"space-between",spacing:2,children:[t&&(0,a.jsx)(Components_SuperButton,{size:"large",width:"100%",variant:"contained",onClick:()=>W(),children:abbreviateAddressAsString(null!=V?V:"N/A")}),!t&&(0,a.jsx)(Components_SuperButton,{size:"large",width:"100%",variant:"contained",onClick:()=>W(),children:"Connect Wallet"})]}),(0,a.jsxs)(c.Z,{width:"100%",spacing:2,alignItems:"center",children:[(0,a.jsxs)(c.Z,{width:"100%",spacing:1.5,alignItems:"center",children:[(0,a.jsxs)(b.Z,{fullWidth:!0,value:m,size:"medium",exclusive:!0,onChange:e=>toggleDirection(Number(e.target.value)),disabled:ec,children:[(0,a.jsx)(T.Z,{value:0,"aria-label":"fantom-to-sonic",children:"To Sonic"}),(0,a.jsx)(T.Z,{value:1,"aria-label":"sonic-to-fantom",children:"To Fantom"})]}),1===m&&(0,a.jsx)(Components_SuperText,{fontSize:"12px",lineHeight:.5,color:"warning",children:"Sonic to Fantom bridge ends on Mar 25th, 2025"})]}),(0,a.jsxs)(c.Z,{width:"fit-content",spacing:.5,alignItems:"center",children:[(0,a.jsx)(Components_SuperText,{children:"BRUSH Balances"}),(0,a.jsxs)(c.Z,{spacing:2,width:"100%",justifyContent:"center",direction:"row",children:[(0,a.jsxs)(c.Z,{spacing:1,alignItems:"end",justifyContent:"space-around",children:[(0,a.jsx)(Components_SuperText,{fontSize:"14px",color:"subtle",children:(0,a.jsx)("a",{href:"https://ftmscan.com/token/".concat(S.X4,"?a=").concat(V),target:"_blank",children:"On Fantom"})}),(0,a.jsx)(Components_SuperText,{fontSize:"14px",color:"subtle",children:(0,a.jsx)("a",{href:"https://sonicscan.org/token/".concat(eh.address,"?a=").concat(V),target:"_blank",children:"On Sonic"})})]}),(0,a.jsxs)(c.Z,{spacing:1,justifyContent:"space-around",children:[(0,a.jsxs)(c.Z,{spacing:1,direction:"row",alignItems:"center",children:[(0,a.jsx)(et(),{src:"/images/brush_dark.png",alt:"$BRUSH",width:22,height:22}),(0,a.jsx)(Components_SuperText,{children:formatNumber(eO,0,6)}),A&&(0,a.jsx)(f.Z,{size:18})]}),(0,a.jsxs)(c.Z,{spacing:1,direction:"row",alignItems:"center",children:[(0,a.jsx)(et(),{src:"/images/brush_dark.png",alt:"$BRUSH",width:22,height:22}),(0,a.jsx)(Components_SuperText,{children:formatNumber(ej,0,6)}),L&&(0,a.jsx)(f.Z,{size:18})]})]})]})]}),(0,a.jsx)("form",{onSubmit:es(onBridge),style:{width:"100%"},children:(0,a.jsxs)(c.Z,{width:"100%",spacing:2,alignItems:"center",children:[(0,a.jsx)(FormInputText,{mode:"text",name:"amount",control:eu,label:"BRUSH Amount",placeholder:0===m?toFixedNumberStringWithoutTrailingZeros(eO,6):toFixedNumberStringWithoutTrailingZeros(ej,6),autoComplete:"off",disabled:ec,disableReturn:!0,min:0,max:0===m?Number(eO):Number(ej),endAdornment:(0,a.jsx)(Components_SuperButton,{size:"small",variant:"text",onClick:()=>{er("amount",0===m?toFixedNumberStringWithoutTrailingZeros(eO,6):toFixedNumberStringWithoutTrailingZeros(ej,6)),ep("amount")},style:{marginLeft:"8px",padding:"0px 8px",minWidth:"40px",maxHeight:"24px"},disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,disabled:ec||!V,children:"Max"}),rules:{required:"Required",min:{value:1e-6,message:"Must be at least ".concat(1e-6)},max:{value:0===m?Number(eO):Number(ej),message:"Max ".concat(0===m?toFixedNumberStringWithoutTrailingZeros(eO,6):toFixedNumberStringWithoutTrailingZeros(ej,6))},validate:{isNumber:e=>/^\d+\.?\d*$/.test(e)||"Must be a number",maxDecimals:e=>!e.includes(".")||e.split(".")[1].length<=6||"Max 6 decimals"}}}),(0,a.jsx)(FormInputText,{mode:"text",name:"address",control:eu,label:(0,a.jsxs)("span",{style:{color:"#ffffffb3"},children:["Bridge To",(null==V?void 0:V.toLowerCase())===(null==ed?void 0:ed.toLowerCase())?(0,a.jsx)("span",{style:{color:"#66bb6a"},children:" (Self)"}):(0,a.jsx)("span",{style:{color:"#ffa726"},children:" (Other)"})]}),placeholder:"0x...",autoComplete:"off",disabled:ec,disableReturn:!0,endAdornment:(0,a.jsx)(Components_SuperButton,{size:"small",variant:"text",onClick:()=>{er("address",null!=V?V:""),ep("address")},style:{marginLeft:"8px",padding:"0px 8px",minWidth:"40px",maxHeight:"24px"},disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,disabled:ec||!V,children:"Self"}),rules:{required:"Address is required",validate:e=>(0,d.U)(e,{strict:!1})?null:"Invalid Address"}}),(0,a.jsxs)(c.Z,{width:"fit-content",children:[0===m&&!Y&&V&&noFantom(Y,$),1===m&&!ee&&V&&noSonic(ee,$)]}),(0,a.jsx)(Components_SuperButton,{size:"large",type:"submit",variant:"contained",width:"100%",loading:E||k||A||L,disabled:ec||!eo||en,children:eE&&!k?E?"Approving...":"Approve":k?"Bridging...":"Bridge ".concat(0===m?"to Sonic":"to Fantom")})]})})]})]}),(0,a.jsx)(g.Z,{width:"100%",mt:"16px",mb:"16px",children:(0,a.jsx)(h.Z,{})}),(0,a.jsxs)(g.Z,{mb:"0",children:[(0,a.jsx)(Components_SuperText,{fontSize:"12px",color:"subtle",children:"No extra fees are added by us"}),(0,a.jsx)("a",{href:"https://paintswap.finance",target:"_blank",className:r().linkContent,children:(0,a.jsxs)(c.Z,{width:"100%",direction:"row",justifyContent:"center",spacing:1,mt:"4px",children:[(0,a.jsx)(et(),{src:"/images/paintswap_logo.svg",alt:"PaintSwap",width:24,height:24}),(0,a.jsx)("span",{children:"Visit PaintSwap"})]})})]})]})})})]})}},36612:function(e){e.exports={main:"Home_main__VkIEL",center:"Home_center__O_TIN",title:"Home_title__hYX6j",titleSub:"Home_titleSub__nszZn",sub:"Home_sub__3Mk3_",mainPanel:"Home_mainPanel__6Ksuj",mainButton:"Home_mainButton__nIVdf",linkContent:"Home_linkContent__DTk1m",switchContent:"Home_switchContent__Z9CQd"}},46601:function(){}},function(e){e.O(0,[550,258,774,888,179],function(){return e(e.s=48312)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/index.html b/index.html index a08eb34..68aed60 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -$BRUSH Bridge

BRUSH Bridge

Move $BRUSH between Fantom and Sonic

BRUSH Balances
Max

Self

Bridge to Sonic

No extra fees are added by us
PaintSwapVisit PaintSwap
\ No newline at end of file +$BRUSH Bridge

BRUSH Bridge

Move $BRUSH between Fantom and Sonic

BRUSH Balances
Max

Self

Bridge to Sonic

No extra fees are added by us
PaintSwapVisit PaintSwap
\ No newline at end of file diff --git a/registry.html b/registry.html index 87e8c12..56902e8 100644 --- a/registry.html +++ b/registry.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file