Skip to content

Latest commit

 

History

History
76 lines (55 loc) · 1.3 KB

exchangeoffering.sol.md

File metadata and controls

76 lines (55 loc) · 1.3 KB

ExchangeOffering.sol

Events

TokenPurchase()

event TokenPurchase(address indexed token, address indexed user,
uint256 tokenAmount, uint256 weiAmount);
parameter type
token address
user address
tokenAmount uint256
weiAmount uint256

TokenBurned()

event TokenBurned(address indexed token, uint256 tokenAmount);
parameter type
token address
tokenAmount uint256

Functions

registerCrowdsale()

function registerCrowdsale(Crowdsale memory crowdsale, address token) public onlyOwner
parameter type
crowdsale Crowdsale struct
token address

buyTokens()

function buyTokens(address token) public payable
parameter type
token adress

burnTokensWhenFinished()

function burnTokensWhenFinished(address token) public
parameter type
token address

validContribution()

function validContribution(uint256 weiAmount, Crowdsale memory crowdsale,
address user, address token)public view returns(ContributionStatus)
parameter type
weiAmount uint256
crowdsale Crowdsale struct
user address
token address