ETH Price: $2,973.94 (-4.19%)
Gas: 2 Gwei

Contract

0x11BaC0C3C81838022327198AA46124cdB8CE6AB9
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

TokenTracker

CSAS (CSAS) (@$0.0014)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Approve202028992024-06-30 7:06:235 days ago1719731183IN
COMSATS: CSAS Token
0 ETH0.000078441.66397824
Approve201885482024-06-28 6:59:357 days ago1719557975IN
COMSATS: CSAS Token
0 ETH0.000157353.33376887
Approve201565412024-06-23 19:41:2312 days ago1719171683IN
COMSATS: CSAS Token
0 ETH0.000122452.61287625
Transfer201522742024-06-23 5:20:4712 days ago1719120047IN
COMSATS: CSAS Token
0 ETH0.000099273.2763523
Transfer201408352024-06-21 14:56:3514 days ago1718981795IN
COMSATS: CSAS Token
0 ETH0.0007019820
Transfer201261922024-06-19 13:50:1116 days ago1718805011IN
COMSATS: CSAS Token
0 ETH0.0005874310.77881965
Approve201238832024-06-19 6:05:3516 days ago1718777135IN
COMSATS: CSAS Token
0 ETH0.000146383.1012682
Approve199590272024-05-27 5:09:4739 days ago1716786587IN
COMSATS: CSAS Token
0 ETH0.000383828.14216692
Approve199454332024-05-25 7:35:1141 days ago1716622511IN
COMSATS: CSAS Token
0 ETH0.000275175.8372329
Approve199244622024-05-22 9:14:3544 days ago1716369275IN
COMSATS: CSAS Token
0 ETH0.000338287.20714169
Transfer199091972024-05-20 5:57:4746 days ago1716184667IN
COMSATS: CSAS Token
0 ETH0.000121922.57361756
Approve198798432024-05-16 3:25:3550 days ago1715829935IN
COMSATS: CSAS Token
0 ETH0.000129065.17982378
Approve198798362024-05-16 3:24:1150 days ago1715829851IN
COMSATS: CSAS Token
0 ETH0.000236755.01589057
Transfer198307362024-05-09 6:36:4757 days ago1715236607IN
COMSATS: CSAS Token
0 ETH0.000281375.9377892
Approve196912022024-04-19 18:15:3577 days ago1713550535IN
COMSATS: CSAS Token
0 ETH0.000434049.24745647
Approve196086762024-04-08 4:49:2388 days ago1712551763IN
COMSATS: CSAS Token
0 ETH0.000454799.70196898
Approve195887842024-04-05 9:55:4791 days ago1712310947IN
COMSATS: CSAS Token
0 ETH0.0006881914.58010359
Approve195825382024-04-04 12:56:1192 days ago1712235371IN
COMSATS: CSAS Token
0 ETH0.0011297523.96547516
Approve195327292024-03-28 12:52:3599 days ago1711630355IN
COMSATS: CSAS Token
0 ETH0.0018929540.10414719
Transfer195307232024-03-28 6:07:5999 days ago1711606079IN
COMSATS: CSAS Token
0 ETH0.0010633820.38118858
Transfer195245802024-03-27 8:48:47100 days ago1711529327IN
COMSATS: CSAS Token
0 ETH0.0011861625.03149767
Transfer195244272024-03-27 8:17:35100 days ago1711527455IN
COMSATS: CSAS Token
0 ETH0.0006006721.8625157
Transfer195188072024-03-26 13:07:23101 days ago1711458443IN
COMSATS: CSAS Token
0 ETH0.0014868249.11051804
Transfer195119332024-03-25 13:56:47102 days ago1711375007IN
COMSATS: CSAS Token
0 ETH0.0007823325.82060394
Approve195107922024-03-25 10:05:47102 days ago1711361147IN
COMSATS: CSAS Token
0 ETH0.0014677131.13467118
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To Value
187703012023-12-12 13:07:47206 days ago1702386467  Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ComsatsERC20

Compiler Version
v0.8.22+commit.4fc1097e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : Bridge_flat.sol
// Sources flattened with hardhat v2.17.1 https://hardhat.org

// SPDX-License-Identifier: MIT

// File @openzeppelin/contracts/utils/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File @openzeppelin/contracts/access/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(
        address indexed previousOwner,
        address indexed newOwner
    );

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(
            newOwner != address(0),
            "Ownable: new owner is the zero address"
        );
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// File @openzeppelin/contracts/token/ERC20/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 value
    );

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(
        address owner,
        address spender
    ) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

// File @openzeppelin/contracts/token/ERC20/extensions/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// File @openzeppelin/contracts/token/ERC20/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the default value returned by this function, unless
     * it's overridden.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(
        address account
    ) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(
        address owner,
        address spender
    ) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(
        address spender,
        uint256 amount
    ) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(
        address spender,
        uint256 addedValue
    ) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(
        address spender,
        uint256 subtractedValue
    ) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(
            currentAllowance >= subtractedValue,
            "ERC20: decreased allowance below zero"
        );
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(
            fromBalance >= amount,
            "ERC20: transfer amount exceeds balance"
        );
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(
                currentAllowance >= amount,
                "ERC20: insufficient allowance"
            );
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

// File contracts/Bridge.sol

// Original license: SPDX_License_Identifier: MIT

pragma solidity ^0.8.21;

contract ComsatsERC20 is ERC20 {
    address public bridgeAddress;

    constructor(
        string memory _name,
        string memory _symbol
    ) ERC20(_name, _symbol) {
        bridgeAddress = msg.sender;
    }

    function mint(address to, uint256 _amount) external {
        require(msg.sender == bridgeAddress, "Unauthorized");
        _mint(to, _amount);
    }

    function burn(address from, uint256 _amount) external {
        require(msg.sender == bridgeAddress, "Unauthorized");
        _burn(from, _amount);
    }
}

contract ComsatsBridge is Ownable {
    event Deposit(address sender, uint256 amount, address token, string to);
    event CreatedBrc20(address indexed token, string name, string symbol);
    event Withdraw(
        address sender,
        uint256 amount,
        bytes32 messageHash,
        address token
    );
    event FeesUpdated(uint256 fees);

    bool public paused;
    address public validator;
    uint256 public fees = 0.01 ether;

    mapping(bytes => bool) public executed;

    constructor(address _validator) {
        validator = _validator;
    }

    modifier whenNotPaused() {
        require(!paused, "paused");
        _;
    }

    function deposit(
        uint256 _amount,
        address _token,
        string memory _to
    ) external payable whenNotPaused {
        require(_amount > 1e18 && _amount % 1e18 == 0, "invalid amount");
        require(msg.value == fees, "invalid fees amount");

        ComsatsERC20(_token).burn(msg.sender, _amount);
        emit Deposit(msg.sender, _amount, _token, _to);
    }

    function execute(
        address _token,
        uint256 _amount,
        string memory _message,
        uint256 _nonce,
        bytes memory _signature
    ) external whenNotPaused {
        require(
            verify(
                validator,
                _token,
                msg.sender,
                _amount,
                _message,
                _nonce,
                _signature
            ),
            "invalid signature"
        );
        bytes32 messageHash = getMessageHash(
            _token,
            msg.sender,
            _amount,
            _message,
            _nonce
        );
        require(!executed[_signature], "messageHash is submited");

        executed[_signature] = true;

        ComsatsERC20(_token).mint(msg.sender, _amount);

        emit Withdraw(msg.sender, _amount, messageHash, _token);
    }

    function togglePause() external onlyOwner {
        paused = !paused;
    }

    function setValidator(address _validator) external onlyOwner {
        validator = _validator;
    }

    function setFees(uint256 _fees) external onlyOwner {
        fees = _fees;
        emit FeesUpdated(fees);
    }

    function createBrc20(
        string memory _name,
        string memory _symbol
    ) external onlyOwner {
        ComsatsERC20 token = new ComsatsERC20(_name, _symbol);
        emit CreatedBrc20(address(token), _name, _symbol);
    }

    function getMessageHash(
        address _token,
        address _to,
        uint256 _amount,
        string memory _message,
        uint256 _nonce
    ) public pure returns (bytes32) {
        return
            keccak256(abi.encodePacked(_token, _to, _amount, _message, _nonce));
    }

    function getEthSignedMessageHash(
        bytes32 _messageHash
    ) public pure returns (bytes32) {
        return
            keccak256(
                abi.encodePacked(
                    "\x19Ethereum Signed Message:\n32",
                    _messageHash
                )
            );
    }

    function verify(
        address _signer,
        address _token,
        address _to,
        uint256 _amount,
        string memory _message,
        uint256 _nonce,
        bytes memory signature
    ) public pure returns (bool) {
        bytes32 messageHash = getMessageHash(
            _token,
            _to,
            _amount,
            _message,
            _nonce
        );
        bytes32 ethSignedMessageHash = getEthSignedMessageHash(messageHash);

        return recoverSigner(ethSignedMessageHash, signature) == _signer;
    }

    function recoverSigner(
        bytes32 _ethSignedMessageHash,
        bytes memory _signature
    ) public pure returns (address) {
        (bytes32 r, bytes32 s, uint8 v) = splitSignature(_signature);
        return ecrecover(_ethSignedMessageHash, v, r, s);
    }

    function splitSignature(
        bytes memory sig
    ) public pure returns (bytes32 r, bytes32 s, uint8 v) {
        require(sig.length == 65, "invalid signature length");

        assembly {
            r := mload(add(sig, 32))
            s := mload(add(sig, 64))
            v := byte(0, mload(add(sig, 96)))
        }
    }

    function withdrawFees() external onlyOwner {
        payable(msg.sender).transfer(address(this).balance);
    }

    receive() external payable {}
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"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":[{"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":[{"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":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","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":[],"name":"bridgeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

608060405234801562000010575f80fd5b5060405162001eb538038062001eb583398181016040528101906200003691906200022b565b81818160039081620000499190620004e5565b5080600490816200005b9190620004e5565b5050503360055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050620005c9565b5f604051905090565b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6200010782620000bf565b810181811067ffffffffffffffff82111715620001295762000128620000cf565b5b80604052505050565b5f6200013d620000a6565b90506200014b8282620000fc565b919050565b5f67ffffffffffffffff8211156200016d576200016c620000cf565b5b6200017882620000bf565b9050602081019050919050565b5f5b83811015620001a457808201518184015260208101905062000187565b5f8484015250505050565b5f620001c5620001bf8462000150565b62000132565b905082815260208101848484011115620001e457620001e3620000bb565b5b620001f184828562000185565b509392505050565b5f82601f83011262000210576200020f620000b7565b5b815162000222848260208601620001af565b91505092915050565b5f8060408385031215620002445762000243620000af565b5b5f83015167ffffffffffffffff811115620002645762000263620000b3565b5b6200027285828601620001f9565b925050602083015167ffffffffffffffff811115620002965762000295620000b3565b5b620002a485828601620001f9565b9150509250929050565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680620002fd57607f821691505b602082108103620003135762000312620002b8565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302620003777fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200033a565b6200038386836200033a565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f620003cd620003c7620003c1846200039b565b620003a4565b6200039b565b9050919050565b5f819050919050565b620003e883620003ad565b62000400620003f782620003d4565b84845462000346565b825550505050565b5f90565b6200041662000408565b62000423818484620003dd565b505050565b5b818110156200044a576200043e5f826200040c565b60018101905062000429565b5050565b601f8211156200049957620004638162000319565b6200046e846200032b565b810160208510156200047e578190505b620004966200048d856200032b565b83018262000428565b50505b505050565b5f82821c905092915050565b5f620004bb5f19846008026200049e565b1980831691505092915050565b5f620004d58383620004aa565b9150826002028217905092915050565b620004f082620002ae565b67ffffffffffffffff8111156200050c576200050b620000cf565b5b620005188254620002e5565b620005258282856200044e565b5f60209050601f8311600181146200055b575f841562000546578287015190505b620005528582620004c8565b865550620005c1565b601f1984166200056b8662000319565b5f5b8281101562000594578489015182556001820191506020850194506020810190506200056d565b86831015620005b45784890151620005b0601f891682620004aa565b8355505b6001600288020188555050505b505050505050565b6118de80620005d75f395ff3fe608060405234801561000f575f80fd5b50600436106100e8575f3560e01c806370a082311161008a578063a3c573eb11610064578063a3c573eb1461025c578063a457c2d71461027a578063a9059cbb146102aa578063dd62ed3e146102da576100e8565b806370a08231146101f257806395d89b41146102225780639dc29fac14610240576100e8565b806323b872dd116100c657806323b872dd14610158578063313ce5671461018857806339509351146101a657806340c10f19146101d6576100e8565b806306fdde03146100ec578063095ea7b31461010a57806318160ddd1461013a575b5f80fd5b6100f461030a565b6040516101019190610fe4565b60405180910390f35b610124600480360381019061011f9190611095565b61039a565b60405161013191906110ed565b60405180910390f35b6101426103bc565b60405161014f9190611115565b60405180910390f35b610172600480360381019061016d919061112e565b6103c5565b60405161017f91906110ed565b60405180910390f35b6101906103f3565b60405161019d9190611199565b60405180910390f35b6101c060048036038101906101bb9190611095565b6103fb565b6040516101cd91906110ed565b60405180910390f35b6101f060048036038101906101eb9190611095565b610431565b005b61020c600480360381019061020791906111b2565b6104ce565b6040516102199190611115565b60405180910390f35b61022a610513565b6040516102379190610fe4565b60405180910390f35b61025a60048036038101906102559190611095565b6105a3565b005b610264610640565b60405161027191906111ec565b60405180910390f35b610294600480360381019061028f9190611095565b610665565b6040516102a191906110ed565b60405180910390f35b6102c460048036038101906102bf9190611095565b6106da565b6040516102d191906110ed565b60405180910390f35b6102f460048036038101906102ef9190611205565b6106fc565b6040516103019190611115565b60405180910390f35b60606003805461031990611270565b80601f016020809104026020016040519081016040528092919081815260200182805461034590611270565b80156103905780601f1061036757610100808354040283529160200191610390565b820191905f5260205f20905b81548152906001019060200180831161037357829003601f168201915b5050505050905090565b5f806103a461077e565b90506103b1818585610785565b600191505092915050565b5f600254905090565b5f806103cf61077e565b90506103dc858285610948565b6103e78585856109d3565b60019150509392505050565b5f6012905090565b5f8061040561077e565b905061042681858561041785896106fc565b61042191906112cd565b610785565b600191505092915050565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146104c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104b79061134a565b60405180910390fd5b6104ca8282610c3f565b5050565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b60606004805461052290611270565b80601f016020809104026020016040519081016040528092919081815260200182805461054e90611270565b80156105995780601f1061057057610100808354040283529160200191610599565b820191905f5260205f20905b81548152906001019060200180831161057c57829003601f168201915b5050505050905090565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610632576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106299061134a565b60405180910390fd5b61063c8282610d8d565b5050565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f8061066f61077e565b90505f61067c82866106fc565b9050838110156106c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106b8906113d8565b60405180910390fd5b6106ce8286868403610785565b60019250505092915050565b5f806106e461077e565b90506106f18185856109d3565b600191505092915050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036107f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ea90611466565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610861576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610858906114f4565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161093b9190611115565b60405180910390a3505050565b5f61095384846106fc565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146109cd57818110156109bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b69061155c565b60405180910390fd5b6109cc8484848403610785565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610a41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a38906115ea565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610aaf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa690611678565b60405180910390fd5b610aba838383610f50565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015610b3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3490611706565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610c269190611115565b60405180910390a3610c39848484610f55565b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610cad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca49061176e565b60405180910390fd5b610cb85f8383610f50565b8060025f828254610cc991906112cd565b92505081905550805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508173ffffffffffffffffffffffffffffffffffffffff165f73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610d769190611115565b60405180910390a3610d895f8383610f55565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610dfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df2906117fc565b60405180910390fd5b610e06825f83610f50565b5f805f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015610e89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e809061188a565b60405180910390fd5b8181035f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508160025f82825403925050819055505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610f389190611115565b60405180910390a3610f4b835f84610f55565b505050565b505050565b505050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015610f91578082015181840152602081019050610f76565b5f8484015250505050565b5f601f19601f8301169050919050565b5f610fb682610f5a565b610fc08185610f64565b9350610fd0818560208601610f74565b610fd981610f9c565b840191505092915050565b5f6020820190508181035f830152610ffc8184610fac565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61103182611008565b9050919050565b61104181611027565b811461104b575f80fd5b50565b5f8135905061105c81611038565b92915050565b5f819050919050565b61107481611062565b811461107e575f80fd5b50565b5f8135905061108f8161106b565b92915050565b5f80604083850312156110ab576110aa611004565b5b5f6110b88582860161104e565b92505060206110c985828601611081565b9150509250929050565b5f8115159050919050565b6110e7816110d3565b82525050565b5f6020820190506111005f8301846110de565b92915050565b61110f81611062565b82525050565b5f6020820190506111285f830184611106565b92915050565b5f805f6060848603121561114557611144611004565b5b5f6111528682870161104e565b93505060206111638682870161104e565b925050604061117486828701611081565b9150509250925092565b5f60ff82169050919050565b6111938161117e565b82525050565b5f6020820190506111ac5f83018461118a565b92915050565b5f602082840312156111c7576111c6611004565b5b5f6111d48482850161104e565b91505092915050565b6111e681611027565b82525050565b5f6020820190506111ff5f8301846111dd565b92915050565b5f806040838503121561121b5761121a611004565b5b5f6112288582860161104e565b92505060206112398582860161104e565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061128757607f821691505b60208210810361129a57611299611243565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6112d782611062565b91506112e283611062565b92508282019050808211156112fa576112f96112a0565b5b92915050565b7f556e617574686f72697a656400000000000000000000000000000000000000005f82015250565b5f611334600c83610f64565b915061133f82611300565b602082019050919050565b5f6020820190508181035f83015261136181611328565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f6113c2602583610f64565b91506113cd82611368565b604082019050919050565b5f6020820190508181035f8301526113ef816113b6565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f611450602483610f64565b915061145b826113f6565b604082019050919050565b5f6020820190508181035f83015261147d81611444565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f6114de602283610f64565b91506114e982611484565b604082019050919050565b5f6020820190508181035f83015261150b816114d2565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000005f82015250565b5f611546601d83610f64565b915061155182611512565b602082019050919050565b5f6020820190508181035f8301526115738161153a565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f6115d4602583610f64565b91506115df8261157a565b604082019050919050565b5f6020820190508181035f830152611601816115c8565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f611662602383610f64565b915061166d82611608565b604082019050919050565b5f6020820190508181035f83015261168f81611656565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f6116f0602683610f64565b91506116fb82611696565b604082019050919050565b5f6020820190508181035f83015261171d816116e4565b9050919050565b7f45524332303a206d696e7420746f20746865207a65726f2061646472657373005f82015250565b5f611758601f83610f64565b915061176382611724565b602082019050919050565b5f6020820190508181035f8301526117858161174c565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f206164647265735f8201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b5f6117e6602183610f64565b91506117f18261178c565b604082019050919050565b5f6020820190508181035f830152611813816117da565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e5f8201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b5f611874602283610f64565b915061187f8261181a565b604082019050919050565b5f6020820190508181035f8301526118a181611868565b905091905056fea2646970667358221220d79115565b99296cb11e055ddbd6e5f7d9e40e7404ebcb0858818e5b7d25a37c64736f6c63430008160033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000004435341530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044353415300000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561000f575f80fd5b50600436106100e8575f3560e01c806370a082311161008a578063a3c573eb11610064578063a3c573eb1461025c578063a457c2d71461027a578063a9059cbb146102aa578063dd62ed3e146102da576100e8565b806370a08231146101f257806395d89b41146102225780639dc29fac14610240576100e8565b806323b872dd116100c657806323b872dd14610158578063313ce5671461018857806339509351146101a657806340c10f19146101d6576100e8565b806306fdde03146100ec578063095ea7b31461010a57806318160ddd1461013a575b5f80fd5b6100f461030a565b6040516101019190610fe4565b60405180910390f35b610124600480360381019061011f9190611095565b61039a565b60405161013191906110ed565b60405180910390f35b6101426103bc565b60405161014f9190611115565b60405180910390f35b610172600480360381019061016d919061112e565b6103c5565b60405161017f91906110ed565b60405180910390f35b6101906103f3565b60405161019d9190611199565b60405180910390f35b6101c060048036038101906101bb9190611095565b6103fb565b6040516101cd91906110ed565b60405180910390f35b6101f060048036038101906101eb9190611095565b610431565b005b61020c600480360381019061020791906111b2565b6104ce565b6040516102199190611115565b60405180910390f35b61022a610513565b6040516102379190610fe4565b60405180910390f35b61025a60048036038101906102559190611095565b6105a3565b005b610264610640565b60405161027191906111ec565b60405180910390f35b610294600480360381019061028f9190611095565b610665565b6040516102a191906110ed565b60405180910390f35b6102c460048036038101906102bf9190611095565b6106da565b6040516102d191906110ed565b60405180910390f35b6102f460048036038101906102ef9190611205565b6106fc565b6040516103019190611115565b60405180910390f35b60606003805461031990611270565b80601f016020809104026020016040519081016040528092919081815260200182805461034590611270565b80156103905780601f1061036757610100808354040283529160200191610390565b820191905f5260205f20905b81548152906001019060200180831161037357829003601f168201915b5050505050905090565b5f806103a461077e565b90506103b1818585610785565b600191505092915050565b5f600254905090565b5f806103cf61077e565b90506103dc858285610948565b6103e78585856109d3565b60019150509392505050565b5f6012905090565b5f8061040561077e565b905061042681858561041785896106fc565b61042191906112cd565b610785565b600191505092915050565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146104c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104b79061134a565b60405180910390fd5b6104ca8282610c3f565b5050565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b60606004805461052290611270565b80601f016020809104026020016040519081016040528092919081815260200182805461054e90611270565b80156105995780601f1061057057610100808354040283529160200191610599565b820191905f5260205f20905b81548152906001019060200180831161057c57829003601f168201915b5050505050905090565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610632576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106299061134a565b60405180910390fd5b61063c8282610d8d565b5050565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f8061066f61077e565b90505f61067c82866106fc565b9050838110156106c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106b8906113d8565b60405180910390fd5b6106ce8286868403610785565b60019250505092915050565b5f806106e461077e565b90506106f18185856109d3565b600191505092915050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036107f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ea90611466565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610861576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610858906114f4565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161093b9190611115565b60405180910390a3505050565b5f61095384846106fc565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146109cd57818110156109bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b69061155c565b60405180910390fd5b6109cc8484848403610785565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610a41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a38906115ea565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610aaf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa690611678565b60405180910390fd5b610aba838383610f50565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015610b3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3490611706565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610c269190611115565b60405180910390a3610c39848484610f55565b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610cad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca49061176e565b60405180910390fd5b610cb85f8383610f50565b8060025f828254610cc991906112cd565b92505081905550805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508173ffffffffffffffffffffffffffffffffffffffff165f73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610d769190611115565b60405180910390a3610d895f8383610f55565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610dfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df2906117fc565b60405180910390fd5b610e06825f83610f50565b5f805f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015610e89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e809061188a565b60405180910390fd5b8181035f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508160025f82825403925050819055505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610f389190611115565b60405180910390a3610f4b835f84610f55565b505050565b505050565b505050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015610f91578082015181840152602081019050610f76565b5f8484015250505050565b5f601f19601f8301169050919050565b5f610fb682610f5a565b610fc08185610f64565b9350610fd0818560208601610f74565b610fd981610f9c565b840191505092915050565b5f6020820190508181035f830152610ffc8184610fac565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61103182611008565b9050919050565b61104181611027565b811461104b575f80fd5b50565b5f8135905061105c81611038565b92915050565b5f819050919050565b61107481611062565b811461107e575f80fd5b50565b5f8135905061108f8161106b565b92915050565b5f80604083850312156110ab576110aa611004565b5b5f6110b88582860161104e565b92505060206110c985828601611081565b9150509250929050565b5f8115159050919050565b6110e7816110d3565b82525050565b5f6020820190506111005f8301846110de565b92915050565b61110f81611062565b82525050565b5f6020820190506111285f830184611106565b92915050565b5f805f6060848603121561114557611144611004565b5b5f6111528682870161104e565b93505060206111638682870161104e565b925050604061117486828701611081565b9150509250925092565b5f60ff82169050919050565b6111938161117e565b82525050565b5f6020820190506111ac5f83018461118a565b92915050565b5f602082840312156111c7576111c6611004565b5b5f6111d48482850161104e565b91505092915050565b6111e681611027565b82525050565b5f6020820190506111ff5f8301846111dd565b92915050565b5f806040838503121561121b5761121a611004565b5b5f6112288582860161104e565b92505060206112398582860161104e565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061128757607f821691505b60208210810361129a57611299611243565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6112d782611062565b91506112e283611062565b92508282019050808211156112fa576112f96112a0565b5b92915050565b7f556e617574686f72697a656400000000000000000000000000000000000000005f82015250565b5f611334600c83610f64565b915061133f82611300565b602082019050919050565b5f6020820190508181035f83015261136181611328565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f6113c2602583610f64565b91506113cd82611368565b604082019050919050565b5f6020820190508181035f8301526113ef816113b6565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f611450602483610f64565b915061145b826113f6565b604082019050919050565b5f6020820190508181035f83015261147d81611444565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f6114de602283610f64565b91506114e982611484565b604082019050919050565b5f6020820190508181035f83015261150b816114d2565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000005f82015250565b5f611546601d83610f64565b915061155182611512565b602082019050919050565b5f6020820190508181035f8301526115738161153a565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f6115d4602583610f64565b91506115df8261157a565b604082019050919050565b5f6020820190508181035f830152611601816115c8565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f611662602383610f64565b915061166d82611608565b604082019050919050565b5f6020820190508181035f83015261168f81611656565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f6116f0602683610f64565b91506116fb82611696565b604082019050919050565b5f6020820190508181035f83015261171d816116e4565b9050919050565b7f45524332303a206d696e7420746f20746865207a65726f2061646472657373005f82015250565b5f611758601f83610f64565b915061176382611724565b602082019050919050565b5f6020820190508181035f8301526117858161174c565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f206164647265735f8201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b5f6117e6602183610f64565b91506117f18261178c565b604082019050919050565b5f6020820190508181035f830152611813816117da565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e5f8201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b5f611874602283610f64565b915061187f8261181a565b604082019050919050565b5f6020820190508181035f8301526118a181611868565b905091905056fea2646970667358221220d79115565b99296cb11e055ddbd6e5f7d9e40e7404ebcb0858818e5b7d25a37c64736f6c63430008160033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000004435341530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044353415300000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): CSAS
Arg [1] : _symbol (string): CSAS

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [3] : 4353415300000000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [5] : 4353415300000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

OVERVIEW

Comsats supports standard tokens on Bitcoin. The focus is on providing ideas and decentralized solutions to grow the Bitcoin ecosystem, along with a seamless user experience and competitive fees.

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.