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 | 134 | public static function create($address, $p2sh, $privateKey, $testnet = false) |
|
19 | |||
20 | /** |
||
21 | * @return NetworkInterface |
||
22 | * @throws \Exception |
||
23 | */ |
||
24 | 94 | public static function bitcoin() |
|
35 | |||
36 | /** |
||
37 | * @return NetworkInterface |
||
38 | * @throws \Exception |
||
39 | */ |
||
40 | 32 | public static function bitcoinTestnet() |
|
51 | |||
52 | /** |
||
53 | * @return NetworkInterface |
||
54 | * @throws \Exception |
||
55 | */ |
||
56 | 2 | public static function bitcoinRegtest() |
|
67 | |||
68 | /** |
||
69 | * @return NetworkInterface |
||
70 | */ |
||
71 | public static function bitcoinSegnet() |
||
80 | |||
81 | /** |
||
82 | * @return NetworkInterface |
||
83 | * @throws \Exception |
||
84 | */ |
||
85 | 2 | public static function litecoin() |
|
94 | |||
95 | /** |
||
96 | * @return NetworkInterface |
||
97 | * @throws \Exception |
||
98 | */ |
||
99 | 2 | public static function litecoinTestnet() |
|
108 | |||
109 | /** |
||
110 | * @return NetworkInterface |
||
111 | * @throws \Exception |
||
112 | */ |
||
113 | 4 | public static function viacoin() |
|
123 | |||
124 | /** |
||
125 | * @return NetworkInterface |
||
126 | * @throws \Exception |
||
127 | */ |
||
128 | 2 | public static function viacoinTestnet() |
|
138 | |||
139 | /** |
||
140 | * @return NetworkInterface |
||
141 | * @throws \Exception |
||
142 | */ |
||
143 | 2 | public static function dogecoin() |
|
152 | |||
153 | /** |
||
154 | * @return NetworkInterface |
||
155 | * @throws \Exception |
||
156 | */ |
||
157 | 2 | public static function dogecoinTestnet() |
|
166 | |||
167 | /** |
||
168 | * @return NetworkInterface |
||
169 | * @throws \Exception |
||
170 | */ |
||
171 | public static function startcoin() |
||
180 | |||
181 | /** |
||
182 | * @return NetworkInterface |
||
183 | * @throws \Exception |
||
184 | */ |
||
185 | public static function startcoinTestnet() |
||
194 | |||
195 | /** |
||
196 | * @return NetworkInterface |
||
197 | * @throws \Exception |
||
198 | */ |
||
199 | 2 | public static function dash() |
|
208 | |||
209 | |||
210 | /** |
||
211 | * @return NetworkInterface |
||
212 | * @throws \Exception |
||
213 | */ |
||
214 | 2 | public static function dashTestnet() |
|
223 | |||
224 | /** |
||
225 | * @return NetworkInterface |
||
226 | * @throws \Exception |
||
227 | */ |
||
228 | public static function pivx() |
||
237 | |||
238 | /** |
||
239 | * @return NetworkInterface |
||
240 | * @throws \Exception |
||
241 | */ |
||
242 | public static function pivxTestnet() |
||
251 | } |
||
252 |