Skip to content

Commit 5dce20d

Browse files
feat: add chain symbols as a supported type
v1.9.0
1 parent d1fbe59 commit 5dce20d

File tree

3 files changed

+36
-3
lines changed

3 files changed

+36
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hyperbitjs/chains",
3-
"version": "1.8.2",
3+
"version": "1.9.0",
44
"license": "MIT",
55
"main": "dist/index.js",
66
"typings": "dist/index.d.ts",

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as _chains from './chains';
2-
import { Networks } from './types/base';
2+
import { Networks, Symbol } from './types/base';
33

4-
export const chains: Record<string, Networks> = _chains;
4+
export const chains: Record<Symbol, Networks> = _chains;
55
export * from './chains';
66
export * from './utils';
77
export * from './types';

src/types/base.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,3 +142,36 @@ export type Algorithm =
142142
| 'x21s'
143143
| 'xevan'
144144
| 'zhash';
145+
146+
export type Symbol =
147+
| 'btc'
148+
| 'bch'
149+
| 'blk'
150+
| 'cbn'
151+
| 'city'
152+
| 'dash'
153+
| 'dcr'
154+
| 'dnr'
155+
| 'dgb'
156+
| 'xdn'
157+
| 'doge'
158+
| 'evr'
159+
| 'ftc'
160+
| 'grs'
161+
| 'ltc'
162+
| 'mewc'
163+
| 'mona'
164+
| 'nmc'
165+
| 'nav'
166+
| 'xna'
167+
| 'nbt'
168+
| 'ppc'
169+
| 'pgn'
170+
| 'qtum'
171+
| 'rvn'
172+
| 'rdd'
173+
| 'rito'
174+
| 'vtc'
175+
| 'via'
176+
| 'x42'
177+
| 'zec';

0 commit comments

Comments
 (0)