@codesoul-co/hypha-adapters-local / execution-provider-values
- Package index:
@codesoul-co/hypha-adapters-local - Source:
packages/adapters-local/src/execution-provider-values.ts - Exports: 5
Using this module
Use the Execution provider values module for binding external or local providers to Hypha ports. It exports 5 functions.
Import from the package entrypoint
ts
import {
cloneExecutionValue,
hashExecutionBytes,
hashExecutionText,
hashExecutionValue,
shortExecutionHash,
} from '@codesoul-co/hypha-adapters-local';Usage patterns
- The module exposes 5 functions as direct operation entrypoints. Every overload, required/optional parameter, and return type is documented below.
Public exports
| Symbol | Kind | Signature | Description |
|---|---|---|---|
cloneExecutionValue | function | cloneExecutionValue<T>(value: T): T | Clone Execution Value function with 1 public call signature; parameters and return types are listed below. |
hashExecutionBytes | function | hashExecutionBytes(value: Uint8Array): string | Hash Execution Bytes function with 1 public call signature; parameters and return types are listed below. |
hashExecutionText | function | hashExecutionText(value: string): string | Hash Execution Text function with 1 public call signature; parameters and return types are listed below. |
hashExecutionValue | function | hashExecutionValue(value: unknown): string | Hash Execution Value function with 1 public call signature; parameters and return types are listed below. |
shortExecutionHash | function | shortExecutionHash(value: string, length?: number): string | Short Execution Hash function with 1 public call signature; parameters and return types are listed below. |
cloneExecutionValue
Clone Execution Value function with 1 public call signature; parameters and return types are listed below.
- Kind: function
- Import:
import { cloneExecutionValue } from '@codesoul-co/hypha-adapters-local'; - Source module:
execution-provider-values
Declaration
text
export declare function cloneExecutionValue<T>(value: T): T;Call signature
text
cloneExecutionValue<T>(value: T): TParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
value | T | Yes | Required parameter; accepted values are defined by the type column. |
Returns
- Type:
T - Description: The return contract is defined by the type shown above.
hashExecutionBytes
Hash Execution Bytes function with 1 public call signature; parameters and return types are listed below.
- Kind: function
- Import:
import { hashExecutionBytes } from '@codesoul-co/hypha-adapters-local'; - Source module:
execution-provider-values
Declaration
text
export declare function hashExecutionBytes(value: Uint8Array): string;Call signature
text
hashExecutionBytes(value: Uint8Array): stringParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
value | Uint8Array<ArrayBufferLike> | Yes | Required parameter; accepted values are defined by the type column. |
Returns
- Type:
string - Description: The return contract is defined by the type shown above.
hashExecutionText
Hash Execution Text function with 1 public call signature; parameters and return types are listed below.
- Kind: function
- Import:
import { hashExecutionText } from '@codesoul-co/hypha-adapters-local'; - Source module:
execution-provider-values
Declaration
text
export declare function hashExecutionText(value: string): string;Call signature
text
hashExecutionText(value: string): stringParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
value | string | Yes | Required parameter; accepted values are defined by the type column. |
Returns
- Type:
string - Description: The return contract is defined by the type shown above.
hashExecutionValue
Hash Execution Value function with 1 public call signature; parameters and return types are listed below.
- Kind: function
- Import:
import { hashExecutionValue } from '@codesoul-co/hypha-adapters-local'; - Source module:
execution-provider-values
Declaration
text
export declare function hashExecutionValue(value: unknown): string;Call signature
text
hashExecutionValue(value: unknown): stringParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
value | unknown | Yes | Required parameter; accepted values are defined by the type column. |
Returns
- Type:
string - Description: The return contract is defined by the type shown above.
shortExecutionHash
Short Execution Hash function with 1 public call signature; parameters and return types are listed below.
- Kind: function
- Import:
import { shortExecutionHash } from '@codesoul-co/hypha-adapters-local'; - Source module:
execution-provider-values
Declaration
text
export declare function shortExecutionHash(value: string, length?: number): string;Call signature
text
shortExecutionHash(value: string, length?: number): stringParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
value | string | Yes | Required parameter; accepted values are defined by the type column. |
length | number | No | Optional parameter; accepted values are defined by the type column. |
Returns
- Type:
string - Description: The return contract is defined by the type shown above.
