Package com.qtsurfer.api.client.model
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhich on-chain DEX protocol `contract` implements.static enumWhich chain the pool/pair lives on.static enumUniswap version the pool/pair contract implements. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this DatasetImportDexRequest object is equal to o.The pool (v3) or pair (v2) contract address.The factory that deployed `contract`.getId()Which on-chain DEX protocol `contract` implements.Which chain the pool/pair lives on.Uniswap version the pool/pair contract implements.inthashCode()voidsetContract(String contract) voidsetFactory(String factory) voidvoidvoidtoString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_NETWORK
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_VERSION
- See Also:
-
JSON_PROPERTY_CONTRACT
- See Also:
-
JSON_PROPERTY_FACTORY
- See Also:
-
-
Constructor Details
-
DatasetImportDexRequest
public DatasetImportDexRequest()
-
-
Method Details
-
network
-
getNetwork
Which chain the pool/pair lives on.- Returns:
- network
-
setNetwork
-
id
-
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
-
version
-
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
-
contract
-
getContract
The pool (v3) or pair (v2) contract address.- Returns:
- contract
-
setContract
-
factory
-
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
-
equals
Return true if this DatasetImportDexRequest object is equal to o. -
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-