@fuel-ts/program .InvocationResult
Represents the result of a function invocation, with decoded logs and gas usage.
Name | Type | Description |
---|---|---|
T | any | The type of the returned value. |
InvocationResult
• new InvocationResult<T
>(funcScopes
, callResult
, isMultiCall
): InvocationResult
<T
>
Constructs an instance of InvocationResult.
Name | Type |
---|---|
T | any |
Name | Type | Description |
---|---|---|
funcScopes | InvocationScopeLike | InvocationScopeLike [] | The function scopes. |
callResult | CallResult | The call result. |
isMultiCall | boolean | Whether it's a multi-call. |
InvocationResult
<T
>
functions/invocation-results.ts:53
• Readonly
functionScopes: InvocationScopeLike
[]
functions/invocation-results.ts:41
• Readonly
gasUsed: BN
functions/invocation-results.ts:43
• Readonly
isMultiCall: boolean
functions/invocation-results.ts:42
• Readonly
value: T
functions/invocation-results.ts:44
▸ getAbiFromAllCalls(): JsonAbisFromAllCalls
Gets the ABI from all calls.
The ABIs from all calls.
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.
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.
functions/invocation-results.ts:93
▸ getFirstCallConfig(): undefined
| CallConfig
Gets the first call config.
undefined
| CallConfig
The first call config.