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

Fusion mvp #665

Draft
wants to merge 77 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
1067956
fusion poc start
Leouarz Aug 20, 2024
b235383
lint
Leouarz Aug 20, 2024
85e4d20
Merge remote-tracking branch 'origin/main' into fusion
Leouarz Aug 21, 2024
54c545d
remove gated feature for CI and merge main branch
Leouarz Aug 21, 2024
fdaa372
finx lint / bench
Leouarz Aug 21, 2024
0dae95d
use other benchmark for placeholder
Leouarz Aug 21, 2024
fb1bd0f
Merge remote-tracking branch 'origin/main' into fusion
Leouarz Aug 21, 2024
6861052
extended the phragmen voters to include fusion pool
ToufeeqP Aug 22, 2024
a8be288
updated tests
ToufeeqP Aug 22, 2024
08da1b1
fix e2e, regenerate api_dev.rs
Leouarz Aug 22, 2024
6af0102
fix e2e, regenerate api_dev.rs
Leouarz Aug 22, 2024
90578e8
rename candidates to targets
Leouarz Aug 22, 2024
f6b1102
fix subxt-tests
Leouarz Aug 22, 2024
15051c4
Merge remote-tracking branch 'origin' into fusion
Leouarz Aug 22, 2024
38febf4
Merge remote-tracking branch 'origin/main' into fusion
Leouarz Aug 25, 2024
050cdf2
fusion mvp
Leouarz Sep 19, 2024
0ca29ef
use workspace deps
Leouarz Sep 25, 2024
2e49d35
update deps, review changes, add slashing related stuff wip
Leouarz Sep 25, 2024
c2b6968
merge main, fix some warnings, update api_dev
Leouarz Sep 25, 2024
7fe1c32
add some events, change some signatures
Leouarz Sep 25, 2024
93bb7a3
update libs
Leouarz Sep 25, 2024
c24fd73
benchmarks
Leouarz Sep 25, 2024
988bca1
fmt
Leouarz Sep 25, 2024
5fff0fc
review changes
Sep 27, 2024
e022691
review changes
Leouarz Sep 27, 2024
3afe00c
regenerate api_dev
Leouarz Sep 27, 2024
2a6b812
Merge remote-tracking branch 'origin/main' into fusion-mvp
Leouarz Oct 1, 2024
947f341
remove useless field
Leouarz Oct 4, 2024
3bce5b1
refactor - improve, add staking related stuff
Leouarz Oct 13, 2024
6aafebb
merge main
Leouarz Oct 13, 2024
007fc45
add leftover destination in destroy pool, fix runtime dep
Leouarz Oct 13, 2024
57244ac
use crate dep
Leouarz Oct 13, 2024
839e367
fmt D:
Leouarz Oct 13, 2024
d2407f0
revert some changes on tests in staking pallet
Leouarz Oct 13, 2024
304ad95
improve code readability
Leouarz Oct 13, 2024
1e05b99
fix tests by adding related maccro
Leouarz Oct 13, 2024
d52e0eb
change order when adding voters
Leouarz Oct 15, 2024
a6283f9
add slashing mechanism, improve errors, improve performances when unb…
Leouarz Oct 19, 2024
3c24e10
use btreemap instead of hashmap
Leouarz Oct 19, 2024
cb41b86
improve perf
Leouarz Oct 19, 2024
f25d213
comment condition
Leouarz Oct 20, 2024
d20649b
implement extra apy (boost), fix few silly mistakes, unbond other can…
Leouarz Oct 23, 2024
6e35662
remove runtime api
Leouarz Oct 25, 2024
1ca63db
add missing extrinsic, fix few mistakes, regenerate api_dev
Leouarz Oct 25, 2024
8e724a2
format
Leouarz Oct 25, 2024
39717e9
Merge remote-tracking branch 'origin/main' into fusion-mvp
Leouarz Oct 25, 2024
be369e9
improve comments, add better limit to boundedvec, remove useless para…
Leouarz Oct 26, 2024
1837c32
rename extra_apy to boost
Oct 28, 2024
7b8c600
generate api_dev, allow permissionless extrinsic
Leouarz Oct 28, 2024
9efbd6a
fix some inconsistencies
Leouarz Oct 29, 2024
34ea9b5
add joined_era for members, add rooot extrinsic to get funds from poo…
Leouarz Oct 30, 2024
d38cae0
TC can only remove controller addresses
Leouarz Nov 7, 2024
72a13e5
review comments from Toufeeq
Leouarz Nov 11, 2024
269b520
Merge remote-tracking branch 'origin/main' into fusion-mvp
Leouarz Nov 11, 2024
a521a86
merge main and update api_dev
Leouarz Nov 11, 2024
61ba59e
account support from other chains, fusion specific bonding duration, …
Leouarz Nov 26, 2024
84d10e5
Better fusion (#691)
Leouarz Nov 29, 2024
6adcb80
Reverted cargo lock changes
markopoloparadox Nov 30, 2024
1f451ed
change config var name
Leouarz Dec 2, 2024
9b062ea
add check on currency creation
Leouarz Dec 2, 2024
1b90272
Merge commit 'fb59054529554f44d3f5fe144679edbf8de8ed0a' into fusion-mvp
markopoloparadox Dec 9, 2024
c9270ca
upstream update
Leouarz Dec 11, 2024
edf923e
add tests for fusion, add benchmark, fix various issues
Leouarz Dec 19, 2024
ec43d35
fix ci
Leouarz Dec 19, 2024
579c352
try fix ci because of crate update
Leouarz Dec 19, 2024
1d328e4
Merge remote-tracking branch 'origin/main' into fusion-mvp
Leouarz Dec 20, 2024
de3c7d5
update set_pool parameter to comply with polkadot api
Leouarz Jan 16, 2025
6ab4efc
merge main
Leouarz Jan 16, 2025
2f93738
lint and remove warnings
Leouarz Jan 16, 2025
fce9b1e
add new error
Leouarz Jan 17, 2025
7068e34
fix bugs regarding diffs in active and current era :(
Leouarz Jan 19, 2025
98edb8d
fill pools and pallet with ED
Leouarz Jan 20, 2025
2e77d49
add better condition on retrying rewards
Leouarz Jan 21, 2025
7e8723b
change max amount of eras retried at the same time
Leouarz Jan 21, 2025
e3686bc
fix test and improve weight function
Leouarz Jan 21, 2025
8ff5e59
fix account selection bug
Leouarz Jan 22, 2025
8b6c157
fix test too
Leouarz Jan 22, 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
360 changes: 201 additions & 159 deletions Cargo.lock

Large diffs are not rendered by default.

277 changes: 148 additions & 129 deletions Cargo.toml

Large diffs are not rendered by default.

178 changes: 88 additions & 90 deletions avail-rust/Cargo.lock

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions avail-rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ crate-type = ["cdylib", "rlib"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
derive_more = { version = "1", features = ["full"] }
kate-recovery = { git = "https://github.com/availproject/avail-core", tag = "core-node-4", features = ["serde"] }
kate-recovery = { git = "https://github.com/availproject/avail-core", branch = "fusion-mvp", features = ["serde"] }
subxt = { version = "0.38.0", features = ["reconnecting-rpc-client"] }
subxt-core = { version = "0.38.0" }
subxt-signer = { version = "0.38.0" }
tokio = { version = "1.21.2" }

[target.'cfg(target_arch = "wasm32")'.dependencies]
derive_more = { version = "1", default-features = false, features = ["from", "constructor"] }
kate-recovery = { git = "https://github.com/availproject/avail-core", default-features = false, tag = "core-node-4", features = ["serde"] }
kate-recovery = { git = "https://github.com/availproject/avail-core", branch = "fusion-mvp", default-features = false, features = ["serde"] }
subxt = { version = "0.38.0", default-features = false, features = ["web", "jsonrpsee", "reconnecting-rpc-client"] }
subxt-core = { version = "0.38.0", default-features = false }
subxt-signer = { version = "0.38.0", default-features = false, features = ["web", "sr25519", "subxt"] }
Expand All @@ -35,20 +35,20 @@ codec = { package = "parity-scale-codec", version = "3", default-features = fals
"bit-vec",
] }
scale-info = { version = "2.5.0", features = ["bit-vec"] }
avail-core = { git = "https://github.com/availproject/avail-core", tag = "core-node-4", default-features = false, features = ["serde", "runtime"] }
avail-core = { git = "https://github.com/availproject/avail-core", branch = "fusion-mvp", default-features = false, features = ["serde", "runtime"] }
hex = { version = "0.4" }
base58 = { version = "0.2.0" }
sp-core = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-10", default-features = false }
sp-core = { git = "https://github.com/availproject/polkadot-sdk.git", branch = "fusion-mvp", default-features = false }
bounded-collections = { version = "0.2.0", features = ["serde"] }
primitive-types = { version = "0.13.1", default-features = false }
log = { version = "0.4.22", default-features = false }
env_logger = { version = "0.11.5" }

[patch.crates-io]
sp-core = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-10" }
sp-io = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-10" }
sp-runtime = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-10" }
sp-std = { git = "https://github.com/availproject/polkadot-sdk.git", tag = "polkadot-1.7.1-patch-10" }
sp-core = { git = "https://github.com/availproject/polkadot-sdk.git", branch = "fusion-mvp" }
sp-io = { git = "https://github.com/availproject/polkadot-sdk.git", branch = "fusion-mvp" }
sp-runtime = { git = "https://github.com/availproject/polkadot-sdk.git", branch = "fusion-mvp" }
sp-std = { git = "https://github.com/availproject/polkadot-sdk.git", branch = "fusion-mvp" }

[features]
reconnecting-rpc-client = ["subxt/reconnecting-rpc-client"]
Loading
Loading