@@ -247,97 +247,49 @@ export const generator = FastCheck.oneof(
247247) ;
248248
249249/**
250- * Synchronously encode an Address to bech32 format .
250+ * Synchronous encoding utilities for addresses .
251251 *
252252 * @since 2.0.0
253- * @category encoding
253+ * @category encoding/decoding
254254 */
255- export const encodeBech32 = Schema . encodeSync ( Bech32Schema ) ;
256-
257- /**
258- * Synchronously encode an Address to hex string format.
259- *
260- * @since 2.0.0
261- * @category encoding
262- */
263- export const encodeHex = Schema . encodeSync ( HexStringSchema ) ;
264-
265- /**
266- * Synchronously encode an Address to bytes format.
267- *
268- * @since 2.0.0
269- * @category encoding
270- */
271- export const encodeBytes = Schema . encodeSync ( BytesSchema ) ;
272-
273- /**
274- * Synchronously decode a bech32 string to Address.
275- *
276- * @since 2.0.0
277- * @category decoding
278- */
279- export const decodeBech32 = Schema . decodeUnknownSync ( Bech32Schema ) ;
280-
281- /**
282- * Synchronously decode a hex string to Address.
283- *
284- * @since 2.0.0
285- * @category decoding
286- */
287- export const decodeHex = Schema . decodeUnknownSync ( HexStringSchema ) ;
288-
289- /**
290- * Synchronously decode bytes to Address.
291- *
292- * @since 2.0.0
293- * @category decoding
294- */
295- export const decodeBytes = Schema . decodeUnknownSync ( BytesSchema ) ;
296-
297- /**
298- * Decode a bech32 string to Address, returning Either.
299- *
300- * @since 2.0.0
301- * @category decoding
302- */
303- export const decodeBech32Either = Schema . decodeUnknownEither ( Bech32Schema ) ;
304-
305- /**
306- * Decode a hex string to Address, returning Either.
307- *
308- * @since 2.0.0
309- * @category decoding
310- */
311- export const decodeHexEither = Schema . decodeUnknownEither ( HexStringSchema ) ;
312-
313- /**
314- * Decode bytes to Address, returning Either.
315- *
316- * @since 2.0.0
317- * @category decoding
318- */
319- export const decodeBytesEither = Schema . decodeUnknownEither ( BytesSchema ) ;
255+ export const Encode = {
256+ bech32 : Schema . encodeSync ( Bech32Schema ) ,
257+ hex : Schema . encodeSync ( HexStringSchema ) ,
258+ bytes : Schema . encodeSync ( BytesSchema ) ,
259+ } ;
320260
321261/**
322- * Encode an Address to bech32 format, returning Either .
262+ * Synchronous decoding utilities for addresses .
323263 *
324264 * @since 2.0.0
325- * @category encoding
265+ * @category encoding/decoding
326266 */
327- export const encodeBech32Either = Schema . encodeEither ( Bech32Schema ) ;
267+ export const Decode = {
268+ bech32 : Schema . decodeUnknownSync ( Bech32Schema ) ,
269+ hex : Schema . decodeUnknownSync ( HexStringSchema ) ,
270+ bytes : Schema . decodeUnknownSync ( BytesSchema ) ,
271+ } ;
328272
329273/**
330- * Encode an Address to hex string format, returning Either .
274+ * Either encoding utilities for addresses .
331275 *
332276 * @since 2.0.0
333- * @category encoding
277+ * @category encoding/decoding
334278 */
335- export const encodeHexEither = Schema . encodeEither ( HexStringSchema ) ;
279+ export const EncodeEither = {
280+ bech32 : Schema . encodeEither ( Bech32Schema ) ,
281+ hex : Schema . encodeEither ( HexStringSchema ) ,
282+ bytes : Schema . encodeEither ( BytesSchema ) ,
283+ } ;
336284
337285/**
338- * Encode an Address to bytes format, returning Either .
286+ * Either decoding utilities for addresses .
339287 *
340288 * @since 2.0.0
341- * @category encoding
289+ * @category encoding/decoding
342290 */
343- export const encodeBytesEither = Schema . encodeEither ( BytesSchema ) ;
291+ export const DecodeEither = {
292+ bech32 : Schema . decodeUnknownEither ( Bech32Schema ) ,
293+ hex : Schema . decodeUnknownEither ( HexStringSchema ) ,
294+ bytes : Schema . decodeUnknownEither ( BytesSchema ) ,
295+ } ;
0 commit comments