Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:
CARGO_TERM_COLOR: always
DASEL_VERSION: https://github.com/TomWright/dasel/releases/download/v2.3.6/dasel_linux_amd64
RUSTFLAGS: "-D warnings"
FUEL_CORE_VERSION: 0.42.0
FUEL_CORE_VERSION: 0.43.0
FUEL_CORE_PATCH_BRANCH: ""
FUEL_CORE_PATCH_REVISION: ""
RUST_VERSION: 1.85.0
Expand Down
12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ testcontainers = { version = "0.23", default-features = false }
k256 = { version = "0.13", default-features = false }

# Dependencies from the `fuel-core` repository:
fuel-core = { version = "0.42.0", default-features = false, features = [
fuel-core = { version = "0.43.0", default-features = false, features = [
"wasm-executor",
] }
fuel-core-chain-config = { version = "0.42.0", default-features = false }
fuel-core-client = { version = "0.42.0", default-features = false }
fuel-core-poa = { version = "0.42.0", default-features = false }
fuel-core-services = { version = "0.42.0", default-features = false }
fuel-core-types = { version = "0.42.0", default-features = false }
fuel-core-chain-config = { version = "0.43.0", default-features = false }
fuel-core-client = { version = "0.43.0", default-features = false }
fuel-core-poa = { version = "0.43.0", default-features = false }
fuel-core-services = { version = "0.43.0", default-features = false }
fuel-core-types = { version = "0.43.0", default-features = false }

# Dependencies from the `fuel-vm` repository:
fuel-asm = { version = "0.60.0" }
Expand Down
1 change: 1 addition & 0 deletions packages/fuels-accounts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@ test-helpers = []
keystore = ["dep:eth-keystore"]
signer-aws-kms = ["dep:aws-sdk-kms", "dep:aws-config"]
signer-google-kms = ["dep:google-cloud-kms"]
fault-proving = ["fuel-core-types/fault-proving", "fuel-core-client?/fault-proving", "fuels-core/fault-proving"]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pub const SUPPORTED_FUEL_CORE_VERSION: semver::Version = semver::Version::new(0, 42, 0);
pub const SUPPORTED_FUEL_CORE_VERSION: semver::Version = semver::Version::new(0, 43, 0);
35 changes: 29 additions & 6 deletions packages/fuels-accounts/src/schema/schema.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,11 @@ type DryRunFailureStatus {
totalFee: U64!
}

type DryRunStorageReads {
txStatuses: [DryRunTransactionExecutionStatus!]!
storageReads: [StorageReadReplayEvent!]!
}

type DryRunSuccessStatus {
programState: ProgramState
receipts: [Receipt!]!
Expand Down Expand Up @@ -900,7 +905,7 @@ type PreconfirmationFailureStatus {
transactionId: TransactionId!
transaction: Transaction
receipts: [Receipt!]
resolvedOutputs: [Output!]
resolvedOutputs: [ResolvedOutput!]
}

type PreconfirmationSuccessStatus {
Expand All @@ -910,7 +915,7 @@ type PreconfirmationSuccessStatus {
transactionId: TransactionId!
transaction: Transaction
receipts: [Receipt!]
resolvedOutputs: [Output!]
resolvedOutputs: [ResolvedOutput!]
}

input Predicate {
Expand Down Expand Up @@ -1055,6 +1060,11 @@ type Query {
"""
dryRun(txs: [HexString!]!, utxoValidation: Boolean, gasPrice: U64, blockHeight: U32): [DryRunTransactionExecutionStatus!]!
"""
Execute a dry-run of multiple transactions using a fork of current state, no changes are committed.
Also records accesses, so the execution can be replicated locally.
"""
dryRunRecordStorageReads(txs: [HexString!]!, utxoValidation: Boolean, gasPrice: U64, blockHeight: U32): DryRunStorageReads!
"""
Get execution trace for an already-executed block.
"""
storageReadReplay(height: U32!): [StorageReadReplayEvent!]!
Expand Down Expand Up @@ -1226,6 +1236,11 @@ input RequiredBalance {
changePolicy: ChangePolicy!
}

type ResolvedOutput {
utxoId: UtxoId!
output: Output!
}

enum ReturnType {
RETURN
RETURN_DATA
Expand Down Expand Up @@ -1276,6 +1291,10 @@ input SpendQueryElementInput {
The maximum number of currencies for selection.
"""
max: U16
"""
If true, returns available coins instead of failing when the requested amount is unavailable.
"""
allowPartial: Boolean
}

type SqueezedOutStatus {
Expand Down Expand Up @@ -1329,7 +1348,11 @@ type Subscription {
"""
The ID of the transaction
"""
id: TransactionId!
id: TransactionId!,
"""
If true, accept to receive the preconfirmation status
"""
includePreconfirmation: Boolean
): TransactionStatus!
"""
Submits transaction to the `TxPool` and await either success or failure.
Expand All @@ -1338,9 +1361,9 @@ type Subscription {
"""
Submits the transaction to the `TxPool` and returns a stream of events.
Compared to the `submitAndAwait`, the stream also contains
`SubmittedStatus` as an intermediate state.
`SubmittedStatus` and potentially preconfirmation as an intermediate state.
"""
submitAndAwaitStatus(tx: HexString!, estimatePredicates: Boolean): TransactionStatus!
submitAndAwaitStatus(tx: HexString!, estimatePredicates: Boolean, includePreconfirmation: Boolean): TransactionStatus!
contractStorageSlots(contractId: ContractId!): StorageSlot!
contractStorageBalances(contractId: ContractId!): ContractBalance!
}
Expand Down Expand Up @@ -1382,7 +1405,7 @@ type Transaction {
outputContract: ContractOutput
witnesses: [HexString!]
receiptsRoot: Bytes32
status: TransactionStatus
status(includePreconfirmation: Boolean): TransactionStatus
script: HexString
scriptData: HexString
bytecodeWitnessIndex: U16
Expand Down
1 change: 1 addition & 0 deletions packages/fuels-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ tokio = { workspace = true, features = ["test-util", "macros"] }
[features]
default = ["std"]
std = ["dep:fuel-core-client", "fuel-core-types/std"]
fault-proving = ["fuel-core-chain-config/fault-proving", "fuel-core-types/fault-proving", "fuel-core-client?/fault-proving"]
1 change: 1 addition & 0 deletions packages/fuels-programs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ test-case = { workspace = true }
[features]
default = ["std"]
std = ["fuels-core/std", "fuels-accounts/std"]
fault-proving = ["fuels-core/fault-proving", "fuels-accounts/fault-proving"]
1 change: 1 addition & 0 deletions packages/fuels-test-helpers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ default = ["fuels-accounts", "std"]
std = ["fuels-accounts?/std", "fuels-core/std", "fuel-core-chain-config/std"]
fuel-core-lib = ["dep:fuel-core"]
rocksdb = ["fuel-core?/rocksdb"]
fault-proving = ["fuel-core?/fault-proving", "fuel-core-chain-config/fault-proving", "fuel-core-client/fault-proving", "fuel-core-poa/fault-proving", "fuels-accounts?/fault-proving", "fuels-core/fault-proving"]
1 change: 1 addition & 0 deletions packages/fuels/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ rocksdb = ["fuels-test-helpers?/rocksdb"]
accounts-signer-aws-kms = ["fuels-accounts/signer-aws-kms"]
accounts-signer-google-kms = ["fuels-accounts/signer-google-kms"]
accounts-keystore = ["fuels-accounts/keystore"]
fault-proving = ["fuel-core-client?/fault-proving", "fuels-test-helpers?/fault-proving", "fuels-accounts/fault-proving", "fuels-core/fault-proving", "fuels-programs/fault-proving"]
Loading