View Source: contracts/modules/Wallet/VestingEscrowWallet.sol
↗ Extends: VestingEscrowWalletStorage, Wallet
VestingEscrowWallet
Enums
enum State {
CREATED,
STARTED,
COMPLETED
}
Events
event AddSchedule(address indexed _beneficiary, bytes32 _templateName, uint256 _startTime);
event ModifySchedule(address indexed _beneficiary, bytes32 _templateName, uint256 _startTime);
event RevokeAllSchedules(address indexed _beneficiary);
event RevokeSchedule(address indexed _beneficiary, bytes32 _templateName);
event DepositTokens(uint256 _numberOfTokens, address _sender);
event SendToTreasury(uint256 _numberOfTokens, address _sender);
event SendTokens(address indexed _beneficiary, uint256 _numberOfTokens);
event AddTemplate(bytes32 _name, uint256 _numberOfTokens, uint256 _duration, uint256 _frequency);
event RemoveTemplate(bytes32 _name);
event TreasuryWalletChanged(address _newWallet, address _oldWallet);
Constructor
Arguments
Address of the security token
getInitFunction
⤾ overrides IModule.getInitFunction
This function returns the signature of the configure function
Arguments
Used to initialize the treasury wallet address
Arguments
Address of the treasury wallet
changeTreasuryWallet
Used to change the treasury wallet address
Arguments
Address of the treasury wallet
Arguments
Used to deposit tokens from treasury wallet to the vesting escrow wallet
Arguments
Number of tokens that should be deposited
Arguments
Sends unassigned tokens to the treasury wallet
Arguments
Amount of tokens that should be send to the treasury wallet
getTreasuryWallet
Returns the treasury wallet address
Arguments
pushAvailableTokens
Pushes available tokens to the beneficiary's address
Arguments
Address of the beneficiary who will receive tokens
pullAvailableTokens
Used to withdraw available tokens by beneficiary
Arguments
Adds template that can be used for creating schedule
Arguments
Name of the template will be created
Number of tokens that should be assigned to schedule
Duration of the vesting schedule
Frequency of the vesting schedule
Arguments
Removes template with a given name
Arguments
Name of the template that will be removed
getTemplateCount
Returns count of the templates those can be used for creating schedule
Returns
Count of the templates
Arguments
getAllTemplateNames
Gets the list of the template names those can be used for creating schedule
Returns
bytes32 Array of all template names were created
Arguments
Adds vesting schedules for each of the beneficiary's address
Arguments
Address of the beneficiary for whom it is scheduled
Name of the template that will be created
Total number of tokens for created schedule
Duration of the created vesting schedule
Frequency of the created vesting schedule
Start time of the created vesting schedule
Arguments
addScheduleFromTemplate
Adds vesting schedules from template for the beneficiary
Arguments
Address of the beneficiary for whom it is scheduled
Name of the exists template
Start time of the created vesting schedule
_addScheduleFromTemplate
Arguments
Modifies vesting schedules for each of the beneficiary
Arguments
Address of the beneficiary for whom it is modified
Name of the template was used for schedule creation
Start time of the created vesting schedule
_modifySchedule
Arguments
Revokes vesting schedule with given template name for given beneficiary
Arguments
Address of the beneficiary for whom it is revoked
Name of the template was used for schedule creation
_deleteUserToTemplates
Arguments
_deleteTemplateToUsers
Arguments
revokeAllSchedules
Revokes all vesting schedules for given beneficiary's address
Arguments
Address of the beneficiary for whom all schedules will be revoked
_revokeAllSchedules
Arguments
Returns beneficiary's schedule created using template name
Returns
beneficiary's schedule data (numberOfTokens, duration, frequency, startTime, claimedTokens, State)
Arguments
Address of the beneficiary who will receive tokens
Name of the template was used for schedule creation
_getScheduleState
Arguments
getTemplateNames
Returns list of the template names for given beneficiary's address
Returns
List of the template names that were used for schedule creation
Arguments
Address of the beneficiary
getScheduleCount
Returns count of the schedules were created for given beneficiary
Returns
Count of beneficiary's schedules
Arguments
Address of the beneficiary
_getAvailableTokens
Arguments
_getReleasedTokens
Arguments
pushAvailableTokensMulti
Used to bulk send available tokens for each of the beneficiaries
Arguments
Start index of array of beneficiary's addresses
End index of array of beneficiary's addresses
addScheduleMulti
Used to bulk add vesting schedules for each of beneficiary
Arguments
Array of the beneficiary's addresses
Array of the template names
Array of number of tokens should be assigned to schedules
Array of the vesting duration
Array of the vesting frequency
Array of the vesting start time
addScheduleFromTemplateMulti
Used to bulk add vesting schedules from template for each of the beneficiary
Arguments
Array of beneficiary's addresses
Array of the template names were used for schedule creation
Array of the vesting start time
revokeSchedulesMulti
Used to bulk revoke vesting schedules for each of the beneficiaries
Arguments
Array of the beneficiary's addresses
modifyScheduleMulti
Used to bulk modify vesting schedules for each of the beneficiaries
Arguments
Array of the beneficiary's addresses
Array of the template names
Array of the vesting start time
Arguments
_isTemplateExists
Arguments
_validateTemplate
Arguments
Arguments
_sendTokensPerSchedule
Arguments
⤾ overrides IModule.getPermissions
Return the permissions flag that are associated with VestingEscrowWallet
Arguments