Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing events of pallet-assets #381

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 24 additions & 18 deletions types/event_record.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,24 +71,30 @@ type EventRecords struct {
Auctions_BidAccepted []EventAuctionsBidAccepted `test-gen-blockchain:"polkadot"`
Auctions_WinningOffset []EventAuctionsWinningOffset `test-gen-blockchain:"polkadot"`

Assets_Created []EventAssetCreated `test-gen-skip:"true"`
Assets_Issued []EventAssetIssued `test-gen-skip:"true"`
Assets_Transferred []EventAssetTransferred `test-gen-skip:"true"`
Assets_Burned []EventAssetBurned `test-gen-skip:"true"`
Assets_TeamChanged []EventAssetTeamChanged `test-gen-skip:"true"`
Assets_OwnerChanged []EventAssetOwnerChanged `test-gen-skip:"true"`
Assets_Frozen []EventAssetFrozen `test-gen-skip:"true"`
Assets_Thawed []EventAssetThawed `test-gen-skip:"true"`
Assets_AssetFrozen []EventAssetAssetFrozen `test-gen-skip:"true"`
Assets_AssetThawed []EventAssetAssetThawed `test-gen-skip:"true"`
Assets_Destroyed []EventAssetDestroyed `test-gen-skip:"true"`
Assets_ForceCreated []EventAssetForceCreated `test-gen-skip:"true"`
Assets_MetadataSet []EventAssetMetadataSet `test-gen-skip:"true"`
Assets_MetadataCleared []EventAssetMetadataCleared `test-gen-skip:"true"`
Assets_ApprovedTransfer []EventAssetApprovedTransfer `test-gen-skip:"true"`
Assets_ApprovalCancelled []EventAssetApprovalCancelled `test-gen-skip:"true"`
Assets_TransferredApproved []EventAssetTransferredApproved `test-gen-skip:"true"`
Assets_AssetStatusChanged []EventAssetAssetStatusChanged `test-gen-skip:"true"`
Assets_Created []EventAssetCreated `test-gen-skip:"true"`
Assets_Issued []EventAssetIssued `test-gen-skip:"true"`
Assets_Transferred []EventAssetTransferred `test-gen-skip:"true"`
Assets_Burned []EventAssetBurned `test-gen-skip:"true"`
Assets_TeamChanged []EventAssetTeamChanged `test-gen-skip:"true"`
Assets_OwnerChanged []EventAssetOwnerChanged `test-gen-skip:"true"`
Assets_Frozen []EventAssetFrozen `test-gen-skip:"true"`
Assets_Thawed []EventAssetThawed `test-gen-skip:"true"`
Assets_AssetFrozen []EventAssetAssetFrozen `test-gen-skip:"true"`
Assets_AssetThawed []EventAssetAssetThawed `test-gen-skip:"true"`
Assets_AccountsDestroyed []EventAssetAccountsDestroyed `test-gen-skip:"true"`
Assets_ApprovalsDestroyed []EventAssetApprovalsDestroyed `test-gen-skip:"true"`
Assets_DestructionStarted []EventAssetDestructionStarted `test-gen-skip:"true"`
Assets_Destroyed []EventAssetDestroyed `test-gen-skip:"true"`
Assets_ForceCreated []EventAssetForceCreated `test-gen-skip:"true"`
Assets_MetadataSet []EventAssetMetadataSet `test-gen-skip:"true"`
Assets_MetadataCleared []EventAssetMetadataCleared `test-gen-skip:"true"`
Assets_ApprovedTransfer []EventAssetApprovedTransfer `test-gen-skip:"true"`
Assets_ApprovalCancelled []EventAssetApprovalCancelled `test-gen-skip:"true"`
Assets_TransferredApproved []EventAssetTransferredApproved `test-gen-skip:"true"`
Assets_AssetStatusChanged []EventAssetAssetStatusChanged `test-gen-skip:"true"`
Assets_AssetMinBalanceChanged []EventAssetAssetMinBalanceChanged `test-gen-skip:"true"`
Assets_Touched []EventAssetTouched `test-gen-skip:"true"`
Assets_Blocked []EventAssetBlocked `test-gen-skip:"true"`

BagsList_Rebagged []EventBagsListRebagged `test-gen-blockchain:"polkadot"`

Expand Down
50 changes: 50 additions & 0 deletions types/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,31 @@ type EventAssetAssetThawed struct {
Topics []Hash
}

// EventAssetAccountsDestroyed is emitted when accounts were destroyed for given asset.
type EventAssetAccountsDestroyed struct {
Phase Phase
AssetID U32
AccountsDestroyed U32
AccountsRemaining U32
Topics []Hash
}

// EventAssetApprovalsDestroyed is emitted when approvals were destroyed for given asset.
type EventAssetApprovalsDestroyed struct {
Phase Phase
AssetID U32
ApprovalsDestroyed U32
ApprovalsRemaining U32
Topics []Hash
}

// EventAssetDestructionStarted is emitted when an asset class is in the process of being destroyed.
type EventAssetDestructionStarted struct {
Phase Phase
AssetID U32
Topics []Hash
}

// EventAssetDestroyed is emitted when an asset class is destroyed.
type EventAssetDestroyed struct {
Phase Phase
Expand Down Expand Up @@ -1146,6 +1171,31 @@ type EventAssetAssetStatusChanged struct {
Topics []Hash
}

// EventAssetAssetMinBalanceChanged is emitted when the MinBalance of an asset has been updated by the asset owner.
type EventAssetAssetMinBalanceChanged struct {
Phase Phase
AssetID U32
NewMinBalance U128
Topics []Hash
}

// EventAssetTouched is emitted when some account Who was created with a deposit from Depositor.
type EventAssetTouched struct {
Phase Phase
AssetID U32
Who AccountID
Depositor AccountID
Topics []Hash
}

// EventAssetBlocked is emitted when some account Who was blocked.
type EventAssetBlocked struct {
Phase Phase
AssetID U32
Who AccountID
Topics []Hash
}

// EventAuctionsAuctionStarted is emitted when an auction started. Provides its index and the block number
// where it will begin to close and the first lease period of the quadruplet that is auctioned.
type EventAuctionsAuctionStarted struct {
Expand Down