Documentation
¶
Index ¶
Constants ¶
View Source
const ( AcrossMessage = "AcrossMessage" ZERO_HASH = "0000000000000000000000000000000000000000000000000000000000000000" DOMAIN_NAME = "LiquidityPool" VERSION = "1.0.0" PROTOCOL_ID = 1 BLOCK_RANGE = 1000 TIMEOUT = 10 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
func NewAcrossMessage ¶
func NewAcrossMessage(source, destination uint64, acrossData AcrossData) *message.Message
Types ¶
type AcrossData ¶
type AcrossMessageHandler ¶
type AcrossMessageHandler struct {
// contains filtered or unexported fields
}
func NewAcrossMessageHandler ¶
func NewAcrossMessageHandler( chainID uint64, client EventFilterer, pools map[uint64]common.Address, coordinator Coordinator, host host.Host, comm comm.Communication, fetcher signing.SaveDataFetcher, tokenPricer TokenPricer, tokenMatcher TokenMatcher, sigChn chan any, tokens map[string]evm.TokenConfig, confirmations map[uint64]uint64, blocktime time.Duration, ) *AcrossMessageHandler
func (*AcrossMessageHandler) HandleMessage ¶
HandleMessage finds the Across deposit with the according deposit ID and starts the MPC signature process for it. The result will be saved into the signature cache through the result channel.
func (*AcrossMessageHandler) Listen ¶
func (h *AcrossMessageHandler) Listen(ctx context.Context)
type Coordinator ¶
type EventFilterer ¶
type TokenMatcher ¶
type TokenPricer ¶
Click to show internal directories.
Click to hide internal directories.