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
Parameter | Type |
---|---|
config | { descriptor : T ; id? : string ; } |
config.descriptor | T |
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
Parameter | Type |
---|---|
config | { descriptor : T ; id? : string ; type : "ink" ; } |
config.descriptor | T |
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
Parameter | Type |
---|---|
config | { abi : T ; id? : string ; type : "solidity" ; } |
config.abi | T |
config.id? | string |
config.type | "solidity" |
Returns
SolidityContract
<T
>
Deprecated
Specify the contract type explicitly