Latest 25 from a total of 3,633 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| 0x00000000 | 432457341 | 3 hrs ago | IN | 0.046925 ETH | 0.00000064 | ||||
| 0x00000000 | 432257711 | 17 hrs ago | IN | 0.003292 ETH | 0.00000064 | ||||
| 0x00000000 | 432157441 | 24 hrs ago | IN | 0.0001 ETH | 0.00000065 | ||||
| 0x00000000 | 432088789 | 29 hrs ago | IN | 0.000414 ETH | 0.00000065 | ||||
| 0x00000000 | 432075606 | 30 hrs ago | IN | 0.0019 ETH | 0.00000065 | ||||
| 0x00000000 | 431997987 | 35 hrs ago | IN | 0.0025 ETH | 0.00000065 | ||||
| 0x00000000 | 431862267 | 45 hrs ago | IN | 0.005482 ETH | 0.00000065 | ||||
| 0x00000000 | 431852320 | 45 hrs ago | IN | 0.009153 ETH | 0.00000065 | ||||
| 0x00000000 | 431548577 | 2 days ago | IN | 0.009832 ETH | 0.00000064 | ||||
| 0x00000000 | 431492971 | 2 days ago | IN | 0.001 ETH | 0.00000065 | ||||
| 0x00000000 | 431376726 | 3 days ago | IN | 0.00526 ETH | 0.00000067 | ||||
| 0x00000000 | 431336460 | 3 days ago | IN | 0.0006 ETH | 0.00000065 | ||||
| 0x00000000 | 431335551 | 3 days ago | IN | 0.0008 ETH | 0.00000068 | ||||
| 0x00000000 | 431310771 | 3 days ago | IN | 0.003 ETH | 0.00000065 | ||||
| 0x00000000 | 431289640 | 3 days ago | IN | 0.009779 ETH | 0.00000064 | ||||
| 0x00000000 | 431236503 | 3 days ago | IN | 0.0026 ETH | 0.00000065 | ||||
| 0x00000000 | 431000168 | 4 days ago | IN | 0.001321 ETH | 0.00000069 | ||||
| 0x00000000 | 430990763 | 4 days ago | IN | 0.002436 ETH | 0.00000122 | ||||
| 0x00000000 | 430990542 | 4 days ago | IN | 0.002465 ETH | 0.00000065 | ||||
| 0x00000000 | 430990346 | 4 days ago | IN | 0.0025 ETH | 0.00000065 | ||||
| 0x00000000 | 430966228 | 4 days ago | IN | 0.001 ETH | 0.00000065 | ||||
| 0x00000000 | 430667396 | 5 days ago | IN | 0.0007 ETH | 0.00000065 | ||||
| 0x00000000 | 430643347 | 5 days ago | IN | 0.002561 ETH | 0.00000065 | ||||
| 0x00000000 | 430643194 | 5 days ago | IN | 0.002588 ETH | 0.00000065 | ||||
| 0x00000000 | 430643032 | 5 days ago | IN | 0.002614 ETH | 0.00000065 |
Latest 25 internal transactions (View All)
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 432497965 | 1 hr ago | 0.02545762 ETH | ||||
| 432497965 | 1 hr ago | 0.02545762 ETH | ||||
| 432457341 | 3 hrs ago | 0.046925 ETH | ||||
| 432257711 | 17 hrs ago | 0.003292 ETH | ||||
| 432157441 | 24 hrs ago | 0.0001 ETH | ||||
| 432107484 | 28 hrs ago | 0.00215883 ETH | ||||
| 432107484 | 28 hrs ago | 0.00215883 ETH | ||||
| 432088789 | 29 hrs ago | 0.000414 ETH | ||||
| 432075606 | 30 hrs ago | 0.0019 ETH | ||||
| 432051498 | 32 hrs ago | 0.00284655 ETH | ||||
| 432051498 | 32 hrs ago | 0.00284655 ETH | ||||
| 432020652 | 34 hrs ago | 0.01252074 ETH | ||||
| 432020652 | 34 hrs ago | 0.01252074 ETH | ||||
| 431997987 | 35 hrs ago | 0.0025 ETH | ||||
| 431862267 | 45 hrs ago | 0.005482 ETH | ||||
| 431852320 | 45 hrs ago | 0.009153 ETH | ||||
| 431760218 | 2 days ago | 0.09671177 ETH | ||||
| 431760218 | 2 days ago | 0.09671177 ETH | ||||
| 431746244 | 2 days ago | 0.00447034 ETH | ||||
| 431746244 | 2 days ago | 0.00447034 ETH | ||||
| 431732306 | 2 days ago | 0.00073094 ETH | ||||
| 431732306 | 2 days ago | 0.00073094 ETH | ||||
| 431731231 | 2 days ago | 0.00048536 ETH | ||||
| 431731231 | 2 days ago | 0.00048536 ETH | ||||
| 431730195 | 2 days ago | 0.00072858 ETH |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
WheelxReceiver
Compiler Version
v0.8.25+commit.b61c2a91
Optimization Enabled:
Yes with 10000 runs
Other Settings:
london EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
contract WheelxReceiver {
// --- Errors ---
struct Call {
address to;
bytes data;
uint256 value;
}
error CallFailed();
error Unauthorized();
error NativeTransferFailed();
// --- Events ---
event WheelxDeposit(bytes32 indexed data, uint256 amount);
// --- Fields ---
address private immutable SOLVER;
// --- Constructor ---
constructor(address solver) {
SOLVER = solver;
}
// --- Public methods ---
fallback() payable external {
send(SOLVER, msg.value);
emit WheelxDeposit(to_bytes32(msg.data), msg.value);
}
function forward(bytes calldata data) payable external {
send(SOLVER, msg.value);
emit WheelxDeposit(to_bytes32(data), msg.value);
}
function makeCalls(Call[] calldata calls) external payable {
if (msg.sender != SOLVER) {
revert Unauthorized();
}
unchecked {
uint256 length = calls.length;
for (uint256 i; i < length; i++) {
Call memory c = calls[i];
(bool success, ) = c.to.call{value: c.value}(c.data);
if (!success) {
revert CallFailed();
}
}
}
}
// --- Internal methods ---
function to_bytes32(bytes memory data) internal pure returns (bytes32 converted) {
assembly {
converted := mload(add(data, 32))
}
}
function send(address to, uint256 value) internal {
bool success;
assembly {
// Save gas by avoiding copying the return data to memory.
// Provide at most 100k gas to the internal call, which is
// more than enough to cover common use-cases of logic for
// receiving native tokens (eg. SCW payable fallbacks).
success := call(100000, to, value, 0, 0, 0, 0)
}
if (!success) {
revert NativeTransferFailed();
}
}
}{
"remappings": [
"@permit2/=lib/permit2/src/",
"@arbitrum/=node_modules/@arbitrum/",
"@axelar-network/=node_modules/@axelar-network/",
"@chainlink/=node_modules/@chainlink/",
"@eth-optimism/=node_modules/@eth-optimism/",
"@hyperlane-xyz/=node_modules/@hyperlane-xyz/core/contracts/",
"@layerzerolabs/=node_modules/@layerzerolabs/",
"@offchainlabs/=node_modules/@offchainlabs/",
"@openzeppelin/=node_modules/@openzeppelin/",
"@scroll-tech/=node_modules/@scroll-tech/",
"@uniswap/=node_modules/@uniswap/",
"@zksync/=node_modules/@zksync/",
"fx-portal/=node_modules/fx-portal/",
"hardhat-deploy/=node_modules/hardhat-deploy/",
"solady/=lib/solady/src/",
"solidity-bytes-utils/=node_modules/solidity-bytes-utils/"
],
"optimizer": {
"enabled": true,
"runs": 10000
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "none",
"appendCBOR": true
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "london",
"viaIR": false
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"solver","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"CallFailed","type":"error"},{"inputs":[],"name":"NativeTransferFailed","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"data","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WheelxDeposit","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"bytes","name":"data","type":"bytes"}],"name":"forward","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct WheelxReceiver.Call[]","name":"calls","type":"tuple[]"}],"name":"makeCalls","outputs":[],"stateMutability":"payable","type":"function"}]Contract Creation Code
60a0604052348015600f57600080fd5b506040516106f83803806106f8833981016040819052602c91603c565b6001600160a01b0316608052606a565b600060208284031215604d57600080fd5b81516001600160a01b0381168114606357600080fd5b9392505050565b60805161066661009260003960008181602e0152818161014901526101fc01526106666000f3fe6080604052600436106100295760003560e01c8063d948d468146100c8578063dd4ed837146100dd575b6100537f0000000000000000000000000000000000000000000000000000000000000000346100f0565b6100936000368080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061013d92505050565b6040513481527fa0cbec95bdc369100e50ffde9bcab5d74d97e88b074d7abdb65ec12569cee3f59060200160405180910390a2005b6100db6100d6366004610351565b610144565b005b6100db6100eb3660046103c3565b6101e4565b60008060008060008587620186a0f1905080610138576040517ff4b3b1bc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b6020015190565b61016e7f0000000000000000000000000000000000000000000000000000000000000000346100f0565b6101ad82828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061013d92505050565b6040513481527fa0cbec95bdc369100e50ffde9bcab5d74d97e88b074d7abdb65ec12569cee3f59060200160405180910390a25050565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610253576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060005b8181101561034b57600084848381811061027357610273610426565b90506020028101906102859190610455565b61028e9061053a565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16826040015183602001516040516102c4919061062a565b60006040518083038185875af1925050503d8060008114610301576040519150601f19603f3d011682016040523d82523d6000602084013e610306565b606091505b5050905080610341576040517f3204506f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050600101610257565b50505050565b6000806020838503121561036457600080fd5b823567ffffffffffffffff8082111561037c57600080fd5b818501915085601f83011261039057600080fd5b81358181111561039f57600080fd5b8660208285010111156103b157600080fd5b60209290920196919550909350505050565b600080602083850312156103d657600080fd5b823567ffffffffffffffff808211156103ee57600080fd5b818501915085601f83011261040257600080fd5b81358181111561041157600080fd5b8660208260051b85010111156103b157600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa183360301811261048957600080fd5b9190910192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040516060810167ffffffffffffffff811182821017156104e5576104e5610493565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561053257610532610493565b604052919050565b60006060823603121561054c57600080fd5b6105546104c2565b823573ffffffffffffffffffffffffffffffffffffffff8116811461057857600080fd5b815260208381013567ffffffffffffffff8082111561059657600080fd5b9085019036601f8301126105a957600080fd5b8135818111156105bb576105bb610493565b6105eb847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116016104eb565b9150808252368482850101111561060157600080fd5b808484018584013760009082018401529183019190915250604092830135928101929092525090565b6000825160005b8181101561064b5760208186018101518583015201610631565b50600092019182525091905056fea164736f6c6343000819000a0000000000000000000000004fd0fc39eb0d56fe8250496dbfc81c39b1021ac6
Deployed Bytecode
0x6080604052600436106100295760003560e01c8063d948d468146100c8578063dd4ed837146100dd575b6100537f0000000000000000000000004fd0fc39eb0d56fe8250496dbfc81c39b1021ac6346100f0565b6100936000368080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061013d92505050565b6040513481527fa0cbec95bdc369100e50ffde9bcab5d74d97e88b074d7abdb65ec12569cee3f59060200160405180910390a2005b6100db6100d6366004610351565b610144565b005b6100db6100eb3660046103c3565b6101e4565b60008060008060008587620186a0f1905080610138576040517ff4b3b1bc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b6020015190565b61016e7f0000000000000000000000004fd0fc39eb0d56fe8250496dbfc81c39b1021ac6346100f0565b6101ad82828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061013d92505050565b6040513481527fa0cbec95bdc369100e50ffde9bcab5d74d97e88b074d7abdb65ec12569cee3f59060200160405180910390a25050565b3373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000004fd0fc39eb0d56fe8250496dbfc81c39b1021ac61614610253576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060005b8181101561034b57600084848381811061027357610273610426565b90506020028101906102859190610455565b61028e9061053a565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16826040015183602001516040516102c4919061062a565b60006040518083038185875af1925050503d8060008114610301576040519150601f19603f3d011682016040523d82523d6000602084013e610306565b606091505b5050905080610341576040517f3204506f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050600101610257565b50505050565b6000806020838503121561036457600080fd5b823567ffffffffffffffff8082111561037c57600080fd5b818501915085601f83011261039057600080fd5b81358181111561039f57600080fd5b8660208285010111156103b157600080fd5b60209290920196919550909350505050565b600080602083850312156103d657600080fd5b823567ffffffffffffffff808211156103ee57600080fd5b818501915085601f83011261040257600080fd5b81358181111561041157600080fd5b8660208260051b85010111156103b157600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa183360301811261048957600080fd5b9190910192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040516060810167ffffffffffffffff811182821017156104e5576104e5610493565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561053257610532610493565b604052919050565b60006060823603121561054c57600080fd5b6105546104c2565b823573ffffffffffffffffffffffffffffffffffffffff8116811461057857600080fd5b815260208381013567ffffffffffffffff8082111561059657600080fd5b9085019036601f8301126105a957600080fd5b8135818111156105bb576105bb610493565b6105eb847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116016104eb565b9150808252368482850101111561060157600080fd5b808484018584013760009082018401529183019190915250604092830135928101929092525090565b6000825160005b8181101561064b5760208186018101518583015201610631565b50600092019182525091905056fea164736f6c6343000819000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004fd0fc39eb0d56fe8250496dbfc81c39b1021ac6
-----Decoded View---------------
Arg [0] : solver (address): 0x4fd0FC39eb0d56FE8250496DbFC81c39B1021ac6
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000004fd0fc39eb0d56fe8250496dbfc81c39b1021ac6
Loading...
Loading
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.
${zeroWidthWarningMessage} Check the actual text at ENS.
`;
}
const ensOnL2NoteHtml = ensOnL2Note != "" ? `Additional Info
Full Name:
${ensNameForkIconSrc}
Note:
- Name tag is displayed due to forward and reverse resolution. Find out more.
- ${ensOnL2NoteHtml}
Other names resolving to this address:
${listOtherENSNames}
${moreOtherENSNames}
`;
return result;
}
// ===== UD name tag
const displayUDName = '';
const primaryUDName = '';
const showUDPublicNote = 'false';
let otherUDNamesHtml = "";
function initUDNamePopOver() {
//required to allow bootstrap popover to support table
$.fn.popover.Constructor.Default.allowList.table = [];
$.fn.popover.Constructor.Default.allowList.tr = [];
$.fn.popover.Constructor.Default.allowList.td = [];
$.fn.popover.Constructor.Default.allowList.th = [];
$.fn.popover.Constructor.Default.allowList.div = [];
$.fn.popover.Constructor.Default.allowList.tbody = [];
$.fn.popover.Constructor.Default.allowList.thead = [];
//allowList my inline styling for bootstrap
$.fn.popover.Constructor.Default.allowList['*'].push('style')
let unicodeWarningHtml = "";
if ($("#hdnIsUDContainUnicodeChars").val() == "true") {
unicodeWarningHtml =
`
${unicodeWarningMessage} Check the actual text at Unstoppable Domains.
`;
}
let zeroWidthWarningHtml = "";
if ($("#hdnIsUDContainZeroWidthChars").val() == "true") {
zeroWidthWarningHtml =
`
${unicodeWarningMessage} Check the actual text at Unstoppable Domains.
`;
}
const contentHtml =
`Additional Info
Full Name:
Note:
- Name tag is displayed due to forward and reverse resolution. Find out more
Other names resolving to this address:
${listOtherUDNames}
${moreOtherUDNames}
`;
return result;
}
// ===== end UD name tag
const tooltipForTokenHolding = '1 Token Contract';
var adjustPosition = 0;
$(document).ready(function () {
switchAmountToValue(document.getElementById("headerAmountValue"), 'Value (USD)', 'Amount', true);
switchAmountToValue(document.getElementById("headerIntAmountValue"), 'Value (USD)', 'Amount', true);
switchMethodColumn(document.getElementById("headerMethod"), 'Method', 'Action', true);
onDocumentReady();
$("[rel='tooltip']").tooltip();
$("[data-bs-toggle-second='tooltip']").tooltip({ trigger: 'hover' });
$("[rel='tooltipEns']").each(function () {
$(this).tooltip({ title: $(this).attr("tooltip-title") });
});
if (hash != '') {
activaTab(hash);
};
onAddressDocReady();
// Note: this is causing "Copied" tooltip not showing when copy button is clicked in V3, and seems like not applicable to v3, comment out first in case there is issue
//$('[data-bs-toggle="tooltip"]').click(function () {
// $('[data-bs-toggle="tooltip"]').tooltip("hide");
//});
document.getElementById("copyaddressbutton").classList.remove("disabled");
if ($("#txtSearchContract").length) {
initialiseKeyupOnDocReady();
}
if (!!$('#ensName')[0]) {
initEnsNamePopOver();
}
if (!!$("#udName")[0]) {
initUDNamePopOver();
}
handleToggle();
if (window.matchMedia("(max-width: 767px)").matches) {
// Mobile
adjustPosition = 90;
} else {
// Others
adjustPosition = 50;
}
if (tooltipForTokenHolding) {
const dropdownMenuBalance = document.getElementById("dropdownMenuBalance");
if (dropdownMenuBalance) {
const dropdownWrapper = dropdownMenuBalance.closest(".dropdown");
if (dropdownWrapper) {
dropdownWrapper.setAttribute("title", tooltipForTokenHolding);
new bootstrap.Tooltip(dropdownWrapper);
}
}
}
});
function displayAudit() {
$('html, body').animate({
scrollTop: $("#auditReportId").offset().top - adjustPosition
});
}
var cThemeMode = getCookie('displaymode');
function handleToggle() {
var className = document.getElementsByClassName('editor');
var classNameCount = className.length;
for (var j = 0; j t.innerWidth()) {
if (mb + d > tb) {
t.css('padding-bottom', ((mb + d) - tb));
}
}
else {
t.css('overflow', 'visible');
}
}).on('hidden.bs.dropdown', function () {
$(this).css({ 'padding-bottom': '', 'overflow': '' });
});
var btn_ERC20_sort = {
count: 0,
reminder_count: 2,
list: [],
default_list: [],
ERC20_sort_start: function (count) {
if (document.getElementsByClassName('list-custom-divider-ERC20')[0]) {
var self = this
if (count != undefined) {
self.count = count
}
var before_el = document.getElementsByClassName('list-custom-divider-ERC20')[0]
var parent_el = before_el.parentNode
var element_selector = parent_el.querySelectorAll(".list-custom-ERC20");
if (self.list.length == 0) {
element_selector.forEach(function (e) {
self.list.push(e);
self.default_list.push(e);
});
}
$(".list-custom-ERC20").remove()
var type = self.count % self.reminder_count
self.sortList(type, parent_el, before_el);
self.count++
}
},
sortList: function (type, parent_el, before_el) {
var self = this
var sorted_list = []
var icon_el = $(before_el).find('button').find('i')
switch (type) {
case 1:
icon_el.attr("class", "fad fa-sort-up")
sorted_list = self.sortUsdAsc()
break;
default:
icon_el.attr("class", "fad fa-sort-down")
sorted_list = self.sortUsdDesc()
}
for (var i = sorted_list.length - 1; i >= 0; i--) {
before_el.insertAdjacentElement('afterend', sorted_list[i])
}
},
sortUsdAsc: function () {
var self = this
var sort_list = self.list
sort_list.sort(function (a, b) {
var target_a_value = self.formatCurrencyToNumber(a.querySelector('.list-usd-value').textContent.trim() || -1);
var target_b_value = self.formatCurrencyToNumber(b.querySelector('.list-usd-value').textContent.trim() || -1);
if (target_a_value == -1 || target_b_value == -1) {
return 1;
}
if (target_a_value target_b_value) {
return 1;
}
return 0
});
return sort_list
},
sortUsdDesc: function () {
var self = this
var sort_list = self.list
sort_list.sort(function (a, b) {
var target_a_value = self.formatCurrencyToNumber(a.querySelector('.list-usd-value').textContent.trim() || -1);
var target_b_value = self.formatCurrencyToNumber(b.querySelector('.list-usd-value').textContent.trim() || -1);
if (target_a_value target_b_value) {
return -1;
}
return 0
});
return sort_list
},
formatCurrencyToNumber: function (strCurrency) {
if (typeof strCurrency == "number")
return strCurrency
else
return Number(strCurrency.replace(/[^0-9.-]+/g, ""));
},
}
function hrefTokenHolding() {
var location = "/tokenholdings?a=0xb10f9ec04a66b69e3831e1e5b1e6b9d41081b6cc"
var queryString = $("input.form-control.form-control-xs.search.mb-3")[0].value
if (queryString) {
location += "&q=" + queryString
}
window.location.href = location
}
$(document).ready(function () {
$("#btn_ERC20_sort").on("click", function (event) {
event.preventDefault();
setTimeout(function () {
btn_ERC20_sort.ERC20_sort_start()
}, 10)
})
btn_ERC20_sort.ERC20_sort_start()
var mainAddress = $("#hdnAddress").val();
// user search for method filters
var searchFuncTimeOut;
$("#ContentPlaceHolder1_inputMethodName").on("keyup", function ($event) {
if (searchFuncTimeOut) {
clearTimeout(searchFuncTimeOut)
}
var searchTerm = $(this).val();
searchFuncTimeOut = setTimeout(function () {
searchFunctions( searchTerm);
}, 350);
});
var isSearchFunctions = false;
$("#dropdownMethod").on("click", function (e) {
if (isSearchFunctions === false) {
searchFunctions('');
isSearchFunctions = true;
}
});
const litDefaultMethodFilterHtml = '';
function searchFunctions(searchTerm) {
if (searchTerm === '' || searchTerm.length > 3) {
const curPath = encodeURIComponent(window.location.search);
$.ajax({
type: 'Get',
url: `/functionSearchHandler.ashx?ca=${mainAddress}&func=${searchTerm ?? ''}&curPath=${curPath}`,
success: function (response) {
$("#searchFunctionResult").html('');
if (response && response.length > 0) {
for (var i = 0; i
${response[i].name}
${response[i].methodId}
`
);
}
$("[data-bs-toggle='tooltip']").tooltip();
}
else {
$("#searchFunctionResult").append(
`