@@ -30,7 +30,6 @@ import (
30
30
multiaccountscommon "github.com/status-im/status-go/multiaccounts/common"
31
31
"github.com/status-im/status-go/params"
32
32
"github.com/status-im/status-go/protocol/common"
33
- "github.com/status-im/status-go/protocol/common/shard"
34
33
community_token "github.com/status-im/status-go/protocol/communities/token"
35
34
"github.com/status-im/status-go/protocol/encryption"
36
35
"github.com/status-im/status-go/protocol/ens"
@@ -45,6 +44,7 @@ import (
45
44
"github.com/status-im/status-go/services/wallet/token"
46
45
"github.com/status-im/status-go/signal"
47
46
"github.com/status-im/status-go/transactions"
47
+ "github.com/status-im/status-go/wakuv2"
48
48
)
49
49
50
50
type Publisher interface {
@@ -737,8 +737,8 @@ func (m *Manager) All() ([]*Community, error) {
737
737
}
738
738
739
739
type CommunityShard struct {
740
- CommunityID string `json:"communityID"`
741
- Shard * shard .Shard `json:"shard"`
740
+ CommunityID string `json:"communityID"`
741
+ Shard * wakuv2 .Shard `json:"shard"`
742
742
}
743
743
744
744
type CuratedCommunities struct {
@@ -1546,7 +1546,7 @@ func (m *Manager) DeleteCommunity(id types.HexBytes) error {
1546
1546
return m .persistence .DeleteCommunitySettings (id )
1547
1547
}
1548
1548
1549
- func (m * Manager ) updateShard (community * Community , shard * shard .Shard , clock uint64 ) error {
1549
+ func (m * Manager ) updateShard (community * Community , shard * wakuv2 .Shard , clock uint64 ) error {
1550
1550
community .config .Shard = shard
1551
1551
if shard == nil {
1552
1552
return m .persistence .DeleteCommunityShard (community .ID ())
@@ -1555,15 +1555,15 @@ func (m *Manager) updateShard(community *Community, shard *shard.Shard, clock ui
1555
1555
return m .persistence .SaveCommunityShard (community .ID (), shard , clock )
1556
1556
}
1557
1557
1558
- func (m * Manager ) UpdateShard (community * Community , shard * shard .Shard , clock uint64 ) error {
1558
+ func (m * Manager ) UpdateShard (community * Community , shard * wakuv2 .Shard , clock uint64 ) error {
1559
1559
m .communityLock .Lock (community .ID ())
1560
1560
defer m .communityLock .Unlock (community .ID ())
1561
1561
1562
1562
return m .updateShard (community , shard , clock )
1563
1563
}
1564
1564
1565
1565
// SetShard assigns a shard to a community
1566
- func (m * Manager ) SetShard (communityID types.HexBytes , shard * shard .Shard ) (* Community , error ) {
1566
+ func (m * Manager ) SetShard (communityID types.HexBytes , shard * wakuv2 .Shard ) (* Community , error ) {
1567
1567
m .communityLock .Lock (communityID )
1568
1568
defer m .communityLock .Unlock (communityID )
1569
1569
@@ -2155,11 +2155,11 @@ func (m *Manager) HandleCommunityDescriptionMessage(signer *ecdsa.PublicKey, des
2155
2155
if err != nil {
2156
2156
return nil , err
2157
2157
}
2158
- var cShard * shard .Shard
2158
+ var cShard * wakuv2 .Shard
2159
2159
if communityShard == nil {
2160
- cShard = & shard .Shard {Cluster : shard .MainStatusShardCluster , Index : shard .DefaultShardIndex }
2160
+ cShard = & wakuv2 .Shard {Cluster : wakuv2 .MainStatusShardCluster , Index : wakuv2 .DefaultShardIndex }
2161
2161
} else {
2162
- cShard = shard .FromProtobuff (communityShard )
2162
+ cShard = wakuv2 .FromProtobuff (communityShard )
2163
2163
}
2164
2164
config := Config {
2165
2165
CommunityDescription : processedDescription ,
@@ -3972,11 +3972,11 @@ func (m *Manager) GetByIDString(idString string) (*Community, error) {
3972
3972
return m .GetByID (id )
3973
3973
}
3974
3974
3975
- func (m * Manager ) GetCommunityShard (communityID types.HexBytes ) (* shard .Shard , error ) {
3975
+ func (m * Manager ) GetCommunityShard (communityID types.HexBytes ) (* wakuv2 .Shard , error ) {
3976
3976
return m .persistence .GetCommunityShard (communityID )
3977
3977
}
3978
3978
3979
- func (m * Manager ) SaveCommunityShard (communityID types.HexBytes , shard * shard .Shard , clock uint64 ) error {
3979
+ func (m * Manager ) SaveCommunityShard (communityID types.HexBytes , shard * wakuv2 .Shard , clock uint64 ) error {
3980
3980
m .communityLock .Lock (communityID )
3981
3981
defer m .communityLock .Unlock (communityID )
3982
3982
0 commit comments