Skip to content

Commit 55fdfad

Browse files
authored
Add treasury deposit event (#39)
1 parent 0d870b4 commit 55fdfad

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

types/event_record.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,13 @@ type EventSystemExtrinsicFailed struct {
170170
Topics []Hash
171171
}
172172

173+
// EventTreasuryDeposit is emitted when some funds have been deposited
174+
type EventTreasuryDeposit struct {
175+
Phase Phase
176+
Balance U128
177+
Topics []Hash
178+
}
179+
173180
// EventRecords is a default set of possible event records that can be used as a target for
174181
// `func (e EventRecordsRaw) Decode(...`
175182
type EventRecords struct {
@@ -188,6 +195,7 @@ type EventRecords struct {
188195
Staking_Slash []EventStakingSlash //nolint:stylecheck,golint
189196
System_ExtrinsicSuccess []EventSystemExtrinsicSuccess //nolint:stylecheck,golint
190197
System_ExtrinsicFailed []EventSystemExtrinsicFailed //nolint:stylecheck,golint
198+
Treasury_Deposit []EventTreasuryDeposit //nolint:stylecheck,golint
191199
}
192200

193201
// DecodeEventRecords decodes the events records from an EventRecordRaw into a target t using the given Metadata m

0 commit comments

Comments
 (0)