Smart Contracts Demo

Written by getelix | Published 2017/12/18
Tech Story Tags: blockchain | finance | cryptocurrency | payments | technology

TLDRvia the TL;DR App

With our new website design complete, it’s time to code it. One of us is currently working on that — we’ll keep the community updated as we progress. Here’s one more preview of the latest design:

Demo

This week, we’re releasing our smart contracts demo! These deployed contracts demonstrate the upcoming functionalities of the new smart contracts. The demo Github repository is available here.There are six demo scenarios already created, available here. With testrpc or another testnet running, you can open each of the scenarios in a browser with developer tools enabled and view the results as each scenario runs. The six scenarios included are:

1. Single payment with mining. 2. Single late payment with mining. 3. Multiple payments with mining. 4. Multiple payments with interest and mining. 5. Single payment with interest and mining. 6. Single payment with mining and an attempt to break holding.

Take a minute to read over the documentation to understand how the contracts work on a conceptual level. You can find the documentation here. You can also use the documentation to alter any scenarios or create your own. Additionally, you can run multiple scenarios in succession. The token manager will keep track of all relevant payment information. Scenarios 5 has been included at the request of one of our community members. Scenario 6 contains an attempt to break holding, which causes the smart contracts to revert — the expected behavior when lenders try to break holding periods. As shown in the scenarios, the contracts support payment in multiple parts, interest, and mining. Our documentation goes into detail about each of the public functions in our smart contracts that facilitate requesting and returning payments. You can also take a look at sample output of each scenario here. You can use these contracts both as a payment ledger and a lending service. With functional smart contracts, we’re moving quickly toward our goal of Alpha and Beta testing.

If you’re a developer and would like to work on ELIX, we’d like to hear from you in the near future. We’ll put up an announcement as we move forward, so stay tuned.

Be sure to checkout our website as well as connect to our social media on Reddit, Twitter, Discord, and Telegram. If you have any questions, let us know and we’d be glad to help clear things up!


Published by HackerNoon on 2017/12/18