NAME
App::cryp::Role::Masternode - Role for Masternode drivers
VERSION
This document describes version 0.004 of App::cryp::Role::Masternode (from Perl distribution App-cryp-mn), released on 2021-05-26.
PROVIDED METHODS
REQUIRED METHODS
new
Usage:
new(%args) => obj
Constructor. Known arguments:
list_masternodes
Usage: $mn->list_masternodes => [$status, $reason, $payload, \%resmeta]
List all masternodes.
Method must return enveloped result. Payload must be an array containing masternode names (except when detail
argument is set to true, in which case method must return array of records/hashrefs).
Known options:
detail
Boolean. Default 0. If set to 1, method must return array of records/hashrefs instead of just array of strings (masternode names).
Record must contain these keys:
name
(str),ip
(IP address, str),port
(port number, uint16).collateral_txid
(collateral transaction ID, str),collateral_oidx
(collateral's output index in collateral transaction, uint). Record can contain additional keys.with_status
Boolean. Default 0. Only relevant when detail=1.
If set to true, method must return additional record keys:
status
(str).Querying status requires querying the list/masternode, so this is not done by default.
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/App-cryp-mn.
SOURCE
Source repository is at https://github.com/perlancar/perl-App-cryp-mn.
BUGS
Please report any bugs or feature requests on the bugtracker website https://github.com/perlancar/perl-App-cryp-mn/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
AUTHOR
perlancar <perlancar@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2021, 2018 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.