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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCInterface | interface XCInterface {
/**
* Set contract service status.
* @param status contract service status (0:closed;1:only-closed-lock;2:only-closed-unlock;3:opened;).
*/
function setStatus(uint8 status) external;
/**
* Get contract service status.
* @return contract service st... | getToken | function getToken() external view returns (address);
| /**
* Get the Token contract address.
* @return contract address.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
1153,
1210
]
} | 20,100 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCInterface | interface XCInterface {
/**
* Set contract service status.
* @param status contract service status (0:closed;1:only-closed-lock;2:only-closed-unlock;3:opened;).
*/
function setStatus(uint8 status) external;
/**
* Get contract service status.
* @return contract service st... | setXCPlugin | function setXCPlugin(address account) external;
| /**
* Set the XCPlugin contract address.
* @param account contract address.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
1315,
1367
]
} | 20,101 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCInterface | interface XCInterface {
/**
* Set contract service status.
* @param status contract service status (0:closed;1:only-closed-lock;2:only-closed-unlock;3:opened;).
*/
function setStatus(uint8 status) external;
/**
* Get contract service status.
* @return contract service st... | getXCPlugin | function getXCPlugin() external view returns (address);
| /**
* Get the XCPlugin contract address.
* @return contract address.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
1465,
1525
]
} | 20,102 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCInterface | interface XCInterface {
/**
* Set contract service status.
* @param status contract service status (0:closed;1:only-closed-lock;2:only-closed-unlock;3:opened;).
*/
function setStatus(uint8 status) external;
/**
* Get contract service status.
* @return contract service st... | setCompare | function setCompare(bytes2 symbol) external;
| /**
* Set the comparison symbol in the contract.
* @param symbol comparison symbol ({"-=" : ">" , "+=" : ">=" }).
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
1668,
1717
]
} | 20,103 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCInterface | interface XCInterface {
/**
* Set contract service status.
* @param status contract service status (0:closed;1:only-closed-lock;2:only-closed-unlock;3:opened;).
*/
function setStatus(uint8 status) external;
/**
* Get contract service status.
* @return contract service st... | getCompare | function getCompare() external view returns (bytes2);
| /**
* Get the comparison symbol in the contract.
* @return comparison symbol.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
1824,
1882
]
} | 20,104 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCInterface | interface XCInterface {
/**
* Set contract service status.
* @param status contract service status (0:closed;1:only-closed-lock;2:only-closed-unlock;3:opened;).
*/
function setStatus(uint8 status) external;
/**
* Get contract service status.
* @return contract service st... | lock | function lock(bytes32 toPlatform, address toAccount, uint value) external payable;
| /**
* Transfer out of cross chain.
* @param toPlatform name of to platform.
* @param toAccount account of to platform.
* @param value transfer amount.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
2074,
2161
]
} | 20,105 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCInterface | interface XCInterface {
/**
* Set contract service status.
* @param status contract service status (0:closed;1:only-closed-lock;2:only-closed-unlock;3:opened;).
*/
function setStatus(uint8 status) external;
/**
* Get contract service status.
* @return contract service st... | unlock | function unlock(string txid, bytes32 fromPlatform, address fromAccount, address toAccount, uint value) external payable;
| /**
* Transfer in of cross chain.
* @param txid transaction id.
* @param fromPlatform name of form platform.
* @param fromAccount ame of to platform.
* @param toAccount account of to platform.
* @param value transfer amount.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
2439,
2564
]
} | 20,106 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCInterface | interface XCInterface {
/**
* Set contract service status.
* @param status contract service status (0:closed;1:only-closed-lock;2:only-closed-unlock;3:opened;).
*/
function setStatus(uint8 status) external;
/**
* Get contract service status.
* @return contract service st... | withdraw | function withdraw(address account, uint value) external payable;
| /**
* Transfer the misoperation to the amount of the contract account to the specified account.
* @param account the specified account.
* @param value transfer amount.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
2767,
2836
]
} | 20,107 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCInterface | interface XCInterface {
/**
* Set contract service status.
* @param status contract service status (0:closed;1:only-closed-lock;2:only-closed-unlock;3:opened;).
*/
function setStatus(uint8 status) external;
/**
* Get contract service status.
* @return contract service st... | transfer | function transfer(address account, uint value) external payable;
| /**
* Transfer the money(qtum/eth) from the contract account.
* @param account the specified account.
* @param value transfer amount.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
3005,
3074
]
} | 20,108 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCInterface | interface XCInterface {
/**
* Set contract service status.
* @param status contract service status (0:closed;1:only-closed-lock;2:only-closed-unlock;3:opened;).
*/
function setStatus(uint8 status) external;
/**
* Get contract service status.
* @return contract service st... | deposit | function deposit() external payable;
| /**
* Deposit money(eth) into a contract.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
3139,
3180
]
} | 20,109 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XC | contract XC is XCInterface {
/**
* Contract Administrator
* @field status Contract external service status.
* @field platformName Current contract platform name.
* @field account Current contract administrator.
*/
struct Admin {
uint8 status;
bytes32 platf... | toCompare | function toCompare(uint f, uint s) internal view returns (bool) {
if (admin.compareSymbol == "-=") {
return f > s;
} else if (admin.compareSymbol == "+=") {
return f >= s;
} else {
return false;
}
}
| /**
* ######################
* # private function #
* ######################
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
6385,
6676
]
} | 20,110 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | start | function start() external;
| /**
* Open the contract service status.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
93,
124
]
} | 20,111 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | stop | function stop() external;
| /**
* Close the contract service status.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
188,
218
]
} | 20,112 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | getStatus | function getStatus() external view returns (bool);
| /**
* Get contract service status.
* @return contract service status.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
317,
372
]
} | 20,113 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | getPlatformName | function getPlatformName() external view returns (bytes32);
| /**
* Get the current contract platform name.
* @return contract platform name.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
481,
545
]
} | 20,114 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | setAdmin | function setAdmin(address account) external;
| /**
* Set the current contract administrator.
* @param account account of contract administrator.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
672,
721
]
} | 20,115 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | getAdmin | function getAdmin() external view returns (address);
| /**
* Get the current contract administrator.
* @return contract administrator.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
830,
887
]
} | 20,116 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | addCaller | function addCaller(address caller) external;
| /**
* Add a contract trust caller.
* @param caller account of caller.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
986,
1035
]
} | 20,117 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | deleteCaller | function deleteCaller(address caller) external;
| /**
* Delete a contract trust caller.
* @param caller account of caller.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
1137,
1189
]
} | 20,118 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | existCaller | function existCaller(address caller) external view returns (bool);
| /**
* Whether the trust caller exists.
* @param caller account of caller.
* @return whether exists.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
1324,
1395
]
} | 20,119 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | getCallers | function getCallers() external view returns (address[]);
| /**
* Get all contract trusted callers.
* @return al lcallers.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
1487,
1548
]
} | 20,120 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | addPlatform | function addPlatform(bytes32 name) external;
| /**
* Add a trusted platform name.
* @param name a platform name.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
1643,
1692
]
} | 20,121 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | deletePlatform | function deletePlatform(bytes32 name) external;
| /**
* Delete a trusted platform name.
* @param name a platform name.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
1790,
1842
]
} | 20,122 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | existPlatform | function existPlatform(bytes32 name) external view returns (bool);
| /**
* Whether the trusted platform information exists.
* @param name a platform name.
* @return whether exists.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
1989,
2060
]
} | 20,123 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | addPublicKey | function addPublicKey(bytes32 platformName, address publicKey) external;
| /**
* Add the trusted platform public key information.
* @param platformName a platform name.
* @param publicKey a public key.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
2222,
2299
]
} | 20,124 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | deletePublicKey | function deletePublicKey(bytes32 platformName, address publicKey) external;
| /**
* Delete the trusted platform public key information.
* @param platformName a platform name.
* @param publicKey a public key.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
2464,
2544
]
} | 20,125 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | existPublicKey | function existPublicKey(bytes32 platformName, address publicKey) external view returns (bool);
| /**
* Whether the trusted platform public key information exists.
* @param platformName a platform name.
* @param publicKey a public key.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
2717,
2816
]
} | 20,126 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | countOfPublicKey | function countOfPublicKey(bytes32 platformName) external view returns (uint);
| /**
* Get the count of public key for the trusted platform.
* @param platformName a platform name.
* @return count of public key.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
2981,
3063
]
} | 20,127 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | publicKeys | function publicKeys(bytes32 platformName) external view returns (address[]);
| /**
* Get the list of public key for the trusted platform.
* @param platformName a platform name.
* @return list of public key.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
3226,
3307
]
} | 20,128 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | setWeight | function setWeight(bytes32 platformName, uint weight) external;
| /**
* Set the weight of a trusted platform.
* @param platformName a platform name.
* @param weight weight of platform.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
3461,
3529
]
} | 20,129 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | getWeight | function getWeight(bytes32 platformName) external view returns (uint);
| /**
* Get the weight of a trusted platform.
* @param platformName a platform name.
* @return weight of platform.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
3677,
3752
]
} | 20,130 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | voteProposal | function voteProposal(bytes32 fromPlatform, address fromAccount, address toAccount, uint value, bytes32 tokenSymbol, string txid, bytes sig) external;
| /**
* Initiate and vote on the transaction proposal.
* @param fromPlatform name of form platform.
* @param fromAccount name of to platform.
* @param toAccount account of to platform.
* @param value transfer amount.
* @param tokenSymbol token Symbol.
* @param txid transaction id.
* @param sig transaction... | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
4133,
4288
]
} | 20,131 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | verifyProposal | function verifyProposal(bytes32 fromPlatform, address fromAccount, address toAccount, uint value, bytes32 tokenSymbol, string txid) external view returns (bool, bool);
| /**
* Verify that the transaction proposal is valid.
* @param fromPlatform name of form platform.
* @param fromAccount name of to platform.
* @param toAccount account of to platform.
* @param value transfer amount.
* @param tokenSymbol token Symbol.
* @param txid transaction id.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
4627,
4799
]
} | 20,132 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | commitProposal | function commitProposal(bytes32 platformName, string txid) external returns (bool);
| /**
* Commit the transaction proposal.
* @param platformName a platform name.
* @param txid transaction id.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
4942,
5030
]
} | 20,133 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | getProposal | function getProposal(bytes32 platformName, string txid) external view returns (bool status, address fromAccount, address toAccount, uint value, address[] voters, uint weight);
| /**
* Get the transaction proposal information.
* @param platformName a platform name.
* @param txid transaction id.
* @return status completion status of proposal.
* @return fromAccount account of to platform.
* @return toAccount account of to platform.
* @return value transfer amount.
* @return voters... | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
5480,
5660
]
} | 20,134 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | deleteProposal | function deleteProposal(bytes32 platformName, string txid) external;
| /**
* Delete the transaction proposal information.
* @param platformName a platform name.
* @param txid transaction id.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
5815,
5888
]
} | 20,135 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCPluginInterface | interface XCPluginInterface {
/**
* Open the contract service status.
*/
function start() external;
/**
* Close the contract service status.
*/
function stop() external;
/**
* Get contract service status.
* @return contract service status.
*/
... | transfer | function transfer(address account, uint value) external payable;
| /**
* Transfer the money(qtum/eth) from the contract account.
* @param account the specified account.
* @param value transfer amount.
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
6057,
6126
]
} | 20,136 | |||
XC | XC.sol | 0xd3970927a9fc6dd00628368f7e72fd8ac90823a1 | Solidity | XCPlugin | contract XCPlugin is XCPluginInterface {
/**
* Contract Administrator
* @field status Contract external service status.
* @field platformName Current contract platform name.
* @field tokenSymbol token Symbol.
* @field account Current contract administrator.
*/
struct Admi... | hashMsg | function hashMsg(bytes32 fromPlatform, address fromAccount, bytes32 toPlatform, address toAccount, uint value, bytes32 tokenSymbol, string txid) internal pure returns (bytes32) {
return sha256(bytes32ToStr(fromPlatform), ":0x", uintToStr(uint160(fromAccount), 16), ":", bytes32ToStr(toPlatform), ":0x", uintToStr(... | /**
* ######################
* # private function #
* ######################
*/ | NatSpecMultiLine | v0.4.22+commit.4cb486ee | bzzr://54ed9cdae3f0b9d16bd5408870ae2626965e9d741fc0fdfdadc72f2ec1854ee2 | {
"func_code_index": [
11429,
11860
]
} | 20,137 | |||
ContractRegistry | contracts/ContractRegistry.sol | 0x3d665d90c533e63e543e3f4c0353647a48e87565 | Solidity | ContractRegistry | contract ContractRegistry is IContractRegistry, Owned, Utils, ContractIds {
struct RegistryItem {
address contractAddress; // contract address
uint256 nameIndex; // index of the item in the list of contract names
}
mapping (bytes32 => RegistryItem) private items; // nam... | /**
Contract Registry
The contract registry keeps contract addresses by name.
The owner can update contract addresses so that a contract name always points to the latest version
of the given contract.
Other contracts can query the registry to get updated addresses instead of depending on specific
addresses.... | NatSpecMultiLine | itemCount | function itemCount() public view returns (uint256) {
return contractNames.length;
}
| /**
@dev returns the number of items in the registry
@return number of items
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | None | bzzr://c7ba47c90a8de4c866a8b4440c52f58f167c0527cc837adb63674e25cf50a261 | {
"func_code_index": [
716,
818
]
} | 20,138 |
ContractRegistry | contracts/ContractRegistry.sol | 0x3d665d90c533e63e543e3f4c0353647a48e87565 | Solidity | ContractRegistry | contract ContractRegistry is IContractRegistry, Owned, Utils, ContractIds {
struct RegistryItem {
address contractAddress; // contract address
uint256 nameIndex; // index of the item in the list of contract names
}
mapping (bytes32 => RegistryItem) private items; // nam... | /**
Contract Registry
The contract registry keeps contract addresses by name.
The owner can update contract addresses so that a contract name always points to the latest version
of the given contract.
Other contracts can query the registry to get updated addresses instead of depending on specific
addresses.... | NatSpecMultiLine | addressOf | function addressOf(bytes32 _contractName) public view returns (address) {
return items[_contractName].contractAddress;
}
| /**
@dev returns the address associated with the given contract name
@param _contractName contract name
@return contract address
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | None | bzzr://c7ba47c90a8de4c866a8b4440c52f58f167c0527cc837adb63674e25cf50a261 | {
"func_code_index": [
993,
1132
]
} | 20,139 |
ContractRegistry | contracts/ContractRegistry.sol | 0x3d665d90c533e63e543e3f4c0353647a48e87565 | Solidity | ContractRegistry | contract ContractRegistry is IContractRegistry, Owned, Utils, ContractIds {
struct RegistryItem {
address contractAddress; // contract address
uint256 nameIndex; // index of the item in the list of contract names
}
mapping (bytes32 => RegistryItem) private items; // nam... | /**
Contract Registry
The contract registry keeps contract addresses by name.
The owner can update contract addresses so that a contract name always points to the latest version
of the given contract.
Other contracts can query the registry to get updated addresses instead of depending on specific
addresses.... | NatSpecMultiLine | registerAddress | function registerAddress(bytes32 _contractName, address _contractAddress)
public
ownerOnly
validAddress(_contractAddress)
{
require(_contractName.length > 0); // validate input
if (items[_contractName].contractAddress == address(0)) {
// add the contract name to the name list
... | /**
@dev registers a new address for the contract name in the registry
@param _contractName contract name
@param _contractAddress contract address
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | None | bzzr://c7ba47c90a8de4c866a8b4440c52f58f167c0527cc837adb63674e25cf50a261 | {
"func_code_index": [
1327,
2098
]
} | 20,140 |
ContractRegistry | contracts/ContractRegistry.sol | 0x3d665d90c533e63e543e3f4c0353647a48e87565 | Solidity | ContractRegistry | contract ContractRegistry is IContractRegistry, Owned, Utils, ContractIds {
struct RegistryItem {
address contractAddress; // contract address
uint256 nameIndex; // index of the item in the list of contract names
}
mapping (bytes32 => RegistryItem) private items; // nam... | /**
Contract Registry
The contract registry keeps contract addresses by name.
The owner can update contract addresses so that a contract name always points to the latest version
of the given contract.
Other contracts can query the registry to get updated addresses instead of depending on specific
addresses.... | NatSpecMultiLine | unregisterAddress | function unregisterAddress(bytes32 _contractName) public ownerOnly {
require(_contractName.length > 0); // validate input
require(items[_contractName].contractAddress != address(0));
// remove the address from the registry
items[_contractName].contractAddress = address(0);
// if there are m... | /**
@dev removes an existing contract address from the registry
@param _contractName contract name
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | None | bzzr://c7ba47c90a8de4c866a8b4440c52f58f167c0527cc837adb63674e25cf50a261 | {
"func_code_index": [
2231,
3584
]
} | 20,141 |
ContractRegistry | contracts/ContractRegistry.sol | 0x3d665d90c533e63e543e3f4c0353647a48e87565 | Solidity | ContractRegistry | contract ContractRegistry is IContractRegistry, Owned, Utils, ContractIds {
struct RegistryItem {
address contractAddress; // contract address
uint256 nameIndex; // index of the item in the list of contract names
}
mapping (bytes32 => RegistryItem) private items; // nam... | /**
Contract Registry
The contract registry keeps contract addresses by name.
The owner can update contract addresses so that a contract name always points to the latest version
of the given contract.
Other contracts can query the registry to get updated addresses instead of depending on specific
addresses.... | NatSpecMultiLine | bytes32ToString | function bytes32ToString(bytes32 _bytes) private pure returns (string) {
bytes memory byteArray = new bytes(32);
for (uint256 i; i < 32; i++) {
byteArray[i] = _bytes[i];
}
return string(byteArray);
}
| /**
@dev utility, converts bytes32 to a string
note that the bytes32 argument is assumed to be UTF8 encoded ASCII string
@return string representation of the given bytes32 argument
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | None | bzzr://c7ba47c90a8de4c866a8b4440c52f58f167c0527cc837adb63674e25cf50a261 | {
"func_code_index": [
3808,
4068
]
} | 20,142 |
ContractRegistry | contracts/ContractRegistry.sol | 0x3d665d90c533e63e543e3f4c0353647a48e87565 | Solidity | ContractRegistry | contract ContractRegistry is IContractRegistry, Owned, Utils, ContractIds {
struct RegistryItem {
address contractAddress; // contract address
uint256 nameIndex; // index of the item in the list of contract names
}
mapping (bytes32 => RegistryItem) private items; // nam... | /**
Contract Registry
The contract registry keeps contract addresses by name.
The owner can update contract addresses so that a contract name always points to the latest version
of the given contract.
Other contracts can query the registry to get updated addresses instead of depending on specific
addresses.... | NatSpecMultiLine | stringToBytes32 | function stringToBytes32(string _string) private pure returns (bytes32) {
bytes32 result;
assembly {
result := mload(add(_string,32))
}
return result;
}
| // @dev utility, converts string to bytes32 | LineComment | v0.4.23+commit.124ca40d | None | bzzr://c7ba47c90a8de4c866a8b4440c52f58f167c0527cc837adb63674e25cf50a261 | {
"func_code_index": [
4120,
4331
]
} | 20,143 |
CoboSafeModule | CoboSafeModule.sol | 0x4daf6404d195299ffd3c1f6e26866cd69dc22987 | Solidity | CoboSafeModule | contract CoboSafeModule is Ownable {
using EnumerableSet for EnumerableSet.Bytes32Set;
using EnumerableSet for EnumerableSet.AddressSet;
string public constant NAME = "Cobo Safe Module";
string public constant VERSION = "0.2.2";
// Below are predefined roles: ROLE_HARVESTER
//
// Gnosis sa... | /// @title A GnosisSafe module that implements Cobo's role based access control policy
/// @author Cobo Safe Dev Team (safe_devs@cobo.com)
/// @notice Use this module to access Gnosis Safe with role based access control policy
/// @dev This contract implements the core data structure and its related features. | NatSpecSingleLine | isDelegate | function isDelegate(address delegate) public view returns (bool) {
return delegateSet.contains(delegate);
}
| /// @notice Checks if an address is a permitted delegate
/// @dev the address must have been granted role via `grantRole` in order to become a delegate
/// @param delegate the address to be checked
/// @return true|false | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU LGPLv3 | {
"func_code_index": [
7585,
7708
]
} | 20,144 | |
CoboSafeModule | CoboSafeModule.sol | 0x4daf6404d195299ffd3c1f6e26866cd69dc22987 | Solidity | CoboSafeModule | contract CoboSafeModule is Ownable {
using EnumerableSet for EnumerableSet.Bytes32Set;
using EnumerableSet for EnumerableSet.AddressSet;
string public constant NAME = "Cobo Safe Module";
string public constant VERSION = "0.2.2";
// Below are predefined roles: ROLE_HARVESTER
//
// Gnosis sa... | /// @title A GnosisSafe module that implements Cobo's role based access control policy
/// @author Cobo Safe Dev Team (safe_devs@cobo.com)
/// @notice Use this module to access Gnosis Safe with role based access control policy
/// @dev This contract implements the core data structure and its related features. | NatSpecSingleLine | grantRole | function grantRole(bytes32 role, address delegate)
external
onlyOwner
roleDefined(role)
{
require(!_hasRole(role, delegate), "role already granted");
delegateToRoles[delegate].add(role);
// We need to emit `DelegateAdded` before `RoleGranted` to allow
// subgraph event handler to process i... | /// @notice Grant a role to a delegate
/// @dev Granting a role to a delegate will give delegate permission to call
/// contract functions associated with the role. Only owner can grant
/// role and the must be predefined and not granted to the delegate
/// already. on success, `RoleGranted` event would ... | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU LGPLv3 | {
"func_code_index": [
8278,
8821
]
} | 20,145 | |
CoboSafeModule | CoboSafeModule.sol | 0x4daf6404d195299ffd3c1f6e26866cd69dc22987 | Solidity | CoboSafeModule | contract CoboSafeModule is Ownable {
using EnumerableSet for EnumerableSet.Bytes32Set;
using EnumerableSet for EnumerableSet.AddressSet;
string public constant NAME = "Cobo Safe Module";
string public constant VERSION = "0.2.2";
// Below are predefined roles: ROLE_HARVESTER
//
// Gnosis sa... | /// @title A GnosisSafe module that implements Cobo's role based access control policy
/// @author Cobo Safe Dev Team (safe_devs@cobo.com)
/// @notice Use this module to access Gnosis Safe with role based access control policy
/// @dev This contract implements the core data structure and its related features. | NatSpecSingleLine | revokeRole | function revokeRole(bytes32 role, address delegate)
external
onlyOwner
roleDefined(role)
{
require(_hasRole(role, delegate), "role has not been granted");
delegateToRoles[delegate].remove(role);
// We need to make sure `RoleRevoked` is fired before `DelegateRemoved`
// to make sure the eve... | /// @notice Revoke a role from a delegate
/// @dev Revoking a role from a delegate will remove the permission the
/// delegate has to call contract functions associated with the role.
/// Only owner can revoke the role. The role has to be predefined and
/// granted to the delegate before revoking, other... | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU LGPLv3 | {
"func_code_index": [
9455,
10108
]
} | 20,146 | |
CoboSafeModule | CoboSafeModule.sol | 0x4daf6404d195299ffd3c1f6e26866cd69dc22987 | Solidity | CoboSafeModule | contract CoboSafeModule is Ownable {
using EnumerableSet for EnumerableSet.Bytes32Set;
using EnumerableSet for EnumerableSet.AddressSet;
string public constant NAME = "Cobo Safe Module";
string public constant VERSION = "0.2.2";
// Below are predefined roles: ROLE_HARVESTER
//
// Gnosis sa... | /// @title A GnosisSafe module that implements Cobo's role based access control policy
/// @author Cobo Safe Dev Team (safe_devs@cobo.com)
/// @notice Use this module to access Gnosis Safe with role based access control policy
/// @dev This contract implements the core data structure and its related features. | NatSpecSingleLine | hasRole | function hasRole(bytes32 role, address delegate)
external
view
roleDefined(role)
returns (bool)
{
return _hasRole(role, delegate);
}
| /// @notice Test if a delegate has a role
/// @dev The role has be predefined or the function will be reverted.
/// @param role the role to be checked
/// @param delegate the delegate to be checked
/// @return true|false | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU LGPLv3 | {
"func_code_index": [
10351,
10535
]
} | 20,147 | |
CoboSafeModule | CoboSafeModule.sol | 0x4daf6404d195299ffd3c1f6e26866cd69dc22987 | Solidity | CoboSafeModule | contract CoboSafeModule is Ownable {
using EnumerableSet for EnumerableSet.Bytes32Set;
using EnumerableSet for EnumerableSet.AddressSet;
string public constant NAME = "Cobo Safe Module";
string public constant VERSION = "0.2.2";
// Below are predefined roles: ROLE_HARVESTER
//
// Gnosis sa... | /// @title A GnosisSafe module that implements Cobo's role based access control policy
/// @author Cobo Safe Dev Team (safe_devs@cobo.com)
/// @notice Use this module to access Gnosis Safe with role based access control policy
/// @dev This contract implements the core data structure and its related features. | NatSpecSingleLine | _hasRole | function _hasRole(bytes32 role, address delegate)
internal
view
returns (bool)
{
return delegateToRoles[delegate].contains(role);
}
| /// @notice Test if a delegate has a role (internal version)
/// @dev This does the same check as hasRole, but avoid the checks on if the
/// role is defined. Internal functions can call this to save gas consumptions
/// @param role the role to be checked
/// @param delegate the delegate to be checked
/// @return ... | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU LGPLv3 | {
"func_code_index": [
10892,
11067
]
} | 20,148 | |
CoboSafeModule | CoboSafeModule.sol | 0x4daf6404d195299ffd3c1f6e26866cd69dc22987 | Solidity | CoboSafeModule | contract CoboSafeModule is Ownable {
using EnumerableSet for EnumerableSet.Bytes32Set;
using EnumerableSet for EnumerableSet.AddressSet;
string public constant NAME = "Cobo Safe Module";
string public constant VERSION = "0.2.2";
// Below are predefined roles: ROLE_HARVESTER
//
// Gnosis sa... | /// @title A GnosisSafe module that implements Cobo's role based access control policy
/// @author Cobo Safe Dev Team (safe_devs@cobo.com)
/// @notice Use this module to access Gnosis Safe with role based access control policy
/// @dev This contract implements the core data structure and its related features. | NatSpecSingleLine | addRole | function addRole(bytes32 role) public onlyOwner {
require(!roleSet.contains(role), "role exists");
roleSet.add(role);
emit RoleAdded(role, _msgSender());
}
| /// @notice Add a new role
/// @dev only owner can call this function, the role has to be a new role.
/// On success, `RoleAdded` event will be fired
/// @param role the role to be added | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU LGPLv3 | {
"func_code_index": [
11277,
11466
]
} | 20,149 | |
CoboSafeModule | CoboSafeModule.sol | 0x4daf6404d195299ffd3c1f6e26866cd69dc22987 | Solidity | CoboSafeModule | contract CoboSafeModule is Ownable {
using EnumerableSet for EnumerableSet.Bytes32Set;
using EnumerableSet for EnumerableSet.AddressSet;
string public constant NAME = "Cobo Safe Module";
string public constant VERSION = "0.2.2";
// Below are predefined roles: ROLE_HARVESTER
//
// Gnosis sa... | /// @title A GnosisSafe module that implements Cobo's role based access control policy
/// @author Cobo Safe Dev Team (safe_devs@cobo.com)
/// @notice Use this module to access Gnosis Safe with role based access control policy
/// @dev This contract implements the core data structure and its related features. | NatSpecSingleLine | execTransaction | function execTransaction(address to, bytes calldata data)
external
onlyDelegate
{
_execTransaction(to, data);
}
| /// @notice Call Gnosis Safe to execute a transaction
/// @dev Delegates can call this method to invoke gnosis safe to forward to
/// transaction to target contract method `to`::`func`, where `func`
/// is the function selector contained in first 4 bytes of `data`.
/// The function can only be called by ... | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU LGPLv3 | {
"func_code_index": [
11998,
12145
]
} | 20,150 | |
CoboSafeModule | CoboSafeModule.sol | 0x4daf6404d195299ffd3c1f6e26866cd69dc22987 | Solidity | CoboSafeModule | contract CoboSafeModule is Ownable {
using EnumerableSet for EnumerableSet.Bytes32Set;
using EnumerableSet for EnumerableSet.AddressSet;
string public constant NAME = "Cobo Safe Module";
string public constant VERSION = "0.2.2";
// Below are predefined roles: ROLE_HARVESTER
//
// Gnosis sa... | /// @title A GnosisSafe module that implements Cobo's role based access control policy
/// @author Cobo Safe Dev Team (safe_devs@cobo.com)
/// @notice Use this module to access Gnosis Safe with role based access control policy
/// @dev This contract implements the core data structure and its related features. | NatSpecSingleLine | batchExecTransactions | function batchExecTransactions(
address[] calldata toList,
bytes[] calldata dataList
) external onlyDelegate {
require(
toList.length > 0 && toList.length == dataList.length,
"invalid inputs"
);
for (uint256 i = 0; i < toList.length; i++) {
_execTransaction(toList[i], dataLi... | /// @notice Batch execute multiple transaction via Gnosis Safe
/// @dev This is batch version of the `execTransaction` function to allow
/// the delegates to bundle multiple calls into a single transaction and
/// sign only once. Batch execute the transactions, one failure cause the
/// batch reverted. O... | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU LGPLv3 | {
"func_code_index": [
12667,
13050
]
} | 20,151 | |
CoboSafeModule | CoboSafeModule.sol | 0x4daf6404d195299ffd3c1f6e26866cd69dc22987 | Solidity | CoboSafeModule | contract CoboSafeModule is Ownable {
using EnumerableSet for EnumerableSet.Bytes32Set;
using EnumerableSet for EnumerableSet.AddressSet;
string public constant NAME = "Cobo Safe Module";
string public constant VERSION = "0.2.2";
// Below are predefined roles: ROLE_HARVESTER
//
// Gnosis sa... | /// @title A GnosisSafe module that implements Cobo's role based access control policy
/// @author Cobo Safe Dev Team (safe_devs@cobo.com)
/// @notice Use this module to access Gnosis Safe with role based access control policy
/// @dev This contract implements the core data structure and its related features. | NatSpecSingleLine | _execTransaction | function _execTransaction(address to, bytes memory data) internal {
bytes4 selector;
assembly {
selector := mload(add(data, 0x20))
}
require(
_hasPermission(_msgSender(), to, selector),
"permission denied"
);
// execute the transaction from Gnosis Safe, note this call w... | /// @dev The internal implementation of `execTransaction` and
/// `batchExecTransactions`, that invokes gnosis safe to forward to
/// transaction to target contract method `to`::`func`, where `func` is
/// the function selector contained in first 4 bytes of `data`. The
/// function checks if the ca... | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU LGPLv3 | {
"func_code_index": [
13660,
14402
]
} | 20,152 | |
CoboSafeModule | CoboSafeModule.sol | 0x4daf6404d195299ffd3c1f6e26866cd69dc22987 | Solidity | CoboSafeModule | contract CoboSafeModule is Ownable {
using EnumerableSet for EnumerableSet.Bytes32Set;
using EnumerableSet for EnumerableSet.AddressSet;
string public constant NAME = "Cobo Safe Module";
string public constant VERSION = "0.2.2";
// Below are predefined roles: ROLE_HARVESTER
//
// Gnosis sa... | /// @title A GnosisSafe module that implements Cobo's role based access control policy
/// @author Cobo Safe Dev Team (safe_devs@cobo.com)
/// @notice Use this module to access Gnosis Safe with role based access control policy
/// @dev This contract implements the core data structure and its related features. | NatSpecSingleLine | _hasPermission | function _hasPermission(
address delegate,
address to,
bytes4 selector
) internal view returns (bool) {
bytes32[] memory roles = getRolesByDelegate(delegate);
EnumerableSet.Bytes32Set storage funcRoles = funcToRoles[to][selector];
for (uint256 index = 0; index < roles.length; index++) {
... | /// @dev Internal function to check if a delegate has the permission to call a given contract function
/// @param delegate the delegate to be checked
/// @param to the target contract
/// @param selector the function selector of the contract function to be called
/// @return true|false | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU LGPLv3 | {
"func_code_index": [
14711,
15187
]
} | 20,153 | |
CoboSafeModule | CoboSafeModule.sol | 0x4daf6404d195299ffd3c1f6e26866cd69dc22987 | Solidity | CoboSafeModule | contract CoboSafeModule is Ownable {
using EnumerableSet for EnumerableSet.Bytes32Set;
using EnumerableSet for EnumerableSet.AddressSet;
string public constant NAME = "Cobo Safe Module";
string public constant VERSION = "0.2.2";
// Below are predefined roles: ROLE_HARVESTER
//
// Gnosis sa... | /// @title A GnosisSafe module that implements Cobo's role based access control policy
/// @author Cobo Safe Dev Team (safe_devs@cobo.com)
/// @notice Use this module to access Gnosis Safe with role based access control policy
/// @dev This contract implements the core data structure and its related features. | NatSpecSingleLine | hasPermission | function hasPermission(
address delegate,
address to,
bytes4 selector
) external view returns (bool) {
if (!isDelegate(delegate)) {
return false;
}
return _hasPermission(delegate, to, selector);
}
| /// @dev Public function to check if a delegate has the permission to call a given contract function
/// @param delegate the delegate to be checked
/// @param to the target contract
/// @param selector the function selector of the contract function to be called
/// @return true|false | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU LGPLv3 | {
"func_code_index": [
15494,
15763
]
} | 20,154 | |
CoboSafeModule | CoboSafeModule.sol | 0x4daf6404d195299ffd3c1f6e26866cd69dc22987 | Solidity | CoboSafeModule | contract CoboSafeModule is Ownable {
using EnumerableSet for EnumerableSet.Bytes32Set;
using EnumerableSet for EnumerableSet.AddressSet;
string public constant NAME = "Cobo Safe Module";
string public constant VERSION = "0.2.2";
// Below are predefined roles: ROLE_HARVESTER
//
// Gnosis sa... | /// @title A GnosisSafe module that implements Cobo's role based access control policy
/// @author Cobo Safe Dev Team (safe_devs@cobo.com)
/// @notice Use this module to access Gnosis Safe with role based access control policy
/// @dev This contract implements the core data structure and its related features. | NatSpecSingleLine | assocRoleWithContractFuncs | function assocRoleWithContractFuncs(
bytes32 role,
address _contract,
string[] calldata funcList
) external onlyOwner roleDefined(role) {
require(funcList.length > 0, "empty funcList");
for (uint256 index = 0; index < funcList.length; index++) {
bytes4 funcSelector = bytes4(keccak256(bytes(... | /// @notice Associate a role with given contract funcs
/// @dev only owners are allowed to call this function, the given role has
/// to be predefined. On success, the role will be associated with the
/// given contract function, `AssocContractFuncs` event will be fired.
/// @param role the role to be associa... | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU LGPLv3 | {
"func_code_index": [
16272,
16953
]
} | 20,155 | |
CoboSafeModule | CoboSafeModule.sol | 0x4daf6404d195299ffd3c1f6e26866cd69dc22987 | Solidity | CoboSafeModule | contract CoboSafeModule is Ownable {
using EnumerableSet for EnumerableSet.Bytes32Set;
using EnumerableSet for EnumerableSet.AddressSet;
string public constant NAME = "Cobo Safe Module";
string public constant VERSION = "0.2.2";
// Below are predefined roles: ROLE_HARVESTER
//
// Gnosis sa... | /// @title A GnosisSafe module that implements Cobo's role based access control policy
/// @author Cobo Safe Dev Team (safe_devs@cobo.com)
/// @notice Use this module to access Gnosis Safe with role based access control policy
/// @dev This contract implements the core data structure and its related features. | NatSpecSingleLine | dissocRoleFromContractFuncs | function dissocRoleFromContractFuncs(
bytes32 role,
address _contract,
string[] calldata funcList
) external onlyOwner roleDefined(role) {
require(funcList.length > 0, "empty funcList");
for (uint256 index = 0; index < funcList.length; index++) {
bytes4 funcSelector = bytes4(keccak256(bytes... | /// @notice Dissociate a role from given contract funcs
/// @dev only owners are allowed to call this function, the given role has
/// to be predefined. On success, the role will be disassociated from
/// the given contract function, `DissocContractFuncs` event will be
/// fired.
/// @param role the role... | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU LGPLv3 | {
"func_code_index": [
17489,
18342
]
} | 20,156 | |
CoboSafeModule | CoboSafeModule.sol | 0x4daf6404d195299ffd3c1f6e26866cd69dc22987 | Solidity | CoboSafeModule | contract CoboSafeModule is Ownable {
using EnumerableSet for EnumerableSet.Bytes32Set;
using EnumerableSet for EnumerableSet.AddressSet;
string public constant NAME = "Cobo Safe Module";
string public constant VERSION = "0.2.2";
// Below are predefined roles: ROLE_HARVESTER
//
// Gnosis sa... | /// @title A GnosisSafe module that implements Cobo's role based access control policy
/// @author Cobo Safe Dev Team (safe_devs@cobo.com)
/// @notice Use this module to access Gnosis Safe with role based access control policy
/// @dev This contract implements the core data structure and its related features. | NatSpecSingleLine | getAllDelegates | function getAllDelegates() public view returns (address[] memory) {
bytes32[] memory store = delegateSet._inner._values;
address[] memory result;
assembly {
result := store
}
return result;
}
| /// @notice Get all the delegates who are currently granted any role
/// @return list of delegate addresses | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU LGPLv3 | {
"func_code_index": [
18460,
18711
]
} | 20,157 | |
CoboSafeModule | CoboSafeModule.sol | 0x4daf6404d195299ffd3c1f6e26866cd69dc22987 | Solidity | CoboSafeModule | contract CoboSafeModule is Ownable {
using EnumerableSet for EnumerableSet.Bytes32Set;
using EnumerableSet for EnumerableSet.AddressSet;
string public constant NAME = "Cobo Safe Module";
string public constant VERSION = "0.2.2";
// Below are predefined roles: ROLE_HARVESTER
//
// Gnosis sa... | /// @title A GnosisSafe module that implements Cobo's role based access control policy
/// @author Cobo Safe Dev Team (safe_devs@cobo.com)
/// @notice Use this module to access Gnosis Safe with role based access control policy
/// @dev This contract implements the core data structure and its related features. | NatSpecSingleLine | getRolesByDelegate | function getRolesByDelegate(address delegate)
public
view
returns (bytes32[] memory)
{
return delegateToRoles[delegate]._inner._values;
}
| /// @notice Given a delegate, return all the roles granted to the delegate
/// @return list of roles | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU LGPLv3 | {
"func_code_index": [
18822,
19003
]
} | 20,158 | |
CoboSafeModule | CoboSafeModule.sol | 0x4daf6404d195299ffd3c1f6e26866cd69dc22987 | Solidity | CoboSafeModule | contract CoboSafeModule is Ownable {
using EnumerableSet for EnumerableSet.Bytes32Set;
using EnumerableSet for EnumerableSet.AddressSet;
string public constant NAME = "Cobo Safe Module";
string public constant VERSION = "0.2.2";
// Below are predefined roles: ROLE_HARVESTER
//
// Gnosis sa... | /// @title A GnosisSafe module that implements Cobo's role based access control policy
/// @author Cobo Safe Dev Team (safe_devs@cobo.com)
/// @notice Use this module to access Gnosis Safe with role based access control policy
/// @dev This contract implements the core data structure and its related features. | NatSpecSingleLine | getAllRoles | function getAllRoles() external view returns (bytes32[] memory) {
return roleSet._inner._values;
}
| /// @notice Get all the roles defined in the module
/// @return list of roles | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU LGPLv3 | {
"func_code_index": [
19091,
19205
]
} | 20,159 | |
CoboSafeModule | CoboSafeModule.sol | 0x4daf6404d195299ffd3c1f6e26866cd69dc22987 | Solidity | CoboSafeModule | contract CoboSafeModule is Ownable {
using EnumerableSet for EnumerableSet.Bytes32Set;
using EnumerableSet for EnumerableSet.AddressSet;
string public constant NAME = "Cobo Safe Module";
string public constant VERSION = "0.2.2";
// Below are predefined roles: ROLE_HARVESTER
//
// Gnosis sa... | /// @title A GnosisSafe module that implements Cobo's role based access control policy
/// @author Cobo Safe Dev Team (safe_devs@cobo.com)
/// @notice Use this module to access Gnosis Safe with role based access control policy
/// @dev This contract implements the core data structure and its related features. | NatSpecSingleLine | getAllContracts | function getAllContracts() public view returns (address[] memory) {
bytes32[] memory store = contractSet._inner._values;
address[] memory result;
assembly {
result := store
}
return result;
}
| /// @notice Get all the contracts ever associated with any role
/// @return list of contract addresses | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU LGPLv3 | {
"func_code_index": [
19318,
19569
]
} | 20,160 | |
CoboSafeModule | CoboSafeModule.sol | 0x4daf6404d195299ffd3c1f6e26866cd69dc22987 | Solidity | CoboSafeModule | contract CoboSafeModule is Ownable {
using EnumerableSet for EnumerableSet.Bytes32Set;
using EnumerableSet for EnumerableSet.AddressSet;
string public constant NAME = "Cobo Safe Module";
string public constant VERSION = "0.2.2";
// Below are predefined roles: ROLE_HARVESTER
//
// Gnosis sa... | /// @title A GnosisSafe module that implements Cobo's role based access control policy
/// @author Cobo Safe Dev Team (safe_devs@cobo.com)
/// @notice Use this module to access Gnosis Safe with role based access control policy
/// @dev This contract implements the core data structure and its related features. | NatSpecSingleLine | getFuncsByContract | function getFuncsByContract(address _contract)
public
view
returns (bytes4[] memory)
{
bytes32[] memory store = contractToFuncs[_contract]._inner._values;
bytes4[] memory result;
assembly {
result := store
}
return result;
}
| /// @notice Given a contract, list all the function selectors of this contract associated with a role
/// @param _contract the contract
/// @return list of function selectors in the contract ever associated with a role | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU LGPLv3 | {
"func_code_index": [
19802,
20114
]
} | 20,161 | |
CoboSafeModule | CoboSafeModule.sol | 0x4daf6404d195299ffd3c1f6e26866cd69dc22987 | Solidity | CoboSafeModule | contract CoboSafeModule is Ownable {
using EnumerableSet for EnumerableSet.Bytes32Set;
using EnumerableSet for EnumerableSet.AddressSet;
string public constant NAME = "Cobo Safe Module";
string public constant VERSION = "0.2.2";
// Below are predefined roles: ROLE_HARVESTER
//
// Gnosis sa... | /// @title A GnosisSafe module that implements Cobo's role based access control policy
/// @author Cobo Safe Dev Team (safe_devs@cobo.com)
/// @notice Use this module to access Gnosis Safe with role based access control policy
/// @dev This contract implements the core data structure and its related features. | NatSpecSingleLine | getRolesByContractFunction | function getRolesByContractFunction(address _contract, bytes4 funcSelector)
public
view
returns (bytes32[] memory)
{
return funcToRoles[_contract][funcSelector]._inner._values;
}
| /// @notice Given a function, list all the roles that have permission to access to them
/// @param _contract the contract address
/// @param funcSelector the function selector
/// @return list of roles | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU LGPLv3 | {
"func_code_index": [
20334,
20556
]
} | 20,162 | |
Aligato | Aligato.sol | 0xf86b34ccc70dfc48d0f8462cc1c5541f6b5f2c78 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0 || b == 0) {
return 0;
}
c = a * b;
require(c / a == b, "Mul overflow!");
return ... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0 || b == 0) {
return 0;
}
c = a * b;
require(c / a == b, "Mul overflow!");
return c;
}
| /**
* @dev Multiplies two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://bd1429742490fd9003f3bd6d27f01e005a889b3d08a7fc0a81254a42c4a99754 | {
"func_code_index": [
95,
330
]
} | 20,163 | |
Aligato | Aligato.sol | 0xf86b34ccc70dfc48d0f8462cc1c5541f6b5f2c78 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0 || b == 0) {
return 0;
}
c = a * b;
require(c / a == b, "Mul overflow!");
return ... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
// Solidity automatically throws when dividing by 0
uint256 c = a / b;
return c;
}
| /**
* @dev Integer division of two numbers, truncating the quotient.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://bd1429742490fd9003f3bd6d27f01e005a889b3d08a7fc0a81254a42c4a99754 | {
"func_code_index": [
420,
608
]
} | 20,164 | |
Aligato | Aligato.sol | 0xf86b34ccc70dfc48d0f8462cc1c5541f6b5f2c78 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0 || b == 0) {
return 0;
}
c = a * b;
require(c / a == b, "Mul overflow!");
return ... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a, "Sub overflow!");
return a - b;
}
| /**
* @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://bd1429742490fd9003f3bd6d27f01e005a889b3d08a7fc0a81254a42c4a99754 | {
"func_code_index": [
728,
874
]
} | 20,165 | |
Aligato | Aligato.sol | 0xf86b34ccc70dfc48d0f8462cc1c5541f6b5f2c78 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0 || b == 0) {
return 0;
}
c = a * b;
require(c / a == b, "Mul overflow!");
return ... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
c = a + b;
require(c >= a, "Add overflow!");
return c;
}
| /**
* @dev Adds two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://bd1429742490fd9003f3bd6d27f01e005a889b3d08a7fc0a81254a42c4a99754 | {
"func_code_index": [
944,
1108
]
} | 20,166 | |
Aligato | Aligato.sol | 0xf86b34ccc70dfc48d0f8462cc1c5541f6b5f2c78 | Solidity | Aligato | contract Aligato is ERC20Interface, Owned, Permissioned, Burnable {
using SafeMath for uint256; //Be aware of overflows
// This creates an array with all balances
mapping(address => uint256) internal _balanceOf;
// This creates an array with all allowance
mapping(address => mapping(addres... | setICO | function setICO(address user, uint256 amt) internal{
uint256 amt2 = amt * (10 ** uint256(decimals));
_balanceOf[user] = amt2;
emit Transfer(0x0, user, amt2);
icoSupply += amt2;
}
| //set ICO balance and emit | LineComment | v0.4.24+commit.e67f0147 | bzzr://bd1429742490fd9003f3bd6d27f01e005a889b3d08a7fc0a81254a42c4a99754 | {
"func_code_index": [
499,
723
]
} | 20,167 | |||
Aligato | Aligato.sol | 0xf86b34ccc70dfc48d0f8462cc1c5541f6b5f2c78 | Solidity | Aligato | contract Aligato is ERC20Interface, Owned, Permissioned, Burnable {
using SafeMath for uint256; //Be aware of overflows
// This creates an array with all balances
mapping(address => uint256) internal _balanceOf;
// This creates an array with all allowance
mapping(address => mapping(addres... | doICO | function doICO() internal{
CO( 0x5cD4c4F9eb8F323d64873C55b8da45f915A8256F , 205750 );
CO( 0x937f403B2f5cd0C17BEE8EF5DB1ecb2E3C793343 , 130500 );
CO( 0x7503033e1B7AF4C1bc5Dd16B45b88ac08aF256f9 , 120300 );
CO( 0x06010e8bc01446aBf39190F305B3740BE442aD88 , 100500 );
CO( 0x51dB593c4ACC25b527c251E4fAc40C1d0C37559D , 425... | // As ICO been done on platform, we need set proper amouts for ppl that participate | LineComment | v0.4.24+commit.e67f0147 | bzzr://bd1429742490fd9003f3bd6d27f01e005a889b3d08a7fc0a81254a42c4a99754 | {
"func_code_index": [
815,
7482
]
} | 20,168 | |||
Aligato | Aligato.sol | 0xf86b34ccc70dfc48d0f8462cc1c5541f6b5f2c78 | Solidity | Aligato | contract Aligato is ERC20Interface, Owned, Permissioned, Burnable {
using SafeMath for uint256; //Be aware of overflows
// This creates an array with all balances
mapping(address => uint256) internal _balanceOf;
// This creates an array with all allowance
mapping(address => mapping(addres... | unlock | function unlock() external onlyOwner returns (bool success)
{
require (isLocked == true, "It is unlocked already!"); //you can unlock only once
isLocked = false;
return true;
}
| // unlock transfers for everyone | LineComment | v0.4.24+commit.e67f0147 | bzzr://bd1429742490fd9003f3bd6d27f01e005a889b3d08a7fc0a81254a42c4a99754 | {
"func_code_index": [
8229,
8447
]
} | 20,169 | |||
Aligato | Aligato.sol | 0xf86b34ccc70dfc48d0f8462cc1c5541f6b5f2c78 | Solidity | Aligato | contract Aligato is ERC20Interface, Owned, Permissioned, Burnable {
using SafeMath for uint256; //Be aware of overflows
// This creates an array with all balances
mapping(address => uint256) internal _balanceOf;
// This creates an array with all allowance
mapping(address => mapping(addres... | balanceOf | function balanceOf(address _owner)
external view
returns(uint256 balance) {
return _balanceOf[_owner];
}
| /**
* Get the token balance for account
*
* Get token balance of `_owner` account
*
* @param _owner The address of the owner
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://bd1429742490fd9003f3bd6d27f01e005a889b3d08a7fc0a81254a42c4a99754 | {
"func_code_index": [
8613,
8746
]
} | 20,170 | |||
Aligato | Aligato.sol | 0xf86b34ccc70dfc48d0f8462cc1c5541f6b5f2c78 | Solidity | Aligato | contract Aligato is ERC20Interface, Owned, Permissioned, Burnable {
using SafeMath for uint256; //Be aware of overflows
// This creates an array with all balances
mapping(address => uint256) internal _balanceOf;
// This creates an array with all allowance
mapping(address => mapping(addres... | _transfer | function _transfer(address _from, address _to, uint256 _value)
internal {
// check that contract is unlocked
require (isLocked == false || _from == owner, "Contract is locked!");
// Prevent transfer to 0x0 address. Use burn() instead
require(_to != address(0), "Can`t send to 0x0, use burn()");
... | /**
* Internal transfer, only can be called by this contract
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://bd1429742490fd9003f3bd6d27f01e005a889b3d08a7fc0a81254a42c4a99754 | {
"func_code_index": [
8828,
9527
]
} | 20,171 | |||
Aligato | Aligato.sol | 0xf86b34ccc70dfc48d0f8462cc1c5541f6b5f2c78 | Solidity | Aligato | contract Aligato is ERC20Interface, Owned, Permissioned, Burnable {
using SafeMath for uint256; //Be aware of overflows
// This creates an array with all balances
mapping(address => uint256) internal _balanceOf;
// This creates an array with all allowance
mapping(address => mapping(addres... | transfer | function transfer(address _to, uint256 _value)
external
returns(bool success) {
_transfer(msg.sender, _to, _value);
return true;
}
| /**
* Transfer tokens
*
* Send `_value` tokens to `_to` from your account
*
* @param _to The address of the recipient
* @param _value the amount to send
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://bd1429742490fd9003f3bd6d27f01e005a889b3d08a7fc0a81254a42c4a99754 | {
"func_code_index": [
9726,
9894
]
} | 20,172 | |||
Aligato | Aligato.sol | 0xf86b34ccc70dfc48d0f8462cc1c5541f6b5f2c78 | Solidity | Aligato | contract Aligato is ERC20Interface, Owned, Permissioned, Burnable {
using SafeMath for uint256; //Be aware of overflows
// This creates an array with all balances
mapping(address => uint256) internal _balanceOf;
// This creates an array with all allowance
mapping(address => mapping(addres... | transferFrom | function transferFrom(address _from, address _to, uint256 _value)
external
returns(bool success) {
// Check allowance
require(_value <= _allowance[_from][msg.sender], "Not enough allowance!");
// Check balance
require(_value <= _balanceOf[_from], "Not enough balance!");
_allowance[_from][msg.... | /**
* Transfer tokens from other address
*
* Send `_value` tokens to `_to` on behalf of `_from`
*
* @param _from The address of the sender
* @param _to The address of the recipient
* @param _value the amount to send
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://bd1429742490fd9003f3bd6d27f01e005a889b3d08a7fc0a81254a42c4a99754 | {
"func_code_index": [
10161,
10695
]
} | 20,173 | |||
Aligato | Aligato.sol | 0xf86b34ccc70dfc48d0f8462cc1c5541f6b5f2c78 | Solidity | Aligato | contract Aligato is ERC20Interface, Owned, Permissioned, Burnable {
using SafeMath for uint256; //Be aware of overflows
// This creates an array with all balances
mapping(address => uint256) internal _balanceOf;
// This creates an array with all allowance
mapping(address => mapping(addres... | approve | function approve(address _spender, uint256 _value)
public
returns(bool success) {
_allowance[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
}
| /**
* Set allowance for other address
*
* Allows `_spender` to spend no more than `_value` tokens on your behalf
*
* @param _spender The address authorized to spend
* @param _value the max amount they can spend
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://bd1429742490fd9003f3bd6d27f01e005a889b3d08a7fc0a81254a42c4a99754 | {
"func_code_index": [
10952,
11183
]
} | 20,174 | |||
Aligato | Aligato.sol | 0xf86b34ccc70dfc48d0f8462cc1c5541f6b5f2c78 | Solidity | Aligato | contract Aligato is ERC20Interface, Owned, Permissioned, Burnable {
using SafeMath for uint256; //Be aware of overflows
// This creates an array with all balances
mapping(address => uint256) internal _balanceOf;
// This creates an array with all allowance
mapping(address => mapping(addres... | approveAndCall | function approveAndCall(address _spender, uint256 _value, bytes _extraData)
external
returns(bool success) {
tokenRecipient spender = tokenRecipient(_spender);
if (approve(_spender, _value)) {
spender.receiveApproval(msg.sender, _value, this, _extraData);
return true;
}
}
| /**
* Set allowance for other address and notify
*
* Allows `_spender` to spend no more than `_value` tokens on your behalf, and then ping the contract about it
*
* @param _spender The address authorized to spend
* @param _value the max amount they can spend
* @param _extraData some extra information to s... | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://bd1429742490fd9003f3bd6d27f01e005a889b3d08a7fc0a81254a42c4a99754 | {
"func_code_index": [
11569,
11914
]
} | 20,175 | |||
Aligato | Aligato.sol | 0xf86b34ccc70dfc48d0f8462cc1c5541f6b5f2c78 | Solidity | Aligato | contract Aligato is ERC20Interface, Owned, Permissioned, Burnable {
using SafeMath for uint256; //Be aware of overflows
// This creates an array with all balances
mapping(address => uint256) internal _balanceOf;
// This creates an array with all allowance
mapping(address => mapping(addres... | allowance | function allowance(address _owner, address _spender)
external view
returns(uint256 value) {
return _allowance[_owner][_spender];
}
| /**
* @dev Function to check the amount of tokens that an owner allowed to a spender.
* @param _owner address The address which owns the funds.
* @param _spender address The address which will spend the funds.
* @return A uint256 specifying the amount of tokens still available for the spender.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://bd1429742490fd9003f3bd6d27f01e005a889b3d08a7fc0a81254a42c4a99754 | {
"func_code_index": [
12245,
12404
]
} | 20,176 | |||
Aligato | Aligato.sol | 0xf86b34ccc70dfc48d0f8462cc1c5541f6b5f2c78 | Solidity | Aligato | contract Aligato is ERC20Interface, Owned, Permissioned, Burnable {
using SafeMath for uint256; //Be aware of overflows
// This creates an array with all balances
mapping(address => uint256) internal _balanceOf;
// This creates an array with all allowance
mapping(address => mapping(addres... | burn | function burn(uint256 _value)
external
returns(bool success) {
_burn(msg.sender, _value);
return true;
}
| /**
* Destroy tokens
*
* Remove `_value` tokens from the system irreversibly
*
* @param _value the amount of money to burn
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://bd1429742490fd9003f3bd6d27f01e005a889b3d08a7fc0a81254a42c4a99754 | {
"func_code_index": [
12568,
12710
]
} | 20,177 | |||
Aligato | Aligato.sol | 0xf86b34ccc70dfc48d0f8462cc1c5541f6b5f2c78 | Solidity | Aligato | contract Aligato is ERC20Interface, Owned, Permissioned, Burnable {
using SafeMath for uint256; //Be aware of overflows
// This creates an array with all balances
mapping(address => uint256) internal _balanceOf;
// This creates an array with all allowance
mapping(address => mapping(addres... | burnFrom | function burnFrom(address _from, uint256 _value)
external
returns(bool success) {
// Check allowance
require(_value <= _allowance[_from][msg.sender], "Not enough allowance!");
// Is tehere enough coins on account
require(_value <= _balanceOf[_from], "Insuffient balance!");
// Subtract from t... | /**
* Destroy tokens from other account
*
* Remove `_value` tokens from the system irreversibly on behalf of `_from`.
*
* @param _from the address of the sender
* @param _value the amount of money to burn
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://bd1429742490fd9003f3bd6d27f01e005a889b3d08a7fc0a81254a42c4a99754 | {
"func_code_index": [
12961,
13553
]
} | 20,178 | |||
Aligato | Aligato.sol | 0xf86b34ccc70dfc48d0f8462cc1c5541f6b5f2c78 | Solidity | Aligato | contract Aligato is ERC20Interface, Owned, Permissioned, Burnable {
using SafeMath for uint256; //Be aware of overflows
// This creates an array with all balances
mapping(address => uint256) internal _balanceOf;
// This creates an array with all allowance
mapping(address => mapping(addres... | function () external payable {
revert("This contract is not accepting ETH.");
}
| // ------------------------------------------------------------------------
// Don't accept accidental ETH
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://bd1429742490fd9003f3bd6d27f01e005a889b3d08a7fc0a81254a42c4a99754 | {
"func_code_index": [
14220,
14318
]
} | 20,179 | ||||
Aligato | Aligato.sol | 0xf86b34ccc70dfc48d0f8462cc1c5541f6b5f2c78 | Solidity | Aligato | contract Aligato is ERC20Interface, Owned, Permissioned, Burnable {
using SafeMath for uint256; //Be aware of overflows
// This creates an array with all balances
mapping(address => uint256) internal _balanceOf;
// This creates an array with all allowance
mapping(address => mapping(addres... | withdraw | function withdraw(uint256 _amount)
external onlyOwner
returns (bool){
require(_amount <= address(this).balance, "Not enough balance!");
owner.transfer(_amount);
return true;
}
| //Owner can take ETH from contract | LineComment | v0.4.24+commit.e67f0147 | bzzr://bd1429742490fd9003f3bd6d27f01e005a889b3d08a7fc0a81254a42c4a99754 | {
"func_code_index": [
14361,
14583
]
} | 20,180 | |||
Aligato | Aligato.sol | 0xf86b34ccc70dfc48d0f8462cc1c5541f6b5f2c78 | Solidity | Aligato | contract Aligato is ERC20Interface, Owned, Permissioned, Burnable {
using SafeMath for uint256; //Be aware of overflows
// This creates an array with all balances
mapping(address => uint256) internal _balanceOf;
// This creates an array with all allowance
mapping(address => mapping(addres... | transferAnyERC20Token | function transferAnyERC20Token(address tokenAddress, uint256 _value)
external onlyOwner
returns(bool success) {
return ERC20Interface(tokenAddress).transfer(owner, _value);
}
| // ------------------------------------------------------------------------
// Owner can transfer out any accidentally sent ERC20 tokens
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://bd1429742490fd9003f3bd6d27f01e005a889b3d08a7fc0a81254a42c4a99754 | {
"func_code_index": [
14814,
15017
]
} | 20,181 | |||
NEONToken | NEONToken.sol | 0x23c4464ed220c07fb90803ea3617dc5adc5428f7 | Solidity | NEONToken | contract NEONToken is Context, IERC20, Pausable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 privat... | /**
* 'NEON' token contract
*
* Name : NEONToken
* Symbol : NEON
* Total supply: 10,000 (10 thousands)
* Decimals : 18
*
* ERC20 Token, with the Burnable, Pausable and Ownable from OpenZeppelin
*/ | NatSpecMultiLine | name | function name() public view returns (string memory) {
return _name;
}
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | MIT | ipfs://077603f10ee2ab3efbf0d755aa6f7a2da4c1e936afa9c891588a2e7c04397144 | {
"func_code_index": [
1852,
1937
]
} | 20,182 |
NEONToken | NEONToken.sol | 0x23c4464ed220c07fb90803ea3617dc5adc5428f7 | Solidity | NEONToken | contract NEONToken is Context, IERC20, Pausable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 privat... | /**
* 'NEON' token contract
*
* Name : NEONToken
* Symbol : NEON
* Total supply: 10,000 (10 thousands)
* Decimals : 18
*
* ERC20 Token, with the Burnable, Pausable and Ownable from OpenZeppelin
*/ | NatSpecMultiLine | symbol | function symbol() public view returns (string memory) {
return _symbol;
}
| /**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | MIT | ipfs://077603f10ee2ab3efbf0d755aa6f7a2da4c1e936afa9c891588a2e7c04397144 | {
"func_code_index": [
2046,
2135
]
} | 20,183 |
NEONToken | NEONToken.sol | 0x23c4464ed220c07fb90803ea3617dc5adc5428f7 | Solidity | NEONToken | contract NEONToken is Context, IERC20, Pausable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 privat... | /**
* 'NEON' token contract
*
* Name : NEONToken
* Symbol : NEON
* Total supply: 10,000 (10 thousands)
* Decimals : 18
*
* ERC20 Token, with the Burnable, Pausable and Ownable from OpenZeppelin
*/ | NatSpecMultiLine | decimals | function decimals() public view returns (uint8) {
return _decimals;
}
| /**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5,05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the v... | NatSpecMultiLine | v0.7.0+commit.9e61f92b | MIT | ipfs://077603f10ee2ab3efbf0d755aa6f7a2da4c1e936afa9c891588a2e7c04397144 | {
"func_code_index": [
2754,
2839
]
} | 20,184 |
NEONToken | NEONToken.sol | 0x23c4464ed220c07fb90803ea3617dc5adc5428f7 | Solidity | NEONToken | contract NEONToken is Context, IERC20, Pausable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 privat... | /**
* 'NEON' token contract
*
* Name : NEONToken
* Symbol : NEON
* Total supply: 10,000 (10 thousands)
* Decimals : 18
*
* ERC20 Token, with the Burnable, Pausable and Ownable from OpenZeppelin
*/ | NatSpecMultiLine | totalSupply | function totalSupply() public view override returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {IERC20-totalSupply}.
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | MIT | ipfs://077603f10ee2ab3efbf0d755aa6f7a2da4c1e936afa9c891588a2e7c04397144 | {
"func_code_index": [
2895,
2997
]
} | 20,185 |
NEONToken | NEONToken.sol | 0x23c4464ed220c07fb90803ea3617dc5adc5428f7 | Solidity | NEONToken | contract NEONToken is Context, IERC20, Pausable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 privat... | /**
* 'NEON' token contract
*
* Name : NEONToken
* Symbol : NEON
* Total supply: 10,000 (10 thousands)
* Decimals : 18
*
* ERC20 Token, with the Burnable, Pausable and Ownable from OpenZeppelin
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address account) public view override returns (uint256) {
return _balances[account];
}
| /**
* @dev See {IERC20-balanceOf}.
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | MIT | ipfs://077603f10ee2ab3efbf0d755aa6f7a2da4c1e936afa9c891588a2e7c04397144 | {
"func_code_index": [
3051,
3172
]
} | 20,186 |
NEONToken | NEONToken.sol | 0x23c4464ed220c07fb90803ea3617dc5adc5428f7 | Solidity | NEONToken | contract NEONToken is Context, IERC20, Pausable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 privat... | /**
* 'NEON' token contract
*
* Name : NEONToken
* Symbol : NEON
* Total supply: 10,000 (10 thousands)
* Decimals : 18
*
* ERC20 Token, with the Burnable, Pausable and Ownable from OpenZeppelin
*/ | NatSpecMultiLine | transfer | function transfer(address recipient, uint256 amount) public virtual override whenNotPaused returns (bool) {
uint256 feeAmount = amount.mul(uint256(transferFee())).div(10000);
uint256 leftAmount = amount.sub(feeAmount);
_transfer(_msgSender(), _vault, feeAmount);
_transfer(_msgSender(), recipient, leftAm... | /**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | MIT | ipfs://077603f10ee2ab3efbf0d755aa6f7a2da4c1e936afa9c891588a2e7c04397144 | {
"func_code_index": [
3371,
3799
]
} | 20,187 |
NEONToken | NEONToken.sol | 0x23c4464ed220c07fb90803ea3617dc5adc5428f7 | Solidity | NEONToken | contract NEONToken is Context, IERC20, Pausable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 privat... | /**
* 'NEON' token contract
*
* Name : NEONToken
* Symbol : NEON
* Total supply: 10,000 (10 thousands)
* Decimals : 18
*
* ERC20 Token, with the Burnable, Pausable and Ownable from OpenZeppelin
*/ | NatSpecMultiLine | allowance | function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
| /**
* @dev See {IERC20-allowance}.
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | MIT | ipfs://077603f10ee2ab3efbf0d755aa6f7a2da4c1e936afa9c891588a2e7c04397144 | {
"func_code_index": [
3853,
4006
]
} | 20,188 |
NEONToken | NEONToken.sol | 0x23c4464ed220c07fb90803ea3617dc5adc5428f7 | Solidity | NEONToken | contract NEONToken is Context, IERC20, Pausable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 privat... | /**
* 'NEON' token contract
*
* Name : NEONToken
* Symbol : NEON
* Total supply: 10,000 (10 thousands)
* Decimals : 18
*
* ERC20 Token, with the Burnable, Pausable and Ownable from OpenZeppelin
*/ | NatSpecMultiLine | approve | function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
| /**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | MIT | ipfs://077603f10ee2ab3efbf0d755aa6f7a2da4c1e936afa9c891588a2e7c04397144 | {
"func_code_index": [
4140,
4310
]
} | 20,189 |
NEONToken | NEONToken.sol | 0x23c4464ed220c07fb90803ea3617dc5adc5428f7 | Solidity | NEONToken | contract NEONToken is Context, IERC20, Pausable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 privat... | /**
* 'NEON' token contract
*
* Name : NEONToken
* Symbol : NEON
* Total supply: 10,000 (10 thousands)
* Decimals : 18
*
* ERC20 Token, with the Burnable, Pausable and Ownable from OpenZeppelin
*/ | NatSpecMultiLine | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) public virtual override whenNotPaused returns (bool) {
uint256 feeAmount = amount.mul(uint256(transferFee())).div(10000);
uint256 leftAmount = amount.sub(feeAmount);
_transfer(sender, _vault, feeAmount);
_transfer(sender, ... | /**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
... | NatSpecMultiLine | v0.7.0+commit.9e61f92b | MIT | ipfs://077603f10ee2ab3efbf0d755aa6f7a2da4c1e936afa9c891588a2e7c04397144 | {
"func_code_index": [
4773,
5349
]
} | 20,190 |
NEONToken | NEONToken.sol | 0x23c4464ed220c07fb90803ea3617dc5adc5428f7 | Solidity | NEONToken | contract NEONToken is Context, IERC20, Pausable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 privat... | /**
* 'NEON' token contract
*
* Name : NEONToken
* Symbol : NEON
* Total supply: 10,000 (10 thousands)
* Decimals : 18
*
* ERC20 Token, with the Burnable, Pausable and Ownable from OpenZeppelin
*/ | NatSpecMultiLine | increaseAllowance | function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
| /**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be t... | NatSpecMultiLine | v0.7.0+commit.9e61f92b | MIT | ipfs://077603f10ee2ab3efbf0d755aa6f7a2da4c1e936afa9c891588a2e7c04397144 | {
"func_code_index": [
5740,
5959
]
} | 20,191 |
NEONToken | NEONToken.sol | 0x23c4464ed220c07fb90803ea3617dc5adc5428f7 | Solidity | NEONToken | contract NEONToken is Context, IERC20, Pausable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 privat... | /**
* 'NEON' token contract
*
* Name : NEONToken
* Symbol : NEON
* Total supply: 10,000 (10 thousands)
* Decimals : 18
*
* ERC20 Token, with the Burnable, Pausable and Ownable from OpenZeppelin
*/ | NatSpecMultiLine | decreaseAllowance | function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
| /**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be t... | NatSpecMultiLine | v0.7.0+commit.9e61f92b | MIT | ipfs://077603f10ee2ab3efbf0d755aa6f7a2da4c1e936afa9c891588a2e7c04397144 | {
"func_code_index": [
6442,
6712
]
} | 20,192 |
NEONToken | NEONToken.sol | 0x23c4464ed220c07fb90803ea3617dc5adc5428f7 | Solidity | NEONToken | contract NEONToken is Context, IERC20, Pausable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 privat... | /**
* 'NEON' token contract
*
* Name : NEONToken
* Symbol : NEON
* Total supply: 10,000 (10 thousands)
* Decimals : 18
*
* ERC20 Token, with the Burnable, Pausable and Ownable from OpenZeppelin
*/ | NatSpecMultiLine | transferWithoutFee | function transferWithoutFee(address recipient, uint256 amount) external onlyWithoutFee returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
| /**
* @dev See {IERC20-transfer}. transfer tokens while only presale or vault
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | MIT | ipfs://077603f10ee2ab3efbf0d755aa6f7a2da4c1e936afa9c891588a2e7c04397144 | {
"func_code_index": [
6955,
7141
]
} | 20,193 |
NEONToken | NEONToken.sol | 0x23c4464ed220c07fb90803ea3617dc5adc5428f7 | Solidity | NEONToken | contract NEONToken is Context, IERC20, Pausable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 privat... | /**
* 'NEON' token contract
*
* Name : NEONToken
* Symbol : NEON
* Total supply: 10,000 (10 thousands)
* Decimals : 18
*
* ERC20 Token, with the Burnable, Pausable and Ownable from OpenZeppelin
*/ | NatSpecMultiLine | transferFee | function transferFee() public view returns (uint8) {
return _transferFee;
}
| /**
* @dev Returns the trasfer fee value.
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | MIT | ipfs://077603f10ee2ab3efbf0d755aa6f7a2da4c1e936afa9c891588a2e7c04397144 | {
"func_code_index": [
7202,
7293
]
} | 20,194 |
NEONToken | NEONToken.sol | 0x23c4464ed220c07fb90803ea3617dc5adc5428f7 | Solidity | NEONToken | contract NEONToken is Context, IERC20, Pausable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 privat... | /**
* 'NEON' token contract
*
* Name : NEONToken
* Symbol : NEON
* Total supply: 10,000 (10 thousands)
* Decimals : 18
*
* ERC20 Token, with the Burnable, Pausable and Ownable from OpenZeppelin
*/ | NatSpecMultiLine | changeTransferFee | function changeTransferFee(uint8 fee) external onlyGovernance {
_transferFee = fee;
emit ChangedTransferFee(governance(), fee);
}
| /**
* @dev Change the transfer fee. Must be called by only governance.
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | MIT | ipfs://077603f10ee2ab3efbf0d755aa6f7a2da4c1e936afa9c891588a2e7c04397144 | {
"func_code_index": [
7383,
7536
]
} | 20,195 |
NEONToken | NEONToken.sol | 0x23c4464ed220c07fb90803ea3617dc5adc5428f7 | Solidity | NEONToken | contract NEONToken is Context, IERC20, Pausable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 privat... | /**
* 'NEON' token contract
*
* Name : NEONToken
* Symbol : NEON
* Total supply: 10,000 (10 thousands)
* Decimals : 18
*
* ERC20 Token, with the Burnable, Pausable and Ownable from OpenZeppelin
*/ | NatSpecMultiLine | NEONVault | function NEONVault() external view returns (address) {
return _vault;
}
| /**
* @dev return neon vault contract address
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | MIT | ipfs://077603f10ee2ab3efbf0d755aa6f7a2da4c1e936afa9c891588a2e7c04397144 | {
"func_code_index": [
7601,
7688
]
} | 20,196 |
NEONToken | NEONToken.sol | 0x23c4464ed220c07fb90803ea3617dc5adc5428f7 | Solidity | NEONToken | contract NEONToken is Context, IERC20, Pausable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 privat... | /**
* 'NEON' token contract
*
* Name : NEONToken
* Symbol : NEON
* Total supply: 10,000 (10 thousands)
* Decimals : 18
*
* ERC20 Token, with the Burnable, Pausable and Ownable from OpenZeppelin
*/ | NatSpecMultiLine | changeNEONVault | function changeNEONVault(address vault) external onlyGovernance {
require(vault != address(0), "Invalid vault contract address");
address oldAddress = _vault;
_vault = vault;
emit ChangedNEONVault(oldAddress, _vault);
}
| /**
* @dev Change staking contract when it redeploy
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | MIT | ipfs://077603f10ee2ab3efbf0d755aa6f7a2da4c1e936afa9c891588a2e7c04397144 | {
"func_code_index": [
7759,
8018
]
} | 20,197 |
NEONToken | NEONToken.sol | 0x23c4464ed220c07fb90803ea3617dc5adc5428f7 | Solidity | NEONToken | contract NEONToken is Context, IERC20, Pausable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 privat... | /**
* 'NEON' token contract
*
* Name : NEONToken
* Symbol : NEON
* Total supply: 10,000 (10 thousands)
* Decimals : 18
*
* ERC20 Token, with the Burnable, Pausable and Ownable from OpenZeppelin
*/ | NatSpecMultiLine | neonPresale | function neonPresale() external view returns (address) {
return _presale;
}
| /**
* @dev return presale contract address
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | MIT | ipfs://077603f10ee2ab3efbf0d755aa6f7a2da4c1e936afa9c891588a2e7c04397144 | {
"func_code_index": [
8080,
8171
]
} | 20,198 |
NEONToken | NEONToken.sol | 0x23c4464ed220c07fb90803ea3617dc5adc5428f7 | Solidity | NEONToken | contract NEONToken is Context, IERC20, Pausable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 privat... | /**
* 'NEON' token contract
*
* Name : NEONToken
* Symbol : NEON
* Total supply: 10,000 (10 thousands)
* Decimals : 18
*
* ERC20 Token, with the Burnable, Pausable and Ownable from OpenZeppelin
*/ | NatSpecMultiLine | changeNeonPresale | function changeNeonPresale(address presale) external onlyGovernance {
require(presale != address(0), "Invalid presale contract address");
address oldAddress = _presale;
_presale = presale;
emit ChangedNeonPresale(oldAddress, _presale);
}
| /**
* @dev Change presale contract when it redeploy
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | MIT | ipfs://077603f10ee2ab3efbf0d755aa6f7a2da4c1e936afa9c891588a2e7c04397144 | {
"func_code_index": [
8242,
8519
]
} | 20,199 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.