1 | <?php |
||
5 | class NetworkFactory |
||
6 | { |
||
7 | /** |
||
8 | * @param string $address |
||
9 | * @param string $p2sh |
||
10 | * @param string $privateKey |
||
11 | * @param bool $testnet |
||
12 | * @return Network |
||
13 | * @throws \Exception |
||
14 | */ |
||
15 | 312 | public static function create($address, $p2sh, $privateKey, $testnet = false) |
|
19 | |||
20 | /** |
||
21 | * @return NetworkInterface |
||
22 | * @throws \Exception |
||
23 | */ |
||
24 | 192 | public static function bitcoin() |
|
33 | |||
34 | /** |
||
35 | * @return NetworkInterface |
||
36 | * @throws \Exception |
||
37 | */ |
||
38 | 36 | public static function bitcoinTestnet() |
|
47 | |||
48 | /** |
||
49 | * @return NetworkInterface |
||
50 | * @throws \Exception |
||
51 | */ |
||
52 | 6 | public static function litecoin() |
|
61 | |||
62 | /** |
||
63 | * @return NetworkInterface |
||
64 | * @throws \Exception |
||
65 | */ |
||
66 | 6 | public static function litecoinTestnet() |
|
75 | |||
76 | /** |
||
77 | * @return NetworkInterface |
||
78 | * @throws \Exception |
||
79 | */ |
||
80 | 12 | public static function viacoin() |
|
90 | |||
91 | /** |
||
92 | * @return NetworkInterface |
||
93 | * @throws \Exception |
||
94 | */ |
||
95 | 6 | public static function viacoinTestnet() |
|
105 | |||
106 | /** |
||
107 | * @return NetworkInterface |
||
108 | * @throws \Exception |
||
109 | */ |
||
110 | 6 | public static function dogecoin() |
|
119 | |||
120 | /** |
||
121 | * @return NetworkInterface |
||
122 | * @throws \Exception |
||
123 | */ |
||
124 | 6 | public static function dogecoinTestnet() |
|
133 | |||
134 | /** |
||
135 | * @return NetworkInterface |
||
136 | * @throws \Exception |
||
137 | */ |
||
138 | public static function startcoin() |
||
147 | |||
148 | /** |
||
149 | * @return NetworkInterface |
||
150 | * @throws \Exception |
||
151 | */ |
||
152 | public static function startcoinTestnet() |
||
161 | |||
162 | |||
163 | } |
||
164 |