Skip to content

Commit

Permalink
export coin maps
Browse files Browse the repository at this point in the history
  • Loading branch information
TateB committed Jan 18, 2024
1 parent 55161cb commit 372762a
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
import * as formats from "./coins.js";
import { coinNameToTypeMap } from "./consts/coinNameToTypeMap.js";
import { coinTypeToNameMap } from "./consts/coinTypeToNameMap.js";
import {
coinNameToTypeMap,
evmCoinNameToTypeMap,
nonEvmCoinNameToTypeMap,
} from "./consts/coinNameToTypeMap.js";
import {
coinTypeToNameMap,
evmCoinTypeToNameMap,
nonEvmCoinTypeToNameMap,
} from "./consts/coinTypeToNameMap.js";
import type {
Coin,
CoinName,
Expand All @@ -24,6 +32,15 @@ export type {
EvmCoinType,
};

export {
coinNameToTypeMap,
coinTypeToNameMap,
evmCoinNameToTypeMap,
evmCoinTypeToNameMap,
nonEvmCoinNameToTypeMap,
nonEvmCoinTypeToNameMap,
};

export const getCoderByCoinName = <
TCoinName extends CoinName | string = CoinName | string
>(
Expand Down

0 comments on commit 372762a

Please sign in to comment.