After waiting for years and passing several tests, I was selected by the Martian Aerospace Agency to be part of the first human colony on Mars. As a prominent fintech professional, I was chosen to lead a project to develop a monetary system for the new Mars colony. I've decided to base this new monetary system on blockchain technology, and to define a new cryptocurrency called KaseiCoin. (“Kasei” means “Mars” in Japanese.)
KaseiCoin will be a fungible token that is ERC-20 compliant. I'll launch a crowdsale that will allow people who are moving to Mars to convert their earthling money to KaseiCoin.
-
Solidity - Solidity is an object-oriented, high-level language for implementing smart contracts. Smart contracts are programs which govern the behaviour of accounts within the Ethereum state. Solidity is a curly-bracket language designed to target the Ethereum Virtual Machine (EVM). It is influenced by C++, Python and JavaScript.
-
Remix IDE - allows developing, deploying and administering smart contracts for Ethereum like blockchains. It can also be used as a learning platform.
In this challenge I used Remix IDE to compile to deploy our contracts.
- Created a constructor for the KaseiCoin contract.
// Create a constructor for the KaseiCoin contract and have the contract inherit the libraries that you imported from OpenZeppelin.
contract KaseiCoin is ERC20, ERC20Detailed, ERC20Mintable{
address public owner;
constructor (string memory name, string memory symbol, uint initial_supply)
ERC20Detailed(name, symbol, 18) public {
owner = msg.sender;
mint(owner, initial_supply);
}
}
- Contract Deployment
Remix IDE
METAMASK
GANACHE
Brought to you by Elgin Braggs Jr.
MIT