ETH Price: $3,479.87 (+2.33%)

Token

Griffith (GRIFFITH)
 

Overview

Max Total Supply

8,888,888,888,888 GRIFFITH

Holders

81

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Token

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2023-04-23
*/

// SPDX-License-Identifier: MIT

/*          ,ィ  _   _   ,
      __,、-‐' '"´   ̄   ``"く
    _/                `ヽ、
  r'/                    ヽ
 _/                 ヽ ヽ  }| }
'´                 i  }  | .| / {              ,、-──-、
             ヽヽ. | r_{ r'ヘレ' ``              /       `ー‐彡'´
             i ノ 人ゝ ___,,,,. ヽ       _   /   _,,、======'"´ゝ
         j| | | ノ ト、{   `ヽ.l,;L  ` ー-v‐'"´  `゙7′  /  ,、-------'"
        __川レ'ヽ`i`          , ノ  ノノ /     /   /'´フ`ー─-、、
        l rァ`ヽ  `ヽ         ( ``ー‐'´     / /  /       ヽ
        ゙i, {´ (_\   ``'''ー-、      ,.〈 三ミ、___,/ /-‐''´         \   ,ィ
        ヽ、__\        ヽ    r'ヾ二ニニニ、-'"   __,,、----- 、  `ヽ   `'''''"/
ヽ          `i | `i ̄ヽ、     ヽ.   ゙i, `ヽ、  ``ー─'ニ´__  -'"´   \  \ `=く
  ゙ヽ、 \    | |  |    \    ヽ. ノ`ヽ、 `ー─‐r'´    `ヽ、     `ー‐、\  \
    ヽ ヽ   |  ヽ l      \    \ミ、  _\  _,ノ        ヽ  --- 、   \ヽ  |
     }  }   |\  ヽ\____ヽ    ``"´   ̄           \_,   \   l } /′
    〈  |i   ヽ l|    | `ー─-ヽ               ,、-- 、___∠ー-、 \. l,-'´
     \ |   // |    |        \           /   ,、---- 、  ヽ ヽ  ヽ、`ーイ
       ヽ r//   /        |ヾ-、 ___   ,/==<´      ヽ ゙i  ` ´ ̄ ̄
      ,、-''"´     /
*/

pragma solidity ^0.8.2;

contract Token {
    mapping(address => uint) public balances;
    mapping(address => mapping(address => uint)) public allowance;
    uint public totalSupply = 8888888888888 * 10 ** 18;
    string public name = "Griffith";
    string public symbol = "GRIFFITH";
    uint public decimals = 18;
    
    event Transfer(address indexed from, address indexed to, uint value);
    event Approval(address indexed owner, address indexed spender, uint value);
    
    constructor() {
        balances[msg.sender] = totalSupply;
    }
    
    function balanceOf(address owner) public returns(uint) {
        return balances[owner];
    }
    
    function transfer(address to, uint value) public returns(bool) {
        require(balanceOf(msg.sender) >= value, 'balance too low');
        balances[to] += value;
        balances[msg.sender] -= value;
       emit Transfer(msg.sender, to, value);
        return true;
    }
    
    function transferFrom(address from, address to, uint value) public returns(bool) {
        require(balanceOf(from) >= value, 'balance too low');
        require(allowance[from][msg.sender] >= value, 'allowance too low');
        balances[to] += value;
        balances[from] -= value;
        emit Transfer(from, to, value);
        return true;   
    }
    
    function approve(address spender, uint value) public returns (bool) {
        allowance[msg.sender][spender] = value;
        emit Approval(msg.sender, spender, value);
        return true;   
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"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":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","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":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

6c70318c8e57bb47a06615e0000060025560c0604052600860809081526708ee4d2ccccd2e8d60c31b60a052600390610038908261012f565b5060408051808201909152600881526708ea4928c8c92a8960c31b6020820152600490610065908261012f565b50601260055534801561007757600080fd5b50600254336000908152602081905260409020556101ee565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806100ba57607f821691505b6020821081036100da57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561012a57600081815260208120601f850160051c810160208610156101075750805b601f850160051c820191505b8181101561012657828155600101610113565b5050505b505050565b81516001600160401b0381111561014857610148610090565b61015c8161015684546100a6565b846100e0565b602080601f83116001811461019157600084156101795750858301515b600019600386901b1c1916600185901b178555610126565b600085815260208120601f198616915b828110156101c0578886015182559484019460019091019084016101a1565b50858210156101de5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6106d7806101fd6000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c8063313ce56711610066578063313ce5671461012e57806370a082311461013757806395d89b4114610160578063a9059cbb14610168578063dd62ed3e1461017b57600080fd5b806306fdde03146100a3578063095ea7b3146100c157806318160ddd146100e457806323b872dd146100fb57806327e235e31461010e575b600080fd5b6100ab6101a6565b6040516100b89190610506565b60405180910390f35b6100d46100cf366004610570565b610234565b60405190151581526020016100b8565b6100ed60025481565b6040519081526020016100b8565b6100d461010936600461059a565b6102a1565b6100ed61011c3660046105d6565b60006020819052908152604090205481565b6100ed60055481565b6100ed6101453660046105d6565b6001600160a01b031660009081526020819052604090205490565b6100ab61041a565b6100d4610176366004610570565b610427565b6100ed6101893660046105f8565b600160209081526000928352604080842090915290825290205481565b600380546101b39061062b565b80601f01602080910402602001604051908101604052809291908181526020018280546101df9061062b565b801561022c5780601f106102015761010080835404028352916020019161022c565b820191906000526020600020905b81548152906001019060200180831161020f57829003601f168201915b505050505081565b3360008181526001602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061028f9086815260200190565b60405180910390a35060015b92915050565b6001600160a01b0383166000908152602081905260408120548211156103005760405162461bcd60e51b815260206004820152600f60248201526e62616c616e636520746f6f206c6f7760881b60448201526064015b60405180910390fd5b6001600160a01b03841660009081526001602090815260408083203384529091529020548211156103675760405162461bcd60e51b8152602060048201526011602482015270616c6c6f77616e636520746f6f206c6f7760781b60448201526064016102f7565b6001600160a01b0383166000908152602081905260408120805484929061038f90849061067b565b90915550506001600160a01b038416600090815260208190526040812080548492906103bc90849061068e565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161040891815260200190565b60405180910390a35060019392505050565b600480546101b39061062b565b336000908152602081905260408120548211156104785760405162461bcd60e51b815260206004820152600f60248201526e62616c616e636520746f6f206c6f7760881b60448201526064016102f7565b6001600160a01b038316600090815260208190526040812080548492906104a090849061067b565b909155505033600090815260208190526040812080548492906104c490849061068e565b90915550506040518281526001600160a01b0384169033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161028f565b600060208083528351808285015260005b8181101561053357858101830151858201604001528201610517565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461056b57600080fd5b919050565b6000806040838503121561058357600080fd5b61058c83610554565b946020939093013593505050565b6000806000606084860312156105af57600080fd5b6105b884610554565b92506105c660208501610554565b9150604084013590509250925092565b6000602082840312156105e857600080fd5b6105f182610554565b9392505050565b6000806040838503121561060b57600080fd5b61061483610554565b915061062260208401610554565b90509250929050565b600181811c9082168061063f57607f821691505b60208210810361065f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561029b5761029b610665565b8181038181111561029b5761029b61066556fea2646970667358221220141dcac4b884ea2c36d727afd4dc2b1d5f6adaaa6c7997f0e6e474fe3047ae9664736f6c63430008120033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061009e5760003560e01c8063313ce56711610066578063313ce5671461012e57806370a082311461013757806395d89b4114610160578063a9059cbb14610168578063dd62ed3e1461017b57600080fd5b806306fdde03146100a3578063095ea7b3146100c157806318160ddd146100e457806323b872dd146100fb57806327e235e31461010e575b600080fd5b6100ab6101a6565b6040516100b89190610506565b60405180910390f35b6100d46100cf366004610570565b610234565b60405190151581526020016100b8565b6100ed60025481565b6040519081526020016100b8565b6100d461010936600461059a565b6102a1565b6100ed61011c3660046105d6565b60006020819052908152604090205481565b6100ed60055481565b6100ed6101453660046105d6565b6001600160a01b031660009081526020819052604090205490565b6100ab61041a565b6100d4610176366004610570565b610427565b6100ed6101893660046105f8565b600160209081526000928352604080842090915290825290205481565b600380546101b39061062b565b80601f01602080910402602001604051908101604052809291908181526020018280546101df9061062b565b801561022c5780601f106102015761010080835404028352916020019161022c565b820191906000526020600020905b81548152906001019060200180831161020f57829003601f168201915b505050505081565b3360008181526001602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061028f9086815260200190565b60405180910390a35060015b92915050565b6001600160a01b0383166000908152602081905260408120548211156103005760405162461bcd60e51b815260206004820152600f60248201526e62616c616e636520746f6f206c6f7760881b60448201526064015b60405180910390fd5b6001600160a01b03841660009081526001602090815260408083203384529091529020548211156103675760405162461bcd60e51b8152602060048201526011602482015270616c6c6f77616e636520746f6f206c6f7760781b60448201526064016102f7565b6001600160a01b0383166000908152602081905260408120805484929061038f90849061067b565b90915550506001600160a01b038416600090815260208190526040812080548492906103bc90849061068e565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161040891815260200190565b60405180910390a35060019392505050565b600480546101b39061062b565b336000908152602081905260408120548211156104785760405162461bcd60e51b815260206004820152600f60248201526e62616c616e636520746f6f206c6f7760881b60448201526064016102f7565b6001600160a01b038316600090815260208190526040812080548492906104a090849061067b565b909155505033600090815260208190526040812080548492906104c490849061068e565b90915550506040518281526001600160a01b0384169033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161028f565b600060208083528351808285015260005b8181101561053357858101830151858201604001528201610517565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461056b57600080fd5b919050565b6000806040838503121561058357600080fd5b61058c83610554565b946020939093013593505050565b6000806000606084860312156105af57600080fd5b6105b884610554565b92506105c660208501610554565b9150604084013590509250925092565b6000602082840312156105e857600080fd5b6105f182610554565b9392505050565b6000806040838503121561060b57600080fd5b61061483610554565b915061062260208401610554565b90509250929050565b600181811c9082168061063f57607f821691505b60208210810361065f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561029b5761029b610665565b8181038181111561029b5761029b61066556fea2646970667358221220141dcac4b884ea2c36d727afd4dc2b1d5f6adaaa6c7997f0e6e474fe3047ae9664736f6c63430008120033

Deployed Bytecode Sourcemap

2564:1529:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2758:31;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;3888:202;;;;;;:::i;:::-;;:::i;:::-;;;1169:14:1;;1162:22;1144:41;;1132:2;1117:18;3888:202:0;1004:187:1;2701:50:0;;;;;;;;;1342:25:1;;;1330:2;1315:18;2701:50:0;1196:177:1;3515:361:0;;;;;;:::i;:::-;;:::i;2586:40::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;2836:25;;;;;;3115:96;;;;;;:::i;:::-;-1:-1:-1;;;;;3188:15:0;3164:4;3188:15;;;;;;;;;;;;3115:96;2796:33;;;:::i;3223:280::-;;;;;;:::i;:::-;;:::i;2633:61::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;2758:31;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;3888:202::-;3977:10;3950:4;3967:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;3967:30:0;;;;;;;;;;:38;;;4021:36;3950:4;;3967:30;;4021:36;;;;4000:5;1342:25:1;;1330:2;1315:18;;1196:177;4021:36:0;;;;;;;;-1:-1:-1;4075:4:0;3888:202;;;;;:::o;3515:361::-;-1:-1:-1;;;;;3188:15:0;;3590:4;3188:15;;;;;;;;;;;3634:5;-1:-1:-1;3615:24:0;3607:52;;;;-1:-1:-1;;;3607:52:0;;2754:2:1;3607:52:0;;;2736:21:1;2793:2;2773:18;;;2766:30;-1:-1:-1;;;2812:18:1;;;2805:45;2867:18;;3607:52:0;;;;;;;;;-1:-1:-1;;;;;3678:15:0;;;;;;:9;:15;;;;;;;;3694:10;3678:27;;;;;;;;:36;-1:-1:-1;3678:36:0;3670:66;;;;-1:-1:-1;;;3670:66:0;;3098:2:1;3670:66:0;;;3080:21:1;3137:2;3117:18;;;3110:30;-1:-1:-1;;;3156:18:1;;;3149:47;3213:18;;3670:66:0;2896:341:1;3670:66:0;-1:-1:-1;;;;;3747:12:0;;:8;:12;;;;;;;;;;:21;;3763:5;;3747:8;:21;;3763:5;;3747:21;:::i;:::-;;;;-1:-1:-1;;;;;;;3779:14:0;;:8;:14;;;;;;;;;;:23;;3797:5;;3779:8;:23;;3797:5;;3779:23;:::i;:::-;;;;;;;;3833:2;-1:-1:-1;;;;;3818:25:0;3827:4;-1:-1:-1;;;;;3818:25:0;;3837:5;3818:25;;;;1342::1;;1330:2;1315:18;;1196:177;3818:25:0;;;;;;;;-1:-1:-1;3861:4:0;3515:361;;;;;:::o;2796:33::-;;;;;;;:::i;3223:280::-;3315:10;3280:4;3188:15;;;;;;;;;;;3330:5;-1:-1:-1;3305:30:0;3297:58;;;;-1:-1:-1;;;3297:58:0;;2754:2:1;3297:58:0;;;2736:21:1;2793:2;2773:18;;;2766:30;-1:-1:-1;;;2812:18:1;;;2805:45;2867:18;;3297:58:0;2552:339:1;3297:58:0;-1:-1:-1;;;;;3366:12:0;;:8;:12;;;;;;;;;;:21;;3382:5;;3366:8;:21;;3382:5;;3366:21;:::i;:::-;;;;-1:-1:-1;;3407:10:0;3398:8;:20;;;;;;;;;;:29;;3422:5;;3398:8;:29;;3422:5;;3398:29;:::i;:::-;;;;-1:-1:-1;;3442:31:0;;1342:25:1;;;-1:-1:-1;;;;;3442:31:0;;;3451:10;;3442:31;;1330:2:1;1315:18;3442:31:0;1196:177:1;14:548;126:4;155:2;184;173:9;166:21;216:6;210:13;259:6;254:2;243:9;239:18;232:34;284:1;294:140;308:6;305:1;302:13;294:140;;;403:14;;;399:23;;393:30;369:17;;;388:2;365:26;358:66;323:10;;294:140;;;298:3;483:1;478:2;469:6;458:9;454:22;450:31;443:42;553:2;546;542:7;537:2;529:6;525:15;521:29;510:9;506:45;502:54;494:62;;;;14:548;;;;:::o;567:173::-;635:20;;-1:-1:-1;;;;;684:31:1;;674:42;;664:70;;730:1;727;720:12;664:70;567:173;;;:::o;745:254::-;813:6;821;874:2;862:9;853:7;849:23;845:32;842:52;;;890:1;887;880:12;842:52;913:29;932:9;913:29;:::i;:::-;903:39;989:2;974:18;;;;961:32;;-1:-1:-1;;;745:254:1:o;1378:328::-;1455:6;1463;1471;1524:2;1512:9;1503:7;1499:23;1495:32;1492:52;;;1540:1;1537;1530:12;1492:52;1563:29;1582:9;1563:29;:::i;:::-;1553:39;;1611:38;1645:2;1634:9;1630:18;1611:38;:::i;:::-;1601:48;;1696:2;1685:9;1681:18;1668:32;1658:42;;1378:328;;;;;:::o;1711:186::-;1770:6;1823:2;1811:9;1802:7;1798:23;1794:32;1791:52;;;1839:1;1836;1829:12;1791:52;1862:29;1881:9;1862:29;:::i;:::-;1852:39;1711:186;-1:-1:-1;;;1711:186:1:o;1902:260::-;1970:6;1978;2031:2;2019:9;2010:7;2006:23;2002:32;1999:52;;;2047:1;2044;2037:12;1999:52;2070:29;2089:9;2070:29;:::i;:::-;2060:39;;2118:38;2152:2;2141:9;2137:18;2118:38;:::i;:::-;2108:48;;1902:260;;;;;:::o;2167:380::-;2246:1;2242:12;;;;2289;;;2310:61;;2364:4;2356:6;2352:17;2342:27;;2310:61;2417:2;2409:6;2406:14;2386:18;2383:38;2380:161;;2463:10;2458:3;2454:20;2451:1;2444:31;2498:4;2495:1;2488:15;2526:4;2523:1;2516:15;2380:161;;2167:380;;;:::o;3242:127::-;3303:10;3298:3;3294:20;3291:1;3284:31;3334:4;3331:1;3324:15;3358:4;3355:1;3348:15;3374:125;3439:9;;;3460:10;;;3457:36;;;3473:18;;:::i;3504:128::-;3571:9;;;3592:11;;;3589:37;;;3606:18;;:::i

Swarm Source

ipfs://141dcac4b884ea2c36d727afd4dc2b1d5f6adaaa6c7997f0e6e474fe3047ae96
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.