contract_name stringlengths 1 61 | file_path stringlengths 5 50.4k | contract_address stringlengths 42 42 | language stringclasses 1
value | class_name stringlengths 1 61 | class_code stringlengths 4 330k | class_documentation stringlengths 0 29.1k | class_documentation_type stringclasses 6
values | func_name stringlengths 0 62 | func_code stringlengths 1 303k | func_documentation stringlengths 2 14.9k | func_documentation_type stringclasses 4
values | compiler_version stringlengths 15 42 | license_type stringclasses 14
values | swarm_source stringlengths 0 71 | meta dict | __index_level_0__ int64 0 60.4k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
JungelTycoon | erc721a.sol | 0xbca44d867c707080c504f286c35b237d2802b7e5 | Solidity | ERC721A | contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Compiler will pack this into a single 256bit word.
struct TokenOwnership {
// The address of the owner.
address addr;
// Keeps track of the start time... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes that an o... | NatSpecMultiLine | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, '');
}
| /**
* @dev See {IERC721-safeTransferFrom}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://b3a3f17c34ca1a75098b6b7db659ee7979fdd66c517bbeb013119f41b0ee7f7a | {
"func_code_index": [
7398,
7588
]
} | 17,100 |
JungelTycoon | erc721a.sol | 0xbca44d867c707080c504f286c35b237d2802b7e5 | Solidity | ERC721A | contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Compiler will pack this into a single 256bit word.
struct TokenOwnership {
// The address of the owner.
address addr;
// Keeps track of the start time... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes that an o... | NatSpecMultiLine | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
_transfer(from, to, tokenId);
if (!_checkOnERC721Received(from, to, tokenId, _data)) {
revert TransferToNonERC721ReceiverImplementer();
}
}
| /**
* @dev See {IERC721-safeTransferFrom}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://b3a3f17c34ca1a75098b6b7db659ee7979fdd66c517bbeb013119f41b0ee7f7a | {
"func_code_index": [
7654,
8001
]
} | 17,101 |
JungelTycoon | erc721a.sol | 0xbca44d867c707080c504f286c35b237d2802b7e5 | Solidity | ERC721A | contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Compiler will pack this into a single 256bit word.
struct TokenOwnership {
// The address of the owner.
address addr;
// Keeps track of the start time... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes that an o... | NatSpecMultiLine | _exists | function _exists(uint256 tokenId) internal view returns (bool) {
return tokenId < _currentIndex && !_ownerships[tokenId].burned;
}
| /**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://b3a3f17c34ca1a75098b6b7db659ee7979fdd66c517bbeb013119f41b0ee7f7a | {
"func_code_index": [
8251,
8400
]
} | 17,102 |
JungelTycoon | erc721a.sol | 0xbca44d867c707080c504f286c35b237d2802b7e5 | Solidity | ERC721A | contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Compiler will pack this into a single 256bit word.
struct TokenOwnership {
// The address of the owner.
address addr;
// Keeps track of the start time... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes that an o... | NatSpecMultiLine | _safeMint | function _safeMint(
address to,
uint256 quantity,
bytes memory _data
) internal {
_mint(to, quantity, _data, true);
}
| /**
* @dev Safely mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
* - `quantity` must be greater than 0.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://b3a3f17c34ca1a75098b6b7db659ee7979fdd66c517bbeb013119f41b0ee7f7a | {
"func_code_index": [
8870,
9038
]
} | 17,103 |
JungelTycoon | erc721a.sol | 0xbca44d867c707080c504f286c35b237d2802b7e5 | Solidity | ERC721A | contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Compiler will pack this into a single 256bit word.
struct TokenOwnership {
// The address of the owner.
address addr;
// Keeps track of the start time... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes that an o... | NatSpecMultiLine | _mint | function _mint(
address to,
uint256 quantity,
bytes memory _data,
bool safe
) internal {
uint256 startTokenId = _currentIndex;
if (to == address(0)) revert MintToZeroAddress();
if (quantity == 0) revert MintZeroQuantity();
_beforeTokenTransfers(address(0), to, startTokenId, qu... | /**
* @dev Mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `quantity` must be greater than 0.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://b3a3f17c34ca1a75098b6b7db659ee7979fdd66c517bbeb013119f41b0ee7f7a | {
"func_code_index": [
9292,
10709
]
} | 17,104 |
JungelTycoon | erc721a.sol | 0xbca44d867c707080c504f286c35b237d2802b7e5 | Solidity | ERC721A | contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Compiler will pack this into a single 256bit word.
struct TokenOwnership {
// The address of the owner.
address addr;
// Keeps track of the start time... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes that an o... | NatSpecMultiLine | _transfer | function _transfer(
address from,
address to,
uint256 tokenId
) private {
TokenOwnership memory prevOwnership = ownershipOf(tokenId);
bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
isApprovedForAll(prevOwnership.addr, _msgSender()) ||
getApproved(tokenId) =... | /**
* @dev Transfers `tokenId` from `from` to `to`.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://b3a3f17c34ca1a75098b6b7db659ee7979fdd66c517bbeb013119f41b0ee7f7a | {
"func_code_index": [
10958,
13075
]
} | 17,105 |
JungelTycoon | erc721a.sol | 0xbca44d867c707080c504f286c35b237d2802b7e5 | Solidity | ERC721A | contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Compiler will pack this into a single 256bit word.
struct TokenOwnership {
// The address of the owner.
address addr;
// Keeps track of the start time... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes that an o... | NatSpecMultiLine | _burn | function _burn(uint256 tokenId) internal virtual {
TokenOwnership memory prevOwnership = ownershipOf(tokenId);
_beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);
// Clear approvals from the previous owner
_approve(address(0), tokenId, prevOwnership.addr);
// Underflow of t... | /**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://b3a3f17c34ca1a75098b6b7db659ee7979fdd66c517bbeb013119f41b0ee7f7a | {
"func_code_index": [
13299,
15344
]
} | 17,106 |
JungelTycoon | erc721a.sol | 0xbca44d867c707080c504f286c35b237d2802b7e5 | Solidity | ERC721A | contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Compiler will pack this into a single 256bit word.
struct TokenOwnership {
// The address of the owner.
address addr;
// Keeps track of the start time... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes that an o... | NatSpecMultiLine | _approve | function _approve(
address to,
uint256 tokenId,
address owner
) private {
_tokenApprovals[tokenId] = to;
emit Approval(owner, to, tokenId);
}
| /**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://b3a3f17c34ca1a75098b6b7db659ee7979fdd66c517bbeb013119f41b0ee7f7a | {
"func_code_index": [
15457,
15658
]
} | 17,107 |
JungelTycoon | erc721a.sol | 0xbca44d867c707080c504f286c35b237d2802b7e5 | Solidity | ERC721A | contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Compiler will pack this into a single 256bit word.
struct TokenOwnership {
// The address of the owner.
address addr;
// Keeps track of the start time... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes that an o... | NatSpecMultiLine | _checkOnERC721Received | function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721... | /**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param to... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://b3a3f17c34ca1a75098b6b7db659ee7979fdd66c517bbeb013119f41b0ee7f7a | {
"func_code_index": [
16218,
17013
]
} | 17,108 |
JungelTycoon | erc721a.sol | 0xbca44d867c707080c504f286c35b237d2802b7e5 | Solidity | ERC721A | contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Compiler will pack this into a single 256bit word.
struct TokenOwnership {
// The address of the owner.
address addr;
// Keeps track of the start time... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes that an o... | NatSpecMultiLine | _beforeTokenTransfers | function _beforeTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
| /**
* @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
* And also called before burning one token.
*
* startTokenId - the first token id to be transferred
* quantity - the amount to be transferred
*
* Calling conditions:
*
* - When... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://b3a3f17c34ca1a75098b6b7db659ee7979fdd66c517bbeb013119f41b0ee7f7a | {
"func_code_index": [
17656,
17820
]
} | 17,109 |
JungelTycoon | erc721a.sol | 0xbca44d867c707080c504f286c35b237d2802b7e5 | Solidity | ERC721A | contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Compiler will pack this into a single 256bit word.
struct TokenOwnership {
// The address of the owner.
address addr;
// Keeps track of the start time... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes that an o... | NatSpecMultiLine | _afterTokenTransfers | function _afterTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
| /**
* @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
* minting.
* And also called after one token has been burned.
*
* startTokenId - the first token id to be transferred
* quantity - the amount to be transferred
*
* Calling conditions:
*
* - ... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://b3a3f17c34ca1a75098b6b7db659ee7979fdd66c517bbeb013119f41b0ee7f7a | {
"func_code_index": [
18474,
18637
]
} | 17,110 |
XDBtest | XDBtest.sol | 0x0d47d83e5226e928277bae8069bf65b860858331 | Solidity | XDBtest | contract XDBtest {
string public constant name = "XDBtest";
string public constant symbol = "XDTT";
uint8 public constant decimals = 7;
uint public _totalSupply = 50000000000000000;
uint256 public RATE = 1;
bool public isMinting = false;
string pu... | // ERC20 Token Smart Contract | LineComment | function () payable{
createTokens();
}
| // Its a payable function works as a token factory. | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://e0d31883424abda94fa50e3c751fcda33fae2421868b8393b345f4f3f60b07ac | {
"func_code_index": [
984,
1053
]
} | 17,111 | ||
XDBtest | XDBtest.sol | 0x0d47d83e5226e928277bae8069bf65b860858331 | Solidity | XDBtest | contract XDBtest {
string public constant name = "XDBtest";
string public constant symbol = "XDTT";
uint8 public constant decimals = 7;
uint public _totalSupply = 50000000000000000;
uint256 public RATE = 1;
bool public isMinting = false;
string pu... | // ERC20 Token Smart Contract | LineComment | burnTokens | function burnTokens(uint256 _value) onlyOwner {
require(balances[msg.sender] >= _value && _value > 0 );
_totalSupply = _totalSupply.sub(_value);
balances[msg.sender] = balances[msg.sender].sub(_value);
}
| //allows owner to burn tokens that are not sold in a crowdsale | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://e0d31883424abda94fa50e3c751fcda33fae2421868b8393b345f4f3f60b07ac | {
"func_code_index": [
1464,
1744
]
} | 17,112 | |
XDBtest | XDBtest.sol | 0x0d47d83e5226e928277bae8069bf65b860858331 | Solidity | XDBtest | contract XDBtest {
string public constant name = "XDBtest";
string public constant symbol = "XDTT";
uint8 public constant decimals = 7;
uint public _totalSupply = 50000000000000000;
uint256 public RATE = 1;
bool public isMinting = false;
string pu... | // ERC20 Token Smart Contract | LineComment | createTokens | function createTokens() payable {
if(isMinting == true){
require(msg.value > 0);
uint256 tokens = msg.value.div(100000000000000).mul(RATE);
balances[msg.sender] = balances[msg.sender].add(tokens);
_totalSupply = _totalSupply.add(tokens);
owner.transfer(msg.value);
}
... | // This function creates Tokens | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://e0d31883424abda94fa50e3c751fcda33fae2421868b8393b345f4f3f60b07ac | {
"func_code_index": [
1794,
2251
]
} | 17,113 | |
XDBtest | XDBtest.sol | 0x0d47d83e5226e928277bae8069bf65b860858331 | Solidity | XDBtest | contract XDBtest {
string public constant name = "XDBtest";
string public constant symbol = "XDTT";
uint8 public constant decimals = 7;
uint public _totalSupply = 50000000000000000;
uint256 public RATE = 1;
bool public isMinting = false;
string pu... | // ERC20 Token Smart Contract | LineComment | balanceOf | function balanceOf(address _owner) constant returns(uint256){
return balances[_owner];
}
| // What is the balance of a particular account? | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://e0d31883424abda94fa50e3c751fcda33fae2421868b8393b345f4f3f60b07ac | {
"func_code_index": [
2626,
2745
]
} | 17,114 | |
XDBtest | XDBtest.sol | 0x0d47d83e5226e928277bae8069bf65b860858331 | Solidity | XDBtest | contract XDBtest {
string public constant name = "XDBtest";
string public constant symbol = "XDTT";
uint8 public constant decimals = 7;
uint public _totalSupply = 50000000000000000;
uint256 public RATE = 1;
bool public isMinting = false;
string pu... | // ERC20 Token Smart Contract | LineComment | transfer | function transfer(address _to, uint256 _value) returns(bool) {
require(balances[msg.sender] >= _value && _value > 0 );
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
Transfer(msg.sender, _to, _value);
return true;
}
| // Transfer the balance from owner's account to another account | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://e0d31883424abda94fa50e3c751fcda33fae2421868b8393b345f4f3f60b07ac | {
"func_code_index": [
2825,
3177
]
} | 17,115 | |
XDBtest | XDBtest.sol | 0x0d47d83e5226e928277bae8069bf65b860858331 | Solidity | XDBtest | contract XDBtest {
string public constant name = "XDBtest";
string public constant symbol = "XDTT";
uint8 public constant decimals = 7;
uint public _totalSupply = 50000000000000000;
uint256 public RATE = 1;
bool public isMinting = false;
string pu... | // ERC20 Token Smart Contract | LineComment | transferFrom | function transferFrom(address _from, address _to, uint256 _value) returns(bool) {
require(allowed[_from][msg.sender] >= _value && balances[_from] >= _value && _value > 0);
balances[_from] = balances[_from].sub(_value);
balances[_to] = balances[_to].add(_value);
allowed[_from][msg.sender] = allowed[... | // Send _value amount of tokens from address _from to address _to
// The transferFrom method is used for a withdraw workflow, allowing contracts to send
// tokens on your behalf, for example to "deposit" to a contract address and/or to charge
// fees in sub-currencies; the command should fail unless the _from account h... | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://e0d31883424abda94fa50e3c751fcda33fae2421868b8393b345f4f3f60b07ac | {
"func_code_index": [
3666,
4106
]
} | 17,116 | |
XDBtest | XDBtest.sol | 0x0d47d83e5226e928277bae8069bf65b860858331 | Solidity | XDBtest | contract XDBtest {
string public constant name = "XDBtest";
string public constant symbol = "XDTT";
uint8 public constant decimals = 7;
uint public _totalSupply = 50000000000000000;
uint256 public RATE = 1;
bool public isMinting = false;
string pu... | // ERC20 Token Smart Contract | LineComment | approve | function approve(address _spender, uint256 _value) returns(bool){
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
| // Allow _spender to withdraw from your account, multiple times, up to the _value amount.
// If this function is called again it overwrites the current allowance with _value. | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://e0d31883424abda94fa50e3c751fcda33fae2421868b8393b345f4f3f60b07ac | {
"func_code_index": [
4298,
4496
]
} | 17,117 | |
XDBtest | XDBtest.sol | 0x0d47d83e5226e928277bae8069bf65b860858331 | Solidity | XDBtest | contract XDBtest {
string public constant name = "XDBtest";
string public constant symbol = "XDTT";
uint8 public constant decimals = 7;
uint public _totalSupply = 50000000000000000;
uint256 public RATE = 1;
bool public isMinting = false;
string pu... | // ERC20 Token Smart Contract | LineComment | allowance | function allowance(address _owner, address _spender) constant returns(uint256){
return allowed[_owner][_spender];
}
| // Returns the amount which _spender is still allowed to withdraw from _owner | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://e0d31883424abda94fa50e3c751fcda33fae2421868b8393b345f4f3f60b07ac | {
"func_code_index": [
4586,
4720
]
} | 17,118 | |
StandardERC20 | @beandao/contracts/library/EIP712.sol | 0xd1ac0b2a9be451e47c5a2bbab3dc22dc8abdd5dc | Solidity | EIP712 | library EIP712 {
bytes32 internal constant EIP712DOMAIN_TYPEHASH =
keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");
/**
* @dev Calculates a EIP712 domain separator.
* @param name The EIP712 domain name.
* @param version The EIP712 domain ve... | hashDomainSeperator | function hashDomainSeperator(
string memory name,
string memory version,
address verifyingContract
) internal view returns (bytes32 result) {
bytes32 typehash = EIP712DOMAIN_TYPEHASH;
// solhint-disable-next-line no-inline-assembly
assembly {
let nameHash := keccak256(add(name, 32), mlo... | /**
* @dev Calculates a EIP712 domain separator.
* @param name The EIP712 domain name.
* @param version The EIP712 domain version.
* @param verifyingContract The EIP712 verifying contract.
* @return result EIP712 domain separator.
*/ | NatSpecMultiLine | v0.8.11+commit.d7f03943 | GNU LGPLv3 | ipfs://d32d2b0a862a7434a55f3a4ff7330cb336b891cc17a965515b27480b5ea34b47 | {
"func_code_index": [
445,
1255
]
} | 17,119 | ||
StandardERC20 | @beandao/contracts/library/EIP712.sol | 0xd1ac0b2a9be451e47c5a2bbab3dc22dc8abdd5dc | Solidity | EIP712 | library EIP712 {
bytes32 internal constant EIP712DOMAIN_TYPEHASH =
keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");
/**
* @dev Calculates a EIP712 domain separator.
* @param name The EIP712 domain name.
* @param version The EIP712 domain ve... | hashMessage | function hashMessage(bytes32 domainHash, bytes32 hashStruct) internal pure returns (bytes32 result) {
// solhint-disable-next-line no-inline-assembly
assembly {
let memPtr := mload(64)
mstore(memPtr, 0x1901000000000000000000000000000000000000000000000000000000000000) // EIP191 header
ms... | /**
* @dev Calculates EIP712 encoding for a hash struct with a given domain hash.
* @param domainHash Hash of the domain domain separator data, computed with getDomainHash().
* @param hashStruct The EIP712 hash struct.
* @return result EIP712 hash applied to the given EIP712 Domain.
*/ | NatSpecMultiLine | v0.8.11+commit.d7f03943 | GNU LGPLv3 | ipfs://d32d2b0a862a7434a55f3a4ff7330cb336b891cc17a965515b27480b5ea34b47 | {
"func_code_index": [
1573,
2098
]
} | 17,120 | ||
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function ... | //
//
// Laurium Gold
// https://www.lauriumtokens.com/
// http://libertasdex.com
//
// a cross-chain gold token
// | LineComment | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
88,
146
]
} | 17,121 |
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function ... | //
//
// Laurium Gold
// https://www.lauriumtokens.com/
// http://libertasdex.com
//
// a cross-chain gold token
// | LineComment | decimals | function decimals() external view returns (uint8);
| /**
* @dev Returns the token decimals.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
202,
255
]
} | 17,122 |
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function ... | //
//
// Laurium Gold
// https://www.lauriumtokens.com/
// http://libertasdex.com
//
// a cross-chain gold token
// | LineComment | symbol | function symbol() external view returns (string memory);
| /**
* @dev Returns the token symbol.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
309,
368
]
} | 17,123 |
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function ... | //
//
// Laurium Gold
// https://www.lauriumtokens.com/
// http://libertasdex.com
//
// a cross-chain gold token
// | LineComment | name | function name() external view returns (string memory);
| /**
* @dev Returns the token name.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
418,
475
]
} | 17,124 |
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function ... | //
//
// Laurium Gold
// https://www.lauriumtokens.com/
// http://libertasdex.com
//
// a cross-chain gold token
// | LineComment | getOwner | function getOwner() external view returns (address);
| /**
* @dev Returns the bep token owner.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
532,
587
]
} | 17,125 |
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function ... | //
//
// Laurium Gold
// https://www.lauriumtokens.com/
// http://libertasdex.com
//
// a cross-chain gold token
// | LineComment | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
664,
735
]
} | 17,126 |
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function ... | //
//
// Laurium Gold
// https://www.lauriumtokens.com/
// http://libertasdex.com
//
// a cross-chain gold token
// | LineComment | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
945,
1025
]
} | 17,127 |
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function ... | //
//
// Laurium Gold
// https://www.lauriumtokens.com/
// http://libertasdex.com
//
// a cross-chain gold token
// | LineComment | allowance | function allowance(address _owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
1290,
1377
]
} | 17,128 |
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function ... | //
//
// Laurium Gold
// https://www.lauriumtokens.com/
// http://libertasdex.com
//
// a cross-chain gold token
// | LineComment | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
2013,
2090
]
} | 17,129 |
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function ... | //
//
// Laurium Gold
// https://www.lauriumtokens.com/
// http://libertasdex.com
//
// a cross-chain gold token
// | LineComment | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
2385,
2485
]
} | 17,130 |
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
233,
403
]
} | 17,131 |
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
655,
788
]
} | 17,132 |
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
1060,
1241
]
} | 17,133 |
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
}
uint25... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
1469,
1903
]
} | 17,134 |
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
2344,
2473
]
} | 17,135 |
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
2934,
3260
]
} | 17,136 |
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
3690,
3817
]
} | 17,137 |
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
4267,
4426
]
} | 17,138 |
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSender();
_owne... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
465,
541
]
} | 17,139 |
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSender();
_owne... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | renounceOwnership | function renounceOwnership() public onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
1067,
1200
]
} | 17,140 |
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSender();
_owne... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public onlyOwner {
_transferOwnership(newOwner);
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
1342,
1448
]
} | 17,141 |
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSender();
_owne... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | _transferOwnership | function _transferOwnership(address newOwner) internal {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
1543,
1761
]
} | 17,142 |
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _n... | getOwner | function getOwner() external view returns (address) {
return owner();
}
| /**
* @dev Returns the bep token owner.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
637,
719
]
} | 17,143 | ||
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _n... | decimals | function decimals() external view returns (uint8) {
return _decimals;
}
| /**
* @dev Returns the token decimals.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
775,
857
]
} | 17,144 | ||
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _n... | symbol | function symbol() external view returns (string memory) {
return _symbol;
}
| /**
* @dev Returns the token symbol.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
911,
997
]
} | 17,145 | ||
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _n... | name | function name() external view returns (string memory) {
return _name;
}
| /**
* @dev Returns the token name.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
1047,
1129
]
} | 17,146 | ||
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _n... | totalSupply | function totalSupply() external view returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {ERC20-totalSupply}.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
1182,
1272
]
} | 17,147 | ||
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _n... | balanceOf | function balanceOf(address account) external view returns (uint256) {
return _balances[account];
}
| /**
* @dev See {ERC20-balanceOf}.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
1323,
1432
]
} | 17,148 | ||
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _n... | transfer | function transfer(address recipient, uint256 amount) external returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
| /**
* @dev See {ERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
1623,
1776
]
} | 17,149 | ||
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _n... | allowance | function allowance(address owner, address spender) external view returns (uint256) {
return _allowances[owner][spender];
}
| /**
* @dev See {ERC20-allowance}.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
1827,
1960
]
} | 17,150 | ||
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _n... | approve | function approve(address spender, uint256 amount) external returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
| /**
* @dev See {ERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
2087,
2234
]
} | 17,151 | ||
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _n... | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
| /**
* @dev See {ERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20};
*
* Requirements:
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amoun... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
2676,
2971
]
} | 17,152 | ||
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _n... | increaseAllowance | function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
| /**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {ERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` ca... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
3350,
3553
]
} | 17,153 | ||
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _n... | decreaseAllowance | function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
| /**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {ERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` ca... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
4022,
4276
]
} | 17,154 | ||
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _n... | mint | function mint(uint256 amount) public onlyOwner returns (bool) {
_mint(_msgSender(), amount);
return true;
}
| /**
* @dev Creates `amount` tokens and assigns them to `msg.sender`, increasing
* the total supply.
*
* Requirements
*
* - `msg.sender` must be the token owner
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
4473,
4596
]
} | 17,155 | ||
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _n... | _transfer | function _transfer(address sender, address recipient, uint256 amount) internal {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds b... | /**
* @dev Moves tokens `amount` from `sender` to `recipient`.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
*... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
5053,
5505
]
} | 17,156 | ||
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _n... | _mint | function _mint(address account, uint256 amount) internal {
require(account != address(0), "ERC20: mint to the zero address");
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfer(address(0), account, amount);
}
| /** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements
*
* - `to` cannot be the zero address.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
5763,
6056
]
} | 17,157 | ||
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _n... | _burn | function _burn(address account, uint256 amount) internal {
require(account != address(0), "ERC20: burn from the zero address");
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_totalSupply = _totalSupply.sub(amount);
emit Transfer(account, address(0), amount);
}... | /**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
6361,
6694
]
} | 17,158 | ||
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _n... | _approve | function _approve(address owner, address spender, uint256 amount) internal {
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);
}
| /**
* @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
*
* This is internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
7103,
7426
]
} | 17,159 | ||
ERC20Token | ERC20Token.sol | 0xeccd72653c6d3c08bb9631f167d785d9286f2f07 | Solidity | ERC20Token | contract ERC20Token is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _n... | _burnFrom | function _burnFrom(address account, uint256 amount) internal {
_burn(account, amount);
_approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance"));
}
| /**
* @dev Destroys `amount` tokens from `account`.`amount` is then deducted
* from the caller's allowance.
*
* See {_burn} and {_approve}.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | None | bzzr://683ee91bfd6e6aec5b6a87dab9c5bd452d6cbf999805db5eefefbeb3c1a9560d | {
"func_code_index": [
7595,
7820
]
} | 17,160 | ||
CLONECOMPANYINC | CLONECOMPANYINC.sol | 0xacd395d094efc14e5a9506b7352c44d4ddb7705d | Solidity | CLONECOMPANYINC | contract CLONECOMPANYINC is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
address payable public marketingAddress = payable(0x16Db3Daeb61B3c4a648E1E294608eb527f034e10); // Marketing Address
address public immutable deadAddress = 0x000000000000000000000000000... | //to recieve ETH from uniswapV2Router when swaping | LineComment | v0.8.11+commit.d7f03943 | None | ipfs://64704368280d55b575ca2dbce30f17328081b101c1e54b4202cae09538423c94 | {
"func_code_index": [
20241,
20275
]
} | 17,161 | ||||
FixedSupplyToken | FixedSupplyToken.sol | 0xe4b9563ab24524b9399844aa10e300665458997e | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asserting 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
/... | /**
* https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/math/SafeMath.sol
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asserting 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Multiplies two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://c561ce73519375bf4720e2d4bbc0047c6d95a63d70434dec597cf639a7703b30 | {
"func_code_index": [
95,
524
]
} | 17,162 | |
FixedSupplyToken | FixedSupplyToken.sol | 0xe4b9563ab24524b9399844aa10e300665458997e | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asserting 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
/... | /**
* https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/math/SafeMath.sol
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
assert(b > 0);
// uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return a / b;
}
| /**
* @dev Integer division of two numbers, truncating the quotient.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://c561ce73519375bf4720e2d4bbc0047c6d95a63d70434dec597cf639a7703b30 | {
"func_code_index": [
614,
859
]
} | 17,163 | |
FixedSupplyToken | FixedSupplyToken.sol | 0xe4b9563ab24524b9399844aa10e300665458997e | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asserting 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
/... | /**
* https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/math/SafeMath.sol
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
assert(b <= a);
return a - b;
}
| /**
* @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://c561ce73519375bf4720e2d4bbc0047c6d95a63d70434dec597cf639a7703b30 | {
"func_code_index": [
979,
1107
]
} | 17,164 | |
FixedSupplyToken | FixedSupplyToken.sol | 0xe4b9563ab24524b9399844aa10e300665458997e | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asserting 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
/... | /**
* https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/math/SafeMath.sol
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
c = a + b;
assert(c >= a);
return c;
}
| /**
* @dev Adds two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://c561ce73519375bf4720e2d4bbc0047c6d95a63d70434dec597cf639a7703b30 | {
"func_code_index": [
1177,
1323
]
} | 17,165 | |
FixedSupplyToken | FixedSupplyToken.sol | 0xe4b9563ab24524b9399844aa10e300665458997e | Solidity | FixedSupplyToken | contract FixedSupplyToken is ERC20Interface {
using SafeMath for uint256;
string public symbol;
string public name;
uint8 public decimals;
mapping(address => uint256) public balances;
mapping(address => mapping(address => uint256)) public allowed;
modifier onlyPayloadSize(uint s... | balanceOf | function balanceOf(address tokenOwner) public view returns (uint256 balanceOfOwner) {
return balances[tokenOwner];
}
| /**
* Get the token balance for account `tokenOwner`
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://c561ce73519375bf4720e2d4bbc0047c6d95a63d70434dec597cf639a7703b30 | {
"func_code_index": [
750,
885
]
} | 17,166 | |||
FixedSupplyToken | FixedSupplyToken.sol | 0xe4b9563ab24524b9399844aa10e300665458997e | Solidity | FixedSupplyToken | contract FixedSupplyToken is ERC20Interface {
using SafeMath for uint256;
string public symbol;
string public name;
uint8 public decimals;
mapping(address => uint256) public balances;
mapping(address => mapping(address => uint256)) public allowed;
modifier onlyPayloadSize(uint s... | transfer | function transfer(address to, uint256 tokens) onlyPayloadSize(2 * 32) public returns (bool success) {
require(to != address(0));
require(tokens <= balances[msg.sender]);
balances[msg.sender] = balances[msg.sender].sub(tokens);
balances[to] = balances[to].add(tokens);
emit Transfer(msg.sende... | /**
* Transfer the balance from token owner's account to `to` account
* - Owner's account must have sufficient balance to transfer
* - 0 value transfers are allowed
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://c561ce73519375bf4720e2d4bbc0047c6d95a63d70434dec597cf639a7703b30 | {
"func_code_index": [
1087,
1478
]
} | 17,167 | |||
FixedSupplyToken | FixedSupplyToken.sol | 0xe4b9563ab24524b9399844aa10e300665458997e | Solidity | FixedSupplyToken | contract FixedSupplyToken is ERC20Interface {
using SafeMath for uint256;
string public symbol;
string public name;
uint8 public decimals;
mapping(address => uint256) public balances;
mapping(address => mapping(address => uint256)) public allowed;
modifier onlyPayloadSize(uint s... | approve | function approve(address spender, uint256 tokens) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
emit Approval(msg.sender, spender, tokens);
return true;
}
| /**
* Token owner can approve for `spender` to transferFrom(...) `tokens`
* from the token owner's account
*
* https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
* recommends that there are no checks for the approval double-spend attack
* as this should be implemented in user interfa... | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://c561ce73519375bf4720e2d4bbc0047c6d95a63d70434dec597cf639a7703b30 | {
"func_code_index": [
1845,
2061
]
} | 17,168 | |||
FixedSupplyToken | FixedSupplyToken.sol | 0xe4b9563ab24524b9399844aa10e300665458997e | Solidity | FixedSupplyToken | contract FixedSupplyToken is ERC20Interface {
using SafeMath for uint256;
string public symbol;
string public name;
uint8 public decimals;
mapping(address => uint256) public balances;
mapping(address => mapping(address => uint256)) public allowed;
modifier onlyPayloadSize(uint s... | transferFrom | function transferFrom(address from, address to, uint256 tokens) onlyPayloadSize(3 * 32) public returns (bool success) {
require(to != address(0));
require(tokens <= balances[from]);
require(tokens <= allowed[from][msg.sender]);
balances[from] = balances[from].sub(tokens);
allowed[from][msg.se... | /**
* Transfer `tokens` from the `from` account to the `to` account
*
* The calling account must already have sufficient tokens approve(...)-d
* for spending from the `from` account and
* - From account must have sufficient balance to transfer
* - Spender must have sufficient allowance to transfer
* - 0 v... | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://c561ce73519375bf4720e2d4bbc0047c6d95a63d70434dec597cf639a7703b30 | {
"func_code_index": [
2455,
2971
]
} | 17,169 | |||
FixedSupplyToken | FixedSupplyToken.sol | 0xe4b9563ab24524b9399844aa10e300665458997e | Solidity | FixedSupplyToken | contract FixedSupplyToken is ERC20Interface {
using SafeMath for uint256;
string public symbol;
string public name;
uint8 public decimals;
mapping(address => uint256) public balances;
mapping(address => mapping(address => uint256)) public allowed;
modifier onlyPayloadSize(uint s... | allowance | function allowance(address tokenOwner, address spender) public view returns (uint256 remaining) {
return allowed[tokenOwner][spender];
}
| /**
* Returns the amount of tokens approved by the owner that can be
* transferred to the spender's account
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://c561ce73519375bf4720e2d4bbc0047c6d95a63d70434dec597cf639a7703b30 | {
"func_code_index": [
3110,
3265
]
} | 17,170 | |||
FixedSupplyToken | FixedSupplyToken.sol | 0xe4b9563ab24524b9399844aa10e300665458997e | Solidity | FixedSupplyToken | contract FixedSupplyToken is ERC20Interface {
using SafeMath for uint256;
string public symbol;
string public name;
uint8 public decimals;
mapping(address => uint256) public balances;
mapping(address => mapping(address => uint256)) public allowed;
modifier onlyPayloadSize(uint s... | function () public payable {
revert();
}
| /**
* Don't accept ETH
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://c561ce73519375bf4720e2d4bbc0047c6d95a63d70434dec597cf639a7703b30 | {
"func_code_index": [
3313,
3372
]
} | 17,171 | ||||
StandardERC20 | @beandao/contracts/library/ERC2612.sol | 0xd1ac0b2a9be451e47c5a2bbab3dc22dc8abdd5dc | Solidity | ERC2612 | abstract contract ERC2612 is ERC20, IERC2612 {
bytes32 public immutable PERMIT_TYPEHASH =
keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
bytes32 public DOMAIN_SEPARATOR;
string public version;
mapping(address => uint256) public nonces;
/*... | /**
* @title Permit
* @notice An alternative to approveWithAuthorization, provided for
* compatibility with the draft EIP2612 proposed by Uniswap.
* @dev Differences:
* - Uses sequential nonce, which restricts transaction submission to one at a
* time, or else it will revert
* - Has deadline (= validBefore - 1... | NatSpecMultiLine | _initDomainSeparator | function _initDomainSeparator(string memory _name, string memory _version) internal {
version = _version;
DOMAIN_SEPARATOR = EIP712.hashDomainSeperator(_name, _version, address(this));
}
| /**
* @notice Initialize EIP712 Domain Separator
* @param _name name of contract
* @param _version version of contract
*/ | NatSpecMultiLine | v0.8.11+commit.d7f03943 | GNU LGPLv3 | ipfs://d32d2b0a862a7434a55f3a4ff7330cb336b891cc17a965515b27480b5ea34b47 | {
"func_code_index": [
471,
681
]
} | 17,172 |
StandardERC20 | @beandao/contracts/library/ERC2612.sol | 0xd1ac0b2a9be451e47c5a2bbab3dc22dc8abdd5dc | Solidity | ERC2612 | abstract contract ERC2612 is ERC20, IERC2612 {
bytes32 public immutable PERMIT_TYPEHASH =
keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
bytes32 public DOMAIN_SEPARATOR;
string public version;
mapping(address => uint256) public nonces;
/*... | /**
* @title Permit
* @notice An alternative to approveWithAuthorization, provided for
* compatibility with the draft EIP2612 proposed by Uniswap.
* @dev Differences:
* - Uses sequential nonce, which restricts transaction submission to one at a
* time, or else it will revert
* - Has deadline (= validBefore - 1... | NatSpecMultiLine | permit | function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external virtual {
require(owner != address(0), "ERC2612/Invalid-address-0");
require(deadline >= block.timestamp, "ERC2612/Expired-time");
unchecked {
bytes... | /**
* @notice Verify a signed approval permit and execute if valid
* @param owner Token owner's address (Authorizer)
* @param spender Spender's address
* @param value Amount of allowance
* @param deadline The time at which this expires (unix time)
* @param v v of the signature
* @param r ... | NatSpecMultiLine | v0.8.11+commit.d7f03943 | GNU LGPLv3 | ipfs://d32d2b0a862a7434a55f3a4ff7330cb336b891cc17a965515b27480b5ea34b47 | {
"func_code_index": [
1108,
1881
]
} | 17,173 |
RELIANCE | RELIANCE.sol | 0x791ee64115f8965aa85c96655eebd02f81fb02ac | Solidity | Context | contract Context {
constructor () internal { }
// solhint-disable-previous-line no-empty-blocks
function _msgSender() internal view returns (address payable) {
return msg.sender;
}
} | _msgSender | function _msgSender() internal view returns (address payable) {
return msg.sender;
}
| // solhint-disable-previous-line no-empty-blocks | LineComment | v0.5.17+commit.d19bba13 | MIT | bzzr://89850d0de8af80c42038b82557d838dbd465987b96d9ab0d3184e6cf06fdea66 | {
"func_code_index": [
109,
212
]
} | 17,174 | ||
StandardERC20 | contracts/tokens/StandardERC20.sol | 0xd1ac0b2a9be451e47c5a2bbab3dc22dc8abdd5dc | Solidity | StandardERC20 | contract StandardERC20 is ERC20, ERC2612, Ownership, Multicall, Initializer, IERC165, IBurn, IMint {
/**
* @notice ERC20을 초기화 합니다. 토큰의 이름, 심볼, 소수점 정보를 필요로 합니다. 이 함수는 실행될 때 단 한번만 실행됩니다.
* 이 함수가 실행될 때 이 함수를 실행한 당사자가 해당 컨트랙트의 소유권을 받게됩니다.
* @param data 토큰 이름, 토큰 심볼, 소수점 정보를 abi encode 하여, bytes 형태로 전달하여야... | /**
* @title StandardERC20
* @author yoonsung.eth
* @notice ERC20과 ERC2612를 기본으로, ERC165, ERC173 명세를 구현하고 있습니다.
*/ | NatSpecMultiLine | initialize | function initialize(bytes calldata data) external initializer {
(name, symbol, decimals) = abi.decode(data, (string, string, uint8));
version = "1";
balanceOf[address(this)] = type(uint256).max;
_initDomainSeparator(name, version);
_transferOwnership(msg.sender);
}
| /**
* @notice ERC20을 초기화 합니다. 토큰의 이름, 심볼, 소수점 정보를 필요로 합니다. 이 함수는 실행될 때 단 한번만 실행됩니다.
* 이 함수가 실행될 때 이 함수를 실행한 당사자가 해당 컨트랙트의 소유권을 받게됩니다.
* @param data 토큰 이름, 토큰 심볼, 소수점 정보를 abi encode 하여, bytes 형태로 전달하여야 합니다.
*/ | NatSpecMultiLine | v0.8.11+commit.d7f03943 | GNU LGPLv3 | ipfs://d32d2b0a862a7434a55f3a4ff7330cb336b891cc17a965515b27480b5ea34b47 | {
"func_code_index": [
334,
647
]
} | 17,175 |
PotionSwap | PotionSwap.sol | 0xcd647b24815659d03a1d747d1308f2f72203fb5d | Solidity | PotionSwap | contract PotionSwap is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | totalSupply | function totalSupply() public constant returns (uint) {
return _totalSupply - balances[address(0)];
}
| // ------------------------------------------------------------------------
// Total supply
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | None | bzzr://9bcbf998bc948a27cb0edb60c9e784c51cbeba15b3b42b6126f9a6c6204be273 | {
"func_code_index": [
970,
1091
]
} | 17,176 |
PotionSwap | PotionSwap.sol | 0xcd647b24815659d03a1d747d1308f2f72203fb5d | Solidity | PotionSwap | contract PotionSwap is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | balanceOf | function balanceOf(address tokenOwner) public constant returns (uint balance) {
return balances[tokenOwner];
}
| // ------------------------------------------------------------------------
// Get the token balance for account tokenOwner
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | None | bzzr://9bcbf998bc948a27cb0edb60c9e784c51cbeba15b3b42b6126f9a6c6204be273 | {
"func_code_index": [
1311,
1440
]
} | 17,177 |
PotionSwap | PotionSwap.sol | 0xcd647b24815659d03a1d747d1308f2f72203fb5d | Solidity | PotionSwap | contract PotionSwap is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transfer | function transfer(address to, uint tokens) public returns (bool success) {
balances[msg.sender] = safeSub(balances[msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
emit Transfer(msg.sender, to, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Transfer the balance from token owner's account to to account
// - Owner's account must have sufficient balance to transfer
// - 0 value transfers are allowed
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | None | bzzr://9bcbf998bc948a27cb0edb60c9e784c51cbeba15b3b42b6126f9a6c6204be273 | {
"func_code_index": [
1784,
2066
]
} | 17,178 |
PotionSwap | PotionSwap.sol | 0xcd647b24815659d03a1d747d1308f2f72203fb5d | Solidity | PotionSwap | contract PotionSwap is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approve | function approve(address spender, uint tokens) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
emit Approval(msg.sender, spender, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account
//
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
// recommends that there are no checks for the approval double... | LineComment | v0.4.24+commit.e67f0147 | None | bzzr://9bcbf998bc948a27cb0edb60c9e784c51cbeba15b3b42b6126f9a6c6204be273 | {
"func_code_index": [
2574,
2787
]
} | 17,179 |
PotionSwap | PotionSwap.sol | 0xcd647b24815659d03a1d747d1308f2f72203fb5d | Solidity | PotionSwap | contract PotionSwap is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferFrom | function transferFrom(address from, address to, uint tokens) public returns (bool success) {
balances[from] = safeSub(balances[from], tokens);
allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
emit Transfer(from, to, tokens);
r... | // ------------------------------------------------------------------------
// Transfer tokens from the from account to the to account
//
// The calling account must already have sufficient tokens approve(...)-d
// for spending from the from account and
// - From account must have sufficient balance to transfer
// - S... | LineComment | v0.4.24+commit.e67f0147 | None | bzzr://9bcbf998bc948a27cb0edb60c9e784c51cbeba15b3b42b6126f9a6c6204be273 | {
"func_code_index": [
3318,
3681
]
} | 17,180 |
PotionSwap | PotionSwap.sol | 0xcd647b24815659d03a1d747d1308f2f72203fb5d | Solidity | PotionSwap | contract PotionSwap is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | allowance | function allowance(address tokenOwner, address spender) public constant returns (uint remaining) {
return allowed[tokenOwner][spender];
}
| // ------------------------------------------------------------------------
// Returns the amount of tokens approved by the owner that can be
// transferred to the spender's account
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | None | bzzr://9bcbf998bc948a27cb0edb60c9e784c51cbeba15b3b42b6126f9a6c6204be273 | {
"func_code_index": [
3964,
4120
]
} | 17,181 |
PotionSwap | PotionSwap.sol | 0xcd647b24815659d03a1d747d1308f2f72203fb5d | Solidity | PotionSwap | contract PotionSwap is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approveAndCall | function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
emit Approval(msg.sender, spender, tokens);
ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account. The spender contract function
// receiveApproval(...) is then executed
// --------------------------------------------------------------------... | LineComment | v0.4.24+commit.e67f0147 | None | bzzr://9bcbf998bc948a27cb0edb60c9e784c51cbeba15b3b42b6126f9a6c6204be273 | {
"func_code_index": [
4475,
4797
]
} | 17,182 |
PotionSwap | PotionSwap.sol | 0xcd647b24815659d03a1d747d1308f2f72203fb5d | Solidity | PotionSwap | contract PotionSwap is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | function () public payable {
revert();
}
| // ------------------------------------------------------------------------
// Don't accept ETH
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | None | bzzr://9bcbf998bc948a27cb0edb60c9e784c51cbeba15b3b42b6126f9a6c6204be273 | {
"func_code_index": [
4989,
5048
]
} | 17,183 | |
PotionSwap | PotionSwap.sol | 0xcd647b24815659d03a1d747d1308f2f72203fb5d | Solidity | PotionSwap | contract PotionSwap is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferAnyERC20Token | function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) {
return ERC20Interface(tokenAddress).transfer(owner, tokens);
}
| // ------------------------------------------------------------------------
// Owner can transfer out any accidentally sent ERC20 tokens
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | None | bzzr://9bcbf998bc948a27cb0edb60c9e784c51cbeba15b3b42b6126f9a6c6204be273 | {
"func_code_index": [
5281,
5470
]
} | 17,184 |
PotionSwap | PotionSwap.sol | 0xcd647b24815659d03a1d747d1308f2f72203fb5d | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens in existence.
*/
/**
* @dev Returns the amount of tokens owned by `account`.
*/
funct... | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | None | bzzr://9bcbf998bc948a27cb0edb60c9e784c51cbeba15b3b42b6126f9a6c6204be273 | {
"func_code_index": [
94,
154
]
} | 17,185 | ||
PotionSwap | PotionSwap.sol | 0xcd647b24815659d03a1d747d1308f2f72203fb5d | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens in existence.
*/
/**
* @dev Returns the amount of tokens owned by `account`.
*/
funct... | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | None | bzzr://9bcbf998bc948a27cb0edb60c9e784c51cbeba15b3b42b6126f9a6c6204be273 | {
"func_code_index": [
311,
384
]
} | 17,186 | ||
PotionSwap | PotionSwap.sol | 0xcd647b24815659d03a1d747d1308f2f72203fb5d | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens in existence.
*/
/**
* @dev Returns the amount of tokens owned by `account`.
*/
funct... | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a `Transfer` event.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | None | bzzr://9bcbf998bc948a27cb0edb60c9e784c51cbeba15b3b42b6126f9a6c6204be273 | {
"func_code_index": [
608,
690
]
} | 17,187 | ||
PotionSwap | PotionSwap.sol | 0xcd647b24815659d03a1d747d1308f2f72203fb5d | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens in existence.
*/
/**
* @dev Returns the amount of tokens owned by `account`.
*/
funct... | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through `transferFrom`. This is
* zero by default.
*
* This value changes when `approve` or `transferFrom` are called.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | None | bzzr://9bcbf998bc948a27cb0edb60c9e784c51cbeba15b3b42b6126f9a6c6204be273 | {
"func_code_index": [
969,
1057
]
} | 17,188 | ||
PotionSwap | PotionSwap.sol | 0xcd647b24815659d03a1d747d1308f2f72203fb5d | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens in existence.
*/
/**
* @dev Returns the amount of tokens owned by `account`.
*/
funct... | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* > Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* trans... | NatSpecMultiLine | v0.4.24+commit.e67f0147 | None | bzzr://9bcbf998bc948a27cb0edb60c9e784c51cbeba15b3b42b6126f9a6c6204be273 | {
"func_code_index": [
1712,
1791
]
} | 17,189 | ||
PotionSwap | PotionSwap.sol | 0xcd647b24815659d03a1d747d1308f2f72203fb5d | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens in existence.
*/
/**
* @dev Returns the amount of tokens owned by `account`.
*/
funct... | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a `Transfer` event.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | None | bzzr://9bcbf998bc948a27cb0edb60c9e784c51cbeba15b3b42b6126f9a6c6204be273 | {
"func_code_index": [
2104,
2206
]
} | 17,190 | ||
PayFairTokenCrowdsale | PayFairTokenCrowdsale.sol | 0x3200a57215941de7e460cf32810780ee5bf8a134 | Solidity | Haltable | contract Haltable is Ownable {
bool public halted;
modifier stopInEmergency {
require(!halted);
_;
}
modifier onlyInEmergency {
require(halted);
_;
}
/// called by the owner on emergency, triggers stopped state
function halt() external onlyOwner {
halted = true;
}
... | /// @title Haltable contract - abstract contract that allows children to implement an emergency stop mechanism.
/// Originally envisioned in FirstBlood ICO contract. | NatSpecSingleLine | halt | function halt() external onlyOwner {
halted = true;
}
| /// called by the owner on emergency, triggers stopped state | NatSpecSingleLine | v0.4.13+commit.fb4cb1a | bzzr://0844ff007dc1ae9e51ff743f26faeb1c77b965ffd8613fb36ea24a1464d38041 | {
"func_code_index": [
256,
320
]
} | 17,191 | |
PayFairTokenCrowdsale | PayFairTokenCrowdsale.sol | 0x3200a57215941de7e460cf32810780ee5bf8a134 | Solidity | Haltable | contract Haltable is Ownable {
bool public halted;
modifier stopInEmergency {
require(!halted);
_;
}
modifier onlyInEmergency {
require(halted);
_;
}
/// called by the owner on emergency, triggers stopped state
function halt() external onlyOwner {
halted = true;
}
... | /// @title Haltable contract - abstract contract that allows children to implement an emergency stop mechanism.
/// Originally envisioned in FirstBlood ICO contract. | NatSpecSingleLine | unhalt | function unhalt() external onlyOwner onlyInEmergency {
halted = false;
}
| /// called by the owner on end of emergency, returns to normal state | NatSpecSingleLine | v0.4.13+commit.fb4cb1a | bzzr://0844ff007dc1ae9e51ff743f26faeb1c77b965ffd8613fb36ea24a1464d38041 | {
"func_code_index": [
395,
478
]
} | 17,192 | |
PayFairTokenCrowdsale | PayFairTokenCrowdsale.sol | 0x3200a57215941de7e460cf32810780ee5bf8a134 | Solidity | PayFairToken | contract PayFairToken is SafeMath, ERC20, Ownable {
string public name = "PayFair Token";
string public symbol = "PFR";
uint public constant decimals = 8;
uint public constant FROZEN_TOKENS = 11e6;
uint public constant FREEZE_PERIOD = 1 years;
uint public constant MULTIPLIER = 10 ** decimals;
uint public ... | /// @title PayFairToken contract - standard ERC20 token with Short Hand Attack and approve() race condition mitigation. | NatSpecSingleLine | PayFairToken | function PayFairToken() {
owner = msg.sender;
}
| /// @dev Constructor | NatSpecSingleLine | v0.4.13+commit.fb4cb1a | bzzr://0844ff007dc1ae9e51ff743f26faeb1c77b965ffd8613fb36ea24a1464d38041 | {
"func_code_index": [
1983,
2038
]
} | 17,193 | |
PayFairTokenCrowdsale | PayFairTokenCrowdsale.sol | 0x3200a57215941de7e460cf32810780ee5bf8a134 | Solidity | PayFairToken | contract PayFairToken is SafeMath, ERC20, Ownable {
string public name = "PayFair Token";
string public symbol = "PFR";
uint public constant decimals = 8;
uint public constant FROZEN_TOKENS = 11e6;
uint public constant FREEZE_PERIOD = 1 years;
uint public constant MULTIPLIER = 10 ** decimals;
uint public ... | /// @title PayFairToken contract - standard ERC20 token with Short Hand Attack and approve() race condition mitigation. | NatSpecSingleLine | function() payable {
revert();
}
| /// Fallback method will buyout tokens | NatSpecSingleLine | v0.4.13+commit.fb4cb1a | bzzr://0844ff007dc1ae9e51ff743f26faeb1c77b965ffd8613fb36ea24a1464d38041 | {
"func_code_index": [
2082,
2122
]
} | 17,194 | ||
PayFairTokenCrowdsale | PayFairTokenCrowdsale.sol | 0x3200a57215941de7e460cf32810780ee5bf8a134 | Solidity | PayFairToken | contract PayFairToken is SafeMath, ERC20, Ownable {
string public name = "PayFair Token";
string public symbol = "PFR";
uint public constant decimals = 8;
uint public constant FROZEN_TOKENS = 11e6;
uint public constant FREEZE_PERIOD = 1 years;
uint public constant MULTIPLIER = 10 ** decimals;
uint public ... | /// @title PayFairToken contract - standard ERC20 token with Short Hand Attack and approve() race condition mitigation. | NatSpecSingleLine | mint | function mint(address receiver, uint amount) onlyCrowdsaleAgent canMint public {
totalSupply = safeAdd(totalSupply, amount);
balances[receiver] = safeAdd(balances[receiver], amount);
Transfer(0, receiver, amount);
}
| /// @dev Create new tokens and allocate them to an address. Only callably by a crowdsale contract
/// @param receiver Address of receiver
/// @param amount Number of tokens to issue. | NatSpecSingleLine | v0.4.13+commit.fb4cb1a | bzzr://0844ff007dc1ae9e51ff743f26faeb1c77b965ffd8613fb36ea24a1464d38041 | {
"func_code_index": [
2313,
2547
]
} | 17,195 | |
PayFairTokenCrowdsale | PayFairTokenCrowdsale.sol | 0x3200a57215941de7e460cf32810780ee5bf8a134 | Solidity | PayFairToken | contract PayFairToken is SafeMath, ERC20, Ownable {
string public name = "PayFair Token";
string public symbol = "PFR";
uint public constant decimals = 8;
uint public constant FROZEN_TOKENS = 11e6;
uint public constant FREEZE_PERIOD = 1 years;
uint public constant MULTIPLIER = 10 ** decimals;
uint public ... | /// @title PayFairToken contract - standard ERC20 token with Short Hand Attack and approve() race condition mitigation. | NatSpecSingleLine | setCrowdsaleAgent | function setCrowdsaleAgent(address _crowdsaleAgent) onlyOwner inReleaseState(false) public {
crowdsaleAgent = _crowdsaleAgent;
}
| /// @dev Set the contract that can call release and make the token transferable.
/// @param _crowdsaleAgent crowdsale contract address | NatSpecSingleLine | v0.4.13+commit.fb4cb1a | bzzr://0844ff007dc1ae9e51ff743f26faeb1c77b965ffd8613fb36ea24a1464d38041 | {
"func_code_index": [
2689,
2825
]
} | 17,196 | |
PayFairTokenCrowdsale | PayFairTokenCrowdsale.sol | 0x3200a57215941de7e460cf32810780ee5bf8a134 | Solidity | PayFairToken | contract PayFairToken is SafeMath, ERC20, Ownable {
string public name = "PayFair Token";
string public symbol = "PFR";
uint public constant decimals = 8;
uint public constant FROZEN_TOKENS = 11e6;
uint public constant FREEZE_PERIOD = 1 years;
uint public constant MULTIPLIER = 10 ** decimals;
uint public ... | /// @title PayFairToken contract - standard ERC20 token with Short Hand Attack and approve() race condition mitigation. | NatSpecSingleLine | releaseTokenTransfer | function releaseTokenTransfer() public onlyCrowdsaleAgent {
crowdSaleOverTimestamp = now;
released = true;
}
| /// @dev One way function to release the tokens to the wild. Can be called only from the release agent that is the final ICO contract. It is only called if the crowdsale has been success (first milestone reached). | NatSpecSingleLine | v0.4.13+commit.fb4cb1a | bzzr://0844ff007dc1ae9e51ff743f26faeb1c77b965ffd8613fb36ea24a1464d38041 | {
"func_code_index": [
3042,
3162
]
} | 17,197 | |
PayFairTokenCrowdsale | PayFairTokenCrowdsale.sol | 0x3200a57215941de7e460cf32810780ee5bf8a134 | Solidity | PayFairToken | contract PayFairToken is SafeMath, ERC20, Ownable {
string public name = "PayFair Token";
string public symbol = "PFR";
uint public constant decimals = 8;
uint public constant FROZEN_TOKENS = 11e6;
uint public constant FREEZE_PERIOD = 1 years;
uint public constant MULTIPLIER = 10 ** decimals;
uint public ... | /// @title PayFairToken contract - standard ERC20 token with Short Hand Attack and approve() race condition mitigation. | NatSpecSingleLine | convertToDecimal | function convertToDecimal(uint amount) public constant returns (uint) {
return safeMul(amount, MULTIPLIER);
}
| /// @dev Converts token value to value with decimal places
/// @param amount Source token value | NatSpecSingleLine | v0.4.13+commit.fb4cb1a | bzzr://0844ff007dc1ae9e51ff743f26faeb1c77b965ffd8613fb36ea24a1464d38041 | {
"func_code_index": [
3265,
3382
]
} | 17,198 | |
PayFairTokenCrowdsale | PayFairTokenCrowdsale.sol | 0x3200a57215941de7e460cf32810780ee5bf8a134 | Solidity | PayFairToken | contract PayFairToken is SafeMath, ERC20, Ownable {
string public name = "PayFair Token";
string public symbol = "PFR";
uint public constant decimals = 8;
uint public constant FROZEN_TOKENS = 11e6;
uint public constant FREEZE_PERIOD = 1 years;
uint public constant MULTIPLIER = 10 ** decimals;
uint public ... | /// @title PayFairToken contract - standard ERC20 token with Short Hand Attack and approve() race condition mitigation. | NatSpecSingleLine | transfer | function transfer(address _to, uint _value) onlyPayloadSize(2 * 32) canTransfer checkFrozenAmount(msg.sender, _value) returns (bool success) {
balances[msg.sender] = safeSub(balances[msg.sender], _value);
balances[_to] = safeAdd(balances[_to], _value);
Transfer(msg.sender, _to, _value);
return true;
}
| /// @dev Tranfer tokens to address
/// @param _to dest address
/// @param _value tokens amount
/// @return transfer result | NatSpecSingleLine | v0.4.13+commit.fb4cb1a | bzzr://0844ff007dc1ae9e51ff743f26faeb1c77b965ffd8613fb36ea24a1464d38041 | {
"func_code_index": [
3516,
3840
]
} | 17,199 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.