Rawrshak Documentation
  • Rawrshak
  • Rawrshak Platform
    • What is the Rawrshak Platform?
    • Platform Overview
    • Rawrshak Ecosystem
    • Networks
    • Litepapers
    • Community Channels
    • Partnerships & Integrations
  • Tutorials
    • Gamer
      • Setup
        • Metamask Wallet
        • Adding Optimism Kovan Network
        • Funding Testnet Wallet
      • Demo
    • Developer
      • Setup
        • Arweave Wallet
          • ArDrive Account
        • Pinata
        • Unity
      • Demo
      • Unity
        • Loading the Rawrshak Tools
        • Loading the Rawrshak SDK
        • 3D Static Object In-game Framework
        • Packaging an Asset
          • Static 3D Object Asset
          • Audio Asset
        • Custom Subgraph Query
        • Prefabs
          • Wallet
          • Subgraph
          • Ethereum Blockchain Query
          • Rawrshak Asset
      • Rawrshak Dapp
        • Deploy a Content Contract
        • Upload Data to Arweave
        • Deploying a Meta Asset
          • Image Meta Asset
          • Audio Meta Asset
          • Static 3D Object Meta Asset
        • Updating a Meta Asset's Metadata
        • Minting a Meta Asset
        • Selling a Meta Asset
      • 🚧Custom Subgraphs
    • Unity Asset Viewer
  • Gamers
    • Gamer Decentralized Applications
    • Gaming Marketplace
    • Meta Assets
    • Supported Wallets
  • Developers
    • Smart Contracts
      • Content Contracts
        • Content
        • Content Manager
        • Content Storage
        • Content Factory
      • Exchange Contracts
        • Exchange
        • Orderbook
        • Execution Manager
        • Royalty Manager
        • Erc20Escrow
        • NftEscrow
      • Libraries
        • LibAsset
        • LibOrder
      • Utilities
        • Address Resolver
    • Meta Asset Framework
      • Asset Metadata
      • Asset Types
        • Text Assets
        • Image Assets
        • Audio Assets
        • Static 3D Objects
    • Game Engines
      • Unity Game Engine
        • Unity SDK
        • Unity Tools
      • Unreal Game Engine
      • Godot Game Engine
    • Developer Decentralized Applications
    • Rawrshak Subgraphs
      • Entities
        • Content Subgraph
        • Exchange Subgraph
  • Governance
    • RAWR Token
      • Tokenomics
      • Contract Addresses
    • Rawrshak DAO
Powered by GitBook
On this page
  1. Developers
  2. Smart Contracts
  3. Content Contracts

Content Factory

EVENT

ContractsDeployed(content, contentManager)

ContractsDeployed(address content, address contentManager)

Event emitted when the createContracts function is called.

FUNCTIONS

updateContracts(_content, _contentManager, _contentStorage, _accessControlManager)

contentExists(_content)

contentManagerExists(_contentManager)

createContracts(_contractRoyaltyAccount, _contractRoyaltyRate, _contractUri)

updateContracts(address _content, address _contentManager, address _contentStorage, address _accessControlManager)

Updates contract implementations with _content, _contentManager, _contentStorage, and accessControlManager.

Requirements:

  • Address parameters cannot be address zero.

visibility: public

state mutability:

contentExists(address _content) -> bool

Queries whether the contract address_content exists.

visibility: public

state mutability: view

contentManagerExists(address _contentManager) -> bool

Queries whether the contract address _contentManager exists.

visibility: public

state mutability: view

createContracts(address _contractRoyaltyAccount, uint24 _contractRoyaltyRate, string _contractUri)

Deploys new content contracts onto the blockchain and initializes the contract royalties and uri.

Emits a ContractsDeployed event.

visibility: external

state mutability:

PreviousContent StorageNextExchange Contracts

Last updated 3 years ago