Documentation
¶
Index ¶
- Variables
- type EventSubscription
- type Events
- type RefundTransactionCreatedEvent
- type RefundTransactionExpiredEvent
- type RefundTransactionReadyEvent
- type SubstrateClient
- func (s *SubstrateClient) RetryCreateRefundTransactionOrAddSig(ctx context.Context, txHash string, target string, amount int64, ...) error
- func (s *SubstrateClient) RetryProposeMintOrVote(ctx context.Context, txID string, target substrate.AccountID, amount *big.Int) error
- func (s *SubstrateClient) RetryProposeWithdrawOrAddSig(ctx context.Context, txID uint64, target string, amount *big.Int, ...) error
- func (s *SubstrateClient) RetrySetRefundTransactionExecutedTx(ctx context.Context, txHash string) error
- func (s *SubstrateClient) RetrySetWithdrawExecuted(ctx context.Context, tixd uint64) error
- func (client *SubstrateClient) SubscribeTfchainBridgeEvents(ctx context.Context, eventChannel chan<- EventSubscription) error
- type Versioned
- type WithdrawCreatedEvent
- type WithdrawExpiredEvent
- type WithdrawReadyEvent
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //ErrInvalidVersion is returned if version 4bytes is invalid ErrInvalidVersion = fmt.Errorf("invalid version") //ErrUnknownVersion is returned if version number is not supported ErrUnknownVersion = fmt.Errorf("unknown version") //ErrNotFound is returned if an object is not found ErrNotFound = fmt.Errorf("object not found") )
Functions ¶
This section is empty.
Types ¶
type EventSubscription ¶
type Events ¶
type Events struct { WithdrawCreatedEvents []WithdrawCreatedEvent WithdrawReadyEvents []WithdrawReadyEvent WithdrawExpiredEvents []WithdrawExpiredEvent RefundCreatedEvents []RefundTransactionCreatedEvent RefundReadyEvents []RefundTransactionReadyEvent RefundExpiredEvents []RefundTransactionExpiredEvent }
type RefundTransactionReadyEvent ¶
type RefundTransactionReadyEvent struct {
Hash string
}
type SubstrateClient ¶
func NewSubstrateClient ¶
func NewSubstrateClient(url string, seed string) (*SubstrateClient, error)
NewSubstrate creates a substrate client
func (*SubstrateClient) RetryCreateRefundTransactionOrAddSig ¶
func (*SubstrateClient) RetryProposeMintOrVote ¶
func (*SubstrateClient) RetryProposeWithdrawOrAddSig ¶
func (*SubstrateClient) RetrySetRefundTransactionExecutedTx ¶
func (s *SubstrateClient) RetrySetRefundTransactionExecutedTx(ctx context.Context, txHash string) error
func (*SubstrateClient) RetrySetWithdrawExecuted ¶
func (s *SubstrateClient) RetrySetWithdrawExecuted(ctx context.Context, tixd uint64) error
func (*SubstrateClient) SubscribeTfchainBridgeEvents ¶
func (client *SubstrateClient) SubscribeTfchainBridgeEvents(ctx context.Context, eventChannel chan<- EventSubscription) error
type WithdrawCreatedEvent ¶
type WithdrawExpiredEvent ¶
type WithdrawExpiredEvent struct { ID uint64 Source types.OptionAccountID Target string Amount uint64 }
type WithdrawReadyEvent ¶
type WithdrawReadyEvent struct {
ID uint64
}
Click to show internal directories.
Click to hide internal directories.