ERC-20
Exchange
Overview
Max Total Supply
25,000,000 DDRT
Holders
167 (0.00%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 8 Decimals)
Balance
290,714.10973833 DDRTValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DigiDinar
Compiler Version
v0.5.12+commit.7709ece9
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2019-12-05 */ pragma solidity ^0.5.12; // ---------------------------------------------------------------------------- // "DigiDinar Token contract" // // Symbol : DDRT // Name : DigiDinar Token // Total supply: 25000000 // Decimals : 8 // // Contract Developed by Kuwaiti Coin Limited // ---------------------------------------------------------------------------- // ---------------------------------------------------------------------------- // ERC Token Standard #20 Interface // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md // ---------------------------------------------------------------------------- contract ERC20 { function balanceOf(address who) public view returns (uint256); function allowance(address owner, address spender) public view returns (uint256); function transferFrom(address from, address to, uint256 value) public returns (bool); function approve(address spender, uint256 value) public returns (bool); function transfer(address to, uint value) public returns(bool); event Transfer(address indexed from, address indexed to, uint value); event Approval(address indexed owner, address indexed spender, uint256 value); } library SafeMath { function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; } function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; assert(c >= a); return c; } } contract DigiDinar is ERC20 { using SafeMath for uint256; string public name; string public symbol; uint8 public decimals; address internal _admin; uint256 public _totalSupply; mapping(address => uint256) balances; mapping(address => mapping (address => uint256)) allowed; constructor() public { symbol = "DDRT"; name = "DigiDinar Token"; decimals = 8; _totalSupply = 25000000 * 10**uint(decimals); _admin = msg.sender; balances[_admin] = _totalSupply; emit ERC20.Transfer(address(0), msg.sender, _totalSupply); } function totalSupply() public view returns (uint256) { return _totalSupply; } function balanceOf(address tokenOwner) public view returns (uint) { return balances[tokenOwner]; } function transfer(address receiver, uint numTokens) public returns (bool) { require(numTokens <= balances[msg.sender]); balances[msg.sender] = balances[msg.sender].sub(numTokens); balances[receiver] = balances[receiver].add(numTokens); emit ERC20.Transfer(msg.sender, receiver, numTokens); return true; } function approve(address delegate, uint numTokens) public returns (bool) { allowed[msg.sender][delegate] = numTokens; emit ERC20.Approval(msg.sender, delegate, numTokens); return true; } function allowance(address owner, address delegate) public view returns (uint) { return allowed[owner][delegate]; } function transferFrom(address owner, address buyer, uint numTokens) public returns (bool) { require(numTokens <= balances[owner]); require(numTokens <= allowed[owner][msg.sender]); balances[owner] = balances[owner].sub(numTokens); allowed[owner][msg.sender] = allowed[owner][msg.sender].sub(numTokens); balances[buyer] = balances[buyer].add(numTokens); emit ERC20.Transfer(owner, buyer, numTokens); return true; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"payable":false,"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"},{"constant":true,"inputs":[],"name":"_totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"delegate","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"delegate","type":"address"},{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"tokenOwner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"buyer","type":"address"},{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506040805180820190915260048082527f4444525400000000000000000000000000000000000000000000000000000000602090920191825261005591600191610133565b5060408051808201909152600f8082527f4469676944696e617220546f6b656e0000000000000000000000000000000000602090920191825261009a91600091610133565b506002805463017d784060ff1990911660081760ff8116600a0a91909102600381905533610100818102610100600160a81b03199094169390931793849055919092046001600160a01b03166000908152600460209081526040808320859055805194855251929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a36101ce565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061017457805160ff19168380011785556101a1565b828001600101855582156101a1579182015b828111156101a1578251825591602001919060010190610186565b506101ad9291506101b1565b5090565b6101cb91905b808211156101ad57600081556001016101b7565b90565b610690806101dd6000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c80633eaaf86b116100665780633eaaf86b146101ce57806370a08231146101d657806395d89b41146101fc578063a9059cbb14610204578063dd62ed3e146102305761009e565b806306fdde03146100a3578063095ea7b31461012057806318160ddd1461016057806323b872dd1461017a578063313ce567146101b0575b600080fd5b6100ab61025e565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100e55781810151838201526020016100cd565b50505050905090810190601f1680156101125780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61014c6004803603604081101561013657600080fd5b506001600160a01b0381351690602001356102ec565b604080519115158252519081900360200190f35b610168610352565b60408051918252519081900360200190f35b61014c6004803603606081101561019057600080fd5b506001600160a01b03813581169160208101359091169060400135610358565b6101b86104b8565b6040805160ff9092168252519081900360200190f35b6101686104c1565b610168600480360360208110156101ec57600080fd5b50356001600160a01b03166104c7565b6100ab6104e2565b61014c6004803603604081101561021a57600080fd5b506001600160a01b03813516906020013561053c565b6101686004803603604081101561024657600080fd5b506001600160a01b0381358116916020013516610608565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156102e45780601f106102b9576101008083540402835291602001916102e4565b820191906000526020600020905b8154815290600101906020018083116102c757829003601f168201915b505050505081565b3360008181526005602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60035490565b6001600160a01b03831660009081526004602052604081205482111561037d57600080fd5b6001600160a01b03841660009081526005602090815260408083203384529091529020548211156103ad57600080fd5b6001600160a01b0384166000908152600460205260409020546103d6908363ffffffff61063316565b6001600160a01b0385166000908152600460209081526040808320939093556005815282822033835290522054610413908363ffffffff61063316565b6001600160a01b038086166000908152600560209081526040808320338452825280832094909455918616815260049091522054610457908363ffffffff61064516565b6001600160a01b0380851660008181526004602090815260409182902094909455805186815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35060019392505050565b60025460ff1681565b60035481565b6001600160a01b031660009081526004602052604090205490565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156102e45780601f106102b9576101008083540402835291602001916102e4565b3360009081526004602052604081205482111561055857600080fd5b33600090815260046020526040902054610578908363ffffffff61063316565b33600090815260046020526040808220929092556001600160a01b038516815220546105aa908363ffffffff61064516565b6001600160a01b0384166000818152600460209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b60008282111561063f57fe5b50900390565b60008282018381101561065457fe5b939250505056fea265627a7a723158206238d5dc213cd6dd3affaa74f28ff449ecf1497bb66ad898b5cf8bf8a8c6cb6a64736f6c634300050c0032
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061009e5760003560e01c80633eaaf86b116100665780633eaaf86b146101ce57806370a08231146101d657806395d89b41146101fc578063a9059cbb14610204578063dd62ed3e146102305761009e565b806306fdde03146100a3578063095ea7b31461012057806318160ddd1461016057806323b872dd1461017a578063313ce567146101b0575b600080fd5b6100ab61025e565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100e55781810151838201526020016100cd565b50505050905090810190601f1680156101125780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61014c6004803603604081101561013657600080fd5b506001600160a01b0381351690602001356102ec565b604080519115158252519081900360200190f35b610168610352565b60408051918252519081900360200190f35b61014c6004803603606081101561019057600080fd5b506001600160a01b03813581169160208101359091169060400135610358565b6101b86104b8565b6040805160ff9092168252519081900360200190f35b6101686104c1565b610168600480360360208110156101ec57600080fd5b50356001600160a01b03166104c7565b6100ab6104e2565b61014c6004803603604081101561021a57600080fd5b506001600160a01b03813516906020013561053c565b6101686004803603604081101561024657600080fd5b506001600160a01b0381358116916020013516610608565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156102e45780601f106102b9576101008083540402835291602001916102e4565b820191906000526020600020905b8154815290600101906020018083116102c757829003601f168201915b505050505081565b3360008181526005602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60035490565b6001600160a01b03831660009081526004602052604081205482111561037d57600080fd5b6001600160a01b03841660009081526005602090815260408083203384529091529020548211156103ad57600080fd5b6001600160a01b0384166000908152600460205260409020546103d6908363ffffffff61063316565b6001600160a01b0385166000908152600460209081526040808320939093556005815282822033835290522054610413908363ffffffff61063316565b6001600160a01b038086166000908152600560209081526040808320338452825280832094909455918616815260049091522054610457908363ffffffff61064516565b6001600160a01b0380851660008181526004602090815260409182902094909455805186815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35060019392505050565b60025460ff1681565b60035481565b6001600160a01b031660009081526004602052604090205490565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156102e45780601f106102b9576101008083540402835291602001916102e4565b3360009081526004602052604081205482111561055857600080fd5b33600090815260046020526040902054610578908363ffffffff61063316565b33600090815260046020526040808220929092556001600160a01b038516815220546105aa908363ffffffff61064516565b6001600160a01b0384166000818152600460209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b60008282111561063f57fe5b50900390565b60008282018381101561065457fe5b939250505056fea265627a7a723158206238d5dc213cd6dd3affaa74f28ff449ecf1497bb66ad898b5cf8bf8a8c6cb6a64736f6c634300050c0032
Deployed Bytecode Sourcemap
1528:2103:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1528:2103:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1604:19;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;1604:19:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2772:218;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2772:218:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;2188:88;;;:::i;:::-;;;;;;;;;;;;;;;;3135:491;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;3135:491:0;;;;;;;;;;;;;;;;;:::i;1658:22::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1719:27;;;:::i;2288:112::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2288:112:0;-1:-1:-1;;;;;2288:112:0;;:::i;1630:21::-;;;:::i;2408:356::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2408:356:0;;;;;;;;:::i;2998:129::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2998:129:0;;;;;;;;;;:::i;1604:19::-;;;;;;;;;;;;;;;-1:-1:-1;;1604:19:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;2772:218::-;2864:10;2839:4;2856:19;;;:7;:19;;;;;;;;-1:-1:-1;;;;;2856:29:0;;;;;;;;;;;:41;;;2913:47;;;;;;;2839:4;;2856:29;;2864:10;;2913:47;;;;;;;;-1:-1:-1;2978:4:0;2772:218;;;;:::o;2188:88::-;2256:12;;2188:88;:::o;3135:491::-;-1:-1:-1;;;;;3257:15:0;;3219:4;3257:15;;;:8;:15;;;;;;3244:28;;;3236:37;;;;;;-1:-1:-1;;;;;3309:14:0;;;;;;:7;:14;;;;;;;;3324:10;3309:26;;;;;;;;3296:39;;;3288:48;;;;;;-1:-1:-1;;;;;3371:15:0;;;;;;:8;:15;;;;;;:30;;3391:9;3371:30;:19;:30;:::i;:::-;-1:-1:-1;;;;;3353:15:0;;;;;;:8;:15;;;;;;;;:48;;;;3441:7;:14;;;;;3456:10;3441:26;;;;;;:41;;3472:9;3441:41;:30;:41;:::i;:::-;-1:-1:-1;;;;;3412:14:0;;;;;;;:7;:14;;;;;;;;3427:10;3412:26;;;;;;;:70;;;;3511:15;;;;;:8;:15;;;;;:30;;3531:9;3511:30;:19;:30;:::i;:::-;-1:-1:-1;;;;;3493:15:0;;;;;;;:8;:15;;;;;;;;;:48;;;;3557:39;;;;;;;3493:15;;3557:39;;;;;;;;;;;;;-1:-1:-1;3614:4:0;3135:491;;;;;:::o;1658:22::-;;;;;;:::o;1719:27::-;;;;:::o;2288:112::-;-1:-1:-1;;;;;2372:20:0;2348:4;2372:20;;;:8;:20;;;;;;;2288:112::o;1630:21::-;;;;;;;;;;;;;;;-1:-1:-1;;1630:21:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2408:356;2523:10;2476:4;2514:20;;;:8;:20;;;;;;2501:33;;;2493:42;;;;;;2580:10;2571:20;;;;:8;:20;;;;;;:35;;2596:9;2571:35;:24;:35;:::i;:::-;2557:10;2548:20;;;;:8;:20;;;;;;:58;;;;-1:-1:-1;;;;;2638:18:0;;;;;;:33;;2661:9;2638:33;:22;:33;:::i;:::-;-1:-1:-1;;;;;2617:18:0;;;;;;:8;:18;;;;;;;;;:54;;;;2687:47;;;;;;;2617:18;;2702:10;;2687:47;;;;;;;;;;-1:-1:-1;2752:4:0;2408:356;;;;:::o;2998:129::-;-1:-1:-1;;;;;3095:14:0;;;3071:4;3095:14;;;:7;:14;;;;;;;;:24;;;;;;;;;;;;;2998:129::o;1249:119::-;1307:7;1337:1;1332;:6;;1325:14;;;;-1:-1:-1;1355:5:0;;;1249:119::o;1380:141::-;1438:7;1468:5;;;1489:6;;;;1482:14;;;;1512:1;1380:141;-1:-1:-1;;;1380:141:0:o
Swarm Source
bzzr://6238d5dc213cd6dd3affaa74f28ff449ecf1497bb66ad898b5cf8bf8a8c6cb6a
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.