Skip to content

Commit 568f24c

Browse files
authored
CCIP starter with JD, switch to a stable Foundry image (#1848)
* CCIP starter with JD, try new anvil image
1 parent 532b174 commit 568f24c

File tree

20 files changed

+357
-36
lines changed

20 files changed

+357
-36
lines changed

book/src/framework/components/blockchains/evm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ We support 3 EVM clients at the moment: [Geth](https://geth.ethereum.org/docs/fu
1212
# Anvil command line params, ex.: docker_cmd_params = ['--block-time=1', '...']
1313
docker_cmd_params = []
1414
# Docker image and tag
15-
image = "f4hrenh9it/foundry:latest"
15+
image = "ghcr.io/foundry-rs/foundry:stable"
1616
# External port to expose (HTTP API)
1717
port = "8545"
1818
# External port to expose (WS API)

book/src/framework/components/chainlink/nodeset.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This component requires some Blockchain to be deployed, add this to config
1818
# Anvil command line params, ex.: docker_cmd_params = ['--block-time=1', '...']
1919
docker_cmd_params = []
2020
# Docker image and tag
21-
image = "f4hrenh9it/foundry:latest"
21+
image = "ghcr.io/foundry-rs/foundry:stable"
2222
# External port to expose
2323
port = "8545"
2424
# Pulls the image every time if set to 'true', used like that in CI. Can be set to 'false' to speed up local runs

book/src/framework/components/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ In `TOML`:
3535
```
3636
[blockchain_a]
3737
chain_id = "1337"
38-
image = "f4hrenh9it/foundry:latest"
38+
image = "ghcr.io/foundry-rs/foundry:stable"
3939
port = "8500"
4040
type = "anvil"
4141
docker_cmd_params = ["-b", "1"]

book/src/framework/components/troubleshooting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Docker Desktop -> Settings -> Resources -> File Sharing
1515

1616
## Can't run `anvil`, issue with `Rosetta`
1717
```
18-
2024/11/27 15:20:27 ⏳ Waiting for container id 79f8a68c07cc image: f4hrenh9it/foundry:latest. Waiting for: &{Port:8546 timeout:0x14000901278 PollInterval:100ms skipInternalCheck:false}
18+
2024/11/27 15:20:27 ⏳ Waiting for container id 79f8a68c07cc image: ghcr.io/foundry-rs/foundry:stable. Waiting for: &{Port:8546 timeout:0x14000901278 PollInterval:100ms skipInternalCheck:false}
1919
2024/11/27 15:20:27 container logs (all exposed ports, [8546/tcp], were not mapped in 5s: port 8546/tcp is not mapped yet
2020
wait until ready: check target: retries: 1, port: "", last err: container exited with code 133):
2121
rosetta error: Rosetta is only intended to run on Apple Silicon with a macOS host using Virtualization.framework with Rosetta mode enabled

framework/.changeset/v0.8.4.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Switch to an official stable image of Foundry
2+
- Extend JD example for CCIPv2

framework/CONFIGURATION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ In `TOML`:
3535
```
3636
[blockchain_a]
3737
chain_id = "1337"
38-
image = "f4hrenh9it/foundry:latest"
38+
image = "ghcr.io/foundry-rs/foundry:stable"
3939
port = "8500"
4040
type = "anvil"
4141
docker_cmd_params = ["-b", "1"]

framework/components/blockchain/anvil.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const (
1212

1313
func defaultAnvil(in *Input) {
1414
if in.Image == "" {
15-
in.Image = "f4hrenh9it/foundry:latest"
15+
in.Image = "ghcr.io/foundry-rs/foundry:stable"
1616
}
1717
if in.ChainID == "" {
1818
in.ChainID = "1337"

framework/components/blockchain/blockchain_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func TestChains(t *testing.T) {
2323
name: "Anvil",
2424
input: &blockchain.Input{
2525
Type: "anvil",
26-
Image: "f4hrenh9it/foundry",
26+
Image: "ghcr.io/foundry-rs/foundry:stable",
2727
Port: "8547",
2828
ChainID: "31337",
2929
},

framework/components/simple_node_set/nodeset_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func TestSmokeComponentDockerNodeSetSharedDB(t *testing.T) {
4444
name: "2 nodes cluster, override mode 'each'",
4545
bcInput: &blockchain.Input{
4646
Type: "anvil",
47-
Image: "f4hrenh9it/foundry",
47+
Image: "ghcr.io/foundry-rs/foundry:stable",
4848
Port: "8546",
4949
ChainID: "31337",
5050
},

framework/examples/myproject/smoke_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313

1414
type Cfg struct {
1515
BlockchainA *blockchain.Input `toml:"blockchain_a" validate:"required"`
16-
MockerDataProvider *fake.Input `toml:"data_provider" validate:"required"`
16+
MockedDataProvider *fake.Input `toml:"data_provider" validate:"required"`
1717
NodeSets []*ns.Input `toml:"nodesets" validate:"required"`
1818
}
1919

@@ -23,7 +23,7 @@ func TestSmoke(t *testing.T) {
2323

2424
bc, err := blockchain.NewBlockchainNetwork(in.BlockchainA)
2525
require.NoError(t, err)
26-
_, err = fake.NewFakeDataProvider(in.MockerDataProvider)
26+
_, err = fake.NewFakeDataProvider(in.MockedDataProvider)
2727
require.NoError(t, err)
2828
out, err := ns.NewSharedDBNodeSet(in.NodeSets[0], bc)
2929
require.NoError(t, err)

0 commit comments

Comments
 (0)