Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ICE #907

Draft
wants to merge 289 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
289 commits
Select commit Hold shift + click to select a range
f24bcdc
propose solutioln
enthusiastmartin Aug 26, 2024
f2c7d77
unsigned approach
enthusiastmartin Aug 28, 2024
dec5f4c
order by score
enthusiastmartin Aug 28, 2024
11897f5
add block check and solution score
enthusiastmartin Sep 4, 2024
6f7f14d
Merge branch 'master' into feat/omnix
enthusiastmartin Sep 6, 2024
1f63bb2
validate deadline
enthusiastmartin Sep 6, 2024
e4f7bca
esnure resolved intent correctness
enthusiastmartin Sep 6, 2024
454e6d4
add fee to lrna buy
enthusiastmartin Sep 8, 2024
7d34cb6
correct intent duration
enthusiastmartin Sep 8, 2024
3190b28
track solver swap amounts
enthusiastmartin Sep 9, 2024
851af51
rename omnix -> ice
enthusiastmartin Sep 10, 2024
e605510
rename omnix -> ice
enthusiastmartin Sep 10, 2024
9920955
reserve and unreserve intents amounts
enthusiastmartin Sep 10, 2024
bbe87f4
comment
enthusiastmartin Sep 10, 2024
2ac040d
adjust ice tests
enthusiastmartin Sep 10, 2024
3db7279
update comment
enthusiastmartin Sep 10, 2024
8b1e5a5
score solution
enthusiastmartin Sep 11, 2024
1d0e87a
update and clear intents, use price oracle
enthusiastmartin Sep 12, 2024
e4ca5b4
updat runtime config
enthusiastmartin Sep 12, 2024
ec10147
Merge branch 'master' into feat/ice
enthusiastmartin Sep 13, 2024
292e7fd
score solution correctly
enthusiastmartin Sep 13, 2024
18882b7
add additional intent sumbission tests
enthusiastmartin Sep 14, 2024
c6031f1
add additional solution sumbission tests
enthusiastmartin Sep 14, 2024
a4c7c54
add additional solution sumbission tests
enthusiastmartin Sep 14, 2024
e5cb639
add tests for clear/update intents
enthusiastmartin Sep 14, 2024
22412ba
make scoring solution part of engine api
enthusiastmartin Sep 15, 2024
54be984
warnings
enthusiastmartin Sep 15, 2024
3c25e6e
Add weigher
enthusiastmartin Sep 15, 2024
f431440
change sumbit solution weight calculation
enthusiastmartin Sep 15, 2024
08dd7e6
simply engine impl
enthusiastmartin Sep 15, 2024
7719e0d
simplify error
enthusiastmartin Sep 15, 2024
8a0507c
refactor little things
enthusiastmartin Sep 15, 2024
7b9b058
move to types
enthusiastmartin Sep 15, 2024
f6c7c18
refactor little things
enthusiastmartin Sep 15, 2024
a63ba52
add comment
enthusiastmartin Sep 15, 2024
ff9a6ce
calculate weight of submit solution
enthusiastmartin Sep 16, 2024
0f731d9
remove comment
enthusiastmartin Sep 16, 2024
54b5f98
calculate swap weight using route
enthusiastmartin Sep 16, 2024
146a163
use sell and buy weight
enthusiastmartin Sep 16, 2024
6730663
fix runtime
enthusiastmartin Sep 16, 2024
562b037
add coment
enthusiastmartin Sep 18, 2024
31fa02b
add intents ids simple test
enthusiastmartin Sep 18, 2024
8703f6a
add intents ids simple test
enthusiastmartin Sep 18, 2024
c865625
add intents ids simple test
enthusiastmartin Sep 18, 2024
553bd27
remove uneccessary type
enthusiastmartin Sep 18, 2024
8f1565b
use intent in submit extrinsic
enthusiastmartin Sep 18, 2024
331f969
set executed flag
enthusiastmartin Sep 18, 2024
74abea9
Add comment
enthusiastmartin Sep 20, 2024
b62e71d
rework submit solution so no need to provide transfers in/out
enthusiastmartin Sep 21, 2024
63b6726
adjust submit solution weight
enthusiastmartin Sep 24, 2024
f22c315
unreserve when removing expired intent
enthusiastmartin Sep 24, 2024
d669117
slash invalid solutions
enthusiastmartin Sep 24, 2024
59bed11
additional tests
enthusiastmartin Sep 24, 2024
4ba5e58
configure ice pallet runtime
enthusiastmartin Sep 24, 2024
711952a
fix integration tests
enthusiastmartin Sep 24, 2024
6c1e41a
happy clippy happy life
enthusiastmartin Sep 24, 2024
3c5bef8
Merge branch 'master' into feat/ice
enthusiastmartin Sep 26, 2024
536baa7
implement slahsing in tx validation
enthusiastmartin Sep 26, 2024
3548dce
slash integration tests
enthusiastmartin Sep 26, 2024
c5d47ac
use correct submit solution
enthusiastmartin Sep 26, 2024
110f151
add unreserve test
enthusiastmartin Oct 1, 2024
3b5dbd2
add unsigned submit proposal
enthusiastmartin Oct 1, 2024
c151871
introduce cvx solver
enthusiastmartin Oct 3, 2024
e7ea56b
use other lib
enthusiastmartin Oct 4, 2024
9da705f
just some values
enthusiastmartin Oct 9, 2024
a53642e
something
enthusiastmartin Oct 11, 2024
6888bf3
cvx solver impl
enthusiastmartin Oct 15, 2024
a5fa862
add assertion for the test case
enthusiastmartin Oct 15, 2024
69971d9
remove unused stuff
enthusiastmartin Oct 15, 2024
a4ea0d4
extract test data
enthusiastmartin Oct 15, 2024
8f2f997
use with proper balances in u128 with conversion to f64
enthusiastmartin Oct 16, 2024
b16ca6c
test case with different precision
enthusiastmartin Oct 16, 2024
cf3f55b
Add coment
enthusiastmartin Oct 16, 2024
161e890
refactor little things
enthusiastmartin Oct 16, 2024
6395286
setup new omnipool snapshot
enthusiastmartin Oct 16, 2024
6d0f9a5
use real omnipool state
enthusiastmartin Oct 16, 2024
2e5e10c
ddd on intent test
enthusiastmartin Oct 16, 2024
51bd23f
tests
enthusiastmartin Oct 16, 2024
d49a0f3
refactor ice integration tests
enthusiastmartin Oct 17, 2024
546369b
refactor ice integration tests
enthusiastmartin Oct 17, 2024
3043c01
refactor ice integration tests
enthusiastmartin Oct 17, 2024
e5e69dd
refactor ice integration tests
enthusiastmartin Oct 17, 2024
9ea2105
refactor ice integration tests
enthusiastmartin Oct 17, 2024
cf10d9a
cvx2
enthusiastmartin Oct 17, 2024
df7ba1b
cvs2 testing
enthusiastmartin Oct 17, 2024
20311ee
Setup solver unit tests
enthusiastmartin Oct 18, 2024
2728a13
Merge branch 'feat/ice' of github.com:galacticcouncil/HydraDX-node in…
enthusiastmartin Oct 21, 2024
e37de28
random intents
enthusiastmartin Oct 21, 2024
91c1487
Merge branch 'feat/ice' of github.com:galacticcouncil/HydraDX-node in…
enthusiastmartin Oct 21, 2024
bebdf60
set up integration test for omni solver
enthusiastmartin Oct 22, 2024
31cff6b
test omni solver with one intent
enthusiastmartin Oct 22, 2024
0674a83
simplify utils for intengraton tests
enthusiastmartin Oct 22, 2024
2908284
submit solution
enthusiastmartin Oct 22, 2024
4a46eeb
integration test for omni solver
enthusiastmartin Oct 22, 2024
359c037
solver and pallet ice refactor
enthusiastmartin Oct 24, 2024
09ff972
solver code consolidation
enthusiastmartin Oct 25, 2024
c531fbe
integration tests for ice solvers
enthusiastmartin Oct 25, 2024
d385e38
fix build
enthusiastmartin Oct 25, 2024
f4be727
fix build
enthusiastmartin Oct 25, 2024
6e0b545
Merge branch 'master' into feat/ice
enthusiastmartin Oct 25, 2024
7958857
Merge branch 'feat/ice' into feat/ice-offchain
enthusiastmartin Oct 25, 2024
49141e2
fix build
enthusiastmartin Oct 25, 2024
6c5cbf9
updat lock
enthusiastmartin Oct 26, 2024
4de09fa
noop solver
enthusiastmartin Oct 26, 2024
22dc832
ice cargo config
enthusiastmartin Oct 27, 2024
b97b17f
working build - no solver
enthusiastmartin Oct 27, 2024
a35fe6b
use git clarabel
enthusiastmartin Oct 27, 2024
ad65a66
use workspace deps
enthusiastmartin Oct 27, 2024
9291170
ice builds
enthusiastmartin Oct 29, 2024
ffd8da7
fix integration tests
enthusiastmartin Oct 29, 2024
13569c2
simplify and call prpose solution
enthusiastmartin Oct 29, 2024
aec29b3
use git deps
enthusiastmartin Oct 29, 2024
1642c87
solver unit tests
enthusiastmartin Oct 29, 2024
96fb553
disable solver unit tests
enthusiastmartin Oct 29, 2024
f266efc
Merge branch 'feat/ice' into feat/ice-offchain
enthusiastmartin Oct 29, 2024
bf4bdb7
Merge branch 'feat/ice-offchain' into feat/ice-works
enthusiastmartin Oct 29, 2024
5fa0ba7
refactor engine
enthusiastmartin Oct 30, 2024
8d48bb0
clippy
enthusiastmartin Oct 30, 2024
9b74b1e
Merge branch 'master' into feat/ice
enthusiastmartin Oct 31, 2024
d44a659
revert omnipool lrna buy support
enthusiastmartin Oct 31, 2024
bbfaf8b
change trade intrusctions calculation
enthusiastmartin Oct 31, 2024
5480a44
additional integratio test
enthusiastmartin Oct 31, 2024
0ae9428
add generating intent
enthusiastmartin Oct 31, 2024
be39307
special integration test
enthusiastmartin Nov 1, 2024
2022311
adjust intent generator to not use spot price
enthusiastmartin Nov 1, 2024
42a43b1
add addtional edge case test
enthusiastmartin Nov 2, 2024
2d4f189
add addtional edge case test
enthusiastmartin Nov 2, 2024
84c1a11
fix trades and rounding
enthusiastmartin Nov 3, 2024
d586ee8
Merge branch 'master' into feat/ice
enthusiastmartin Nov 7, 2024
f62935e
Merge branch 'master' into feat/ice
enthusiastmartin Dec 18, 2024
b9cef60
just another wip attempt
enthusiastmartin Nov 7, 2024
7648a46
adjust
enthusiastmartin Nov 8, 2024
b9a8b1a
ice client worker
enthusiastmartin Nov 8, 2024
7234c33
remove old solver
enthusiastmartin Nov 11, 2024
dc12cab
submit solution from client
enthusiastmartin Nov 11, 2024
34d9005
disable submit for now
enthusiastmartin Nov 12, 2024
adb9fb9
introduce v3
enthusiastmartin Nov 13, 2024
1a697ea
handle unwrap
enthusiastmartin Nov 14, 2024
f763120
ice problem definition
enthusiastmartin Nov 14, 2024
67e09b0
try with numpy
enthusiastmartin Nov 14, 2024
94bd4a1
next step
enthusiastmartin Nov 14, 2024
cc9e5cc
next step
enthusiastmartin Nov 14, 2024
927bb1a
remove numpy crate
enthusiastmartin Nov 14, 2024
fddb3d2
impplement v3 functionality
enthusiastmartin Nov 14, 2024
97a2245
fix asset list
enthusiastmartin Nov 14, 2024
148ec48
fixes
enthusiastmartin Nov 15, 2024
47f3b43
fixes
enthusiastmartin Nov 15, 2024
3a2eb47
fixes
enthusiastmartin Nov 15, 2024
ee337c8
calculate final deltas
enthusiastmartin Nov 15, 2024
3e675ae
impl additional problem methods
enthusiastmartin Nov 15, 2024
c20ba1e
implement the remaining functions
enthusiastmartin Nov 18, 2024
7d7ffc5
change step params
enthusiastmartin Nov 18, 2024
a4e6779
fixes
enthusiastmartin Nov 18, 2024
6136f4e
resolved todo
enthusiastmartin Nov 18, 2024
8c9e4c5
fix vstack/hstack
enthusiastmartin Nov 18, 2024
05886a1
fixed incomaptible shapes
enthusiastmartin Nov 18, 2024
f3feb7c
fix ommnipool directions
enthusiastmartin Nov 19, 2024
b2704d7
fix ommnipool directions
enthusiastmartin Nov 19, 2024
30038da
fixed clarabel solution
enthusiastmartin Nov 19, 2024
21a88b0
remove traces
enthusiastmartin Nov 19, 2024
56dd906
use option for indicators
enthusiastmartin Nov 19, 2024
22777fc
return finally a list of resolved intents
enthusiastmartin Nov 19, 2024
60086af
update comments
enthusiastmartin Nov 19, 2024
d6a5dc1
update comments
enthusiastmartin Nov 19, 2024
e4f56a6
update comments
enthusiastmartin Nov 19, 2024
850be9b
fix set coeficients values
enthusiastmartin Nov 20, 2024
4aade85
fix indicators len
enthusiastmartin Nov 20, 2024
4d9ae9e
fix price
enthusiastmartin Nov 20, 2024
458e83c
fix x return default value
enthusiastmartin Nov 20, 2024
30a408c
enable milp
enthusiastmartin Nov 20, 2024
6170e87
set indicators after milp
enthusiastmartin Nov 20, 2024
ff70e0b
fix empty vcat
enthusiastmartin Nov 20, 2024
aa1751a
remove not needed status
enthusiastmartin Nov 20, 2024
a26627c
remove dbgs
enthusiastmartin Nov 20, 2024
70dfa5b
fix offset
enthusiastmartin Nov 20, 2024
c2806b3
Add test case
enthusiastmartin Nov 21, 2024
0bdc3bf
fix partial intent prices
enthusiastmartin Nov 23, 2024
8e8f831
add testcase
enthusiastmartin Nov 24, 2024
fc01df7
fixed price in tests
enthusiastmartin Nov 24, 2024
964ed17
fix incompatible shape
enthusiastmartin Nov 24, 2024
3c0d059
add problematic 4 intent test
enthusiastmartin Nov 24, 2024
5b4ecb5
Save failed test cases
enthusiastmartin Nov 26, 2024
04ad33c
add bin
enthusiastmartin Nov 26, 2024
1d5344f
fix shape problem
enthusiastmartin Nov 27, 2024
716deb5
add test cases
enthusiastmartin Nov 27, 2024
4a2b867
add test cases
enthusiastmartin Nov 27, 2024
3cd6e84
add another scenario
enthusiastmartin Nov 27, 2024
47e893f
execute scenarion as integration test
enthusiastmartin Nov 27, 2024
f19503e
add debug asserts when calcaluting trades
enthusiastmartin Nov 27, 2024
2bdfdc5
do trades inline
enthusiastmartin Nov 28, 2024
239a42e
add back reserves
enthusiastmartin Dec 2, 2024
369faee
add tx pool
enthusiastmartin Dec 3, 2024
4bae613
submit propose
enthusiastmartin Dec 3, 2024
f2d1d2a
create signed tx - wip
enthusiastmartin Dec 3, 2024
84c63bc
construct runtime call
enthusiastmartin Dec 4, 2024
a5ec9b8
add send solution
enthusiastmartin Dec 4, 2024
2f4de16
submit attempt
enthusiastmartin Dec 4, 2024
b63091c
try set solution for offchain worker
enthusiastmartin Dec 6, 2024
9705bf2
try set solution for offchain worker
enthusiastmartin Dec 6, 2024
edfae07
register custom offchain worker extension
enthusiastmartin Dec 6, 2024
e873758
register ice host functions
enthusiastmartin Dec 6, 2024
5655d9c
call solver directly
enthusiastmartin Dec 6, 2024
f7ef93d
simplify
enthusiastmartin Dec 9, 2024
4cd64cc
add better traits
enthusiastmartin Dec 10, 2024
c7f20d3
simplify solver
enthusiastmartin Dec 11, 2024
2380a83
pass data instead of having a generic trait
enthusiastmartin Dec 12, 2024
7b17bcc
fix solver call
enthusiastmartin Dec 12, 2024
b37ee5f
use resolved intent in result
enthusiastmartin Dec 12, 2024
ed6a6c3
add data to the callback
enthusiastmartin Dec 12, 2024
97ebb79
update lock file
enthusiastmartin Dec 18, 2024
acbc9a3
Merge branch 'master' into feat/ice
enthusiastmartin Dec 19, 2024
3ed9b47
Merge branch 'feat/ice' into feat/ice-wip-client
enthusiastmartin Dec 19, 2024
fe0c932
rewarod amm state provider
enthusiastmartin Dec 27, 2024
12fa087
provide intents:
enthusiastmartin Dec 27, 2024
e785471
submit propose solution
enthusiastmartin Dec 27, 2024
5b9bf1f
remove unused stuff
enthusiastmartin Dec 27, 2024
eaf66f9
pallet ice tests mock
enthusiastmartin Dec 28, 2024
b1756f7
fix ice pallet mock
enthusiastmartin Dec 29, 2024
91fcc4e
clippy
enthusiastmartin Dec 29, 2024
70b54e2
intent tests
enthusiastmartin Dec 29, 2024
b797595
submit solution tests
enthusiastmartin Dec 29, 2024
dea9398
prepare test cases
enthusiastmartin Dec 29, 2024
9a96b85
add test annotations
enthusiastmartin Dec 29, 2024
c58be6d
add more pallet tests
enthusiastmartin Dec 29, 2024
14a7187
add more pallet tests
enthusiastmartin Dec 29, 2024
befbdc0
mock prices
enthusiastmartin Dec 29, 2024
2ea74e9
ensure balances
enthusiastmartin Dec 29, 2024
70093b3
add more pallet tests
enthusiastmartin Dec 29, 2024
d682912
add more pallet tests
enthusiastmartin Dec 29, 2024
b60c699
additional tests
enthusiastmartin Dec 29, 2024
9e37e41
add validate submision unit test
enthusiastmartin Dec 29, 2024
cb393d9
test to ensure intent is revmoed
enthusiastmartin Dec 29, 2024
f41e89f
partial tests
enthusiastmartin Dec 29, 2024
7c91a2c
set authority for ice pallet
enthusiastmartin Dec 29, 2024
e6aeb9c
try to sign tx
enthusiastmartin Dec 30, 2024
db61512
try to sign tx
enthusiastmartin Dec 30, 2024
3504343
remvoe create signed ext
enthusiastmartin Dec 30, 2024
5d90fbd
submit unsigned with signature
enthusiastmartin Dec 30, 2024
1494a08
verify unsinged
enthusiastmartin Dec 30, 2024
8a4b8d3
add ice genesis config
enthusiastmartin Dec 31, 2024
8cc7756
use signer
enthusiastmartin Jan 6, 2025
7d14d58
Merge branch 'master' into feat/ice
enthusiastmartin Jan 14, 2025
cbaa954
Merge branch 'feat/ice' into feat/ice-wip-client
enthusiastmartin Jan 14, 2025
406f43c
revert merge changes
enthusiastmartin Jan 14, 2025
1121be0
revert merge changes
enthusiastmartin Jan 14, 2025
fb70765
revert merge changes
enthusiastmartin Jan 14, 2025
4289f43
revert lock changes
enthusiastmartin Jan 14, 2025
ad20c56
add submitintent trait
enthusiastmartin Jan 14, 2025
3524107
change submit intent trait
enthusiastmartin Jan 14, 2025
8727084
disable signed tx submit for now
enthusiastmartin Jan 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,5 @@ fork-testing/local-raw.json
SNAPSHOT*

db.sqlite*
justFile
zombienet
Loading
Loading