Skip to content

Commit 48e4afb

Browse files
authored
move from make commands to foundry pre multiple requests (#25)
1 parent eeae927 commit 48e4afb

2 files changed

Lines changed: 6 additions & 24 deletions

File tree

content/docs/tutorial/6-run-service.mdx

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -34,28 +34,10 @@ With the chain and WAVS running, you can deploy and run your service.
3434
Open a new terminal and run the following command from the root of your project to upload your Service's Trigger and Submission contracts:
3535

3636
```bash
37-
make deploy-contracts
37+
export SERVICE_MANAGER_ADDR=`make get-eigen-service-manager-from-deploy`
38+
forge script ./script/Deploy.s.sol ${SERVICE_MANAGER_ADDR} --sig "run(string)" --rpc-url http://localhost:8545 --broadcast
3839
```
3940

40-
This command uses the script located in [`script/Deploy.s.sol`](https://github.com/Lay3rLabs/wavs-foundry-template/tree/v0.3.0-rc1/script/Deploy.s.sol) to deploy your contracts.
41-
42-
<Callout title="Deployed addresses" type="info">
43-
44-
View your deployed trigger address:
45-
46-
```bash
47-
make get-trigger-from-deploy
48-
```
49-
50-
View your deployed submission address:
51-
52-
```bash
53-
make get-service-handler-from-deploy
54-
```
55-
56-
</Callout>
57-
58-
5941
## Deploy your service to WAVS
6042

6143
The following command will deploy your WASI component and service information to WAVS to be run by operators when triggered:
@@ -92,7 +74,9 @@ Running this command will execute [`/script/Trigger.s.sol`](https://github.com/L
9274

9375

9476
```bash
95-
COIN_MARKET_CAP_ID=1 make trigger-service
77+
export COIN_MARKET_CAP_ID=1
78+
export SERVICE_TRIGGER_ADDR=`make get-trigger-from-deploy`
79+
forge script ./script/Trigger.s.sol ${SERVICE_TRIGGER_ADDR} ${COIN_MARKET_CAP_ID} --sig "run(string,string)" --rpc-url http://localhost:8545 --broadcast -v 4
9680
```
9781

9882
## Show the result
@@ -105,5 +89,3 @@ make show-result
10589
```
10690

10791
Congratulations, you've just made a simple Bitcoin price oracle service using WAVS!
108-
109-

last_commit_sync.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5dcdf0f951a99c75444eb4b1285323c7bb1a42f9
1+
72321ee1eccd426988c8250fe9289a2567eb9ffd

0 commit comments

Comments
 (0)