Skip to content

Commit 565be11

Browse files
committed
codec: use common query serialization funcs to drop aptos/codec dep
1 parent 69796c8 commit 565be11

3 files changed

Lines changed: 4 additions & 51 deletions

File tree

codec/go.mod

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,16 @@ require (
66
github.com/aptos-labs/aptos-go-sdk v1.13.0
77
github.com/block-vision/sui-go-sdk v1.2.1
88
github.com/mitchellh/mapstructure v1.5.1-0.20220423185008-bf980b35cac4
9-
github.com/smartcontractkit/chainlink-aptos/codec v0.0.0-20260708114855-e953eeb028a7
10-
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260713194119-2689c5708c8b
9+
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260714095740-4b29a5655cd2
1110
github.com/stretchr/testify v1.11.1
1211
)
1312

1413
require (
15-
filippo.io/edwards25519 v1.1.1 // indirect
1614
github.com/cespare/xxhash/v2 v2.3.0 // indirect
17-
github.com/coder/websocket v1.8.14 // indirect
1815
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
19-
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0 // indirect
20-
github.com/ethereum/go-ethereum v1.17.4 // indirect
2116
github.com/go-logr/logr v1.4.3 // indirect
2217
github.com/go-logr/stdr v1.2.2 // indirect
23-
github.com/go-viper/mapstructure/v2 v2.5.0 // indirect
2418
github.com/google/uuid v1.6.0 // indirect
25-
github.com/hasura/go-graphql-client v0.15.1 // indirect
26-
github.com/hdevalence/ed25519consensus v0.2.0 // indirect
27-
github.com/holiman/uint256 v1.3.2 // indirect
2819
github.com/mr-tron/base58 v1.2.0 // indirect
2920
github.com/pelletier/go-toml/v2 v2.3.0 // indirect
3021
github.com/pkg/errors v0.9.1 // indirect

codec/go.sum

Lines changed: 2 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codec/loop/loop_reader.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ import (
1212
"github.com/smartcontractkit/chainlink-common/pkg/types/query"
1313
"github.com/smartcontractkit/chainlink-common/pkg/types/query/primitives"
1414

15-
"github.com/smartcontractkit/chainlink-aptos/codec/loop"
16-
1715
"github.com/smartcontractkit/chainlink-sui/codec"
1816
)
1917

@@ -127,7 +125,7 @@ func (s *loopChainReader) BatchGetLatestValues(ctx context.Context, request type
127125
}
128126

129127
func (s *loopChainReader) QueryKey(ctx context.Context, contract types.BoundContract, filter query.KeyFilter, limitAndSort query.LimitAndSort, sequenceDataType any) ([]types.Sequence, error) {
130-
convertedExpressions, err := loop.SerializeExpressions(filter.Expressions)
128+
convertedExpressions, err := query.SerializeExpressions(filter.Expressions)
131129
if err != nil {
132130
return nil, fmt.Errorf("failed to serialize QueryKey expressions: %w", err)
133131
}

0 commit comments

Comments
 (0)