mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 18:43:10 -06:00
26 lines
569 B
Go
26 lines
569 B
Go
package zion
|
|
|
|
import (
|
|
"github.com/ethereum/go-ethereum/common"
|
|
"github.com/matrix-org/dendrite/authorization"
|
|
)
|
|
|
|
type SpaceContract interface {
|
|
IsSpaceDisabled(spaceNetworkId string) (bool, error)
|
|
IsChannelDisabled(
|
|
spaceNetworkId string,
|
|
channelNetworkId string,
|
|
) (bool, error)
|
|
IsEntitledToSpace(
|
|
spaceNetworkId string,
|
|
user common.Address,
|
|
permission authorization.Permission,
|
|
) (bool, error)
|
|
IsEntitledToChannel(
|
|
spaceNetworkId string,
|
|
channelNetworkId string,
|
|
user common.Address,
|
|
permission authorization.Permission,
|
|
) (bool, error)
|
|
}
|