Skip to content

Commit 3ce8e91

Browse files
chore: bump versions (#301)
* bump versions * fix, add chain config repo * fix: Small changes running a node guide bump (#302) * update * bump * guide --------- Co-authored-by: Call Delegation <106365423+calldelegation@users.noreply.github.com>
1 parent 9843327 commit 3ce8e91

File tree

13 files changed

+78
-74
lines changed

13 files changed

+78
-74
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,6 @@
6464
[submodule "docs/nightly/sway-libs"]
6565
path = docs/nightly/sway-libs
6666
url = https://github.com/FuelLabs/sway-libs.git
67+
[submodule "docs/chain-configuration"]
68+
path = docs/chain-configuration
69+
url = https://github.com/FuelLabs/chain-configuration

docs/chain-configuration

Submodule chain-configuration added at 6aa3822

docs/fuel-core

Submodule fuel-core updated 155 files

docs/fuels-rs

Submodule fuels-rs updated 37 files

docs/fuels-ts

Submodule fuels-ts updated 116 files

docs/fuels-wallet

Submodule fuels-wallet updated 48 files

docs/guides/docs/running-a-node/running-a-local-node.mdx

Lines changed: 34 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -42,48 +42,63 @@ forc deploy --default-signer --node-url 127.0.0.1:4000/v1/graphql
4242
To modify the initial state of the chain, you must configure the `state_config.json` file in your chain configuration folder.
4343
Here is an example of what that looks like using version {props.fuelCoreVersion} of `fuel-core`:
4444

45-
<ConditionalContent versionSet={props.versionSet} showForVersions={["default", "nightly"]}>
46-
Here is the [specific configuration](https://github.com/FuelLabs/fuel-core/tree/9fddeccb4d112c148f6793bc3d21131a13778a25/bin/fuel-core/chainspec/testnet)
45+
For simplicity, clone the [repository](https://github.com/FuelLabs/chain-configuration/tree/master) into the directory of your choice.
4746

48-
`chain_config.json`
47+
When using the `--snapshot` flag later, you can replace `./your/path/to/chain_config_folder` with the repository you just cloned `./chain-configuration/ignition/`.
4948

50-
<CodeImport
51-
file="../../../fuel-core/bin/fuel-core/chainspec/testnet/chain_config.json"
52-
/>
49+
Inside you should find these [specific configuration files](https://github.com/FuelLabs/chain-configuration/tree/master/local)
5350

54-
`metadata.json`
51+
`chain_config.json`
5552

56-
<CodeImport
57-
file="../../../fuel-core/bin/fuel-core/chainspec/testnet/metadata.json"
58-
/>
53+
<CodeImport
54+
file="../../../chain-configuration/local/chain_config.json"
55+
/>
5956

60-
`state_config.json`
57+
`metadata.json`
6158

62-
<CodeImport
63-
file="../../../fuel-core/bin/fuel-core/chainspec/testnet/state_config.json"
64-
/>
59+
<CodeImport
60+
file="../../../chain-configuration/local/metadata.json"
61+
/>
6562

66-
`state_transition_bytecode.wasm`
63+
`state_config.json`
6764

68-
Which is too large to display on this page, but you can find it [here](https://github.com/FuelLabs/fuel-core/blob/9fddeccb4d112c148f6793bc3d21131a13778a25/bin/fuel-core/chainspec/testnet/state_transition_bytecode.wasm)
65+
<CodeImport
66+
file="../../../chain-configuration/local/state_config.json"
67+
/>
6968

70-
</ConditionalContent>
69+
`state_transition_bytecode.wasm`
70+
71+
Which is too large to display on this page, but you can find it [here](https://github.com/FuelLabs/chain-configuration/blob/master/local/state_transition_bytecode.wasm)
7172

7273
To start the node with a custom configuration, you can use the command below:
7374

7475
```sh
7576
fuel-core run --snapshot ./your/path/to/chain_config_folder --db-type in-memory --debug
7677
```
7778

78-
To find an example chain configuration folder for a specific `fuel-core` version, refer to the [`fuel-core`](https://github.com/FuelLabs/fuel-core/tree/9fddeccb4d112c148f6793bc3d21131a13778a25/bin/fuel-core/chainspec/testnet) repo.
79+
To find an example chain configuration folder for a specific `fuel-core` version, refer to the [`chain-configuration`](https://github.com/FuelLabs/chain-configuration/tree/master) repo.
7980

8081
### Funding a wallet locally
8182

8283
You can edit the `coins` array inside `state_config.json` to modify the initial assets owned by a given address.
8384

8485
The `owner` address must be a `B256` type address (begins with `0x`) instead of a `Bech32` type (begins with `fuel`).
8586

86-
The `amount` is a numerical value. In this example, the value translates to `11,152,921,504 ETH`.
87+
The `amount` is a numerical value. In the example below, the value translates to 1 ETH.
88+
89+
```json
90+
"coins": [
91+
{
92+
"tx_id": "0x0000000000000000000000000000000000000000000000000000000000000001",
93+
"output_index": 0,
94+
"tx_pointer_block_height": 0,
95+
"tx_pointer_tx_idx": 0,
96+
"owner": "0x488284d46414347c78221d3bad71dfebcff61ab2ae26d71129701d50796f714d",
97+
"amount": 1000000000,
98+
"asset_id": "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"
99+
}
100+
]
101+
```
87102

88103
## Local node (with state persistence)
89104

docs/guides/docs/running-a-node/running-a-testnet-node.mdx

Lines changed: 29 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Running a Testnet Node
33
category: Running a Node
44
parent:
5-
label: Guides
5+
label: All Guides
66
link: /guides
77
---
88

@@ -24,15 +24,6 @@ parent:
2424
trim="true"
2525
/>
2626

27-
To run a `testnet` node, you will need to install the `testnet` toolchain.
28-
29-
You can do this by running the commands below.
30-
31-
```sh
32-
fuelup toolchain install testnet
33-
fuelup default testnet
34-
```
35-
3627
<TextImport
3728
file="../counter-dapp/building-a-smart-contract.mdx"
3829
comment="install_help"
@@ -77,7 +68,6 @@ Note that using other network endpoints will result in the relayer failing to st
7768
Generate a new P2P key pairing by running the following command:
7869
{/*generate_fuel_p2p_key:example:end*/}
7970

80-
<ConditionalContent versionSet={props.versionSet} showForVersions={['default', 'nightly']}>
8171
{/*// ANCHOR: generate_fuel_p2p_key_command*/}
8272

8373
```sh
@@ -90,8 +80,6 @@ fuel-core-keygen new --key-type peering
9080
### Do not share or lose this private key! Press any key to complete. ###
9181
```
9282

93-
</ConditionalContent>
94-
9583
{/*// ANCHOR_END: generate_fuel_p2p_key_command*/}
9684

9785
{/*generate_fuel_p2p_key_end:example:start*/}
@@ -102,61 +90,58 @@ Make sure you save this somewhere safe so you don't need to generate a new key p
10290

10391
To run a local node with persistence, you must have a folder with the following chain configuration files:
10492

105-
<ConditionalContent versionSet={props.versionSet} showForVersions={["default", "nightly"]}>
106-
Here is the [specific configuration](https://github.com/FuelLabs/fuel-core/tree/9fddeccb4d112c148f6793bc3d21131a13778a25/bin/fuel-core/chainspec/testnet)
93+
For simplicity, clone the [repository](https://github.com/FuelLabs/chain-configuration/tree/master) into the directory of your choice.
10794

108-
`chain_config.json`
95+
When using the `--snapshot` flag later, you can replace `./your/path/to/chain_config_folder` with the repository you just cloned `./chain-configuration/ignition/`.
10996

110-
<CodeImport
111-
file="../../../fuel-core/bin/fuel-core/chainspec/testnet/chain_config.json"
112-
/>
97+
Inside you should find these [specific configuration files](https://github.com/FuelLabs/chain-configuration/tree/master/ignition)
11398

114-
`metadata.json`
99+
`chain_config.json`
115100

116-
<CodeImport
117-
file="../../../fuel-core/bin/fuel-core/chainspec/testnet/metadata.json"
118-
/>
101+
<CodeImport
102+
file="../../../chain-configuration/ignition/chain_config.json"
103+
/>
119104

120-
`state_config.json`
105+
`metadata.json`
121106

122-
<CodeImport
123-
file="../../../fuel-core/bin/fuel-core/chainspec/testnet/state_config.json"
124-
/>
107+
<CodeImport
108+
file="../../../chain-configuration/ignition/metadata.json"
109+
/>
125110

126-
`state_transition_bytecode.wasm`
111+
`state_config.json`
127112

128-
Which is too large to display on this page, but you can find it [here](https://github.com/FuelLabs/fuel-core/tree/9fddeccb4d112c148f6793bc3d21131a13778a25/bin/fuel-core/chainspec/testnet/state_transition_bytecode.wasm)
113+
<CodeImport
114+
file="../../../chain-configuration/ignition/state_config.json"
115+
/>
129116

130-
</ConditionalContent>
117+
`state_transition_bytecode.wasm`
118+
119+
Which is too large to display on this page, but you can find it [here](https://github.com/FuelLabs/chain-configuration/blob/master/ignition/state_transition_bytecode.wasm)
131120

132121
## Running a Local Node
133122

134123
{/*running_a_local_node:example:start*/}
135124
Finally to put everything together to start the node, run the following command:
136125
{/*running_a_local_node:example:end*/}
137126

138-
<ConditionalContent versionSet={props.versionSet} showForVersions={['default', 'nightly']}>
139-
140127
```sh
141128
fuel-core run \
142-
--service-name {ANY_SERVICE_NAME} \
143-
--keypair {P2P_SECRET} \
144-
--relayer {ETH_RPC_ENDPOINT} \
145-
--ip 0.0.0.0 --port 4000 --peering-port 30333 \
146-
--db-path ~/.testnet \
129+
--service-name=fuel-sepolia-testnet-node \
130+
--keypair {P2P_PRIVATE_KEY} \
131+
--relayer {ETHEREUM_RPC_ENDPOINT} \
132+
--ip=0.0.0.0 --port=4000 --peering-port=30333 \
133+
--db-path=~/.fuel-sepolia-testnet \
147134
--snapshot ./your/path/to/chain_config_folder \
148135
--utxo-validation --poa-instant false --enable-p2p \
149-
--min-gas-price 1 --max-block-size 18874368 --max-transmit-size 18874368 \
150-
--reserved-nodes /dns4/p2p-devnet.fuel.network/tcp/30333/p2p/16Uiu2HAm6pmJUedRFjennk4A8yWL6zCApHCuykzRRroqMjjxZ8o6,/dns4/p2p-devnet.fuel.network/tcp/30334/p2p/16Uiu2HAm8dBwTRzqazCMqQDdR8thMa7BKiW4ep2B4DoQQp6Qhyfd \
136+
--reserved-nodes /dns4/p2p-testnet.fuel.network/tcp/30333/p2p/16Uiu2HAmDxoChB7AheKNvCVpD4PHJwuDGn8rifMBEHmEynGHvHrf \
151137
--sync-header-batch-size 100 \
152138
--enable-relayer \
153-
--relayer-v2-listening-contracts 0x01855B78C1f8868DE70e84507ec735983bf262dA \
154-
--relayer-da-deploy-height 5827607 \
155-
--relayer-log-page-size 2000
139+
--relayer-v2-listening-contracts=0x01855B78C1f8868DE70e84507ec735983bf262dA \
140+
--relayer-da-deploy-height=5827607 \
141+
--relayer-log-page-size=500 \
142+
--sync-block-stream-buffer-size 30
156143
```
157144

158-
</ConditionalContent>
159-
160145
{/*running_a_local_node_end:example:start*/}
161146
For the full description details of each flag above, run:
162147
{/*running_a_local_node_end:example:end*/}

0 commit comments

Comments
 (0)