Storage layout for VolumeRestrictionTM (VolumeRestrictionTMStorage.sol)
View Source: contracts/modules/TransferManager/VRTM/VolumeRestrictionTMStorage.sol
↘ Derived Contracts: VolumeRestrictionTM, VolumeRestrictionTMProxy
VolumeRestrictionTMStorage
Enums
RestrictionType
enum RestrictionType {
Fixed,
Percentage
}
TypeOfPeriod
enum TypeOfPeriod {
MultipleDays,
OneDay,
Both
}
Structs
VolumeRestriction
struct VolumeRestriction {
uint256 allowedTokens,
uint256 startTime,
uint256 rollingPeriodInDays,
uint256 endTime,
enum VolumeRestrictionTMStorage.RestrictionType typeOfRestriction
}
IndividualRestrictions
struct IndividualRestrictions {
mapping(address => struct VolumeRestrictionTMStorage.VolumeRestriction) individualRestriction,
mapping(address => struct VolumeRestrictionTMStorage.VolumeRestriction) individualDailyRestriction
}
GlobalRestrictions
struct GlobalRestrictions {
struct VolumeRestrictionTMStorage.VolumeRestriction defaultRestriction,
struct VolumeRestrictionTMStorage.VolumeRestriction defaultDailyRestriction
}
BucketDetails
struct BucketDetails {
uint256 lastTradedDayTime,
uint256 sumOfLastPeriod,
uint256 daysCovered,
uint256 dailyLastTradedDayTime,
uint256 lastTradedTimestamp
}
BucketData
struct BucketData {
mapping(address => mapping(uint256 => uint256)) bucket,
mapping(address => mapping(uint256 => uint256)) defaultBucket,
mapping(address => struct VolumeRestrictionTMStorage.BucketDetails) userToBucket,
mapping(address => struct VolumeRestrictionTMStorage.BucketDetails) defaultUserToBucket
}
Exemptions
struct Exemptions {
mapping(address => uint256) exemptIndex,
address[] exemptAddresses
}
Contract Members
Constants & Variables
mapping(address => enum VolumeRestrictionTMStorage.TypeOfPeriod) internal holderToRestrictionType;
struct VolumeRestrictionTMStorage.IndividualRestrictions internal individualRestrictions;
struct VolumeRestrictionTMStorage.GlobalRestrictions internal globalRestrictions;
struct VolumeRestrictionTMStorage.BucketData internal bucketData;
struct VolumeRestrictionTMStorage.Exemptions internal exemptions;
Functions
PreviousBase abstract contract to be implemented by all Transfer Manager modules (TransferManager.sol)NextSecurity Token contract (mock) (MockSecurityTokenLogic.sol)
Last updated
Was this helpful?