Ƭ CallConfig<T
>: Object
Represents configuration for calling a contract function.
Name | Type | Description |
---|---|---|
T | unknown | Type of the function's arguments. |
Name | Type |
---|---|
args | T |
callParameters? | CallParams |
forward? | CoinQuantity |
func | FunctionFragment |
program | AbstractProgram |
txParameters? | TxParams |
packages/program/src/types.ts:51
Ƭ CallParams: Partial
<{ forward
: CoinQuantityLike
; gasLimit
: BigNumberish
}>
Represents call parameters for a contract call.
packages/program/src/types.ts:27
Ƭ ContractCall: Object
Represents a contract call.
Name | Type |
---|---|
amount? | BigNumberish |
assetId? | BytesLike |
contractId | AbstractAddress |
data | BytesLike |
fnSelector | string |
gas? | BigNumberish |
isInputDataPointer | boolean |
isOutputDataHeap | boolean |
outputEncodedLength | number |
packages/program/src/types.ts:12
Ƭ InvocationScopeLike<T
>: Object
Represents a like object of InvocationScope with a method to get its call configuration.
Name | Type | Description |
---|---|---|
T | unknown | Type of the function's arguments. |
Name | Type |
---|---|
getCallConfig | () => CallConfig <T > |
packages/program/src/types.ts:82
Ƭ InvokeFunction<TArgs
, TReturn
>: (...args
: TArgs
) => FunctionInvocationScope
<TArgs
, TReturn
>
Name | Type | Description |
---|---|---|
TArgs | extends any [] = any [] | Type of the function's arguments. |
TReturn | any | Type of the function's return value. |
▸ (...args
): FunctionInvocationScope
<TArgs
, TReturn
>
Represents a function that can be invoked.
Name | Type |
---|---|
...args | TArgs |
FunctionInvocationScope
<TArgs
, TReturn
>
packages/program/src/types.ts:67
Ƭ RevertReason: "RequireFailed"
| "TransferToAddressFailed"
| "SendMessageFailed"
| "AssertEqFailed"
| "AssertFailed"
| "Unknown"
Represents the possible reasons for a revert.
packages/program/src/revert/revert-error.ts:15
Ƭ TransactionCostOptions: Partial
<{ fundTransaction
: boolean
; gasPrice
: BigNumberish
}>
Represents options for calculating the transaction cost.
packages/program/src/types.ts:93
Ƭ TxParams: Partial
<{ gasLimit
: BigNumberish
; gasPrice
: BigNumberish
; maturity?
: number
; maxFee?
: BigNumberish
; variableOutputs
: number
; witnessLimit?
: BigNumberish
}>
Represents transaction parameters for a contract call.