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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
KySportsTV | KySportsTV.sol | 0x705ad6e3115607759a076cf1f67b30fc07460863 | 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);
/**... | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.8.1+commit.df193b15 | None | ipfs://f84a56c0b96bab5bf543b3f692cb2bd57a0e6c2a7e2614bf498f0e1e8f9540e5 | {
"func_code_index": [
237,
310
]
} | 6,100 | ||
KySportsTV | KySportsTV.sol | 0x705ad6e3115607759a076cf1f67b30fc07460863 | 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);
/**... | 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.1+commit.df193b15 | None | ipfs://f84a56c0b96bab5bf543b3f692cb2bd57a0e6c2a7e2614bf498f0e1e8f9540e5 | {
"func_code_index": [
534,
616
]
} | 6,101 | ||
KySportsTV | KySportsTV.sol | 0x705ad6e3115607759a076cf1f67b30fc07460863 | 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);
/**... | 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.1+commit.df193b15 | None | ipfs://f84a56c0b96bab5bf543b3f692cb2bd57a0e6c2a7e2614bf498f0e1e8f9540e5 | {
"func_code_index": [
895,
983
]
} | 6,102 | ||
KySportsTV | KySportsTV.sol | 0x705ad6e3115607759a076cf1f67b30fc07460863 | 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);
/**... | 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.1+commit.df193b15 | None | ipfs://f84a56c0b96bab5bf543b3f692cb2bd57a0e6c2a7e2614bf498f0e1e8f9540e5 | {
"func_code_index": [
1647,
1726
]
} | 6,103 | ||
KySportsTV | KySportsTV.sol | 0x705ad6e3115607759a076cf1f67b30fc07460863 | 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);
/**... | 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.1+commit.df193b15 | None | ipfs://f84a56c0b96bab5bf543b3f692cb2bd57a0e6c2a7e2614bf498f0e1e8f9540e5 | {
"func_code_index": [
2039,
2175
]
} | 6,104 | ||
KySportsTV | KySportsTV.sol | 0x705ad6e3115607759a076cf1f67b30fc07460863 | Solidity | IERC20Metadata | interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns t... | name | function name() external view returns (string memory);
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.8.1+commit.df193b15 | None | ipfs://f84a56c0b96bab5bf543b3f692cb2bd57a0e6c2a7e2614bf498f0e1e8f9540e5 | {
"func_code_index": [
100,
159
]
} | 6,105 | ||
KySportsTV | KySportsTV.sol | 0x705ad6e3115607759a076cf1f67b30fc07460863 | Solidity | IERC20Metadata | interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns t... | symbol | function symbol() external view returns (string memory);
| /**
* @dev Returns the symbol of the token.
*/ | NatSpecMultiLine | v0.8.1+commit.df193b15 | None | ipfs://f84a56c0b96bab5bf543b3f692cb2bd57a0e6c2a7e2614bf498f0e1e8f9540e5 | {
"func_code_index": [
226,
287
]
} | 6,106 | ||
KySportsTV | KySportsTV.sol | 0x705ad6e3115607759a076cf1f67b30fc07460863 | Solidity | IERC20Metadata | interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns t... | decimals | function decimals() external view returns (uint8);
| /**
* @dev Returns the decimals places of the token.
*/ | NatSpecMultiLine | v0.8.1+commit.df193b15 | None | ipfs://f84a56c0b96bab5bf543b3f692cb2bd57a0e6c2a7e2614bf498f0e1e8f9540e5 | {
"func_code_index": [
363,
418
]
} | 6,107 | ||
KySportsTV | KySportsTV.sol | 0x705ad6e3115607759a076cf1f67b30fc07460863 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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 | name | function name() public view virtual override returns (string memory) {
return _name;
}
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.8.1+commit.df193b15 | None | ipfs://f84a56c0b96bab5bf543b3f692cb2bd57a0e6c2a7e2614bf498f0e1e8f9540e5 | {
"func_code_index": [
776,
881
]
} | 6,108 |
KySportsTV | KySportsTV.sol | 0x705ad6e3115607759a076cf1f67b30fc07460863 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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 | symbol | function symbol() public view virtual override returns (string memory) {
return _symbol;
}
| /**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/ | NatSpecMultiLine | v0.8.1+commit.df193b15 | None | ipfs://f84a56c0b96bab5bf543b3f692cb2bd57a0e6c2a7e2614bf498f0e1e8f9540e5 | {
"func_code_index": [
995,
1104
]
} | 6,109 |
KySportsTV | KySportsTV.sol | 0x705ad6e3115607759a076cf1f67b30fc07460863 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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 virtual override returns (uint8) {
return 18;
}
| /**
* @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.8.1+commit.df193b15 | None | ipfs://f84a56c0b96bab5bf543b3f692cb2bd57a0e6c2a7e2614bf498f0e1e8f9540e5 | {
"func_code_index": [
1738,
1836
]
} | 6,110 |
KySportsTV | KySportsTV.sol | 0x705ad6e3115607759a076cf1f67b30fc07460863 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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 virtual override returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {IERC20-totalSupply}.
*/ | NatSpecMultiLine | v0.8.1+commit.df193b15 | None | ipfs://f84a56c0b96bab5bf543b3f692cb2bd57a0e6c2a7e2614bf498f0e1e8f9540e5 | {
"func_code_index": [
1896,
2009
]
} | 6,111 |
KySportsTV | KySportsTV.sol | 0x705ad6e3115607759a076cf1f67b30fc07460863 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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 virtual override returns (uint256) {
return _balances[account];
}
| /**
* @dev See {IERC20-balanceOf}.
*/ | NatSpecMultiLine | v0.8.1+commit.df193b15 | None | ipfs://f84a56c0b96bab5bf543b3f692cb2bd57a0e6c2a7e2614bf498f0e1e8f9540e5 | {
"func_code_index": [
2067,
2199
]
} | 6,112 |
KySportsTV | KySportsTV.sol | 0x705ad6e3115607759a076cf1f67b30fc07460863 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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) {
_transfer(_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.8.1+commit.df193b15 | None | ipfs://f84a56c0b96bab5bf543b3f692cb2bd57a0e6c2a7e2614bf498f0e1e8f9540e5 | {
"func_code_index": [
2407,
2587
]
} | 6,113 |
KySportsTV | KySportsTV.sol | 0x705ad6e3115607759a076cf1f67b30fc07460863 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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.8.1+commit.df193b15 | None | ipfs://f84a56c0b96bab5bf543b3f692cb2bd57a0e6c2a7e2614bf498f0e1e8f9540e5 | {
"func_code_index": [
2645,
2801
]
} | 6,114 |
KySportsTV | KySportsTV.sol | 0x705ad6e3115607759a076cf1f67b30fc07460863 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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.8.1+commit.df193b15 | None | ipfs://f84a56c0b96bab5bf543b3f692cb2bd57a0e6c2a7e2614bf498f0e1e8f9540e5 | {
"func_code_index": [
2943,
3117
]
} | 6,115 |
KySportsTV | KySportsTV.sol | 0x705ad6e3115607759a076cf1f67b30fc07460863 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds all... | /**
* @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 `... | NatSpecMultiLine | v0.8.1+commit.df193b15 | None | ipfs://f84a56c0b96bab5bf543b3f692cb2bd57a0e6c2a7e2614bf498f0e1e8f9540e5 | {
"func_code_index": [
3594,
4091
]
} | 6,116 |
KySportsTV | KySportsTV.sol | 0x705ad6e3115607759a076cf1f67b30fc07460863 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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 spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
return true;
}
| /**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` c... | NatSpecMultiLine | v0.8.1+commit.df193b15 | None | ipfs://f84a56c0b96bab5bf543b3f692cb2bd57a0e6c2a7e2614bf498f0e1e8f9540e5 | {
"func_code_index": [
4495,
4715
]
} | 6,117 |
KySportsTV | KySportsTV.sol | 0x705ad6e3115607759a076cf1f67b30fc07460863 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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 spender, uint256 subtractedValue) public virtual returns (bool) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(_msgSender(), spender, c... | /**
* @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.8.1+commit.df193b15 | None | ipfs://f84a56c0b96bab5bf543b3f692cb2bd57a0e6c2a7e2614bf498f0e1e8f9540e5 | {
"func_code_index": [
5213,
5631
]
} | 6,118 |
KySportsTV | KySportsTV.sol | 0x705ad6e3115607759a076cf1f67b30fc07460863 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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);
... | /**
* @dev Moves `amount` of tokens from `sender` to `recipient`.
*
* This 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.8.1+commit.df193b15 | None | ipfs://f84a56c0b96bab5bf543b3f692cb2bd57a0e6c2a7e2614bf498f0e1e8f9540e5 | {
"func_code_index": [
6116,
6854
]
} | 6,119 |
KySportsTV | KySportsTV.sol | 0x705ad6e3115607759a076cf1f67b30fc07460863 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
_balances[account] += 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:
*
* - `account` cannot be the zero address.
*/ | NatSpecMultiLine | v0.8.1+commit.df193b15 | None | ipfs://f84a56c0b96bab5bf543b3f692cb2bd57a0e6c2a7e2614bf498f0e1e8f9540e5 | {
"func_code_index": [
7136,
7540
]
} | 6,120 |
KySportsTV | KySportsTV.sol | 0x705ad6e3115607759a076cf1f67b30fc07460863 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds ba... | /**
* @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.8.1+commit.df193b15 | None | ipfs://f84a56c0b96bab5bf543b3f692cb2bd57a0e6c2a7e2614bf498f0e1e8f9540e5 | {
"func_code_index": [
7868,
8464
]
} | 6,121 |
KySportsTV | KySportsTV.sol | 0x705ad6e3115607759a076cf1f67b30fc07460863 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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(own... | /**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This 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 a... | NatSpecMultiLine | v0.8.1+commit.df193b15 | None | ipfs://f84a56c0b96bab5bf543b3f692cb2bd57a0e6c2a7e2614bf498f0e1e8f9540e5 | {
"func_code_index": [
8897,
9282
]
} | 6,122 |
KySportsTV | KySportsTV.sol | 0x705ad6e3115607759a076cf1f67b30fc07460863 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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 transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - wh... | NatSpecMultiLine | v0.8.1+commit.df193b15 | None | ipfs://f84a56c0b96bab5bf543b3f692cb2bd57a0e6c2a7e2614bf498f0e1e8f9540e5 | {
"func_code_index": [
9877,
10007
]
} | 6,123 |
KySportsTV | KySportsTV.sol | 0x705ad6e3115607759a076cf1f67b30fc07460863 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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 | _afterTokenTransfer | function _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
| /**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - ... | NatSpecMultiLine | v0.8.1+commit.df193b15 | None | ipfs://f84a56c0b96bab5bf543b3f692cb2bd57a0e6c2a7e2614bf498f0e1e8f9540e5 | {
"func_code_index": [
10606,
10735
]
} | 6,124 |
ShopperlyGlobalToken | ShopperlyGlobalToken.sol | 0x1f3fc753663b2afa9e459dd5da5549706eab3e2d | Solidity | ShopperlyGlobalToken | contract ShopperlyGlobalToken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | ShopperlyGlobalToken | function ShopperlyGlobalToken() public {
symbol = "SLGT";
name = "Shopperly Global Token";
decimals = 18;
_totalSupply = 12500000000000000000000000;
balances[0x0bB743ff91E1f1F410A480dE0f67908926c5100E] = _totalSupply;
Transfer(address(0), 0x0bB743ff91E1f1F410A480dE0f67908926c5100E, _totalS... | // ------------------------------------------------------------------------
// Constructor
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://8b5127a31640e12a6fbde6b5ef72ef4a0e96e56566ad1ce0c91779faf97d5f58 | {
"func_code_index": [
467,
830
]
} | 6,125 | |
ShopperlyGlobalToken | ShopperlyGlobalToken.sol | 0x1f3fc753663b2afa9e459dd5da5549706eab3e2d | Solidity | ShopperlyGlobalToken | contract ShopperlyGlobalToken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | totalSupply | function totalSupply() public constant returns (uint) {
return _totalSupply - balances[address(0)];
}
| // ------------------------------------------------------------------------
// Total supply
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://8b5127a31640e12a6fbde6b5ef72ef4a0e96e56566ad1ce0c91779faf97d5f58 | {
"func_code_index": [
1018,
1139
]
} | 6,126 | |
ShopperlyGlobalToken | ShopperlyGlobalToken.sol | 0x1f3fc753663b2afa9e459dd5da5549706eab3e2d | Solidity | ShopperlyGlobalToken | contract ShopperlyGlobalToken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | balanceOf | function balanceOf(address tokenOwner) public constant returns (uint balance) {
return balances[tokenOwner];
}
| // ------------------------------------------------------------------------
// Get the token balance for account tokenOwner
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://8b5127a31640e12a6fbde6b5ef72ef4a0e96e56566ad1ce0c91779faf97d5f58 | {
"func_code_index": [
1359,
1488
]
} | 6,127 | |
ShopperlyGlobalToken | ShopperlyGlobalToken.sol | 0x1f3fc753663b2afa9e459dd5da5549706eab3e2d | Solidity | ShopperlyGlobalToken | contract ShopperlyGlobalToken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transfer | function transfer(address to, uint tokens) public returns (bool success) {
balances[msg.sender] = safeSub(balances[msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
Transfer(msg.sender, to, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Transfer the balance from token owner's account to to account
// - Owner's account must have sufficient balance to transfer
// - 0 value transfers are allowed
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://8b5127a31640e12a6fbde6b5ef72ef4a0e96e56566ad1ce0c91779faf97d5f58 | {
"func_code_index": [
1832,
2109
]
} | 6,128 | |
ShopperlyGlobalToken | ShopperlyGlobalToken.sol | 0x1f3fc753663b2afa9e459dd5da5549706eab3e2d | Solidity | ShopperlyGlobalToken | contract ShopperlyGlobalToken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approve | function approve(address spender, uint tokens) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
Approval(msg.sender, spender, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account
//
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
// recommends that there are no checks for the approval double... | LineComment | v0.4.24+commit.e67f0147 | bzzr://8b5127a31640e12a6fbde6b5ef72ef4a0e96e56566ad1ce0c91779faf97d5f58 | {
"func_code_index": [
2617,
2825
]
} | 6,129 | |
ShopperlyGlobalToken | ShopperlyGlobalToken.sol | 0x1f3fc753663b2afa9e459dd5da5549706eab3e2d | Solidity | ShopperlyGlobalToken | contract ShopperlyGlobalToken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferFrom | function transferFrom(address from, address to, uint tokens) public returns (bool success) {
balances[from] = safeSub(balances[from], tokens);
allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
Transfer(from, to, tokens);
return... | // ------------------------------------------------------------------------
// Transfer tokens from the from account to the to account
//
// The calling account must already have sufficient tokens approve(...)-d
// for spending from the from account and
// - From account must have sufficient balance to transfer
// - S... | LineComment | v0.4.24+commit.e67f0147 | bzzr://8b5127a31640e12a6fbde6b5ef72ef4a0e96e56566ad1ce0c91779faf97d5f58 | {
"func_code_index": [
3356,
3714
]
} | 6,130 | |
ShopperlyGlobalToken | ShopperlyGlobalToken.sol | 0x1f3fc753663b2afa9e459dd5da5549706eab3e2d | Solidity | ShopperlyGlobalToken | contract ShopperlyGlobalToken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | allowance | function allowance(address tokenOwner, address spender) public constant returns (uint remaining) {
return allowed[tokenOwner][spender];
}
| // ------------------------------------------------------------------------
// Returns the amount of tokens approved by the owner that can be
// transferred to the spender's account
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://8b5127a31640e12a6fbde6b5ef72ef4a0e96e56566ad1ce0c91779faf97d5f58 | {
"func_code_index": [
3997,
4153
]
} | 6,131 | |
ShopperlyGlobalToken | ShopperlyGlobalToken.sol | 0x1f3fc753663b2afa9e459dd5da5549706eab3e2d | Solidity | ShopperlyGlobalToken | contract ShopperlyGlobalToken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approveAndCall | function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
Approval(msg.sender, spender, tokens);
ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account. The spender contract function
// receiveApproval(...) is then executed
// --------------------------------------------------------------------... | LineComment | v0.4.24+commit.e67f0147 | bzzr://8b5127a31640e12a6fbde6b5ef72ef4a0e96e56566ad1ce0c91779faf97d5f58 | {
"func_code_index": [
4508,
4825
]
} | 6,132 | |
ShopperlyGlobalToken | ShopperlyGlobalToken.sol | 0x1f3fc753663b2afa9e459dd5da5549706eab3e2d | Solidity | ShopperlyGlobalToken | contract ShopperlyGlobalToken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | function () public payable {
revert();
}
| // ------------------------------------------------------------------------
// Don't accept ETH
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://8b5127a31640e12a6fbde6b5ef72ef4a0e96e56566ad1ce0c91779faf97d5f58 | {
"func_code_index": [
5017,
5076
]
} | 6,133 | ||
ShopperlyGlobalToken | ShopperlyGlobalToken.sol | 0x1f3fc753663b2afa9e459dd5da5549706eab3e2d | Solidity | ShopperlyGlobalToken | contract ShopperlyGlobalToken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferAnyERC20Token | function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) {
return ERC20Interface(tokenAddress).transfer(owner, tokens);
}
| // ------------------------------------------------------------------------
// Owner can transfer out any accidentally sent ERC20 tokens
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://8b5127a31640e12a6fbde6b5ef72ef4a0e96e56566ad1ce0c91779faf97d5f58 | {
"func_code_index": [
5309,
5498
]
} | 6,134 | |
MonfterSOSMinter | MonfterSOSMinter.sol | 0x06a97a1fb2b26fd36f6582ce8bbf87e37c8c86df | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b)
internal
pure
returns (bool, uint256)
{
unchecked {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | tryAdd | function tryAdd(uint256 a, uint256 b)
internal
pure
returns (bool, uint256)
{
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
| /**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://dcb411371065bbbcf6f873b3b836324b4c4ac666291b6cead3134fdd8a305e97 | {
"func_code_index": [
161,
420
]
} | 6,135 |
MonfterSOSMinter | MonfterSOSMinter.sol | 0x06a97a1fb2b26fd36f6582ce8bbf87e37c8c86df | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b)
internal
pure
returns (bool, uint256)
{
unchecked {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | trySub | function trySub(uint256 a, uint256 b)
internal
pure
returns (bool, uint256)
{
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
| /**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://dcb411371065bbbcf6f873b3b836324b4c4ac666291b6cead3134fdd8a305e97 | {
"func_code_index": [
568,
799
]
} | 6,136 |
MonfterSOSMinter | MonfterSOSMinter.sol | 0x06a97a1fb2b26fd36f6582ce8bbf87e37c8c86df | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b)
internal
pure
returns (bool, uint256)
{
unchecked {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | tryMul | function tryMul(uint256 a, uint256 b)
internal
pure
returns (bool, uint256)
{
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contrac... | /**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://dcb411371065bbbcf6f873b3b836324b4c4ac666291b6cead3134fdd8a305e97 | {
"func_code_index": [
949,
1489
]
} | 6,137 |
MonfterSOSMinter | MonfterSOSMinter.sol | 0x06a97a1fb2b26fd36f6582ce8bbf87e37c8c86df | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b)
internal
pure
returns (bool, uint256)
{
unchecked {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | tryDiv | function tryDiv(uint256 a, uint256 b)
internal
pure
returns (bool, uint256)
{
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
| /**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://dcb411371065bbbcf6f873b3b836324b4c4ac666291b6cead3134fdd8a305e97 | {
"func_code_index": [
1640,
1872
]
} | 6,138 |
MonfterSOSMinter | MonfterSOSMinter.sol | 0x06a97a1fb2b26fd36f6582ce8bbf87e37c8c86df | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b)
internal
pure
returns (bool, uint256)
{
unchecked {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | tryMod | function tryMod(uint256 a, uint256 b)
internal
pure
returns (bool, uint256)
{
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
| /**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://dcb411371065bbbcf6f873b3b836324b4c4ac666291b6cead3134fdd8a305e97 | {
"func_code_index": [
2033,
2265
]
} | 6,139 |
MonfterSOSMinter | MonfterSOSMinter.sol | 0x06a97a1fb2b26fd36f6582ce8bbf87e37c8c86df | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b)
internal
pure
returns (bool, uint256)
{
unchecked {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://dcb411371065bbbcf6f873b3b836324b4c4ac666291b6cead3134fdd8a305e97 | {
"func_code_index": [
2507,
2610
]
} | 6,140 |
MonfterSOSMinter | MonfterSOSMinter.sol | 0x06a97a1fb2b26fd36f6582ce8bbf87e37c8c86df | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b)
internal
pure
returns (bool, uint256)
{
unchecked {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://dcb411371065bbbcf6f873b3b836324b4c4ac666291b6cead3134fdd8a305e97 | {
"func_code_index": [
2888,
2991
]
} | 6,141 |
MonfterSOSMinter | MonfterSOSMinter.sol | 0x06a97a1fb2b26fd36f6582ce8bbf87e37c8c86df | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b)
internal
pure
returns (bool, uint256)
{
unchecked {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
| /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://dcb411371065bbbcf6f873b3b836324b4c4ac666291b6cead3134fdd8a305e97 | {
"func_code_index": [
3245,
3348
]
} | 6,142 |
MonfterSOSMinter | MonfterSOSMinter.sol | 0x06a97a1fb2b26fd36f6582ce8bbf87e37c8c86df | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b)
internal
pure
returns (bool, uint256)
{
unchecked {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
| /**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/ | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://dcb411371065bbbcf6f873b3b836324b4c4ac666291b6cead3134fdd8a305e97 | {
"func_code_index": [
3644,
3747
]
} | 6,143 |
MonfterSOSMinter | MonfterSOSMinter.sol | 0x06a97a1fb2b26fd36f6582ce8bbf87e37c8c86df | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b)
internal
pure
returns (bool, uint256)
{
unchecked {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consu... | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://dcb411371065bbbcf6f873b3b836324b4c4ac666291b6cead3134fdd8a305e97 | {
"func_code_index": [
4209,
4312
]
} | 6,144 |
MonfterSOSMinter | MonfterSOSMinter.sol | 0x06a97a1fb2b26fd36f6582ce8bbf87e37c8c86df | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b)
internal
pure
returns (bool, uint256)
{
unchecked {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | sub | function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterp... | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://dcb411371065bbbcf6f873b3b836324b4c4ac666291b6cead3134fdd8a305e97 | {
"func_code_index": [
4786,
5031
]
} | 6,145 |
MonfterSOSMinter | MonfterSOSMinter.sol | 0x06a97a1fb2b26fd36f6582ce8bbf87e37c8c86df | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b)
internal
pure
returns (bool, uint256)
{
unchecked {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | div | function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
| /**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an ... | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://dcb411371065bbbcf6f873b3b836324b4c4ac666291b6cead3134fdd8a305e97 | {
"func_code_index": [
5524,
5768
]
} | 6,146 |
MonfterSOSMinter | MonfterSOSMinter.sol | 0x06a97a1fb2b26fd36f6582ce8bbf87e37c8c86df | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b)
internal
pure
returns (bool, uint256)
{
unchecked {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | mod | function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
... | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://dcb411371065bbbcf6f873b3b836324b4c4ac666291b6cead3134fdd8a305e97 | {
"func_code_index": [
6426,
6670
]
} | 6,147 |
MonfterSOSMinter | MonfterSOSMinter.sol | 0x06a97a1fb2b26fd36f6582ce8bbf87e37c8c86df | 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 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.8+commit.dddeac2f | MIT | ipfs://dcb411371065bbbcf6f873b3b836324b4c4ac666291b6cead3134fdd8a305e97 | {
"func_code_index": [
94,
154
]
} | 6,148 |
MonfterSOSMinter | MonfterSOSMinter.sol | 0x06a97a1fb2b26fd36f6582ce8bbf87e37c8c86df | 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 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.8+commit.dddeac2f | MIT | ipfs://dcb411371065bbbcf6f873b3b836324b4c4ac666291b6cead3134fdd8a305e97 | {
"func_code_index": [
237,
310
]
} | 6,149 |
MonfterSOSMinter | MonfterSOSMinter.sol | 0x06a97a1fb2b26fd36f6582ce8bbf87e37c8c86df | 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 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.8+commit.dddeac2f | MIT | ipfs://dcb411371065bbbcf6f873b3b836324b4c4ac666291b6cead3134fdd8a305e97 | {
"func_code_index": [
534,
634
]
} | 6,150 |
MonfterSOSMinter | MonfterSOSMinter.sol | 0x06a97a1fb2b26fd36f6582ce8bbf87e37c8c86df | 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 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.8+commit.dddeac2f | MIT | ipfs://dcb411371065bbbcf6f873b3b836324b4c4ac666291b6cead3134fdd8a305e97 | {
"func_code_index": [
913,
1028
]
} | 6,151 |
MonfterSOSMinter | MonfterSOSMinter.sol | 0x06a97a1fb2b26fd36f6582ce8bbf87e37c8c86df | 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 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.8+commit.dddeac2f | MIT | ipfs://dcb411371065bbbcf6f873b3b836324b4c4ac666291b6cead3134fdd8a305e97 | {
"func_code_index": [
1692,
1771
]
} | 6,152 |
MonfterSOSMinter | MonfterSOSMinter.sol | 0x06a97a1fb2b26fd36f6582ce8bbf87e37c8c86df | 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 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.8+commit.dddeac2f | MIT | ipfs://dcb411371065bbbcf6f873b3b836324b4c4ac666291b6cead3134fdd8a305e97 | {
"func_code_index": [
2084,
2220
]
} | 6,153 |
MonfterSOSMinter | MonfterSOSMinter.sol | 0x06a97a1fb2b26fd36f6582ce8bbf87e37c8c86df | 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.8+commit.dddeac2f | MIT | ipfs://dcb411371065bbbcf6f873b3b836324b4c4ac666291b6cead3134fdd8a305e97 | {
"func_code_index": [
374,
455
]
} | 6,154 |
MonfterSOSMinter | MonfterSOSMinter.sol | 0x06a97a1fb2b26fd36f6582ce8bbf87e37c8c86df | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(
address indexed from,
address indexed to,
uint256 indexed tokenId
);
/**
* @dev Emitted when `owner` enables `approved` to mana... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address owner) external view returns (uint256 balance);
| /**
* @dev Returns the number of tokens in ``owner``'s account.
*/ | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://dcb411371065bbbcf6f873b3b836324b4c4ac666291b6cead3134fdd8a305e97 | {
"func_code_index": [
821,
900
]
} | 6,155 |
MonfterSOSMinter | MonfterSOSMinter.sol | 0x06a97a1fb2b26fd36f6582ce8bbf87e37c8c86df | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(
address indexed from,
address indexed to,
uint256 indexed tokenId
);
/**
* @dev Emitted when `owner` enables `approved` to mana... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | ownerOf | function ownerOf(uint256 tokenId) external view returns (address owner);
| /**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/ | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://dcb411371065bbbcf6f873b3b836324b4c4ac666291b6cead3134fdd8a305e97 | {
"func_code_index": [
1046,
1123
]
} | 6,156 |
MonfterSOSMinter | MonfterSOSMinter.sol | 0x06a97a1fb2b26fd36f6582ce8bbf87e37c8c86df | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(
address indexed from,
address indexed to,
uint256 indexed tokenId
);
/**
* @dev Emitted when `owner` enables `approved` to mana... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
| /**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token mus... | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://dcb411371065bbbcf6f873b3b836324b4c4ac666291b6cead3134fdd8a305e97 | {
"func_code_index": [
1835,
1952
]
} | 6,157 |
MonfterSOSMinter | MonfterSOSMinter.sol | 0x06a97a1fb2b26fd36f6582ce8bbf87e37c8c86df | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(
address indexed from,
address indexed to,
uint256 indexed tokenId
);
/**
* @dev Emitted when `owner` enables `approved` to mana... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | transferFrom | function transferFrom(
address from,
address to,
uint256 tokenId
) external;
| /**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If th... | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://dcb411371065bbbcf6f873b3b836324b4c4ac666291b6cead3134fdd8a305e97 | {
"func_code_index": [
2478,
2591
]
} | 6,158 |
MonfterSOSMinter | MonfterSOSMinter.sol | 0x06a97a1fb2b26fd36f6582ce8bbf87e37c8c86df | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(
address indexed from,
address indexed to,
uint256 indexed tokenId
);
/**
* @dev Emitted when `owner` enables `approved` to mana... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | approve | function approve(address to, uint256 tokenId) external;
| /**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token... | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://dcb411371065bbbcf6f873b3b836324b4c4ac666291b6cead3134fdd8a305e97 | {
"func_code_index": [
3064,
3124
]
} | 6,159 |
MonfterSOSMinter | MonfterSOSMinter.sol | 0x06a97a1fb2b26fd36f6582ce8bbf87e37c8c86df | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(
address indexed from,
address indexed to,
uint256 indexed tokenId
);
/**
* @dev Emitted when `owner` enables `approved` to mana... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | getApproved | function getApproved(uint256 tokenId)
external
view
returns (address operator);
| /**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/ | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://dcb411371065bbbcf6f873b3b836324b4c4ac666291b6cead3134fdd8a305e97 | {
"func_code_index": [
3278,
3389
]
} | 6,160 |
MonfterSOSMinter | MonfterSOSMinter.sol | 0x06a97a1fb2b26fd36f6582ce8bbf87e37c8c86df | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(
address indexed from,
address indexed to,
uint256 indexed tokenId
);
/**
* @dev Emitted when `owner` enables `approved` to mana... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | setApprovalForAll | function setApprovalForAll(address operator, bool _approved) external;
| /**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/ | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://dcb411371065bbbcf6f873b3b836324b4c4ac666291b6cead3134fdd8a305e97 | {
"func_code_index": [
3716,
3791
]
} | 6,161 |
MonfterSOSMinter | MonfterSOSMinter.sol | 0x06a97a1fb2b26fd36f6582ce8bbf87e37c8c86df | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(
address indexed from,
address indexed to,
uint256 indexed tokenId
);
/**
* @dev Emitted when `owner` enables `approved` to mana... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | isApprovedForAll | function isApprovedForAll(address owner, address operator)
external
view
returns (bool);
| /**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/ | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://dcb411371065bbbcf6f873b3b836324b4c4ac666291b6cead3134fdd8a305e97 | {
"func_code_index": [
3942,
4062
]
} | 6,162 |
MonfterSOSMinter | MonfterSOSMinter.sol | 0x06a97a1fb2b26fd36f6582ce8bbf87e37c8c86df | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(
address indexed from,
address indexed to,
uint256 indexed tokenId
);
/**
* @dev Emitted when `owner` enables `approved` to mana... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
| /**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {appro... | NatSpecMultiLine | v0.8.8+commit.dddeac2f | MIT | ipfs://dcb411371065bbbcf6f873b3b836324b4c4ac666291b6cead3134fdd8a305e97 | {
"func_code_index": [
4639,
4786
]
} | 6,163 |
SojuToken | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xa507570aea52368f88d4ec11c1f97851270cd117 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | /**
* @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 | name | function name() public view returns (string memory) {
return _name;
}
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://b8c0a4bffb488fd375e2a5c11aaff467919babb0220425c1e4b84bcc66163cb4 | {
"func_code_index": [
902,
990
]
} | 6,164 |
SojuToken | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xa507570aea52368f88d4ec11c1f97851270cd117 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | /**
* @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 | symbol | function symbol() public view returns (string memory) {
return _symbol;
}
| /**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://b8c0a4bffb488fd375e2a5c11aaff467919babb0220425c1e4b84bcc66163cb4 | {
"func_code_index": [
1104,
1196
]
} | 6,165 |
SojuToken | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xa507570aea52368f88d4ec11c1f97851270cd117 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | /**
* @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://b8c0a4bffb488fd375e2a5c11aaff467919babb0220425c1e4b84bcc66163cb4 | {
"func_code_index": [
1829,
1917
]
} | 6,166 |
SojuToken | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xa507570aea52368f88d4ec11c1f97851270cd117 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | /**
* @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://b8c0a4bffb488fd375e2a5c11aaff467919babb0220425c1e4b84bcc66163cb4 | {
"func_code_index": [
1977,
2082
]
} | 6,167 |
SojuToken | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xa507570aea52368f88d4ec11c1f97851270cd117 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | /**
* @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://b8c0a4bffb488fd375e2a5c11aaff467919babb0220425c1e4b84bcc66163cb4 | {
"func_code_index": [
2140,
2264
]
} | 6,168 |
SojuToken | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xa507570aea52368f88d4ec11c1f97851270cd117 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | /**
* @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) {
_transfer(_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://b8c0a4bffb488fd375e2a5c11aaff467919babb0220425c1e4b84bcc66163cb4 | {
"func_code_index": [
2472,
2652
]
} | 6,169 |
SojuToken | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xa507570aea52368f88d4ec11c1f97851270cd117 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | /**
* @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://b8c0a4bffb488fd375e2a5c11aaff467919babb0220425c1e4b84bcc66163cb4 | {
"func_code_index": [
2710,
2866
]
} | 6,170 |
SojuToken | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xa507570aea52368f88d4ec11c1f97851270cd117 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | /**
* @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://b8c0a4bffb488fd375e2a5c11aaff467919babb0220425c1e4b84bcc66163cb4 | {
"func_code_index": [
3008,
3182
]
} | 6,171 |
SojuToken | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xa507570aea52368f88d4ec11c1f97851270cd117 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | /**
* @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) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
| /**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20};
*
* Requirements:
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amou... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://b8c0a4bffb488fd375e2a5c11aaff467919babb0220425c1e4b84bcc66163cb4 | {
"func_code_index": [
3651,
3977
]
} | 6,172 |
SojuToken | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xa507570aea52368f88d4ec11c1f97851270cd117 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | /**
* @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 spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
| /**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` c... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://b8c0a4bffb488fd375e2a5c11aaff467919babb0220425c1e4b84bcc66163cb4 | {
"func_code_index": [
4381,
4604
]
} | 6,173 |
SojuToken | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xa507570aea52368f88d4ec11c1f97851270cd117 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | /**
* @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 spender, uint256 subtractedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
| /**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` c... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://b8c0a4bffb488fd375e2a5c11aaff467919babb0220425c1e4b84bcc66163cb4 | {
"func_code_index": [
5102,
5376
]
} | 6,174 |
SojuToken | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xa507570aea52368f88d4ec11c1f97851270cd117 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | /**
* @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[sen... | /**
* @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://b8c0a4bffb488fd375e2a5c11aaff467919babb0220425c1e4b84bcc66163cb4 | {
"func_code_index": [
5861,
6405
]
} | 6,175 |
SojuToken | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xa507570aea52368f88d4ec11c1f97851270cd117 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | /**
* @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) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfe... | /** @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://b8c0a4bffb488fd375e2a5c11aaff467919babb0220425c1e4b84bcc66163cb4 | {
"func_code_index": [
6681,
7064
]
} | 6,176 |
SojuToken | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xa507570aea52368f88d4ec11c1f97851270cd117 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | /**
* @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://b8c0a4bffb488fd375e2a5c11aaff467919babb0220425c1e4b84bcc66163cb4 | {
"func_code_index": [
7391,
7814
]
} | 6,177 |
SojuToken | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xa507570aea52368f88d4ec11c1f97851270cd117 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | /**
* @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, amoun... | /**
* @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://b8c0a4bffb488fd375e2a5c11aaff467919babb0220425c1e4b84bcc66163cb4 | {
"func_code_index": [
8249,
8600
]
} | 6,178 |
SojuToken | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xa507570aea52368f88d4ec11c1f97851270cd117 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | /**
* @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://b8c0a4bffb488fd375e2a5c11aaff467919babb0220425c1e4b84bcc66163cb4 | {
"func_code_index": [
8927,
9022
]
} | 6,179 |
SojuToken | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xa507570aea52368f88d4ec11c1f97851270cd117 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | /**
* @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://b8c0a4bffb488fd375e2a5c11aaff467919babb0220425c1e4b84bcc66163cb4 | {
"func_code_index": [
9620,
9717
]
} | 6,180 |
chenfeiToken | chenfeiToken.sol | 0x5837b08231b4b7e6909a18ac22454c907c479c07 | Solidity | Token | contract Token{
// token总量,默认会为public变量生成一个getter函数接口,名称为totalSupply().
uint256 public totalSupply;
/// 获取账户_owner拥有token的数量
function balanceOf(address _owner) constant returns (uint256 balance);
//从消息发送者账户中往_to账户转数量为_value的token
function transfer(address _to, uint256 _value) returns ... | balanceOf | function balanceOf(address _owner) constant returns (uint256 balance);
| /// 获取账户_owner拥有token的数量 | NatSpecSingleLine | v0.4.24+commit.e67f0147 | bzzr://ed6e2cab1d393b24a2dc7702bd0ae9f1077876972727d5cb7c52281300395278 | {
"func_code_index": [
144,
219
]
} | 6,181 | |||
chenfeiToken | chenfeiToken.sol | 0x5837b08231b4b7e6909a18ac22454c907c479c07 | Solidity | Token | contract Token{
// token总量,默认会为public变量生成一个getter函数接口,名称为totalSupply().
uint256 public totalSupply;
/// 获取账户_owner拥有token的数量
function balanceOf(address _owner) constant returns (uint256 balance);
//从消息发送者账户中往_to账户转数量为_value的token
function transfer(address _to, uint256 _value) returns ... | transfer | function transfer(address _to, uint256 _value) returns (bool success);
| //从消息发送者账户中往_to账户转数量为_value的token | LineComment | v0.4.24+commit.e67f0147 | bzzr://ed6e2cab1d393b24a2dc7702bd0ae9f1077876972727d5cb7c52281300395278 | {
"func_code_index": [
261,
336
]
} | 6,182 | |||
chenfeiToken | chenfeiToken.sol | 0x5837b08231b4b7e6909a18ac22454c907c479c07 | Solidity | Token | contract Token{
// token总量,默认会为public变量生成一个getter函数接口,名称为totalSupply().
uint256 public totalSupply;
/// 获取账户_owner拥有token的数量
function balanceOf(address _owner) constant returns (uint256 balance);
//从消息发送者账户中往_to账户转数量为_value的token
function transfer(address _to, uint256 _value) returns ... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) returns
(bool success);
| //从账户_from中往账户_to转数量为_value的token,与approve方法配合使用 | LineComment | v0.4.24+commit.e67f0147 | bzzr://ed6e2cab1d393b24a2dc7702bd0ae9f1077876972727d5cb7c52281300395278 | {
"func_code_index": [
393,
495
]
} | 6,183 | |||
chenfeiToken | chenfeiToken.sol | 0x5837b08231b4b7e6909a18ac22454c907c479c07 | Solidity | Token | contract Token{
// token总量,默认会为public变量生成一个getter函数接口,名称为totalSupply().
uint256 public totalSupply;
/// 获取账户_owner拥有token的数量
function balanceOf(address _owner) constant returns (uint256 balance);
//从消息发送者账户中往_to账户转数量为_value的token
function transfer(address _to, uint256 _value) returns ... | approve | function approve(address _spender, uint256 _value) returns (bool success);
| //消息发送账户设置账户_spender能从发送账户中转出数量为_value的token | LineComment | v0.4.24+commit.e67f0147 | bzzr://ed6e2cab1d393b24a2dc7702bd0ae9f1077876972727d5cb7c52281300395278 | {
"func_code_index": [
548,
627
]
} | 6,184 | |||
chenfeiToken | chenfeiToken.sol | 0x5837b08231b4b7e6909a18ac22454c907c479c07 | Solidity | Token | contract Token{
// token总量,默认会为public变量生成一个getter函数接口,名称为totalSupply().
uint256 public totalSupply;
/// 获取账户_owner拥有token的数量
function balanceOf(address _owner) constant returns (uint256 balance);
//从消息发送者账户中往_to账户转数量为_value的token
function transfer(address _to, uint256 _value) returns ... | allowance | function allowance(address _owner, address _spender) constant returns
(uint256 remaining);
| //获取账户_spender可以从账户_owner中转出token的数量 | LineComment | v0.4.24+commit.e67f0147 | bzzr://ed6e2cab1d393b24a2dc7702bd0ae9f1077876972727d5cb7c52281300395278 | {
"func_code_index": [
672,
773
]
} | 6,185 | |||
chenfeiToken | chenfeiToken.sol | 0x5837b08231b4b7e6909a18ac22454c907c479c07 | Solidity | chenfeiToken | contract chenfeiToken is StandardToken {
/* Public variables of the token */
string public name; //名称: eg Simon Bucks
uint8 public decimals; //最多的小数位数,How many decimals to show. ie. There could 1000 base units with 3 decimals. Meaning 0.980 SBX = 980 base units. It's li... | chenfeiToken | function chenfeiToken(uint256 _initialAmount, string _tokenName, uint8 _decimalUnits, string _tokenSymbol) {
balances[msg.sender] = _initialAmount; // 初始token数量给予消息发送者
totalSupply = _initialAmount; // 设置初始总量
name = _tokenName; // token名称
decimals = _decimalUnits; ... | //版本 | LineComment | v0.4.24+commit.e67f0147 | bzzr://ed6e2cab1d393b24a2dc7702bd0ae9f1077876972727d5cb7c52281300395278 | {
"func_code_index": [
458,
868
]
} | 6,186 | |||
chenfeiToken | chenfeiToken.sol | 0x5837b08231b4b7e6909a18ac22454c907c479c07 | Solidity | chenfeiToken | contract chenfeiToken is StandardToken {
/* Public variables of the token */
string public name; //名称: eg Simon Bucks
uint8 public decimals; //最多的小数位数,How many decimals to show. ie. There could 1000 base units with 3 decimals. Meaning 0.980 SBX = 980 base units. It's li... | approveAndCall | function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) {
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
//call the receiveApproval function on the contract you want to be notified. This crafts the function signature manually so ... | /* Approves and then calls the receiving contract */ | Comment | v0.4.24+commit.e67f0147 | bzzr://ed6e2cab1d393b24a2dc7702bd0ae9f1077876972727d5cb7c52281300395278 | {
"func_code_index": [
935,
1732
]
} | 6,187 | |||
BonkMigrator | contracts\BonkMigrator.sol | 0xab3dad72dcb9017811785512255dd50804547977 | Solidity | BonkMigrator | contract BonkMigrator is Ownable, ReentrancyGuard, Drainer, ICallable {
using SafeMath for uint;
uint public constant CLAIM_PERIOD = 7 days;
IERC20 public oldToken;
IERC20 public newToken;
uint public deadline;
mapping(address => uint) public migrated;
uint public totalMigrated;
... | tokenCallback | function tokenCallback(address _from, uint256 _tokens, bytes calldata _data)
external
override
nonReentrant
beforeDeadline
onlyOldBonkToken
returns (bool)
{
require(_tokens > 0, "Invalid amount");
// compensate loss: there is 1% fee subtracted from _tokens
_tokens = _tokens.mul(110).div(100);
_migrat... | /**
* @dev callback function that is called by BONK token.
* @param _from who sent the tokens.
* @param _tokens how many tokens were sent.
* @param _data extra call data.
* @return success.
*/ | NatSpecMultiLine | v0.7.5+commit.eb77ed08 | None | ipfs://a2589e4e4e5fee0bbf987e8741551ad71f2d8a293732409af23ea4cc63a396dc | {
"func_code_index": [
1150,
1536
]
} | 6,188 | ||
FraxLiquidityBridger_MOON_AnySwap | contracts/Bridges/Moonriver/FraxLiquidityBridger_MOON_AnySwap.sol | 0xc7f48fb6dbb6f8a3eed90553017cdf5725dc44ac | Solidity | FraxLiquidityBridger_MOON_AnySwap | contract FraxLiquidityBridger_MOON_AnySwap is FraxLiquidityBridger {
constructor (
address _owner,
address _timelock_address,
address _amo_minter_address,
address[3] memory _bridge_addresses,
address _destination_address_override,
string memory _non_evm_destina... | _bridgingLogic | function _bridgingLogic(uint256 token_type, address address_to_send_to, uint256 token_amount) internal override {
// [Moonriver]
if (token_type == 0){
// L1 FRAX -> anyFRAX
// Simple dump in / CREATE2
// AnySwap Bridge
TransferHelper.safeTransfer(address(FRAX), bridge_addre... | // Override with logic specific to this chain | LineComment | v0.8.6+commit.11564f7e | GNU GPLv2 | ipfs://e3de8d544c2d67ff580422e559edf7c0abe6f152d3476901ff747d352fce560a | {
"func_code_index": [
594,
1486
]
} | 6,189 | ||
SojuToken | contracts/SojuToken.sol | 0xa507570aea52368f88d4ec11c1f97851270cd117 | Solidity | SojuToken | contract SojuToken is ERC20("SojuToken", "Soju"), Ownable {
/// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef).
function mint(address _to, uint256 _amount) public onlyOwner {
_mint(_to, _amount);
_moveDelegates(address(0), _delegates[_to], _amount);
... | // SojuToken with Governance. | LineComment | mint | function mint(address _to, uint256 _amount) public onlyOwner {
_mint(_to, _amount);
_moveDelegates(address(0), _delegates[_to], _amount);
}
| /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef). | NatSpecSingleLine | v0.6.12+commit.27d51765 | None | ipfs://b8c0a4bffb488fd375e2a5c11aaff467919babb0220425c1e4b84bcc66163cb4 | {
"func_code_index": [
159,
326
]
} | 6,190 |
SojuToken | contracts/SojuToken.sol | 0xa507570aea52368f88d4ec11c1f97851270cd117 | Solidity | SojuToken | contract SojuToken is ERC20("SojuToken", "Soju"), Ownable {
/// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef).
function mint(address _to, uint256 _amount) public onlyOwner {
_mint(_to, _amount);
_moveDelegates(address(0), _delegates[_to], _amount);
... | // SojuToken with Governance. | LineComment | delegates | function delegates(address delegator)
external
view
returns (address)
{
return _delegates[delegator];
}
| /**
* @notice Delegate votes from `msg.sender` to `delegatee`
* @param delegator The address to get delegatee for
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://b8c0a4bffb488fd375e2a5c11aaff467919babb0220425c1e4b84bcc66163cb4 | {
"func_code_index": [
2270,
2424
]
} | 6,191 |
SojuToken | contracts/SojuToken.sol | 0xa507570aea52368f88d4ec11c1f97851270cd117 | Solidity | SojuToken | contract SojuToken is ERC20("SojuToken", "Soju"), Ownable {
/// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef).
function mint(address _to, uint256 _amount) public onlyOwner {
_mint(_to, _amount);
_moveDelegates(address(0), _delegates[_to], _amount);
... | // SojuToken with Governance. | LineComment | delegate | function delegate(address delegatee) external {
return _delegate(msg.sender, delegatee);
}
| /**
* @notice Delegate votes from `msg.sender` to `delegatee`
* @param delegatee The address to delegate votes to
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://b8c0a4bffb488fd375e2a5c11aaff467919babb0220425c1e4b84bcc66163cb4 | {
"func_code_index": [
2563,
2672
]
} | 6,192 |
SojuToken | contracts/SojuToken.sol | 0xa507570aea52368f88d4ec11c1f97851270cd117 | Solidity | SojuToken | contract SojuToken is ERC20("SojuToken", "Soju"), Ownable {
/// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef).
function mint(address _to, uint256 _amount) public onlyOwner {
_mint(_to, _amount);
_moveDelegates(address(0), _delegates[_to], _amount);
... | // SojuToken with Governance. | LineComment | delegateBySig | function delegateBySig(
address delegatee,
uint nonce,
uint expiry,
uint8 v,
bytes32 r,
bytes32 s
)
external
{
bytes32 domainSeparator = keccak256(
abi.encode(
DOMAIN_TYPEHASH,
keccak256(bytes(name())),
getChainId(),
... | /**
* @notice Delegates votes from signatory to `delegatee`
* @param delegatee The address to delegate votes to
* @param nonce The contract state required to match the signature
* @param expiry The time at which to expire the signature
* @param v The recovery byte of the signature
* @param r Half of the ECD... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://b8c0a4bffb488fd375e2a5c11aaff467919babb0220425c1e4b84bcc66163cb4 | {
"func_code_index": [
3101,
4284
]
} | 6,193 |
SojuToken | contracts/SojuToken.sol | 0xa507570aea52368f88d4ec11c1f97851270cd117 | Solidity | SojuToken | contract SojuToken is ERC20("SojuToken", "Soju"), Ownable {
/// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef).
function mint(address _to, uint256 _amount) public onlyOwner {
_mint(_to, _amount);
_moveDelegates(address(0), _delegates[_to], _amount);
... | // SojuToken with Governance. | LineComment | getCurrentVotes | function getCurrentVotes(address account)
external
view
returns (uint256)
{
uint32 nCheckpoints = numCheckpoints[account];
return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
}
| /**
* @notice Gets the current votes balance for `account`
* @param account The address to get votes balance
* @return The number of current votes for `account`
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://b8c0a4bffb488fd375e2a5c11aaff467919babb0220425c1e4b84bcc66163cb4 | {
"func_code_index": [
4480,
4740
]
} | 6,194 |
SojuToken | contracts/SojuToken.sol | 0xa507570aea52368f88d4ec11c1f97851270cd117 | Solidity | SojuToken | contract SojuToken is ERC20("SojuToken", "Soju"), Ownable {
/// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef).
function mint(address _to, uint256 _amount) public onlyOwner {
_mint(_to, _amount);
_moveDelegates(address(0), _delegates[_to], _amount);
... | // SojuToken with Governance. | LineComment | getPriorVotes | function getPriorVotes(address account, uint blockNumber)
external
view
returns (uint256)
{
require(blockNumber < block.number, "Soju::getPriorVotes: not yet determined");
uint32 nCheckpoints = numCheckpoints[account];
if (nCheckpoints == 0) {
return 0;
}
// First c... | /**
* @notice Determine the prior number of votes for an account as of a block number
* @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
* @param account The address of the account to check
* @param blockNumber The block number to get the vote balance at
... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://b8c0a4bffb488fd375e2a5c11aaff467919babb0220425c1e4b84bcc66163cb4 | {
"func_code_index": [
5166,
6424
]
} | 6,195 |
SUSD | SUSD.sol | 0xe8de351d8f949b2ffb8068a84a3bc8034874fd32 | Solidity | SafeMathUint256 | library SafeMathUint256 {
/**
* @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;
require(c / a == b, "SafeMath: Multiplier exception");
... | /**
* @title SafeMath for uint256
* @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;
require(c / a == b, "SafeMath: Multiplier exception");
return c;
}
| /**
* @dev Multiplies two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.5.0+commit.1d4f565a | None | bzzr://711a6677176af3f67d1ddbd90362b841cc9a7f5dbd889313f751386a79a83e52 | {
"func_code_index": [
100,
342
]
} | 6,196 |
SUSD | SUSD.sol | 0xe8de351d8f949b2ffb8068a84a3bc8034874fd32 | Solidity | SafeMathUint256 | library SafeMathUint256 {
/**
* @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;
require(c / a == b, "SafeMath: Multiplier exception");
... | /**
* @title SafeMath for uint256
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b; // Solidity automatically throws when dividing by 0
}
| /**
* @dev Integer division of two numbers, truncating the quotient.
*/ | NatSpecMultiLine | v0.5.0+commit.1d4f565a | None | bzzr://711a6677176af3f67d1ddbd90362b841cc9a7f5dbd889313f751386a79a83e52 | {
"func_code_index": [
432,
587
]
} | 6,197 |
SUSD | SUSD.sol | 0xe8de351d8f949b2ffb8068a84a3bc8034874fd32 | Solidity | SafeMathUint256 | library SafeMathUint256 {
/**
* @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;
require(c / a == b, "SafeMath: Multiplier exception");
... | /**
* @title SafeMath for uint256
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a, "SafeMath: Subtraction exception");
return a - b;
}
| /**
* @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.5.0+commit.1d4f565a | None | bzzr://711a6677176af3f67d1ddbd90362b841cc9a7f5dbd889313f751386a79a83e52 | {
"func_code_index": [
707,
871
]
} | 6,198 |
SUSD | SUSD.sol | 0xe8de351d8f949b2ffb8068a84a3bc8034874fd32 | Solidity | SafeMathUint256 | library SafeMathUint256 {
/**
* @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;
require(c / a == b, "SafeMath: Multiplier exception");
... | /**
* @title SafeMath for uint256
* @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;
require(c >= a, "SafeMath: Addition exception");
return c;
}
| /**
* @dev Adds two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.5.0+commit.1d4f565a | None | bzzr://711a6677176af3f67d1ddbd90362b841cc9a7f5dbd889313f751386a79a83e52 | {
"func_code_index": [
941,
1120
]
} | 6,199 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.