@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
)
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. |
packages/program/src/functions/invocation-results.ts:144
• Readonly
functionScopes: InvocationScopeLike
[]
InvocationResult .functionScopes
packages/program/src/functions/invocation-results.ts:40
• Readonly
gasUsed: BN
packages/program/src/functions/invocation-results.ts:42
• Readonly
isMultiCall: boolean
packages/program/src/functions/invocation-results.ts:41
• Readonly
logs: any
[]
packages/program/src/functions/invocation-results.ts:133
• Readonly
program: AbstractProgram
packages/program/src/functions/invocation-results.ts:132
• Readonly
transactionId: string
packages/program/src/functions/invocation-results.ts:129
• Readonly
transactionResponse: TransactionResponse
packages/program/src/functions/invocation-results.ts:130
• Readonly
transactionResult: TransactionResult
<TTransactionType
>
packages/program/src/functions/invocation-results.ts:131
• Readonly
value: T
packages/program/src/functions/invocation-results.ts:43
▸ Protected
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:108
▸ Protected
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:82
▸ Static
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.