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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
AiFiToken | AiFiToken.sol | 0xa56f81c849a78558c725fa742f090398ed8a5cf1 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSup... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
| /**
* @dev See {IERC20-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 `amou... | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://dc9aeb2d4e246f449a037cadd8efc261218ef0c6c29ed2f53f7e76b0610b04e9 | {
"func_code_index": [
1902,
2211
]
} | 21,300 |
AiFiToken | AiFiToken.sol | 0xa56f81c849a78558c725fa742f090398ed8a5cf1 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSup... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | 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 {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` c... | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://dc9aeb2d4e246f449a037cadd8efc261218ef0c6c29ed2f53f7e76b0610b04e9 | {
"func_code_index": [
2615,
2830
]
} | 21,301 |
AiFiToken | AiFiToken.sol | 0xa56f81c849a78558c725fa742f090398ed8a5cf1 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSup... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | 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 {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` c... | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://dc9aeb2d4e246f449a037cadd8efc261218ef0c6c29ed2f53f7e76b0610b04e9 | {
"func_code_index": [
3328,
3594
]
} | 21,302 |
AiFiToken | AiFiToken.sol | 0xa56f81c849a78558c725fa742f090398ed8a5cf1 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSup... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | _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 exc... | /**
* @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.17+commit.d19bba13 | None | bzzr://dc9aeb2d4e246f449a037cadd8efc261218ef0c6c29ed2f53f7e76b0610b04e9 | {
"func_code_index": [
4079,
4555
]
} | 21,303 |
AiFiToken | AiFiToken.sol | 0xa56f81c849a78558c725fa742f090398ed8a5cf1 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSup... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | _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.17+commit.d19bba13 | None | bzzr://dc9aeb2d4e246f449a037cadd8efc261218ef0c6c29ed2f53f7e76b0610b04e9 | {
"func_code_index": [
4831,
5144
]
} | 21,304 |
AiFiToken | AiFiToken.sol | 0xa56f81c849a78558c725fa742f090398ed8a5cf1 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSup... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | _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), amo... | /**
* @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.17+commit.d19bba13 | None | bzzr://dc9aeb2d4e246f449a037cadd8efc261218ef0c6c29ed2f53f7e76b0610b04e9 | {
"func_code_index": [
5471,
5824
]
} | 21,305 |
AiFiToken | AiFiToken.sol | 0xa56f81c849a78558c725fa742f090398ed8a5cf1 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSup... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | _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.17+commit.d19bba13 | None | bzzr://dc9aeb2d4e246f449a037cadd8efc261218ef0c6c29ed2f53f7e76b0610b04e9 | {
"func_code_index": [
6259,
6602
]
} | 21,306 |
AiFiToken | AiFiToken.sol | 0xa56f81c849a78558c725fa742f090398ed8a5cf1 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSup... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | _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.17+commit.d19bba13 | None | bzzr://dc9aeb2d4e246f449a037cadd8efc261218ef0c6c29ed2f53f7e76b0610b04e9 | {
"func_code_index": [
6783,
7020
]
} | 21,307 |
AiFiToken | AiFiToken.sol | 0xa56f81c849a78558c725fa742f090398ed8a5cf1 | Solidity | ERC20Detailed | contract ERC20Detailed is IERC20 {
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* @dev Sets the values for `name`, `symbol`, and `decimals`. All three of
* these values are immutable: they can only be set once during
* construction.
*/
con... | /**
* @dev Optional functions from the ERC20 standard.
*/ | NatSpecMultiLine | name | function name() public view returns (string memory) {
return _name;
}
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://dc9aeb2d4e246f449a037cadd8efc261218ef0c6c29ed2f53f7e76b0610b04e9 | {
"func_code_index": [
550,
638
]
} | 21,308 |
AiFiToken | AiFiToken.sol | 0xa56f81c849a78558c725fa742f090398ed8a5cf1 | Solidity | ERC20Detailed | contract ERC20Detailed is IERC20 {
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* @dev Sets the values for `name`, `symbol`, and `decimals`. All three of
* these values are immutable: they can only be set once during
* construction.
*/
con... | /**
* @dev Optional functions from the ERC20 standard.
*/ | NatSpecMultiLine | symbol | function symbol() public view returns (string memory) {
return _symbol;
}
| /**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://dc9aeb2d4e246f449a037cadd8efc261218ef0c6c29ed2f53f7e76b0610b04e9 | {
"func_code_index": [
752,
844
]
} | 21,309 |
AiFiToken | AiFiToken.sol | 0xa56f81c849a78558c725fa742f090398ed8a5cf1 | Solidity | ERC20Detailed | contract ERC20Detailed is IERC20 {
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* @dev Sets the values for `name`, `symbol`, and `decimals`. All three of
* these values are immutable: they can only be set once during
* construction.
*/
con... | /**
* @dev Optional functions from the ERC20 standard.
*/ | NatSpecMultiLine | decimals | function decimals() public view returns (uint8) {
return _decimals;
}
| /**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5,05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei.
*
*... | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://dc9aeb2d4e246f449a037cadd8efc261218ef0c6c29ed2f53f7e76b0610b04e9 | {
"func_code_index": [
1402,
1490
]
} | 21,310 |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | SafeMath | contract SafeMath {
/**
* @dev Subtracts two numbers, reverts on overflow.
*/
function safeSub(uint256 x, uint256 y) internal pure returns (uint256) {
assert(y <= x);
uint256 z = x - y;
return z;
}
/**
* @dev Adds two numbers, reverts on overflow.
*... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | safeSub | function safeSub(uint256 x, uint256 y) internal pure returns (uint256) {
assert(y <= x);
uint256 z = x - y;
return z;
}
| /**
* @dev Subtracts two numbers, reverts on overflow.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
96,
252
]
} | 21,311 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | SafeMath | contract SafeMath {
/**
* @dev Subtracts two numbers, reverts on overflow.
*/
function safeSub(uint256 x, uint256 y) internal pure returns (uint256) {
assert(y <= x);
uint256 z = x - y;
return z;
}
/**
* @dev Adds two numbers, reverts on overflow.
*... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | safeAdd | function safeAdd(uint256 x, uint256 y) internal pure returns (uint256) {
uint256 z = x + y;
assert(z >= x);
return z;
}
| /**
* @dev Adds two numbers, reverts on overflow.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
323,
479
]
} | 21,312 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | SafeMath | contract SafeMath {
/**
* @dev Subtracts two numbers, reverts on overflow.
*/
function safeSub(uint256 x, uint256 y) internal pure returns (uint256) {
assert(y <= x);
uint256 z = x - y;
return z;
}
/**
* @dev Adds two numbers, reverts on overflow.
*... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | safeDiv | function safeDiv(uint256 x, uint256 y) internal pure returns (uint256) {
uint256 z = x / y;
return z;
}
| /**
* @dev Integer division of two numbers, reverts on division by zero.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
571,
702
]
} | 21,313 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | SafeMath | contract SafeMath {
/**
* @dev Subtracts two numbers, reverts on overflow.
*/
function safeSub(uint256 x, uint256 y) internal pure returns (uint256) {
assert(y <= x);
uint256 z = x - y;
return z;
}
/**
* @dev Adds two numbers, reverts on overflow.
*... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | safeMul | function safeMul(uint256 x, uint256 y) internal pure returns (uint256) {
if (x == 0) {
return 0;
}
uint256 z = x * y;
assert(z / x == y);
return z;
}
| /**
* @dev Multiplies two numbers, reverts on overflow.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
784,
1011
]
} | 21,314 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | SafeMath | contract SafeMath {
/**
* @dev Subtracts two numbers, reverts on overflow.
*/
function safeSub(uint256 x, uint256 y) internal pure returns (uint256) {
assert(y <= x);
uint256 z = x - y;
return z;
}
/**
* @dev Adds two numbers, reverts on overflow.
*... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | safePerc | function safePerc(uint256 x, uint256 y) internal pure returns (uint256) {
if (x == 0) {
return 0;
}
uint256 z = x * y;
assert(z / x == y);
z = z / 10000; // percent to hundredths
return z;
}
| /**
* @dev Returns the integer percentage of the number.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
1089,
1370
]
} | 21,315 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | SafeMath | contract SafeMath {
/**
* @dev Subtracts two numbers, reverts on overflow.
*/
function safeSub(uint256 x, uint256 y) internal pure returns (uint256) {
assert(y <= x);
uint256 z = x - y;
return z;
}
/**
* @dev Adds two numbers, reverts on overflow.
*... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | min | function min(uint256 x, uint256 y) internal pure returns (uint256) {
uint256 z = x <= y ? x : y;
return z;
}
| /**
* @dev Returns the minimum value of two numbers.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
1445,
1581
]
} | 21,316 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | SafeMath | contract SafeMath {
/**
* @dev Subtracts two numbers, reverts on overflow.
*/
function safeSub(uint256 x, uint256 y) internal pure returns (uint256) {
assert(y <= x);
uint256 z = x - y;
return z;
}
/**
* @dev Adds two numbers, reverts on overflow.
*... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | max | function max(uint256 x, uint256 y) internal pure returns (uint256) {
uint256 z = x >= y ? x : y;
return z;
}
| /**
* @dev Returns the maximum value of two numbers.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
1655,
1791
]
} | 21,317 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | Ownable | contract Ownable {
address public owner;
address public newOwner;
event OwnershipTransferred(address indexed _from, address indexed _to);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor() public {
owner = msg.... | /**
* @title Ownable contract - base contract with an owner
*/ | NatSpecMultiLine | transferOwnership | function transferOwnership(address _newOwner) public onlyOwner {
assert(_newOwner != address(0));
newOwner = _newOwner;
}
| /**
* @dev Allows the current owner to transfer control of the contract to a newOwner.
* @param _newOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
652,
795
]
} | 21,318 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | Ownable | contract Ownable {
address public owner;
address public newOwner;
event OwnershipTransferred(address indexed _from, address indexed _to);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor() public {
owner = msg.... | /**
* @title Ownable contract - base contract with an owner
*/ | NatSpecMultiLine | acceptOwnership | function acceptOwnership() public {
if (msg.sender == newOwner) {
emit OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
}
| /**
* @dev Accept transferOwnership.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
849,
1010
]
} | 21,319 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | ERC20Base | contract ERC20Base is ERC20I, SafeMath {
uint256 totalSupply_;
mapping (address => uint256) balances;
mapping (address => mapping (address => uint256)) internal allowed;
uint256 public start = 0; // Must be equal to the date of issue tokens
uint256 public period = 30 days; // By... | /**
* @title Standard ERC20 token + balance on date
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
*/ | NatSpecMultiLine | totalSupply | function totalSupply() public view returns (uint256) {
return totalSupply_;
}
| /**
* @dev Total Supply
* @return totalSupply_
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
897,
985
]
} | 21,320 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | ERC20Base | contract ERC20Base is ERC20I, SafeMath {
uint256 totalSupply_;
mapping (address => uint256) balances;
mapping (address => mapping (address => uint256)) internal allowed;
uint256 public start = 0; // Must be equal to the date of issue tokens
uint256 public period = 30 days; // By... | /**
* @title Standard ERC20 token + balance on date
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address _owner) public view returns (uint256) {
return balances[_owner];
}
| /**
* @dev Tokens balance
* @param _owner holder address
* @return balance amount
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
1096,
1200
]
} | 21,321 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | ERC20Base | contract ERC20Base is ERC20I, SafeMath {
uint256 totalSupply_;
mapping (address => uint256) balances;
mapping (address => mapping (address => uint256)) internal allowed;
uint256 public start = 0; // Must be equal to the date of issue tokens
uint256 public period = 30 days; // By... | /**
* @title Standard ERC20 token + balance on date
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address _owner, uint _date) public view returns (uint256) {
require(_date >= start);
uint256 N1 = (_date - start) / period + 1;
uint256 N2 = 1;
if (block.timestamp > start) {
N2 = (block.timestamp - start) / period + 1;
}
require(N2 >= N1);
int256 B = int256(balanc... | /**
* @dev Balance of tokens on date
* @param _owner holder address
* @return balance amount
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
1320,
1814
]
} | 21,322 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | ERC20Base | contract ERC20Base is ERC20I, SafeMath {
uint256 totalSupply_;
mapping (address => uint256) balances;
mapping (address => mapping (address => uint256)) internal allowed;
uint256 public start = 0; // Must be equal to the date of issue tokens
uint256 public period = 30 days; // By... | /**
* @title Standard ERC20 token + balance on date
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
*/ | NatSpecMultiLine | transfer | function transfer(address _to, uint256 _value) public returns (bool success) {
require(_to != address(0));
uint lock = 0;
for (uint k = 0; k < ActiveProposals.length; k++) {
if (ActiveProposals[k].endTime > now) {
if (lock < voted[ActiveProposals[k].propID][msg.sender]) {
lock = voted[Ac... | /**
* @dev Tranfer tokens to address
* @param _to dest address
* @param _value tokens amount
* @return transfer result
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
1963,
3024
]
} | 21,323 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | ERC20Base | contract ERC20Base is ERC20I, SafeMath {
uint256 totalSupply_;
mapping (address => uint256) balances;
mapping (address => mapping (address => uint256)) internal allowed;
uint256 public start = 0; // Must be equal to the date of issue tokens
uint256 public period = 30 days; // By... | /**
* @title Standard ERC20 token + balance on date
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
*/ | NatSpecMultiLine | allowance | function allowance(address _owner, address _spender) public view returns (uint256) {
return allowed[_owner][_spender];
}
| /**
* @dev Token allowance
* @param _owner holder address
* @param _spender spender address
* @return remain amount
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
3170,
3301
]
} | 21,324 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | ERC20Base | contract ERC20Base is ERC20I, SafeMath {
uint256 totalSupply_;
mapping (address => uint256) balances;
mapping (address => mapping (address => uint256)) internal allowed;
uint256 public start = 0; // Must be equal to the date of issue tokens
uint256 public period = 30 days; // By... | /**
* @title Standard ERC20 token + balance on date
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
*/ | NatSpecMultiLine | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
require(_to != address(0));
uint lock = 0;
for (uint k = 0; k < ActiveProposals.length; k++) {
if (ActiveProposals[k].endTime > now) {
if (lock < voted[ActiveProposals[k].propID][_from]) {
l... | /**
* @dev Transfer tokens from one address to another
* @param _from source address
* @param _to dest address
* @param _value tokens amount
* @return transfer result
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
3505,
4687
]
} | 21,325 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | ERC20Base | contract ERC20Base is ERC20I, SafeMath {
uint256 totalSupply_;
mapping (address => uint256) balances;
mapping (address => mapping (address => uint256)) internal allowed;
uint256 public start = 0; // Must be equal to the date of issue tokens
uint256 public period = 30 days; // By... | /**
* @title Standard ERC20 token + balance on date
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
*/ | NatSpecMultiLine | approve | function approve(address _spender, uint256 _value) public returns (bool success) {
require((_value == 0) || (allowed[msg.sender][_spender] == 0));
allowed[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
}
| /**
* @dev Approve transfer
* @param _spender holder address
* @param _value tokens amount
* @return result
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
4829,
5107
]
} | 21,326 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | ERC20Base | contract ERC20Base is ERC20I, SafeMath {
uint256 totalSupply_;
mapping (address => uint256) balances;
mapping (address => mapping (address => uint256)) internal allowed;
uint256 public start = 0; // Must be equal to the date of issue tokens
uint256 public period = 30 days; // By... | /**
* @title Standard ERC20 token + balance on date
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
*/ | NatSpecMultiLine | trim | function trim(uint offset, uint limit) external returns (bool) {
uint k = offset;
uint ln = limit;
while (k < ln) {
if (balances[owners[k]] == 0) {
ownersIndex[owners[k]] = false;
owners[k] = owners[owners.length-1];
owners.length = owners.length-1;
ln--;
} else {
... | /**
* @dev Trim owners with zero balance
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
5166,
5553
]
} | 21,327 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | ERC20Base | contract ERC20Base is ERC20I, SafeMath {
uint256 totalSupply_;
mapping (address => uint256) balances;
mapping (address => mapping (address => uint256)) internal allowed;
uint256 public start = 0; // Must be equal to the date of issue tokens
uint256 public period = 30 days; // By... | /**
* @title Standard ERC20 token + balance on date
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
*/ | NatSpecMultiLine | getOwnersCount | function getOwnersCount() external view returns (uint256 count) {
return owners.length;
}
| // current number of shareholders (owners) | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
5602,
5702
]
} | 21,328 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | ERC20Base | contract ERC20Base is ERC20I, SafeMath {
uint256 totalSupply_;
mapping (address => uint256) balances;
mapping (address => mapping (address => uint256)) internal allowed;
uint256 public start = 0; // Must be equal to the date of issue tokens
uint256 public period = 30 days; // By... | /**
* @title Standard ERC20 token + balance on date
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
*/ | NatSpecMultiLine | getCurrentPeriod | function getCurrentPeriod() external view returns (uint256 N) {
if (block.timestamp > start) {
return (block.timestamp - start) / period;
} else {
return 0;
}
}
| // current period | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
5726,
5921
]
} | 21,329 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | Dividends | contract Dividends is ERC20Base, Ownable {
DAppDEXI public DEX;
address[] public tokens;
mapping (address => uint) public tokensIndex;
mapping (uint => mapping (address => uint)) public dividends;
mapping (address => mapping (address => uint)) public ownersbal;
mapping (uint => mapping (addr... | /**
* @title Dividend Distribution Contract for DAO
*/ | NatSpecMultiLine | TakeProfit | function TakeProfit(uint offset, uint limit) external {
require (limit <= tokens.length);
require (offset < limit);
uint N = (block.timestamp - start) / period;
require (N > 0);
for (uint k = offset; k < limit; k++) {
if(dividends[N][tokens[k]] == 0 ) {
uint amount = DEX.balan... | // Take profit for dividends from DEX contract | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
1025,
1652
]
} | 21,330 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | Dividends | contract Dividends is ERC20Base, Ownable {
DAppDEXI public DEX;
address[] public tokens;
mapping (address => uint) public tokensIndex;
mapping (uint => mapping (address => uint)) public dividends;
mapping (address => mapping (address => uint)) public ownersbal;
mapping (uint => mapping (addr... | /**
* @title Dividend Distribution Contract for DAO
*/ | NatSpecMultiLine | PayDividends | function PayDividends(address token, uint offset, uint limit) external {
//require (address(this).balance > 0);
require (limit <= owners.length);
require (offset < limit);
uint N = (block.timestamp - start) / period; // current - 1
uint date = start + N * period - 1;
require(dividends[N][token... | // PayDividends to owners | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
1769,
2763
]
} | 21,331 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | Dividends | contract Dividends is ERC20Base, Ownable {
DAppDEXI public DEX;
address[] public tokens;
mapping (address => uint) public tokensIndex;
mapping (uint => mapping (address => uint)) public dividends;
mapping (address => mapping (address => uint)) public ownersbal;
mapping (uint => mapping (addr... | /**
* @title Dividend Distribution Contract for DAO
*/ | NatSpecMultiLine | PayDividends | function PayDividends(address token) external {
//require (address(this).balance > 0);
uint N = (block.timestamp - start) / period; // current - 1
uint date = start + N * period - 1;
require(dividends[N][token] > 0);
if (!AlreadyReceived[N][token][msg.sender]) {
uint share = safeMul(... | // PayDividends individuals to msg.sender | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
2811,
3625
]
} | 21,332 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | Dividends | contract Dividends is ERC20Base, Ownable {
DAppDEXI public DEX;
address[] public tokens;
mapping (address => uint) public tokensIndex;
mapping (uint => mapping (address => uint)) public dividends;
mapping (address => mapping (address => uint)) public ownersbal;
mapping (uint => mapping (addr... | /**
* @title Dividend Distribution Contract for DAO
*/ | NatSpecMultiLine | withdraw | function withdraw(address token, uint _value) external {
require(ownersbal[msg.sender][token] >= _value);
ownersbal[msg.sender][token] = safeSub(ownersbal[msg.sender][token], _value);
if (token == address(0)) {
msg.sender.transfer(_value);
} else {
ERC20I(token).transfer(msg.sender, _value);
... | // withdraw dividends | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
3653,
3998
]
} | 21,333 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | Dividends | contract Dividends is ERC20Base, Ownable {
DAppDEXI public DEX;
address[] public tokens;
mapping (address => uint) public tokensIndex;
mapping (uint => mapping (address => uint)) public dividends;
mapping (address => mapping (address => uint)) public ownersbal;
mapping (uint => mapping (addr... | /**
* @title Dividend Distribution Contract for DAO
*/ | NatSpecMultiLine | withdraw | function withdraw(address token, uint _value, address _receiver) external {
require(ownersbal[msg.sender][token] >= _value);
ownersbal[msg.sender][token] = safeSub(ownersbal[msg.sender][token], _value);
if (token == address(0)) {
_receiver.transfer(_value);
} else {
ERC20I(token).transfer(_rec... | // withdraw dividends to address | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
4039,
4405
]
} | 21,334 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | Dividends | contract Dividends is ERC20Base, Ownable {
DAppDEXI public DEX;
address[] public tokens;
mapping (address => uint) public tokensIndex;
mapping (uint => mapping (address => uint)) public dividends;
mapping (address => mapping (address => uint)) public ownersbal;
mapping (uint => mapping (addr... | /**
* @title Dividend Distribution Contract for DAO
*/ | NatSpecMultiLine | setDEXContract | function setDEXContract(address _contract) external onlyOwner {
DEX = DAppDEXI(_contract);
emit setDEXContractEvent(_contract);
}
| // link to DEX contract | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
4649,
4794
]
} | 21,335 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | DAO | contract DAO is Dividends {
//minimum balance for adding proposal - default 10000 tokens
uint minBalance = 1000000000000;
// minimum quorum - number of votes must be more than minimum quorum
uint public minimumQuorum;
// debating period duration
uint public debatingPeriodDuration;
... | /**
* @title Decentralized Autonomous Organization
*/ | NatSpecMultiLine | changeVotingRules | function changeVotingRules(
uint _minimumQuorum,
uint _debatingPeriodDuration,
uint _requisiteMajority
) onlyOwner public {
minimumQuorum = _minimumQuorum;
debatingPeriodDuration = _debatingPeriodDuration;
requisiteMajority = _requisiteMajority;
emit ChangeOfRules(minimumQuorum, de... | /**
* Change voting rules
*
* Make so that Proposals need to be discussed for at least `_debatingPeriodDuration/60` hours,
* have at least `_minimumQuorum` votes, and have 50% + `_requisiteMajority` votes to be executed
*
* @param _minimumQuorum how many members must vote on a proposal for it to be executed... | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
2623,
3028
]
} | 21,336 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | DAO | contract DAO is Dividends {
//minimum balance for adding proposal - default 10000 tokens
uint minBalance = 1000000000000;
// minimum quorum - number of votes must be more than minimum quorum
uint public minimumQuorum;
// debating period duration
uint public debatingPeriodDuration;
... | /**
* @title Decentralized Autonomous Organization
*/ | NatSpecMultiLine | addProposal | function addProposal(address _recipient, uint _amount, string _desc, string _fullDescHash, bytes _transactionByteCode, uint _debatingPeriodDuration) onlyMembers public returns (uint) {
require(balances[msg.sender] > minBalance);
if (_debatingPeriodDuration == 0) {
_debatingPeriodDuration = debating... | /**
* Add Proposal
*
* Propose to send `_amount / 1e18` ether to `_recipient` for `_desc`. `_transactionByteCode ? Contains : Does not contain` code.
*
* @param _recipient who to send the ether to
* @param _amount amount of ether to send, in wei
* @param _desc Description of job
* @param _fullDescHash H... | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
3488,
4685
]
} | 21,337 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | DAO | contract DAO is Dividends {
//minimum balance for adding proposal - default 10000 tokens
uint minBalance = 1000000000000;
// minimum quorum - number of votes must be more than minimum quorum
uint public minimumQuorum;
// debating period duration
uint public debatingPeriodDuration;
... | /**
* @title Decentralized Autonomous Organization
*/ | NatSpecMultiLine | checkProposalCode | function checkProposalCode(uint _proposalID, address _recipient, uint _amount, bytes _transactionByteCode) view public returns (bool) {
require(Proposals[_proposalID].recipient == _recipient);
require(Proposals[_proposalID].amount == _amount);
// compare ByteCode
return Proposals[_proposalID... | /**
* Check if a proposal code matches
*
* @param _proposalID number of the proposal to query
* @param _recipient who to send the ether to
* @param _amount amount of ether to send
* @param _transactionByteCode bytecode of transaction
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
4972,
5412
]
} | 21,338 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | DAO | contract DAO is Dividends {
//minimum balance for adding proposal - default 10000 tokens
uint minBalance = 1000000000000;
// minimum quorum - number of votes must be more than minimum quorum
uint public minimumQuorum;
// debating period duration
uint public debatingPeriodDuration;
... | /**
* @title Decentralized Autonomous Organization
*/ | NatSpecMultiLine | vote | function vote(uint _proposalID, bool _supportsProposal, string _justificationText) onlyMembers public returns (uint) {
// Get the proposal
_Proposal storage p = Proposals[_proposalID];
require(now <= p.endTimeOfVoting);
// get numbers of votes for msg.sender
uint votes = safeSub(balances[msg... | /**
* Log a vote for a proposal
*
* Vote `supportsProposal? in support of : against` proposal #`proposalID`
*
* @param _proposalID number of proposal
* @param _supportsProposal either in favor or against it
* @param _justificationText optional justification text
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
5734,
6653
]
} | 21,339 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | DAO | contract DAO is Dividends {
//minimum balance for adding proposal - default 10000 tokens
uint minBalance = 1000000000000;
// minimum quorum - number of votes must be more than minimum quorum
uint public minimumQuorum;
// debating period duration
uint public debatingPeriodDuration;
... | /**
* @title Decentralized Autonomous Organization
*/ | NatSpecMultiLine | executeProposal | function executeProposal(uint _proposalID, bytes _transactionByteCode) public {
// Get the proposal
_Proposal storage p = Proposals[_proposalID];
require(now > p.endTimeOfVoting // If it is past the voting deadline
&& !p.exe... | /**
* Finish vote
*
* Count the votes proposal #`_proposalID` and execute it if approved
*
* @param _proposalID proposal number
* @param _transactionByteCode optional: if the transaction contained a bytecode, you need to send it
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
6935,
8336
]
} | 21,340 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | DAO | contract DAO is Dividends {
//minimum balance for adding proposal - default 10000 tokens
uint minBalance = 1000000000000;
// minimum quorum - number of votes must be more than minimum quorum
uint public minimumQuorum;
// debating period duration
uint public debatingPeriodDuration;
... | /**
* @title Decentralized Autonomous Organization
*/ | NatSpecMultiLine | delActiveProposal | function delActiveProposal(uint _proposalID) public onlyOwner {
// delete proposal from active list
super.delProposal(_proposalID);
}
| // function is needed if execution transactionByteCode in Proposal failed | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
8418,
8582
]
} | 21,341 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | DAO | contract DAO is Dividends {
//minimum balance for adding proposal - default 10000 tokens
uint minBalance = 1000000000000;
// minimum quorum - number of votes must be more than minimum quorum
uint public minimumQuorum;
// debating period duration
uint public debatingPeriodDuration;
... | /**
* @title Decentralized Autonomous Organization
*/ | NatSpecMultiLine | transferOwnership | function transferOwnership(address _contract, address _newOwner) public onlyOwner {
CommonI(_contract).transferOwnership(_newOwner);
}
| /**
* @dev Allows the DAO to transfer control of the _contract to a _newOwner.
* @param _newOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
8744,
8897
]
} | 21,342 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | DAO | contract DAO is Dividends {
//minimum balance for adding proposal - default 10000 tokens
uint minBalance = 1000000000000;
// minimum quorum - number of votes must be more than minimum quorum
uint public minimumQuorum;
// debating period duration
uint public debatingPeriodDuration;
... | /**
* @title Decentralized Autonomous Organization
*/ | NatSpecMultiLine | acceptOwnership | function acceptOwnership(address _contract) public onlyOwner {
CommonI(_contract).acceptOwnership();
}
| /**
* @dev Accept transferOwnership on a this (DAO) contract
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
8981,
9110
]
} | 21,343 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | DAO | contract DAO is Dividends {
//minimum balance for adding proposal - default 10000 tokens
uint minBalance = 1000000000000;
// minimum quorum - number of votes must be more than minimum quorum
uint public minimumQuorum;
// debating period duration
uint public debatingPeriodDuration;
... | /**
* @title Decentralized Autonomous Organization
*/ | NatSpecMultiLine | setMinBalance | function setMinBalance(uint _minBalance) public onlyOwner {
assert(_minBalance > 0);
minBalance = _minBalance;
}
| /**
* Set minimum balance for adding proposal
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
9346,
9486
]
} | 21,344 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | SDAD | contract SDAD is SDADI, DAO {
uint public initialSupply = 10 * 10**6; // 10 million tokens
uint public decimals = 8;
string public name;
string public symbol;
/** Name and symbol were updated. */
event UpdatedTokenInformation(string _name, string _symbol);
/** Period were updated. */
ev... | /**
* @title SDAD - ERC20 Token based on ERC20Base, DAO, Dividends smart contracts
*/ | NatSpecMultiLine | setTokenInformation | function setTokenInformation(string _name, string _symbol) public onlyOwner {
name = _name;
symbol = _symbol;
emit UpdatedTokenInformation(_name, _symbol);
}
| /**
* Owner can update token information here.
*
* It is often useful to conceal the actual token association, until
* the token operations, like central issuance or reissuance have been completed.
*
* This function allows the token owner to rename the token after the operations
* have been completed and ... | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
1574,
1752
]
} | 21,345 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | SDAD | contract SDAD is SDADI, DAO {
uint public initialSupply = 10 * 10**6; // 10 million tokens
uint public decimals = 8;
string public name;
string public symbol;
/** Name and symbol were updated. */
event UpdatedTokenInformation(string _name, string _symbol);
/** Period were updated. */
ev... | /**
* @title SDAD - ERC20 Token based on ERC20Base, DAO, Dividends smart contracts
*/ | NatSpecMultiLine | setPeriod | function setPeriod(uint _period) public onlyOwner {
period = _period;
emit UpdatedPeriod(_period);
}
| /**
* Owner can change period
*
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
1802,
1922
]
} | 21,346 | |
SDAD | SDAD.sol | 0x9a156f934c3542ef6a4443ce9a91d2d768fc01c1 | Solidity | SDAD | contract SDAD is SDADI, DAO {
uint public initialSupply = 10 * 10**6; // 10 million tokens
uint public decimals = 8;
string public name;
string public symbol;
/** Name and symbol were updated. */
event UpdatedTokenInformation(string _name, string _symbol);
/** Period were updated. */
ev... | /**
* @title SDAD - ERC20 Token based on ERC20Base, DAO, Dividends smart contracts
*/ | NatSpecMultiLine | setOwnerToSelf | function setOwnerToSelf() public onlyOwner {
owner = address(this);
emit OwnershipTransferred(msg.sender, address(this));
}
| /**
* set owner to self
*
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://10a87ac3667e474b22b44578111219c7bb333004bc6ae47b42b9327196b59763 | {
"func_code_index": [
1966,
2105
]
} | 21,347 | |
LostAvatars | /contracts/LostAvatars.sol | 0x3ac66dd4e4b270aa684392fe03be79229a833414 | Solidity | LostAvatars | contract LostAvatars is
Ownable,
ERC721Enumerable,
ERC721URIStorage,
ReentrancyGuard
{
using SafeMath for uint256;
// Maximum amounts of mintable tokens
uint256 public constant maxSupply = 10000;
// Address of the royalties recipient
address private _royaltiesReceiver;
// Percent... | /**
* @title Lost Avatars contract
*
*/ | NatSpecMultiLine | royaltiesReceiver | function royaltiesReceiver() external view returns (address) {
return _royaltiesReceiver;
}
| /// @notice Getter function for _royaltiesReceiver
/// @return the address of the royalties recipient | NatSpecSingleLine | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
2668,
2775
]
} | 21,348 | ||
LostAvatars | /contracts/LostAvatars.sol | 0x3ac66dd4e4b270aa684392fe03be79229a833414 | Solidity | LostAvatars | contract LostAvatars is
Ownable,
ERC721Enumerable,
ERC721URIStorage,
ReentrancyGuard
{
using SafeMath for uint256;
// Maximum amounts of mintable tokens
uint256 public constant maxSupply = 10000;
// Address of the royalties recipient
address private _royaltiesReceiver;
// Percent... | /**
* @title Lost Avatars contract
*
*/ | NatSpecMultiLine | setRoyaltiesReceiver | function setRoyaltiesReceiver(address newRoyaltiesReceiver)
external
onlyOwner
{
require(newRoyaltiesReceiver != _royaltiesReceiver); // dev: Same address
_royaltiesReceiver = newRoyaltiesReceiver;
}
| /// @notice Changes the royalties' recipient address (in case rights are
/// transferred for instance)
/// @param newRoyaltiesReceiver - address of the new royalties recipient | NatSpecSingleLine | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
2973,
3216
]
} | 21,349 | ||
LostAvatars | /contracts/LostAvatars.sol | 0x3ac66dd4e4b270aa684392fe03be79229a833414 | Solidity | LostAvatars | contract LostAvatars is
Ownable,
ERC721Enumerable,
ERC721URIStorage,
ReentrancyGuard
{
using SafeMath for uint256;
// Maximum amounts of mintable tokens
uint256 public constant maxSupply = 10000;
// Address of the royalties recipient
address private _royaltiesReceiver;
// Percent... | /**
* @title Lost Avatars contract
*
*/ | NatSpecMultiLine | tokenURI | function tokenURI(uint256 tokenId)
public
view
override(ERC721, ERC721URIStorage)
returns (string memory)
{
return super.tokenURI(tokenId);
}
| /// @notice Returns a token's URI
/// @dev See {IERC721Metadata-tokenURI}.
/// @param tokenId - the id of the token whose URI to return
/// @return a string containing an URI pointing to the token's ressource | NatSpecSingleLine | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
3443,
3636
]
} | 21,350 | ||
LostAvatars | /contracts/LostAvatars.sol | 0x3ac66dd4e4b270aa684392fe03be79229a833414 | Solidity | LostAvatars | contract LostAvatars is
Ownable,
ERC721Enumerable,
ERC721URIStorage,
ReentrancyGuard
{
using SafeMath for uint256;
// Maximum amounts of mintable tokens
uint256 public constant maxSupply = 10000;
// Address of the royalties recipient
address private _royaltiesReceiver;
// Percent... | /**
* @title Lost Avatars contract
*
*/ | NatSpecMultiLine | supportsInterface | function supportsInterface(bytes4 interfaceId)
public
view
override(ERC721, ERC721Enumerable)
returns (bool)
{
return
interfaceId == type(IERC2981).interfaceId ||
super.supportsInterface(interfaceId);
}
| /// @notice Informs callers that this contract supports ERC2981 | NatSpecSingleLine | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
3706,
3984
]
} | 21,351 | ||
LostAvatars | /contracts/LostAvatars.sol | 0x3ac66dd4e4b270aa684392fe03be79229a833414 | Solidity | LostAvatars | contract LostAvatars is
Ownable,
ERC721Enumerable,
ERC721URIStorage,
ReentrancyGuard
{
using SafeMath for uint256;
// Maximum amounts of mintable tokens
uint256 public constant maxSupply = 10000;
// Address of the royalties recipient
address private _royaltiesReceiver;
// Percent... | /**
* @title Lost Avatars contract
*
*/ | NatSpecMultiLine | tokensOfOwner | function tokensOfOwner(address _owner)
external
view
returns (uint256[] memory ownerTokens)
{
uint256 tokenCount = balanceOf(_owner);
uint256[] memory result = new uint256[](tokenCount);
if (tokenCount == 0) {
return new uint256[](0);
} else {
for (uint256 i = 0; i < tokenCo... | /// @notice Returns all the tokens owned by an address
/// @param _owner - the address to query
/// @return ownerTokens - an array containing the ids of all tokens
/// owned by the address | NatSpecSingleLine | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
4199,
4691
]
} | 21,352 | ||
LostAvatars | /contracts/LostAvatars.sol | 0x3ac66dd4e4b270aa684392fe03be79229a833414 | Solidity | LostAvatars | contract LostAvatars is
Ownable,
ERC721Enumerable,
ERC721URIStorage,
ReentrancyGuard
{
using SafeMath for uint256;
// Maximum amounts of mintable tokens
uint256 public constant maxSupply = 10000;
// Address of the royalties recipient
address private _royaltiesReceiver;
// Percent... | /**
* @title Lost Avatars contract
*
*/ | NatSpecMultiLine | royaltyInfo | function royaltyInfo(uint256 tokenId, uint256 _salePrice)
external
view
returns (address receiver, uint256 royaltyAmount)
{
require(
_exists(tokenId),
"ERC2981RoyaltyStandard: Royalty info for nonexistent token."
);
uint256 _royalties = (_salePrice * royaltiesPercentage) / 100;
... | /// @param _salePrice - sale price of the NFT asset specified by _tokenId
/// @return receiver - address of who should be sent the royalty payment
/// @return royaltyAmount - the royalty payment amount for _value sale price | NatSpecSingleLine | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
5039,
5452
]
} | 21,353 | ||
unionfinance | unionfinance.sol | 0x939e5d6a58e34eccb5702cd9783ee4927eab56c5 | 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://b69161e38448513952f17c51a7e6beea0fd231ebe95cd03b6435b14c307a18a9 | {
"func_code_index": [
105,
207
]
} | 21,354 | ||
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | Solidity | IBEP20 | interface IBEP20 {
/**
* @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 ... | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
88,
146
]
} | 21,355 | ||
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | Solidity | IBEP20 | interface IBEP20 {
/**
* @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 ... | decimals | function decimals() external view returns (uint8);
| /**
* @dev Returns the token decimals.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
202,
255
]
} | 21,356 | ||
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | Solidity | IBEP20 | interface IBEP20 {
/**
* @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 ... | symbol | function symbol() external view returns (string memory);
| /**
* @dev Returns the token symbol.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
309,
368
]
} | 21,357 | ||
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | Solidity | IBEP20 | interface IBEP20 {
/**
* @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 ... | name | function name() external view returns (string memory);
| /**
* @dev Returns the token name.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
418,
475
]
} | 21,358 | ||
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | Solidity | IBEP20 | interface IBEP20 {
/**
* @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 ... | getOwner | function getOwner() external view returns (address);
| /**
* @dev Returns the bep token owner.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
532,
587
]
} | 21,359 | ||
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | Solidity | IBEP20 | interface IBEP20 {
/**
* @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 ... | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
664,
735
]
} | 21,360 | ||
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | Solidity | IBEP20 | interface IBEP20 {
/**
* @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 ... | 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 | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
945,
1025
]
} | 21,361 | ||
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | Solidity | IBEP20 | interface IBEP20 {
/**
* @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 ... | 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 | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
1290,
1377
]
} | 21,362 | ||
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | Solidity | IBEP20 | interface IBEP20 {
/**
* @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 ... | 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 | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
2013,
2090
]
} | 21,363 | ||
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | Solidity | IBEP20 | interface IBEP20 {
/**
* @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 ... | 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 | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
2385,
2485
]
} | 21,364 | ||
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | 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 | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
233,
403
]
} | 21,365 |
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | 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 | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
655,
788
]
} | 21,366 |
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | 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 | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
1060,
1241
]
} | 21,367 |
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | 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 | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
1469,
1903
]
} | 21,368 |
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | 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 | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
2344,
2473
]
} | 21,369 |
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | 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 | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
2934,
3260
]
} | 21,370 |
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | 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 | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
3690,
3817
]
} | 21,371 |
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | 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 | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
4267,
4426
]
} | 21,372 |
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | 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 | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
465,
541
]
} | 21,373 |
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | 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 | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
1067,
1200
]
} | 21,374 |
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | 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 | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
1342,
1448
]
} | 21,375 |
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | 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 | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
1543,
1761
]
} | 21,376 |
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | Solidity | AdworldCoin | contract AdworldCoin is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 public _decimals;
string public _symbol;
string public _nam... | getOwner | function getOwner() external view returns (address) {
return owner();
}
| /**
* @dev Returns the bep token owner.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
527,
609
]
} | 21,377 | ||
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | Solidity | AdworldCoin | contract AdworldCoin is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 public _decimals;
string public _symbol;
string public _nam... | decimals | function decimals() external view returns (uint8) {
return _decimals;
}
| /**
* @dev Returns the token decimals.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
665,
747
]
} | 21,378 | ||
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | Solidity | AdworldCoin | contract AdworldCoin is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 public _decimals;
string public _symbol;
string public _nam... | symbol | function symbol() external view returns (string memory) {
return _symbol;
}
| /**
* @dev Returns the token symbol.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
801,
887
]
} | 21,379 | ||
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | Solidity | AdworldCoin | contract AdworldCoin is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 public _decimals;
string public _symbol;
string public _nam... | name | function name() external view returns (string memory) {
return _name;
}
| /**
* @dev Returns the token name.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
937,
1019
]
} | 21,380 | ||
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | Solidity | AdworldCoin | contract AdworldCoin is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 public _decimals;
string public _symbol;
string public _nam... | totalSupply | function totalSupply() external view returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {BEP20-totalSupply}.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
1072,
1162
]
} | 21,381 | ||
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | Solidity | AdworldCoin | contract AdworldCoin is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 public _decimals;
string public _symbol;
string public _nam... | balanceOf | function balanceOf(address account) external view returns (uint256) {
return _balances[account];
}
| /**
* @dev See {BEP20-balanceOf}.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
1213,
1322
]
} | 21,382 | ||
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | Solidity | AdworldCoin | contract AdworldCoin is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 public _decimals;
string public _symbol;
string public _nam... | transfer | function transfer(address recipient, uint256 amount) external returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
| /**
* @dev See {BEP20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
1513,
1666
]
} | 21,383 | ||
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | Solidity | AdworldCoin | contract AdworldCoin is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 public _decimals;
string public _symbol;
string public _nam... | allowance | function allowance(address owner, address spender) external view returns (uint256) {
return _allowances[owner][spender];
}
| /**
* @dev See {BEP20-allowance}.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
1717,
1850
]
} | 21,384 | ||
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | Solidity | AdworldCoin | contract AdworldCoin is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 public _decimals;
string public _symbol;
string public _nam... | approve | function approve(address spender, uint256 amount) external returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
| /**
* @dev See {BEP20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
1977,
2124
]
} | 21,385 | ||
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | Solidity | AdworldCoin | contract AdworldCoin is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 public _decimals;
string public _symbol;
string public _nam... | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "BEP20: transfer amount exceeds allowance"));
return true;
}
| /**
* @dev See {BEP20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {BEP20};
*
* Requirements:
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amoun... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
2566,
2861
]
} | 21,386 | ||
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | Solidity | AdworldCoin | contract AdworldCoin is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 public _decimals;
string public _symbol;
string public _nam... | 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 {BEP20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` ca... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
3240,
3443
]
} | 21,387 | ||
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | Solidity | AdworldCoin | contract AdworldCoin is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 public _decimals;
string public _symbol;
string public _nam... | decreaseAllowance | function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "BEP20: 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 {BEP20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` ca... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
3912,
4166
]
} | 21,388 | ||
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | Solidity | AdworldCoin | contract AdworldCoin is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 public _decimals;
string public _symbol;
string public _nam... | burn | function burn(uint256 amount) public returns (bool) {
_burn(_msgSender(), amount);
return true;
}
| /**
* @dev Burn `amount` tokens and decreasing the total supply.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
4252,
4365
]
} | 21,389 | ||
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | Solidity | AdworldCoin | contract AdworldCoin is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 public _decimals;
string public _symbol;
string public _nam... | _transfer | function _transfer(address sender, address recipient, uint256 amount) internal {
require(sender != address(0), "BEP20: transfer from the zero address");
require(recipient != address(0), "BEP20: transfer to the zero address");
_balances[sender] = _balances[sender].sub(amount, "BEP20: 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 | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
4822,
5274
]
} | 21,390 | ||
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | Solidity | AdworldCoin | contract AdworldCoin is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 public _decimals;
string public _symbol;
string public _nam... | _mint | function _mint(address account, uint256 amount) internal {
require(account != address(0), "BEP20: 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 | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
5532,
5825
]
} | 21,391 | ||
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | Solidity | AdworldCoin | contract AdworldCoin is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 public _decimals;
string public _symbol;
string public _nam... | _burn | function _burn(address account, uint256 amount) internal {
require(account != address(0), "BEP20: burn from the zero address");
_balances[account] = _balances[account].sub(amount, "BEP20: 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 | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
6130,
6463
]
} | 21,392 | ||
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | Solidity | AdworldCoin | contract AdworldCoin is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 public _decimals;
string public _symbol;
string public _nam... | _approve | function _approve(address owner, address spender, uint256 amount) internal {
require(owner != address(0), "BEP20: approve from the zero address");
require(spender != address(0), "BEP20: 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 | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
6872,
7195
]
} | 21,393 | ||
AdworldCoin | AdworldCoin.sol | 0x643eaea7bb875401594d9296a380d17794ed52bc | Solidity | AdworldCoin | contract AdworldCoin is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 public _decimals;
string public _symbol;
string public _nam... | _burnFrom | function _burnFrom(address account, uint256 amount) internal {
_burn(account, amount);
_approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "BEP20: 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 | MIT | bzzr://b435b73478ab151fe3f165b4d721a6c83e8600219190fa408b4565481d3860a0 | {
"func_code_index": [
7364,
7589
]
} | 21,394 | ||
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | Solidity | Ownable | abstract 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() {
_setOwner(_msgSender());
... | /**
* @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 virtual returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
399,
491
]
} | 21,395 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | Solidity | Ownable | abstract 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() {
_setOwner(_msgSender());
... | /**
* @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 virtual onlyOwner {
_setOwner(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.8.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
1050,
1149
]
} | 21,396 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | Solidity | Ownable | abstract 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() {
_setOwner(_msgSender());
... | /**
* @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 virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_setOwner(newOwner);
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
1299,
1496
]
} | 21,397 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | Solidity | IERC165 | interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This f... | /**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/ | NatSpecMultiLine | supportsInterface | function supportsInterface(bytes4 interfaceId) external view returns (bool);
| /**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
374,
455
]
} | 21,398 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | Solidity | ERC165 | abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
} | /**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interface... | NatSpecMultiLine | supportsInterface | function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
| /**
* @dev See {IERC165-supportsInterface}.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
103,
265
]
} | 21,399 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.