Skip to content

Commit b26e11e

Browse files
authored
Merge pull request #134 from onflow/auto-update-onflow-cadence-v1.7.0-preview.1
2 parents e4b8585 + b047297 commit b26e11e

4 files changed

Lines changed: 137 additions & 122 deletions

File tree

accounts/keys.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ import (
2727
"regexp"
2828
"strings"
2929

30+
gethAccounts "github.com/ethereum/go-ethereum/accounts"
3031
"github.com/lmars/go-slip10"
3132
"github.com/onflow/flow-go-sdk/crypto"
3233
"github.com/onflow/flow-go-sdk/crypto/cloudkms"
33-
goeth "github.com/onflow/go-ethereum/accounts"
3434
"github.com/tyler-smith/go-bip39"
3535

3636
"github.com/onflow/flowkit/v2/config"
@@ -471,7 +471,7 @@ func (a *BIP44Key) Validate() error {
471471
return fmt.Errorf("invalid mnemonic defined for account in flow.json")
472472
}
473473

474-
derivationPath, err := goeth.ParseDerivationPath(a.derivationPath)
474+
derivationPath, err := gethAccounts.ParseDerivationPath(a.derivationPath)
475475
if err != nil {
476476
return fmt.Errorf("invalid derivation path defined for account in flow.json")
477477
}

flowkit.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ import (
2828
"sync"
2929

3030
"github.com/btcsuite/btcd/chaincfg/chainhash"
31+
gethAccounts "github.com/ethereum/go-ethereum/accounts"
3132
"github.com/lmars/go-slip10"
3233
"github.com/onflow/cadence"
3334
"github.com/onflow/flow-go-sdk"
3435
"github.com/onflow/flow-go-sdk/access/grpc"
3536
"github.com/onflow/flow-go-sdk/crypto"
36-
goeth "github.com/onflow/go-ethereum/accounts"
3737
"github.com/pkg/errors"
3838
"github.com/tyler-smith/go-bip39"
3939
"golang.org/x/exp/maps"
@@ -667,7 +667,7 @@ func (f *Flowkit) derivePrivateKeyFromSeed(
667667
derivationPath = "m/44'/539'/0'/0/0"
668668
}
669669

670-
path, err := goeth.ParseDerivationPath(derivationPath)
670+
path, err := gethAccounts.ParseDerivationPath(derivationPath)
671671
if err != nil {
672672
return nil, fmt.Errorf("invalid derivation path")
673673
}

go.mod

Lines changed: 37 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ go 1.23.7
44

55
require (
66
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.2
7+
github.com/ethereum/go-ethereum v1.16.2
78
github.com/gosuri/uilive v0.0.4
89
github.com/invopop/jsonschema v0.7.0
910
github.com/lmars/go-slip10 v0.0.0-20190606092855-400ba44fee12
10-
github.com/onflow/cadence v1.6.2
11+
github.com/onflow/cadence v1.7.0-preview.1
1112
github.com/onflow/crypto v0.25.3
12-
github.com/onflow/flow-emulator v1.6.0
13-
github.com/onflow/flow-go v0.41.0-rc.1.0.20250618213905-cfbf84027792
14-
github.com/onflow/flow-go-sdk v1.6.1
15-
github.com/onflow/flow/protobuf/go/flow v0.4.10
16-
github.com/onflow/go-ethereum v1.15.10
13+
github.com/onflow/flow-emulator v1.7.0-preview.1
14+
github.com/onflow/flow-go v0.42.3-util-fix.0.20250819165158-ea886bab7c19
15+
github.com/onflow/flow-go-sdk v1.7.0
16+
github.com/onflow/flow/protobuf/go/flow v0.4.11
1717
github.com/pkg/errors v0.9.1
1818
github.com/rs/zerolog v1.34.0
1919
github.com/spf13/afero v1.10.0
@@ -27,37 +27,38 @@ require (
2727

2828
require (
2929
cloud.google.com/go v0.120.0 // indirect
30-
cloud.google.com/go/auth v0.16.1 // indirect
30+
cloud.google.com/go/auth v0.16.2 // indirect
3131
cloud.google.com/go/auth/oauth2adapt v0.2.8 // indirect
3232
cloud.google.com/go/compute/metadata v0.7.0 // indirect
3333
cloud.google.com/go/iam v1.5.2 // indirect
3434
cloud.google.com/go/kms v1.22.0 // indirect
3535
cloud.google.com/go/longrunning v0.6.7 // indirect
36-
github.com/DataDog/zstd v1.5.2 // indirect
36+
github.com/DataDog/zstd v1.5.6-0.20230824185856-869dae002e5e // indirect
3737
github.com/FactomProject/basen v0.0.0-20150613233007-fe3947df716e // indirect
3838
github.com/FactomProject/btcutilecc v0.0.0-20130527213604-d3a63a5752ec // indirect
3939
github.com/Microsoft/go-winio v0.6.2 // indirect
4040
github.com/SaveTheRbtz/mph v0.1.1-0.20240117162131-4166ec7869bc // indirect
4141
github.com/StackExchange/wmi v1.2.1 // indirect
4242
github.com/VictoriaMetrics/fastcache v1.12.2 // indirect
4343
github.com/beorn7/perks v1.0.1 // indirect
44-
github.com/bits-and-blooms/bitset v1.17.0 // indirect
44+
github.com/bits-and-blooms/bitset v1.20.0 // indirect
4545
github.com/btcsuite/btcd/btcec/v2 v2.3.4 // indirect
4646
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
4747
github.com/cespare/xxhash v1.1.0 // indirect
4848
github.com/cespare/xxhash/v2 v2.3.0 // indirect
4949
github.com/cmars/basen v0.0.0-20150613233007-fe3947df716e // indirect
50+
github.com/cockroachdb/crlib v0.0.0-20241015224233-894974b3ad94 // indirect
5051
github.com/cockroachdb/errors v1.11.3 // indirect
5152
github.com/cockroachdb/fifo v0.0.0-20240606204812-0bbfbd93a7ce // indirect
5253
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
53-
github.com/cockroachdb/pebble v1.1.2 // indirect
54+
github.com/cockroachdb/pebble/v2 v2.0.6 // indirect
5455
github.com/cockroachdb/redact v1.1.5 // indirect
56+
github.com/cockroachdb/swiss v0.0.0-20250624142022-d6e517c1d961 // indirect
5557
github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect
56-
github.com/consensys/bavard v0.1.22 // indirect
57-
github.com/consensys/gnark-crypto v0.14.0 // indirect
58+
github.com/consensys/gnark-crypto v0.18.0 // indirect
5859
github.com/coreos/go-semver v0.3.0 // indirect
60+
github.com/crate-crypto/go-eth-kzg v1.3.0 // indirect
5961
github.com/crate-crypto/go-ipa v0.0.0-20240724233137-53bbb0ceb27a // indirect
60-
github.com/crate-crypto/go-kzg-4844 v1.1.0 // indirect
6162
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
6263
github.com/davidlazar/go-crypto v0.0.0-20200604182044-b73af7476f6c // indirect
6364
github.com/deckarep/golang-set/v2 v2.6.0 // indirect
@@ -69,10 +70,11 @@ require (
6970
github.com/docker/go-units v0.5.0 // indirect
7071
github.com/dustin/go-humanize v1.0.1 // indirect
7172
github.com/ef-ds/deque v1.0.4 // indirect
72-
github.com/ethereum/c-kzg-4844 v1.0.0 // indirect
73-
github.com/ethereum/go-ethereum v1.13.10 // indirect
73+
github.com/emicklei/dot v1.6.2 // indirect
74+
github.com/ethereum/c-kzg-4844/v2 v2.1.0 // indirect
7475
github.com/ethereum/go-verkle v0.2.2 // indirect
7576
github.com/felixge/httpsnoop v1.0.4 // indirect
77+
github.com/ferranbt/fastssz v0.1.4 // indirect
7678
github.com/fsnotify/fsnotify v1.6.0 // indirect
7779
github.com/fxamacker/cbor/v2 v2.8.1-0.20250402194037-6f932b086829 // indirect
7880
github.com/fxamacker/circlehash v0.3.0 // indirect
@@ -85,20 +87,19 @@ require (
8587
github.com/go-logr/stdr v1.2.2 // indirect
8688
github.com/go-ole/go-ole v1.3.0 // indirect
8789
github.com/go-redis/redis/v8 v8.11.5 // indirect
88-
github.com/gofrs/flock v0.8.1 // indirect
90+
github.com/gofrs/flock v0.12.1 // indirect
8991
github.com/gogo/protobuf v1.3.2 // indirect
9092
github.com/golang/glog v1.2.5 // indirect
9193
github.com/golang/protobuf v1.5.4 // indirect
92-
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect
94+
github.com/golang/snappy v0.0.5-0.20231225225746-43d5d4cd4e0e // indirect
9395
github.com/google/s2a-go v0.1.9 // indirect
9496
github.com/google/uuid v1.6.0 // indirect
9597
github.com/googleapis/enterprise-certificate-proxy v0.3.6 // indirect
96-
github.com/googleapis/gax-go/v2 v2.14.1 // indirect
98+
github.com/googleapis/gax-go/v2 v2.14.2 // indirect
9799
github.com/gorilla/websocket v1.5.3 // indirect
98100
github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0 // indirect
99101
github.com/hashicorp/errwrap v1.1.0 // indirect
100102
github.com/hashicorp/go-multierror v1.1.1 // indirect
101-
github.com/hashicorp/golang-lru v1.0.2 // indirect
102103
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
103104
github.com/hashicorp/hcl v1.0.0 // indirect
104105
github.com/holiman/bloomfilter/v2 v2.0.3 // indirect
@@ -112,14 +113,14 @@ require (
112113
github.com/ipfs/boxo v0.17.1-0.20240131173518-89bceff34bf1 // indirect
113114
github.com/ipfs/go-block-format v0.2.0 // indirect
114115
github.com/ipfs/go-cid v0.4.1 // indirect
115-
github.com/ipfs/go-datastore v0.6.0 // indirect
116+
github.com/ipfs/go-datastore v0.8.2 // indirect
116117
github.com/ipfs/go-ipfs-util v0.0.3 // indirect
117118
github.com/ipfs/go-ipld-format v0.6.0 // indirect
118119
github.com/ipfs/go-log/v2 v2.5.1 // indirect
119120
github.com/ipfs/go-metrics-interface v0.0.1 // indirect
120121
github.com/jackpal/go-nat-pmp v1.0.2 // indirect
121122
github.com/jbenet/go-temp-err-catcher v0.1.0 // indirect
122-
github.com/jbenet/goprocess v0.1.4 // indirect
123+
github.com/jordanschalm/lockctx v0.0.0-20250412215529-226f85c10956 // indirect
123124
github.com/k0kubun/pp v3.0.1+incompatible // indirect
124125
github.com/kevinburke/go-bindata v3.24.0+incompatible // indirect
125126
github.com/klauspost/compress v1.17.11 // indirect
@@ -137,8 +138,8 @@ require (
137138
github.com/mattn/go-isatty v0.0.20 // indirect
138139
github.com/mattn/go-runewidth v0.0.15 // indirect
139140
github.com/minio/sha256-simd v1.0.1 // indirect
141+
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect
140142
github.com/mitchellh/mapstructure v1.5.0 // indirect
141-
github.com/mmcloughlin/addchain v0.4.0 // indirect
142143
github.com/mr-tron/base58 v1.2.0 // indirect
143144
github.com/multiformats/go-base32 v0.1.0 // indirect
144145
github.com/multiformats/go-base36 v0.2.0 // indirect
@@ -180,14 +181,15 @@ require (
180181
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
181182
github.com/rivo/uniseg v0.4.4 // indirect
182183
github.com/rogpeppe/go-internal v1.13.1 // indirect
184+
github.com/schollz/progressbar/v3 v3.13.1 // indirect
183185
github.com/sethvargo/go-retry v0.2.3 // indirect
184186
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
185187
github.com/slok/go-http-metrics v0.12.0 // indirect
186188
github.com/spaolacci/murmur3 v1.1.0 // indirect
187189
github.com/spf13/cast v1.5.0 // indirect
188190
github.com/spf13/cobra v1.8.1 // indirect
189191
github.com/spf13/jwalterweatherman v1.1.0 // indirect
190-
github.com/spf13/pflag v1.0.5 // indirect
192+
github.com/spf13/pflag v1.0.6 // indirect
191193
github.com/spf13/viper v1.15.0 // indirect
192194
github.com/stretchr/objx v0.5.2 // indirect
193195
github.com/subosito/gotenv v1.4.2 // indirect
@@ -203,8 +205,8 @@ require (
203205
github.com/x448/float16 v0.8.4 // indirect
204206
github.com/zeebo/blake3 v0.2.4 // indirect
205207
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
206-
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.60.0 // indirect
207-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.60.0 // indirect
208+
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.61.0 // indirect
209+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 // indirect
208210
go.opentelemetry.io/otel v1.36.0 // indirect
209211
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.31.0 // indirect
210212
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.31.0 // indirect
@@ -215,27 +217,28 @@ require (
215217
go.uber.org/atomic v1.11.0 // indirect
216218
go.uber.org/multierr v1.11.0 // indirect
217219
go.uber.org/zap v1.27.0 // indirect
218-
golang.org/x/crypto v0.38.0 // indirect
219-
golang.org/x/net v0.40.0 // indirect
220+
golang.org/x/crypto v0.39.0 // indirect
221+
golang.org/x/net v0.41.0 // indirect
220222
golang.org/x/oauth2 v0.30.0 // indirect
221-
golang.org/x/sync v0.14.0 // indirect
223+
golang.org/x/sync v0.15.0 // indirect
222224
golang.org/x/sys v0.33.0 // indirect
223-
golang.org/x/text v0.25.0 // indirect
224-
golang.org/x/time v0.11.0 // indirect
225+
golang.org/x/term v0.32.0 // indirect
226+
golang.org/x/text v0.26.0 // indirect
227+
golang.org/x/time v0.12.0 // indirect
225228
golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da // indirect
226-
google.golang.org/api v0.232.0 // indirect
229+
google.golang.org/api v0.241.0 // indirect
227230
google.golang.org/appengine v1.6.8 // indirect
228-
google.golang.org/genproto v0.0.0-20250303144028-a0af3efb3deb // indirect
231+
google.golang.org/genproto v0.0.0-20250505200425-f936aa4a68b2 // indirect
229232
google.golang.org/genproto/googleapis/api v0.0.0-20250528174236-200df99c418a // indirect
230-
google.golang.org/genproto/googleapis/rpc v0.0.0-20250528174236-200df99c418a // indirect
233+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250603155806-513f23925822 // indirect
231234
google.golang.org/protobuf v1.36.6 // indirect
232235
gopkg.in/ini.v1 v1.67.0 // indirect
236+
gopkg.in/yaml.v2 v2.4.0 // indirect
233237
gopkg.in/yaml.v3 v3.0.1 // indirect
234238
launchpad.net/gocheck v0.0.0-20140225173054-000000000087 // indirect
235239
lukechampine.com/blake3 v1.4.1 // indirect
236240
modernc.org/libc v1.37.6 // indirect
237241
modernc.org/mathutil v1.6.0 // indirect
238242
modernc.org/memory v1.7.2 // indirect
239243
modernc.org/sqlite v1.28.0 // indirect
240-
rsc.io/tmplfunc v0.0.3 // indirect
241244
)

0 commit comments

Comments
 (0)