Class: InvocationCallResult<T>
@fuel-ts/program.InvocationCallResult
Represents the result of an invocation call.
Type parameters
Name | Type | Description |
---|---|---|
T | any | The type of the returned value. |
Hierarchy
↳
InvocationCallResult
Constructors
constructor
• new InvocationCallResult<T
>(funcScopes
, callResult
, isMultiCall
): InvocationCallResult
<T
>
Constructs an instance of InvocationCallResult.
Type parameters
Name | Type |
---|---|
T | any |
Parameters
Name | Type | Description |
---|---|---|
funcScopes | InvocationScopeLike | InvocationScopeLike [] | The function scopes. |
callResult | CallResult | The call result. |
isMultiCall | boolean | Whether it's a multi-call. |
Returns
Overrides
Defined in
functions/invocation-results.ts:213
Properties
callResult
• Readonly
callResult: CallResult
Defined in
functions/invocation-results.ts:204
functionScopes
• Readonly
functionScopes: InvocationScopeLike
[]
Inherited from
InvocationResult.functionScopes
Defined in
functions/invocation-results.ts:41
gasUsed
• Readonly
gasUsed: BN
Inherited from
Defined in
functions/invocation-results.ts:43
isMultiCall
• Readonly
isMultiCall: boolean
Inherited from
Defined in
functions/invocation-results.ts:42
value
• Readonly
value: T
Inherited from
Defined in
functions/invocation-results.ts:44
Methods
getAbiFromAllCalls
▸ getAbiFromAllCalls(): JsonAbisFromAllCalls
Gets the ABI from all calls.
Returns
The ABIs from all calls.
Inherited from
InvocationResult.getAbiFromAllCalls
Defined in
functions/invocation-results.ts:83
getDecodedLogs
▸ getDecodedLogs(receipts
): unknown
[]
Decodes the logs from the receipts.
Parameters
Name | Type | Description |
---|---|---|
receipts | TransactionResultReceipt [] | The transaction result receipts. |
Returns
unknown
[]
The decoded logs.
Inherited from
InvocationResult.getDecodedLogs
Defined in
functions/invocation-results.ts:119
getDecodedValue
▸ getDecodedValue(callResult
): T
Decodes the value from the call result.
Parameters
Name | Type | Description |
---|---|---|
callResult | CallResult | The call result. |
Returns
T
The decoded value.
Inherited from
InvocationResult.getDecodedValue
Defined in
functions/invocation-results.ts:93
build
▸ build<T
>(funcScopes
, callResult
, isMultiCall
): Promise
<InvocationCallResult
<T
>>
Builds an instance of InvocationCallResult.
Type parameters
Name |
---|
T |
Parameters
Name | Type | Description |
---|---|---|
funcScopes | InvocationScopeLike | InvocationScopeLike [] | The function scopes. |
callResult | CallResult | The call result. |
isMultiCall | boolean | Whether it's a multi-call. |
Returns
Promise
<InvocationCallResult
<T
>>
The invocation call result.