Skip to content

Latest commit

 

History

History
executable file
·
115 lines (74 loc) · 2.47 KB

04_events.md

File metadata and controls

executable file
·
115 lines (74 loc) · 2.47 KB

Events

The bonds module emits the following typed events:

CollectionCreatedEvent

Emitted after a successful MsgCreateCollection

type CollectionCreatedEvent struct {
	Collection *Collection
}

The field's descriptions is as follows:

CollectionUpdatedEvent

Emitted after a successful collection update event or MsgSubmitClaim and EvaluateClaim since collection holds a count of claims

type CollectionUpdatedEvent struct {
	Collection *Collection
}

The field's descriptions is as follows:

ClaimSubmittedEvent

Emitted after a successful MsgSubmitClaim

type ClaimSubmittedEvent struct {
	Claim *Claim
}

The field's descriptions is as follows:

ClaimUpdatedEvent

Emitted after a successful MsgEvaluateClaim or when the state for the ClaimPayments changes.

type ClaimUpdatedEvent struct {
	Claim *Claim
}

The field's descriptions is as follows:

ClaimEvaluatedEvent

Emitted after a successful MsgEvaluateClaim

type ClaimEvaluatedEvent struct {
	Evaluation *Evaluation
}

The field's descriptions is as follows:

ClaimDisputedEvent

Emitted after a successful MsgDisputeClaim

type ClaimDisputedEvent struct {
	Dispute *Dispute
}

The field's descriptions is as follows:

PaymentWithdrawnEvent

Emitted after a successful MsgWithdrawPayment or when a payment gets withdrawn through another trigger like payments on evaluation with 0 timeout.

type PaymentWithdrawnEvent struct {
	Withdraw *WithdrawPaymentConstraints
}

The field's descriptions is as follows:

PaymentWithdrawCreatedEvent

Emitted after a successful payment withdrawal authz gets created on chain if the Payments timeout_ns is not 0, and a WithdrawPaymentAuthorization is created with the receiver as the grantee

type PaymentWithdrawCreatedEvent struct {
	Withdraw *WithdrawPaymentConstraints
}

The field's descriptions is as follows: