diff --git a/.changeset/moody-masks-live.md b/.changeset/moody-masks-live.md new file mode 100644 index 00000000000..b5845d167df --- /dev/null +++ b/.changeset/moody-masks-live.md @@ -0,0 +1,7 @@ +--- +"create-fuels": patch +"@fuel-ts/versions": patch +"@fuel-ts/account": patch +--- + +chore: upgrade `fuel-core@0.35.0` diff --git a/internal/fuel-core/VERSION b/internal/fuel-core/VERSION index 85e60ed180c..7b52f5e5178 100644 --- a/internal/fuel-core/VERSION +++ b/internal/fuel-core/VERSION @@ -1 +1 @@ -0.34.0 +0.35.0 diff --git a/packages/account/src/providers/fuel-core-schema.graphql b/packages/account/src/providers/fuel-core-schema.graphql index 946ed03d501..1566fd9a206 100644 --- a/packages/account/src/providers/fuel-core-schema.graphql +++ b/packages/account/src/providers/fuel-core-schema.graphql @@ -1098,6 +1098,9 @@ type Query { """ id: RelayedTransactionId! ): RelayedTransactionStatus + consensusParameters(version: Int!): ConsensusParameters! + stateTransitionBytecodeByVersion(version: Int!): StateTransitionBytecode + stateTransitionBytecodeByRoot(root: HexString!): StateTransitionBytecode! } type Receipt { @@ -1219,6 +1222,11 @@ type SqueezedOutStatus { reason: String! } +type StateTransitionBytecode { + root: HexString! + bytecode: UploadedBytecode! +} + type StateTransitionPurpose { root: Bytes32! } @@ -1253,6 +1261,13 @@ type Subscription { Submits transaction to the `TxPool` and await either confirmation or failure. """ submitAndAwait(tx: HexString!): TransactionStatus! + + """ + 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. + """ + submitAndAwaitStatus(tx: HexString!): TransactionStatus! } type SuccessStatus { @@ -1375,6 +1390,23 @@ scalar U64 union UpgradePurpose = ConsensusParametersPurpose | StateTransitionPurpose +type UploadedBytecode { + """ + Combined bytecode of all uploaded subsections. + """ + bytecode: HexString! + + """ + Number of uploaded subsections (if incomplete). + """ + uploadedSubsectionsNumber: Int + + """ + Indicates if the bytecode upload is complete. + """ + completed: Boolean! +} + scalar UtxoId type VariableOutput { diff --git a/packages/account/src/providers/provider.test.ts b/packages/account/src/providers/provider.test.ts index c92f2c5b656..fda5f3db8e6 100644 --- a/packages/account/src/providers/provider.test.ts +++ b/packages/account/src/providers/provider.test.ts @@ -186,7 +186,7 @@ describe('Provider', () => { const version = await provider.getVersion(); - expect(version).toEqual('0.34.0'); + expect(version).toEqual('0.35.0'); }); it('can call()', async () => { diff --git a/packages/versions/src/lib/getBuiltinVersions.ts b/packages/versions/src/lib/getBuiltinVersions.ts index 109b111d0f1..4efe3a99e5f 100644 --- a/packages/versions/src/lib/getBuiltinVersions.ts +++ b/packages/versions/src/lib/getBuiltinVersions.ts @@ -3,7 +3,7 @@ import type { Versions } from './types'; export function getBuiltinVersions(): Versions { return { FORC: '0.63.3', - FUEL_CORE: '0.34.0', + FUEL_CORE: '0.35.0', FUELS: '0.94.3', }; } diff --git a/templates/nextjs/sway-programs/fuel-toolchain.toml b/templates/nextjs/sway-programs/fuel-toolchain.toml index a1c831c72df..8fc4de1233d 100644 --- a/templates/nextjs/sway-programs/fuel-toolchain.toml +++ b/templates/nextjs/sway-programs/fuel-toolchain.toml @@ -3,4 +3,4 @@ channel = "testnet" [components] forc = "0.63.3" -fuel-core = "0.34.0" +fuel-core = "0.35.0" diff --git a/templates/vite/sway-programs/fuel-toolchain.toml b/templates/vite/sway-programs/fuel-toolchain.toml index a1c831c72df..8fc4de1233d 100644 --- a/templates/vite/sway-programs/fuel-toolchain.toml +++ b/templates/vite/sway-programs/fuel-toolchain.toml @@ -3,4 +3,4 @@ channel = "testnet" [components] forc = "0.63.3" -fuel-core = "0.34.0" +fuel-core = "0.35.0"