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
UniV3LiquidityAMO_V2
contracts/Misc_AMOs/UniV3LiquidityAMO_V2.sol
0xc91bb4b0696e3b48c0c501b4ce8e7244fc363a79
Solidity
UniV3LiquidityAMO_V2
contract UniV3LiquidityAMO_V2 is Owned { using SafeMath for uint256; using SafeERC20 for ERC20; /* ========== STATE VARIABLES ========== */ // Core FRAXStablecoin private FRAX; FRAXShares private FXS; IFraxAMOMinter private amo_minter; ERC20 private giveback_collateral; address pub...
mintedBalance
function mintedBalance() public view returns (int256) { return amo_minter.frax_mint_balances(address(this)); }
// Backwards compatibility
LineComment
v0.8.6+commit.11564f7e
{ "func_code_index": [ 7564, 7690 ] }
800
UniV3LiquidityAMO_V2
contracts/Misc_AMOs/UniV3LiquidityAMO_V2.sol
0xc91bb4b0696e3b48c0c501b4ce8e7244fc363a79
Solidity
UniV3LiquidityAMO_V2
contract UniV3LiquidityAMO_V2 is Owned { using SafeMath for uint256; using SafeERC20 for ERC20; /* ========== STATE VARIABLES ========== */ // Core FRAXStablecoin private FRAX; FRAXShares private FXS; IFraxAMOMinter private amo_minter; ERC20 private giveback_collateral; address pub...
collateralBalance
function collateralBalance() public view returns (int256) { return amo_minter.collat_borrowed_balances(address(this)); }
// Backwards compatibility
LineComment
v0.8.6+commit.11564f7e
{ "func_code_index": [ 7723, 7859 ] }
801
UniV3LiquidityAMO_V2
contracts/Misc_AMOs/UniV3LiquidityAMO_V2.sol
0xc91bb4b0696e3b48c0c501b4ce8e7244fc363a79
Solidity
UniV3LiquidityAMO_V2
contract UniV3LiquidityAMO_V2 is Owned { using SafeMath for uint256; using SafeERC20 for ERC20; /* ========== STATE VARIABLES ========== */ // Core FRAXStablecoin private FRAX; FRAXShares private FXS; IFraxAMOMinter private amo_minter; ERC20 private giveback_collateral; address pub...
numPositions
function numPositions() public view returns (uint256) { return positions_array.length; }
// Only counts non-withdrawn positions
LineComment
v0.8.6+commit.11564f7e
{ "func_code_index": [ 7904, 8008 ] }
802
UniV3LiquidityAMO_V2
contracts/Misc_AMOs/UniV3LiquidityAMO_V2.sol
0xc91bb4b0696e3b48c0c501b4ce8e7244fc363a79
Solidity
UniV3LiquidityAMO_V2
contract UniV3LiquidityAMO_V2 is Owned { using SafeMath for uint256; using SafeERC20 for ERC20; /* ========== STATE VARIABLES ========== */ // Core FRAXStablecoin private FRAX; FRAXShares private FXS; IFraxAMOMinter private amo_minter; ERC20 private giveback_collateral; address pub...
collectFees
function collectFees() external onlyByOwnGovCust { for (uint i = 0; i < positions_array.length; i++){ Position memory current_position = positions_array[i]; INonfungiblePositionManager.CollectParams memory collect_params = INonfungiblePositionManager.CollectParams( current_position.token...
// Iterate through all positions and collect fees accumulated
LineComment
v0.8.6+commit.11564f7e
{ "func_code_index": [ 8279, 8853 ] }
803
UniV3LiquidityAMO_V2
contracts/Misc_AMOs/UniV3LiquidityAMO_V2.sol
0xc91bb4b0696e3b48c0c501b4ce8e7244fc363a79
Solidity
UniV3LiquidityAMO_V2
contract UniV3LiquidityAMO_V2 is Owned { using SafeMath for uint256; using SafeERC20 for ERC20; /* ========== STATE VARIABLES ========== */ // Core FRAXStablecoin private FRAX; FRAXShares private FXS; IFraxAMOMinter private amo_minter; ERC20 private giveback_collateral; address pub...
approveTarget
function approveTarget(address _target, address _token, uint256 _amount, bool use_safe_approve) public onlyByOwnGov { if (use_safe_approve) { // safeApprove needed for USDT and others for the first approval // You need to approve 0 every time beforehand for USDT: it resets TransferHelper.saf...
/* ---------------------------------------------------- */
Comment
v0.8.6+commit.11564f7e
{ "func_code_index": [ 9046, 9515 ] }
804
UniV3LiquidityAMO_V2
contracts/Misc_AMOs/UniV3LiquidityAMO_V2.sol
0xc91bb4b0696e3b48c0c501b4ce8e7244fc363a79
Solidity
UniV3LiquidityAMO_V2
contract UniV3LiquidityAMO_V2 is Owned { using SafeMath for uint256; using SafeERC20 for ERC20; /* ========== STATE VARIABLES ========== */ // Core FRAXStablecoin private FRAX; FRAXShares private FXS; IFraxAMOMinter private amo_minter; ERC20 private giveback_collateral; address pub...
addLiquidity
function addLiquidity(address _tokenA, address _tokenB, int24 _tickLower, int24 _tickUpper, uint24 _fee, uint256 _amount0Desired, uint256 _amount1Desired, uint256 _amount0Min, uint256 _amount1Min) public onlyByOwnGov { // Make sure the collateral is allowed require(allowed_collaterals[_tokenA] || _tokenA == add...
// IUniswapV3Pool public current_uni_pool; // only used for mint callback; is set and accessed during execution of addLiquidity()
LineComment
v0.8.6+commit.11564f7e
{ "func_code_index": [ 9651, 11208 ] }
805
UniV3LiquidityAMO_V2
contracts/Misc_AMOs/UniV3LiquidityAMO_V2.sol
0xc91bb4b0696e3b48c0c501b4ce8e7244fc363a79
Solidity
UniV3LiquidityAMO_V2
contract UniV3LiquidityAMO_V2 is Owned { using SafeMath for uint256; using SafeERC20 for ERC20; /* ========== STATE VARIABLES ========== */ // Core FRAXStablecoin private FRAX; FRAXShares private FXS; IFraxAMOMinter private amo_minter; ERC20 private giveback_collateral; address pub...
swap
function swap(address _tokenA, address _tokenB, uint24 _fee_tier, uint256 _amountAtoB, uint256 _amountOutMinimum, uint160 _sqrtPriceLimitX96) public onlyByOwnGov returns (uint256) { // Make sure the collateral is allowed require(allowed_collaterals[_tokenA] || _tokenA == address(FRAX), "TokenA not allowed"); ...
// Swap tokenA into tokenB using univ3_router.ExactInputSingle() // Uni V3 only
LineComment
v0.8.6+commit.11564f7e
{ "func_code_index": [ 12218, 13202 ] }
806
UniV3LiquidityAMO_V2
contracts/Misc_AMOs/UniV3LiquidityAMO_V2.sol
0xc91bb4b0696e3b48c0c501b4ce8e7244fc363a79
Solidity
UniV3LiquidityAMO_V2
contract UniV3LiquidityAMO_V2 is Owned { using SafeMath for uint256; using SafeERC20 for ERC20; /* ========== STATE VARIABLES ========== */ // Core FRAXStablecoin private FRAX; FRAXShares private FXS; IFraxAMOMinter private amo_minter; ERC20 private giveback_collateral; address pub...
giveCollatBack
function giveCollatBack(uint256 collat_amount) external onlyByOwnGovCust { giveback_collateral.approve(address(amo_minter), collat_amount); amo_minter.receiveCollatFromAMO(collat_amount); }
// Give USDC profits back. Goes through the minter
LineComment
v0.8.6+commit.11564f7e
{ "func_code_index": [ 13312, 13525 ] }
807
UniV3LiquidityAMO_V2
contracts/Misc_AMOs/UniV3LiquidityAMO_V2.sol
0xc91bb4b0696e3b48c0c501b4ce8e7244fc363a79
Solidity
UniV3LiquidityAMO_V2
contract UniV3LiquidityAMO_V2 is Owned { using SafeMath for uint256; using SafeERC20 for ERC20; /* ========== STATE VARIABLES ========== */ // Core FRAXStablecoin private FRAX; FRAXShares private FXS; IFraxAMOMinter private amo_minter; ERC20 private giveback_collateral; address pub...
burnFRAX
function burnFRAX(uint256 frax_amount) public onlyByOwnGovCust { FRAX.approve(address(amo_minter), frax_amount); amo_minter.burnFraxFromAMO(frax_amount); }
// Burn unneeded or excess FRAX. Goes through the minter
LineComment
v0.8.6+commit.11564f7e
{ "func_code_index": [ 13588, 13767 ] }
808
UniV3LiquidityAMO_V2
contracts/Misc_AMOs/UniV3LiquidityAMO_V2.sol
0xc91bb4b0696e3b48c0c501b4ce8e7244fc363a79
Solidity
UniV3LiquidityAMO_V2
contract UniV3LiquidityAMO_V2 is Owned { using SafeMath for uint256; using SafeERC20 for ERC20; /* ========== STATE VARIABLES ========== */ // Core FRAXStablecoin private FRAX; FRAXShares private FXS; IFraxAMOMinter private amo_minter; ERC20 private giveback_collateral; address pub...
burnFXS
function burnFXS(uint256 fxs_amount) public onlyByOwnGovCust { FXS.approve(address(amo_minter), fxs_amount); amo_minter.burnFxsFromAMO(fxs_amount); }
// Burn unneeded FXS. Goes through the minter
LineComment
v0.8.6+commit.11564f7e
{ "func_code_index": [ 13819, 13992 ] }
809
UniV3LiquidityAMO_V2
contracts/Misc_AMOs/UniV3LiquidityAMO_V2.sol
0xc91bb4b0696e3b48c0c501b4ce8e7244fc363a79
Solidity
UniV3LiquidityAMO_V2
contract UniV3LiquidityAMO_V2 is Owned { using SafeMath for uint256; using SafeERC20 for ERC20; /* ========== STATE VARIABLES ========== */ // Core FRAXStablecoin private FRAX; FRAXShares private FXS; IFraxAMOMinter private amo_minter; ERC20 private giveback_collateral; address pub...
addCollateral
function addCollateral(address collat_addr) public onlyByOwnGov { require(collat_addr != address(0), "Zero address detected"); require(collat_addr != address(FRAX), "FRAX is not collateral"); require(allowed_collaterals[collat_addr] == false, "Address already exists"); allowed_collaterals[collat_addr] ...
// Only owner or timelock can call, to limit risk // Adds collateral addresses supported. Needed to make sure dollarBalances is correct
LineComment
v0.8.6+commit.11564f7e
{ "func_code_index": [ 14205, 14606 ] }
810
UniV3LiquidityAMO_V2
contracts/Misc_AMOs/UniV3LiquidityAMO_V2.sol
0xc91bb4b0696e3b48c0c501b4ce8e7244fc363a79
Solidity
UniV3LiquidityAMO_V2
contract UniV3LiquidityAMO_V2 is Owned { using SafeMath for uint256; using SafeERC20 for ERC20; /* ========== STATE VARIABLES ========== */ // Core FRAXStablecoin private FRAX; FRAXShares private FXS; IFraxAMOMinter private amo_minter; ERC20 private giveback_collateral; address pub...
addOracle
function addOracle(address collat_addr, address oracle) public onlyByOwnGov { require(collat_addr != address(0), "Zero address detected"); require(collat_addr != address(FRAX), "FRAX is not collateral"); oracles[collat_addr] = OracleLike(oracle); }
// Adds oracle for collateral. Optional for 1usd pegged coins.
LineComment
v0.8.6+commit.11564f7e
{ "func_code_index": [ 14675, 14956 ] }
811
UniV3LiquidityAMO_V2
contracts/Misc_AMOs/UniV3LiquidityAMO_V2.sol
0xc91bb4b0696e3b48c0c501b4ce8e7244fc363a79
Solidity
UniV3LiquidityAMO_V2
contract UniV3LiquidityAMO_V2 is Owned { using SafeMath for uint256; using SafeERC20 for ERC20; /* ========== STATE VARIABLES ========== */ // Core FRAXStablecoin private FRAX; FRAXShares private FXS; IFraxAMOMinter private amo_minter; ERC20 private giveback_collateral; address pub...
execute
function execute( address _to, uint256 _value, bytes calldata _data ) external onlyByOwnGov returns (bool, bytes memory) { (bool success, bytes memory result) = _to.call{value:_value}(_data); return (success, result); }
// Generic proxy
LineComment
v0.8.6+commit.11564f7e
{ "func_code_index": [ 15797, 16068 ] }
812
ChibiDinosHalloWeen
contracts/ChibiDinosHalloWeen.sol
0x8fba374c20d8f8e837d50748a4a9c2c62ea74f35
Solidity
ChibiDinosHalloWeen
contract ChibiDinosHalloWeen is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; string public notRevealedUri; uint256 public cost = 0.1 ether; uint256 public maxSupply = 3000; uint256 public maxMintAmount = 18; uint256 public...
_baseURI
function _baseURI() internal view virtual override returns (string memory) { return baseURI; }
// internal
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://f45300ce30cc3f4de344a93f0329d9844de31733a00e5211e9005bec86443cc8
{ "func_code_index": [ 823, 928 ] }
813
ChibiDinosHalloWeen
contracts/ChibiDinosHalloWeen.sol
0x8fba374c20d8f8e837d50748a4a9c2c62ea74f35
Solidity
ChibiDinosHalloWeen
contract ChibiDinosHalloWeen is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; string public notRevealedUri; uint256 public cost = 0.1 ether; uint256 public maxSupply = 3000; uint256 public maxMintAmount = 18; uint256 public...
mint
function mint(uint256 _mintAmount) public payable { require(!paused, "the contract is paused"); uint256 supply = totalSupply(); _mintAmount = _mintAmount * 6; require(_mintAmount > 0, "need to mint at least 1 NFT"); require(_mintAmount <= maxMintAmount, "max mint amount per session exceeded"); requi...
// public
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://f45300ce30cc3f4de344a93f0329d9844de31733a00e5211e9005bec86443cc8
{ "func_code_index": [ 944, 1977 ] }
814
ChibiDinosHalloWeen
contracts/ChibiDinosHalloWeen.sol
0x8fba374c20d8f8e837d50748a4a9c2c62ea74f35
Solidity
ChibiDinosHalloWeen
contract ChibiDinosHalloWeen is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; string public notRevealedUri; uint256 public cost = 0.1 ether; uint256 public maxSupply = 3000; uint256 public maxMintAmount = 18; uint256 public...
reveal
function reveal() public onlyOwner { revealed = true; }
//only owner
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://f45300ce30cc3f4de344a93f0329d9844de31733a00e5211e9005bec86443cc8
{ "func_code_index": [ 3100, 3168 ] }
815
EmblemVault
browser/EmblemVault_v2.sol
0x82c7a8f707110f5fbb16184a5933e9f78a34c6ab
Solidity
EmblemVault
contract EmblemVault is NFTokenEnumerableMetadata, Ownable { /** * @dev Contract constructor. Sets metadata extension `name` and `symbol`. */ constructor() public { nftName = "Emblem Vault V2"; nftSymbol = "Emblem.pro"; } function changeName(string calldata name, string callda...
/** * @dev This is an example contract implementation of NFToken with metadata extension. */
NatSpecMultiLine
mint
function mint( address _to, uint256 _tokenId, string calldata _uri, string calldata _payload) external onlyOwner { super._mint(_to, _tokenId); super._setTokenUri(_tokenId, _uri); super._setTokenPayload(_tokenId, _payload); }
/** * @dev Mints a new NFT. * @param _to The address that will own the minted NFT. * @param _tokenId of the NFT to be minted by the msg.sender. * @param _uri String representing RFC 3986 URI. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://6626fd920334c84d658057cbe16dd3b47b41fc7475707238fefa241a53c0a511
{ "func_code_index": [ 628, 873 ] }
816
MightierThanTheSword
MightierThanTheSword.sol
0x8d10111af48659c1d8537f01880ce5995b5a6ec1
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; /** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */ function transfer(address _to, uint256 _value) pub...
transfer
function transfer(address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(_value <= balances[msg.sender]); // SafeMath.sub will throw if there is not enough balance. balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); e...
/** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */
NatSpecMultiLine
v0.4.26+commit.4563c3fc
None
bzzr://25736f9b52887ae20065dca6812b9001537be6fba8d4cb8dd0dad9b011784055
{ "func_code_index": [ 268, 664 ] }
817
MightierThanTheSword
MightierThanTheSword.sol
0x8d10111af48659c1d8537f01880ce5995b5a6ec1
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; /** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */ function transfer(address _to, uint256 _value) pub...
balanceOf
function balanceOf(address _owner) public constant returns (uint256 balance) { return balances[_owner]; }
/** * @dev Gets the balance of the specified address. * @param _owner The address to query the the balance of. * @return An uint256 representing the amount owned by the passed address. */
NatSpecMultiLine
v0.4.26+commit.4563c3fc
None
bzzr://25736f9b52887ae20065dca6812b9001537be6fba8d4cb8dd0dad9b011784055
{ "func_code_index": [ 870, 986 ] }
818
MightierThanTheSword
MightierThanTheSword.sol
0x8d10111af48659c1d8537f01880ce5995b5a6ec1
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transf...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(_value <= balances[_from]); require(_value <= allowed[_from][msg.sender]); balances[_from] = balances[_from].sub(_value); balances[_to] = balances[_to].add(_value); allowed[_...
/** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _value uint256 the amount of tokens to be transferred */
NatSpecMultiLine
v0.4.26+commit.4563c3fc
None
bzzr://25736f9b52887ae20065dca6812b9001537be6fba8d4cb8dd0dad9b011784055
{ "func_code_index": [ 401, 858 ] }
819
MightierThanTheSword
MightierThanTheSword.sol
0x8d10111af48659c1d8537f01880ce5995b5a6ec1
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transf...
approve
function approve(address _spender, uint256 _value) public returns (bool) { require((_value == 0) || (allowed[msg.sender][_spender] == 0)); allowed[msg.sender][_spender] = _value; emit Approval(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 * ...
NatSpecMultiLine
v0.4.26+commit.4563c3fc
None
bzzr://25736f9b52887ae20065dca6812b9001537be6fba8d4cb8dd0dad9b011784055
{ "func_code_index": [ 1490, 1754 ] }
820
MightierThanTheSword
MightierThanTheSword.sol
0x8d10111af48659c1d8537f01880ce5995b5a6ec1
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transf...
allowance
function allowance(address _owner, address _spender) public constant returns (uint256 remaining) { 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.4.26+commit.4563c3fc
None
bzzr://25736f9b52887ae20065dca6812b9001537be6fba8d4cb8dd0dad9b011784055
{ "func_code_index": [ 2078, 2223 ] }
821
Inke
Inke.sol
0x5301a786c6d68bf3fb97e13cb2c71e671f6fa69e
Solidity
InkeGold
contract InkeGold is ERC20Interface, Administration, SafeMath { event GoldTransfer(address indexed from, address indexed to, uint tokens); string public goldSymbol; string public goldName; uint8 public goldDecimals; uint public _goldTotalSupply; mapping(address => uint) goldBalance...
goldTotalSupply
function goldTotalSupply() public constant returns (uint) { return _goldTotalSupply - goldBalances[address(0)]; }
// ------------------------------------------------------------------------ // Total supply // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
bzzr://1d50d33bcacbc79c72c404b9ba3e0da98cc33b209a6a2c04acb355c1e24613c0
{ "func_code_index": [ 1115, 1248 ] }
822
Inke
Inke.sol
0x5301a786c6d68bf3fb97e13cb2c71e671f6fa69e
Solidity
InkeGold
contract InkeGold is ERC20Interface, Administration, SafeMath { event GoldTransfer(address indexed from, address indexed to, uint tokens); string public goldSymbol; string public goldName; uint8 public goldDecimals; uint public _goldTotalSupply; mapping(address => uint) goldBalance...
goldBalanceOf
function goldBalanceOf(address tokenOwner) public constant returns (uint balance) { return goldBalances[tokenOwner]; }
// ------------------------------------------------------------------------ // Get the token balance for account tokenOwner // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
bzzr://1d50d33bcacbc79c72c404b9ba3e0da98cc33b209a6a2c04acb355c1e24613c0
{ "func_code_index": [ 1468, 1605 ] }
823
Inke
Inke.sol
0x5301a786c6d68bf3fb97e13cb2c71e671f6fa69e
Solidity
InkeGold
contract InkeGold is ERC20Interface, Administration, SafeMath { event GoldTransfer(address indexed from, address indexed to, uint tokens); string public goldSymbol; string public goldName; uint8 public goldDecimals; uint public _goldTotalSupply; mapping(address => uint) goldBalance...
goldTransfer
function goldTransfer(address to, uint tokens) public whenNotPaused returns (bool success) { if(goldFreezed[msg.sender] == false){ goldBalances[msg.sender] = safeSub(goldBalances[msg.sender], tokens); goldBalances[to] = safeAdd(goldBalances[to], tokens); emit GoldTransfer(msg.sender, to,...
// ------------------------------------------------------------------------ // Transfer the balance from token owner's account to to account // - Owner's account must have sufficient balance to transfer // - 0 value transfers are allowed // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
bzzr://1d50d33bcacbc79c72c404b9ba3e0da98cc33b209a6a2c04acb355c1e24613c0
{ "func_code_index": [ 1949, 2780 ] }
824
Inke
Inke.sol
0x5301a786c6d68bf3fb97e13cb2c71e671f6fa69e
Solidity
InkeGold
contract InkeGold is ERC20Interface, Administration, SafeMath { event GoldTransfer(address indexed from, address indexed to, uint tokens); string public goldSymbol; string public goldName; uint8 public goldDecimals; uint public _goldTotalSupply; mapping(address => uint) goldBalance...
mintGold
function mintGold(uint amount) public onlyCEO { goldBalances[msg.sender] = safeAdd(goldBalances[msg.sender], amount); _goldTotalSupply = safeAdd(_goldTotalSupply, amount); }
// ------------------------------------------------------------------------ // Mint Tokens // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
bzzr://1d50d33bcacbc79c72c404b9ba3e0da98cc33b209a6a2c04acb355c1e24613c0
{ "func_code_index": [ 2965, 3166 ] }
825
Inke
Inke.sol
0x5301a786c6d68bf3fb97e13cb2c71e671f6fa69e
Solidity
InkeGold
contract InkeGold is ERC20Interface, Administration, SafeMath { event GoldTransfer(address indexed from, address indexed to, uint tokens); string public goldSymbol; string public goldName; uint8 public goldDecimals; uint public _goldTotalSupply; mapping(address => uint) goldBalance...
burnGold
function burnGold(uint amount) public onlyCEO { goldBalances[msg.sender] = safeSub(goldBalances[msg.sender], amount); _goldTotalSupply = safeSub(_goldTotalSupply, amount); }
// ------------------------------------------------------------------------ // Burn Tokens // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
bzzr://1d50d33bcacbc79c72c404b9ba3e0da98cc33b209a6a2c04acb355c1e24613c0
{ "func_code_index": [ 3351, 3552 ] }
826
Inke
Inke.sol
0x5301a786c6d68bf3fb97e13cb2c71e671f6fa69e
Solidity
InkeGold
contract InkeGold is ERC20Interface, Administration, SafeMath { event GoldTransfer(address indexed from, address indexed to, uint tokens); string public goldSymbol; string public goldName; uint8 public goldDecimals; uint public _goldTotalSupply; mapping(address => uint) goldBalance...
goldFreeze
function goldFreeze(address user, uint amount, uint period) public onlyAdmin { require(goldBalances[user] >= amount); goldFreezed[user] = true; goldUnlockTime[user] = uint(now) + period; goldFreezeAmount[user] = amount; }
// ------------------------------------------------------------------------ // Freeze Tokens // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
bzzr://1d50d33bcacbc79c72c404b9ba3e0da98cc33b209a6a2c04acb355c1e24613c0
{ "func_code_index": [ 3743, 4010 ] }
827
Inke
Inke.sol
0x5301a786c6d68bf3fb97e13cb2c71e671f6fa69e
Solidity
InkeGold
contract InkeGold is ERC20Interface, Administration, SafeMath { event GoldTransfer(address indexed from, address indexed to, uint tokens); string public goldSymbol; string public goldName; uint8 public goldDecimals; uint public _goldTotalSupply; mapping(address => uint) goldBalance...
goldUnFreeze
function goldUnFreeze() public whenNotPaused { require(goldFreezed[msg.sender] == true); require(goldUnlockTime[msg.sender] < uint(now)); goldFreezed[msg.sender] = false; goldFreezeAmount[msg.sender] = 0; }
// ------------------------------------------------------------------------ // UnFreeze Tokens // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
bzzr://1d50d33bcacbc79c72c404b9ba3e0da98cc33b209a6a2c04acb355c1e24613c0
{ "func_code_index": [ 4505, 4757 ] }
828
Inke
Inke.sol
0x5301a786c6d68bf3fb97e13cb2c71e671f6fa69e
Solidity
InkeToken
contract InkeToken is InkeGold { event PartnerCreated(uint indexed partnerId, address indexed partner, uint indexed amount, uint singleTrans, uint durance); event RewardDistribute(uint indexed postId, uint partnerId, address indexed user, uint indexed amount); event VipAgreementSign(uint indexed vi...
totalSupply
function totalSupply() public constant returns (uint) { return _totalSupply - balances[address(0)]; }
// ------------------------------------------------------------------------ // Total supply // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
bzzr://1d50d33bcacbc79c72c404b9ba3e0da98cc33b209a6a2c04acb355c1e24613c0
{ "func_code_index": [ 2713, 2834 ] }
829
Inke
Inke.sol
0x5301a786c6d68bf3fb97e13cb2c71e671f6fa69e
Solidity
InkeToken
contract InkeToken is InkeGold { event PartnerCreated(uint indexed partnerId, address indexed partner, uint indexed amount, uint singleTrans, uint durance); event RewardDistribute(uint indexed postId, uint partnerId, address indexed user, uint indexed amount); event VipAgreementSign(uint indexed vi...
balanceOf
function balanceOf(address tokenOwner) public constant returns (uint balance) { return balances[tokenOwner]; }
// ------------------------------------------------------------------------ // Get the token balance for account tokenOwner // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
bzzr://1d50d33bcacbc79c72c404b9ba3e0da98cc33b209a6a2c04acb355c1e24613c0
{ "func_code_index": [ 3054, 3183 ] }
830
Inke
Inke.sol
0x5301a786c6d68bf3fb97e13cb2c71e671f6fa69e
Solidity
InkeToken
contract InkeToken is InkeGold { event PartnerCreated(uint indexed partnerId, address indexed partner, uint indexed amount, uint singleTrans, uint durance); event RewardDistribute(uint indexed postId, uint partnerId, address indexed user, uint indexed amount); event VipAgreementSign(uint indexed vi...
transfer
function transfer(address to, uint tokens) public returns (bool success) { if(freezed[msg.sender] == false){ balances[msg.sender] = safeSub(balances[msg.sender], tokens); balances[to] = safeAdd(balances[to], tokens); emit Transfer(msg.sender, to, tokens); } else { if(balanc...
// ------------------------------------------------------------------------ // Transfer the balance from token owner's account to to account // - Owner's account must have sufficient balance to transfer // - 0 value transfers are allowed // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
bzzr://1d50d33bcacbc79c72c404b9ba3e0da98cc33b209a6a2c04acb355c1e24613c0
{ "func_code_index": [ 3527, 4280 ] }
831
Inke
Inke.sol
0x5301a786c6d68bf3fb97e13cb2c71e671f6fa69e
Solidity
InkeToken
contract InkeToken is InkeGold { event PartnerCreated(uint indexed partnerId, address indexed partner, uint indexed amount, uint singleTrans, uint durance); event RewardDistribute(uint indexed postId, uint partnerId, address indexed user, uint indexed amount); event VipAgreementSign(uint indexed vi...
approve
function approve(address spender, uint tokens) public returns (bool success) { require(freezed[msg.sender] != true); allowed[msg.sender][spender] = tokens; emit Approval(msg.sender, spender, tokens); return true; }
// ------------------------------------------------------------------------ // Token owner can approve for spender to transferFrom(...) tokens // from the token owner's account // // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md // recommends that there are no checks for the approval double...
LineComment
v0.4.24+commit.e67f0147
bzzr://1d50d33bcacbc79c72c404b9ba3e0da98cc33b209a6a2c04acb355c1e24613c0
{ "func_code_index": [ 4788, 5048 ] }
832
Inke
Inke.sol
0x5301a786c6d68bf3fb97e13cb2c71e671f6fa69e
Solidity
InkeToken
contract InkeToken is InkeGold { event PartnerCreated(uint indexed partnerId, address indexed partner, uint indexed amount, uint singleTrans, uint durance); event RewardDistribute(uint indexed postId, uint partnerId, address indexed user, uint indexed amount); event VipAgreementSign(uint indexed vi...
transferFrom
function transferFrom(address from, address to, uint tokens) public returns (bool success) { balances[from] = safeSub(balances[from], tokens); allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens); balances[to] = safeAdd(balances[to], tokens); emit Transfer(from, to, tokens); r...
// ------------------------------------------------------------------------ // Transfer tokens from the from account to the to account // // The calling account must already have sufficient tokens approve(...)-d // for spending from the from account and // - From account must have sufficient balance to transfer // - S...
LineComment
v0.4.24+commit.e67f0147
bzzr://1d50d33bcacbc79c72c404b9ba3e0da98cc33b209a6a2c04acb355c1e24613c0
{ "func_code_index": [ 5579, 5942 ] }
833
Inke
Inke.sol
0x5301a786c6d68bf3fb97e13cb2c71e671f6fa69e
Solidity
InkeToken
contract InkeToken is InkeGold { event PartnerCreated(uint indexed partnerId, address indexed partner, uint indexed amount, uint singleTrans, uint durance); event RewardDistribute(uint indexed postId, uint partnerId, address indexed user, uint indexed amount); event VipAgreementSign(uint indexed vi...
allowance
function allowance(address tokenOwner, address spender) public constant returns (uint remaining) { require(freezed[msg.sender] != true); return allowed[tokenOwner][spender]; }
// ------------------------------------------------------------------------ // Returns the amount of tokens approved by the owner that can be // transferred to the spender's account // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
bzzr://1d50d33bcacbc79c72c404b9ba3e0da98cc33b209a6a2c04acb355c1e24613c0
{ "func_code_index": [ 6225, 6428 ] }
834
Inke
Inke.sol
0x5301a786c6d68bf3fb97e13cb2c71e671f6fa69e
Solidity
InkeToken
contract InkeToken is InkeGold { event PartnerCreated(uint indexed partnerId, address indexed partner, uint indexed amount, uint singleTrans, uint durance); event RewardDistribute(uint indexed postId, uint partnerId, address indexed user, uint indexed amount); event VipAgreementSign(uint indexed vi...
approveAndCall
function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) { require(freezed[msg.sender] != true); allowed[msg.sender][spender] = tokens; emit Approval(msg.sender, spender, tokens); ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data); ...
// ------------------------------------------------------------------------ // Token owner can approve for spender to transferFrom(...) tokens // from the token owner's account. The spender contract function // receiveApproval(...) is then executed // --------------------------------------------------------------------...
LineComment
v0.4.24+commit.e67f0147
bzzr://1d50d33bcacbc79c72c404b9ba3e0da98cc33b209a6a2c04acb355c1e24613c0
{ "func_code_index": [ 6783, 7152 ] }
835
Inke
Inke.sol
0x5301a786c6d68bf3fb97e13cb2c71e671f6fa69e
Solidity
InkeToken
contract InkeToken is InkeGold { event PartnerCreated(uint indexed partnerId, address indexed partner, uint indexed amount, uint singleTrans, uint durance); event RewardDistribute(uint indexed postId, uint partnerId, address indexed user, uint indexed amount); event VipAgreementSign(uint indexed vi...
_mine
function _mine(uint amount, address receiver) internal { require(minePool >= amount); minePool = safeSub(minePool, amount); _totalSupply = safeAdd(_totalSupply, amount); balances[receiver] = safeAdd(balances[receiver], amount); emit Transfer(address(0), receiver, amount); }
// ------------------------------------------------------------------------ // Mint Tokens // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
bzzr://1d50d33bcacbc79c72c404b9ba3e0da98cc33b209a6a2c04acb355c1e24613c0
{ "func_code_index": [ 7337, 7666 ] }
836
Inke
Inke.sol
0x5301a786c6d68bf3fb97e13cb2c71e671f6fa69e
Solidity
InkeToken
contract InkeToken is InkeGold { event PartnerCreated(uint indexed partnerId, address indexed partner, uint indexed amount, uint singleTrans, uint durance); event RewardDistribute(uint indexed postId, uint partnerId, address indexed user, uint indexed amount); event VipAgreementSign(uint indexed vi...
freeze
function freeze(address user, uint amount, uint period) public onlyAdmin { require(balances[user] >= amount); freezed[user] = true; unlockTime[user] = uint(now) + period; freezeAmount[user] = amount; }
// ------------------------------------------------------------------------ // Freeze Tokens // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
bzzr://1d50d33bcacbc79c72c404b9ba3e0da98cc33b209a6a2c04acb355c1e24613c0
{ "func_code_index": [ 8525, 8772 ] }
837
Inke
Inke.sol
0x5301a786c6d68bf3fb97e13cb2c71e671f6fa69e
Solidity
InkeToken
contract InkeToken is InkeGold { event PartnerCreated(uint indexed partnerId, address indexed partner, uint indexed amount, uint singleTrans, uint durance); event RewardDistribute(uint indexed postId, uint partnerId, address indexed user, uint indexed amount); event VipAgreementSign(uint indexed vi...
unFreeze
function unFreeze() public whenNotPaused { require(freezed[msg.sender] == true); require(unlockTime[msg.sender] < uint(now)); freezed[msg.sender] = false; freezeAmount[msg.sender] = 0; }
// ------------------------------------------------------------------------ // UnFreeze Tokens // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
bzzr://1d50d33bcacbc79c72c404b9ba3e0da98cc33b209a6a2c04acb355c1e24613c0
{ "func_code_index": [ 8961, 9193 ] }
838
Inke
Inke.sol
0x5301a786c6d68bf3fb97e13cb2c71e671f6fa69e
Solidity
InkeToken
contract InkeToken is InkeGold { event PartnerCreated(uint indexed partnerId, address indexed partner, uint indexed amount, uint singleTrans, uint durance); event RewardDistribute(uint indexed postId, uint partnerId, address indexed user, uint indexed amount); event VipAgreementSign(uint indexed vi...
createPartner
function createPartner(address _partner, uint _amount, uint _singleTrans, uint _durance) public onlyAdmin returns (uint) { Partner memory _Partner = Partner({ admin: _partner, tokenPool: _amount, singleTrans: _singleTrans, timestamp: uint(now), durance: _durance })...
// ------------------------------------------------------------------------ // Partner Authorization // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
bzzr://1d50d33bcacbc79c72c404b9ba3e0da98cc33b209a6a2c04acb355c1e24613c0
{ "func_code_index": [ 9661, 10207 ] }
839
Inke
Inke.sol
0x5301a786c6d68bf3fb97e13cb2c71e671f6fa69e
Solidity
InkeToken
contract InkeToken is InkeGold { event PartnerCreated(uint indexed partnerId, address indexed partner, uint indexed amount, uint singleTrans, uint durance); event RewardDistribute(uint indexed postId, uint partnerId, address indexed user, uint indexed amount); event VipAgreementSign(uint indexed vi...
createVip
function createVip(address _vip, uint _durance, uint _frequence, uint _salary) public onlyAdmin returns (uint) { Vip memory _Vip = Vip ({ vip: _vip, durance: uint(now) + _durance, frequence: _frequence, salary: _salary, timestamp: now + _frequence }); uint newVipId...
// ------------------------------------------------------------------------ // Vip Agreement // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
bzzr://1d50d33bcacbc79c72c404b9ba3e0da98cc33b209a6a2c04acb355c1e24613c0
{ "func_code_index": [ 12211, 12713 ] }
840
Inke
Inke.sol
0x5301a786c6d68bf3fb97e13cb2c71e671f6fa69e
Solidity
InkeToken
contract InkeToken is InkeGold { event PartnerCreated(uint indexed partnerId, address indexed partner, uint indexed amount, uint singleTrans, uint durance); event RewardDistribute(uint indexed postId, uint partnerId, address indexed user, uint indexed amount); event VipAgreementSign(uint indexed vi...
function () public payable { }
// ------------------------------------------------------------------------ // Accept ETH // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
bzzr://1d50d33bcacbc79c72c404b9ba3e0da98cc33b209a6a2c04acb355c1e24613c0
{ "func_code_index": [ 13988, 14028 ] }
841
Inke
Inke.sol
0x5301a786c6d68bf3fb97e13cb2c71e671f6fa69e
Solidity
InkeToken
contract InkeToken is InkeGold { event PartnerCreated(uint indexed partnerId, address indexed partner, uint indexed amount, uint singleTrans, uint durance); event RewardDistribute(uint indexed postId, uint partnerId, address indexed user, uint indexed amount); event VipAgreementSign(uint indexed vi...
transferAnyERC20Token
function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyAdmin returns (bool success) { return ERC20Interface(tokenAddress).transfer(CEOAddress, tokens); }
// ------------------------------------------------------------------------ // Owner can transfer out any accidentally sent ERC20 tokens // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
bzzr://1d50d33bcacbc79c72c404b9ba3e0da98cc33b209a6a2c04acb355c1e24613c0
{ "func_code_index": [ 14259, 14453 ] }
842
Token
/Users/pjh/workspace/chainpartners/cha-contracts/contracts/token/Token.sol
0x07305f5dc6c75e93fed3a10776eb3e92835ef474
Solidity
Token
contract Token is ERC20PresetMinterPauser, ERC20Permit, ERC20OnApprove { bytes32 public constant MINTER_ADMIN_ROLE = keccak256("MINTER_ADMIN_ROLE"); bytes32 public constant PAUSER_ADMIN_ROLE = keccak256("PAUSER_ADMIN_ROLE"); constructor( string memory name_, string memory symbol_, u...
changeAdminRole
function changeAdminRole(address account) external { require(account != address(0), "Token: zero-address"); changeRole(DEFAULT_ADMIN_ROLE, account); }
/** * @dev change DEFAULT_ADMIN_ROLE to `account`. * To revoke DEFAULT_ADMIN_ROLE, use `revokeRole(DEFAULT_ADMIN_ROLE, account)` */
NatSpecMultiLine
v0.8.5+commit.a4f2e591
{ "func_code_index": [ 835, 1009 ] }
843
Token
/Users/pjh/workspace/chainpartners/cha-contracts/contracts/token/Token.sol
0x07305f5dc6c75e93fed3a10776eb3e92835ef474
Solidity
Token
contract Token is ERC20PresetMinterPauser, ERC20Permit, ERC20OnApprove { bytes32 public constant MINTER_ADMIN_ROLE = keccak256("MINTER_ADMIN_ROLE"); bytes32 public constant PAUSER_ADMIN_ROLE = keccak256("PAUSER_ADMIN_ROLE"); constructor( string memory name_, string memory symbol_, u...
changeRole
function changeRole(bytes32 role, address account) public { grantRole(role, account); revokeRole(role, _msgSender()); }
/** * @dev grant and revoke `role` to `account` */
NatSpecMultiLine
v0.8.5+commit.a4f2e591
{ "func_code_index": [ 1076, 1219 ] }
844
DroneCoin
DroneCoin.sol
0x6f97eff37aa24cf5275ab0d92e5d43cb45d2f3ec
Solidity
ERC20Token
contract ERC20Token is IERC20, Pausable { using SafeMath for uint256; using Address for address; string internal _name; string internal _symbol; uint8 internal _decimals; uint256 internal _totalSupply; mapping (address => uint256) internal _balances; mapping (address => mappi...
transfer
function transfer(address recipient, uint256 amount) public whenNotPaused returns (bool success) { _transfer(msg.sender, recipient, amount); return true; }
// Function that is called when a user or another contract wants to transfer funds .
LineComment
v0.5.0+commit.1d4f565a
None
bzzr://260572514d6ba90bd1d07087d605c3f3eb52e14f4cbf06c196c4f991d65ad02c
{ "func_code_index": [ 1303, 1506 ] }
845
Rapide
Rapide.sol
0xc8035ea3580d5dd63b7535c26687fe18f8284e2f
Solidity
Rapide
contract Rapide { // 변수 선언 string public name; string public symbol; uint8 public decimals = 18; // 18소수 점 이하는 강력하게 제안된 기본 값이므로 변경하지 마십시오. uint256 public totalSupply; // 모든 균형을 갖춘 배열을 생성합니다. mapping (address => uint256) public balanceOf; mapping (address => mappin...
Rapide
function Rapide( uint256 initialSupply, string tokenName, string tokenSymbol ) public { totalSupply = initialSupply * 10 ** uint256(decimals); // 총 공급액을 소수로 업데이트합니다. balanceOf[msg.sender] = totalSupply; // 총 발행량 name = tokenName; ...
/** * 생성자 함수 * * 계약서 작성자에게 초기 공급 토큰과의 계약을 초기화합니다. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://06bdab768321bb8adbb90bc85da173de01186c85dc584d117a2de3de80d4133c
{ "func_code_index": [ 660, 1131 ] }
846
Rapide
Rapide.sol
0xc8035ea3580d5dd63b7535c26687fe18f8284e2f
Solidity
Rapide
contract Rapide { // 변수 선언 string public name; string public symbol; uint8 public decimals = 18; // 18소수 점 이하는 강력하게 제안된 기본 값이므로 변경하지 마십시오. uint256 public totalSupply; // 모든 균형을 갖춘 배열을 생성합니다. mapping (address => uint256) public balanceOf; mapping (address => mappin...
_transfer
function _transfer(address _from, address _to, uint _value) internal { // Prevent transfer to 0x0 address. Use burn() instead require(_to != 0x0); // 발신자 점검 require(balanceOf[_from] >= _value); // 오버플로 확인 require(balanceOf[_to] + _value > balanceOf[_to]); // 미래의 주장을 위해 이것을 저장하십...
/** * 내부 전송, 이 계약으로만 호출할 수 있습니다. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://06bdab768321bb8adbb90bc85da173de01186c85dc584d117a2de3de80d4133c
{ "func_code_index": [ 1190, 1931 ] }
847
Rapide
Rapide.sol
0xc8035ea3580d5dd63b7535c26687fe18f8284e2f
Solidity
Rapide
contract Rapide { // 변수 선언 string public name; string public symbol; uint8 public decimals = 18; // 18소수 점 이하는 강력하게 제안된 기본 값이므로 변경하지 마십시오. uint256 public totalSupply; // 모든 균형을 갖춘 배열을 생성합니다. mapping (address => uint256) public balanceOf; mapping (address => mappin...
transfer
function transfer(address _to, uint256 _value) public { _transfer(msg.sender, _to, _value); }
/** * 토큰 전송 * @ _to 받는 사람의 주소에 대한 매개 변수 * @ _value 전송할 금액을 정하다. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://06bdab768321bb8adbb90bc85da173de01186c85dc584d117a2de3de80d4133c
{ "func_code_index": [ 2035, 2150 ] }
848
Rapide
Rapide.sol
0xc8035ea3580d5dd63b7535c26687fe18f8284e2f
Solidity
Rapide
contract Rapide { // 변수 선언 string public name; string public symbol; uint8 public decimals = 18; // 18소수 점 이하는 강력하게 제안된 기본 값이므로 변경하지 마십시오. uint256 public totalSupply; // 모든 균형을 갖춘 배열을 생성합니다. mapping (address => uint256) public balanceOf; mapping (address => mappin...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { require(_value <= allowance[_from][msg.sender]); // 허용량 체크 allowance[_from][msg.sender] -= _value; _transfer(_from, _to, _value); return true; }
/** * _from 보낸 사람의 주소 * _to 받는 사람의 주소 * _value 전송할 금액 */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://06bdab768321bb8adbb90bc85da173de01186c85dc584d117a2de3de80d4133c
{ "func_code_index": [ 2248, 2546 ] }
849
Rapide
Rapide.sol
0xc8035ea3580d5dd63b7535c26687fe18f8284e2f
Solidity
Rapide
contract Rapide { // 변수 선언 string public name; string public symbol; uint8 public decimals = 18; // 18소수 점 이하는 강력하게 제안된 기본 값이므로 변경하지 마십시오. uint256 public totalSupply; // 모든 균형을 갖춘 배열을 생성합니다. mapping (address => uint256) public balanceOf; mapping (address => mappin...
approve
function approve(address _spender, uint256 _value) public returns (bool success) { allowance[msg.sender][_spender] = _value; return true; }
/** * 다른 주소에 대한 허용량 설정 * _spender 지출 할 수있는 주소 * _value 그들이 쓸 수 있는 지출 할 수있는 최대 금액 */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://06bdab768321bb8adbb90bc85da173de01186c85dc584d117a2de3de80d4133c
{ "func_code_index": [ 2669, 2850 ] }
850
Rapide
Rapide.sol
0xc8035ea3580d5dd63b7535c26687fe18f8284e2f
Solidity
Rapide
contract Rapide { // 변수 선언 string public name; string public symbol; uint8 public decimals = 18; // 18소수 점 이하는 강력하게 제안된 기본 값이므로 변경하지 마십시오. uint256 public totalSupply; // 모든 균형을 갖춘 배열을 생성합니다. mapping (address => uint256) public balanceOf; mapping (address => mappin...
approveAndCall
function approveAndCall(address _spender, uint256 _value, bytes _extraData) public returns (bool success) { tokenRecipient spender = tokenRecipient(_spender); if (approve(_spender, _value)) { spender.receiveApproval(msg.sender, _value, this, _extraData); return true; } ...
/** * 다른 주소에 대한 허용치 설정 및 알림 * @param _spender 지출 할 수있는 주소 * @param _value 그들이 쓸 수 있는 지출 할 수있는 최대 금액 * @param _extraData 승인 된 계약서에 보낼 추가 정보 */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://06bdab768321bb8adbb90bc85da173de01186c85dc584d117a2de3de80d4133c
{ "func_code_index": [ 3042, 3403 ] }
851
Rapide
Rapide.sol
0xc8035ea3580d5dd63b7535c26687fe18f8284e2f
Solidity
Rapide
contract Rapide { // 변수 선언 string public name; string public symbol; uint8 public decimals = 18; // 18소수 점 이하는 강력하게 제안된 기본 값이므로 변경하지 마십시오. uint256 public totalSupply; // 모든 균형을 갖춘 배열을 생성합니다. mapping (address => uint256) public balanceOf; mapping (address => mappin...
burn
function burn(uint256 _value) public returns (bool success) { require(balanceOf[msg.sender] >= _value); // 보낸 사람이 충분히 있는지 확인하십시오. balanceOf[msg.sender] -= _value; // 발신자에게서 뺍니다. totalSupply -= _value; // 총 발행량 업데이트 Burn(msg.sender, _value); return true; ...
/** * 토큰 파괴 * @param _value 소각되는 금액 */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://06bdab768321bb8adbb90bc85da173de01186c85dc584d117a2de3de80d4133c
{ "func_code_index": [ 3472, 3823 ] }
852
Rapide
Rapide.sol
0xc8035ea3580d5dd63b7535c26687fe18f8284e2f
Solidity
Rapide
contract Rapide { // 변수 선언 string public name; string public symbol; uint8 public decimals = 18; // 18소수 점 이하는 강력하게 제안된 기본 값이므로 변경하지 마십시오. uint256 public totalSupply; // 모든 균형을 갖춘 배열을 생성합니다. mapping (address => uint256) public balanceOf; mapping (address => mappin...
burnFrom
function burnFrom(address _from, uint256 _value) public returns (bool success) { require(balanceOf[_from] >= _value); // 목표 잔액이 충분한 지 확인하십시오. require(_value <= allowance[_from][msg.sender]); // 수당 확인 balanceOf[_from] -= _value; // 목표 잔액에서 차감 allowance[_f...
/** * 다른 계정에서 토큰 삭제 * @param _from 발신자 주소 * @param _value 소각되는 금액 */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://06bdab768321bb8adbb90bc85da173de01186c85dc584d117a2de3de80d4133c
{ "func_code_index": [ 3927, 4463 ] }
853
Constantinople
Constantinople.sol
0xd8d659f062e88f4ed703a15955fa25f0e65e0296
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://0014f0174e94348e903a474184fee9fee5e5a0e4eb3612a16f8f7a4e4b43a2ad
{ "func_code_index": [ 251, 437 ] }
854
Constantinople
Constantinople.sol
0xd8d659f062e88f4ed703a15955fa25f0e65e0296
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://0014f0174e94348e903a474184fee9fee5e5a0e4eb3612a16f8f7a4e4b43a2ad
{ "func_code_index": [ 707, 848 ] }
855
Constantinople
Constantinople.sol
0xd8d659f062e88f4ed703a15955fa25f0e65e0296
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
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. * * _Available since v2.4.0._ */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://0014f0174e94348e903a474184fee9fee5e5a0e4eb3612a16f8f7a4e4b43a2ad
{ "func_code_index": [ 1180, 1377 ] }
856
Constantinople
Constantinople.sol
0xd8d659f062e88f4ed703a15955fa25f0e65e0296
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
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.10+commit.5a6ea5b1
None
bzzr://0014f0174e94348e903a474184fee9fee5e5a0e4eb3612a16f8f7a4e4b43a2ad
{ "func_code_index": [ 1623, 2099 ] }
857
Constantinople
Constantinople.sol
0xd8d659f062e88f4ed703a15955fa25f0e65e0296
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
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.10+commit.5a6ea5b1
None
bzzr://0014f0174e94348e903a474184fee9fee5e5a0e4eb3612a16f8f7a4e4b43a2ad
{ "func_code_index": [ 2562, 2699 ] }
858
Constantinople
Constantinople.sol
0xd8d659f062e88f4ed703a15955fa25f0e65e0296
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
div
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; ...
/** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an in...
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://0014f0174e94348e903a474184fee9fee5e5a0e4eb3612a16f8f7a4e4b43a2ad
{ "func_code_index": [ 3224, 3574 ] }
859
Constantinople
Constantinople.sol
0xd8d659f062e88f4ed703a15955fa25f0e65e0296
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
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.10+commit.5a6ea5b1
None
bzzr://0014f0174e94348e903a474184fee9fee5e5a0e4eb3612a16f8f7a4e4b43a2ad
{ "func_code_index": [ 4026, 4161 ] }
860
Constantinople
Constantinople.sol
0xd8d659f062e88f4ed703a15955fa25f0e65e0296
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
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.10+commit.5a6ea5b1
None
bzzr://0014f0174e94348e903a474184fee9fee5e5a0e4eb3612a16f8f7a4e4b43a2ad
{ "func_code_index": [ 4675, 4846 ] }
861
SomaIco
SomaIco.sol
0x63b992e6246d88f07fc35a056d2c365e6d441a3d
Solidity
Ownable
contract Ownable { address public owner; /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() { owner = msg.sender; } /** * @dev Throws if called by any account other than the owner. */ modifier onl...
Ownable
function Ownable() { owner = msg.sender; }
/** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */
NatSpecMultiLine
v0.4.16+commit.d7661dd9
bzzr://5b695bf7b74d7a3f0d9e685a175da87b3a9ba8c5f6eaaf568e54ac49d379d3ab
{ "func_code_index": [ 169, 222 ] }
862
SomaIco
SomaIco.sol
0x63b992e6246d88f07fc35a056d2c365e6d441a3d
Solidity
Ownable
contract Ownable { address public owner; /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() { owner = msg.sender; } /** * @dev Throws if called by any account other than the owner. */ modifier onl...
transferOwnership
function transferOwnership(address newOwner) onlyOwner { if (newOwner != address(0)) { owner = newOwner; } }
/** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */
NatSpecMultiLine
v0.4.16+commit.d7661dd9
bzzr://5b695bf7b74d7a3f0d9e685a175da87b3a9ba8c5f6eaaf568e54ac49d379d3ab
{ "func_code_index": [ 545, 676 ] }
863
SomaIco
SomaIco.sol
0x63b992e6246d88f07fc35a056d2c365e6d441a3d
Solidity
Pausable
contract Pausable is Ownable { event Pause(); event Unpause(); bool public paused = false; /** * @dev modifier to allow actions only when the contract IS paused */ modifier whenNotPaused() { require(!paused); _; } /** * @dev modifier to allow actions only when the cont...
pause
function pause() onlyOwner whenNotPaused returns (bool) { paused = true; Pause(); return true; }
/** * @dev called by the owner to pause, triggers stopped state */
NatSpecMultiLine
v0.4.16+commit.d7661dd9
bzzr://5b695bf7b74d7a3f0d9e685a175da87b3a9ba8c5f6eaaf568e54ac49d379d3ab
{ "func_code_index": [ 487, 604 ] }
864
SomaIco
SomaIco.sol
0x63b992e6246d88f07fc35a056d2c365e6d441a3d
Solidity
Pausable
contract Pausable is Ownable { event Pause(); event Unpause(); bool public paused = false; /** * @dev modifier to allow actions only when the contract IS paused */ modifier whenNotPaused() { require(!paused); _; } /** * @dev modifier to allow actions only when the cont...
unpause
function unpause() onlyOwner whenPaused returns (bool) { paused = false; Unpause(); return true; }
/** * @dev called by the owner to unpause, returns to normal state */
NatSpecMultiLine
v0.4.16+commit.d7661dd9
bzzr://5b695bf7b74d7a3f0d9e685a175da87b3a9ba8c5f6eaaf568e54ac49d379d3ab
{ "func_code_index": [ 688, 807 ] }
865
SomaIco
SomaIco.sol
0x63b992e6246d88f07fc35a056d2c365e6d441a3d
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; /** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */ function transfer(address _to, uint256 _value) ret...
transfer
function transfer(address _to, uint256 _value) returns (bool) { balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); Transfer(msg.sender, _to, _value); return true; }
/** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */
NatSpecMultiLine
v0.4.16+commit.d7661dd9
bzzr://5b695bf7b74d7a3f0d9e685a175da87b3a9ba8c5f6eaaf568e54ac49d379d3ab
{ "func_code_index": [ 268, 507 ] }
866
SomaIco
SomaIco.sol
0x63b992e6246d88f07fc35a056d2c365e6d441a3d
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; /** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */ function transfer(address _to, uint256 _value) ret...
balanceOf
function balanceOf(address _owner) constant returns (uint256 balance) { return balances[_owner]; }
/** * @dev Gets the balance of the specified address. * @param _owner The address to query the the balance of. * @return An uint256 representing the amount owned by the passed address. */
NatSpecMultiLine
v0.4.16+commit.d7661dd9
bzzr://5b695bf7b74d7a3f0d9e685a175da87b3a9ba8c5f6eaaf568e54ac49d379d3ab
{ "func_code_index": [ 714, 823 ] }
867
SomaIco
SomaIco.sol
0x63b992e6246d88f07fc35a056d2c365e6d441a3d
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to ...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) returns (bool) { var _allowance = allowed[_from][msg.sender]; // Check is not needed because sub(_allowance, _value) will already throw if this condition is not met // require (_value <= _allowance); balances[_to] = balances[_to].add(_val...
/** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _value uint256 the amout of tokens to be transfered */
NatSpecMultiLine
v0.4.16+commit.d7661dd9
bzzr://5b695bf7b74d7a3f0d9e685a175da87b3a9ba8c5f6eaaf568e54ac49d379d3ab
{ "func_code_index": [ 390, 893 ] }
868
SomaIco
SomaIco.sol
0x63b992e6246d88f07fc35a056d2c365e6d441a3d
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to ...
approve
function approve(address _spender, uint256 _value) returns (bool) { // To change the approve amount you first have to reduce the addresses` // allowance to zero by calling `approve(_spender, 0)` if it is not // already 0 to mitigate the race condition described here: // https://github.com/ethereum/EIPs...
/** * @dev Aprove the passed address to spend the specified amount of tokens on behalf of msg.sender. * @param _spender The address which will spend the funds. * @param _value The amount of tokens to be spent. */
NatSpecMultiLine
v0.4.16+commit.d7661dd9
bzzr://5b695bf7b74d7a3f0d9e685a175da87b3a9ba8c5f6eaaf568e54ac49d379d3ab
{ "func_code_index": [ 1128, 1676 ] }
869
SomaIco
SomaIco.sol
0x63b992e6246d88f07fc35a056d2c365e6d441a3d
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to ...
allowance
function allowance(address _owner, address _spender) constant returns (uint256 remaining) { 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 specifing the amount of tokens still avaible for the spender. */
NatSpecMultiLine
v0.4.16+commit.d7661dd9
bzzr://5b695bf7b74d7a3f0d9e685a175da87b3a9ba8c5f6eaaf568e54ac49d379d3ab
{ "func_code_index": [ 1997, 2135 ] }
870
SomaIco
SomaIco.sol
0x63b992e6246d88f07fc35a056d2c365e6d441a3d
Solidity
SomaIco
contract SomaIco is PausableToken { using SafeMath for uint256; string public name = "Soma Community Token"; string public symbol = "SCT"; uint8 public decimals = 18; address public liquidityReserveWallet; // address where liquidity reserve tokens will be delivered address public walle...
function () nonHalted nonZeroPurchase acceptsFunds payable { address recipient = msg.sender; uint256 weiAmount = msg.value; uint256 amount = weiAmount.mul(rate); assignTokens(recipient, amount); totalRaised = totalRaised.add(weiAmount); forwardFundsToWallet(); }
/// fallback function to buy tokens
NatSpecSingleLine
v0.4.16+commit.d7661dd9
bzzr://5b695bf7b74d7a3f0d9e685a175da87b3a9ba8c5f6eaaf568e54ac49d379d3ab
{ "func_code_index": [ 2684, 3016 ] }
871
SomaIco
SomaIco.sol
0x63b992e6246d88f07fc35a056d2c365e6d441a3d
Solidity
SomaIco
contract SomaIco is PausableToken { using SafeMath for uint256; string public name = "Soma Community Token"; string public symbol = "SCT"; uint8 public decimals = 18; address public liquidityReserveWallet; // address where liquidity reserve tokens will be delivered address public walle...
burn
function burn(uint256 _value) public whenNotPaused { require(_value > 0); address burner = msg.sender; balances[burner] = balances[burner].sub(_value); totalSupply = totalSupply.sub(_value); Burn(burner, _value); }
/** * @dev Burns a specific amount of tokens. * @param _value The amount of token to be burned. */
NatSpecMultiLine
v0.4.16+commit.d7661dd9
bzzr://5b695bf7b74d7a3f0d9e685a175da87b3a9ba8c5f6eaaf568e54ac49d379d3ab
{ "func_code_index": [ 6615, 6886 ] }
872
EmblemVault
browser/github/0xcert/ethereum-erc721/src/contracts/tokens/nf-token-enumerable-metadata.sol
0x82c7a8f707110f5fbb16184a5933e9f78a34c6ab
Solidity
NFTokenEnumerableMetadata
abstract contract NFTokenEnumerableMetadata is NFToken, ERC721Metadata, ERC721Enumerable { /** * @dev A descriptive name for a collection of NFTs. */ string internal nftName; /** * @dev An abbreviated name for NFTokens. */ string internal nftSymbol; /** * @de...
/** * @dev Optional metadata implementation for ERC-721 non-fungible token standard. */
NatSpecMultiLine
name
function name() external override view returns (string memory _name) { _name = nftName; }
/** * @dev Returns a descriptive name for a collection of NFTokens. * @return _name Representing name. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://6626fd920334c84d658057cbe16dd3b47b41fc7475707238fefa241a53c0a511
{ "func_code_index": [ 1088, 1211 ] }
873
EmblemVault
browser/github/0xcert/ethereum-erc721/src/contracts/tokens/nf-token-enumerable-metadata.sol
0x82c7a8f707110f5fbb16184a5933e9f78a34c6ab
Solidity
NFTokenEnumerableMetadata
abstract contract NFTokenEnumerableMetadata is NFToken, ERC721Metadata, ERC721Enumerable { /** * @dev A descriptive name for a collection of NFTs. */ string internal nftName; /** * @dev An abbreviated name for NFTokens. */ string internal nftSymbol; /** * @de...
/** * @dev Optional metadata implementation for ERC-721 non-fungible token standard. */
NatSpecMultiLine
symbol
function symbol() external override view returns (string memory _symbol) { _symbol = nftSymbol; }
/** * @dev Returns an abbreviated name for NFTokens. * @return _symbol Representing symbol. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://6626fd920334c84d658057cbe16dd3b47b41fc7475707238fefa241a53c0a511
{ "func_code_index": [ 1324, 1455 ] }
874
EmblemVault
browser/github/0xcert/ethereum-erc721/src/contracts/tokens/nf-token-enumerable-metadata.sol
0x82c7a8f707110f5fbb16184a5933e9f78a34c6ab
Solidity
NFTokenEnumerableMetadata
abstract contract NFTokenEnumerableMetadata is NFToken, ERC721Metadata, ERC721Enumerable { /** * @dev A descriptive name for a collection of NFTs. */ string internal nftName; /** * @dev An abbreviated name for NFTokens. */ string internal nftSymbol; /** * @de...
/** * @dev Optional metadata implementation for ERC-721 non-fungible token standard. */
NatSpecMultiLine
tokenURI
function tokenURI( uint256 _tokenId ) external override view validNFToken(_tokenId) returns (string memory) { return idToUri[_tokenId]; }
/** * @dev A distinct URI (RFC 3986) for a given NFT. * @param _tokenId Id for which we want uri. * @return URI of _tokenId. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://6626fd920334c84d658057cbe16dd3b47b41fc7475707238fefa241a53c0a511
{ "func_code_index": [ 1605, 1789 ] }
875
EmblemVault
browser/github/0xcert/ethereum-erc721/src/contracts/tokens/nf-token-enumerable-metadata.sol
0x82c7a8f707110f5fbb16184a5933e9f78a34c6ab
Solidity
NFTokenEnumerableMetadata
abstract contract NFTokenEnumerableMetadata is NFToken, ERC721Metadata, ERC721Enumerable { /** * @dev A descriptive name for a collection of NFTs. */ string internal nftName; /** * @dev An abbreviated name for NFTokens. */ string internal nftSymbol; /** * @de...
/** * @dev Optional metadata implementation for ERC-721 non-fungible token standard. */
NatSpecMultiLine
tokenPayload
function tokenPayload( uint256 _tokenId ) external view validNFToken(_tokenId) returns (string memory) { return idToPayload[_tokenId]; }
/** * @dev A distinct URI (RFC 3986) for a given NFT. * @param _tokenId Id for which we want uri. * @return URI of _tokenId. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://6626fd920334c84d658057cbe16dd3b47b41fc7475707238fefa241a53c0a511
{ "func_code_index": [ 1943, 2121 ] }
876
EmblemVault
browser/github/0xcert/ethereum-erc721/src/contracts/tokens/nf-token-enumerable-metadata.sol
0x82c7a8f707110f5fbb16184a5933e9f78a34c6ab
Solidity
NFTokenEnumerableMetadata
abstract contract NFTokenEnumerableMetadata is NFToken, ERC721Metadata, ERC721Enumerable { /** * @dev A descriptive name for a collection of NFTs. */ string internal nftName; /** * @dev An abbreviated name for NFTokens. */ string internal nftSymbol; /** * @de...
/** * @dev Optional metadata implementation for ERC-721 non-fungible token standard. */
NatSpecMultiLine
_setTokenUri
function _setTokenUri( uint256 _tokenId, string memory _uri ) internal validNFToken(_tokenId) { idToUri[_tokenId] = _uri; }
/** * @dev Set a distinct URI (RFC 3986) for a given NFT ID. * @notice This is an internal function which should be called from user-implemented external * function. Its purpose is to show and properly initialize data structures when using this * implementation. * @param _tokenId Id for which we want URI. *...
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://6626fd920334c84d658057cbe16dd3b47b41fc7475707238fefa241a53c0a511
{ "func_code_index": [ 2513, 2673 ] }
877
EmblemVault
browser/github/0xcert/ethereum-erc721/src/contracts/tokens/nf-token-enumerable-metadata.sol
0x82c7a8f707110f5fbb16184a5933e9f78a34c6ab
Solidity
NFTokenEnumerableMetadata
abstract contract NFTokenEnumerableMetadata is NFToken, ERC721Metadata, ERC721Enumerable { /** * @dev A descriptive name for a collection of NFTs. */ string internal nftName; /** * @dev An abbreviated name for NFTokens. */ string internal nftSymbol; /** * @de...
/** * @dev Optional metadata implementation for ERC-721 non-fungible token standard. */
NatSpecMultiLine
totalSupply
function totalSupply() external override view returns (uint256) { return tokens.length; }
/** * @dev Returns the count of all existing NFTokens. * @return Total supply of NFTs. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://6626fd920334c84d658057cbe16dd3b47b41fc7475707238fefa241a53c0a511
{ "func_code_index": [ 3643, 3766 ] }
878
EmblemVault
browser/github/0xcert/ethereum-erc721/src/contracts/tokens/nf-token-enumerable-metadata.sol
0x82c7a8f707110f5fbb16184a5933e9f78a34c6ab
Solidity
NFTokenEnumerableMetadata
abstract contract NFTokenEnumerableMetadata is NFToken, ERC721Metadata, ERC721Enumerable { /** * @dev A descriptive name for a collection of NFTs. */ string internal nftName; /** * @dev An abbreviated name for NFTokens. */ string internal nftSymbol; /** * @de...
/** * @dev Optional metadata implementation for ERC-721 non-fungible token standard. */
NatSpecMultiLine
tokenByIndex
function tokenByIndex( uint256 _index ) external override view returns (uint256) { require(_index < tokens.length, INVALID_INDEX); return tokens[_index]; }
/** * @dev Returns NFT ID by its index. * @param _index A counter less than `totalSupply()`. * @return Token id. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://6626fd920334c84d658057cbe16dd3b47b41fc7475707238fefa241a53c0a511
{ "func_code_index": [ 3904, 4106 ] }
879
EmblemVault
browser/github/0xcert/ethereum-erc721/src/contracts/tokens/nf-token-enumerable-metadata.sol
0x82c7a8f707110f5fbb16184a5933e9f78a34c6ab
Solidity
NFTokenEnumerableMetadata
abstract contract NFTokenEnumerableMetadata is NFToken, ERC721Metadata, ERC721Enumerable { /** * @dev A descriptive name for a collection of NFTs. */ string internal nftName; /** * @dev An abbreviated name for NFTokens. */ string internal nftSymbol; /** * @de...
/** * @dev Optional metadata implementation for ERC-721 non-fungible token standard. */
NatSpecMultiLine
tokenOfOwnerByIndex
function tokenOfOwnerByIndex( address _owner, uint256 _index ) external override view returns (uint256) { require(_index < ownerToIds[_owner].length, INVALID_INDEX); return ownerToIds[_owner][_index]; }
/** * @dev returns the n-th NFT ID from a list of owner's tokens. * @param _owner Token owner's address. * @param _index Index number representing n-th token in owner's list of tokens. * @return Token id. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://6626fd920334c84d658057cbe16dd3b47b41fc7475707238fefa241a53c0a511
{ "func_code_index": [ 4340, 4594 ] }
880
EmblemVault
browser/github/0xcert/ethereum-erc721/src/contracts/tokens/nf-token-enumerable-metadata.sol
0x82c7a8f707110f5fbb16184a5933e9f78a34c6ab
Solidity
NFTokenEnumerableMetadata
abstract contract NFTokenEnumerableMetadata is NFToken, ERC721Metadata, ERC721Enumerable { /** * @dev A descriptive name for a collection of NFTs. */ string internal nftName; /** * @dev An abbreviated name for NFTokens. */ string internal nftSymbol; /** * @de...
/** * @dev Optional metadata implementation for ERC-721 non-fungible token standard. */
NatSpecMultiLine
_mint
function _mint( address _to, uint256 _tokenId ) internal override virtual { super._mint(_to, _tokenId); tokens.push(_tokenId); idToIndex[_tokenId] = tokens.length - 1; }
/** * @dev Mints a new NFT. * @notice This is an internal function which should be called from user-implemented external * mint function. Its purpose is to show and properly initialize data structures when using this * implementation. * @param _to The address that will own the minted NFT. * @param _tokenId ...
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://6626fd920334c84d658057cbe16dd3b47b41fc7475707238fefa241a53c0a511
{ "func_code_index": [ 4982, 5203 ] }
881
EmblemVault
browser/github/0xcert/ethereum-erc721/src/contracts/tokens/nf-token-enumerable-metadata.sol
0x82c7a8f707110f5fbb16184a5933e9f78a34c6ab
Solidity
NFTokenEnumerableMetadata
abstract contract NFTokenEnumerableMetadata is NFToken, ERC721Metadata, ERC721Enumerable { /** * @dev A descriptive name for a collection of NFTs. */ string internal nftName; /** * @dev An abbreviated name for NFTokens. */ string internal nftSymbol; /** * @de...
/** * @dev Optional metadata implementation for ERC-721 non-fungible token standard. */
NatSpecMultiLine
_burn
function _burn( uint256 _tokenId ) internal override virtual { super._burn(_tokenId); if (bytes(idToUri[_tokenId]).length != 0) { delete idToUri[_tokenId]; } if (bytes(idToPayload[_tokenId]).length != 0) { delete idToPayload[_tokenId]; } uint256 tokenInd...
/** * @dev Burns a NFT. * @notice This is an internal function which should be called from user-implemented external * burn function. Its purpose is to show and properly initialize data structures when using this * implementation. Also, note that this burn implementation allows the minter to re-mint a burned ...
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://6626fd920334c84d658057cbe16dd3b47b41fc7475707238fefa241a53c0a511
{ "func_code_index": [ 5603, 6313 ] }
882
EmblemVault
browser/github/0xcert/ethereum-erc721/src/contracts/tokens/nf-token-enumerable-metadata.sol
0x82c7a8f707110f5fbb16184a5933e9f78a34c6ab
Solidity
NFTokenEnumerableMetadata
abstract contract NFTokenEnumerableMetadata is NFToken, ERC721Metadata, ERC721Enumerable { /** * @dev A descriptive name for a collection of NFTs. */ string internal nftName; /** * @dev An abbreviated name for NFTokens. */ string internal nftSymbol; /** * @de...
/** * @dev Optional metadata implementation for ERC-721 non-fungible token standard. */
NatSpecMultiLine
_removeNFToken
function _removeNFToken( address _from, uint256 _tokenId ) internal override virtual { require(idToOwner[_tokenId] == _from, NOT_OWNER); delete idToOwner[_tokenId]; uint256 tokenToRemoveIndex = idToOwnerIndex[_tokenId]; uint256 lastTokenIndex = ownerToIds[_from].length - 1; if (lastT...
/** * @dev Removes a NFT from an address. * @notice Use and override this function with caution. Wrong usage can have serious consequences. * @param _from Address from wich we want to remove the NFT. * @param _tokenId Which NFT we want to remove. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://6626fd920334c84d658057cbe16dd3b47b41fc7475707238fefa241a53c0a511
{ "func_code_index": [ 6589, 7194 ] }
883
EmblemVault
browser/github/0xcert/ethereum-erc721/src/contracts/tokens/nf-token-enumerable-metadata.sol
0x82c7a8f707110f5fbb16184a5933e9f78a34c6ab
Solidity
NFTokenEnumerableMetadata
abstract contract NFTokenEnumerableMetadata is NFToken, ERC721Metadata, ERC721Enumerable { /** * @dev A descriptive name for a collection of NFTs. */ string internal nftName; /** * @dev An abbreviated name for NFTokens. */ string internal nftSymbol; /** * @de...
/** * @dev Optional metadata implementation for ERC-721 non-fungible token standard. */
NatSpecMultiLine
_addNFToken
function _addNFToken( address _to, uint256 _tokenId ) internal override virtual { require(idToOwner[_tokenId] == address(0), NFT_ALREADY_EXISTS); idToOwner[_tokenId] = _to; ownerToIds[_to].push(_tokenId); idToOwnerIndex[_tokenId] = ownerToIds[_to].length - 1; }
/** * @dev Assignes a new NFT to an address. * @notice Use and override this function with caution. Wrong usage can have serious consequences. * @param _to Address to wich we want to add the NFT. * @param _tokenId Which NFT we want to add. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://6626fd920334c84d658057cbe16dd3b47b41fc7475707238fefa241a53c0a511
{ "func_code_index": [ 7463, 7783 ] }
884
EmblemVault
browser/github/0xcert/ethereum-erc721/src/contracts/tokens/nf-token-enumerable-metadata.sol
0x82c7a8f707110f5fbb16184a5933e9f78a34c6ab
Solidity
NFTokenEnumerableMetadata
abstract contract NFTokenEnumerableMetadata is NFToken, ERC721Metadata, ERC721Enumerable { /** * @dev A descriptive name for a collection of NFTs. */ string internal nftName; /** * @dev An abbreviated name for NFTokens. */ string internal nftSymbol; /** * @de...
/** * @dev Optional metadata implementation for ERC-721 non-fungible token standard. */
NatSpecMultiLine
_getOwnerNFTCount
function _getOwnerNFTCount( address _owner ) internal override virtual view returns (uint256) { return ownerToIds[_owner].length; }
/** * @dev Helper function that gets NFT count of owner. This is needed for overriding in enumerable * extension to remove double storage(gas optimization) of owner nft count. * @param _owner Address for whom to query the count. * @return Number of _owner NFTs. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://6626fd920334c84d658057cbe16dd3b47b41fc7475707238fefa241a53c0a511
{ "func_code_index": [ 8074, 8252 ] }
885
YeFiMpool1
YeFiMpool1.sol
0x2bf30d058230ec127735c6bf444c49039aa7c243
Solidity
EnumerableSet
library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are...
/** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are ma...
NatSpecMultiLine
_add
function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; retur...
/** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */
NatSpecMultiLine
v0.6.12+commit.27d51765
BSD-3-Clause
ipfs://202a02b2d591eacb8a21c8ff0334701d4451d0e29051d04d29532fe3bf0bdecd
{ "func_code_index": [ 908, 1327 ] }
886
YeFiMpool1
YeFiMpool1.sol
0x2bf30d058230ec127735c6bf444c49039aa7c243
Solidity
EnumerableSet
library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are...
/** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are ma...
NatSpecMultiLine
_remove
function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element f...
/** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */
NatSpecMultiLine
v0.6.12+commit.27d51765
BSD-3-Clause
ipfs://202a02b2d591eacb8a21c8ff0334701d4451d0e29051d04d29532fe3bf0bdecd
{ "func_code_index": [ 1498, 3047 ] }
887
YeFiMpool1
YeFiMpool1.sol
0x2bf30d058230ec127735c6bf444c49039aa7c243
Solidity
EnumerableSet
library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are...
/** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are ma...
NatSpecMultiLine
_contains
function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; }
/** * @dev Returns true if the value is in the set. O(1). */
NatSpecMultiLine
v0.6.12+commit.27d51765
BSD-3-Clause
ipfs://202a02b2d591eacb8a21c8ff0334701d4451d0e29051d04d29532fe3bf0bdecd
{ "func_code_index": [ 3128, 3262 ] }
888
YeFiMpool1
YeFiMpool1.sol
0x2bf30d058230ec127735c6bf444c49039aa7c243
Solidity
EnumerableSet
library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are...
/** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are ma...
NatSpecMultiLine
_length
function _length(Set storage set) private view returns (uint256) { return set._values.length; }
/** * @dev Returns the number of values on the set. O(1). */
NatSpecMultiLine
v0.6.12+commit.27d51765
BSD-3-Clause
ipfs://202a02b2d591eacb8a21c8ff0334701d4451d0e29051d04d29532fe3bf0bdecd
{ "func_code_index": [ 3343, 3457 ] }
889
YeFiMpool1
YeFiMpool1.sol
0x2bf30d058230ec127735c6bf444c49039aa7c243
Solidity
EnumerableSet
library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are...
/** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are ma...
NatSpecMultiLine
_at
function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; }
/** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */
NatSpecMultiLine
v0.6.12+commit.27d51765
BSD-3-Clause
ipfs://202a02b2d591eacb8a21c8ff0334701d4451d0e29051d04d29532fe3bf0bdecd
{ "func_code_index": [ 3796, 4005 ] }
890
YeFiMpool1
YeFiMpool1.sol
0x2bf30d058230ec127735c6bf444c49039aa7c243
Solidity
EnumerableSet
library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are...
/** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are ma...
NatSpecMultiLine
add
function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(value))); }
/** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */
NatSpecMultiLine
v0.6.12+commit.27d51765
BSD-3-Clause
ipfs://202a02b2d591eacb8a21c8ff0334701d4451d0e29051d04d29532fe3bf0bdecd
{ "func_code_index": [ 4254, 4402 ] }
891
YeFiMpool1
YeFiMpool1.sol
0x2bf30d058230ec127735c6bf444c49039aa7c243
Solidity
EnumerableSet
library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are...
/** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are ma...
NatSpecMultiLine
remove
function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(value))); }
/** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */
NatSpecMultiLine
v0.6.12+commit.27d51765
BSD-3-Clause
ipfs://202a02b2d591eacb8a21c8ff0334701d4451d0e29051d04d29532fe3bf0bdecd
{ "func_code_index": [ 4573, 4727 ] }
892
YeFiMpool1
YeFiMpool1.sol
0x2bf30d058230ec127735c6bf444c49039aa7c243
Solidity
EnumerableSet
library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are...
/** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are ma...
NatSpecMultiLine
contains
function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(value))); }
/** * @dev Returns true if the value is in the set. O(1). */
NatSpecMultiLine
v0.6.12+commit.27d51765
BSD-3-Clause
ipfs://202a02b2d591eacb8a21c8ff0334701d4451d0e29051d04d29532fe3bf0bdecd
{ "func_code_index": [ 4808, 4971 ] }
893
YeFiMpool1
YeFiMpool1.sol
0x2bf30d058230ec127735c6bf444c49039aa7c243
Solidity
EnumerableSet
library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are...
/** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are ma...
NatSpecMultiLine
length
function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); }
/** * @dev Returns the number of values in the set. O(1). */
NatSpecMultiLine
v0.6.12+commit.27d51765
BSD-3-Clause
ipfs://202a02b2d591eacb8a21c8ff0334701d4451d0e29051d04d29532fe3bf0bdecd
{ "func_code_index": [ 5052, 5174 ] }
894
YeFiMpool1
YeFiMpool1.sol
0x2bf30d058230ec127735c6bf444c49039aa7c243
Solidity
EnumerableSet
library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are...
/** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are ma...
NatSpecMultiLine
at
function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint256(_at(set._inner, index))); }
/** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */
NatSpecMultiLine
v0.6.12+commit.27d51765
BSD-3-Clause
ipfs://202a02b2d591eacb8a21c8ff0334701d4451d0e29051d04d29532fe3bf0bdecd
{ "func_code_index": [ 5513, 5667 ] }
895
YeFiMpool1
YeFiMpool1.sol
0x2bf30d058230ec127735c6bf444c49039aa7c243
Solidity
EnumerableSet
library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are...
/** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are ma...
NatSpecMultiLine
add
function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); }
/** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */
NatSpecMultiLine
v0.6.12+commit.27d51765
BSD-3-Clause
ipfs://202a02b2d591eacb8a21c8ff0334701d4451d0e29051d04d29532fe3bf0bdecd
{ "func_code_index": [ 5912, 6048 ] }
896
YeFiMpool1
YeFiMpool1.sol
0x2bf30d058230ec127735c6bf444c49039aa7c243
Solidity
EnumerableSet
library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are...
/** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are ma...
NatSpecMultiLine
remove
function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); }
/** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */
NatSpecMultiLine
v0.6.12+commit.27d51765
BSD-3-Clause
ipfs://202a02b2d591eacb8a21c8ff0334701d4451d0e29051d04d29532fe3bf0bdecd
{ "func_code_index": [ 6219, 6361 ] }
897
YeFiMpool1
YeFiMpool1.sol
0x2bf30d058230ec127735c6bf444c49039aa7c243
Solidity
EnumerableSet
library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are...
/** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are ma...
NatSpecMultiLine
contains
function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); }
/** * @dev Returns true if the value is in the set. O(1). */
NatSpecMultiLine
v0.6.12+commit.27d51765
BSD-3-Clause
ipfs://202a02b2d591eacb8a21c8ff0334701d4451d0e29051d04d29532fe3bf0bdecd
{ "func_code_index": [ 6442, 6593 ] }
898
YeFiMpool1
YeFiMpool1.sol
0x2bf30d058230ec127735c6bf444c49039aa7c243
Solidity
EnumerableSet
library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are...
/** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are ma...
NatSpecMultiLine
length
function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); }
/** * @dev Returns the number of values on the set. O(1). */
NatSpecMultiLine
v0.6.12+commit.27d51765
BSD-3-Clause
ipfs://202a02b2d591eacb8a21c8ff0334701d4451d0e29051d04d29532fe3bf0bdecd
{ "func_code_index": [ 6674, 6793 ] }
899