Skip to content

Plutus-DistributedEXchange. Smart contract

License

Notifications You must be signed in to change notification settings

PlutusIt/PlutusDEX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plutus

This repository will contain the source code that constitutes each component of Plutus Decentralized Exchange Network utilizing Ethereum. For more information see (https://plutus.it/) and the Plutus white paper (https://plutus.it/assets/Plutus.it-White-Paper-v1.0.pdf).

Plutons

Tokens implemented on the Ethereum blockchain. Used to reward users for making purchases on the Plutus Mobile App. Uses the (draft) Token standard (ethereum/EIPs#20) and is based on the example: https://github.com/ethereum/dapp-bin/blob/master/standardized_contract_apis/currency.sol The Pluton contract will be created by the Plutus board, and have 20,000,000 tokens initially. The first initial 850,000 Plutons will be distributed after the crowdsale, as explained at https://getplutons.plutus.it/. The remaining tokens will be distributed by the rebate contract, which in turn is controlled by the PlutusDEX.

PlutusDEX

The main source code of the Plutus Decentralized Exchange Network (PlutusDEX - https://dex.plutus.it) written in Solidity (https://solidity.readthedocs.org/en/latest/). Stores data associated with trades and regulates the trade of fiat currency for Bitcoin or Pluton. Matches Plutus Mobile App users to traders with the best price.

Issuer

Regulates user rebate rewards and issues Plutons to users accordingly.

Plutus User

Stores all data associated with a single user. Allows the user to send Plutons and to interact with traders via PlutusDEX.

Trader

Registers a trader with Plutus so they can begin using PlutusDEX.

Development

Installation

Doing Development

  • Run ethereum testnet by executing testrpc
  • Run bitcoin testnet executing docker run -t -i freewil/bitcoin-testnet-box
  • Run truffle compile to compile contracts in contracts dir

Deployment

  • To deploy on test: ** Run geth --rpc --testnet --unlock 0 ** truffle deploy -e test
  • To deploy on production: ** Run geth --rpc --unlock 0 Where you can replace the 0 with your preferred account ** truffle deploy -e production In both cases, add the generated contract files as well, and note the addresses.

About

Plutus-DistributedEXchange. Smart contract

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •