Smart Contract PCL
Switch branches/tags
Nothing to show
Clone or download
Latest commit d7be0c2 Feb 14, 2018
Failed to load latest commit information.
contracts final version Feb 14, 2018
migrations V0.2 to V0.4 Oct 13, 2017
LICENSE description Oct 6, 2017 Update Oct 12, 2017
Security Audit.pdf first audit of Peculium.sol Dec 17, 2017
package.json description Oct 6, 2017
token1.pdf mohamed LEGHERABA Sep 17, 2017
truffle.js correction des erreurs Sep 13, 2017

Peculium token

Decentralised saving Cryptocurrency


To run tests you need to install the following software:

How to test

Open the terminal and run the following commands:

$git clone
$ cd Peculium
$ npm install
$ testrpc

NOTE: All tests must be run separately as specified.


Open the terminal and run the following commands: To deploy smart contracts to live network do the following steps:

  1. Go to the smart contract folder and run truffle console:
$ cd Peculium
$ truffle console
  1. Inside truffle console, invoke "compile" command to deploy contracts:
$ truffle(development)> compile
$ truffle(development)> migrate
$ truffle(development)>Peculium.deployed().then(function(instance){PCL=instance})
$ truffle(development)> PCL.owner()
$ truffle(development)> PCL.balanceOf('0x66693d57ccc352204f3f8579e3fac774be08884b')

Deploy on network Ropsten

  1. Go to contract folder
  2. solc --bin "name_of_the_contract.sol"
  3. copy Bytecode from terminal
  4. Paste Bytecode on the ethereum wallet with network Ropsten and send the contract creation transaction (you need ropsten ether)
  5. wait until the contract is added on the blockchain
  6. Communicate with the contract with API / JSON.