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 Storage

EVENT

AssetsAdded(parent, tokenIds, assets)

AssetsAdded(address parent, uint256[] tokenIds, LibAsset.CreateData[] assets)

Event emitted when addAssetBatch function is called.

FUNCTIONS

assetCounter()

supply(_tokenId)

maxSupply(_tokenId)

uri(_tokenId, _version)

hiddenUri(_tokenId, _version)

getContractRoyalty()

getRoyalty(_tokenId)

getLatestUriVersion(_tokenId, _isPublic)

updateSupply(_tokenId, _supply)

addAssetBatch(_assets)

setHiddenUriBatch(_assets)

setPublicUriBatch(_assets)

setContractRoyalty(_receiver, _rate)

setTokenRoyaltiesBatch(_assets)

assetCounter() -> uint256

Returns the total number of token types added to the contract.

maxSupply(uint256 _tokenId) -> uint256

Returns the maximum amount of token type _tokenId allowed to be in circulation.

visibility: external

state mutability: view

uri(uint256 _tokenId, uint256 _version) -> string

Returns the version of public uri of token type _tokenId specified by _version.

visibility: external

state mutability: view

hiddenUri(uint256 tokenId, uint256 version) -> string

Returns the version of private uri of token type _tokenId specified by _version.

visibility: external

state mutability: view

getContractRoyalty() -> address, uint24

Returns the default royalty receiver address and rate for the contract's assets.

visibility: external

state mutability: view

getRoyalty(_tokenId) -> address, uint24

Returns the royalty receiver and rate for the given token type _tokenId.

visibility: external

state mutability: view

getLatestUriVersion(uint256 _tokenId, bool _isPublic) -> string

Returns the latest public or private uri designated by isPublic, of token type _tokenId.

visibility: external

state mutability: view

updateSupply(uint256 _tokenId, uint256 _supply)

Updates the total supply of token type _tokenId by _supply.

visibility: external

state mutability:

addAssetBatch(LibAsset.CreateData[] _asset)

Adds a batch of tokens and sets their supply and uri information.

Emits an AssetsAdded event.

visibility: external

state mutability:

setHiddenUriBatch(LibAsset.AssetUri[] _assets)

Adds a new version of private uri to a batch of tokens.

visibility: external

state mutability:

setPublicUriBatch(LibAsset.AssetUri[] _assets)

Adds a new version of public uri to a batch of tokens.

visibility: external

state mutability:

setContractRoyalty(address _receiver, uint24 _rate)

Sets _receiver as the default royalty receiver and _rate as the default token royalty.

visibility: external

state mutability:

setTokenRoyaltiesBatch(LibAsset.AssetRoyalties[] _assets)

Sets new token royalty information to a batch of tokens.

visibility: external

state mutability:

PreviousContent ManagerNextContent Factory

Last updated 3 years ago

_asset is an array of CreateData structure objects. See .

_asset is an array of AssetUri structure objects. See .

_asset is an array of AssetUri structure objects. See .

_asset is an array of AssetRoyalties structure objects. See .

LibAsset.sol
LibAsset.sol
LibAsset.sol
LibAsset.sol