File tree 3 files changed +10
-0
lines changed
3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,12 @@ type DepositActivation @entity {
80
80
81
81
"The amount that will be activated"
82
82
amount : BigInt !
83
+
84
+ "The creation block number"
85
+ createdAtBlock : BigInt !
86
+
87
+ "The creation timestamp"
88
+ createdAtTimestamp : BigInt !
83
89
}
84
90
85
91
"""
Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ export function createOrLoadDepositActivation(
41
41
activation . account = account ;
42
42
activation . validatorIndex = validatorIndex ;
43
43
activation . amount = BIG_INT_ZERO ;
44
+ activation . createdAtBlock = BIG_INT_ZERO ;
45
+ activation . createdAtTimestamp = BIG_INT_ZERO ;
44
46
activation . save ( ) ;
45
47
}
46
48
Original file line number Diff line number Diff line change @@ -128,6 +128,8 @@ export function handleActivationScheduled(event: ActivationScheduled): void {
128
128
) ;
129
129
130
130
activation . amount = activation . amount . plus ( event . params . value ) ;
131
+ activation . createdAtBlock = event . block . number ;
132
+ activation . createdAtTimestamp = event . block . timestamp ;
131
133
activation . save ( ) ;
132
134
133
135
let pool = createOrLoadPool ( ) ;
You can’t perform that action at this time.
0 commit comments