Class DatasetImportDexRequest

java.lang.Object
com.qtsurfer.api.client.model.DatasetImportDexRequest

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.14.0") public class DatasetImportDexRequest extends Object
The `dex` source's own fields — required when `type` is `dex`. `id`/`version` are required for a plain (native-cadence) import; both are ignored if the top-level `cadence` requested pre-aggregated candles instead, since that path needs neither a protocol nor a version distinction.
  • Field Details

  • Constructor Details

    • DatasetImportDexRequest

      public DatasetImportDexRequest()
  • Method Details

    • network

    • getNetwork

      @Nonnull public DatasetImportDexRequest.NetworkEnum getNetwork()
      Which chain the pool/pair lives on.
      Returns:
      network
    • setNetwork

      public void setNetwork(@Nonnull DatasetImportDexRequest.NetworkEnum network)
    • id

    • getId

      @Nullable public DatasetImportDexRequest.IdEnum getId()
      Which on-chain DEX protocol `contract` implements. Required unless the top-level `cadence` requested pre-aggregated candles, in which case it's ignored.
      Returns:
      id
    • setId

      public void setId(@Nullable DatasetImportDexRequest.IdEnum id)
    • version

    • getVersion

      @Nullable public DatasetImportDexRequest.VersionEnum getVersion()
      Uniswap version the pool/pair contract implements. Required unless the top-level `cadence` requested pre-aggregated candles, in which case it's ignored.
      Returns:
      version
    • setVersion

      public void setVersion(@Nullable DatasetImportDexRequest.VersionEnum version)
    • contract

      public DatasetImportDexRequest contract(@Nonnull String contract)
    • getContract

      @Nonnull public String getContract()
      The pool (v3) or pair (v2) contract address.
      Returns:
      contract
    • setContract

      public void setContract(@Nonnull String contract)
    • factory

      public DatasetImportDexRequest factory(@Nullable String factory)
    • getFactory

      @Nullable public String getFactory()
      The factory that deployed `contract`. Optional — when omitted, it is discovered on-chain from `contract` itself at fetch time. Supply it explicitly only if you already know it, or the pool/pair belongs to a factory other than the canonical one for `network`/`version`. Either way, the pool/pair is validated against whichever factory is used before anything is fetched — a wrong or unrelated factory fails the import rather than silently fetching from the wrong pool. Ignored if the top-level `cadence` requested pre-aggregated candles.
      Returns:
      factory
    • setFactory

      public void setFactory(@Nullable String factory)
    • equals

      public boolean equals(Object o)
      Return true if this DatasetImportDexRequest object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toUrlQueryString

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string