Reading from NEAR testnet…
Reading from NEAR testnet…
G2Wkd1Tukoz65DDMXg2fLQQBNuo9cNac89b9zMqNV9jo
dokxo.testnet to v1.social08.testnet
set()
{
"data": {
"dokxo.testnet": {
"widget": {
"CreateNewPool": {
"": "const routerAbi = fetch(\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/maverick-router.txt\"\n);\nif (!routerAbi.ok) {\n return \"Loading\";\n}\nconst tokensForNEtwork = fetch(\"https://api.mav.xyz/api/v3/allTokens/5\").body\n .tokens;\n\nconst POOLSMODE = [\n {\n name: \"Mode Static\",\n description:\n \"This mode features static bins that you can use to define your own custom liquidity strategy.\",\n img: \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/ModeStatic.gif\",\n },\n {\n name: \"Mode Right\",\n description:\n \"This mode functions like a dynamic range order that follows the price of USDC up.\",\n img: \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/ModeRight.gif\",\n },\n {\n name: \"Mode Left\",\n description:\n \"This mode functions like a dynamic range order that follows the price of cBUSD up.\",\n img: \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/ModeLeft.gif\",\n },\n {\n name: \"Mode Both\",\n description:\n \"This mode functions like a dynamic range order that follows the pool price right and left, keeping liquidity as active as possible.\",\n img: \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/ModeBoth.gif\",\n },\n];\n\nconst DISTRIBUTIONMODE = [\n {\n name: \"Exponential\",\n description:\n \"This distribution starts with a high concentration of liquidity around the current pool price and adds exponentially decreasing amounts across the bins to the left and right.\",\n },\n {\n name: \"Flat\",\n description:\n \"This will distribute your liquidity evenly across bins, centered around the current pool price.\",\n },\n {\n name: \"Single Bin\",\n description: \"This will distribute your liquidity only in the active bin\",\n },\n];\n\nState.init({\n isZkSync: false,\n routerContract: \"0x39E098A153Ad69834a9Dac32f0FCa92066aD03f4\",\n step: 1,\n step1TokenAAmount: 0,\n refStep1Amount: null,\n newTokenASelected: tokensForNEtwork.find(\n (option) => option.name === tokensForNEtwork[0].name\n ),\n newTokenBSelected: tokensForNEtwork.find(\n (option) => option.name === tokensForNEtwork[1].name\n ),\n tokenOptionsA: tokensForNEtwork.filter(\n (option) => option.name != tokensForNEtwork[1].name\n ),\n tokenOptionsB: tokensForNEtwork.filter(\n (option) => option.name != tokensForNEtwork[0].name\n ),\n tokensForNetwork: tokensForNEtwork,\n poolSelected: POOLS[0],\n poolModeSelected: POOLSMODE[0],\n poolDistributionSelected: DISTRIBUTIONMODE[0],\n amountInputTokenA: null,\n inputBalanceTokenA: null,\n amountInputTokenB: null,\n inputBalanceTokenB: null,\n fee: 0,\n width: 0,\n showSelectOptionsModal: false,\n show: false,\n});\n\nconst handleTokenSelect = (token, _sel) => {\n const _tokenin = tokensForNEtwork.find((p) => p.name === token.target.value);\n const filteredOptions = tokensForNEtwork.filter(\n (option) => option.name !== token.target.value\n );\n _sel === \"A\"\n ? State.update({\n newTokenASelected: _tokenin,\n tokenOptionsB: filteredOptions,\n })\n : State.update({\n newTokenBSelected: _tokenin,\n tokenOptionsA: filteredOptions,\n });\n};\n\nconst handlePoolModeSelect = (data) => {\n const mode = POOLSMODE.find((m) => m.name === data.target.value);\n State.update({ poolModeSelected: mode });\n};\n\nconst handlePoolDistributionSelect = (data) => {\n const mode = DISTRIBUTIONMODE.find((m) => m.name === data.target.value);\n State.update({ poolDistributionSelected: mode });\n};\n\nconst getNetwork = () => {\n let chainId = 5;\n Ethers.provider()\n .getNetwork()\n .then((res) => {\n if (res.chainId == chainId) {\n State.update({ isZkSync: true });\n } else {\n switchNetwork(5);\n }\n });\n};\n\nconst switchNetwork = (chainId) => {\n Ethers.provider().send(\"wallet_switchEthereumChain\", [\n { chainId: `0x${chainId.toString(16)}` },\n ]);\n};\n\nif (state.sender === undefined) {\n const accounts = Ethers.send(\"eth_requestAccounts\", []);\n if (accounts.length) {\n State.update({ sender: accounts[0] });\n getNetwork();\n }\n}\n\nconst next = () => {\n console.log(\"state\", state);\n if (\n (state.step === 1 && state.step1TokenAAmount <= 0) ||\n state.fee === 0 ||\n state.width === 0\n ) {\n return;\n } else {\n State.update({ step: state.step + 1 });\n }\n};\n\nconst back = () => {\n State.update({ step: state.step - 1 });\n};\n\nconst formatNumber = (n) => {\n if (n >= 1000000) {\n return \"$\" + (n / 1000000).toFixed(2) + \"m\";\n } else if (n >= 1000) {\n return \"$\" + (n / 1000).toFixed(2) + \"k\";\n } else {\n return \"$\" + n.toFixed(2);\n }\n};\n\nconst getErc20Balance = () => {};\n\nconst setMaxBalanceTokenA = () => {};\n\nconst setMaxBalanceTokenB = () => {};\n\nconst validateAllowanceTokenA = (input, allowanceAmount) => {};\n\nconst validateAllowanceTokenB = (input, allowanceAmount) => {};\n\nconst confirm = () => {\n if (state.amountInputTokenA <= 0 || state.amountInputTokenB <= 0) {\n state.width === 0;\n return;\n } else {\n }\n};\n// modal\n\nconst formatNumberFee = (n) => {\n if (n > 0.01) {\n return n.toFixed(2) + \" %\";\n }\n return n.toFixed(3) + \" %\";\n};\n\nconst formatNumberWidth = (n) => {\n if (n < 0.1) {\n return n.toFixed(2) + \" %\";\n }\n if (n < 1) {\n return n.toFixed(1) + \" %\";\n }\n return n + \" %\";\n};\n\nconst showPoolOptionsModal = () => {\n State.update({ showSelectOptionsModal: true });\n};\n\nconst closeModal = () => {\n State.update({ showSelectOptionsModal: false });\n};\n\nconst setFeeWidth = (fee, width) => {\n State.update({\n fee: fee,\n width: width,\n showSelectOptionsModal: false,\n });\n};\n\nconst css = fetch(\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/widget.css\"\n).body;\n\nif (!css) return \"\";\n\nif (!state.theme) {\n State.update({\n theme: styled.div`\n ${css}\n`,\n });\n}\n\nconst MainContainer = styled.div`\n width: 490px;\n height: 500px;\n display: inline-flex;\n padding: 8px 8px 16px 8px;\n flex-direction: column;\n align-items: center;\n gap: 16px;\n border-radius: 14px;\n background: #151718;\n @media only screen and (max-width: 385px) {\n width: 350px\n}\n@media only screen and (max-width: 415px) {\n width: 380px\n}\n`;\nconst SendContainer = styled.div`\n display: flex;\n width: 350px;\n padding: 16px;\n justify-content: space-between;\n align-items: center;\n border-radius: 8px 8px 8px 8px;\n background: rgba(255, 255, 255, 0.10);\n\n @media only screen and (max-width: 385px) {\n width: 330px\n }\n @media only screen and (max-width: 415px) {\n width: 340px\n }\n`;\n\nconst Theme = state.theme;\nreturn (\n <Theme>\n <div class=\"text-center mt-1\">\n <MainContainer>\n <div class=\"ProtocolContainer\">\n <div class=\"ProtocolNetworkContainet\">\n <div class=\"ProtocolNetworkTextSection\">\n <div class=\"ProtocolText\">PROTOCOL</div>\n </div>\n <div class=\"ProtocolNetworkSection\">\n <div class=\"ProtocolNetworkContainer\">\n <img\n class=\"ProtocolImg\"\n src=\"https://etherscan.io/token/images/maverick_32.png\"\n />\n <div class=\"NetworkText\">Maverick</div>\n </div>\n </div>\n </div>\n </div>\n {state.isZkSync ? (\n <>\n <div class=\"row\" style={{ color: \"white\", width: \"100%\" }}>\n <div\n class=\"col-4\"\n style={{\n display: \"flex\",\n justifyContent: \"end\",\n }}\n >\n <div\n style={{\n background: \"#6400FF\",\n display: \"flex\",\n width: \"30px\",\n height: \"30px\",\n justifyContent: \"center\",\n alignItems: \"center\",\n borderRadius: \"999px\",\n }}\n >\n {state.step <= 1 ? (\n 1\n ) : (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n >\n <path\n d=\"M1.25 9.375L7.875 16L18.125 4.5\"\n stroke=\"#FFFFFF\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n )}\n </div>\n </div>\n <div class=\"col-1\">-</div>\n <div\n class=\"col-2\"\n style={{\n display: \"flex\",\n justifyContent: \"center\",\n }}\n >\n <div\n style={{\n background:\n state.step >= 2 ? \"#6400FF\" : \"rgba(255, 255, 255, 0.1)\",\n display: \"flex\",\n width: \"30px\",\n height: \"30px\",\n justifyContent: \"center\",\n alignItems: \"center\",\n borderRadius: \"999px\",\n }}\n >\n {state.step <= 2 ? (\n 2\n ) : (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n >\n <path\n d=\"M1.25 9.375L7.875 16L18.125 4.5\"\n stroke=\"#FFFFFF\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n )}\n </div>\n </div>\n <div class=\"col-1\">-</div>\n <div\n class=\"col-4\"\n style={{\n display: \"flex\",\n justifyContent: \"start\",\n }}\n >\n <div\n style={{\n background:\n state.step >= 3 ? \"#6400FF\" : \"rgba(255, 255, 255, 0.1)\",\n display: \"flex\",\n width: \"30px\",\n height: \"30px\",\n justifyContent: \"center\",\n alignItems: \"center\",\n borderRadius: \"999px\",\n }}\n >\n {state.step <= 3 ? (\n 3\n ) : (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n >\n <path\n d=\"M1.25 9.375L7.875 16L18.125 4.5\"\n stroke=\"#FFFFFF\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n )}\n </div>\n </div>\n </div>\n {state.step == 1 && (\n <div\n style={{\n width: \"350px\",\n }}\n >\n <div class=\"titleSwap text-start\">Select Token Pair</div>\n <div>\n <SendContainer\n style={{\n height: \"50px\",\n \"margin-bottom\": \"3px\",\n }}\n >\n <div class=\"TokenSection\">\n {\n <img\n style={{ width: \"30px\", height: \"30px\" }}\n src={\n state.newTokenASelected\n ? state.newTokenASelected.logoURI\n : tokensForNEtwork[0].logoURI\n }\n alt=\"icon not found\"\n />\n }\n\n <div class=\"TokenNameSection\">\n <select\n class=\"TokenNameSelect\"\n value={\n state.newTokenASelected\n ? state.newTokenASelected.name\n : \"default\"\n }\n onChange={(e) => {\n handleTokenSelect(e, \"A\");\n }}\n >\n {state.tokenOptionsA.map((p) => {\n return <option value={p.name}>{p.name}</option>;\n })}\n </select>\n </div>\n </div>\n </SendContainer>\n\n <SendContainer style={{ height: \"50px\", width: \"350px\" }}>\n <div class=\"TokenSection\">\n <img\n style={{ width: \"30px\", height: \"30px\" }}\n src={\n state.newTokenBSelected\n ? state.newTokenBSelected.logoURI\n : tokensForNEtwork[1].logoURI\n }\n alt=\"icon not found\"\n />{\" \"}\n <div class=\"TokenNameSection\">\n <select\n class=\"TokenNameSelect\"\n value={\n state.newTokenBSelected\n ? state.newTokenBSelected.name\n : \"default\"\n }\n onChange={(e) => {\n handleTokenSelect(e, \"B\");\n }}\n >\n {state.tokenOptionsB.map((p) => {\n return <option value={p.name}>{p.name}</option>;\n })}\n </select>\n </div>\n </div>\n </SendContainer>\n </div>\n\n <>\n <div class=\"titleSwap\">Select Pool Options</div>\n <br />\n <SendContainer\n class=\"\"\n style={{\n margin: \"auto\",\n height: \"55px\",\n border: \"1px solid #8D8DFD\",\n justifyContent: \"center\",\n }}\n >\n <div class=\"row\" style={{ width: \"100%\" }}>\n <div class=\"col-12\">\n <div class=\"TokenNameSection\">\n <div\n style={{\n width: \"100%\",\n display: \"flex\",\n justifyContent: \"center\",\n alignItems: \"center\",\n gap: \"8px\",\n borderRadius: \"4px\",\n height: \"40px\",\n\n padding: \"5px\",\n }}\n >\n <div\n style={{\n width: \"70%\",\n display: \"flex\",\n justifyContent: \"start\",\n }}\n >\n {state.fee > 0 && (\n <span\n style={{\n color: \"white\",\n display: \"inline\",\n marginRight: \"5px\",\n fontSize: \"0.75rem\",\n border: \"1px solid rgb(97, 97, 97)\",\n borderRadius: \"5px\",\n padding: \"3px\",\n backgroundColor:\n \"rgba(255, 255, 255, 0.15)\",\n }}\n >\n {formatNumberFee(state.fee) + \" Fee\"}\n </span>\n )}\n {state.width > 0 && (\n <span\n style={{\n color: \"white\",\n display: \"inline\",\n marginRight: \"5px\",\n fontSize: \"0.75rem\",\n border: \"1px solid rgb(97, 97, 97)\",\n borderRadius: \"5px\",\n padding: \"3px\",\n backgroundColor:\n \"rgba(255, 255, 255, 0.15)\",\n }}\n >\n {formatNumberWidth(state.width) + \" Width\"}\n </span>\n )}\n </div>\n <div\n style={{\n width: \"30%\",\n display: \"flex\",\n justifyContent: \"end\",\n }}\n >\n <span\n style={{\n color: \"white\",\n display: \"inline\",\n marginRight: \"5px\",\n fontSize: \"0.75rem\",\n border: \"1px solid rgb(97, 97, 97)\",\n borderRadius: \"5px\",\n padding: \"3px\",\n cursor: \"pointer\",\n backgroundColor: \"rgba(255, 255, 255, 0.15)\",\n }}\n onClick={() => showPoolOptionsModal()}\n >\n Edit Options\n </span>\n {state.showSelectOptionsModal && (\n <Widget\n props={{\n setFeeWidth,\n fee: state.fee,\n width: state.width,\n poolName1: `${state.newTokenASelected.name}-${state.newTokenBSelected.name}`, //Cambia la cadena \"LINK-ETH\" y formadla con los valores del state de los 2 tokens que seleccionaste\n poolName2: `${state.newTokenBSelected.name}-${state.newTokenASelected.name}`, //Cambia la cadena \"ETH-LINK\" y formadla con los valores del state de los 2 tokens que seleccionaste\n closeModal,\n }}\n src={\n \"yairnava.testnet/widget/SelectOptionsNewPool\"\n }\n />\n )}\n </div>\n </div>\n </div>\n </div>\n </div>\n </SendContainer>\n </>\n\n <br />\n <SendContainer\n style={{\n margin: \"auto\",\n height: \"60px\",\n color: \"white\",\n fontSize: \"20px\",\n }}\n >\n <div class=\"\">\n <img\n style={{ width: \"30px\", height: \"30px\" }}\n src={\n state.newTokenASelected\n ? state.newTokenASelected.logoURI\n : tokensForNEtwork[0].logoURI\n }\n alt=\"icon not found\"\n />{\" \"}\n {state.newTokenASelected\n ? state.newTokenASelected.name.substring(0, 10) +\n (state.newTokenASelected.name.length > 10 ? \"...\" : \"\")\n : tokensForNEtwork[0].name}\n </div>\n <div class=\" \">\n <div class=\" text-end \" style={{ \"font-size\": \"14px\" }}>\n <input\n class=\"TokenAmountInput\"\n type=\"number\"\n placeholder=\"0\"\n inputmode=\"decimal\"\n min=\"0\"\n pattern=\"^[0-9]*[.]?[0-9]*$\"\n value={state.amountInputTokenB}\n onChange={(e) => {\n State.update({\n step1TokenAAmount: e.target.value,\n });\n }}\n />\n </div>\n <div class=\" text-end\" style={{ \"font-size\": \"12px\" }}>\n <span class=\"UserBalance\">\n <span\n class=\"text-white\"\n onClick={async () => {\n setMaxBalanceTokenB();\n }}\n >\n per 1{\" \"}\n {state.newTokenBSelected\n ? state.newTokenBSelected.name\n : tokensForNEtwork[1].name}\n </span>\n </span>\n </div>\n </div>\n </SendContainer>\n </div>\n )}\n\n {state.step == 2 && (\n <div>\n <div class=\"titleSwap\">Select Mode</div>\n <br />\n <div style={{ margin: \"auto\", width: \"460px\" }}>\n <div\n class=\"row\"\n style={{\n width: \"100%\",\n height: \"100px\",\n display: \"flex\",\n margin: \"0\",\n }}\n >\n <div class=\"col-6\">\n <p\n style={{\n textAlign: \"justify\",\n color: \"white\",\n fontSize: \"13px\",\n }}\n >\n {state.poolModeSelected.description}\n </p>\n </div>\n <div class=\"col-6\">\n <SendContainer style={{ width: \"220px\", height: \"70px\" }}>\n <div class=\"TokenSection\">\n <div class=\"TokenNameSection\">\n <div class=\"TokenAction\">Pool Mode {\"->\"}</div>\n <select\n class=\"TokenNameSelect\"\n value={\n state.poolModeSelected\n ? state.poolModeSelected.name\n : \"default\"\n }\n onChange={handlePoolModeSelect}\n >\n <option\n value=\"default\"\n disabled={state.poolModeSelected}\n >\n Select Mode\n </option>\n {POOLSMODE.map((m) => {\n return <option>{m.name}</option>;\n })}\n </select>\n </div>\n </div>\n </SendContainer>\n </div>\n </div>\n </div>\n <div style={{ overflow: \"hidden\" }}>\n {state.poolModeSelected && (\n <img\n src={state.poolModeSelected.img}\n style={{ height: \"166px\", transform: \"scale(1.3)\" }}\n ></img>\n )}\n </div>\n </div>\n )}\n {state.step == 3 && (\n <div style={{ height: \"314px\" }}>\n {state.poolModeSelected.name == \"Mode Static\" && (\n <>\n <div class=\"titleSwap\">Select Distribution</div>\n <br />\n <div style={{ margin: \"auto\", width: \"350px\" }}>\n <div\n class=\"row\"\n style={{\n width: \"100%\",\n height: \"60px\",\n display: \"flex\",\n }}\n >\n <div class=\"col-6\">\n <SendContainer style={{ height: \"50px\" }}>\n <div class=\"TokenSection\">\n <div class=\"TokenNameSection\">\n <div class=\"TokenAction\">\n Distribution mode {\"->\"}\n </div>\n <select\n class=\"TokenNameSelect\"\n value={\n state.poolDistributionSelected\n ? state.poolDistributionSelected.name\n : \"default\"\n }\n onChange={handlePoolDistributionSelect}\n >\n <option\n value=\"default\"\n disabled={state.poolModeSelected}\n >\n Select Distribution\n </option>\n {DISTRIBUTIONMODE.map((m) => {\n return <option>{m.name}</option>;\n })}\n </select>\n </div>\n </div>\n </SendContainer>\n </div>\n </div>\n </div>\n </>\n )}\n <div class=\"titleSwap\">Required Assets</div>\n <br />\n <SendContainer\n style={{\n margin: \"auto\",\n\n filter:\n state.poolModeSelected.name == \"Mode Left\"\n ? \"blur(3px)\"\n : \"\",\n }}\n >\n <div class=\"TokenSection\">\n {state.newTokenASelected ? (\n <img\n class=\"TokenImg\"\n style={{ width: \"30px\", height: \"30px\" }}\n src={state.newTokenASelected.logoURI}\n />\n ) : null}\n <div class=\"TokenNameSection\" style={{ color: \"white\" }}>\n <div class=\"TokenAction\">Token A {\"->\"}</div>\n {state.newTokenASelected.name}\n </div>\n </div>\n {state.poolModeSelected.name != \"Mode Left\" && (\n <div class=\"TokenAmountSection\">\n <input\n class=\"TokenAmountInput\"\n type=\"number\"\n placeholder=\"0\"\n inputmode=\"decimal\"\n min=\"0\"\n pattern=\"^[0-9]*[.]?[0-9]*$\"\n value={state.amountInputTokenA}\n onChange={(e) =>\n validateAllowanceTokenA(e.target.value)\n }\n />\n <div class=\"TokenAmountPreview\">\n {state.inputBalanceTokenA != null ? (\n state.inputBalanceTokenA &&\n state.inputBalanceTokenA > 0 ? (\n <span>\n Balance: {state.inputBalanceTokenA}\n <span\n class=\"UserBalance\"\n onClick={async () => {\n setMaxBalanceTokenA();\n }}\n >\n MAX\n </span>\n </span>\n ) : (\n \"Balance: 0\"\n )\n ) : (\n \"Balance: 0\"\n )}\n </div>\n {false ? (\n <div class=\"TokenInsufficientBalance\">\n Insufficient Balance\n </div>\n ) : null}\n </div>\n )}\n </SendContainer>\n <br />\n <SendContainer\n style={{\n margin: \"auto\",\n filter:\n state.poolModeSelected.name == \"Mode Right\"\n ? \"blur(3px)\"\n : \"\",\n }}\n >\n <div class=\"TokenSection\">\n {state.newTokenBSelected ? (\n <img\n class=\"TokenImg\"\n style={{ width: \"30px\", height: \"30px\" }}\n src={state.newTokenBSelected.logoURI}\n />\n ) : null}\n <div class=\"TokenNameSection\" style={{ color: \"white\" }}>\n <div class=\"TokenAction\">Token B {\"->\"}</div>\n {state.newTokenBSelected.name}\n </div>\n </div>\n {state.poolModeSelected.name != \"Mode Right\" && (\n <div class=\"TokenAmountSection\">\n <input\n class=\"TokenAmountInput\"\n type=\"number\"\n placeholder=\"0\"\n inputmode=\"decimal\"\n min=\"0\"\n pattern=\"^[0-9]*[.]?[0-9]*$\"\n value={state.amountInputTokenB}\n onChange={(e) =>\n validateAllowanceTokenB(e.target.value)\n }\n />\n <div class=\"TokenAmountPreview\">\n {state.inputBalanceTokenB != null ? (\n state.inputBalanceTokenB &&\n state.inputBalanceTokenB > 0 ? (\n <span>\n Balance: {state.inputBalanceTokenB}\n <span\n class=\"UserBalance\"\n onClick={async () => {\n setMaxBalanceTokenB();\n }}\n >\n MAX\n </span>\n </span>\n ) : (\n \"Balance: 0\"\n )\n ) : (\n \"Balance: 0\"\n )}\n </div>\n {false ? (\n <div class=\"TokenInsufficientBalance\">\n Insufficient Balance\n </div>\n ) : null}\n </div>\n )}\n </SendContainer>\n </div>\n )}\n <div class=\"row\" style={{ marginInline: \"0px\", width: \"100%\" }}>\n <div\n class=\"col-6\"\n style={{ display: \"flex\", justifyContent: \"left\" }}\n >\n {state.step > 1 && (\n <div\n style={{\n width: \"110px\",\n display: \"flex\",\n cursor: \"pointer\",\n justifyContent: \"center\",\n alignItems: \"center\",\n gap: \"8px\",\n borderRadius: \"4px\",\n height: \"40px\",\n border: \"1px solid #8D8DFD\",\n }}\n onClick={back}\n >\n <div class={\"ConfirmText\"}>Back</div>\n </div>\n )}\n </div>\n <div\n class=\"col-6\"\n style={{ display: \"flex\", justifyContent: \"right\" }}\n >\n {state.step < 3 && (\n <>\n <OverlayTrigger\n key={\"top\"}\n placement={\"top\"}\n overlay={\n state.step1TokenAAmount <= 0 ||\n state.fee === 0 ||\n state.width === 0 ? (\n <Tooltip id={`tooltip-${placement}`}>\n {\"increase the \"}\n {state.step1TokenAAmount <= 0\n ? \"token\"\n : state.fee === 0\n ? \"fee\"\n : \"width\"}\n {\" amount\"}.\n </Tooltip>\n ) : (\n <></>\n )\n }\n >\n <button\n style={{\n width: \"110px\",\n display: \"flex\",\n cursor: \"pointer\",\n justifyContent: \"center\",\n alignItems: \"center\",\n gap: \"8px\",\n borderRadius: \"4px\",\n background: \"rgb(141, 141, 253)\",\n height: \"40px\",\n }}\n onClick={next}\n >\n <div class={\"ConfirmText\"}>Next</div>\n </button>\n </OverlayTrigger>\n </>\n )}\n {state.step == 3 && (\n <div\n style={{\n width: \"110px\",\n display: \"flex\",\n cursor: \"pointer\",\n justifyContent: \"center\",\n alignItems: \"center\",\n gap: \"8px\",\n borderRadius: \"4px\",\n background: \"rgb(141, 141, 253)\",\n height: \"40px\",\n }}\n onClick={confirm}\n >\n <div class={\"ConfirmText\"}>Confirm</div>\n </div>\n )}\n </div>\n </div>\n </>\n ) : state.sender ? (\n <span class=\"text-white\">\n To proceed, please switch to the\n <br />\n <div class=\"networkNameContainer\" onClick={() => switchNetwork(5)}>\n <span class=\"networkName\">zkSync Era Network</span>\n </div>\n using your wallet.\n </span>\n ) : (\n <>\n <div>\n <Web3Connect\n className=\"ConfirmButton ConfirmText\"\n connectLabel=\"Connect Wallet\"\n />\n </div>\n </>\n )}\n </MainContainer>\n </div>\n </Theme>\n);\n",
"metadata": {
"image": {}
}
}
}
}
}
}1 automatic refund step from the network not shown.
This page reads FastNEAR's public transaction index and stores nothing. This command asks a NEAR archival node for the same transaction and needs no keys.
curl -s https://archival-rpc.testnet.fastnear.com -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"tx","params":{"tx_hash":"G2Wkd1Tukoz65DDMXg2fLQQBNuo9cNac89b9zMqNV9jo","sender_account_id":"dokxo.testnet","wait_until":"FINAL"}}'Vouch has its own page because testnet.nearblocks.io stopped indexing on 27 Sep 2026, so it can't show newer transactions.