Skip to content

Can we learn pups better by crowd-selling PupperCoin on Solidity? Define PupperCoin as ERC20, then drafting PupperCoinSale and PupperCoinSaleDeployer contracts. In Remix, deploy PupperCoinSaleDeployer, followed by PupperCoinSale, and finally PupperCoin contract on a testnet. View tokens in MyCrypto Wallet.

License

Notifications You must be signed in to change notification settings

Ava33343/Is_PupperCoin_Orbiting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Is_PupperCoin_Orbiting

Crowd-selling PupperCoin to Discover Interesting Facts on our best friends

Overview

Crowd-selling PupperCoin coded on Solidity to fund generic trailing project on pups. Two contracts are written and deployed on Remix.

  • The ENVIRONMENT on Remix is set to INJECTED WEB3

  • MetaMask is tuned in KOVAN Test Network.


Transaction on EtherScan for Puppercoin Contract Deployment

Transaction of puppercoin

Crowdsale Contract Deployment on Remix

Step 1. Deploy PupperCoinsSale Deployer Contract

i) Enter the following information at DEPLOY:

NAME: PupperCoin
SYMBOL: PUP
WALLET: 0x5DBaBe19DD1fedba1B20047059DCd755D8221BF7
GOAL: 10000

ii) Click on transact button.

PupperCoinSaleDeployer Deployment

iii) Confirm on MetaMask pop-up window.

Step 2. Deploy PupperCoinsSale Contract

i) View addresses by clicking on blue buttons

  • pupper_token_address
  • token_address

ii) Scroll CONTRACT to PupperCoinSale

at pupper_token_address circled below:

PupperCoinSale Deployment

Step 3. Deploy PupperCoins Contract


Transaction on EtherScan for Puppercoin buyTokens

Transaction of puppercoin

Puppercoin Contract Deployment on Remix

at token_address

PupperCoin Remix Deployment 2


Features

A. Buy Tokens under PupperCoinSale on Remix

PupperCoin buyTokens

Looks like it is a sucess!

PupperCoin buyTokens

Here is another buyTokens transaction for 3000 wei PupperCoin

PupperCoin buyTokens 3000

B. Approve Spending PUP

Click on `approve` under PUPPERCOIN contract

PupperCoin Approve

C. Check Balance

Check balance by clicking on `balanceOf` under deployed `PupperCoinSale` Contract

PupperCoin buyTokens 3000

D. Add Tokens

Add Tokens by entering wallet Address, symbol `PUP` and 18 for decimals

PupperCoin Add Tokens

PupperCoin with PUP Tokens

E. Transfer Tokens

Click on `transfer` under `PUPPERCOIN` function

PupperCoin buyTokens 3000


View Tokens on MyCrypto Wallet

Access wallet on MyCrypto via the PRIVATE KEY in Ganache.

Ganache

Press Scan for Tokens button on the bottom right corner:

PupperCoin buyTokens 3000


The above processes can be done on Rinkeby and Ropsten Testnets by adjusting the network on MetaMask.

On Rinkeby

Rinkeby Etherscan Transaction


More Love for Pups

For getting testcoins, both Kovan and Ropsten faucets could do the job!

Kovan Testcoins

Kovan Faucet

Ropsten Testcoins

Ropsten Faucet

Tweet for Rinkeby Testcoins

Step 1: Go to Rinkeby Faucet

Rinkeby Authorization 1

Step 2: Tweet the message with designated wallet address

Rinkeby Authorization 2

Step 3: Copy link on posted message on Twitter

Rinkeby Authorization 3

Step 4: Verify tweet

Rinkeby Authorization 4

Step 5: Check balance on MetaMask

Rinkeby Authorization 5


Files

PupperCoin

CrowdSale

Kovan Transactions

Rinkeby Transactions

Images Folder


References

About

Can we learn pups better by crowd-selling PupperCoin on Solidity? Define PupperCoin as ERC20, then drafting PupperCoinSale and PupperCoinSaleDeployer contracts. In Remix, deploy PupperCoinSaleDeployer, followed by PupperCoinSale, and finally PupperCoin contract on a testnet. View tokens in MyCrypto Wallet.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published