Skip to content

carboncoinfoundation/swapout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Carboncoin Swapout Contract

The purpose of the swapout is to secure the holdings of existing holders of Carboncoin in a decentralised, secure way ahead of deploying the new network after the forthcoming ICO.

The contract creates a new token on the Ethereum blockchain that will be swapped for existing Carboncoin.

Technical Instructions

These contracts for the Carboncoin Ethereum Swapout make use of Truffle and Open Zeppelin.

Suggested Tutorials and Reading before contributing

Running it locally

Install Ethereum TestRPC and Truffle:

npm install -g ethereumjs-testrpc

npm install -g truffle

Clone this repository and npm install. This will install Open Zeppelin.

Deploying locally

Run the Ethereum testrpc in a terminal window:

testrpc

In a separate window, compile the project and run the migrations, deploying the contract to testrpc:

truffle compile

truffle migrate

### Deploying to Rinkeby test network

First things first you need a Rinkeby account with some Rinkeby ether in it. The official Ethereum Wallet is a good place to start.

You can get Rinkeby ether from the Rinkeby faucet.

We need to tell Rinkeby and Truffle the address of this deploying account. We have therefore introduced a CREATOR_ACCOUNT environment variable that returns the address of the deploying account.

You can set this manually or install direnv (brew install direnv) and update .envrc with the address of your account.

Easiest way to run a Rinkeby node locally is using geth:

brew tap ethereum/ethereum

brew install ethereum

You can then start it as follows:

geth --rinkeby --rpc --unlock="$CREATOR_ACCOUNT"

You will need to type in the password for your deploying account.

Now you can deploy the contract:

truffle compile

truffle migrate --network rinkeby

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published