Packages

case class Currency(asset: Option[NonNativeAsset] = None, name: Option[String] = None, description: Option[String] = None, status: Option[Status] = None, displayDecimals: Int = 7, conditions: Option[String] = None, image: Option[HttpUrl] = None, fixedQuantity: Option[Int] = None, maxQuantity: Option[Int] = None, isUnlimited: Option[Boolean] = None, isAnchored: Option[Boolean] = None, anchoredAssetType: Option[String] = None, anchoredAsset: Option[String] = None, redemptionInstructions: Option[String] = None, collateral: List[Collateral] = Nil, isRegulated: Boolean = false, approvalServer: Option[HttpUrl] = None, approvalCriteria: Option[String] = None) extends Product with Serializable

Currency data as defined in a stellar.toml file.

asset

The issued token. The asset code may be a template. ? characters represent single character wildcards. This allows the currency to represent multiple assets that share the same info. An example is futures, where the only difference between issues is the date of the contract. E.g. CORN???????? to match codes such as CORN20180604. The absence of ? characters means the asset code is literal.

name

A short (<= 20 char) name for the currency

description

A human-readable description for the currency and what it represents.

status

Mark whether token is dead/for testing/for private use or is live and should be listed in live exchanges.

displayDecimals

Preference for number of decimals to show when a client displays currency balance. 0-7

conditions

Human-readable conditions for use of the token.

image

URL to a PNG image on a transparent background representing token.

fixedQuantity

Fixed number of tokens, if the number of tokens issued will never change.

maxQuantity

Max number of tokens, if there is an upper limit to the number of tokens that will exist.

isUnlimited

Declares whether the number of tokens is dilutable at the issuer's discretion.

isAnchored

Declares whether the token is redeemable for an underlying asset.

anchoredAssetType

Type of asset anchored. For example, fiat, crypto, stock, bond, commodity, real-estate...

anchoredAsset

If anchored token, code / symbol for asset that token is anchored to. E.g. USD, BTC, SBUX, Address of real-estate investment property.

redemptionInstructions

If anchored token, these are instructions to redeem the underlying asset from tokens.

collateral

If this is an anchored crypto token, list of one or more collateral descriptors.

approvalServer

URL of a sep0008 compliant approval service that signs validated transactions.

approvalCriteria

a human readable string that explains the issuer's requirements for approving transactions.

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Currency
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Currency(asset: Option[NonNativeAsset] = None, name: Option[String] = None, description: Option[String] = None, status: Option[Status] = None, displayDecimals: Int = 7, conditions: Option[String] = None, image: Option[HttpUrl] = None, fixedQuantity: Option[Int] = None, maxQuantity: Option[Int] = None, isUnlimited: Option[Boolean] = None, isAnchored: Option[Boolean] = None, anchoredAssetType: Option[String] = None, anchoredAsset: Option[String] = None, redemptionInstructions: Option[String] = None, collateral: List[Collateral] = Nil, isRegulated: Boolean = false, approvalServer: Option[HttpUrl] = None, approvalCriteria: Option[String] = None)

    asset

    The issued token. The asset code may be a template. ? characters represent single character wildcards. This allows the currency to represent multiple assets that share the same info. An example is futures, where the only difference between issues is the date of the contract. E.g. CORN???????? to match codes such as CORN20180604. The absence of ? characters means the asset code is literal.

    name

    A short (<= 20 char) name for the currency

    description

    A human-readable description for the currency and what it represents.

    status

    Mark whether token is dead/for testing/for private use or is live and should be listed in live exchanges.

    displayDecimals

    Preference for number of decimals to show when a client displays currency balance. 0-7

    conditions

    Human-readable conditions for use of the token.

    image

    URL to a PNG image on a transparent background representing token.

    fixedQuantity

    Fixed number of tokens, if the number of tokens issued will never change.

    maxQuantity

    Max number of tokens, if there is an upper limit to the number of tokens that will exist.

    isUnlimited

    Declares whether the number of tokens is dilutable at the issuer's discretion.

    isAnchored

    Declares whether the token is redeemable for an underlying asset.

    anchoredAssetType

    Type of asset anchored. For example, fiat, crypto, stock, bond, commodity, real-estate...

    anchoredAsset

    If anchored token, code / symbol for asset that token is anchored to. E.g. USD, BTC, SBUX, Address of real-estate investment property.

    redemptionInstructions

    If anchored token, these are instructions to redeem the underlying asset from tokens.

    collateral

    If this is an anchored crypto token, list of one or more collateral descriptors.

    approvalServer

    URL of a sep0008 compliant approval service that signs validated transactions.

    approvalCriteria

    a human readable string that explains the issuer's requirements for approving transactions.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val anchoredAsset: Option[String]
  5. val anchoredAssetType: Option[String]
  6. val approvalCriteria: Option[String]
  7. val approvalServer: Option[HttpUrl]
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. val asset: Option[NonNativeAsset]
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  11. val collateral: List[Collateral]
  12. val conditions: Option[String]
  13. val description: Option[String]
  14. val displayDecimals: Int
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. val fixedQuantity: Option[Int]
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. val image: Option[HttpUrl]
  19. val isAnchored: Option[Boolean]
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. val isRegulated: Boolean
  22. val isUnlimited: Option[Boolean]
  23. val maxQuantity: Option[Int]
  24. val name: Option[String]
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  28. def productElementNames: Iterator[String]
    Definition Classes
    Product
  29. val redemptionInstructions: Option[String]
  30. val status: Option[Status]
  31. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped