openvk/openvkctl
veselcraft 16bc311bbc
Coin: A very early implementation of Toncoin fetching
It actually works! But there is a several problems:
1. Notification displays 0 coins instead of real number. Maybe @celestora will fix it idk
2. There is no real configuration of server, currency (rn there is TONs per 1 coin), regex or precise (aka count cents)

There is a lot of work, like integrating interactive interface with TON address and QR code, etcetera...

And btw only CLI is available right now. openvkcli fetch-ton command should be putted into cron, just to regularly check for new transactions :D

Related to #474
2022-05-07 02:33:22 +03:00

14 lines
No EOL
406 B
PHP
Executable file

#!/usr/bin/env php
<?php declare(strict_types=1);
namespace openvk;
use Symfony\Component\Console\Application;
$_SERVER["HTTP_ACCEPT_LANGUAGE"] = false;
$bootstrap = require(__DIR__ . "/../../../chandler/Bootstrap.php");
$bootstrap->ignite(true);
$application = new Application();
$application->add(new CLI\RebuildImagesCommand);
$application->add(new CLI\FetchToncoinTransactions);
$application->run();