{"id":19070880,"url":"https://github.com/ohager/snr","last_synced_at":"2026-06-14T23:31:38.389Z","repository":{"id":72508381,"uuid":"446812173","full_name":"ohager/snr","owner":"ohager","description":"Payment Application for the Signum Node Rewards (SNR)","archived":false,"fork":false,"pushed_at":"2023-08-26T03:30:34.000Z","size":245,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-22T03:44:12.330Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ohager.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-11T12:27:58.000Z","updated_at":"2022-08-12T01:06:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"570beb2d-ed88-4f33-94fb-2885b60d0097","html_url":"https://github.com/ohager/snr","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ohager/snr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohager%2Fsnr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohager%2Fsnr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohager%2Fsnr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohager%2Fsnr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ohager","download_url":"https://codeload.github.com/ohager/snr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohager%2Fsnr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34342089,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T01:21:08.172Z","updated_at":"2026-06-14T23:31:38.340Z","avatar_url":"https://github.com/ohager.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Signum Node Reward (SNR)\n\nPayment Application for the Signum Node Rewards (SNR)\n\n# Install\n\n\u003e NodeJS 14+ installed\n\nClone this repo and install the dependencies: \n\n```bash\ngit clone https://github.com/ohager/snr.git\ncd snr\nnpm i\n```\n\n# Initialize aka Configuration\n\nBefore using it you need to _configure_ the tool. \nOn installation the `.env.example` will be copied to `.env` automatically.\nJust edit the `.env` file according your needs.\n\n\u003e Hint: You can always override the ENV vars on startup, i.e. `PAYING_ACCOUNT_PASSPHRASE=secret snr pay 100 -x`   \n\u003e Another Hint: Once the `.env` file exists, it won't be overwritten by the `init` command anymore\n\n# Usage\n\nJust hit `./snr-cli.js --help` for detailed usage\n\n```\n14:35 $ ./snr-cli.js \nUsage: snr-cli [options] [command]\n\n\n            @@@@@@@@  @@@@@@@           \n         @@@@@    @@@@@    @@@@@        \n           @@@  @@@  @@@ @@@@@          \n    @@@      @@@@@     @@@@       @@@   \n  @@@@@@@@ \u0026@@@  @@@@@@@@ @@@@  @@@@@@@ \n @@@    @@@@       @@@      @@@@@    @@@\n @@@  @@@ *@@@@           @@@  @@@  @@@@\n   @@@@@     @@@         @@@     @@@@@  \n @@@@  @@@  @@@           @@@@  @@@  @@@\n @@@    @@@@@      @@@       @@@@    @@@\n  @@@@@@@  @@@  @@@@@@@@  @@@  @@@@@@@@ \n    @@@       @@@@     @@@@@      @@@   \n           @@@@  @@@  @@@  @@@          \n         @@@@@    @@@@@    @@@@@        \n            @@@@@@@  @@@@@@@@    \n \n           Signum Node Rewards          \n      \n  Author: ohager\n  Version: 1.1.0\n  \n\nOptions:\n  -V, --version                                output the version number\n  -h, --help                                   display help for command\n\nCommands:\n  init                                         Initializes the command. Use this before any other action\n  pay [options] [amount]                       Pays the rewards to eligible node operators\n  queue [options] \u003cminVersion\u003e [availability]  Checks the node operators for payment eligibility, and queues them for\n                                               sending (need to use pay to execute payments)\n  help [command]                               display help for command\n```\n## Examples\n\n### Queue\n\nQueuing is the process to verify if an operator is eligible. It just sets the elgibile operator to 'Queued', such that the payment can be done afterwards.\n\nThis will simulate a queue simulation for all version above '3.2' and 95% of availability and last seen today\n\n```bash\n./snr-cli.js queue \"3.2\" 95 \n```\n\nThis will queue for all eligible operators with version above or equal '3.2' and 99% of availability\n\n```bash\n./snr-cli.js queue \"3.2.2\" 99 -x\n```\n\n\n### Payment\n\nPays out to all 'Queued' operators.\n\nThis will simulate a payment execution using the _entire_ balance of the payers account and disitributes to the operators\n\n```bash\n./snr-cli.js pay\n```\n\nThis will simulate a payment execution of 10 Signa.\n\n```bash\n./snr-cli.js pay 10\n```\n\nThis will run a real payment execution of 3.14159 Signa and alters state in the database also\n\n```bash\n./snr-cli.js pay 3.14159 -x\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohager%2Fsnr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fohager%2Fsnr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohager%2Fsnr/lists"}