Documentation ¶
Overview ¶
Package relayer is the CCTPRelayer responsible for relaying messages related cross-chain USDC transfers.
Index ¶
Constants ¶
View Source
const MessageHash = "message_hash"
MessageHash is the hash of the message used for metrics tracking.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CCTPRelayer ¶
type CCTPRelayer struct {
// contains filtered or unexported fields
}
CCTPRelayer listens for USDC burn events on origin chains, fetches attestations from Circle's API, and posts the necessary data on the destination chain to complete the USDC bridging process.
func NewCCTPRelayer ¶
func NewCCTPRelayer(ctx context.Context, cfg config.Config, store db2.CCTPRelayerDB, scribeClient client.ScribeClient, omniRPCClient omniClient.RPCClient, handler metrics.Handler, attestationAPI api.AttestationAPI) (*CCTPRelayer, error)
NewCCTPRelayer creates a new CCTPRelayer.
Click to show internal directories.
Click to hide internal directories.