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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DadFab | DadFab.sol | 0x01c1103d765f62a0d909499d7b615c382cdb072d | Solidity | SaiTap | contract SaiTap is DSThing {
DSToken public sai;
DSToken public sin;
DSToken public skr;
SaiVox public vox;
SaiTub public tub;
uint256 public gap; // Boom-Bust Spread
bool public off; // Cage flag
uint256 public fix; // Cage price
// Surplus
... | /* import "./tub.sol"; */ | Comment | heal | function heal() public note {
if (joy() == 0 || woe() == 0) return; // optimised
var wad = min(joy(), woe());
sai.burn(wad);
sin.burn(wad);
}
| // Cancel debt | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://b4f6ab37bc51a19c6c87b209d4fd0da8efb0d79097099736173bcbe44d5bb8f1 | {
"func_code_index": [
992,
1180
]
} | 26,600 | |
DadFab | DadFab.sol | 0x01c1103d765f62a0d909499d7b615c382cdb072d | Solidity | SaiTap | contract SaiTap is DSThing {
DSToken public sai;
DSToken public sin;
DSToken public skr;
SaiVox public vox;
SaiTub public tub;
uint256 public gap; // Boom-Bust Spread
bool public off; // Cage flag
uint256 public fix; // Cage price
// Surplus
... | /* import "./tub.sol"; */ | Comment | s2s | function s2s() public returns (uint) {
var tag = tub.tag(); // ref per skr
var par = vox.par(); // ref per sai
return rdiv(tag, par); // sai per skr
}
| // Feed price (sai per skr) | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://b4f6ab37bc51a19c6c87b209d4fd0da8efb0d79097099736173bcbe44d5bb8f1 | {
"func_code_index": [
1216,
1410
]
} | 26,601 | |
DadFab | DadFab.sol | 0x01c1103d765f62a0d909499d7b615c382cdb072d | Solidity | SaiTap | contract SaiTap is DSThing {
DSToken public sai;
DSToken public sin;
DSToken public skr;
SaiVox public vox;
SaiTub public tub;
uint256 public gap; // Boom-Bust Spread
bool public off; // Cage flag
uint256 public fix; // Cage price
// Surplus
... | /* import "./tub.sol"; */ | Comment | bid | function bid(uint wad) public returns (uint) {
return rmul(wad, wmul(s2s(), sub(2 * WAD, gap)));
}
| // Boom price (sai per skr) | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://b4f6ab37bc51a19c6c87b209d4fd0da8efb0d79097099736173bcbe44d5bb8f1 | {
"func_code_index": [
1444,
1561
]
} | 26,602 | |
DadFab | DadFab.sol | 0x01c1103d765f62a0d909499d7b615c382cdb072d | Solidity | SaiTap | contract SaiTap is DSThing {
DSToken public sai;
DSToken public sin;
DSToken public skr;
SaiVox public vox;
SaiTub public tub;
uint256 public gap; // Boom-Bust Spread
bool public off; // Cage flag
uint256 public fix; // Cage price
// Surplus
... | /* import "./tub.sol"; */ | Comment | ask | function ask(uint wad) public returns (uint) {
return rmul(wad, wmul(s2s(), gap));
}
| // Bust price (sai per skr) | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://b4f6ab37bc51a19c6c87b209d4fd0da8efb0d79097099736173bcbe44d5bb8f1 | {
"func_code_index": [
1595,
1698
]
} | 26,603 | |
DadFab | DadFab.sol | 0x01c1103d765f62a0d909499d7b615c382cdb072d | Solidity | SaiTap | contract SaiTap is DSThing {
DSToken public sai;
DSToken public sin;
DSToken public skr;
SaiVox public vox;
SaiTub public tub;
uint256 public gap; // Boom-Bust Spread
bool public off; // Cage flag
uint256 public fix; // Cage price
// Surplus
... | /* import "./tub.sol"; */ | Comment | cage | function cage(uint fix_) public note auth {
require(!off);
off = true;
fix = fix_;
}
| //------------------------------------------------------------------ | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://b4f6ab37bc51a19c6c87b209d4fd0da8efb0d79097099736173bcbe44d5bb8f1 | {
"func_code_index": [
2482,
2603
]
} | 26,604 | |
DadFab | DadFab.sol | 0x01c1103d765f62a0d909499d7b615c382cdb072d | Solidity | SaiTop | contract SaiTop is DSThing {
SaiVox public vox;
SaiTub public tub;
SaiTap public tap;
DSToken public sai;
DSToken public sin;
DSToken public skr;
ERC20 public gem;
uint256 public fix; // sai cage price (gem per sai)
uint256 public fit; // skr cag... | /* import "./tap.sol"; */ | Comment | cage | function cage(uint price) internal {
require(!tub.off() && price != 0);
caged = era();
tub.drip(); // collect remaining fees
tap.heal(); // absorb any pending fees
fit = rmul(wmul(price, vox.par()), tub.per());
// Most gems we can get per sai is the full balance of the tub.
// I... | // force settlement of the system at a given price (sai per gem).
// This is nearly the equivalent of biting all cups at once.
// Important consideration: the gems associated with free skr can
// be tapped to make sai whole. | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://b4f6ab37bc51a19c6c87b209d4fd0da8efb0d79097099736173bcbe44d5bb8f1 | {
"func_code_index": [
993,
1725
]
} | 26,605 | |
DadFab | DadFab.sol | 0x01c1103d765f62a0d909499d7b615c382cdb072d | Solidity | SaiTop | contract SaiTop is DSThing {
SaiVox public vox;
SaiTub public tub;
SaiTap public tap;
DSToken public sai;
DSToken public sin;
DSToken public skr;
ERC20 public gem;
uint256 public fix; // sai cage price (gem per sai)
uint256 public fit; // skr cag... | /* import "./tap.sol"; */ | Comment | cage | function cage() public note auth {
cage(rdiv(uint(tub.pip().read()), vox.par()));
}
| // cage by reading the last value from the feed for the price | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://b4f6ab37bc51a19c6c87b209d4fd0da8efb0d79097099736173bcbe44d5bb8f1 | {
"func_code_index": [
1793,
1895
]
} | 26,606 | |
DadFab | DadFab.sol | 0x01c1103d765f62a0d909499d7b615c382cdb072d | Solidity | SaiMom | contract SaiMom is DSThing {
SaiTub public tub;
SaiTap public tap;
SaiVox public vox;
function SaiMom(SaiTub tub_, SaiTap tap_, SaiVox vox_) public {
tub = tub_;
tap = tap_;
vox = vox_;
}
// Debt ceiling
function setCap(uint wad) public note auth {
... | /* import './tap.sol'; */ | Comment | setCap | function setCap(uint wad) public note auth {
tub.mold("cap", wad);
}
| // Debt ceiling | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://b4f6ab37bc51a19c6c87b209d4fd0da8efb0d79097099736173bcbe44d5bb8f1 | {
"func_code_index": [
270,
357
]
} | 26,607 | |
DadFab | DadFab.sol | 0x01c1103d765f62a0d909499d7b615c382cdb072d | Solidity | SaiMom | contract SaiMom is DSThing {
SaiTub public tub;
SaiTap public tap;
SaiVox public vox;
function SaiMom(SaiTub tub_, SaiTap tap_, SaiVox vox_) public {
tub = tub_;
tap = tap_;
vox = vox_;
}
// Debt ceiling
function setCap(uint wad) public note auth {
... | /* import './tap.sol'; */ | Comment | setMat | function setMat(uint ray) public note auth {
tub.mold("mat", ray);
var axe = tub.axe();
var mat = tub.mat();
require(axe >= RAY && axe <= mat);
}
| // Liquidation ratio | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://b4f6ab37bc51a19c6c87b209d4fd0da8efb0d79097099736173bcbe44d5bb8f1 | {
"func_code_index": [
384,
575
]
} | 26,608 | |
DadFab | DadFab.sol | 0x01c1103d765f62a0d909499d7b615c382cdb072d | Solidity | SaiMom | contract SaiMom is DSThing {
SaiTub public tub;
SaiTap public tap;
SaiVox public vox;
function SaiMom(SaiTub tub_, SaiTap tap_, SaiVox vox_) public {
tub = tub_;
tap = tap_;
vox = vox_;
}
// Debt ceiling
function setCap(uint wad) public note auth {
... | /* import './tap.sol'; */ | Comment | setTax | function setTax(uint ray) public note auth {
tub.mold("tax", ray);
var tax = tub.tax();
require(RAY <= tax);
require(tax < 10002 * 10 ** 23); // ~200% per hour
}
| // Stability fee | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://b4f6ab37bc51a19c6c87b209d4fd0da8efb0d79097099736173bcbe44d5bb8f1 | {
"func_code_index": [
598,
806
]
} | 26,609 | |
DadFab | DadFab.sol | 0x01c1103d765f62a0d909499d7b615c382cdb072d | Solidity | SaiMom | contract SaiMom is DSThing {
SaiTub public tub;
SaiTap public tap;
SaiVox public vox;
function SaiMom(SaiTub tub_, SaiTap tap_, SaiVox vox_) public {
tub = tub_;
tap = tap_;
vox = vox_;
}
// Debt ceiling
function setCap(uint wad) public note auth {
... | /* import './tap.sol'; */ | Comment | setFee | function setFee(uint ray) public note auth {
tub.mold("fee", ray);
var fee = tub.fee();
require(RAY <= fee);
require(fee < 10002 * 10 ** 23); // ~200% per hour
}
| // Governance fee | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://b4f6ab37bc51a19c6c87b209d4fd0da8efb0d79097099736173bcbe44d5bb8f1 | {
"func_code_index": [
830,
1038
]
} | 26,610 | |
DadFab | DadFab.sol | 0x01c1103d765f62a0d909499d7b615c382cdb072d | Solidity | SaiMom | contract SaiMom is DSThing {
SaiTub public tub;
SaiTap public tap;
SaiVox public vox;
function SaiMom(SaiTub tub_, SaiTap tap_, SaiVox vox_) public {
tub = tub_;
tap = tap_;
vox = vox_;
}
// Debt ceiling
function setCap(uint wad) public note auth {
... | /* import './tap.sol'; */ | Comment | setAxe | function setAxe(uint ray) public note auth {
tub.mold("axe", ray);
var axe = tub.axe();
var mat = tub.mat();
require(axe >= RAY && axe <= mat);
}
| // Liquidation fee | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://b4f6ab37bc51a19c6c87b209d4fd0da8efb0d79097099736173bcbe44d5bb8f1 | {
"func_code_index": [
1063,
1254
]
} | 26,611 | |
DadFab | DadFab.sol | 0x01c1103d765f62a0d909499d7b615c382cdb072d | Solidity | SaiMom | contract SaiMom is DSThing {
SaiTub public tub;
SaiTap public tap;
SaiVox public vox;
function SaiMom(SaiTub tub_, SaiTap tap_, SaiVox vox_) public {
tub = tub_;
tap = tap_;
vox = vox_;
}
// Debt ceiling
function setCap(uint wad) public note auth {
... | /* import './tap.sol'; */ | Comment | setTubGap | function setTubGap(uint wad) public note auth {
tub.mold("gap", wad);
}
| // Join/Exit Spread | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://b4f6ab37bc51a19c6c87b209d4fd0da8efb0d79097099736173bcbe44d5bb8f1 | {
"func_code_index": [
1280,
1370
]
} | 26,612 | |
DadFab | DadFab.sol | 0x01c1103d765f62a0d909499d7b615c382cdb072d | Solidity | SaiMom | contract SaiMom is DSThing {
SaiTub public tub;
SaiTap public tap;
SaiVox public vox;
function SaiMom(SaiTub tub_, SaiTap tap_, SaiVox vox_) public {
tub = tub_;
tap = tap_;
vox = vox_;
}
// Debt ceiling
function setCap(uint wad) public note auth {
... | /* import './tap.sol'; */ | Comment | setPip | function setPip(DSValue pip_) public note auth {
tub.setPip(pip_);
}
| // ETH/USD Feed | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://b4f6ab37bc51a19c6c87b209d4fd0da8efb0d79097099736173bcbe44d5bb8f1 | {
"func_code_index": [
1392,
1479
]
} | 26,613 | |
DadFab | DadFab.sol | 0x01c1103d765f62a0d909499d7b615c382cdb072d | Solidity | SaiMom | contract SaiMom is DSThing {
SaiTub public tub;
SaiTap public tap;
SaiVox public vox;
function SaiMom(SaiTub tub_, SaiTap tap_, SaiVox vox_) public {
tub = tub_;
tap = tap_;
vox = vox_;
}
// Debt ceiling
function setCap(uint wad) public note auth {
... | /* import './tap.sol'; */ | Comment | setPep | function setPep(DSValue pep_) public note auth {
tub.setPep(pep_);
}
| // MKR/USD Feed | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://b4f6ab37bc51a19c6c87b209d4fd0da8efb0d79097099736173bcbe44d5bb8f1 | {
"func_code_index": [
1501,
1588
]
} | 26,614 | |
DadFab | DadFab.sol | 0x01c1103d765f62a0d909499d7b615c382cdb072d | Solidity | SaiMom | contract SaiMom is DSThing {
SaiTub public tub;
SaiTap public tap;
SaiVox public vox;
function SaiMom(SaiTub tub_, SaiTap tap_, SaiVox vox_) public {
tub = tub_;
tap = tap_;
vox = vox_;
}
// Debt ceiling
function setCap(uint wad) public note auth {
... | /* import './tap.sol'; */ | Comment | setVox | function setVox(SaiVox vox_) public note auth {
tub.setVox(vox_);
}
| // TRFM | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://b4f6ab37bc51a19c6c87b209d4fd0da8efb0d79097099736173bcbe44d5bb8f1 | {
"func_code_index": [
1602,
1688
]
} | 26,615 | |
DadFab | DadFab.sol | 0x01c1103d765f62a0d909499d7b615c382cdb072d | Solidity | SaiMom | contract SaiMom is DSThing {
SaiTub public tub;
SaiTap public tap;
SaiVox public vox;
function SaiMom(SaiTub tub_, SaiTap tap_, SaiVox vox_) public {
tub = tub_;
tap = tap_;
vox = vox_;
}
// Debt ceiling
function setCap(uint wad) public note auth {
... | /* import './tap.sol'; */ | Comment | setTapGap | function setTapGap(uint wad) public note auth {
tap.mold("gap", wad);
var gap = tap.gap();
require(gap <= 1.05 ether);
require(gap >= 0.95 ether);
}
| // Boom/Bust Spread | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://b4f6ab37bc51a19c6c87b209d4fd0da8efb0d79097099736173bcbe44d5bb8f1 | {
"func_code_index": [
1714,
1908
]
} | 26,616 | |
DadFab | DadFab.sol | 0x01c1103d765f62a0d909499d7b615c382cdb072d | Solidity | SaiMom | contract SaiMom is DSThing {
SaiTub public tub;
SaiTap public tap;
SaiVox public vox;
function SaiMom(SaiTub tub_, SaiTap tap_, SaiVox vox_) public {
tub = tub_;
tap = tap_;
vox = vox_;
}
// Debt ceiling
function setCap(uint wad) public note auth {
... | /* import './tap.sol'; */ | Comment | setWay | function setWay(uint ray) public note auth {
require(ray < 10002 * 10 ** 23); // ~200% per hour
require(ray > 9998 * 10 ** 23);
vox.mold("way", ray);
}
| // Rate of change of target price (per second) | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://b4f6ab37bc51a19c6c87b209d4fd0da8efb0d79097099736173bcbe44d5bb8f1 | {
"func_code_index": [
1961,
2150
]
} | 26,617 | |
DadFab | DadFab.sol | 0x01c1103d765f62a0d909499d7b615c382cdb072d | Solidity | DaiFab | contract DaiFab is DSAuth {
GemFab public gemFab;
VoxFab public voxFab;
TapFab public tapFab;
TubFab public tubFab;
TopFab public topFab;
MomFab public momFab;
DadFab public dadFab;
DSToken public sai;
DSToken public sin;
DSToken public skr;
SaiVox public vox;
... | configParams | function configParams() public auth {
require(step == 3);
tub.mold("cap", 0);
tub.mold("mat", ray(1.5 ether));
tub.mold("axe", ray(1.13 ether));
tub.mold("fee", 1000000000158153903837946257); // 0.5% / year
tub.mold("tax", ray(1 ether));
tub.mold("gap", 1 ether);
tap.mold("... | // Liquidation Ratio 150%
// Liquidation Penalty 13%
// Stability Fee 0.05%
// PETH Fee 0%
// Boom/Bust Spread -3%
// Join/Exit Spread 0%
// Debt Ceiling 0 | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://b4f6ab37bc51a19c6c87b209d4fd0da8efb0d79097099736173bcbe44d5bb8f1 | {
"func_code_index": [
2110,
2514
]
} | 26,618 | |||
HollywoodApes | @openzeppelin/contracts/access/Ownable.sol | 0x4be191b4603a0e0b95c0ec1c80c89b82e50f1253 | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_setOwner(_msgSender());
... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | owner | function owner() public view virtual returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://60169740af6abc760fb9678b970e2ae7f6b63cebeaab5fcff2320052f007116f | {
"func_code_index": [
399,
491
]
} | 26,619 |
HollywoodApes | @openzeppelin/contracts/access/Ownable.sol | 0x4be191b4603a0e0b95c0ec1c80c89b82e50f1253 | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_setOwner(_msgSender());
... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
_setOwner(address(0));
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://60169740af6abc760fb9678b970e2ae7f6b63cebeaab5fcff2320052f007116f | {
"func_code_index": [
1050,
1149
]
} | 26,620 |
HollywoodApes | @openzeppelin/contracts/access/Ownable.sol | 0x4be191b4603a0e0b95c0ec1c80c89b82e50f1253 | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_setOwner(_msgSender());
... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_setOwner(newOwner);
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://60169740af6abc760fb9678b970e2ae7f6b63cebeaab5fcff2320052f007116f | {
"func_code_index": [
1299,
1496
]
} | 26,621 |
HollywoodApes | @openzeppelin/contracts/access/Ownable.sol | 0x4be191b4603a0e0b95c0ec1c80c89b82e50f1253 | Solidity | HollywoodApes | contract HollywoodApes is ERC721Enumerable, Ownable {
using Strings for uint256;
string public baseURI;
string public baseVipURI;
string public baseExtension = ".json";
string public notRevealedUri;
uint256 public cost = 0.1 ether;
uint256 public maxSupply = 10000;
uint256 public maxMintAmount... | _baseURI | function _baseURI() internal view virtual override returns (string memory) {
return baseURI;
}
| // internal | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://60169740af6abc760fb9678b970e2ae7f6b63cebeaab5fcff2320052f007116f | {
"func_code_index": [
1017,
1122
]
} | 26,622 | ||
HollywoodApes | @openzeppelin/contracts/access/Ownable.sol | 0x4be191b4603a0e0b95c0ec1c80c89b82e50f1253 | Solidity | HollywoodApes | contract HollywoodApes is ERC721Enumerable, Ownable {
using Strings for uint256;
string public baseURI;
string public baseVipURI;
string public baseExtension = ".json";
string public notRevealedUri;
uint256 public cost = 0.1 ether;
uint256 public maxSupply = 10000;
uint256 public maxMintAmount... | mint | function mint(uint256 _mintAmount) public payable {
mint(msg.sender, _mintAmount);
}
| // public | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://60169740af6abc760fb9678b970e2ae7f6b63cebeaab5fcff2320052f007116f | {
"func_code_index": [
1138,
1235
]
} | 26,623 | ||
HollywoodApes | @openzeppelin/contracts/access/Ownable.sol | 0x4be191b4603a0e0b95c0ec1c80c89b82e50f1253 | Solidity | HollywoodApes | contract HollywoodApes is ERC721Enumerable, Ownable {
using Strings for uint256;
string public baseURI;
string public baseVipURI;
string public baseExtension = ".json";
string public notRevealedUri;
uint256 public cost = 0.1 ether;
uint256 public maxSupply = 10000;
uint256 public maxMintAmount... | reveal | function reveal() public onlyOwner {
revealed = true;
}
| //only owner | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://60169740af6abc760fb9678b970e2ae7f6b63cebeaab5fcff2320052f007116f | {
"func_code_index": [
3543,
3611
]
} | 26,624 | ||
ClubCards | contracts/Ownable.sol | 0xe2ff341c806b5107cfce2ddc41ec5119855b2dec | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
address private _admin;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
event AdminChanged(address indexed previousAdmin, address indexed newAdmin);
/**
* @dev Initialize... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* ... | NatSpecMultiLine | owner | function owner() public view virtual returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
558,
647
]
} | 26,625 | ||
ClubCards | contracts/Ownable.sol | 0xe2ff341c806b5107cfce2ddc41ec5119855b2dec | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
address private _admin;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
event AdminChanged(address indexed previousAdmin, address indexed newAdmin);
/**
* @dev Initialize... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* ... | NatSpecMultiLine | admin | function admin() public view virtual returns (address) {
return _admin;
}
| // returns the address of the current admin | LineComment | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
697,
786
]
} | 26,626 | ||
ClubCards | contracts/Ownable.sol | 0xe2ff341c806b5107cfce2ddc41ec5119855b2dec | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
address private _admin;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
event AdminChanged(address indexed previousAdmin, address indexed newAdmin);
/**
* @dev Initialize... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* ... | NatSpecMultiLine | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
1488,
1593
]
} | 26,627 | ||
ClubCards | contracts/Ownable.sol | 0xe2ff341c806b5107cfce2ddc41ec5119855b2dec | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
address private _admin;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
event AdminChanged(address indexed previousAdmin, address indexed newAdmin);
/**
* @dev Initialize... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* ... | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(
newOwner != address(0),
"Ownable: new owner is the zero address"
);
_transferOwnership(newOwner);
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
1738,
1974
]
} | 26,628 | ||
ClubCards | contracts/Ownable.sol | 0xe2ff341c806b5107cfce2ddc41ec5119855b2dec | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
address private _admin;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
event AdminChanged(address indexed previousAdmin, address indexed newAdmin);
/**
* @dev Initialize... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* ... | NatSpecMultiLine | _transferOwnership | function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
2344,
2535
]
} | 26,629 | ||
LEOCrowdsale1 | @openzeppelin/contracts/utils/ReentrancyGuard.sol | 0x694be13379ecd6bc09c02f7026d0f3c08d8cee31 | Solidity | Crowdsale | contract Crowdsale is Context, ReentrancyGuard, Owned {
using SafeMath for uint256;
using SafeERC20 for IERC20;
// The token being sold
IERC20 private _token;
// Address where funds are collected
address payable private _wallet;
// How many token units a buyer gets per wei.
... | /**
* @title Crowdsale
* @dev Crowdsale is a base contract for managing a token crowdsale,
* allowing investors to purchase tokens with ether. This contract implements
* such functionality in its most fundamental form and can be extended to provide additional
* functionality and/or custom behavior.
* The ex... | NatSpecMultiLine | function() external payable {
buyTokens(_msgSender());
}
| /**
* @dev fallback function ***DO NOT OVERRIDE***
* Note that other contracts will transfer funds with a base gas stipend
* of 2300, which is not enough to call buyTokens. Consider calling
* buyTokens directly when purchasing tokens from a contract.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://30e10990cd4a338878c19235652bd38a645a309c294baadb7fbace455ac23a55 | {
"func_code_index": [
2250,
2325
]
} | 26,630 | |
LEOCrowdsale1 | @openzeppelin/contracts/utils/ReentrancyGuard.sol | 0x694be13379ecd6bc09c02f7026d0f3c08d8cee31 | Solidity | Crowdsale | contract Crowdsale is Context, ReentrancyGuard, Owned {
using SafeMath for uint256;
using SafeERC20 for IERC20;
// The token being sold
IERC20 private _token;
// Address where funds are collected
address payable private _wallet;
// How many token units a buyer gets per wei.
... | /**
* @title Crowdsale
* @dev Crowdsale is a base contract for managing a token crowdsale,
* allowing investors to purchase tokens with ether. This contract implements
* such functionality in its most fundamental form and can be extended to provide additional
* functionality and/or custom behavior.
* The ex... | NatSpecMultiLine | token | function token() public view returns (IERC20) {
return _token;
}
| /**
* @return the token being sold.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://30e10990cd4a338878c19235652bd38a645a309c294baadb7fbace455ac23a55 | {
"func_code_index": [
2384,
2467
]
} | 26,631 |
LEOCrowdsale1 | @openzeppelin/contracts/utils/ReentrancyGuard.sol | 0x694be13379ecd6bc09c02f7026d0f3c08d8cee31 | Solidity | Crowdsale | contract Crowdsale is Context, ReentrancyGuard, Owned {
using SafeMath for uint256;
using SafeERC20 for IERC20;
// The token being sold
IERC20 private _token;
// Address where funds are collected
address payable private _wallet;
// How many token units a buyer gets per wei.
... | /**
* @title Crowdsale
* @dev Crowdsale is a base contract for managing a token crowdsale,
* allowing investors to purchase tokens with ether. This contract implements
* such functionality in its most fundamental form and can be extended to provide additional
* functionality and/or custom behavior.
* The ex... | NatSpecMultiLine | wallet | function wallet() public view returns (address payable) {
return _wallet;
}
| /**
* @return the address where funds are collected.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://30e10990cd4a338878c19235652bd38a645a309c294baadb7fbace455ac23a55 | {
"func_code_index": [
2543,
2637
]
} | 26,632 |
LEOCrowdsale1 | @openzeppelin/contracts/utils/ReentrancyGuard.sol | 0x694be13379ecd6bc09c02f7026d0f3c08d8cee31 | Solidity | Crowdsale | contract Crowdsale is Context, ReentrancyGuard, Owned {
using SafeMath for uint256;
using SafeERC20 for IERC20;
// The token being sold
IERC20 private _token;
// Address where funds are collected
address payable private _wallet;
// How many token units a buyer gets per wei.
... | /**
* @title Crowdsale
* @dev Crowdsale is a base contract for managing a token crowdsale,
* allowing investors to purchase tokens with ether. This contract implements
* such functionality in its most fundamental form and can be extended to provide additional
* functionality and/or custom behavior.
* The ex... | NatSpecMultiLine | rate | function rate() public view returns (uint256) {
return _rate;
}
| /**
* @return the number of token units a buyer gets per wei.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://30e10990cd4a338878c19235652bd38a645a309c294baadb7fbace455ac23a55 | {
"func_code_index": [
2722,
2804
]
} | 26,633 |
LEOCrowdsale1 | @openzeppelin/contracts/utils/ReentrancyGuard.sol | 0x694be13379ecd6bc09c02f7026d0f3c08d8cee31 | Solidity | Crowdsale | contract Crowdsale is Context, ReentrancyGuard, Owned {
using SafeMath for uint256;
using SafeERC20 for IERC20;
// The token being sold
IERC20 private _token;
// Address where funds are collected
address payable private _wallet;
// How many token units a buyer gets per wei.
... | /**
* @title Crowdsale
* @dev Crowdsale is a base contract for managing a token crowdsale,
* allowing investors to purchase tokens with ether. This contract implements
* such functionality in its most fundamental form and can be extended to provide additional
* functionality and/or custom behavior.
* The ex... | NatSpecMultiLine | weiRaised | function weiRaised() public view returns (uint256) {
return _weiRaised;
}
| /**
* @return the amount of wei raised.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://30e10990cd4a338878c19235652bd38a645a309c294baadb7fbace455ac23a55 | {
"func_code_index": [
2867,
2959
]
} | 26,634 |
LEOCrowdsale1 | @openzeppelin/contracts/utils/ReentrancyGuard.sol | 0x694be13379ecd6bc09c02f7026d0f3c08d8cee31 | Solidity | Crowdsale | contract Crowdsale is Context, ReentrancyGuard, Owned {
using SafeMath for uint256;
using SafeERC20 for IERC20;
// The token being sold
IERC20 private _token;
// Address where funds are collected
address payable private _wallet;
// How many token units a buyer gets per wei.
... | /**
* @title Crowdsale
* @dev Crowdsale is a base contract for managing a token crowdsale,
* allowing investors to purchase tokens with ether. This contract implements
* such functionality in its most fundamental form and can be extended to provide additional
* functionality and/or custom behavior.
* The ex... | NatSpecMultiLine | buyTokens | function buyTokens(address beneficiary) public payable nonReentrant {
uint256 weiAmount = msg.value;
_preValidatePurchase(beneficiary, weiAmount);
// calculate token amount to be created
uint256 tokens = _getTokenAmount(weiAmount);
// update state
_weiRaised = _weiRaised.add(weiAmount)... | /**
* @dev low level token purchase ***DO NOT OVERRIDE***
* This function has a non-reentrancy guard, so it shouldn't be called by
* another `nonReentrant` function.
* @param beneficiary Recipient of the token purchase
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://30e10990cd4a338878c19235652bd38a645a309c294baadb7fbace455ac23a55 | {
"func_code_index": [
3219,
3852
]
} | 26,635 |
LEOCrowdsale1 | @openzeppelin/contracts/utils/ReentrancyGuard.sol | 0x694be13379ecd6bc09c02f7026d0f3c08d8cee31 | Solidity | Crowdsale | contract Crowdsale is Context, ReentrancyGuard, Owned {
using SafeMath for uint256;
using SafeERC20 for IERC20;
// The token being sold
IERC20 private _token;
// Address where funds are collected
address payable private _wallet;
// How many token units a buyer gets per wei.
... | /**
* @title Crowdsale
* @dev Crowdsale is a base contract for managing a token crowdsale,
* allowing investors to purchase tokens with ether. This contract implements
* such functionality in its most fundamental form and can be extended to provide additional
* functionality and/or custom behavior.
* The ex... | NatSpecMultiLine | _preValidatePurchase | function _preValidatePurchase(address beneficiary, uint256 weiAmount)
internal
view
{
require(
beneficiary != address(0),
"Crowdsale: beneficiary is the zero address"
);
require(weiAmount != 0, "Crowdsale: weiAmount is 0");
this; // silence state mutability warning witho... | /**
* @dev Validation of an incoming purchase. Use require statements to revert state when conditions are not met.
* Use `super` in contracts that inherit from Crowdsale to extend their validations.
* Example from CappedCrowdsale.sol's _preValidatePurchase method:
* super._preValidatePurchase(beneficiary, w... | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://30e10990cd4a338878c19235652bd38a645a309c294baadb7fbace455ac23a55 | {
"func_code_index": [
4400,
4845
]
} | 26,636 |
LEOCrowdsale1 | @openzeppelin/contracts/utils/ReentrancyGuard.sol | 0x694be13379ecd6bc09c02f7026d0f3c08d8cee31 | Solidity | Crowdsale | contract Crowdsale is Context, ReentrancyGuard, Owned {
using SafeMath for uint256;
using SafeERC20 for IERC20;
// The token being sold
IERC20 private _token;
// Address where funds are collected
address payable private _wallet;
// How many token units a buyer gets per wei.
... | /**
* @title Crowdsale
* @dev Crowdsale is a base contract for managing a token crowdsale,
* allowing investors to purchase tokens with ether. This contract implements
* such functionality in its most fundamental form and can be extended to provide additional
* functionality and/or custom behavior.
* The ex... | NatSpecMultiLine | _deliverTokens | function _deliverTokens(address beneficiary, uint256 tokenAmount) internal {
_token.safeTransfer(beneficiary, tokenAmount);
}
| /**
* @dev Source of tokens. Override this method to modify the way in which the crowdsale ultimately gets and sends
* its tokens.
* @param beneficiary Address performing the token purchase
* @param tokenAmount Number of tokens to be emitted
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://30e10990cd4a338878c19235652bd38a645a309c294baadb7fbace455ac23a55 | {
"func_code_index": [
5591,
5735
]
} | 26,637 |
LEOCrowdsale1 | @openzeppelin/contracts/utils/ReentrancyGuard.sol | 0x694be13379ecd6bc09c02f7026d0f3c08d8cee31 | Solidity | Crowdsale | contract Crowdsale is Context, ReentrancyGuard, Owned {
using SafeMath for uint256;
using SafeERC20 for IERC20;
// The token being sold
IERC20 private _token;
// Address where funds are collected
address payable private _wallet;
// How many token units a buyer gets per wei.
... | /**
* @title Crowdsale
* @dev Crowdsale is a base contract for managing a token crowdsale,
* allowing investors to purchase tokens with ether. This contract implements
* such functionality in its most fundamental form and can be extended to provide additional
* functionality and/or custom behavior.
* The ex... | NatSpecMultiLine | _processPurchase | function _processPurchase(address beneficiary, uint256 tokenAmount)
internal
{
_deliverTokens(beneficiary, tokenAmount);
}
| /**
* @dev Executed when a purchase has been validated and is ready to be executed. Doesn't necessarily emit/send
* tokens.
* @param beneficiary Address receiving the tokens
* @param tokenAmount Number of tokens to be purchased
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://30e10990cd4a338878c19235652bd38a645a309c294baadb7fbace455ac23a55 | {
"func_code_index": [
6004,
6159
]
} | 26,638 |
LEOCrowdsale1 | @openzeppelin/contracts/utils/ReentrancyGuard.sol | 0x694be13379ecd6bc09c02f7026d0f3c08d8cee31 | Solidity | Crowdsale | contract Crowdsale is Context, ReentrancyGuard, Owned {
using SafeMath for uint256;
using SafeERC20 for IERC20;
// The token being sold
IERC20 private _token;
// Address where funds are collected
address payable private _wallet;
// How many token units a buyer gets per wei.
... | /**
* @title Crowdsale
* @dev Crowdsale is a base contract for managing a token crowdsale,
* allowing investors to purchase tokens with ether. This contract implements
* such functionality in its most fundamental form and can be extended to provide additional
* functionality and/or custom behavior.
* The ex... | NatSpecMultiLine | _getTokenAmount | function _getTokenAmount(uint256 weiAmount)
internal
view
returns (uint256)
{
return weiAmount.mul(_rate);
}
| /**
* @dev Override to extend the way in which ether is converted to tokens.
* @param weiAmount Value in wei to be converted into tokens
* @return Number of tokens that can be purchased with the specified _weiAmount
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://30e10990cd4a338878c19235652bd38a645a309c294baadb7fbace455ac23a55 | {
"func_code_index": [
6844,
7003
]
} | 26,639 |
LEOCrowdsale1 | @openzeppelin/contracts/utils/ReentrancyGuard.sol | 0x694be13379ecd6bc09c02f7026d0f3c08d8cee31 | Solidity | Crowdsale | contract Crowdsale is Context, ReentrancyGuard, Owned {
using SafeMath for uint256;
using SafeERC20 for IERC20;
// The token being sold
IERC20 private _token;
// Address where funds are collected
address payable private _wallet;
// How many token units a buyer gets per wei.
... | /**
* @title Crowdsale
* @dev Crowdsale is a base contract for managing a token crowdsale,
* allowing investors to purchase tokens with ether. This contract implements
* such functionality in its most fundamental form and can be extended to provide additional
* functionality and/or custom behavior.
* The ex... | NatSpecMultiLine | _forwardFunds | function _forwardFunds() internal {
_wallet.transfer(msg.value);
}
| /**
* @dev Determines how ETH is stored/forwarded on purchases.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://30e10990cd4a338878c19235652bd38a645a309c294baadb7fbace455ac23a55 | {
"func_code_index": [
7090,
7175
]
} | 26,640 |
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | GroupBuyContract | function GroupBuyContract(address contractAddress, uint256 numerator, uint256 denominator) public {
ceoAddress = msg.sender;
cooAddress1 = msg.sender;
cooAddress2 = msg.sender;
cooAddress3 = msg.sender;
cfoAddress = msg.sender;
distributionNumerator = numerator;
distributionDenominator = denominato... | /*** CONSTRUCTOR ***/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
5559,
5958
]
} | 26,641 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | function() external payable {
FundsReceived(msg.sender, msg.value);
}
| /// @notice Fallback fn for receiving ether | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
6038,
6118
]
} | 26,642 | ||||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | activatePurchase | function activatePurchase(uint256 _tokenId) external whenNotPaused {
var group = tokenIndexToGroup[_tokenId];
require(group.addressToContribution[msg.sender] > 0 ||
msg.sender == ceoAddress ||
msg.sender == cooAddress1 ||
msg.sender == cooAddress2 ||
msg.sender == cooAd... | /// @notice Backup function for activating token purchase
/// requires sender to be a member of the group or CLevel
/// @param _tokenId The ID of the Token group | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
6315,
7009
]
} | 26,643 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | contributeToTokenGroup | function contributeToTokenGroup(uint256 _tokenId)
external payable whenNotForking whenNotPaused {
address userAdd = msg.sender;
// Safety check to prevent against an un expected 0x0 default.
require(_addressNotNull(userAdd));
/// Safety check to make sure contributor has not already joined this group
... | /// @notice Allow user to contribute to _tokenId token group
/// @param _tokenId The ID of the token group to be joined | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
7138,
10073
]
} | 26,644 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | leaveTokenGroup | function leaveTokenGroup(uint256 _tokenId) external whenNotPaused {
address userAdd = msg.sender;
var group = tokenIndexToGroup[_tokenId];
var contributor = userAddressToContributor[userAdd];
// Safety check to prevent against an unexpected 0x0 default.
require(_addressNotNull(userAdd));
// Safe... | /// @notice Allow user to leave purchase group; note that their contribution
/// will be added to their withdrawable balance, and not directly refunded.
/// User can call withdrawBalance to retrieve funds.
/// @param _tokenId The ID of the Token purchase group to be left | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
10362,
11471
]
} | 26,645 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | leaveTokenGroupAndWithdrawBalance | function leaveTokenGroupAndWithdrawBalance(uint256 _tokenId) external whenNotPaused {
address userAdd = msg.sender;
var group = tokenIndexToGroup[_tokenId];
var contributor = userAddressToContributor[userAdd];
// Safety check to prevent against an unexpected 0x0 default.
require(_addressNotNull(userA... | /// @notice Allow user to leave purchase group; note that their contribution
/// and any funds they have in their withdrawableBalance will transfered to them.
/// @param _tokenId The ID of the Token purchase group to be left | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
11709,
12872
]
} | 26,646 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | withdrawBalance | function withdrawBalance() external whenNotPaused {
require(_addressNotNull(msg.sender));
require(userAddressToContributor[msg.sender].exists);
_withdrawUserFunds(msg.sender);
}
| /// @dev Withdraw balance from own account | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
12921,
13121
]
} | 26,647 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | adjustCommission | function adjustCommission(uint256 numerator, uint256 denominator) external onlyCLevel {
require(numerator <= denominator);
distributionNumerator = numerator;
distributionDenominator = denominator;
}
| /// @notice Fn for adjusting commission rate
/// @param numerator Numerator for calculating funds distributed
/// @param denominator Denominator for calculating funds distributed | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
13333,
13552
]
} | 26,648 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | dissolveTokenGroup | function dissolveTokenGroup(uint256 _tokenId) external onlyCOO whenForking {
var group = tokenIndexToGroup[_tokenId];
// Safety check to make sure group exists and had not purchased a token
require(group.exists);
require(group.purchasePrice == 0);
for (uint i = 0; i < tokenIndexToGroup[_tokenId].cont... | /// @dev In the event of needing a fork, this function moves all
/// of a group's contributors' contributions into their withdrawable balance.
/// @notice Group is dissolved after fn call
/// @param _tokenId The ID of the Token purchase group | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
13811,
14870
]
} | 26,649 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | distributeCustomSaleProceeds | function distributeCustomSaleProceeds(uint256 _tokenId, uint256 _amount) external onlyCOO {
var group = tokenIndexToGroup[_tokenId];
// Safety check to make sure group exists and had purchased the token
require(group.exists);
require(group.purchasePrice > 0);
require(_amount > 0);
_distributeProce... | /// @dev Backup fn to allow distribution of funds after sale,
/// for the special scenario where an alternate sale platform is used;
/// @notice Group is dissolved after fn call
/// @param _tokenId The ID of the Token purchase group
/// @param _amount Funds to be distributed | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
15165,
15528
]
} | 26,650 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | distributeSaleProceeds | function distributeSaleProceeds(uint256 _tokenId) external onlyCOO {
var group = tokenIndexToGroup[_tokenId];
// Safety check to make sure group exists and had purchased the token
require(group.exists);
require(group.purchasePrice > 0);
// Safety check to make sure token had been sold
uint256 curr... | /// @dev Distribute funds after a token is sold.
/// Group is dissolved after fn call
/// @param _tokenId The ID of the Token purchase group | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
16889,
17515
]
} | 26,651 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | pause | function pause() external onlyCLevel whenNotPaused {
paused = true;
}
| /// @dev Called by any "C-level" role to pause the contract. Used only when
/// a bug or exploit is detected and we need to limit damage. | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
17663,
17743
]
} | 26,652 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | unpause | function unpause() external onlyCEO whenPaused {
// can't unpause if contract was upgraded
paused = false;
}
| /// @dev Unpauses the smart contract. Can only be called by the CEO, since
/// one reason we may pause the contract is when CFO or COO accounts are
/// compromised. | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
17922,
18046
]
} | 26,653 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | setToForking | function setToForking() external onlyCLevel whenNotForking {
forking = true;
}
| /// @dev Called by any "C-level" role to set the contract to . Used only when
/// a bug or exploit is detected and we need to limit damage. | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
18196,
18285
]
} | 26,654 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | setToNotForking | function setToNotForking() external onlyCEO whenForking {
// can't unpause if contract was upgraded
forking = false;
}
| /// @dev Unpauses the smart contract. Can only be called by the CEO, since
/// one reason we may pause the contract is when CFO or COO accounts are
/// compromised. | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
18464,
18598
]
} | 26,655 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | setCEO | function setCEO(address _newCEO) external onlyCEO {
require(_newCEO != address(0));
ceoAddress = _newCEO;
}
| /// @dev Assigns a new address to act as the CEO. Only available to the current CEO.
/// @param _newCEO The address of the new CEO | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
18738,
18863
]
} | 26,656 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | setCFO | function setCFO(address _newCFO) external onlyCEO {
require(_newCFO != address(0));
cfoAddress = _newCFO;
}
| /// @dev Assigns a new address to act as the CFO. Only available to the current CEO.
/// @param _newCFO The address of the new CFO | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
19003,
19128
]
} | 26,657 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | setCOO1 | function setCOO1(address _newCOO1) external onlyCEO {
require(_newCOO1 != address(0));
cooAddress1 = _newCOO1;
}
| /// @dev Assigns a new address to act as the COO1. Only available to the current CEO.
/// @param _newCOO1 The address of the new COO1 | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
19271,
19401
]
} | 26,658 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | setCOO2 | function setCOO2(address _newCOO2) external onlyCEO {
require(_newCOO2 != address(0));
cooAddress2 = _newCOO2;
}
| /// @dev Assigns a new address to act as the COO2. Only available to the current CEO.
/// @param _newCOO2 The address of the new COO2 | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
19544,
19674
]
} | 26,659 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | setCOO3 | function setCOO3(address _newCOO3) external onlyCEO {
require(_newCOO3 != address(0));
cooAddress3 = _newCOO3;
}
| /// @dev Assigns a new address to act as the COO3. Only available to the current CEO.
/// @param _newCOO3 The address of the new COO3 | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
19817,
19947
]
} | 26,660 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | transferToken | function transferToken(uint256 _tokenId, address _to) external onlyCOO {
var group = tokenIndexToGroup[_tokenId];
// Safety check to make sure group exists and had purchased the token
require(group.exists);
require(group.purchasePrice > 0);
linkedContract.transfer(_to, _tokenId);
}
| /// @dev Backup fn to allow transfer of token out of
/// contract, for use where a purchase group wants to use an alternate
/// selling platform
/// @param _tokenId The ID of the Token purchase group
/// @param _to Address to transfer token to | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
20211,
20528
]
} | 26,661 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | withdrawCommission | function withdrawCommission(address _to) external onlyCFO {
uint256 balance = commissionBalance;
address transferee = (_to == address(0)) ? cfoAddress : _to;
commissionBalance = 0;
if (balance > 0) {
transferee.transfer(balance);
}
FundsWithdrawn(transferee, balance);
}
| /// @dev Withdraws sale commission, CFO-only functionality
/// @param _to Address for commission to be sent to | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
20648,
20961
]
} | 26,662 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | getContributionBalanceForTokenGroup | function getContributionBalanceForTokenGroup(uint256 _tokenId, address userAdd) external view returns (uint balance) {
var group = tokenIndexToGroup[_tokenId];
require(group.exists);
balance = group.addressToContribution[userAdd];
}
| /// @dev Get contributed balance in _tokenId token group for user
/// @param _tokenId The ID of the token to be queried | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
21123,
21376
]
} | 26,663 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | getSelfContributionBalanceForTokenGroup | function getSelfContributionBalanceForTokenGroup(uint256 _tokenId) external view returns (uint balance) {
var group = tokenIndexToGroup[_tokenId];
require(group.exists);
balance = group.addressToContribution[msg.sender];
}
| /// @dev Get contributed balance in _tokenId token group for user
/// @param _tokenId The ID of the token to be queried | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
21505,
21748
]
} | 26,664 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | getContributorsInTokenGroup | function getContributorsInTokenGroup(uint256 _tokenId) external view returns (address[] contribAddr) {
var group = tokenIndexToGroup[_tokenId];
require(group.exists);
contribAddr = group.contributorArr;
}
| /// @dev Get array of contributors' addresses in _tokenId token group
/// @param _tokenId The ID of the token to be queried | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
21881,
22106
]
} | 26,665 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | getContributorsInTokenGroupCount | function getContributorsInTokenGroupCount(uint256 _tokenId) external view returns (uint count) {
var group = tokenIndexToGroup[_tokenId];
require(group.exists);
count = group.contributorArr.length;
}
| /// @dev Get no. of contributors in _tokenId token group
/// @param _tokenId The ID of the token to be queried | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
22226,
22446
]
} | 26,666 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | getGroupsContributedTo | function getGroupsContributedTo(address userAdd) external view returns (uint256[] groupIds) {
// Safety check to prevent against an unexpected 0x0 default.
require(_addressNotNull(userAdd));
var contributor = userAddressToContributor[userAdd];
require(contributor.exists);
groupIds = contributor.group... | /// @dev Get list of tokenIds of token groups a user contributed to | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
22520,
22862
]
} | 26,667 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | getSelfGroupsContributedTo | function getSelfGroupsContributedTo() external view returns (uint256[] groupIds) {
// Safety check to prevent against an unexpected 0x0 default.
require(_addressNotNull(msg.sender));
var contributor = userAddressToContributor[msg.sender];
require(contributor.exists);
groupIds = contributor.groupArr;
... | /// @dev Get list of tokenIds of token groups the user contributed to | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
22938,
23275
]
} | 26,668 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | getGroupPurchasedPrice | function getGroupPurchasedPrice(uint256 _tokenId) external view returns (uint256 price) {
var group = tokenIndexToGroup[_tokenId];
require(group.exists);
require(group.purchasePrice > 0);
price = group.purchasePrice;
}
| /// @dev Get price at which token group purchased _tokenId token | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
23346,
23590
]
} | 26,669 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | getWithdrawableBalance | function getWithdrawableBalance() external view returns (uint256 balance) {
// Safety check to prevent against an unexpected 0x0 default.
require(_addressNotNull(msg.sender));
var contributor = userAddressToContributor[msg.sender];
require(contributor.exists);
balance = contributor.withdrawableBalanc... | /// @dev Get withdrawable balance from sale proceeds for a user | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
23660,
24000
]
} | 26,670 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | getTokenGroupTotalBalance | function getTokenGroupTotalBalance(uint256 _tokenId) external view returns (uint balance) {
var group = tokenIndexToGroup[_tokenId];
require(group.exists);
balance = group.contributedBalance;
}
| /// @dev Get total contributed balance in _tokenId token group
/// @param _tokenId The ID of the token group to be queried | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
24132,
24346
]
} | 26,671 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | _addressNotNull | function _addressNotNull(address _to) private pure returns (bool) {
return _to != address(0);
}
| /// @dev Safety check on _to address to prevent against an unexpected 0x0 default.
/// @param _to Address to be checked | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
24506,
24612
]
} | 26,672 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | _clearContributorRecordInGroup | function _clearContributorRecordInGroup(uint256 _tokenId, address _userAdd) private returns (uint256 refundBalance) {
var group = tokenIndexToGroup[_tokenId];
// Index was saved is 1 + the array's index, b/c 0 is the default value
// in a mapping.
uint cIndex = group.addressToContributorArrIndex[_userAdd... | /// @dev Clears record of a Contributor from a Group's record
/// @param _tokenId Token ID of Group to be cleared
/// @param _userAdd Address of Contributor | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
24781,
25870
]
} | 26,673 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | _clearGroupRecordInContributor | function _clearGroupRecordInContributor(uint256 _tokenId, address _userAdd) private {
// Index saved is 1 + the array's index, b/c 0 is the default value
// in a mapping.
uint gIndex = userAddressToContributor[_userAdd].tokenIdToGroupArrIndex[_tokenId] - 1;
uint lastGIndex = userAddressToContributor[_userA... | /// @dev Clears record of a Group from a Contributor's record
/// @param _tokenId Token ID of Group to be cleared
/// @param _userAdd Address of Contributor | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
26039,
26941
]
} | 26,674 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | _distributeProceeds | function _distributeProceeds(uint256 _tokenId, uint256 _amount) private {
uint256 fundsForDistribution = uint256(SafeMath.div(SafeMath.mul(_amount,
distributionNumerator), distributionDenominator));
uint256 commission = _amount;
for (uint i = 0; i < tokenIndexToGroup[_tokenId].contributorArr.length; i++... | /// @dev Redistribute proceeds from token purchase
/// @param _tokenId Token ID of token to be purchased
/// @param _amount Amount paid into contract for token | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
27113,
28586
]
} | 26,675 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | _newPrice | function _newPrice(uint256 _oldPrice) private view returns (uint256 newPrice) {
if (_oldPrice < firstStepLimit) {
// first stage
newPrice = SafeMath.div(SafeMath.mul(_oldPrice, 200), 94);
} else if (_oldPrice < secondStepLimit) {
// second stage
newPrice = SafeMath.div(SafeMath.mul(_oldPrice, ... | /// @dev Calculates next price of celebrity token
/// @param _oldPrice Previous price | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
28681,
29140
]
} | 26,676 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | GroupBuyContract | contract GroupBuyContract {
/*** CONSTANTS ***/
uint256 public constant MAX_CONTRIBUTION_SLOTS = 20;
uint256 private firstStepLimit = 0.053613 ether;
uint256 private secondStepLimit = 0.564957 ether;
/*** DATATYPES ***/
// @dev A Group is created for all the contributors who want to contribute
/... | _purchase | function _purchase(uint256 _tokenId, uint256 _amount) private {
tokenIndexToGroup[_tokenId].purchasePrice = _amount;
linkedContract.purchase.value(_amount)(_tokenId);
TokenPurchased(_tokenId, _amount);
}
| /// @dev Calls CelebrityToken purchase fn and updates records
/// @param _tokenId Token ID of token to be purchased
/// @param _amount Amount to be paid to CelebrityToken | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
29323,
29547
]
} | 26,677 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | ERC721 | contract ERC721 {
// Required methods
function approve(address _to, uint256 _tokenId) public;
function balanceOf(address _owner) public view returns (uint256 balance);
function implementsERC721() public pure returns (bool);
function ownerOf(uint256 _tokenId) public view returns (address addr);
functio... | /// @title Interface for contracts conforming to ERC-721: Non-Fungible Tokens
/// @author Dieter Shirley <dete@axiomzen.co> (https://github.com/dete) | NatSpecSingleLine | approve | function approve(address _to, uint256 _tokenId) public;
| // Required methods | LineComment | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
42,
100
]
} | 26,678 | |
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | CelebrityToken | contract CelebrityToken is ERC721 {
/*** EVENTS ***/
/// @dev The Birth event is fired whenever a new person comes into existence.
event Birth(uint256 tokenId, string name, address owner);
/// @dev The TokenSold event is fired whenever a token is sold.
event TokenSold(uint256 tokenId, uint256 oldPr... | CelebrityToken | function CelebrityToken() public {
ceoAddress = msg.sender;
cooAddress = msg.sender;
}
| /*** CONSTRUCTOR ***/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
1029,
1131
]
} | 26,679 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | CelebrityToken | contract CelebrityToken is ERC721 {
/*** EVENTS ***/
/// @dev The Birth event is fired whenever a new person comes into existence.
event Birth(uint256 tokenId, string name, address owner);
/// @dev The TokenSold event is fired whenever a token is sold.
event TokenSold(uint256 tokenId, uint256 oldPr... | approve | function approve(
address _to,
uint256 _tokenId
) public;
| /// @notice Grant another address the right to transfer token via takeOwnership() and transferFrom().
/// @param _to The address to be granted transfer approval. Pass address(0) to
/// clear all approvals.
/// @param _tokenId The ID of the Token that can be transferred if this call succeeds.
/// @dev Required for ERC-... | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
1515,
1588
]
} | 26,680 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | CelebrityToken | contract CelebrityToken is ERC721 {
/*** EVENTS ***/
/// @dev The Birth event is fired whenever a new person comes into existence.
event Birth(uint256 tokenId, string name, address owner);
/// @dev The TokenSold event is fired whenever a token is sold.
event TokenSold(uint256 tokenId, uint256 oldPr... | balanceOf | function balanceOf(address _owner) public view returns (uint256 balance);
| /// For querying balance of a particular account
/// @param _owner The address for balance query
/// @dev Required for ERC-721 compliance. | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
1739,
1815
]
} | 26,681 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | CelebrityToken | contract CelebrityToken is ERC721 {
/*** EVENTS ***/
/// @dev The Birth event is fired whenever a new person comes into existence.
event Birth(uint256 tokenId, string name, address owner);
/// @dev The TokenSold event is fired whenever a token is sold.
event TokenSold(uint256 tokenId, uint256 oldPr... | createPromoPerson | function createPromoPerson(address _owner, string _name, uint256 _price) public;
| /// @dev Creates a new promo Person with the given name, with given _price and assignes it to an address. | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
1927,
2010
]
} | 26,682 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | CelebrityToken | contract CelebrityToken is ERC721 {
/*** EVENTS ***/
/// @dev The Birth event is fired whenever a new person comes into existence.
event Birth(uint256 tokenId, string name, address owner);
/// @dev The TokenSold event is fired whenever a token is sold.
event TokenSold(uint256 tokenId, uint256 oldPr... | createContractPerson | function createContractPerson(string _name) public;
| /// @dev Creates a new Person with the given name. | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
2067,
2121
]
} | 26,683 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | CelebrityToken | contract CelebrityToken is ERC721 {
/*** EVENTS ***/
/// @dev The Birth event is fired whenever a new person comes into existence.
event Birth(uint256 tokenId, string name, address owner);
/// @dev The TokenSold event is fired whenever a token is sold.
event TokenSold(uint256 tokenId, uint256 oldPr... | getPerson | function getPerson(uint256 _tokenId) public view returns (
string personName,
uint256 sellingPrice,
address owner
);
| /// @notice Returns all the relevant information about a specific person.
/// @param _tokenId The tokenId of the person of interest. | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
2263,
2400
]
} | 26,684 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | CelebrityToken | contract CelebrityToken is ERC721 {
/*** EVENTS ***/
/// @dev The Birth event is fired whenever a new person comes into existence.
event Birth(uint256 tokenId, string name, address owner);
/// @dev The TokenSold event is fired whenever a token is sold.
event TokenSold(uint256 tokenId, uint256 oldPr... | name | function name() public pure returns (string);
| /// @dev Required for ERC-721 compliance. | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
2509,
2557
]
} | 26,685 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | CelebrityToken | contract CelebrityToken is ERC721 {
/*** EVENTS ***/
/// @dev The Birth event is fired whenever a new person comes into existence.
event Birth(uint256 tokenId, string name, address owner);
/// @dev The TokenSold event is fired whenever a token is sold.
event TokenSold(uint256 tokenId, uint256 oldPr... | ownerOf | function ownerOf(uint256 _tokenId)
public
view
returns (address owner);
| /// For querying owner of token
/// @param _tokenId The tokenID for owner inquiry
/// @dev Required for ERC-721 compliance. | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
2693,
2782
]
} | 26,686 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | CelebrityToken | contract CelebrityToken is ERC721 {
/*** EVENTS ***/
/// @dev The Birth event is fired whenever a new person comes into existence.
event Birth(uint256 tokenId, string name, address owner);
/// @dev The TokenSold event is fired whenever a token is sold.
event TokenSold(uint256 tokenId, uint256 oldPr... | purchase | function purchase(uint256 _tokenId) public payable;
| // Allows someone to send ether and obtain the token | LineComment | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
2887,
2941
]
} | 26,687 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | CelebrityToken | contract CelebrityToken is ERC721 {
/*** EVENTS ***/
/// @dev The Birth event is fired whenever a new person comes into existence.
event Birth(uint256 tokenId, string name, address owner);
/// @dev The TokenSold event is fired whenever a token is sold.
event TokenSold(uint256 tokenId, uint256 oldPr... | setCEO | function setCEO(address _newCEO) public;
| /// @dev Assigns a new address to act as the CEO. Only available to the current CEO.
/// @param _newCEO The address of the new CEO | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
3156,
3199
]
} | 26,688 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | CelebrityToken | contract CelebrityToken is ERC721 {
/*** EVENTS ***/
/// @dev The Birth event is fired whenever a new person comes into existence.
event Birth(uint256 tokenId, string name, address owner);
/// @dev The TokenSold event is fired whenever a token is sold.
event TokenSold(uint256 tokenId, uint256 oldPr... | setCOO | function setCOO(address _newCOO) public;
| /// @dev Assigns a new address to act as the COO. Only available to the current COO.
/// @param _newCOO The address of the new COO | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
3339,
3382
]
} | 26,689 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | CelebrityToken | contract CelebrityToken is ERC721 {
/*** EVENTS ***/
/// @dev The Birth event is fired whenever a new person comes into existence.
event Birth(uint256 tokenId, string name, address owner);
/// @dev The TokenSold event is fired whenever a token is sold.
event TokenSold(uint256 tokenId, uint256 oldPr... | symbol | function symbol() public pure returns (string);
| /// @dev Required for ERC-721 compliance. | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
3430,
3480
]
} | 26,690 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | CelebrityToken | contract CelebrityToken is ERC721 {
/*** EVENTS ***/
/// @dev The Birth event is fired whenever a new person comes into existence.
event Birth(uint256 tokenId, string name, address owner);
/// @dev The TokenSold event is fired whenever a token is sold.
event TokenSold(uint256 tokenId, uint256 oldPr... | takeOwnership | function takeOwnership(uint256 _tokenId) public;
| /// @notice Allow pre-approved user to take ownership of a token
/// @param _tokenId The ID of the Token that can be transferred if this call succeeds.
/// @dev Required for ERC-721 compliance. | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
3684,
3735
]
} | 26,691 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | CelebrityToken | contract CelebrityToken is ERC721 {
/*** EVENTS ***/
/// @dev The Birth event is fired whenever a new person comes into existence.
event Birth(uint256 tokenId, string name, address owner);
/// @dev The TokenSold event is fired whenever a token is sold.
event TokenSold(uint256 tokenId, uint256 oldPr... | tokensOfOwner | function tokensOfOwner(address _owner) public view returns(uint256[] ownerTokens);
| /// @param _owner The owner whose celebrity tokens we are interested in.
/// @dev This method MUST NEVER be called by smart contract code. First, it's fairly
/// expensive (it walks the entire Persons array looking for persons belonging to owner),
/// but it also returns a dynamic array, which is only supported for w... | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
4125,
4210
]
} | 26,692 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | CelebrityToken | contract CelebrityToken is ERC721 {
/*** EVENTS ***/
/// @dev The Birth event is fired whenever a new person comes into existence.
event Birth(uint256 tokenId, string name, address owner);
/// @dev The TokenSold event is fired whenever a token is sold.
event TokenSold(uint256 tokenId, uint256 oldPr... | totalSupply | function totalSupply() public view returns (uint256 total);
| /// For querying totalSupply of token
/// @dev Required for ERC-721 compliance. | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
4299,
4361
]
} | 26,693 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | CelebrityToken | contract CelebrityToken is ERC721 {
/*** EVENTS ***/
/// @dev The Birth event is fired whenever a new person comes into existence.
event Birth(uint256 tokenId, string name, address owner);
/// @dev The TokenSold event is fired whenever a token is sold.
event TokenSold(uint256 tokenId, uint256 oldPr... | transfer | function transfer(
address _to,
uint256 _tokenId
) public;
| /// Owner initates the transfer of the token to another account
/// @param _to The address for the token to be transferred to.
/// @param _tokenId The ID of the Token that can be transferred if this call succeeds.
/// @dev Required for ERC-721 compliance. | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
4632,
4706
]
} | 26,694 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | CelebrityToken | contract CelebrityToken is ERC721 {
/*** EVENTS ***/
/// @dev The Birth event is fired whenever a new person comes into existence.
event Birth(uint256 tokenId, string name, address owner);
/// @dev The TokenSold event is fired whenever a token is sold.
event TokenSold(uint256 tokenId, uint256 oldPr... | transferFrom | function transferFrom(
address _from,
address _to,
uint256 _tokenId
) public;
| /// Third-party initiates transfer of token from address _from to address _to
/// @param _from The address for the token to be transferred from.
/// @param _to The address for the token to be transferred to.
/// @param _tokenId The ID of the Token that can be transferred if this call succeeds.
/// @dev Required for ERC... | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
5061,
5159
]
} | 26,695 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | CelebrityToken | contract CelebrityToken is ERC721 {
/*** EVENTS ***/
/// @dev The Birth event is fired whenever a new person comes into existence.
event Birth(uint256 tokenId, string name, address owner);
/// @dev The TokenSold event is fired whenever a token is sold.
event TokenSold(uint256 tokenId, uint256 oldPr... | _addressNotNull | function _addressNotNull(address _to) private pure returns (bool);
| /// Safety check on _to address to prevent against an unexpected 0x0 default. | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
5274,
5343
]
} | 26,696 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | CelebrityToken | contract CelebrityToken is ERC721 {
/*** EVENTS ***/
/// @dev The Birth event is fired whenever a new person comes into existence.
event Birth(uint256 tokenId, string name, address owner);
/// @dev The TokenSold event is fired whenever a token is sold.
event TokenSold(uint256 tokenId, uint256 oldPr... | _approved | function _approved(address _to, uint256 _tokenId) private view returns (bool);
| /// For checking approval of transfer for address _to | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
5403,
5484
]
} | 26,697 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | CelebrityToken | contract CelebrityToken is ERC721 {
/*** EVENTS ***/
/// @dev The Birth event is fired whenever a new person comes into existence.
event Birth(uint256 tokenId, string name, address owner);
/// @dev The TokenSold event is fired whenever a token is sold.
event TokenSold(uint256 tokenId, uint256 oldPr... | _createPerson | function _createPerson(string _name, address _owner, uint256 _price) private;
| /// For creating Person | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
5514,
5594
]
} | 26,698 | |||
GroupBuyContract | GroupBuyContract.sol | 0x6f4dcbb16f72853c7382e7100a0713a68e53d9be | Solidity | CelebrityToken | contract CelebrityToken is ERC721 {
/*** EVENTS ***/
/// @dev The Birth event is fired whenever a new person comes into existence.
event Birth(uint256 tokenId, string name, address owner);
/// @dev The TokenSold event is fired whenever a token is sold.
event TokenSold(uint256 tokenId, uint256 oldPr... | _owns | function _owns(address claimant, uint256 _tokenId) private view returns (bool);
| /// Check for token ownership | NatSpecSingleLine | v0.4.18+commit.9cf6e910 | bzzr://3c7145beb8dd3ec20d09d90c8823e283d3e88c519aeb52819089d5cb7b2ba797 | {
"func_code_index": [
5630,
5712
]
} | 26,699 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.