Skip to content

Commit c2d9be2

Browse files
committed
Merge and add parrot K8s control
2 parents b123355 + 3514fc5 commit c2d9be2

File tree

38 files changed

+3300
-3847
lines changed

38 files changed

+3300
-3847
lines changed

.github/workflows/docker-test.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
pull_request:
66
types: [labeled]
77
paths-ignore:
8-
- 'tools/**'
8+
- 'tools/**'
99

1010
jobs:
1111
eth_env:
@@ -26,12 +26,11 @@ jobs:
2626
- name: Checkout the Repo
2727
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
2828
- name: Install Go
29-
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/setup-go@d2f9642bcc24a73400568756f24b72c188ac7a9a # v2.3.31
29+
uses: smartcontractkit/.github/actions/setup-golang@01d931b0455a754d12e7143cc54a5a3521a8f6f6 #v 0.3.1
3030
with:
31-
test_download_vendor_packages_command: cd lib && go mod download
32-
go_mod_path: ./lib/go.mod
33-
cache_key_id: ctf-go
34-
cache_restore_only: 'false'
31+
# test_download_vendor_packages_command: cd lib && go mod download
32+
go-version-file: ./lib/go.mod
33+
use-go-cache: "true"
3534
- name: Install gotestloghelper
3635
working-directory: lib
3736
run: make gotestloghelper_build

book/src/framework/verify.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Verifying Contracts
22

3+
## Using Foundry
4+
35
You need to install [Foundry](https://book.getfoundry.sh/getting-started/installation) first, `forge` should be available in your `$PATH`.
46

57
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:
@@ -17,3 +19,42 @@ Check out our [example](https://github.com/smartcontractkit/chainlink-testing-fr
1719
)
1820
require.NoError(t, err)
1921
```
22+
23+
## Using Seth
24+
25+
If you don't want to verify contracts or you can't or don't want to use `Blockscout` not all is lost.
26+
27+
### With CLI
28+
29+
You can use `Seth` to trace your transaction both from your Go code or from [the CLI](https://smartcontractkit.github.io/chainlink-testing-framework/libs/seth.html#single-transaction-tracing). Remember that you need to adjust `seth.toml` to point to gethwrappers or ABIs of contracts you want to trace.
30+
31+
### Programatic
32+
33+
If you want to use from Go code, you need to have a couple of things in mind:
34+
* you need to point Seth to your Gethwrappers, so that it can extract ABIs from them
35+
* you need to decide, when it should trace transactions: reverted, none or all (by default, only reverted ones are traced)
36+
* you need to decide, where to output tracing results: console, dot graphs, json files (be default, to console)
37+
38+
If printing to console remember to set `Seth` log level to `debug`, otherwise you won't see anything relevant printed:
39+
```
40+
```
41+
42+
43+
44+
```go
45+
client, err := NewClientBuilder().
46+
WithNetworkName("my network").
47+
WithRpcUrl("ws://localhost:8546").
48+
WithPrivateKeys([]string{"ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"}).
49+
// tracing
50+
WithTracing(seth.TracingLevel_All, []string{seth.TraceOutput_Console}).
51+
// folder with gethwrappers for ABI decoding
52+
WithGethWrappersFolders([]string{"./gethwrappers/ccip", "./gethwrappers/keystone"}).
53+
Build()
54+
55+
if err != nil {
56+
log.Fatal(err)
57+
}
58+
```
59+
60+
For more information about configuring `Seth` please read about [TOML config](https://smartcontractkit.github.io/chainlink-testing-framework/libs/seth.html#toml-configuration) and [programatic builder](https://smartcontractkit.github.io/chainlink-testing-framework/libs/seth.html#config).

framework/.changeset/v0.5.6.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Update `go-ethereum` dependency to `v1.15.0` version

framework/examples/myproject/go.mod

Lines changed: 130 additions & 112 deletions
Large diffs are not rendered by default.

framework/examples/myproject/go.sum

Lines changed: 378 additions & 572 deletions
Large diffs are not rendered by default.

framework/examples/myproject_cll/go.mod

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,16 @@ require (
3333
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.4 // indirect
3434
github.com/aws/aws-sdk-go-v2/service/sts v1.33.0 // indirect
3535
github.com/aws/smithy-go v1.22.1 // indirect
36-
github.com/bits-and-blooms/bitset v1.13.0 // indirect
36+
github.com/bits-and-blooms/bitset v1.17.0 // indirect
3737
github.com/block-vision/sui-go-sdk v1.0.6 // indirect
38-
github.com/btcsuite/btcd/btcec/v2 v2.3.4 // indirect
3938
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
40-
github.com/consensys/bavard v0.1.13 // indirect
41-
github.com/consensys/gnark-crypto v0.12.1 // indirect
39+
github.com/consensys/bavard v0.1.22 // indirect
40+
github.com/consensys/gnark-crypto v0.14.0 // indirect
4241
github.com/containerd/log v0.1.0 // indirect
4342
github.com/containerd/platforms v0.2.1 // indirect
4443
github.com/cpuguy83/dockercfg v0.3.2 // indirect
45-
github.com/crate-crypto/go-ipa v0.0.0-20240223125850-b1e8a79f509c // indirect
46-
github.com/crate-crypto/go-kzg-4844 v1.0.0 // indirect
44+
github.com/crate-crypto/go-ipa v0.0.0-20240724233137-53bbb0ceb27a // indirect
45+
github.com/crate-crypto/go-kzg-4844 v1.1.0 // indirect
4746
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
4847
github.com/deckarep/golang-set/v2 v2.6.0 // indirect
4948
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect
@@ -52,8 +51,8 @@ require (
5251
github.com/docker/go-connections v0.5.0 // indirect
5352
github.com/docker/go-units v0.5.0 // indirect
5453
github.com/ethereum/c-kzg-4844 v1.0.0 // indirect
55-
github.com/ethereum/go-ethereum v1.14.11 // indirect
56-
github.com/ethereum/go-verkle v0.1.1-0.20240829091221-dffa7562dbe9 // indirect
54+
github.com/ethereum/go-ethereum v1.15.0 // indirect
55+
github.com/ethereum/go-verkle v0.2.2 // indirect
5756
github.com/felixge/httpsnoop v1.0.4 // indirect
5857
github.com/fsnotify/fsnotify v1.7.0 // indirect
5958
github.com/gabriel-vasile/mimetype v1.4.6 // indirect
@@ -65,11 +64,10 @@ require (
6564
github.com/go-playground/validator/v10 v10.22.1 // indirect
6665
github.com/go-resty/resty/v2 v2.15.3 // indirect
6766
github.com/gogo/protobuf v1.3.2 // indirect
68-
github.com/golang-jwt/jwt/v4 v4.5.1 // indirect
6967
github.com/google/uuid v1.6.0 // indirect
7068
github.com/gorilla/websocket v1.5.1 // indirect
7169
github.com/grpc-ecosystem/grpc-gateway/v2 v2.23.0 // indirect
72-
github.com/holiman/uint256 v1.3.1 // indirect
70+
github.com/holiman/uint256 v1.3.2 // indirect
7371
github.com/klauspost/compress v1.17.9 // indirect
7472
github.com/leodido/go-urn v1.4.0 // indirect
7573
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
@@ -91,7 +89,7 @@ require (
9189
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
9290
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
9391
github.com/prometheus/client_golang v1.20.4 // indirect
94-
github.com/prometheus/common v0.60.0 // indirect
92+
github.com/prometheus/common v0.62.0 // indirect
9593
github.com/rogpeppe/go-internal v1.13.1 // indirect
9694
github.com/rs/cors v1.9.0 // indirect
9795
github.com/rs/zerolog v1.33.0 // indirect
@@ -116,15 +114,15 @@ require (
116114
go.opentelemetry.io/proto/otlp v1.3.1 // indirect
117115
golang.org/x/crypto v0.32.0 // indirect
118116
golang.org/x/exp v0.0.0-20240325151524-a685a6edb6d8 // indirect
119-
golang.org/x/net v0.30.0 // indirect
117+
golang.org/x/net v0.34.0 // indirect
120118
golang.org/x/sync v0.10.0 // indirect
121119
golang.org/x/sys v0.29.0 // indirect
122120
golang.org/x/text v0.21.0 // indirect
123121
golang.org/x/time v0.7.0 // indirect
124122
google.golang.org/genproto/googleapis/api v0.0.0-20241104194629-dd2ea8efbc28 // indirect
125123
google.golang.org/genproto/googleapis/rpc v0.0.0-20241104194629-dd2ea8efbc28 // indirect
126124
google.golang.org/grpc v1.68.0 // indirect
127-
google.golang.org/protobuf v1.35.2 // indirect
125+
google.golang.org/protobuf v1.36.1 // indirect
128126
gopkg.in/guregu/null.v4 v4.0.0 // indirect
129127
gopkg.in/yaml.v3 v3.0.1 // indirect
130128
rsc.io/tmplfunc v0.0.3 // indirect

0 commit comments

Comments
 (0)