@fuel-ts/program .InvocationCallResult
Represents the result of an invocation call.
Name | Type | Description |
---|---|---|
T | any | The type of the returned value. |
InvocationResult
<T
>
↳ InvocationCallResult
• new InvocationCallResult<T
>(funcScopes
, callResult
, isMultiCall
): InvocationCallResult
<T
>
Constructs an instance of InvocationCallResult.
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. |
packages/program/src/functions/invocation-results.ts:213
• Readonly
callResult: CallResult
packages/program/src/functions/invocation-results.ts:204
• 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
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
>(funcScopes
, callResult
, isMultiCall
): Promise
<InvocationCallResult
<T
>>
Builds an instance of InvocationCallResult.
Name |
---|
T |
Name | Type | Description |
---|---|---|
funcScopes | InvocationScopeLike | InvocationScopeLike [] | The function scopes. |
callResult | CallResult | The call result. |
isMultiCall | boolean | Whether it's a multi-call. |
Promise
<InvocationCallResult
<T
>>
The invocation call result.