Ucs05.ts
This module handles interaction with the UCS05 standard.
Added in v2.0.0
Signature
export declare class Bech32DecodeError
Added in v2.0.0
Source: src/Ucs05.ts:328
Signature
export declare class Bech32EncodeError
Added in v2.0.0
Source: src/Ucs05.ts:320
Signature
export declare const AnyDisplay: S.Union< [ S.Struct<{ _tag: S.tag<"CosmosDisplay">; address: S.filter<S.TemplateLiteral<`${string}1${string}`>> }>, S.Struct<{ _tag: S.tag<"EvmDisplay">; address: S.refine<`0x${string}`, S.Schema<string, string, never>> }> ]>
Source: src/Ucs05.ts:209
Added in v2.0.0
Signature
export type AnyDisplay = typeof AnyDisplay.Type
Source: src/Ucs05.ts:217
Added in v2.0.0
Signature
export declare const AnyDisplayFromString: S.transformOrFail< typeof S.String, S.Union< [ S.Struct<{ _tag: S.tag<"CosmosDisplay">; address: S.filter<S.TemplateLiteral<`${string}1${string}`>> }>, S.Struct<{ _tag: S.tag<"EvmDisplay">; address: S.refine<`0x${string}`, S.Schema<string, string, never>> }> ] >, never>
Source: src/Ucs05.ts:223
Added in v2.0.0
Signature
export type AnyDisplayFromString = typeof AnyDisplayFromString.Type
Source: src/Ucs05.ts:243
Added in v2.0.0
Signature
export declare const AptosCanonical: S.brand< S.brand<S.TemplateLiteral<`0x${string}`>, "CanonicalBytes">, "AptosCanonical">
Source: src/Ucs05.ts:150
Added in v2.0.0
Signature
export declare const AptosDisplay: S.brand< S.brand<S.TemplateLiteral<`0x${string}`>, "CanonicalBytes">, "AptosCanonical">
Source: src/Ucs05.ts:155
Added in v2.0.0
Signature
export declare const AptosZkgm: S.brand<S.brand<S.TemplateLiteral<`0x${string}`>, "CanonicalBytes">, "AptosCanonical">
Source: src/Ucs05.ts:160
Added in v2.0.0
Signature
export declare const Bech32: S.filter<S.TemplateLiteral<`${string}1${string}`>>
Source: src/Ucs05.ts:52
Added in v2.0.0
Signature
export type Bech32 = typeof Bech32.Type
Source: src/Ucs05.ts:66
Added in v2.0.0
Signature
export declare const Bech32FromCanonicalBytesWithPrefix: ( prefix: HRP, options?: { validateHrp: boolean }) => S.transformOrFail< S.brand<S.TemplateLiteral<`0x${string}`>, "CanonicalBytes">, S.filter<S.TemplateLiteral<`${string}1${string}`>>, never>
Source: src/Ucs05.ts:336
Added in v2.0.0
Signature
export declare const CanonicalBytes: S.brand<S.TemplateLiteral<`0x${string}`>, "CanonicalBytes">
Source: src/Ucs05.ts:76
Added in v2.0.0
Signature
export type CanonicalBytes = typeof CanonicalBytes.Type
Source: src/Ucs05.ts:81
Added in v2.0.0
Signature
export declare const CosmosCanonical: S.brand< S.brand<S.TemplateLiteral<`0x${string}`>, "CanonicalBytes">, "CosmosCanonical">
Source: src/Ucs05.ts:88
Added in v2.0.0
Signature
export type CosmosCanonical = typeof CosmosCanonical.Type
Source: src/Ucs05.ts:93
Added in v2.0.0
Signature
export declare const CosmosDisplay: S.Struct<{ _tag: S.tag<"CosmosDisplay"> address: S.filter<S.TemplateLiteral<`${string}1${string}`>>}>
Source: src/Ucs05.ts:195
Added in v2.0.0
Signature
export type CosmosDisplay = typeof CosmosDisplay.Type
Source: src/Ucs05.ts:203
Added in v2.0.0
Signature
export declare const CosmosZkgm: S.brand<S.TemplateLiteral<`0x${string}`>, "CosmosZkgm">
Source: src/Ucs05.ts:99
Added in v2.0.0
Signature
export type CosmosZkgm = typeof CosmosZkgm.Type
Source: src/Ucs05.ts:104
Added in v2.0.0
Signature
export declare const ERC55: S.refine<`0x${string}`, S.Schema<string, string, never>>
Source: src/Ucs05.ts:166
Added in v2.0.0
Signature
export type ERC55 = typeof ERC55.Type
Source: src/Ucs05.ts:175
Added in v2.0.0
Signature
export declare const EvmCanonical: S.brand<S.brand<S.TemplateLiteral<`0x${string}`>, "CanonicalBytes">, "EvmCanonical">
Source: src/Ucs05.ts:127
Added in v2.0.0
Signature
export type EvmCanonical = typeof EvmCanonical.Type
Source: src/Ucs05.ts:132
Added in v2.0.0
Signature
export declare const EvmDisplay: S.Struct<{ _tag: S.tag<"EvmDisplay"> address: S.refine<`0x${string}`, S.Schema<string, string, never>>}>
Source: src/Ucs05.ts:181
Added in v2.0.0
Signature
export type EvmDisplay = typeof EvmDisplay.Type
Source: src/Ucs05.ts:189
Added in v2.0.0
Signature
export declare const EvmZkgm: S.brand< S.brand<S.brand<S.TemplateLiteral<`0x${string}`>, "CanonicalBytes">, "EvmCanonical">, "EvmZkgm">
Source: src/Ucs05.ts:138
Added in v2.0.0
Signature
export type EvmZkgm = typeof EvmZkgm.Type
Source: src/Ucs05.ts:143
Added in v2.0.0
Signature
export declare const HRP: S.filter<S.filter<typeof S.String>>
Source: src/Ucs05.ts:28
Added in v2.0.0
Signature
export type HRP = typeof HRP.Type
Source: src/Ucs05.ts:46
Added in v2.0.0
Union of possible valid address schemas.
Signature
export declare const ValidAddress: S.Union< [S.refine<`0x${string}`, S.Schema<string, string, never>>, S.filter<S.TemplateLiteral<`${string}1${string}`>>]>
Source: src/Ucs05.ts:309
Added in v2.0.0
Signature
export type ValidAddress = typeof ValidAddress.Type
Source: src/Ucs05.ts:314
Added in v2.0.0
Signature
export declare const Zkgm: S.brand<S.TemplateLiteral<`0x${string}`>, "Zkgm">
Source: src/Ucs05.ts:249
Added in v2.0.0
Signature
export type Zkgm = typeof Zkgm.Type
Source: src/Ucs05.ts:254
Added in v2.0.0
Signature
export declare const ZkgmFromAnyDisplay: S.transform< S.Union< [ S.Struct<{ _tag: S.tag<"CosmosDisplay">; address: S.filter<S.TemplateLiteral<`${string}1${string}`>> }>, S.Struct<{ _tag: S.tag<"EvmDisplay">; address: S.refine<`0x${string}`, S.Schema<string, string, never>> }> ] >, S.brand<S.TemplateLiteral<`0x${string}`>, "Zkgm">>
Source: src/Ucs05.ts:260
Added in v2.0.0
Signature
export declare const anyDisplayToCanonical: ( u: | { readonly _tag: "CosmosDisplay"; readonly address: `${string}1${string}` } | { readonly _tag: "EvmDisplay"; readonly address: `0x${string}` }) => Unify< | never | ReturnType< | (({ address }: { readonly _tag: "CosmosDisplay" readonly address: `${string}1${string}` }) => `0x${string}` & Brand<"CanonicalBytes">) | (({ address }: { readonly _tag: "EvmDisplay" readonly address: `0x${string}` }) => `0x${string}` & Brand<"CanonicalBytes">) >>
Source: src/Ucs05.ts:290
Added in v2.0.0
Signature
export declare const CosmosZkgmFromCanonicalBytesWithPrefix: ( prefix: string) => S.transform< S.transform< S.transformOrFail< S.brand<S.TemplateLiteral<`0x${string}`>, "CanonicalBytes">, S.filter<S.TemplateLiteral<`${string}1${string}`>>, never >, S.transform<typeof S.String, S.TemplateLiteral<`0x${string}`>> >, S.brand<S.TemplateLiteral<`0x${string}`>, "CosmosZkgm">>
Source: src/Ucs05.ts:115
Added in v2.0.0
Signature
export declare const anyDisplayToZkgm: ( u: | { readonly _tag: "CosmosDisplay"; readonly address: `${string}1${string}` } | { readonly _tag: "EvmDisplay"; readonly address: `0x${string}` }) => Unify< | never | ReturnType< | (({ address }: { readonly _tag: "CosmosDisplay" readonly address: `${string}1${string}` }) => Effect.Effect<`0x${string}`, ParseResult.ParseError, never>) | (({ address }: { readonly _tag: "EvmDisplay" readonly address: `0x${string}` }) => Effect.Effect<`0x${string}`, never, never>) >>
Source: src/Ucs05.ts:279
Added in v2.0.0