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
privlocatumICO
privlocatumICO.sol
0xd153fc5ed49c5ec9e7bdbc4b0310202c633143b1
Solidity
privlocatumICO
contract privlocatumICO is Owned, privlocatum { //Applies SafeMath library to uint256 operations using SafeMath for uint256; //Public Variables address public multiSigWallet; uint256 public amountRaised; uint256 public startTime; uint256 public stopTime; uint2...
setMultiSigWallet
function setMultiSigWallet(address wallet) onlyOwner returns (bool success) { multiSigWallet = wallet; return true; }
//Sets the multisig wallet for a crowdsale
LineComment
v0.4.24-nightly.2018.5.16+commit.7f965c86
bzzr://9f84af8450e6c4a1cb8b540e44593ea54ef2065a4e2d8124a73dd2bb969debed
{ "func_code_index": [ 2146, 2297 ] }
57,661
privlocatumICO
privlocatumICO.sol
0xd153fc5ed49c5ec9e7bdbc4b0310202c633143b1
Solidity
privlocatumICO
contract privlocatumICO is Owned, privlocatum { //Applies SafeMath library to uint256 operations using SafeMath for uint256; //Public Variables address public multiSigWallet; uint256 public amountRaised; uint256 public startTime; uint256 public stopTime; uint2...
setPrice
function setPrice(uint256 newPriceperEther) onlyOwner returns (uint256) { require(newPriceperEther > 0); price = newPriceperEther; return price; }
//Sets the token price
LineComment
v0.4.24-nightly.2018.5.16+commit.7f965c86
bzzr://9f84af8450e6c4a1cb8b540e44593ea54ef2065a4e2d8124a73dd2bb969debed
{ "func_code_index": [ 2334, 2525 ] }
57,662
privlocatumICO
privlocatumICO.sol
0xd153fc5ed49c5ec9e7bdbc4b0310202c633143b1
Solidity
privlocatumICO
contract privlocatumICO is Owned, privlocatum { //Applies SafeMath library to uint256 operations using SafeMath for uint256; //Public Variables address public multiSigWallet; uint256 public amountRaised; uint256 public startTime; uint256 public stopTime; uint2...
startSale
function startSale(uint256 saleStart, uint256 saleStop, uint256 salePrice, address setBeneficiary) onlyOwner returns (bool success) { require(saleStop > now); startTime = saleStart; stopTime = saleStop; crowdsaleClosed = false; setPrice(salePrice); setMultiSigWallet(setBenefici...
//Allows owner to start the crowdsale from the time of execution until a specified stopTime
LineComment
v0.4.24-nightly.2018.5.16+commit.7f965c86
bzzr://9f84af8450e6c4a1cb8b540e44593ea54ef2065a4e2d8124a73dd2bb969debed
{ "func_code_index": [ 2631, 3018 ] }
57,663
privlocatumICO
privlocatumICO.sol
0xd153fc5ed49c5ec9e7bdbc4b0310202c633143b1
Solidity
privlocatumICO
contract privlocatumICO is Owned, privlocatum { //Applies SafeMath library to uint256 operations using SafeMath for uint256; //Public Variables address public multiSigWallet; uint256 public amountRaised; uint256 public startTime; uint256 public stopTime; uint2...
stopSale
function stopSale() onlyOwner returns (bool success) { stopTime = now; crowdsaleClosed = true; return true; }
//Allows owner to stop the crowdsale immediately
LineComment
v0.4.24-nightly.2018.5.16+commit.7f965c86
bzzr://9f84af8450e6c4a1cb8b540e44593ea54ef2065a4e2d8124a73dd2bb969debed
{ "func_code_index": [ 3081, 3235 ] }
57,664
CHEDDAR
contracts/CHEDDAR.sol
0x68810fb2b13d48b2f4a0fb1fea2397a2a106ad2d
Solidity
CHEDDAR
contract CHEDDAR is ICHEDDAR, ERC20, Ownable { // Tracks the last block that a caller has written to state. // Disallow some access to functions if they occur while a change is being written. mapping(address => uint256) private lastWrite; // address => allowedToCallFunctions mapping(addre...
addAdmin
function addAdmin(address addr) external onlyOwner { admins[addr] = true; }
/** * enables an address to mint / burn * @param addr the address to enable */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
{ "func_code_index": [ 552, 643 ] }
57,665
CHEDDAR
contracts/CHEDDAR.sol
0x68810fb2b13d48b2f4a0fb1fea2397a2a106ad2d
Solidity
CHEDDAR
contract CHEDDAR is ICHEDDAR, ERC20, Ownable { // Tracks the last block that a caller has written to state. // Disallow some access to functions if they occur while a change is being written. mapping(address => uint256) private lastWrite; // address => allowedToCallFunctions mapping(addre...
removeAdmin
function removeAdmin(address addr) external onlyOwner { admins[addr] = false; }
/** * disables an address from minting / burning * @param addr the address to disbale */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
{ "func_code_index": [ 750, 847 ] }
57,666
CHEDDAR
contracts/CHEDDAR.sol
0x68810fb2b13d48b2f4a0fb1fea2397a2a106ad2d
Solidity
CHEDDAR
contract CHEDDAR is ICHEDDAR, ERC20, Ownable { // Tracks the last block that a caller has written to state. // Disallow some access to functions if they occur while a change is being written. mapping(address => uint256) private lastWrite; // address => allowedToCallFunctions mapping(addre...
mint
function mint(address to, uint256 amount) external override { require(admins[msg.sender], "Only admins can mint"); require(totalSupply() + amount <= TOTAL_SUPPLY, "Mint amount exceeds"); _mint(to, amount); }
/** * mints $CHEDDAR to a recipient * @param to the recipient of the $CHEDDAR * @param amount the amount of $CHEDDAR to mint */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
{ "func_code_index": [ 998, 1237 ] }
57,667
CHEDDAR
contracts/CHEDDAR.sol
0x68810fb2b13d48b2f4a0fb1fea2397a2a106ad2d
Solidity
CHEDDAR
contract CHEDDAR is ICHEDDAR, ERC20, Ownable { // Tracks the last block that a caller has written to state. // Disallow some access to functions if they occur while a change is being written. mapping(address => uint256) private lastWrite; // address => allowedToCallFunctions mapping(addre...
burn
function burn(address from, uint256 amount) external override { require(admins[msg.sender], "Only admins can burn"); _burn(from, amount); }
/** * burns $CHEDDAR from a holder * @param from the holder of the $CHEDDAR * @param amount the amount of $CHEDDAR to burn */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
{ "func_code_index": [ 1385, 1548 ] }
57,668
CHEDDAR
contracts/CHEDDAR.sol
0x68810fb2b13d48b2f4a0fb1fea2397a2a106ad2d
Solidity
CHEDDAR
contract CHEDDAR is ICHEDDAR, ERC20, Ownable { // Tracks the last block that a caller has written to state. // Disallow some access to functions if they occur while a change is being written. mapping(address => uint256) private lastWrite; // address => allowedToCallFunctions mapping(addre...
transferFrom
function transferFrom( address sender, address recipient, uint256 amount ) public virtual override(ERC20, ICHEDDAR) disallowIfStateIsChanging returns (bool) { // NICE TRY MOUSE DRAGON require(admins[_msgSender()] || lastWrite[sender] < block.number , "hmmmm what doing?"); // If the entity invoki...
/** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. ...
NatSpecMultiLine
v0.8.4+commit.c7e474f2
{ "func_code_index": [ 2000, 3250 ] }
57,669
CHEDDAR
contracts/CHEDDAR.sol
0x68810fb2b13d48b2f4a0fb1fea2397a2a106ad2d
Solidity
CHEDDAR
contract CHEDDAR is ICHEDDAR, ERC20, Ownable { // Tracks the last block that a caller has written to state. // Disallow some access to functions if they occur while a change is being written. mapping(address => uint256) private lastWrite; // address => allowedToCallFunctions mapping(addre...
allowance
function allowance(address owner, address spender) public view virtual override returns (uint256) { return super.allowance(owner, spender); }
// Not ensuring state changed in this block as it would needlessly increase gas
LineComment
v0.8.4+commit.c7e474f2
{ "func_code_index": [ 4426, 4583 ] }
57,670
CHEDDAR
contracts/CHEDDAR.sol
0x68810fb2b13d48b2f4a0fb1fea2397a2a106ad2d
Solidity
CHEDDAR
contract CHEDDAR is ICHEDDAR, ERC20, Ownable { // Tracks the last block that a caller has written to state. // Disallow some access to functions if they occur while a change is being written. mapping(address => uint256) private lastWrite; // address => allowedToCallFunctions mapping(addre...
approve
function approve(address spender, uint256 amount) public virtual override returns (bool) { return super.approve(spender, amount); }
// Not ensuring state changed in this block as it would needlessly increase gas
LineComment
v0.8.4+commit.c7e474f2
{ "func_code_index": [ 4669, 4816 ] }
57,671
CHEDDAR
contracts/CHEDDAR.sol
0x68810fb2b13d48b2f4a0fb1fea2397a2a106ad2d
Solidity
CHEDDAR
contract CHEDDAR is ICHEDDAR, ERC20, Ownable { // Tracks the last block that a caller has written to state. // Disallow some access to functions if they occur while a change is being written. mapping(address => uint256) private lastWrite; // address => allowedToCallFunctions mapping(addre...
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public virtual override returns (bool) { return super.increaseAllowance(spender, addedValue); }
// Not ensuring state changed in this block as it would needlessly increase gas
LineComment
v0.8.4+commit.c7e474f2
{ "func_code_index": [ 4902, 5077 ] }
57,672
CHEDDAR
contracts/CHEDDAR.sol
0x68810fb2b13d48b2f4a0fb1fea2397a2a106ad2d
Solidity
CHEDDAR
contract CHEDDAR is ICHEDDAR, ERC20, Ownable { // Tracks the last block that a caller has written to state. // Disallow some access to functions if they occur while a change is being written. mapping(address => uint256) private lastWrite; // address => allowedToCallFunctions mapping(addre...
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual override returns (bool) { return super.decreaseAllowance(spender, subtractedValue); }
// Not ensuring state changed in this block as it would needlessly increase gas
LineComment
v0.8.4+commit.c7e474f2
{ "func_code_index": [ 5163, 5348 ] }
57,673
Multisig
Multisig.sol
0xa313392fc17c1d1db87b35cdccb930bbf1b08b72
Solidity
Multisig
contract Multisig { address[] public owners; mapping (address => mapping(address => uint)) withdrawalRequests; mapping (address => mapping(address => address[])) withdrawalApprovals; mapping (address => address[]) ownershipAdditions; mapping (address => address[]) ownershipRemovals; event Appr...
// @title Multisig ERC20 and Ether contract // @dev Allows multisig management of Ether and ERC20 funds, requiring 50% of owners (rounded up) // to approve any withdrawal or change in ownership // @author Nova Token (https://www.novatoken.io) // (c) 2019 Nova Token Ltd. All Rights Reserved. This code is not open sour...
LineComment
approveOwner
function approveOwner(address _address) public isOwner(msg.sender) isNotOwner(_address) isNotMe(_address) { require(owners.length < 10, "no more than 10 owners"); for(uint i = 0; i < ownershipAdditions[_address].length; i++) { require(ownershipAdditions[_address][i] != msg.sender, "sender has no...
// @dev Requests, or approves an ownership addition. The new owner is NOT automatically added. // @param _address - the address of the owner to add.
LineComment
v0.5.8+commit.23d335f2
None
bzzr://8c34ed56fc39d3079b9814f9727ffc764eb200c96ba8c10252eae5c7bc9e2c28
{ "func_code_index": [ 3038, 3524 ] }
57,674
Multisig
Multisig.sol
0xa313392fc17c1d1db87b35cdccb930bbf1b08b72
Solidity
Multisig
contract Multisig { address[] public owners; mapping (address => mapping(address => uint)) withdrawalRequests; mapping (address => mapping(address => address[])) withdrawalApprovals; mapping (address => address[]) ownershipAdditions; mapping (address => address[]) ownershipRemovals; event Appr...
// @title Multisig ERC20 and Ether contract // @dev Allows multisig management of Ether and ERC20 funds, requiring 50% of owners (rounded up) // to approve any withdrawal or change in ownership // @author Nova Token (https://www.novatoken.io) // (c) 2019 Nova Token Ltd. All Rights Reserved. This code is not open sour...
LineComment
acceptOwnership
function acceptOwnership() external isNotOwner(msg.sender) { require( ownershipAdditions[msg.sender].length >= getMinimumApprovals(), "sender doesn't have enough ownership approvals"); owners.push(msg.sender); delete ownershipAdditions[msg.sender]; emit OwnershipChange(msg.sender, true, fal...
// @dev After being approved for ownership, the new owner must call this function to become an owner.
LineComment
v0.5.8+commit.23d335f2
None
bzzr://8c34ed56fc39d3079b9814f9727ffc764eb200c96ba8c10252eae5c7bc9e2c28
{ "func_code_index": [ 3632, 3982 ] }
57,675
Multisig
Multisig.sol
0xa313392fc17c1d1db87b35cdccb930bbf1b08b72
Solidity
Multisig
contract Multisig { address[] public owners; mapping (address => mapping(address => uint)) withdrawalRequests; mapping (address => mapping(address => address[])) withdrawalApprovals; mapping (address => address[]) ownershipAdditions; mapping (address => address[]) ownershipRemovals; event Appr...
// @title Multisig ERC20 and Ether contract // @dev Allows multisig management of Ether and ERC20 funds, requiring 50% of owners (rounded up) // to approve any withdrawal or change in ownership // @author Nova Token (https://www.novatoken.io) // (c) 2019 Nova Token Ltd. All Rights Reserved. This code is not open sour...
LineComment
removeOwner
function removeOwner(address _address) public isOwner(msg.sender) isOwner(_address) isNotMe(_address) { require(owners.length > 3, "can't remove below 3 owners - add a new owner first"); uint i; for(i = 0; i < ownershipRemovals[_address].length; i++) { require(ownershipRemovals[_address][i] !...
// @dev Requests, or approves a ownership removal. Once enough approvals are given, the owner is // automatically removed. // @param _address - the address of the owner to be removed.
LineComment
v0.5.8+commit.23d335f2
None
bzzr://8c34ed56fc39d3079b9814f9727ffc764eb200c96ba8c10252eae5c7bc9e2c28
{ "func_code_index": [ 4180, 5328 ] }
57,676
Multisig
Multisig.sol
0xa313392fc17c1d1db87b35cdccb930bbf1b08b72
Solidity
Multisig
contract Multisig { address[] public owners; mapping (address => mapping(address => uint)) withdrawalRequests; mapping (address => mapping(address => address[])) withdrawalApprovals; mapping (address => address[]) ownershipAdditions; mapping (address => address[]) ownershipRemovals; event Appr...
// @title Multisig ERC20 and Ether contract // @dev Allows multisig management of Ether and ERC20 funds, requiring 50% of owners (rounded up) // to approve any withdrawal or change in ownership // @author Nova Token (https://www.novatoken.io) // (c) 2019 Nova Token Ltd. All Rights Reserved. This code is not open sour...
LineComment
vetoRemoval
function vetoRemoval(address _address) public isOwner(msg.sender) isOwner(_address) isNotMe(_address) { delete ownershipRemovals[_address]; }
// @dev Cancels a ownership removal. Only requires one owner to call this, // but the subject of the removal cannot call it themselves. // @param _address - the address of the owner to be removed.
LineComment
v0.5.8+commit.23d335f2
None
bzzr://8c34ed56fc39d3079b9814f9727ffc764eb200c96ba8c10252eae5c7bc9e2c28
{ "func_code_index": [ 5539, 5714 ] }
57,677
Multisig
Multisig.sol
0xa313392fc17c1d1db87b35cdccb930bbf1b08b72
Solidity
Multisig
contract Multisig { address[] public owners; mapping (address => mapping(address => uint)) withdrawalRequests; mapping (address => mapping(address => address[])) withdrawalApprovals; mapping (address => address[]) ownershipAdditions; mapping (address => address[]) ownershipRemovals; event Appr...
// @title Multisig ERC20 and Ether contract // @dev Allows multisig management of Ether and ERC20 funds, requiring 50% of owners (rounded up) // to approve any withdrawal or change in ownership // @author Nova Token (https://www.novatoken.io) // (c) 2019 Nova Token Ltd. All Rights Reserved. This code is not open sour...
LineComment
vetoOwnership
function vetoOwnership(address _address) public isOwner(msg.sender) isNotMe(_address) { delete ownershipAdditions[_address]; }
// @dev Cancels a ownership addition. Only requires one owner to call this. // @param _address - the address of the owner to be added.
LineComment
v0.5.8+commit.23d335f2
None
bzzr://8c34ed56fc39d3079b9814f9727ffc764eb200c96ba8c10252eae5c7bc9e2c28
{ "func_code_index": [ 5858, 6013 ] }
57,678
Multisig
Multisig.sol
0xa313392fc17c1d1db87b35cdccb930bbf1b08b72
Solidity
Multisig
contract Multisig { address[] public owners; mapping (address => mapping(address => uint)) withdrawalRequests; mapping (address => mapping(address => address[])) withdrawalApprovals; mapping (address => address[]) ownershipAdditions; mapping (address => address[]) ownershipRemovals; event Appr...
// @title Multisig ERC20 and Ether contract // @dev Allows multisig management of Ether and ERC20 funds, requiring 50% of owners (rounded up) // to approve any withdrawal or change in ownership // @author Nova Token (https://www.novatoken.io) // (c) 2019 Nova Token Ltd. All Rights Reserved. This code is not open sour...
LineComment
vetoWithdrawal
function vetoWithdrawal(address _tokenContract, address _requestor) public isOwner(msg.sender) { delete withdrawalRequests[_tokenContract][_requestor]; delete withdrawalApprovals[_tokenContract][_requestor]; }
// @dev Cancels a withdrawal. Only requires one owner to call this. // @param _tokenContract - the contract of the erc20 token to withdraw (or, use the zero address for ETH) // @param _amount - the amount to withdraw. Amount must match the approved withdrawal amount.
LineComment
v0.5.8+commit.23d335f2
None
bzzr://8c34ed56fc39d3079b9814f9727ffc764eb200c96ba8c10252eae5c7bc9e2c28
{ "func_code_index": [ 6293, 6531 ] }
57,679
Multisig
Multisig.sol
0xa313392fc17c1d1db87b35cdccb930bbf1b08b72
Solidity
Multisig
contract Multisig { address[] public owners; mapping (address => mapping(address => uint)) withdrawalRequests; mapping (address => mapping(address => address[])) withdrawalApprovals; mapping (address => address[]) ownershipAdditions; mapping (address => address[]) ownershipRemovals; event Appr...
// @title Multisig ERC20 and Ether contract // @dev Allows multisig management of Ether and ERC20 funds, requiring 50% of owners (rounded up) // to approve any withdrawal or change in ownership // @author Nova Token (https://www.novatoken.io) // (c) 2019 Nova Token Ltd. All Rights Reserved. This code is not open sour...
LineComment
depositERC20
function depositERC20(address _tokenContract, uint _amount) public isOwner(msg.sender) { ERC20Interface erc20 = ERC20Interface(_tokenContract); emit Deposit(_tokenContract, msg.sender, _amount); erc20.transferFrom(msg.sender, address(this), _amount); }
// @dev allows any owner to deposit any ERC20 token in this contract. // @dev Once the ERC20 token is deposited, it can only be withdrawn if enough accounts allow it. // @param _tokenContract - the contract of the erc20 token to deposit // @param _amount - the amount to deposit. // @notice For this function to work, yo...
LineComment
v0.5.8+commit.23d335f2
None
bzzr://8c34ed56fc39d3079b9814f9727ffc764eb200c96ba8c10252eae5c7bc9e2c28
{ "func_code_index": [ 7012, 7298 ] }
57,680
Multisig
Multisig.sol
0xa313392fc17c1d1db87b35cdccb930bbf1b08b72
Solidity
Multisig
contract Multisig { address[] public owners; mapping (address => mapping(address => uint)) withdrawalRequests; mapping (address => mapping(address => address[])) withdrawalApprovals; mapping (address => address[]) ownershipAdditions; mapping (address => address[]) ownershipRemovals; event Appr...
// @title Multisig ERC20 and Ether contract // @dev Allows multisig management of Ether and ERC20 funds, requiring 50% of owners (rounded up) // to approve any withdrawal or change in ownership // @author Nova Token (https://www.novatoken.io) // (c) 2019 Nova Token Ltd. All Rights Reserved. This code is not open sour...
LineComment
depositEth
function depositEth() public payable isOwner(msg.sender) { emit Deposit(address(0), msg.sender, msg.value); }
// @dev allows any owner to deposit Ether in this contract. // @dev Once ether is deposited, it can only be withdrawn if enough accounts allow it.
LineComment
v0.5.8+commit.23d335f2
None
bzzr://8c34ed56fc39d3079b9814f9727ffc764eb200c96ba8c10252eae5c7bc9e2c28
{ "func_code_index": [ 7454, 7592 ] }
57,681
Multisig
Multisig.sol
0xa313392fc17c1d1db87b35cdccb930bbf1b08b72
Solidity
Multisig
contract Multisig { address[] public owners; mapping (address => mapping(address => uint)) withdrawalRequests; mapping (address => mapping(address => address[])) withdrawalApprovals; mapping (address => address[]) ownershipAdditions; mapping (address => address[]) ownershipRemovals; event Appr...
// @title Multisig ERC20 and Ether contract // @dev Allows multisig management of Ether and ERC20 funds, requiring 50% of owners (rounded up) // to approve any withdrawal or change in ownership // @author Nova Token (https://www.novatoken.io) // (c) 2019 Nova Token Ltd. All Rights Reserved. This code is not open sour...
LineComment
approveWithdrawal
function approveWithdrawal(address _tokenContract, address _recipient, uint _amount) public isOwner(msg.sender) { ERC20Interface erc20 = ERC20Interface(_tokenContract); // If Withdrawer == msg.sender, this is a new request. Cancel all previous approvals. require(_amount > 0, "can't withdraw zero"); i...
// @dev Requests a withdrawal, changes a withdrawal request, or approves an existing withdrawal request. // To request or change, set _recipient to msg.sender. Changes wipe all approvals. // To approve, set _recipient to the previously requested account, and send from another owner account // @param _tokenContract - th...
LineComment
v0.5.8+commit.23d335f2
None
bzzr://8c34ed56fc39d3079b9814f9727ffc764eb200c96ba8c10252eae5c7bc9e2c28
{ "func_code_index": [ 8176, 9827 ] }
57,682
Multisig
Multisig.sol
0xa313392fc17c1d1db87b35cdccb930bbf1b08b72
Solidity
Multisig
contract Multisig { address[] public owners; mapping (address => mapping(address => uint)) withdrawalRequests; mapping (address => mapping(address => address[])) withdrawalApprovals; mapping (address => address[]) ownershipAdditions; mapping (address => address[]) ownershipRemovals; event Appr...
// @title Multisig ERC20 and Ether contract // @dev Allows multisig management of Ether and ERC20 funds, requiring 50% of owners (rounded up) // to approve any withdrawal or change in ownership // @author Nova Token (https://www.novatoken.io) // (c) 2019 Nova Token Ltd. All Rights Reserved. This code is not open sour...
LineComment
completeWithdrawal
function completeWithdrawal(address _tokenContract, uint _amount) external isOwner(msg.sender) { require( withdrawalApprovals[_tokenContract][msg.sender].length >= getMinimumApprovals(), "insufficient approvals to complete this withdrawal"); require(withdrawalRequests[_tokenContract][msg.sender] ...
// @dev Completes an approved withdrawal, transferring the erc20 tokens or Ether to the withdrawing account // @param _tokenContract - the contract of the erc20 token to withdraw (or, use the zero address for ETH) // @param _amount - the amount to withdraw. Amount must match the approved withdrawal amount.
LineComment
v0.5.8+commit.23d335f2
None
bzzr://8c34ed56fc39d3079b9814f9727ffc764eb200c96ba8c10252eae5c7bc9e2c28
{ "func_code_index": [ 10147, 11128 ] }
57,683
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
initializeCustom
function initializeCustom( address torroToken_, address governingToken_, address factory_, address creator_, uint256 maxCost_, uint256 executeMinPct_, uint256 votingMinHours_, bool isPublic_, bool hasAdmins_ ) external;
/// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address. /// @param governingToken_ torro token clone that's governing this dao. /// @param factory_ torro factory address. /// @param creator_ creator of cloned DAO. /// @param maxCost_ maximum cost of all governing tokens for cloned DAO. ...
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 898, 1168 ] }
57,684
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
daoCreator
function daoCreator() external view returns (address);
/// @notice Address of DAO creator. /// @return DAO creator address.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 1268, 1325 ] }
57,685
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
voteWeight
function voteWeight() external view returns (uint256);
/// @notice Amount of tokens needed for a single vote. /// @return uint256 token amount.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 1423, 1480 ] }
57,686
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
votesOf
function votesOf(address sender_) external view returns (uint256);
/// @notice Amount of votes that holder has. /// @param sender_ address of the holder. /// @return number of votes.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 1608, 1677 ] }
57,687
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
tokenAddress
function tokenAddress() external view returns (address);
/// @notice Address of the governing token. /// @return address of the governing token.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 1774, 1833 ] }
57,688
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
holdings
function holdings() external view returns (address[] memory);
/// @notice Saved addresses of tokens that DAO is holding. /// @return array of holdings addresses.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 1942, 2006 ] }
57,689
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
liquidities
function liquidities() external view returns (address[] memory);
/// @notice Saved addresses of liquidity tokens that DAO is holding. /// @return array of liquidity addresses.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 2126, 2193 ] }
57,690
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
liquidityToken
function liquidityToken(address token_) external view returns (address);
/// @notice Calculates address of liquidity token from ERC-20 token address. /// @param token_ token address to calculate liquidity address from. /// @return address of liquidity token.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 2391, 2466 ] }
57,691
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
liquidityHoldings
function liquidityHoldings() external view returns (address[] memory, address[] memory);
/// @notice Gets tokens and liquidity token addresses of DAO's liquidity holdings. /// @return Arrays of tokens and liquidity tokens, should have the same length.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 2638, 2729 ] }
57,692
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
admins
function admins() external view returns (address[] memory);
/// @notice DAO admins. /// @return Array of admin addresses.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 2800, 2862 ] }
57,693
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
tokenBalance
function tokenBalance(address token_) external view returns (uint256);
/// @notice DAO balance for specified token. /// @param token_ token address to get balance for. /// @return uint256 token balance.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 3006, 3079 ] }
57,694
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
liquidityBalance
function liquidityBalance(address token_) external view returns (uint256);
/// @notice DAO balance for liquidity token. /// @param token_ token address to get liquidity balance for. /// @return uin256 token liquidity balance.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 3242, 3319 ] }
57,695
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
availableBalance
function availableBalance() external view returns (uint256);
/// @notice DAO ethereum balance. /// @return uint256 wei balance.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 3395, 3458 ] }
57,696
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
maxCost
function maxCost() external view returns (uint256);
/// @notice Maximum cost for all tokens of cloned DAO. /// @return uint256 maximum cost in wei.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 3563, 3617 ] }
57,697
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
executeMinPct
function executeMinPct() external view returns (uint256);
/// @notice Minimum percentage of votes needed to execute a proposal. /// @return uint256 minimum percentage of votes.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 3745, 3805 ] }
57,698
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
votingMinHours
function votingMinHours() external view returns (uint256);
/// @notice Minimum lifetime of proposal before it closes. /// @return uint256 minimum number of hours for proposal lifetime.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 3940, 4001 ] }
57,699
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
isPublic
function isPublic() external view returns (bool);
/// @notice Whether DAO is public or private. /// @return bool true if public.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 4089, 4141 ] }
57,700
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
hasAdmins
function hasAdmins() external view returns (bool);
/// @notice Whether DAO has admins. /// @return bool true if DAO has admins.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 4227, 4280 ] }
57,701
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
getProposalIds
function getProposalIds() external view returns (uint256[] memory);
/// @notice Proposal ids of DAO. /// @return array of proposal ids.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 4357, 4427 ] }
57,702
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
getProposal
function getProposal(uint256 id_) external view returns ( address proposalAddress, address investTokenAddress, DaoFunction daoFunction, uint256 amount, address creator, uint256 endLifetime, uint256 votesFor, uint256 votesAgainst, bool executed );
/// @notice Gets proposal info for proposal id. /// @param id_ id of proposal to get info for. /// @return proposalAddress address for proposal execution. /// @return investTokenAddress secondary address for proposal execution, used for investment proposals if ICO and token addresses differ. /// @return daoFunction pro...
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 5158, 5455 ] }
57,703
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
canVote
function canVote(uint256 id_, address sender_) external view returns (bool);
/// @notice Whether a holder is allowed to vote for a proposal. /// @param id_ proposal id to check whether holder is allowed to vote for. /// @param sender_ address of the holder. /// @return bool true if voting is allowed.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 5695, 5774 ] }
57,704
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
canRemove
function canRemove(uint256 id_, address sender_) external view returns (bool);
/// @notice Whether a holder is allowed to remove a proposal. /// @param id_ proposal id to check whether holder is allowed to remove. /// @param sender_ address of the holder. /// @return bool true if removal is allowed.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 6011, 6092 ] }
57,705
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
canExecute
function canExecute(uint256 id_, address sender_) external view returns (bool);
/// @notice Whether a holder is allowed to execute a proposal. /// @param id_ proposal id to check whether holder is allowed to execute. /// @param sender_ address of the holder. /// @return bool true if execution is allowed.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 6333, 6415 ] }
57,706
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
isAdmin
function isAdmin(address sender_) external view returns (bool);
/// @notice Whether a holder is an admin. /// @param sender_ address of holder. /// @return bool true if holder is an admin (in DAO without admins all holders are treated as such).
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 6608, 6674 ] }
57,707
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
addHoldingsAddresses
function addHoldingsAddresses(address[] calldata tokens_) external;
/// @notice Saves new holdings addresses for DAO. /// @param tokens_ token addresses that DAO has holdings of.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 6823, 6893 ] }
57,708
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
addLiquidityAddresses
function addLiquidityAddresses(address[] calldata tokens_) external;
/// @notice Saves new liquidity addresses for DAO. /// @param tokens_ token addresses that DAO has liquidities of.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 7017, 7088 ] }
57,709
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
propose
function propose(address proposalAddress_, address investTokenAddress_, DaoFunction daoFunction_, uint256 amount_, uint256 hoursLifetime_) external;
/// @notice Creates new proposal. /// @param proposalAddress_ main address of the proposal, in investment proposals this is the address funds are sent to. /// @param investTokenAddress_ secondary address of the proposal, used in investment proposals to specify token address. /// @param daoFunction_ type of the proposal...
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 7549, 7700 ] }
57,710
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
unpropose
function unpropose(uint256 id_) external;
/// @notice Removes existing proposal. /// @param id_ id of proposal to remove.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 7789, 7833 ] }
57,711
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
vote
function vote(uint256[] calldata ids_, bool[] calldata votes_) external;
/// @notice Voting for multiple proposals. /// @param ids_ ids of proposals to vote for. /// @param votes_ for or against votes for proposals.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 7988, 8063 ] }
57,712
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
execute
function execute(uint256 id_) external;
/// @notice Executes a proposal. /// @param id_ id of proposal to be executed.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 8151, 8193 ] }
57,713
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
buy
function buy() external payable;
/// @notice Buying tokens for cloned DAO.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 8241, 8276 ] }
57,714
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
sell
function sell(uint256 amount_) external;
/// @notice Sell tokens back to cloned DAO. /// @param amount_ amount of tokens to sell.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 8374, 8417 ] }
57,715
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
setFactoryAddress
function setFactoryAddress(address factory_) external;
/// @notice Sets factory address. /// @param factory_ address of TorroFactory.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 8533, 8590 ] }
57,716
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
setVoteWeightDivider
function setVoteWeightDivider(uint256 weight_) external;
/// @notice Sets vote weight divider. /// @param weight_ weight divider for a single vote.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 8690, 8749 ] }
57,717
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
setRouter
function setRouter(address router_) external;
/// @notice Sets new address for router. /// @param router_ address for router.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 8838, 8886 ] }
57,718
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
setSpendDivider
function setSpendDivider(uint256 divider_) external;
/// @notice Sets divider for BUY, INVEST, WITHDAW proposals. /// @param divider_ divider for BUY, INVEST, WITHDRAW proposals.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 9021, 9076 ] }
57,719
TorroDao
ITorroDao.sol
0x3cf9e9d45380b6ab61bde46b2e6cfcd7d8f6cdc1
Solidity
ITorroDao
interface ITorroDao { // Enums. /// @notice Enum of available proposal functions. enum DaoFunction { BUY, SELL, ADD_LIQUIDITY, REMOVE_LIQUIDITY, ADD_ADMIN, REMOVE_ADMIN, INVEST, WITHDRAW } // Initializer. /// @notice Initializer for DAO clones. /// @param torroToken_ main torro token address...
/// @title DAO for proposals, voting and execution. /// @notice Interface for creation, voting and execution of proposals. /// @author ORayskiy - @robitnik_TorroDao
NatSpecSingleLine
migrate
function migrate(address newDao_) external;
/// @notice Migrates balances of current DAO to a new DAO. /// @param newDao_ address of the new DAO to migrate to.
NatSpecSingleLine
v0.6.6+commit.6c089d02
Unknown
ipfs://d1c6095fcf143d951c9754f00fe8cd59d29ab460461efe53b91eb289fd0fe5ac
{ "func_code_index": [ 9201, 9247 ] }
57,720
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
IERC165
interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This f...
/** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */
NatSpecMultiLine
supportsInterface
function supportsInterface(bytes4 interfaceId) external view returns (bool);
/** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 374, 455 ] }
57,721
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
IERC721
interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ ...
/** * @dev Required interface of an ERC721 compliant contract. */
NatSpecMultiLine
balanceOf
function balanceOf(address owner) external view returns (uint256 balance);
/** * @dev Returns the number of tokens in ``owner``'s account. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 719, 798 ] }
57,722
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
IERC721
interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ ...
/** * @dev Required interface of an ERC721 compliant contract. */
NatSpecMultiLine
ownerOf
function ownerOf(uint256 tokenId) external view returns (address owner);
/** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 944, 1021 ] }
57,723
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
IERC721
interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ ...
/** * @dev Required interface of an ERC721 compliant contract. */
NatSpecMultiLine
safeTransferFrom
function safeTransferFrom( address from, address to, uint256 tokenId ) external;
/** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token mus...
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 1733, 1850 ] }
57,724
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
IERC721
interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ ...
/** * @dev Required interface of an ERC721 compliant contract. */
NatSpecMultiLine
transferFrom
function transferFrom( address from, address to, uint256 tokenId ) external;
/** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If th...
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 2376, 2489 ] }
57,725
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
IERC721
interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ ...
/** * @dev Required interface of an ERC721 compliant contract. */
NatSpecMultiLine
approve
function approve(address to, uint256 tokenId) external;
/** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token...
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 2962, 3022 ] }
57,726
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
IERC721
interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ ...
/** * @dev Required interface of an ERC721 compliant contract. */
NatSpecMultiLine
getApproved
function getApproved(uint256 tokenId) external view returns (address operator);
/** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 3176, 3260 ] }
57,727
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
IERC721
interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ ...
/** * @dev Required interface of an ERC721 compliant contract. */
NatSpecMultiLine
setApprovalForAll
function setApprovalForAll(address operator, bool _approved) external;
/** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 3587, 3662 ] }
57,728
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
IERC721
interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ ...
/** * @dev Required interface of an ERC721 compliant contract. */
NatSpecMultiLine
isApprovedForAll
function isApprovedForAll(address owner, address operator) external view returns (bool);
/** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 3813, 3906 ] }
57,729
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
IERC721
interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ ...
/** * @dev Required interface of an ERC721 compliant contract. */
NatSpecMultiLine
safeTransferFrom
function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external;
/** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {appro...
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 4483, 4630 ] }
57,730
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
Strings
library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT ...
/** * @dev String operations. */
NatSpecMultiLine
toString
function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 ...
/** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 184, 912 ] }
57,731
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
Strings
library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT ...
/** * @dev String operations. */
NatSpecMultiLine
toHexString
function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); }
/** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 1017, 1362 ] }
57,732
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
Strings
library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT ...
/** * @dev String operations. */
NatSpecMultiLine
toHexString
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } ...
/** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 1485, 1941 ] }
57,733
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
IERC721Receiver
interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other valu...
/** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */
NatSpecMultiLine
onERC721Received
function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4);
/** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by ...
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 528, 698 ] }
57,734
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
IERC721Metadata
interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev...
/** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */
NatSpecMultiLine
name
function name() external view returns (string memory);
/** * @dev Returns the token collection name. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 106, 165 ] }
57,735
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
IERC721Metadata
interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev...
/** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */
NatSpecMultiLine
symbol
function symbol() external view returns (string memory);
/** * @dev Returns the token collection symbol. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 236, 297 ] }
57,736
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
IERC721Metadata
interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev...
/** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */
NatSpecMultiLine
tokenURI
function tokenURI(uint256 tokenId) external view returns (string memory);
/** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 398, 476 ] }
57,737
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
isContract
function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) ...
/** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: ...
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 606, 998 ] }
57,738
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
sendValue
function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); }
/** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `tr...
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 1928, 2250 ] }
57,739
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); }
/** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw...
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 3007, 3187 ] }
57,740
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 3412, 3646 ] }
57,741
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ *...
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 4016, 4281 ] }
57,742
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract");...
/** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 4532, 5047 ] }
57,743
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionStaticCall
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 5227, 5431 ] }
57,744
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionStaticCall
function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallRe...
/** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 5618, 6018 ] }
57,745
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionDelegateCall
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 6200, 6405 ] }
57,746
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionDelegateCall
function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallR...
/** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 6594, 6995 ] }
57,747
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
verifyCallResult
function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { ...
/** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 7218, 7935 ] }
57,748
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
ERC165
abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
/** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interface...
NatSpecMultiLine
supportsInterface
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; }
/** * @dev See {IERC165-supportsInterface}. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 103, 265 ] }
57,749
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
supportsInterface
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); }
/** * @dev See {IERC165-supportsInterface}. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 971, 1281 ] }
57,750
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
balanceOf
function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; }
/** * @dev See {IERC721-balanceOf}. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 1340, 1553 ] }
57,751
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
ownerOf
function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; }
/** * @dev See {IERC721-ownerOf}. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 1610, 1854 ] }
57,752
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
name
function name() public view virtual override returns (string memory) { return _name; }
/** * @dev See {IERC721Metadata-name}. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 1916, 2021 ] }
57,753
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
symbol
function symbol() public view virtual override returns (string memory) { return _symbol; }
/** * @dev See {IERC721Metadata-symbol}. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 2085, 2194 ] }
57,754
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
tokenURI
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; }
/** * @dev See {IERC721Metadata-tokenURI}. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 2260, 2599 ] }
57,755
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
_baseURI
function _baseURI() internal view virtual returns (string memory) { return ""; }
/** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 2842, 2941 ] }
57,756
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
approve
function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor...
/** * @dev See {IERC721-approve}. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 2998, 3414 ] }
57,757
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
getApproved
function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; }
/** * @dev See {IERC721-getApproved}. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 3475, 3701 ] }
57,758
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
setApprovalForAll
function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); }
/** * @dev See {IERC721-setApprovalForAll}. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 3768, 4068 ] }
57,759
SlammaJamma
SlammaJamma.sol
0x2aa1c5306f0212e23f2950ecb8464eefb169456d
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _ow...
/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */
NatSpecMultiLine
isApprovedForAll
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; }
/** * @dev See {IERC721-isApprovedForAll}. */
NatSpecMultiLine
v0.8.3+commit.8d00100c
MIT
ipfs://1f710d8bcd8966b315557e51d40efc2bd775afde93afea26f8386cf10b49aa6f
{ "func_code_index": [ 4134, 4303 ] }
57,760