Skip to content

Commit e5843d5

Browse files
committed
docs
1 parent 0d5774f commit e5843d5

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

book/src/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- [Creating your own components](./developing/developing_components.md)
1414
- [Fork Testing](./framework/fork.md)
1515
- [Quick Contracts Deployment](./framework/quick_deployment.md)
16+
- [Verifying Contracts](./framework/verify.md)
1617
- [NodeSet with External Blockchain]()
1718
- [CLI](./framework/cli.md)
1819
- [Configuration](./framework/configuration.md)

book/src/framework/observability/blockscout.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,4 @@ ctf bs -r http://host.docker.internal:8555 d
2525
Blockscout isn’t ideal for local, ephemeral environments, as it won’t re-index blocks and transactions on test reruns. The easiest approach is to set up Blockscout first, initialize the test environment, switch to the [cache](../components/caching.md) config, and run tests without restarting RPC nodes.
2626

2727
Otherwise, use `ctf bs r` each time you restart your test with a fresh docker environment.
28-
</div>
29-
30-
<div class="warning">
31-
32-
Blockscout integration is still WIP, for now Blockscout reads only one node that is on `:8545`, all our blockchain implementation expose this port by default.
33-
</div>
28+
</div>

book/src/framework/verify.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Verifying Contracts
2+
3+
Check out our [example](https://github.com/smartcontractkit/chainlink-testing-framework/blob/main/framework/examples/myproject/verify_test.go) of programmatically verifying contracts using `Blockscout` and `Foundry`. You'll need to provide:
4+
5+
- The path to your Foundry directory
6+
- The path to the contract
7+
- The contract name
8+
9+
```golang
10+
err := blockchain.VerifyContract(blockchainComponentOutput, c.Addresses[0].String(),
11+
"example_components/onchain",
12+
"src/Counter.sol",
13+
"Counter",
14+
)
15+
require.NoError(t, err)
16+
```

framework/.changeset/v0.3.1.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
- Use docker cmd instead of testcontainers
1+
- Use docker cmd for building instead of testcontainers-go
22
- Add "CHAINLINK_IMAGE" flag to override NodeSet image
3+
- Add Go wrapper for Blockscout verification (foundry)

0 commit comments

Comments
 (0)