-
Notifications
You must be signed in to change notification settings - Fork 6
CLN Tutorial
This tutorial will guide you through the issuance, interaction, and exchange of Community Currencies, abbreviated as CC. To follow this tutorial you should have a basic understanding of Ethereum and blockchain technologies, Ethereum wiki is a great place to start. This overview gives a high level explanation of the CLN contracts, and a contract reference provides a self generated documentation similar to REST API docs.
From a practical side you will need an ERC20 compatible wallet to send and sign transactions. For this purpose we will use MyEtherWallet because of its ability to generate transactions from ABI. If you aren't familiar with MyEtherWallet, there's a tutorial here on how to open a wallet and send ETH.
You will need ETH to pay for gas, and CLN to interact with the contracts of the Colu Local Network. You can learn more about the relation between the CLN and the Community Currencies (CC) from the whitepaper.
To proceed with this guide we've created a new Ethereum account - 0x0d4DF041Dbef6fFC0E444a4a213774AdB0c118C2. We will perform all actions on Ropsten Test Network, so that you can follow along. We encourage you to use testnet until a sufficient understanding of the CLN contracts is achieved.
The tutorial is divided into several parts:
- Acquiring CLN - Prerequisite for contracts usage.
- Currency Factory - Community Currency issuance by an individual issuer.
- Market Maker - the internal mechanics of CLN and Community Currency exchange.
- Issuance Factory - Community Currency issuance in a crowdfunding model.
- ColuLocalNetwork - 0x41c9d91e96b933b74ae21bcbb617369cbe022530
- ColuLocalNetworkSale - 0xa973fa1cF412AC6A76C749aA6E1fcA7251814A48
- CurrencyFactory - 0xA1F05144f9d3298a702c8EEE3ca360bc87d05207
- IssuanceFactory - 0xd352492ebeb9fad92147a3719766d7afe38fe26e
- EllipseMarketMakerLib - 0x30724fa809d40330eacab9c7ebcfb2a0058c381c
- ColuLocalNetwork - 0x4162178B78D6985480A308B2190EE5517460406D
- ColuLocalNetworkSale - 0x12321Fb3e2548b03eaD42F09cAb239cff377b4e2
- CurrencyFactory - 0xE3e3bed21fC39d0915f66509eD0AAc05dB6d6454
- IssuanceFactory - 0xe3444f1aac1a37b8cce47db260d1c6e25a2f627b
- EllipseMarketMakerLib - 0xc70636e0886eC4a4F2B7e42aC57ccD1B976352d0