Skip to content

Creating a Smart Contract for Cryptocurrency - Laxmicoin - ICO

Notifications You must be signed in to change notification settings

mdsalik7/Smartcontract-Laxmicoin-ICO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Smart Contract - Laxmicoin ICO

To be installed -

My Ether Wallet
Ganache

Procedure -

  1. Copy the code from laxmicoin-ICO.sol and paste it on Remix
  2. Choose the version of compiler, version:0.4.11+commit.68ef5810.Emscripten.clang
  3. Now open Ganache. And Minimize it. Let it be running in background.
  4. Now go to MyEtherWallet, open it by launching index.html.
  5. Now create a new custom wallet by clicking on add new custom network/node from the drop down menu, Network ETH (MyEtherWallet). A dialog box will appear.
  6. Now come back to Ganache and copy the RPC Server.
  7. Now come back to MyEtherWallet give a suitable name to the node and paste the RPC Server in the URL(Just dont put the Port in the URL, It needs to be put seperately so omit it out). And then put the port in the port section. And click on Create wallet.
  8. Now click on Contracts and then click on Deploy Contract.
  9. Go to remix and copy the byte code and paste it in MyEtherWallet, just make sure you remove everything that starts before and after the qoutes including the qoutes too. Only the numbers are supposed to be there.
  10. Now from 'How would you like to access your wallet?' Select Private Key.
  11. Go to Ganache and select any of the address you want to use, Click on the key icon and copy the private key and paste it in the MyEtherWallet and click on the Unlock button.
  12. Now click on Sign Transaction and then click on Deploy Contract
  13. Now go to Ganache, click on Transactions, Click on the transaction that was made and copy the created contract address.
  14. Now go to MyEtherWallet, Click on Interact with Contract and paste the created contract address.
  15. Now go to remix and copy the ABI and paste it in ABI / JSON Interface. Click Access.

Interacting with the Smart Contract

Checking the maximum number of Laxmicoins -

screenshot 28

USD to Laxmicoins (1 USD = 1000 Laxmicoins) -

screenshot 36

Buying Laxmicoins -

screenshot 29

Equity in USD invested by the Investor (How much the Investor invested in Dollars) -

screenshot 30

Equity in Laxmicoins (Number of Laxmicoins invested on by the Investor) -

screenshot 31

Total Laxmicoins Bought (Since I am the only investor right now so the total laxmicoins bought is exact same as how much I bought) -

screenshot 32

Selling Laxmicoins -

screenshot 33

Equity in Laxmicoins left -

screenshot 34

Equity in USD left -

screenshot 35

Ganache -

screenshot 37