Skip to content

Commit c81240b

Browse files
Merge pull request #212 from skalenetwork/manuelbarbas/review/cookbook
Manuelbarbas/review/cookbook
2 parents 02f0f02 + ada0821 commit c81240b

File tree

15 files changed

+2401
-1568
lines changed

15 files changed

+2401
-1568
lines changed

.DS_Store

8 KB
Binary file not shown.

cookbook/.DS_Store

6 KB
Binary file not shown.

cookbook/agents/build-an-agent.mdx

Lines changed: 530 additions & 155 deletions
Large diffs are not rendered by default.

cookbook/deployment/setup-foundry.mdx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,8 @@ forge install OpenZeppelin/openzeppelin-contracts
9797

9898
This will add the dependency to your `lib` directory.
9999

100-
## Step 6: Configure Remappings
101100

102-
Update your `remappings.txt` file to include:
103-
104-
```
105-
@openzeppelin/=lib/openzeppelin-contracts/
106-
```
107-
108-
## Step 7: Create a Keystore (Optional but Recommended)
101+
## Step 6: Create a Keystore (Optional but Recommended)
109102

110103
For secure deployment, create a Foundry keystore:
111104

@@ -125,7 +118,7 @@ cast wallet address --account skale-deployer
125118

126119
Copy this address and fund it with sFUEL from the [sFUEL Station](https://sfuelstation).
127120

128-
## Step 8: Test Your Setup
121+
## Step 7: Test Your Setup
129122

130123
Compile your contracts:
131124

cookbook/deployment/setup-hardhat.mdx

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,12 @@ require("dotenv").config();
134134

135135
## Step 7: Create a Deployment Script
136136

137-
Create a deployment script in `scripts/deploy.js`:
137+
Create a deployment script in `scripts/deploy.js`. Run:
138+
```shell
139+
touch scripts/deploy.js
140+
```
138141

142+
Add the deployment code:
139143
```javascript
140144
const hre = require("hardhat");
141145

@@ -172,14 +176,6 @@ Run your tests:
172176
npx hardhat test
173177
```
174178

175-
## Step 10: Deploy to SKALE
176-
177-
Deploy your contract to SKALE:
178-
179-
```shell
180-
npx hardhat run scripts/deploy.js --network skale_testnet
181-
```
182-
183179
## SKALE-Specific Considerations
184180

185181
When deploying to SKALE with Hardhat:

0 commit comments

Comments
 (0)