@@ -8,16 +8,14 @@ import (
88)
99
1010var (
11- RequiredProverAmountHash = crypto .Keccak256Hash ([]byte ("RequiredProverAmount" ))
12- VmTypeHash = crypto .Keccak256Hash ([]byte ("VmType" ))
13- ClientManagementContractAddressHash = crypto .Keccak256Hash ([]byte ("ClientManagementContractAddress" ))
14-
15- attributeSetTopicHash = crypto .Keccak256Hash ([]byte ("AttributeSet(uint256,bytes32,bytes)" ))
16- projectPausedTopicHash = crypto .Keccak256Hash ([]byte ("ProjectPaused(uint256)" ))
17- projectResumedTopicHash = crypto .Keccak256Hash ([]byte ("ProjectResumed(uint256)" ))
18- projectConfigUpdatedTopicHash = crypto .Keccak256Hash ([]byte ("ProjectConfigUpdated(uint256,string,bytes32)" ))
19-
20- emptyHash = common.Hash {}
11+ RequiredProverAmount = crypto .Keccak256Hash ([]byte ("RequiredProverAmount" ))
12+ VmType = crypto .Keccak256Hash ([]byte ("VmType" ))
13+ ClientManagementContractAddr = crypto .Keccak256Hash ([]byte ("ClientManagementContractAddress" ))
14+
15+ attributeSetTopic = crypto .Keccak256Hash ([]byte ("AttributeSet(uint256,bytes32,bytes)" ))
16+ projectPausedTopic = crypto .Keccak256Hash ([]byte ("ProjectPaused(uint256)" ))
17+ projectResumedTopic = crypto .Keccak256Hash ([]byte ("ProjectResumed(uint256)" ))
18+ projectConfigUpdatedTopic = crypto .Keccak256Hash ([]byte ("ProjectConfigUpdated(uint256,string,bytes32)" ))
2119)
2220
2321type Project struct {
@@ -97,7 +95,7 @@ func (c *Contract) processProjectLogs(logs []types.Log) (map[uint64]*blockProjec
9795 }
9896 }
9997 switch l .Topics [0 ] {
100- case attributeSetTopicHash :
98+ case attributeSetTopic :
10199 e , err := c .projectInstance .ParseAttributeSet (l )
102100 if err != nil {
103101 return nil , errors .Wrap (err , "failed to parse project attribute set event" )
@@ -113,7 +111,7 @@ func (c *Contract) processProjectLogs(logs []types.Log) (map[uint64]*blockProjec
113111 p .attributes [e .Key ] = e .Value
114112 ps .diffs [e .ProjectId .Uint64 ()] = p
115113
116- case projectPausedTopicHash :
114+ case projectPausedTopic :
117115 e , err := c .projectInstance .ParseProjectPaused (l )
118116 if err != nil {
119117 return nil , errors .Wrap (err , "failed to parse project paused event" )
@@ -130,7 +128,7 @@ func (c *Contract) processProjectLogs(logs []types.Log) (map[uint64]*blockProjec
130128 p .paused = & paused
131129 ps .diffs [e .ProjectId .Uint64 ()] = p
132130
133- case projectResumedTopicHash :
131+ case projectResumedTopic :
134132 e , err := c .projectInstance .ParseProjectResumed (l )
135133 if err != nil {
136134 return nil , errors .Wrap (err , "failed to parse project resumed event" )
@@ -147,7 +145,7 @@ func (c *Contract) processProjectLogs(logs []types.Log) (map[uint64]*blockProjec
147145 p .paused = & paused
148146 ps .diffs [e .ProjectId .Uint64 ()] = p
149147
150- case projectConfigUpdatedTopicHash :
148+ case projectConfigUpdatedTopic :
151149 e , err := c .projectInstance .ParseProjectConfigUpdated (l )
152150 if err != nil {
153151 return nil , errors .Wrap (err , "failed to parse project config updated event" )
0 commit comments