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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
InitializableAdminUpgradeabilityProxy | contracts/proxy/BaseUpgradeabilityProxy.sol | 0x90b420d936f9a768565bac7a085558aeff786f9e | Solidity | BaseUpgradeabilityProxy | contract BaseUpgradeabilityProxy is Proxy {
/**
* @dev Storage slot with the address of the current implementation.
* This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
* validated in the constructor.
*/
bytes32 internal constant IMPLEMENTATION_SLOT... | /**
* @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an
* implementation address that can be changed. This address is stored in storage in the location specified by
* https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storag... | NatSpecMultiLine | _upgradeTo | function _upgradeTo(address newImplementation) internal {
_setImplementation(newImplementation);
emit Upgraded(newImplementation);
}
| /**
* @dev Upgrades the proxy to a new implementation.
*
* Emits an {Upgraded} event.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://0ca5436b0a85f7b9ce3d93f47729c39a8a3f5e921b02bdeedecedaebfc4ed918 | {
"func_code_index": [
898,
1058
]
} | 18,300 |
InitializableAdminUpgradeabilityProxy | contracts/proxy/BaseUpgradeabilityProxy.sol | 0x90b420d936f9a768565bac7a085558aeff786f9e | Solidity | BaseUpgradeabilityProxy | contract BaseUpgradeabilityProxy is Proxy {
/**
* @dev Storage slot with the address of the current implementation.
* This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
* validated in the constructor.
*/
bytes32 internal constant IMPLEMENTATION_SLOT... | /**
* @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an
* implementation address that can be changed. This address is stored in storage in the location specified by
* https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storag... | NatSpecMultiLine | _setImplementation | function _setImplementation(address newImplementation) internal {
require(Address.isContract(newImplementation), "UpgradeableProxy: new implementation is not a contract");
bytes32 slot = IMPLEMENTATION_SLOT;
// solhint-disable-next-line no-inline-assembly
assembly {
sstore(slot, newImpl... | /**
* @dev Stores a new address in the EIP1967 implementation slot.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | ipfs://0ca5436b0a85f7b9ce3d93f47729c39a8a3f5e921b02bdeedecedaebfc4ed918 | {
"func_code_index": [
1149,
1523
]
} | 18,301 |
apetogetherstrongToken | apetogetherstrongToken.sol | 0xefab4a28f049134f23a8a0f3e7bab5ea1204921b | Solidity | apetogetherstrongToken | contract apetogetherstrongToken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
uint public startDate;
uint public bonusEnds;
uint public endDate;
mapping(address => uint) balances;
mapping(ad... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | apetogetherstrongToken | function apetogetherstrongToken() public {
symbol = "APE";
name = "APE Token";
decimals = 18;
bonusEnds = now + 1 hours;
endDate = now + 7 weeks;
}
| // ------------------------------------------------------------------------
// Constructor
// ------------------------------------------------------------------------ | LineComment | v0.4.26+commit.4563c3fc | None | bzzr://3d45c83ea7ab958338e064f543d4b4a881ca0993a8f9db30076ae249e9825edb | {
"func_code_index": [
551,
755
]
} | 18,302 |
apetogetherstrongToken | apetogetherstrongToken.sol | 0xefab4a28f049134f23a8a0f3e7bab5ea1204921b | Solidity | apetogetherstrongToken | contract apetogetherstrongToken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
uint public startDate;
uint public bonusEnds;
uint public endDate;
mapping(address => uint) balances;
mapping(ad... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | totalSupply | function totalSupply() public constant returns (uint) {
return _totalSupply - balances[address(0)];
}
| // ------------------------------------------------------------------------
// Total supply
// ------------------------------------------------------------------------ | LineComment | v0.4.26+commit.4563c3fc | None | bzzr://3d45c83ea7ab958338e064f543d4b4a881ca0993a8f9db30076ae249e9825edb | {
"func_code_index": [
943,
1064
]
} | 18,303 |
apetogetherstrongToken | apetogetherstrongToken.sol | 0xefab4a28f049134f23a8a0f3e7bab5ea1204921b | Solidity | apetogetherstrongToken | contract apetogetherstrongToken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
uint public startDate;
uint public bonusEnds;
uint public endDate;
mapping(address => uint) balances;
mapping(ad... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | balanceOf | function balanceOf(address tokenOwner) public constant returns (uint balance) {
return balances[tokenOwner];
}
| // ------------------------------------------------------------------------
// Get the token balance for account `tokenOwner`
// ------------------------------------------------------------------------ | LineComment | v0.4.26+commit.4563c3fc | None | bzzr://3d45c83ea7ab958338e064f543d4b4a881ca0993a8f9db30076ae249e9825edb | {
"func_code_index": [
1286,
1415
]
} | 18,304 |
apetogetherstrongToken | apetogetherstrongToken.sol | 0xefab4a28f049134f23a8a0f3e7bab5ea1204921b | Solidity | apetogetherstrongToken | contract apetogetherstrongToken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
uint public startDate;
uint public bonusEnds;
uint public endDate;
mapping(address => uint) balances;
mapping(ad... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transfer | function transfer(address to, uint tokens) public returns (bool success) {
balances[msg.sender] = safeSub(balances[msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
Transfer(msg.sender, to, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Transfer the balance from token owner's account to `to` account
// - Owner's account must have sufficient balance to transfer
// - 0 value transfers are allowed
// ------------------------------------------------------------------------ | LineComment | v0.4.26+commit.4563c3fc | None | bzzr://3d45c83ea7ab958338e064f543d4b4a881ca0993a8f9db30076ae249e9825edb | {
"func_code_index": [
1761,
2038
]
} | 18,305 |
apetogetherstrongToken | apetogetherstrongToken.sol | 0xefab4a28f049134f23a8a0f3e7bab5ea1204921b | Solidity | apetogetherstrongToken | contract apetogetherstrongToken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
uint public startDate;
uint public bonusEnds;
uint public endDate;
mapping(address => uint) balances;
mapping(ad... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approve | function approve(address spender, uint tokens) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
Approval(msg.sender, spender, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for `spender` to transferFrom(...) `tokens`
// from the token owner's account
//
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
// recommends that there are no checks for the approval do... | LineComment | v0.4.26+commit.4563c3fc | None | bzzr://3d45c83ea7ab958338e064f543d4b4a881ca0993a8f9db30076ae249e9825edb | {
"func_code_index": [
2549,
2757
]
} | 18,306 |
apetogetherstrongToken | apetogetherstrongToken.sol | 0xefab4a28f049134f23a8a0f3e7bab5ea1204921b | Solidity | apetogetherstrongToken | contract apetogetherstrongToken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
uint public startDate;
uint public bonusEnds;
uint public endDate;
mapping(address => uint) balances;
mapping(ad... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferFrom | function transferFrom(address from, address to, uint tokens) public returns (bool success) {
balances[from] = safeSub(balances[from], tokens);
allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
Transfer(from, to, tokens);
return... | // ------------------------------------------------------------------------
// Transfer `tokens` from the `from` account to the `to` account
//
// The calling account must already have sufficient tokens approve(...)-d
// for spending from the `from` account and
// - From account must have sufficient balance to transfer... | LineComment | v0.4.26+commit.4563c3fc | None | bzzr://3d45c83ea7ab958338e064f543d4b4a881ca0993a8f9db30076ae249e9825edb | {
"func_code_index": [
3295,
3653
]
} | 18,307 |
apetogetherstrongToken | apetogetherstrongToken.sol | 0xefab4a28f049134f23a8a0f3e7bab5ea1204921b | Solidity | apetogetherstrongToken | contract apetogetherstrongToken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
uint public startDate;
uint public bonusEnds;
uint public endDate;
mapping(address => uint) balances;
mapping(ad... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | allowance | function allowance(address tokenOwner, address spender) public constant returns (uint remaining) {
return allowed[tokenOwner][spender];
}
| // ------------------------------------------------------------------------
// Returns the amount of tokens approved by the owner that can be
// transferred to the spender's account
// ------------------------------------------------------------------------ | LineComment | v0.4.26+commit.4563c3fc | None | bzzr://3d45c83ea7ab958338e064f543d4b4a881ca0993a8f9db30076ae249e9825edb | {
"func_code_index": [
3936,
4092
]
} | 18,308 |
apetogetherstrongToken | apetogetherstrongToken.sol | 0xefab4a28f049134f23a8a0f3e7bab5ea1204921b | Solidity | apetogetherstrongToken | contract apetogetherstrongToken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
uint public startDate;
uint public bonusEnds;
uint public endDate;
mapping(address => uint) balances;
mapping(ad... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approveAndCall | function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
Approval(msg.sender, spender, tokens);
ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for `spender` to transferFrom(...) `tokens`
// from the token owner's account. The `spender` contract function
// `receiveApproval(...)` is then executed
// ------------------------------------------------------------... | LineComment | v0.4.26+commit.4563c3fc | None | bzzr://3d45c83ea7ab958338e064f543d4b4a881ca0993a8f9db30076ae249e9825edb | {
"func_code_index": [
4455,
4772
]
} | 18,309 |
apetogetherstrongToken | apetogetherstrongToken.sol | 0xefab4a28f049134f23a8a0f3e7bab5ea1204921b | Solidity | apetogetherstrongToken | contract apetogetherstrongToken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
uint public startDate;
uint public bonusEnds;
uint public endDate;
mapping(address => uint) balances;
mapping(ad... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | function () public payable {
require(now >= startDate && now <= endDate);
uint tokens;
if (now <= bonusEnds) {
tokens = msg.value * 10000000000;
} else {
tokens = msg.value * 100000;
}
balances[msg.sender] = safeAdd(balances[msg.sender], tokens);
_totalSupply = safeA... | // ------------------------------------------------------------------------
// 100000 FWD Tokens per 1 ETH
// ------------------------------------------------------------------------ | LineComment | v0.4.26+commit.4563c3fc | None | bzzr://3d45c83ea7ab958338e064f543d4b4a881ca0993a8f9db30076ae249e9825edb | {
"func_code_index": [
4973,
5453
]
} | 18,310 | |
apetogetherstrongToken | apetogetherstrongToken.sol | 0xefab4a28f049134f23a8a0f3e7bab5ea1204921b | Solidity | apetogetherstrongToken | contract apetogetherstrongToken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
uint public startDate;
uint public bonusEnds;
uint public endDate;
mapping(address => uint) balances;
mapping(ad... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferAnyERC20Token | function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) {
return ERC20Interface(tokenAddress).transfer(owner, tokens);
}
| // ------------------------------------------------------------------------
// Owner can transfer out any accidentally sent ERC20 tokens
// ------------------------------------------------------------------------ | LineComment | v0.4.26+commit.4563c3fc | None | bzzr://3d45c83ea7ab958338e064f543d4b4a881ca0993a8f9db30076ae249e9825edb | {
"func_code_index": [
5688,
5877
]
} | 18,311 |
TokenRDC | TokenRDC.sol | 0x840086881facb1e8c222fa5deb2f93f238b0ba95 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
/**
* @dev Integer division of two numbe... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
| /**
* @dev Multiplies two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://9efaf8ce4c80bef960131f39eea76e5f3bb7915891fb94c712ef199f56900f09 | {
"func_code_index": [
89,
272
]
} | 18,312 | |
TokenRDC | TokenRDC.sol | 0x840086881facb1e8c222fa5deb2f93f238b0ba95 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
/**
* @dev Integer division of two numbe... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
// assert(b > 0); // Solidity automatically throws when dividing by 0
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Integer division of two numbers, truncating the quotient.
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://9efaf8ce4c80bef960131f39eea76e5f3bb7915891fb94c712ef199f56900f09 | {
"func_code_index": [
356,
629
]
} | 18,313 | |
TokenRDC | TokenRDC.sol | 0x840086881facb1e8c222fa5deb2f93f238b0ba95 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
/**
* @dev Integer division of two numbe... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
assert(b <= a);
return a - b;
}
| /**
* @dev Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://9efaf8ce4c80bef960131f39eea76e5f3bb7915891fb94c712ef199f56900f09 | {
"func_code_index": [
744,
860
]
} | 18,314 | |
TokenRDC | TokenRDC.sol | 0x840086881facb1e8c222fa5deb2f93f238b0ba95 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
/**
* @dev Integer division of two numbe... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
assert(c >= a);
return c;
}
| /**
* @dev Adds two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://9efaf8ce4c80bef960131f39eea76e5f3bb7915891fb94c712ef199f56900f09 | {
"func_code_index": [
924,
1060
]
} | 18,315 | |
TokenRDC | TokenRDC.sol | 0x840086881facb1e8c222fa5deb2f93f238b0ba95 | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
uint256 totalSupply_;
/**
* @dev total number of tokens in existence
*/
function totalSupply() public view returns (uint256) {
return totalSupply_;
}
/**
* @dev transfer token... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() public view returns (uint256) {
return totalSupply_;
}
| /**
* @dev total number of tokens in existence
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://9efaf8ce4c80bef960131f39eea76e5f3bb7915891fb94c712ef199f56900f09 | {
"func_code_index": [
199,
287
]
} | 18,316 | |
TokenRDC | TokenRDC.sol | 0x840086881facb1e8c222fa5deb2f93f238b0ba95 | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
uint256 totalSupply_;
/**
* @dev total number of tokens in existence
*/
function totalSupply() public view returns (uint256) {
return totalSupply_;
}
/**
* @dev transfer token... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | transfer | function transfer(address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(_value <= balances[msg.sender]);
// SafeMath.sub will throw if there is not enough balance.
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
T... | /**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://9efaf8ce4c80bef960131f39eea76e5f3bb7915891fb94c712ef199f56900f09 | {
"func_code_index": [
445,
836
]
} | 18,317 | |
TokenRDC | TokenRDC.sol | 0x840086881facb1e8c222fa5deb2f93f238b0ba95 | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
uint256 totalSupply_;
/**
* @dev total number of tokens in existence
*/
function totalSupply() public view returns (uint256) {
return totalSupply_;
}
/**
* @dev transfer token... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address _owner) public view returns (uint256 balance) {
return balances[_owner];
}
| /**
* @dev Gets the balance of the specified address.
* @param _owner The address to query the the balance of.
* @return An uint256 representing the amount owned by the passed address.
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://9efaf8ce4c80bef960131f39eea76e5f3bb7915891fb94c712ef199f56900f09 | {
"func_code_index": [
1042,
1154
]
} | 18,318 | |
TokenRDC | TokenRDC.sol | 0x840086881facb1e8c222fa5deb2f93f238b0ba95 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transf... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(_value <= balances[_from]);
require(_value <= allowed[_from][msg.sender]);
balances[_from] = balances[_from].sub(_value);
balances[_to] = balances[_to].add(_value);
allowed[_... | /**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
* @param _value uint256 the amount of tokens to be transferred
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://9efaf8ce4c80bef960131f39eea76e5f3bb7915891fb94c712ef199f56900f09 | {
"func_code_index": [
401,
853
]
} | 18,319 | |
TokenRDC | TokenRDC.sol | 0x840086881facb1e8c222fa5deb2f93f238b0ba95 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transf... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | approve | function approve(address _spender, uint256 _value) public returns (bool) {
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
| /**
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
*
* Beware that changing an allowance with this method brings the risk that someone may use both the old
* and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
* ... | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://9efaf8ce4c80bef960131f39eea76e5f3bb7915891fb94c712ef199f56900f09 | {
"func_code_index": [
1485,
1675
]
} | 18,320 | |
TokenRDC | TokenRDC.sol | 0x840086881facb1e8c222fa5deb2f93f238b0ba95 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transf... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | allowance | function allowance(address _owner, address _spender) public view returns (uint256) {
return allowed[_owner][_spender];
}
| /**
* @dev Function to check the amount of tokens that an owner allowed to a spender.
* @param _owner address The address which owns the funds.
* @param _spender address The address which will spend the funds.
* @return A uint256 specifying the amount of tokens still available for the spender.
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://9efaf8ce4c80bef960131f39eea76e5f3bb7915891fb94c712ef199f56900f09 | {
"func_code_index": [
1999,
2130
]
} | 18,321 | |
TokenRDC | TokenRDC.sol | 0x840086881facb1e8c222fa5deb2f93f238b0ba95 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transf... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | increaseApproval | function increaseApproval(address _spender, uint _addedValue) public returns (bool) {
allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);
Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
return true;
}
| /**
* @dev Increase the amount of tokens that an owner allowed to a spender.
*
* approve should be called when allowed[_spender] == 0. To increment
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
* @param _spend... | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://9efaf8ce4c80bef960131f39eea76e5f3bb7915891fb94c712ef199f56900f09 | {
"func_code_index": [
2596,
2860
]
} | 18,322 | |
TokenRDC | TokenRDC.sol | 0x840086881facb1e8c222fa5deb2f93f238b0ba95 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transf... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | decreaseApproval | function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool) {
uint oldValue = allowed[msg.sender][_spender];
if (_subtractedValue > oldValue) {
allowed[msg.sender][_spender] = 0;
} else {
allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);
}
Approval(msg... | /**
* @dev Decrease the amount of tokens that an owner allowed to a spender.
*
* approve should be called when allowed[_spender] == 0. To decrement
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
* @param _spend... | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://9efaf8ce4c80bef960131f39eea76e5f3bb7915891fb94c712ef199f56900f09 | {
"func_code_index": [
3331,
3741
]
} | 18,323 | |
TokenRDC | TokenRDC.sol | 0x840086881facb1e8c222fa5deb2f93f238b0ba95 | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
owner = msg.sender;
}... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | Ownable | function Ownable() public {
owner = msg.sender;
}
| /**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://9efaf8ce4c80bef960131f39eea76e5f3bb7915891fb94c712ef199f56900f09 | {
"func_code_index": [
261,
321
]
} | 18,324 | |
TokenRDC | TokenRDC.sol | 0x840086881facb1e8c222fa5deb2f93f238b0ba95 | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
owner = msg.sender;
}... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public onlyOwner {
require(newOwner != address(0));
OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
| /**
* @dev Allows the current owner to transfer control of the contract to a newOwner.
* @param newOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://9efaf8ce4c80bef960131f39eea76e5f3bb7915891fb94c712ef199f56900f09 | {
"func_code_index": [
640,
816
]
} | 18,325 | |
TokenRDC | TokenRDC.sol | 0x840086881facb1e8c222fa5deb2f93f238b0ba95 | Solidity | BurnableToken | contract BurnableToken is BasicToken {
event Burn(address indexed burner, uint256 value);
/**
* @dev Burns a specific amount of tokens.
* @param _value The amount of token to be burned.
*/
function burn(uint256 _value) public {
require(_value <= balances[msg.sender]);
// no need to re... | /**
* @title Burnable Token
* @dev Token that can be irreversibly burned (destroyed).
*/ | NatSpecMultiLine | burn | function burn(uint256 _value) public {
require(_value <= balances[msg.sender]);
// no need to require value <= totalSupply, since that would imply the
// sender's balance is greater than the totalSupply, which *should* be an assertion failure
address burner = msg.sender;
balances[burner] = balances[bur... | /**
* @dev Burns a specific amount of tokens.
* @param _value The amount of token to be burned.
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://9efaf8ce4c80bef960131f39eea76e5f3bb7915891fb94c712ef199f56900f09 | {
"func_code_index": [
212,
683
]
} | 18,326 | |
TokenRDC | TokenRDC.sol | 0x840086881facb1e8c222fa5deb2f93f238b0ba95 | Solidity | TokenRDC | contract TokenRDC is BurnableToken, StandardToken, Ownable {
string public constant name = "ROOMDAO COIN (RDC)";
string public constant symbol = "RDC";
uint32 public constant decimals = 18;
uint256 public INITIAL_SUPPLY = 60000000 * (10 ** uint256(decimals));
address public curre... | /**
* @title TokenRDC
*
*/ | NatSpecMultiLine | startCrowdsale0 | function startCrowdsale0( address _crowdsale ) onlyOwner public {
_startCrowdsale( _crowdsale, 4500000 );
}
| /**
* @dev transfer token to crowdsale's contract / переводим токены на адрес контратракта распродажи
* @param _crowdsale The address of crowdsale's contract.
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://9efaf8ce4c80bef960131f39eea76e5f3bb7915891fb94c712ef199f56900f09 | {
"func_code_index": [
1067,
1187
]
} | 18,327 | |
TokenRDC | TokenRDC.sol | 0x840086881facb1e8c222fa5deb2f93f238b0ba95 | Solidity | TokenRDC | contract TokenRDC is BurnableToken, StandardToken, Ownable {
string public constant name = "ROOMDAO COIN (RDC)";
string public constant symbol = "RDC";
uint32 public constant decimals = 18;
uint256 public INITIAL_SUPPLY = 60000000 * (10 ** uint256(decimals));
address public curre... | /**
* @title TokenRDC
*
*/ | NatSpecMultiLine | startCrowdsale1 | function startCrowdsale1( address _crowdsale ) onlyOwner public {
_startCrowdsale( _crowdsale, 7920000 );
}
| /**
* @dev transfer token to crowdsale's contract / переводим токены на адрес контратракта распродажи
* @param _crowdsale The address of crowdsale's contract.
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://9efaf8ce4c80bef960131f39eea76e5f3bb7915891fb94c712ef199f56900f09 | {
"func_code_index": [
1368,
1488
]
} | 18,328 | |
TokenRDC | TokenRDC.sol | 0x840086881facb1e8c222fa5deb2f93f238b0ba95 | Solidity | TokenRDC | contract TokenRDC is BurnableToken, StandardToken, Ownable {
string public constant name = "ROOMDAO COIN (RDC)";
string public constant symbol = "RDC";
uint32 public constant decimals = 18;
uint256 public INITIAL_SUPPLY = 60000000 * (10 ** uint256(decimals));
address public curre... | /**
* @title TokenRDC
*
*/ | NatSpecMultiLine | startCrowdsale2 | function startCrowdsale2( address _crowdsale ) onlyOwner public {
_startCrowdsale( _crowdsale, balances[owner] );
}
| /**
* @dev transfer token to crowdsale's contract / переводим токены на адрес контратракта распродажи
* @param _crowdsale The address of crowdsale's contract.
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://9efaf8ce4c80bef960131f39eea76e5f3bb7915891fb94c712ef199f56900f09 | {
"func_code_index": [
1669,
1797
]
} | 18,329 | |
TokenRDC | TokenRDC.sol | 0x840086881facb1e8c222fa5deb2f93f238b0ba95 | Solidity | TokenRDC | contract TokenRDC is BurnableToken, StandardToken, Ownable {
string public constant name = "ROOMDAO COIN (RDC)";
string public constant symbol = "RDC";
uint32 public constant decimals = 18;
uint256 public INITIAL_SUPPLY = 60000000 * (10 ** uint256(decimals));
address public curre... | /**
* @title TokenRDC
*
*/ | NatSpecMultiLine | _startCrowdsale | function _startCrowdsale( address _crowdsale, uint256 _value ) onlyOwner internal {
require(currentCrowdsale == address(0));
currentCrowdsale = _crowdsale;
uint256 dec = 10 ** uint256(decimals);
uint256 val = _value * dec;
if( val > balances[owner] ) {
val = balances[ owner ];
}
... | /**
* @dev transfer token to crowdsale's contract / переводим токены на адрес контратракта распродажи
* @param _crowdsale The address of crowdsale's contract.
* @param _value The amount to be transferred.
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://9efaf8ce4c80bef960131f39eea76e5f3bb7915891fb94c712ef199f56900f09 | {
"func_code_index": [
2027,
2403
]
} | 18,330 | |
TokenRDC | TokenRDC.sol | 0x840086881facb1e8c222fa5deb2f93f238b0ba95 | Solidity | TokenRDC | contract TokenRDC is BurnableToken, StandardToken, Ownable {
string public constant name = "ROOMDAO COIN (RDC)";
string public constant symbol = "RDC";
uint32 public constant decimals = 18;
uint256 public INITIAL_SUPPLY = 60000000 * (10 ** uint256(decimals));
address public curre... | /**
* @title TokenRDC
*
*/ | NatSpecMultiLine | finishCrowdsale | function finishCrowdsale() onlyOwner public returns (bool) {
require(currentCrowdsale != address(0));
require( balances[currentCrowdsale] > 0 );
uint256 value = balances[ currentCrowdsale ];
balances[currentCrowdsale] = 0;
balances[owner] = balances[owner].add(value);
Transfer(currentCrowdsale, ... | /**
* @dev transfer token back to owner / переводим токены обратно владельцу контнракта
*
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://9efaf8ce4c80bef960131f39eea76e5f3bb7915891fb94c712ef199f56900f09 | {
"func_code_index": [
2514,
2928
]
} | 18,331 | |
TokenRDC | TokenRDC.sol | 0x840086881facb1e8c222fa5deb2f93f238b0ba95 | Solidity | TokenRDC | contract TokenRDC is BurnableToken, StandardToken, Ownable {
string public constant name = "ROOMDAO COIN (RDC)";
string public constant symbol = "RDC";
uint32 public constant decimals = 18;
uint256 public INITIAL_SUPPLY = 60000000 * (10 ** uint256(decimals));
address public curre... | /**
* @title TokenRDC
*
*/ | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public {
uper.transferOwnership( newOwner );
int256 value = balances[msg.sender];
ransfer( newOwner, value );
}
| /**
* @dev Change ownershipment and move all tokens from old owner to new owner
* @param newOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://9efaf8ce4c80bef960131f39eea76e5f3bb7915891fb94c712ef199f56900f09 | {
"func_code_index": [
3092,
3267
]
} | 18,332 | |
MarioToken | Mario Bross.sol | 0xbff658ee300cfc7ffd5d182208bce73831925bab | Solidity | MarioToken | contract MarioToken is NewERC20 {
/**
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with
* a default value of 18.
*
* To select a different value for {decimals}, use {_setupDecimals}.
*
* All three of these values are immutable: they can only be se... | delegates | function delegates(address delegator)
external
view
returns (address)
{
return _delegates[delegator];
}
| /**
* @notice Delegate votes from `msg.sender` to `delegatee`
* @param delegator The address to get delegatee for
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://2212624da6dbe73978749c2cf96d1867a765a893de13db500f299d5dbf1255a7 | {
"func_code_index": [
2473,
2627
]
} | 18,333 | ||
MarioToken | Mario Bross.sol | 0xbff658ee300cfc7ffd5d182208bce73831925bab | Solidity | MarioToken | contract MarioToken is NewERC20 {
/**
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with
* a default value of 18.
*
* To select a different value for {decimals}, use {_setupDecimals}.
*
* All three of these values are immutable: they can only be se... | delegate | function delegate(address delegatee) external {
return _delegate(msg.sender, delegatee);
}
| /**
* @notice Delegate votes from `msg.sender` to `delegatee`
* @param delegatee The address to delegate votes to
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://2212624da6dbe73978749c2cf96d1867a765a893de13db500f299d5dbf1255a7 | {
"func_code_index": [
2766,
2875
]
} | 18,334 | ||
MarioToken | Mario Bross.sol | 0xbff658ee300cfc7ffd5d182208bce73831925bab | Solidity | MarioToken | contract MarioToken is NewERC20 {
/**
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with
* a default value of 18.
*
* To select a different value for {decimals}, use {_setupDecimals}.
*
* All three of these values are immutable: they can only be se... | delegateBySig | function delegateBySig(
address delegatee,
uint nonce,
uint expiry,
uint8 v,
bytes32 r,
bytes32 s
)
external
{
bytes32 domainSeparator = keccak256(
abi.encode(
DOMAIN_TYPEHASH,
keccak256(bytes(name())),
getChainId(),
... | /**
* @notice Delegates votes from signatory to `delegatee`
* @param delegatee The address to delegate votes to
* @param nonce The contract state required to match the signature
* @param expiry The time at which to expire the signature
* @param v The recovery byte of the signature
* @param r Half of the ECD... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://2212624da6dbe73978749c2cf96d1867a765a893de13db500f299d5dbf1255a7 | {
"func_code_index": [
3304,
4478
]
} | 18,335 | ||
MarioToken | Mario Bross.sol | 0xbff658ee300cfc7ffd5d182208bce73831925bab | Solidity | MarioToken | contract MarioToken is NewERC20 {
/**
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with
* a default value of 18.
*
* To select a different value for {decimals}, use {_setupDecimals}.
*
* All three of these values are immutable: they can only be se... | getCurrentVotes | function getCurrentVotes(address account)
external
view
returns (uint256)
{
uint32 nCheckpoints = numCheckpoints[account];
return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
}
| /**
* @notice Gets the current votes balance for `account`
* @param account The address to get votes balance
* @return The number of current votes for `account`
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://2212624da6dbe73978749c2cf96d1867a765a893de13db500f299d5dbf1255a7 | {
"func_code_index": [
4674,
4934
]
} | 18,336 | ||
MarioToken | Mario Bross.sol | 0xbff658ee300cfc7ffd5d182208bce73831925bab | Solidity | MarioToken | contract MarioToken is NewERC20 {
/**
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with
* a default value of 18.
*
* To select a different value for {decimals}, use {_setupDecimals}.
*
* All three of these values are immutable: they can only be se... | getPriorVotes | function getPriorVotes(address account, uint blockNumber)
external
view
returns (uint256)
{
require(blockNumber < block.number, "P::getPriorVotes: not yet determined");
uint32 nCheckpoints = numCheckpoints[account];
if (nCheckpoints == 0) {
return 0;
}
// First chec... | /**
* @notice Determine the prior number of votes for an account as of a block number
* @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
* @param account The address of the account to check
* @param blockNumber The block number to get the vote balance at
... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://2212624da6dbe73978749c2cf96d1867a765a893de13db500f299d5dbf1255a7 | {
"func_code_index": [
5360,
6615
]
} | 18,337 | ||
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | 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.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
374,
455
]
} | 18,338 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | IERC1155 | interface IERC1155 is IERC165 {
/**
* @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
*/
event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);
/**
* @dev Equivalent to... | /**
* @dev Required interface of an ERC1155 compliant contract, as defined in the
* https://eips.ethereum.org/EIPS/eip-1155[EIP].
*
* _Available since v3.1._
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address account, uint256 id) external view returns (uint256);
| /**
* @dev Returns the amount of tokens of token type `id` owned by `account`.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
1411,
1496
]
} | 18,339 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | IERC1155 | interface IERC1155 is IERC165 {
/**
* @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
*/
event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);
/**
* @dev Equivalent to... | /**
* @dev Required interface of an ERC1155 compliant contract, as defined in the
* https://eips.ethereum.org/EIPS/eip-1155[EIP].
*
* _Available since v3.1._
*/ | NatSpecMultiLine | balanceOfBatch | function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory);
| /**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
*
* Requirements:
*
* - `accounts` and `ids` must have the same length.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
1699,
1822
]
} | 18,340 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | IERC1155 | interface IERC1155 is IERC165 {
/**
* @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
*/
event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);
/**
* @dev Equivalent to... | /**
* @dev Required interface of an ERC1155 compliant contract, as defined in the
* https://eips.ethereum.org/EIPS/eip-1155[EIP].
*
* _Available since v3.1._
*/ | NatSpecMultiLine | setApprovalForAll | function setApprovalForAll(address operator, bool approved) external;
| /**
* @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
*
* Emits an {ApprovalForAll} event.
*
* Requirements:
*
* - `operator` cannot be the caller.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
2087,
2161
]
} | 18,341 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | IERC1155 | interface IERC1155 is IERC165 {
/**
* @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
*/
event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);
/**
* @dev Equivalent to... | /**
* @dev Required interface of an ERC1155 compliant contract, as defined in the
* https://eips.ethereum.org/EIPS/eip-1155[EIP].
*
* _Available since v3.1._
*/ | NatSpecMultiLine | isApprovedForAll | function isApprovedForAll(address account, address operator) external view returns (bool);
| /**
* @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
*
* See {setApprovalForAll}.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
2309,
2404
]
} | 18,342 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | IERC1155 | interface IERC1155 is IERC165 {
/**
* @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
*/
event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);
/**
* @dev Equivalent to... | /**
* @dev Required interface of an ERC1155 compliant contract, as defined in the
* https://eips.ethereum.org/EIPS/eip-1155[EIP].
*
* _Available since v3.1._
*/ | NatSpecMultiLine | safeTransferFrom | function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external;
| /**
* @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
*
* Emits a {TransferSingle} event.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
* - `from` must h... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
2984,
3099
]
} | 18,343 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | IERC1155 | interface IERC1155 is IERC165 {
/**
* @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
*/
event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);
/**
* @dev Equivalent to... | /**
* @dev Required interface of an ERC1155 compliant contract, as defined in the
* https://eips.ethereum.org/EIPS/eip-1155[EIP].
*
* _Available since v3.1._
*/ | NatSpecMultiLine | safeBatchTransferFrom | function safeBatchTransferFrom(address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data) external;
| /**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
*
* Emits a {TransferBatch} event.
*
* Requirements:
*
* - `ids` and `amounts` must have the same length.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and ret... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
3508,
3652
]
} | 18,344 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | IERC1155MetadataURI | interface IERC1155MetadataURI is IERC1155 {
/**
* @dev Returns the URI for token type `id`.
*
* If the `\{id\}` substring is present in the URI, it must be replaced by
* clients with the actual token type ID.
*/
function uri(uint256 id) external view returns (string memory);
} | /**
* @dev Interface of the optional ERC1155MetadataExtension interface, as defined
* in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
*
* _Available since v3.1._
*/ | NatSpecMultiLine | uri | function uri(uint256 id) external view returns (string memory);
| /**
* @dev Returns the URI for token type `id`.
*
* If the `\{id\}` substring is present in the URI, it must be replaced by
* clients with the actual token type ID.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
248,
316
]
} | 18,345 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | IERC1155Receiver | interface IERC1155Receiver is IERC165 {
/**
@dev Handles the receipt of a single ERC1155 token type. This function is
called at the end of a `safeTransferFrom` after the balance has been updated.
To accept the transfer, this must return
`bytes4(keccak256("onERC1155Received(add... | /**
* _Available since v3.1._
*/ | NatSpecMultiLine | onERC1155Received | function onERC1155Received(
address operator,
address from,
uint256 id,
uint256 value,
bytes calldata data
)
external
returns(bytes4);
| /**
@dev Handles the receipt of a single ERC1155 token type. This function is
called at the end of a `safeTransferFrom` after the balance has been updated.
To accept the transfer, this must return
`bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
(i.e. 0xf23a6e61, or its own func... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
877,
1084
]
} | 18,346 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | IERC1155Receiver | interface IERC1155Receiver is IERC165 {
/**
@dev Handles the receipt of a single ERC1155 token type. This function is
called at the end of a `safeTransferFrom` after the balance has been updated.
To accept the transfer, this must return
`bytes4(keccak256("onERC1155Received(add... | /**
* _Available since v3.1._
*/ | NatSpecMultiLine | onERC1155BatchReceived | function onERC1155BatchReceived(
address operator,
address from,
uint256[] calldata ids,
uint256[] calldata values,
bytes calldata data
)
external
returns(bytes4);
| /**
@dev Handles the receipt of a multiple ERC1155 token types. This function
is called at the end of a `safeBatchTransferFrom` after the balances have
been updated. To accept the transfer(s), this must return
`bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
(i.e. 0xbc1... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
2082,
2318
]
} | 18,347 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | ERC165 | contract ERC165 is IERC165 {
/*
* bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
*/
bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;
/**
* @dev Mapping of interface ids to whether or not it's supported.
*/
mapping(bytes4 => bool) private _supportedIn... | /**
* @dev Implementation of the {IERC165} interface.
*
* Contracts may inherit from this and call {_registerInterface} to declare
* their support of an interface.
*/ | NatSpecMultiLine | supportsInterface | function supportsInterface(bytes4 interfaceId) public view override returns (bool) {
return _supportedInterfaces[interfaceId];
}
| /**
* @dev See {IERC165-supportsInterface}.
*
* Time complexity O(1), guaranteed to always use less than 30 000 gas.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
711,
858
]
} | 18,348 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | ERC165 | contract ERC165 is IERC165 {
/*
* bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
*/
bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;
/**
* @dev Mapping of interface ids to whether or not it's supported.
*/
mapping(bytes4 => bool) private _supportedIn... | /**
* @dev Implementation of the {IERC165} interface.
*
* Contracts may inherit from this and call {_registerInterface} to declare
* their support of an interface.
*/ | NatSpecMultiLine | _registerInterface | function _registerInterface(bytes4 interfaceId) internal virtual {
require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
_supportedInterfaces[interfaceId] = true;
}
| /**
* @dev Registers the contract as an implementer of the interface defined by
* `interfaceId`. Support of the actual ERC165 interface is automatic and
* registering its interface id is not required.
*
* See {IERC165-supportsInterface}.
*
* Requirements:
*
* - `interfaceId` cannot be the ERC165 inval... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
1260,
1466
]
} | 18,349 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
259,
445
]
} | 18,350 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
723,
864
]
} | 18,351 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
1162,
1359
]
} | 18,352 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
1613,
2089
]
} | 18,353 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
2560,
2697
]
} | 18,354 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
3188,
3471
]
} | 18,355 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
3931,
4066
]
} | 18,356 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
4546,
4717
]
} | 18,357 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | 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` wi... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | isContract | function isContract(address account) internal view returns (bool) {
// This method relies in extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
// solhint-disable-next-line no-inline-assembly
... | /**
* @dev Returns true if `account` is a contract.
*
* [// importANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresse... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
609,
1036
]
} | 18,358 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | 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` wi... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | sendValue | function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address... | /**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `tr... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
1969,
2371
]
} | 18,359 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | 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` wi... | /**
* @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.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
3127,
3305
]
} | 18,360 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | 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` wi... | /**
* @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.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
3530,
3731
]
} | 18,361 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | 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` wi... | /**
* @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.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
4101,
4332
]
} | 18,362 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | 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` wi... | /**
* @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");
return _functionCallWithValue(target, data, value, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
4583,
4904
]
} | 18,363 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using SafeMath for uint256;
using Address for address;
// Mapping from token ID to account balances
mapping (uint256 => mapping(address => uint256)) private _balances;
// Mapping from account to operator approvals
map... | /**
*
* @dev Implementation of the basic standard multi-token.
* See https://eips.ethereum.org/EIPS/eip-1155
* Originally based on code by Enjin: https://github.com/enjin/erc-1155
*
* _Available since v3.1._
*/ | NatSpecMultiLine | uri | function uri(uint256) external view override returns (string memory) {
return _uri;
}
| /**
* @dev See {IERC1155MetadataURI-uri}.
*
* This implementation returns the same URI for *all* token types. It relies
* on the token type ID substitution mechanism
* https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
*
* Clients calling this function must replace the `\{id\}` substrin... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
2255,
2359
]
} | 18,364 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using SafeMath for uint256;
using Address for address;
// Mapping from token ID to account balances
mapping (uint256 => mapping(address => uint256)) private _balances;
// Mapping from account to operator approvals
map... | /**
*
* @dev Implementation of the basic standard multi-token.
* See https://eips.ethereum.org/EIPS/eip-1155
* Originally based on code by Enjin: https://github.com/enjin/erc-1155
*
* _Available since v3.1._
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address account, uint256 id) public view override returns (uint256) {
require(account != address(0), "ERC1155: balance query for the zero address");
return _balances[id][account];
}
| /**
* @dev See {IERC1155-balanceOf}.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
2505,
2733
]
} | 18,365 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using SafeMath for uint256;
using Address for address;
// Mapping from token ID to account balances
mapping (uint256 => mapping(address => uint256)) private _balances;
// Mapping from account to operator approvals
map... | /**
*
* @dev Implementation of the basic standard multi-token.
* See https://eips.ethereum.org/EIPS/eip-1155
* Originally based on code by Enjin: https://github.com/enjin/erc-1155
*
* _Available since v3.1._
*/ | NatSpecMultiLine | balanceOfBatch | function balanceOfBatch(
address[] memory accounts,
uint256[] memory ids
)
public
view
override
returns (uint256[] memory)
{
require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");
uint256[] memory batchBalances = new uint256[](accounts.length);
... | /**
* @dev See {IERC1155-balanceOfBatch}.
*
* Requirements:
*
* - `accounts` and `ids` must have the same length.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
2894,
3533
]
} | 18,366 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using SafeMath for uint256;
using Address for address;
// Mapping from token ID to account balances
mapping (uint256 => mapping(address => uint256)) private _balances;
// Mapping from account to operator approvals
map... | /**
*
* @dev Implementation of the basic standard multi-token.
* See https://eips.ethereum.org/EIPS/eip-1155
* Originally based on code by Enjin: https://github.com/enjin/erc-1155
*
* _Available since v3.1._
*/ | NatSpecMultiLine | setApprovalForAll | function setApprovalForAll(address operator, bool approved) public virtual override {
require(_msgSender() != operator, "ERC1155: setting approval status for self");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
| /**
* @dev See {IERC1155-setApprovalForAll}.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
3601,
3917
]
} | 18,367 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using SafeMath for uint256;
using Address for address;
// Mapping from token ID to account balances
mapping (uint256 => mapping(address => uint256)) private _balances;
// Mapping from account to operator approvals
map... | /**
*
* @dev Implementation of the basic standard multi-token.
* See https://eips.ethereum.org/EIPS/eip-1155
* Originally based on code by Enjin: https://github.com/enjin/erc-1155
*
* _Available since v3.1._
*/ | NatSpecMultiLine | isApprovedForAll | function isApprovedForAll(address account, address operator) public view override returns (bool) {
return _operatorApprovals[account][operator];
}
| /**
* @dev See {IERC1155-isApprovedForAll}.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
3984,
4149
]
} | 18,368 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using SafeMath for uint256;
using Address for address;
// Mapping from token ID to account balances
mapping (uint256 => mapping(address => uint256)) private _balances;
// Mapping from account to operator approvals
map... | /**
*
* @dev Implementation of the basic standard multi-token.
* See https://eips.ethereum.org/EIPS/eip-1155
* Originally based on code by Enjin: https://github.com/enjin/erc-1155
*
* _Available since v3.1._
*/ | NatSpecMultiLine | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 id,
uint256 amount,
bytes memory data
)
public
virtual
override
{
require(to != address(0), "ERC1155: transfer to the zero address");
require(
from == _msgSender() || isApprovedForAll(from, _msgSend... | /**
* @dev See {IERC1155-safeTransferFrom}.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
4216,
5145
]
} | 18,369 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using SafeMath for uint256;
using Address for address;
// Mapping from token ID to account balances
mapping (uint256 => mapping(address => uint256)) private _balances;
// Mapping from account to operator approvals
map... | /**
*
* @dev Implementation of the basic standard multi-token.
* See https://eips.ethereum.org/EIPS/eip-1155
* Originally based on code by Enjin: https://github.com/enjin/erc-1155
*
* _Available since v3.1._
*/ | NatSpecMultiLine | safeBatchTransferFrom | function safeBatchTransferFrom(
address from,
address to,
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
)
public
virtual
override
{
require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
require(to != address(0), "ERC115... | /**
* @dev See {IERC1155-safeBatchTransferFrom}.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
5217,
6442
]
} | 18,370 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using SafeMath for uint256;
using Address for address;
// Mapping from token ID to account balances
mapping (uint256 => mapping(address => uint256)) private _balances;
// Mapping from account to operator approvals
map... | /**
*
* @dev Implementation of the basic standard multi-token.
* See https://eips.ethereum.org/EIPS/eip-1155
* Originally based on code by Enjin: https://github.com/enjin/erc-1155
*
* _Available since v3.1._
*/ | NatSpecMultiLine | _setURI | function _setURI(string memory newuri) internal virtual {
_uri = newuri;
}
| /**
* @dev Sets a new URI for all token types, by relying on the token type ID
* substitution mechanism
* https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
*
* By this mechanism, any occurrence of the `\{id\}` substring in either the
* URI or any of the amounts in the JSON file at said U... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
7281,
7374
]
} | 18,371 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using SafeMath for uint256;
using Address for address;
// Mapping from token ID to account balances
mapping (uint256 => mapping(address => uint256)) private _balances;
// Mapping from account to operator approvals
map... | /**
*
* @dev Implementation of the basic standard multi-token.
* See https://eips.ethereum.org/EIPS/eip-1155
* Originally based on code by Enjin: https://github.com/enjin/erc-1155
*
* _Available since v3.1._
*/ | NatSpecMultiLine | _mint | function _mint(address account, uint256 id, uint256 amount, bytes memory data) internal virtual {
require(account != address(0), "ERC1155: mint to the zero address");
address operator = _msgSender();
_beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount),... | /**
* @dev Creates `amount` tokens of token type `id`, and assigns them to `account`.
*
* Emits a {TransferSingle} event.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
* accept... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
7765,
8353
]
} | 18,372 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using SafeMath for uint256;
using Address for address;
// Mapping from token ID to account balances
mapping (uint256 => mapping(address => uint256)) private _balances;
// Mapping from account to operator approvals
map... | /**
*
* @dev Implementation of the basic standard multi-token.
* See https://eips.ethereum.org/EIPS/eip-1155
* Originally based on code by Enjin: https://github.com/enjin/erc-1155
*
* _Available since v3.1._
*/ | NatSpecMultiLine | _mintBatch | function _mintBatch(address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) internal virtual {
require(to != address(0), "ERC1155: mint to the zero address");
require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
address operator = _msgSender();
... | /**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
*
* Requirements:
*
* - `ids` and `amounts` must have the same length.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
* acceptance magic value.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
8704,
9424
]
} | 18,373 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using SafeMath for uint256;
using Address for address;
// Mapping from token ID to account balances
mapping (uint256 => mapping(address => uint256)) private _balances;
// Mapping from account to operator approvals
map... | /**
*
* @dev Implementation of the basic standard multi-token.
* See https://eips.ethereum.org/EIPS/eip-1155
* Originally based on code by Enjin: https://github.com/enjin/erc-1155
*
* _Available since v3.1._
*/ | NatSpecMultiLine | _burn | function _burn(address account, uint256 id, uint256 amount) internal virtual {
require(account != address(0), "ERC1155: burn from the zero address");
address operator = _msgSender();
_beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");
_bal... | /**
* @dev Destroys `amount` tokens of token type `id` from `account`
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens of token type `id`.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
9678,
10234
]
} | 18,374 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using SafeMath for uint256;
using Address for address;
// Mapping from token ID to account balances
mapping (uint256 => mapping(address => uint256)) private _balances;
// Mapping from account to operator approvals
map... | /**
*
* @dev Implementation of the basic standard multi-token.
* See https://eips.ethereum.org/EIPS/eip-1155
* Originally based on code by Enjin: https://github.com/enjin/erc-1155
*
* _Available since v3.1._
*/ | NatSpecMultiLine | _burnBatch | function _burnBatch(address account, uint256[] memory ids, uint256[] memory amounts) internal virtual {
require(account != address(0), "ERC1155: burn from the zero address");
require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
address operator = _msgSender();
_befo... | /**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
*
* Requirements:
*
* - `ids` and `amounts` must have the same length.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
10432,
11158
]
} | 18,375 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | ERC1155 | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using SafeMath for uint256;
using Address for address;
// Mapping from token ID to account balances
mapping (uint256 => mapping(address => uint256)) private _balances;
// Mapping from account to operator approvals
map... | /**
*
* @dev Implementation of the basic standard multi-token.
* See https://eips.ethereum.org/EIPS/eip-1155
* Originally based on code by Enjin: https://github.com/enjin/erc-1155
*
* _Available since v3.1._
*/ | NatSpecMultiLine | _beforeTokenTransfer | function _beforeTokenTransfer(
address operator,
address from,
address to,
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
)
internal virtual
{ }
| /**
* @dev Hook that is called before any token transfer. This includes minting
* and burning, as well as batched variants.
*
* The same hook is called on both single and batched variants. For single
* transfers, the length of the `id` and `amount` arrays will be 1.
*
* Calling conditions (for each `id` a... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
12109,
12350
]
} | 18,376 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSend... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
497,
581
]
} | 18,377 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSend... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
1139,
1292
]
} | 18,378 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSend... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
1442,
1691
]
} | 18,379 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | _add | function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._indexes[value] = set._values.length;
retur... | /**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
908,
1327
]
} | 18,380 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | _remove | function _remove(Set storage set, bytes32 value) private returns (bool) {
// We read and store the value's index to prevent multiple reads from the same storage slot
uint256 valueIndex = set._indexes[value];
if (valueIndex != 0) { // Equivalent to contains(set, value)
// To delete an element f... | /**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
1498,
3047
]
} | 18,381 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | _contains | function _contains(Set storage set, bytes32 value) private view returns (bool) {
return set._indexes[value] != 0;
}
| /**
* @dev Returns true if the value is in the set. O(1).
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
3128,
3262
]
} | 18,382 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | _length | function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
| /**
* @dev Returns the number of values on the set. O(1).
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
3343,
3457
]
} | 18,383 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | _at | function _at(Set storage set, uint256 index) private view returns (bytes32) {
require(set._values.length > index, "EnumerableSet: index out of bounds");
return set._values[index];
}
| /**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
3796,
4005
]
} | 18,384 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | add | function add(AddressSet storage set, address value) internal returns (bool) {
return _add(set._inner, bytes32(uint256(value)));
}
| /**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
4254,
4402
]
} | 18,385 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | remove | function remove(AddressSet storage set, address value) internal returns (bool) {
return _remove(set._inner, bytes32(uint256(value)));
}
| /**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
4573,
4727
]
} | 18,386 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | contains | function contains(AddressSet storage set, address value) internal view returns (bool) {
return _contains(set._inner, bytes32(uint256(value)));
}
| /**
* @dev Returns true if the value is in the set. O(1).
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
4808,
4971
]
} | 18,387 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | length | function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
| /**
* @dev Returns the number of values in the set. O(1).
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
5052,
5174
]
} | 18,388 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | at | function at(AddressSet storage set, uint256 index) internal view returns (address) {
return address(uint256(_at(set._inner, index)));
}
| /**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
5513,
5667
]
} | 18,389 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | add | function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
| /**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
5912,
6048
]
} | 18,390 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | remove | function remove(UintSet storage set, uint256 value) internal returns (bool) {
return _remove(set._inner, bytes32(value));
}
| /**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
6219,
6361
]
} | 18,391 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | contains | function contains(UintSet storage set, uint256 value) internal view returns (bool) {
return _contains(set._inner, bytes32(value));
}
| /**
* @dev Returns true if the value is in the set. O(1).
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
6442,
6593
]
} | 18,392 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | length | function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
| /**
* @dev Returns the number of values on the set. O(1).
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
6674,
6793
]
} | 18,393 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | at | function at(UintSet storage set, uint256 index) internal view returns (uint256) {
return uint256(_at(set._inner, index));
}
| /**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
7132,
7274
]
} | 18,394 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | AlpacaWearable | contract AlpacaWearable is ERC1155(""), Ownable, IAlpacaWearable {
using EnumerableSet for EnumerableSet.AddressSet;
/* ========== EVENT ========== */
event AddWearable(uint256 indexed wearableId, uint256 energy);
event UpdateWearableEnergy(
uint256 indexed wearableId,
uint25... | // import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
// import "@openzeppelin/contracts/access/Ownable.sol";
// import "@openzeppelin/contracts/utils/EnumerableSet.sol";
// import "contracts/interfaces/IAlpacaWearable.sol"; | LineComment | wearableCount | function wearableCount() public view returns (uint256) {
return wearables.length;
}
| /* ========== VIEW ========== */ | Comment | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
807,
909
]
} | 18,395 |
AlpacaWearable | AlpacaWearable.sol | 0xdf003a97fa6b3a14bd8c2ed4c331a9187e127ad2 | Solidity | AlpacaWearable | contract AlpacaWearable is ERC1155(""), Ownable, IAlpacaWearable {
using EnumerableSet for EnumerableSet.AddressSet;
/* ========== EVENT ========== */
event AddWearable(uint256 indexed wearableId, uint256 energy);
event UpdateWearableEnergy(
uint256 indexed wearableId,
uint25... | // import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
// import "@openzeppelin/contracts/access/Ownable.sol";
// import "@openzeppelin/contracts/utils/EnumerableSet.sol";
// import "contracts/interfaces/IAlpacaWearable.sol"; | LineComment | addWearable | function addWearable(uint32 energy, uint32 wearableType)
public
onlyOwner
returns (uint256)
{
require(wearableType != 0, "invalid type");
uint256 id = wearables.length;
wearables.push(Wearable({energy: energy, wearableType: wearableType}));
emit AddWearable(id, energy);
return... | /* ========== MUTATION ========== */ | Comment | v0.6.12+commit.27d51765 | MIT | ipfs://07c608cd745755dda2ed3980bca493ab0b3409225fc1830d13415e1b8e89bb4d | {
"func_code_index": [
1376,
1748
]
} | 18,396 |
eFaisaa | eFaisaa.sol | 0x26d22c7d714824abb0589329e58662a725c08904 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | totalSupply | function totalSupply() constant returns (uint256 supply) {}
| /// @return total amount of tokens | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://888146985cb6087bf08cbaf11eaae836e750b3c3d84f05be4405c9ff3d0cc502 | {
"func_code_index": [
60,
124
]
} | 18,397 | |||
eFaisaa | eFaisaa.sol | 0x26d22c7d714824abb0589329e58662a725c08904 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | balanceOf | function balanceOf(address _owner) constant returns (uint256 balance) {}
| /// @param _owner The address from which the balance will be retrieved
/// @return The balance | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://888146985cb6087bf08cbaf11eaae836e750b3c3d84f05be4405c9ff3d0cc502 | {
"func_code_index": [
232,
309
]
} | 18,398 | |||
eFaisaa | eFaisaa.sol | 0x26d22c7d714824abb0589329e58662a725c08904 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | transfer | function transfer(address _to, uint256 _value) returns (bool success) {}
| /// @notice send `_value` token to `_to` from `msg.sender`
/// @param _to The address of the recipient
/// @param _value The amount of token to be transferred
/// @return Whether the transfer was successful or not | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://888146985cb6087bf08cbaf11eaae836e750b3c3d84f05be4405c9ff3d0cc502 | {
"func_code_index": [
546,
623
]
} | 18,399 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.