Commit 940b50d 1 parent 7416be3 commit 940b50d Copy full SHA for 940b50d
File tree 2 files changed +68
-0
lines changed
2 files changed +68
-0
lines changed Original file line number Diff line number Diff line change
1
+ package sudo
2
+
3
+ import (
4
+ "github.com/availproject/avail-go-sdk/metadata"
5
+ )
6
+
7
+ // A sudo call just took place.
8
+ type EventSudid struct {
9
+ SudoResult metadata.DispatchResult
10
+ }
11
+
12
+ func (this EventSudid ) PalletIndex () uint8 {
13
+ return PalletIndex
14
+ }
15
+
16
+ func (this EventSudid ) PalletName () string {
17
+ return PalletName
18
+ }
19
+
20
+ func (this EventSudid ) EventIndex () uint8 {
21
+ return 0
22
+ }
23
+
24
+ func (this EventSudid ) EventName () string {
25
+ return "Sudid"
26
+ }
27
+
28
+ // A [sudo_as](Pallet::sudo_as) call just took place.
29
+ type EventSudoAsDone struct {
30
+ SudoResult metadata.DispatchResult
31
+ }
32
+
33
+ func (this EventSudoAsDone ) PalletIndex () uint8 {
34
+ return PalletIndex
35
+ }
36
+
37
+ func (this EventSudoAsDone ) PalletName () string {
38
+ return PalletName
39
+ }
40
+
41
+ func (this EventSudoAsDone ) EventIndex () uint8 {
42
+ return 3
43
+ }
44
+
45
+ func (this EventSudoAsDone ) EventName () string {
46
+ return "SudoAsDone"
47
+ }
Original file line number Diff line number Diff line change @@ -68,3 +68,24 @@ func (this EventNewAccount) EventIndex() uint8 {
68
68
func (this EventNewAccount ) EventName () string {
69
69
return "NewAccount"
70
70
}
71
+
72
+ // An account was reaped.
73
+ type EventKilledAccount struct {
74
+ Account primitives.AccountId
75
+ }
76
+
77
+ func (this EventKilledAccount ) PalletIndex () uint8 {
78
+ return PalletIndex
79
+ }
80
+
81
+ func (this EventKilledAccount ) PalletName () string {
82
+ return PalletName
83
+ }
84
+
85
+ func (this EventKilledAccount ) EventIndex () uint8 {
86
+ return 4
87
+ }
88
+
89
+ func (this EventKilledAccount ) EventName () string {
90
+ return "KilledAccount"
91
+ }
You can’t perform that action at this time.
0 commit comments