From 3ae6a07b1490a9335f7019e29607a62c1b30119e Mon Sep 17 00:00:00 2001 From: chad Date: Wed, 28 Aug 2024 15:56:00 -0500 Subject: [PATCH 1/3] chore: upgrade fuel-core to 0.35.0 --- internal/fuel-core/VERSION | 2 +- packages/account/src/providers/provider.test.ts | 2 +- packages/versions/src/lib/getBuiltinVersions.ts | 2 +- templates/nextjs/sway-programs/fuel-toolchain.toml | 2 +- templates/vite/sway-programs/fuel-toolchain.toml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) 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/provider.test.ts b/packages/account/src/providers/provider.test.ts index 57ae650b050..232c81eaeff 100644 --- a/packages/account/src/providers/provider.test.ts +++ b/packages/account/src/providers/provider.test.ts @@ -62,7 +62,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 5e02e2c4ad6..caab118f348 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.1', - FUEL_CORE: '0.34.0', + FUEL_CORE: '0.35.0', FUELS: '0.94.2', }; } diff --git a/templates/nextjs/sway-programs/fuel-toolchain.toml b/templates/nextjs/sway-programs/fuel-toolchain.toml index cf8d5119a82..59863d0367f 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.1" -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 cf8d5119a82..59863d0367f 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.1" -fuel-core = "0.34.0" +fuel-core = "0.35.0" From f5e19987762c482b28b1ace5aafa3ff930f5d0ad Mon Sep 17 00:00:00 2001 From: chad Date: Wed, 28 Aug 2024 15:57:21 -0500 Subject: [PATCH 2/3] docs: add changeset --- .changeset/moody-masks-live.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .changeset/moody-masks-live.md 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` From 81c24091c3912f3404fbfee1658b577bfe8a2014 Mon Sep 17 00:00:00 2001 From: chad Date: Wed, 28 Aug 2024 17:54:54 -0500 Subject: [PATCH 3/3] build: update build schema --- .../src/providers/fuel-core-schema.graphql | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) 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 {