Giter Site home page Giter Site logo

dicoapp's Introduction

dICOapp v0.1

SPV lightweight GUI wallet with barterDEX swap capabilities (dICO compatible). This is experimental software and a functional prototype.

Install dependencies for DEV enviroment

OSX / LINUX

curl https://install.meteor.com/ | sh
git clone https://github.com/komodoplatform/dicoapp
cd dicoapp
meteor add ca333:qrcode froatsnook:sleep ostrio:meteor-root twbs:bootstrap session
meteor npm install
meteor npm install clipboard --save
meteor npm install bs58 --save
meteor npm install sha.js --save
meteor npm install pm2 --save
meteor npm install sweetalert --save

run the dicoapp:

meteor run

LINUX

Follow the instructions from above (OSX) and place your marketmaker executable inside private/static/LINUXin the atomicDEX directory.

WIN

Install chocolatey from https://chocolatey.org/install and afterwards install meteor via administrator command prompt:

choco install meteor

Modify the dICO application

dICO app bundle settings

Modify the file .desktop/settings.json to change version number and bundle/executables naming.

Token specific modifications

Modify the files private/static/config/coins.json, .desktop/assets/config/coins.json, .desktop/modules/marketmaker/config/electrum.js, .desktop/modules/marketmaker/config/tokenconfig.js, imports/api/config/tokenconfig.js and imports/api/config/electrum.js with your token-specific details such as SPV server connection details, iguana coin string and token-strings.

Below is a snippet from the electrum.js and tokenconfig.js files. You can use your same data for the .desktop module (.desktop/assets/config/coins.json) and the imports config (imports/api/config/electrum.js).

//snippet electrum.js

let electrumServers = {        //custom SPV config
dICOtoken: {
    address: '0.0.0.0',        //SPV server IP
    port: 0,                   //SPV port
    proto: 'tcp',
    txfee: 10000,
    coin: 'dICOtoken',         //shortcode/tickersymbol of the token
    altserverList: [
        'electrum1.cipig.net', //alternative spv servers - needs to be same port
        'electrum2.cipig.net'
    ],
}
};

//snippet tokenconfig.js

let tokenconfig = {                               //custom token config
dICOtoken: {
    name: 'dICO Token',                           //Token name
    shortcode: 'dICOT',                           //ticker symbol
    siteurl: 'https://www.dicotoken.com',         //website
    supporturl: 'https://helpdesk.dicotoken.com', //support
    pricebob: '0x_pubkey_bob',                    //pricebob publickey
    netid: 0,                                     //netid (only needed for isolated netid)
    seed: '0.0.0.0'                               //seed-ip (only needed for isolated netid)
}
};

Please replace the logos and icons in .desktop/assets and public/img with yours before building.

Bundle enduser application

Install deps and meteor-desktop:

meteor npm install
meteor npm install --save-dev meteor-desktop

and make sure you have all deps and the dicoAPP desktop module installed in your app root directory.

Package the installer

npm run desktop -- build-installer --win npm run desktop -- build-installer --linux npm run desktop -- build-installer --osx

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.