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
  • setUpgradeTarget
  • Parameters
  • getUpgradeTarget
  • Parameters
  • Return Values
  • resetUpgradeTarget
  • supportsInterface
  • Parameters
  • Return Values
  1. marketplace
  2. upgrade-gatekeeper

UpgradeGatekeeper

This contract is an implementation of the IUpgradeGatekeeper interface.

The UpgradeGatekeeper contract allows an owner to set and reset upgrade targets for contract proxies.

setUpgradeTarget

function setUpgradeTarget(address _proxy, address _target) public

This method can only be called by the contract owner.

Set the upgrade target for a given proxy address.

Parameters

Name
Type
Description

_proxy

address

The address of the proxy.

_target

address

The address of the upgrade target.

getUpgradeTarget

function getUpgradeTarget(address _proxy) public view returns (address)

Retrieve the upgrade target for a given proxy address.

Parameters

Name
Type
Description

_proxy

address

The address of the proxy.

Return Values

Name
Type
Description

[0]

address

The address of the upgrade target.

resetUpgradeTarget

function resetUpgradeTarget() public

The address calling this method must have a set upgrade target, else it will throw an error.

Reset the upgrade target for a proxy. Only the proxy itself can reset its upgrade target.

supportsInterface

function supportsInterface(bytes4 _interfaceId) public view virtual returns (bool)

Checks if the contract implements an interface.

Parameters

Name
Type
Description

_interfaceId

bytes4

The ID of the interface.

Return Values

Name
Type
Description

[0]

bool

True if the contract implements the interface, false otherwise.

PreviousIUpgradeGatekeeperNextvaults

Last updated 2 years ago