Utils.ts
This module contains generic utilities.
Added in v2.0.0
Signature
export declare class CryptoError
Added in v2.0.0
Source: src/Utils.ts:18
Enusre input is hex encoded (e.g. 0x${string}
), otherwise encode as hex.
Signature
export declare const ensureHex: <T extends string>(s: T) => `0x${string}`
Source: src/Utils.ts:67
Added in v2.0.0
Signature
export declare const generateSalt: (rpcType: RpcType) => Effect.Effect<`0x${string}`, CryptoError, never>
Source: src/Utils.ts:26
Added in v2.0.0
Determine timeout timestamp for a fungible asset order.
Signature
export declare function getTimeoutInNanoseconds24HoursFromNow(): bigint
Source: src/Utils.ts:77
Added in v2.0.0
Signature
export declare const verifySalt: (hex: `0x${string}`) => Effect.Effect<boolean>
Source: src/Utils.ts:51
Added in v2.0.0