From 865f7631540465df2a03edc2359e0b7f3410de25 Mon Sep 17 00:00:00 2001 From: Peter Smith Date: Wed, 26 Jun 2024 14:14:16 +0100 Subject: [PATCH] fix: re-sync the GraphQL schema --- .../account/src/providers/fuel-core-schema.graphql | 2 ++ packages/account/src/providers/operations.graphql | 6 ++++++ packages/account/test/fixtures/chain.ts | 10 ++++++++++ .../test/fixtures/project/.fuels/chainConfig.json | 12 ++++++++++++ .../src/utils/defaultSnapshots/chainConfig.json | 12 ++++++++++++ 5 files changed, 42 insertions(+) diff --git a/packages/account/src/providers/fuel-core-schema.graphql b/packages/account/src/providers/fuel-core-schema.graphql index e6b2ed61ff9..577a9bd7655 100644 --- a/packages/account/src/providers/fuel-core-schema.graphql +++ b/packages/account/src/providers/fuel-core-schema.graphql @@ -442,6 +442,8 @@ type GasCosts { xor: U64! xori: U64! alocDependentCost: DependentCost! + cfe: DependentCost! + cfeiDependentCost: DependentCost! call: DependentCost! ccp: DependentCost! croo: DependentCost! diff --git a/packages/account/src/providers/operations.graphql b/packages/account/src/providers/operations.graphql index e6742fa2393..a2eb307e00c 100644 --- a/packages/account/src/providers/operations.graphql +++ b/packages/account/src/providers/operations.graphql @@ -398,6 +398,12 @@ fragment GasCostsFragment on GasCosts { alocDependentCost { ...DependentCostFragment } + cfe { + ...DependentCostFragment + } + cfeiDependentCost { + ...DependentCostFragment + } call { ...DependentCostFragment } diff --git a/packages/account/test/fixtures/chain.ts b/packages/account/test/fixtures/chain.ts index 75772573ca2..3be91c9af35 100644 --- a/packages/account/test/fixtures/chain.ts +++ b/packages/account/test/fixtures/chain.ts @@ -144,6 +144,16 @@ export const MOCK_CHAIN: GqlChainInfoFragment = { base: '2', unitsPerGas: '214', }, + cfe: { + type: 'HeavyOperation', + base: '2', + gasPerUnit: '0', + }, + cfeiDependentCost: { + type: 'HeavyOperation', + base: '2', + gasPerUnit: '0', + }, call: { type: 'LightOperation', base: '144', diff --git a/packages/fuels/test/fixtures/project/.fuels/chainConfig.json b/packages/fuels/test/fixtures/project/.fuels/chainConfig.json index 422b73de6fc..356978289d7 100644 --- a/packages/fuels/test/fixtures/project/.fuels/chainConfig.json +++ b/packages/fuels/test/fixtures/project/.fuels/chainConfig.json @@ -135,6 +135,18 @@ "unitsPerGas": "214" } }, + "cfe": { + "HeavyOperation": { + "base": 2, + "gasPerUnit": 0 + } + }, + "cfeiDependentCost": { + "HeavyOperation": { + "base": 2, + "gasPerUnit": 0 + } + }, "call": { "LightOperation": { "base": 21687, diff --git a/packages/utils/src/utils/defaultSnapshots/chainConfig.json b/packages/utils/src/utils/defaultSnapshots/chainConfig.json index cf7b258e219..782f9d297b0 100644 --- a/packages/utils/src/utils/defaultSnapshots/chainConfig.json +++ b/packages/utils/src/utils/defaultSnapshots/chainConfig.json @@ -135,6 +135,18 @@ "unitsPerGas": "214" } }, + "cfe": { + "HeavyOperation": { + "base": 2, + "gasPerUnit": 0 + } + }, + "cfeiDependentCost": { + "HeavyOperation": { + "base": 2, + "gasPerUnit": 0 + } + }, "call": { "LightOperation": { "base": 18190,