dendrite/zion/space_contract.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)
}