Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions indexer/overlay.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,28 @@ actions:
- target: "$.paths['/v1/verifierresults'].get.parameters[?(@.name=='offset')].schema"
update:
x-go-type: uint64

# Response models. Both of these fields are uint64 in protocol, and int64 is the wrong Go type
# for them in different ways: 134 of the 400 registered chain selectors are above maxInt64, so
# a selector is a value int64 cannot represent at all, while a sequence number fits but is
# declared minimum: 0 and int64 admits negatives the schema forbids.
#
# The parameter actions above only cover the query string; these cover the
# components.schemas the responses are built from.
- target: "$.components.schemas.Message.properties.source_chain_selector"
update:
x-go-type: protocol.ChainSelector
x-go-type-import:
path: github.com/smartcontractkit/chainlink-ccv/protocol

- target: "$.components.schemas.Message.properties.dest_chain_selector"
update:
x-go-type: protocol.ChainSelector
x-go-type-import:
path: github.com/smartcontractkit/chainlink-ccv/protocol

- target: "$.components.schemas.Message.properties.sequence_number"
update:
x-go-type: protocol.SequenceNumber
x-go-type-import:
path: github.com/smartcontractkit/chainlink-ccv/protocol
44 changes: 22 additions & 22 deletions indexer/pkg/client/internal/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading