@fuel-ts/program .FunctionInvocationResult
Represents the result of a function invocation with transaction details.
Name | Type | Description |
---|---|---|
T | any | The type of the returned value. |
TTransactionType | void | The type of the transaction. |
InvocationResult
<T
>
↳ FunctionInvocationResult
• new FunctionInvocationResult<T
, TTransactionType
>(funcScopes
, transactionResponse
, transactionResult
, program
, isMultiCall
): FunctionInvocationResult
<T
, TTransactionType
>
Constructs an instance of FunctionInvocationResult.
Name | Type |
---|---|
T | any |
TTransactionType | void |
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. |
FunctionInvocationResult
<T
, TTransactionType
>
packages/program/src/functions/invocation-results.ts:156
• Readonly
functionScopes: InvocationScopeLike
[]
InvocationResult .functionScopes
packages/program/src/functions/invocation-results.ts:41
• Readonly
gasUsed: BN
packages/program/src/functions/invocation-results.ts:43
• Readonly
isMultiCall: boolean
packages/program/src/functions/invocation-results.ts:42
• Readonly
logs: any
[]
packages/program/src/functions/invocation-results.ts:145
• Readonly
program: AbstractProgram
packages/program/src/functions/invocation-results.ts:144
• Readonly
transactionId: string
packages/program/src/functions/invocation-results.ts:141
• Readonly
transactionResponse: TransactionResponse
packages/program/src/functions/invocation-results.ts:142
• Readonly
transactionResult: TransactionResult
<TTransactionType
>
packages/program/src/functions/invocation-results.ts:143
• Readonly
value: T
packages/program/src/functions/invocation-results.ts:44
▸ getAbiFromAllCalls(): JsonAbisFromAllCalls
Gets the ABI from all calls.
The ABIs from all calls.
InvocationResult .getAbiFromAllCalls
packages/program/src/functions/invocation-results.ts:83
▸ getDecodedLogs(receipts
): unknown
[]
Decodes the logs from the receipts.
Name | Type | Description |
---|---|---|
receipts | TransactionResultReceipt [] | The transaction result receipts. |
unknown
[]
The decoded logs.
InvocationResult .getDecodedLogs
packages/program/src/functions/invocation-results.ts:119
▸ getDecodedValue(callResult
): T
Decodes the value from the call result.
Name | Type | Description |
---|---|---|
callResult | CallResult | The call result. |
T
The decoded value.
InvocationResult .getDecodedValue
packages/program/src/functions/invocation-results.ts:93
▸ build<T
, TTransactionType
>(funcScope
, transactionResponse
, isMultiCall
, program
): Promise
<FunctionInvocationResult
<T
, TTransactionType
>>
Builds an instance of FunctionInvocationResult.
Name | Type |
---|---|
T | T |
TTransactionType | void |
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. |
Promise
<FunctionInvocationResult
<T
, TTransactionType
>>
The function invocation result.