I wont to know how i can deploy an AllowanceCrowdsale and set the price of my token which i have already deployed. please give example on ERC777 and others if possible. Thanks!!!
For details and examples on Crowdsales, please see the documentation
If you need an example, the OpenZeppelin Contracts tests are a great place to start.
See the mock implementation: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.1/contracts/mocks/AllowanceCrowdsaleImpl.sol
Let me know if you get stuck.
Any such solution would need appropriate testing and auditing. Using an ERC777 we also need to protect against reentrancy (see Reentrancy After Istanbul)
A post was split to a new topic: What do Rate, Wallet, Token and Token Wallet mean in Crowdsale constructory?