Skip to content

Commit 97bb472

Browse files
Merge pull request #3 from zachchan105/master
Add Telestai Information
2 parents 7dce7a4 + e8a5e47 commit 97bb472

File tree

5 files changed

+52
-0
lines changed

5 files changed

+52
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,6 +1128,7 @@ If you're interested in contributing, please read the [contributing docs](https:
11281128
| BTA | Btachain | |
11291129
| BCX | BitcoinX | |
11301130
| MEWC | [Meowcoin](https://github.com/hyperbit-dev/chains/blob/master/src/chains/meowcoin) | Yes |
1131+
| TLS | Telestai | |
11311132
| XTZ | Tezos | |
11321133
| LBTC | Liquid BTC | |
11331134
| BBP | Biblepay | |

src/chains/telestai/base.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { Common } from '../../types/base';
2+
3+
export const common: Common = {
4+
name: 'Telestai',
5+
unit: 'TLS',
6+
symbol: 'tls',
7+
decimalPlaces: 1e8,
8+
messagePrefix: 'Telestai Signed Message:\n',
9+
algorithm: 'meraki',
10+
confirmations: 6,
11+
};

src/chains/telestai/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { Networks } from '../../types/base';
2+
import { mainnet } from './mainnet';
3+
//import { testnet } from './testnet';
4+
5+
export const mewc: Networks = {
6+
mainnet,
7+
};

src/chains/telestai/mainnet.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import { MainNet } from '../../types/base';
2+
import { common } from './base';
3+
4+
export const mainnet: MainNet = {
5+
...common,
6+
//Not sure what ID is
7+
id: 'XXXXXX-XXXX-XXXX-XXXXX-99E65A61EB5F',
8+
network: 'mainnet',
9+
hashGenesisBlock:
10+
'0x00000056b9854abf830236d77443a8e3556f0244265e3eb12281a7bc43b7ff57',
11+
port: 8767,
12+
portRpc: 8766,
13+
protocol: {
14+
magic: 0x454c4554,
15+
},
16+
seedsDns: ['45.79.159.32'],
17+
versions: {
18+
// https://en.bitcoin.it/wiki/BIP_0032
19+
bip32: {
20+
private: 0x0488ade4,
21+
public: 0x0488b21e,
22+
},
23+
24+
bip44: 10117,
25+
26+
private: 0x80,
27+
28+
public: 0x42,
29+
30+
scripthash: 0x7F,
31+
},
32+
};

src/types/base.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ export type Algorithm =
112112
| 'lbry'
113113
| 'lyra2re'
114114
| 'lyra2z'
115+
| 'meraki'
115116
| 'meowpow'
116117
| 'minotaur'
117118
| 'minotaurx'

0 commit comments

Comments
 (0)