Creating constructor for Crowdsale
Environment
Remix, Solidity 0.5.0
Details
I am trying to create constructor for the below crowdsale contract. Questions inside the code//
Code to reproduce
pragma solidity ^0.5.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/docs-v2.x/contracts/crowdsale/Crowdsale.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/docs-v2.x/contracts/crowdsale/emission/AllowanceCrowdsale.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/docs-v2.x/contracts/crowdsale/validation/CappedCrowdsale.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/docs-v2.x/contracts/crowdsale/validation/TimedCrowdsale.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/docs-v2.x/contracts/crowdsale/distribution/RefundablePostDeliveryCrowdsale.sol";
contract MyTokenCrowdsale is
Crowdsale,
AllowanceCrowdsale,
CappedCrowdsale,
TimedCrowdsale,
RefundablePostDeliveryCrowdsale
{
constructor(
uint256 rate,
address payable wallet,
IERC20 token,
address tokenWallet,
uint256 cap,
uint256 openingTime,
uint256 closingTime,
uint256 goal
)
public
AllowanceCrowdsale(tokenWallet)
CappedCrowdsale(cap)
TimedCrowdsale(openingTime, closingTime)
Crowdsale(rate, wallet, token) // If I want a rate of 0.00088 ETH per Token, How?
RefundablePostDeliveryCrowdsale() // is this correct, what should I refer it to?Its empty()
RefundableCrowdsale(goal)
{
// If this is included do I need to include as well
////////////////////////////////////////////////// RefundablePostDeliveryCrowdsale in the constructor??
}
}