Skip to content

PLEX-1577 fix proto helpers#1490

Merged
ilija42 merged 11 commits intomainfrom
feature/PLEX-1577-fix-proto-helpers
Aug 26, 2025
Merged

PLEX-1577 fix proto helpers#1490
ilija42 merged 11 commits intomainfrom
feature/PLEX-1577-fix-proto-helpers

Conversation

@dhaidashenko
Copy link
Copy Markdown
Contributor

@dhaidashenko dhaidashenko commented Aug 19, 2025

@ilija42 ilija42 force-pushed the feature/PLEX-1577-fix-proto-helpers branch 2 times, most recently from b375a9a to 98b6c24 Compare August 21, 2025 16:31
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Aug 21, 2025

apidiff results - backwards-incompatible changes detected ❌

Module: github-com-smartcontractkit-chainlink-common

Status: ❌ 21 incompatible, 11 compatible

Incompatible Changes (21)

Element Change
./pkg/capabilities/v2/chain-capabilities/evm.ConvertAddressesFromProto removed
./pkg/capabilities/v2/chain-capabilities/evm.ConvertFilterToProto changed from func(github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.FilterQuery) *FilterQuery to func(github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.FilterQuery) (*FilterQuery, error)
./pkg/capabilities/v2/chain-capabilities/evm.ConvertHashesFromProto removed
./pkg/capabilities/v2/chain-capabilities/evm.ConvertHashFromProto removed
./pkg/capabilities/v2/chain-capabilities/evm.ConvertHeaderToProto changed from func(github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.Header) *Header to func(*github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.Header) (*Header, error)
./pkg/capabilities/v2/chain-capabilities/evm.ConvertHeadFromProto removed
./pkg/capabilities/v2/chain-capabilities/evm.ConvertLogsFromProto changed from func([]*Log) []*github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.Log to func([]*Log) ([]*github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.Log, error)
./pkg/capabilities/v2/chain-capabilities/evm.ConvertLogsToProto changed from func([]*github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.Log) []*Log to func([]*github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.Log) ([]*Log, error)
./pkg/capabilities/v2/chain-capabilities/evm.ConvertLogToProto changed from func(*github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.Log) *Log to func(github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.Log) *Log
./pkg/capabilities/v2/chain-capabilities/evm.ConvertTopicsFromProto changed from func([]*Topics) [][]github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.Hash to func([]*Topics) ([][]github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.Hash, error)
./pkg/chains/evm.ConvertAddressesFromProto changed from func([][]byte) []github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.Address to func([][]byte) ([]github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.Address, error)
./pkg/chains/evm.ConvertFilterToProto changed from func(github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.FilterQuery) *FilterQuery to func(github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.FilterQuery) (*FilterQuery, error)
./pkg/chains/evm.ConvertGasConfigToProto changed from func(*github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.GasConfig) *GasConfig to func(github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.GasConfig) (*GasConfig, error)
./pkg/chains/evm.ConvertHashesFromProto changed from func([][]byte) []github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.Hash to func([][]byte) ([]github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.Hash, error)
./pkg/chains/evm.ConvertHeaderFromProto changed from func(*Header) (*github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.Header, error) to func(*Header) (github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.Header, error)
./pkg/chains/evm.ConvertHeaderToProto changed from func(*github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.Header) *Header to func(*github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.Header) (*Header, error)
./pkg/chains/evm.ConvertLogsFromProto changed from func([]*Log) []*github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.Log to func([]*Log) ([]*github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.Log, error)
./pkg/chains/evm.ConvertLogsToProto changed from func([]*github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.Log) []*Log to func([]*github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.Log) ([]*Log, error)
./pkg/chains/evm.ConvertLogToProto changed from func(*github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.Log) *Log to func(github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.Log) *Log
./pkg/chains/evm.ConvertSubmitTransactionRequestFromProto changed from func(*SubmitTransactionRequest) github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.SubmitTransactionRequest to func(*SubmitTransactionRequest) (github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.SubmitTransactionRequest, error)
./pkg/chains/evm.ConvertTopicsFromProto changed from func([]*Topics) [][]github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.Hash to func([]*Topics) ([][]github.com/smartcontractkit/chainlink-common/pkg/types/chains/evm.Hash, error)

(Full summary: https://github.com/smartcontractkit/chainlink-common/actions/runs/17214677950/#summary-48835208635)

@ilija42 ilija42 marked this pull request as ready for review August 21, 2025 16:37
@ilija42 ilija42 requested review from a team as code owners August 21, 2025 16:37
Comment thread pkg/capabilities/v2/chain-capabilities/evm/proto_helpers.go Outdated
Comment thread pkg/chains/evm/proto_helpers.go Outdated
Comment thread pkg/chains/evm/proto_helpers.go Outdated
Comment thread pkg/capabilities/v2/chain-capabilities/evm/proto_helpers.go Outdated
Comment thread pkg/capabilities/v2/chain-capabilities/evm/proto_helpers.go Outdated
Comment thread pkg/capabilities/v2/chain-capabilities/evm/proto_helpers.go Outdated
Comment thread pkg/capabilities/v2/chain-capabilities/evm/proto_helpers.go Outdated
Comment thread pkg/capabilities/v2/chain-capabilities/evm/proto_helpers.go Outdated
Comment thread pkg/chains/evm/proto_helpers.go
Comment thread pkg/chains/evm/proto_helpers.go Outdated
Comment thread pkg/chains/evm/proto_helpers.go
Comment thread pkg/chains/evm/proto_helpers.go Outdated
Comment thread pkg/chains/evm/proto_helpers.go Outdated

var addresses []evmtypes.Address
for i, protoAddress := range protoFilter.GetAddresses() {
address, err := ConvertOptionalAddressFromProto(protoAddress)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to allow empty addrs here?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are use cases for tracking just an event signature, we would need to setup some limits for CRE use though, but right now this is only used internally

@ilija42 ilija42 force-pushed the feature/PLEX-1577-fix-proto-helpers branch from 92175f3 to 99b2ab1 Compare August 25, 2025 16:27
@ilija42 ilija42 merged commit 3241d73 into main Aug 26, 2025
20 of 21 checks passed
@ilija42 ilija42 deleted the feature/PLEX-1577-fix-proto-helpers branch August 26, 2025 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants