(prefix: string)
| 161 | } |
| 162 | |
| 163 | export const toBech32 = (prefix: string) => (input: string): string => { |
| 164 | return bech32Encode(prefix, bech32Convert(Array.from(Buffer.from(input, 'hex')), 8, 5, true)) |
| 165 | } |
| 166 | |
| 167 | export const toDate = (input: string | number) => new Date(input) |
| 168 |
no test coverage detected