Roco Token
library RocoStorageBase {
using SafeMath for uint256;
bytes32 constant public ROCO_STORAGE = keccak256("com.roco.storage.roco");
//- Master Vesting
struct VestingData {
uint index;
address walletaddress;
uint256 totalamount;
uint256 starttime;
uint totalperiod;
}
//- Detail Vesting
struct VestingDataDetail {
uint index;
uint256 periodtime;
uint256 periodamount;
uint period;
bool confirm;
address walletaddress;
}
struct AppStorage {
//- Vesting Data
mapping (address => VestingData) VestingStruct;
address[] VestingIndex;
//- Vesting Data Detail
mapping (address => VestingDataDetail[]) VestingDetailStruct;
}
function rocostorage() internal pure returns(AppStorage storage app) {
bytes32 rocoposition = ROCO_STORAGE;
assembly {
app.slot := rocoposition
}
}Last updated