@@ -23,15 +23,16 @@ const (
2323)
2424
2525type SigningBody struct {
26- ChainId uint64
27- DepositId string `json:"depositId"`
28- Nonce * BigInt `json:"nonce"`
29- Protocol ProtocolType `json:"protocol"`
30- LiquidityPool string `json:"liquidityPool"`
31- Caller string `json:"caller"`
32- Calldata string `json:"calldata"`
33- DepositTxHash string `json:"depositTxHash"`
34- BorrowAmount * BigInt `json:"borrowAmount"`
26+ ChainId uint64
27+ DepositId string `json:"depositId"`
28+ Nonce * BigInt `json:"nonce"`
29+ Protocol ProtocolType `json:"protocol"`
30+ LiquidityPool string `json:"liquidityPool"`
31+ Caller string `json:"caller"`
32+ Calldata string `json:"calldata"`
33+ DepositTxHash string `json:"depositTxHash"`
34+ BorrowAmount * BigInt `json:"borrowAmount"`
35+ RepaymentChainId uint64 `jsoin:"repaymentChainId"`
3536}
3637
3738type SigningHandler struct {
@@ -71,14 +72,15 @@ func (h *SigningHandler) HandleSigning(w http.ResponseWriter, r *http.Request) {
7172 {
7273 depositId , _ := new (big.Int ).SetString (b .DepositId , 10 )
7374 m = evmMessage .NewAcrossMessage (0 , b .ChainId , & evmMessage.AcrossData {
74- DepositId : depositId ,
75- Nonce : b .Nonce .Int ,
76- LiquidityPool : common .HexToAddress (b .LiquidityPool ),
77- Caller : common .HexToAddress (b .Caller ),
78- Source : 0 ,
79- Destination : b .ChainId ,
80- ErrChn : errChn ,
81- DepositTxHash : common .HexToHash (b .DepositTxHash ),
75+ DepositId : depositId ,
76+ Nonce : b .Nonce .Int ,
77+ LiquidityPool : common .HexToAddress (b .LiquidityPool ),
78+ Caller : common .HexToAddress (b .Caller ),
79+ Source : 0 ,
80+ Destination : b .ChainId ,
81+ ErrChn : errChn ,
82+ DepositTxHash : common .HexToHash (b .DepositTxHash ),
83+ RepaymentChainID : b .RepaymentChainId ,
8284 })
8385 }
8486 case MayanProtocol :
0 commit comments