Class: FunctionInvocationResult<T, TTransactionType>
@fuel-ts/program.FunctionInvocationResult
Represents the result of a function invocation with transaction details.
Type parameters
Name | Type | Description |
---|---|---|
T | any | The type of the returned value. |
TTransactionType | void | The type of the transaction. |
Hierarchy
↳
FunctionInvocationResult
Constructors
constructor
• new FunctionInvocationResult<T
, TTransactionType
>(funcScopes
, transactionResponse
, transactionResult
, program
, isMultiCall
): FunctionInvocationResult
<T
, TTransactionType
>
Constructs an instance of FunctionInvocationResult.
Type parameters
Name | Type |
---|---|
T | any |
TTransactionType | void |
Parameters
Name | Type | Description |
---|---|---|
funcScopes | InvocationScopeLike | InvocationScopeLike [] | The function scopes. |
transactionResponse | TransactionResponse | The transaction response. |
transactionResult | TransactionResult <TTransactionType > | The transaction result. |
program | AbstractProgram | The program. |
isMultiCall | boolean | Whether it's a multi-call. |
Returns
FunctionInvocationResult
<T
, TTransactionType
>
Overrides
Defined in
functions/invocation-results.ts:156
Properties
functionScopes
• Readonly
functionScopes: InvocationScopeLike
[]
Inherited from
InvocationResult.functionScopes
Defined in
functions/invocation-results.ts:41
gasUsed
• Readonly
gasUsed: BN
Inherited from
Defined in
functions/invocation-results.ts:43
isMultiCall
• Readonly
isMultiCall: boolean
Inherited from
Defined in
functions/invocation-results.ts:42
logs
• Readonly
logs: any
[]
Defined in
functions/invocation-results.ts:145
program
• Readonly
program: AbstractProgram
Defined in
functions/invocation-results.ts:144
transactionId
• Readonly
transactionId: string
Defined in
functions/invocation-results.ts:141
transactionResponse
• Readonly
transactionResponse: TransactionResponse
Defined in
functions/invocation-results.ts:142
transactionResult
• Readonly
transactionResult: TransactionResult
<TTransactionType
>
Defined in
functions/invocation-results.ts:143
value
• Readonly
value: T
Inherited from
Defined in
functions/invocation-results.ts:44
Methods
getAbiFromAllCalls
▸ getAbiFromAllCalls(): JsonAbisFromAllCalls
Gets the ABI from all calls.
Returns
The ABIs from all calls.
Inherited from
InvocationResult.getAbiFromAllCalls
Defined in
functions/invocation-results.ts:83
getDecodedLogs
▸ getDecodedLogs(receipts
): unknown
[]
Decodes the logs from the receipts.
Parameters
Name | Type | Description |
---|---|---|
receipts | TransactionResultReceipt [] | The transaction result receipts. |
Returns
unknown
[]
The decoded logs.
Inherited from
InvocationResult.getDecodedLogs
Defined in
functions/invocation-results.ts:119
getDecodedValue
▸ getDecodedValue(callResult
): T
Decodes the value from the call result.
Parameters
Name | Type | Description |
---|---|---|
callResult | CallResult | The call result. |
Returns
T
The decoded value.
Inherited from
InvocationResult.getDecodedValue
Defined in
functions/invocation-results.ts:93
build
▸ build<T
, TTransactionType
>(funcScope
, transactionResponse
, isMultiCall
, program
): Promise
<FunctionInvocationResult
<T
, TTransactionType
>>
Builds an instance of FunctionInvocationResult.
Type parameters
Name | Type |
---|---|
T | T |
TTransactionType | void |
Parameters
Name | Type | Description |
---|---|---|
funcScope | InvocationScopeLike | InvocationScopeLike [] | The function scope. |
transactionResponse | TransactionResponse | The transaction response. |
isMultiCall | boolean | Whether it's a multi-call. |
program | AbstractProgram | The program. |
Returns
Promise
<FunctionInvocationResult
<T
, TTransactionType
>>
The function invocation result.