-
Notifications
You must be signed in to change notification settings - Fork 10
/
geniusyield-orderbot.cabal
214 lines (196 loc) · 5.81 KB
/
geniusyield-orderbot.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
cabal-version: 3.12
name: geniusyield-orderbot
version: 0.2.0
synopsis: Smart Order Router
description:
Open-source Smart Order Router framework to connect liquidity from
the GeniusYield DEX to empowers users to deploy their own arbitrage
strategies and bring true decentralization to the Cardano Defi
ecosystem.
license: Apache-2.0
license-file: LICENSE
copyright: (c) 2023 GYELD GMBH
author: Lars Bruenjes
maintainer: [email protected]
category: Blockchain, Cardano, Framework
homepage: https://github.com/geniusyield/smart-order-router#readme
bug-reports: https://github.com/geniusyield/smart-order-router/issues
extra-source-files: README.md
extra-doc-files: CHANGELOG.md
-- Common sections
common common-ghc-opts
ghc-options:
-Wall
-Wcompat
-Wincomplete-uni-patterns
-Wno-unused-do-bind
-Wno-partial-type-signatures
-Wincomplete-record-updates
-Wmissing-deriving-strategies
-Wno-name-shadowing
-Wunused-foralls
-Wno-unticked-promoted-constructors
-fprint-explicit-foralls
-fprint-explicit-kinds
common common-deps
build-depends:
aeson,
aeson-pretty,
atlas-cardano,
base,
bytestring,
containers,
mtl,
mwc-random,
random,
random-fu,
serialise,
text,
vector,
common common-lang
default-language: Haskell2010
default-extensions:
ApplicativeDo
BangPatterns
BinaryLiterals
ConstrainedClassMethods
ConstraintKinds
DataKinds
DeriveAnyClass
DeriveDataTypeable
DeriveFoldable
DeriveFunctor
DeriveGeneric
DeriveLift
DeriveTraversable
DerivingStrategies
DerivingVia
DoAndIfThenElse
EmptyCase
EmptyDataDecls
EmptyDataDeriving
ExistentialQuantification
ExplicitForAll
FlexibleContexts
FlexibleInstances
GADTSyntax
GeneralisedNewtypeDeriving
HexFloatLiterals
ImplicitPrelude
InstanceSigs
KindSignatures
LambdaCase
MonomorphismRestriction
MultiParamTypeClasses
NamedFieldPuns
NoStarIsType
NumericUnderscores
OverloadedStrings
PatternGuards
PatternSynonyms
PolyKinds
PostfixOperators
RankNTypes
RelaxedPolyRec
RoleAnnotations
ScopedTypeVariables
StandaloneDeriving
StandaloneKindSignatures
TraditionalRecordSyntax
TupleSections
TypeApplications
TypeFamilyDependencies
TypeOperators
UnboxedTuples
ViewPatterns
-- Build targets
library datasource-providers
import: common-lang
import: common-deps
import: common-ghc-opts
hs-source-dirs: impl/datasource-providers
build-depends:
geniusyield-dex-api,
geniusyield-orderbot-framework:common,
exposed-modules: GeniusYield.OrderBot.DataSource.Providers
visibility: public
library orderbook-list
import: common-lang
import: common-deps
import: common-ghc-opts
hs-source-dirs: impl/orderbook-list
build-depends:
geniusyield-dex-api,
geniusyield-orderbot-framework:common,
geniusyield-orderbot-framework:datasource,
exposed-modules:
GeniusYield.OrderBot.OrderBook.List
visibility: public
library strategies-impl
import: common-lang
import: common-deps
import: common-ghc-opts
hs-source-dirs: impl/strategies-impl
build-depends:
envy,
geniusyield-dex-api,
geniusyield-orderbot-framework:common,
geniusyield-orderbot-framework:orderbook,
exposed-modules:
GeniusYield.OrderBot.Strategies.Impl
visibility: public
-- The primary orderbot executable - this must be instantiated with the signature
-- implementations.
executable geniusyield-orderbot-exe
import: common-lang
import: common-deps
import: common-ghc-opts
hs-source-dirs: geniusyield-orderbot/src
main-is: Main.hs
build-depends:
cardano-api,
envy,
geniusyield-dex-api,
geniusyield-orderbot:datasource-providers,
geniusyield-orderbot:orderbook-list,
geniusyield-orderbot:strategies-impl,
geniusyield-orderbot-framework,
geniusyield-orderbot-framework:common,
plutus-ledger-api,
ply-core,
mixins:
geniusyield-orderbot:orderbook-list requires (GeniusYield.OrderBot.DataSource as GeniusYield.OrderBot.DataSource.Providers),
geniusyield-orderbot:strategies-impl requires (GeniusYield.OrderBot.DataSource as GeniusYield.OrderBot.DataSource.Providers, GeniusYield.OrderBot.OrderBook as GeniusYield.OrderBot.OrderBook.List),
geniusyield-orderbot-framework requires (GeniusYield.OrderBot.DataSource as GeniusYield.OrderBot.DataSource.Providers, GeniusYield.OrderBot.OrderBook as GeniusYield.OrderBot.OrderBook.List, GeniusYield.OrderBot.Strategies as GeniusYield.OrderBot.Strategies.Impl),
ghc-options:
-O2
-threaded
-rtsopts
-with-rtsopts=-N
test-suite strategies-tests
import: common-lang
import: common-deps
import: common-ghc-opts
type: exitcode-stdio-1.0
main-is: Main.hs
hs-source-dirs: geniusyield-orderbot/test/
other-modules:
Tests.Prop.Orderbook
Tests.Prop.Strategies
Tests.Prop.Utils
build-depends:
QuickCheck,
cardano-api,
envy,
geniusyield-dex-api,
geniusyield-orderbot:datasource-providers,
geniusyield-orderbot:orderbook-list,
geniusyield-orderbot:strategies-impl,
geniusyield-orderbot-framework,
geniusyield-orderbot-framework:common,
tasty,
tasty-quickcheck,
mixins:
geniusyield-orderbot:orderbook-list requires (GeniusYield.OrderBot.DataSource as GeniusYield.OrderBot.DataSource.Providers),
geniusyield-orderbot:strategies-impl requires (GeniusYield.OrderBot.DataSource as GeniusYield.OrderBot.DataSource.Providers, GeniusYield.OrderBot.OrderBook as GeniusYield.OrderBot.OrderBook.List),
geniusyield-orderbot-framework requires (GeniusYield.OrderBot.DataSource as GeniusYield.OrderBot.DataSource.Providers, GeniusYield.OrderBot.OrderBook as GeniusYield.OrderBot.OrderBook.List, GeniusYield.OrderBot.Strategies as GeniusYield.OrderBot.Strategies.Impl),