LogoLogo
  • Swarm Network
  • Swarm Network
    • Network Governance
      • Getting started
      • Voting App
      • The Swarm Network
        • Powers
        • Governance
        • Members
        • Swarm Council
        • Treasury
      • Initiating Governance Actions
        • Introduction
        • Proposals
        • Ballot Types
        • Submitting a GAP
      • Governance Action Voting Process
        • Ballots
        • Retrieving the text of previous ballots
        • Voting
    • SWM Token
    • SWM Staking
  • Swarm Protocol
    • SRC20
      • SRC20 Token Contract
      • Transfer Rules Contract
      • Featured Contract
      • Roles Contract
      • SRC20 Registry Contract
      • Asset Registry Contract
      • Minter Contract
      • SRC20Factory Contract
    • Swarm Powered Fundraise
      • Uniswap Proxy Contract
      • Currency Registry Contract
      • Affiliate Manager Contract
      • Swarm Powered Fundraise Contract
      • Contributor Restrictions Contract
    • mySwarm.app
    • kovan.mySwarm.app (test version, please use this)
    • Mumbai Testnet
  • Open tools
    • Legacy Masternode Reward Collection
    • VerifiedExistence
    • Market Access Protocol
  • Keep up
    • Blog
    • Twitter
    • Discourse
    • Telegram
    • Voting App
    • FAQ
Powered by GitBook
On this page

Was this helpful?

  1. Swarm Protocol
  2. SRC20

Asset Registry Contract

PreviousSRC20 Registry ContractNextMinter Contract

Last updated 5 years ago

Was this helpful?

  • Smart Contract: globally across all SRC20

  • Created: pre-exists / created only once

  • Purpose: Registry of asset data for all SRC20 tokens (meta data, esp. NAV)

  • Example:

Feature Description

Glossary

Item

Description

KYA (Know Your Asset)

The intent of KYA is to create cryptographically-proven single-source-of-truth for metadata of a specific SRC20 and the asset it represents; token issuers can add and update dozens of parameters and attributes of their project, store them on a website (URL) or IPFS file; this allows investors to have unfettered access to a full history of data change over the life-cycle of the token

NAV (NetAssetValue)

NAV describes the value of the asset which is tokenized by a specific SRC20; it’s a common value in capital markets to describe the value of an asset and is based on underlying reports and assessments about the asset; as NAV represents the value of assets on the Swarm network it is used as the key value to determine the required SWM staking amounts for each SRC20 token

Read Functions

Function

Description

getNetAssetValueUSD()

Returns the currently registered NAV for a specific SRC20

_src20Factory() returns (address)

Returns the address of the SRC20 Factory contract

owner() returns (address)

Returns the address of the SRC20 Factory contract

isOwner() returns (bool)

Returns true if the caller is the contract owner

assetList() returns kyaHash(bytes32), kyaUrl(string), netAssetValueUSD(uint256)

Returns all KYA data (NAV, KYA hash, KYA URL) registered in this contract for a specific SRC20

getKYA() returns (bytes32), (string)

Returns the KYA data (KYA hash, KYA URL) registered in this contract for a specific SRC20

Write Functions

Function

Description

addAsset()

Creates a new record for of KYA data (NAV, KYA hash, KYA URL) for a specific SRC20 in this contract

renounceOwnership()

Contract owner can renounce ownership of the contract

updateNetAssetValueUSD()

Updates the NAV value for a specific SRC20

TransferOwnership() returns newOwner(address)

Transfers ownership of this contract to another address

udateKYA()

Updates the KYA data (KYA hash, KYA URL) registered in this contract for a specific SRC20

On Ropsten