Add missing relation fields in eden-watcher relations map (#90)

This commit is contained in:
prathamesh0 2021-12-23 09:20:41 +05:30 committed by nabarun
parent 198e49e5a0
commit d385db2775

View File

@ -1191,6 +1191,16 @@ export class Indexer implements IndexerInterface {
isArray: true, isArray: true,
isDerived: false isDerived: false
}, },
lastEpoch: {
entity: Epoch,
isArray: false,
isDerived: false
},
pendingEpoch: {
entity: Epoch,
isArray: false,
isDerived: false
},
activeRewardScheduleEntry: { activeRewardScheduleEntry: {
entity: RewardScheduleEntry, entity: RewardScheduleEntry,
isArray: false, isArray: false,
@ -1234,6 +1244,21 @@ export class Indexer implements IndexerInterface {
}); });
this._relationsMap.set(Network, { this._relationsMap.set(Network, {
slot0: {
entity: Slot,
isArray: false,
isDerived: false
},
slot1: {
entity: Slot,
isArray: false,
isDerived: false
},
slot2: {
entity: Slot,
isArray: false,
isDerived: false
},
stakers: { stakers: {
entity: Staker, entity: Staker,
isArray: true, isArray: true,