Skip to content

distributed-ledger-technology/airdrop

Repository files navigation

Airdrop

This module allows you to launch airdrops.

Usage Example

The following example airdrop drops 1 MannheimCoin on Ropsten to each recipient.

deno run --allow-net example-airdrops/launch-airdrop-for-wwi19seb.ts <your provider url (wss://)- e.g. from infura.io or via an own ethereum node> <your privateKey of the Wallet>

Background Info for Solidity Smart Contract Newbies

The solidity smart contract which defines the ERC20 based MannheimCoin Currency looks as follows:

// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.8.0 < 0.9.0;

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.4/contracts/token/ERC20/ERC20.sol";

contract MannheimCoin is ERC20 { 
    
    constructor () ERC20("MannheimCoin", "MANN") { 
        _mint(msg.sender, 2000*10**18);
    }
    
}

This smart contract was developed and deployed to Ropsten using the remix online IDE

Contributions are Welcome

Feel free to raise issues and to open Pull Requests.

About

This module allows you to launch airdrops leveraging web3

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors