Documentation ¶
Index ¶
- type GatewayClient
- type SgnClient
- func (c *SgnClient) GetChainSigners(chainId uint64) (*cbrtypes.ChainSigners, error)
- func (c *SgnClient) GetExecutionContext(messageId string) (*msgtypes.QueryExecutionContextByMsgIdResponse, error)
- func (c *SgnClient) GetExecutionContexts(filters contracts.ReceiverContracts, ignoreRefundSigs bool) ([]msgtypes.ExecutionContext, error)
- func (c *SgnClient) GetMessage(messageId string) (*msgtypes.Message, error)
- func (c *SgnClient) GetPegMintInfo(burnId string) (*pegbrtypes.MintInfo, error)
- func (c *SgnClient) GetPegRefundClaimId(depositId []byte) (string, error)
- func (c *SgnClient) GetPegWithdrawInfo(withdrawId string) (*pegbrtypes.WithdrawInfo, error)
- func (c *SgnClient) GetXferWithdrawStatus(addr string, nonce uint64, chainId uint64) (*cbrtypes.WithdrawDetail, cbrtypes.WithdrawStatus, error)
- func (c *SgnClient) InitPegRefund(refId []byte) error
- func (c *SgnClient) InitWithdraw(srcXferId []byte, nonce uint64) error
- func (c *SgnClient) PollAndExecutePegRefundMint(burnId []byte, chainId uint64, execute types.RefundTxFunc, messageId []byte, ...) error
- func (c *SgnClient) PollAndExecutePegRefundWithdraw(depositId []byte, chainId uint64, execute types.RefundTxFunc, messageId []byte, ...) error
- func (c *SgnClient) PollAndExecuteWithdraw(addr string, nonce uint64, chainId uint64, execute types.RefundTxFunc, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GatewayClient ¶
type GatewayClient struct {
// contains filtered or unexported fields
}
func NewGatewayClient ¶
func NewGatewayClient(gatewayUrl string, testMode bool) *GatewayClient
func (*GatewayClient) InitPegRefund ¶
func (g *GatewayClient) InitPegRefund(refId []byte) error
func (*GatewayClient) InitWithdraw ¶
func (g *GatewayClient) InitWithdraw(srcXferId []byte, nonce uint64) error
type SgnClient ¶
type SgnClient struct {
// contains filtered or unexported fields
}
func NewSgnClient ¶
func (*SgnClient) GetChainSigners ¶
func (c *SgnClient) GetChainSigners(chainId uint64) (*cbrtypes.ChainSigners, error)
func (*SgnClient) GetExecutionContext ¶
func (c *SgnClient) GetExecutionContext(messageId string) (*msgtypes.QueryExecutionContextByMsgIdResponse, error)
func (*SgnClient) GetExecutionContexts ¶
func (c *SgnClient) GetExecutionContexts(filters contracts.ReceiverContracts, ignoreRefundSigs bool) ([]msgtypes.ExecutionContext, error)
func (*SgnClient) GetMessage ¶
func (*SgnClient) GetPegMintInfo ¶
func (c *SgnClient) GetPegMintInfo(burnId string) (*pegbrtypes.MintInfo, error)
func (*SgnClient) GetPegRefundClaimId ¶
func (*SgnClient) GetPegWithdrawInfo ¶
func (c *SgnClient) GetPegWithdrawInfo(withdrawId string) (*pegbrtypes.WithdrawInfo, error)
func (*SgnClient) GetXferWithdrawStatus ¶
func (c *SgnClient) GetXferWithdrawStatus( addr string, nonce uint64, chainId uint64) (*cbrtypes.WithdrawDetail, cbrtypes.WithdrawStatus, error)
func (*SgnClient) InitPegRefund ¶
func (*SgnClient) InitWithdraw ¶
func (*SgnClient) PollAndExecutePegRefundMint ¶
func (c *SgnClient) PollAndExecutePegRefundMint(burnId []byte, chainId uint64, execute types.RefundTxFunc, messageId []byte, handler types.ExecuteRefund) error
func (*SgnClient) PollAndExecutePegRefundWithdraw ¶
func (c *SgnClient) PollAndExecutePegRefundWithdraw(depositId []byte, chainId uint64, execute types.RefundTxFunc, messageId []byte, handler types.ExecuteRefund) error
func (*SgnClient) PollAndExecuteWithdraw ¶
func (c *SgnClient) PollAndExecuteWithdraw(addr string, nonce uint64, chainId uint64, execute types.RefundTxFunc, messageId []byte, handler types.ExecuteRefund) error
Click to show internal directories.
Click to hide internal directories.