Skip to content

Commit 6f6e864

Browse files
authored
chore: bump fuel-core to v0.43.0 (#1640)
1 parent 9e93f0f commit 6f6e864

File tree

9 files changed

+42
-14
lines changed

9 files changed

+42
-14
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616
CARGO_TERM_COLOR: always
1717
DASEL_VERSION: https://github.com/TomWright/dasel/releases/download/v2.3.6/dasel_linux_amd64
1818
RUSTFLAGS: "-D warnings"
19-
FUEL_CORE_VERSION: 0.42.0
19+
FUEL_CORE_VERSION: 0.43.0
2020
FUEL_CORE_PATCH_BRANCH: ""
2121
FUEL_CORE_PATCH_REVISION: ""
2222
RUST_VERSION: 1.85.0

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,14 @@ testcontainers = { version = "0.23", default-features = false }
9595
k256 = { version = "0.13", default-features = false }
9696

9797
# Dependencies from the `fuel-core` repository:
98-
fuel-core = { version = "0.42.0", default-features = false, features = [
98+
fuel-core = { version = "0.43.0", default-features = false, features = [
9999
"wasm-executor",
100100
] }
101-
fuel-core-chain-config = { version = "0.42.0", default-features = false }
102-
fuel-core-client = { version = "0.42.0", default-features = false }
103-
fuel-core-poa = { version = "0.42.0", default-features = false }
104-
fuel-core-services = { version = "0.42.0", default-features = false }
105-
fuel-core-types = { version = "0.42.0", default-features = false }
101+
fuel-core-chain-config = { version = "0.43.0", default-features = false }
102+
fuel-core-client = { version = "0.43.0", default-features = false }
103+
fuel-core-poa = { version = "0.43.0", default-features = false }
104+
fuel-core-services = { version = "0.43.0", default-features = false }
105+
fuel-core-types = { version = "0.43.0", default-features = false }
106106

107107
# Dependencies from the `fuel-vm` repository:
108108
fuel-asm = { version = "0.60.0" }

packages/fuels-accounts/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,4 @@ test-helpers = []
5151
keystore = ["dep:eth-keystore"]
5252
signer-aws-kms = ["dep:aws-sdk-kms", "dep:aws-config"]
5353
signer-google-kms = ["dep:google-cloud-kms"]
54+
fault-proving = ["fuel-core-types/fault-proving", "fuel-core-client?/fault-proving", "fuels-core/fault-proving"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pub const SUPPORTED_FUEL_CORE_VERSION: semver::Version = semver::Version::new(0, 42, 0);
1+
pub const SUPPORTED_FUEL_CORE_VERSION: semver::Version = semver::Version::new(0, 43, 0);

packages/fuels-accounts/src/schema/schema.sdl

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,11 @@ type DryRunFailureStatus {
332332
totalFee: U64!
333333
}
334334

335+
type DryRunStorageReads {
336+
txStatuses: [DryRunTransactionExecutionStatus!]!
337+
storageReads: [StorageReadReplayEvent!]!
338+
}
339+
335340
type DryRunSuccessStatus {
336341
programState: ProgramState
337342
receipts: [Receipt!]!
@@ -900,7 +905,7 @@ type PreconfirmationFailureStatus {
900905
transactionId: TransactionId!
901906
transaction: Transaction
902907
receipts: [Receipt!]
903-
resolvedOutputs: [Output!]
908+
resolvedOutputs: [ResolvedOutput!]
904909
}
905910

906911
type PreconfirmationSuccessStatus {
@@ -910,7 +915,7 @@ type PreconfirmationSuccessStatus {
910915
transactionId: TransactionId!
911916
transaction: Transaction
912917
receipts: [Receipt!]
913-
resolvedOutputs: [Output!]
918+
resolvedOutputs: [ResolvedOutput!]
914919
}
915920

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

1239+
type ResolvedOutput {
1240+
utxoId: UtxoId!
1241+
output: Output!
1242+
}
1243+
12291244
enum ReturnType {
12301245
RETURN
12311246
RETURN_DATA
@@ -1276,6 +1291,10 @@ input SpendQueryElementInput {
12761291
The maximum number of currencies for selection.
12771292
"""
12781293
max: U16
1294+
"""
1295+
If true, returns available coins instead of failing when the requested amount is unavailable.
1296+
"""
1297+
allowPartial: Boolean
12791298
}
12801299

12811300
type SqueezedOutStatus {
@@ -1329,7 +1348,11 @@ type Subscription {
13291348
"""
13301349
The ID of the transaction
13311350
"""
1332-
id: TransactionId!
1351+
id: TransactionId!,
1352+
"""
1353+
If true, accept to receive the preconfirmation status
1354+
"""
1355+
includePreconfirmation: Boolean
13331356
): TransactionStatus!
13341357
"""
13351358
Submits transaction to the `TxPool` and await either success or failure.
@@ -1338,9 +1361,9 @@ type Subscription {
13381361
"""
13391362
Submits the transaction to the `TxPool` and returns a stream of events.
13401363
Compared to the `submitAndAwait`, the stream also contains
1341-
`SubmittedStatus` as an intermediate state.
1364+
`SubmittedStatus` and potentially preconfirmation as an intermediate state.
13421365
"""
1343-
submitAndAwaitStatus(tx: HexString!, estimatePredicates: Boolean): TransactionStatus!
1366+
submitAndAwaitStatus(tx: HexString!, estimatePredicates: Boolean, includePreconfirmation: Boolean): TransactionStatus!
13441367
contractStorageSlots(contractId: ContractId!): StorageSlot!
13451368
contractStorageBalances(contractId: ContractId!): ContractBalance!
13461369
}
@@ -1382,7 +1405,7 @@ type Transaction {
13821405
outputContract: ContractOutput
13831406
witnesses: [HexString!]
13841407
receiptsRoot: Bytes32
1385-
status: TransactionStatus
1408+
status(includePreconfirmation: Boolean): TransactionStatus
13861409
script: HexString
13871410
scriptData: HexString
13881411
bytecodeWitnessIndex: U16

packages/fuels-core/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ tokio = { workspace = true, features = ["test-util", "macros"] }
4141
[features]
4242
default = ["std"]
4343
std = ["dep:fuel-core-client", "fuel-core-types/std"]
44+
fault-proving = ["fuel-core-chain-config/fault-proving", "fuel-core-types/fault-proving", "fuel-core-client?/fault-proving"]

packages/fuels-programs/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ test-case = { workspace = true }
2929
[features]
3030
default = ["std"]
3131
std = ["fuels-core/std", "fuels-accounts/std"]
32+
fault-proving = ["fuels-core/fault-proving", "fuels-accounts/fault-proving"]

packages/fuels-test-helpers/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@ default = ["fuels-accounts", "std"]
3636
std = ["fuels-accounts?/std", "fuels-core/std", "fuel-core-chain-config/std"]
3737
fuel-core-lib = ["dep:fuel-core"]
3838
rocksdb = ["fuel-core?/rocksdb"]
39+
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"]

packages/fuels/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,4 @@ rocksdb = ["fuels-test-helpers?/rocksdb"]
4444
accounts-signer-aws-kms = ["fuels-accounts/signer-aws-kms"]
4545
accounts-signer-google-kms = ["fuels-accounts/signer-google-kms"]
4646
accounts-keystore = ["fuels-accounts/keystore"]
47+
fault-proving = ["fuel-core-client?/fault-proving", "fuels-test-helpers?/fault-proving", "fuels-accounts/fault-proving", "fuels-core/fault-proving", "fuels-programs/fault-proving"]

0 commit comments

Comments
 (0)