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() |
|
35 | |||
36 | /** |
||
37 | * @return NetworkInterface |
||
38 | * @throws \Exception |
||
39 | */ |
||
40 | 36 | public static function bitcoinTestnet() |
|
51 | |||
52 | /** |
||
53 | * @return NetworkInterface |
||
54 | */ |
||
55 | public static function bitcoinSegnet() |
||
64 | |||
65 | /** |
||
66 | * @return NetworkInterface |
||
67 | * @throws \Exception |
||
68 | */ |
||
69 | 6 | public static function litecoin() |
|
78 | |||
79 | /** |
||
80 | * @return NetworkInterface |
||
81 | * @throws \Exception |
||
82 | */ |
||
83 | 6 | public static function litecoinTestnet() |
|
92 | |||
93 | /** |
||
94 | * @return NetworkInterface |
||
95 | * @throws \Exception |
||
96 | */ |
||
97 | 12 | public static function viacoin() |
|
107 | |||
108 | /** |
||
109 | * @return NetworkInterface |
||
110 | * @throws \Exception |
||
111 | */ |
||
112 | 6 | public static function viacoinTestnet() |
|
122 | |||
123 | /** |
||
124 | * @return NetworkInterface |
||
125 | * @throws \Exception |
||
126 | */ |
||
127 | 6 | public static function dogecoin() |
|
136 | |||
137 | /** |
||
138 | * @return NetworkInterface |
||
139 | * @throws \Exception |
||
140 | */ |
||
141 | 6 | public static function dogecoinTestnet() |
|
150 | |||
151 | /** |
||
152 | * @return NetworkInterface |
||
153 | * @throws \Exception |
||
154 | */ |
||
155 | public static function startcoin() |
||
164 | |||
165 | /** |
||
166 | * @return NetworkInterface |
||
167 | * @throws \Exception |
||
168 | */ |
||
169 | public static function startcoinTestnet() |
||
178 | |||
179 | /** |
||
180 | * @return NetworkInterface |
||
181 | * @throws \Exception |
||
182 | */ |
||
183 | 6 | public static function dash() |
|
192 | |||
193 | |||
194 | /** |
||
195 | * @return NetworkInterface |
||
196 | * @throws \Exception |
||
197 | */ |
||
198 | 6 | public static function dashTestnet() |
|
207 | } |
||
208 |