Git Product home page Git Product logo

payments's Introduction

Fraud protection for payments

This contract enables a fraud protection, which does not need middlemen or oracles to judge in problem cases. Payments can be made from almost every exchange. An EOS account is not needed to send or receive payments and the usage is completely free of charges.

Guid to run the test suite also on windows

You need to activate the windows feature Hyper-V, but it is not available on Windows 10 Home. You might need to upgrade your Windows to Windows Pro.

Activate WSL 2

Start windows PowerShell as administrator and run the following commands

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl --set-default-version 2

Setup Linux environment

Install Debian from Microsoft store, start it, create your user account and run the following commands

sudo apt-get update
sudo apt-get upgrade

For yarn installation via npm

sudo apt-get install npm

Install yarn globally

sudo npm install --global yarn

Navigate in the console to the folder teleporteos in which you can install the modules (run the following command again if it fails)

sudo yarn install

Set up docker

Install and start Docker, check for updates and install them. Open the Dockers menu by double clicking the icon in the task bar and go to settings โš™๏ธ.

Check "Use the WSL 2 based engine"

Enable Debian in the settings at Resources / WSL INTEGRATION

Activate the dev mode

Set the following line at the top of the main contract file savactsavpay.hpp

#define dev

(Do not forget to remove this line, befor you deploy the contract beyond the test environment)

Run tests

Docker must be running. Start the tests with the following command in the debian console

sudo yarn test

License

The underlying principle has been submitted for patent. Nevertheless, the contract is freely usable under the following condition:

A payment sender designates a payee who receives the payment at least after the expiry of a given time limit. All payments have to be send back to the sender, directed to the mentioned payee or distributed to all SavAct token owners in proportion to their staked token amount. The same applies to possible fees and burned funds. Charges incurred solely through the use of native network resources are excluded from this condition. For other networks, a bridge to the SavAct token has to be created first in order to involve the SavAct token owners.

payments's People

Contributors

kevintuncer avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

hokentech

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.