Module: @fuel-ts/program
Classes
Interfaces
Type Aliases
CallConfig
Ƭ CallConfig<T>: Object
Represents configuration for calling a contract function.
Type parameters
| Name | Type | Description |
|---|---|---|
T | unknown | Type of the function's arguments. |
Type declaration
| Name | Type |
|---|---|
args | T |
callParameters? | CallParams |
externalAbis | Record<string, JsonAbi> |
forward? | CoinQuantity |
func | FunctionFragment |
program | AbstractProgram |
txParameters? | TxParams |
Defined in
CallParams
Ƭ CallParams: Partial<{ forward: CoinQuantityLike ; gasLimit: BigNumberish }>
Represents call parameters for a contract call.
Defined in
ContractCall
Ƭ ContractCall: Object
Represents a contract call.
Type declaration
| Name | Type |
|---|---|
amount? | BigNumberish |
assetId? | BytesLike |
contractId | AbstractAddress |
data | BytesLike |
externalContractsAbis? | Record<string, JsonAbi> |
fnSelectorBytes | Uint8Array |
gas? | BigNumberish |
Defined in
DryRunResult
Ƭ DryRunResult<TReturn>: Object
Type parameters
| Name |
|---|
TReturn |
Type declaration
| Name | Type |
|---|---|
callResult | CallResult |
functionScopes | InvocationScopeLike[] |
gasUsed | BN |
isMultiCall | boolean |
value | TReturn |
Defined in
FunctionResult
Ƭ FunctionResult<TReturn>: Object
Type parameters
| Name |
|---|
TReturn |
Type declaration
| Name | Type |
|---|---|
functionScopes | InvocationScopeLike[] |
gasUsed | BN |
isMultiCall | boolean |
logs | any[] |
program | AbstractProgram |
transactionId | string |
transactionResponse | TransactionResponse |
transactionResult | TransactionResult<Script> |
value | TReturn |
Defined in
InvocationScopeLike
Ƭ InvocationScopeLike<T>: Object
Represents a like object of InvocationScope with a method to get its call configuration.
Type parameters
| Name | Type | Description |
|---|---|---|
T | unknown | Type of the function's arguments. |
Type declaration
| Name | Type |
|---|---|
getCallConfig | () => CallConfig<T> |
Defined in
TransactionCostOptions
Ƭ TransactionCostOptions: Partial<{ fundTransaction: boolean }>
Represents options for calculating the transaction cost.
Defined in
TxParams
Ƭ TxParams: Partial<{ gasLimit: BigNumberish ; maturity?: number ; maxFee?: BigNumberish ; tip: BigNumberish ; variableOutputs: number ; witnessLimit?: BigNumberish }>
Represents transaction parameters for a contract call.
