@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
>
functions/invocation-results.ts:155
• Readonly
functionScopes: InvocationScopeLike
[]
InvocationResult .functionScopes
functions/invocation-results.ts:41
• Readonly
gasUsed: BN
functions/invocation-results.ts:43
• Readonly
isMultiCall: boolean
functions/invocation-results.ts:42
• Readonly
logs: any
[]
functions/invocation-results.ts:144
• Readonly
program: AbstractProgram
functions/invocation-results.ts:143
• Readonly
transactionId: string
functions/invocation-results.ts:140
• Readonly
transactionResponse: TransactionResponse
functions/invocation-results.ts:141
• Readonly
transactionResult: TransactionResult
<TTransactionType
>
functions/invocation-results.ts:142
• Readonly
value: T
functions/invocation-results.ts:44
▸ getAbiFromAllCalls(): JsonAbisFromAllCalls
Gets the ABI from all calls.
The ABIs from all calls.
InvocationResult .getAbiFromAllCalls
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
functions/invocation-results.ts:118
▸ getDecodedValue(callResult
): T
Decodes the value from the call result.
Name | Type | Description |
---|---|---|
callResult | CallResult | The call result. |
T
The decoded value.
InvocationResult .getDecodedValue
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.