Ƭ 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 |
externalAbis | Record <string , JsonAbi > |
forward? | CoinQuantity |
func | FunctionFragment |
program | AbstractProgram |
txParameters? | TxParams |
Ƭ
CallParams:
Partial
<{
forward
:
CoinQuantityLike
;
gasLimit
:
BigNumberish
}>
Represents call parameters for a contract call.
Ƭ 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 |
Ƭ 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. |
Ƭ
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.
Ƭ RevertReason: "RequireFailed"
| "TransferToAddressFailed"
| "SendMessageFailed"
| "AssertEqFailed"
| "AssertFailed"
| "Unknown"
Represents the possible reasons for a revert.
Ƭ TransactionCostOptions: Partial
<{ fundTransaction
: boolean
; gasPrice
: BigNumberish
}>
Represents options for calculating the transaction cost.
Ƭ TxParams: Partial
<{ gasLimit
: BigNumberish
; gasPrice
: BigNumberish
; maturity?
: number
; maxFee?
: BigNumberish
; variableOutputs
: number
; witnessLimit?
: BigNumberish
}>
Represents transaction parameters for a contract call.