-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(e2e-connector-test): CI FE-499 (#399)
Co-authored-by: Luiz Gomes <8636507+LuizAsFight@users.noreply.github.com> Co-authored-by: LuizAsFight <felipebolsonigomes@gmail.com>
- Loading branch information
1 parent
5e02231
commit 7f050cd
Showing
17 changed files
with
503 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
PROJECT=fuels-wallet | ||
MIN_GAS_PRICE=1 | ||
WALLET_SECRET=0xa449b1ffee0e2205fa924c6740cc48b3b473aa28587df6dab12abc245d1f5298 | ||
DISPENSE_AMOUNT=2000000 | ||
FUEL_CORE_PORT=4000 | ||
FUEL_FAUCET_PORT=4040 | ||
FUEL_IP=0.0.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
up: | ||
docker compose -p dev --env-file .env up -d --build | ||
|
||
down: | ||
docker compose -p dev stop | ||
|
||
clean: | ||
docker compose -p dev down --rmi local -v --remove-orphans |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
version: '3' | ||
|
||
services: | ||
fuel-core: | ||
platform: linux/amd64 | ||
container_name: '${PROJECT:-fuel-node}_fuel-core' | ||
environment: | ||
FUEL_IP: ${FUEL_IP} | ||
FUEL_CORE_PORT: ${FUEL_CORE_PORT} | ||
NETWORK_NAME: '${PROJECT} local' | ||
MIN_GAS_PRICE: ${MIN_GAS_PRICE} | ||
# This is the private key of the consensus.PoA.signing_key in the chainConfig.json | ||
# this key is responsible for validating the transactions | ||
CONSENSUS_KEY_SECRET: ${WALLET_SECRET} | ||
build: ./fuel-core | ||
ports: | ||
- '${FUEL_CORE_PORT:-4000}:4000' | ||
volumes: | ||
- fuel-core-db:/mnt/db | ||
healthcheck: | ||
test: curl --fail http://localhost:4000/v1/health || exit 1 | ||
interval: 1s | ||
timeout: 5s | ||
retries: 20 | ||
|
||
faucet: | ||
platform: linux/amd64 | ||
container_name: '${PROJECT:-fuel-node}_faucet' | ||
environment: | ||
# Other configurations can be found at; | ||
# https://github.com/FuelLabs/faucet#configuration | ||
MIN_GAS_PRICE: ${MIN_GAS_PRICE} | ||
WALLET_SECRET_KEY: ${WALLET_SECRET} | ||
DISPENSE_AMOUNT: ${DISPENSE_AMOUNT} | ||
FUEL_NODE_URL: http://${PROJECT:-fuel-node}_fuel-core:4000/v1/graphql | ||
image: ghcr.io/fuellabs/faucet:4f7bec0 | ||
ports: | ||
- '${FUEL_FAUCET_PORT:-4040}:3000' | ||
links: | ||
- fuel-core | ||
depends_on: | ||
fuel-core: | ||
condition: service_healthy | ||
|
||
volumes: | ||
fuel-core-db: | ||
name: '${PROJECT:-fuel-node}_fuel-core-db' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# IMPORTANT! | ||
# Make sure to check: | ||
# https://github.com/FuelLabs/chain-configuration/tree/master/upgradelog/ignition-devnet | ||
# and apply the latest state_transition_function and consensus_parameter | ||
# when upgrading fuel-core | ||
|
||
# We should be supporting always the same fuel-core version as the fuels (ts-sdk) | ||
# https://github.com/FuelLabs/fuels-ts/blob/master/internal/fuel-core/VERSION | ||
FROM ghcr.io/fuellabs/fuel-core:v0.40.0 | ||
|
||
# dependencies | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt update && apt install -y git curl jq && rm -rf /var/lib/apt/lists/* | ||
|
||
# copy chain config | ||
WORKDIR /fuel | ||
|
||
COPY ./genesis_coins.json . | ||
|
||
RUN git clone \ | ||
https://github.com/FuelLabs/chain-configuration.git \ | ||
/chain-configuration && \ | ||
cd /chain-configuration && \ | ||
git checkout 0dc0960f14da7b6650b5438dc1e99d7ff7acec73 | ||
|
||
# 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-devnet/consensus_parameters/13.json \ | ||
./latest_consensus_parameters.json | ||
RUN cp /chain-configuration/upgradelog/ignition-devnet/state_transition_function/15.wasm \ | ||
./state_transition_bytecode.wasm | ||
|
||
# update local state_config with custom genesis coins config | ||
RUN jq '.coins = input' \ | ||
state_config.json genesis_coins.json > tmp.json \ | ||
&& mv tmp.json state_config.json | ||
|
||
# update local state_config with testnet consensus parameters | ||
RUN jq '.consensus_parameters = input' \ | ||
state_config.json latest_consensus_parameters.json > tmp.json \ | ||
&& mv tmp.json state_config.json | ||
|
||
# expose fuel node port | ||
EXPOSE ${FUEL_CORE_PORT} | ||
|
||
# copy over script and run | ||
COPY ./fuel_core.sh . | ||
CMD ["sh", "./fuel_core.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# TODO change to --poa-interval-period 1sec \ | ||
|
||
# Start the Fuel Core node | ||
/root/fuel-core run \ | ||
--ip $FUEL_IP \ | ||
--port $FUEL_CORE_PORT \ | ||
--db-path ./mnt/db/ \ | ||
--utxo-validation \ | ||
--vm-backtrace \ | ||
--poa-interval-period 1sec \ | ||
--debug \ | ||
--min-gas-price ${MIN_GAS_PRICE} \ | ||
--snapshot ./ \ | ||
--consensus-key ${CONSENSUS_KEY_SECRET} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[ | ||
{ | ||
"owner": "0x94ffcc53b892684acefaebc8a3d4a595e528a8cf664eeb3ef36f1020b0809d0d", | ||
"amount": 1000000000000, | ||
"asset_id": "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07", | ||
"tx_id": "0x0000000000000000000000000000000000000000000000000000000000000032", | ||
"output_index": 0, | ||
"tx_pointer_block_height": 0, | ||
"tx_pointer_tx_idx": 0 | ||
}, | ||
{ | ||
"owner": "0x94ffcc53b892684acefaebc8a3d4a595e528a8cf664eeb3ef36f1020b0809d0d", | ||
"amount": 1000000000000, | ||
"asset_id": "0x0000000000000000000000000000000000000000000000000000000000000001", | ||
"tx_id": "0x0000000000000000000000000000000000000000000000000000000000000033", | ||
"output_index": 0, | ||
"tx_pointer_block_height": 0, | ||
"tx_pointer_tx_idx": 0 | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.