@perspect3vism/ad4m / Exports / HolochainLanguageDelegate
Interface: HolochainLanguageDelegate
Table of contents
Methods
Methods
call
▸ call(dnaNick
, zomeName
, fnName
, params
): Promise
<any
>
Makes a single call to a given holochain DNA. Underlying implementation puts these calls into a sync fifo queue
Parameters
Name | Type |
---|---|
dnaNick | string |
zomeName | string |
fnName | string |
params | string | object |
Returns
Promise
<any
>
Defined in
language/LanguageContext.ts:32 (opens in a new tab)
callAsync
▸ callAsync(calls
, timeoutMs?
): Promise
<any
[]>
Makes all supplied calls in parallel to the provided holochain dna... Should only be called on read operations to avoid source chain async mutation errors
Parameters
Name | Type |
---|---|
calls | { dnaNick : string ; fnName : string ; params : string | object ; zomeName : string }[] |
timeoutMs? | number |
Returns
Promise
<any
[]>
Defined in
language/LanguageContext.ts:34 (opens in a new tab)
registerDNAs
▸ registerDNAs(dnas
, holochainSignalCallback?
): Promise
<void
>
Installs/registers a given DNA in the ad4m-executor
Parameters
Name | Type |
---|---|
dnas | Dna [] |
holochainSignalCallback? | AppSignalCb |
Returns
Promise
<void
>