Skip to content

Commit ffa12b8

Browse files
committed
chore: clean up
1 parent 2b6a8f9 commit ffa12b8

14 files changed

Lines changed: 421 additions & 396 deletions

File tree

deployment/ccip/cs_test_helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ func SendTonRequest(
385385
return event.Message.Header.SequenceNumber, event, nil
386386
}
387387

388-
func waitForReceivedMsgFlatten(e cldf.Environment, clientConn *ton.APIClient, msg *tracetracking.ReceivedMessage) (onramp.CCIPMessageSent, error) {
388+
func waitForReceivedMsgFlatten(e cldf.Environment, clientConn ton.APIClientWrapped, msg *tracetracking.ReceivedMessage) (onramp.CCIPMessageSent, error) {
389389
if msg == nil {
390390
return onramp.CCIPMessageSent{}, errors.New("received message is nil")
391391
}

deployment/ccip/helpers/execute.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ import (
1515
)
1616

1717
// TODO Remove in favor of ExecuteTransactions.
18-
func ExecuteProposals(env cldf.Environment, client *ton.APIClient, sender *wallet.Wallet, txs [][]byte) error {
18+
func ExecuteProposals(env cldf.Environment, client ton.APIClientWrapped, sender *wallet.Wallet, txs [][]byte) error {
1919
return ExecuteTransactions(env.GetContext(), env.Logger, client, sender, txs)
2020
}
2121

22-
func ExecuteTransactions(context context.Context, logger logger.Logger, client *ton.APIClient, sender *wallet.Wallet, txs [][]byte) error {
22+
func ExecuteTransactions(context context.Context, logger logger.Logger, client ton.APIClientWrapped, sender *wallet.Wallet, txs [][]byte) error {
2323
internalMsgs, err := Deserialize(txs)
2424
if err != nil {
2525
return fmt.Errorf("failed to deserialize lane updates: %w", err)

deployment/config/localnetwork.go

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
package config
2+
3+
import (
4+
"sync"
5+
6+
cldf_provider "github.com/smartcontractkit/chainlink-deployments-framework/chain/ton/provider"
7+
)
8+
9+
// TON Local Network Configuration
10+
//
11+
// This package centralizes the TON local network (MyLocalTon) configuration used for testing.
12+
// The versions here must be compatible with the current CCIP contract versions deployed in this repository.
13+
//
14+
// When to Update:
15+
// - When TON CCIP contracts are updated and require different network capabilities
16+
// - When mylocalton-docker adds features needed by the contracts
17+
// - When blockchain behavior changes affect contract execution
18+
19+
// LocalNetworkConfig returns the CTFChainProviderConfig compatible with current contract versions.
20+
// The once parameter ensures the CTF network is only initialized once across the test suite.
21+
func LocalNetworkConfig(once *sync.Once) cldf_provider.CTFChainProviderConfig {
22+
return cldf_provider.CTFChainProviderConfig{
23+
Once: once,
24+
// LocalNetworkImage is the TON local network Docker image version compatible with current contracts.
25+
// Source: https://github.com/neodix42/mylocalton-docker
26+
Image: "ghcr.io/neodix42/mylocalton-docker:v3.7",
27+
CustomEnv: map[string]string{
28+
// LocalNetworkVersionCapabilities is the VERSION_CAPABILITIES setting compatible with current contracts.
29+
// This controls which TVM features are enabled in the local network.
30+
"VERSION_CAPABILITIES": "11",
31+
// LocalNetworkBlockGenerationDelay is the recommended block generation delay for faster testing.
32+
"NEXT_BLOCK_GENERATION_DELAY": "0.5",
33+
},
34+
}
35+
}

deployment/go.mod

Lines changed: 40 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,17 @@ replace github.com/smartcontractkit/chainlink-ton => ../
88

99
require (
1010
github.com/Masterminds/semver/v3 v3.4.0
11-
github.com/hashicorp/consul/sdk v0.16.2
12-
github.com/rs/zerolog v1.33.0
13-
github.com/smartcontractkit/chain-selectors v1.0.72
11+
github.com/rs/zerolog v1.34.0
12+
github.com/smartcontractkit/chain-selectors v1.0.83
1413
github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20251027185542-babb09e5363e
1514
github.com/smartcontractkit/chainlink-ccip/deployment v0.0.0-20251027185542-babb09e5363e
1615
github.com/smartcontractkit/chainlink-common v0.9.6-0.20251023193345-8f2c4380a62c
17-
github.com/smartcontractkit/chainlink-deployments-framework v0.56.0
18-
github.com/smartcontractkit/chainlink-testing-framework/framework v0.10.30
16+
github.com/smartcontractkit/chainlink-deployments-framework v0.67.1-0.20251120111322-7760d1301f77
17+
github.com/smartcontractkit/chainlink-testing-framework/framework v0.11.7
1918
github.com/smartcontractkit/chainlink-ton v0.0.0-20250904183752-4ea5c19ee886
20-
github.com/smartcontractkit/mcms v0.25.0
21-
github.com/stretchr/testify v1.11.1
19+
github.com/smartcontractkit/mcms v0.30.2
2220
github.com/xssnick/tonutils-go v1.14.1
23-
golang.org/x/sync v0.16.0
21+
golang.org/x/sync v0.17.0
2422
)
2523

2624
require (
@@ -29,53 +27,55 @@ require (
2927
github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c // indirect
3028
github.com/BurntSushi/toml v1.4.0 // indirect
3129
github.com/Microsoft/go-winio v0.6.2 // indirect
30+
github.com/ProjectZKM/Ziren/crates/go-runtime/zkvm_runtime v0.0.0-20251001021608-1fe7b43fc4d6 // indirect
3231
github.com/TyphonHill/go-mermaid v1.0.0 // indirect
3332
github.com/XSAM/otelsql v0.37.0 // indirect
34-
github.com/aptos-labs/aptos-go-sdk v1.9.1-0.20250613185448-581cb03acb8f // indirect
33+
github.com/aptos-labs/aptos-go-sdk v1.11.0 // indirect
3534
github.com/avast/retry-go/v4 v4.6.1 // indirect
3635
github.com/bahlo/generic-list-go v0.2.0 // indirect
3736
github.com/benbjohnson/clock v1.3.5 // indirect
3837
github.com/beorn7/perks v1.0.1 // indirect
3938
github.com/bits-and-blooms/bitset v1.20.0 // indirect
4039
github.com/blendle/zapdriver v1.3.1 // indirect
41-
github.com/block-vision/sui-go-sdk v1.0.9 // indirect
40+
github.com/block-vision/sui-go-sdk v1.1.2 // indirect
4241
github.com/btcsuite/btcd v0.24.2 // indirect
4342
github.com/btcsuite/btcd/btcec/v2 v2.3.4 // indirect
4443
github.com/btcsuite/btcd/btcutil v1.1.6 // indirect
4544
github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0 // indirect
45+
github.com/btcsuite/btcutil v1.0.2 // indirect
4646
github.com/buger/jsonparser v1.1.1 // indirect
4747
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
4848
github.com/cenkalti/backoff/v5 v5.0.2 // indirect
4949
github.com/cespare/xxhash/v2 v2.3.0 // indirect
5050
github.com/cloudevents/sdk-go/binding/format/protobuf/v2 v2.16.1 // indirect
5151
github.com/cloudevents/sdk-go/v2 v2.16.1 // indirect
52-
github.com/coder/websocket v1.8.13 // indirect
52+
github.com/coder/websocket v1.8.14 // indirect
5353
github.com/consensys/gnark-crypto v0.18.1 // indirect
5454
github.com/containerd/errdefs v1.0.0 // indirect
5555
github.com/containerd/errdefs/pkg v0.3.0 // indirect
5656
github.com/containerd/log v0.1.0 // indirect
5757
github.com/containerd/platforms v1.0.0-rc.1 // indirect
5858
github.com/cosmos/go-bip39 v1.0.0 // indirect
5959
github.com/cpuguy83/dockercfg v0.3.2 // indirect
60-
github.com/crate-crypto/go-eth-kzg v1.3.0 // indirect
60+
github.com/crate-crypto/go-eth-kzg v1.4.0 // indirect
6161
github.com/crate-crypto/go-ipa v0.0.0-20240724233137-53bbb0ceb27a // indirect
6262
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
6363
github.com/deckarep/golang-set/v2 v2.6.0 // indirect
6464
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0 // indirect
6565
github.com/distribution/reference v0.6.0 // indirect
66-
github.com/docker/docker v28.3.3+incompatible // indirect
67-
github.com/docker/go-connections v0.5.0 // indirect
66+
github.com/docker/docker v28.5.1+incompatible // indirect
67+
github.com/docker/go-connections v0.6.0 // indirect
6868
github.com/docker/go-units v0.5.0 // indirect
69-
github.com/ebitengine/purego v0.8.4 // indirect
70-
github.com/ethereum/c-kzg-4844/v2 v2.1.0 // indirect
71-
github.com/ethereum/go-ethereum v1.16.2 // indirect
69+
github.com/ebitengine/purego v0.9.0 // indirect
70+
github.com/ethereum/c-kzg-4844/v2 v2.1.5 // indirect
71+
github.com/ethereum/go-ethereum v1.16.7 // indirect
7272
github.com/ethereum/go-verkle v0.2.2 // indirect
7373
github.com/fatih/color v1.18.0 // indirect
7474
github.com/fbsobreira/gotron-sdk v0.0.0-20250403083053-2943ce8c759b // indirect
7575
github.com/felixge/httpsnoop v1.0.4 // indirect
7676
github.com/fsnotify/fsnotify v1.9.0 // indirect
7777
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
78-
github.com/gabriel-vasile/mimetype v1.4.8 // indirect
78+
github.com/gabriel-vasile/mimetype v1.4.10 // indirect
7979
github.com/gagliardetto/binary v0.8.0 // indirect
8080
github.com/gagliardetto/solana-go v1.13.0 // indirect
8181
github.com/gagliardetto/treeout v0.1.4 // indirect
@@ -85,10 +85,9 @@ require (
8585
github.com/go-ole/go-ole v1.3.0 // indirect
8686
github.com/go-playground/locales v0.14.1 // indirect
8787
github.com/go-playground/universal-translator v0.18.1 // indirect
88-
github.com/go-playground/validator/v10 v10.26.0 // indirect
88+
github.com/go-playground/validator/v10 v10.28.0 // indirect
8989
github.com/go-resty/resty/v2 v2.16.5 // indirect
9090
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
91-
github.com/gogo/protobuf v1.3.2 // indirect
9291
github.com/golang/protobuf v1.5.4 // indirect
9392
github.com/google/go-cmp v0.7.0 // indirect
9493
github.com/google/uuid v1.6.0 // indirect
@@ -98,7 +97,7 @@ require (
9897
github.com/grpc-ecosystem/grpc-gateway/v2 v2.26.3 // indirect
9998
github.com/hashicorp/go-hclog v1.6.3 // indirect
10099
github.com/hashicorp/yamux v0.1.2 // indirect
101-
github.com/hasura/go-graphql-client v0.13.1 // indirect
100+
github.com/hasura/go-graphql-client v0.14.5 // indirect
102101
github.com/hdevalence/ed25519consensus v0.2.0 // indirect
103102
github.com/holiman/uint256 v1.3.2 // indirect
104103
github.com/invopop/jsonschema v0.13.0 // indirect
@@ -115,11 +114,11 @@ require (
115114
github.com/jpillora/backoff v1.0.0 // indirect
116115
github.com/json-iterator/go v1.1.12 // indirect
117116
github.com/karalabe/hid v1.0.1-0.20240306101548-573246063e52 // indirect
118-
github.com/klauspost/compress v1.18.0 // indirect
117+
github.com/klauspost/compress v1.18.1 // indirect
119118
github.com/leodido/go-urn v1.4.0 // indirect
120119
github.com/lib/pq v1.10.9 // indirect
121120
github.com/logrusorgru/aurora v2.0.3+incompatible // indirect
122-
github.com/lufia/plan9stats v0.0.0-20250317134145-8bc96cf8fc35 // indirect
121+
github.com/lufia/plan9stats v0.0.0-20251013123823-9fd1530e3ec3 // indirect
123122
github.com/magiconair/properties v1.8.10 // indirect
124123
github.com/mailru/easyjson v0.9.0 // indirect
125124
github.com/mattn/go-colorable v0.1.14 // indirect
@@ -154,27 +153,29 @@ require (
154153
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 // indirect
155154
github.com/scylladb/go-reflectx v1.0.1 // indirect
156155
github.com/shirou/gopsutil v3.21.11+incompatible // indirect
157-
github.com/shirou/gopsutil/v4 v4.25.6 // indirect
156+
github.com/shirou/gopsutil/v4 v4.25.9 // indirect
158157
github.com/shopspring/decimal v1.4.0 // indirect
159158
github.com/sigurn/crc16 v0.0.0-20211026045750-20ab5afb07e3 // indirect
160159
github.com/sirupsen/logrus v1.9.3 // indirect
161-
github.com/smartcontractkit/chainlink-aptos v0.0.0-20250915164817-46a35eda083d // indirect
160+
github.com/smartcontractkit/chainlink-aptos v0.0.0-20251024142440-51f2ad2652a2 // indirect
162161
github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20250908144012-8184001834b5 // indirect
163162
github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250908144012-8184001834b5 // indirect
164163
github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.9-0.20251020164035-ab562b473fe2 // indirect
165164
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20251021010742-3f8d3dba17d8 // indirect
166-
github.com/smartcontractkit/chainlink-protos/job-distributor v0.13.1 // indirect
165+
github.com/smartcontractkit/chainlink-protos/job-distributor v0.17.0 // indirect
167166
github.com/smartcontractkit/chainlink-protos/linking-service/go v0.0.0-20251002192024-d2ad9222409b // indirect
168-
github.com/smartcontractkit/chainlink-sui v0.0.0-20250916193659-4becc28a467f // indirect
167+
github.com/smartcontractkit/chainlink-sui v0.0.0-20251104205009-00bd79b81471 // indirect
169168
github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20250908203554-5bd9d2fe9513 // indirect
170169
github.com/smartcontractkit/freeport v0.1.3-0.20250716200817-cb5dfd0e369e // indirect
171170
github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7 // indirect
172171
github.com/smartcontractkit/libocr v0.0.0-20250912173940-f3ab0246e23d // indirect
173172
github.com/spf13/cast v1.10.0 // indirect
174173
github.com/stephenlacy/go-ethereum-hdwallet v0.0.0-20230913225845-a4fa94429863 // indirect
175174
github.com/streamingfast/logging v0.0.0-20230608130331-f22c91403091 // indirect
176-
github.com/supranational/blst v0.3.14 // indirect
177-
github.com/testcontainers/testcontainers-go v0.38.0 // indirect
175+
github.com/stretchr/objx v0.5.2 // indirect
176+
github.com/stretchr/testify v1.11.1 // indirect
177+
github.com/supranational/blst v0.3.16-0.20250831170142-f48500c1fdbe // indirect
178+
github.com/testcontainers/testcontainers-go v0.39.0 // indirect
178179
github.com/tidwall/gjson v1.18.0 // indirect
179180
github.com/tidwall/match v1.1.1 // indirect
180181
github.com/tidwall/pretty v1.2.1 // indirect
@@ -187,9 +188,9 @@ require (
187188
github.com/yusufpapurcu/wmi v1.2.4 // indirect
188189
github.com/zksync-sdk/zksync2-go v1.1.1-0.20250620124214-2c742ee399c6 // indirect
189190
go.mongodb.org/mongo-driver v1.17.2 // indirect
190-
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
191+
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
191192
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.63.0 // indirect
192-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 // indirect
193+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.63.0 // indirect
193194
go.opentelemetry.io/otel v1.38.0 // indirect
194195
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.12.2 // indirect
195196
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp v0.12.2 // indirect
@@ -211,18 +212,18 @@ require (
211212
go.uber.org/multierr v1.11.0 // indirect
212213
go.uber.org/ratelimit v0.3.1 // indirect
213214
go.uber.org/zap v1.27.0 // indirect
214-
golang.org/x/crypto v0.41.0 // indirect
215+
golang.org/x/crypto v0.43.0 // indirect
215216
golang.org/x/exp v0.0.0-20250711185948-6ae5c78190dc // indirect
216-
golang.org/x/net v0.43.0 // indirect
217-
golang.org/x/sys v0.35.0 // indirect
218-
golang.org/x/term v0.34.0 // indirect
219-
golang.org/x/text v0.28.0 // indirect
217+
golang.org/x/net v0.46.0 // indirect
218+
golang.org/x/sys v0.37.0 // indirect
219+
golang.org/x/term v0.36.0 // indirect
220+
golang.org/x/text v0.30.0 // indirect
220221
golang.org/x/time v0.12.0 // indirect
221-
golang.org/x/tools v0.35.0 // indirect
222+
golang.org/x/tools v0.37.0 // indirect
222223
google.golang.org/genproto/googleapis/api v0.0.0-20250707201910-8d1bb00bc6a7 // indirect
223224
google.golang.org/genproto/googleapis/rpc v0.0.0-20250825161204-c5933d9347a5 // indirect
224-
google.golang.org/grpc v1.75.0 // indirect
225-
google.golang.org/protobuf v1.36.8 // indirect
225+
google.golang.org/grpc v1.75.1 // indirect
226+
google.golang.org/protobuf v1.36.10 // indirect
226227
gopkg.in/yaml.v3 v3.0.1 // indirect
227228
)
228229

0 commit comments

Comments
 (0)