Skip to content

adshares/conversion

Repository files navigation

Quality Status

ADS Conversion Tools

Installation

cd /home/adshares
git clone https://github.com/adshares/conversion.git
cd conversion
composer install
cp .env.example .env

Rebuild key-generator script [only if needed]

Bundled key generator script is present in public/js/key-generator.js. It is generated from resources/assets/js/key-generator.js file using Node and Webpack.

If You need to rebuild script, run following commands:

npm install
npm run webpack

Tested with node v8.11.3 and npm 6.2.0.

Nginx

tee /etc/nginx/sites-enabled/conversion <<'ADSHARES'
server {
    listen          80;
    
    server_name     conversion.ads;
    root            /home/adshares/conversion/public;
    
    index           index.htm index.html index.php;
    
    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }
    
    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.2-fpm.sock;
    }
}
ADSHARES

See https://lumen.laravel.com/docs/5.1#installation

Configuration

Converter parameter with ADST_ prefix:

Parameter Default
CONTRACT_ADDRESS 0x422866a8f0b032c5cf1dfbdef31a20f4509562b0
TRANSFER_METHOD 0xa9059cbb
TRANSFER_TOPIC 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
BURN_ADDRESS 0x0
MIN_TOKEN_AMOUNT 1
MIN_MASTER_NODE_TOKEN_AMOUNT 20000
START_BLOCK 0x56BC12

See https://lumen.laravel.com/docs/5.1#environment-configuration