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. Exchange Contracts

Royalty Manager

FUNCTIONS

claimableRoyalties(_user)

payableRoyalties(_asset, _total)

claimRoyalties(_user)

transferRoyalty(_sender, _token, _receiver, _royaltyFee)

transferRoyalty(_orderId, _receiver, _royaltyFee)

transferPlatformFee(_sender, _token, _total)

transferPlatformFee(_token, _orderId, _total)

claimableRoyalties(address _user) -> address[], uint256[]

Returns the token contract addresses and corresponding amounts available to claim by _user.

visibility: external

state mutability: view

payableRoyalties(LibOrder.AssetData _asset, uint256 _total) -> address, uint256, uint256

Returns the royalty fees and the total remaining token payment after the exchange and royalty fees have been deducted.

visibility: external

state mutability: view

claimRoyalties(address _user)

Withdraws any claimable tokens to _user, and updates the records to reflect that there are no more tokens remaining to claim.

Emits a ClaimedRoyalties event.

visibility: external

state mutability:

transferRoyalty(address _sender, address _token, address _receiver, uint256 _royaltyFee)

Transfers creator royalties from _sender to escrow.

visibility: external

state mutability:

transferRoyalty(uint256 _orderId, address _receiver, uint256 _royaltyFee)

Transfers creator royalties deducted from escrowed buy orders to escrow.

Requirement:

  • The amount of tokens escrowed must be greater than or equal to _royaltyFee.

visibility: external

state mutability:

transferPlatformFee(address _sender, address _token, uint256 _total)

Transfers platform fees from _sender to stakers, if any.

visibility: external

state mutability:

transferPlatformFee(address _token, uint256 _orderId, uint256 _total)

Transfers platform fees deducted from escrowed buy orders to stakers, if any.

visibility: external

state mutability:

PreviousExecution ManagerNextErc20Escrow

Last updated 3 years ago