@settlemint/solidity-token-erc20-crowdsale
Version:
Smart contract set to build an ERC20 token sale in SettleMint
21 lines (20 loc) • 560 B
YAML
- kind: ethereum/contract
name: {id}
network: {chain}
source:
address: '{address}'
abi: ICrowdSale
startBlock: {startBlock}
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- ExampleCrowdSale
abis:
- name: ICrowdSale
file: {root}/out/ICrowdSale.sol/ICrowdSale.json
eventHandlers:
- event: TokensPurchased(indexed address,indexed address,uint256,uint256)
handler: handleTokensPurchased
file: {file}