Skip to main content

defineContract()

Call Signature

function defineContract<T>(config): InkContract<T>;

Defined in: packages/core/src/contract/contract.ts:27

Type Parameters

Type Parameter
T extends GenericInkDescriptors

Parameters

ParameterType
config{ descriptor: T; id?: string; }
config.descriptorT
config.id?string

Returns

InkContract<T>

Deprecated

Specify the contract type explicitly

Call Signature

function defineContract<T>(config): InkContract<T>;

Defined in: packages/core/src/contract/contract.ts:31

Type Parameters

Type Parameter
T extends GenericInkDescriptors

Parameters

ParameterType
config{ descriptor: T; id?: string; type: "ink"; }
config.descriptorT
config.id?string
config.type"ink"

Returns

InkContract<T>

Deprecated

Specify the contract type explicitly

Call Signature

function defineContract<T>(config): SolidityContract<T>;

Defined in: packages/core/src/contract/contract.ts:36

Type Parameters

Type Parameter
T extends Abi

Parameters

ParameterType
config{ abi: T; id?: string; type: "solidity"; }
config.abiT
config.id?string
config.type"solidity"

Returns

SolidityContract<T>

Deprecated

Specify the contract type explicitly