Skip to content

Commit 27021a9

Browse files
authored
update aptos mcms (#836)
1 parent bc7e435 commit 27021a9

4 files changed

Lines changed: 66 additions & 58 deletions

File tree

.changeset/seven-parents-grab.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"chainlink-deployments-framework": patch
3+
---
4+
5+
update aptos mcms to also handle curse mcms

engine/cld/commands/mcms/chain_helpers.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ func getInspectorFromChainSelector(cfg *forkConfig) (sdk.Inspector, error) {
3939
return nil, fmt.Errorf("error getting aptos role from proposal: %w", err)
4040
}
4141
aptosChain := cfg.blockchains.AptosChains()[cfg.chainSelector]
42-
inspector = aptos.NewInspector(aptosChain.Client, *role)
42+
mcmsType := aptos.MCMSTypeFromOperations(cfg.timelockProposal.Operations, types.ChainSelector(cfg.chainSelector))
43+
inspector = aptos.NewInspectorWithMCMSType(aptosChain.Client, *role, mcmsType)
4344
case chainsel.FamilySui:
4445
metadata, err := suiMetadataFromProposal(types.ChainSelector(cfg.chainSelector), cfg.timelockProposal)
4546
if err != nil {
@@ -138,8 +139,9 @@ func getExecutorWithChainOverride(cfg *forkConfig, chainSelector types.ChainSele
138139
return nil, fmt.Errorf("error getting aptos role from proposal: %w", err)
139140
}
140141
c := cfg.blockchains.AptosChains()[uint64(chainSelector)]
142+
mcmsType := aptos.MCMSTypeFromOperations(cfg.timelockProposal.Operations, chainSelector)
141143

142-
return aptos.NewExecutor(c.Client, c.DeployerSigner, aptosEncoder, *role), nil
144+
return aptos.NewExecutorWithMCMSType(c.Client, c.DeployerSigner, aptosEncoder, *role, mcmsType), nil
143145

144146
case chainsel.FamilySui:
145147
suiEncoder, ok := encoder.(*sui.Encoder)

go.mod

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ replace github.com/fbsobreira/gotron-sdk => github.com/smartcontractkit/chainlin
66

77
require (
88
github.com/Masterminds/semver/v3 v3.4.0
9-
github.com/aptos-labs/aptos-go-sdk v1.11.0
9+
github.com/aptos-labs/aptos-go-sdk v1.12.0
1010
github.com/avast/retry-go/v4 v4.7.0
1111
github.com/aws/aws-sdk-go v1.55.8
1212
github.com/aws/aws-sdk-go-v2 v1.41.2
@@ -16,7 +16,7 @@ require (
1616
github.com/block-vision/sui-go-sdk v1.1.4
1717
github.com/cosmos/go-bip39 v1.0.0
1818
github.com/digital-asset/dazl-client/v8 v8.9.0
19-
github.com/ethereum/go-ethereum v1.17.0
19+
github.com/ethereum/go-ethereum v1.17.1
2020
github.com/fbsobreira/gotron-sdk v0.0.0-20250403083053-2943ce8c759b
2121
github.com/gagliardetto/binary v0.8.0
2222
github.com/gagliardetto/solana-go v1.13.0
@@ -29,7 +29,7 @@ require (
2929
github.com/segmentio/ksuid v1.0.4
3030
github.com/smartcontractkit/ccip-owner-contracts v0.1.0
3131
github.com/smartcontractkit/chain-selectors v1.0.97
32-
github.com/smartcontractkit/chainlink-aptos v0.0.0-20251024142440-51f2ad2652a2
32+
github.com/smartcontractkit/chainlink-aptos v0.0.0-20260306142855-8d629e752265
3333
github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260129103204-4c8453dd8139
3434
github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260121163256-85accaf3d28d
3535
github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5
@@ -41,7 +41,7 @@ require (
4141
github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20250815105909-75499abc4335
4242
github.com/smartcontractkit/freeport v0.1.3-0.20250828155247-add56fa28aad
4343
github.com/smartcontractkit/libocr v0.0.0-20250912173940-f3ab0246e23d
44-
github.com/smartcontractkit/mcms v0.36.3
44+
github.com/smartcontractkit/mcms v0.36.4
4545
github.com/spf13/cobra v1.10.2
4646
github.com/spf13/pflag v1.0.10
4747
github.com/spf13/viper v1.21.0
@@ -53,7 +53,7 @@ require (
5353
github.com/zksync-sdk/zksync2-go v1.1.1-0.20250620124214-2c742ee399c6
5454
go.uber.org/zap v1.27.1
5555
golang.org/x/crypto v0.48.0
56-
golang.org/x/exp v0.0.0-20260112195511-716be5621a96
56+
golang.org/x/exp v0.0.0-20260218203240-3dfff04db8fa
5757
golang.org/x/oauth2 v0.35.0
5858
google.golang.org/grpc v1.79.1
5959
google.golang.org/protobuf v1.36.11
@@ -71,7 +71,7 @@ require (
7171
github.com/dchest/siphash v1.2.3 // indirect
7272
github.com/emicklei/dot v1.6.2 // indirect
7373
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
74-
github.com/ethereum/c-kzg-4844/v2 v2.1.5 // indirect
74+
github.com/ethereum/c-kzg-4844/v2 v2.1.6 // indirect
7575
github.com/ethereum/go-bigmodexpfix v0.0.0-20250911101455-f9e208c548ab // indirect
7676
github.com/ferranbt/fastssz v0.1.4 // indirect
7777
github.com/go-openapi/jsonpointer v0.21.0 // indirect
@@ -89,12 +89,13 @@ require (
8989
github.com/minio/sha256-simd v1.0.1 // indirect
9090
github.com/moby/spdystream v0.5.0 // indirect
9191
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect
92-
github.com/smartcontractkit/chainlink-common v0.10.1-0.20260217084735-307a5770c4f6 // indirect
92+
github.com/smartcontractkit/chainlink-common v0.10.1-0.20260217160002-b56cb5356cc7 // indirect
9393
github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.10 // indirect
94-
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20260210221717-2546aed27ebe // indirect
94+
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20260226130359-963f935e0396 // indirect
9595
github.com/smartcontractkit/chainlink-protos/linking-service/go v0.0.0-20251002192024-d2ad9222409b // indirect
9696
github.com/smartcontractkit/chainlink-protos/node-platform v0.0.0-20260205130626-db2a2aab956b // indirect
9797
github.com/stellar/go-xdr v0.0.0-20231122183749-b53fb00bcac2 // indirect
98+
go.yaml.in/yaml/v2 v2.4.2 // indirect
9899
go.yaml.in/yaml/v3 v3.0.4 // indirect
99100
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
100101
gopkg.in/inf.v0 v0.9.1 // indirect
@@ -182,7 +183,7 @@ require (
182183
github.com/go-playground/locales v0.14.1 // indirect
183184
github.com/go-playground/universal-translator v0.18.1 // indirect
184185
github.com/go-playground/validator/v10 v10.30.1 // indirect
185-
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
186+
github.com/go-viper/mapstructure/v2 v2.5.0 // indirect
186187
github.com/gofrs/flock v0.12.1 // indirect
187188
github.com/gogo/protobuf v1.3.2 // indirect
188189
github.com/golang-jwt/jwt/v4 v4.5.2 // indirect
@@ -196,7 +197,7 @@ require (
196197
github.com/hashicorp/go-hclog v1.6.3 // indirect
197198
github.com/hashicorp/go-plugin v1.7.0 // indirect
198199
github.com/hashicorp/yamux v0.1.2 // indirect
199-
github.com/hasura/go-graphql-client v0.14.5 // indirect
200+
github.com/hasura/go-graphql-client v0.15.1 // indirect
200201
github.com/hdevalence/ed25519consensus v0.2.0 // indirect
201202
github.com/holiman/billy v0.0.0-20250707135307-f2f9b9aae7db // indirect
202203
github.com/holiman/bloomfilter/v2 v2.0.3 // indirect
@@ -234,7 +235,7 @@ require (
234235
github.com/mitchellh/mapstructure v1.5.1-0.20220423185008-bf980b35cac4 // indirect
235236
github.com/mitchellh/pointerstructure v1.2.0 // indirect
236237
github.com/moby/docker-image-spec v1.3.1 // indirect
237-
github.com/moby/go-archive v0.2.0 // indirect
238+
github.com/moby/go-archive v0.1.0 // indirect
238239
github.com/moby/patternmatcher v0.6.0 // indirect
239240
github.com/moby/sys/sequential v0.6.0 // indirect
240241
github.com/moby/sys/user v0.4.0 // indirect
@@ -259,9 +260,9 @@ require (
259260
github.com/pkg/errors v0.9.1 // indirect
260261
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
261262
github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect
262-
github.com/prometheus/client_golang v1.23.0 // indirect
263+
github.com/prometheus/client_golang v1.23.2 // indirect
263264
github.com/prometheus/client_model v0.6.2 // indirect
264-
github.com/prometheus/common v0.65.0 // indirect
265+
github.com/prometheus/common v0.66.1 // indirect
265266
github.com/prometheus/procfs v0.16.1 // indirect
266267
github.com/rivo/uniseg v0.4.7 // indirect
267268
github.com/rogpeppe/go-internal v1.14.1 // indirect
@@ -286,7 +287,7 @@ require (
286287
github.com/streamingfast/logging v0.0.0-20230608130331-f22c91403091 // indirect
287288
github.com/stretchr/objx v0.5.2 // indirect
288289
github.com/subosito/gotenv v1.6.0 // indirect
289-
github.com/supranational/blst v0.3.16-0.20250831170142-f48500c1fdbe // indirect
290+
github.com/supranational/blst v0.3.16 // indirect
290291
github.com/suzuki-shunsuke/go-convmap v0.2.1
291292
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect
292293
github.com/tidwall/gjson v1.18.0 // indirect
@@ -296,7 +297,7 @@ require (
296297
github.com/tklauser/numcpus v0.11.0 // indirect
297298
github.com/tyler-smith/go-bip39 v1.1.0 // indirect
298299
github.com/urfave/cli/v2 v2.27.7 // indirect
299-
github.com/valyala/fastjson v1.6.4 // indirect
300+
github.com/valyala/fastjson v1.6.10 // indirect
300301
github.com/wk8/go-ordered-map/v2 v2.1.8 // indirect
301302
github.com/x448/float16 v0.8.4 // indirect
302303
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect
@@ -305,7 +306,7 @@ require (
305306
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
306307
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.63.0 // indirect
307308
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.65.0 // indirect
308-
go.opentelemetry.io/otel v1.40.0 // indirect
309+
go.opentelemetry.io/otel v1.41.0 // indirect
309310
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.12.2 // indirect
310311
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp v0.12.2 // indirect
311312
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.36.0 // indirect
@@ -317,11 +318,11 @@ require (
317318
go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v1.36.0 // indirect
318319
go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.36.0 // indirect
319320
go.opentelemetry.io/otel/log v0.15.0 // indirect
320-
go.opentelemetry.io/otel/metric v1.40.0 // indirect
321+
go.opentelemetry.io/otel/metric v1.41.0 // indirect
321322
go.opentelemetry.io/otel/sdk v1.40.0 // indirect
322323
go.opentelemetry.io/otel/sdk/log v0.15.0 // indirect
323324
go.opentelemetry.io/otel/sdk/metric v1.40.0 // indirect
324-
go.opentelemetry.io/otel/trace v1.40.0 // indirect
325+
go.opentelemetry.io/otel/trace v1.41.0 // indirect
325326
go.opentelemetry.io/proto/otlp v1.9.0 // indirect
326327
go.uber.org/multierr v1.11.0 // indirect
327328
go.uber.org/ratelimit v0.3.1 // indirect

0 commit comments

Comments
 (0)