@chainstream-io/sdk 0.1.13 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{WatchlistApi-Bs1J8X9y.d.cts → WatchlistApi-DnhIL4RN.d.cts} +2650 -2251
- package/dist/{WatchlistApi-Bs1J8X9y.d.ts → WatchlistApi-DnhIL4RN.d.ts} +2650 -2251
- package/dist/{index-BSb_7Tx_.d.ts → index-Bjo4kHPR.d.ts} +1 -1
- package/dist/{index-VnEIrX1W.d.cts → index-Cr-iw2fc.d.cts} +1 -1
- package/dist/index.cjs +755 -587
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +755 -587
- package/dist/index.mjs.map +1 -1
- package/dist/openapi/index.cjs +1181 -868
- package/dist/openapi/index.cjs.map +1 -1
- package/dist/openapi/index.d.cts +2 -2
- package/dist/openapi/index.d.ts +2 -2
- package/dist/openapi/index.mjs +1165 -868
- package/dist/openapi/index.mjs.map +1 -1
- package/dist/stream/index.d.cts +2 -2
- package/dist/stream/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1772,460 +1772,561 @@ function CreateTokenReplyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1772
1772
|
};
|
|
1773
1773
|
}
|
|
1774
1774
|
|
|
1775
|
-
// src/openapi/models/
|
|
1776
|
-
function
|
|
1777
|
-
return
|
|
1778
|
-
}
|
|
1779
|
-
function DexDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
1780
|
-
if (json == null) {
|
|
1781
|
-
return json;
|
|
1782
|
-
}
|
|
1783
|
-
return {
|
|
1784
|
-
"programAddress": json["programAddress"] == null ? void 0 : json["programAddress"],
|
|
1785
|
-
"protocolFamily": json["protocolFamily"] == null ? void 0 : json["protocolFamily"],
|
|
1786
|
-
"image": json["image"] == null ? void 0 : json["image"],
|
|
1787
|
-
"chain": json["chain"]
|
|
1788
|
-
};
|
|
1789
|
-
}
|
|
1790
|
-
|
|
1791
|
-
// src/openapi/models/DexPage.ts
|
|
1792
|
-
function DexPageFromJSON(json) {
|
|
1793
|
-
return DexPageFromJSONTyped(json, false);
|
|
1775
|
+
// src/openapi/models/TokenMarketData.ts
|
|
1776
|
+
function TokenMarketDataFromJSON(json) {
|
|
1777
|
+
return TokenMarketDataFromJSONTyped(json, false);
|
|
1794
1778
|
}
|
|
1795
|
-
function
|
|
1779
|
+
function TokenMarketDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
1796
1780
|
if (json == null) {
|
|
1797
1781
|
return json;
|
|
1798
1782
|
}
|
|
1799
1783
|
return {
|
|
1800
|
-
"
|
|
1801
|
-
"
|
|
1802
|
-
"
|
|
1803
|
-
"
|
|
1804
|
-
"
|
|
1805
|
-
"
|
|
1784
|
+
"totalSupply": json["totalSupply"],
|
|
1785
|
+
"marketCapInSol": json["marketCapInSol"] == null ? void 0 : json["marketCapInSol"],
|
|
1786
|
+
"marketCapInUsd": json["marketCapInUsd"],
|
|
1787
|
+
"top10TotalHoldings": json["top10TotalHoldings"] == null ? void 0 : json["top10TotalHoldings"],
|
|
1788
|
+
"top10HoldingsRatio": json["top10HoldingsRatio"] == null ? void 0 : json["top10HoldingsRatio"],
|
|
1789
|
+
"top100TotalHoldings": json["top100TotalHoldings"] == null ? void 0 : json["top100TotalHoldings"],
|
|
1790
|
+
"top100HoldingsRatio": json["top100HoldingsRatio"] == null ? void 0 : json["top100HoldingsRatio"],
|
|
1791
|
+
"holders": json["holders"],
|
|
1792
|
+
"priceInSol": json["priceInSol"] == null ? void 0 : json["priceInSol"],
|
|
1793
|
+
"priceInUsd": json["priceInUsd"],
|
|
1794
|
+
"tvlInSol": json["tvlInSol"] == null ? void 0 : json["tvlInSol"],
|
|
1795
|
+
"tvlInUsd": json["tvlInUsd"],
|
|
1796
|
+
"completionRatio": json["completionRatio"] == null ? void 0 : json["completionRatio"],
|
|
1797
|
+
"top50TotalHoldings": json["top50TotalHoldings"] == null ? void 0 : json["top50TotalHoldings"],
|
|
1798
|
+
"top50HoldingsRatio": json["top50HoldingsRatio"] == null ? void 0 : json["top50HoldingsRatio"],
|
|
1799
|
+
"bluechipTotalHolders": json["bluechipTotalHolders"] == null ? void 0 : json["bluechipTotalHolders"],
|
|
1800
|
+
"bluechipTotalHoldings": json["bluechipTotalHoldings"] == null ? void 0 : json["bluechipTotalHoldings"],
|
|
1801
|
+
"bluechipHoldingsRatio": json["bluechipHoldingsRatio"] == null ? void 0 : json["bluechipHoldingsRatio"],
|
|
1802
|
+
"kolTotalHolders": json["kolTotalHolders"] == null ? void 0 : json["kolTotalHolders"],
|
|
1803
|
+
"kolTotalHoldings": json["kolTotalHoldings"] == null ? void 0 : json["kolTotalHoldings"],
|
|
1804
|
+
"kolHoldingsRatio": json["kolHoldingsRatio"] == null ? void 0 : json["kolHoldingsRatio"],
|
|
1805
|
+
"sniperTotalHolders": json["sniperTotalHolders"] == null ? void 0 : json["sniperTotalHolders"],
|
|
1806
|
+
"sniperTotalHoldings": json["sniperTotalHoldings"] == null ? void 0 : json["sniperTotalHoldings"],
|
|
1807
|
+
"sniperHoldingsRatio": json["sniperHoldingsRatio"] == null ? void 0 : json["sniperHoldingsRatio"],
|
|
1808
|
+
"proTotalHolders": json["proTotalHolders"] == null ? void 0 : json["proTotalHolders"],
|
|
1809
|
+
"proTotalHoldings": json["proTotalHoldings"] == null ? void 0 : json["proTotalHoldings"],
|
|
1810
|
+
"proHoldingsRatio": json["proHoldingsRatio"] == null ? void 0 : json["proHoldingsRatio"],
|
|
1811
|
+
"insiderTotalHolders": json["insiderTotalHolders"] == null ? void 0 : json["insiderTotalHolders"],
|
|
1812
|
+
"insiderTotalHoldings": json["insiderTotalHoldings"] == null ? void 0 : json["insiderTotalHoldings"],
|
|
1813
|
+
"insiderHoldingsRatio": json["insiderHoldingsRatio"] == null ? void 0 : json["insiderHoldingsRatio"],
|
|
1814
|
+
"sandwishTotalHolders": json["sandwishTotalHolders"] == null ? void 0 : json["sandwishTotalHolders"],
|
|
1815
|
+
"sandwishTotalHoldings": json["sandwishTotalHoldings"] == null ? void 0 : json["sandwishTotalHoldings"],
|
|
1816
|
+
"sandwishHoldingsRatio": json["sandwishHoldingsRatio"] == null ? void 0 : json["sandwishHoldingsRatio"],
|
|
1817
|
+
"freshTotalHolders": json["freshTotalHolders"] == null ? void 0 : json["freshTotalHolders"],
|
|
1818
|
+
"freshTotalHoldings": json["freshTotalHoldings"] == null ? void 0 : json["freshTotalHoldings"],
|
|
1819
|
+
"freshHoldingsRatio": json["freshHoldingsRatio"] == null ? void 0 : json["freshHoldingsRatio"],
|
|
1820
|
+
"bundleTotalHolders": json["bundleTotalHolders"] == null ? void 0 : json["bundleTotalHolders"],
|
|
1821
|
+
"bundleTotalHoldings": json["bundleTotalHoldings"] == null ? void 0 : json["bundleTotalHoldings"],
|
|
1822
|
+
"bundleHoldingsRatio": json["bundleHoldingsRatio"] == null ? void 0 : json["bundleHoldingsRatio"],
|
|
1823
|
+
"devTotalHolders": json["devTotalHolders"] == null ? void 0 : json["devTotalHolders"],
|
|
1824
|
+
"devTotalHoldings": json["devTotalHoldings"] == null ? void 0 : json["devTotalHoldings"],
|
|
1825
|
+
"devHoldingsRatio": json["devHoldingsRatio"] == null ? void 0 : json["devHoldingsRatio"]
|
|
1806
1826
|
};
|
|
1807
1827
|
}
|
|
1808
1828
|
|
|
1809
|
-
// src/openapi/models/
|
|
1810
|
-
function
|
|
1811
|
-
return
|
|
1829
|
+
// src/openapi/models/TokenExtraDTO.ts
|
|
1830
|
+
function TokenExtraDTOFromJSON(json) {
|
|
1831
|
+
return TokenExtraDTOFromJSONTyped(json, false);
|
|
1812
1832
|
}
|
|
1813
|
-
function
|
|
1833
|
+
function TokenExtraDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
1814
1834
|
if (json == null) {
|
|
1815
1835
|
return json;
|
|
1816
1836
|
}
|
|
1817
1837
|
return {
|
|
1838
|
+
"collectionAddress": json["collectionAddress"] == null ? void 0 : json["collectionAddress"],
|
|
1839
|
+
"editionNonce": json["editionNonce"] == null ? void 0 : json["editionNonce"],
|
|
1840
|
+
"fungible": json["fungible"] == null ? void 0 : json["fungible"],
|
|
1841
|
+
"isMutable": json["isMutable"] == null ? void 0 : json["isMutable"],
|
|
1842
|
+
"key": json["key"] == null ? void 0 : json["key"],
|
|
1843
|
+
"isNative": json["isNative"] == null ? void 0 : json["isNative"],
|
|
1844
|
+
"primarySaleHappened": json["primarySaleHappened"] == null ? void 0 : json["primarySaleHappened"],
|
|
1845
|
+
"launchFromProgramAddress": json["launchFromProgramAddress"] == null ? void 0 : json["launchFromProgramAddress"],
|
|
1846
|
+
"launchFromProtocolFamily": json["launchFromProtocolFamily"] == null ? void 0 : json["launchFromProtocolFamily"],
|
|
1818
1847
|
"programAddress": json["programAddress"] == null ? void 0 : json["programAddress"],
|
|
1819
|
-
"
|
|
1820
|
-
"
|
|
1821
|
-
"
|
|
1822
|
-
"
|
|
1823
|
-
"
|
|
1824
|
-
"
|
|
1825
|
-
"
|
|
1826
|
-
"
|
|
1827
|
-
"
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
// src/openapi/models/EstimateGasLimitInput.ts
|
|
1832
|
-
function EstimateGasLimitInputToJSON(json) {
|
|
1833
|
-
return EstimateGasLimitInputToJSONTyped(json, false);
|
|
1834
|
-
}
|
|
1835
|
-
function EstimateGasLimitInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1836
|
-
if (value == null) {
|
|
1837
|
-
return value;
|
|
1838
|
-
}
|
|
1839
|
-
return {
|
|
1840
|
-
"from": value["from"],
|
|
1841
|
-
"to": value["to"],
|
|
1842
|
-
"data": value["data"],
|
|
1843
|
-
"value": value["value"]
|
|
1844
|
-
};
|
|
1845
|
-
}
|
|
1846
|
-
|
|
1847
|
-
// src/openapi/models/EstimateGasLimitResponse.ts
|
|
1848
|
-
function EstimateGasLimitResponseFromJSON(json) {
|
|
1849
|
-
return EstimateGasLimitResponseFromJSONTyped(json, false);
|
|
1850
|
-
}
|
|
1851
|
-
function EstimateGasLimitResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
1852
|
-
if (json == null) {
|
|
1853
|
-
return json;
|
|
1854
|
-
}
|
|
1855
|
-
return {
|
|
1856
|
-
"gasLimit": json["gasLimit"],
|
|
1857
|
-
"chain": json["chain"]
|
|
1858
|
-
};
|
|
1859
|
-
}
|
|
1860
|
-
|
|
1861
|
-
// src/openapi/models/GainersAndLosersDTO.ts
|
|
1862
|
-
function GainersAndLosersDTOFromJSON(json) {
|
|
1863
|
-
return GainersAndLosersDTOFromJSONTyped(json, false);
|
|
1864
|
-
}
|
|
1865
|
-
function GainersAndLosersDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
1866
|
-
if (json == null) {
|
|
1867
|
-
return json;
|
|
1868
|
-
}
|
|
1869
|
-
return {
|
|
1870
|
-
"address": json["address"],
|
|
1871
|
-
"pnl": json["pnl"],
|
|
1872
|
-
"tradeCount": json["tradeCount"],
|
|
1873
|
-
"volume": json["volume"]
|
|
1874
|
-
};
|
|
1875
|
-
}
|
|
1876
|
-
|
|
1877
|
-
// src/openapi/models/GainersAndLosersPage.ts
|
|
1878
|
-
function GainersAndLosersPageFromJSON(json) {
|
|
1879
|
-
return GainersAndLosersPageFromJSONTyped(json, false);
|
|
1880
|
-
}
|
|
1881
|
-
function GainersAndLosersPageFromJSONTyped(json, ignoreDiscriminator) {
|
|
1882
|
-
if (json == null) {
|
|
1883
|
-
return json;
|
|
1884
|
-
}
|
|
1885
|
-
return {
|
|
1886
|
-
"hasNext": json["hasNext"] == null ? void 0 : json["hasNext"],
|
|
1887
|
-
"hasPrev": json["hasPrev"] == null ? void 0 : json["hasPrev"],
|
|
1888
|
-
"startCursor": json["startCursor"] == null ? void 0 : json["startCursor"],
|
|
1889
|
-
"endCursor": json["endCursor"] == null ? void 0 : json["endCursor"],
|
|
1890
|
-
"total": json["total"] == null ? void 0 : json["total"],
|
|
1891
|
-
"data": json["data"].map(GainersAndLosersDTOFromJSON)
|
|
1848
|
+
"migratedToProgramAddress": json["migratedToProgramAddress"] == null ? void 0 : json["migratedToProgramAddress"],
|
|
1849
|
+
"migratedToProtocolFamily": json["migratedToProtocolFamily"] == null ? void 0 : json["migratedToProtocolFamily"],
|
|
1850
|
+
"migratedToPoolAddress": json["migratedToPoolAddress"] == null ? void 0 : json["migratedToPoolAddress"],
|
|
1851
|
+
"migratedAt": json["migratedAt"] == null ? void 0 : json["migratedAt"],
|
|
1852
|
+
"sellerFeeBasisPoints": json["sellerFeeBasisPoints"] == null ? void 0 : json["sellerFeeBasisPoints"],
|
|
1853
|
+
"tokenStandard": json["tokenStandard"] == null ? void 0 : json["tokenStandard"],
|
|
1854
|
+
"mintAuthority": json["mintAuthority"] == null ? void 0 : json["mintAuthority"],
|
|
1855
|
+
"freezeAuthority": json["freezeAuthority"] == null ? void 0 : json["freezeAuthority"],
|
|
1856
|
+
"updateAuthority": json["updateAuthority"] == null ? void 0 : json["updateAuthority"],
|
|
1857
|
+
"isVerifiedCollection": json["isVerifiedCollection"] == null ? void 0 : json["isVerifiedCollection"],
|
|
1858
|
+
"isWrapped": json["isWrapped"] == null ? void 0 : json["isWrapped"]
|
|
1892
1859
|
};
|
|
1893
1860
|
}
|
|
1894
1861
|
|
|
1895
|
-
// src/openapi/models/
|
|
1896
|
-
function
|
|
1897
|
-
return
|
|
1862
|
+
// src/openapi/models/TokenCreatorsDTO.ts
|
|
1863
|
+
function TokenCreatorsDTOFromJSON(json) {
|
|
1864
|
+
return TokenCreatorsDTOFromJSONTyped(json, false);
|
|
1898
1865
|
}
|
|
1899
|
-
function
|
|
1866
|
+
function TokenCreatorsDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
1900
1867
|
if (json == null) {
|
|
1901
1868
|
return json;
|
|
1902
1869
|
}
|
|
1903
1870
|
return {
|
|
1904
|
-
"
|
|
1905
|
-
"
|
|
1871
|
+
"address": json["address"] == null ? void 0 : json["address"],
|
|
1872
|
+
"share": json["share"] == null ? void 0 : json["share"],
|
|
1873
|
+
"isVerified": json["isVerified"] == null ? void 0 : json["isVerified"]
|
|
1906
1874
|
};
|
|
1907
1875
|
}
|
|
1908
1876
|
|
|
1909
|
-
// src/openapi/models/
|
|
1910
|
-
function
|
|
1911
|
-
return
|
|
1877
|
+
// src/openapi/models/TokenSocialMediasDTO.ts
|
|
1878
|
+
function TokenSocialMediasDTOFromJSON(json) {
|
|
1879
|
+
return TokenSocialMediasDTOFromJSONTyped(json, false);
|
|
1912
1880
|
}
|
|
1913
|
-
function
|
|
1881
|
+
function TokenSocialMediasDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
1914
1882
|
if (json == null) {
|
|
1915
1883
|
return json;
|
|
1916
1884
|
}
|
|
1917
1885
|
return {
|
|
1918
|
-
"
|
|
1919
|
-
"
|
|
1886
|
+
"twitter": json["twitter"] == null ? void 0 : json["twitter"],
|
|
1887
|
+
"telegram": json["telegram"] == null ? void 0 : json["telegram"],
|
|
1888
|
+
"website": json["website"] == null ? void 0 : json["website"],
|
|
1889
|
+
"tiktok": json["tiktok"] == null ? void 0 : json["tiktok"],
|
|
1890
|
+
"discord": json["discord"] == null ? void 0 : json["discord"],
|
|
1891
|
+
"facebook": json["facebook"] == null ? void 0 : json["facebook"],
|
|
1892
|
+
"github": json["github"] == null ? void 0 : json["github"],
|
|
1893
|
+
"instagram": json["instagram"] == null ? void 0 : json["instagram"],
|
|
1894
|
+
"linkedin": json["linkedin"] == null ? void 0 : json["linkedin"],
|
|
1895
|
+
"medium": json["medium"] == null ? void 0 : json["medium"],
|
|
1896
|
+
"reddit": json["reddit"] == null ? void 0 : json["reddit"],
|
|
1897
|
+
"youtube": json["youtube"] == null ? void 0 : json["youtube"],
|
|
1898
|
+
"bitbucket": json["bitbucket"] == null ? void 0 : json["bitbucket"]
|
|
1920
1899
|
};
|
|
1921
1900
|
}
|
|
1922
1901
|
|
|
1923
|
-
// src/openapi/models/
|
|
1924
|
-
function
|
|
1925
|
-
return
|
|
1902
|
+
// src/openapi/models/TokenMetadata.ts
|
|
1903
|
+
function TokenMetadataFromJSON(json) {
|
|
1904
|
+
return TokenMetadataFromJSONTyped(json, false);
|
|
1926
1905
|
}
|
|
1927
|
-
function
|
|
1906
|
+
function TokenMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
1928
1907
|
if (json == null) {
|
|
1929
1908
|
return json;
|
|
1930
1909
|
}
|
|
1931
1910
|
return {
|
|
1932
|
-
"
|
|
1933
|
-
"
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
"
|
|
1947
|
-
"label": value["label"]
|
|
1948
|
-
};
|
|
1949
|
-
}
|
|
1950
|
-
|
|
1951
|
-
// src/openapi/models/MoonshotCreateTokenInput.ts
|
|
1952
|
-
function MoonshotCreateTokenInputToJSON(json) {
|
|
1953
|
-
return MoonshotCreateTokenInputToJSONTyped(json, false);
|
|
1954
|
-
}
|
|
1955
|
-
function MoonshotCreateTokenInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1956
|
-
if (value == null) {
|
|
1957
|
-
return value;
|
|
1958
|
-
}
|
|
1959
|
-
return {
|
|
1960
|
-
"dex": value["dex"],
|
|
1961
|
-
"userAddress": value["userAddress"],
|
|
1962
|
-
"priorityFee": value["priorityFee"],
|
|
1963
|
-
"name": value["name"],
|
|
1964
|
-
"symbol": value["symbol"],
|
|
1965
|
-
"migrationDex": value["migrationDex"],
|
|
1966
|
-
"icon": value["icon"],
|
|
1967
|
-
"description": value["description"],
|
|
1968
|
-
"links": value["links"].map(LinkToJSON),
|
|
1969
|
-
"banner": value["banner"],
|
|
1970
|
-
"tokenAmount": value["tokenAmount"]
|
|
1911
|
+
"chain": json["chain"],
|
|
1912
|
+
"decimals": json["decimals"],
|
|
1913
|
+
"name": json["name"],
|
|
1914
|
+
"symbol": json["symbol"],
|
|
1915
|
+
"metadataAddress": json["metadataAddress"] == null ? void 0 : json["metadataAddress"],
|
|
1916
|
+
"address": json["address"],
|
|
1917
|
+
"tokenCreators": json["tokenCreators"] == null ? void 0 : json["tokenCreators"].map(TokenCreatorsDTOFromJSON),
|
|
1918
|
+
"imageUrl": json["imageUrl"] == null ? void 0 : json["imageUrl"],
|
|
1919
|
+
"uri": json["uri"] == null ? void 0 : json["uri"],
|
|
1920
|
+
"extra": json["extra"] == null ? void 0 : TokenExtraDTOFromJSON(json["extra"]),
|
|
1921
|
+
"socialMedias": json["socialMedias"] == null ? void 0 : TokenSocialMediasDTOFromJSON(json["socialMedias"]),
|
|
1922
|
+
"tokenCreatedAt": json["tokenCreatedAt"] == null ? void 0 : json["tokenCreatedAt"],
|
|
1923
|
+
"description": json["description"] == null ? void 0 : json["description"],
|
|
1924
|
+
"devTotalTokens": json["devTotalTokens"] == null ? void 0 : json["devTotalTokens"],
|
|
1925
|
+
"devLastTokenCreatedAt": json["devLastTokenCreatedAt"] == null ? void 0 : json["devLastTokenCreatedAt"]
|
|
1971
1926
|
};
|
|
1972
1927
|
}
|
|
1973
1928
|
|
|
1974
|
-
// src/openapi/models/
|
|
1975
|
-
function
|
|
1976
|
-
return
|
|
1929
|
+
// src/openapi/models/TokenStat.ts
|
|
1930
|
+
function TokenStatFromJSON(json) {
|
|
1931
|
+
return TokenStatFromJSONTyped(json, false);
|
|
1977
1932
|
}
|
|
1978
|
-
function
|
|
1933
|
+
function TokenStatFromJSONTyped(json, ignoreDiscriminator) {
|
|
1979
1934
|
if (json == null) {
|
|
1980
1935
|
return json;
|
|
1981
1936
|
}
|
|
1982
1937
|
return {
|
|
1983
|
-
"
|
|
1984
|
-
"
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1938
|
+
"address": json["address"],
|
|
1939
|
+
"price1m": json["price1m"],
|
|
1940
|
+
"buys1m": json["buys1m"],
|
|
1941
|
+
"sells1m": json["sells1m"],
|
|
1942
|
+
"buyVolumes1m": json["buyVolumes1m"],
|
|
1943
|
+
"sellsVolumes1m": json["sellsVolumes1m"],
|
|
1944
|
+
"volumes1m": json["volumes1m"],
|
|
1945
|
+
"buyVolumesInUsd1m": json["buyVolumesInUsd1m"],
|
|
1946
|
+
"sellVolumesInUsd1m": json["sellVolumesInUsd1m"],
|
|
1947
|
+
"volumesInUsd1m": json["volumesInUsd1m"],
|
|
1948
|
+
"buyers1m": json["buyers1m"] == null ? void 0 : json["buyers1m"],
|
|
1949
|
+
"sellers1m": json["sellers1m"] == null ? void 0 : json["sellers1m"],
|
|
1950
|
+
"openPriceInUsd1m": json["openPriceInUsd1m"],
|
|
1951
|
+
"closePriceInUsd1m": json["closePriceInUsd1m"],
|
|
1952
|
+
"priceChangeRatioInUsd1m": json["priceChangeRatioInUsd1m"],
|
|
1953
|
+
"trades1m": json["trades1m"],
|
|
1954
|
+
"traders1m": json["traders1m"] == null ? void 0 : json["traders1m"],
|
|
1955
|
+
"highInUsd1m": json["highInUsd1m"] == null ? void 0 : json["highInUsd1m"],
|
|
1956
|
+
"lowInUsd1m": json["lowInUsd1m"] == null ? void 0 : json["lowInUsd1m"],
|
|
1957
|
+
"price5m": json["price5m"],
|
|
1958
|
+
"buys5m": json["buys5m"],
|
|
1959
|
+
"sells5m": json["sells5m"],
|
|
1960
|
+
"buyVolumes5m": json["buyVolumes5m"],
|
|
1961
|
+
"sellsVolumes5m": json["sellsVolumes5m"],
|
|
1962
|
+
"volumes5m": json["volumes5m"],
|
|
1963
|
+
"buyVolumesInUsd5m": json["buyVolumesInUsd5m"],
|
|
1964
|
+
"sellVolumesInUsd5m": json["sellVolumesInUsd5m"],
|
|
1965
|
+
"volumesInUsd5m": json["volumesInUsd5m"],
|
|
1966
|
+
"buyers5m": json["buyers5m"] == null ? void 0 : json["buyers5m"],
|
|
1967
|
+
"sellers5m": json["sellers5m"] == null ? void 0 : json["sellers5m"],
|
|
1968
|
+
"openPriceInUsd5m": json["openPriceInUsd5m"],
|
|
1969
|
+
"closePriceInUsd5m": json["closePriceInUsd5m"],
|
|
1970
|
+
"priceChangeRatioInUsd5m": json["priceChangeRatioInUsd5m"],
|
|
1971
|
+
"trades5m": json["trades5m"],
|
|
1972
|
+
"traders5m": json["traders5m"] == null ? void 0 : json["traders5m"],
|
|
1973
|
+
"highInUsd5m": json["highInUsd5m"] == null ? void 0 : json["highInUsd5m"],
|
|
1974
|
+
"lowInUsd5m": json["lowInUsd5m"] == null ? void 0 : json["lowInUsd5m"],
|
|
1975
|
+
"price15m": json["price15m"] == null ? void 0 : json["price15m"],
|
|
1976
|
+
"buys15m": json["buys15m"] == null ? void 0 : json["buys15m"],
|
|
1977
|
+
"sells15m": json["sells15m"] == null ? void 0 : json["sells15m"],
|
|
1978
|
+
"buyVolumes15m": json["buyVolumes15m"] == null ? void 0 : json["buyVolumes15m"],
|
|
1979
|
+
"sellsVolumes15m": json["sellsVolumes15m"] == null ? void 0 : json["sellsVolumes15m"],
|
|
1980
|
+
"volumes15m": json["volumes15m"] == null ? void 0 : json["volumes15m"],
|
|
1981
|
+
"buyVolumesInUsd15m": json["buyVolumesInUsd15m"] == null ? void 0 : json["buyVolumesInUsd15m"],
|
|
1982
|
+
"sellVolumesInUsd15m": json["sellVolumesInUsd15m"] == null ? void 0 : json["sellVolumesInUsd15m"],
|
|
1983
|
+
"volumesInUsd15m": json["volumesInUsd15m"] == null ? void 0 : json["volumesInUsd15m"],
|
|
1984
|
+
"buyers15m": json["buyers15m"] == null ? void 0 : json["buyers15m"],
|
|
1985
|
+
"sellers15m": json["sellers15m"] == null ? void 0 : json["sellers15m"],
|
|
1986
|
+
"openPriceInUsd15m": json["openPriceInUsd15m"] == null ? void 0 : json["openPriceInUsd15m"],
|
|
1987
|
+
"closePriceInUsd15m": json["closePriceInUsd15m"] == null ? void 0 : json["closePriceInUsd15m"],
|
|
1988
|
+
"priceChangeRatioInUsd15m": json["priceChangeRatioInUsd15m"] == null ? void 0 : json["priceChangeRatioInUsd15m"],
|
|
1989
|
+
"trades15m": json["trades15m"] == null ? void 0 : json["trades15m"],
|
|
1990
|
+
"traders15m": json["traders15m"] == null ? void 0 : json["traders15m"],
|
|
1991
|
+
"highInUsd15m": json["highInUsd15m"] == null ? void 0 : json["highInUsd15m"],
|
|
1992
|
+
"lowInUsd15m": json["lowInUsd15m"] == null ? void 0 : json["lowInUsd15m"],
|
|
1993
|
+
"price30m": json["price30m"],
|
|
1994
|
+
"buys30m": json["buys30m"],
|
|
1995
|
+
"sells30m": json["sells30m"],
|
|
1996
|
+
"buyVolumes30m": json["buyVolumes30m"],
|
|
1997
|
+
"sellsVolumes30m": json["sellsVolumes30m"],
|
|
1998
|
+
"volumes30m": json["volumes30m"],
|
|
1999
|
+
"buyVolumesInUsd30m": json["buyVolumesInUsd30m"],
|
|
2000
|
+
"sellVolumesInUsd30m": json["sellVolumesInUsd30m"],
|
|
2001
|
+
"volumesInUsd30m": json["volumesInUsd30m"],
|
|
2002
|
+
"buyers30m": json["buyers30m"] == null ? void 0 : json["buyers30m"],
|
|
2003
|
+
"sellers30m": json["sellers30m"] == null ? void 0 : json["sellers30m"],
|
|
2004
|
+
"openPriceInUsd30m": json["openPriceInUsd30m"],
|
|
2005
|
+
"closePriceInUsd30m": json["closePriceInUsd30m"],
|
|
2006
|
+
"priceChangeRatioInUsd30m": json["priceChangeRatioInUsd30m"],
|
|
2007
|
+
"trades30m": json["trades30m"],
|
|
2008
|
+
"traders30m": json["traders30m"] == null ? void 0 : json["traders30m"],
|
|
2009
|
+
"highInUsd30m": json["highInUsd30m"] == null ? void 0 : json["highInUsd30m"],
|
|
2010
|
+
"lowInUsd30m": json["lowInUsd30m"] == null ? void 0 : json["lowInUsd30m"],
|
|
2011
|
+
"price1h": json["price1h"],
|
|
2012
|
+
"buys1h": json["buys1h"],
|
|
2013
|
+
"sells1h": json["sells1h"],
|
|
2014
|
+
"buyVolumes1h": json["buyVolumes1h"],
|
|
2015
|
+
"sellsVolumes1h": json["sellsVolumes1h"],
|
|
2016
|
+
"volumes1h": json["volumes1h"],
|
|
2017
|
+
"buyVolumesInUsd1h": json["buyVolumesInUsd1h"],
|
|
2018
|
+
"sellVolumesInUsd1h": json["sellVolumesInUsd1h"],
|
|
2019
|
+
"volumesInUsd1h": json["volumesInUsd1h"],
|
|
2020
|
+
"buyers1h": json["buyers1h"] == null ? void 0 : json["buyers1h"],
|
|
2021
|
+
"sellers1h": json["sellers1h"] == null ? void 0 : json["sellers1h"],
|
|
2022
|
+
"openPriceInUsd1h": json["openPriceInUsd1h"],
|
|
2023
|
+
"closePriceInUsd1h": json["closePriceInUsd1h"],
|
|
2024
|
+
"priceChangeRatioInUsd1h": json["priceChangeRatioInUsd1h"],
|
|
2025
|
+
"trades1h": json["trades1h"],
|
|
2026
|
+
"traders1h": json["traders1h"] == null ? void 0 : json["traders1h"],
|
|
2027
|
+
"highInUsd1h": json["highInUsd1h"] == null ? void 0 : json["highInUsd1h"],
|
|
2028
|
+
"lowInUsd1h": json["lowInUsd1h"] == null ? void 0 : json["lowInUsd1h"],
|
|
2029
|
+
"price4h": json["price4h"],
|
|
2030
|
+
"buys4h": json["buys4h"],
|
|
2031
|
+
"sells4h": json["sells4h"],
|
|
2032
|
+
"buyVolumes4h": json["buyVolumes4h"],
|
|
2033
|
+
"sellsVolumes4h": json["sellsVolumes4h"],
|
|
2034
|
+
"volumes4h": json["volumes4h"],
|
|
2035
|
+
"buyVolumesInUsd4h": json["buyVolumesInUsd4h"],
|
|
2036
|
+
"sellVolumesInUsd4h": json["sellVolumesInUsd4h"],
|
|
2037
|
+
"volumesInUsd4h": json["volumesInUsd4h"],
|
|
2038
|
+
"buyers4h": json["buyers4h"] == null ? void 0 : json["buyers4h"],
|
|
2039
|
+
"sellers4h": json["sellers4h"] == null ? void 0 : json["sellers4h"],
|
|
2040
|
+
"openPriceInUsd4h": json["openPriceInUsd4h"],
|
|
2041
|
+
"closePriceInUsd4h": json["closePriceInUsd4h"],
|
|
2042
|
+
"priceChangeRatioInUsd4h": json["priceChangeRatioInUsd4h"],
|
|
2043
|
+
"trades4h": json["trades4h"],
|
|
2044
|
+
"traders4h": json["traders4h"] == null ? void 0 : json["traders4h"],
|
|
2045
|
+
"highInUsd4h": json["highInUsd4h"] == null ? void 0 : json["highInUsd4h"],
|
|
2046
|
+
"lowInUsd4h": json["lowInUsd4h"] == null ? void 0 : json["lowInUsd4h"],
|
|
2047
|
+
"price24h": json["price24h"],
|
|
2048
|
+
"buys24h": json["buys24h"],
|
|
2049
|
+
"sells24h": json["sells24h"],
|
|
2050
|
+
"buyVolumes24h": json["buyVolumes24h"],
|
|
2051
|
+
"sellsVolumes24h": json["sellsVolumes24h"],
|
|
2052
|
+
"volumes24h": json["volumes24h"],
|
|
2053
|
+
"buyVolumesInUsd24h": json["buyVolumesInUsd24h"],
|
|
2054
|
+
"sellVolumesInUsd24h": json["sellVolumesInUsd24h"],
|
|
2055
|
+
"volumesInUsd24h": json["volumesInUsd24h"],
|
|
2056
|
+
"buyers24h": json["buyers24h"] == null ? void 0 : json["buyers24h"],
|
|
2057
|
+
"sellers24h": json["sellers24h"] == null ? void 0 : json["sellers24h"],
|
|
2058
|
+
"openPriceInUsd24h": json["openPriceInUsd24h"],
|
|
2059
|
+
"closePriceInUsd24h": json["closePriceInUsd24h"],
|
|
2060
|
+
"priceChangeRatioInUsd24h": json["priceChangeRatioInUsd24h"],
|
|
2061
|
+
"trades24h": json["trades24h"],
|
|
2062
|
+
"traders24h": json["traders24h"] == null ? void 0 : json["traders24h"],
|
|
2063
|
+
"highInUsd24h": json["highInUsd24h"] == null ? void 0 : json["highInUsd24h"],
|
|
2064
|
+
"lowInUsd24h": json["lowInUsd24h"] == null ? void 0 : json["lowInUsd24h"]
|
|
2065
|
+
};
|
|
1991
2066
|
}
|
|
1992
|
-
|
|
2067
|
+
|
|
2068
|
+
// src/openapi/models/DevTokenDTO.ts
|
|
2069
|
+
function DevTokenDTOFromJSON(json) {
|
|
2070
|
+
return DevTokenDTOFromJSONTyped(json, false);
|
|
2071
|
+
}
|
|
2072
|
+
function DevTokenDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
1993
2073
|
if (json == null) {
|
|
1994
2074
|
return json;
|
|
1995
2075
|
}
|
|
1996
2076
|
return {
|
|
1997
|
-
"
|
|
1998
|
-
"
|
|
2077
|
+
"address": json["address"],
|
|
2078
|
+
"metadata": TokenMetadataFromJSON(json["metadata"]),
|
|
2079
|
+
"marketData": TokenMarketDataFromJSON(json["marketData"]),
|
|
2080
|
+
"stats": TokenStatFromJSON(json["stats"])
|
|
1999
2081
|
};
|
|
2000
2082
|
}
|
|
2001
2083
|
|
|
2002
|
-
// src/openapi/models/
|
|
2003
|
-
function
|
|
2004
|
-
return
|
|
2084
|
+
// src/openapi/models/DexDTO.ts
|
|
2085
|
+
function DexDTOFromJSON(json) {
|
|
2086
|
+
return DexDTOFromJSONTyped(json, false);
|
|
2005
2087
|
}
|
|
2006
|
-
function
|
|
2007
|
-
if (
|
|
2008
|
-
return
|
|
2088
|
+
function DexDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
2089
|
+
if (json == null) {
|
|
2090
|
+
return json;
|
|
2009
2091
|
}
|
|
2010
2092
|
return {
|
|
2011
|
-
"
|
|
2012
|
-
"
|
|
2093
|
+
"programAddress": json["programAddress"] == null ? void 0 : json["programAddress"],
|
|
2094
|
+
"protocolFamily": json["protocolFamily"] == null ? void 0 : json["protocolFamily"],
|
|
2095
|
+
"image": json["image"] == null ? void 0 : json["image"],
|
|
2096
|
+
"chain": json["chain"]
|
|
2013
2097
|
};
|
|
2014
2098
|
}
|
|
2015
2099
|
|
|
2016
|
-
// src/openapi/models/
|
|
2017
|
-
function
|
|
2018
|
-
return
|
|
2100
|
+
// src/openapi/models/DexPage.ts
|
|
2101
|
+
function DexPageFromJSON(json) {
|
|
2102
|
+
return DexPageFromJSONTyped(json, false);
|
|
2019
2103
|
}
|
|
2020
|
-
function
|
|
2021
|
-
if (
|
|
2022
|
-
return
|
|
2104
|
+
function DexPageFromJSONTyped(json, ignoreDiscriminator) {
|
|
2105
|
+
if (json == null) {
|
|
2106
|
+
return json;
|
|
2023
2107
|
}
|
|
2024
2108
|
return {
|
|
2025
|
-
"
|
|
2026
|
-
"
|
|
2027
|
-
"
|
|
2028
|
-
"
|
|
2029
|
-
"
|
|
2030
|
-
"
|
|
2031
|
-
"name": value["name"],
|
|
2032
|
-
"symbol": value["symbol"],
|
|
2033
|
-
"migrationDex": value["migrationDex"],
|
|
2034
|
-
"image": value["image"],
|
|
2035
|
-
"mintAddress": value["mintAddress"],
|
|
2036
|
-
"description": value["description"]
|
|
2109
|
+
"hasNext": json["hasNext"] == null ? void 0 : json["hasNext"],
|
|
2110
|
+
"hasPrev": json["hasPrev"] == null ? void 0 : json["hasPrev"],
|
|
2111
|
+
"startCursor": json["startCursor"] == null ? void 0 : json["startCursor"],
|
|
2112
|
+
"endCursor": json["endCursor"] == null ? void 0 : json["endCursor"],
|
|
2113
|
+
"total": json["total"] == null ? void 0 : json["total"],
|
|
2114
|
+
"data": json["data"].map(DexDTOFromJSON)
|
|
2037
2115
|
};
|
|
2038
2116
|
}
|
|
2039
2117
|
|
|
2040
|
-
// src/openapi/models/
|
|
2041
|
-
function
|
|
2042
|
-
return
|
|
2118
|
+
// src/openapi/models/DexPoolDTO.ts
|
|
2119
|
+
function DexPoolDTOFromJSON(json) {
|
|
2120
|
+
return DexPoolDTOFromJSONTyped(json, false);
|
|
2043
2121
|
}
|
|
2044
|
-
function
|
|
2122
|
+
function DexPoolDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
2045
2123
|
if (json == null) {
|
|
2046
2124
|
return json;
|
|
2047
2125
|
}
|
|
2048
2126
|
return {
|
|
2049
|
-
"
|
|
2050
|
-
"
|
|
2127
|
+
"programAddress": json["programAddress"] == null ? void 0 : json["programAddress"],
|
|
2128
|
+
"protocolFamily": json["protocolFamily"] == null ? void 0 : json["protocolFamily"],
|
|
2129
|
+
"image": json["image"] == null ? void 0 : json["image"],
|
|
2130
|
+
"chain": json["chain"],
|
|
2131
|
+
"poolAddress": json["poolAddress"],
|
|
2132
|
+
"protocolName": json["protocolName"] == null ? void 0 : json["protocolName"],
|
|
2133
|
+
"tokenAAddress": json["tokenAAddress"],
|
|
2134
|
+
"tokenBAddress": json["tokenBAddress"],
|
|
2135
|
+
"tvlInUsd": json["tvlInUsd"] == null ? void 0 : json["tvlInUsd"],
|
|
2136
|
+
"tvlInSol": json["tvlInSol"] == null ? void 0 : json["tvlInSol"]
|
|
2051
2137
|
};
|
|
2052
2138
|
}
|
|
2053
2139
|
|
|
2054
|
-
// src/openapi/models/
|
|
2055
|
-
function
|
|
2056
|
-
return
|
|
2140
|
+
// src/openapi/models/EstimateGasLimitInput.ts
|
|
2141
|
+
function EstimateGasLimitInputToJSON(json) {
|
|
2142
|
+
return EstimateGasLimitInputToJSONTyped(json, false);
|
|
2057
2143
|
}
|
|
2058
|
-
function
|
|
2059
|
-
if (
|
|
2060
|
-
return
|
|
2144
|
+
function EstimateGasLimitInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2145
|
+
if (value == null) {
|
|
2146
|
+
return value;
|
|
2061
2147
|
}
|
|
2062
2148
|
return {
|
|
2063
|
-
"
|
|
2064
|
-
"
|
|
2065
|
-
"
|
|
2066
|
-
"
|
|
2067
|
-
"priceImpact": json["priceImpact"] == null ? void 0 : json["priceImpact"],
|
|
2068
|
-
"fee": json["fee"] == null ? void 0 : json["fee"]
|
|
2149
|
+
"from": value["from"],
|
|
2150
|
+
"to": value["to"],
|
|
2151
|
+
"data": value["data"],
|
|
2152
|
+
"value": value["value"]
|
|
2069
2153
|
};
|
|
2070
2154
|
}
|
|
2071
2155
|
|
|
2072
|
-
// src/openapi/models/
|
|
2073
|
-
function
|
|
2074
|
-
return
|
|
2156
|
+
// src/openapi/models/EstimateGasLimitResponse.ts
|
|
2157
|
+
function EstimateGasLimitResponseFromJSON(json) {
|
|
2158
|
+
return EstimateGasLimitResponseFromJSONTyped(json, false);
|
|
2075
2159
|
}
|
|
2076
|
-
function
|
|
2160
|
+
function EstimateGasLimitResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2077
2161
|
if (json == null) {
|
|
2078
2162
|
return json;
|
|
2079
2163
|
}
|
|
2080
2164
|
return {
|
|
2081
|
-
"
|
|
2082
|
-
"chain":
|
|
2083
|
-
"claimer": json["claimer"],
|
|
2084
|
-
"mint": json["mint"],
|
|
2085
|
-
"amount": json["amount"],
|
|
2086
|
-
"claimedAt": json["claimedAt"],
|
|
2087
|
-
"creator": json["creator"],
|
|
2088
|
-
"txHash": json["txHash"]
|
|
2165
|
+
"gasLimit": json["gasLimit"],
|
|
2166
|
+
"chain": json["chain"]
|
|
2089
2167
|
};
|
|
2090
2168
|
}
|
|
2091
2169
|
|
|
2092
|
-
// src/openapi/models/
|
|
2093
|
-
function
|
|
2094
|
-
return
|
|
2170
|
+
// src/openapi/models/GainersAndLosersDTO.ts
|
|
2171
|
+
function GainersAndLosersDTOFromJSON(json) {
|
|
2172
|
+
return GainersAndLosersDTOFromJSONTyped(json, false);
|
|
2095
2173
|
}
|
|
2096
|
-
function
|
|
2174
|
+
function GainersAndLosersDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
2097
2175
|
if (json == null) {
|
|
2098
2176
|
return json;
|
|
2099
2177
|
}
|
|
2100
2178
|
return {
|
|
2101
|
-
"
|
|
2102
|
-
"
|
|
2103
|
-
"
|
|
2104
|
-
"
|
|
2105
|
-
|
|
2106
|
-
};
|
|
2179
|
+
"address": json["address"],
|
|
2180
|
+
"pnl": json["pnl"],
|
|
2181
|
+
"tradeCount": json["tradeCount"],
|
|
2182
|
+
"volume": json["volume"]
|
|
2183
|
+
};
|
|
2107
2184
|
}
|
|
2108
2185
|
|
|
2109
|
-
// src/openapi/models/
|
|
2110
|
-
function
|
|
2111
|
-
return
|
|
2186
|
+
// src/openapi/models/GainersAndLosersPage.ts
|
|
2187
|
+
function GainersAndLosersPageFromJSON(json) {
|
|
2188
|
+
return GainersAndLosersPageFromJSONTyped(json, false);
|
|
2112
2189
|
}
|
|
2113
|
-
function
|
|
2190
|
+
function GainersAndLosersPageFromJSONTyped(json, ignoreDiscriminator) {
|
|
2114
2191
|
if (json == null) {
|
|
2115
2192
|
return json;
|
|
2116
2193
|
}
|
|
2117
2194
|
return {
|
|
2118
|
-
"
|
|
2119
|
-
"
|
|
2120
|
-
"
|
|
2121
|
-
"
|
|
2122
|
-
"
|
|
2123
|
-
"
|
|
2124
|
-
"totalAmount": json["totalAmount"],
|
|
2125
|
-
"memo": json["memo"],
|
|
2126
|
-
"maxClaims": json["maxClaims"],
|
|
2127
|
-
"claimAuthority": json["claimAuthority"],
|
|
2128
|
-
"expired": json["expired"],
|
|
2129
|
-
"expiration": json["expiration"],
|
|
2130
|
-
"createdAt": json["createdAt"],
|
|
2131
|
-
"expiredAt": json["expiredAt"],
|
|
2132
|
-
"claimedCount": json["claimedCount"],
|
|
2133
|
-
"claimedAmount": json["claimedAmount"],
|
|
2134
|
-
"refundedAmount": json["refundedAmount"]
|
|
2195
|
+
"hasNext": json["hasNext"] == null ? void 0 : json["hasNext"],
|
|
2196
|
+
"hasPrev": json["hasPrev"] == null ? void 0 : json["hasPrev"],
|
|
2197
|
+
"startCursor": json["startCursor"] == null ? void 0 : json["startCursor"],
|
|
2198
|
+
"endCursor": json["endCursor"] == null ? void 0 : json["endCursor"],
|
|
2199
|
+
"total": json["total"] == null ? void 0 : json["total"],
|
|
2200
|
+
"data": json["data"].map(GainersAndLosersDTOFromJSON)
|
|
2135
2201
|
};
|
|
2136
2202
|
}
|
|
2137
2203
|
|
|
2138
|
-
// src/openapi/models/
|
|
2139
|
-
function
|
|
2140
|
-
return
|
|
2204
|
+
// src/openapi/models/GasPriceResponse.ts
|
|
2205
|
+
function GasPriceResponseFromJSON(json) {
|
|
2206
|
+
return GasPriceResponseFromJSONTyped(json, false);
|
|
2141
2207
|
}
|
|
2142
|
-
function
|
|
2208
|
+
function GasPriceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2143
2209
|
if (json == null) {
|
|
2144
2210
|
return json;
|
|
2145
2211
|
}
|
|
2146
2212
|
return {
|
|
2147
|
-
"
|
|
2213
|
+
"gasPrice": json["gasPrice"],
|
|
2214
|
+
"chain": json["chain"]
|
|
2148
2215
|
};
|
|
2149
2216
|
}
|
|
2150
2217
|
|
|
2151
|
-
// src/openapi/models/
|
|
2152
|
-
function
|
|
2153
|
-
return
|
|
2218
|
+
// src/openapi/models/JobDTO.ts
|
|
2219
|
+
function JobDTOFromJSON(json) {
|
|
2220
|
+
return JobDTOFromJSONTyped(json, false);
|
|
2154
2221
|
}
|
|
2155
|
-
function
|
|
2156
|
-
if (
|
|
2157
|
-
return
|
|
2222
|
+
function JobDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
2223
|
+
if (json == null) {
|
|
2224
|
+
return json;
|
|
2158
2225
|
}
|
|
2159
2226
|
return {
|
|
2160
|
-
"
|
|
2227
|
+
"state": json["state"],
|
|
2228
|
+
"result": json["result"]
|
|
2161
2229
|
};
|
|
2162
2230
|
}
|
|
2163
2231
|
|
|
2164
|
-
// src/openapi/models/
|
|
2165
|
-
function
|
|
2166
|
-
return
|
|
2232
|
+
// src/openapi/models/JobStreamingDTO.ts
|
|
2233
|
+
function JobStreamingDTOFromJSON(json) {
|
|
2234
|
+
return JobStreamingDTOFromJSONTyped(json, false);
|
|
2167
2235
|
}
|
|
2168
|
-
function
|
|
2236
|
+
function JobStreamingDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
2169
2237
|
if (json == null) {
|
|
2170
2238
|
return json;
|
|
2171
2239
|
}
|
|
2172
2240
|
return {
|
|
2173
|
-
"
|
|
2241
|
+
"id": json["id"],
|
|
2242
|
+
"data": json["data"]
|
|
2174
2243
|
};
|
|
2175
2244
|
}
|
|
2176
2245
|
|
|
2177
|
-
// src/openapi/models/
|
|
2178
|
-
function
|
|
2179
|
-
return
|
|
2246
|
+
// src/openapi/models/Link.ts
|
|
2247
|
+
function LinkToJSON(json) {
|
|
2248
|
+
return LinkToJSONTyped(json, false);
|
|
2180
2249
|
}
|
|
2181
|
-
function
|
|
2182
|
-
if (
|
|
2183
|
-
return
|
|
2250
|
+
function LinkToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2251
|
+
if (value == null) {
|
|
2252
|
+
return value;
|
|
2184
2253
|
}
|
|
2185
2254
|
return {
|
|
2186
|
-
"
|
|
2187
|
-
"
|
|
2188
|
-
"startCursor": json["startCursor"],
|
|
2189
|
-
"endCursor": json["endCursor"],
|
|
2190
|
-
"records": json["records"].map(RedPacketDTOFromJSON)
|
|
2255
|
+
"url": value["url"],
|
|
2256
|
+
"label": value["label"]
|
|
2191
2257
|
};
|
|
2192
2258
|
}
|
|
2193
2259
|
|
|
2194
|
-
// src/openapi/models/
|
|
2195
|
-
function
|
|
2196
|
-
return
|
|
2260
|
+
// src/openapi/models/MoonshotCreateTokenInput.ts
|
|
2261
|
+
function MoonshotCreateTokenInputToJSON(json) {
|
|
2262
|
+
return MoonshotCreateTokenInputToJSONTyped(json, false);
|
|
2197
2263
|
}
|
|
2198
|
-
function
|
|
2264
|
+
function MoonshotCreateTokenInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2199
2265
|
if (value == null) {
|
|
2200
2266
|
return value;
|
|
2201
2267
|
}
|
|
2202
2268
|
return {
|
|
2203
|
-
"
|
|
2204
|
-
"
|
|
2205
|
-
"
|
|
2269
|
+
"dex": value["dex"],
|
|
2270
|
+
"userAddress": value["userAddress"],
|
|
2271
|
+
"priorityFee": value["priorityFee"],
|
|
2272
|
+
"name": value["name"],
|
|
2273
|
+
"symbol": value["symbol"],
|
|
2274
|
+
"migrationDex": value["migrationDex"],
|
|
2275
|
+
"icon": value["icon"],
|
|
2276
|
+
"description": value["description"],
|
|
2277
|
+
"links": value["links"].map(LinkToJSON),
|
|
2278
|
+
"banner": value["banner"],
|
|
2279
|
+
"tokenAmount": value["tokenAmount"]
|
|
2206
2280
|
};
|
|
2207
2281
|
}
|
|
2208
2282
|
|
|
2209
|
-
// src/openapi/models/
|
|
2210
|
-
function
|
|
2211
|
-
return
|
|
2283
|
+
// src/openapi/models/MoonshotCreateTokenReply.ts
|
|
2284
|
+
function MoonshotCreateTokenReplyFromJSON(json) {
|
|
2285
|
+
return MoonshotCreateTokenReplyFromJSONTyped(json, false);
|
|
2212
2286
|
}
|
|
2213
|
-
function
|
|
2287
|
+
function MoonshotCreateTokenReplyFromJSONTyped(json, ignoreDiscriminator) {
|
|
2214
2288
|
if (json == null) {
|
|
2215
2289
|
return json;
|
|
2216
2290
|
}
|
|
2217
2291
|
return {
|
|
2218
|
-
"
|
|
2219
|
-
"
|
|
2220
|
-
"jobId": json["jobId"]
|
|
2292
|
+
"serializedTx": json["serializedTx"],
|
|
2293
|
+
"extra": json["extra"]
|
|
2221
2294
|
};
|
|
2222
2295
|
}
|
|
2223
2296
|
|
|
2224
|
-
// src/openapi/models/
|
|
2225
|
-
function
|
|
2226
|
-
return
|
|
2297
|
+
// src/openapi/models/MoonshotSubmitCreateToken200Response.ts
|
|
2298
|
+
function MoonshotSubmitCreateToken200ResponseFromJSON(json) {
|
|
2299
|
+
return MoonshotSubmitCreateToken200ResponseFromJSONTyped(json, false);
|
|
2227
2300
|
}
|
|
2228
|
-
function
|
|
2301
|
+
function MoonshotSubmitCreateToken200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2302
|
+
if (json == null) {
|
|
2303
|
+
return json;
|
|
2304
|
+
}
|
|
2305
|
+
return {
|
|
2306
|
+
"signature": json["signature"] == null ? void 0 : json["signature"],
|
|
2307
|
+
"slot": json["slot"] == null ? void 0 : json["slot"]
|
|
2308
|
+
};
|
|
2309
|
+
}
|
|
2310
|
+
|
|
2311
|
+
// src/openapi/models/MoonshotSubmitCreateTokenInput.ts
|
|
2312
|
+
function MoonshotSubmitCreateTokenInputToJSON(json) {
|
|
2313
|
+
return MoonshotSubmitCreateTokenInputToJSONTyped(json, false);
|
|
2314
|
+
}
|
|
2315
|
+
function MoonshotSubmitCreateTokenInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2316
|
+
if (value == null) {
|
|
2317
|
+
return value;
|
|
2318
|
+
}
|
|
2319
|
+
return {
|
|
2320
|
+
"signedTx": value["signedTx"],
|
|
2321
|
+
"extra": value["extra"]
|
|
2322
|
+
};
|
|
2323
|
+
}
|
|
2324
|
+
|
|
2325
|
+
// src/openapi/models/PumpCreateTokenInput.ts
|
|
2326
|
+
function PumpCreateTokenInputToJSON(json) {
|
|
2327
|
+
return PumpCreateTokenInputToJSONTyped(json, false);
|
|
2328
|
+
}
|
|
2329
|
+
function PumpCreateTokenInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2229
2330
|
if (value == null) {
|
|
2230
2331
|
return value;
|
|
2231
2332
|
}
|
|
@@ -2233,330 +2334,298 @@ function SwapInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
2233
2334
|
"dex": value["dex"],
|
|
2234
2335
|
"userAddress": value["userAddress"],
|
|
2235
2336
|
"priorityFee": value["priorityFee"],
|
|
2236
|
-
"
|
|
2237
|
-
"
|
|
2238
|
-
"
|
|
2239
|
-
"
|
|
2240
|
-
"
|
|
2241
|
-
"
|
|
2337
|
+
"twitter": value["twitter"],
|
|
2338
|
+
"telegram": value["telegram"],
|
|
2339
|
+
"website": value["website"],
|
|
2340
|
+
"name": value["name"],
|
|
2341
|
+
"symbol": value["symbol"],
|
|
2342
|
+
"migrationDex": value["migrationDex"],
|
|
2343
|
+
"image": value["image"],
|
|
2344
|
+
"mintAddress": value["mintAddress"],
|
|
2345
|
+
"description": value["description"]
|
|
2242
2346
|
};
|
|
2243
2347
|
}
|
|
2244
2348
|
|
|
2245
|
-
// src/openapi/models/
|
|
2246
|
-
function
|
|
2247
|
-
return
|
|
2349
|
+
// src/openapi/models/PumpCreateTokenReply.ts
|
|
2350
|
+
function PumpCreateTokenReplyFromJSON(json) {
|
|
2351
|
+
return PumpCreateTokenReplyFromJSONTyped(json, false);
|
|
2248
2352
|
}
|
|
2249
|
-
function
|
|
2353
|
+
function PumpCreateTokenReplyFromJSONTyped(json, ignoreDiscriminator) {
|
|
2250
2354
|
if (json == null) {
|
|
2251
2355
|
return json;
|
|
2252
2356
|
}
|
|
2253
2357
|
return {
|
|
2254
2358
|
"serializedTx": json["serializedTx"],
|
|
2255
|
-
"
|
|
2359
|
+
"extra": json["extra"] == null ? void 0 : json["extra"]
|
|
2256
2360
|
};
|
|
2257
2361
|
}
|
|
2258
2362
|
|
|
2259
|
-
// src/openapi/models/
|
|
2260
|
-
function
|
|
2261
|
-
return
|
|
2363
|
+
// src/openapi/models/QuoteResponse.ts
|
|
2364
|
+
function QuoteResponseFromJSON(json) {
|
|
2365
|
+
return QuoteResponseFromJSONTyped(json, false);
|
|
2262
2366
|
}
|
|
2263
|
-
function
|
|
2367
|
+
function QuoteResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2264
2368
|
if (json == null) {
|
|
2265
2369
|
return json;
|
|
2266
2370
|
}
|
|
2267
2371
|
return {
|
|
2268
|
-
"
|
|
2269
|
-
"
|
|
2270
|
-
"
|
|
2271
|
-
"
|
|
2272
|
-
"
|
|
2273
|
-
"
|
|
2274
|
-
"inputMint": json["inputMint"] == null ? void 0 : json["inputMint"],
|
|
2275
|
-
"outputMint": json["outputMint"] == null ? void 0 : json["outputMint"],
|
|
2276
|
-
"recipientAddress": json["recipientAddress"] == null ? void 0 : json["recipientAddress"],
|
|
2277
|
-
"permit": json["permit"] == null ? void 0 : json["permit"],
|
|
2278
|
-
"deadline": json["deadline"] == null ? void 0 : json["deadline"],
|
|
2279
|
-
"tipFee": json["tipFee"] == null ? void 0 : json["tipFee"],
|
|
2280
|
-
"isAntiMev": json["isAntiMev"] == null ? void 0 : json["isAntiMev"]
|
|
2372
|
+
"amountOut": json["amountOut"] == null ? void 0 : json["amountOut"],
|
|
2373
|
+
"minAmountOut": json["minAmountOut"] == null ? void 0 : json["minAmountOut"],
|
|
2374
|
+
"currentPrice": json["currentPrice"] == null ? void 0 : json["currentPrice"],
|
|
2375
|
+
"executionPrice": json["executionPrice"] == null ? void 0 : json["executionPrice"],
|
|
2376
|
+
"priceImpact": json["priceImpact"] == null ? void 0 : json["priceImpact"],
|
|
2377
|
+
"fee": json["fee"] == null ? void 0 : json["fee"]
|
|
2281
2378
|
};
|
|
2282
2379
|
}
|
|
2283
|
-
|
|
2284
|
-
|
|
2380
|
+
|
|
2381
|
+
// src/openapi/models/RedPacketClaimDTO.ts
|
|
2382
|
+
function RedPacketClaimDTOFromJSON(json) {
|
|
2383
|
+
return RedPacketClaimDTOFromJSONTyped(json, false);
|
|
2285
2384
|
}
|
|
2286
|
-
function
|
|
2287
|
-
if (
|
|
2288
|
-
return
|
|
2385
|
+
function RedPacketClaimDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
2386
|
+
if (json == null) {
|
|
2387
|
+
return json;
|
|
2289
2388
|
}
|
|
2290
2389
|
return {
|
|
2291
|
-
"
|
|
2292
|
-
"
|
|
2293
|
-
"
|
|
2294
|
-
"
|
|
2295
|
-
"
|
|
2296
|
-
"
|
|
2297
|
-
"
|
|
2298
|
-
"
|
|
2299
|
-
"recipientAddress": value["recipientAddress"],
|
|
2300
|
-
"permit": value["permit"],
|
|
2301
|
-
"deadline": value["deadline"],
|
|
2302
|
-
"tipFee": value["tipFee"],
|
|
2303
|
-
"isAntiMev": value["isAntiMev"]
|
|
2390
|
+
"packetId": json["packetId"],
|
|
2391
|
+
"chain": ChainFromJSON(json["chain"]),
|
|
2392
|
+
"claimer": json["claimer"],
|
|
2393
|
+
"mint": json["mint"],
|
|
2394
|
+
"amount": json["amount"],
|
|
2395
|
+
"claimedAt": json["claimedAt"],
|
|
2396
|
+
"creator": json["creator"],
|
|
2397
|
+
"txHash": json["txHash"]
|
|
2304
2398
|
};
|
|
2305
2399
|
}
|
|
2306
2400
|
|
|
2307
|
-
// src/openapi/models/
|
|
2308
|
-
function
|
|
2309
|
-
return
|
|
2401
|
+
// src/openapi/models/RedPacketClaimsPage.ts
|
|
2402
|
+
function RedPacketClaimsPageFromJSON(json) {
|
|
2403
|
+
return RedPacketClaimsPageFromJSONTyped(json, false);
|
|
2310
2404
|
}
|
|
2311
|
-
function
|
|
2405
|
+
function RedPacketClaimsPageFromJSONTyped(json, ignoreDiscriminator) {
|
|
2312
2406
|
if (json == null) {
|
|
2313
2407
|
return json;
|
|
2314
2408
|
}
|
|
2315
2409
|
return {
|
|
2316
|
-
"
|
|
2317
|
-
"
|
|
2318
|
-
"
|
|
2319
|
-
"
|
|
2410
|
+
"total": json["total"],
|
|
2411
|
+
"hasNextPage": json["hasNextPage"],
|
|
2412
|
+
"startCursor": json["startCursor"],
|
|
2413
|
+
"endCursor": json["endCursor"],
|
|
2414
|
+
"records": json["records"].map(RedPacketClaimDTOFromJSON)
|
|
2320
2415
|
};
|
|
2321
2416
|
}
|
|
2322
2417
|
|
|
2323
|
-
// src/openapi/models/
|
|
2324
|
-
function
|
|
2325
|
-
return
|
|
2418
|
+
// src/openapi/models/RedPacketDTO.ts
|
|
2419
|
+
function RedPacketDTOFromJSON(json) {
|
|
2420
|
+
return RedPacketDTOFromJSONTyped(json, false);
|
|
2326
2421
|
}
|
|
2327
|
-
function
|
|
2422
|
+
function RedPacketDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
2328
2423
|
if (json == null) {
|
|
2329
2424
|
return json;
|
|
2330
2425
|
}
|
|
2331
2426
|
return {
|
|
2332
|
-
"
|
|
2333
|
-
"
|
|
2334
|
-
"
|
|
2335
|
-
"
|
|
2336
|
-
"
|
|
2337
|
-
"
|
|
2338
|
-
"
|
|
2339
|
-
"
|
|
2340
|
-
"
|
|
2341
|
-
"
|
|
2342
|
-
"
|
|
2343
|
-
"
|
|
2344
|
-
"
|
|
2345
|
-
"
|
|
2346
|
-
"
|
|
2347
|
-
"
|
|
2427
|
+
"chain": ChainFromJSON(json["chain"]),
|
|
2428
|
+
"id": json["id"],
|
|
2429
|
+
"shareId": json["shareId"],
|
|
2430
|
+
"txHash": json["txHash"],
|
|
2431
|
+
"creator": json["creator"],
|
|
2432
|
+
"mint": json["mint"],
|
|
2433
|
+
"totalAmount": json["totalAmount"],
|
|
2434
|
+
"memo": json["memo"],
|
|
2435
|
+
"maxClaims": json["maxClaims"],
|
|
2436
|
+
"claimAuthority": json["claimAuthority"],
|
|
2437
|
+
"expired": json["expired"],
|
|
2438
|
+
"expiration": json["expiration"],
|
|
2439
|
+
"createdAt": json["createdAt"],
|
|
2440
|
+
"expiredAt": json["expiredAt"],
|
|
2441
|
+
"claimedCount": json["claimedCount"],
|
|
2442
|
+
"claimedAmount": json["claimedAmount"],
|
|
2443
|
+
"refundedAmount": json["refundedAmount"]
|
|
2348
2444
|
};
|
|
2349
2445
|
}
|
|
2350
2446
|
|
|
2351
|
-
// src/openapi/models/
|
|
2352
|
-
function
|
|
2353
|
-
return
|
|
2447
|
+
// src/openapi/models/RedPacketReply.ts
|
|
2448
|
+
function RedPacketReplyFromJSON(json) {
|
|
2449
|
+
return RedPacketReplyFromJSONTyped(json, false);
|
|
2354
2450
|
}
|
|
2355
|
-
function
|
|
2451
|
+
function RedPacketReplyFromJSONTyped(json, ignoreDiscriminator) {
|
|
2356
2452
|
if (json == null) {
|
|
2357
2453
|
return json;
|
|
2358
2454
|
}
|
|
2359
2455
|
return {
|
|
2360
|
-
"
|
|
2361
|
-
"editionNonce": json["editionNonce"] == null ? void 0 : json["editionNonce"],
|
|
2362
|
-
"fungible": json["fungible"] == null ? void 0 : json["fungible"],
|
|
2363
|
-
"isMutable": json["isMutable"] == null ? void 0 : json["isMutable"],
|
|
2364
|
-
"key": json["key"] == null ? void 0 : json["key"],
|
|
2365
|
-
"isNative": json["isNative"] == null ? void 0 : json["isNative"],
|
|
2366
|
-
"primarySaleHappened": json["primarySaleHappened"] == null ? void 0 : json["primarySaleHappened"],
|
|
2367
|
-
"launchFromProgramAddress": json["launchFromProgramAddress"] == null ? void 0 : json["launchFromProgramAddress"],
|
|
2368
|
-
"launchFromProtocolFamily": json["launchFromProtocolFamily"] == null ? void 0 : json["launchFromProtocolFamily"],
|
|
2369
|
-
"programAddress": json["programAddress"] == null ? void 0 : json["programAddress"],
|
|
2370
|
-
"migratedToProgramAddress": json["migratedToProgramAddress"] == null ? void 0 : json["migratedToProgramAddress"],
|
|
2371
|
-
"migratedToProtocolFamily": json["migratedToProtocolFamily"] == null ? void 0 : json["migratedToProtocolFamily"],
|
|
2372
|
-
"migratedToPoolAddress": json["migratedToPoolAddress"] == null ? void 0 : json["migratedToPoolAddress"],
|
|
2373
|
-
"migratedAt": json["migratedAt"] == null ? void 0 : json["migratedAt"],
|
|
2374
|
-
"sellerFeeBasisPoints": json["sellerFeeBasisPoints"] == null ? void 0 : json["sellerFeeBasisPoints"],
|
|
2375
|
-
"tokenStandard": json["tokenStandard"] == null ? void 0 : json["tokenStandard"],
|
|
2376
|
-
"mintAuthority": json["mintAuthority"] == null ? void 0 : json["mintAuthority"],
|
|
2377
|
-
"freezeAuthority": json["freezeAuthority"] == null ? void 0 : json["freezeAuthority"],
|
|
2378
|
-
"updateAuthority": json["updateAuthority"] == null ? void 0 : json["updateAuthority"],
|
|
2379
|
-
"isVerifiedCollection": json["isVerifiedCollection"] == null ? void 0 : json["isVerifiedCollection"],
|
|
2380
|
-
"isWrapped": json["isWrapped"] == null ? void 0 : json["isWrapped"]
|
|
2456
|
+
"txSerialize": json["txSerialize"]
|
|
2381
2457
|
};
|
|
2382
2458
|
}
|
|
2383
2459
|
|
|
2384
|
-
// src/openapi/models/
|
|
2385
|
-
function
|
|
2386
|
-
return
|
|
2460
|
+
// src/openapi/models/RedPacketSendTxInput.ts
|
|
2461
|
+
function RedPacketSendTxInputToJSON(json) {
|
|
2462
|
+
return RedPacketSendTxInputToJSONTyped(json, false);
|
|
2387
2463
|
}
|
|
2388
|
-
function
|
|
2389
|
-
if (
|
|
2390
|
-
return
|
|
2464
|
+
function RedPacketSendTxInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2465
|
+
if (value == null) {
|
|
2466
|
+
return value;
|
|
2391
2467
|
}
|
|
2392
2468
|
return {
|
|
2393
|
-
"
|
|
2394
|
-
"share": json["share"] == null ? void 0 : json["share"],
|
|
2395
|
-
"isVerified": json["isVerified"] == null ? void 0 : json["isVerified"]
|
|
2469
|
+
"signedTx": value["signedTx"]
|
|
2396
2470
|
};
|
|
2397
2471
|
}
|
|
2398
2472
|
|
|
2399
|
-
// src/openapi/models/
|
|
2400
|
-
function
|
|
2401
|
-
return
|
|
2473
|
+
// src/openapi/models/RedPacketSendTxResponse.ts
|
|
2474
|
+
function RedPacketSendTxResponseFromJSON(json) {
|
|
2475
|
+
return RedPacketSendTxResponseFromJSONTyped(json, false);
|
|
2402
2476
|
}
|
|
2403
|
-
function
|
|
2477
|
+
function RedPacketSendTxResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2404
2478
|
if (json == null) {
|
|
2405
2479
|
return json;
|
|
2406
2480
|
}
|
|
2407
2481
|
return {
|
|
2408
|
-
"
|
|
2409
|
-
"price1m": json["price1m"],
|
|
2410
|
-
"buys1m": json["buys1m"],
|
|
2411
|
-
"sells1m": json["sells1m"],
|
|
2412
|
-
"buyVolumes1m": json["buyVolumes1m"],
|
|
2413
|
-
"sellsVolumes1m": json["sellsVolumes1m"],
|
|
2414
|
-
"volumes1m": json["volumes1m"],
|
|
2415
|
-
"buyVolumesInUsd1m": json["buyVolumesInUsd1m"],
|
|
2416
|
-
"sellVolumesInUsd1m": json["sellVolumesInUsd1m"],
|
|
2417
|
-
"volumesInUsd1m": json["volumesInUsd1m"],
|
|
2418
|
-
"buyers1m": json["buyers1m"] == null ? void 0 : json["buyers1m"],
|
|
2419
|
-
"sellers1m": json["sellers1m"] == null ? void 0 : json["sellers1m"],
|
|
2420
|
-
"openPriceInUsd1m": json["openPriceInUsd1m"],
|
|
2421
|
-
"closePriceInUsd1m": json["closePriceInUsd1m"],
|
|
2422
|
-
"priceChangeRatioInUsd1m": json["priceChangeRatioInUsd1m"],
|
|
2423
|
-
"trades1m": json["trades1m"],
|
|
2424
|
-
"traders1m": json["traders1m"] == null ? void 0 : json["traders1m"],
|
|
2425
|
-
"highInUsd1m": json["highInUsd1m"] == null ? void 0 : json["highInUsd1m"],
|
|
2426
|
-
"lowInUsd1m": json["lowInUsd1m"] == null ? void 0 : json["lowInUsd1m"],
|
|
2427
|
-
"price5m": json["price5m"],
|
|
2428
|
-
"buys5m": json["buys5m"],
|
|
2429
|
-
"sells5m": json["sells5m"],
|
|
2430
|
-
"buyVolumes5m": json["buyVolumes5m"],
|
|
2431
|
-
"sellsVolumes5m": json["sellsVolumes5m"],
|
|
2432
|
-
"volumes5m": json["volumes5m"],
|
|
2433
|
-
"buyVolumesInUsd5m": json["buyVolumesInUsd5m"],
|
|
2434
|
-
"sellVolumesInUsd5m": json["sellVolumesInUsd5m"],
|
|
2435
|
-
"volumesInUsd5m": json["volumesInUsd5m"],
|
|
2436
|
-
"buyers5m": json["buyers5m"] == null ? void 0 : json["buyers5m"],
|
|
2437
|
-
"sellers5m": json["sellers5m"] == null ? void 0 : json["sellers5m"],
|
|
2438
|
-
"openPriceInUsd5m": json["openPriceInUsd5m"],
|
|
2439
|
-
"closePriceInUsd5m": json["closePriceInUsd5m"],
|
|
2440
|
-
"priceChangeRatioInUsd5m": json["priceChangeRatioInUsd5m"],
|
|
2441
|
-
"trades5m": json["trades5m"],
|
|
2442
|
-
"traders5m": json["traders5m"] == null ? void 0 : json["traders5m"],
|
|
2443
|
-
"highInUsd5m": json["highInUsd5m"] == null ? void 0 : json["highInUsd5m"],
|
|
2444
|
-
"lowInUsd5m": json["lowInUsd5m"] == null ? void 0 : json["lowInUsd5m"],
|
|
2445
|
-
"price15m": json["price15m"] == null ? void 0 : json["price15m"],
|
|
2446
|
-
"buys15m": json["buys15m"] == null ? void 0 : json["buys15m"],
|
|
2447
|
-
"sells15m": json["sells15m"] == null ? void 0 : json["sells15m"],
|
|
2448
|
-
"buyVolumes15m": json["buyVolumes15m"] == null ? void 0 : json["buyVolumes15m"],
|
|
2449
|
-
"sellsVolumes15m": json["sellsVolumes15m"] == null ? void 0 : json["sellsVolumes15m"],
|
|
2450
|
-
"volumes15m": json["volumes15m"] == null ? void 0 : json["volumes15m"],
|
|
2451
|
-
"buyVolumesInUsd15m": json["buyVolumesInUsd15m"] == null ? void 0 : json["buyVolumesInUsd15m"],
|
|
2452
|
-
"sellVolumesInUsd15m": json["sellVolumesInUsd15m"] == null ? void 0 : json["sellVolumesInUsd15m"],
|
|
2453
|
-
"volumesInUsd15m": json["volumesInUsd15m"] == null ? void 0 : json["volumesInUsd15m"],
|
|
2454
|
-
"buyers15m": json["buyers15m"] == null ? void 0 : json["buyers15m"],
|
|
2455
|
-
"sellers15m": json["sellers15m"] == null ? void 0 : json["sellers15m"],
|
|
2456
|
-
"openPriceInUsd15m": json["openPriceInUsd15m"] == null ? void 0 : json["openPriceInUsd15m"],
|
|
2457
|
-
"closePriceInUsd15m": json["closePriceInUsd15m"] == null ? void 0 : json["closePriceInUsd15m"],
|
|
2458
|
-
"priceChangeRatioInUsd15m": json["priceChangeRatioInUsd15m"] == null ? void 0 : json["priceChangeRatioInUsd15m"],
|
|
2459
|
-
"trades15m": json["trades15m"] == null ? void 0 : json["trades15m"],
|
|
2460
|
-
"traders15m": json["traders15m"] == null ? void 0 : json["traders15m"],
|
|
2461
|
-
"highInUsd15m": json["highInUsd15m"] == null ? void 0 : json["highInUsd15m"],
|
|
2462
|
-
"lowInUsd15m": json["lowInUsd15m"] == null ? void 0 : json["lowInUsd15m"],
|
|
2463
|
-
"price30m": json["price30m"],
|
|
2464
|
-
"buys30m": json["buys30m"],
|
|
2465
|
-
"sells30m": json["sells30m"],
|
|
2466
|
-
"buyVolumes30m": json["buyVolumes30m"],
|
|
2467
|
-
"sellsVolumes30m": json["sellsVolumes30m"],
|
|
2468
|
-
"volumes30m": json["volumes30m"],
|
|
2469
|
-
"buyVolumesInUsd30m": json["buyVolumesInUsd30m"],
|
|
2470
|
-
"sellVolumesInUsd30m": json["sellVolumesInUsd30m"],
|
|
2471
|
-
"volumesInUsd30m": json["volumesInUsd30m"],
|
|
2472
|
-
"buyers30m": json["buyers30m"] == null ? void 0 : json["buyers30m"],
|
|
2473
|
-
"sellers30m": json["sellers30m"] == null ? void 0 : json["sellers30m"],
|
|
2474
|
-
"openPriceInUsd30m": json["openPriceInUsd30m"],
|
|
2475
|
-
"closePriceInUsd30m": json["closePriceInUsd30m"],
|
|
2476
|
-
"priceChangeRatioInUsd30m": json["priceChangeRatioInUsd30m"],
|
|
2477
|
-
"trades30m": json["trades30m"],
|
|
2478
|
-
"traders30m": json["traders30m"] == null ? void 0 : json["traders30m"],
|
|
2479
|
-
"highInUsd30m": json["highInUsd30m"] == null ? void 0 : json["highInUsd30m"],
|
|
2480
|
-
"lowInUsd30m": json["lowInUsd30m"] == null ? void 0 : json["lowInUsd30m"],
|
|
2481
|
-
"price1h": json["price1h"],
|
|
2482
|
-
"buys1h": json["buys1h"],
|
|
2483
|
-
"sells1h": json["sells1h"],
|
|
2484
|
-
"buyVolumes1h": json["buyVolumes1h"],
|
|
2485
|
-
"sellsVolumes1h": json["sellsVolumes1h"],
|
|
2486
|
-
"volumes1h": json["volumes1h"],
|
|
2487
|
-
"buyVolumesInUsd1h": json["buyVolumesInUsd1h"],
|
|
2488
|
-
"sellVolumesInUsd1h": json["sellVolumesInUsd1h"],
|
|
2489
|
-
"volumesInUsd1h": json["volumesInUsd1h"],
|
|
2490
|
-
"buyers1h": json["buyers1h"] == null ? void 0 : json["buyers1h"],
|
|
2491
|
-
"sellers1h": json["sellers1h"] == null ? void 0 : json["sellers1h"],
|
|
2492
|
-
"openPriceInUsd1h": json["openPriceInUsd1h"],
|
|
2493
|
-
"closePriceInUsd1h": json["closePriceInUsd1h"],
|
|
2494
|
-
"priceChangeRatioInUsd1h": json["priceChangeRatioInUsd1h"],
|
|
2495
|
-
"trades1h": json["trades1h"],
|
|
2496
|
-
"traders1h": json["traders1h"] == null ? void 0 : json["traders1h"],
|
|
2497
|
-
"highInUsd1h": json["highInUsd1h"] == null ? void 0 : json["highInUsd1h"],
|
|
2498
|
-
"lowInUsd1h": json["lowInUsd1h"] == null ? void 0 : json["lowInUsd1h"],
|
|
2499
|
-
"price4h": json["price4h"],
|
|
2500
|
-
"buys4h": json["buys4h"],
|
|
2501
|
-
"sells4h": json["sells4h"],
|
|
2502
|
-
"buyVolumes4h": json["buyVolumes4h"],
|
|
2503
|
-
"sellsVolumes4h": json["sellsVolumes4h"],
|
|
2504
|
-
"volumes4h": json["volumes4h"],
|
|
2505
|
-
"buyVolumesInUsd4h": json["buyVolumesInUsd4h"],
|
|
2506
|
-
"sellVolumesInUsd4h": json["sellVolumesInUsd4h"],
|
|
2507
|
-
"volumesInUsd4h": json["volumesInUsd4h"],
|
|
2508
|
-
"buyers4h": json["buyers4h"] == null ? void 0 : json["buyers4h"],
|
|
2509
|
-
"sellers4h": json["sellers4h"] == null ? void 0 : json["sellers4h"],
|
|
2510
|
-
"openPriceInUsd4h": json["openPriceInUsd4h"],
|
|
2511
|
-
"closePriceInUsd4h": json["closePriceInUsd4h"],
|
|
2512
|
-
"priceChangeRatioInUsd4h": json["priceChangeRatioInUsd4h"],
|
|
2513
|
-
"trades4h": json["trades4h"],
|
|
2514
|
-
"traders4h": json["traders4h"] == null ? void 0 : json["traders4h"],
|
|
2515
|
-
"highInUsd4h": json["highInUsd4h"] == null ? void 0 : json["highInUsd4h"],
|
|
2516
|
-
"lowInUsd4h": json["lowInUsd4h"] == null ? void 0 : json["lowInUsd4h"],
|
|
2517
|
-
"price24h": json["price24h"],
|
|
2518
|
-
"buys24h": json["buys24h"],
|
|
2519
|
-
"sells24h": json["sells24h"],
|
|
2520
|
-
"buyVolumes24h": json["buyVolumes24h"],
|
|
2521
|
-
"sellsVolumes24h": json["sellsVolumes24h"],
|
|
2522
|
-
"volumes24h": json["volumes24h"],
|
|
2523
|
-
"buyVolumesInUsd24h": json["buyVolumesInUsd24h"],
|
|
2524
|
-
"sellVolumesInUsd24h": json["sellVolumesInUsd24h"],
|
|
2525
|
-
"volumesInUsd24h": json["volumesInUsd24h"],
|
|
2526
|
-
"buyers24h": json["buyers24h"] == null ? void 0 : json["buyers24h"],
|
|
2527
|
-
"sellers24h": json["sellers24h"] == null ? void 0 : json["sellers24h"],
|
|
2528
|
-
"openPriceInUsd24h": json["openPriceInUsd24h"],
|
|
2529
|
-
"closePriceInUsd24h": json["closePriceInUsd24h"],
|
|
2530
|
-
"priceChangeRatioInUsd24h": json["priceChangeRatioInUsd24h"],
|
|
2531
|
-
"trades24h": json["trades24h"],
|
|
2532
|
-
"traders24h": json["traders24h"] == null ? void 0 : json["traders24h"],
|
|
2533
|
-
"highInUsd24h": json["highInUsd24h"] == null ? void 0 : json["highInUsd24h"],
|
|
2534
|
-
"lowInUsd24h": json["lowInUsd24h"] == null ? void 0 : json["lowInUsd24h"]
|
|
2482
|
+
"signature": json["signature"]
|
|
2535
2483
|
};
|
|
2536
2484
|
}
|
|
2537
2485
|
|
|
2538
|
-
// src/openapi/models/
|
|
2539
|
-
function
|
|
2540
|
-
return
|
|
2486
|
+
// src/openapi/models/RedPacketsPage.ts
|
|
2487
|
+
function RedPacketsPageFromJSON(json) {
|
|
2488
|
+
return RedPacketsPageFromJSONTyped(json, false);
|
|
2541
2489
|
}
|
|
2542
|
-
function
|
|
2490
|
+
function RedPacketsPageFromJSONTyped(json, ignoreDiscriminator) {
|
|
2543
2491
|
if (json == null) {
|
|
2544
2492
|
return json;
|
|
2545
2493
|
}
|
|
2546
2494
|
return {
|
|
2547
|
-
"
|
|
2548
|
-
"
|
|
2549
|
-
"
|
|
2550
|
-
"
|
|
2551
|
-
"
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2495
|
+
"total": json["total"],
|
|
2496
|
+
"hasNextPage": json["hasNextPage"],
|
|
2497
|
+
"startCursor": json["startCursor"],
|
|
2498
|
+
"endCursor": json["endCursor"],
|
|
2499
|
+
"records": json["records"].map(RedPacketDTOFromJSON)
|
|
2500
|
+
};
|
|
2501
|
+
}
|
|
2502
|
+
|
|
2503
|
+
// src/openapi/models/SendTxInput.ts
|
|
2504
|
+
function SendTxInputToJSON(json) {
|
|
2505
|
+
return SendTxInputToJSONTyped(json, false);
|
|
2506
|
+
}
|
|
2507
|
+
function SendTxInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2508
|
+
if (value == null) {
|
|
2509
|
+
return value;
|
|
2510
|
+
}
|
|
2511
|
+
return {
|
|
2512
|
+
"signedTx": value["signedTx"],
|
|
2513
|
+
"submitType": value["submitType"],
|
|
2514
|
+
"options": value["options"]
|
|
2515
|
+
};
|
|
2516
|
+
}
|
|
2517
|
+
|
|
2518
|
+
// src/openapi/models/SendTxResponse.ts
|
|
2519
|
+
function SendTxResponseFromJSON(json) {
|
|
2520
|
+
return SendTxResponseFromJSONTyped(json, false);
|
|
2521
|
+
}
|
|
2522
|
+
function SendTxResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2523
|
+
if (json == null) {
|
|
2524
|
+
return json;
|
|
2525
|
+
}
|
|
2526
|
+
return {
|
|
2527
|
+
"signature": json["signature"],
|
|
2528
|
+
"elapsedTime": json["elapsedTime"],
|
|
2529
|
+
"jobId": json["jobId"]
|
|
2530
|
+
};
|
|
2531
|
+
}
|
|
2532
|
+
|
|
2533
|
+
// src/openapi/models/SwapInput.ts
|
|
2534
|
+
function SwapInputToJSON(json) {
|
|
2535
|
+
return SwapInputToJSONTyped(json, false);
|
|
2536
|
+
}
|
|
2537
|
+
function SwapInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2538
|
+
if (value == null) {
|
|
2539
|
+
return value;
|
|
2540
|
+
}
|
|
2541
|
+
return {
|
|
2542
|
+
"dex": value["dex"],
|
|
2543
|
+
"userAddress": value["userAddress"],
|
|
2544
|
+
"priorityFee": value["priorityFee"],
|
|
2545
|
+
"poolAddress": value["poolAddress"],
|
|
2546
|
+
"amount": value["amount"],
|
|
2547
|
+
"swapMode": value["swapMode"],
|
|
2548
|
+
"slippage": value["slippage"],
|
|
2549
|
+
"inputMint": value["inputMint"],
|
|
2550
|
+
"outputMint": value["outputMint"]
|
|
2551
|
+
};
|
|
2552
|
+
}
|
|
2553
|
+
|
|
2554
|
+
// src/openapi/models/SwapReply.ts
|
|
2555
|
+
function SwapReplyFromJSON(json) {
|
|
2556
|
+
return SwapReplyFromJSONTyped(json, false);
|
|
2557
|
+
}
|
|
2558
|
+
function SwapReplyFromJSONTyped(json, ignoreDiscriminator) {
|
|
2559
|
+
if (json == null) {
|
|
2560
|
+
return json;
|
|
2561
|
+
}
|
|
2562
|
+
return {
|
|
2563
|
+
"serializedTx": json["serializedTx"],
|
|
2564
|
+
"elapsedTime": json["elapsedTime"]
|
|
2565
|
+
};
|
|
2566
|
+
}
|
|
2567
|
+
|
|
2568
|
+
// src/openapi/models/SwapRouteInput.ts
|
|
2569
|
+
function SwapRouteInputFromJSON(json) {
|
|
2570
|
+
return SwapRouteInputFromJSONTyped(json, false);
|
|
2571
|
+
}
|
|
2572
|
+
function SwapRouteInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
2573
|
+
if (json == null) {
|
|
2574
|
+
return json;
|
|
2575
|
+
}
|
|
2576
|
+
return {
|
|
2577
|
+
"dex": json["dex"],
|
|
2578
|
+
"userAddress": json["userAddress"],
|
|
2579
|
+
"priorityFee": json["priorityFee"] == null ? void 0 : json["priorityFee"],
|
|
2580
|
+
"amount": json["amount"],
|
|
2581
|
+
"swapMode": json["swapMode"],
|
|
2582
|
+
"slippage": json["slippage"],
|
|
2583
|
+
"inputMint": json["inputMint"] == null ? void 0 : json["inputMint"],
|
|
2584
|
+
"outputMint": json["outputMint"] == null ? void 0 : json["outputMint"],
|
|
2585
|
+
"recipientAddress": json["recipientAddress"] == null ? void 0 : json["recipientAddress"],
|
|
2586
|
+
"permit": json["permit"] == null ? void 0 : json["permit"],
|
|
2587
|
+
"deadline": json["deadline"] == null ? void 0 : json["deadline"],
|
|
2588
|
+
"tipFee": json["tipFee"] == null ? void 0 : json["tipFee"],
|
|
2589
|
+
"isAntiMev": json["isAntiMev"] == null ? void 0 : json["isAntiMev"]
|
|
2590
|
+
};
|
|
2591
|
+
}
|
|
2592
|
+
function SwapRouteInputToJSON(json) {
|
|
2593
|
+
return SwapRouteInputToJSONTyped(json, false);
|
|
2594
|
+
}
|
|
2595
|
+
function SwapRouteInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2596
|
+
if (value == null) {
|
|
2597
|
+
return value;
|
|
2598
|
+
}
|
|
2599
|
+
return {
|
|
2600
|
+
"dex": value["dex"],
|
|
2601
|
+
"userAddress": value["userAddress"],
|
|
2602
|
+
"priorityFee": value["priorityFee"],
|
|
2603
|
+
"amount": value["amount"],
|
|
2604
|
+
"swapMode": value["swapMode"],
|
|
2605
|
+
"slippage": value["slippage"],
|
|
2606
|
+
"inputMint": value["inputMint"],
|
|
2607
|
+
"outputMint": value["outputMint"],
|
|
2608
|
+
"recipientAddress": value["recipientAddress"],
|
|
2609
|
+
"permit": value["permit"],
|
|
2610
|
+
"deadline": value["deadline"],
|
|
2611
|
+
"tipFee": value["tipFee"],
|
|
2612
|
+
"isAntiMev": value["isAntiMev"]
|
|
2613
|
+
};
|
|
2614
|
+
}
|
|
2615
|
+
|
|
2616
|
+
// src/openapi/models/SwapRouteResponse.ts
|
|
2617
|
+
function SwapRouteResponseFromJSON(json) {
|
|
2618
|
+
return SwapRouteResponseFromJSONTyped(json, false);
|
|
2619
|
+
}
|
|
2620
|
+
function SwapRouteResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2621
|
+
if (json == null) {
|
|
2622
|
+
return json;
|
|
2623
|
+
}
|
|
2624
|
+
return {
|
|
2625
|
+
"args": SwapRouteInputFromJSON(json["args"]),
|
|
2626
|
+
"serializedTx": json["serializedTx"],
|
|
2627
|
+
"routeInfo": json["routeInfo"],
|
|
2628
|
+
"elapsedTime": json["elapsedTime"]
|
|
2560
2629
|
};
|
|
2561
2630
|
}
|
|
2562
2631
|
|
|
@@ -2582,6 +2651,8 @@ function TokenFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
2582
2651
|
"socialMedias": json["socialMedias"] == null ? void 0 : TokenSocialMediasDTOFromJSON(json["socialMedias"]),
|
|
2583
2652
|
"tokenCreatedAt": json["tokenCreatedAt"] == null ? void 0 : json["tokenCreatedAt"],
|
|
2584
2653
|
"description": json["description"] == null ? void 0 : json["description"],
|
|
2654
|
+
"devTotalTokens": json["devTotalTokens"] == null ? void 0 : json["devTotalTokens"],
|
|
2655
|
+
"devLastTokenCreatedAt": json["devLastTokenCreatedAt"] == null ? void 0 : json["devLastTokenCreatedAt"],
|
|
2585
2656
|
"market": json["market"] == null ? void 0 : json["market"],
|
|
2586
2657
|
"extension": json["extension"] == null ? void 0 : json["extension"],
|
|
2587
2658
|
"stats": json["stats"] == null ? void 0 : TokenStatFromJSON(json["stats"]),
|
|
@@ -2679,31 +2750,6 @@ function TokenListPageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
2679
2750
|
};
|
|
2680
2751
|
}
|
|
2681
2752
|
|
|
2682
|
-
// src/openapi/models/TokenMetadata.ts
|
|
2683
|
-
function TokenMetadataFromJSON(json) {
|
|
2684
|
-
return TokenMetadataFromJSONTyped(json, false);
|
|
2685
|
-
}
|
|
2686
|
-
function TokenMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
2687
|
-
if (json == null) {
|
|
2688
|
-
return json;
|
|
2689
|
-
}
|
|
2690
|
-
return {
|
|
2691
|
-
"chain": json["chain"],
|
|
2692
|
-
"decimals": json["decimals"],
|
|
2693
|
-
"name": json["name"],
|
|
2694
|
-
"symbol": json["symbol"],
|
|
2695
|
-
"metadataAddress": json["metadataAddress"] == null ? void 0 : json["metadataAddress"],
|
|
2696
|
-
"address": json["address"],
|
|
2697
|
-
"tokenCreators": json["tokenCreators"] == null ? void 0 : json["tokenCreators"].map(TokenCreatorsDTOFromJSON),
|
|
2698
|
-
"imageUrl": json["imageUrl"] == null ? void 0 : json["imageUrl"],
|
|
2699
|
-
"uri": json["uri"] == null ? void 0 : json["uri"],
|
|
2700
|
-
"extra": json["extra"] == null ? void 0 : TokenExtraDTOFromJSON(json["extra"]),
|
|
2701
|
-
"socialMedias": json["socialMedias"] == null ? void 0 : TokenSocialMediasDTOFromJSON(json["socialMedias"]),
|
|
2702
|
-
"tokenCreatedAt": json["tokenCreatedAt"] == null ? void 0 : json["tokenCreatedAt"],
|
|
2703
|
-
"description": json["description"] == null ? void 0 : json["description"]
|
|
2704
|
-
};
|
|
2705
|
-
}
|
|
2706
|
-
|
|
2707
2753
|
// src/openapi/models/TokenPage.ts
|
|
2708
2754
|
function TokenPageFromJSON(json) {
|
|
2709
2755
|
return TokenPageFromJSONTyped(json, false);
|
|
@@ -2757,6 +2803,31 @@ function TokenPricePageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
2757
2803
|
};
|
|
2758
2804
|
}
|
|
2759
2805
|
|
|
2806
|
+
// src/openapi/models/TokenTrader.ts
|
|
2807
|
+
function TokenTraderFromJSON(json) {
|
|
2808
|
+
return TokenTraderFromJSONTyped(json, false);
|
|
2809
|
+
}
|
|
2810
|
+
function TokenTraderFromJSONTyped(json, ignoreDiscriminator) {
|
|
2811
|
+
if (json == null) {
|
|
2812
|
+
return json;
|
|
2813
|
+
}
|
|
2814
|
+
return {
|
|
2815
|
+
"address": json["address"],
|
|
2816
|
+
"transactionSignature": json["transactionSignature"] == null ? void 0 : json["transactionSignature"],
|
|
2817
|
+
"blockHash": json["blockHash"] == null ? void 0 : json["blockHash"],
|
|
2818
|
+
"blockHeight": json["blockHeight"] == null ? void 0 : json["blockHeight"],
|
|
2819
|
+
"blockSlot": json["blockSlot"] == null ? void 0 : json["blockSlot"],
|
|
2820
|
+
"blockTimestamp": json["blockTimestamp"] == null ? void 0 : new Date(json["blockTimestamp"]),
|
|
2821
|
+
"onchainCreatedAt": json["onchainCreatedAt"] == null ? void 0 : json["onchainCreatedAt"],
|
|
2822
|
+
"tradeCount": json["tradeCount"] == null ? void 0 : json["tradeCount"],
|
|
2823
|
+
"tradeAmountInNative": json["tradeAmountInNative"] == null ? void 0 : json["tradeAmountInNative"],
|
|
2824
|
+
"tradeAmountInUsd": json["tradeAmountInUsd"] == null ? void 0 : json["tradeAmountInUsd"],
|
|
2825
|
+
"percentileRankTradeCount": json["percentileRankTradeCount"] == null ? void 0 : json["percentileRankTradeCount"],
|
|
2826
|
+
"percentileRankTradeAmountInUsd": json["percentileRankTradeAmountInUsd"] == null ? void 0 : json["percentileRankTradeAmountInUsd"],
|
|
2827
|
+
"rankTradeAmountInUsd": json["rankTradeAmountInUsd"] == null ? void 0 : json["rankTradeAmountInUsd"]
|
|
2828
|
+
};
|
|
2829
|
+
}
|
|
2830
|
+
|
|
2760
2831
|
// src/openapi/models/TopTradersDTO.ts
|
|
2761
2832
|
function TopTradersDTOFromJSON(json) {
|
|
2762
2833
|
return TopTradersDTOFromJSONTyped(json, false);
|
|
@@ -4379,6 +4450,51 @@ var TokenApi = class extends BaseAPI {
|
|
|
4379
4450
|
const response = await this.getCreationRaw(requestParameters, initOverrides);
|
|
4380
4451
|
return await response.value();
|
|
4381
4452
|
}
|
|
4453
|
+
/**
|
|
4454
|
+
* CONTROLLER.TOKEN.GET_DEV_TOKENS.DESCRIPTION
|
|
4455
|
+
* CONTROLLER.TOKEN.GET_DEV_TOKENS.SUMMARY
|
|
4456
|
+
*/
|
|
4457
|
+
async getDevTokensRaw(requestParameters, initOverrides) {
|
|
4458
|
+
if (requestParameters["chain"] == null) {
|
|
4459
|
+
throw new RequiredError(
|
|
4460
|
+
"chain",
|
|
4461
|
+
'Required parameter "chain" was null or undefined when calling getDevTokens().'
|
|
4462
|
+
);
|
|
4463
|
+
}
|
|
4464
|
+
if (requestParameters["devAddress"] == null) {
|
|
4465
|
+
throw new RequiredError(
|
|
4466
|
+
"devAddress",
|
|
4467
|
+
'Required parameter "devAddress" was null or undefined when calling getDevTokens().'
|
|
4468
|
+
);
|
|
4469
|
+
}
|
|
4470
|
+
const queryParameters = {};
|
|
4471
|
+
const headerParameters = {};
|
|
4472
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4473
|
+
const token = this.configuration.accessToken;
|
|
4474
|
+
const tokenString = await token("bearer", []);
|
|
4475
|
+
if (tokenString) {
|
|
4476
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4477
|
+
}
|
|
4478
|
+
}
|
|
4479
|
+
let urlPath = `/v1/token/{chain}/dev/{devAddress}/tokens`;
|
|
4480
|
+
urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters["chain"])));
|
|
4481
|
+
urlPath = urlPath.replace(`{${"devAddress"}}`, encodeURIComponent(String(requestParameters["devAddress"])));
|
|
4482
|
+
const response = await this.request({
|
|
4483
|
+
path: urlPath,
|
|
4484
|
+
method: "GET",
|
|
4485
|
+
headers: headerParameters,
|
|
4486
|
+
query: queryParameters
|
|
4487
|
+
}, initOverrides);
|
|
4488
|
+
return new JSONApiResponse(response, (jsonValue) => jsonValue.map(DevTokenDTOFromJSON));
|
|
4489
|
+
}
|
|
4490
|
+
/**
|
|
4491
|
+
* CONTROLLER.TOKEN.GET_DEV_TOKENS.DESCRIPTION
|
|
4492
|
+
* CONTROLLER.TOKEN.GET_DEV_TOKENS.SUMMARY
|
|
4493
|
+
*/
|
|
4494
|
+
async getDevTokens(requestParameters, initOverrides) {
|
|
4495
|
+
const response = await this.getDevTokensRaw(requestParameters, initOverrides);
|
|
4496
|
+
return await response.value();
|
|
4497
|
+
}
|
|
4382
4498
|
/**
|
|
4383
4499
|
* CONTROLLER.TOKEN.GET_HOLDERS.DESCRIPTION
|
|
4384
4500
|
* CONTROLLER.TOKEN.GET_HOLDERS.SUMMARY
|
|
@@ -5063,6 +5179,58 @@ var TokenApi = class extends BaseAPI {
|
|
|
5063
5179
|
const response = await this.getTokenRaw(requestParameters, initOverrides);
|
|
5064
5180
|
return await response.value();
|
|
5065
5181
|
}
|
|
5182
|
+
/**
|
|
5183
|
+
* CONTROLLER.TOKEN.GET_TOKEN_TRADERS.DESCRIPTION
|
|
5184
|
+
* CONTROLLER.TOKEN.GET_TOKEN_TRADERS.SUMMARY
|
|
5185
|
+
*/
|
|
5186
|
+
async getTokenTradersRaw(requestParameters, initOverrides) {
|
|
5187
|
+
if (requestParameters["chain"] == null) {
|
|
5188
|
+
throw new RequiredError(
|
|
5189
|
+
"chain",
|
|
5190
|
+
'Required parameter "chain" was null or undefined when calling getTokenTraders().'
|
|
5191
|
+
);
|
|
5192
|
+
}
|
|
5193
|
+
if (requestParameters["tokenAddress"] == null) {
|
|
5194
|
+
throw new RequiredError(
|
|
5195
|
+
"tokenAddress",
|
|
5196
|
+
'Required parameter "tokenAddress" was null or undefined when calling getTokenTraders().'
|
|
5197
|
+
);
|
|
5198
|
+
}
|
|
5199
|
+
if (requestParameters["tag"] == null) {
|
|
5200
|
+
throw new RequiredError(
|
|
5201
|
+
"tag",
|
|
5202
|
+
'Required parameter "tag" was null or undefined when calling getTokenTraders().'
|
|
5203
|
+
);
|
|
5204
|
+
}
|
|
5205
|
+
const queryParameters = {};
|
|
5206
|
+
const headerParameters = {};
|
|
5207
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5208
|
+
const token = this.configuration.accessToken;
|
|
5209
|
+
const tokenString = await token("bearer", []);
|
|
5210
|
+
if (tokenString) {
|
|
5211
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5212
|
+
}
|
|
5213
|
+
}
|
|
5214
|
+
let urlPath = `/v1/token/{chain}/{tokenAddress}/traders/{tag}`;
|
|
5215
|
+
urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters["chain"])));
|
|
5216
|
+
urlPath = urlPath.replace(`{${"tokenAddress"}}`, encodeURIComponent(String(requestParameters["tokenAddress"])));
|
|
5217
|
+
urlPath = urlPath.replace(`{${"tag"}}`, encodeURIComponent(String(requestParameters["tag"])));
|
|
5218
|
+
const response = await this.request({
|
|
5219
|
+
path: urlPath,
|
|
5220
|
+
method: "GET",
|
|
5221
|
+
headers: headerParameters,
|
|
5222
|
+
query: queryParameters
|
|
5223
|
+
}, initOverrides);
|
|
5224
|
+
return new JSONApiResponse(response, (jsonValue) => jsonValue.map(TokenTraderFromJSON));
|
|
5225
|
+
}
|
|
5226
|
+
/**
|
|
5227
|
+
* CONTROLLER.TOKEN.GET_TOKEN_TRADERS.DESCRIPTION
|
|
5228
|
+
* CONTROLLER.TOKEN.GET_TOKEN_TRADERS.SUMMARY
|
|
5229
|
+
*/
|
|
5230
|
+
async getTokenTraders(requestParameters, initOverrides) {
|
|
5231
|
+
const response = await this.getTokenTradersRaw(requestParameters, initOverrides);
|
|
5232
|
+
return await response.value();
|
|
5233
|
+
}
|
|
5066
5234
|
/**
|
|
5067
5235
|
* CONTROLLER.TOKEN.GET_TOKENS.DESCRIPTION
|
|
5068
5236
|
* CONTROLLER.TOKEN.GET_TOKENS.SUMMARY
|