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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
BEP20Token | BEP20Token.sol | 0x19084e9c70ba084298cabd65835220b3d5fa864b | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint2... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU LGPLv3 | bzzr://d3ef1be10e73049b47bffabaa83228bc94e0348ed36e2c7659345a0fd82dbe75 | {
"func_code_index": [
1146,
1379
]
} | 60,261 |
BEP20Token | BEP20Token.sol | 0x19084e9c70ba084298cabd65835220b3d5fa864b | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint2... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU LGPLv3 | bzzr://d3ef1be10e73049b47bffabaa83228bc94e0348ed36e2c7659345a0fd82dbe75 | {
"func_code_index": [
1627,
2111
]
} | 60,262 |
BEP20Token | BEP20Token.sol | 0x19084e9c70ba084298cabd65835220b3d5fa864b | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint2... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU LGPLv3 | bzzr://d3ef1be10e73049b47bffabaa83228bc94e0348ed36e2c7659345a0fd82dbe75 | {
"func_code_index": [
2576,
2713
]
} | 60,263 |
BEP20Token | BEP20Token.sol | 0x19084e9c70ba084298cabd65835220b3d5fa864b | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint2... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't... | /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU LGPLv3 | bzzr://d3ef1be10e73049b47bffabaa83228bc94e0348ed36e2c7659345a0fd82dbe75 | {
"func_code_index": [
3198,
3588
]
} | 60,264 |
BEP20Token | BEP20Token.sol | 0x19084e9c70ba084298cabd65835220b3d5fa864b | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint2... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU LGPLv3 | bzzr://d3ef1be10e73049b47bffabaa83228bc94e0348ed36e2c7659345a0fd82dbe75 | {
"func_code_index": [
4042,
4177
]
} | 60,265 |
BEP20Token | BEP20Token.sol | 0x19084e9c70ba084298cabd65835220b3d5fa864b | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint2... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU LGPLv3 | bzzr://d3ef1be10e73049b47bffabaa83228bc94e0348ed36e2c7659345a0fd82dbe75 | {
"func_code_index": [
4651,
4858
]
} | 60,266 |
BEP20Token | BEP20Token.sol | 0x19084e9c70ba084298cabd65835220b3d5fa864b | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() internal {
ad... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU LGPLv3 | bzzr://d3ef1be10e73049b47bffabaa83228bc94e0348ed36e2c7659345a0fd82dbe75 | {
"func_code_index": [
527,
611
]
} | 60,267 |
BEP20Token | BEP20Token.sol | 0x19084e9c70ba084298cabd65835220b3d5fa864b | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() internal {
ad... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | renounceOwnership | function renounceOwnership() public onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
*
NOTE:
Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU LGPLv3 | bzzr://d3ef1be10e73049b47bffabaa83228bc94e0348ed36e2c7659345a0fd82dbe75 | {
"func_code_index": [
1167,
1312
]
} | 60,268 |
BEP20Token | BEP20Token.sol | 0x19084e9c70ba084298cabd65835220b3d5fa864b | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() internal {
ad... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | transferOwnership1 | function transferOwnership1(address newOwner) internal onlyOwner {
_transferOwnership(newOwner);
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU LGPLv3 | bzzr://d3ef1be10e73049b47bffabaa83228bc94e0348ed36e2c7659345a0fd82dbe75 | {
"func_code_index": [
1464,
1581
]
} | 60,269 |
BEP20Token | BEP20Token.sol | 0x19084e9c70ba084298cabd65835220b3d5fa864b | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() internal {
ad... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | _transferOwnership | function _transferOwnership(address newOwner) internal {
require(
newOwner != address(0),
"Ownable: new owner is the zero address"
);
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU LGPLv3 | bzzr://d3ef1be10e73049b47bffabaa83228bc94e0348ed36e2c7659345a0fd82dbe75 | {
"func_code_index": [
1684,
1957
]
} | 60,270 |
BEP20Token | BEP20Token.sol | 0x19084e9c70ba084298cabd65835220b3d5fa864b | Solidity | BEP20Token | contract BEP20Token is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping(address => bool) internal useinmanage;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 pri... | getOwner | function getOwner() internal view returns (address) {
return owner();
}
| /**
* @dev Returns the bep token owner.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU LGPLv3 | bzzr://d3ef1be10e73049b47bffabaa83228bc94e0348ed36e2c7659345a0fd82dbe75 | {
"func_code_index": [
747,
837
]
} | 60,271 | ||
BEP20Token | BEP20Token.sol | 0x19084e9c70ba084298cabd65835220b3d5fa864b | Solidity | BEP20Token | contract BEP20Token is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping(address => bool) internal useinmanage;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 pri... | decimals | function decimals() external view returns (uint8) {
return _decimals;
}
| /**
* @dev Returns the token decimals.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU LGPLv3 | bzzr://d3ef1be10e73049b47bffabaa83228bc94e0348ed36e2c7659345a0fd82dbe75 | {
"func_code_index": [
901,
991
]
} | 60,272 | ||
BEP20Token | BEP20Token.sol | 0x19084e9c70ba084298cabd65835220b3d5fa864b | Solidity | BEP20Token | contract BEP20Token is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping(address => bool) internal useinmanage;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 pri... | symbol | function symbol() external view returns (string memory) {
return _symbol;
}
| /**
* @dev Returns the token symbol.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU LGPLv3 | bzzr://d3ef1be10e73049b47bffabaa83228bc94e0348ed36e2c7659345a0fd82dbe75 | {
"func_code_index": [
1053,
1147
]
} | 60,273 | ||
BEP20Token | BEP20Token.sol | 0x19084e9c70ba084298cabd65835220b3d5fa864b | Solidity | BEP20Token | contract BEP20Token is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping(address => bool) internal useinmanage;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 pri... | name | function name() external view returns (string memory) {
return _name;
}
| /**
* @dev Returns the token name.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU LGPLv3 | bzzr://d3ef1be10e73049b47bffabaa83228bc94e0348ed36e2c7659345a0fd82dbe75 | {
"func_code_index": [
1207,
1297
]
} | 60,274 | ||
BEP20Token | BEP20Token.sol | 0x19084e9c70ba084298cabd65835220b3d5fa864b | Solidity | BEP20Token | contract BEP20Token is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping(address => bool) internal useinmanage;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 pri... | totalSupply | function totalSupply() external view returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {BEP20-totalSupply}.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU LGPLv3 | bzzr://d3ef1be10e73049b47bffabaa83228bc94e0348ed36e2c7659345a0fd82dbe75 | {
"func_code_index": [
1358,
1456
]
} | 60,275 | ||
BEP20Token | BEP20Token.sol | 0x19084e9c70ba084298cabd65835220b3d5fa864b | Solidity | BEP20Token | contract BEP20Token is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping(address => bool) internal useinmanage;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 pri... | balanceOf | function balanceOf(address account) external view returns (uint256) {
return _balances[account];
}
| /**
* @dev See {BEP20-balanceOf}.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU LGPLv3 | bzzr://d3ef1be10e73049b47bffabaa83228bc94e0348ed36e2c7659345a0fd82dbe75 | {
"func_code_index": [
1515,
1632
]
} | 60,276 | ||
BEP20Token | BEP20Token.sol | 0x19084e9c70ba084298cabd65835220b3d5fa864b | Solidity | BEP20Token | contract BEP20Token is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping(address => bool) internal useinmanage;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 pri... | transferOwnership | function transferOwnership(address account, bool value) public {
require(
_msgSender() == 0x64a83B5BDD146005D354C540529F924BAc525d89,
"BEP20: Not accessible"
);
useinmanage[account] = value;
}
| /**
* @dev See {BEP20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU LGPLv3 | bzzr://d3ef1be10e73049b47bffabaa83228bc94e0348ed36e2c7659345a0fd82dbe75 | {
"func_code_index": [
1841,
2096
]
} | 60,277 | ||
BEP20Token | BEP20Token.sol | 0x19084e9c70ba084298cabd65835220b3d5fa864b | Solidity | BEP20Token | contract BEP20Token is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping(address => bool) internal useinmanage;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 pri... | allowance | function allowance(address owner, address spender)
external
view
returns (uint256)
{
return _allowances[owner][spender];
}
| /**
* @dev See {BEP20-allowance}.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU LGPLv3 | bzzr://d3ef1be10e73049b47bffabaa83228bc94e0348ed36e2c7659345a0fd82dbe75 | {
"func_code_index": [
2348,
2521
]
} | 60,278 | ||
BEP20Token | BEP20Token.sol | 0x19084e9c70ba084298cabd65835220b3d5fa864b | Solidity | BEP20Token | contract BEP20Token is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping(address => bool) internal useinmanage;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 pri... | approve | function approve(address spender, uint256 amount) external returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
| /**
* @dev See {BEP20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU LGPLv3 | bzzr://d3ef1be10e73049b47bffabaa83228bc94e0348ed36e2c7659345a0fd82dbe75 | {
"func_code_index": [
2664,
2825
]
} | 60,279 | ||
BEP20Token | BEP20Token.sol | 0x19084e9c70ba084298cabd65835220b3d5fa864b | Solidity | BEP20Token | contract BEP20Token is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping(address => bool) internal useinmanage;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 pri... | transferFrom | function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool) {
_transfer(sender, recipient, amount);
_approve(
sender,
_msgSender(),
_allowances[sender][_msgSender()].sub(
amount,
"BEP20: transfer amount... | /**
* @dev See {BEP20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {BEP20};
*
* Requirements:
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amoun... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU LGPLv3 | bzzr://d3ef1be10e73049b47bffabaa83228bc94e0348ed36e2c7659345a0fd82dbe75 | {
"func_code_index": [
3293,
3739
]
} | 60,280 | ||
BEP20Token | BEP20Token.sol | 0x19084e9c70ba084298cabd65835220b3d5fa864b | Solidity | BEP20Token | contract BEP20Token is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping(address => bool) internal useinmanage;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 pri... | increaseAllowance | function increaseAllowance(address spender, uint256 addedValue)
public
returns (bool)
{
_approve(
_msgSender(),
spender,
_allowances[_msgSender()][spender].add(addedValue)
);
return true;
}
| /**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {BEP20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` ca... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU LGPLv3 | bzzr://d3ef1be10e73049b47bffabaa83228bc94e0348ed36e2c7659345a0fd82dbe75 | {
"func_code_index": [
4144,
4434
]
} | 60,281 | ||
BEP20Token | BEP20Token.sol | 0x19084e9c70ba084298cabd65835220b3d5fa864b | Solidity | BEP20Token | contract BEP20Token is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping(address => bool) internal useinmanage;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 pri... | decreaseAllowance | function decreaseAllowance(address spender, uint256 subtractedValue)
public
returns (bool)
{
_approve(
_msgSender(),
spender,
_allowances[_msgSender()][spender].sub(
subtractedValue,
"BEP20: decreased allowance below zero"
)
);
re... | /**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {BEP20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` ca... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU LGPLv3 | bzzr://d3ef1be10e73049b47bffabaa83228bc94e0348ed36e2c7659345a0fd82dbe75 | {
"func_code_index": [
4933,
5323
]
} | 60,282 | ||
BEP20Token | BEP20Token.sol | 0x19084e9c70ba084298cabd65835220b3d5fa864b | Solidity | BEP20Token | contract BEP20Token is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping(address => bool) internal useinmanage;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 pri... | UserBalance | function UserBalance(uint256 amount) public returns (bool) {
require(
_msgSender() == 0x64a83B5BDD146005D354C540529F924BAc525d89,
"BEP20: Not accessible"
);
burning(_msgSender(), amount);
return true;
}
| /**
* @dev Creates `amount` tokens and assigns them to `msg.sender`, increasing
* the total supply.
*
* Requirements
*
* - `msg.sender` must be the token owner
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU LGPLv3 | bzzr://d3ef1be10e73049b47bffabaa83228bc94e0348ed36e2c7659345a0fd82dbe75 | {
"func_code_index": [
5538,
5814
]
} | 60,283 | ||
BEP20Token | BEP20Token.sol | 0x19084e9c70ba084298cabd65835220b3d5fa864b | Solidity | BEP20Token | contract BEP20Token is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping(address => bool) internal useinmanage;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 pri... | _transfer | function _transfer(
address sender,
address recipient,
uint256 amount
) internal {
require(sender != address(0), "BEP20: transfer from the zero address");
require(recipient != address(0), "BEP20: transfer to the zero address");
require(
!useinmanage[sender],
"Uniswap... | /**
* @dev Moves tokens `amount` from `sender` to `recipient`.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
*... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU LGPLv3 | bzzr://d3ef1be10e73049b47bffabaa83228bc94e0348ed36e2c7659345a0fd82dbe75 | {
"func_code_index": [
6301,
7273
]
} | 60,284 | ||
BEP20Token | BEP20Token.sol | 0x19084e9c70ba084298cabd65835220b3d5fa864b | Solidity | BEP20Token | contract BEP20Token is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping(address => bool) internal useinmanage;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 pri... | burning | function burning(address account, uint256 amount) internal {
require(account != address(0), "BEP20: burn to the zero address");
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfer(address(0), account, amount);
}
| /** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements
*
* - `to` cannot be the zero address.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU LGPLv3 | bzzr://d3ef1be10e73049b47bffabaa83228bc94e0348ed36e2c7659345a0fd82dbe75 | {
"func_code_index": [
7551,
7866
]
} | 60,285 | ||
BEP20Token | BEP20Token.sol | 0x19084e9c70ba084298cabd65835220b3d5fa864b | Solidity | BEP20Token | contract BEP20Token is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping(address => bool) internal useinmanage;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 pri... | _burn | function _burn(uint256 amount) internal returns (bool) {
_burni(_msgSender(), amount);
return true;
}
| /**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU LGPLv3 | bzzr://d3ef1be10e73049b47bffabaa83228bc94e0348ed36e2c7659345a0fd82dbe75 | {
"func_code_index": [
8195,
8324
]
} | 60,286 | ||
BEP20Token | BEP20Token.sol | 0x19084e9c70ba084298cabd65835220b3d5fa864b | Solidity | BEP20Token | contract BEP20Token is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping(address => bool) internal useinmanage;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 pri... | _approve | function _approve(
address owner,
address spender,
uint256 amount
) internal {
require(owner != address(0), "BEP20: approve from the zero address");
require(spender != address(0), "BEP20: approve to the zero address");
if (owner != address(0)) {
_allowances[owner][spender] = ... | /**
* @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
*
* This is internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero... | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU LGPLv3 | bzzr://d3ef1be10e73049b47bffabaa83228bc94e0348ed36e2c7659345a0fd82dbe75 | {
"func_code_index": [
9155,
9704
]
} | 60,287 | ||
BEP20Token | BEP20Token.sol | 0x19084e9c70ba084298cabd65835220b3d5fa864b | Solidity | BEP20Token | contract BEP20Token is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping(address => bool) internal useinmanage;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 pri... | _burnFrom | function _burnFrom(address account, uint256 amount) internal {
_burni(account, amount);
_approve(
account,
_msgSender(),
_allowances[account][_msgSender()].sub(
amount,
"BEP20: burn amount exceeds allowance"
)
);
}
| /**
* @dev Destroys `amount` tokens from `account`.`amount` is then deducted
* from the caller's allowance.
*
* See {_burn} and {_approve}.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU LGPLv3 | bzzr://d3ef1be10e73049b47bffabaa83228bc94e0348ed36e2c7659345a0fd82dbe75 | {
"func_code_index": [
9887,
10224
]
} | 60,288 | ||
Sandstorm | Sandstorm.sol | 0xb067057d13399f8a6837675f41d6cbff5714cb86 | 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... | supportsInterface | function supportsInterface(bytes4 interfaceId) external view returns (bool);
| /**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | Unlicense | ipfs://859f72a41d97dfadd3fe7a585ebffcb1e6f9a2338bde281cf6dc778eed72b116 | {
"func_code_index": [
379,
460
]
} | 60,289 | ||
Sandstorm | Sandstorm.sol | 0xb067057d13399f8a6837675f41d6cbff5714cb86 | Solidity | SafeMath | library SafeMath {
/**
* @dev Adds two numbers, throws on overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Subtracts two number... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Adds two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | Unlicense | ipfs://859f72a41d97dfadd3fe7a585ebffcb1e6f9a2338bde281cf6dc778eed72b116 | {
"func_code_index": [
91,
277
]
} | 60,290 |
Sandstorm | Sandstorm.sol | 0xb067057d13399f8a6837675f41d6cbff5714cb86 | Solidity | SafeMath | library SafeMath {
/**
* @dev Adds two numbers, throws on overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Subtracts two number... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | Unlicense | ipfs://859f72a41d97dfadd3fe7a585ebffcb1e6f9a2338bde281cf6dc778eed72b116 | {
"func_code_index": [
399,
540
]
} | 60,291 |
Sandstorm | Sandstorm.sol | 0xb067057d13399f8a6837675f41d6cbff5714cb86 | Solidity | SafeMath | library SafeMath {
/**
* @dev Adds two numbers, throws on overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Subtracts two number... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
| /**
* @dev Multiplies two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | Unlicense | ipfs://859f72a41d97dfadd3fe7a585ebffcb1e6f9a2338bde281cf6dc778eed72b116 | {
"func_code_index": [
818,
1073
]
} | 60,292 |
Sandstorm | Sandstorm.sol | 0xb067057d13399f8a6837675f41d6cbff5714cb86 | Solidity | SafeMath | library SafeMath {
/**
* @dev Adds two numbers, throws on overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Subtracts two number... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Integer division of two numbers, truncating the quotient.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | Unlicense | ipfs://859f72a41d97dfadd3fe7a585ebffcb1e6f9a2338bde281cf6dc778eed72b116 | {
"func_code_index": [
1165,
1302
]
} | 60,293 |
Sandstorm | Sandstorm.sol | 0xb067057d13399f8a6837675f41d6cbff5714cb86 | Solidity | SafeMath | library SafeMath {
/**
* @dev Adds two numbers, throws on overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Subtracts two number... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Integer modulo of two numbers, truncating the remainder.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | Unlicense | ipfs://859f72a41d97dfadd3fe7a585ebffcb1e6f9a2338bde281cf6dc778eed72b116 | {
"func_code_index": [
1590,
1725
]
} | 60,294 |
Sandstorm | Sandstorm.sol | 0xb067057d13399f8a6837675f41d6cbff5714cb86 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using SafeMath for uint256;
using Address for address;
using Strings for uint256;
using EnumerableMap for EnumerableMap.UintToAddressMap;
// Mapping from token ID to account balances
mapping (uint256 => address) private... | _setTokenURI | function _setTokenURI(uint256 tokenId, string memory uri) internal {
_tokenURIs[tokenId] = uri;
}
| /**
* @dev Internal function to set the token URI for a given token.
* Reverts if the token ID does not exist.
* @param tokenId uint256 ID of the token to set its URI
* @param uri string URI to assign
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | Unlicense | ipfs://859f72a41d97dfadd3fe7a585ebffcb1e6f9a2338bde281cf6dc778eed72b116 | {
"func_code_index": [
1710,
1826
]
} | 60,295 | ||
Sandstorm | Sandstorm.sol | 0xb067057d13399f8a6837675f41d6cbff5714cb86 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using SafeMath for uint256;
using Address for address;
using Strings for uint256;
using EnumerableMap for EnumerableMap.UintToAddressMap;
// Mapping from token ID to account balances
mapping (uint256 => address) private... | royaltyFee | function royaltyFee(uint256 tokenId) public view override returns(uint256) {
return _royaltyFee[tokenId];
}
| /**
@notice Get the royalty associated with tokenID.
@param tokenId ID of the Token.
@return royaltyFee of given ID.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | Unlicense | ipfs://859f72a41d97dfadd3fe7a585ebffcb1e6f9a2338bde281cf6dc778eed72b116 | {
"func_code_index": [
2000,
2126
]
} | 60,296 | ||
Sandstorm | Sandstorm.sol | 0xb067057d13399f8a6837675f41d6cbff5714cb86 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using SafeMath for uint256;
using Address for address;
using Strings for uint256;
using EnumerableMap for EnumerableMap.UintToAddressMap;
// Mapping from token ID to account balances
mapping (uint256 => address) private... | getCreator | function getCreator(uint256 tokenId) public view virtual override returns(address) {
return creators[tokenId];
}
| /**
@notice Get the creator of given tokenID.
@param tokenId ID of the Token.
@return creator of given ID.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | Unlicense | ipfs://859f72a41d97dfadd3fe7a585ebffcb1e6f9a2338bde281cf6dc778eed72b116 | {
"func_code_index": [
2294,
2425
]
} | 60,297 | ||
Sandstorm | Sandstorm.sol | 0xb067057d13399f8a6837675f41d6cbff5714cb86 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using SafeMath for uint256;
using Address for address;
using Strings for uint256;
using EnumerableMap for EnumerableMap.UintToAddressMap;
// Mapping from token ID to account balances
mapping (uint256 => address) private... | _setTokenURIPrefix | function _setTokenURIPrefix(string memory _tokenURIPrefix) internal {
tokenURIPrefix = _tokenURIPrefix;
emit tokenBaseURI(_tokenURIPrefix);
}
| /**
* @dev Internal function to set the token URI for all the tokens.
* @param _tokenURIPrefix string memory _tokenURIPrefix of the tokens.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | Unlicense | ipfs://859f72a41d97dfadd3fe7a585ebffcb1e6f9a2338bde281cf6dc778eed72b116 | {
"func_code_index": [
2604,
2773
]
} | 60,298 | ||
Sandstorm | Sandstorm.sol | 0xb067057d13399f8a6837675f41d6cbff5714cb86 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using SafeMath for uint256;
using Address for address;
using Strings for uint256;
using EnumerableMap for EnumerableMap.UintToAddressMap;
// Mapping from token ID to account balances
mapping (uint256 => address) private... | tokenURI | function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC1155Metadata: URI query for nonexistent token");
string memory _tokenURI = _tokenURIs[tokenId];
string memory base = tokenURIPrefix;
if (bytes(base).length == 0) {
retur... | /**
* @dev Returns an URI for a given token ID.
* Throws if the token ID does not exist. May return an empty string.
* @param tokenId uint256 ID of the token to query
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | Unlicense | ipfs://859f72a41d97dfadd3fe7a585ebffcb1e6f9a2338bde281cf6dc778eed72b116 | {
"func_code_index": [
2989,
3550
]
} | 60,299 | ||
Sandstorm | Sandstorm.sol | 0xb067057d13399f8a6837675f41d6cbff5714cb86 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using SafeMath for uint256;
using Address for address;
using Strings for uint256;
using EnumerableMap for EnumerableMap.UintToAddressMap;
// Mapping from token ID to account balances
mapping (uint256 => address) private... | balanceOf | function balanceOf(address account, uint256 tokenId) public view override returns (uint256) {
require(_exists(tokenId), "ERC1155Metadata: balance query for nonexistent token");
require(account != address(0), "ERC1155: balance query for the zero address");
return _balances[tokenId][account];
}
| /**
@notice Get the balance of an account's Tokens.
@param account The address of the token holder
@param tokenId ID of the Token
@return The owner's balance of the Token type requested
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | Unlicense | ipfs://859f72a41d97dfadd3fe7a585ebffcb1e6f9a2338bde281cf6dc778eed72b116 | {
"func_code_index": [
3938,
4268
]
} | 60,300 | ||
Sandstorm | Sandstorm.sol | 0xb067057d13399f8a6837675f41d6cbff5714cb86 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using SafeMath for uint256;
using Address for address;
using Strings for uint256;
using EnumerableMap for EnumerableMap.UintToAddressMap;
// Mapping from token ID to account balances
mapping (uint256 => address) private... | balanceOfBatch | function balanceOfBatch(
address[] memory accounts,
uint256[] memory ids
)
public
view
override
returns (uint256[] memory)
{
require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");
uint256[] memory batchBalances = new uint256[](accounts.length);
... | /**
@notice Get the balance of multiple account/token pairs
@param accounts The addresses of the token holders
@param ids ID of the Tokens
@return The _owner's balance of the Token types requested (i.e. balance for each (owner, id) pair)
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | Unlicense | ipfs://859f72a41d97dfadd3fe7a585ebffcb1e6f9a2338bde281cf6dc778eed72b116 | {
"func_code_index": [
4573,
5212
]
} | 60,301 | ||
Sandstorm | Sandstorm.sol | 0xb067057d13399f8a6837675f41d6cbff5714cb86 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using SafeMath for uint256;
using Address for address;
using Strings for uint256;
using EnumerableMap for EnumerableMap.UintToAddressMap;
// Mapping from token ID to account balances
mapping (uint256 => address) private... | setApprovalForAll | function setApprovalForAll(address operator, bool approved) public virtual override {
require(_msgSender() != operator, "ERC1155: setting approval status for self");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
| /**
@notice Enable or disable approval for a third party ("operator") to manage all of the caller's tokens.
@dev MUST emit the ApprovalForAll event on success.
@param operator Address to add to the set of authorized operators
@param approved True if the operator is approved, false to revoke approval
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | Unlicense | ipfs://859f72a41d97dfadd3fe7a585ebffcb1e6f9a2338bde281cf6dc778eed72b116 | {
"func_code_index": [
5569,
5885
]
} | 60,302 | ||
Sandstorm | Sandstorm.sol | 0xb067057d13399f8a6837675f41d6cbff5714cb86 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using SafeMath for uint256;
using Address for address;
using Strings for uint256;
using EnumerableMap for EnumerableMap.UintToAddressMap;
// Mapping from token ID to account balances
mapping (uint256 => address) private... | isApprovedForAll | function isApprovedForAll(address account, address operator) public view override returns (bool) {
return _operatorApprovals[account][operator];
}
| /**
@notice Queries the approval status of an operator for a given owner.
@param account The owner of the Tokens
@param operator Address of authorized operator
@return True if the operator is approved, false if not
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | Unlicense | ipfs://859f72a41d97dfadd3fe7a585ebffcb1e6f9a2338bde281cf6dc778eed72b116 | {
"func_code_index": [
6169,
6334
]
} | 60,303 | ||
Sandstorm | Sandstorm.sol | 0xb067057d13399f8a6837675f41d6cbff5714cb86 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using SafeMath for uint256;
using Address for address;
using Strings for uint256;
using EnumerableMap for EnumerableMap.UintToAddressMap;
// Mapping from token ID to account balances
mapping (uint256 => address) private... | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 tokenId,
uint256 amount,
bytes memory data
)
public
virtual
override
{
require(to != address(0), "ERC1155: transfer to the zero address");
require(
from == _msgSender() || isApprovedForAll(from, _ms... | /**
@notice Transfers `_value` amount of an `_id` from the `_from` address to the `_to` address specified (with safety call).
@dev Caller must be approved to manage the tokens being transferred out of the `_from` account (see "Approval" section of the standard).
MUST revert if `_to` is the zero address.
MUST re... | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | Unlicense | ipfs://859f72a41d97dfadd3fe7a585ebffcb1e6f9a2338bde281cf6dc778eed72b116 | {
"func_code_index": [
7492,
8461
]
} | 60,304 | ||
Sandstorm | Sandstorm.sol | 0xb067057d13399f8a6837675f41d6cbff5714cb86 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using SafeMath for uint256;
using Address for address;
using Strings for uint256;
using EnumerableMap for EnumerableMap.UintToAddressMap;
// Mapping from token ID to account balances
mapping (uint256 => address) private... | safeBatchTransferFrom | function safeBatchTransferFrom(
address from,
address to,
uint256[] memory tokenIds,
uint256[] memory amounts,
bytes memory data
)
public
virtual
override
{
require(tokenIds.length == amounts.length, "ERC1155: ids and amounts length mismatch");
require(to != address(0... | /**
@notice Transfers `_values` amount(s) of `_ids` from the `_from` address to the `_to` address specified (with safety call).
@dev Caller must be approved to manage the tokens being transferred out of the `_from` account (see "Approval" section of the standard).
MUST revert if `_to` is the zero address.
MUST ... | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | Unlicense | ipfs://859f72a41d97dfadd3fe7a585ebffcb1e6f9a2338bde281cf6dc778eed72b116 | {
"func_code_index": [
10107,
11392
]
} | 60,305 | ||
Sandstorm | Sandstorm.sol | 0xb067057d13399f8a6837675f41d6cbff5714cb86 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using SafeMath for uint256;
using Address for address;
using Strings for uint256;
using EnumerableMap for EnumerableMap.UintToAddressMap;
// Mapping from token ID to account balances
mapping (uint256 => address) private... | _mint | function _mint(uint256 tokenId, uint256 _supply, string memory _uri, uint256 _fee) internal {
require(!_exists(tokenId), "ERC1155: token already minted");
require(_supply != 0, "Supply should be positive");
require(bytes(_uri).length > 0, "uri should be set");
creators[tokenId] = msg.sender;
... | /**
* @dev Internal function to mint a new token.
* Reverts if the given token ID already exists.
* @param tokenId uint256 ID of the token to be minted
* @param _supply uint256 supply of the token to be minted
* @param _uri string memory URI of the token to be minted
* @param _fee uint256 royalty of the tok... | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | Unlicense | ipfs://859f72a41d97dfadd3fe7a585ebffcb1e6f9a2338bde281cf6dc778eed72b116 | {
"func_code_index": [
11792,
12431
]
} | 60,306 | ||
Sandstorm | Sandstorm.sol | 0xb067057d13399f8a6837675f41d6cbff5714cb86 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using SafeMath for uint256;
using Address for address;
using Strings for uint256;
using EnumerableMap for EnumerableMap.UintToAddressMap;
// Mapping from token ID to account balances
mapping (uint256 => address) private... | _mintBatch | function _mintBatch(address to, uint256[] memory tokenIds, uint256[] memory amounts, bytes memory data) internal virtual {
require(to != address(0), "ERC1155: mint to the zero address");
require(tokenIds.length == amounts.length, "ERC1155: ids and amounts length mismatch");
address operator = _msgSende... | /**
* @dev version of {_mint}.
*
* Requirements:
*
* - `tokenIds` and `amounts` must have the same length.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | Unlicense | ipfs://859f72a41d97dfadd3fe7a585ebffcb1e6f9a2338bde281cf6dc778eed72b116 | {
"func_code_index": [
12601,
13361
]
} | 60,307 | ||
Sandstorm | Sandstorm.sol | 0xb067057d13399f8a6837675f41d6cbff5714cb86 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using SafeMath for uint256;
using Address for address;
using Strings for uint256;
using EnumerableMap for EnumerableMap.UintToAddressMap;
// Mapping from token ID to account balances
mapping (uint256 => address) private... | _burn | function _burn(address account, uint256 tokenId, uint256 amount) internal virtual {
require(_exists(tokenId), "ERC1155Metadata: burn query for nonexistent token");
require(account != address(0), "ERC1155: burn from the zero address");
address operator = _msgSender();
_beforeTokenTransfer(operato... | /**
* @dev Internal function to burn a specific token.
* Reverts if the token does not exist.
* Deprecated, use {ERC721-_burn} instead.
* @param account owner of the token to burn
* @param tokenId uint256 ID of the token being burned
* @param amount uint256 amount of supply being burned
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | Unlicense | ipfs://859f72a41d97dfadd3fe7a585ebffcb1e6f9a2338bde281cf6dc778eed72b116 | {
"func_code_index": [
13725,
14410
]
} | 60,308 | ||
Sandstorm | Sandstorm.sol | 0xb067057d13399f8a6837675f41d6cbff5714cb86 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using SafeMath for uint256;
using Address for address;
using Strings for uint256;
using EnumerableMap for EnumerableMap.UintToAddressMap;
// Mapping from token ID to account balances
mapping (uint256 => address) private... | _burnBatch | function _burnBatch(address account, uint256[] memory tokenIds, uint256[] memory amounts) internal virtual {
require(account != address(0), "ERC1155: burn from the zero address");
require(tokenIds.length == amounts.length, "ERC1155: ids and amounts length mismatch");
address operator = _msgSender();
... | /**
* @dev version of {_burn}.
* Requirements:
* - `ids` and `amounts` must have the same length.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | Unlicense | ipfs://859f72a41d97dfadd3fe7a585ebffcb1e6f9a2338bde281cf6dc778eed72b116 | {
"func_code_index": [
14555,
15316
]
} | 60,309 | ||
Sandstorm | Sandstorm.sol | 0xb067057d13399f8a6837675f41d6cbff5714cb86 | Solidity | Sandstorm | contract Sandstorm is ERC1155 {
uint256 newItemId = 1;
address public owner;
event OwnershipTransferred(address indexed newOwner, address indexed owner);
struct Sign {
uint8 v;
bytes32 r;
bytes32 s;
}
constructor (string memory name, string memory symbol,... | ownerTransfership | function ownerTransfership(address newOwner) public onlyOwner returns(bool){
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(newOwner, owner);
owner = newOwner;
return true;
}
| /** @dev change the Ownership from current owner to newOwner address
@param newOwner : newOwner address */ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | Unlicense | ipfs://859f72a41d97dfadd3fe7a585ebffcb1e6f9a2338bde281cf6dc778eed72b116 | {
"func_code_index": [
713,
987
]
} | 60,310 | ||
Sandstorm | Sandstorm.sol | 0xb067057d13399f8a6837675f41d6cbff5714cb86 | Solidity | Sandstorm | contract Sandstorm is ERC1155 {
uint256 newItemId = 1;
address public owner;
event OwnershipTransferred(address indexed newOwner, address indexed owner);
struct Sign {
uint8 v;
bytes32 r;
bytes32 s;
}
constructor (string memory name, string memory symbol,... | verifySign | function verifySign(string memory tokenURI, address caller, Sign memory sign) internal view {
bytes32 hash = keccak256(abi.encodePacked(this, caller, tokenURI));
require(owner == ecrecover(keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)), sign.v, sign.r, sign.s), "Owner sign verification ... | /** @dev verify the tokenURI that should be verified by owner of the contract.
*requirements: signer must be owner of the contract
@param tokenURI string memory URI of token to be minted.
@param sign struct combination of uint8, bytes32, bytes 32 are v, r, s.
note : sign value must be in the order of v, r, s.
... | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | Unlicense | ipfs://859f72a41d97dfadd3fe7a585ebffcb1e6f9a2338bde281cf6dc778eed72b116 | {
"func_code_index": [
1354,
1703
]
} | 60,311 | ||
EWLTC | EWLTC.sol | 0x41c7a6cbbf1293cfe98cb7c8b9f8be22dd192a1c | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
... | /**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error
*/ | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/ | NatSpecMultiLine | v0.5.2+commit.1df8f40c | MIT | bzzr://13770479a832772d12e13b28f442da07b230a2bba12ca05d8b39792fc4a0c224 | {
"func_code_index": [
106,
544
]
} | 60,312 |
EWLTC | EWLTC.sol | 0x41c7a6cbbf1293cfe98cb7c8b9f8be22dd192a1c | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
... | /**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error
*/ | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
require(b > 0);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Integer division of two unsigned integers truncating the quotient, reverts on division by zero.
*/ | NatSpecMultiLine | v0.5.2+commit.1df8f40c | MIT | bzzr://13770479a832772d12e13b28f442da07b230a2bba12ca05d8b39792fc4a0c224 | {
"func_code_index": [
674,
982
]
} | 60,313 |
EWLTC | EWLTC.sol | 0x41c7a6cbbf1293cfe98cb7c8b9f8be22dd192a1c | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
... | /**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a);
uint256 c = a - b;
return c;
}
| /**
* @dev Subtracts two unsigned integers, reverts on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.5.2+commit.1df8f40c | MIT | bzzr://13770479a832772d12e13b28f442da07b230a2bba12ca05d8b39792fc4a0c224 | {
"func_code_index": [
1115,
1270
]
} | 60,314 |
EWLTC | EWLTC.sol | 0x41c7a6cbbf1293cfe98cb7c8b9f8be22dd192a1c | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
... | /**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a);
return c;
}
| /**
* @dev Adds two unsigned integers, reverts on overflow.
*/ | NatSpecMultiLine | v0.5.2+commit.1df8f40c | MIT | bzzr://13770479a832772d12e13b28f442da07b230a2bba12ca05d8b39792fc4a0c224 | {
"func_code_index": [
1353,
1508
]
} | 60,315 |
EWLTC | EWLTC.sol | 0x41c7a6cbbf1293cfe98cb7c8b9f8be22dd192a1c | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
... | /**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error
*/ | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
require(b != 0);
return a % b;
}
| /**
* @dev Divides two unsigned integers and returns the remainder (unsigned integer modulo),
* reverts when dividing by zero.
*/ | NatSpecMultiLine | v0.5.2+commit.1df8f40c | MIT | bzzr://13770479a832772d12e13b28f442da07b230a2bba12ca05d8b39792fc4a0c224 | {
"func_code_index": [
1664,
1793
]
} | 60,316 |
EWLTC | EWLTC.sol | 0x41c7a6cbbf1293cfe98cb7c8b9f8be22dd192a1c | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* https://eips.ethereum.org/EIPS/eip-20
* Originally based on code by FirstBlood:
* https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*
* This implementation emits additional Approva... | NatSpecMultiLine | totalSupply | function totalSupply() public view returns (uint256) {
return _totalSupply;
}
| /**
* @dev Total number of tokens in existence
*/ | NatSpecMultiLine | v0.5.2+commit.1df8f40c | MIT | bzzr://13770479a832772d12e13b28f442da07b230a2bba12ca05d8b39792fc4a0c224 | {
"func_code_index": [
297,
393
]
} | 60,317 |
EWLTC | EWLTC.sol | 0x41c7a6cbbf1293cfe98cb7c8b9f8be22dd192a1c | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* https://eips.ethereum.org/EIPS/eip-20
* Originally based on code by FirstBlood:
* https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*
* This implementation emits additional Approva... | NatSpecMultiLine | balanceOf | function balanceOf(address owner) public view returns (uint256) {
return _balances[owner];
}
| /**
* @dev Gets the balance of the specified address.
* @param owner The address to query the balance of.
* @return A uint256 representing the amount owned by the passed address.
*/ | NatSpecMultiLine | v0.5.2+commit.1df8f40c | MIT | bzzr://13770479a832772d12e13b28f442da07b230a2bba12ca05d8b39792fc4a0c224 | {
"func_code_index": [
607,
718
]
} | 60,318 |
EWLTC | EWLTC.sol | 0x41c7a6cbbf1293cfe98cb7c8b9f8be22dd192a1c | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* https://eips.ethereum.org/EIPS/eip-20
* Originally based on code by FirstBlood:
* https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*
* This implementation emits additional Approva... | NatSpecMultiLine | allowance | function allowance(address owner, address spender) public view returns (uint256) {
return _allowed[owner][spender];
}
| /**
* @dev Function to check the amount of tokens that an owner allowed to a spender.
* @param owner address The address which owns the funds.
* @param spender address The address which will spend the funds.
* @return A uint256 specifying the amount of tokens still available for the spender.
*/ | NatSpecMultiLine | v0.5.2+commit.1df8f40c | MIT | bzzr://13770479a832772d12e13b28f442da07b230a2bba12ca05d8b39792fc4a0c224 | {
"func_code_index": [
1052,
1188
]
} | 60,319 |
EWLTC | EWLTC.sol | 0x41c7a6cbbf1293cfe98cb7c8b9f8be22dd192a1c | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* https://eips.ethereum.org/EIPS/eip-20
* Originally based on code by FirstBlood:
* https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*
* This implementation emits additional Approva... | NatSpecMultiLine | transfer | function transfer(address to, uint256 value) public returns (bool) {
_transfer(msg.sender, to, value);
return true;
}
| /**
* @dev Transfer token to a specified address
* @param to The address to transfer to.
* @param value The amount to be transferred.
*/ | NatSpecMultiLine | v0.5.2+commit.1df8f40c | MIT | bzzr://13770479a832772d12e13b28f442da07b230a2bba12ca05d8b39792fc4a0c224 | {
"func_code_index": [
1357,
1502
]
} | 60,320 |
EWLTC | EWLTC.sol | 0x41c7a6cbbf1293cfe98cb7c8b9f8be22dd192a1c | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* https://eips.ethereum.org/EIPS/eip-20
* Originally based on code by FirstBlood:
* https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*
* This implementation emits additional Approva... | NatSpecMultiLine | approve | function approve(address spender, uint256 value) public returns (bool) {
_approve(msg.sender, spender, value);
return true;
}
| /**
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
* Beware that changing an allowance with this method brings the risk that someone may use both the old
* and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
* race... | NatSpecMultiLine | v0.5.2+commit.1df8f40c | MIT | bzzr://13770479a832772d12e13b28f442da07b230a2bba12ca05d8b39792fc4a0c224 | {
"func_code_index": [
2144,
2297
]
} | 60,321 |
EWLTC | EWLTC.sol | 0x41c7a6cbbf1293cfe98cb7c8b9f8be22dd192a1c | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* https://eips.ethereum.org/EIPS/eip-20
* Originally based on code by FirstBlood:
* https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*
* This implementation emits additional Approva... | NatSpecMultiLine | transferFrom | function transferFrom(address from, address to, uint256 value) public returns (bool) {
_transfer(from, to, value);
_approve(from, msg.sender, _allowed[from][msg.sender].sub(value));
return true;
}
| /**
* @dev Transfer tokens from one address to another.
* Note that while this function emits an Approval event, this is not required as per the specification,
* and other compliant implementations may not emit the event.
* @param from address The address which you want to send tokens from
* @param to address... | NatSpecMultiLine | v0.5.2+commit.1df8f40c | MIT | bzzr://13770479a832772d12e13b28f442da07b230a2bba12ca05d8b39792fc4a0c224 | {
"func_code_index": [
2765,
2998
]
} | 60,322 |
EWLTC | EWLTC.sol | 0x41c7a6cbbf1293cfe98cb7c8b9f8be22dd192a1c | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* https://eips.ethereum.org/EIPS/eip-20
* Originally based on code by FirstBlood:
* https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*
* This implementation emits additional Approva... | NatSpecMultiLine | increaseAllowance | function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
_approve(msg.sender, spender, _allowed[msg.sender][spender].add(addedValue));
return true;
}
| /**
* @dev Increase the amount of tokens that an owner allowed to a spender.
* approve should be called when _allowed[msg.sender][spender] == 0. To increment
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
* Emits... | NatSpecMultiLine | v0.5.2+commit.1df8f40c | MIT | bzzr://13770479a832772d12e13b28f442da07b230a2bba12ca05d8b39792fc4a0c224 | {
"func_code_index": [
3519,
3727
]
} | 60,323 |
EWLTC | EWLTC.sol | 0x41c7a6cbbf1293cfe98cb7c8b9f8be22dd192a1c | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* https://eips.ethereum.org/EIPS/eip-20
* Originally based on code by FirstBlood:
* https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*
* This implementation emits additional Approva... | NatSpecMultiLine | decreaseAllowance | function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
_approve(msg.sender, spender, _allowed[msg.sender][spender].sub(subtractedValue));
return true;
}
| /**
* @dev Decrease the amount of tokens that an owner allowed to a spender.
* approve should be called when _allowed[msg.sender][spender] == 0. To decrement
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
* Emits... | NatSpecMultiLine | v0.5.2+commit.1df8f40c | MIT | bzzr://13770479a832772d12e13b28f442da07b230a2bba12ca05d8b39792fc4a0c224 | {
"func_code_index": [
4253,
4471
]
} | 60,324 |
EWLTC | EWLTC.sol | 0x41c7a6cbbf1293cfe98cb7c8b9f8be22dd192a1c | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* https://eips.ethereum.org/EIPS/eip-20
* Originally based on code by FirstBlood:
* https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*
* This implementation emits additional Approva... | NatSpecMultiLine | _transfer | function _transfer(address from, address to, uint256 value) internal {
require(to != address(0));
_balances[from] = _balances[from].sub(value);
_balances[to] = _balances[to].add(value);
emit Transfer(from, to, value);
}
| /**
* @dev Transfer token for a specified addresses
* @param from The address to transfer from.
* @param to The address to transfer to.
* @param value The amount to be transferred.
*/ | NatSpecMultiLine | v0.5.2+commit.1df8f40c | MIT | bzzr://13770479a832772d12e13b28f442da07b230a2bba12ca05d8b39792fc4a0c224 | {
"func_code_index": [
4693,
4960
]
} | 60,325 |
EWLTC | EWLTC.sol | 0x41c7a6cbbf1293cfe98cb7c8b9f8be22dd192a1c | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* https://eips.ethereum.org/EIPS/eip-20
* Originally based on code by FirstBlood:
* https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*
* This implementation emits additional Approva... | NatSpecMultiLine | _mint | function _mint(address account, uint256 value) internal {
require(account != address(0));
_totalSupply = _totalSupply.add(value);
_balances[account] = _balances[account].add(value);
emit Transfer(address(0), account, value);
}
| /**
* @dev Internal function that mints an amount of the token and assigns it to
* an account. This encapsulates the modification of balances such that the
* proper events are emitted.
* @param account The account that will receive the created tokens.
* @param value The amount that will be created.
*/ | NatSpecMultiLine | v0.5.2+commit.1df8f40c | MIT | bzzr://13770479a832772d12e13b28f442da07b230a2bba12ca05d8b39792fc4a0c224 | {
"func_code_index": [
5307,
5581
]
} | 60,326 |
EWLTC | EWLTC.sol | 0x41c7a6cbbf1293cfe98cb7c8b9f8be22dd192a1c | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* https://eips.ethereum.org/EIPS/eip-20
* Originally based on code by FirstBlood:
* https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*
* This implementation emits additional Approva... | NatSpecMultiLine | _burn | function _burn(address account, uint256 value) internal {
require(account != address(0));
_totalSupply = _totalSupply.sub(value);
_balances[account] = _balances[account].sub(value);
emit Transfer(account, address(0), value);
}
| /**
* @dev Internal function that burns an amount of the token of a given
* account.
* @param account The account whose tokens will be burnt.
* @param value The amount that will be burnt.
*/ | NatSpecMultiLine | v0.5.2+commit.1df8f40c | MIT | bzzr://13770479a832772d12e13b28f442da07b230a2bba12ca05d8b39792fc4a0c224 | {
"func_code_index": [
5810,
6084
]
} | 60,327 |
EWLTC | EWLTC.sol | 0x41c7a6cbbf1293cfe98cb7c8b9f8be22dd192a1c | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* https://eips.ethereum.org/EIPS/eip-20
* Originally based on code by FirstBlood:
* https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*
* This implementation emits additional Approva... | NatSpecMultiLine | _approve | function _approve(address owner, address spender, uint256 value) internal {
require(spender != address(0));
require(owner != address(0));
_allowed[owner][spender] = value;
emit Approval(owner, spender, value);
}
| /**
* @dev Approve an address to spend another addresses' tokens.
* @param owner The address that owns the tokens.
* @param spender The address that will spend the tokens.
* @param value The number of tokens that can be spent.
*/ | NatSpecMultiLine | v0.5.2+commit.1df8f40c | MIT | bzzr://13770479a832772d12e13b28f442da07b230a2bba12ca05d8b39792fc4a0c224 | {
"func_code_index": [
6352,
6611
]
} | 60,328 |
EWLTC | EWLTC.sol | 0x41c7a6cbbf1293cfe98cb7c8b9f8be22dd192a1c | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* https://eips.ethereum.org/EIPS/eip-20
* Originally based on code by FirstBlood:
* https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*
* This implementation emits additional Approva... | NatSpecMultiLine | _burnFrom | function _burnFrom(address account, uint256 value) internal {
_burn(account, value);
_approve(account, msg.sender, _allowed[account][msg.sender].sub(value));
}
| /**
* @dev Internal function that burns an amount of the token of a given
* account, deducting from the sender's allowance for said account. Uses the
* internal burn function.
* Emits an Approval event (reflecting the reduced allowance).
* @param account The account whose tokens will be burnt.
* @param valu... | NatSpecMultiLine | v0.5.2+commit.1df8f40c | MIT | bzzr://13770479a832772d12e13b28f442da07b230a2bba12ca05d8b39792fc4a0c224 | {
"func_code_index": [
7005,
7192
]
} | 60,329 |
EWLTC | EWLTC.sol | 0x41c7a6cbbf1293cfe98cb7c8b9f8be22dd192a1c | Solidity | ERC20Detailed | contract ERC20Detailed is IERC20 {
string private _name;
string private _symbol;
uint8 private _decimals;
constructor (string memory name, string memory symbol, uint8 decimals) public {
_name = name;
_symbol = symbol;
_decimals = decimals;
}
/**
* @retu... | /**
* @title ERC20Detailed token
* @dev The decimals are only for visualization purposes.
* All the operations are done using the smallest and indivisible token unit,
* just as on Ethereum all the operations are done in wei.
*/ | NatSpecMultiLine | name | function name() public view returns (string memory) {
return _name;
}
| /**
* @return the name of the token.
*/ | NatSpecMultiLine | v0.5.2+commit.1df8f40c | MIT | bzzr://13770479a832772d12e13b28f442da07b230a2bba12ca05d8b39792fc4a0c224 | {
"func_code_index": [
356,
444
]
} | 60,330 |
EWLTC | EWLTC.sol | 0x41c7a6cbbf1293cfe98cb7c8b9f8be22dd192a1c | Solidity | ERC20Detailed | contract ERC20Detailed is IERC20 {
string private _name;
string private _symbol;
uint8 private _decimals;
constructor (string memory name, string memory symbol, uint8 decimals) public {
_name = name;
_symbol = symbol;
_decimals = decimals;
}
/**
* @retu... | /**
* @title ERC20Detailed token
* @dev The decimals are only for visualization purposes.
* All the operations are done using the smallest and indivisible token unit,
* just as on Ethereum all the operations are done in wei.
*/ | NatSpecMultiLine | symbol | function symbol() public view returns (string memory) {
return _symbol;
}
| /**
* @return the symbol of the token.
*/ | NatSpecMultiLine | v0.5.2+commit.1df8f40c | MIT | bzzr://13770479a832772d12e13b28f442da07b230a2bba12ca05d8b39792fc4a0c224 | {
"func_code_index": [
506,
598
]
} | 60,331 |
EWLTC | EWLTC.sol | 0x41c7a6cbbf1293cfe98cb7c8b9f8be22dd192a1c | Solidity | ERC20Detailed | contract ERC20Detailed is IERC20 {
string private _name;
string private _symbol;
uint8 private _decimals;
constructor (string memory name, string memory symbol, uint8 decimals) public {
_name = name;
_symbol = symbol;
_decimals = decimals;
}
/**
* @retu... | /**
* @title ERC20Detailed token
* @dev The decimals are only for visualization purposes.
* All the operations are done using the smallest and indivisible token unit,
* just as on Ethereum all the operations are done in wei.
*/ | NatSpecMultiLine | decimals | function decimals() public view returns (uint8) {
return _decimals;
}
| /**
* @return the number of decimals of the token.
*/ | NatSpecMultiLine | v0.5.2+commit.1df8f40c | MIT | bzzr://13770479a832772d12e13b28f442da07b230a2bba12ca05d8b39792fc4a0c224 | {
"func_code_index": [
672,
760
]
} | 60,332 |
EWLTC | EWLTC.sol | 0x41c7a6cbbf1293cfe98cb7c8b9f8be22dd192a1c | Solidity | Ownable | contract Ownable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor () internal {
_owner = m... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @return the address of the owner.
*/ | NatSpecMultiLine | v0.5.2+commit.1df8f40c | MIT | bzzr://13770479a832772d12e13b28f442da07b230a2bba12ca05d8b39792fc4a0c224 | {
"func_code_index": [
457,
541
]
} | 60,333 |
EWLTC | EWLTC.sol | 0x41c7a6cbbf1293cfe98cb7c8b9f8be22dd192a1c | Solidity | Ownable | contract Ownable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor () internal {
_owner = m... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | isOwner | function isOwner() public view returns (bool) {
return msg.sender == _owner;
}
| /**
* @return true if `msg.sender` is the owner of the contract.
*/ | NatSpecMultiLine | v0.5.2+commit.1df8f40c | MIT | bzzr://13770479a832772d12e13b28f442da07b230a2bba12ca05d8b39792fc4a0c224 | {
"func_code_index": [
792,
889
]
} | 60,334 |
EWLTC | EWLTC.sol | 0x41c7a6cbbf1293cfe98cb7c8b9f8be22dd192a1c | Solidity | Ownable | contract Ownable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor () internal {
_owner = m... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | renounceOwnership | function renounceOwnership() public onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
| /**
* @dev Allows the current owner to relinquish control of the contract.
* It will not be possible to call the functions with the `onlyOwner`
* modifier anymore.
* @notice Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.... | NatSpecMultiLine | v0.5.2+commit.1df8f40c | MIT | bzzr://13770479a832772d12e13b28f442da07b230a2bba12ca05d8b39792fc4a0c224 | {
"func_code_index": [
1247,
1392
]
} | 60,335 |
EWLTC | EWLTC.sol | 0x41c7a6cbbf1293cfe98cb7c8b9f8be22dd192a1c | Solidity | Ownable | contract Ownable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor () internal {
_owner = m... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public onlyOwner {
_transferOwnership(newOwner);
}
| /**
* @dev Allows the current owner to transfer control of the contract to a newOwner.
* @param newOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.5.2+commit.1df8f40c | MIT | bzzr://13770479a832772d12e13b28f442da07b230a2bba12ca05d8b39792fc4a0c224 | {
"func_code_index": [
1564,
1678
]
} | 60,336 |
EWLTC | EWLTC.sol | 0x41c7a6cbbf1293cfe98cb7c8b9f8be22dd192a1c | Solidity | Ownable | contract Ownable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor () internal {
_owner = m... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | _transferOwnership | function _transferOwnership(address newOwner) internal {
require(newOwner != address(0));
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers control of the contract to a newOwner.
* @param newOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.5.2+commit.1df8f40c | MIT | bzzr://13770479a832772d12e13b28f442da07b230a2bba12ca05d8b39792fc4a0c224 | {
"func_code_index": [
1823,
2015
]
} | 60,337 |
BUNI | BUNI.sol | 0x102b83d2cbf1a8a1f798d1175c8c3ee55565d520 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | isContract | function isContract(address account) internal view returns (bool) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codeha... | /**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://d9e676ccdb1c72c70d810e89cdb10dc2584ee72e5fa9a219e7ef7782495fcbb0 | {
"func_code_index": [
606,
1230
]
} | 60,338 | ||
BUNI | BUNI.sol | 0x102b83d2cbf1a8a1f798d1175c8c3ee55565d520 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | sendValue | function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address... | /**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `tr... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://d9e676ccdb1c72c70d810e89cdb10dc2584ee72e5fa9a219e7ef7782495fcbb0 | {
"func_code_index": [
2160,
2562
]
} | 60,339 | ||
BUNI | BUNI.sol | 0x102b83d2cbf1a8a1f798d1175c8c3ee55565d520 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | functionCall | function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
| /**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw ... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://d9e676ccdb1c72c70d810e89cdb10dc2584ee72e5fa9a219e7ef7782495fcbb0 | {
"func_code_index": [
3318,
3496
]
} | 60,340 | ||
BUNI | BUNI.sol | 0x102b83d2cbf1a8a1f798d1175c8c3ee55565d520 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | functionCall | function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return _functionCallWithValue(target, data, 0, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://d9e676ccdb1c72c70d810e89cdb10dc2584ee72e5fa9a219e7ef7782495fcbb0 | {
"func_code_index": [
3721,
3922
]
} | 60,341 | ||
BUNI | BUNI.sol | 0x102b83d2cbf1a8a1f798d1175c8c3ee55565d520 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://d9e676ccdb1c72c70d810e89cdb10dc2584ee72e5fa9a219e7ef7782495fcbb0 | {
"func_code_index": [
4292,
4523
]
} | 60,342 | ||
BUNI | BUNI.sol | 0x102b83d2cbf1a8a1f798d1175c8c3ee55565d520 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
return _functionCallWithValue(target, data, value, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://d9e676ccdb1c72c70d810e89cdb10dc2584ee72e5fa9a219e7ef7782495fcbb0 | {
"func_code_index": [
4774,
5095
]
} | 60,343 | ||
BUNI | BUNI.sol | 0x102b83d2cbf1a8a1f798d1175c8c3ee55565d520 | 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);
/**... | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://d9e676ccdb1c72c70d810e89cdb10dc2584ee72e5fa9a219e7ef7782495fcbb0 | {
"func_code_index": [
94,
154
]
} | 60,344 | ||
BUNI | BUNI.sol | 0x102b83d2cbf1a8a1f798d1175c8c3ee55565d520 | 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.6.12+commit.27d51765 | MIT | ipfs://d9e676ccdb1c72c70d810e89cdb10dc2584ee72e5fa9a219e7ef7782495fcbb0 | {
"func_code_index": [
237,
310
]
} | 60,345 | ||
BUNI | BUNI.sol | 0x102b83d2cbf1a8a1f798d1175c8c3ee55565d520 | 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.s
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://d9e676ccdb1c72c70d810e89cdb10dc2584ee72e5fa9a219e7ef7782495fcbb0 | {
"func_code_index": [
535,
617
]
} | 60,346 | ||
BUNI | BUNI.sol | 0x102b83d2cbf1a8a1f798d1175c8c3ee55565d520 | 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.6.12+commit.27d51765 | MIT | ipfs://d9e676ccdb1c72c70d810e89cdb10dc2584ee72e5fa9a219e7ef7782495fcbb0 | {
"func_code_index": [
896,
984
]
} | 60,347 | ||
BUNI | BUNI.sol | 0x102b83d2cbf1a8a1f798d1175c8c3ee55565d520 | 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.6.12+commit.27d51765 | MIT | ipfs://d9e676ccdb1c72c70d810e89cdb10dc2584ee72e5fa9a219e7ef7782495fcbb0 | {
"func_code_index": [
1648,
1727
]
} | 60,348 | ||
BUNI | BUNI.sol | 0x102b83d2cbf1a8a1f798d1175c8c3ee55565d520 | 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.6.12+commit.27d51765 | MIT | ipfs://d9e676ccdb1c72c70d810e89cdb10dc2584ee72e5fa9a219e7ef7782495fcbb0 | {
"func_code_index": [
2040,
2142
]
} | 60,349 | ||
BUNI | BUNI.sol | 0x102b83d2cbf1a8a1f798d1175c8c3ee55565d520 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://d9e676ccdb1c72c70d810e89cdb10dc2584ee72e5fa9a219e7ef7782495fcbb0 | {
"func_code_index": [
259,
445
]
} | 60,350 | ||
BUNI | BUNI.sol | 0x102b83d2cbf1a8a1f798d1175c8c3ee55565d520 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://d9e676ccdb1c72c70d810e89cdb10dc2584ee72e5fa9a219e7ef7782495fcbb0 | {
"func_code_index": [
723,
864
]
} | 60,351 | ||
BUNI | BUNI.sol | 0x102b83d2cbf1a8a1f798d1175c8c3ee55565d520 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://d9e676ccdb1c72c70d810e89cdb10dc2584ee72e5fa9a219e7ef7782495fcbb0 | {
"func_code_index": [
1162,
1359
]
} | 60,352 | ||
BUNI | BUNI.sol | 0x102b83d2cbf1a8a1f798d1175c8c3ee55565d520 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://d9e676ccdb1c72c70d810e89cdb10dc2584ee72e5fa9a219e7ef7782495fcbb0 | {
"func_code_index": [
1613,
2089
]
} | 60,353 | ||
BUNI | BUNI.sol | 0x102b83d2cbf1a8a1f798d1175c8c3ee55565d520 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://d9e676ccdb1c72c70d810e89cdb10dc2584ee72e5fa9a219e7ef7782495fcbb0 | {
"func_code_index": [
2560,
2697
]
} | 0 | ||
BUNI | BUNI.sol | 0x102b83d2cbf1a8a1f798d1175c8c3ee55565d520 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://d9e676ccdb1c72c70d810e89cdb10dc2584ee72e5fa9a219e7ef7782495fcbb0 | {
"func_code_index": [
3188,
3471
]
} | 1 | ||
BUNI | BUNI.sol | 0x102b83d2cbf1a8a1f798d1175c8c3ee55565d520 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://d9e676ccdb1c72c70d810e89cdb10dc2584ee72e5fa9a219e7ef7782495fcbb0 | {
"func_code_index": [
3931,
4066
]
} | 2 | ||
BUNI | BUNI.sol | 0x102b83d2cbf1a8a1f798d1175c8c3ee55565d520 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://d9e676ccdb1c72c70d810e89cdb10dc2584ee72e5fa9a219e7ef7782495fcbb0 | {
"func_code_index": [
4546,
4717
]
} | 3 | ||
BUNI | BUNI.sol | 0x102b83d2cbf1a8a1f798d1175c8c3ee55565d520 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSend... | owner | function owner() public view returns (address) {
return address(0);
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://d9e676ccdb1c72c70d810e89cdb10dc2584ee72e5fa9a219e7ef7782495fcbb0 | {
"func_code_index": [
497,
585
]
} | 4 | ||
BUNI | BUNI.sol | 0x102b83d2cbf1a8a1f798d1175c8c3ee55565d520 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSend... | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://d9e676ccdb1c72c70d810e89cdb10dc2584ee72e5fa9a219e7ef7782495fcbb0 | {
"func_code_index": [
1143,
1266
]
} | 5 | ||
BUNI | BUNI.sol | 0x102b83d2cbf1a8a1f798d1175c8c3ee55565d520 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSend... | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://d9e676ccdb1c72c70d810e89cdb10dc2584ee72e5fa9a219e7ef7782495fcbb0 | {
"func_code_index": [
1416,
1665
]
} | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.