Skip to content

CryptoSoc/CryptoSocCoin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CryptoSocCoin

The Official UCT CryptoSoc Token Note: This tokensale runs on the Ethereum Ropsten testnet and will not raise any real money. It is for experimentation and fun. Don't be greedy.

The smart contract will not accept any more contributions since the 5th of Feb 2017. If you try to send one, it will fail.

Token Details: The token "ICO" will be open from 00h00 15 January 2018 - 00h00 5 February 2018.

The CryptoSocTokensale address is: 0x0370c54699550FF3A6b79D09225c5f06D0b6F6c8

The CryptoSocCoin token address is: 0x1f5F9801FFD0Aea09A18Aee8358BB4cffCe7acd3

You can view the contract and all of it's properties on the Ropsten Testnet version of Etherscan.io Just paste the addresses in the search bar.

How to Participate

  1. Get MetaMask. Yes you can use many other ways to partake but you will have to use another tutorial and just substitute in the CryptoSocCoin addresses and ensure you are on the Ropsten testnet.

  2. Claim some Ropsten testnet ETH. See below for recommended faucets.

  3. Send testnet ETH to the CryptoSocTokensale contract. The address is:

0x0370c54699550FF3A6b79D09225c5f06D0b6F6c8

You will have to wait for the transaction to be mined. You can monitor its progress on etherscan as well by searching for your address.

  1. Add the CryptoSocCoin token contract as a token in your wallet. Click "Add Token" and put in:

0x1f5F9801FFD0Aea09A18Aee8358BB4cffCe7acd3

The rest of the field should automatically populate with their values after a second or two.

  1. Your balance will appear as soon as the block is mined.

Notes on Using Ropsten Testnet

The testnet is a development environment. That means the ETH you have is worth nothing. If you don't need all of it, donate it to a faucet.

Don't send lots of transactions. We want you to try get the hang of participating in the Ethereum network and seeing what it's about but there are still maintainers who don't want to see all your spam transactions. In fact Ropsten was already DOS'ed.

Claim some Testnet ETH

The first requires the MetaMask plugin which we highly recommend to participate in the crowdsale.

Claim some testnet ETH from these faucets:

How to transact using your newly claimed CryptoSocCoin (CSC)

Unfortunately, for now, Metamask doesn't let you directly send (transact) with ERC-20 tokens (like CSC) BUT you can easily get around this with the following:

Short aside here: to send ERC-20 tokens you'll need some ETH in your account to pay for 'gas'. So make sure you have some ETH in your wallet

(1) Head to https://www.myetherwallet.com/ and click 'Send Ether and Tokens' in the top left

(2) NB make sure that you have selected the Ropsten Test Network at the top right of your screen

(3) Select 'MetaMask/Mist' from the options below

(4) Connect!

Now you should see your wallet. You're going to have to add your CryptoSocCoin manually, so:

(5) Add custom token

(6) Enter the token address (0x1f5F9801FFD0Aea09A18Aee8358BB4cffCe7acd3), symbol and decimals as shown and save!

Now it's time to send those juicy tokens to someone! So ask a friend for their Ropsten Testnet ETH address (or if you have no friends just send Thomas some CSC like I did. (Address: 0x7f5156f2584a25030b61205edc52e55bcfec47b1)

Input the amount and make sure you've selected to send 'CSC' as shown below!

Generate that transaction, sign it and then confirm.

Now MetaMask will (should) pop open and ask you to confirm. Click 'Submit'

If you want to learn more about all those funny numbers (GWEI, Gas, etc.) start here.

That's it! You've just sent your CSC to someone!

But since this is so fun, let's track our transaction through the blockchain and check to see that this all worked!

You'll need your Transaction hash:

Now copy/paste that into the top right search box of https://ropsten.etherscan.io/

As you can see, my transaction was included in block number 2551653

Clicking on the underlined address (0x7f51....) will take us to see that our transaction has reflected on their balance

And there it is! You can see the value of the transaction has been assigned to that Ethereum address.

That wasn't so hard!

The Rest of This Tutorial Is For Those That Are Interested

To Interact with the Live Contract

The CryptoSocTokensale address is: 0x0370c54699550FF3A6b79D09225c5f06D0b6F6c8

The CryptoSocCoin token address is: 0x1f5F9801FFD0Aea09A18Aee8358BB4cffCe7acd3

You can view contracts and, if they have been verified (edit: the contracts have been verified), their source code and ABI on etherscan

To interact with them in a high level way, you can use MyEtherWallet, Just make sure you are using the Ropsten testnet. You will need the ABI (possibly from etherscan.io) and the contract address.

The methods of the token contract that you can call are:

  • name
  • approve
  • transferFrom
  • totalSupply
  • balanceOf
  • symbol
  • transfer
  • and a few more

To see what these methods do, look at the contract source code on etherscan.

For simplicity the CryptoSocCoin token will be launched on a testnet so that users can get coins for free. You will need to claim free testnet ETH from a faucet on the same testnetwork.

For simple interaction with testnets, we recommend using the MetaMask plugin for chrome and Firefox.

How to Deploy Your Own CryptoSocCoin

You can deploy your own CryptoSocCoin either locally or if you're willing to pay the transaction fee, to the mainnet. The simplest way to do this is through the Solidity Remix Online IDE

Once in the Remix IDE:

  • Copy the code from this repo into files in the IDE

  • Compile the files

  • Go to the run tab in the top right

  • Choose your runtime environment

    • The JavaScript virtual machine is the easiest and simulates the blockchain in your browser. It requires no other software install and gives you test accounts with test ETH. If you don't know what to use, use this.
    • The Injected Web3 is a JSON-RPC connection to an ethereum node. One way to use injected web3 is through MetaMask - a simple browser plugin. This allows you to connect to the Ethereum mainnet and testnets. Note: If you deploy to the mainnet you will pay around $10 in transaction fees to launch the contract.
    • The Web3 Provider is a locally run ethereum node. This can be difficult to set up but provides more fine-tuning capability. If you want to see a simple local testnet, try testrpc.
  • Choose the "CryptoSocTokensale" contract from the dropdown.

  • Put the constructor parameters in: the startICOtime, endICOtime, walletAddress, and adminAddress

    • times are UNIX time: time since 1970 try here: https://www.epochconverter.com/
    • Addresses must have quotation marks around them
      • If you're using the JavaScript VM, you can use one of the test addresses
  • Click create and your contract will be deployed. See the console for success or failure messages. If your contract is successful, you will see the ABI just below where you clicked create appear

About

The Official UCT CryptoSoc Token

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors