sgn

package
v0.0.0-...-77861b7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2023 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

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 NewSgnClient(sgnUrl string, testMode bool) *SgnClient

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 (c *SgnClient) GetMessage(messageId string) (*msgtypes.Message, error)

func (*SgnClient) GetPegMintInfo

func (c *SgnClient) GetPegMintInfo(burnId string) (*pegbrtypes.MintInfo, error)

func (*SgnClient) GetPegRefundClaimId

func (c *SgnClient) GetPegRefundClaimId(depositId []byte) (string, error)

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 (c *SgnClient) InitPegRefund(refId []byte) error

func (*SgnClient) InitWithdraw

func (c *SgnClient) InitWithdraw(srcXferId []byte, nonce uint64) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL