You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: geniusyield-server-lib/src/GeniusYield/Server/Api.hs
+11-8Lines changed: 11 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -86,15 +86,18 @@ type TradingFeesAPI =
86
86
87
87
typeAssetsAPI=Summary"Get assets information":>Description"Get information for a specific asset.":>Capture"asset"GYAssetClass:>Get '[JSON] AssetDetails
88
88
89
-
typeV1API=
89
+
typeV0API=
90
90
"settings":>SettingsAPI
91
91
:<|>"orders":>DEXPartialOrderAPI
92
92
:<|>"markets":>MarketsAPI
93
93
:<|>"tx":>TxAPI
94
94
:<|>"trading_fees":>TradingFeesAPI
95
95
:<|>"assets":>AssetsAPI
96
96
97
-
typeGeniusYieldAPI="v1":>V1API
97
+
typeV0∷Symbol
98
+
typeV0="v0"
99
+
100
+
typeGeniusYieldAPI=V0:>V0API
98
101
99
102
geniusYieldAPI∷ProxyGeniusYieldAPI
100
103
geniusYieldAPI =Proxy
@@ -116,12 +119,12 @@ geniusYieldAPISwagger =
116
119
& info
117
120
. description
118
121
?~"API to interact with GeniusYield DEX."
119
-
& applyTagsFor (subOperations (Proxy∷Proxy ("v1":>"tx":>TxAPI)) (Proxy∷ProxyGeniusYieldAPI)) ["Transaction"& description ?~"Endpoints related to transaction hex such as submitting a transaction"]
120
-
& applyTagsFor (subOperations (Proxy∷Proxy ("v1":>"markets":>MarketsAPI)) (Proxy∷ProxyGeniusYieldAPI)) ["Markets"& description ?~"Endpoints related to accessing markets information"]
121
-
& applyTagsFor (subOperations (Proxy∷Proxy ("v1":>"orders":>DEXPartialOrderAPI)) (Proxy∷ProxyGeniusYieldAPI)) ["Orders"& description ?~"Endpoints related to interacting with orders"]
122
-
& applyTagsFor (subOperations (Proxy∷Proxy ("v1":>"settings":>SettingsAPI)) (Proxy∷ProxyGeniusYieldAPI)) ["Settings"& description ?~"Endpoint to get server settings such as network, version, and revision"]
123
-
& applyTagsFor (subOperations (Proxy∷Proxy ("v1":>"trading_fees":>TradingFeesAPI)) (Proxy∷ProxyGeniusYieldAPI)) ["Trading Fees"& description ?~"Endpoint to get trading fees of DEX."]
& applyTagsFor (subOperations (Proxy∷Proxy (V0:>"tx":>TxAPI)) (Proxy∷ProxyGeniusYieldAPI)) ["Transaction"& description ?~"Endpoints related to transaction hex such as submitting a transaction"]
123
+
& applyTagsFor (subOperations (Proxy∷Proxy (V0:>"markets":>MarketsAPI)) (Proxy∷ProxyGeniusYieldAPI)) ["Markets"& description ?~"Endpoints related to accessing markets information"]
124
+
& applyTagsFor (subOperations (Proxy∷Proxy (V0:>"orders":>DEXPartialOrderAPI)) (Proxy∷ProxyGeniusYieldAPI)) ["Orders"& description ?~"Endpoints related to interacting with orders"]
125
+
& applyTagsFor (subOperations (Proxy∷Proxy (V0:>"settings":>SettingsAPI)) (Proxy∷ProxyGeniusYieldAPI)) ["Settings"& description ?~"Endpoint to get server settings such as network, version, and revision"]
126
+
& applyTagsFor (subOperations (Proxy∷Proxy (V0:>"trading_fees":>TradingFeesAPI)) (Proxy∷ProxyGeniusYieldAPI)) ["Trading Fees"& description ?~"Endpoint to get trading fees of DEX."]
0 commit comments