getVincentAbilityClient<Defined in: app-sdk/src/abilityClient/vincentAbilityClient.ts:114 A VincentAbilityClient provides a type-safe interface for executing abilities, for bothIpfsCid
,AbilityParamsSchema
,PkgNames
,PolicyMap
,PoliciesByPackageName
,ExecuteSuccessSchema
,ExecuteFailSchema
,PrecheckSuccessSchema
,PrecheckFailSchema
>(params
):VincentAbilityClient
<AbilityParamsSchema
,PoliciesByPackageName
,ExecuteSuccessSchema
,ExecuteFailSchema
,PrecheckSuccessSchema
,PrecheckFailSchema
>
precheck()
and execute()
functionality.
Type Parameters
IpfsCid
IpfsCid
extends string
AbilityParamsSchema
AbilityParamsSchema
extends ZodType
<any
, ZodTypeDef
, any
>
PkgNames
PkgNames
extends string
PolicyMap
PolicyMap
extends AbilityPolicyMap
<any
, PkgNames
>
PoliciesByPackageName
PoliciesByPackageName
extends { [K in string]: any }
ExecuteSuccessSchema
ExecuteSuccessSchema
extends ZodType
<any
, ZodTypeDef
, any
> = ZodUndefined
ExecuteFailSchema
ExecuteFailSchema
extends ZodType
<any
, ZodTypeDef
, any
> = ZodUndefined
PrecheckSuccessSchema
PrecheckSuccessSchema
extends ZodType
<any
, ZodTypeDef
, any
> = ZodUndefined
PrecheckFailSchema
PrecheckFailSchema
extends ZodType
<any
, ZodTypeDef
, any
> = ZodUndefined
Parameters
params
bundledVincentAbility
BundledVincentAbility
<VincentAbility
<AbilityParamsSchema
, PkgNames
, PolicyMap
, PoliciesByPackageName
, ExecuteSuccessSchema
, ExecuteFailSchema
, PrecheckSuccessSchema
, PrecheckFailSchema
, any
, any
>, IpfsCid
>
The bundled vincent ability that you want to interact with
ethersSigner
Signer
An ethers signer that has been configured with your delegatee key
Returns
VincentAbilityClient
<AbilityParamsSchema
, PoliciesByPackageName
, ExecuteSuccessSchema
, ExecuteFailSchema
, PrecheckSuccessSchema
, PrecheckFailSchema
>