Skip to content

Commit

Permalink
Merge branch 'master' into m/chore/add-triage-label
Browse files Browse the repository at this point in the history
  • Loading branch information
maschad authored Jun 26, 2024
2 parents 6be77f5 + 6d63732 commit 346837f
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .changeset/wild-maps-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@fuel-ts/utils": patch
"@fuel-ts/account": patch
---

fix: sync chain config schema
2 changes: 2 additions & 0 deletions packages/account/src/providers/fuel-core-schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,8 @@ type GasCosts {
xor: U64!
xori: U64!
alocDependentCost: DependentCost!
cfe: DependentCost!
cfeiDependentCost: DependentCost!
call: DependentCost!
ccp: DependentCost!
croo: DependentCost!
Expand Down
6 changes: 6 additions & 0 deletions packages/account/src/providers/operations.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,12 @@ fragment GasCostsFragment on GasCosts {
alocDependentCost {
...DependentCostFragment
}
cfe {
...DependentCostFragment
}
cfeiDependentCost {
...DependentCostFragment
}
call {
...DependentCostFragment
}
Expand Down
14 changes: 12 additions & 2 deletions packages/account/test/fixtures/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,19 @@ export const MOCK_CHAIN: GqlChainInfoFragment = {
xor: '1',
xori: '1',
alocDependentCost: {
type: 'LightOperation',
type: 'HeavyOperation',
base: '2',
unitsPerGas: '214',
gasPerUnit: '0',
},
cfe: {
type: 'HeavyOperation',
base: '2',
gasPerUnit: '0',
},
cfeiDependentCost: {
type: 'HeavyOperation',
base: '2',
gasPerUnit: '0',
},
call: {
type: 'LightOperation',
Expand Down
18 changes: 15 additions & 3 deletions packages/fuels/test/fixtures/project/.fuels/chainConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,21 @@
"xor": 2,
"xori": 2,
"alocDependentCost": {
"LightOperation": {
"base": "2",
"unitsPerGas": "214"
"HeavyOperation": {
"base": 2,
"gasPerUnit": 0
}
},
"cfe": {
"HeavyOperation": {
"base": 2,
"gasPerUnit": 0
}
},
"cfeiDependentCost": {
"HeavyOperation": {
"base": 2,
"gasPerUnit": 0
}
},
"call": {
Expand Down
18 changes: 15 additions & 3 deletions packages/utils/src/utils/defaultSnapshots/chainConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,21 @@
"xor": 2,
"xori": 2,
"alocDependentCost": {
"LightOperation": {
"base": "2",
"unitsPerGas": "214"
"HeavyOperation": {
"base": 2,
"gasPerUnit": 0
}
},
"cfe": {
"HeavyOperation": {
"base": 2,
"gasPerUnit": 0
}
},
"cfeiDependentCost": {
"HeavyOperation": {
"base": 2,
"gasPerUnit": 0
}
},
"call": {
Expand Down

0 comments on commit 346837f

Please sign in to comment.