Request form
Cookbook may introduce a token in the future. Share and contribute to be eligible for future airdrops.
close icon
relevant tag icon
CyberEngine
copy icon
CyberConnect
• version 1.0.0
CyberConnect
Audited

CyberEngine

Audited

The main functionality of CyberEngine is to create namespace for different dApps. It will deploy a series of contracts such as ProfileNFT, SubscribeNFT and EssenceNFT for the dApp. Currently, all namespaces share the same underlying implementation with customized configurations stored in a storage layer. In the future, the dApp may choose to develop and deploy their own version of ProfileNFT, SubscribeNFT, etc. In addition to create namespace, CyberEngine also manage the middleware whitelist and registration for now.

*Visit desktop site to download or deploy

Version

1.0.0

Last Publish

3/3/2023
Any contract you deploy is yours.
Fully owned and controlled by your wallet.
Documentation
Source Code
initialize(address) :
This function initializes the contract with an owner and a roles authority, using the Auth library. (autogenerated documentation)
allowProfileMw(address,bool) :
This function allows/disallows a middleware address to access user profiles and emits an event with the previous and new status. (autogenerated documentation)
allowSubscribeMw(address,bool) :
This function allows or disallows a middleware address to subscribe to events, and emits an event with the change. (autogenerated documentation)
allowEssenceMw(address,bool) :
This function allows or disallows a specific address to interact with the contract, emitting an event to track the change. (autogenerated documentation)
createNamespace() :
This function creates a new namespace with a unique name and symbol, deploys contracts, and initializes a profile NFT. (autogenerated documentation)
upgradeSubscribeNFT(address,address) :
This function upgrades the implementation contract for a specific namespace's subscription NFT using a beacon. (autogenerated documentation)
upgradeEssenceNFT(address,address) :
This function upgrades the implementation contract of an Essence NFT in a given namespace by calling the UpgradeableBeacon's upgradeTo() function. (autogenerated documentation)
upgradeProfileNFT(address,address) :
This function upgrades the implementation contract of a specific namespace for the ProfileNFT contract. It requires authentication and checks if the namespace is valid. (autogenerated documentation)
setProfileMw(address,address) :
This function sets a middleware for a namespace's profile and calls its setProfileMwData function with provided data. (autogenerated documentation)
isEssenceMwAllowed(address) :
This function checks if a given address is allowed to use a certain feature and returns a boolean value. (autogenerated documentation)
isSubscribeMwAllowed(address) :
This function checks if a given address is allowed to subscribe to a service by returning a boolean value from a mapping. (autogenerated documentation)
isProfileMwAllowed(address) :
This function checks if a given address is allowed to access a certain profile middleware by returning a boolean value. (autogenerated documentation)
getNameByNamespace(address) :
This function returns the name associated with a given namespace address by accessing a mapping of namespace information. (autogenerated documentation)
getProfileMwByNamespace(address) :
This function returns the middleware address associated with a given namespace by accessing a mapping of namespace information. (autogenerated documentation)
version() :
This function returns the version number of the contract and works by simply returning a predefined constant value. (autogenerated documentation)
_authorizeUpgrade(address) :
This function authorizes an upgrade for a specific address by checking if it meets the canUpgrade condition. (autogenerated documentation)

Get Cookin'
share iconShare

copy iconDownload Source
copy iconnpx cookbookdev i CyberEngine
copy icon

Last Publish

3/3/2023

Version

1.0.0

Cookbook is free.
Any contract you deploy is yours.
Your contract is owned and controlled by you.