USA Node
Top Transactions
Blocks
Staking
Tokens
Broadcast TXN
CLI Interface
Developer API
Smart Contract HQ
Contact Us
Donate
Node Status
Node:
Main Net - US
Search
Token Contract Details
Contract:
0xb97c24d014cabdb8744f198a16918497effc36e5
Name:
Bullit
Symbol:
BULT
Total Supply:
495,000,000.00
Decimal:
16
Compiler Version:
v0.8.4
Published Contract:
Send Transactions
TNT-20 Transactions
TNT-721 Transactions
Contract
Contract ByteCode:
0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c80634bf365df1161008c57806395d89b411161006657806395d89b41146101d9578063a0712d68146101e1578063a9059cbb146101f4578063dd62ed3e1461020757600080fd5b80634bf365df1461018a5780636e9960c31461019557806370a08231146101b057600080fd5b806318160ddd116100c857806318160ddd1461014757806323b872dd1461014f578063313ce5671461016257806342966c681461017757600080fd5b806306fdde03146100ef578063095ea7b31461010d57806316ada54714610130575b600080fd5b6100f7610240565b6040516101049190610b38565b60405180910390f35b61012061011b366004610af7565b6102d2565b6040519015158152602001610104565b61013960035481565b604051908152602001610104565b600754610139565b61012061015d366004610abc565b6102e8565b60065460405160ff9091168152602001610104565b610120610185366004610b20565b610351565b60085460ff16610120565b6002546040516001600160a01b039091168152602001610104565b6101396101be366004610a70565b6001600160a01b031660009081526020819052604090205490565b6100f7610365565b6101206101ef366004610b20565b610374565b610120610202366004610af7565b61043e565b610139610215366004610a8a565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60606004805461024f90610bba565b80601f016020809104026020016040519081016040528092919081815260200182805461027b90610bba565b80156102c85780601f1061029d576101008083540402835291602001916102c8565b820191906000526020600020905b8154815290600101906020018083116102ab57829003601f168201915b5050505050905090565b60006102df3384846104b1565b50600192915050565b60006102f584848461060a565b610347843361034285604051806060016040528060288152602001610c32602891396001600160a01b038a16600090815260016020908152604080832033845290915290205491906107bf565b6104b1565b5060019392505050565b600061035d33836107f9565b506001919050565b60606005805461024f90610bba565b60085460009060ff166103ce5760405162461bcd60e51b815260206004820152601960248201527f74686520746f6b656e206973206e6f74206d696e7461626c650000000000000060448201526064015b60405180910390fd5b6002546001600160a01b031633146104285760405162461bcd60e51b815260206004820152601e60248201527f6f6e6c792061646d696e2063616e206d696e74206e657720746f6b656e73000060448201526064016103c5565b60025461035d906001600160a01b031683610976565b60006102df33848461060a565b6000806104588385610b8b565b9050838110156104aa5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f77000000000060448201526064016103c5565b9392505050565b6001600160a01b03831661052c5760405162461bcd60e51b8152602060048201526024808201527f544e5432303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016103c5565b6001600160a01b0382166105a85760405162461bcd60e51b815260206004820152602260248201527f544e5432303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016103c5565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166106865760405162461bcd60e51b815260206004820152602560248201527f544e5432303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016103c5565b6001600160a01b0382166107025760405162461bcd60e51b815260206004820152602360248201527f544e5432303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016103c5565b61073f81604051806060016040528060268152602001610c0c602691396001600160a01b03861660009081526020819052604090205491906107bf565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461076e908261044b565b6001600160a01b038381166000818152602081815260409182902094909455518481529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91016105fd565b600081848411156107e35760405162461bcd60e51b81526004016103c59190610b38565b5060006107f08486610ba3565b95945050505050565b6001600160a01b0382166108755760405162461bcd60e51b815260206004820152602160248201527f544e5432303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016103c5565b6001600160a01b038216600090815260208190526040902054818110156109045760405162461bcd60e51b815260206004820152602260248201527f544e5432303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016103c5565b6001600160a01b0383166000908152602081905260408120838303905560078054849290610933908490610ba3565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020016105fd565b6001600160a01b0382166109cc5760405162461bcd60e51b815260206004820152601f60248201527f544e5432303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016103c5565b6007546109d9908261044b565b6007556001600160a01b0382166000908152602081905260409020546109ff908261044b565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b80356001600160a01b0381168114610a6b57600080fd5b919050565b600060208284031215610a81578081fd5b6104aa82610a54565b60008060408385031215610a9c578081fd5b610aa583610a54565b9150610ab360208401610a54565b90509250929050565b600080600060608486031215610ad0578081fd5b610ad984610a54565b9250610ae760208501610a54565b9150604084013590509250925092565b60008060408385031215610b09578182fd5b610b1283610a54565b946020939093013593505050565b600060208284031215610b31578081fd5b5035919050565b6000602080835283518082850152825b81811015610b6457858101830151858201604001528201610b48565b81811115610b755783604083870101525b50601f01601f1916929092016040019392505050565b60008219821115610b9e57610b9e610bf5565b500190565b600082821015610bb557610bb5610bf5565b500390565b600181811c90821680610bce57607f821691505b60208210811415610bef57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfe544e5432303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365544e5432303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365a2646970667358221220b524b6501be8786a7a2fc8f6b7e98a51ab4dc95037d59a401fba4c169a2353e364736f6c63430008040033
Published Contract:
// File: math/SafeMath.sol pragma solidity >=0.8.0; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn9t hold return c; } function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File: interfaces/ITNT20.sol pragma solidity >=0.8.0; interface ITNT20 { 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); function burn(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); } // File: @openzeppelin/contracts/utils/Context.sol // 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: BULTToken.sol pragma solidity >=0.8.0; contract BULTToken is Context, ITNT20 { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; address private _admin; uint256 public time; string private _name; string private _symbol; uint8 private _decimals; uint256 private _totalSupply; bool private _mintable; constructor( string memory name_, string memory symbol_, uint8 decimals_, uint256 initialSupply_, bool mintable_ ) { require(msg.sender != address(0x0), "cannot deploy the token from address 0x0"); _name = name_; _symbol = symbol_; _decimals = decimals_; _admin = msg.sender; _mint(_admin, initialSupply_ * 10**_decimals); _mintable = mintable_; time = block.timestamp; } function getAdmin() public view returns (address) { return _admin; } 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) { _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) { _approve(_msgSender(), spender, amount); return true; } function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve( sender, _msgSender(), _allowances[sender][_msgSender()].sub( amount, "TNT20: transfer amount exceeds allowance" ) ); return true; } function mintable() public view returns (bool) { return _mintable; } function mint(uint256 amount) public returns (bool) { require(_mintable, "the token is not mintable"); require(msg.sender == _admin, "only admin can mint new tokens"); _mint(_admin, amount); return true; } function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "TNT20: transfer from the zero address"); require(recipient != address(0), "TNT20: transfer to the zero address"); _balances[sender] = _balances[sender].sub( amount, "TNT20: transfer amount exceeds balance" ); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "TNT20: mint to the zero address"); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "TNT20: burn from the zero address"); uint256 accountBalance = _balances[account]; require(accountBalance >= amount ,"TNT20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); } function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "TNT20: approve from the zero address"); require(spender != address(0), "TNT20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } function burn(uint _value) public virtual override returns (bool sucess) { _burn(_msgSender() , _value); return true; } }
Contract ABI:
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint8","name":"decimals_","type":"uint8"},{"internalType":"uint256","name":"initialSupply_","type":"uint256"},{"internalType":"bool","name":"mintable_","type":"bool"}],"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":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"burn","outputs":[{"internalType":"bool","name":"sucess","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"time","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]