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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
StrategyUSDTCurve | StrategyUSDTCurve.sol | 0x7865ee2a9fc0e94fbcae1dff3f75604300802945 | Solidity | StrategyUSDTCurve | contract StrategyUSDTCurve {
using SafeERC20 for IERC20;
using Address for address;
using SafeMath for uint256;
address constant public unirouter = address(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
address constant public weth = address(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2);
addres... | withdraw | function withdraw(uint _amount) external onlyController
nt amount = _withdraw(_amount);
dress _vault = Controller(controller).vaults(address(want));
require(_vault != address(0), "!vault");
IERC20(want).safeTransfer(_vault, amount);
| // Withdraw partial funds, normally used with a vault withdrawal | LineComment | v0.5.17+commit.d19bba13 | None | bzzr://92ab33b8d162b96dde4279b774e67eebea1f88ee2e09153fa248b2ff4fa7b05b | {
"func_code_index": [
2214,
2487
]
} | 12,600 | ||
WAGMISevenTwentyOne | contracts/SevenTwentyOneVending.sol | 0x3c16452f0175c03cad9c317618b85f1ac0a4dcf4 | Solidity | WAGMISevenTwentyOne | contract WAGMISevenTwentyOne is ERC721, Ownable {
using SafeMath for uint256;
bool public saleIsActive = false;
string public PROVENANCE = 'fda87b2427b54fa172bc8a88a8dc952cb6fbfc008516c11d4d986a1eff4d8194';
string public OPENSEA_STORE_METADATA = 'ipfs://QmZkUbeWgJp19rsFD98tJ7jCdGdXDj16gQwCdKaWNjovUk';
... | /**
* @title SevenTwentyOneVending.sol
* @dev Extends ERC721 Non-Fungible Token Standard's basic implementation
*/ | NatSpecMultiLine | withdraw | function withdraw() public onlyOwner {
uint256 balance = address(this).balance;
msg.sender.transfer(balance);
}
| /**
* @dev Enable Contract Owner to withdraw funds from the contract
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | {
"func_code_index": [
993,
1128
]
} | 12,601 | ||
WAGMISevenTwentyOne | contracts/SevenTwentyOneVending.sol | 0x3c16452f0175c03cad9c317618b85f1ac0a4dcf4 | Solidity | WAGMISevenTwentyOne | contract WAGMISevenTwentyOne is ERC721, Ownable {
using SafeMath for uint256;
bool public saleIsActive = false;
string public PROVENANCE = 'fda87b2427b54fa172bc8a88a8dc952cb6fbfc008516c11d4d986a1eff4d8194';
string public OPENSEA_STORE_METADATA = 'ipfs://QmZkUbeWgJp19rsFD98tJ7jCdGdXDj16gQwCdKaWNjovUk';
... | /**
* @title SevenTwentyOneVending.sol
* @dev Extends ERC721 Non-Fungible Token Standard's basic implementation
*/ | NatSpecMultiLine | withdrawTransfer | function withdrawTransfer(address _to) public onlyOwner {
require(address(_to) != address(this), 'Cannot send funds to the contract itself');
uint256 balance = address(this).balance;
msg.sender.transfer(balance);
}
| /**
* @dev Enable Contract Owner to transfer contract funds to any address of her choosing
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | {
"func_code_index": [
1239,
1485
]
} | 12,602 | ||
WAGMISevenTwentyOne | contracts/SevenTwentyOneVending.sol | 0x3c16452f0175c03cad9c317618b85f1ac0a4dcf4 | Solidity | WAGMISevenTwentyOne | contract WAGMISevenTwentyOne is ERC721, Ownable {
using SafeMath for uint256;
bool public saleIsActive = false;
string public PROVENANCE = 'fda87b2427b54fa172bc8a88a8dc952cb6fbfc008516c11d4d986a1eff4d8194';
string public OPENSEA_STORE_METADATA = 'ipfs://QmZkUbeWgJp19rsFD98tJ7jCdGdXDj16gQwCdKaWNjovUk';
... | /**
* @title SevenTwentyOneVending.sol
* @dev Extends ERC721 Non-Fungible Token Standard's basic implementation
*/ | NatSpecMultiLine | mintTeamTokens | function mintTeamTokens(uint256 _numberOfTokens) public onlyOwner {
require(_numberOfTokens <= MAX_TOTAL_TOKENS, 'Can not mint more than the total supply.');
require(_numberOfTokens >= 100, 'Can not mint more than 100 NFTs at a time.');
require(totalSupply().add(_numberOfTokens) <= MAX_TOTAL_TOKENS, 'Mintin... | /**
* @dev Set aside tokens for marketing, Owner does not need to pay. Tokens are sent to the Owner.
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | {
"func_code_index": [
1606,
2150
]
} | 12,603 | ||
WAGMISevenTwentyOne | contracts/SevenTwentyOneVending.sol | 0x3c16452f0175c03cad9c317618b85f1ac0a4dcf4 | Solidity | WAGMISevenTwentyOne | contract WAGMISevenTwentyOne is ERC721, Ownable {
using SafeMath for uint256;
bool public saleIsActive = false;
string public PROVENANCE = 'fda87b2427b54fa172bc8a88a8dc952cb6fbfc008516c11d4d986a1eff4d8194';
string public OPENSEA_STORE_METADATA = 'ipfs://QmZkUbeWgJp19rsFD98tJ7jCdGdXDj16gQwCdKaWNjovUk';
... | /**
* @title SevenTwentyOneVending.sol
* @dev Extends ERC721 Non-Fungible Token Standard's basic implementation
*/ | NatSpecMultiLine | mintTokenAndTransfer | function mintTokenAndTransfer(address _to, uint256 _numberOfTokens) public onlyOwner {
require(_numberOfTokens <= MAX_TOTAL_TOKENS, 'Can not mint more than the total supply.');
require(totalSupply().add(_numberOfTokens) <= MAX_TOTAL_TOKENS, 'Minting would exceed max supply of Tokens');
require(address(_to) ... | /**
* @dev Mint any amount of Tokens to another address for free.
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | {
"func_code_index": [
2236,
2926
]
} | 12,604 | ||
WAGMISevenTwentyOne | contracts/SevenTwentyOneVending.sol | 0x3c16452f0175c03cad9c317618b85f1ac0a4dcf4 | Solidity | WAGMISevenTwentyOne | contract WAGMISevenTwentyOne is ERC721, Ownable {
using SafeMath for uint256;
bool public saleIsActive = false;
string public PROVENANCE = 'fda87b2427b54fa172bc8a88a8dc952cb6fbfc008516c11d4d986a1eff4d8194';
string public OPENSEA_STORE_METADATA = 'ipfs://QmZkUbeWgJp19rsFD98tJ7jCdGdXDj16gQwCdKaWNjovUk';
... | /**
* @title SevenTwentyOneVending.sol
* @dev Extends ERC721 Non-Fungible Token Standard's basic implementation
*/ | NatSpecMultiLine | setRevealTimestamp | function setRevealTimestamp(uint256 _revealTimeStamp) public onlyOwner {
REVEAL_TIMESTAMP = _revealTimeStamp;
}
| /**
* @dev Set the timestamp for the collection to reveal itself. Likely not in use.
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | {
"func_code_index": [
3031,
3158
]
} | 12,605 | ||
WAGMISevenTwentyOne | contracts/SevenTwentyOneVending.sol | 0x3c16452f0175c03cad9c317618b85f1ac0a4dcf4 | Solidity | WAGMISevenTwentyOne | contract WAGMISevenTwentyOne is ERC721, Ownable {
using SafeMath for uint256;
bool public saleIsActive = false;
string public PROVENANCE = 'fda87b2427b54fa172bc8a88a8dc952cb6fbfc008516c11d4d986a1eff4d8194';
string public OPENSEA_STORE_METADATA = 'ipfs://QmZkUbeWgJp19rsFD98tJ7jCdGdXDj16gQwCdKaWNjovUk';
... | /**
* @title SevenTwentyOneVending.sol
* @dev Extends ERC721 Non-Fungible Token Standard's basic implementation
*/ | NatSpecMultiLine | setProvenanceHash | function setProvenanceHash(string memory _provenanceHash) public onlyOwner {
require(bytes(PROVENANCE).length == 0, 'Provenance has already been set, no do-overs!');
PROVENANCE = _provenanceHash;
}
| /**
* @dev Set the provenance hash
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | {
"func_code_index": [
3213,
3434
]
} | 12,606 | ||
WAGMISevenTwentyOne | contracts/SevenTwentyOneVending.sol | 0x3c16452f0175c03cad9c317618b85f1ac0a4dcf4 | Solidity | WAGMISevenTwentyOne | contract WAGMISevenTwentyOne is ERC721, Ownable {
using SafeMath for uint256;
bool public saleIsActive = false;
string public PROVENANCE = 'fda87b2427b54fa172bc8a88a8dc952cb6fbfc008516c11d4d986a1eff4d8194';
string public OPENSEA_STORE_METADATA = 'ipfs://QmZkUbeWgJp19rsFD98tJ7jCdGdXDj16gQwCdKaWNjovUk';
... | /**
* @title SevenTwentyOneVending.sol
* @dev Extends ERC721 Non-Fungible Token Standard's basic implementation
*/ | NatSpecMultiLine | setContractURI | function setContractURI(string memory _contractMetadataURI) public onlyOwner {
OPENSEA_STORE_METADATA = _contractMetadataURI;
}
| /**
* @dev Set OpenSea metadata per https://docs.opensea.io/docs/contract-level-metadata
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | {
"func_code_index": [
3543,
3686
]
} | 12,607 | ||
WAGMISevenTwentyOne | contracts/SevenTwentyOneVending.sol | 0x3c16452f0175c03cad9c317618b85f1ac0a4dcf4 | Solidity | WAGMISevenTwentyOne | contract WAGMISevenTwentyOne is ERC721, Ownable {
using SafeMath for uint256;
bool public saleIsActive = false;
string public PROVENANCE = 'fda87b2427b54fa172bc8a88a8dc952cb6fbfc008516c11d4d986a1eff4d8194';
string public OPENSEA_STORE_METADATA = 'ipfs://QmZkUbeWgJp19rsFD98tJ7jCdGdXDj16gQwCdKaWNjovUk';
... | /**
* @title SevenTwentyOneVending.sol
* @dev Extends ERC721 Non-Fungible Token Standard's basic implementation
*/ | NatSpecMultiLine | contractURI | function contractURI() public view returns (string memory) {
return OPENSEA_STORE_METADATA;
}
| /**
* @dev Get OpenSea metadata
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | {
"func_code_index": [
3738,
3847
]
} | 12,608 | ||
WAGMISevenTwentyOne | contracts/SevenTwentyOneVending.sol | 0x3c16452f0175c03cad9c317618b85f1ac0a4dcf4 | Solidity | WAGMISevenTwentyOne | contract WAGMISevenTwentyOne is ERC721, Ownable {
using SafeMath for uint256;
bool public saleIsActive = false;
string public PROVENANCE = 'fda87b2427b54fa172bc8a88a8dc952cb6fbfc008516c11d4d986a1eff4d8194';
string public OPENSEA_STORE_METADATA = 'ipfs://QmZkUbeWgJp19rsFD98tJ7jCdGdXDj16gQwCdKaWNjovUk';
... | /**
* @title SevenTwentyOneVending.sol
* @dev Extends ERC721 Non-Fungible Token Standard's basic implementation
*/ | NatSpecMultiLine | setBaseURI | function setBaseURI(string memory _baseURI) public onlyOwner {
_setBaseURI(_baseURI);
}
| /**
* @dev Set the IPFS baseURI, including ending `/` where JSON is located
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | {
"func_code_index": [
3943,
4046
]
} | 12,609 | ||
WAGMISevenTwentyOne | contracts/SevenTwentyOneVending.sol | 0x3c16452f0175c03cad9c317618b85f1ac0a4dcf4 | Solidity | WAGMISevenTwentyOne | contract WAGMISevenTwentyOne is ERC721, Ownable {
using SafeMath for uint256;
bool public saleIsActive = false;
string public PROVENANCE = 'fda87b2427b54fa172bc8a88a8dc952cb6fbfc008516c11d4d986a1eff4d8194';
string public OPENSEA_STORE_METADATA = 'ipfs://QmZkUbeWgJp19rsFD98tJ7jCdGdXDj16gQwCdKaWNjovUk';
... | /**
* @title SevenTwentyOneVending.sol
* @dev Extends ERC721 Non-Fungible Token Standard's basic implementation
*/ | NatSpecMultiLine | flipSaleState | function flipSaleState() public onlyOwner {
saleIsActive = !saleIsActive;
}
| /**
* @dev Pause sale if active, make active if paused
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | {
"func_code_index": [
4121,
4212
]
} | 12,610 | ||
WAGMISevenTwentyOne | contracts/SevenTwentyOneVending.sol | 0x3c16452f0175c03cad9c317618b85f1ac0a4dcf4 | Solidity | WAGMISevenTwentyOne | contract WAGMISevenTwentyOne is ERC721, Ownable {
using SafeMath for uint256;
bool public saleIsActive = false;
string public PROVENANCE = 'fda87b2427b54fa172bc8a88a8dc952cb6fbfc008516c11d4d986a1eff4d8194';
string public OPENSEA_STORE_METADATA = 'ipfs://QmZkUbeWgJp19rsFD98tJ7jCdGdXDj16gQwCdKaWNjovUk';
... | /**
* @title SevenTwentyOneVending.sol
* @dev Extends ERC721 Non-Fungible Token Standard's basic implementation
*/ | NatSpecMultiLine | mintTokens | function mintTokens(uint256 _numberOfTokens) public payable {
require(saleIsActive, 'Sale must be active to mint.');
require(_numberOfTokens <= MAX_TOKEN_ALLOWANCE, 'Minting allowance is being enforced');
require(
totalSupply().add(_numberOfTokens) <= MAX_TOTAL_TOKENS,
'Purchase would exceed... | /**
* @dev Vending part of the contract, any address can purchase Tokens based on the contract price.
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | {
"func_code_index": [
4334,
5491
]
} | 12,611 | ||
WAGMISevenTwentyOne | contracts/SevenTwentyOneVending.sol | 0x3c16452f0175c03cad9c317618b85f1ac0a4dcf4 | Solidity | WAGMISevenTwentyOne | contract WAGMISevenTwentyOne is ERC721, Ownable {
using SafeMath for uint256;
bool public saleIsActive = false;
string public PROVENANCE = 'fda87b2427b54fa172bc8a88a8dc952cb6fbfc008516c11d4d986a1eff4d8194';
string public OPENSEA_STORE_METADATA = 'ipfs://QmZkUbeWgJp19rsFD98tJ7jCdGdXDj16gQwCdKaWNjovUk';
... | /**
* @title SevenTwentyOneVending.sol
* @dev Extends ERC721 Non-Fungible Token Standard's basic implementation
*/ | NatSpecMultiLine | setStartingIndex | function setStartingIndex() public {
require(startingIndex == 0, 'Starting index is already set');
require(startingIndexBlock != 0, 'Starting index block must be set');
startingIndex = uint256(blockhash(startingIndexBlock)) % MAX_TOTAL_TOKENS;
// Just a sanity case in the worst case if this function is ... | /**
* @dev Set the starting index for the collection
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | {
"func_code_index": [
5563,
6243
]
} | 12,612 | ||
WAGMISevenTwentyOne | contracts/SevenTwentyOneVending.sol | 0x3c16452f0175c03cad9c317618b85f1ac0a4dcf4 | Solidity | WAGMISevenTwentyOne | contract WAGMISevenTwentyOne is ERC721, Ownable {
using SafeMath for uint256;
bool public saleIsActive = false;
string public PROVENANCE = 'fda87b2427b54fa172bc8a88a8dc952cb6fbfc008516c11d4d986a1eff4d8194';
string public OPENSEA_STORE_METADATA = 'ipfs://QmZkUbeWgJp19rsFD98tJ7jCdGdXDj16gQwCdKaWNjovUk';
... | /**
* @title SevenTwentyOneVending.sol
* @dev Extends ERC721 Non-Fungible Token Standard's basic implementation
*/ | NatSpecMultiLine | emergencySetStartingIndexBlock | function emergencySetStartingIndexBlock() public onlyOwner {
require(startingIndex == 0, 'Starting index is already set');
startingIndexBlock = block.number;
}
| /**
* @dev Set the starting index block for the collection, essentially unblocking
* setting starting index
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | {
"func_code_index": [
6375,
6558
]
} | 12,613 | ||
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | LockRequestable | contract LockRequestable {
// MEMBERS
/// @notice the count of all invocations of `generateLockId`.
uint256 public lockRequestCount;
// CONSTRUCTOR
constructor() public {
lockRequestCount = 0;
}
// FUNCTIONS
/** @notice Returns a fresh unique identifier.
*... | /** @title A contract for generating unique identifiers
*
* @notice A contract that provides a identifier generation scheme,
* guaranteeing uniqueness across all contracts that inherit from it,
* as well as unpredictability of future identifiers.
*
* @dev This contract is intended to be inherited by any ... | NatSpecMultiLine | generateLockId | function generateLockId() internal returns (bytes32 lockId) {
return keccak256(abi.encodePacked(blockhash(block.number - 1), address(this), ++lockRequestCount));
}
| /** @notice Returns a fresh unique identifier.
*
* @dev the generation scheme uses three components.
* First, the blockhash of the previous block.
* Second, the deployed address.
* Third, the next value of the counter.
* This ensure that identifiers are unique across all contracts
* following this scheme... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
741,
923
]
} | 12,614 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Interface | contract ERC20Interface {
// METHODS
// NOTE:
// public getter functions are not currently recognised as an
// implementation of the matching abstract function by the compiler.
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md#name
// function name() public view retu... | totalSupply | function totalSupply() public view returns (uint256);
| // METHODS
// NOTE:
// public getter functions are not currently recognised as an
// implementation of the matching abstract function by the compiler.
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md#name
// function name() public view returns (string);
// https://github.com/ethereum/EIPs/blob/master/... | LineComment | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
689,
747
]
} | 12,615 | ||
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Interface | contract ERC20Interface {
// METHODS
// NOTE:
// public getter functions are not currently recognised as an
// implementation of the matching abstract function by the compiler.
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md#name
// function name() public view retu... | balanceOf | function balanceOf(address _owner) public view returns (uint256 balance);
| // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md#balanceof | LineComment | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
828,
906
]
} | 12,616 | ||
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Interface | contract ERC20Interface {
// METHODS
// NOTE:
// public getter functions are not currently recognised as an
// implementation of the matching abstract function by the compiler.
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md#name
// function name() public view retu... | transfer | function transfer(address _to, uint256 _value) public returns (bool success);
| // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md#transfer | LineComment | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
986,
1068
]
} | 12,617 | ||
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Interface | contract ERC20Interface {
// METHODS
// NOTE:
// public getter functions are not currently recognised as an
// implementation of the matching abstract function by the compiler.
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md#name
// function name() public view retu... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);
| // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md#transferfrom | LineComment | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
1152,
1253
]
} | 12,618 | ||
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Interface | contract ERC20Interface {
// METHODS
// NOTE:
// public getter functions are not currently recognised as an
// implementation of the matching abstract function by the compiler.
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md#name
// function name() public view retu... | approve | function approve(address _spender, uint256 _value) public returns (bool success);
| // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md#approve | LineComment | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
1332,
1418
]
} | 12,619 | ||
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Interface | contract ERC20Interface {
// METHODS
// NOTE:
// public getter functions are not currently recognised as an
// implementation of the matching abstract function by the compiler.
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md#name
// function name() public view retu... | allowance | function allowance(address _owner, address _spender) public view returns (uint256 remaining);
| // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md#allowance | LineComment | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
1499,
1597
]
} | 12,620 | ||
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | Custodian | contract Custodian {
// TYPES
/** @dev The `Request` struct stores a pending unlocking.
* `callbackAddress` and `callbackSelector` are the data required to
* make a callback. The custodian completes the process by
* calling `callbackAddress.call(callbackSelector, lockId)`, which
... | /** @title A dual control contract.
*
* @notice A general purpose contract that implements dual control over
* co-operating contracts through a callback mechanism.
*
* @dev This contract implements dual control through a 2-of-N
* threshold multi-signature scheme. The contract recognizes a set of N signer... | NatSpecMultiLine | requestUnlock | function requestUnlock(
bytes32 _lockId,
address _callbackAddress,
bytes4 _callbackSelector,
address _whitelistedAddress
)
public
payable
returns (bytes32 requestMsgHash)
{
require(msg.sender == primary || msg.value >= 1 ether);
// disallow using a zero value for the cal... | /** @notice Requests an unlocking with a lock identifier and a callback.
*
* @dev If called by an account other than the primary a 1 ETH stake
* must be paid. This is an anti-spam measure. As well as the callback
* and the lock identifier parameters a 'whitelisted address' is required
* for compatibility wi... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
5029,
7004
]
} | 12,621 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | Custodian | contract Custodian {
// TYPES
/** @dev The `Request` struct stores a pending unlocking.
* `callbackAddress` and `callbackSelector` are the data required to
* make a callback. The custodian completes the process by
* calling `callbackAddress.call(callbackSelector, lockId)`, which
... | /** @title A dual control contract.
*
* @notice A general purpose contract that implements dual control over
* co-operating contracts through a callback mechanism.
*
* @dev This contract implements dual control through a 2-of-N
* threshold multi-signature scheme. The contract recognizes a set of N signer... | NatSpecMultiLine | completeUnlock | function completeUnlock(
bytes32 _requestMsgHash,
uint8 _recoveryByte1, bytes32 _ecdsaR1, bytes32 _ecdsaS1,
uint8 _recoveryByte2, bytes32 _ecdsaR2, bytes32 _ecdsaS2
)
public
returns (bool success)
{
Request storage request = requestMap[_requestMsgHash];
// copy storage to locals b... | /** @notice Completes a pending unlocking with two signatures.
*
* @dev Given a request message hash as two signatures of it from
* two distinct signers in the signer set, this function completes the
* unlocking of the pending request by executing the callback.
*
* @param _requestMsgHash The request mes... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
7936,
10634
]
} | 12,622 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | Custodian | contract Custodian {
// TYPES
/** @dev The `Request` struct stores a pending unlocking.
* `callbackAddress` and `callbackSelector` are the data required to
* make a callback. The custodian completes the process by
* calling `callbackAddress.call(callbackSelector, lockId)`, which
... | /** @title A dual control contract.
*
* @notice A general purpose contract that implements dual control over
* co-operating contracts through a callback mechanism.
*
* @dev This contract implements dual control through a 2-of-N
* threshold multi-signature scheme. The contract recognizes a set of N signer... | NatSpecMultiLine | deleteUncompletableRequest | function deleteUncompletableRequest(bytes32 _requestMsgHash) public {
Request storage request = requestMap[_requestMsgHash];
uint256 idx = request.idx;
require(0 < idx && idx < lastCompletedIdxs[request.callbackAddress][request.callbackSelector]);
delete requestMap[_requestMsgHash];
}
| /** @notice Reclaim the storage of a pending request that is uncompleteable.
*
* @dev If a pending request shares the callback (address and selector) of
* a later request has has been completed, then the request can no longer
* be completed. This function will reclaim the contract storage of the
* pending r... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
11093,
11430
]
} | 12,623 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | Custodian | contract Custodian {
// TYPES
/** @dev The `Request` struct stores a pending unlocking.
* `callbackAddress` and `callbackSelector` are the data required to
* make a callback. The custodian completes the process by
* calling `callbackAddress.call(callbackSelector, lockId)`, which
... | /** @title A dual control contract.
*
* @notice A general purpose contract that implements dual control over
* co-operating contracts through a callback mechanism.
*
* @dev This contract implements dual control through a 2-of-N
* threshold multi-signature scheme. The contract recognizes a set of N signer... | NatSpecMultiLine | extendRequestTimeLock | function extendRequestTimeLock(bytes32 _requestMsgHash) public onlyPrimary {
Request storage request = requestMap[_requestMsgHash];
// reject ‘null’ results from the map lookup
// this can only be the case if an unknown `_requestMsgHash` is received
require(request.callbackAddress != address(0));
... | /** @notice Extend the time lock of a pending request.
*
* @dev Requests made by the primary account receive the default time lock.
* This function allows the primary account to apply the extended time lock
* to one its own requests.
*
* @param _requestMsgHash The request message hash of a pending reque... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
11800,
12440
]
} | 12,624 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | CustodianUpgradeable | contract CustodianUpgradeable is LockRequestable {
// TYPES
/// @dev The struct type for pending custodian changes.
struct CustodianChangeRequest {
address proposedNew;
}
// MEMBERS
/// @dev The address of the account or contract that acts as the custodian.
address publ... | /** @title A contract to inherit upgradeable custodianship.
*
* @notice A contract that provides re-usable code for upgradeable
* custodianship. That custodian may be an account or another contract.
*
* @dev This contract is intended to be inherited by any contract
* requiring a custodian to control some... | NatSpecMultiLine | requestCustodianChange | function requestCustodianChange(address _proposedCustodian) public returns (bytes32 lockId) {
require(_proposedCustodian != address(0));
lockId = generateLockId();
custodianChangeReqs[lockId] = CustodianChangeRequest({
proposedNew: _proposedCustodian
});
emit CustodianChangeReque... | /** @notice Requests a change of the custodian associated with this contract.
*
* @dev Returns a unique lock id associated with the request.
* Anyone can call this function, but confirming the request is authorized
* by the custodian.
*
* @param _proposedCustodian The address of the new custodian.
* @... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
1223,
1624
]
} | 12,625 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | CustodianUpgradeable | contract CustodianUpgradeable is LockRequestable {
// TYPES
/// @dev The struct type for pending custodian changes.
struct CustodianChangeRequest {
address proposedNew;
}
// MEMBERS
/// @dev The address of the account or contract that acts as the custodian.
address publ... | /** @title A contract to inherit upgradeable custodianship.
*
* @notice A contract that provides re-usable code for upgradeable
* custodianship. That custodian may be an account or another contract.
*
* @dev This contract is intended to be inherited by any contract
* requiring a custodian to control some... | NatSpecMultiLine | confirmCustodianChange | function confirmCustodianChange(bytes32 _lockId) public onlyCustodian {
custodian = getCustodianChangeReq(_lockId);
delete custodianChangeReqs[_lockId];
emit CustodianChangeConfirmed(_lockId, custodian);
}
| /** @notice Confirms a pending change of the custodian associated with this contract.
*
* @dev When called by the current custodian with a lock id associated with a
* pending custodian change, the `address custodian` member will be updated with the
* requested address.
*
* @param _lockId The identifier ... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
2021,
2267
]
} | 12,626 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | CustodianUpgradeable | contract CustodianUpgradeable is LockRequestable {
// TYPES
/// @dev The struct type for pending custodian changes.
struct CustodianChangeRequest {
address proposedNew;
}
// MEMBERS
/// @dev The address of the account or contract that acts as the custodian.
address publ... | /** @title A contract to inherit upgradeable custodianship.
*
* @notice A contract that provides re-usable code for upgradeable
* custodianship. That custodian may be an account or another contract.
*
* @dev This contract is intended to be inherited by any contract
* requiring a custodian to control some... | NatSpecMultiLine | getCustodianChangeReq | function getCustodianChangeReq(bytes32 _lockId) private view returns (address _proposedNew) {
CustodianChangeRequest storage changeRequest = custodianChangeReqs[_lockId];
// reject ‘null’ results from the map lookup
// this can only be the case if an unknown `_lockId` is received
require(changeReq... | // PRIVATE FUNCTIONS | LineComment | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
2296,
2721
]
} | 12,627 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20ImplUpgradeable | contract ERC20ImplUpgradeable is CustodianUpgradeable {
// TYPES
/// @dev The struct type for pending implementation changes.
struct ImplChangeRequest {
address proposedNew;
}
// MEMBERS
// @dev The reference to the active token implementation.
ERC20Impl public erc20Im... | /** @title A contract to inherit upgradeable token implementations.
*
* @notice A contract that provides re-usable code for upgradeable
* token implementations. It itself inherits from `CustodianUpgradable`
* as the upgrade process is controlled by the custodian.
*
* @dev This contract is intended to be ... | NatSpecMultiLine | requestImplChange | function requestImplChange(address _proposedImpl) public returns (bytes32 lockId) {
require(_proposedImpl != address(0));
lockId = generateLockId();
implChangeReqs[lockId] = ImplChangeRequest({
proposedNew: _proposedImpl
});
emit ImplChangeRequested(lockId, msg.sender, _proposedI... | /** @notice Requests a change of the active implementation associated
* with this contract.
*
* @dev Returns a unique lock id associated with the request.
* Anyone can call this function, but confirming the request is authorized
* by the custodian.
*
* @param _proposedImpl The address of the new activ... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
1222,
1583
]
} | 12,628 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20ImplUpgradeable | contract ERC20ImplUpgradeable is CustodianUpgradeable {
// TYPES
/// @dev The struct type for pending implementation changes.
struct ImplChangeRequest {
address proposedNew;
}
// MEMBERS
// @dev The reference to the active token implementation.
ERC20Impl public erc20Im... | /** @title A contract to inherit upgradeable token implementations.
*
* @notice A contract that provides re-usable code for upgradeable
* token implementations. It itself inherits from `CustodianUpgradable`
* as the upgrade process is controlled by the custodian.
*
* @dev This contract is intended to be ... | NatSpecMultiLine | confirmImplChange | function confirmImplChange(bytes32 _lockId) public onlyCustodian {
erc20Impl = getImplChangeReq(_lockId);
delete implChangeReqs[_lockId];
emit ImplChangeConfirmed(_lockId, address(erc20Impl));
}
| /** @notice Confirms a pending change of the active implementation
* associated with this contract.
*
* @dev When called by the custodian with a lock id associated with a
* pending change, the `ERC20Impl erc20Impl` member will be updated
* with the requested address.
*
* @param _lockId The identifier ... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
1985,
2220
]
} | 12,629 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20ImplUpgradeable | contract ERC20ImplUpgradeable is CustodianUpgradeable {
// TYPES
/// @dev The struct type for pending implementation changes.
struct ImplChangeRequest {
address proposedNew;
}
// MEMBERS
// @dev The reference to the active token implementation.
ERC20Impl public erc20Im... | /** @title A contract to inherit upgradeable token implementations.
*
* @notice A contract that provides re-usable code for upgradeable
* token implementations. It itself inherits from `CustodianUpgradable`
* as the upgrade process is controlled by the custodian.
*
* @dev This contract is intended to be ... | NatSpecMultiLine | getImplChangeReq | function getImplChangeReq(bytes32 _lockId) private view returns (ERC20Impl _proposedNew) {
ImplChangeRequest storage changeRequest = implChangeReqs[_lockId];
// reject ‘null’ results from the map lookup
// this can only be the case if an unknown `_lockId` is received
require(changeRequest.proposed... | // PRIVATE FUNCTIONS | LineComment | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
2249,
2672
]
} | 12,630 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Proxy | contract ERC20Proxy is ERC20Interface, ERC20ImplUpgradeable {
// MEMBERS
/// @notice Returns the name of the token.
string public name;
/// @notice Returns the symbol of the token.
string public symbol;
/// @notice Returns the number of decimals the token uses.
uint8 public d... | /** @title Public interface to ERC20 compliant token.
*
* @notice This contract is a permanent entry point to an ERC20 compliant
* system of contracts.
*
* @dev This contract contains no business logic and instead
* delegates to an instance of ERC20Impl. This contract also has no storage
* that constit... | NatSpecMultiLine | totalSupply | function totalSupply() public view returns (uint256) {
return erc20Impl.totalSupply();
}
| /** @notice Returns the total token supply.
*
* @return the total token supply.
*/ | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
809,
916
]
} | 12,631 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Proxy | contract ERC20Proxy is ERC20Interface, ERC20ImplUpgradeable {
// MEMBERS
/// @notice Returns the name of the token.
string public name;
/// @notice Returns the symbol of the token.
string public symbol;
/// @notice Returns the number of decimals the token uses.
uint8 public d... | /** @title Public interface to ERC20 compliant token.
*
* @notice This contract is a permanent entry point to an ERC20 compliant
* system of contracts.
*
* @dev This contract contains no business logic and instead
* delegates to an instance of ERC20Impl. This contract also has no storage
* that constit... | NatSpecMultiLine | balanceOf | function balanceOf(address _owner) public view returns (uint256 balance) {
return erc20Impl.balanceOf(_owner);
}
| /** @notice Returns the account balance of another account with address
* `_owner`.
*
* @return balance the balance of account with address `_owner`.
*/ | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
1108,
1239
]
} | 12,632 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Proxy | contract ERC20Proxy is ERC20Interface, ERC20ImplUpgradeable {
// MEMBERS
/// @notice Returns the name of the token.
string public name;
/// @notice Returns the symbol of the token.
string public symbol;
/// @notice Returns the number of decimals the token uses.
uint8 public d... | /** @title Public interface to ERC20 compliant token.
*
* @notice This contract is a permanent entry point to an ERC20 compliant
* system of contracts.
*
* @dev This contract contains no business logic and instead
* delegates to an instance of ERC20Impl. This contract also has no storage
* that constit... | NatSpecMultiLine | emitTransfer | function emitTransfer(address _from, address _to, uint256 _value) public onlyImpl {
emit Transfer(_from, _to, _value);
}
| /** @dev Internal use only.
*/ | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
1285,
1424
]
} | 12,633 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Proxy | contract ERC20Proxy is ERC20Interface, ERC20ImplUpgradeable {
// MEMBERS
/// @notice Returns the name of the token.
string public name;
/// @notice Returns the symbol of the token.
string public symbol;
/// @notice Returns the number of decimals the token uses.
uint8 public d... | /** @title Public interface to ERC20 compliant token.
*
* @notice This contract is a permanent entry point to an ERC20 compliant
* system of contracts.
*
* @dev This contract contains no business logic and instead
* delegates to an instance of ERC20Impl. This contract also has no storage
* that constit... | NatSpecMultiLine | transfer | function transfer(address _to, uint256 _value) public returns (bool success) {
require(erc20Impl.blocked(msg.sender) != true );
require(erc20Impl.blocked(_to) != true );
return erc20Impl.transferWithSender(msg.sender, _to, _value);
}
| /** @notice Transfers `_value` amount of tokens to address `_to`.
*
* @dev Will fire the `Transfer` event. Will revert if the `_from`
* account balance does not have enough tokens to spend.
*
* @return success true if transfer completes.
*/ | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
1718,
1988
]
} | 12,634 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Proxy | contract ERC20Proxy is ERC20Interface, ERC20ImplUpgradeable {
// MEMBERS
/// @notice Returns the name of the token.
string public name;
/// @notice Returns the symbol of the token.
string public symbol;
/// @notice Returns the number of decimals the token uses.
uint8 public d... | /** @title Public interface to ERC20 compliant token.
*
* @notice This contract is a permanent entry point to an ERC20 compliant
* system of contracts.
*
* @dev This contract contains no business logic and instead
* delegates to an instance of ERC20Impl. This contract also has no storage
* that constit... | NatSpecMultiLine | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
require(erc20Impl.blocked(msg.sender) != true );
require(erc20Impl.blocked(_from) != true );
require(erc20Impl.blocked(_to) != true );
return erc20Impl.transferFromWithSender(msg.sender, _from, _to, _va... | /** @notice Transfers `_value` amount of tokens from address `_from`
* to address `_to`.
*
* @dev Will fire the `Transfer` event. Will revert unless the `_from`
* account has deliberately authorized the sender of the message
* via some mechanism.
*
* @return success true if transfer completes.
*/ | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
2354,
2707
]
} | 12,635 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Proxy | contract ERC20Proxy is ERC20Interface, ERC20ImplUpgradeable {
// MEMBERS
/// @notice Returns the name of the token.
string public name;
/// @notice Returns the symbol of the token.
string public symbol;
/// @notice Returns the number of decimals the token uses.
uint8 public d... | /** @title Public interface to ERC20 compliant token.
*
* @notice This contract is a permanent entry point to an ERC20 compliant
* system of contracts.
*
* @dev This contract contains no business logic and instead
* delegates to an instance of ERC20Impl. This contract also has no storage
* that constit... | NatSpecMultiLine | emitApproval | function emitApproval(address _owner, address _spender, uint256 _value) public onlyImpl {
emit Approval(_owner, _spender, _value);
}
| /** @dev Internal use only.
*/ | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
2753,
2904
]
} | 12,636 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Proxy | contract ERC20Proxy is ERC20Interface, ERC20ImplUpgradeable {
// MEMBERS
/// @notice Returns the name of the token.
string public name;
/// @notice Returns the symbol of the token.
string public symbol;
/// @notice Returns the number of decimals the token uses.
uint8 public d... | /** @title Public interface to ERC20 compliant token.
*
* @notice This contract is a permanent entry point to an ERC20 compliant
* system of contracts.
*
* @dev This contract contains no business logic and instead
* delegates to an instance of ERC20Impl. This contract also has no storage
* that constit... | NatSpecMultiLine | approve | function approve(address _spender, uint256 _value) public returns (bool success) {
require(erc20Impl.blocked(msg.sender) != true);
require(erc20Impl.blocked(_spender) != true );
return erc20Impl.approveWithSender(msg.sender, _spender, _value);
}
| /** @notice Allows `_spender` to withdraw from your account multiple times,
* up to the `_value` amount. If this function is called again it
* overwrites the current allowance with _value.
*
* @dev Will fire the `Approval` event.
*
* @return success true if approval completes.
*/ | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
3246,
3528
]
} | 12,637 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Proxy | contract ERC20Proxy is ERC20Interface, ERC20ImplUpgradeable {
// MEMBERS
/// @notice Returns the name of the token.
string public name;
/// @notice Returns the symbol of the token.
string public symbol;
/// @notice Returns the number of decimals the token uses.
uint8 public d... | /** @title Public interface to ERC20 compliant token.
*
* @notice This contract is a permanent entry point to an ERC20 compliant
* system of contracts.
*
* @dev This contract contains no business logic and instead
* delegates to an instance of ERC20Impl. This contract also has no storage
* that constit... | NatSpecMultiLine | increaseApproval | function increaseApproval(address _spender, uint256 _addedValue) public returns (bool success) {
require(erc20Impl.blocked(msg.sender) != true);
require(erc20Impl.blocked(_spender) != true );
return erc20Impl.increaseApprovalWithSender(msg.sender, _spender, _addedValue);
}
| /** @notice Increases the amount `_spender` is allowed to withdraw from
* your account.
* This function is implemented to avoid the race condition in standard
* ERC20 contracts surrounding the `approve` method.
*
* @dev Will fire the `Approval` event. This function should be used instead of
* `approve`.
... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
3958,
4268
]
} | 12,638 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Proxy | contract ERC20Proxy is ERC20Interface, ERC20ImplUpgradeable {
// MEMBERS
/// @notice Returns the name of the token.
string public name;
/// @notice Returns the symbol of the token.
string public symbol;
/// @notice Returns the number of decimals the token uses.
uint8 public d... | /** @title Public interface to ERC20 compliant token.
*
* @notice This contract is a permanent entry point to an ERC20 compliant
* system of contracts.
*
* @dev This contract contains no business logic and instead
* delegates to an instance of ERC20Impl. This contract also has no storage
* that constit... | NatSpecMultiLine | decreaseApproval | function decreaseApproval(address _spender, uint256 _subtractedValue) public returns (bool success) {
require(erc20Impl.blocked(msg.sender) != true);
require(erc20Impl.blocked(_spender) != true );
return erc20Impl.decreaseApprovalWithSender(msg.sender, _spender, _subtractedValue);
}
| /** @notice Decreases the amount `_spender` is allowed to withdraw from
* your account. This function is implemented to avoid the race
* condition in standard ERC20 contracts surrounding the `approve` method.
*
* @dev Will fire the `Approval` event. This function should be used
* instead of `approve`.
*
... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
4690,
5010
]
} | 12,639 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Proxy | contract ERC20Proxy is ERC20Interface, ERC20ImplUpgradeable {
// MEMBERS
/// @notice Returns the name of the token.
string public name;
/// @notice Returns the symbol of the token.
string public symbol;
/// @notice Returns the number of decimals the token uses.
uint8 public d... | /** @title Public interface to ERC20 compliant token.
*
* @notice This contract is a permanent entry point to an ERC20 compliant
* system of contracts.
*
* @dev This contract contains no business logic and instead
* delegates to an instance of ERC20Impl. This contract also has no storage
* that constit... | NatSpecMultiLine | allowance | function allowance(address _owner, address _spender) public view returns (uint256 remaining) {
return erc20Impl.allowance(_owner, _spender);
}
| /** @notice Returns how much `_spender` is currently allowed to spend from
* `_owner`'s balance.
*
* @return remaining the remaining allowance.
*/ | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
5196,
5357
]
} | 12,640 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Store | contract ERC20Store is ERC20ImplUpgradeable {
// MEMBERS
/// @dev The total token supply.
uint256 public totalSupply;
/// @dev The mapping of balances.
mapping (address => uint256) public balances;
/// @dev The mapping of allowances.
mapping (address => mapping (address => ui... | /** @title ERC20 compliant token balance store.
*
* @notice This contract serves as the store of balances, allowances, and
* supply for the ERC20 compliant token. No business logic exists here.
*
* @dev This contract contains no business logic and instead
* is the final destination for any change in bala... | NatSpecMultiLine | setTotalSupply | function setTotalSupply(
uint256 _newTotalSupply
)
public
onlyImpl
{
totalSupply = _newTotalSupply;
}
| /** @notice The function to set the total supply of tokens.
*
* @dev Intended for use by token implementation functions
* that update the total supply. The only authorized caller
* is the active implementation.
*
* @param _newTotalSupply the value to set as the new total supply
*/ | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
869,
1026
]
} | 12,641 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Store | contract ERC20Store is ERC20ImplUpgradeable {
// MEMBERS
/// @dev The total token supply.
uint256 public totalSupply;
/// @dev The mapping of balances.
mapping (address => uint256) public balances;
/// @dev The mapping of allowances.
mapping (address => mapping (address => ui... | /** @title ERC20 compliant token balance store.
*
* @notice This contract serves as the store of balances, allowances, and
* supply for the ERC20 compliant token. No business logic exists here.
*
* @dev This contract contains no business logic and instead
* is the final destination for any change in bala... | NatSpecMultiLine | setAllowance | function setAllowance(
address _owner,
address _spender,
uint256 _value
)
public
onlyImpl
{
allowed[_owner][_spender] = _value;
}
| /** @notice Sets how much `_owner` allows `_spender` to transfer on behalf
* of `_owner`.
*
* @dev Intended for use by token implementation functions
* that update spending allowances. The only authorized caller
* is the active implementation.
*
* @param _owner The account that will allow an on-behalf... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
1546,
1749
]
} | 12,642 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Store | contract ERC20Store is ERC20ImplUpgradeable {
// MEMBERS
/// @dev The total token supply.
uint256 public totalSupply;
/// @dev The mapping of balances.
mapping (address => uint256) public balances;
/// @dev The mapping of allowances.
mapping (address => mapping (address => ui... | /** @title ERC20 compliant token balance store.
*
* @notice This contract serves as the store of balances, allowances, and
* supply for the ERC20 compliant token. No business logic exists here.
*
* @dev This contract contains no business logic and instead
* is the final destination for any change in bala... | NatSpecMultiLine | setBalance | function setBalance(
address _owner,
uint256 _newBalance
)
public
onlyImpl
{
balances[_owner] = _newBalance;
}
| /** @notice Sets the balance of `_owner` to `_newBalance`.
*
* @dev Intended for use by token implementation functions
* that update balances. The only authorized caller
* is the active implementation.
*
* @param _owner The account that will hold a new balance.
* @param _newBalance The balance to se... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
2125,
2300
]
} | 12,643 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Store | contract ERC20Store is ERC20ImplUpgradeable {
// MEMBERS
/// @dev The total token supply.
uint256 public totalSupply;
/// @dev The mapping of balances.
mapping (address => uint256) public balances;
/// @dev The mapping of allowances.
mapping (address => mapping (address => ui... | /** @title ERC20 compliant token balance store.
*
* @notice This contract serves as the store of balances, allowances, and
* supply for the ERC20 compliant token. No business logic exists here.
*
* @dev This contract contains no business logic and instead
* is the final destination for any change in bala... | NatSpecMultiLine | addBalance | function addBalance(
address _owner,
uint256 _balanceIncrease
)
public
onlyImpl
{
balances[_owner] = balances[_owner] + _balanceIncrease;
}
| /** @notice Adds `_balanceIncrease` to `_owner`'s balance.
*
* @dev Intended for use by token implementation functions
* that update balances. The only authorized caller
* is the active implementation.
* WARNING: the caller is responsible for preventing overflow.
*
* @param _owner The account that will... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
2749,
2953
]
} | 12,644 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Impl | contract ERC20Impl is CustodianUpgradeable {
// TYPES
/// @dev The struct type for pending increases to the token supply (print).
struct PendingPrint {
address receiver;
uint256 value;
}
// MEMBERS
/// @dev The reference to the proxy.
ERC20Proxy public erc20Pro... | /** @title ERC20 compliant token intermediary contract holding core logic.
*
* @notice This contract serves as an intermediary between the exposed ERC20
* interface in ERC20Proxy and the store of balances in ERC20Store. This
* contract contains core logic that the proxy can delegate to
* and that the store ... | NatSpecMultiLine | approveWithSender | function approveWithSender(
address _sender,
address _spender,
uint256 _value
)
public
onlyProxy
returns (bool success)
{
require(_spender != address(0));
erc20Store.setAllowance(_sender, _spender, _value);
erc20Proxy.emitApproval(_sender, _spender, _value);
return tr... | /** @notice Core logic of the ERC20 `approve` function.
*
* @dev This function can only be called by the referenced proxy,
* which has an `approve` function.
* Every argument passed to that function as well as the original
* `msg.sender` gets passed to this function.
* NOTE: approvals for the zero address... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
2891,
3274
]
} | 12,645 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Impl | contract ERC20Impl is CustodianUpgradeable {
// TYPES
/// @dev The struct type for pending increases to the token supply (print).
struct PendingPrint {
address receiver;
uint256 value;
}
// MEMBERS
/// @dev The reference to the proxy.
ERC20Proxy public erc20Pro... | /** @title ERC20 compliant token intermediary contract holding core logic.
*
* @notice This contract serves as an intermediary between the exposed ERC20
* interface in ERC20Proxy and the store of balances in ERC20Store. This
* contract contains core logic that the proxy can delegate to
* and that the store ... | NatSpecMultiLine | increaseApprovalWithSender | function increaseApprovalWithSender(
address _sender,
address _spender,
uint256 _addedValue
)
public
onlyProxy
returns (bool success)
{
require(_spender != address(0));
uint256 currentAllowance = erc20Store.allowed(_sender, _spender);
uint256 newAllowance = currentAllowanc... | /** @notice Core logic of the `increaseApproval` function.
*
* @dev This function can only be called by the referenced proxy,
* which has an `increaseApproval` function.
* Every argument passed to that function as well as the original
* `msg.sender` gets passed to this function.
* NOTE: approvals for the ... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
3757,
4361
]
} | 12,646 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Impl | contract ERC20Impl is CustodianUpgradeable {
// TYPES
/// @dev The struct type for pending increases to the token supply (print).
struct PendingPrint {
address receiver;
uint256 value;
}
// MEMBERS
/// @dev The reference to the proxy.
ERC20Proxy public erc20Pro... | /** @title ERC20 compliant token intermediary contract holding core logic.
*
* @notice This contract serves as an intermediary between the exposed ERC20
* interface in ERC20Proxy and the store of balances in ERC20Store. This
* contract contains core logic that the proxy can delegate to
* and that the store ... | NatSpecMultiLine | decreaseApprovalWithSender | function decreaseApprovalWithSender(
address _sender,
address _spender,
uint256 _subtractedValue
)
public
onlyProxy
returns (bool success)
{
require(_spender != address(0)); // disallow unspendable approvals
uint256 currentAllowance = erc20Store.allowed(_sender, _spender);
... | /** @notice Core logic of the `decreaseApproval` function.
*
* @dev This function can only be called by the referenced proxy,
* which has a `decreaseApproval` function.
* Every argument passed to that function as well as the original
* `msg.sender` gets passed to this function.
* NOTE: approvals for the z... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
4843,
5491
]
} | 12,647 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Impl | contract ERC20Impl is CustodianUpgradeable {
// TYPES
/// @dev The struct type for pending increases to the token supply (print).
struct PendingPrint {
address receiver;
uint256 value;
}
// MEMBERS
/// @dev The reference to the proxy.
ERC20Proxy public erc20Pro... | /** @title ERC20 compliant token intermediary contract holding core logic.
*
* @notice This contract serves as an intermediary between the exposed ERC20
* interface in ERC20Proxy and the store of balances in ERC20Store. This
* contract contains core logic that the proxy can delegate to
* and that the store ... | NatSpecMultiLine | requestPrint | function requestPrint(address _receiver, uint256 _value) public returns (bytes32 lockId) {
require(_receiver != address(0));
lockId = generateLockId();
pendingPrintMap[lockId] = PendingPrint({
receiver: _receiver,
value: _value
});
emit PrintingLocked(lockId, _receiver, ... | /** @notice Requests an increase in the token supply, with the newly created
* tokens to be added to the balance of the specified account.
*
* @dev Returns a unique lock id associated with the request.
* Anyone can call this function, but confirming the request is authorized
* by the custodian.
* NOTE: pr... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
6199,
6567
]
} | 12,648 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Impl | contract ERC20Impl is CustodianUpgradeable {
// TYPES
/// @dev The struct type for pending increases to the token supply (print).
struct PendingPrint {
address receiver;
uint256 value;
}
// MEMBERS
/// @dev The reference to the proxy.
ERC20Proxy public erc20Pro... | /** @title ERC20 compliant token intermediary contract holding core logic.
*
* @notice This contract serves as an intermediary between the exposed ERC20
* interface in ERC20Proxy and the store of balances in ERC20Store. This
* contract contains core logic that the proxy can delegate to
* and that the store ... | NatSpecMultiLine | confirmPrint | function confirmPrint(bytes32 _lockId) public onlyCustodian {
PendingPrint storage print = pendingPrintMap[_lockId];
// reject ‘null’ results from the map lookup
// this can only be the case if an unknown `_lockId` is received
address receiver = print.receiver;
require (receiver != address(0)... | /** @notice Confirms a pending increase in the token supply.
*
* @dev When called by the custodian with a lock id associated with a
* pending increase, the amount requested to be printed in the print request
* is printed to the receiving address specified in that same request.
* NOTE: this function will not... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
7105,
7915
]
} | 12,649 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Impl | contract ERC20Impl is CustodianUpgradeable {
// TYPES
/// @dev The struct type for pending increases to the token supply (print).
struct PendingPrint {
address receiver;
uint256 value;
}
// MEMBERS
/// @dev The reference to the proxy.
ERC20Proxy public erc20Pro... | /** @title ERC20 compliant token intermediary contract holding core logic.
*
* @notice This contract serves as an intermediary between the exposed ERC20
* interface in ERC20Proxy and the store of balances in ERC20Store. This
* contract contains core logic that the proxy can delegate to
* and that the store ... | NatSpecMultiLine | burn | function burn(uint256 _value) public returns (bool success) {
require(blocked[msg.sender] != true);
uint256 balanceOfSender = erc20Store.balances(msg.sender);
require(_value <= balanceOfSender);
erc20Store.setBalance(msg.sender, balanceOfSender - _value);
erc20Store.setTotalSupply(erc20Store.... | /** @notice Burns the specified value from the sender's balance.
*
* @dev Sender's balanced is subtracted by the amount they wish to burn.
*
* @param _value The amount to burn.
*
* @return success true if the burn succeeded.
*/ | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
8206,
8674
]
} | 12,650 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Impl | contract ERC20Impl is CustodianUpgradeable {
// TYPES
/// @dev The struct type for pending increases to the token supply (print).
struct PendingPrint {
address receiver;
uint256 value;
}
// MEMBERS
/// @dev The reference to the proxy.
ERC20Proxy public erc20Pro... | /** @title ERC20 compliant token intermediary contract holding core logic.
*
* @notice This contract serves as an intermediary between the exposed ERC20
* interface in ERC20Proxy and the store of balances in ERC20Store. This
* contract contains core logic that the proxy can delegate to
* and that the store ... | NatSpecMultiLine | burn | function burn(address _from, uint256 _value) public onlyCustodian returns (bool success) {
uint256 balance = erc20Store.balances(_from);
if(_value <= balance){
erc20Store.setBalance(_from, balance - _value);
erc20Store.setTotalSupply(erc20Store.totalSupply() - _value);
erc20Proxy.em... | /** @notice Burns the specified value from the balance in question.
*
* @dev Suspected balance is subtracted by the amount which will be burnt.
*
* @dev If suspected balance has less than the amount requested, it will be set to 0.
*
* @param _from The address of suspected balance.
*
* @param _value... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
9139,
9878
]
} | 12,651 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Impl | contract ERC20Impl is CustodianUpgradeable {
// TYPES
/// @dev The struct type for pending increases to the token supply (print).
struct PendingPrint {
address receiver;
uint256 value;
}
// MEMBERS
/// @dev The reference to the proxy.
ERC20Proxy public erc20Pro... | /** @title ERC20 compliant token intermediary contract holding core logic.
*
* @notice This contract serves as an intermediary between the exposed ERC20
* interface in ERC20Proxy and the store of balances in ERC20Store. This
* contract contains core logic that the proxy can delegate to
* and that the store ... | NatSpecMultiLine | batchTransfer | function batchTransfer(address[] memory _tos, uint256[] memory _values) public returns (bool success) {
require(_tos.length == _values.length);
require(blocked[msg.sender] != true);
uint256 numTransfers = _tos.length;
uint256 senderBalance = erc20Store.balances(msg.sender);
for (uint256 i = 0... | /** @notice A function for a sender to issue multiple transfers to multiple
* different addresses at once. This function is implemented for gas
* considerations when someone wishes to transfer, as one transaction is
* cheaper than issuing several distinct individual `transfer` transactions.
*
* @dev By spec... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
10970,
11812
]
} | 12,652 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Impl | contract ERC20Impl is CustodianUpgradeable {
// TYPES
/// @dev The struct type for pending increases to the token supply (print).
struct PendingPrint {
address receiver;
uint256 value;
}
// MEMBERS
/// @dev The reference to the proxy.
ERC20Proxy public erc20Pro... | /** @title ERC20 compliant token intermediary contract holding core logic.
*
* @notice This contract serves as an intermediary between the exposed ERC20
* interface in ERC20Proxy and the store of balances in ERC20Store. This
* contract contains core logic that the proxy can delegate to
* and that the store ... | NatSpecMultiLine | enableSweep | function enableSweep(uint8[] memory _vs, bytes32[] memory _rs, bytes32[] memory _ss, address _to) public onlySweeper {
require(_to != address(0));
require(blocked[_to] != true);
require((_vs.length == _rs.length) && (_vs.length == _ss.length));
uint256 numSignatures = _vs.length;
uint256 swep... | /** @notice Enables the delegation of transfer control for many
* accounts to the sweeper account, transferring any balances
* as well to the given destination.
*
* @dev An account delegates transfer control by signing the
* value of `sweepMsg`. The sweeper account is the only authorized
* caller of this ... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
12862,
14031
]
} | 12,653 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Impl | contract ERC20Impl is CustodianUpgradeable {
// TYPES
/// @dev The struct type for pending increases to the token supply (print).
struct PendingPrint {
address receiver;
uint256 value;
}
// MEMBERS
/// @dev The reference to the proxy.
ERC20Proxy public erc20Pro... | /** @title ERC20 compliant token intermediary contract holding core logic.
*
* @notice This contract serves as an intermediary between the exposed ERC20
* interface in ERC20Proxy and the store of balances in ERC20Store. This
* contract contains core logic that the proxy can delegate to
* and that the store ... | NatSpecMultiLine | replaySweep | function replaySweep(address[] memory _froms, address _to) public onlySweeper {
require(_to != address(0));
require(blocked[_to] != true);
uint256 lenFroms = _froms.length;
uint256 sweptBalance = 0;
for (uint256 i = 0; i < lenFroms; ++i) {
address from = _froms[i];
require(b... | /** @notice For accounts that have delegated, transfer control
* to the sweeper, this function transfers their balances to the given
* destination.
*
* @dev The sweeper account is the only authorized caller of
* this function. This function accepts an array of addresses to have their
* balances transferred... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
14743,
15591
]
} | 12,654 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Impl | contract ERC20Impl is CustodianUpgradeable {
// TYPES
/// @dev The struct type for pending increases to the token supply (print).
struct PendingPrint {
address receiver;
uint256 value;
}
// MEMBERS
/// @dev The reference to the proxy.
ERC20Proxy public erc20Pro... | /** @title ERC20 compliant token intermediary contract holding core logic.
*
* @notice This contract serves as an intermediary between the exposed ERC20
* interface in ERC20Proxy and the store of balances in ERC20Store. This
* contract contains core logic that the proxy can delegate to
* and that the store ... | NatSpecMultiLine | transferFromWithSender | function transferFromWithSender(
address _sender,
address _from,
address _to,
uint256 _value
)
public
onlyProxy
returns (bool success)
{
require(_to != address(0));
uint256 balanceOfFrom = erc20Store.balances(_from);
require(_value <= balanceOfFrom);
uint256 ... | /** @notice Core logic of the ERC20 `transferFrom` function.
*
* @dev This function can only be called by the referenced proxy,
* which has a `transferFrom` function.
* Every argument passed to that function as well as the original
* `msg.sender` gets passed to this function.
* NOTE: transfers to the zero... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
16065,
16815
]
} | 12,655 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Impl | contract ERC20Impl is CustodianUpgradeable {
// TYPES
/// @dev The struct type for pending increases to the token supply (print).
struct PendingPrint {
address receiver;
uint256 value;
}
// MEMBERS
/// @dev The reference to the proxy.
ERC20Proxy public erc20Pro... | /** @title ERC20 compliant token intermediary contract holding core logic.
*
* @notice This contract serves as an intermediary between the exposed ERC20
* interface in ERC20Proxy and the store of balances in ERC20Store. This
* contract contains core logic that the proxy can delegate to
* and that the store ... | NatSpecMultiLine | transferWithSender | function transferWithSender(
address _sender,
address _to,
uint256 _value
)
public
onlyProxy
returns (bool success)
{
require(_to != address(0));
uint256 balanceOfSender = erc20Store.balances(_sender);
require(_value <= balanceOfSender);
erc20Store.setBalance(_sende... | /** @notice Core logic of the ERC20 `transfer` function.
*
* @dev This function can only be called by the referenced proxy,
* which has a `transfer` function.
* Every argument passed to that function as well as the original
* `msg.sender` gets passed to this function.
* NOTE: transfers to the zero address... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
17281,
17817
]
} | 12,656 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Impl | contract ERC20Impl is CustodianUpgradeable {
// TYPES
/// @dev The struct type for pending increases to the token supply (print).
struct PendingPrint {
address receiver;
uint256 value;
}
// MEMBERS
/// @dev The reference to the proxy.
ERC20Proxy public erc20Pro... | /** @title ERC20 compliant token intermediary contract holding core logic.
*
* @notice This contract serves as an intermediary between the exposed ERC20
* interface in ERC20Proxy and the store of balances in ERC20Store. This
* contract contains core logic that the proxy can delegate to
* and that the store ... | NatSpecMultiLine | transfer | function transfer(
address _from,
address _to,
uint256 _value
)
public
onlyCustodian
returns (bool success)
{
require(_to != address(0));
uint256 balanceOfSender = erc20Store.balances(_from);
if(_value <= balanceOfSender) {
erc20Store.setBalance(_from, balanceOfSe... | /** @notice Tranfers the specified value from the balance in question.
*
* @dev Suspected balance is subtracted by the amount which will be transfered.
*
* @dev If suspected balance has less than the amount requested, it will be set to 0.
*
* @param _from The address of suspected balance.
*
* @param... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
18289,
19019
]
} | 12,657 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Impl | contract ERC20Impl is CustodianUpgradeable {
// TYPES
/// @dev The struct type for pending increases to the token supply (print).
struct PendingPrint {
address receiver;
uint256 value;
}
// MEMBERS
/// @dev The reference to the proxy.
ERC20Proxy public erc20Pro... | /** @title ERC20 compliant token intermediary contract holding core logic.
*
* @notice This contract serves as an intermediary between the exposed ERC20
* interface in ERC20Proxy and the store of balances in ERC20Store. This
* contract contains core logic that the proxy can delegate to
* and that the store ... | NatSpecMultiLine | totalSupply | function totalSupply() public view returns (uint256) {
return erc20Store.totalSupply();
}
| /// @notice Core logic of the ERC20 `totalSupply` function. | NatSpecSingleLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
19132,
19240
]
} | 12,658 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Impl | contract ERC20Impl is CustodianUpgradeable {
// TYPES
/// @dev The struct type for pending increases to the token supply (print).
struct PendingPrint {
address receiver;
uint256 value;
}
// MEMBERS
/// @dev The reference to the proxy.
ERC20Proxy public erc20Pro... | /** @title ERC20 compliant token intermediary contract holding core logic.
*
* @notice This contract serves as an intermediary between the exposed ERC20
* interface in ERC20Proxy and the store of balances in ERC20Store. This
* contract contains core logic that the proxy can delegate to
* and that the store ... | NatSpecMultiLine | balanceOf | function balanceOf(address _owner) public view returns (uint256 balance) {
return erc20Store.balances(_owner);
}
| /// @notice Core logic of the ERC20 `balanceOf` function. | NatSpecSingleLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
19307,
19438
]
} | 12,659 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Impl | contract ERC20Impl is CustodianUpgradeable {
// TYPES
/// @dev The struct type for pending increases to the token supply (print).
struct PendingPrint {
address receiver;
uint256 value;
}
// MEMBERS
/// @dev The reference to the proxy.
ERC20Proxy public erc20Pro... | /** @title ERC20 compliant token intermediary contract holding core logic.
*
* @notice This contract serves as an intermediary between the exposed ERC20
* interface in ERC20Proxy and the store of balances in ERC20Store. This
* contract contains core logic that the proxy can delegate to
* and that the store ... | NatSpecMultiLine | allowance | function allowance(address _owner, address _spender) public view returns (uint256 remaining) {
return erc20Store.allowed(_owner, _spender);
}
| /// @notice Core logic of the ERC20 `allowance` function. | NatSpecSingleLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
19505,
19665
]
} | 12,660 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Impl | contract ERC20Impl is CustodianUpgradeable {
// TYPES
/// @dev The struct type for pending increases to the token supply (print).
struct PendingPrint {
address receiver;
uint256 value;
}
// MEMBERS
/// @dev The reference to the proxy.
ERC20Proxy public erc20Pro... | /** @title ERC20 compliant token intermediary contract holding core logic.
*
* @notice This contract serves as an intermediary between the exposed ERC20
* interface in ERC20Proxy and the store of balances in ERC20Store. This
* contract contains core logic that the proxy can delegate to
* and that the store ... | NatSpecMultiLine | blockWallet | function blockWallet(address wallet) public onlyCustodian returns (bool success) {
blocked[wallet] = true;
return true;
}
| /// @dev internal use only. | NatSpecSingleLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
19701,
19850
]
} | 12,661 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | ERC20Impl | contract ERC20Impl is CustodianUpgradeable {
// TYPES
/// @dev The struct type for pending increases to the token supply (print).
struct PendingPrint {
address receiver;
uint256 value;
}
// MEMBERS
/// @dev The reference to the proxy.
ERC20Proxy public erc20Pro... | /** @title ERC20 compliant token intermediary contract holding core logic.
*
* @notice This contract serves as an intermediary between the exposed ERC20
* interface in ERC20Proxy and the store of balances in ERC20Store. This
* contract contains core logic that the proxy can delegate to
* and that the store ... | NatSpecMultiLine | unblockWallet | function unblockWallet(address wallet) public onlyCustodian returns (bool success) {
blocked[wallet] = false;
return true;
}
| /// @dev internal use only. | NatSpecSingleLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
19886,
20038
]
} | 12,662 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | PrintLimiter | contract PrintLimiter is LockRequestable {
// TYPES
/// @dev The struct type for pending ceiling raises.
struct PendingCeilingRaise {
uint256 raiseBy;
}
/// @dev The struct type for pending wipes.
struct wipeAddress {
uint256 value;
address from;
}
... | /** @title A contact to govern hybrid control over increases to the token supply.
*
* @notice A contract that acts as a custodian of the active token
* implementation, and an intermediary between it and the ‘true’ custodian.
* It preserves the functionality of direct custodianship as well as granting
* limi... | NatSpecMultiLine | limitedPrint | function limitedPrint(address _receiver, uint256 _value) public onlyLimitedPrinter {
uint256 totalSupply = erc20Impl.totalSupply();
uint256 newTotalSupply = totalSupply + _value;
require(newTotalSupply >= totalSupply);
require(newTotalSupply <= totalSupplyCeiling);
erc20Impl.confirmPrint(erc2... | /** @notice Increases the token supply, with the newly created tokens
* being added to the balance of the specified account.
*
* @dev The function checks that the value to print does not
* exceed the supply ceiling when added to the current total supply.
* NOTE: printing to the zero address is disallowed.
... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
2877,
3268
]
} | 12,663 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | PrintLimiter | contract PrintLimiter is LockRequestable {
// TYPES
/// @dev The struct type for pending ceiling raises.
struct PendingCeilingRaise {
uint256 raiseBy;
}
/// @dev The struct type for pending wipes.
struct wipeAddress {
uint256 value;
address from;
}
... | /** @title A contact to govern hybrid control over increases to the token supply.
*
* @notice A contract that acts as a custodian of the active token
* implementation, and an intermediary between it and the ‘true’ custodian.
* It preserves the functionality of direct custodianship as well as granting
* limi... | NatSpecMultiLine | requestWipe | function requestWipe(address[] memory _from, uint256[] memory _value) public onlyLimitedPrinter returns (bytes32 lockId) {
lockId = generateLockId();
uint256 amount = _from.length;
for(uint256 i = 0; i < amount; i++) {
address from = _from[i];
uint256 value = _value[i];
pendi... | /** @notice Requests wipe of suspected accounts.
*
* @dev Returns a unique lock id associated with the request.
* Only linitedPrinter can call this function, and confirming the request is authorized
* by the custodian.
*
* @param _from The array of suspected accounts.
*
* @param _value array of am... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
3768,
4249
]
} | 12,664 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | PrintLimiter | contract PrintLimiter is LockRequestable {
// TYPES
/// @dev The struct type for pending ceiling raises.
struct PendingCeilingRaise {
uint256 raiseBy;
}
/// @dev The struct type for pending wipes.
struct wipeAddress {
uint256 value;
address from;
}
... | /** @title A contact to govern hybrid control over increases to the token supply.
*
* @notice A contract that acts as a custodian of the active token
* implementation, and an intermediary between it and the ‘true’ custodian.
* It preserves the functionality of direct custodianship as well as granting
* limi... | NatSpecMultiLine | confirmWipe | function confirmWipe(bytes32 _lockId) public onlyCustodian {
uint256 amount = pendingWipeMap[_lockId].length;
for(uint256 i = 0; i < amount; i++) {
wipeAddress memory addr = pendingWipeMap[_lockId][i];
address from = addr.from;
uint256 value = addr.value;
erc20Impl.burn(fro... | /** @notice Confirms a pending wipe of suspected accounts.
*
* @dev When called by the custodian with a lock id associated with a
* pending wipe, the amount requested is burned from the suspected accounts.
*
* @param _lockId The identifier of a pending wipe request.
*/ | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
4573,
5033
]
} | 12,665 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | PrintLimiter | contract PrintLimiter is LockRequestable {
// TYPES
/// @dev The struct type for pending ceiling raises.
struct PendingCeilingRaise {
uint256 raiseBy;
}
/// @dev The struct type for pending wipes.
struct wipeAddress {
uint256 value;
address from;
}
... | /** @title A contact to govern hybrid control over increases to the token supply.
*
* @notice A contract that acts as a custodian of the active token
* implementation, and an intermediary between it and the ‘true’ custodian.
* It preserves the functionality of direct custodianship as well as granting
* limi... | NatSpecMultiLine | requestTransfer | function requestTransfer(address _from, address _to, uint256 _value) public onlyLimitedPrinter returns (bytes32 lockId) {
lockId = generateLockId();
require (_value != 0);
pendingTransferMap[lockId] = transfer(_value, _from, _to);
emit TransferRequested(lockId, _from, _to, _value);
return l... | /** @notice Requests transfer from suspected account.
*
* @dev Returns a unique lock id associated with the request.
* Only linitedPrinter can call this function, and confirming the request is authorized
* by the custodian.
*
* @param _from address of suspected accounts.
*
* @param _to address of ... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
5561,
5919
]
} | 12,666 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | PrintLimiter | contract PrintLimiter is LockRequestable {
// TYPES
/// @dev The struct type for pending ceiling raises.
struct PendingCeilingRaise {
uint256 raiseBy;
}
/// @dev The struct type for pending wipes.
struct wipeAddress {
uint256 value;
address from;
}
... | /** @title A contact to govern hybrid control over increases to the token supply.
*
* @notice A contract that acts as a custodian of the active token
* implementation, and an intermediary between it and the ‘true’ custodian.
* It preserves the functionality of direct custodianship as well as granting
* limi... | NatSpecMultiLine | confirmTransfer | function confirmTransfer(bytes32 _lockId) public onlyCustodian {
address from = pendingTransferMap[_lockId].from;
address to = pendingTransferMap[_lockId].to;
uint256 value = pendingTransferMap[_lockId].value;
delete pendingTransferMap[_lockId];
erc20Impl.transfer(from, to, value);
e... | /** @notice Confirms a pending transfer request.
*
* @dev When called by the custodian with a lock id associated with a
* pending transfer request, the amount requested is tranferred from the suspected account.
*
* @param _lockId The identifier of a pending transfer request.
*/ | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
6252,
6656
]
} | 12,667 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | PrintLimiter | contract PrintLimiter is LockRequestable {
// TYPES
/// @dev The struct type for pending ceiling raises.
struct PendingCeilingRaise {
uint256 raiseBy;
}
/// @dev The struct type for pending wipes.
struct wipeAddress {
uint256 value;
address from;
}
... | /** @title A contact to govern hybrid control over increases to the token supply.
*
* @notice A contract that acts as a custodian of the active token
* implementation, and an intermediary between it and the ‘true’ custodian.
* It preserves the functionality of direct custodianship as well as granting
* limi... | NatSpecMultiLine | requestCeilingRaise | function requestCeilingRaise(uint256 _raiseBy) public returns (bytes32 lockId) {
require(_raiseBy != 0);
lockId = generateLockId();
pendingRaiseMap[lockId] = PendingCeilingRaise({
raiseBy: _raiseBy
});
emit CeilingRaiseLocked(lockId, _raiseBy);
}
| /** @notice Requests an increase to the supply ceiling.
*
* @dev Returns a unique lock id associated with the request.
* Anyone can call this function, but confirming the request is authorized
* by the custodian.
*
* @param _raiseBy The amount by which to raise the ceiling.
*
* @return lockId A un... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
7068,
7388
]
} | 12,668 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | PrintLimiter | contract PrintLimiter is LockRequestable {
// TYPES
/// @dev The struct type for pending ceiling raises.
struct PendingCeilingRaise {
uint256 raiseBy;
}
/// @dev The struct type for pending wipes.
struct wipeAddress {
uint256 value;
address from;
}
... | /** @title A contact to govern hybrid control over increases to the token supply.
*
* @notice A contract that acts as a custodian of the active token
* implementation, and an intermediary between it and the ‘true’ custodian.
* It preserves the functionality of direct custodianship as well as granting
* limi... | NatSpecMultiLine | confirmCeilingRaise | function confirmCeilingRaise(bytes32 _lockId) public onlyCustodian {
PendingCeilingRaise storage pendingRaise = pendingRaiseMap[_lockId];
// copy locals of references to struct members
uint256 raiseBy = pendingRaise.raiseBy;
// accounts for a gibberish _lockId
require(raiseBy != 0);
de... | /** @notice Confirms a pending increase in the token supply.
*
* @dev When called by the custodian with a lock id associated with a
* pending ceiling increase, the amount requested is added to the
* current supply ceiling.
* NOTE: this function will not execute any raise that would overflow the
* supply c... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
7881,
8535
]
} | 12,669 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | PrintLimiter | contract PrintLimiter is LockRequestable {
// TYPES
/// @dev The struct type for pending ceiling raises.
struct PendingCeilingRaise {
uint256 raiseBy;
}
/// @dev The struct type for pending wipes.
struct wipeAddress {
uint256 value;
address from;
}
... | /** @title A contact to govern hybrid control over increases to the token supply.
*
* @notice A contract that acts as a custodian of the active token
* implementation, and an intermediary between it and the ‘true’ custodian.
* It preserves the functionality of direct custodianship as well as granting
* limi... | NatSpecMultiLine | lowerCeiling | function lowerCeiling(uint256 _lowerBy) public onlyLimitedPrinter {
uint256 newCeiling = totalSupplyCeiling - _lowerBy;
// overflow check
require(newCeiling <= totalSupplyCeiling);
totalSupplyCeiling = newCeiling;
emit CeilingLowered(_lowerBy, newCeiling);
}
| /** @notice Lowers the supply ceiling, further constraining the bound of
* what can be printed by the limited printer.
*
* @dev The limited printer is the sole authorized caller of this function,
* so it is the only account that can elect to lower its limit to increase
* the token supply.
*
* @param _l... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
8965,
9280
]
} | 12,670 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | PrintLimiter | contract PrintLimiter is LockRequestable {
// TYPES
/// @dev The struct type for pending ceiling raises.
struct PendingCeilingRaise {
uint256 raiseBy;
}
/// @dev The struct type for pending wipes.
struct wipeAddress {
uint256 value;
address from;
}
... | /** @title A contact to govern hybrid control over increases to the token supply.
*
* @notice A contract that acts as a custodian of the active token
* implementation, and an intermediary between it and the ‘true’ custodian.
* It preserves the functionality of direct custodianship as well as granting
* limi... | NatSpecMultiLine | confirmPrintProxy | function confirmPrintProxy(bytes32 _lockId) public onlyCustodian {
erc20Impl.confirmPrint(_lockId);
}
| /** @notice Pass-through control of print confirmation, allowing this
* contract's custodian to act as the custodian of the associated
* active token implementation.
*
* @dev This contract is the direct custodian of the active token
* implementation, but this function allows this contract's custodian
* to... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
9942,
10062
]
} | 12,671 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | PrintLimiter | contract PrintLimiter is LockRequestable {
// TYPES
/// @dev The struct type for pending ceiling raises.
struct PendingCeilingRaise {
uint256 raiseBy;
}
/// @dev The struct type for pending wipes.
struct wipeAddress {
uint256 value;
address from;
}
... | /** @title A contact to govern hybrid control over increases to the token supply.
*
* @notice A contract that acts as a custodian of the active token
* implementation, and an intermediary between it and the ‘true’ custodian.
* It preserves the functionality of direct custodianship as well as granting
* limi... | NatSpecMultiLine | confirmCustodianChangeProxy | function confirmCustodianChangeProxy(bytes32 _lockId) public onlyCustodian {
erc20Impl.confirmCustodianChange(_lockId);
}
| /** @notice Pass-through control of custodian change confirmation,
* allowing this contract's custodian to act as the custodian of
* the associated active token implementation.
*
* @dev This contract is the direct custodian of the active token
* implementation, but this function allows this contract's custo... | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
10745,
10885
]
} | 12,672 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | PrintLimiter | contract PrintLimiter is LockRequestable {
// TYPES
/// @dev The struct type for pending ceiling raises.
struct PendingCeilingRaise {
uint256 raiseBy;
}
/// @dev The struct type for pending wipes.
struct wipeAddress {
uint256 value;
address from;
}
... | /** @title A contact to govern hybrid control over increases to the token supply.
*
* @notice A contract that acts as a custodian of the active token
* implementation, and an intermediary between it and the ‘true’ custodian.
* It preserves the functionality of direct custodianship as well as granting
* limi... | NatSpecMultiLine | blockWallet | function blockWallet(address wallet) public {
require(custodian.signerSet(msg.sender) == true);
erc20Impl.blockWallet(wallet);
emit Blocked(wallet);
}
| /** @notice Blocks all transactions with wallet.
*
* @dev Only signers from custodian are authorised t ocall this function
*
* @param wallet wallet which will be blocked.
*/ | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
11104,
11291
]
} | 12,673 |
PrintLimiter | PrintLimiter.sol | 0xf19eab58393609df5f5267486f92ac07522c2bf4 | Solidity | PrintLimiter | contract PrintLimiter is LockRequestable {
// TYPES
/// @dev The struct type for pending ceiling raises.
struct PendingCeilingRaise {
uint256 raiseBy;
}
/// @dev The struct type for pending wipes.
struct wipeAddress {
uint256 value;
address from;
}
... | /** @title A contact to govern hybrid control over increases to the token supply.
*
* @notice A contract that acts as a custodian of the active token
* implementation, and an intermediary between it and the ‘true’ custodian.
* It preserves the functionality of direct custodianship as well as granting
* limi... | NatSpecMultiLine | unblock | function unblock(address wallet) public {
require(custodian.signerSet(msg.sender) == true);
erc20Impl.unblockWallet(wallet);
emit Unblocked(wallet);
}
| /** @notice Unblocks all transactions with wallet.
*
* @dev Only signers from custodian are authorised t ocall this function
*
* @param wallet wallet which will be unblocked.
*/ | NatSpecMultiLine | v0.5.10+commit.5a6ea5b1 | None | bzzr://fe84821aafea4abef06f77a7de5ce773255cb3c427f82d03457d0ffff0a71078 | {
"func_code_index": [
11513,
11700
]
} | 12,674 |
NFT | contracts/ERC721Tradable.sol | 0xcabf0ecc15942e2de60f3824b83d0e24dd274b57 | Solidity | ERC721Tradable | abstract contract ERC721Tradable is ContextMixin, ERC721Enumerable, NativeMetaTransaction, Ownable {
using SafeMath for uint256;
address proxyRegistryAddress;
address public routerAddress;
uint256 private _currentTokenId = 0;
modifier onlyRouter() {
require(msg.sender == routerAddr... | /**
* @title ERC721Tradable
* ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality.
*/ | NatSpecMultiLine | setRouter | function setRouter(address _newRouter) external onlyOwner {
routerAddress = _newRouter;
}
| /// @dev Assigns a new address to act as the Router. Only available to the current CEO.
/// @param _newRouter The address of the new Router | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://224a73f41a4908869c0dc5ecce7d7719876732740935e9927c62f1c5ea63ea29 | {
"func_code_index": [
770,
878
]
} | 12,675 |
NFT | contracts/ERC721Tradable.sol | 0xcabf0ecc15942e2de60f3824b83d0e24dd274b57 | Solidity | ERC721Tradable | abstract contract ERC721Tradable is ContextMixin, ERC721Enumerable, NativeMetaTransaction, Ownable {
using SafeMath for uint256;
address proxyRegistryAddress;
address public routerAddress;
uint256 private _currentTokenId = 0;
modifier onlyRouter() {
require(msg.sender == routerAddr... | /**
* @title ERC721Tradable
* ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality.
*/ | NatSpecMultiLine | mintTo | function mintTo(address _to) public onlyOwner {
uint256 newTokenId = _getNextTokenId();
_mint(_to, newTokenId);
_incrementTokenId();
}
| /**
* @dev Mints a token to an address with a tokenURI.
* @param _to address of the future owner of the token
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://224a73f41a4908869c0dc5ecce7d7719876732740935e9927c62f1c5ea63ea29 | {
"func_code_index": [
1017,
1188
]
} | 12,676 |
NFT | contracts/ERC721Tradable.sol | 0xcabf0ecc15942e2de60f3824b83d0e24dd274b57 | Solidity | ERC721Tradable | abstract contract ERC721Tradable is ContextMixin, ERC721Enumerable, NativeMetaTransaction, Ownable {
using SafeMath for uint256;
address proxyRegistryAddress;
address public routerAddress;
uint256 private _currentTokenId = 0;
modifier onlyRouter() {
require(msg.sender == routerAddr... | /**
* @title ERC721Tradable
* ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality.
*/ | NatSpecMultiLine | delegatedMintTo | function delegatedMintTo(address _to) public onlyRouter returns (uint256) {
uint256 newTokenId = _getNextTokenId();
_mint(_to, newTokenId);
_incrementTokenId();
return newTokenId;
}
| /**
* @dev Mints a token to an address with a tokenURI.
* @param _to address of the future owner of the token
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://224a73f41a4908869c0dc5ecce7d7719876732740935e9927c62f1c5ea63ea29 | {
"func_code_index": [
1328,
1555
]
} | 12,677 |
NFT | contracts/ERC721Tradable.sol | 0xcabf0ecc15942e2de60f3824b83d0e24dd274b57 | Solidity | ERC721Tradable | abstract contract ERC721Tradable is ContextMixin, ERC721Enumerable, NativeMetaTransaction, Ownable {
using SafeMath for uint256;
address proxyRegistryAddress;
address public routerAddress;
uint256 private _currentTokenId = 0;
modifier onlyRouter() {
require(msg.sender == routerAddr... | /**
* @title ERC721Tradable
* ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality.
*/ | NatSpecMultiLine | setProxyRegistryAddress | function setProxyRegistryAddress(address _proxyRegistryAddress) public onlyOwner {
proxyRegistryAddress = _proxyRegistryAddress;
}
| /**
* @dev set proxy.
* @param _proxyRegistryAddress address of the proxy registry
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://224a73f41a4908869c0dc5ecce7d7719876732740935e9927c62f1c5ea63ea29 | {
"func_code_index": [
1668,
1817
]
} | 12,678 |
NFT | contracts/ERC721Tradable.sol | 0xcabf0ecc15942e2de60f3824b83d0e24dd274b57 | Solidity | ERC721Tradable | abstract contract ERC721Tradable is ContextMixin, ERC721Enumerable, NativeMetaTransaction, Ownable {
using SafeMath for uint256;
address proxyRegistryAddress;
address public routerAddress;
uint256 private _currentTokenId = 0;
modifier onlyRouter() {
require(msg.sender == routerAddr... | /**
* @title ERC721Tradable
* ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality.
*/ | NatSpecMultiLine | _getNextTokenId | function _getNextTokenId() private view returns (uint256) {
return _currentTokenId.add(1);
}
| /**
* @dev calculates the next token ID based on value of _currentTokenId
* @return uint256 for the next token ID
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://224a73f41a4908869c0dc5ecce7d7719876732740935e9927c62f1c5ea63ea29 | {
"func_code_index": [
1960,
2071
]
} | 12,679 |
NFT | contracts/ERC721Tradable.sol | 0xcabf0ecc15942e2de60f3824b83d0e24dd274b57 | Solidity | ERC721Tradable | abstract contract ERC721Tradable is ContextMixin, ERC721Enumerable, NativeMetaTransaction, Ownable {
using SafeMath for uint256;
address proxyRegistryAddress;
address public routerAddress;
uint256 private _currentTokenId = 0;
modifier onlyRouter() {
require(msg.sender == routerAddr... | /**
* @title ERC721Tradable
* ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality.
*/ | NatSpecMultiLine | _incrementTokenId | function _incrementTokenId() private {
_currentTokenId++;
}
| /**
* @dev increments the value of _currentTokenId
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://224a73f41a4908869c0dc5ecce7d7719876732740935e9927c62f1c5ea63ea29 | {
"func_code_index": [
2145,
2223
]
} | 12,680 |
NFT | contracts/ERC721Tradable.sol | 0xcabf0ecc15942e2de60f3824b83d0e24dd274b57 | Solidity | ERC721Tradable | abstract contract ERC721Tradable is ContextMixin, ERC721Enumerable, NativeMetaTransaction, Ownable {
using SafeMath for uint256;
address proxyRegistryAddress;
address public routerAddress;
uint256 private _currentTokenId = 0;
modifier onlyRouter() {
require(msg.sender == routerAddr... | /**
* @title ERC721Tradable
* ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality.
*/ | NatSpecMultiLine | isApprovedForAll | function isApprovedForAll(address owner, address operator)
override
public
view
returns (bool)
{
// Whitelist OpenSea proxy contract for easy trading.
ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
if (address(proxyRegistry.proxies(owner)) == operator) {
... | /**
* Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://224a73f41a4908869c0dc5ecce7d7719876732740935e9927c62f1c5ea63ea29 | {
"func_code_index": [
2623,
3073
]
} | 12,681 |
NFT | contracts/ERC721Tradable.sol | 0xcabf0ecc15942e2de60f3824b83d0e24dd274b57 | Solidity | ERC721Tradable | abstract contract ERC721Tradable is ContextMixin, ERC721Enumerable, NativeMetaTransaction, Ownable {
using SafeMath for uint256;
address proxyRegistryAddress;
address public routerAddress;
uint256 private _currentTokenId = 0;
modifier onlyRouter() {
require(msg.sender == routerAddr... | /**
* @title ERC721Tradable
* ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality.
*/ | NatSpecMultiLine | _msgSender | function _msgSender()
internal
override
view
returns (address sender)
{
return ContextMixin.msgSender();
}
| /**
* This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://224a73f41a4908869c0dc5ecce7d7719876732740935e9927c62f1c5ea63ea29 | {
"func_code_index": [
3212,
3378
]
} | 12,682 |
Play0x_LottoBall | Play0x_LottoBall.sol | 0x892552275e5d68d889a33ad119af86b7ddf7c237 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github... | /**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/ | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
if (a == 0) {
return 0;
}
uint256... | /**
* @dev Multiplies two numbers, reverts on overflow.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://b654f22f57aa857a1fab23118d87f2f9641b8a0d78456353eeb05e0ca95fb071 | {
"func_code_index": [
90,
486
]
} | 12,683 | |
Play0x_LottoBall | Play0x_LottoBall.sol | 0x892552275e5d68d889a33ad119af86b7ddf7c237 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github... | /**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/ | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
require(b > 0); // Solidity only automatically asserts 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, reverts on division by zero.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://b654f22f57aa857a1fab23118d87f2f9641b8a0d78456353eeb05e0ca95fb071 | {
"func_code_index": [
598,
877
]
} | 12,684 | |
Play0x_LottoBall | Play0x_LottoBall.sol | 0x892552275e5d68d889a33ad119af86b7ddf7c237 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github... | /**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a);
uint256 c = a - b;
return c;
}
| /**
* @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://b654f22f57aa857a1fab23118d87f2f9641b8a0d78456353eeb05e0ca95fb071 | {
"func_code_index": [
992,
1131
]
} | 12,685 | |
Play0x_LottoBall | Play0x_LottoBall.sol | 0x892552275e5d68d889a33ad119af86b7ddf7c237 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github... | /**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a);
return c;
}
| /**
* @dev Adds two numbers, reverts on overflow.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://b654f22f57aa857a1fab23118d87f2f9641b8a0d78456353eeb05e0ca95fb071 | {
"func_code_index": [
1196,
1335
]
} | 12,686 | |
Play0x_LottoBall | Play0x_LottoBall.sol | 0x892552275e5d68d889a33ad119af86b7ddf7c237 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github... | /**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/ | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
require(b != 0);
return a % b;
}
| /**
* @dev Divides two numbers and returns the remainder (unsigned integer modulo),
* reverts when dividing by zero.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://b654f22f57aa857a1fab23118d87f2f9641b8a0d78456353eeb05e0ca95fb071 | {
"func_code_index": [
1470,
1587
]
} | 12,687 | |
Play0x_LottoBall | Play0x_LottoBall.sol | 0x892552275e5d68d889a33ad119af86b7ddf7c237 | Solidity | Play0x_LottoBall | contract Play0x_LottoBall {
using SafeMath for uint256;
using SafeMath for uint128;
using SafeMath for uint40;
using SafeMath for uint8;
uint public jackpotSize;
uint public MIN_BET;
uint public MAX_BET;
uint public MAX_AMOUNT;
uint constant MAX_MODULO = 15;
//A... | initialParameter | function initialParameter(
// address _manager,
address _secretSigner,
address _erc20tokenAddress ,
address _refunder,
uint _MIN_BET,
uint _MAX_BET,
uint _maxProfit,
uint _MAX_AMOUNT,
uint8 _platformFeePercentage,
uint8 _jackpotFeePercentage,
... | //Init Parameter. | LineComment | v0.4.24+commit.e67f0147 | bzzr://b654f22f57aa857a1fab23118d87f2f9641b8a0d78456353eeb05e0ca95fb071 | {
"func_code_index": [
3621,
4734
]
} | 12,688 | |||
Play0x_LottoBall | Play0x_LottoBall.sol | 0x892552275e5d68d889a33ad119af86b7ddf7c237 | Solidity | Play0x_LottoBall | contract Play0x_LottoBall {
using SafeMath for uint256;
using SafeMath for uint128;
using SafeMath for uint40;
using SafeMath for uint8;
uint public jackpotSize;
uint public MIN_BET;
uint public MAX_BET;
uint public MAX_AMOUNT;
uint constant MAX_MODULO = 15;
//A... | approveNextOwner | function approveNextOwner(address _nextOwner) public onlyOwner {
require (_nextOwner != owner);
nextOwner = _nextOwner;
}
| // Standard contract ownership transfer implementation, | LineComment | v0.4.24+commit.e67f0147 | bzzr://b654f22f57aa857a1fab23118d87f2f9641b8a0d78456353eeb05e0ca95fb071 | {
"func_code_index": [
4799,
4948
]
} | 12,689 | |||
Play0x_LottoBall | Play0x_LottoBall.sol | 0x892552275e5d68d889a33ad119af86b7ddf7c237 | Solidity | Play0x_LottoBall | contract Play0x_LottoBall {
using SafeMath for uint256;
using SafeMath for uint128;
using SafeMath for uint40;
using SafeMath for uint8;
uint public jackpotSize;
uint public MIN_BET;
uint public MAX_BET;
uint public MAX_AMOUNT;
uint constant MAX_MODULO = 15;
//A... | function () public payable {
}
| // Fallback function deliberately left empty. | LineComment | v0.4.24+commit.e67f0147 | bzzr://b654f22f57aa857a1fab23118d87f2f9641b8a0d78456353eeb05e0ca95fb071 | {
"func_code_index": [
5124,
5164
]
} | 12,690 | ||||
Play0x_LottoBall | Play0x_LottoBall.sol | 0x892552275e5d68d889a33ad119af86b7ddf7c237 | Solidity | Play0x_LottoBall | contract Play0x_LottoBall {
using SafeMath for uint256;
using SafeMath for uint128;
using SafeMath for uint40;
using SafeMath for uint8;
uint public jackpotSize;
uint public MIN_BET;
uint public MAX_BET;
uint public MAX_AMOUNT;
uint constant MAX_MODULO = 15;
//A... | createSignerList | function createSignerList(address[] _signerList)private onlyOwner {
for (uint i=0; i<_signerList.length; i++) {
address newSigner = _signerList[i];
signerList[newSigner] = true;
}
}
| //Creat SignerList. | LineComment | v0.4.24+commit.e67f0147 | bzzr://b654f22f57aa857a1fab23118d87f2f9641b8a0d78456353eeb05e0ca95fb071 | {
"func_code_index": [
5195,
5433
]
} | 12,691 | |||
Play0x_LottoBall | Play0x_LottoBall.sol | 0x892552275e5d68d889a33ad119af86b7ddf7c237 | Solidity | Play0x_LottoBall | contract Play0x_LottoBall {
using SafeMath for uint256;
using SafeMath for uint128;
using SafeMath for uint40;
using SafeMath for uint8;
uint public jackpotSize;
uint public MIN_BET;
uint public MAX_BET;
uint public MAX_AMOUNT;
uint constant MAX_MODULO = 15;
//A... | createWithdrawalMode | function createWithdrawalMode(uint32[] _withdrawalMode)private onlyOwner {
for (uint8 i=0; i<_withdrawalMode.length; i++) {
uint32 newWithdrawalMode = _withdrawalMode[i];
uint8 mode = i + 1;
withdrawalMode[mode] = newWithdrawalMode;
}
}
| //Creat WithdrawalMode. | LineComment | v0.4.24+commit.e67f0147 | bzzr://b654f22f57aa857a1fab23118d87f2f9641b8a0d78456353eeb05e0ca95fb071 | {
"func_code_index": [
5470,
5774
]
} | 12,692 | |||
Play0x_LottoBall | Play0x_LottoBall.sol | 0x892552275e5d68d889a33ad119af86b7ddf7c237 | Solidity | Play0x_LottoBall | contract Play0x_LottoBall {
using SafeMath for uint256;
using SafeMath for uint128;
using SafeMath for uint40;
using SafeMath for uint8;
uint public jackpotSize;
uint public MIN_BET;
uint public MAX_BET;
uint public MAX_AMOUNT;
uint constant MAX_MODULO = 15;
//A... | setSecretSigner | function setSecretSigner(address _secretSigner) external onlyOwner {
secretSigner = _secretSigner;
}
| //Set SecretSigner. | LineComment | v0.4.24+commit.e67f0147 | bzzr://b654f22f57aa857a1fab23118d87f2f9641b8a0d78456353eeb05e0ca95fb071 | {
"func_code_index": [
5807,
5927
]
} | 12,693 | |||
Play0x_LottoBall | Play0x_LottoBall.sol | 0x892552275e5d68d889a33ad119af86b7ddf7c237 | Solidity | Play0x_LottoBall | contract Play0x_LottoBall {
using SafeMath for uint256;
using SafeMath for uint128;
using SafeMath for uint40;
using SafeMath for uint8;
uint public jackpotSize;
uint public MIN_BET;
uint public MAX_BET;
uint public MAX_AMOUNT;
uint constant MAX_MODULO = 15;
//A... | setSigner | function setSigner(address signer,bool isActive )external onlyOwner{
signerList[signer] = isActive;
}
| //Set settle signer. | LineComment | v0.4.24+commit.e67f0147 | bzzr://b654f22f57aa857a1fab23118d87f2f9641b8a0d78456353eeb05e0ca95fb071 | {
"func_code_index": [
5960,
6082
]
} | 12,694 | |||
Play0x_LottoBall | Play0x_LottoBall.sol | 0x892552275e5d68d889a33ad119af86b7ddf7c237 | Solidity | Play0x_LottoBall | contract Play0x_LottoBall {
using SafeMath for uint256;
using SafeMath for uint128;
using SafeMath for uint40;
using SafeMath for uint8;
uint public jackpotSize;
uint public MIN_BET;
uint public MAX_BET;
uint public MAX_AMOUNT;
uint constant MAX_MODULO = 15;
//A... | setRefunder | function setRefunder(address _refunder) external onlyOwner {
refunder = _refunder;
}
| //Set Refunder. | LineComment | v0.4.24+commit.e67f0147 | bzzr://b654f22f57aa857a1fab23118d87f2f9641b8a0d78456353eeb05e0ca95fb071 | {
"func_code_index": [
6110,
6214
]
} | 12,695 | |||
Play0x_LottoBall | Play0x_LottoBall.sol | 0x892552275e5d68d889a33ad119af86b7ddf7c237 | Solidity | Play0x_LottoBall | contract Play0x_LottoBall {
using SafeMath for uint256;
using SafeMath for uint128;
using SafeMath for uint40;
using SafeMath for uint8;
uint public jackpotSize;
uint public MIN_BET;
uint public MAX_BET;
uint public MAX_AMOUNT;
uint constant MAX_MODULO = 15;
//A... | setTokenAddress | function setTokenAddress(address _tokenAddress) external onlyOwner {
ERC20ContractAddres = _tokenAddress;
}
| //Set tokenAddress. | LineComment | v0.4.24+commit.e67f0147 | bzzr://b654f22f57aa857a1fab23118d87f2f9641b8a0d78456353eeb05e0ca95fb071 | {
"func_code_index": [
6247,
6373
]
} | 12,696 | |||
Play0x_LottoBall | Play0x_LottoBall.sol | 0x892552275e5d68d889a33ad119af86b7ddf7c237 | Solidity | Play0x_LottoBall | contract Play0x_LottoBall {
using SafeMath for uint256;
using SafeMath for uint128;
using SafeMath for uint40;
using SafeMath for uint8;
uint public jackpotSize;
uint public MIN_BET;
uint public MAX_BET;
uint public MAX_AMOUNT;
uint constant MAX_MODULO = 15;
//A... | setMaxProfit | function setMaxProfit(uint _maxProfit) external onlyOwner {
require (_maxProfit < MAX_AMOUNT && _maxProfit > 0);
maxProfit = _maxProfit;
}
| // Change max bet reward. Setting this to zero effectively disables betting. | LineComment | v0.4.24+commit.e67f0147 | bzzr://b654f22f57aa857a1fab23118d87f2f9641b8a0d78456353eeb05e0ca95fb071 | {
"func_code_index": [
6459,
6625
]
} | 12,697 | |||
Play0x_LottoBall | Play0x_LottoBall.sol | 0x892552275e5d68d889a33ad119af86b7ddf7c237 | Solidity | Play0x_LottoBall | contract Play0x_LottoBall {
using SafeMath for uint256;
using SafeMath for uint128;
using SafeMath for uint40;
using SafeMath for uint8;
uint public jackpotSize;
uint public MIN_BET;
uint public MAX_BET;
uint public MAX_AMOUNT;
uint constant MAX_MODULO = 15;
//A... | withdrawFunds | function withdrawFunds(address beneficiary, uint withdrawAmount) external onlyOwner {
require (withdrawAmount <= address(this).balance && withdrawAmount > 0);
uint safetyAmount = jackpotSize.add(lockedInBets).add(withdrawAmount);
safetyAmount = safetyAmount.add(withdrawAmount);
require (safetyAm... | // Funds withdrawal. | LineComment | v0.4.24+commit.e67f0147 | bzzr://b654f22f57aa857a1fab23118d87f2f9641b8a0d78456353eeb05e0ca95fb071 | {
"func_code_index": [
6654,
7083
]
} | 12,698 | |||
Play0x_LottoBall | Play0x_LottoBall.sol | 0x892552275e5d68d889a33ad119af86b7ddf7c237 | Solidity | Play0x_LottoBall | contract Play0x_LottoBall {
using SafeMath for uint256;
using SafeMath for uint128;
using SafeMath for uint40;
using SafeMath for uint8;
uint public jackpotSize;
uint public MIN_BET;
uint public MAX_BET;
uint public MAX_AMOUNT;
uint constant MAX_MODULO = 15;
//A... | withdrawToken | function withdrawToken(address beneficiary, uint withdrawAmount) external onlyOwner {
require (withdrawAmount <= ERC20(ERC20ContractAddres).balanceOf(address(this)));
uint safetyAmount = jackpotSize.add(lockedInBets);
safetyAmount = safetyAmount.add(withdrawAmount);
require (safetyAmount <= ERC20(... | // Token withdrawal. | LineComment | v0.4.24+commit.e67f0147 | bzzr://b654f22f57aa857a1fab23118d87f2f9641b8a0d78456353eeb05e0ca95fb071 | {
"func_code_index": [
7112,
7643
]
} | 12,699 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.