Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade fuel-core version #292

Merged
merged 5 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/setup-rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ inputs:
rust-version:
default: 1.80.1
forc-components:
default: '[email protected], fuel-core@0.33.0'
default: '[email protected], fuel-core@0.36.0'

runs:
using: 'composite'
Expand Down
11 changes: 7 additions & 4 deletions docker/fuel-core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# https://github.com/FuelLabs/chain-configuration/tree/master/upgradelog/ignition-testnet
# and apply the latest state_transition_function and consensus_parameter
# when upgrading fuel-core
FROM ghcr.io/fuellabs/fuel-core:v0.33.0
FROM ghcr.io/fuellabs/fuel-core:v0.36.0

ARG FUEL_IP=0.0.0.0
ARG FUEL_PORT=4001
Expand All @@ -22,13 +22,16 @@ RUN git clone \
https://github.com/FuelLabs/chain-configuration.git \
/chain-configuration

# Anchor the chain configuration to a specific commit to avoid CI breaking
RUN cd /chain-configuration && git checkout c1c4d3bca57f64118a8d157310e0a839ae5c180a

# Copy the base local configuration
RUN cp -R /chain-configuration/local/* ./

# Copy the testnet consensus parameters and state transition bytecode
RUN cp /chain-configuration/upgradelog/ignition-testnet/consensus_parameters/5.json \
# Copy the devnet consensus parameters and state transition bytecode
RUN cp /chain-configuration/upgradelog/ignition-devnet/consensus_parameters/9.json \
./latest_consensus_parameters.json
RUN cp /chain-configuration/upgradelog/ignition-testnet/state_transition_function/6.wasm \
RUN cp /chain-configuration/upgradelog/ignition-devnet/state_transition_function/9.wasm \
./state_transition_bytecode.wasm

# update local state_config with custom genesis coins config
Expand Down
2 changes: 1 addition & 1 deletion docker/full-env/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This image is built for external projects that want to have
# an e2e test environment
FROM ghcr.io/fuellabs/fuel-core:v0.33.0 as fuel-core
FROM ghcr.io/fuellabs/fuel-core:v0.36.0 as fuel-core
FROM ghcr.io/fuellabs/fuel-block-committer:v0.4.0 as fuel-committer

FROM node:20-slim as base
Expand Down
2 changes: 1 addition & 1 deletion fuel-toolchain.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
channel = "testnet"

[components]
fuel-core = "0.33.0"
fuel-core = "0.36.0"
forc = "0.63.4"
2 changes: 1 addition & 1 deletion packages/base-asset/fuel-toolchain.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ channel = "nightly-2024-08-20"

[components]
forc = "0.63.1"
fuel-core = "0.33.0"
fuel-core = "0.36.0"
2 changes: 0 additions & 2 deletions packages/integration-tests/tests/bridge_erc20.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ describe('Bridging ERC20 tokens', async function () {
.addContracts([fuel_bridge, fuel_bridgeImpl])
.txParams({
tip: 0,
gasLimit: 1_000_000,
maxFee: 1,
})
.callParams({
Expand Down Expand Up @@ -273,7 +272,6 @@ describe('Bridging ERC20 tokens', async function () {
expect(message).to.not.be.null;

const tx = await relayCommonMessage(env.fuel.deployer, message, {
gasLimit: 30000000,
maturity: undefined,
contractIds: [fuel_bridgeImpl.id.toHexString()],
});
Expand Down
1 change: 0 additions & 1 deletion packages/integration-tests/tests/bridge_mainnet_tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ describe('Bridge mainnet tokens', function () {
.addContracts([fuel_bridge, fuel_bridgeImpl])
.txParams({
tip: 0,
gasLimit: 1_000_000,
maxFee: 1,
})
.callParams({
Expand Down
4 changes: 2 additions & 2 deletions packages/test-utils/src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ export const ETHEREUM_ETH_DECIMALS = 18n;
export const FUEL_ETH_DECIMALS = 9n;
export const FUEL_MESSAGE_POLL_MS: number = 300;
export const MAX_GAS_PER_TX = bn(100_000_000);
export const FUEL_GAS_LIMIT = 500_000_000;
export const FUEL_GAS_LIMIT = 100000000;
export const FUEL_MAX_FEE = 1;
export const FUEL_TX_PARAMS: TxParams = {
gasLimit: process.env.FUEL_GAS_LIMIT || FUEL_GAS_LIMIT,
maxFee: process.env.FUEL_MAX_FEE || FUEL_MAX_FEE,
};
export const FUEL_CALL_TX_PARAMS = {
gasLimit: bn(64_933),
gasLimit: bn(10_000_000),
maxFee: FUEL_TX_PARAMS.maxFee,
};
export const FUEL_MESSAGE_TIMEOUT_MS = 1_000_000;
4 changes: 3 additions & 1 deletion packages/test-utils/src/utils/fuels/relayCommonMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ type CommonMessageDetails = {
) => Promise<ScriptTransactionRequest>;
};

const PREDICATE_GAS_LIMIT = 10_000_000;

// Details for relaying common messages with certain predicate roots
function getCommonRelayableMessages(provider: Provider) {
// Create a predicate for common messages
Expand Down Expand Up @@ -150,7 +152,7 @@ function getCommonRelayableMessages(provider: Provider) {
});
transaction.witnesses.push(ZeroBytes32);

transaction.gasLimit = bn(500_000);
transaction.gasLimit = bn(PREDICATE_GAS_LIMIT);

debug(
'-------------------------------------------------------------------'
Expand Down
Loading