line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Bitcoin::Crypto::Role::Network; |
2
|
|
|
|
|
|
|
$Bitcoin::Crypto::Role::Network::VERSION = '1.008_01'; # TRIAL |
3
|
|
|
|
|
|
|
$Bitcoin::Crypto::Role::Network::VERSION = '1.00801'; |
4
|
11
|
|
|
11
|
|
55256
|
use v5.10; |
|
11
|
|
|
|
|
62
|
|
5
|
11
|
|
|
11
|
|
80
|
use strict; |
|
11
|
|
|
|
|
67
|
|
|
11
|
|
|
|
|
281
|
|
6
|
11
|
|
|
11
|
|
102
|
use warnings; |
|
11
|
|
|
|
|
36
|
|
|
11
|
|
|
|
|
413
|
|
7
|
11
|
|
|
11
|
|
73
|
use Scalar::Util qw(blessed); |
|
11
|
|
|
|
|
49
|
|
|
11
|
|
|
|
|
684
|
|
8
|
11
|
|
|
11
|
|
77
|
use Mooish::AttributeBuilder -standard; |
|
11
|
|
|
|
|
55
|
|
|
11
|
|
|
|
|
95
|
|
9
|
|
|
|
|
|
|
|
10
|
11
|
|
|
11
|
|
1606
|
use Bitcoin::Crypto::Types qw(InstanceOf Str); |
|
11
|
|
|
|
|
93
|
|
|
11
|
|
|
|
|
97
|
|
11
|
11
|
|
|
11
|
|
31353
|
use Bitcoin::Crypto::Network; |
|
11
|
|
|
|
|
60
|
|
|
11
|
|
|
|
|
346
|
|
12
|
11
|
|
|
11
|
|
89
|
use Bitcoin::Crypto::Exception; |
|
11
|
|
|
|
|
32
|
|
|
11
|
|
|
|
|
297
|
|
13
|
11
|
|
|
11
|
|
78
|
use Moo::Role; |
|
11
|
|
|
|
|
26
|
|
|
11
|
|
|
|
|
91
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
has param 'network' => ( |
16
|
|
|
|
|
|
|
coerce => (InstanceOf ['Bitcoin::Crypto::Network']) |
17
|
|
|
|
|
|
|
->plus_coercions(Str, q{Bitcoin::Crypto::Network->get($_)}), |
18
|
|
|
|
|
|
|
default => sub { |
19
|
|
|
|
|
|
|
return Bitcoin::Crypto::Network->get; |
20
|
|
|
|
|
|
|
}, |
21
|
|
|
|
|
|
|
writer => -hidden, |
22
|
|
|
|
|
|
|
); |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
# make writer chainable |
25
|
|
|
|
|
|
|
sub set_network |
26
|
|
|
|
|
|
|
{ |
27
|
103
|
|
|
103
|
0
|
14609
|
my ($self, $network) = @_; |
28
|
103
|
|
|
|
|
2285
|
$self->_set_network($network); |
29
|
103
|
|
|
|
|
4589
|
return $self; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
|