Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ARBITRUM_CHAIN_ID = big.NewInt(42161) USDC_ACCOUNT_INDEX uint64 = 3 USDC_DECIMALS float64 = 6 )
Functions ¶
func NewLighterMessage ¶
func NewLighterMessage(source, destination uint64, lighterData *LighterData) *message.Message
Types ¶
type Coordinator ¶
type LighterData ¶
type LighterMessageHandler ¶
type LighterMessageHandler struct {
// contains filtered or unexported fields
}
func NewLighterMessageHandler ¶
func NewLighterMessageHandler( lighterAddress common.Address, usdcAddress common.Address, repaymentAccount string, confirmations map[uint64]uint64, txFetcher TxFetcher, coordinator Coordinator, host host.Host, comm comm.Communication, fetcher signing.SaveDataFetcher, sigChn chan any, ) *LighterMessageHandler
func (*LighterMessageHandler) HandleMessage ¶
HandleMessage finds the Lighter 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 (*LighterMessageHandler) Listen ¶
func (h *LighterMessageHandler) Listen(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.