Skip to content

Commit f1e821a

Browse files
committed
add clams
1 parent 47d9e81 commit f1e821a

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

src/Network/NetworkFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* @method static NetworkInterface bitcoinTestnet()
1414
* @method static NetworkInterface bitcoinCash()
1515
* @method static NetworkInterface bitcoinGold()
16+
* @method static NetworkInterface clams()
1617
* @method static NetworkInterface litecoin()
1718
* @method static NetworkInterface litecoinTestnet()
1819
* @method static NetworkInterface dogecoin()
@@ -33,6 +34,7 @@ class NetworkFactory
3334
'bitcoinTestnet',
3435
'bitcoinCash',
3536
'bitcoinGold',
37+
'clams',
3638
'litecoin',
3739
'litecoinTestnet',
3840
'dogecoin',

src/Network/Networks/Clams.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace AndKom\Bitcoin\Address\Network\Networks;
6+
7+
/**
8+
* Class Clams
9+
* @package AndKom\Bitcoin\Address\Network\Networks
10+
*/
11+
class Clams extends Bitcoin
12+
{
13+
/**
14+
* @var string
15+
*/
16+
protected $prefixP2pkh = "\x89";
17+
18+
/**
19+
* @var string
20+
*/
21+
protected $prefixP2sh = "\x0D";
22+
23+
/**
24+
* @var string
25+
*/
26+
protected $prefixBech32 = null;
27+
}

0 commit comments

Comments
 (0)