Skip to content

Commit

Permalink
CCIP-3555 Attestation encoder interfaces (#813)
Browse files Browse the repository at this point in the history
* Attestation encoder interfaces

* Attestation encoder interfaces

* Attestation encoder interfaces

* Comment
  • Loading branch information
mateusz-sekara authored and cedric-cordenier committed Oct 4, 2024
1 parent 4aa0b5f commit 62e7bca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/types/ccipocr3/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,10 @@ type RMNCrypto interface {
signerAddresses []Bytes,
) error
}

// TokenDataEncoder is a generic interface for encoding offchain token data for different chain families.
// Right now it supports only USDC/CCTP, but every new token that requires offchain data processsing
// should be added to that interface and implemented in the downstream repositories (e.g. chainlink-ccip, chainlink).
type TokenDataEncoder interface {
EncodeUSDC(ctx context.Context, message Bytes, attestation Bytes) (Bytes, error)
}

0 comments on commit 62e7bca

Please sign in to comment.