Colle Marketplace
Colle.ioWebApp (Live)WebApp (Test)
  • Contracts Overview
  • Functional Requirements
  • Contract Descriptions
  • Technical Project & Audit Details
  • Test Coverage Report
  • Static Analysis
  • Royalty Pool Explained
  • Sale State Explained
  • Sales Tax Explained
  • marketplace
    • IMarketHub
    • IMarketHubRegistrar
    • MarketHub
    • MarketHubRegistrar
    • MarketHubRegistrarUpgradeable
    • collections
      • ColleCollection
      • ColleCollectionUpgradeable
      • CollectionRegistry
      • IColleCollection
      • IColleCollectionUpgradeable
      • ICollectionRegistry
    • currencies
      • BaseCurrency
      • CurrencyRegistry
      • ICurrency
      • ICurrencyRegistry
      • USDCCurrency
    • escrow
      • EscrowUpgradeable
      • IEscrow
      • IEscrowRegistry
    • kycs
      • Account
      • IKYCRegistry
      • KYCRegistry
    • markets
      • BaseMarketUpgradeable
      • IListingMarket
      • IMarket
      • IMarketRegistry
      • IOfferMarket
      • ListingMarketUpgradeable
      • MarketRegistry
      • OfferMarketUpgradeable
    • royalties
      • BaseRoyalty
      • BlackTierRoyalty
      • GoldTierRoyalty
      • GreenTierRoyalty
      • IRoyalty
      • IRoyaltyPool
      • IRoyaltyRegistry
      • PlatinumTierRoyalty
      • RoyaltyPool
      • RoyaltyRegistry
      • v1
        • BlackTierRoyaltyV1
        • GoldTierRoyaltyV1
        • GreenTierRoyaltyV1
        • PlatinumTierRoyaltyV1
    • taxes
      • ITaxPolicyRegistry
      • Tax
      • TaxPolicyRegistry
    • upgrade-gatekeeper
      • IUpgradeGatekeeper
      • UpgradeGatekeeper
    • vaults
      • IVault
      • IVaultRegistry
      • VaultUpgradeable
  • team-smart-wallet
    • ITeamSmartWallet
    • ITeamSmartWalletHelper
    • TeamSmartWallet
    • TeamSmartWalletFactory
    • TeamSmartWalletPermitHelper
  • utils
    • MarketAccess
    • MarketAccessUpgradeable
    • Signature
    • SignatureValidator
Powered by GitBook
On this page
  • RELAYER_ROLE
  • __MarketAccess_init
  • isRelayer
  • Parameters
  • Return Values
  • onlyRelayer
  • onlyAdmin
  1. utils

MarketAccessUpgradeable

This contract provides role-based access control for the marketplace. It extends the AccessControlUpgradeable contract from OpenZeppelin for role management in an upgradeable manner.

RELAYER_ROLE

bytes32 RELAYER_ROLE

Role identifier for the Colle role

__MarketAccess_init

function __MarketAccess_init() internal

Sets the deployer as the initial admin and colle.

This function should be called in the initialize function of the contract implementing this abstract contract.

isRelayer

function isRelayer(address _address) internal view returns (bool)

Checks if an address is assigned the Relayer role

Parameters

Name
Type
Description

_address

address

The address to check

Return Values

Name
Type
Description

[0]

bool

bool Returns true if the address has the Relayer role, false otherwise.

onlyRelayer

modifier onlyRelayer()

Modifier to restrict the access to only addresses with the Relayer role

onlyAdmin

modifier onlyAdmin()

Modifier to restrict the access to only addresses with the Relayer role

PreviousMarketAccessNextSignature

Last updated 2 years ago