UNPKG
@yoroi/banxa
Version:
latest (1.5.0)
1.5.0
1.4.0
1.3.0
1.2.0
1.1.0
The Banxa integration package of Yoroi SDK
github.com/Emurgo/yoroi/packages/banxa
@yoroi/banxa
/
src
/
helpers
/
coin-types.ts
8 lines
(5 loc)
•
250 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
export
type
BanxaCoinType
=
'ADA'
const
banxaSupportedCoinTypes
:
Readonly
<
BanxaCoinType
[]> = [
'ADA'
]
as
const
export
function
banxaIsCoinType
(
value
:
any
): value is
BanxaCoinType
{
return
banxaSupportedCoinTypes.
includes
(value
as
BanxaCoinType
) }